@uniswap/universal-router-sdk 1.5.0-beta.0 → 1.5.0-beta.2
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/README.md +2 -3
- package/dist/entities/NFTTrade.d.ts +3 -3
- package/dist/entities/protocols/index.d.ts +1 -1
- package/dist/entities/protocols/looksRareV2.d.ts +56 -0
- package/dist/entities/protocols/nftx.d.ts +1 -1
- package/dist/test/orders/looksRareV2.d.ts +2 -0
- package/dist/test/orders/seaportV1_4.d.ts +1 -2
- package/dist/universal-router-sdk.cjs.development.js +1635 -703
- package/dist/universal-router-sdk.cjs.development.js.map +1 -1
- package/dist/universal-router-sdk.cjs.production.min.js +1 -1
- package/dist/universal-router-sdk.cjs.production.min.js.map +1 -1
- package/dist/universal-router-sdk.esm.js +1636 -704
- package/dist/universal-router-sdk.esm.js.map +1 -1
- package/dist/utils/routerCommands.d.ts +4 -5
- package/package.json +4 -4
- package/dist/entities/protocols/looksRare.d.ts +0 -44
- package/dist/test/orders/looksRare.d.ts +0 -12
|
@@ -15,6 +15,20 @@ var v3Sdk = require('@uniswap/v3-sdk');
|
|
|
15
15
|
var routerSdk = require('@uniswap/router-sdk');
|
|
16
16
|
var sdkCore = require('@uniswap/sdk-core');
|
|
17
17
|
|
|
18
|
+
function _extends() {
|
|
19
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
20
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
21
|
+
var source = arguments[i];
|
|
22
|
+
for (var key in source) {
|
|
23
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
24
|
+
target[key] = source[key];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return target;
|
|
29
|
+
};
|
|
30
|
+
return _extends.apply(this, arguments);
|
|
31
|
+
}
|
|
18
32
|
function _inheritsLoose(subClass, superClass) {
|
|
19
33
|
subClass.prototype = Object.create(superClass.prototype);
|
|
20
34
|
subClass.prototype.constructor = subClass;
|
|
@@ -88,11 +102,11 @@ var CommandType;
|
|
|
88
102
|
CommandType[CommandType["PERMIT2_TRANSFER_FROM_BATCH"] = 13] = "PERMIT2_TRANSFER_FROM_BATCH";
|
|
89
103
|
CommandType[CommandType["BALANCE_CHECK_ERC20"] = 14] = "BALANCE_CHECK_ERC20";
|
|
90
104
|
// NFT-related command types
|
|
91
|
-
CommandType[CommandType["
|
|
92
|
-
CommandType[CommandType["
|
|
105
|
+
CommandType[CommandType["SEAPORT_V1_5"] = 16] = "SEAPORT_V1_5";
|
|
106
|
+
CommandType[CommandType["LOOKS_RARE_V2"] = 17] = "LOOKS_RARE_V2";
|
|
93
107
|
CommandType[CommandType["NFTX"] = 18] = "NFTX";
|
|
94
108
|
CommandType[CommandType["CRYPTOPUNKS"] = 19] = "CRYPTOPUNKS";
|
|
95
|
-
|
|
109
|
+
// 0x14
|
|
96
110
|
CommandType[CommandType["OWNER_CHECK_721"] = 21] = "OWNER_CHECK_721";
|
|
97
111
|
CommandType[CommandType["OWNER_CHECK_1155"] = 22] = "OWNER_CHECK_1155";
|
|
98
112
|
CommandType[CommandType["SWEEP_ERC721"] = 23] = "SWEEP_ERC721";
|
|
@@ -103,17 +117,17 @@ var CommandType;
|
|
|
103
117
|
CommandType[CommandType["FOUNDATION"] = 28] = "FOUNDATION";
|
|
104
118
|
CommandType[CommandType["SWEEP_ERC1155"] = 29] = "SWEEP_ERC1155";
|
|
105
119
|
CommandType[CommandType["ELEMENT_MARKET"] = 30] = "ELEMENT_MARKET";
|
|
106
|
-
CommandType[CommandType["
|
|
107
|
-
CommandType[CommandType["
|
|
120
|
+
CommandType[CommandType["SEAPORT_V1_4"] = 32] = "SEAPORT_V1_4";
|
|
121
|
+
CommandType[CommandType["EXECUTE_SUB_PLAN"] = 33] = "EXECUTE_SUB_PLAN";
|
|
108
122
|
CommandType[CommandType["APPROVE_ERC20"] = 34] = "APPROVE_ERC20";
|
|
109
123
|
})(CommandType || (CommandType = {}));
|
|
110
124
|
var ALLOW_REVERT_FLAG = 0x80;
|
|
111
|
-
var REVERTIBLE_COMMANDS = /*#__PURE__*/new Set([CommandType.
|
|
125
|
+
var REVERTIBLE_COMMANDS = /*#__PURE__*/new Set([CommandType.SEAPORT_V1_5, CommandType.SEAPORT_V1_4, CommandType.NFTX, CommandType.LOOKS_RARE_V2, CommandType.X2Y2_721, CommandType.X2Y2_1155, CommandType.FOUNDATION, CommandType.SUDOSWAP, CommandType.NFT20, CommandType.EXECUTE_SUB_PLAN, CommandType.CRYPTOPUNKS, CommandType.ELEMENT_MARKET]);
|
|
112
126
|
var PERMIT_STRUCT = '((address token,uint160 amount,uint48 expiration,uint48 nonce) details,address spender,uint256 sigDeadline)';
|
|
113
127
|
var PERMIT_BATCH_STRUCT = '((address token,uint160 amount,uint48 expiration,uint48 nonce)[] details,address spender,uint256 sigDeadline)';
|
|
114
128
|
var PERMIT2_TRANSFER_FROM_STRUCT = '(address from,address to,uint160 amount,address token)';
|
|
115
129
|
var PERMIT2_TRANSFER_FROM_BATCH_STRUCT = PERMIT2_TRANSFER_FROM_STRUCT + '[]';
|
|
116
|
-
var ABI_DEFINITION = (_ABI_DEFINITION = {}, _ABI_DEFINITION[CommandType.EXECUTE_SUB_PLAN] = ['bytes', 'bytes[]'], _ABI_DEFINITION[CommandType.PERMIT2_PERMIT] = [PERMIT_STRUCT, 'bytes'], _ABI_DEFINITION[CommandType.PERMIT2_PERMIT_BATCH] = [PERMIT_BATCH_STRUCT, 'bytes'], _ABI_DEFINITION[CommandType.PERMIT2_TRANSFER_FROM] = ['address', 'address', 'uint160'], _ABI_DEFINITION[CommandType.PERMIT2_TRANSFER_FROM_BATCH] = [PERMIT2_TRANSFER_FROM_BATCH_STRUCT], _ABI_DEFINITION[CommandType.V3_SWAP_EXACT_IN] = ['address', 'uint256', 'uint256', 'bytes', 'bool'], _ABI_DEFINITION[CommandType.V3_SWAP_EXACT_OUT] = ['address', 'uint256', 'uint256', 'bytes', 'bool'], _ABI_DEFINITION[CommandType.V2_SWAP_EXACT_IN] = ['address', 'uint256', 'uint256', 'address[]', 'bool'], _ABI_DEFINITION[CommandType.V2_SWAP_EXACT_OUT] = ['address', 'uint256', 'uint256', 'address[]', 'bool'], _ABI_DEFINITION[CommandType.WRAP_ETH] = ['address', 'uint256'], _ABI_DEFINITION[CommandType.UNWRAP_WETH] = ['address', 'uint256'], _ABI_DEFINITION[CommandType.SWEEP] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.SWEEP_ERC721] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.SWEEP_ERC1155] = ['address', 'address', 'uint256', 'uint256'], _ABI_DEFINITION[CommandType.TRANSFER] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.PAY_PORTION] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.BALANCE_CHECK_ERC20] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.OWNER_CHECK_721] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.OWNER_CHECK_1155] = ['address', 'address', 'uint256', 'uint256'], _ABI_DEFINITION[CommandType.APPROVE_ERC20] = ['address', 'uint256'], _ABI_DEFINITION[CommandType.
|
|
130
|
+
var ABI_DEFINITION = (_ABI_DEFINITION = {}, _ABI_DEFINITION[CommandType.EXECUTE_SUB_PLAN] = ['bytes', 'bytes[]'], _ABI_DEFINITION[CommandType.PERMIT2_PERMIT] = [PERMIT_STRUCT, 'bytes'], _ABI_DEFINITION[CommandType.PERMIT2_PERMIT_BATCH] = [PERMIT_BATCH_STRUCT, 'bytes'], _ABI_DEFINITION[CommandType.PERMIT2_TRANSFER_FROM] = ['address', 'address', 'uint160'], _ABI_DEFINITION[CommandType.PERMIT2_TRANSFER_FROM_BATCH] = [PERMIT2_TRANSFER_FROM_BATCH_STRUCT], _ABI_DEFINITION[CommandType.V3_SWAP_EXACT_IN] = ['address', 'uint256', 'uint256', 'bytes', 'bool'], _ABI_DEFINITION[CommandType.V3_SWAP_EXACT_OUT] = ['address', 'uint256', 'uint256', 'bytes', 'bool'], _ABI_DEFINITION[CommandType.V2_SWAP_EXACT_IN] = ['address', 'uint256', 'uint256', 'address[]', 'bool'], _ABI_DEFINITION[CommandType.V2_SWAP_EXACT_OUT] = ['address', 'uint256', 'uint256', 'address[]', 'bool'], _ABI_DEFINITION[CommandType.WRAP_ETH] = ['address', 'uint256'], _ABI_DEFINITION[CommandType.UNWRAP_WETH] = ['address', 'uint256'], _ABI_DEFINITION[CommandType.SWEEP] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.SWEEP_ERC721] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.SWEEP_ERC1155] = ['address', 'address', 'uint256', 'uint256'], _ABI_DEFINITION[CommandType.TRANSFER] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.PAY_PORTION] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.BALANCE_CHECK_ERC20] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.OWNER_CHECK_721] = ['address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.OWNER_CHECK_1155] = ['address', 'address', 'uint256', 'uint256'], _ABI_DEFINITION[CommandType.APPROVE_ERC20] = ['address', 'uint256'], _ABI_DEFINITION[CommandType.SEAPORT_V1_5] = ['uint256', 'bytes'], _ABI_DEFINITION[CommandType.SEAPORT_V1_4] = ['uint256', 'bytes'], _ABI_DEFINITION[CommandType.NFTX] = ['uint256', 'bytes'], _ABI_DEFINITION[CommandType.LOOKS_RARE_V2] = ['uint256', 'bytes'], _ABI_DEFINITION[CommandType.X2Y2_721] = ['uint256', 'bytes', 'address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.X2Y2_1155] = ['uint256', 'bytes', 'address', 'address', 'uint256', 'uint256'], _ABI_DEFINITION[CommandType.FOUNDATION] = ['uint256', 'bytes', 'address', 'address', 'uint256'], _ABI_DEFINITION[CommandType.SUDOSWAP] = ['uint256', 'bytes'], _ABI_DEFINITION[CommandType.NFT20] = ['uint256', 'bytes'], _ABI_DEFINITION[CommandType.CRYPTOPUNKS] = ['uint256', 'address', 'uint256'], _ABI_DEFINITION[CommandType.ELEMENT_MARKET] = ['uint256', 'bytes'], _ABI_DEFINITION);
|
|
117
131
|
var RoutePlanner = /*#__PURE__*/function () {
|
|
118
132
|
function RoutePlanner() {
|
|
119
133
|
this.commands = '0x';
|
|
@@ -150,8 +164,8 @@ function createCommand(type, parameters) {
|
|
|
150
164
|
var UNIVERSAL_ROUTER_ADDRESS = function UNIVERSAL_ROUTER_ADDRESS(chainId) {
|
|
151
165
|
switch (chainId) {
|
|
152
166
|
case 1:
|
|
153
|
-
// mainnet
|
|
154
|
-
return '
|
|
167
|
+
// mainnet. UR v1.2, all others are v1
|
|
168
|
+
return '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD';
|
|
155
169
|
case 5:
|
|
156
170
|
// goerli
|
|
157
171
|
return '0x4648a43B2C14Da09FdF82B161150d3F634f40491';
|
|
@@ -222,6 +236,7 @@ var WETH_ADDRESS = function WETH_ADDRESS(chainId) {
|
|
|
222
236
|
var PERMIT2_ADDRESS = '0x000000000022D473030F116dDEE9F6B43aC78BA3';
|
|
223
237
|
var CONTRACT_BALANCE = /*#__PURE__*/ethers.BigNumber.from(2).pow(255);
|
|
224
238
|
var ETH_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
239
|
+
var ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
225
240
|
var SENDER_AS_RECIPIENT = '0x0000000000000000000000000000000000000001';
|
|
226
241
|
var ROUTER_AS_RECIPIENT = '0x0000000000000000000000000000000000000002';
|
|
227
242
|
var OPENSEA_CONDUIT_SPENDER_ID = 0;
|
|
@@ -421,8 +436,8 @@ function encodeInputTokenOptions(planner, options) {
|
|
|
421
436
|
}
|
|
422
437
|
function mapApprovalProtocol(protocolAddress) {
|
|
423
438
|
switch (protocolAddress.toLowerCase()) {
|
|
424
|
-
case '
|
|
425
|
-
// Seaport v1.
|
|
439
|
+
case '0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC':
|
|
440
|
+
// Seaport v1.5
|
|
426
441
|
return OPENSEA_CONDUIT_SPENDER_ID;
|
|
427
442
|
case '0x00000000000001ad428e4906ae43d8f9852d0dd6':
|
|
428
443
|
// Seaport v1.4
|
|
@@ -507,7 +522,8 @@ var SwapRouter = /*#__PURE__*/function () {
|
|
|
507
522
|
}
|
|
508
523
|
}
|
|
509
524
|
// TODO: matches current logic for now, but should eventually only sweep for multiple NFT trades
|
|
510
|
-
// or NFT trades with potential slippage (i.e. sudo)
|
|
525
|
+
// or NFT trades with potential slippage (i.e. sudo).
|
|
526
|
+
// Note: NFTXV2 sends excess ETH to the caller (router), not the specified recipient
|
|
511
527
|
if (nftTrades.length > 0) planner.addCommand(CommandType.SWEEP, [ETH_ADDRESS, SENDER_AS_RECIPIENT, 0]);
|
|
512
528
|
return SwapRouter.encodePlan(planner, transactionValue, config);
|
|
513
529
|
}
|
|
@@ -588,7 +604,7 @@ var NFTTrade = function NFTTrade(market, orders) {
|
|
|
588
604
|
};
|
|
589
605
|
(function (Market) {
|
|
590
606
|
Market["Foundation"] = "foundation";
|
|
591
|
-
Market["
|
|
607
|
+
Market["LooksRareV2"] = "looksrareV2";
|
|
592
608
|
Market["NFT20"] = "nft20";
|
|
593
609
|
Market["NFTX"] = "nftx";
|
|
594
610
|
Market["Seaport"] = "seaport";
|
|
@@ -2303,27 +2319,22 @@ var abi$1 = [
|
|
|
2303
2319
|
inputs: [
|
|
2304
2320
|
{
|
|
2305
2321
|
internalType: "address",
|
|
2306
|
-
name: "
|
|
2307
|
-
type: "address"
|
|
2308
|
-
},
|
|
2309
|
-
{
|
|
2310
|
-
internalType: "address",
|
|
2311
|
-
name: "_executionManager",
|
|
2322
|
+
name: "_owner",
|
|
2312
2323
|
type: "address"
|
|
2313
2324
|
},
|
|
2314
2325
|
{
|
|
2315
2326
|
internalType: "address",
|
|
2316
|
-
name: "
|
|
2327
|
+
name: "_protocolFeeRecipient",
|
|
2317
2328
|
type: "address"
|
|
2318
2329
|
},
|
|
2319
2330
|
{
|
|
2320
2331
|
internalType: "address",
|
|
2321
|
-
name: "
|
|
2332
|
+
name: "_transferManager",
|
|
2322
2333
|
type: "address"
|
|
2323
2334
|
},
|
|
2324
2335
|
{
|
|
2325
2336
|
internalType: "address",
|
|
2326
|
-
name: "
|
|
2337
|
+
name: "_weth",
|
|
2327
2338
|
type: "address"
|
|
2328
2339
|
}
|
|
2329
2340
|
],
|
|
@@ -2331,162 +2342,361 @@ var abi$1 = [
|
|
|
2331
2342
|
type: "constructor"
|
|
2332
2343
|
},
|
|
2333
2344
|
{
|
|
2334
|
-
|
|
2345
|
+
inputs: [
|
|
2346
|
+
],
|
|
2347
|
+
name: "CallerInvalid",
|
|
2348
|
+
type: "error"
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
inputs: [
|
|
2352
|
+
],
|
|
2353
|
+
name: "ChainIdInvalid",
|
|
2354
|
+
type: "error"
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
inputs: [
|
|
2358
|
+
],
|
|
2359
|
+
name: "CreatorFeeBpTooHigh",
|
|
2360
|
+
type: "error"
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
inputs: [
|
|
2364
|
+
],
|
|
2365
|
+
name: "CurrencyInvalid",
|
|
2366
|
+
type: "error"
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
inputs: [
|
|
2370
|
+
],
|
|
2371
|
+
name: "ERC20TransferFromFail",
|
|
2372
|
+
type: "error"
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
inputs: [
|
|
2376
|
+
],
|
|
2377
|
+
name: "LengthsInvalid",
|
|
2378
|
+
type: "error"
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
inputs: [
|
|
2382
|
+
],
|
|
2383
|
+
name: "MerkleProofInvalid",
|
|
2384
|
+
type: "error"
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2335
2387
|
inputs: [
|
|
2336
2388
|
{
|
|
2337
|
-
indexed: true,
|
|
2338
|
-
internalType: "address",
|
|
2339
|
-
name: "user",
|
|
2340
|
-
type: "address"
|
|
2341
|
-
},
|
|
2342
|
-
{
|
|
2343
|
-
indexed: false,
|
|
2344
2389
|
internalType: "uint256",
|
|
2345
|
-
name: "
|
|
2390
|
+
name: "length",
|
|
2346
2391
|
type: "uint256"
|
|
2347
2392
|
}
|
|
2348
2393
|
],
|
|
2349
|
-
name: "
|
|
2350
|
-
type: "
|
|
2394
|
+
name: "MerkleProofTooLarge",
|
|
2395
|
+
type: "error"
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
inputs: [
|
|
2399
|
+
],
|
|
2400
|
+
name: "NewGasLimitETHTransferTooLow",
|
|
2401
|
+
type: "error"
|
|
2402
|
+
},
|
|
2403
|
+
{
|
|
2404
|
+
inputs: [
|
|
2405
|
+
],
|
|
2406
|
+
name: "NewProtocolFeeRecipientCannotBeNullAddress",
|
|
2407
|
+
type: "error"
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
inputs: [
|
|
2411
|
+
],
|
|
2412
|
+
name: "NoOngoingTransferInProgress",
|
|
2413
|
+
type: "error"
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
inputs: [
|
|
2417
|
+
],
|
|
2418
|
+
name: "NoSelectorForStrategy",
|
|
2419
|
+
type: "error"
|
|
2420
|
+
},
|
|
2421
|
+
{
|
|
2422
|
+
inputs: [
|
|
2423
|
+
],
|
|
2424
|
+
name: "NoncesInvalid",
|
|
2425
|
+
type: "error"
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
inputs: [
|
|
2429
|
+
],
|
|
2430
|
+
name: "NotAContract",
|
|
2431
|
+
type: "error"
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
inputs: [
|
|
2435
|
+
],
|
|
2436
|
+
name: "NotAffiliateController",
|
|
2437
|
+
type: "error"
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
inputs: [
|
|
2441
|
+
],
|
|
2442
|
+
name: "NotOwner",
|
|
2443
|
+
type: "error"
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
inputs: [
|
|
2447
|
+
],
|
|
2448
|
+
name: "NotV2Strategy",
|
|
2449
|
+
type: "error"
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
inputs: [
|
|
2453
|
+
],
|
|
2454
|
+
name: "NullSignerAddress",
|
|
2455
|
+
type: "error"
|
|
2456
|
+
},
|
|
2457
|
+
{
|
|
2458
|
+
inputs: [
|
|
2459
|
+
],
|
|
2460
|
+
name: "OutsideOfTimeRange",
|
|
2461
|
+
type: "error"
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
inputs: [
|
|
2465
|
+
],
|
|
2466
|
+
name: "PercentageTooHigh",
|
|
2467
|
+
type: "error"
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
inputs: [
|
|
2471
|
+
],
|
|
2472
|
+
name: "QuoteTypeInvalid",
|
|
2473
|
+
type: "error"
|
|
2474
|
+
},
|
|
2475
|
+
{
|
|
2476
|
+
inputs: [
|
|
2477
|
+
],
|
|
2478
|
+
name: "ReentrancyFail",
|
|
2479
|
+
type: "error"
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
inputs: [
|
|
2483
|
+
],
|
|
2484
|
+
name: "RenouncementNotInProgress",
|
|
2485
|
+
type: "error"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
inputs: [
|
|
2489
|
+
],
|
|
2490
|
+
name: "SameDomainSeparator",
|
|
2491
|
+
type: "error"
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
inputs: [
|
|
2495
|
+
],
|
|
2496
|
+
name: "SignatureEOAInvalid",
|
|
2497
|
+
type: "error"
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
inputs: [
|
|
2501
|
+
],
|
|
2502
|
+
name: "SignatureERC1271Invalid",
|
|
2503
|
+
type: "error"
|
|
2351
2504
|
},
|
|
2352
2505
|
{
|
|
2353
|
-
anonymous: false,
|
|
2354
2506
|
inputs: [
|
|
2355
2507
|
{
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2508
|
+
internalType: "uint256",
|
|
2509
|
+
name: "length",
|
|
2510
|
+
type: "uint256"
|
|
2511
|
+
}
|
|
2512
|
+
],
|
|
2513
|
+
name: "SignatureLengthInvalid",
|
|
2514
|
+
type: "error"
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
inputs: [
|
|
2518
|
+
],
|
|
2519
|
+
name: "SignatureParameterSInvalid",
|
|
2520
|
+
type: "error"
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
inputs: [
|
|
2361
2524
|
{
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
type: "uint256[]"
|
|
2525
|
+
internalType: "uint8",
|
|
2526
|
+
name: "v",
|
|
2527
|
+
type: "uint8"
|
|
2366
2528
|
}
|
|
2367
2529
|
],
|
|
2368
|
-
name: "
|
|
2369
|
-
type: "
|
|
2530
|
+
name: "SignatureParameterVInvalid",
|
|
2531
|
+
type: "error"
|
|
2532
|
+
},
|
|
2533
|
+
{
|
|
2534
|
+
inputs: [
|
|
2535
|
+
],
|
|
2536
|
+
name: "StrategyHasNoSelector",
|
|
2537
|
+
type: "error"
|
|
2370
2538
|
},
|
|
2371
2539
|
{
|
|
2372
|
-
anonymous: false,
|
|
2373
2540
|
inputs: [
|
|
2374
2541
|
{
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
type: "address"
|
|
2542
|
+
internalType: "uint256",
|
|
2543
|
+
name: "strategyId",
|
|
2544
|
+
type: "uint256"
|
|
2379
2545
|
}
|
|
2380
2546
|
],
|
|
2381
|
-
name: "
|
|
2382
|
-
type: "
|
|
2547
|
+
name: "StrategyNotAvailable",
|
|
2548
|
+
type: "error"
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
inputs: [
|
|
2552
|
+
],
|
|
2553
|
+
name: "StrategyNotUsed",
|
|
2554
|
+
type: "error"
|
|
2555
|
+
},
|
|
2556
|
+
{
|
|
2557
|
+
inputs: [
|
|
2558
|
+
],
|
|
2559
|
+
name: "StrategyProtocolFeeTooHigh",
|
|
2560
|
+
type: "error"
|
|
2561
|
+
},
|
|
2562
|
+
{
|
|
2563
|
+
inputs: [
|
|
2564
|
+
],
|
|
2565
|
+
name: "TransferAlreadyInProgress",
|
|
2566
|
+
type: "error"
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
inputs: [
|
|
2570
|
+
],
|
|
2571
|
+
name: "TransferNotInProgress",
|
|
2572
|
+
type: "error"
|
|
2573
|
+
},
|
|
2574
|
+
{
|
|
2575
|
+
inputs: [
|
|
2576
|
+
],
|
|
2577
|
+
name: "WrongPotentialOwner",
|
|
2578
|
+
type: "error"
|
|
2383
2579
|
},
|
|
2384
2580
|
{
|
|
2385
2581
|
anonymous: false,
|
|
2386
2582
|
inputs: [
|
|
2387
2583
|
{
|
|
2388
|
-
indexed:
|
|
2584
|
+
indexed: false,
|
|
2389
2585
|
internalType: "address",
|
|
2390
|
-
name: "
|
|
2586
|
+
name: "affiliate",
|
|
2391
2587
|
type: "address"
|
|
2588
|
+
},
|
|
2589
|
+
{
|
|
2590
|
+
indexed: false,
|
|
2591
|
+
internalType: "address",
|
|
2592
|
+
name: "currency",
|
|
2593
|
+
type: "address"
|
|
2594
|
+
},
|
|
2595
|
+
{
|
|
2596
|
+
indexed: false,
|
|
2597
|
+
internalType: "uint256",
|
|
2598
|
+
name: "affiliateFee",
|
|
2599
|
+
type: "uint256"
|
|
2392
2600
|
}
|
|
2393
2601
|
],
|
|
2394
|
-
name: "
|
|
2602
|
+
name: "AffiliatePayment",
|
|
2395
2603
|
type: "event"
|
|
2396
2604
|
},
|
|
2397
2605
|
{
|
|
2398
2606
|
anonymous: false,
|
|
2399
2607
|
inputs: [
|
|
2400
|
-
{
|
|
2401
|
-
indexed: true,
|
|
2402
|
-
internalType: "address",
|
|
2403
|
-
name: "protocolFeeRecipient",
|
|
2404
|
-
type: "address"
|
|
2405
|
-
}
|
|
2406
2608
|
],
|
|
2407
|
-
name: "
|
|
2609
|
+
name: "CancelOwnershipTransfer",
|
|
2408
2610
|
type: "event"
|
|
2409
2611
|
},
|
|
2410
2612
|
{
|
|
2411
2613
|
anonymous: false,
|
|
2412
2614
|
inputs: [
|
|
2413
2615
|
{
|
|
2414
|
-
indexed:
|
|
2616
|
+
indexed: false,
|
|
2415
2617
|
internalType: "address",
|
|
2416
|
-
name: "
|
|
2618
|
+
name: "currency",
|
|
2417
2619
|
type: "address"
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
indexed: false,
|
|
2623
|
+
internalType: "bool",
|
|
2624
|
+
name: "isAllowed",
|
|
2625
|
+
type: "bool"
|
|
2418
2626
|
}
|
|
2419
2627
|
],
|
|
2420
|
-
name: "
|
|
2628
|
+
name: "CurrencyStatusUpdated",
|
|
2421
2629
|
type: "event"
|
|
2422
2630
|
},
|
|
2423
2631
|
{
|
|
2424
2632
|
anonymous: false,
|
|
2425
2633
|
inputs: [
|
|
2426
|
-
{
|
|
2427
|
-
indexed: true,
|
|
2428
|
-
internalType: "address",
|
|
2429
|
-
name: "transferSelectorNFT",
|
|
2430
|
-
type: "address"
|
|
2431
|
-
}
|
|
2432
2634
|
],
|
|
2433
|
-
name: "
|
|
2635
|
+
name: "InitiateOwnershipRenouncement",
|
|
2434
2636
|
type: "event"
|
|
2435
2637
|
},
|
|
2436
2638
|
{
|
|
2437
2639
|
anonymous: false,
|
|
2438
2640
|
inputs: [
|
|
2439
2641
|
{
|
|
2440
|
-
indexed:
|
|
2642
|
+
indexed: false,
|
|
2441
2643
|
internalType: "address",
|
|
2442
2644
|
name: "previousOwner",
|
|
2443
2645
|
type: "address"
|
|
2444
2646
|
},
|
|
2445
2647
|
{
|
|
2446
|
-
indexed:
|
|
2648
|
+
indexed: false,
|
|
2447
2649
|
internalType: "address",
|
|
2448
|
-
name: "
|
|
2650
|
+
name: "potentialOwner",
|
|
2449
2651
|
type: "address"
|
|
2450
2652
|
}
|
|
2451
2653
|
],
|
|
2452
|
-
name: "
|
|
2654
|
+
name: "InitiateOwnershipTransfer",
|
|
2453
2655
|
type: "event"
|
|
2454
2656
|
},
|
|
2455
2657
|
{
|
|
2456
2658
|
anonymous: false,
|
|
2457
2659
|
inputs: [
|
|
2458
2660
|
{
|
|
2459
|
-
indexed:
|
|
2661
|
+
indexed: false,
|
|
2460
2662
|
internalType: "address",
|
|
2461
|
-
name: "
|
|
2663
|
+
name: "affiliateController",
|
|
2462
2664
|
type: "address"
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2665
|
+
}
|
|
2666
|
+
],
|
|
2667
|
+
name: "NewAffiliateController",
|
|
2668
|
+
type: "event"
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
anonymous: false,
|
|
2672
|
+
inputs: [
|
|
2470
2673
|
{
|
|
2471
|
-
indexed:
|
|
2472
|
-
internalType: "
|
|
2473
|
-
name: "
|
|
2474
|
-
type: "
|
|
2475
|
-
}
|
|
2674
|
+
indexed: false,
|
|
2675
|
+
internalType: "bool",
|
|
2676
|
+
name: "isActive",
|
|
2677
|
+
type: "bool"
|
|
2678
|
+
}
|
|
2679
|
+
],
|
|
2680
|
+
name: "NewAffiliateProgramStatus",
|
|
2681
|
+
type: "event"
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
anonymous: false,
|
|
2685
|
+
inputs: [
|
|
2476
2686
|
{
|
|
2477
2687
|
indexed: false,
|
|
2478
2688
|
internalType: "address",
|
|
2479
|
-
name: "
|
|
2689
|
+
name: "affiliate",
|
|
2480
2690
|
type: "address"
|
|
2481
2691
|
},
|
|
2482
2692
|
{
|
|
2483
2693
|
indexed: false,
|
|
2484
2694
|
internalType: "uint256",
|
|
2485
|
-
name: "
|
|
2695
|
+
name: "rate",
|
|
2486
2696
|
type: "uint256"
|
|
2487
2697
|
}
|
|
2488
2698
|
],
|
|
2489
|
-
name: "
|
|
2699
|
+
name: "NewAffiliateRate",
|
|
2490
2700
|
type: "event"
|
|
2491
2701
|
},
|
|
2492
2702
|
{
|
|
@@ -2494,66 +2704,83 @@ var abi$1 = [
|
|
|
2494
2704
|
inputs: [
|
|
2495
2705
|
{
|
|
2496
2706
|
indexed: false,
|
|
2497
|
-
internalType: "
|
|
2498
|
-
name: "
|
|
2499
|
-
type: "
|
|
2707
|
+
internalType: "address",
|
|
2708
|
+
name: "user",
|
|
2709
|
+
type: "address"
|
|
2500
2710
|
},
|
|
2501
2711
|
{
|
|
2502
2712
|
indexed: false,
|
|
2503
2713
|
internalType: "uint256",
|
|
2504
|
-
name: "
|
|
2714
|
+
name: "bidNonce",
|
|
2505
2715
|
type: "uint256"
|
|
2506
2716
|
},
|
|
2507
|
-
{
|
|
2508
|
-
indexed: true,
|
|
2509
|
-
internalType: "address",
|
|
2510
|
-
name: "taker",
|
|
2511
|
-
type: "address"
|
|
2512
|
-
},
|
|
2513
|
-
{
|
|
2514
|
-
indexed: true,
|
|
2515
|
-
internalType: "address",
|
|
2516
|
-
name: "maker",
|
|
2517
|
-
type: "address"
|
|
2518
|
-
},
|
|
2519
|
-
{
|
|
2520
|
-
indexed: true,
|
|
2521
|
-
internalType: "address",
|
|
2522
|
-
name: "strategy",
|
|
2523
|
-
type: "address"
|
|
2524
|
-
},
|
|
2525
2717
|
{
|
|
2526
2718
|
indexed: false,
|
|
2527
|
-
internalType: "
|
|
2528
|
-
name: "
|
|
2529
|
-
type: "
|
|
2530
|
-
}
|
|
2719
|
+
internalType: "uint256",
|
|
2720
|
+
name: "askNonce",
|
|
2721
|
+
type: "uint256"
|
|
2722
|
+
}
|
|
2723
|
+
],
|
|
2724
|
+
name: "NewBidAskNonces",
|
|
2725
|
+
type: "event"
|
|
2726
|
+
},
|
|
2727
|
+
{
|
|
2728
|
+
anonymous: false,
|
|
2729
|
+
inputs: [
|
|
2531
2730
|
{
|
|
2532
2731
|
indexed: false,
|
|
2533
2732
|
internalType: "address",
|
|
2534
|
-
name: "
|
|
2733
|
+
name: "creatorFeeManager",
|
|
2535
2734
|
type: "address"
|
|
2536
|
-
}
|
|
2735
|
+
}
|
|
2736
|
+
],
|
|
2737
|
+
name: "NewCreatorFeeManager",
|
|
2738
|
+
type: "event"
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
anonymous: false,
|
|
2742
|
+
inputs: [
|
|
2743
|
+
],
|
|
2744
|
+
name: "NewDomainSeparator",
|
|
2745
|
+
type: "event"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
anonymous: false,
|
|
2749
|
+
inputs: [
|
|
2537
2750
|
{
|
|
2538
2751
|
indexed: false,
|
|
2539
2752
|
internalType: "uint256",
|
|
2540
|
-
name: "
|
|
2753
|
+
name: "gasLimitETHTransfer",
|
|
2541
2754
|
type: "uint256"
|
|
2542
|
-
}
|
|
2755
|
+
}
|
|
2756
|
+
],
|
|
2757
|
+
name: "NewGasLimitETHTransfer",
|
|
2758
|
+
type: "event"
|
|
2759
|
+
},
|
|
2760
|
+
{
|
|
2761
|
+
anonymous: false,
|
|
2762
|
+
inputs: [
|
|
2543
2763
|
{
|
|
2544
2764
|
indexed: false,
|
|
2545
2765
|
internalType: "uint256",
|
|
2546
|
-
name: "
|
|
2766
|
+
name: "maxCreatorFeeBp",
|
|
2547
2767
|
type: "uint256"
|
|
2548
|
-
}
|
|
2768
|
+
}
|
|
2769
|
+
],
|
|
2770
|
+
name: "NewMaxCreatorFeeBp",
|
|
2771
|
+
type: "event"
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
anonymous: false,
|
|
2775
|
+
inputs: [
|
|
2549
2776
|
{
|
|
2550
2777
|
indexed: false,
|
|
2551
|
-
internalType: "
|
|
2552
|
-
name: "
|
|
2553
|
-
type: "
|
|
2778
|
+
internalType: "address",
|
|
2779
|
+
name: "newOwner",
|
|
2780
|
+
type: "address"
|
|
2554
2781
|
}
|
|
2555
2782
|
],
|
|
2556
|
-
name: "
|
|
2783
|
+
name: "NewOwner",
|
|
2557
2784
|
type: "event"
|
|
2558
2785
|
},
|
|
2559
2786
|
{
|
|
@@ -2561,250 +2788,703 @@ var abi$1 = [
|
|
|
2561
2788
|
inputs: [
|
|
2562
2789
|
{
|
|
2563
2790
|
indexed: false,
|
|
2564
|
-
internalType: "
|
|
2565
|
-
name: "
|
|
2566
|
-
type: "
|
|
2567
|
-
}
|
|
2791
|
+
internalType: "address",
|
|
2792
|
+
name: "protocolFeeRecipient",
|
|
2793
|
+
type: "address"
|
|
2794
|
+
}
|
|
2795
|
+
],
|
|
2796
|
+
name: "NewProtocolFeeRecipient",
|
|
2797
|
+
type: "event"
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
anonymous: false,
|
|
2801
|
+
inputs: [
|
|
2568
2802
|
{
|
|
2569
2803
|
indexed: false,
|
|
2570
2804
|
internalType: "uint256",
|
|
2571
|
-
name: "
|
|
2805
|
+
name: "strategyId",
|
|
2572
2806
|
type: "uint256"
|
|
2573
2807
|
},
|
|
2574
2808
|
{
|
|
2575
|
-
indexed:
|
|
2576
|
-
internalType: "
|
|
2577
|
-
name: "
|
|
2578
|
-
type: "
|
|
2579
|
-
},
|
|
2580
|
-
{
|
|
2581
|
-
indexed: true,
|
|
2582
|
-
internalType: "address",
|
|
2583
|
-
name: "maker",
|
|
2584
|
-
type: "address"
|
|
2585
|
-
},
|
|
2586
|
-
{
|
|
2587
|
-
indexed: true,
|
|
2588
|
-
internalType: "address",
|
|
2589
|
-
name: "strategy",
|
|
2590
|
-
type: "address"
|
|
2809
|
+
indexed: false,
|
|
2810
|
+
internalType: "uint16",
|
|
2811
|
+
name: "standardProtocolFeeBp",
|
|
2812
|
+
type: "uint16"
|
|
2591
2813
|
},
|
|
2592
2814
|
{
|
|
2593
2815
|
indexed: false,
|
|
2594
|
-
internalType: "
|
|
2595
|
-
name: "
|
|
2596
|
-
type: "
|
|
2816
|
+
internalType: "uint16",
|
|
2817
|
+
name: "minTotalFeeBp",
|
|
2818
|
+
type: "uint16"
|
|
2597
2819
|
},
|
|
2598
2820
|
{
|
|
2599
2821
|
indexed: false,
|
|
2600
|
-
internalType: "
|
|
2601
|
-
name: "
|
|
2602
|
-
type: "
|
|
2822
|
+
internalType: "uint16",
|
|
2823
|
+
name: "maxProtocolFeeBp",
|
|
2824
|
+
type: "uint16"
|
|
2603
2825
|
},
|
|
2604
2826
|
{
|
|
2605
2827
|
indexed: false,
|
|
2606
|
-
internalType: "
|
|
2607
|
-
name: "
|
|
2608
|
-
type: "
|
|
2828
|
+
internalType: "bytes4",
|
|
2829
|
+
name: "selector",
|
|
2830
|
+
type: "bytes4"
|
|
2609
2831
|
},
|
|
2610
2832
|
{
|
|
2611
2833
|
indexed: false,
|
|
2612
|
-
internalType: "
|
|
2613
|
-
name: "
|
|
2614
|
-
type: "
|
|
2834
|
+
internalType: "bool",
|
|
2835
|
+
name: "isMakerBid",
|
|
2836
|
+
type: "bool"
|
|
2615
2837
|
},
|
|
2616
2838
|
{
|
|
2617
2839
|
indexed: false,
|
|
2618
|
-
internalType: "
|
|
2619
|
-
name: "
|
|
2620
|
-
type: "
|
|
2840
|
+
internalType: "address",
|
|
2841
|
+
name: "implementation",
|
|
2842
|
+
type: "address"
|
|
2621
2843
|
}
|
|
2622
2844
|
],
|
|
2623
|
-
name: "
|
|
2845
|
+
name: "NewStrategy",
|
|
2624
2846
|
type: "event"
|
|
2625
2847
|
},
|
|
2626
2848
|
{
|
|
2849
|
+
anonymous: false,
|
|
2627
2850
|
inputs: [
|
|
2628
|
-
],
|
|
2629
|
-
name: "DOMAIN_SEPARATOR",
|
|
2630
|
-
outputs: [
|
|
2631
|
-
{
|
|
2632
|
-
internalType: "bytes32",
|
|
2633
|
-
name: "",
|
|
2634
|
-
type: "bytes32"
|
|
2635
|
-
}
|
|
2636
|
-
],
|
|
2637
|
-
stateMutability: "view",
|
|
2638
|
-
type: "function"
|
|
2639
|
-
},
|
|
2640
|
-
{
|
|
2641
|
-
inputs: [
|
|
2642
|
-
],
|
|
2643
|
-
name: "WETH",
|
|
2644
|
-
outputs: [
|
|
2645
2851
|
{
|
|
2852
|
+
indexed: false,
|
|
2646
2853
|
internalType: "address",
|
|
2647
|
-
name: "",
|
|
2854
|
+
name: "user",
|
|
2648
2855
|
type: "address"
|
|
2649
|
-
}
|
|
2650
|
-
],
|
|
2651
|
-
stateMutability: "view",
|
|
2652
|
-
type: "function"
|
|
2653
|
-
},
|
|
2654
|
-
{
|
|
2655
|
-
inputs: [
|
|
2656
|
-
{
|
|
2657
|
-
internalType: "uint256",
|
|
2658
|
-
name: "minNonce",
|
|
2659
|
-
type: "uint256"
|
|
2660
|
-
}
|
|
2661
|
-
],
|
|
2662
|
-
name: "cancelAllOrdersForSender",
|
|
2663
|
-
outputs: [
|
|
2664
|
-
],
|
|
2665
|
-
stateMutability: "nonpayable",
|
|
2666
|
-
type: "function"
|
|
2667
|
-
},
|
|
2668
|
-
{
|
|
2669
|
-
inputs: [
|
|
2856
|
+
},
|
|
2670
2857
|
{
|
|
2858
|
+
indexed: false,
|
|
2671
2859
|
internalType: "uint256[]",
|
|
2672
2860
|
name: "orderNonces",
|
|
2673
2861
|
type: "uint256[]"
|
|
2674
2862
|
}
|
|
2675
2863
|
],
|
|
2676
|
-
name: "
|
|
2677
|
-
|
|
2678
|
-
],
|
|
2679
|
-
stateMutability: "nonpayable",
|
|
2680
|
-
type: "function"
|
|
2864
|
+
name: "OrderNoncesCancelled",
|
|
2865
|
+
type: "event"
|
|
2681
2866
|
},
|
|
2682
2867
|
{
|
|
2868
|
+
anonymous: false,
|
|
2683
2869
|
inputs: [
|
|
2684
|
-
],
|
|
2685
|
-
name: "currencyManager",
|
|
2686
|
-
outputs: [
|
|
2687
2870
|
{
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
stateMutability: "view",
|
|
2694
|
-
type: "function"
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
inputs: [
|
|
2698
|
-
],
|
|
2699
|
-
name: "executionManager",
|
|
2700
|
-
outputs: [
|
|
2871
|
+
indexed: false,
|
|
2872
|
+
internalType: "uint256",
|
|
2873
|
+
name: "strategyId",
|
|
2874
|
+
type: "uint256"
|
|
2875
|
+
},
|
|
2701
2876
|
{
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2877
|
+
indexed: false,
|
|
2878
|
+
internalType: "bool",
|
|
2879
|
+
name: "isActive",
|
|
2880
|
+
type: "bool"
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
indexed: false,
|
|
2884
|
+
internalType: "uint16",
|
|
2885
|
+
name: "standardProtocolFeeBp",
|
|
2886
|
+
type: "uint16"
|
|
2887
|
+
},
|
|
2888
|
+
{
|
|
2889
|
+
indexed: false,
|
|
2890
|
+
internalType: "uint16",
|
|
2891
|
+
name: "minTotalFeeBp",
|
|
2892
|
+
type: "uint16"
|
|
2705
2893
|
}
|
|
2706
2894
|
],
|
|
2707
|
-
|
|
2708
|
-
type: "
|
|
2895
|
+
name: "StrategyUpdated",
|
|
2896
|
+
type: "event"
|
|
2709
2897
|
},
|
|
2710
2898
|
{
|
|
2899
|
+
anonymous: false,
|
|
2711
2900
|
inputs: [
|
|
2712
2901
|
{
|
|
2902
|
+
indexed: false,
|
|
2713
2903
|
internalType: "address",
|
|
2714
2904
|
name: "user",
|
|
2715
2905
|
type: "address"
|
|
2716
2906
|
},
|
|
2717
2907
|
{
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
],
|
|
2723
|
-
name: "isUserOrderNonceExecutedOrCancelled",
|
|
2724
|
-
outputs: [
|
|
2725
|
-
{
|
|
2726
|
-
internalType: "bool",
|
|
2727
|
-
name: "",
|
|
2728
|
-
type: "bool"
|
|
2908
|
+
indexed: false,
|
|
2909
|
+
internalType: "uint256[]",
|
|
2910
|
+
name: "subsetNonces",
|
|
2911
|
+
type: "uint256[]"
|
|
2729
2912
|
}
|
|
2730
2913
|
],
|
|
2731
|
-
|
|
2732
|
-
type: "
|
|
2914
|
+
name: "SubsetNoncesCancelled",
|
|
2915
|
+
type: "event"
|
|
2733
2916
|
},
|
|
2734
2917
|
{
|
|
2918
|
+
anonymous: false,
|
|
2735
2919
|
inputs: [
|
|
2736
2920
|
{
|
|
2737
2921
|
components: [
|
|
2738
2922
|
{
|
|
2739
|
-
internalType: "
|
|
2740
|
-
name: "
|
|
2923
|
+
internalType: "bytes32",
|
|
2924
|
+
name: "orderHash",
|
|
2925
|
+
type: "bytes32"
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
internalType: "uint256",
|
|
2929
|
+
name: "orderNonce",
|
|
2930
|
+
type: "uint256"
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
internalType: "bool",
|
|
2934
|
+
name: "isNonceInvalidated",
|
|
2935
|
+
type: "bool"
|
|
2936
|
+
}
|
|
2937
|
+
],
|
|
2938
|
+
indexed: false,
|
|
2939
|
+
internalType: "struct ILooksRareProtocol.NonceInvalidationParameters",
|
|
2940
|
+
name: "nonceInvalidationParameters",
|
|
2941
|
+
type: "tuple"
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
indexed: false,
|
|
2945
|
+
internalType: "address",
|
|
2946
|
+
name: "askUser",
|
|
2947
|
+
type: "address"
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
indexed: false,
|
|
2951
|
+
internalType: "address",
|
|
2952
|
+
name: "bidUser",
|
|
2953
|
+
type: "address"
|
|
2954
|
+
},
|
|
2955
|
+
{
|
|
2956
|
+
indexed: false,
|
|
2957
|
+
internalType: "uint256",
|
|
2958
|
+
name: "strategyId",
|
|
2959
|
+
type: "uint256"
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
indexed: false,
|
|
2963
|
+
internalType: "address",
|
|
2964
|
+
name: "currency",
|
|
2965
|
+
type: "address"
|
|
2966
|
+
},
|
|
2967
|
+
{
|
|
2968
|
+
indexed: false,
|
|
2969
|
+
internalType: "address",
|
|
2970
|
+
name: "collection",
|
|
2971
|
+
type: "address"
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
indexed: false,
|
|
2975
|
+
internalType: "uint256[]",
|
|
2976
|
+
name: "itemIds",
|
|
2977
|
+
type: "uint256[]"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
indexed: false,
|
|
2981
|
+
internalType: "uint256[]",
|
|
2982
|
+
name: "amounts",
|
|
2983
|
+
type: "uint256[]"
|
|
2984
|
+
},
|
|
2985
|
+
{
|
|
2986
|
+
indexed: false,
|
|
2987
|
+
internalType: "address[2]",
|
|
2988
|
+
name: "feeRecipients",
|
|
2989
|
+
type: "address[2]"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
indexed: false,
|
|
2993
|
+
internalType: "uint256[3]",
|
|
2994
|
+
name: "feeAmounts",
|
|
2995
|
+
type: "uint256[3]"
|
|
2996
|
+
}
|
|
2997
|
+
],
|
|
2998
|
+
name: "TakerAsk",
|
|
2999
|
+
type: "event"
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
anonymous: false,
|
|
3003
|
+
inputs: [
|
|
3004
|
+
{
|
|
3005
|
+
components: [
|
|
3006
|
+
{
|
|
3007
|
+
internalType: "bytes32",
|
|
3008
|
+
name: "orderHash",
|
|
3009
|
+
type: "bytes32"
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
internalType: "uint256",
|
|
3013
|
+
name: "orderNonce",
|
|
3014
|
+
type: "uint256"
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
internalType: "bool",
|
|
3018
|
+
name: "isNonceInvalidated",
|
|
2741
3019
|
type: "bool"
|
|
3020
|
+
}
|
|
3021
|
+
],
|
|
3022
|
+
indexed: false,
|
|
3023
|
+
internalType: "struct ILooksRareProtocol.NonceInvalidationParameters",
|
|
3024
|
+
name: "nonceInvalidationParameters",
|
|
3025
|
+
type: "tuple"
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
indexed: false,
|
|
3029
|
+
internalType: "address",
|
|
3030
|
+
name: "bidUser",
|
|
3031
|
+
type: "address"
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
indexed: false,
|
|
3035
|
+
internalType: "address",
|
|
3036
|
+
name: "bidRecipient",
|
|
3037
|
+
type: "address"
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
indexed: false,
|
|
3041
|
+
internalType: "uint256",
|
|
3042
|
+
name: "strategyId",
|
|
3043
|
+
type: "uint256"
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
indexed: false,
|
|
3047
|
+
internalType: "address",
|
|
3048
|
+
name: "currency",
|
|
3049
|
+
type: "address"
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
indexed: false,
|
|
3053
|
+
internalType: "address",
|
|
3054
|
+
name: "collection",
|
|
3055
|
+
type: "address"
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
indexed: false,
|
|
3059
|
+
internalType: "uint256[]",
|
|
3060
|
+
name: "itemIds",
|
|
3061
|
+
type: "uint256[]"
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
indexed: false,
|
|
3065
|
+
internalType: "uint256[]",
|
|
3066
|
+
name: "amounts",
|
|
3067
|
+
type: "uint256[]"
|
|
3068
|
+
},
|
|
3069
|
+
{
|
|
3070
|
+
indexed: false,
|
|
3071
|
+
internalType: "address[2]",
|
|
3072
|
+
name: "feeRecipients",
|
|
3073
|
+
type: "address[2]"
|
|
3074
|
+
},
|
|
3075
|
+
{
|
|
3076
|
+
indexed: false,
|
|
3077
|
+
internalType: "uint256[3]",
|
|
3078
|
+
name: "feeAmounts",
|
|
3079
|
+
type: "uint256[3]"
|
|
3080
|
+
}
|
|
3081
|
+
],
|
|
3082
|
+
name: "TakerBid",
|
|
3083
|
+
type: "event"
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
inputs: [
|
|
3087
|
+
],
|
|
3088
|
+
name: "MAGIC_VALUE_ORDER_NONCE_EXECUTED",
|
|
3089
|
+
outputs: [
|
|
3090
|
+
{
|
|
3091
|
+
internalType: "bytes32",
|
|
3092
|
+
name: "",
|
|
3093
|
+
type: "bytes32"
|
|
3094
|
+
}
|
|
3095
|
+
],
|
|
3096
|
+
stateMutability: "view",
|
|
3097
|
+
type: "function"
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
inputs: [
|
|
3101
|
+
],
|
|
3102
|
+
name: "WETH",
|
|
3103
|
+
outputs: [
|
|
3104
|
+
{
|
|
3105
|
+
internalType: "address",
|
|
3106
|
+
name: "",
|
|
3107
|
+
type: "address"
|
|
3108
|
+
}
|
|
3109
|
+
],
|
|
3110
|
+
stateMutability: "view",
|
|
3111
|
+
type: "function"
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
inputs: [
|
|
3115
|
+
{
|
|
3116
|
+
internalType: "uint16",
|
|
3117
|
+
name: "standardProtocolFeeBp",
|
|
3118
|
+
type: "uint16"
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
internalType: "uint16",
|
|
3122
|
+
name: "minTotalFeeBp",
|
|
3123
|
+
type: "uint16"
|
|
3124
|
+
},
|
|
3125
|
+
{
|
|
3126
|
+
internalType: "uint16",
|
|
3127
|
+
name: "maxProtocolFeeBp",
|
|
3128
|
+
type: "uint16"
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
internalType: "bytes4",
|
|
3132
|
+
name: "selector",
|
|
3133
|
+
type: "bytes4"
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
internalType: "bool",
|
|
3137
|
+
name: "isMakerBid",
|
|
3138
|
+
type: "bool"
|
|
3139
|
+
},
|
|
3140
|
+
{
|
|
3141
|
+
internalType: "address",
|
|
3142
|
+
name: "implementation",
|
|
3143
|
+
type: "address"
|
|
3144
|
+
}
|
|
3145
|
+
],
|
|
3146
|
+
name: "addStrategy",
|
|
3147
|
+
outputs: [
|
|
3148
|
+
],
|
|
3149
|
+
stateMutability: "nonpayable",
|
|
3150
|
+
type: "function"
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
inputs: [
|
|
3154
|
+
],
|
|
3155
|
+
name: "affiliateController",
|
|
3156
|
+
outputs: [
|
|
3157
|
+
{
|
|
3158
|
+
internalType: "address",
|
|
3159
|
+
name: "",
|
|
3160
|
+
type: "address"
|
|
3161
|
+
}
|
|
3162
|
+
],
|
|
3163
|
+
stateMutability: "view",
|
|
3164
|
+
type: "function"
|
|
3165
|
+
},
|
|
3166
|
+
{
|
|
3167
|
+
inputs: [
|
|
3168
|
+
{
|
|
3169
|
+
internalType: "address",
|
|
3170
|
+
name: "",
|
|
3171
|
+
type: "address"
|
|
3172
|
+
}
|
|
3173
|
+
],
|
|
3174
|
+
name: "affiliateRates",
|
|
3175
|
+
outputs: [
|
|
3176
|
+
{
|
|
3177
|
+
internalType: "uint256",
|
|
3178
|
+
name: "",
|
|
3179
|
+
type: "uint256"
|
|
3180
|
+
}
|
|
3181
|
+
],
|
|
3182
|
+
stateMutability: "view",
|
|
3183
|
+
type: "function"
|
|
3184
|
+
},
|
|
3185
|
+
{
|
|
3186
|
+
inputs: [
|
|
3187
|
+
{
|
|
3188
|
+
internalType: "uint256[]",
|
|
3189
|
+
name: "orderNonces",
|
|
3190
|
+
type: "uint256[]"
|
|
3191
|
+
}
|
|
3192
|
+
],
|
|
3193
|
+
name: "cancelOrderNonces",
|
|
3194
|
+
outputs: [
|
|
3195
|
+
],
|
|
3196
|
+
stateMutability: "nonpayable",
|
|
3197
|
+
type: "function"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
inputs: [
|
|
3201
|
+
],
|
|
3202
|
+
name: "cancelOwnershipTransfer",
|
|
3203
|
+
outputs: [
|
|
3204
|
+
],
|
|
3205
|
+
stateMutability: "nonpayable",
|
|
3206
|
+
type: "function"
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
inputs: [
|
|
3210
|
+
{
|
|
3211
|
+
internalType: "uint256[]",
|
|
3212
|
+
name: "subsetNonces",
|
|
3213
|
+
type: "uint256[]"
|
|
3214
|
+
}
|
|
3215
|
+
],
|
|
3216
|
+
name: "cancelSubsetNonces",
|
|
3217
|
+
outputs: [
|
|
3218
|
+
],
|
|
3219
|
+
stateMutability: "nonpayable",
|
|
3220
|
+
type: "function"
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
inputs: [
|
|
3224
|
+
],
|
|
3225
|
+
name: "chainId",
|
|
3226
|
+
outputs: [
|
|
3227
|
+
{
|
|
3228
|
+
internalType: "uint256",
|
|
3229
|
+
name: "",
|
|
3230
|
+
type: "uint256"
|
|
3231
|
+
}
|
|
3232
|
+
],
|
|
3233
|
+
stateMutability: "view",
|
|
3234
|
+
type: "function"
|
|
3235
|
+
},
|
|
3236
|
+
{
|
|
3237
|
+
inputs: [
|
|
3238
|
+
],
|
|
3239
|
+
name: "confirmOwnershipRenouncement",
|
|
3240
|
+
outputs: [
|
|
3241
|
+
],
|
|
3242
|
+
stateMutability: "nonpayable",
|
|
3243
|
+
type: "function"
|
|
3244
|
+
},
|
|
3245
|
+
{
|
|
3246
|
+
inputs: [
|
|
3247
|
+
],
|
|
3248
|
+
name: "confirmOwnershipTransfer",
|
|
3249
|
+
outputs: [
|
|
3250
|
+
],
|
|
3251
|
+
stateMutability: "nonpayable",
|
|
3252
|
+
type: "function"
|
|
3253
|
+
},
|
|
3254
|
+
{
|
|
3255
|
+
inputs: [
|
|
3256
|
+
],
|
|
3257
|
+
name: "creatorFeeManager",
|
|
3258
|
+
outputs: [
|
|
3259
|
+
{
|
|
3260
|
+
internalType: "contract ICreatorFeeManager",
|
|
3261
|
+
name: "",
|
|
3262
|
+
type: "address"
|
|
3263
|
+
}
|
|
3264
|
+
],
|
|
3265
|
+
stateMutability: "view",
|
|
3266
|
+
type: "function"
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
inputs: [
|
|
3270
|
+
],
|
|
3271
|
+
name: "domainSeparator",
|
|
3272
|
+
outputs: [
|
|
3273
|
+
{
|
|
3274
|
+
internalType: "bytes32",
|
|
3275
|
+
name: "",
|
|
3276
|
+
type: "bytes32"
|
|
3277
|
+
}
|
|
3278
|
+
],
|
|
3279
|
+
stateMutability: "view",
|
|
3280
|
+
type: "function"
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
inputs: [
|
|
3284
|
+
{
|
|
3285
|
+
components: [
|
|
3286
|
+
{
|
|
3287
|
+
internalType: "address",
|
|
3288
|
+
name: "recipient",
|
|
3289
|
+
type: "address"
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
internalType: "bytes",
|
|
3293
|
+
name: "additionalParameters",
|
|
3294
|
+
type: "bytes"
|
|
3295
|
+
}
|
|
3296
|
+
],
|
|
3297
|
+
internalType: "struct OrderStructs.Taker[]",
|
|
3298
|
+
name: "takerBids",
|
|
3299
|
+
type: "tuple[]"
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
components: [
|
|
3303
|
+
{
|
|
3304
|
+
internalType: "enum QuoteType",
|
|
3305
|
+
name: "quoteType",
|
|
3306
|
+
type: "uint8"
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
internalType: "uint256",
|
|
3310
|
+
name: "globalNonce",
|
|
3311
|
+
type: "uint256"
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
internalType: "uint256",
|
|
3315
|
+
name: "subsetNonce",
|
|
3316
|
+
type: "uint256"
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
internalType: "uint256",
|
|
3320
|
+
name: "orderNonce",
|
|
3321
|
+
type: "uint256"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
internalType: "uint256",
|
|
3325
|
+
name: "strategyId",
|
|
3326
|
+
type: "uint256"
|
|
3327
|
+
},
|
|
3328
|
+
{
|
|
3329
|
+
internalType: "enum CollectionType",
|
|
3330
|
+
name: "collectionType",
|
|
3331
|
+
type: "uint8"
|
|
3332
|
+
},
|
|
3333
|
+
{
|
|
3334
|
+
internalType: "address",
|
|
3335
|
+
name: "collection",
|
|
3336
|
+
type: "address"
|
|
3337
|
+
},
|
|
3338
|
+
{
|
|
3339
|
+
internalType: "address",
|
|
3340
|
+
name: "currency",
|
|
3341
|
+
type: "address"
|
|
2742
3342
|
},
|
|
2743
3343
|
{
|
|
2744
3344
|
internalType: "address",
|
|
2745
|
-
name: "
|
|
3345
|
+
name: "signer",
|
|
2746
3346
|
type: "address"
|
|
2747
3347
|
},
|
|
2748
3348
|
{
|
|
2749
3349
|
internalType: "uint256",
|
|
2750
|
-
name: "
|
|
3350
|
+
name: "startTime",
|
|
2751
3351
|
type: "uint256"
|
|
2752
3352
|
},
|
|
2753
3353
|
{
|
|
2754
3354
|
internalType: "uint256",
|
|
2755
|
-
name: "
|
|
3355
|
+
name: "endTime",
|
|
2756
3356
|
type: "uint256"
|
|
2757
3357
|
},
|
|
2758
3358
|
{
|
|
2759
3359
|
internalType: "uint256",
|
|
2760
|
-
name: "
|
|
3360
|
+
name: "price",
|
|
2761
3361
|
type: "uint256"
|
|
2762
3362
|
},
|
|
3363
|
+
{
|
|
3364
|
+
internalType: "uint256[]",
|
|
3365
|
+
name: "itemIds",
|
|
3366
|
+
type: "uint256[]"
|
|
3367
|
+
},
|
|
3368
|
+
{
|
|
3369
|
+
internalType: "uint256[]",
|
|
3370
|
+
name: "amounts",
|
|
3371
|
+
type: "uint256[]"
|
|
3372
|
+
},
|
|
2763
3373
|
{
|
|
2764
3374
|
internalType: "bytes",
|
|
2765
|
-
name: "
|
|
3375
|
+
name: "additionalParameters",
|
|
2766
3376
|
type: "bytes"
|
|
2767
3377
|
}
|
|
2768
3378
|
],
|
|
2769
|
-
internalType: "struct
|
|
2770
|
-
name: "
|
|
2771
|
-
type: "tuple"
|
|
3379
|
+
internalType: "struct OrderStructs.Maker[]",
|
|
3380
|
+
name: "makerAsks",
|
|
3381
|
+
type: "tuple[]"
|
|
3382
|
+
},
|
|
3383
|
+
{
|
|
3384
|
+
internalType: "bytes[]",
|
|
3385
|
+
name: "makerSignatures",
|
|
3386
|
+
type: "bytes[]"
|
|
2772
3387
|
},
|
|
2773
3388
|
{
|
|
2774
3389
|
components: [
|
|
2775
3390
|
{
|
|
2776
|
-
internalType: "
|
|
2777
|
-
name: "
|
|
2778
|
-
type: "
|
|
3391
|
+
internalType: "bytes32",
|
|
3392
|
+
name: "root",
|
|
3393
|
+
type: "bytes32"
|
|
2779
3394
|
},
|
|
3395
|
+
{
|
|
3396
|
+
components: [
|
|
3397
|
+
{
|
|
3398
|
+
internalType: "bytes32",
|
|
3399
|
+
name: "value",
|
|
3400
|
+
type: "bytes32"
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
internalType: "enum OrderStructs.MerkleTreeNodePosition",
|
|
3404
|
+
name: "position",
|
|
3405
|
+
type: "uint8"
|
|
3406
|
+
}
|
|
3407
|
+
],
|
|
3408
|
+
internalType: "struct OrderStructs.MerkleTreeNode[]",
|
|
3409
|
+
name: "proof",
|
|
3410
|
+
type: "tuple[]"
|
|
3411
|
+
}
|
|
3412
|
+
],
|
|
3413
|
+
internalType: "struct OrderStructs.MerkleTree[]",
|
|
3414
|
+
name: "merkleTrees",
|
|
3415
|
+
type: "tuple[]"
|
|
3416
|
+
},
|
|
3417
|
+
{
|
|
3418
|
+
internalType: "address",
|
|
3419
|
+
name: "affiliate",
|
|
3420
|
+
type: "address"
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
internalType: "bool",
|
|
3424
|
+
name: "isAtomic",
|
|
3425
|
+
type: "bool"
|
|
3426
|
+
}
|
|
3427
|
+
],
|
|
3428
|
+
name: "executeMultipleTakerBids",
|
|
3429
|
+
outputs: [
|
|
3430
|
+
],
|
|
3431
|
+
stateMutability: "payable",
|
|
3432
|
+
type: "function"
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
inputs: [
|
|
3436
|
+
{
|
|
3437
|
+
components: [
|
|
2780
3438
|
{
|
|
2781
3439
|
internalType: "address",
|
|
2782
|
-
name: "
|
|
3440
|
+
name: "recipient",
|
|
2783
3441
|
type: "address"
|
|
2784
3442
|
},
|
|
2785
3443
|
{
|
|
2786
|
-
internalType: "
|
|
2787
|
-
name: "
|
|
2788
|
-
type: "
|
|
3444
|
+
internalType: "bytes",
|
|
3445
|
+
name: "additionalParameters",
|
|
3446
|
+
type: "bytes"
|
|
3447
|
+
}
|
|
3448
|
+
],
|
|
3449
|
+
internalType: "struct OrderStructs.Taker",
|
|
3450
|
+
name: "takerAsk",
|
|
3451
|
+
type: "tuple"
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
components: [
|
|
3455
|
+
{
|
|
3456
|
+
internalType: "enum QuoteType",
|
|
3457
|
+
name: "quoteType",
|
|
3458
|
+
type: "uint8"
|
|
2789
3459
|
},
|
|
2790
3460
|
{
|
|
2791
3461
|
internalType: "uint256",
|
|
2792
|
-
name: "
|
|
3462
|
+
name: "globalNonce",
|
|
2793
3463
|
type: "uint256"
|
|
2794
3464
|
},
|
|
2795
3465
|
{
|
|
2796
3466
|
internalType: "uint256",
|
|
2797
|
-
name: "
|
|
3467
|
+
name: "subsetNonce",
|
|
2798
3468
|
type: "uint256"
|
|
2799
3469
|
},
|
|
2800
3470
|
{
|
|
2801
3471
|
internalType: "uint256",
|
|
2802
|
-
name: "
|
|
3472
|
+
name: "orderNonce",
|
|
3473
|
+
type: "uint256"
|
|
3474
|
+
},
|
|
3475
|
+
{
|
|
3476
|
+
internalType: "uint256",
|
|
3477
|
+
name: "strategyId",
|
|
2803
3478
|
type: "uint256"
|
|
2804
3479
|
},
|
|
3480
|
+
{
|
|
3481
|
+
internalType: "enum CollectionType",
|
|
3482
|
+
name: "collectionType",
|
|
3483
|
+
type: "uint8"
|
|
3484
|
+
},
|
|
2805
3485
|
{
|
|
2806
3486
|
internalType: "address",
|
|
2807
|
-
name: "
|
|
3487
|
+
name: "collection",
|
|
2808
3488
|
type: "address"
|
|
2809
3489
|
},
|
|
2810
3490
|
{
|
|
@@ -2813,9 +3493,9 @@ var abi$1 = [
|
|
|
2813
3493
|
type: "address"
|
|
2814
3494
|
},
|
|
2815
3495
|
{
|
|
2816
|
-
internalType: "
|
|
2817
|
-
name: "
|
|
2818
|
-
type: "
|
|
3496
|
+
internalType: "address",
|
|
3497
|
+
name: "signer",
|
|
3498
|
+
type: "address"
|
|
2819
3499
|
},
|
|
2820
3500
|
{
|
|
2821
3501
|
internalType: "uint256",
|
|
@@ -2829,36 +3509,70 @@ var abi$1 = [
|
|
|
2829
3509
|
},
|
|
2830
3510
|
{
|
|
2831
3511
|
internalType: "uint256",
|
|
2832
|
-
name: "
|
|
3512
|
+
name: "price",
|
|
2833
3513
|
type: "uint256"
|
|
2834
3514
|
},
|
|
2835
3515
|
{
|
|
2836
|
-
internalType: "
|
|
2837
|
-
name: "
|
|
2838
|
-
type: "
|
|
3516
|
+
internalType: "uint256[]",
|
|
3517
|
+
name: "itemIds",
|
|
3518
|
+
type: "uint256[]"
|
|
2839
3519
|
},
|
|
2840
3520
|
{
|
|
2841
|
-
internalType: "
|
|
2842
|
-
name: "
|
|
2843
|
-
type: "
|
|
3521
|
+
internalType: "uint256[]",
|
|
3522
|
+
name: "amounts",
|
|
3523
|
+
type: "uint256[]"
|
|
2844
3524
|
},
|
|
3525
|
+
{
|
|
3526
|
+
internalType: "bytes",
|
|
3527
|
+
name: "additionalParameters",
|
|
3528
|
+
type: "bytes"
|
|
3529
|
+
}
|
|
3530
|
+
],
|
|
3531
|
+
internalType: "struct OrderStructs.Maker",
|
|
3532
|
+
name: "makerBid",
|
|
3533
|
+
type: "tuple"
|
|
3534
|
+
},
|
|
3535
|
+
{
|
|
3536
|
+
internalType: "bytes",
|
|
3537
|
+
name: "makerSignature",
|
|
3538
|
+
type: "bytes"
|
|
3539
|
+
},
|
|
3540
|
+
{
|
|
3541
|
+
components: [
|
|
2845
3542
|
{
|
|
2846
3543
|
internalType: "bytes32",
|
|
2847
|
-
name: "
|
|
3544
|
+
name: "root",
|
|
2848
3545
|
type: "bytes32"
|
|
2849
3546
|
},
|
|
2850
3547
|
{
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
3548
|
+
components: [
|
|
3549
|
+
{
|
|
3550
|
+
internalType: "bytes32",
|
|
3551
|
+
name: "value",
|
|
3552
|
+
type: "bytes32"
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
internalType: "enum OrderStructs.MerkleTreeNodePosition",
|
|
3556
|
+
name: "position",
|
|
3557
|
+
type: "uint8"
|
|
3558
|
+
}
|
|
3559
|
+
],
|
|
3560
|
+
internalType: "struct OrderStructs.MerkleTreeNode[]",
|
|
3561
|
+
name: "proof",
|
|
3562
|
+
type: "tuple[]"
|
|
2854
3563
|
}
|
|
2855
3564
|
],
|
|
2856
|
-
internalType: "struct
|
|
2857
|
-
name: "
|
|
3565
|
+
internalType: "struct OrderStructs.MerkleTree",
|
|
3566
|
+
name: "merkleTree",
|
|
2858
3567
|
type: "tuple"
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
internalType: "address",
|
|
3571
|
+
name: "affiliate",
|
|
3572
|
+
type: "address"
|
|
2859
3573
|
}
|
|
2860
3574
|
],
|
|
2861
|
-
name: "
|
|
3575
|
+
name: "executeTakerAsk",
|
|
2862
3576
|
outputs: [
|
|
2863
3577
|
],
|
|
2864
3578
|
stateMutability: "nonpayable",
|
|
@@ -2868,76 +3582,56 @@ var abi$1 = [
|
|
|
2868
3582
|
inputs: [
|
|
2869
3583
|
{
|
|
2870
3584
|
components: [
|
|
2871
|
-
{
|
|
2872
|
-
internalType: "bool",
|
|
2873
|
-
name: "isOrderAsk",
|
|
2874
|
-
type: "bool"
|
|
2875
|
-
},
|
|
2876
3585
|
{
|
|
2877
3586
|
internalType: "address",
|
|
2878
|
-
name: "
|
|
3587
|
+
name: "recipient",
|
|
2879
3588
|
type: "address"
|
|
2880
3589
|
},
|
|
2881
|
-
{
|
|
2882
|
-
internalType: "uint256",
|
|
2883
|
-
name: "price",
|
|
2884
|
-
type: "uint256"
|
|
2885
|
-
},
|
|
2886
|
-
{
|
|
2887
|
-
internalType: "uint256",
|
|
2888
|
-
name: "tokenId",
|
|
2889
|
-
type: "uint256"
|
|
2890
|
-
},
|
|
2891
|
-
{
|
|
2892
|
-
internalType: "uint256",
|
|
2893
|
-
name: "minPercentageToAsk",
|
|
2894
|
-
type: "uint256"
|
|
2895
|
-
},
|
|
2896
3590
|
{
|
|
2897
3591
|
internalType: "bytes",
|
|
2898
|
-
name: "
|
|
3592
|
+
name: "additionalParameters",
|
|
2899
3593
|
type: "bytes"
|
|
2900
3594
|
}
|
|
2901
3595
|
],
|
|
2902
|
-
internalType: "struct
|
|
3596
|
+
internalType: "struct OrderStructs.Taker",
|
|
2903
3597
|
name: "takerBid",
|
|
2904
3598
|
type: "tuple"
|
|
2905
3599
|
},
|
|
2906
3600
|
{
|
|
2907
3601
|
components: [
|
|
2908
3602
|
{
|
|
2909
|
-
internalType: "
|
|
2910
|
-
name: "
|
|
2911
|
-
type: "
|
|
2912
|
-
},
|
|
2913
|
-
{
|
|
2914
|
-
internalType: "address",
|
|
2915
|
-
name: "signer",
|
|
2916
|
-
type: "address"
|
|
3603
|
+
internalType: "enum QuoteType",
|
|
3604
|
+
name: "quoteType",
|
|
3605
|
+
type: "uint8"
|
|
2917
3606
|
},
|
|
2918
3607
|
{
|
|
2919
|
-
internalType: "
|
|
2920
|
-
name: "
|
|
2921
|
-
type: "
|
|
3608
|
+
internalType: "uint256",
|
|
3609
|
+
name: "globalNonce",
|
|
3610
|
+
type: "uint256"
|
|
2922
3611
|
},
|
|
2923
3612
|
{
|
|
2924
3613
|
internalType: "uint256",
|
|
2925
|
-
name: "
|
|
3614
|
+
name: "subsetNonce",
|
|
2926
3615
|
type: "uint256"
|
|
2927
3616
|
},
|
|
2928
3617
|
{
|
|
2929
3618
|
internalType: "uint256",
|
|
2930
|
-
name: "
|
|
3619
|
+
name: "orderNonce",
|
|
2931
3620
|
type: "uint256"
|
|
2932
3621
|
},
|
|
2933
3622
|
{
|
|
2934
3623
|
internalType: "uint256",
|
|
2935
|
-
name: "
|
|
3624
|
+
name: "strategyId",
|
|
2936
3625
|
type: "uint256"
|
|
2937
3626
|
},
|
|
3627
|
+
{
|
|
3628
|
+
internalType: "enum CollectionType",
|
|
3629
|
+
name: "collectionType",
|
|
3630
|
+
type: "uint8"
|
|
3631
|
+
},
|
|
2938
3632
|
{
|
|
2939
3633
|
internalType: "address",
|
|
2940
|
-
name: "
|
|
3634
|
+
name: "collection",
|
|
2941
3635
|
type: "address"
|
|
2942
3636
|
},
|
|
2943
3637
|
{
|
|
@@ -2946,9 +3640,9 @@ var abi$1 = [
|
|
|
2946
3640
|
type: "address"
|
|
2947
3641
|
},
|
|
2948
3642
|
{
|
|
2949
|
-
internalType: "
|
|
2950
|
-
name: "
|
|
2951
|
-
type: "
|
|
3643
|
+
internalType: "address",
|
|
3644
|
+
name: "signer",
|
|
3645
|
+
type: "address"
|
|
2952
3646
|
},
|
|
2953
3647
|
{
|
|
2954
3648
|
internalType: "uint256",
|
|
@@ -2962,115 +3656,298 @@ var abi$1 = [
|
|
|
2962
3656
|
},
|
|
2963
3657
|
{
|
|
2964
3658
|
internalType: "uint256",
|
|
2965
|
-
name: "
|
|
3659
|
+
name: "price",
|
|
2966
3660
|
type: "uint256"
|
|
2967
3661
|
},
|
|
2968
3662
|
{
|
|
2969
|
-
internalType: "
|
|
2970
|
-
name: "
|
|
2971
|
-
type: "
|
|
3663
|
+
internalType: "uint256[]",
|
|
3664
|
+
name: "itemIds",
|
|
3665
|
+
type: "uint256[]"
|
|
2972
3666
|
},
|
|
2973
3667
|
{
|
|
2974
|
-
internalType: "
|
|
2975
|
-
name: "
|
|
2976
|
-
type: "
|
|
3668
|
+
internalType: "uint256[]",
|
|
3669
|
+
name: "amounts",
|
|
3670
|
+
type: "uint256[]"
|
|
2977
3671
|
},
|
|
3672
|
+
{
|
|
3673
|
+
internalType: "bytes",
|
|
3674
|
+
name: "additionalParameters",
|
|
3675
|
+
type: "bytes"
|
|
3676
|
+
}
|
|
3677
|
+
],
|
|
3678
|
+
internalType: "struct OrderStructs.Maker",
|
|
3679
|
+
name: "makerAsk",
|
|
3680
|
+
type: "tuple"
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
internalType: "bytes",
|
|
3684
|
+
name: "makerSignature",
|
|
3685
|
+
type: "bytes"
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
components: [
|
|
2978
3689
|
{
|
|
2979
3690
|
internalType: "bytes32",
|
|
2980
|
-
name: "
|
|
3691
|
+
name: "root",
|
|
2981
3692
|
type: "bytes32"
|
|
2982
3693
|
},
|
|
2983
3694
|
{
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
3695
|
+
components: [
|
|
3696
|
+
{
|
|
3697
|
+
internalType: "bytes32",
|
|
3698
|
+
name: "value",
|
|
3699
|
+
type: "bytes32"
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
internalType: "enum OrderStructs.MerkleTreeNodePosition",
|
|
3703
|
+
name: "position",
|
|
3704
|
+
type: "uint8"
|
|
3705
|
+
}
|
|
3706
|
+
],
|
|
3707
|
+
internalType: "struct OrderStructs.MerkleTreeNode[]",
|
|
3708
|
+
name: "proof",
|
|
3709
|
+
type: "tuple[]"
|
|
2987
3710
|
}
|
|
2988
3711
|
],
|
|
2989
|
-
internalType: "struct
|
|
2990
|
-
name: "
|
|
3712
|
+
internalType: "struct OrderStructs.MerkleTree",
|
|
3713
|
+
name: "merkleTree",
|
|
2991
3714
|
type: "tuple"
|
|
3715
|
+
},
|
|
3716
|
+
{
|
|
3717
|
+
internalType: "address",
|
|
3718
|
+
name: "affiliate",
|
|
3719
|
+
type: "address"
|
|
2992
3720
|
}
|
|
2993
3721
|
],
|
|
2994
|
-
name: "
|
|
3722
|
+
name: "executeTakerBid",
|
|
2995
3723
|
outputs: [
|
|
2996
3724
|
],
|
|
2997
3725
|
stateMutability: "payable",
|
|
2998
3726
|
type: "function"
|
|
2999
3727
|
},
|
|
3728
|
+
{
|
|
3729
|
+
inputs: [
|
|
3730
|
+
{
|
|
3731
|
+
internalType: "bytes32",
|
|
3732
|
+
name: "root",
|
|
3733
|
+
type: "bytes32"
|
|
3734
|
+
},
|
|
3735
|
+
{
|
|
3736
|
+
internalType: "uint256",
|
|
3737
|
+
name: "proofLength",
|
|
3738
|
+
type: "uint256"
|
|
3739
|
+
}
|
|
3740
|
+
],
|
|
3741
|
+
name: "hashBatchOrder",
|
|
3742
|
+
outputs: [
|
|
3743
|
+
{
|
|
3744
|
+
internalType: "bytes32",
|
|
3745
|
+
name: "batchOrderHash",
|
|
3746
|
+
type: "bytes32"
|
|
3747
|
+
}
|
|
3748
|
+
],
|
|
3749
|
+
stateMutability: "pure",
|
|
3750
|
+
type: "function"
|
|
3751
|
+
},
|
|
3752
|
+
{
|
|
3753
|
+
inputs: [
|
|
3754
|
+
{
|
|
3755
|
+
internalType: "bool",
|
|
3756
|
+
name: "bid",
|
|
3757
|
+
type: "bool"
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
internalType: "bool",
|
|
3761
|
+
name: "ask",
|
|
3762
|
+
type: "bool"
|
|
3763
|
+
}
|
|
3764
|
+
],
|
|
3765
|
+
name: "incrementBidAskNonces",
|
|
3766
|
+
outputs: [
|
|
3767
|
+
],
|
|
3768
|
+
stateMutability: "nonpayable",
|
|
3769
|
+
type: "function"
|
|
3770
|
+
},
|
|
3771
|
+
{
|
|
3772
|
+
inputs: [
|
|
3773
|
+
],
|
|
3774
|
+
name: "initiateOwnershipRenouncement",
|
|
3775
|
+
outputs: [
|
|
3776
|
+
],
|
|
3777
|
+
stateMutability: "nonpayable",
|
|
3778
|
+
type: "function"
|
|
3779
|
+
},
|
|
3780
|
+
{
|
|
3781
|
+
inputs: [
|
|
3782
|
+
{
|
|
3783
|
+
internalType: "address",
|
|
3784
|
+
name: "newPotentialOwner",
|
|
3785
|
+
type: "address"
|
|
3786
|
+
}
|
|
3787
|
+
],
|
|
3788
|
+
name: "initiateOwnershipTransfer",
|
|
3789
|
+
outputs: [
|
|
3790
|
+
],
|
|
3791
|
+
stateMutability: "nonpayable",
|
|
3792
|
+
type: "function"
|
|
3793
|
+
},
|
|
3794
|
+
{
|
|
3795
|
+
inputs: [
|
|
3796
|
+
],
|
|
3797
|
+
name: "isAffiliateProgramActive",
|
|
3798
|
+
outputs: [
|
|
3799
|
+
{
|
|
3800
|
+
internalType: "bool",
|
|
3801
|
+
name: "",
|
|
3802
|
+
type: "bool"
|
|
3803
|
+
}
|
|
3804
|
+
],
|
|
3805
|
+
stateMutability: "view",
|
|
3806
|
+
type: "function"
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
inputs: [
|
|
3810
|
+
{
|
|
3811
|
+
internalType: "address",
|
|
3812
|
+
name: "",
|
|
3813
|
+
type: "address"
|
|
3814
|
+
}
|
|
3815
|
+
],
|
|
3816
|
+
name: "isCurrencyAllowed",
|
|
3817
|
+
outputs: [
|
|
3818
|
+
{
|
|
3819
|
+
internalType: "bool",
|
|
3820
|
+
name: "",
|
|
3821
|
+
type: "bool"
|
|
3822
|
+
}
|
|
3823
|
+
],
|
|
3824
|
+
stateMutability: "view",
|
|
3825
|
+
type: "function"
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
inputs: [
|
|
3829
|
+
],
|
|
3830
|
+
name: "maxCreatorFeeBp",
|
|
3831
|
+
outputs: [
|
|
3832
|
+
{
|
|
3833
|
+
internalType: "uint16",
|
|
3834
|
+
name: "",
|
|
3835
|
+
type: "uint16"
|
|
3836
|
+
}
|
|
3837
|
+
],
|
|
3838
|
+
stateMutability: "view",
|
|
3839
|
+
type: "function"
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
inputs: [
|
|
3843
|
+
],
|
|
3844
|
+
name: "owner",
|
|
3845
|
+
outputs: [
|
|
3846
|
+
{
|
|
3847
|
+
internalType: "address",
|
|
3848
|
+
name: "",
|
|
3849
|
+
type: "address"
|
|
3850
|
+
}
|
|
3851
|
+
],
|
|
3852
|
+
stateMutability: "view",
|
|
3853
|
+
type: "function"
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
inputs: [
|
|
3857
|
+
],
|
|
3858
|
+
name: "ownershipStatus",
|
|
3859
|
+
outputs: [
|
|
3860
|
+
{
|
|
3861
|
+
internalType: "enum IOwnableTwoSteps.Status",
|
|
3862
|
+
name: "",
|
|
3863
|
+
type: "uint8"
|
|
3864
|
+
}
|
|
3865
|
+
],
|
|
3866
|
+
stateMutability: "view",
|
|
3867
|
+
type: "function"
|
|
3868
|
+
},
|
|
3869
|
+
{
|
|
3870
|
+
inputs: [
|
|
3871
|
+
],
|
|
3872
|
+
name: "potentialOwner",
|
|
3873
|
+
outputs: [
|
|
3874
|
+
{
|
|
3875
|
+
internalType: "address",
|
|
3876
|
+
name: "",
|
|
3877
|
+
type: "address"
|
|
3878
|
+
}
|
|
3879
|
+
],
|
|
3880
|
+
stateMutability: "view",
|
|
3881
|
+
type: "function"
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
inputs: [
|
|
3885
|
+
],
|
|
3886
|
+
name: "protocolFeeRecipient",
|
|
3887
|
+
outputs: [
|
|
3888
|
+
{
|
|
3889
|
+
internalType: "address",
|
|
3890
|
+
name: "",
|
|
3891
|
+
type: "address"
|
|
3892
|
+
}
|
|
3893
|
+
],
|
|
3894
|
+
stateMutability: "view",
|
|
3895
|
+
type: "function"
|
|
3896
|
+
},
|
|
3000
3897
|
{
|
|
3001
3898
|
inputs: [
|
|
3002
3899
|
{
|
|
3003
3900
|
components: [
|
|
3004
|
-
{
|
|
3005
|
-
internalType: "bool",
|
|
3006
|
-
name: "isOrderAsk",
|
|
3007
|
-
type: "bool"
|
|
3008
|
-
},
|
|
3009
3901
|
{
|
|
3010
3902
|
internalType: "address",
|
|
3011
|
-
name: "
|
|
3903
|
+
name: "recipient",
|
|
3012
3904
|
type: "address"
|
|
3013
3905
|
},
|
|
3014
|
-
{
|
|
3015
|
-
internalType: "uint256",
|
|
3016
|
-
name: "price",
|
|
3017
|
-
type: "uint256"
|
|
3018
|
-
},
|
|
3019
|
-
{
|
|
3020
|
-
internalType: "uint256",
|
|
3021
|
-
name: "tokenId",
|
|
3022
|
-
type: "uint256"
|
|
3023
|
-
},
|
|
3024
|
-
{
|
|
3025
|
-
internalType: "uint256",
|
|
3026
|
-
name: "minPercentageToAsk",
|
|
3027
|
-
type: "uint256"
|
|
3028
|
-
},
|
|
3029
3906
|
{
|
|
3030
3907
|
internalType: "bytes",
|
|
3031
|
-
name: "
|
|
3908
|
+
name: "additionalParameters",
|
|
3032
3909
|
type: "bytes"
|
|
3033
3910
|
}
|
|
3034
3911
|
],
|
|
3035
|
-
internalType: "struct
|
|
3036
|
-
name: "
|
|
3912
|
+
internalType: "struct OrderStructs.Taker",
|
|
3913
|
+
name: "takerBid",
|
|
3037
3914
|
type: "tuple"
|
|
3038
3915
|
},
|
|
3039
3916
|
{
|
|
3040
3917
|
components: [
|
|
3041
3918
|
{
|
|
3042
|
-
internalType: "
|
|
3043
|
-
name: "
|
|
3044
|
-
type: "
|
|
3045
|
-
},
|
|
3046
|
-
{
|
|
3047
|
-
internalType: "address",
|
|
3048
|
-
name: "signer",
|
|
3049
|
-
type: "address"
|
|
3919
|
+
internalType: "enum QuoteType",
|
|
3920
|
+
name: "quoteType",
|
|
3921
|
+
type: "uint8"
|
|
3050
3922
|
},
|
|
3051
3923
|
{
|
|
3052
|
-
internalType: "
|
|
3053
|
-
name: "
|
|
3054
|
-
type: "
|
|
3924
|
+
internalType: "uint256",
|
|
3925
|
+
name: "globalNonce",
|
|
3926
|
+
type: "uint256"
|
|
3055
3927
|
},
|
|
3056
3928
|
{
|
|
3057
3929
|
internalType: "uint256",
|
|
3058
|
-
name: "
|
|
3930
|
+
name: "subsetNonce",
|
|
3059
3931
|
type: "uint256"
|
|
3060
3932
|
},
|
|
3061
3933
|
{
|
|
3062
3934
|
internalType: "uint256",
|
|
3063
|
-
name: "
|
|
3935
|
+
name: "orderNonce",
|
|
3064
3936
|
type: "uint256"
|
|
3065
3937
|
},
|
|
3066
3938
|
{
|
|
3067
3939
|
internalType: "uint256",
|
|
3068
|
-
name: "
|
|
3940
|
+
name: "strategyId",
|
|
3069
3941
|
type: "uint256"
|
|
3070
3942
|
},
|
|
3943
|
+
{
|
|
3944
|
+
internalType: "enum CollectionType",
|
|
3945
|
+
name: "collectionType",
|
|
3946
|
+
type: "uint8"
|
|
3947
|
+
},
|
|
3071
3948
|
{
|
|
3072
3949
|
internalType: "address",
|
|
3073
|
-
name: "
|
|
3950
|
+
name: "collection",
|
|
3074
3951
|
type: "address"
|
|
3075
3952
|
},
|
|
3076
3953
|
{
|
|
@@ -3079,9 +3956,9 @@ var abi$1 = [
|
|
|
3079
3956
|
type: "address"
|
|
3080
3957
|
},
|
|
3081
3958
|
{
|
|
3082
|
-
internalType: "
|
|
3083
|
-
name: "
|
|
3084
|
-
type: "
|
|
3959
|
+
internalType: "address",
|
|
3960
|
+
name: "signer",
|
|
3961
|
+
type: "address"
|
|
3085
3962
|
},
|
|
3086
3963
|
{
|
|
3087
3964
|
internalType: "uint256",
|
|
@@ -3095,49 +3972,94 @@ var abi$1 = [
|
|
|
3095
3972
|
},
|
|
3096
3973
|
{
|
|
3097
3974
|
internalType: "uint256",
|
|
3098
|
-
name: "
|
|
3975
|
+
name: "price",
|
|
3099
3976
|
type: "uint256"
|
|
3100
3977
|
},
|
|
3101
3978
|
{
|
|
3102
|
-
internalType: "
|
|
3103
|
-
name: "
|
|
3104
|
-
type: "
|
|
3105
|
-
},
|
|
3106
|
-
{
|
|
3107
|
-
internalType: "uint8",
|
|
3108
|
-
name: "v",
|
|
3109
|
-
type: "uint8"
|
|
3979
|
+
internalType: "uint256[]",
|
|
3980
|
+
name: "itemIds",
|
|
3981
|
+
type: "uint256[]"
|
|
3110
3982
|
},
|
|
3111
|
-
{
|
|
3112
|
-
internalType: "
|
|
3113
|
-
name: "
|
|
3114
|
-
type: "
|
|
3983
|
+
{
|
|
3984
|
+
internalType: "uint256[]",
|
|
3985
|
+
name: "amounts",
|
|
3986
|
+
type: "uint256[]"
|
|
3115
3987
|
},
|
|
3116
3988
|
{
|
|
3117
|
-
internalType: "
|
|
3118
|
-
name: "
|
|
3119
|
-
type: "
|
|
3989
|
+
internalType: "bytes",
|
|
3990
|
+
name: "additionalParameters",
|
|
3991
|
+
type: "bytes"
|
|
3120
3992
|
}
|
|
3121
3993
|
],
|
|
3122
|
-
internalType: "struct
|
|
3123
|
-
name: "
|
|
3994
|
+
internalType: "struct OrderStructs.Maker",
|
|
3995
|
+
name: "makerAsk",
|
|
3124
3996
|
type: "tuple"
|
|
3997
|
+
},
|
|
3998
|
+
{
|
|
3999
|
+
internalType: "address",
|
|
4000
|
+
name: "sender",
|
|
4001
|
+
type: "address"
|
|
4002
|
+
},
|
|
4003
|
+
{
|
|
4004
|
+
internalType: "bytes32",
|
|
4005
|
+
name: "orderHash",
|
|
4006
|
+
type: "bytes32"
|
|
3125
4007
|
}
|
|
3126
4008
|
],
|
|
3127
|
-
name: "
|
|
4009
|
+
name: "restrictedExecuteTakerBid",
|
|
3128
4010
|
outputs: [
|
|
4011
|
+
{
|
|
4012
|
+
internalType: "uint256",
|
|
4013
|
+
name: "protocolFeeAmount",
|
|
4014
|
+
type: "uint256"
|
|
4015
|
+
}
|
|
3129
4016
|
],
|
|
3130
4017
|
stateMutability: "nonpayable",
|
|
3131
4018
|
type: "function"
|
|
3132
4019
|
},
|
|
3133
4020
|
{
|
|
3134
4021
|
inputs: [
|
|
4022
|
+
{
|
|
4023
|
+
internalType: "uint256",
|
|
4024
|
+
name: "",
|
|
4025
|
+
type: "uint256"
|
|
4026
|
+
}
|
|
3135
4027
|
],
|
|
3136
|
-
name: "
|
|
4028
|
+
name: "strategyInfo",
|
|
3137
4029
|
outputs: [
|
|
4030
|
+
{
|
|
4031
|
+
internalType: "bool",
|
|
4032
|
+
name: "isActive",
|
|
4033
|
+
type: "bool"
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
internalType: "uint16",
|
|
4037
|
+
name: "standardProtocolFeeBp",
|
|
4038
|
+
type: "uint16"
|
|
4039
|
+
},
|
|
4040
|
+
{
|
|
4041
|
+
internalType: "uint16",
|
|
4042
|
+
name: "minTotalFeeBp",
|
|
4043
|
+
type: "uint16"
|
|
4044
|
+
},
|
|
4045
|
+
{
|
|
4046
|
+
internalType: "uint16",
|
|
4047
|
+
name: "maxProtocolFeeBp",
|
|
4048
|
+
type: "uint16"
|
|
4049
|
+
},
|
|
4050
|
+
{
|
|
4051
|
+
internalType: "bytes4",
|
|
4052
|
+
name: "selector",
|
|
4053
|
+
type: "bytes4"
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
internalType: "bool",
|
|
4057
|
+
name: "isMakerBid",
|
|
4058
|
+
type: "bool"
|
|
4059
|
+
},
|
|
3138
4060
|
{
|
|
3139
4061
|
internalType: "address",
|
|
3140
|
-
name: "",
|
|
4062
|
+
name: "implementation",
|
|
3141
4063
|
type: "address"
|
|
3142
4064
|
}
|
|
3143
4065
|
],
|
|
@@ -3147,10 +4069,10 @@ var abi$1 = [
|
|
|
3147
4069
|
{
|
|
3148
4070
|
inputs: [
|
|
3149
4071
|
],
|
|
3150
|
-
name: "
|
|
4072
|
+
name: "transferManager",
|
|
3151
4073
|
outputs: [
|
|
3152
4074
|
{
|
|
3153
|
-
internalType: "
|
|
4075
|
+
internalType: "contract TransferManager",
|
|
3154
4076
|
name: "",
|
|
3155
4077
|
type: "address"
|
|
3156
4078
|
}
|
|
@@ -3160,8 +4082,13 @@ var abi$1 = [
|
|
|
3160
4082
|
},
|
|
3161
4083
|
{
|
|
3162
4084
|
inputs: [
|
|
4085
|
+
{
|
|
4086
|
+
internalType: "address",
|
|
4087
|
+
name: "newAffiliateController",
|
|
4088
|
+
type: "address"
|
|
4089
|
+
}
|
|
3163
4090
|
],
|
|
3164
|
-
name: "
|
|
4091
|
+
name: "updateAffiliateController",
|
|
3165
4092
|
outputs: [
|
|
3166
4093
|
],
|
|
3167
4094
|
stateMutability: "nonpayable",
|
|
@@ -3169,27 +4096,46 @@ var abi$1 = [
|
|
|
3169
4096
|
},
|
|
3170
4097
|
{
|
|
3171
4098
|
inputs: [
|
|
4099
|
+
{
|
|
4100
|
+
internalType: "bool",
|
|
4101
|
+
name: "isActive",
|
|
4102
|
+
type: "bool"
|
|
4103
|
+
}
|
|
3172
4104
|
],
|
|
3173
|
-
name: "
|
|
4105
|
+
name: "updateAffiliateProgramStatus",
|
|
3174
4106
|
outputs: [
|
|
4107
|
+
],
|
|
4108
|
+
stateMutability: "nonpayable",
|
|
4109
|
+
type: "function"
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
inputs: [
|
|
3175
4113
|
{
|
|
3176
|
-
internalType: "
|
|
3177
|
-
name: "",
|
|
4114
|
+
internalType: "address",
|
|
4115
|
+
name: "affiliate",
|
|
3178
4116
|
type: "address"
|
|
4117
|
+
},
|
|
4118
|
+
{
|
|
4119
|
+
internalType: "uint256",
|
|
4120
|
+
name: "bp",
|
|
4121
|
+
type: "uint256"
|
|
3179
4122
|
}
|
|
3180
4123
|
],
|
|
3181
|
-
|
|
4124
|
+
name: "updateAffiliateRate",
|
|
4125
|
+
outputs: [
|
|
4126
|
+
],
|
|
4127
|
+
stateMutability: "nonpayable",
|
|
3182
4128
|
type: "function"
|
|
3183
4129
|
},
|
|
3184
4130
|
{
|
|
3185
4131
|
inputs: [
|
|
3186
4132
|
{
|
|
3187
4133
|
internalType: "address",
|
|
3188
|
-
name: "
|
|
4134
|
+
name: "newCreatorFeeManager",
|
|
3189
4135
|
type: "address"
|
|
3190
4136
|
}
|
|
3191
4137
|
],
|
|
3192
|
-
name: "
|
|
4138
|
+
name: "updateCreatorFeeManager",
|
|
3193
4139
|
outputs: [
|
|
3194
4140
|
],
|
|
3195
4141
|
stateMutability: "nonpayable",
|
|
@@ -3197,27 +4143,41 @@ var abi$1 = [
|
|
|
3197
4143
|
},
|
|
3198
4144
|
{
|
|
3199
4145
|
inputs: [
|
|
3200
|
-
],
|
|
3201
|
-
name: "transferSelectorNFT",
|
|
3202
|
-
outputs: [
|
|
3203
4146
|
{
|
|
3204
|
-
internalType: "
|
|
3205
|
-
name: "",
|
|
4147
|
+
internalType: "address",
|
|
4148
|
+
name: "currency",
|
|
3206
4149
|
type: "address"
|
|
4150
|
+
},
|
|
4151
|
+
{
|
|
4152
|
+
internalType: "bool",
|
|
4153
|
+
name: "isAllowed",
|
|
4154
|
+
type: "bool"
|
|
3207
4155
|
}
|
|
3208
4156
|
],
|
|
3209
|
-
|
|
4157
|
+
name: "updateCurrencyStatus",
|
|
4158
|
+
outputs: [
|
|
4159
|
+
],
|
|
4160
|
+
stateMutability: "nonpayable",
|
|
4161
|
+
type: "function"
|
|
4162
|
+
},
|
|
4163
|
+
{
|
|
4164
|
+
inputs: [
|
|
4165
|
+
],
|
|
4166
|
+
name: "updateDomainSeparator",
|
|
4167
|
+
outputs: [
|
|
4168
|
+
],
|
|
4169
|
+
stateMutability: "nonpayable",
|
|
3210
4170
|
type: "function"
|
|
3211
4171
|
},
|
|
3212
4172
|
{
|
|
3213
4173
|
inputs: [
|
|
3214
4174
|
{
|
|
3215
|
-
internalType: "
|
|
3216
|
-
name: "
|
|
3217
|
-
type: "
|
|
4175
|
+
internalType: "uint256",
|
|
4176
|
+
name: "newGasLimitETHTransfer",
|
|
4177
|
+
type: "uint256"
|
|
3218
4178
|
}
|
|
3219
4179
|
],
|
|
3220
|
-
name: "
|
|
4180
|
+
name: "updateETHGasLimitForTransfer",
|
|
3221
4181
|
outputs: [
|
|
3222
4182
|
],
|
|
3223
4183
|
stateMutability: "nonpayable",
|
|
@@ -3226,12 +4186,12 @@ var abi$1 = [
|
|
|
3226
4186
|
{
|
|
3227
4187
|
inputs: [
|
|
3228
4188
|
{
|
|
3229
|
-
internalType: "
|
|
3230
|
-
name: "
|
|
3231
|
-
type: "
|
|
4189
|
+
internalType: "uint16",
|
|
4190
|
+
name: "newMaxCreatorFeeBp",
|
|
4191
|
+
type: "uint16"
|
|
3232
4192
|
}
|
|
3233
4193
|
],
|
|
3234
|
-
name: "
|
|
4194
|
+
name: "updateMaxCreatorFeeBp",
|
|
3235
4195
|
outputs: [
|
|
3236
4196
|
],
|
|
3237
4197
|
stateMutability: "nonpayable",
|
|
@@ -3241,7 +4201,7 @@ var abi$1 = [
|
|
|
3241
4201
|
inputs: [
|
|
3242
4202
|
{
|
|
3243
4203
|
internalType: "address",
|
|
3244
|
-
name: "
|
|
4204
|
+
name: "newProtocolFeeRecipient",
|
|
3245
4205
|
type: "address"
|
|
3246
4206
|
}
|
|
3247
4207
|
],
|
|
@@ -3254,12 +4214,27 @@ var abi$1 = [
|
|
|
3254
4214
|
{
|
|
3255
4215
|
inputs: [
|
|
3256
4216
|
{
|
|
3257
|
-
internalType: "
|
|
3258
|
-
name: "
|
|
3259
|
-
type: "
|
|
4217
|
+
internalType: "uint256",
|
|
4218
|
+
name: "strategyId",
|
|
4219
|
+
type: "uint256"
|
|
4220
|
+
},
|
|
4221
|
+
{
|
|
4222
|
+
internalType: "bool",
|
|
4223
|
+
name: "isActive",
|
|
4224
|
+
type: "bool"
|
|
4225
|
+
},
|
|
4226
|
+
{
|
|
4227
|
+
internalType: "uint16",
|
|
4228
|
+
name: "newStandardProtocolFee",
|
|
4229
|
+
type: "uint16"
|
|
4230
|
+
},
|
|
4231
|
+
{
|
|
4232
|
+
internalType: "uint16",
|
|
4233
|
+
name: "newMinTotalFee",
|
|
4234
|
+
type: "uint16"
|
|
3260
4235
|
}
|
|
3261
4236
|
],
|
|
3262
|
-
name: "
|
|
4237
|
+
name: "updateStrategy",
|
|
3263
4238
|
outputs: [
|
|
3264
4239
|
],
|
|
3265
4240
|
stateMutability: "nonpayable",
|
|
@@ -3269,14 +4244,24 @@ var abi$1 = [
|
|
|
3269
4244
|
inputs: [
|
|
3270
4245
|
{
|
|
3271
4246
|
internalType: "address",
|
|
3272
|
-
name: "
|
|
4247
|
+
name: "",
|
|
3273
4248
|
type: "address"
|
|
3274
4249
|
}
|
|
3275
4250
|
],
|
|
3276
|
-
name: "
|
|
4251
|
+
name: "userBidAskNonces",
|
|
3277
4252
|
outputs: [
|
|
4253
|
+
{
|
|
4254
|
+
internalType: "uint256",
|
|
4255
|
+
name: "bidNonce",
|
|
4256
|
+
type: "uint256"
|
|
4257
|
+
},
|
|
4258
|
+
{
|
|
4259
|
+
internalType: "uint256",
|
|
4260
|
+
name: "askNonce",
|
|
4261
|
+
type: "uint256"
|
|
4262
|
+
}
|
|
3278
4263
|
],
|
|
3279
|
-
stateMutability: "
|
|
4264
|
+
stateMutability: "view",
|
|
3280
4265
|
type: "function"
|
|
3281
4266
|
},
|
|
3282
4267
|
{
|
|
@@ -3285,62 +4270,118 @@ var abi$1 = [
|
|
|
3285
4270
|
internalType: "address",
|
|
3286
4271
|
name: "",
|
|
3287
4272
|
type: "address"
|
|
4273
|
+
},
|
|
4274
|
+
{
|
|
4275
|
+
internalType: "uint256",
|
|
4276
|
+
name: "",
|
|
4277
|
+
type: "uint256"
|
|
3288
4278
|
}
|
|
3289
4279
|
],
|
|
3290
|
-
name: "
|
|
4280
|
+
name: "userOrderNonce",
|
|
3291
4281
|
outputs: [
|
|
4282
|
+
{
|
|
4283
|
+
internalType: "bytes32",
|
|
4284
|
+
name: "",
|
|
4285
|
+
type: "bytes32"
|
|
4286
|
+
}
|
|
4287
|
+
],
|
|
4288
|
+
stateMutability: "view",
|
|
4289
|
+
type: "function"
|
|
4290
|
+
},
|
|
4291
|
+
{
|
|
4292
|
+
inputs: [
|
|
4293
|
+
{
|
|
4294
|
+
internalType: "address",
|
|
4295
|
+
name: "",
|
|
4296
|
+
type: "address"
|
|
4297
|
+
},
|
|
3292
4298
|
{
|
|
3293
4299
|
internalType: "uint256",
|
|
3294
4300
|
name: "",
|
|
3295
4301
|
type: "uint256"
|
|
3296
4302
|
}
|
|
3297
4303
|
],
|
|
4304
|
+
name: "userSubsetNonce",
|
|
4305
|
+
outputs: [
|
|
4306
|
+
{
|
|
4307
|
+
internalType: "bool",
|
|
4308
|
+
name: "",
|
|
4309
|
+
type: "bool"
|
|
4310
|
+
}
|
|
4311
|
+
],
|
|
3298
4312
|
stateMutability: "view",
|
|
3299
4313
|
type: "function"
|
|
3300
4314
|
}
|
|
3301
4315
|
];
|
|
3302
4316
|
|
|
3303
|
-
var
|
|
3304
|
-
_inheritsLoose(
|
|
3305
|
-
function
|
|
3306
|
-
return _NFTTrade.call(this, exports.Market.
|
|
4317
|
+
var LooksRareV2Trade = /*#__PURE__*/function (_NFTTrade) {
|
|
4318
|
+
_inheritsLoose(LooksRareV2Trade, _NFTTrade);
|
|
4319
|
+
function LooksRareV2Trade(orders) {
|
|
4320
|
+
return _NFTTrade.call(this, exports.Market.LooksRareV2, orders) || this;
|
|
3307
4321
|
}
|
|
3308
|
-
var _proto =
|
|
4322
|
+
var _proto = LooksRareV2Trade.prototype;
|
|
3309
4323
|
_proto.encode = function encode(planner, config) {
|
|
3310
4324
|
for (var _iterator = _createForOfIteratorHelperLoose(this.orders), _step; !(_step = _iterator()).done;) {
|
|
3311
4325
|
var item = _step.value;
|
|
3312
|
-
var
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
4326
|
+
var _this$refactorAPIData = this.refactorAPIData(item),
|
|
4327
|
+
takerBid = _this$refactorAPIData.takerBid,
|
|
4328
|
+
makerOrder = _this$refactorAPIData.makerOrder,
|
|
4329
|
+
makerSignature = _this$refactorAPIData.makerSignature,
|
|
4330
|
+
value = _this$refactorAPIData.value,
|
|
4331
|
+
merkleTree = _this$refactorAPIData.merkleTree;
|
|
4332
|
+
var calldata = LooksRareV2Trade.INTERFACE.encodeFunctionData('executeTakerBid', [takerBid, makerOrder, makerSignature, merkleTree, ZERO_ADDRESS]);
|
|
4333
|
+
planner.addCommand(CommandType.LOOKS_RARE_V2, [value, calldata], config.allowRevert);
|
|
3319
4334
|
}
|
|
3320
4335
|
};
|
|
3321
4336
|
_proto.getBuyItems = function getBuyItems() {
|
|
3322
4337
|
var buyItems = [];
|
|
3323
4338
|
for (var _iterator2 = _createForOfIteratorHelperLoose(this.orders), _step2; !(_step2 = _iterator2()).done;) {
|
|
3324
4339
|
var item = _step2.value;
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
4340
|
+
var tokenAddress = item.apiOrder.collection;
|
|
4341
|
+
var tokenType = item.apiOrder.collectionType == LooksRareV2Trade.ERC721_ORDER ? exports.TokenType.ERC721 : exports.TokenType.ERC1155;
|
|
4342
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose(item.apiOrder.itemIds), _step3; !(_step3 = _iterator3()).done;) {
|
|
4343
|
+
var tokenId = _step3.value;
|
|
4344
|
+
buyItems.push({
|
|
4345
|
+
tokenAddress: tokenAddress,
|
|
4346
|
+
tokenId: tokenId,
|
|
4347
|
+
tokenType: tokenType
|
|
4348
|
+
});
|
|
4349
|
+
}
|
|
3330
4350
|
}
|
|
3331
4351
|
return buyItems;
|
|
3332
4352
|
};
|
|
3333
4353
|
_proto.getTotalPrice = function getTotalPrice() {
|
|
3334
4354
|
var total = ethers.BigNumber.from(0);
|
|
3335
|
-
for (var
|
|
3336
|
-
var item =
|
|
3337
|
-
total = total.add(item.
|
|
4355
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose(this.orders), _step4; !(_step4 = _iterator4()).done;) {
|
|
4356
|
+
var item = _step4.value;
|
|
4357
|
+
total = total.add(item.apiOrder.price);
|
|
3338
4358
|
}
|
|
3339
4359
|
return total;
|
|
3340
4360
|
};
|
|
3341
|
-
|
|
4361
|
+
_proto.refactorAPIData = function refactorAPIData(data) {
|
|
4362
|
+
var makerOrder = _extends({}, data.apiOrder);
|
|
4363
|
+
var makerSignature = data.apiOrder.signature;
|
|
4364
|
+
var takerBid = {
|
|
4365
|
+
recipient: data.taker,
|
|
4366
|
+
additionalParameters: '0x'
|
|
4367
|
+
};
|
|
4368
|
+
var value = ethers.BigNumber.from(data.apiOrder.price);
|
|
4369
|
+
var merkleTree = {
|
|
4370
|
+
root: data.apiOrder.merkleRoot,
|
|
4371
|
+
proof: data.apiOrder.merkleProof
|
|
4372
|
+
};
|
|
4373
|
+
return {
|
|
4374
|
+
takerBid: takerBid,
|
|
4375
|
+
makerOrder: makerOrder,
|
|
4376
|
+
makerSignature: makerSignature,
|
|
4377
|
+
value: value,
|
|
4378
|
+
merkleTree: merkleTree
|
|
4379
|
+
};
|
|
4380
|
+
};
|
|
4381
|
+
return LooksRareV2Trade;
|
|
3342
4382
|
}(NFTTrade);
|
|
3343
|
-
|
|
4383
|
+
LooksRareV2Trade.INTERFACE = /*#__PURE__*/new abi$7.Interface(abi$1);
|
|
4384
|
+
LooksRareV2Trade.ERC721_ORDER = 0;
|
|
3344
4385
|
|
|
3345
4386
|
var abi$2 = [
|
|
3346
4387
|
{
|
|
@@ -3650,8 +4691,18 @@ var abi$3 = [
|
|
|
3650
4691
|
},
|
|
3651
4692
|
{
|
|
3652
4693
|
internalType: "address",
|
|
3653
|
-
name: "
|
|
4694
|
+
name: "_WETH",
|
|
4695
|
+
type: "address"
|
|
4696
|
+
},
|
|
4697
|
+
{
|
|
4698
|
+
internalType: "address payable",
|
|
4699
|
+
name: "_swapTarget",
|
|
3654
4700
|
type: "address"
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
internalType: "uint256",
|
|
4704
|
+
name: "_dustThreshold",
|
|
4705
|
+
type: "uint256"
|
|
3655
4706
|
}
|
|
3656
4707
|
],
|
|
3657
4708
|
stateMutability: "nonpayable",
|
|
@@ -3682,38 +4733,19 @@ var abi$3 = [
|
|
|
3682
4733
|
name: "Buy",
|
|
3683
4734
|
type: "event"
|
|
3684
4735
|
},
|
|
3685
|
-
{
|
|
3686
|
-
anonymous: false,
|
|
3687
|
-
inputs: [
|
|
3688
|
-
{
|
|
3689
|
-
indexed: true,
|
|
3690
|
-
internalType: "address",
|
|
3691
|
-
name: "previousOwner",
|
|
3692
|
-
type: "address"
|
|
3693
|
-
},
|
|
3694
|
-
{
|
|
3695
|
-
indexed: true,
|
|
3696
|
-
internalType: "address",
|
|
3697
|
-
name: "newOwner",
|
|
3698
|
-
type: "address"
|
|
3699
|
-
}
|
|
3700
|
-
],
|
|
3701
|
-
name: "OwnershipTransferred",
|
|
3702
|
-
type: "event"
|
|
3703
|
-
},
|
|
3704
4736
|
{
|
|
3705
4737
|
anonymous: false,
|
|
3706
4738
|
inputs: [
|
|
3707
4739
|
{
|
|
3708
4740
|
indexed: false,
|
|
3709
4741
|
internalType: "uint256",
|
|
3710
|
-
name: "
|
|
4742
|
+
name: "ethAmount",
|
|
3711
4743
|
type: "uint256"
|
|
3712
4744
|
},
|
|
3713
4745
|
{
|
|
3714
4746
|
indexed: false,
|
|
3715
4747
|
internalType: "uint256",
|
|
3716
|
-
name: "
|
|
4748
|
+
name: "vTokenAmount",
|
|
3717
4749
|
type: "uint256"
|
|
3718
4750
|
},
|
|
3719
4751
|
{
|
|
@@ -3723,119 +4755,90 @@ var abi$3 = [
|
|
|
3723
4755
|
type: "address"
|
|
3724
4756
|
}
|
|
3725
4757
|
],
|
|
3726
|
-
name: "
|
|
4758
|
+
name: "DustReturned",
|
|
3727
4759
|
type: "event"
|
|
3728
4760
|
},
|
|
3729
4761
|
{
|
|
3730
4762
|
anonymous: false,
|
|
3731
4763
|
inputs: [
|
|
3732
4764
|
{
|
|
3733
|
-
indexed:
|
|
3734
|
-
internalType: "
|
|
3735
|
-
name: "
|
|
3736
|
-
type: "
|
|
3737
|
-
},
|
|
3738
|
-
{
|
|
3739
|
-
indexed: false,
|
|
3740
|
-
internalType: "uint256",
|
|
3741
|
-
name: "ethSpent",
|
|
3742
|
-
type: "uint256"
|
|
4765
|
+
indexed: true,
|
|
4766
|
+
internalType: "address",
|
|
4767
|
+
name: "previousOwner",
|
|
4768
|
+
type: "address"
|
|
3743
4769
|
},
|
|
3744
4770
|
{
|
|
3745
|
-
indexed:
|
|
4771
|
+
indexed: true,
|
|
3746
4772
|
internalType: "address",
|
|
3747
|
-
name: "
|
|
4773
|
+
name: "newOwner",
|
|
3748
4774
|
type: "address"
|
|
3749
4775
|
}
|
|
3750
4776
|
],
|
|
3751
|
-
name: "
|
|
4777
|
+
name: "OwnershipTransferred",
|
|
3752
4778
|
type: "event"
|
|
3753
4779
|
},
|
|
3754
4780
|
{
|
|
4781
|
+
anonymous: false,
|
|
3755
4782
|
inputs: [
|
|
3756
|
-
],
|
|
3757
|
-
name: "WETH",
|
|
3758
|
-
outputs: [
|
|
3759
|
-
{
|
|
3760
|
-
internalType: "contract IWETH",
|
|
3761
|
-
name: "",
|
|
3762
|
-
type: "address"
|
|
3763
|
-
}
|
|
3764
|
-
],
|
|
3765
|
-
stateMutability: "view",
|
|
3766
|
-
type: "function"
|
|
3767
|
-
},
|
|
3768
|
-
{
|
|
3769
|
-
inputs: [
|
|
3770
|
-
{
|
|
3771
|
-
internalType: "uint256",
|
|
3772
|
-
name: "vaultId",
|
|
3773
|
-
type: "uint256"
|
|
3774
|
-
},
|
|
3775
|
-
{
|
|
3776
|
-
internalType: "uint256",
|
|
3777
|
-
name: "amount",
|
|
3778
|
-
type: "uint256"
|
|
3779
|
-
},
|
|
3780
4783
|
{
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
4784
|
+
indexed: false,
|
|
4785
|
+
internalType: "uint256",
|
|
4786
|
+
name: "count",
|
|
4787
|
+
type: "uint256"
|
|
3784
4788
|
},
|
|
3785
4789
|
{
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
4790
|
+
indexed: false,
|
|
4791
|
+
internalType: "uint256",
|
|
4792
|
+
name: "ethReceived",
|
|
4793
|
+
type: "uint256"
|
|
3789
4794
|
},
|
|
3790
4795
|
{
|
|
4796
|
+
indexed: false,
|
|
3791
4797
|
internalType: "address",
|
|
3792
4798
|
name: "to",
|
|
3793
4799
|
type: "address"
|
|
3794
4800
|
}
|
|
3795
4801
|
],
|
|
3796
|
-
name: "
|
|
3797
|
-
|
|
3798
|
-
],
|
|
3799
|
-
stateMutability: "payable",
|
|
3800
|
-
type: "function"
|
|
4802
|
+
name: "Sell",
|
|
4803
|
+
type: "event"
|
|
3801
4804
|
},
|
|
3802
4805
|
{
|
|
4806
|
+
anonymous: false,
|
|
3803
4807
|
inputs: [
|
|
3804
4808
|
{
|
|
4809
|
+
indexed: false,
|
|
3805
4810
|
internalType: "uint256",
|
|
3806
|
-
name: "
|
|
3807
|
-
type: "uint256"
|
|
3808
|
-
},
|
|
3809
|
-
{
|
|
3810
|
-
internalType: "uint256",
|
|
3811
|
-
name: "amount",
|
|
4811
|
+
name: "count",
|
|
3812
4812
|
type: "uint256"
|
|
3813
4813
|
},
|
|
3814
4814
|
{
|
|
3815
|
-
|
|
3816
|
-
name: "specificIds",
|
|
3817
|
-
type: "uint256[]"
|
|
3818
|
-
},
|
|
3819
|
-
{
|
|
4815
|
+
indexed: false,
|
|
3820
4816
|
internalType: "uint256",
|
|
3821
|
-
name: "
|
|
4817
|
+
name: "ethSpent",
|
|
3822
4818
|
type: "uint256"
|
|
3823
4819
|
},
|
|
3824
4820
|
{
|
|
3825
|
-
|
|
3826
|
-
name: "path",
|
|
3827
|
-
type: "address[]"
|
|
3828
|
-
},
|
|
3829
|
-
{
|
|
4821
|
+
indexed: false,
|
|
3830
4822
|
internalType: "address",
|
|
3831
4823
|
name: "to",
|
|
3832
4824
|
type: "address"
|
|
3833
4825
|
}
|
|
3834
4826
|
],
|
|
3835
|
-
name: "
|
|
4827
|
+
name: "Swap",
|
|
4828
|
+
type: "event"
|
|
4829
|
+
},
|
|
4830
|
+
{
|
|
4831
|
+
inputs: [
|
|
4832
|
+
],
|
|
4833
|
+
name: "WETH",
|
|
3836
4834
|
outputs: [
|
|
4835
|
+
{
|
|
4836
|
+
internalType: "contract IWETH",
|
|
4837
|
+
name: "",
|
|
4838
|
+
type: "address"
|
|
4839
|
+
}
|
|
3837
4840
|
],
|
|
3838
|
-
stateMutability: "
|
|
4841
|
+
stateMutability: "view",
|
|
3839
4842
|
type: "function"
|
|
3840
4843
|
},
|
|
3841
4844
|
{
|
|
@@ -3846,14 +4849,9 @@ var abi$3 = [
|
|
|
3846
4849
|
type: "uint256"
|
|
3847
4850
|
},
|
|
3848
4851
|
{
|
|
3849
|
-
internalType: "uint256
|
|
3850
|
-
name: "
|
|
3851
|
-
type: "uint256
|
|
3852
|
-
},
|
|
3853
|
-
{
|
|
3854
|
-
internalType: "uint256[]",
|
|
3855
|
-
name: "amounts",
|
|
3856
|
-
type: "uint256[]"
|
|
4852
|
+
internalType: "uint256",
|
|
4853
|
+
name: "amount",
|
|
4854
|
+
type: "uint256"
|
|
3857
4855
|
},
|
|
3858
4856
|
{
|
|
3859
4857
|
internalType: "uint256[]",
|
|
@@ -3861,17 +4859,17 @@ var abi$3 = [
|
|
|
3861
4859
|
type: "uint256[]"
|
|
3862
4860
|
},
|
|
3863
4861
|
{
|
|
3864
|
-
internalType: "
|
|
3865
|
-
name: "
|
|
3866
|
-
type: "
|
|
4862
|
+
internalType: "bytes",
|
|
4863
|
+
name: "swapCallData",
|
|
4864
|
+
type: "bytes"
|
|
3867
4865
|
},
|
|
3868
4866
|
{
|
|
3869
|
-
internalType: "address",
|
|
4867
|
+
internalType: "address payable",
|
|
3870
4868
|
name: "to",
|
|
3871
4869
|
type: "address"
|
|
3872
4870
|
}
|
|
3873
4871
|
],
|
|
3874
|
-
name: "
|
|
4872
|
+
name: "buyAndRedeem",
|
|
3875
4873
|
outputs: [
|
|
3876
4874
|
],
|
|
3877
4875
|
stateMutability: "payable",
|
|
@@ -3900,22 +4898,17 @@ var abi$3 = [
|
|
|
3900
4898
|
type: "uint256[]"
|
|
3901
4899
|
},
|
|
3902
4900
|
{
|
|
3903
|
-
internalType: "
|
|
3904
|
-
name: "
|
|
3905
|
-
type: "
|
|
3906
|
-
},
|
|
3907
|
-
{
|
|
3908
|
-
internalType: "address[]",
|
|
3909
|
-
name: "path",
|
|
3910
|
-
type: "address[]"
|
|
4901
|
+
internalType: "bytes",
|
|
4902
|
+
name: "swapCallData",
|
|
4903
|
+
type: "bytes"
|
|
3911
4904
|
},
|
|
3912
4905
|
{
|
|
3913
|
-
internalType: "address",
|
|
4906
|
+
internalType: "address payable",
|
|
3914
4907
|
name: "to",
|
|
3915
4908
|
type: "address"
|
|
3916
4909
|
}
|
|
3917
4910
|
],
|
|
3918
|
-
name: "
|
|
4911
|
+
name: "buyAndSwap1155",
|
|
3919
4912
|
outputs: [
|
|
3920
4913
|
],
|
|
3921
4914
|
stateMutability: "payable",
|
|
@@ -3939,12 +4932,12 @@ var abi$3 = [
|
|
|
3939
4932
|
type: "uint256[]"
|
|
3940
4933
|
},
|
|
3941
4934
|
{
|
|
3942
|
-
internalType: "
|
|
3943
|
-
name: "
|
|
3944
|
-
type: "
|
|
4935
|
+
internalType: "bytes",
|
|
4936
|
+
name: "swapCallData",
|
|
4937
|
+
type: "bytes"
|
|
3945
4938
|
},
|
|
3946
4939
|
{
|
|
3947
|
-
internalType: "address",
|
|
4940
|
+
internalType: "address payable",
|
|
3948
4941
|
name: "to",
|
|
3949
4942
|
type: "address"
|
|
3950
4943
|
}
|
|
@@ -3957,50 +4950,25 @@ var abi$3 = [
|
|
|
3957
4950
|
},
|
|
3958
4951
|
{
|
|
3959
4952
|
inputs: [
|
|
4953
|
+
],
|
|
4954
|
+
name: "dustThreshold",
|
|
4955
|
+
outputs: [
|
|
3960
4956
|
{
|
|
3961
4957
|
internalType: "uint256",
|
|
3962
|
-
name: "
|
|
3963
|
-
type: "uint256"
|
|
3964
|
-
},
|
|
3965
|
-
{
|
|
3966
|
-
internalType: "uint256[]",
|
|
3967
|
-
name: "idsIn",
|
|
3968
|
-
type: "uint256[]"
|
|
3969
|
-
},
|
|
3970
|
-
{
|
|
3971
|
-
internalType: "uint256[]",
|
|
3972
|
-
name: "specificIds",
|
|
3973
|
-
type: "uint256[]"
|
|
3974
|
-
},
|
|
3975
|
-
{
|
|
3976
|
-
internalType: "uint256",
|
|
3977
|
-
name: "maxWethIn",
|
|
4958
|
+
name: "",
|
|
3978
4959
|
type: "uint256"
|
|
3979
|
-
},
|
|
3980
|
-
{
|
|
3981
|
-
internalType: "address[]",
|
|
3982
|
-
name: "path",
|
|
3983
|
-
type: "address[]"
|
|
3984
|
-
},
|
|
3985
|
-
{
|
|
3986
|
-
internalType: "address",
|
|
3987
|
-
name: "to",
|
|
3988
|
-
type: "address"
|
|
3989
4960
|
}
|
|
3990
4961
|
],
|
|
3991
|
-
|
|
3992
|
-
outputs: [
|
|
3993
|
-
],
|
|
3994
|
-
stateMutability: "nonpayable",
|
|
4962
|
+
stateMutability: "view",
|
|
3995
4963
|
type: "function"
|
|
3996
4964
|
},
|
|
3997
4965
|
{
|
|
3998
4966
|
inputs: [
|
|
3999
4967
|
],
|
|
4000
|
-
name: "
|
|
4968
|
+
name: "feeDistributor",
|
|
4001
4969
|
outputs: [
|
|
4002
4970
|
{
|
|
4003
|
-
internalType: "
|
|
4971
|
+
internalType: "address",
|
|
4004
4972
|
name: "",
|
|
4005
4973
|
type: "address"
|
|
4006
4974
|
}
|
|
@@ -4026,17 +4994,12 @@ var abi$3 = [
|
|
|
4026
4994
|
type: "uint256[]"
|
|
4027
4995
|
},
|
|
4028
4996
|
{
|
|
4029
|
-
internalType: "
|
|
4030
|
-
name: "
|
|
4031
|
-
type: "
|
|
4032
|
-
},
|
|
4033
|
-
{
|
|
4034
|
-
internalType: "address[]",
|
|
4035
|
-
name: "path",
|
|
4036
|
-
type: "address[]"
|
|
4997
|
+
internalType: "bytes",
|
|
4998
|
+
name: "swapCallData",
|
|
4999
|
+
type: "bytes"
|
|
4037
5000
|
},
|
|
4038
5001
|
{
|
|
4039
|
-
internalType: "address",
|
|
5002
|
+
internalType: "address payable",
|
|
4040
5003
|
name: "to",
|
|
4041
5004
|
type: "address"
|
|
4042
5005
|
}
|
|
@@ -4060,27 +5023,17 @@ var abi$3 = [
|
|
|
4060
5023
|
type: "uint256[]"
|
|
4061
5024
|
},
|
|
4062
5025
|
{
|
|
4063
|
-
internalType: "
|
|
4064
|
-
name: "
|
|
4065
|
-
type: "
|
|
4066
|
-
},
|
|
4067
|
-
{
|
|
4068
|
-
internalType: "uint256",
|
|
4069
|
-
name: "minWethOut",
|
|
4070
|
-
type: "uint256"
|
|
4071
|
-
},
|
|
4072
|
-
{
|
|
4073
|
-
internalType: "address[]",
|
|
4074
|
-
name: "path",
|
|
4075
|
-
type: "address[]"
|
|
5026
|
+
internalType: "bytes",
|
|
5027
|
+
name: "swapCallData",
|
|
5028
|
+
type: "bytes"
|
|
4076
5029
|
},
|
|
4077
5030
|
{
|
|
4078
|
-
internalType: "address",
|
|
5031
|
+
internalType: "address payable",
|
|
4079
5032
|
name: "to",
|
|
4080
5033
|
type: "address"
|
|
4081
5034
|
}
|
|
4082
5035
|
],
|
|
4083
|
-
name: "
|
|
5036
|
+
name: "mintAndSell721",
|
|
4084
5037
|
outputs: [
|
|
4085
5038
|
],
|
|
4086
5039
|
stateMutability: "nonpayable",
|
|
@@ -4088,79 +5041,30 @@ var abi$3 = [
|
|
|
4088
5041
|
},
|
|
4089
5042
|
{
|
|
4090
5043
|
inputs: [
|
|
5044
|
+
],
|
|
5045
|
+
name: "nftxFactory",
|
|
5046
|
+
outputs: [
|
|
4091
5047
|
{
|
|
4092
|
-
internalType: "
|
|
4093
|
-
name: "
|
|
4094
|
-
type: "uint256"
|
|
4095
|
-
},
|
|
4096
|
-
{
|
|
4097
|
-
internalType: "uint256[]",
|
|
4098
|
-
name: "ids",
|
|
4099
|
-
type: "uint256[]"
|
|
4100
|
-
},
|
|
4101
|
-
{
|
|
4102
|
-
internalType: "uint256",
|
|
4103
|
-
name: "minEthOut",
|
|
4104
|
-
type: "uint256"
|
|
4105
|
-
},
|
|
4106
|
-
{
|
|
4107
|
-
internalType: "address[]",
|
|
4108
|
-
name: "path",
|
|
4109
|
-
type: "address[]"
|
|
4110
|
-
},
|
|
4111
|
-
{
|
|
4112
|
-
internalType: "address",
|
|
4113
|
-
name: "to",
|
|
5048
|
+
internalType: "contract INFTXVaultFactory",
|
|
5049
|
+
name: "",
|
|
4114
5050
|
type: "address"
|
|
4115
5051
|
}
|
|
4116
5052
|
],
|
|
4117
|
-
|
|
4118
|
-
outputs: [
|
|
4119
|
-
],
|
|
4120
|
-
stateMutability: "nonpayable",
|
|
5053
|
+
stateMutability: "view",
|
|
4121
5054
|
type: "function"
|
|
4122
5055
|
},
|
|
4123
5056
|
{
|
|
4124
5057
|
inputs: [
|
|
4125
5058
|
{
|
|
4126
5059
|
internalType: "uint256",
|
|
4127
|
-
name: "
|
|
4128
|
-
type: "uint256"
|
|
4129
|
-
},
|
|
4130
|
-
{
|
|
4131
|
-
internalType: "uint256[]",
|
|
4132
|
-
name: "ids",
|
|
4133
|
-
type: "uint256[]"
|
|
4134
|
-
},
|
|
4135
|
-
{
|
|
4136
|
-
internalType: "uint256",
|
|
4137
|
-
name: "minWethOut",
|
|
5060
|
+
name: "",
|
|
4138
5061
|
type: "uint256"
|
|
4139
|
-
},
|
|
4140
|
-
{
|
|
4141
|
-
internalType: "address[]",
|
|
4142
|
-
name: "path",
|
|
4143
|
-
type: "address[]"
|
|
4144
|
-
},
|
|
4145
|
-
{
|
|
4146
|
-
internalType: "address",
|
|
4147
|
-
name: "to",
|
|
4148
|
-
type: "address"
|
|
4149
5062
|
}
|
|
4150
5063
|
],
|
|
4151
|
-
name: "
|
|
4152
|
-
outputs: [
|
|
4153
|
-
],
|
|
4154
|
-
stateMutability: "nonpayable",
|
|
4155
|
-
type: "function"
|
|
4156
|
-
},
|
|
4157
|
-
{
|
|
4158
|
-
inputs: [
|
|
4159
|
-
],
|
|
4160
|
-
name: "nftxFactory",
|
|
5064
|
+
name: "nftxVaultAddresses",
|
|
4161
5065
|
outputs: [
|
|
4162
5066
|
{
|
|
4163
|
-
internalType: "
|
|
5067
|
+
internalType: "address",
|
|
4164
5068
|
name: "",
|
|
4165
5069
|
type: "address"
|
|
4166
5070
|
}
|
|
@@ -4294,6 +5198,34 @@ var abi$3 = [
|
|
|
4294
5198
|
stateMutability: "view",
|
|
4295
5199
|
type: "function"
|
|
4296
5200
|
},
|
|
5201
|
+
{
|
|
5202
|
+
inputs: [
|
|
5203
|
+
{
|
|
5204
|
+
internalType: "bool",
|
|
5205
|
+
name: "_paused",
|
|
5206
|
+
type: "bool"
|
|
5207
|
+
}
|
|
5208
|
+
],
|
|
5209
|
+
name: "pause",
|
|
5210
|
+
outputs: [
|
|
5211
|
+
],
|
|
5212
|
+
stateMutability: "nonpayable",
|
|
5213
|
+
type: "function"
|
|
5214
|
+
},
|
|
5215
|
+
{
|
|
5216
|
+
inputs: [
|
|
5217
|
+
],
|
|
5218
|
+
name: "paused",
|
|
5219
|
+
outputs: [
|
|
5220
|
+
{
|
|
5221
|
+
internalType: "bool",
|
|
5222
|
+
name: "",
|
|
5223
|
+
type: "bool"
|
|
5224
|
+
}
|
|
5225
|
+
],
|
|
5226
|
+
stateMutability: "view",
|
|
5227
|
+
type: "function"
|
|
5228
|
+
},
|
|
4297
5229
|
{
|
|
4298
5230
|
inputs: [
|
|
4299
5231
|
],
|
|
@@ -4320,31 +5252,31 @@ var abi$3 = [
|
|
|
4320
5252
|
{
|
|
4321
5253
|
inputs: [
|
|
4322
5254
|
{
|
|
4323
|
-
internalType: "
|
|
4324
|
-
name: "
|
|
4325
|
-
type: "
|
|
5255
|
+
internalType: "uint256",
|
|
5256
|
+
name: "_dustThreshold",
|
|
5257
|
+
type: "uint256"
|
|
4326
5258
|
}
|
|
4327
5259
|
],
|
|
4328
|
-
name: "
|
|
5260
|
+
name: "setDustThreshold",
|
|
4329
5261
|
outputs: [
|
|
4330
|
-
{
|
|
4331
|
-
internalType: "bool",
|
|
4332
|
-
name: "",
|
|
4333
|
-
type: "bool"
|
|
4334
|
-
}
|
|
4335
5262
|
],
|
|
4336
|
-
stateMutability: "
|
|
5263
|
+
stateMutability: "nonpayable",
|
|
4337
5264
|
type: "function"
|
|
4338
5265
|
},
|
|
4339
5266
|
{
|
|
4340
5267
|
inputs: [
|
|
5268
|
+
{
|
|
5269
|
+
internalType: "bytes4",
|
|
5270
|
+
name: "interfaceId",
|
|
5271
|
+
type: "bytes4"
|
|
5272
|
+
}
|
|
4341
5273
|
],
|
|
4342
|
-
name: "
|
|
5274
|
+
name: "supportsInterface",
|
|
4343
5275
|
outputs: [
|
|
4344
5276
|
{
|
|
4345
|
-
internalType: "
|
|
5277
|
+
internalType: "bool",
|
|
4346
5278
|
name: "",
|
|
4347
|
-
type: "
|
|
5279
|
+
type: "bool"
|
|
4348
5280
|
}
|
|
4349
5281
|
],
|
|
4350
5282
|
stateMutability: "view",
|
|
@@ -4379,7 +5311,7 @@ var NFTXTrade = /*#__PURE__*/function (_NFTTrade) {
|
|
|
4379
5311
|
_proto.encode = function encode(planner, config) {
|
|
4380
5312
|
for (var _iterator = _createForOfIteratorHelperLoose(this.orders), _step; !(_step = _iterator()).done;) {
|
|
4381
5313
|
var order = _step.value;
|
|
4382
|
-
var calldata = NFTXTrade.INTERFACE.encodeFunctionData('buyAndRedeem', [order.vaultId, order.tokenIds.length, order.tokenIds,
|
|
5314
|
+
var calldata = NFTXTrade.INTERFACE.encodeFunctionData('buyAndRedeem', [order.vaultId, order.tokenIds.length, order.tokenIds, order.swapCalldata, order.recipient]);
|
|
4383
5315
|
planner.addCommand(CommandType.NFTX, [order.value, calldata], config.allowRevert);
|
|
4384
5316
|
}
|
|
4385
5317
|
};
|
|
@@ -7130,9 +8062,9 @@ var SeaportTrade = /*#__PURE__*/function (_NFTTrade) {
|
|
|
7130
8062
|
};
|
|
7131
8063
|
_proto.commandMap = function commandMap(protocolAddress) {
|
|
7132
8064
|
switch (protocolAddress.toLowerCase()) {
|
|
7133
|
-
case '
|
|
7134
|
-
// Seaport v1.
|
|
7135
|
-
return CommandType.
|
|
8065
|
+
case '0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC':
|
|
8066
|
+
// Seaport v1.5
|
|
8067
|
+
return CommandType.SEAPORT_V1_5;
|
|
7136
8068
|
case '0x00000000000001ad428e4906ae43d8f9852d0dd6':
|
|
7137
8069
|
// Seaport v1.4
|
|
7138
8070
|
return CommandType.SEAPORT_V1_4;
|
|
@@ -9536,7 +10468,7 @@ var UnwrapWETH = /*#__PURE__*/function () {
|
|
|
9536
10468
|
|
|
9537
10469
|
exports.CryptopunkTrade = CryptopunkTrade;
|
|
9538
10470
|
exports.FoundationTrade = FoundationTrade;
|
|
9539
|
-
exports.
|
|
10471
|
+
exports.LooksRareV2Trade = LooksRareV2Trade;
|
|
9540
10472
|
exports.NFT20Trade = NFT20Trade;
|
|
9541
10473
|
exports.NFTTrade = NFTTrade;
|
|
9542
10474
|
exports.NFTXTrade = NFTXTrade;
|