watcher-ts/packages/graph-node/test/subgraph/example1/subgraph.yaml
Ashwin Phatak bf54e85d05 eth_call and invoking event handler in WASM (#25)
* Perform eth_call and get result in js import

* Use dummy value for eth_call

* Called handler in wasm with event param

* Implement passing event to subgraph handler function

* Use generated event class Test for passing to handler

* Pass event params to handler

Co-authored-by: nabarun <nabarun@deepstacksoft.com>
2021-12-28 16:08:05 +05:30

24 lines
549 B
YAML

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