-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
149 lines (146 loc) · 4.64 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: index
network: mainnet
source:
address: "0x2971adfa57b20e5a416ae5a708a8655a9c74f723"
abi: index
startBlock: 9747000
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- DSA
- InstaIndex
- AccountModule
- Check
abis:
- name: index
file: ./abis/index.json
- name: InstaAccountVersion
file: ./abis/InstaAccountVersion.json
eventHandlers:
- event: LogAccountCreated(address,indexed address,indexed address,indexed address)
handler: handleLogAccountCreated
- event: LogNewAccount(indexed address,indexed address,indexed address)
handler: handleLogNewAccount
- event: LogNewCheck(indexed uint256,indexed address)
handler: handleLogNewCheck
- event: LogNewMaster(indexed address)
handler: handleLogNewMaster
- event: LogUpdateMaster(indexed address)
handler: handleLogUpdateMaster
callHandlers:
- function: setBasics(address,address,address,address)
handler: handleSetBasics
file: ./src/mapping.ts
- kind: ethereum/contract
name: ConnectorsV2
network: mainnet
source:
address: "0x97b0B3A8bDeFE8cB9563a3c610019Ad10DB8aD11"
abi: ConnectorsV2
startBlock: 12061000
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Connectors
- Chief
abis:
- name: ConnectorsV2
file: ./abis/ConnectorsV2.json
eventHandlers:
- event: LogConnectorAdded(indexed bytes32,string,indexed address)
handler: handleLogConnectorAdded
- event: LogConnectorUpdated(indexed bytes32,string,indexed address,indexed address)
handler: handleLogConnectorUpdated
- event: LogConnectorRemoved(indexed bytes32,string,indexed address)
handler: handleLogConnectorRemoved
- event: LogController(indexed address,indexed bool)
handler: handleLogController
file: ./src/mapping.ts
- kind: ethereum/contract
name: InstaImplementations
network: mainnet
source:
address: "0xCBA828153d3a85b30B5b912e1f2daCac5816aE9D"
abi: InstaImplementations
startBlock: 12061000
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- InstaImplementation
- Implementations
abis:
- name: InstaImplementations
file: ./abis/InstaImplementations.json
eventHandlers:
- event: LogSetDefaultImplementation(indexed address,indexed address)
handler: handleLogSetDefaultImplementation
- event: LogAddImplementation(indexed address,bytes4[])
handler: handleLogAddImplementation
- event: LogRemoveImplementation(indexed address,bytes4[])
handler: handleLogRemoveImplementation
file: ./src/mapping.ts
templates:
- kind: ethereum/contract
name: InstaAccountV1
network: mainnet
source:
abi: InstaAccountV1
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- DSA
- Cast
- hourlyCastedDSA
abis:
- name: InstaAccountV1
file: ./abis/InstaAccountV1.json
eventHandlers:
- event: LogEnable(indexed address)
handler: handleLogEnable
- event: LogDisable(indexed address)
handler: handleLogDisable
- event: LogSwitchShield(bool)
handler: handleLogSwitchShield
- event: LogCast(indexed address,indexed address,uint256)
handler: handleLogCast
callHandlers:
- function: cast(address[],bytes[],address)
handler: handleCast
file: ./src/mapping.ts
- kind: ethereum/contract
name: InstaAccountV2
network: mainnet
source:
abi: InstaAccountV2
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- DSA
- Cast
- hourlyCastedDSA
abis:
- name: InstaAccountV2
file: ./abis/InstaAccountV2.json
eventHandlers:
- event: LogEnableUser(indexed address)
handler: handleLogEnableUser
- event: LogDisableUser(indexed address)
handler: handleLogDisableUser
- event: LogCast(indexed address,indexed address,uint256,string[],address[],string[],bytes[])
handler: handleLogCastV2
file: ./src/mapping.ts