fix: maverick
This commit is contained in:
@@ -235,7 +235,7 @@ pub fn map_relative_balances(
|
||||
/// It's significant to include both the `pool_id` and the `token_id` for each balance delta as the
|
||||
/// store key to ensure that there's a unique balance being tallied for each.
|
||||
#[substreams::handlers::store]
|
||||
pub fn store_balance(deltas: BlockBalanceDeltas, store: StoreAddBigInt) {
|
||||
pub fn store_balances(deltas: BlockBalanceDeltas, store: StoreAddBigInt) {
|
||||
store_balance_changes(deltas, store)
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ modules:
|
||||
output:
|
||||
type: proto:tycho.evm.v1.BalanceDeltas
|
||||
|
||||
- name: store_balance
|
||||
- name: store_balances
|
||||
kind: store
|
||||
initialBlock: 19128828
|
||||
updatePolicy: add
|
||||
@@ -67,7 +67,7 @@ modules:
|
||||
- map: map_components
|
||||
- map: map_relative_balances
|
||||
- store: store_components
|
||||
- store: store_balance
|
||||
- store: store_balances
|
||||
mode: deltas # This is the key property that simplifies `BalanceChange` handling
|
||||
output:
|
||||
type: proto:tycho.evm.v1.BlockContractChanges
|
||||
|
||||
Reference in New Issue
Block a user