-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.yaml
66 lines (66 loc) · 2.18 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
specVersion: 1.0.0
name: moonbeam-evm-starter
version: 0.0.1
runner:
node:
name: '@subql/node'
version: '>=0.35.0'
query:
name: '@subql/query'
version: '>=0.16.0'
description: Moonbeam / SubQuery Course — Building dApps with the help of SubQuery
repository: 'https://github.com/deverka/moonbeam_subquery_tutorial'
schema:
file: ./schema.graphql
network:
chainId: '0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b' # Genesis hash of Moonriver
endpoint: 'wss://moonriver.api.onfinality.io/public-ws'
# Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing
dictionary: 'https://api.subquery.network/sq/subquery/moonriver-dictionary'
chaintypes:
file: ./dist/chaintypes.js
dataSources:
- kind: substrate/FrontierEvm
startBlock: 424026
processor:
file: ./node_modules/@subql/frontier-evm-processor/dist/bundle.js
options:
abi: erc20
address: '0x6bd193ee6d2104f14f94e2ca6efefae561a4334b'
assets:
erc20:
file: ./erc20.abi.json
mapping:
file: ./dist/index.js
handlers:
- handler: handleFrontierEvmEvent
kind: substrate/FrontierEvmEvent
filter:
topics:
## Example valid values:
# - '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
# - Transfer(address,address,u256)
# - Transfer(address from,address to,uint256 value)
- 'Transfer(address indexed from,address indexed to,uint256 value)'
- null
- null
- null
- handler: handleFrontierEvmCall
kind: substrate/FrontierEvmCall
filter:
function: 'approve(address to,uint256 value)'
- 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