-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsubgraph.template.yaml
89 lines (87 loc) · 2.56 KB
/
subgraph.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
specVersion: 0.0.4
description: Gnosis Safe Subgraph
features:
- nonFatalErrors
- grafting
# graft:
# base: QmRYrGKGGBzRJCEZNaeFdrKjNsrA8JVbY9rYExz1fS1ybD
# block: 15013333
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: GnosisSafeProxyFactory_v1_1_1
network: {{network}}
source:
address: '{{factory.v1_1_1.addr}}'
abi: GnosisSafeProxyFactory
startBlock: {{factory.v1_1_1.birthBlock}}
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
- kind: ethereum/contract
name: GnosisSafeProxyFactory_v1_3_0
network: {{network}}
source:
address: '{{factory.v1_3_0.addr}}'
abi: GnosisSafeProxyFactory
startBlock: {{factory.v1_3_0.birthBlock}}
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
templates:
- kind: ethereum/contract
name: GnosisSafe
network: {{network}}
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: AddedOwner(address)
handler: handleAddedOwner
- event: RemovedOwner(address)
handler: handleRemovedOwner
- event: ChangedThreshold(uint256)
handler: handleChangedThreshold
- 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