-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
59 lines (59 loc) · 1.68 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
specVersion: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: dgnETHStaked
network: mainnet
source:
address: "0x5BDd1fA233843Bfc034891BE8a6769e58F1e1346"
abi: dgnETHStaked
startBlock: 20069226
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Deposit
- RewardDistributionUpdated
- Withdraw
- Amount
- DailyTokenSupply
- DailyStakeTokenSupply
abis:
- name: dgnETHStaked
file: ./abis/dgnETHStaked.json
eventHandlers:
- event: Deposit(indexed address,indexed address,uint256,uint256)
handler: handleDeposit
- event: RewardDistributionUpdated(uint256,uint256,uint256)
handler: handleRewardDistributionUpdated
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Withdraw(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleWithdraw
file: ./src/dgn-eth-staked.ts
- kind: ethereum
name: dgnETH
network: mainnet
source:
address: "0x005f893ecd7bf9667195642f7649da8163e23658"
abi: dgnETH
startBlock: 20063770
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Amount
- DailyTokenSupply
- DailyStakeTokenSupply
abis:
- name: dgnETH
file: ./abis/dgnETH.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/dgn-eth.ts