forked from balancer/balancer-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 2
/
subgraph.yaml
144 lines (144 loc) · 4.79 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
specVersion: 0.0.2
description: Swarm Network provides open technology to enable the creation and management of digital assets.
repository: https://github.com/Altoros/swarm-markets-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: mainnet
source:
address: "0x9186503AF1D7D3317b4C2c44A815BE984838C296"
abi: Factory
startBlock: 12434307
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Balancer
abis:
- name: Factory
file: ./abis/BFactory.json
- name: CRPFactory
file: ./abis/CRPFactory.json
- name: ConfigurableRightsPool
file: ./abis/ConfigurableRightsPool.json
eventHandlers:
- event: LOG_NEW_POOL(indexed address,indexed address)
handler: handleNewPool
- kind: ethereum/contract
name: XTokenWrapper
network: mainnet
source:
address: "0x2b9dc65253c035Eb21778cB3898eab5A0AdA0cCe"
abi: XTokenWrapper
startBlock: 12434318
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/xtokenwrapper.ts
entities:
- Token
abis:
- name: XTokenWrapper
file: ./abis/XTokenWrapper.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: RegisterToken(indexed address,indexed address)
handler: handleRegisterToken
templates:
- kind: ethereum/contract
name: Pool
network: mainnet
source:
abi: Pool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/pool.ts
entities:
- Pool
- Balancer
- Swap
abis:
- name: Pool
file: ./abis/BPool.json
- name: BToken
file: ./abis/BToken.json
- name: BTokenBytes
file: ./abis/BTokenBytes32.json
eventHandlers:
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x34e1990700000000000000000000000000000000000000000000000000000000"
handler: handleSetSwapFee
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x92eefe9b00000000000000000000000000000000000000000000000000000000"
handler: handleSetController
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x49b5955200000000000000000000000000000000000000000000000000000000"
handler: handleSetPublicSwap
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x4bb278f300000000000000000000000000000000000000000000000000000000"
handler: handleFinalize
- 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: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0xcf5e7bd300000000000000000000000000000000000000000000000000000000"
handler: handleUnbind
- event: LOG_JOIN(indexed address,indexed address,uint256)
handler: handleJoinPool
- event: LOG_EXIT(indexed address,indexed address,uint256)
handler: handleExitPool
- event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleSwap
- kind: ethereum/contract
name: CrpController
network: mainnet
source:
abi: ConfigurableRightsPool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/pool.ts
entities:
- Pool
abis:
- name: ConfigurableRightsPool
file: ./abis/ConfigurableRightsPool.json
eventHandlers:
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleSetCrpController
- kind: ethereum/contract
name: XToken
network: mainnet
source:
abi: XToken
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/xtoken.ts
entities:
- XToken
abis:
- name: XToken
file: ./abis/XToken.json
- name: GnosisSafe
file: ./abis/GnosisSafe.json
eventHandlers:
- event: Paused(address)
handler: handlePaused
- event: Unpaused(address)
handler: handleUnpaused
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer