70 lines
3.7 KiB
YAML
70 lines
3.7 KiB
YAML
specVersion: v0.1.0
|
|
package:
|
|
name: "substreams_curve"
|
|
version: v0.2.0
|
|
|
|
protobuf:
|
|
files:
|
|
- tycho/evm/v1/vm.proto
|
|
- tycho/evm/v1/common.proto
|
|
- tycho/evm/v1/utils.proto
|
|
importPaths:
|
|
- ../../proto
|
|
- ./proto
|
|
|
|
binaries:
|
|
default:
|
|
type: wasm/rust-v1
|
|
file: ../target/wasm32-unknown-unknown/release/ethereum_curve.wasm
|
|
|
|
modules:
|
|
- name: map_components
|
|
kind: map
|
|
initialBlock: 9906598
|
|
inputs:
|
|
- params: string
|
|
- source: sf.ethereum.type.v2.Block
|
|
output:
|
|
type: proto:tycho.evm.v1.BlockTransactionProtocolComponents
|
|
|
|
- name: store_component_tokens
|
|
kind: store
|
|
initialBlock: 9906598
|
|
updatePolicy: set
|
|
valueType: string
|
|
inputs:
|
|
- map: map_components
|
|
|
|
- name: map_relative_balances
|
|
kind: map
|
|
initialBlock: 9906598 # An arbitrary block that should change based on your requirements
|
|
inputs:
|
|
- source: sf.ethereum.type.v2.Block
|
|
- store: store_component_tokens
|
|
output:
|
|
type: proto:tycho.evm.v1.BlockBalanceDeltas
|
|
|
|
- name: store_balances
|
|
kind: store
|
|
initialBlock: 9906598
|
|
updatePolicy: add
|
|
valueType: bigint
|
|
inputs:
|
|
- map: map_relative_balances
|
|
|
|
- name: map_protocol_changes
|
|
kind: map
|
|
initialBlock: 9906598
|
|
inputs:
|
|
- source: sf.ethereum.type.v2.Block
|
|
- map: map_components
|
|
- map: map_relative_balances
|
|
- store: store_component_tokens
|
|
- store: store_balances
|
|
mode: deltas # This is the key property that simplifies `BalanceChange` handling
|
|
output:
|
|
type: proto:tycho.evm.v1.BlockChanges
|
|
|
|
params:
|
|
map_components: "address=bebc44782c7db0a1a60cb6fe97d0b483032ff1c7&tx_hash=20793bbf260912aae189d5d261ff003c9b9166da8191d8f9d63ff1c7722f3ac6&tokens[]=6b175474e89094c44da98b954eedeac495271d0f&tokens[]=a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&tokens[]=dac17f958d2ee523a2206206994597c13d831ec7&attribute_keys[]=name&attribute_vals[]=3pool&attribute_keys[]=factory_name&attribute_vals[]=NA&attribute_keys[]=factory&attribute_vals[]=0x0000000000000000000000000000000000000000,address=dc24316b9ae028f1497c275eb9192a3ea0f67022&tx_hash=fac67ecbd423a5b915deff06045ec9343568edaec34ae95c43d35f2c018afdaa&tokens[]=eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&tokens[]=ae7ab96520de3a18e5e111b5eaab095312d7fe84&attribute_keys[]=name&attribute_vals[]=steth&attribute_keys[]=factory_name&attribute_vals[]=NA&attribute_keys[]=factory&attribute_vals[]=0x0000000000000000000000000000000000000000,address=d51a44d3fae010294c616388b506acda1bfaae46&tx_hash=dafb6385ed988ce8aacecfe1d97b38ea5e60b1ebce74d2423f71ddd621680138&tokens[]=dac17f958d2ee523a2206206994597c13d831ec7&tokens[]=2260fac5e5542a773aa44fbcfedf7c193bc2c599&tokens[]=c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&attribute_keys[]=name&attribute_vals[]=tricrypto2&attribute_keys[]=factory_name&attribute_vals[]=NA&attribute_keys[]=factory&attribute_vals[]=0x0000000000000000000000000000000000000000,address=a5407eae9ba41422680e2e00537571bcc53efbfd&tx_hash=51aca4a03a395de8855fa2ca59b7febe520c2a223e69c502066162f7c1a95ec2&tokens[]=6b175474e89094c44da98b954eedeac495271d0f&tokens[]=a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&tokens[]=dac17f958d2ee523a2206206994597c13d831ec7&tokens[]=57ab1ec28d129707052df4df418d58a2d46d5f51&attribute_keys[]=name&attribute_vals[]=susd&attribute_keys[]=factory_name&attribute_vals[]=NA&attribute_keys[]=factory&attribute_vals[]=0x0000000000000000000000000000000000000000,address=dcef968d416a41cdac0ed8702fac8128a64241a2&tx_hash=1f4254004ce9e19d4eb742ee5a69d30f29085902d976f73e97c44150225ef775&tokens[]=853d955acef822db058eb8505911ed77f175b99e&tokens[]=a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&attribute_keys[]=name&attribute_vals[]=fraxusdc&attribute_keys[]=factory_name&attribute_vals[]=NA&attribute_keys[]=factory&attribute_vals[]=0x0000000000000000000000000000000000000000"
|