-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspaL2Subgraph.yaml
60 lines (60 loc) · 1.79 KB
/
spaL2Subgraph.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
specVersion: 0.0.2
schema:
file: ./l2.graphql
dataSources:
- kind: ethereum
name: SperaxL2
network: arbitrum-one
source:
address: "0x5575552988A3A80504bBaeB1311674fCFd40aD4B"
abi: SperaxL2
# startBlock: 3932095
startBlock: 6067182
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: SperaxL2
file: ./abis/SperaxL2.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/speraxL2mapping.ts
- kind: ethereum
name: SPA_Staking_Farm
network: arbitrum-one
source:
address: "0xc150cbdDC5932258fAc768bEB4d2352D127039fd"
startBlock: 6014438
abi: SPA_Staking_Farm
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- OwnershipTransferred
- RewardFrozen
- Staked
- StakingEnabled
- Withdrawn
- WithdrawnWithPenalty
abis:
- name: SPA_Staking_Farm
file: ./abis/SPA_Staking_Farm.json
eventHandlers:
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: RewardFrozen(indexed address,bool)
handler: handleRewardFrozen
- event: Staked(indexed address,uint256,uint256)
handler: handleStaked
- event: StakingEnabled(bool)
handler: handleStakingEnabled
- event: Withdrawn(indexed address,uint256,uint256)
handler: handleWithdrawn
- event: WithdrawnWithPenalty(indexed address,uint256,uint256)
handler: handleWithdrawnWithPenalty
file: ./src/SPA_Farm_Mapping.ts