forked from multis/gnosis-safe-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
189 lines (189 loc) · 6.45 KB
/
subgraph.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
specVersion: 1.2.0
description: Gnosis Safe Subgraph
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: GnosisSafeProxyFactory_v1_1_1
network: mainnet
source:
abi: GnosisSafeProxyFactory
address: "0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B"
startBlock: 9084508
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/factory.ts
entities:
- Wallet
abis:
- name: GnosisSafeProxyFactory
file: ./abis/GnosisSafeProxyFactory_v1.1.1.json
- name: GnosisSafe
file: ./abis/GnosisSafe.json
eventHandlers:
- event: ProxyCreation(address)
handler: handleProxyCreation_1_1_1
calls:
getOwners: GnosisSafe[event.params.proxy].getOwners()
getThreshold: GnosisSafe[event.params.proxy].getThreshold()
VERSION: GnosisSafe[event.params.proxy].VERSION()
- kind: ethereum/contract
name: GnosisSafeProxyFactory_v1_3_0
network: mainnet
source:
abi: GnosisSafeProxyFactory
address: "0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2"
startBlock: 12504126
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/factory.ts
entities:
- Wallet
abis:
- name: GnosisSafeProxyFactory
file: ./abis/GnosisSafeProxyFactory_v1.3.0.json
- name: GnosisSafe
file: ./abis/GnosisSafe.json
eventHandlers:
- event: ProxyCreation(address,address)
handler: handleProxyCreation_1_3_0
calls:
getOwners: GnosisSafe[event.params.proxy].getOwners()
getThreshold: GnosisSafe[event.params.proxy].getThreshold()
VERSION: GnosisSafe[event.params.proxy].VERSION()
- kind: ethereum/contract
name: GnosisSafeProxyFactory_v1_3_0_eip155
network: mainnet
source:
abi: GnosisSafeProxyFactory
address: "0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC"
startBlock: 14981216
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/factory.ts
entities:
- Wallet
abis:
- name: GnosisSafeProxyFactory
file: ./abis/GnosisSafeProxyFactory_v1.3.0.json
- name: GnosisSafe
file: ./abis/GnosisSafe.json
eventHandlers:
- event: ProxyCreation(address,address)
handler: handleProxyCreation_1_3_0
calls:
getOwners: GnosisSafe[event.params.proxy].getOwners()
getThreshold: GnosisSafe[event.params.proxy].getThreshold()
VERSION: GnosisSafe[event.params.proxy].VERSION()
- kind: ethereum/contract
name: SafeProxyFactory_v1_4_1
network: mainnet
source:
abi: SafeProxyFactory
address: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"
startBlock: 17440707
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/factory.ts
entities:
- Wallet
abis:
- name: SafeProxyFactory
file: ./abis/SafeProxyFactory_v1.4.1.json
- name: GnosisSafe
file: ./abis/GnosisSafe.json
eventHandlers:
- event: ProxyCreation(indexed address,address)
handler: handleProxyCreation_1_4_1
calls:
getOwners: GnosisSafe[event.params.proxy].getOwners()
getThreshold: GnosisSafe[event.params.proxy].getThreshold()
VERSION: GnosisSafe[event.params.proxy].VERSION()
templates:
- kind: ethereum/contract
name: Safe
network: mainnet
source:
abi: GnosisSafe
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/wallet.ts
entities:
- Wallet
abis:
- name: GnosisSafe
file: ./abis/GnosisSafe.json
- name: GnosisSafeL2
file: ./abis/GnosisSafeL2.json
eventHandlers:
- event: ChangedMasterCopy(address)
handler: handleChangedMasterCopy
- event: AddedOwner(address)
handler: handleAddedOwner
- event: RemovedOwner(address)
handler: handleRemovedOwner
- event: ChangedThreshold(uint256)
handler: handleChangedThreshold
- event: ExecutionFromModuleSuccess(indexed address)
handler: handleExecutionFromModuleSuccess
- event: ExecutionFromModuleFailure(indexed address)
handler: handleExecutionFromModuleFailure
- event: ExecutionSuccess(bytes32,uint256)
handler: handleExecutionSuccess
- event: ExecutionFailure(bytes32,uint256)
handler: handleExecutionFailure
callHandlers:
- function: execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)
handler: handleExecTransaction
- function: execTransactionFromModule(address,uint256,bytes,uint8)
handler: handleExecTransactionFromModule
- kind: ethereum/contract
name: SafeL2
network: mainnet
source:
abi: GnosisSafeL2
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/wallet.ts
entities:
- Wallet
abis:
- name: GnosisSafe
file: ./abis/GnosisSafe.json
- name: GnosisSafeL2
file: ./abis/GnosisSafeL2.json
eventHandlers:
- event: ChangedMasterCopy(address)
handler: handleChangedMasterCopy
- event: AddedOwner(address)
handler: handleAddedOwner
- event: RemovedOwner(address)
handler: handleRemovedOwner
- event: ChangedThreshold(uint256)
handler: handleChangedThreshold
- event: ExecutionFromModuleSuccess(indexed address)
handler: handleExecutionFromModuleSuccess
- event: ExecutionFromModuleFailure(indexed address)
handler: handleExecutionFromModuleFailure
- event: SafeModuleTransaction(address,address,uint256,bytes,uint8)
handler: handleSafeModuleTransaction
- event: ExecutionSuccess(bytes32,uint256)
handler: handleExecutionSuccess
- event: ExecutionFailure(bytes32,uint256)
handler: handleExecutionFailure
- event: SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)
handler: handleSafeMultiSigTransaction