-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
250 lines (250 loc) · 8.01 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: OverlayV1Factory
network: arbitrum-sepolia
source:
address: "0xa2dBe262D27647243Ac3187d05DBF6c3C6ECC14D"
abi: OverlayV1Factory
startBlock: 45021636
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- FeeRecipientUpdated
- FeedFactoryAdded
- MarketDeployed
- ParamUpdated
abis:
- name: OverlayV1Factory
file: ./abis/OverlayV1Factory.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: OverlayV1State
file: ./abis/OverlayV1State.json
- name: OverlayV1Market
file: ./abis/OverlayV1Market.json
eventHandlers:
- event: FeeRecipientUpdated(indexed address,address)
handler: handleFeeRecipientUpdated
- event: FeedFactoryAdded(indexed address,address)
handler: handleFeedFactoryAdded
- event: MarketDeployed(indexed address,address,address)
handler: handleMarketDeployed
- event: ParamUpdated(indexed address,indexed address,uint8,uint256)
handler: handleParamUpdated
- event: EmergencyShutdown(indexed address,indexed address)
handler: handleEmergencyShutdown
file: ./src/mapping.ts
- kind: ethereum
name: TokenStake
network: arbitrum-sepolia
source:
address: "0x0000000000000000000000000000000000000000"
abi: TokenStake
startBlock: 45021636
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- RewardsClaimed
- TokensStaked
- TokensWithdrawn
- StakingPosition
- Staking
abis:
- name: TokenStake
file: ./abis/TokenStake.json
eventHandlers:
- event: RewardTokensDepositedByAdmin(uint256)
handler: handleRewardTokensDepositedByAdmin
- event: RewardTokensWithdrawnByAdmin(uint256)
handler: handleRewardTokensWithdrawnByAdmin
- event: RewardsClaimed(indexed address,uint256)
handler: handleRewardsClaimed
- event: TokensStaked(indexed address,uint256)
handler: handleTokensStaked
- event: TokensWithdrawn(indexed address,uint256)
handler: handleTokensWithdrawn
- event: UpdatedRewardRatio(uint256,uint256,uint256,uint256)
handler: handleUpdatedRewardRatio
- event: UpdatedTimeUnit(uint256,uint256)
handler: handleUpdatedTimeUnit
file: ./src/token-stake.ts
- kind: ethereum
name: OverlayV1Token
network: arbitrum-sepolia
source:
address: "0x3E27fAe625f25291bFda517f74bf41DC40721dA2"
abi: OverlayV1Token
startBlock: 45021636
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- TokenTransfer
- TokenPosition
- ERC20Token
abis:
- name: OverlayV1Token
file: ./abis/OverlayV1Token.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransferOVL
file: ./src/erc20.ts
- kind: ethereum
name: PlanckCat
network: arbitrum-sepolia
source:
address: "0x0000000000000000000000000000000000000000"
abi: PlanckCat
startBlock: 45021636
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- ERC721Transfer
- ERC721NFT
- ERC721Token
abis:
- name: PlanckCat
file: ./abis/PlanckCat.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/planck-cat.ts
- kind: ethereum
name: ReferralList
network: arbitrum-sepolia
source:
address: "0x0000000000000000000000000000000000000000"
abi: ReferralList
startBlock: 45021636
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- addEvents
abis:
- name: ReferralList
file: ./abis/ReferralList.json
eventHandlers:
- event: AllowAffiliate(address)
handler: handleAllowAffiliate
- event: AllowKOL(address)
handler: handleAllowKOL
- event: AddAffiliateOrKOL(address,address)
handler: handleAddAffiliateOrKOL
- event: SetRewardToken(address)
handler: handleSetRewardToken
- event: SetAffiliateComission(uint8,uint48)
handler: handleSetAffiliateComission
- event: SetTraderDiscount(uint8,uint48)
handler: handleSetTraderDiscount
- event: ClaimRewards(indexed address,uint256)
handler: handleClaimRewards
file: ./src/referral.ts
- kind: ethereum
name: TradingMining
network: arbitrum-sepolia
source:
address: "0x0000000000000000000000000000000000000000"
abi: TradingMining
startBlock: 45021636
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- addEvents
abis:
- name: TradingMining
file: ./abis/TradingMining.json
eventHandlers:
- event: RewardTokensUpdated(indexed address,uint8)
handler: handleRewardTokensUpdated
- event: TotalRewardsUpdated(uint256)
handler: handleTotalRewardsUpdated
- event: PcdHolderBonusPercentageUpdated(uint8)
handler: handlePcdHolderBonusPercentageUpdated
file: ./src/trading-mining.ts
- kind: ethereum
name: PowerCard
network: arbitrum-sepolia
source:
address: "0x07e70171D6a764a9370546Eb39Bc74A0E34424a0"
abi: PowerCard
startBlock: 232882664
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PowerCard
abis:
- name: PowerCard
file: ./abis/PowerCard.json
eventHandlers:
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatch
- event: URI(string,indexed uint256)
handler: handleURIChange
file: ./src/power-card.ts
templates:
- kind: ethereum
name: OverlayV1Market
network: arbitrum-sepolia
source:
abi: OverlayV1Market
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Build
- Liquidate
- Unwind
abis:
- name: OverlayV1Market
file: ./abis/OverlayV1Market.json
- name: OverlayV1Factory
file: ./abis/OverlayV1Factory.json
- name: ERC20
file: ./abis/ERC20.json
- name: OverlayV1State
file: ./abis/OverlayV1State.json
- name: TradingMining
file: ./abis/TradingMining.json
eventHandlers:
- event: Build(indexed address,uint256,uint256,uint256,bool,uint256,uint256,uint256)
handler: handleBuild
receipt: true
- event: Liquidate(indexed address,indexed address,uint256,int256,uint256,uint256,uint256)
handler: handleLiquidate
receipt: true
- event: Unwind(indexed address,uint256,uint256,int256,uint256,uint256,uint256)
handler: handleUnwind
receipt: true
- event: EmergencyWithdraw(indexed address,uint256,uint256)
handler: handleEmergencyWithdraw
receipt: true
- event: CacheRiskCalc(uint256)
handler: handleCacheRiskCalc
receipt: true
- event: Update(uint256,uint256)
handler: handleUpdate
receipt: true
file: ./src/mapping.ts