mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-10-03 22:44:39 +00:00
94e9182dd3
* Handle BigNumber event params in watchers * Customize decimal according to limits of IEEE-754 decimal128 * Add definition for custom scalar BigDecimal
27 lines
587 B
YAML
27 lines
587 B
YAML
specVersion: 0.0.2
|
|
schema:
|
|
file: ./schema.graphql
|
|
dataSources:
|
|
- kind: ethereum/contract
|
|
name: Example1
|
|
network: mainnet
|
|
source:
|
|
address: ""
|
|
abi: Example1
|
|
startBlock: 100
|
|
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
|