-
Notifications
You must be signed in to change notification settings - Fork 4
/
subgraph.yaml
78 lines (78 loc) · 2.3 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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: OlympusStakingV1
network: mainnet
source:
address: "0x0822f3c03dcc24d200aff33493dc08d0e1f274a2"
abi: OlympusStakingV1
startBlock: 12085272
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Action
abis:
- name: OlympusStakingV1
file: ./abis/OlympusStakingV1.json
callHandlers:
- function: stakeOHM(uint256)
handler: handleV1Stake
- function: stakeOHMWithPermit(uint256,uint256,uint8,bytes32,bytes32)
handler: handleV1StakeWithPermit
- function: unstakeOHM(uint256)
handler: handleV1Unstake
- function: unstakeOHMWithPermit(uint256,uint256,uint8,bytes32,bytes32)
handler: handleV1UnstakeWithPermit
file: ./src/handleAction.ts
- kind: ethereum
name: OlympusStakingV2
network: mainnet
source:
address: "0xfd31c7d00ca47653c6ce64af53c1571f9c36566a"
abi: OlympusStakingV2
startBlock: 12622679
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Action
abis:
- name: OlympusStakingV2
file: ./abis/OlympusStakingV2.json
callHandlers:
- function: stake(uint256,address)
handler: handleV2Stake
- function: unstake(uint256,bool)
handler: handleV2Unstake
file: ./src/handleAction.ts
- kind: ethereum
name: OlympusStakingV3
network: mainnet
source:
address: "0xB63cac384247597756545b500253ff8E607a8020"
abi: OlympusStakingV3
startBlock: 13804019
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Action
abis:
- name: OlympusStakingV3
file: ./abis/OlympusStakingV3.json
callHandlers:
- function: stake(address,uint256,bool,bool)
handler: handleV3Stake
- function: unstake(address,uint256,bool,bool)
handler: handleV3Unstake
- function: wrap(address,uint256)
handler: handleV3Wrap
- function: unwrap(address,uint256)
handler: handleV3Unwrap
file: ./src/handleAction.ts