-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.template.yaml
More file actions
31 lines (31 loc) · 969 Bytes
/
subgraph.template.yaml
File metadata and controls
31 lines (31 loc) · 969 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
specVersion: 0.0.1
description: ZtakingPool
repository: https://github.com/zircuit-labs/zkr-staking
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ZtakingPool
network: {{ network }}
source:
address: "{{ address }}"
abi: ZtakingPool
startBlock: {{ startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- EventToken
- Transfer
abis:
- name: ZtakingPool
file: ./abis/{{ file }}.json
eventHandlers:
- event: Migrate(indexed uint256,indexed address,address[],address,address,uint256[])
handler: handleMigrate
- event: Deposit(indexed uint256,indexed address,indexed address,uint256)
handler: handleDeposit
- event: Withdraw(indexed uint256,indexed address,indexed address,uint256)
handler: handleWithdraw
file: ./src/mapping.ts