-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
29 lines (29 loc) · 948 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: BSC_Stream
network: bsc
source:
address: "0x32A6A3C173Ba0c2F850342E0cDd3490E82291d79"
abi: BSC_Stream
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- CancelStream
- CreateStream
- WithdrawFromStream
abis:
- name: BSC_Stream
file: ./abis/BSC_Stream.json
eventHandlers:
- event: CancelStream(indexed uint256,indexed address,indexed address,uint256,uint256)
handler: handleCancelStream
- event: CreateStream(indexed uint256,indexed address,indexed address,uint256,address,uint256,uint256)
handler: handleCreateStream
- event: WithdrawFromStream(indexed uint256,indexed address,uint256)
handler: handleWithdrawFromStream
file: ./src/mapping.ts