Upgrade to new version of substreams library & README

This commit is contained in:
Enol Álvarez
2023-07-27 11:19:31 +02:00
parent 73a819ad71
commit 38c52d9a2a
7 changed files with 188 additions and 47 deletions

View File

@@ -28,5 +28,5 @@ fn verify_parameter(address: &String) -> Result<(), Error> {
return Err(anyhow!("Contract address is not valid"));
}
return Ok(());
Ok(())
}

View File

@@ -45,7 +45,7 @@ fn verify_filter_params(params: &TransactionFilterParams) -> Result<(), Vec<subs
return Err(errors)
}
return Ok(())
Ok(())
}
fn apply_filter(transaction: &TransactionTrace, filters: &TransactionFilterParams) -> bool {
@@ -55,7 +55,7 @@ fn apply_filter(transaction: &TransactionTrace, filters: &TransactionFilterParam
return false;
}
return true;
true
}
fn filter_by_parameter(parameter: &Option<String>, transaction_field: &Vec<u8>) -> bool {
@@ -68,5 +68,5 @@ fn filter_by_parameter(parameter: &Option<String>, transaction_field: &Vec<u8>)
return true;
}
return false;
false
}

View File

@@ -4,5 +4,5 @@ pub fn is_address_valid(address: &String) -> bool {
return false;
}
return true;
true
}