mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-25 04:20:33 +00:00
bf54e85d05
* 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>
24 lines
549 B
YAML
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
|