-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject-acala.yaml
105 lines (99 loc) · 2.92 KB
/
project-acala.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
specVersion: "1.0.0"
name: "multichain-erc721-erc1155"
version: "0.0.1"
runner:
node:
name: "@subql/node-ethereum"
version: "*"
options:
historical: false
query:
name: "@subql/query"
version: "*"
description: "This project can be use as a starting point for developing your
new Ethereum SubQuery project"
repository: "https://github.com/subquery/ethereum-subql-starter"
schema:
file: "./schema.graphql"
network:
endpoint:
[
"https://eth-rpc-acala.aca-api.network"
]
# https://evmdocs.acala.network/network/network-configuration#acala-mainnet
chainId: "787"
dictionary: "https://api.subquery.network/sq/subquery/acala-dictionary__c3Vic"
dataSources:
- kind: ethereum/Runtime
startBlock: 1102550 # this is the first evmTransaction on the chain
mapping:
file: "./dist/index.js"
handlers:
- handler: handleContractCreation
kind: ethereum/TransactionHandler
filter:
to: null
# Contract Upgrade # https://blockscout.acala.network/tx/0xecde3a63f80a1f943e0e0d8b676340dd5701517e1694134b9857cf995da0b9c7/logs
- kind: ethereum/Runtime
startBlock: 1154839 # this is the first evmTransaction on the chain
options:
abi: erc1967
assets:
erc1967:
file: "./abis/erc1967.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleContractUpgrade
kind: ethereum/LogHandler
filter:
topics:
- Upgraded(address) # First Upgraded 1383167
- handler: handleContractUpgrade
kind: ethereum/LogHandler
filter:
topics:
- BeaconUpgraded(address) # First beaconUpgraded 1154839
- kind: ethereum/Runtime
startBlock: 1102550 # this is the first evmTransaction on the chain
options:
abi: erc1155
assets:
erc1155:
file: "./abis/erc1155.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleERC1155Single
kind: ethereum/LogHandler
filter:
topics:
- TransferSingle(address, address, address, uint256, uint256)
- handler: handleERC1155Batch
kind: ethereum/LogHandler
filter:
topics:
- TransferBatch(address, address, address, uint256[], uint256[])
- handler: handleERC1155Uri
kind: ethereum/LogHandler
filter:
topics:
- URI(string, uint256)
- kind: ethereum/Runtime
startBlock: 1102550 # this is the first evmTransaction on the chain
options:
abi: erc721
assets:
erc721:
file: "./abis/erc721.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleERC721Transfer
kind: ethereum/LogHandler
filter:
topics:
- Transfer(address, address, uint256)
-
-
- '!null'