-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject-astar.yaml
58 lines (54 loc) · 1.73 KB
/
project-astar.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
specVersion: "1.0.0"
name: "nifty-query"
version: "0.0.1"
runner:
node:
name: "@subql/node-ethereum"
version: "*"
query:
name: "@subql/query"
version: "*"
description: "A multi-chain nft indexer for Astar, Moonbeam, Moonriver and Shiden"
repository: "https://github.com/iphyman/nifty-query"
schema:
file: "./schema.graphql"
network:
chainId: "592"
endpoint:
# - https://astar.api.onfinality.io/public
# - wss://astar.api.onfinality.io/public-ws
- https://evm.astar.network
dictionary: "https://api.subquery.network/sq/subquery/astar-dictionary"
dataSources:
- kind: ethereum/Runtime
startBlock: 225714
options:
abi: erc721
# address: "0xa624cb7c08338bbc0274686c45c5eEDd095A8dF9"
assets:
erc721:
file: "./abis/erc721.abi.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleAstarTransfer
kind: ethereum/LogHandler
filter:
topics:
- Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
# TofuNft Marketplace
- kind: ethereum/Runtime
startBlock: 225714
options:
abi: tofuNft
address: "0x7Cae7FeB55349FeADB8f84468F692450D92597bc"
assets:
tofuNft:
file: "./abis/tofuNft.abi.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleAstarTofuSale
kind: ethereum/TransactionHandler
filter:
function: run((address,(address,uint256,uint256,uint8,bytes)[],address,uint256,uint256,bytes32,uint8),(bytes32,address,uint256,bytes32,uint256,uint8,address,address,uint256,uint256,(uint256[],uint256,uint256,uint256,address,address),(address,uint256,uint256,uint8,bytes)[],uint256),bytes,bytes)