watcher-ts/packages/graph-node/test/subgraph/example1/subgraph.yaml
prathamesh0 ffd1d267d8
Implement remaining json host APIs (#487)
* Instantiate a new wasm string to convert JSON value to BigInt

* Implement remaining json host APIs

* Upgrade graph-ts and graph-cli in test example subgraph

* Handle null context for dataSource context host API

* Use JSONBig for parsing JSON strings
2023-11-22 18:03:21 +05:30

27 lines
628 B
YAML

specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Example1
network: mainnet
source:
address: "0x1ca7c995f8eF0A2989BbcE08D5B7Efe50A584aa1"
abi: Example1
startBlock: 10
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Test
abis:
- name: Example1
file: ./abis/Example1.json
eventHandlers:
- event: Test(string,uint8,uint256)
handler: handleTest
blockHandlers:
- handler: handleBlock
file: ./src/mapping.ts