-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.template.yaml
174 lines (174 loc) · 5 KB
/
manifest.template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
specVersion: 1.0.0
schema:
file: ./schema.graphql
dataSources:
{{#if Factory}}
- kind: ethereum/contract
name: Factory
network: {{network}}
source:
address: '{{Factory.address}}'
abi: BFactory
startBlock: {{Factory.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Pool
abis:
- name: BFactory
file: ./abis/BFactory.json
- name: BPool
file: ./abis/BPool.json
- name: BToken
file: ./abis/BToken.json
eventHandlers:
- event: LOG_NEW_POOL(indexed address,indexed address)
handler: handleNewPool
{{/if}}
{{#if Factory2}}
- kind: ethereum/contract
name: Factory2
network: {{network}}
source:
address: '{{Factory2.address}}'
abi: BFactory
startBlock: {{Factory2.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Pool
abis:
- name: BFactory
file: ./abis/BFactory.json
- name: BPool
file: ./abis/BPool.json
- name: BToken
file: ./abis/BToken.json
eventHandlers:
- event: LOG_NEW_POOL(indexed address,indexed address)
handler: handleNewPool
{{/if}}
{{#if Factory3}}
- kind: ethereum/contract
name: Factory3
network: {{network}}
source:
address: '{{Factory3.address}}'
abi: BFactory
startBlock: {{Factory3.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Pool
abis:
- name: BFactory
file: ./abis/BFactory.json
- name: BPool
file: ./abis/BPool.json
- name: BToken
file: ./abis/BToken.json
eventHandlers:
- event: LOG_NEW_POOL(indexed address,indexed address)
handler: handleNewPool
{{/if}}
{{#if Factory4}}
- kind: ethereum/contract
name: Factory4
network: {{network}}
source:
address: '{{Factory4.address}}'
abi: BFactory
startBlock: {{Factory4.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Pool
abis:
- name: BFactory
file: ./abis/BFactory.json
- name: BPool
file: ./abis/BPool.json
- name: BToken
file: ./abis/BToken.json
eventHandlers:
- event: LOG_NEW_POOL(indexed address,indexed address)
handler: handleNewPool
{{/if}}
{{#if Settlement}}
- kind: ethereum
name: Settlement
network: {{network}}
source:
address: '{{Settlement.address}}'
abi: CoWSettlement
startBlock: {{Settlement.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: CoWSettlement
file: ./abis/CoWSettlement.json
- name: BPool
file: ./abis/BPool.json
eventHandlers:
- event: Trade(indexed address,address,address,uint256,uint256,uint256,bytes)
handler: handleTrade
receipt: true
file: ./src/mappings/cow.ts
{{/if}}
templates:
- kind: ethereum/contract
name: Pool
network: {{network}}
source:
abi: BPool
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/pool.ts
entities:
- Pool
abis:
- name: BPool
file: ./abis/BPool.json
- name: BToken
file: ./abis/BToken.json
eventHandlers:
- event: LOG_JOIN(indexed address,indexed address,uint256)
handler: handleJoin
receipt: true
- event: LOG_EXIT(indexed address,indexed address,uint256)
handler: handleExit
receipt: true
- event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleSwap
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x4bb278f300000000000000000000000000000000000000000000000000000000"
handler: handleFinalize
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x34e1990700000000000000000000000000000000000000000000000000000000"
handler: handleSetSwapFee
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x3fdddaa200000000000000000000000000000000000000000000000000000000"
handler: handleRebind
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0xe4e1e53800000000000000000000000000000000000000000000000000000000"
handler: handleRebind
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer