Skip to content

Commit 53ae072

Browse files
authored
feat: add uniswap-v3 Base yaml config (propeller-heads#145)
feat: add uniswap-v3 Base yaml config
1 parent 3c08359 commit 53ae072

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
specVersion: v0.1.0
2+
package:
3+
name: "base_uniswap_v3_logs_only"
4+
version: v0.1.0
5+
6+
protobuf:
7+
files:
8+
- tycho/evm/v1/entity.proto
9+
- tycho/evm/v1/common.proto
10+
- tycho/evm/v1/utils.proto
11+
- uniswap.proto
12+
importPaths:
13+
- ./proto/v1
14+
- ../../proto/
15+
excludePaths:
16+
- sf/ethereum
17+
- sf/substreams
18+
- google
19+
20+
binaries:
21+
default:
22+
type: wasm/rust-v1
23+
file: ../target/wasm32-unknown-unknown/release/ethereum_uniswap_v3_logs_only.wasm
24+
25+
modules:
26+
- name: map_pools_created
27+
kind: map
28+
initialBlock: 1371680
29+
inputs:
30+
- params: string
31+
- source: sf.ethereum.type.v2.Block
32+
output:
33+
type: proto:tycho.evm.v1.BlockEntityChanges
34+
35+
- name: store_pools
36+
kind: store
37+
initialBlock: 1371680
38+
updatePolicy: set_if_not_exists
39+
valueType: proto:uniswap.v3.Pool
40+
inputs:
41+
- map: map_pools_created
42+
43+
- name: map_events
44+
kind: map
45+
initialBlock: 1371680
46+
inputs:
47+
- source: sf.ethereum.type.v2.Block
48+
- store: store_pools
49+
output:
50+
type: proto:uniswap.v3.Events
51+
52+
- name: map_balance_changes
53+
kind: map
54+
initialBlock: 1371680
55+
inputs:
56+
- map: map_events
57+
output:
58+
type: proto:tycho.evm.v1.BlockBalanceDeltas
59+
60+
- name: store_pools_balances
61+
kind: store
62+
initialBlock: 1371680
63+
updatePolicy: add
64+
valueType: bigint
65+
inputs:
66+
- map: map_balance_changes
67+
68+
- name: map_ticks_changes
69+
kind: map
70+
initialBlock: 1371680
71+
inputs:
72+
- map: map_events
73+
output:
74+
type: proto:uniswap.v3.TickDeltas
75+
76+
- name: store_ticks_liquidity
77+
kind: store
78+
initialBlock: 1371680
79+
updatePolicy: add
80+
valueType: bigint
81+
inputs:
82+
- map: map_ticks_changes
83+
84+
- name: store_pool_current_tick
85+
kind: store
86+
initialBlock: 1371680
87+
updatePolicy: set
88+
valueType: int64
89+
inputs:
90+
- map: map_events
91+
92+
- name: map_liquidity_changes
93+
kind: map
94+
initialBlock: 1371680
95+
inputs:
96+
- map: map_events
97+
- store: store_pool_current_tick
98+
output:
99+
type: proto:uniswap.v3.LiquidityChanges
100+
101+
- name: store_liquidity
102+
kind: store
103+
initialBlock: 1371680
104+
updatePolicy: set_sum
105+
valueType: bigint
106+
inputs:
107+
- map: map_liquidity_changes
108+
109+
- name: map_protocol_changes
110+
kind: map
111+
initialBlock: 1371680
112+
inputs:
113+
- source: sf.ethereum.type.v2.Block
114+
- map: map_pools_created
115+
- map: map_events
116+
- map: map_balance_changes
117+
- store: store_pools_balances
118+
mode: deltas
119+
- map: map_ticks_changes
120+
- store: store_ticks_liquidity
121+
mode: deltas
122+
- map: map_liquidity_changes
123+
- store: store_liquidity
124+
mode: deltas
125+
output:
126+
type: proto:tycho.evm.v1.BlockChanges
127+
128+
params:
129+
map_pools_created: "33128a8fC17869897dcE68Ed026d694621f6FDfD"

0 commit comments

Comments
 (0)