-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
35 lines (34 loc) · 1.01 KB
/
subgraph.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# THIS FILE SHOULD BE USED FOR GNU MAKE DEPLOYMENT ONLY
specVersion: 0.0.5
schema:
file: ./schema.graphql
features:
- fullTextSearch
- ipfsOnEthereumContracts
dataSources:
- kind: ethereum
name: 0chain/dex
network: "" # Should be set by Makefile script
source:
address: "" # Should be set by Makefile script
abi: Bridge
startBlock: 0 # Should be set by Makefile script
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Burned
- Minted
- OwnershipTransferred
abis:
- name: Bridge
file: ./abis/Bridge.json
eventHandlers:
- event: Burned(indexed address,uint256,bytes,indexed uint256)
handler: handleBurned
- event: Minted(indexed address,uint256,bytes,indexed uint256)
handler: handleMinted
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
file: ./src/bridge.ts