diff --git a/substreams/ethereum-curve/src/lib.rs b/substreams/ethereum-curve/src/lib.rs index 27bd15a..c8233b2 100644 --- a/substreams/ethereum-curve/src/lib.rs +++ b/substreams/ethereum-curve/src/lib.rs @@ -1,3 +1,3 @@ mod abi; -mod modules; +pub mod modules; mod pool_factories; diff --git a/substreams/ethereum-curve/src/modules.rs b/substreams/ethereum-curve/src/modules.rs index bbecbee..c5139d1 100644 --- a/substreams/ethereum-curve/src/modules.rs +++ b/substreams/ethereum-curve/src/modules.rs @@ -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() diff --git a/substreams/ethereum-curve/substreams.yaml b/substreams/ethereum-curve/substreams.yaml index cccb4f3..13aefc3 100644 --- a/substreams/ethereum-curve/substreams.yaml +++ b/substreams/ethereum-curve/substreams.yaml @@ -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