-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsubgraph.yaml
142 lines (142 loc) · 4.27 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
specVersion: 0.0.4
description: Circles subgraph for The Graph to fastly query available data in the Circles UBI ecosystem
repository: https://github.com/CirclesUBI/circles-subgraph
schema:
file: ./schema.graphql
dataSources:
- name: Hub
kind: ethereum/contract
network: ${SUBGRAPH_NETWORK}
source:
address: "${HUB_ADDRESS}"
abi: Hub
startBlock: ${START_BLOCK}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/hub.ts
entities:
- Signup
- Token
- Trust
abis:
- name: Hub
file: ./node_modules/@circles/circles-contracts/build/contracts/Hub.json
eventHandlers:
- event: Signup(indexed address,address)
handler: handleSignup
- event: OrganizationSignup(indexed address)
handler: handleOrganizationSignup
- event: Trust(indexed address,indexed address,uint256)
handler: handleTrust
- event: HubTransfer(indexed address,indexed address,uint256)
handler: handleHubTransfer
- name: ProxyFactory
kind: ethereum/contract
network: ${SUBGRAPH_NETWORK}
source:
address: "${PROXY_FACTORY_ADDRESS}"
abi: ProxyFactory
startBlock: ${START_BLOCK}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/proxyFactory.ts
entities:
- ProxyCreation
- Safe
abis:
- name: ProxyFactory
file: ./node_modules/@gnosis.pm/safe-contracts/build/artifacts/contracts/proxies/GnosisSafeProxyFactory.sol/GnosisSafeProxyFactory.json
eventHandlers:
- event: ProxyCreation(address,address)
handler: handleProxyCreation
- name: ProxyFactoryCRC
kind: ethereum/contract
network: ${SUBGRAPH_NETWORK}
source:
address: "${PROXY_FACTORY_ADDRESS_CRC}"
abi: ProxyFactory
startBlock: ${START_BLOCK}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/proxyFactoryCRC.ts
entities:
- ProxyCreation
- Safe
abis:
- name: ProxyFactory
file: ./node_modules/@circles/safe-contracts/build/contracts/ProxyFactory.json
eventHandlers:
- event: ProxyCreation(address)
handler: handleProxyCreation
templates:
- name: GnosisSafe
kind: ethereum/contract
network: ${SUBGRAPH_NETWORK}
source:
abi: GnosisSafe
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/gnosisSafe.ts
entities:
- Safe
- User
abis:
- name: GnosisSafe
file: ./node_modules/@gnosis.pm/safe-contracts/build/artifacts/contracts/GnosisSafe.sol/GnosisSafe.json
eventHandlers:
- event: AddedOwner(address)
handler: handleAddedOwner
- event: RemovedOwner(address)
handler: handleRemovedOwner
- event: SafeSetup(indexed address,address[],uint256,address,address)
handler: handleSafeSetup
- name: GnosisSafeCRC
kind: ethereum/contract
network: ${SUBGRAPH_NETWORK}
source:
abi: GnosisSafe
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/gnosisSafeCRC.ts
entities:
- Safe
- User
abis:
- name: GnosisSafe
file: ./node_modules/@circles/safe-contracts/build/contracts/GnosisSafe.json
eventHandlers:
- event: AddedOwner(address)
handler: handleAddedOwner
- event: RemovedOwner(address)
handler: handleRemovedOwner
- name: Token
kind: ethereum/contract
network: ${SUBGRAPH_NETWORK}
source:
abi: Token
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/token.ts
entities:
- Token
- Balance
abis:
- name: Token
file: ./node_modules/@circles/circles-contracts/build/contracts/Token.json
- name: Hub
file: ./node_modules/@circles/circles-contracts/build/contracts/Hub.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer