-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject-shiden.yaml
57 lines (53 loc) · 1.67 KB
/
project-shiden.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
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: "336"
endpoint:
# - wss://shiden.api.onfinality.io/public-ws
- https://shiden.api.onfinality.io/public
dictionary: "https://api.subquery.network/sq/subquery/shiden-dictionary"
dataSources:
# Any Standard ERC721
- kind: ethereum/Runtime
startBlock: 686000
options:
abi: erc721
assets:
erc721:
file: "./abis/erc721.abi.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleShidenTransfer
kind: ethereum/LogHandler
filter:
topics:
- Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
# TofuNft Marketplace
- kind: ethereum/Runtime
startBlock: 686024
options:
abi: tofuNft
address: "0x7bc8b1B5AbA4dF3Be9f9A32daE501214dC0E4f3f"
assets:
tofuNft:
file: "./abis/tofuNft.abi.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleShidenTofuSale
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)"