-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubgraph_L1.yaml
113 lines (112 loc) · 3.6 KB
/
subgraph_L1.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
specVersion: 0.0.2
schema:
file: ./veSPA.graphql
dataSources:
- kind: ethereum
name: veSPA
network: mainnet
source:
address: "0xbF82a3212e13b2d407D10f5107b5C8404dE7F403"
abi: veSPA
startBlock: 14527094
mapping:
kind: ethereum/events
apiVersion: 0.0.5
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: mainnet
source:
address: "0xa61DD4480BE2582283Afa54E461A1d3643b36040"
abi: RewardDistributor_v1
startBlock: 14574618
mapping:
kind: ethereum/events
apiVersion: 0.0.5
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: mainnet
source:
address: "0x080F26e2Fcdb2398BF289378892b5b330C3411Db"
abi: rewardDistributorV2
startBlock: 15539462
mapping:
kind: ethereum/events
apiVersion: 0.0.5
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