fix: update substream.yaml 2

This commit is contained in:
0xMochan
2024-03-29 15:06:09 -05:00
parent ed36d98d90
commit 462cd29b49
3 changed files with 5 additions and 5 deletions

View File

@@ -1,3 +1,3 @@
mod abi;
mod modules;
pub mod modules;
mod pool_factories;

View File

@@ -246,7 +246,7 @@ pub fn store_balance(deltas: BlockBalanceDeltas, store: StoreAddBigInt) {
/// map. Each block of code will extend the `TransactionContractChanges` struct with the
/// cooresponding changes (balance, component, contract), inserting a new one if it doesn't exist.
/// At the very end, the map can easily be sorted by index to ensure the final
/// `BlockContractChanges` is ordered by transactions properly.
/// `BlockContractChanges` is ordered by transactions properly.
#[substreams::handlers::map]
pub fn map_protocol_changes(
block: eth::v2::Block,
@@ -260,7 +260,7 @@ pub fn map_protocol_changes(
let mut transaction_contract_changes: HashMap<_, TransactionContractChanges> = HashMap::new();
// `ProtocolComponents` are gathered from `map_pools_created` which just need a bit of work to
// convert into `TransactionContractChanges`
// convert into `TransactionContractChanges`
grouped_components
.tx_components
.iter()

View File

@@ -14,7 +14,7 @@ protobuf:
binaries:
default:
type: wasm/rust-v1
file: target/wasm32-unknown-unknown/release/substreams_curve.wasm
file: ../target/wasm32-unknown-unknown/release/ethereum_curve.wasm
modules:
- name: map_components
@@ -57,7 +57,7 @@ modules:
updatePolicy: add
valueType: bigint
inputs:
- map: map_balance_deltas
- map: map_relative_balances
- name: map_protocol_changes
kind: map