-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
27 lines (26 loc) · 965 Bytes
/
subgraph.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
specVersion: 0.0.4
description: inventory of everything # the name of the subgraph
repository: https://github.com/near-everything/subgraph # repo where subgraph project is stored
schema:
file: ./schema.graphql
features:
- nonFatalErrors
dataSources:
# ---------------------------------------------------------
# ITEMS ---------------------------------------------------
# ---------------------------------------------------------
- kind: near
name: Token
network: near-testnet # can choose either near-mainnet or near-testnet
source:
account: v1.everything.testnet # contract account you want to pull data from
startBlock: 98365875 # starting block on near-mainnet for indexing
mapping:
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/handlers/inventory.ts
entities:
- Token
- User
receiptHandlers:
- handler: handleReceipt # name of the receipt handler