-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.template.yaml
62 lines (62 loc) · 2.29 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
specVersion: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Distribution
network: "{{ network }}"
source:
address: "{{ distribution }}"
abi: Distribution
startBlock: +{{ distributionStartBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AdminChanged
- BeaconUpgraded
- Initialized
- OverplusBridged
- OwnershipTransferred
- PoolCreated
- PoolEdited
- Upgraded
- UserClaimed
- UserStaked
- UserWithdrawn
abis:
- name: Distribution
file: ./abis/Distribution.json
eventHandlers:
- event: AdminChanged(address,address)
handler: handleAdminChanged
- event: BeaconUpgraded(indexed address)
handler: handleBeaconUpgraded
- event: Initialized(uint8)
handler: handleInitialized
- event: OverplusBridged(uint256,bytes)
handler: handleOverplusBridged
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: PoolCreated(indexed uint256,(uint128,uint128,uint128,uint128,uint128,uint256,uint256,uint256,bool))
handler: handlePoolCreated
- event: PoolEdited(indexed uint256,(uint128,uint128,uint128,uint128,uint128,uint256,uint256,uint256,bool))
handler: handlePoolEdited
- event: Upgraded(indexed address)
handler: handleUpgraded
- event: UserClaimed(indexed uint256,indexed address,address,uint256)
handler: handleUserClaimed
- event: UserStaked(indexed uint256,indexed address,uint256)
handler: handleUserStaked
- event: UserWithdrawn(indexed uint256,indexed address,uint256)
handler: handleUserWithdrawn
- event: UserClaimLocked(indexed uint256,indexed address,uint128,uint128)
handler: handleUserClaimLocked
- event: UserReferred(indexed uint256,indexed address,indexed address,uint256)
handler: handleUserReferred
- event: ReferrerClaimed(indexed uint256,indexed address,address,uint256)
handler: handleReferrerClaimed
file: ./src/mappings/distribution.ts