fix: update substream.yaml 2
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
mod abi;
|
mod abi;
|
||||||
mod modules;
|
pub mod modules;
|
||||||
mod pool_factories;
|
mod pool_factories;
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ pub fn store_balance(deltas: BlockBalanceDeltas, store: StoreAddBigInt) {
|
|||||||
/// map. Each block of code will extend the `TransactionContractChanges` struct with the
|
/// 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.
|
/// 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
|
/// 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]
|
#[substreams::handlers::map]
|
||||||
pub fn map_protocol_changes(
|
pub fn map_protocol_changes(
|
||||||
block: eth::v2::Block,
|
block: eth::v2::Block,
|
||||||
@@ -260,7 +260,7 @@ pub fn map_protocol_changes(
|
|||||||
let mut transaction_contract_changes: HashMap<_, TransactionContractChanges> = HashMap::new();
|
let mut transaction_contract_changes: HashMap<_, TransactionContractChanges> = HashMap::new();
|
||||||
|
|
||||||
// `ProtocolComponents` are gathered from `map_pools_created` which just need a bit of work to
|
// `ProtocolComponents` are gathered from `map_pools_created` which just need a bit of work to
|
||||||
// convert into `TransactionContractChanges`
|
// convert into `TransactionContractChanges`
|
||||||
grouped_components
|
grouped_components
|
||||||
.tx_components
|
.tx_components
|
||||||
.iter()
|
.iter()
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ protobuf:
|
|||||||
binaries:
|
binaries:
|
||||||
default:
|
default:
|
||||||
type: wasm/rust-v1
|
type: wasm/rust-v1
|
||||||
file: target/wasm32-unknown-unknown/release/substreams_curve.wasm
|
file: ../target/wasm32-unknown-unknown/release/ethereum_curve.wasm
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
- name: map_components
|
- name: map_components
|
||||||
@@ -57,7 +57,7 @@ modules:
|
|||||||
updatePolicy: add
|
updatePolicy: add
|
||||||
valueType: bigint
|
valueType: bigint
|
||||||
inputs:
|
inputs:
|
||||||
- map: map_balance_deltas
|
- map: map_relative_balances
|
||||||
|
|
||||||
- name: map_protocol_changes
|
- name: map_protocol_changes
|
||||||
kind: map
|
kind: map
|
||||||
|
|||||||
Reference in New Issue
Block a user