fix: maverick

This commit is contained in:
0xMochan
2024-04-01 23:03:05 -05:00
parent 373ac1036c
commit 8dcae829b5
12 changed files with 115 additions and 476 deletions

View File

@@ -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)
}

View File

@@ -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