forked from 0xmakesy/Sudoswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
105 lines (105 loc) · 3.37 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: LSSVMPairFactory
network: mainnet
source:
address: "0xb16c1342E617A5B6E4b631EB114483FDB289c0A4"
abi: LSSVMPairFactory
startBlock: 14645793
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- BondingCurveStatusUpdate
- CallTargetStatusUpdate
- NFTDeposit
- NewPair
- OwnershipTransferred
- ProtocolFeeMultiplierUpdate
- ProtocolFeeRecipientUpdate
- RouterStatusUpdate
- TokenDeposit
- Pair
- DailyProtocolStat
- DailyPoolStat
- DailyPairStat
abis:
- name: LSSVMPairFactory
file: ./abis/LSSVMPairFactory.json
eventHandlers:
- event: BondingCurveStatusUpdate(address,bool)
handler: handleBondingCurveStatusUpdate
- event: CallTargetStatusUpdate(address,bool)
handler: handleCallTargetStatusUpdate
- event: NFTDeposit(address)
handler: handleNFTDeposit
- event: NewPair(address)
handler: handleNewPairEvent
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: ProtocolFeeMultiplierUpdate(uint256)
handler: handleProtocolFeeMultiplierUpdate
- event: ProtocolFeeRecipientUpdate(address)
handler: handleProtocolFeeRecipientUpdate
- event: RouterStatusUpdate(address,bool)
handler: handleRouterStatusUpdate
- event: TokenDeposit(address)
handler: handleTokenDeposit
callHandlers:
- function: createPairETH(address,address,address,uint8,uint128,uint96,uint128,uint256[])
handler: handleCreatePairETH
file: ./src/lssvm-pair-factory.ts
templates:
- kind: ethereum
name: LSSVMPairEnumerableETH
network: mainnet
source:
abi: LSSVMPairEnumerableETH
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AssetRecipientChange
- DeltaUpdate
- FeeUpdate
- NFTWithdrawal
- OwnershipTransferred
- SpotPrice
- PoolNFTBuy
- PoolNFTSale
- TokenDeposit
- TokenWithdrawal
- Pair
- DailyProtocolStat
- DailyPoolStat
- DailyPairStat
abis:
- name: LSSVMPairEnumerableETH
file: ./abis/LSSVMPairEnumerableETH.json
eventHandlers:
- event: AssetRecipientChange(address)
handler: handleAssetRecipientChange
- event: DeltaUpdate(uint128)
handler: handleDeltaUpdate
- event: FeeUpdate(uint96)
handler: handleFeeUpdate
- event: NFTWithdrawal()
handler: handleNFTWithdrawal
- event: OwnershipTransferred(indexed address)
handler: handleOwnershipTransferred
- event: SpotPriceUpdate(uint128)
handler: handleSpotPriceUpdate
- event: SwapNFTInPair()
handler: handleSwapNFTInPair
- event: SwapNFTOutPair()
handler: handleSwapNFTOutPair
- event: TokenDeposit(uint256)
handler: handleTokenDeposit
- event: TokenWithdrawal(uint256)
handler: handleTokenWithdrawal
file: ./src/lssvm-pair-enumerable-eth.ts