This repository has been archived by the owner on Feb 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.template.yaml
78 lines (76 loc) · 2.75 KB
/
subgraph.template.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.2
description: mStable Governance
repository: https://github.com/mstable/mStable-governance-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: IncentivisedVotingLockup
network: '{{network}}'
source:
abi: IncentivisedVotingLockup
address: '{{address_IncentivisedVotingLockup}}'
startBlock: {{startBlock_IncentivisedVotingLockup}}
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/mappings/IncentivisedVotingLockup.ts
entities:
- UserLockup
- IncentivisedVotingLockup
- RewardsDistributor
- StakingReward
- StakingBalance
- Token
- Transaction
abis:
- name: IncentivisedVotingLockup
file: ./lib/mStable-contracts/build/contracts/IncentivisedVotingLockup.json
- name: IERC20WithCheckpointing
file: ./lib/mStable-contracts/build/contracts/IERC20WithCheckpointing.json
- name: ERC20Detailed
file: ./lib/mStable-contracts/build/contracts/ERC20Detailed.json
eventHandlers:
- event: Deposit(indexed address,uint256,uint256,indexed uint8,uint256)
handler: handleDeposit
- event: Withdraw(indexed address,uint256,uint256)
handler: handleWithdraw
- event: Ejected(indexed address,address,uint256)
handler: handleEjected
- event: Expired()
handler: handleExpired
- event: RewardAdded(uint256)
handler: handleRewardAdded
- event: RewardPaid(indexed address,uint256)
handler: handleRewardPaid
- kind: ethereum/contract
name: RewardsDistributor
network: '{{network}}'
source:
abi: RewardsDistributor
address: '{{address_RewardsDistributor}}'
startBlock: {{startBlock_RewardsDistributor}}
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/mappings/RewardsDistributor.ts
entities:
- RewardsDistributor
- Token
- IncentivisedVotingLockup
abis:
- name: RewardsDistributor
file: ./lib/mStable-contracts/build/contracts/RewardsDistributor.json
- name: ERC20Detailed
file: ./lib/mStable-contracts/build/contracts/ERC20Detailed.json
- name: IncentivisedVotingLockup
file: ./lib/mStable-contracts/build/contracts/IncentivisedVotingLockup.json
eventHandlers:
- event: RemovedFundManager(indexed address)
handler: handleRemovedFundManager
- event: Whitelisted(indexed address)
handler: handleWhitelisted
- event: DistributedReward(address,address,address,uint256)
handler: handleDistributedReward