mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 12:56:20 +00:00
nikugogoi
83775608ec
* Implement store get api without blockHash and blockNumber * Pass database instance to GraphWatcher * Implement store set without block data * Store blockHash and blockNumber in database entity table * Implement getting entity in subgraph from store.get * Add block data present in postgraphile * Pass db and context to instantiate method in tests * GQL API in graph-test-watcher to test store.set * Remove contract address from subgraph file * Fix block in dummy event data * Pass just blockHash to get an entity from the database * Review changes and add TODOs Co-authored-by: prathamesh <prathamesh.musale0@gmail.com>
24 lines
505 B
YAML
24 lines
505 B
YAML
specVersion: 0.0.2
|
|
schema:
|
|
file: ./schema.graphql
|
|
dataSources:
|
|
- kind: ethereum/contract
|
|
name: Example1
|
|
network: mainnet
|
|
source:
|
|
address: ""
|
|
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,uint8)
|
|
handler: handleTest
|
|
file: ./src/mapping.ts
|