forked from blockful-io/swaplace-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
30 lines (30 loc) · 885 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Swaplace
network: sepolia
source:
address: "0x24809b2b374c5d70c2BdA6d65290e3fa3a2b378d"
abi: Swaplace
startBlock: 5206960
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- SwapAccepted
- SwapCanceled
- SwapCreated
abis:
- name: Swaplace
file: ./abis/Swaplace.json
eventHandlers:
- event: SwapAccepted(indexed uint256,indexed address,indexed address)
handler: handleSwapAccepted
- event: SwapCanceled(indexed uint256,indexed address)
handler: handleSwapCanceled
- event: SwapCreated(indexed uint256,indexed address,indexed address)
handler: handleSwapCreated
file: ./src/swaplace.ts