forked from Nemusonaneko/token-escrow-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
32 lines (32 loc) · 921 Bytes
/
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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: TokenEscrow
network: goerli
source:
address: "0x02266E3b5cE26d62Ea73Ea7f2C542EBc24121c01"
abi: TokenEscrow
startBlock: 8047581
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Create
- Redeem
- Revoke
abis:
- name: TokenEscrow
file: ./abis/TokenEscrow.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Create(address,address,address,uint256,uint256,bytes32)
handler: handleCreate
- event: Redeem(address,address,address,uint256,uint256,bytes32)
handler: handleRedeem
- event: Revoke(address,address,address,uint256,uint256,bytes32)
handler: handleRevoke
file: ./src/token-escrow.ts