-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubgraph.yaml
187 lines (186 loc) · 6.11 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
specVersion: 0.0.7
schema:
file: ./veSPA.graphql
dataSources:
- kind: ethereum
name: veSPA
network: arbitrum-one
source:
address: "0x2e2071180682Ce6C247B1eF93d382D509F5F6A17"
abi: veSPA
# startBlock: 9349300
startBlock: 171027893
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- GlobalCheckpoint
- OwnershipTransferred
- Supply
- UserCheckpoint
- Withdraw
abis:
- name: veSPA
file: ./abis/veSPA.json
eventHandlers:
- event: GlobalCheckpoint(address,uint256)
handler: handleGlobalCheckpoint
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: Supply(uint256,uint256)
handler: handleSupply
- event: UserCheckpoint(indexed uint8,bool,indexed address,uint256,indexed uint256)
handler: handleUserCheckpoint
- event: Withdraw(indexed address,uint256,uint256)
handler: handleWithdraw
file: ./src/veSPAMapping.ts
- kind: ethereum
name: RewardDistributor_v1
network: arbitrum-one
source:
address: "0x2c07bc934974BbF413a4a4CeDA98713DCb8d9e16"
abi: RewardDistributor_v1
# startBlock: 9719072
startBlock: 171027893
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CheckpointAllowed
- Claimed
- Killed
- MaxIterationsUpdated
- OwnershipTransferred
- RecoveredERC20
- RewardsCheckpointed
abis:
- name: RewardDistributor_v1
file: ./abis/RewardDistributor_v1.json
eventHandlers:
- event: CheckpointAllowed(bool)
handler: handleCheckpointAllowed
- event: Claimed(indexed address,bool,uint256,uint256,uint256)
handler: handleClaimed
- event: Killed()
handler: handleKilled
- event: MaxIterationsUpdated(uint256,uint256)
handler: handleMaxIterationsUpdated
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: RecoveredERC20(address,uint256)
handler: handleRecoveredERC20
- event: RewardsCheckpointed(uint256)
handler: handleRewardsCheckpointed
file: ./src/RD.ts
- kind: ethereum
name: rewardDistributorV2
network: arbitrum-one
source:
address: "0xC9869e40e36A18546Df54A941B28aF21674aE512"
abi: rewardDistributorV2
# startBlock: 24747020
startBlock: 171027893
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CheckpointAllowed
- Claimed
- Killed
- MaxIterationsUpdated
- OwnershipTransferred
- RecoveredERC20
- RewardsCheckpointed
abis:
- name: rewardDistributorV2
file: ./abis/rewardDistributorV2.json
eventHandlers:
- event: CheckpointAllowed(bool)
handler: handleCheckpointAllowedV2
- event: Claimed(indexed address,bool,uint256,uint256,uint256)
handler: handleClaimedV2
- event: Killed()
handler: handleKilledV2
- event: MaxIterationsUpdated(uint256,uint256)
handler: handleMaxIterationsUpdatedV2
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferredV2
- event: RecoveredERC20(address,uint256)
handler: handleRecoveredERC20V2
- event: RewardsCheckpointed(uint256)
handler: handleRewardsCheckpointedV2
file: ./src/RD_V2.ts
# - kind: ethereum
# name: xSPA
# network: arbitrum-one
# source:
# address: "0x0966E72256d6055145902F72F9D3B6a194B9cCc3"
# abi: xSPA
# startBlock: 128257830
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.6
# language: wasm/assemblyscript
# entities:
# - Approval
# - Initialized
# - OwnershipTransferred
# - RedemptionRequested
# - SPARedeemed
# - StakedInVeSPA
# - Transfer
# abis:
# - name: xSPA
# file: ./abis/xSPA.json
# eventHandlers:
# - event: Approval(indexed address,indexed address,uint256)
# handler: handleApproval
# - event: Initialized(uint8)
# handler: handleInitialized
# - event: OwnershipTransferred(indexed address,indexed address)
# handler: handleOwnershipTransferred
# - event: RedemptionRequested(indexed address,uint256,uint256,uint256)
# handler: handleRedemptionRequested
# - event: SPARedeemed(indexed address,indexed address,uint256,uint256)
# handler: handleSPARedeemed
# - event: StakedInVeSPA(indexed address,uint128)
# handler: handleStakedInVeSPA
# - event: Transfer(indexed address,indexed address,uint256)
# handler: handleTransfer
# file: ./src/x-spa.ts
- kind: ethereum
name: RD_V3
network: arbitrum-one
source:
address: "0x5ed5c72d24ff0931e5a38c2969160dfe259e7c05"
abi: RD_V3
# startBlock: 161891965
startBlock: 171027893
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Claimed
- RecoveredERC20
- RewardAdded
- RewardTokenRecovered
- RewardTokenRegistered
abis:
- name: RD_V3
file: ./abis/RD_V3.json
eventHandlers:
- event: Claimed(indexed address,uint256,uint256[])
handler: handleClaimed
- event: RecoveredERC20(indexed address,uint256)
handler: handleRecoveredERC20
- event: RewardAdded(indexed address,uint256,uint256)
handler: handleRewardAdded
- event: RewardTokenRecovered(indexed address,indexed address,uint256)
handler: handleRewardTokenRecovered
- event: RewardTokenRegistered(indexed address)
handler: handleRewardTokenRegistered
file: ./src/rd-v-3.ts