-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.yaml
49 lines (48 loc) · 1.43 KB
/
project.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
specVersion: 0.2.0
name: moonbuilders-demo
version: 1.0.0
description: ''
repository: '[email protected]:stwiname/moonbuilders-demo.git'
schema:
file: ./schema.graphql
network:
genesisHash: '0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b'
endpoint: 'wss://moonriver.api.onfinality.io/public-ws'
dictionary: 'https://api.subquery.network/sq/subquery/moonriver-dictionary'
chaintypes:
file: "./types.yaml"
dataSources:
- kind: substrate/Runtime
startBlock: 69218
mapping:
file: './dist/index.js'
handlers:
- handler: collatorJoined
kind: substrate/EventHandler
filter:
module: parachainStaking
method: JoinedCollatorCandidates
- handler: collatorLeft
kind: substrate/CallHandler
filter:
module: parachainStaking
method: leaveCandidates
- kind: substrate/Moonbeam
startBlock: 562683
processor:
file: './node_modules/@subql/contract-processors/dist/moonbeam.js'
options:
# Must be a key of assets
abi: erc20
address: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b'
assets:
erc20:
file: './erc20.abi.json'
mapping:
file: ./dist/index.js
handlers:
- handler: erc20Transfer
kind: substrate/MoonbeamEvent
filter:
topics:
- Transfer(address indexed from,address indexed to,uint256 value)