@uniswap/universal-router-sdk 1.5.0-beta.0 → 1.5.0-beta.1

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