-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.template.yaml
76 lines (76 loc) · 2.06 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
specVersion: 0.0.2
description: wBAN Subgraph
repository: https://github.com/wBanano/wban-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: WBANToken
network: {{network}}
source:
address: '{{wban_address}}'
abi: WBANToken
#startBlock: 7921830
startBlock: {{wban_start_block}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/wban.ts
entities:
- WBAN
abis:
- name: WBANToken
file: ./abis/WBANToken.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: SwapToBan(indexed address,string,uint256)
handler: handleSwapToBan
- kind: ethereum/contract
name: Benis
network: {{network}}
source:
address: '{{benis_address}}'
abi: Benis
startBlock: {{benis_start_block}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/benis.ts
entities:
- Benis
abis:
- name: Benis
file: ./abis/Benis.json
#- name: Pair
# file: ./abis/Pair.json
#- name: ERC20
# file: ./abis/ERC20.json
eventHandlers:
- event: Deposit(indexed address,indexed uint256,uint256)
handler: handleDeposit
- event: Withdraw(indexed address,indexed uint256,uint256)
handler: handleWithdraw
- event: EmergencyWithdraw(indexed address,indexed uint256,uint256)
handler: handleEmergencyWithdraw
#templates:
# - kind: ethereum/contract
# name: Pair
# network: {{network}}
# source:
# abi: Pair
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.4
# language: wasm/assemblyscript
# file: ./src/mappings/pair.ts
# entities:
# - Pair
# - Token
# abis:
# - name: Pair
# file: ./abis/Pair.json
# - name: ERC20
# file: ./abis/ERC20.json