-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
98 lines (98 loc) · 3.01 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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: LSSVMFactory
network: mainnet
source:
address: "0xb16c1342E617A5B6E4b631EB114483FDB289c0A4"
abi: LSSVMFactory
startBlock: 14645816
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Pair
- PairOwner
- Collection
abis:
- name: LSSVMFactory
file: ./abis/LSSVMFactory.json
- name: LSSVMPair
file: ./abis/LSSVMPair.json
- name: ERC20
file: ./abis/ERC20.json
callHandlers:
- function: createPairETH(address,address,address,uint8,uint128,uint96,uint128,uint256[])
handler: handleNewETHPair
- function: createPairERC20((address,address,address,address,uint8,uint128,uint96,uint128,uint256[],uint256))
handler: handleNewERC20Pair
file: ./src/factory.ts
templates:
- kind: ethereum
name: LSSVMPair
network: mainnet
source:
abi: LSSVMPair
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Pair
- PairOwner
- Collection
abis:
- name: LSSVMPair
file: ./abis/LSSVMPair.json
- name: Multicall3
file: ./abis/Multicall3.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: OwnershipTransferred(indexed address)
handler: handleOwnershipTransferred
- event: AssetRecipientChange(address)
handler: handleAssetRecipientChange
- event: DeltaUpdate(uint128)
handler: handleDeltaUpdate
- event: FeeUpdate(uint96)
handler: handleFeeUpdate
- event: SpotPriceUpdate(uint128)
handler: handleSpotPriceUpdate
- event: TokenDeposit(uint256)
handler: handleTokenDeposit
- event: TokenWithdrawal(uint256)
handler: handleTokenWithdrawal
- event: SwapNFTInPair()
handler: handleSwapNFTInPair
- event: SwapNFTOutPair()
handler: handleSwapNFTOutPair
callHandlers:
- function: swapTokenForSpecificNFTs(uint256[],uint256,address,bool,address)
handler: handleSwapTokenForSpecificNFTs
- function: swapNFTsForToken(uint256[],uint256,address payable,bool,address)
handler: handleSwapNFTsForToken
file: ./src/pair.ts
- kind: ethereum
name: ERC721
network: mainnet
source:
abi: ERC721
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Pair
abis:
- name: ERC721
file: ./abis/ERC721.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: ConsecutiveTransfer(indexed uint256,uint256,indexed address,indexed address)
handler: handleConsecutiveTransfer
file: ./src/erc721.ts