-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
42 lines (42 loc) · 1.34 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
36
37
38
39
40
41
42
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ViralataFinance
network: bsc
source:
address: "0x4c79b8c9cB0BD62B047880603a9DEcf36dE28344"
abi: ViralataFinance
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Token
- Holder
- Approval
- MinTokensBeforeSwapUpdated
- OwnershipTransferred
- SwapAndLiquify
- SwapAndLiquifyEnabledUpdated
- Transfer
abis:
- name: ERC20
file: ./abis/ERC20.json
- name: ViralataFinance
file: ./abis/ViralataFinance.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: MinTokensBeforeSwapUpdated(uint256)
handler: handleMinTokensBeforeSwapUpdated
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: SwapAndLiquify(uint256,uint256,uint256)
handler: handleSwapAndLiquify
- event: SwapAndLiquifyEnabledUpdated(bool)
handler: handleSwapAndLiquifyEnabledUpdated
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts