-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
32 lines (32 loc) · 960 Bytes
/
subgraph.yaml
File metadata and controls
32 lines (32 loc) · 960 Bytes
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
specVersion: 0.0.2
description: Loopring Staking Subgraph
repository: https://github.com/crypkit/loopring-staking-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: UserStakingPool
network: mainnet
source:
address: '0xF4662bB1C4831fD411a95b8050B3A5998d8A4A5b'
abi: UserStakingPool
startBlock: 8967548
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- LRCRewarded
- LRCStaked
- LRCWithdrawn
abis:
- name: UserStakingPool
file: ./abis/UserStakingPool.json
eventHandlers:
- event: LRCRewarded(indexed address,uint256)
handler: handleLRCRewarded
- event: LRCStaked(indexed address,uint256)
handler: handleLRCStaked
- event: LRCWithdrawn(indexed address,uint256)
handler: handleLRCWithdrawn
file: ./src/mapping.ts