@hypercerts-org/marketplace-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -0
- package/LICENSE-APACHE +10 -0
- package/LICENSE-MIT +21 -0
- package/README.md +101 -0
- package/dist/LooksRare.d.ts +223 -0
- package/dist/abis/IERC1155.json +276 -0
- package/dist/abis/IERC20.json +185 -0
- package/dist/abis/IERC721.json +268 -0
- package/dist/abis/ILooksRareProtocol.json +677 -0
- package/dist/abis/ITransferManager.json +91 -0
- package/dist/abis/IWETH.json +46 -0
- package/dist/abis/LooksRareProtocol.json +1924 -0
- package/dist/abis/OrderValidatorV2A.json +410 -0
- package/dist/abis/ProtocolHelpers.json +366 -0
- package/dist/abis/TransferManager.json +492 -0
- package/dist/abis/WETH.json +361 -0
- package/dist/abis/index.d.ts +7 -0
- package/dist/abis/index.ts +7 -0
- package/dist/constants/addresses.d.ts +7 -0
- package/dist/constants/chains.d.ts +4 -0
- package/dist/constants/eip712.d.ts +10 -0
- package/dist/constants/index.d.ts +14 -0
- package/dist/errors.d.ts +30 -0
- package/dist/index.cjs.js +5251 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.esm.js +5229 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/AffiliateManager.d.ts +210 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry.d.ts +35 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/CreatorFeeManagerWithRoyalties.d.ts +47 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/CurrencyManager.d.ts +247 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/ExecutionManager.d.ts +616 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol.d.ts +1005 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/NonceManager.d.ts +148 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/StrategyManager.d.ts +401 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/TransferManager.d.ts +324 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT.d.ts +620 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/BaseStrategy.d.ts +97 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/StrategyCollectionOffer.d.ts +176 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/executionStrategies/index.d.ts +2 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A.d.ts +172 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers.d.ts +148 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/helpers/index.d.ts +2 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/index.d.ts +16 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager.d.ts +65 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager.d.ts +47 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager.d.ts +37 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager.d.ts +64 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol.d.ts +343 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager.d.ts +72 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IRoyaltyFeeRegistry.d.ts +41 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategy.d.ts +97 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager.d.ts +85 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager.d.ts +80 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/interfaces/index.d.ts +10 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/index.d.ts +4 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/index.d.ts +2 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/mock/MockRoyaltyFeeRegistry.d.ts +222 -0
- package/dist/typechain/@looksrare/contracts-exchange-v2/test/mock/index.d.ts +1 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/OwnableTwoSteps.d.ts +121 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/PackableReentrancyGuard.d.ts +20 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/index.d.ts +4 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/IOwnableTwoSteps.d.ts +80 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/IReentrancyGuard.d.ts +20 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1155.d.ts +224 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1271.d.ts +35 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC165.d.ts +29 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20.d.ts +129 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC2981.d.ts +49 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IERC721.d.ts +191 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/IWETH.d.ts +43 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/generic/index.d.ts +7 -0
- package/dist/typechain/@looksrare/contracts-libs/contracts/interfaces/index.d.ts +4 -0
- package/dist/typechain/@looksrare/contracts-libs/index.d.ts +2 -0
- package/dist/typechain/@looksrare/index.d.ts +4 -0
- package/dist/typechain/common.d.ts +50 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/AffiliateManager__factory.d.ts +264 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/BatchOrderTypehashRegistry__factory.d.ts +48 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/CreatorFeeManagerWithRoyalties__factory.d.ts +74 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/CurrencyManager__factory.d.ts +307 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/ExecutionManager__factory.d.ts +748 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol__factory.d.ts +1527 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/NonceManager__factory.d.ts +174 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/StrategyManager__factory.d.ts +478 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferManager__factory.d.ts +406 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/TransferSelectorNFT__factory.d.ts +766 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/BaseStrategy__factory.d.ts +100 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/StrategyCollectionOffer__factory.d.ts +323 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/executionStrategies/index.d.ts +2 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/OrderValidatorV2A__factory.d.ts +338 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/ProtocolHelpers__factory.d.ts +302 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/helpers/index.d.ts +2 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/index.d.ts +13 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IAffiliateManager__factory.d.ts +50 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ICreatorFeeManager__factory.d.ts +51 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ICurrencyManager__factory.d.ts +22 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IExecutionManager__factory.d.ts +61 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ILooksRareProtocol__factory.d.ts +540 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/INonceManager__factory.d.ts +57 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IRoyaltyFeeRegistry__factory.d.ts +29 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategyManager__factory.d.ts +88 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/IStrategy__factory.d.ts +100 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/ITransferManager__factory.d.ts +77 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/contracts/interfaces/index.d.ts +10 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/index.d.ts +2 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/index.d.ts +1 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/mock/MockRoyaltyFeeRegistry__factory.d.ts +278 -0
- package/dist/typechain/factories/@looksrare/contracts-exchange-v2/test/mock/index.d.ts +1 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/OwnableTwoSteps__factory.d.ts +130 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/PackableReentrancyGuard__factory.d.ts +11 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/index.d.ts +3 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/IOwnableTwoSteps__factory.d.ts +66 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/IReentrancyGuard__factory.d.ts +11 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1155__factory.d.ts +222 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC1271__factory.d.ts +25 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC165__factory.d.ts +21 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC20__factory.d.ts +147 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC2981__factory.d.ts +43 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IERC721__factory.d.ts +213 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/IWETH__factory.d.ts +41 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/generic/index.d.ts +7 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/contracts/interfaces/index.d.ts +3 -0
- package/dist/typechain/factories/@looksrare/contracts-libs/index.d.ts +1 -0
- package/dist/typechain/factories/@looksrare/index.d.ts +2 -0
- package/dist/typechain/factories/index.d.ts +3 -0
- package/dist/typechain/factories/solmate/index.d.ts +1 -0
- package/dist/typechain/factories/solmate/src/index.d.ts +1 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.d.ts +67 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/ERC1155__factory.d.ts +250 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC1155.sol/index.d.ts +2 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC20__factory.d.ts +235 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver__factory.d.ts +33 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/ERC721__factory.d.ts +261 -0
- package/dist/typechain/factories/solmate/src/tokens/ERC721.sol/index.d.ts +2 -0
- package/dist/typechain/factories/solmate/src/tokens/WETH__factory.d.ts +299 -0
- package/dist/typechain/factories/solmate/src/tokens/index.d.ts +4 -0
- package/dist/typechain/factories/src/contracts/index.d.ts +1 -0
- package/dist/typechain/factories/src/contracts/tests/MockERC1155__factory.d.ts +283 -0
- package/dist/typechain/factories/src/contracts/tests/MockERC721__factory.d.ts +308 -0
- package/dist/typechain/factories/src/contracts/tests/Verifier__factory.d.ts +462 -0
- package/dist/typechain/factories/src/contracts/tests/index.d.ts +3 -0
- package/dist/typechain/factories/src/index.d.ts +1 -0
- package/dist/typechain/index.d.ts +97 -0
- package/dist/typechain/solmate/index.d.ts +2 -0
- package/dist/typechain/solmate/src/index.d.ts +2 -0
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/ERC1155.d.ts +236 -0
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver.d.ts +67 -0
- package/dist/typechain/solmate/src/tokens/ERC1155.sol/index.d.ts +2 -0
- package/dist/typechain/solmate/src/tokens/ERC20.d.ts +181 -0
- package/dist/typechain/solmate/src/tokens/ERC721.sol/ERC721.d.ts +211 -0
- package/dist/typechain/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver.d.ts +39 -0
- package/dist/typechain/solmate/src/tokens/ERC721.sol/index.d.ts +2 -0
- package/dist/typechain/solmate/src/tokens/WETH.d.ts +219 -0
- package/dist/typechain/solmate/src/tokens/index.d.ts +6 -0
- package/dist/typechain/src/contracts/index.d.ts +2 -0
- package/dist/typechain/src/contracts/tests/MockERC1155.d.ts +252 -0
- package/dist/typechain/src/contracts/tests/MockERC721.d.ts +219 -0
- package/dist/typechain/src/contracts/tests/Verifier.d.ts +174 -0
- package/dist/typechain/src/contracts/tests/index.d.ts +3 -0
- package/dist/typechain/src/index.d.ts +2 -0
- package/dist/types.d.ts +242 -0
- package/dist/utils/Eip712MakerMerkleTree.d.ts +10 -0
- package/dist/utils/Eip712MerkleTree.d.ts +40 -0
- package/dist/utils/calls/exchange.d.ts +10 -0
- package/dist/utils/calls/nonces.d.ts +9 -0
- package/dist/utils/calls/orderValidator.d.ts +3 -0
- package/dist/utils/calls/strategies.d.ts +3 -0
- package/dist/utils/calls/tokens.d.ts +6 -0
- package/dist/utils/calls/transferManager.d.ts +6 -0
- package/dist/utils/eip712.d.ts +12 -0
- package/dist/utils/encodeOrderParams.d.ts +22 -0
- package/dist/utils/signMakerOrders.d.ts +18 -0
- package/package.json +94 -0
@@ -0,0 +1,361 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"anonymous": false,
|
4
|
+
"inputs": [
|
5
|
+
{
|
6
|
+
"indexed": true,
|
7
|
+
"internalType": "address",
|
8
|
+
"name": "owner",
|
9
|
+
"type": "address"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"indexed": true,
|
13
|
+
"internalType": "address",
|
14
|
+
"name": "spender",
|
15
|
+
"type": "address"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"indexed": false,
|
19
|
+
"internalType": "uint256",
|
20
|
+
"name": "amount",
|
21
|
+
"type": "uint256"
|
22
|
+
}
|
23
|
+
],
|
24
|
+
"name": "Approval",
|
25
|
+
"type": "event"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"anonymous": false,
|
29
|
+
"inputs": [
|
30
|
+
{
|
31
|
+
"indexed": true,
|
32
|
+
"internalType": "address",
|
33
|
+
"name": "from",
|
34
|
+
"type": "address"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"indexed": false,
|
38
|
+
"internalType": "uint256",
|
39
|
+
"name": "amount",
|
40
|
+
"type": "uint256"
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"name": "Deposit",
|
44
|
+
"type": "event"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"anonymous": false,
|
48
|
+
"inputs": [
|
49
|
+
{
|
50
|
+
"indexed": true,
|
51
|
+
"internalType": "address",
|
52
|
+
"name": "from",
|
53
|
+
"type": "address"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"indexed": true,
|
57
|
+
"internalType": "address",
|
58
|
+
"name": "to",
|
59
|
+
"type": "address"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"indexed": false,
|
63
|
+
"internalType": "uint256",
|
64
|
+
"name": "amount",
|
65
|
+
"type": "uint256"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"name": "Transfer",
|
69
|
+
"type": "event"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"anonymous": false,
|
73
|
+
"inputs": [
|
74
|
+
{
|
75
|
+
"indexed": true,
|
76
|
+
"internalType": "address",
|
77
|
+
"name": "to",
|
78
|
+
"type": "address"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"indexed": false,
|
82
|
+
"internalType": "uint256",
|
83
|
+
"name": "amount",
|
84
|
+
"type": "uint256"
|
85
|
+
}
|
86
|
+
],
|
87
|
+
"name": "Withdrawal",
|
88
|
+
"type": "event"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"inputs": [],
|
92
|
+
"name": "DOMAIN_SEPARATOR",
|
93
|
+
"outputs": [
|
94
|
+
{
|
95
|
+
"internalType": "bytes32",
|
96
|
+
"name": "",
|
97
|
+
"type": "bytes32"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"stateMutability": "view",
|
101
|
+
"type": "function"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"inputs": [
|
105
|
+
{
|
106
|
+
"internalType": "address",
|
107
|
+
"name": "",
|
108
|
+
"type": "address"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "",
|
113
|
+
"type": "address"
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"name": "allowance",
|
117
|
+
"outputs": [
|
118
|
+
{
|
119
|
+
"internalType": "uint256",
|
120
|
+
"name": "",
|
121
|
+
"type": "uint256"
|
122
|
+
}
|
123
|
+
],
|
124
|
+
"stateMutability": "view",
|
125
|
+
"type": "function"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"inputs": [
|
129
|
+
{
|
130
|
+
"internalType": "address",
|
131
|
+
"name": "spender",
|
132
|
+
"type": "address"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"internalType": "uint256",
|
136
|
+
"name": "amount",
|
137
|
+
"type": "uint256"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"name": "approve",
|
141
|
+
"outputs": [
|
142
|
+
{
|
143
|
+
"internalType": "bool",
|
144
|
+
"name": "",
|
145
|
+
"type": "bool"
|
146
|
+
}
|
147
|
+
],
|
148
|
+
"stateMutability": "nonpayable",
|
149
|
+
"type": "function"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"inputs": [
|
153
|
+
{
|
154
|
+
"internalType": "address",
|
155
|
+
"name": "",
|
156
|
+
"type": "address"
|
157
|
+
}
|
158
|
+
],
|
159
|
+
"name": "balanceOf",
|
160
|
+
"outputs": [
|
161
|
+
{
|
162
|
+
"internalType": "uint256",
|
163
|
+
"name": "",
|
164
|
+
"type": "uint256"
|
165
|
+
}
|
166
|
+
],
|
167
|
+
"stateMutability": "view",
|
168
|
+
"type": "function"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"inputs": [],
|
172
|
+
"name": "decimals",
|
173
|
+
"outputs": [
|
174
|
+
{
|
175
|
+
"internalType": "uint8",
|
176
|
+
"name": "",
|
177
|
+
"type": "uint8"
|
178
|
+
}
|
179
|
+
],
|
180
|
+
"stateMutability": "view",
|
181
|
+
"type": "function"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"inputs": [],
|
185
|
+
"name": "deposit",
|
186
|
+
"outputs": [],
|
187
|
+
"stateMutability": "payable",
|
188
|
+
"type": "function"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"inputs": [],
|
192
|
+
"name": "name",
|
193
|
+
"outputs": [
|
194
|
+
{
|
195
|
+
"internalType": "string",
|
196
|
+
"name": "",
|
197
|
+
"type": "string"
|
198
|
+
}
|
199
|
+
],
|
200
|
+
"stateMutability": "view",
|
201
|
+
"type": "function"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"inputs": [
|
205
|
+
{
|
206
|
+
"internalType": "address",
|
207
|
+
"name": "",
|
208
|
+
"type": "address"
|
209
|
+
}
|
210
|
+
],
|
211
|
+
"name": "nonces",
|
212
|
+
"outputs": [
|
213
|
+
{
|
214
|
+
"internalType": "uint256",
|
215
|
+
"name": "",
|
216
|
+
"type": "uint256"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
"stateMutability": "view",
|
220
|
+
"type": "function"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"inputs": [
|
224
|
+
{
|
225
|
+
"internalType": "address",
|
226
|
+
"name": "owner",
|
227
|
+
"type": "address"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"internalType": "address",
|
231
|
+
"name": "spender",
|
232
|
+
"type": "address"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"internalType": "uint256",
|
236
|
+
"name": "value",
|
237
|
+
"type": "uint256"
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"internalType": "uint256",
|
241
|
+
"name": "deadline",
|
242
|
+
"type": "uint256"
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"internalType": "uint8",
|
246
|
+
"name": "v",
|
247
|
+
"type": "uint8"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"internalType": "bytes32",
|
251
|
+
"name": "r",
|
252
|
+
"type": "bytes32"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"internalType": "bytes32",
|
256
|
+
"name": "s",
|
257
|
+
"type": "bytes32"
|
258
|
+
}
|
259
|
+
],
|
260
|
+
"name": "permit",
|
261
|
+
"outputs": [],
|
262
|
+
"stateMutability": "nonpayable",
|
263
|
+
"type": "function"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"inputs": [],
|
267
|
+
"name": "symbol",
|
268
|
+
"outputs": [
|
269
|
+
{
|
270
|
+
"internalType": "string",
|
271
|
+
"name": "",
|
272
|
+
"type": "string"
|
273
|
+
}
|
274
|
+
],
|
275
|
+
"stateMutability": "view",
|
276
|
+
"type": "function"
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"inputs": [],
|
280
|
+
"name": "totalSupply",
|
281
|
+
"outputs": [
|
282
|
+
{
|
283
|
+
"internalType": "uint256",
|
284
|
+
"name": "",
|
285
|
+
"type": "uint256"
|
286
|
+
}
|
287
|
+
],
|
288
|
+
"stateMutability": "view",
|
289
|
+
"type": "function"
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"inputs": [
|
293
|
+
{
|
294
|
+
"internalType": "address",
|
295
|
+
"name": "to",
|
296
|
+
"type": "address"
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"internalType": "uint256",
|
300
|
+
"name": "amount",
|
301
|
+
"type": "uint256"
|
302
|
+
}
|
303
|
+
],
|
304
|
+
"name": "transfer",
|
305
|
+
"outputs": [
|
306
|
+
{
|
307
|
+
"internalType": "bool",
|
308
|
+
"name": "",
|
309
|
+
"type": "bool"
|
310
|
+
}
|
311
|
+
],
|
312
|
+
"stateMutability": "nonpayable",
|
313
|
+
"type": "function"
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"inputs": [
|
317
|
+
{
|
318
|
+
"internalType": "address",
|
319
|
+
"name": "from",
|
320
|
+
"type": "address"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"internalType": "address",
|
324
|
+
"name": "to",
|
325
|
+
"type": "address"
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"internalType": "uint256",
|
329
|
+
"name": "amount",
|
330
|
+
"type": "uint256"
|
331
|
+
}
|
332
|
+
],
|
333
|
+
"name": "transferFrom",
|
334
|
+
"outputs": [
|
335
|
+
{
|
336
|
+
"internalType": "bool",
|
337
|
+
"name": "",
|
338
|
+
"type": "bool"
|
339
|
+
}
|
340
|
+
],
|
341
|
+
"stateMutability": "nonpayable",
|
342
|
+
"type": "function"
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"inputs": [
|
346
|
+
{
|
347
|
+
"internalType": "uint256",
|
348
|
+
"name": "amount",
|
349
|
+
"type": "uint256"
|
350
|
+
}
|
351
|
+
],
|
352
|
+
"name": "withdraw",
|
353
|
+
"outputs": [],
|
354
|
+
"stateMutability": "nonpayable",
|
355
|
+
"type": "function"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"stateMutability": "payable",
|
359
|
+
"type": "receive"
|
360
|
+
}
|
361
|
+
]
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export { default as IERC1155Abi } from "./IERC1155.json";
|
2
|
+
export { default as IERC20Abi } from "./IERC20.json";
|
3
|
+
export { default as IERC721Abi } from "./IERC721.json";
|
4
|
+
export { default as LooksRareProtocolAbi } from "./LooksRareProtocol.json";
|
5
|
+
export { default as TransferManagerAbi } from "./TransferManager.json";
|
6
|
+
export { default as OrderValidatorV2AAbi } from "./OrderValidatorV2A.json";
|
7
|
+
export { default as WETHAbi } from "./WETH.json";
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export { default as IERC1155Abi } from "./IERC1155.json";
|
2
|
+
export { default as IERC20Abi } from "./IERC20.json";
|
3
|
+
export { default as IERC721Abi } from "./IERC721.json";
|
4
|
+
export { default as LooksRareProtocolAbi } from "./LooksRareProtocol.json";
|
5
|
+
export { default as TransferManagerAbi } from "./TransferManager.json";
|
6
|
+
export { default as OrderValidatorV2AAbi } from "./OrderValidatorV2A.json";
|
7
|
+
export { default as WETHAbi } from "./WETH.json";
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Name of the LooksRare contract. Used for EIP712 domain separator.
|
3
|
+
* @see {@link https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator EIP712 doc}
|
4
|
+
*/
|
5
|
+
export declare const contractName = "LooksRareProtocol";
|
6
|
+
/**
|
7
|
+
* Protocol version. Used for EIP712 domain separator.
|
8
|
+
* @see {@link https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator EIP712 doc}
|
9
|
+
*/
|
10
|
+
export declare const version = 2;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/** Maximum amount of orders in a merkle tree
|
2
|
+
* This limit is enforced in the contract with the value 2^10 (=1024)
|
3
|
+
* @see {@link https://github.com/LooksRare/contracts-exchange-v2/blob/master/contracts/constants/NumericConstants.sol#L7}
|
4
|
+
*/
|
5
|
+
export declare const MAX_ORDERS_PER_TREE = 1024;
|
6
|
+
/**
|
7
|
+
* Default merkle tree value used when the merkle tree can be omitted.
|
8
|
+
*/
|
9
|
+
export declare const defaultMerkleTree: {
|
10
|
+
root: string;
|
11
|
+
proof: never[];
|
12
|
+
};
|
13
|
+
export { addressesByNetwork } from "./addresses";
|
14
|
+
export { chainInfo } from "./chains";
|
package/dist/errors.d.ts
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
/** Invalid timestamp format */
|
2
|
+
export declare class ErrorTimestamp extends Error {
|
3
|
+
readonly name = "ErrorTimestamp";
|
4
|
+
constructor();
|
5
|
+
}
|
6
|
+
/** Undefined signer */
|
7
|
+
export declare class ErrorSigner extends Error {
|
8
|
+
readonly name = "ErrorSigner";
|
9
|
+
constructor();
|
10
|
+
}
|
11
|
+
/** Too many orders in one merkle tree */
|
12
|
+
export declare class ErrorMerkleTreeDepth extends Error {
|
13
|
+
readonly name = "ErrorMerkleTreeDepth";
|
14
|
+
constructor();
|
15
|
+
}
|
16
|
+
/** Wrong quote type */
|
17
|
+
export declare class ErrorQuoteType extends Error {
|
18
|
+
readonly name = "ErrorQuoteType";
|
19
|
+
constructor();
|
20
|
+
}
|
21
|
+
/** Wrong strategy type */
|
22
|
+
export declare class ErrorStrategyType extends Error {
|
23
|
+
readonly name = "ErrorStrategyType";
|
24
|
+
constructor();
|
25
|
+
}
|
26
|
+
/** Invalid item ID for orders with proof */
|
27
|
+
export declare class ErrorItemId extends Error {
|
28
|
+
readonly name = "ErrorItemId";
|
29
|
+
constructor();
|
30
|
+
}
|