-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
49 lines (49 loc) · 1.38 KB
/
subgraph.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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: MetaCoin
network: goerli
source:
address: "0xfdc006debd37838e9144f662968ee7b145e055b8"
abi: MetaCoin
startBlock: 9083875
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: MetaCoin
file: ./abis/MetaCoin.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256,int32,(address,uint256,(string,int32,uint256,uint256)[])[])
handler: handleTransfer
callHandlers:
- function: 'sendCoin(address,uint256)'
handler: handleSendCoin
file: ./src/meta-coin.ts
templates:
- kind: ethereum
name: MetaCoinTpl
network: goerli
source:
abi: MetaCoin
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: MetaCoin
file: ./abis/MetaCoin.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256,int32,(address,uint256,(string,int32,uint256,uint256)[])[])
handler: handleTransfer
callHandlers:
- function: 'sendCoin(address,uint256)'
handler: handleSendCoin
file: ./src/meta-coin.ts