-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject-moonbeam.yaml
79 lines (74 loc) · 2.43 KB
/
project-moonbeam.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
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: "1284"
endpoint:
# - wss://moonbeam.api.onfinality.io/public-ws
- https://rpc.api.moonbeam.network
dictionary: "https://api.subquery.network/sq/subquery/moonbeam-dictionary"
dataSources:
- kind: ethereum/Runtime
startBlock: 179679
options:
abi: erc721
assets:
erc721:
file: "./abis/erc721.abi.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleMoonbeamTransfer
kind: ethereum/LogHandler
filter:
topics:
- Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
# TofuNft Marketplace
- kind: ethereum/Runtime
startBlock: 179679
options:
abi: tofuNft
address: "0x7bc8b1B5AbA4dF3Be9f9A32daE501214dC0E4f3f"
assets:
tofuNft:
file: "./abis/tofuNft.abi.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleMoonbeamTofuSale
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)"
# Moonbeans Marketplace
- kind: ethereum/Runtime
startBlock: 809491
options:
abi: moonbeans
address: "0x683724817a7d526d6256Aec0D6f8ddF541b924de"
assets:
moonbeans:
file: "./abis/moonbeans.abi.json"
mapping:
file: "./dist/index.js"
handlers:
- handler: handleMoonbeamMoonbeansListing
kind: ethereum/LogHandler
filter:
topics:
- TokenListed(address indexed token, uint256 indexed id, uint256 indexed price, uint256 timestamp)
- handler: handleMoonbeamMoonbeansSale
kind: ethereum/LogHandler
filter:
topics:
- TokenPurchased(address indexed oldOwner, address indexed newOwner, uint256 indexed price, address collection, uint256 tokenId)