@zoralabs/protocol-deployments 0.6.5 → 0.6.6-TRENDS.0

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/dist/index.cjs CHANGED
@@ -2207,9 +2207,6 @@ __export(index_exports, {
2207
2207
  uniswapQuoterV2ABI: () => uniswapQuoterV2ABI,
2208
2208
  uniswapQuoterV2Address: () => uniswapQuoterV2Address,
2209
2209
  uniswapQuoterV2Config: () => uniswapQuoterV2Config,
2210
- uniswapUniversalRouterABI: () => uniswapUniversalRouterABI,
2211
- uniswapUniversalRouterAddress: () => uniswapUniversalRouterAddress,
2212
- uniswapUniversalRouterConfig: () => uniswapUniversalRouterConfig,
2213
2210
  uniswapV3SwapRouterABI: () => uniswapV3SwapRouterABI,
2214
2211
  uniswapV3SwapRouterAddress: () => uniswapV3SwapRouterAddress,
2215
2212
  uniswapV3SwapRouterConfig: () => uniswapV3SwapRouterConfig,
@@ -2238,12 +2235,18 @@ __export(index_exports, {
2238
2235
  zoraCreatorRedeemMinterFactoryABI: () => zoraCreatorRedeemMinterFactoryABI,
2239
2236
  zoraCreatorRedeemMinterFactoryAddress: () => zoraCreatorRedeemMinterFactoryAddress,
2240
2237
  zoraCreatorRedeemMinterFactoryConfig: () => zoraCreatorRedeemMinterFactoryConfig,
2238
+ zoraLimitOrderBookABI: () => zoraLimitOrderBookABI,
2239
+ zoraLimitOrderBookAddress: () => zoraLimitOrderBookAddress,
2240
+ zoraLimitOrderBookConfig: () => zoraLimitOrderBookConfig,
2241
2241
  zoraMints1155ABI: () => zoraMints1155ABI,
2242
2242
  zoraMints1155Address: () => zoraMints1155Address,
2243
2243
  zoraMints1155Config: () => zoraMints1155Config,
2244
2244
  zoraMintsManagerImplABI: () => zoraMintsManagerImplABI,
2245
2245
  zoraMintsManagerImplAddress: () => zoraMintsManagerImplAddress,
2246
2246
  zoraMintsManagerImplConfig: () => zoraMintsManagerImplConfig,
2247
+ zoraRouterABI: () => zoraRouterABI,
2248
+ zoraRouterAddress: () => zoraRouterAddress,
2249
+ zoraRouterConfig: () => zoraRouterConfig,
2247
2250
  zoraSparks1155ABI: () => zoraSparks1155ABI,
2248
2251
  zoraSparks1155Address: () => zoraSparks1155Address,
2249
2252
  zoraSparks1155Config: () => zoraSparks1155Config,
@@ -2524,18 +2527,7 @@ var buySupplyWithSwapRouterHookABI = [
2524
2527
  ],
2525
2528
  name: "BuyInitialSupply"
2526
2529
  },
2527
- {
2528
- type: "error",
2529
- inputs: [{ name: "target", internalType: "address", type: "address" }],
2530
- name: "AddressEmptyCode"
2531
- },
2532
- {
2533
- type: "error",
2534
- inputs: [{ name: "account", internalType: "address", type: "address" }],
2535
- name: "AddressInsufficientBalance"
2536
- },
2537
2530
  { type: "error", inputs: [], name: "AddressZero" },
2538
- { type: "error", inputs: [], name: "FailedInnerCall" },
2539
2531
  { type: "error", inputs: [], name: "HookNotImplemented" },
2540
2532
  {
2541
2533
  type: "error",
@@ -2553,7 +2545,6 @@ var buySupplyWithSwapRouterHookABI = [
2553
2545
  inputs: [{ name: "token", internalType: "address", type: "address" }],
2554
2546
  name: "SafeERC20FailedOperation"
2555
2547
  },
2556
- { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
2557
2548
  { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" }
2558
2549
  ];
2559
2550
  var buySupplyWithSwapRouterHookAddress = {
@@ -4628,6 +4619,7 @@ var coinABI = [
4628
4619
  ],
4629
4620
  name: "InvalidAccountNonce"
4630
4621
  },
4622
+ { type: "error", inputs: [], name: "InvalidCurrency" },
4631
4623
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
4632
4624
  { type: "error", inputs: [], name: "InvalidInitialization" },
4633
4625
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -4677,6 +4669,7 @@ var coinFactoryABI = [
4677
4669
  inputs: [
4678
4670
  { name: "coinV4Impl_", internalType: "address", type: "address" },
4679
4671
  { name: "creatorCoinImpl_", internalType: "address", type: "address" },
4672
+ { name: "trendCoinImpl_", internalType: "address", type: "address" },
4680
4673
  { name: "hook_", internalType: "address", type: "address" },
4681
4674
  { name: "zoraHookRegistry_", internalType: "address", type: "address" }
4682
4675
  ],
@@ -4849,6 +4842,20 @@ var coinFactoryABI = [
4849
4842
  ],
4850
4843
  stateMutability: "payable"
4851
4844
  },
4845
+ {
4846
+ type: "function",
4847
+ inputs: [
4848
+ { name: "symbol", internalType: "string", type: "string" },
4849
+ { name: "postDeployHook", internalType: "address", type: "address" },
4850
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" }
4851
+ ],
4852
+ name: "deployTrendCoin",
4853
+ outputs: [
4854
+ { name: "coin", internalType: "address", type: "address" },
4855
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
4856
+ ],
4857
+ stateMutability: "payable"
4858
+ },
4852
4859
  {
4853
4860
  type: "function",
4854
4861
  inputs: [
@@ -4934,6 +4941,20 @@ var coinFactoryABI = [
4934
4941
  outputs: [],
4935
4942
  stateMutability: "nonpayable"
4936
4943
  },
4944
+ {
4945
+ type: "function",
4946
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
4947
+ name: "trendCoinAddress",
4948
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4949
+ stateMutability: "view"
4950
+ },
4951
+ {
4952
+ type: "function",
4953
+ inputs: [],
4954
+ name: "trendCoinImpl",
4955
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4956
+ stateMutability: "view"
4957
+ },
4937
4958
  {
4938
4959
  type: "function",
4939
4960
  inputs: [
@@ -5069,6 +5090,12 @@ var coinFactoryABI = [
5069
5090
  type: "bytes32",
5070
5091
  indexed: false
5071
5092
  },
5093
+ {
5094
+ name: "poolConfig",
5095
+ internalType: "bytes",
5096
+ type: "bytes",
5097
+ indexed: false
5098
+ },
5072
5099
  {
5073
5100
  name: "version",
5074
5101
  internalType: "string",
@@ -5139,6 +5166,12 @@ var coinFactoryABI = [
5139
5166
  type: "bytes32",
5140
5167
  indexed: false
5141
5168
  },
5169
+ {
5170
+ name: "poolConfig",
5171
+ internalType: "bytes",
5172
+ type: "bytes",
5173
+ indexed: false
5174
+ },
5142
5175
  {
5143
5176
  name: "version",
5144
5177
  internalType: "string",
@@ -5199,6 +5232,62 @@ var coinFactoryABI = [
5199
5232
  ],
5200
5233
  name: "OwnershipTransferred"
5201
5234
  },
5235
+ {
5236
+ type: "event",
5237
+ anonymous: false,
5238
+ inputs: [
5239
+ {
5240
+ name: "caller",
5241
+ internalType: "address",
5242
+ type: "address",
5243
+ indexed: true
5244
+ },
5245
+ {
5246
+ name: "symbol",
5247
+ internalType: "string",
5248
+ type: "string",
5249
+ indexed: false
5250
+ },
5251
+ {
5252
+ name: "coin",
5253
+ internalType: "address",
5254
+ type: "address",
5255
+ indexed: false
5256
+ },
5257
+ {
5258
+ name: "poolKey",
5259
+ internalType: "struct PoolKey",
5260
+ type: "tuple",
5261
+ components: [
5262
+ { name: "currency0", internalType: "Currency", type: "address" },
5263
+ { name: "currency1", internalType: "Currency", type: "address" },
5264
+ { name: "fee", internalType: "uint24", type: "uint24" },
5265
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
5266
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
5267
+ ],
5268
+ indexed: false
5269
+ },
5270
+ {
5271
+ name: "poolKeyHash",
5272
+ internalType: "bytes32",
5273
+ type: "bytes32",
5274
+ indexed: false
5275
+ },
5276
+ {
5277
+ name: "poolConfig",
5278
+ internalType: "bytes",
5279
+ type: "bytes",
5280
+ indexed: false
5281
+ },
5282
+ {
5283
+ name: "version",
5284
+ internalType: "string",
5285
+ type: "string",
5286
+ indexed: false
5287
+ }
5288
+ ],
5289
+ name: "TrendCoinCreated"
5290
+ },
5202
5291
  {
5203
5292
  type: "event",
5204
5293
  anonymous: false,
@@ -5220,7 +5309,6 @@ var coinFactoryABI = [
5220
5309
  { type: "error", inputs: [], name: "ArrayLengthMismatch" },
5221
5310
  { type: "error", inputs: [], name: "ConfigTickLowerMustBeLessThanTickUpper" },
5222
5311
  { type: "error", inputs: [], name: "Deprecated" },
5223
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
5224
5312
  {
5225
5313
  type: "error",
5226
5314
  inputs: [
@@ -5230,7 +5318,16 @@ var coinFactoryABI = [
5230
5318
  },
5231
5319
  { type: "error", inputs: [], name: "ERC1967NonPayable" },
5232
5320
  { type: "error", inputs: [], name: "EthTransferInvalid" },
5233
- { type: "error", inputs: [], name: "FailedInnerCall" },
5321
+ { type: "error", inputs: [], name: "FailedCall" },
5322
+ { type: "error", inputs: [], name: "FailedDeployment" },
5323
+ {
5324
+ type: "error",
5325
+ inputs: [
5326
+ { name: "balance", internalType: "uint256", type: "uint256" },
5327
+ { name: "needed", internalType: "uint256", type: "uint256" }
5328
+ ],
5329
+ name: "InsufficientBalance"
5330
+ },
5234
5331
  { type: "error", inputs: [], name: "InvalidConfig" },
5235
5332
  { type: "error", inputs: [], name: "InvalidHook" },
5236
5333
  { type: "error", inputs: [], name: "InvalidInitialization" },
@@ -5264,6 +5361,11 @@ var coinFactoryABI = [
5264
5361
  name: "OwnableUnauthorizedAccount"
5265
5362
  },
5266
5363
  { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
5364
+ {
5365
+ type: "error",
5366
+ inputs: [{ name: "ticker", internalType: "string", type: "string" }],
5367
+ name: "TickerAlreadyUsed"
5368
+ },
5267
5369
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
5268
5370
  {
5269
5371
  type: "error",
@@ -5280,18 +5382,7 @@ var coinFactoryABI = [
5280
5382
  },
5281
5383
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
5282
5384
  { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
5283
- {
5284
- type: "error",
5285
- inputs: [{ name: "target", internalType: "address", type: "address" }],
5286
- name: "AddressEmptyCode"
5287
- },
5288
- {
5289
- type: "error",
5290
- inputs: [{ name: "account", internalType: "address", type: "address" }],
5291
- name: "AddressInsufficientBalance"
5292
- },
5293
5385
  { type: "error", inputs: [], name: "AddressZero" },
5294
- { type: "error", inputs: [], name: "FailedInnerCall" },
5295
5386
  { type: "error", inputs: [], name: "HookNotImplemented" },
5296
5387
  {
5297
5388
  type: "error",
@@ -5309,7 +5400,6 @@ var coinFactoryABI = [
5309
5400
  inputs: [{ name: "token", internalType: "address", type: "address" }],
5310
5401
  name: "SafeERC20FailedOperation"
5311
5402
  },
5312
- { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
5313
5403
  { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
5314
5404
  { type: "error", inputs: [], name: "AddressZero" },
5315
5405
  { type: "error", inputs: [], name: "AlreadyOwner" },
@@ -5397,6 +5487,7 @@ var coinFactoryABI = [
5397
5487
  ],
5398
5488
  name: "InvalidAccountNonce"
5399
5489
  },
5490
+ { type: "error", inputs: [], name: "InvalidCurrency" },
5400
5491
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
5401
5492
  { type: "error", inputs: [], name: "InvalidInitialization" },
5402
5493
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -5438,7 +5529,126 @@ var coinFactoryABI = [
5438
5529
  { type: "error", inputs: [], name: "OnlyWeth" },
5439
5530
  { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
5440
5531
  { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
5441
- { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
5532
+ { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" },
5533
+ { type: "error", inputs: [], name: "CoinVersionLookupCannotBeZeroAddress" },
5534
+ { type: "error", inputs: [], name: "EthTransferFailed" },
5535
+ { type: "error", inputs: [], name: "HookNotImplemented" },
5536
+ {
5537
+ type: "error",
5538
+ inputs: [{ name: "callbackId", internalType: "uint8", type: "uint8" }],
5539
+ name: "InvalidCallbackId"
5540
+ },
5541
+ {
5542
+ type: "error",
5543
+ inputs: [{ name: "newHook", internalType: "address", type: "address" }],
5544
+ name: "InvalidNewHook"
5545
+ },
5546
+ {
5547
+ type: "error",
5548
+ inputs: [
5549
+ {
5550
+ name: "key",
5551
+ internalType: "struct PoolKey",
5552
+ type: "tuple",
5553
+ components: [
5554
+ { name: "currency0", internalType: "Currency", type: "address" },
5555
+ { name: "currency1", internalType: "Currency", type: "address" },
5556
+ { name: "fee", internalType: "uint24", type: "uint24" },
5557
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
5558
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
5559
+ ]
5560
+ }
5561
+ ],
5562
+ name: "NoCoinForHook"
5563
+ },
5564
+ {
5565
+ type: "error",
5566
+ inputs: [{ name: "coin", internalType: "address", type: "address" }],
5567
+ name: "NotACoin"
5568
+ },
5569
+ { type: "error", inputs: [], name: "NotPoolManager" },
5570
+ {
5571
+ type: "error",
5572
+ inputs: [
5573
+ { name: "caller", internalType: "address", type: "address" },
5574
+ { name: "expectedCoin", internalType: "address", type: "address" }
5575
+ ],
5576
+ name: "OnlyCoin"
5577
+ },
5578
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
5579
+ { type: "error", inputs: [], name: "SafeCastOverflow" },
5580
+ {
5581
+ type: "error",
5582
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
5583
+ name: "SafeERC20FailedOperation"
5584
+ },
5585
+ {
5586
+ type: "error",
5587
+ inputs: [],
5588
+ name: "TrustedMsgSenderLookupCannotBeZeroAddress"
5589
+ },
5590
+ { type: "error", inputs: [], name: "UpgradeGateCannotBeZeroAddress" },
5591
+ {
5592
+ type: "error",
5593
+ inputs: [
5594
+ { name: "oldHook", internalType: "address", type: "address" },
5595
+ { name: "newHook", internalType: "address", type: "address" }
5596
+ ],
5597
+ name: "UpgradePathNotRegistered"
5598
+ },
5599
+ { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
5600
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
5601
+ {
5602
+ type: "error",
5603
+ inputs: [{ name: "authority", internalType: "address", type: "address" }],
5604
+ name: "AccessManagedInvalidAuthority"
5605
+ },
5606
+ { type: "error", inputs: [], name: "AccessManagedUnauthorized" },
5607
+ { type: "error", inputs: [], name: "AddressZero" },
5608
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
5609
+ {
5610
+ type: "error",
5611
+ inputs: [
5612
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
5613
+ { name: "expectedCoin", internalType: "address", type: "address" },
5614
+ { name: "actualCoin", internalType: "address", type: "address" }
5615
+ ],
5616
+ name: "CoinMismatch"
5617
+ },
5618
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
5619
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
5620
+ {
5621
+ type: "error",
5622
+ inputs: [
5623
+ { name: "startTick", internalType: "int24", type: "int24" },
5624
+ { name: "endTick", internalType: "int24", type: "int24" },
5625
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
5626
+ ],
5627
+ name: "InvalidFillWindow"
5628
+ },
5629
+ { type: "error", inputs: [], name: "InvalidOrder" },
5630
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
5631
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
5632
+ {
5633
+ type: "error",
5634
+ inputs: [
5635
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
5636
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
5637
+ ],
5638
+ name: "MinAmountNotReached"
5639
+ },
5640
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
5641
+ { type: "error", inputs: [], name: "NotPoolManager" },
5642
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
5643
+ { type: "error", inputs: [], name: "OrderClosed" },
5644
+ { type: "error", inputs: [], name: "OrderNotMaker" },
5645
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
5646
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
5647
+ { type: "error", inputs: [], name: "UnknownCallback" },
5648
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
5649
+ { type: "error", inputs: [], name: "ZeroMaker" },
5650
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
5651
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" }
5442
5652
  ];
5443
5653
  var coinFactoryAddress = {
5444
5654
  8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
@@ -11941,39 +12151,6 @@ var uniswapQuoterV2Config = {
11941
12151
  address: uniswapQuoterV2Address,
11942
12152
  abi: uniswapQuoterV2ABI
11943
12153
  };
11944
- var uniswapUniversalRouterABI = [
11945
- {
11946
- type: "function",
11947
- inputs: [
11948
- { name: "commands", internalType: "bytes", type: "bytes" },
11949
- { name: "inputs", internalType: "bytes[]", type: "bytes[]" },
11950
- { name: "deadline", internalType: "uint256", type: "uint256" }
11951
- ],
11952
- name: "execute",
11953
- outputs: [],
11954
- stateMutability: "payable"
11955
- },
11956
- { type: "error", inputs: [], name: "ETHNotAccepted" },
11957
- {
11958
- type: "error",
11959
- inputs: [
11960
- { name: "commandIndex", internalType: "uint256", type: "uint256" },
11961
- { name: "message", internalType: "bytes", type: "bytes" }
11962
- ],
11963
- name: "ExecutionFailed"
11964
- },
11965
- { type: "error", inputs: [], name: "InvalidEthSender" },
11966
- { type: "error", inputs: [], name: "LengthMismatch" },
11967
- { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
11968
- ];
11969
- var uniswapUniversalRouterAddress = {
11970
- 8453: "0x6fF5693b99212Da76ad316178A184AB56D299b43",
11971
- 84532: "0x492E6456D9528771018DeB9E87ef7750EF184104"
11972
- };
11973
- var uniswapUniversalRouterConfig = {
11974
- address: uniswapUniversalRouterAddress,
11975
- abi: uniswapUniversalRouterABI
11976
- };
11977
12154
  var uniswapV3SwapRouterABI = [
11978
12155
  {
11979
12156
  type: "function",
@@ -16544,43 +16721,22 @@ var zoraCreatorRedeemMinterFactoryConfig = {
16544
16721
  address: zoraCreatorRedeemMinterFactoryAddress,
16545
16722
  abi: zoraCreatorRedeemMinterFactoryABI
16546
16723
  };
16547
- var zoraMints1155ABI = [
16548
- { type: "constructor", inputs: [], stateMutability: "nonpayable" },
16549
- {
16550
- type: "function",
16551
- inputs: [],
16552
- name: "ETH_ADDRESS",
16553
- outputs: [{ name: "", internalType: "address", type: "address" }],
16554
- stateMutability: "view"
16555
- },
16556
- {
16557
- type: "function",
16558
- inputs: [],
16559
- name: "MINIMUM_ERC20_PRICE",
16560
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
16561
- stateMutability: "view"
16562
- },
16563
- {
16564
- type: "function",
16565
- inputs: [],
16566
- name: "MINIMUM_ETH_PRICE",
16567
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
16568
- stateMutability: "view"
16569
- },
16570
- {
16571
- type: "function",
16572
- inputs: [],
16573
- name: "NAME",
16574
- outputs: [{ name: "", internalType: "string", type: "string" }],
16575
- stateMutability: "view"
16576
- },
16724
+ var zoraLimitOrderBookABI = [
16577
16725
  {
16578
- type: "function",
16579
- inputs: [],
16580
- name: "VERSION",
16581
- outputs: [{ name: "", internalType: "string", type: "string" }],
16582
- stateMutability: "view"
16726
+ type: "constructor",
16727
+ inputs: [
16728
+ { name: "poolManager_", internalType: "address", type: "address" },
16729
+ {
16730
+ name: "zoraCoinVersionLookup_",
16731
+ internalType: "address",
16732
+ type: "address"
16733
+ },
16734
+ { name: "zoraHookRegistry_", internalType: "address", type: "address" },
16735
+ { name: "authority_", internalType: "address", type: "address" }
16736
+ ],
16737
+ stateMutability: "nonpayable"
16583
16738
  },
16739
+ { type: "receive", stateMutability: "payable" },
16584
16740
  {
16585
16741
  type: "function",
16586
16742
  inputs: [],
@@ -16591,677 +16747,490 @@ var zoraMints1155ABI = [
16591
16747
  {
16592
16748
  type: "function",
16593
16749
  inputs: [
16594
- { name: "account", internalType: "address", type: "address" },
16595
- { name: "id", internalType: "uint256", type: "uint256" }
16750
+ { name: "maker", internalType: "address", type: "address" },
16751
+ { name: "coin", internalType: "address", type: "address" }
16596
16752
  ],
16597
16753
  name: "balanceOf",
16598
16754
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
16599
16755
  stateMutability: "view"
16600
16756
  },
16601
- {
16602
- type: "function",
16603
- inputs: [{ name: "account", internalType: "address", type: "address" }],
16604
- name: "balanceOfAccount",
16605
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
16606
- stateMutability: "view"
16607
- },
16608
- {
16609
- type: "function",
16610
- inputs: [
16611
- { name: "accounts", internalType: "address[]", type: "address[]" },
16612
- { name: "ids", internalType: "uint256[]", type: "uint256[]" }
16613
- ],
16614
- name: "balanceOfBatch",
16615
- outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }],
16616
- stateMutability: "view"
16617
- },
16618
- {
16619
- type: "function",
16620
- inputs: [],
16621
- name: "contractURI",
16622
- outputs: [{ name: "", internalType: "string", type: "string" }],
16623
- stateMutability: "view"
16624
- },
16625
16757
  {
16626
16758
  type: "function",
16627
16759
  inputs: [
16628
- { name: "tokenId", internalType: "uint256", type: "uint256" },
16629
- {
16630
- name: "tokenConfig",
16631
- internalType: "struct TokenConfig",
16632
- type: "tuple",
16633
- components: [
16634
- { name: "price", internalType: "uint256", type: "uint256" },
16635
- { name: "tokenAddress", internalType: "address", type: "address" },
16636
- { name: "redeemHandler", internalType: "address", type: "address" }
16637
- ]
16638
- }
16639
- ],
16640
- name: "createToken",
16641
- outputs: [],
16642
- stateMutability: "nonpayable"
16643
- },
16644
- {
16645
- type: "function",
16646
- inputs: [],
16647
- name: "eip712Domain",
16648
- outputs: [
16649
- { name: "fields", internalType: "bytes1", type: "bytes1" },
16650
- { name: "name", internalType: "string", type: "string" },
16651
- { name: "version", internalType: "string", type: "string" },
16652
- { name: "chainId", internalType: "uint256", type: "uint256" },
16653
- { name: "verifyingContract", internalType: "address", type: "address" },
16654
- { name: "salt", internalType: "bytes32", type: "bytes32" },
16655
- { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
16656
- ],
16657
- stateMutability: "view"
16658
- },
16659
- {
16660
- type: "function",
16661
- inputs: [],
16662
- name: "getManager",
16663
- outputs: [{ name: "", internalType: "address", type: "address" }],
16664
- stateMutability: "view"
16665
- },
16666
- {
16667
- type: "function",
16668
- inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
16669
- name: "getTokenConfig",
16670
- outputs: [
16671
16760
  {
16672
- name: "",
16673
- internalType: "struct TokenConfig",
16761
+ name: "key",
16762
+ internalType: "struct PoolKey",
16674
16763
  type: "tuple",
16675
16764
  components: [
16676
- { name: "price", internalType: "uint256", type: "uint256" },
16677
- { name: "tokenAddress", internalType: "address", type: "address" },
16678
- { name: "redeemHandler", internalType: "address", type: "address" }
16765
+ { name: "currency0", internalType: "Currency", type: "address" },
16766
+ { name: "currency1", internalType: "Currency", type: "address" },
16767
+ { name: "fee", internalType: "uint24", type: "uint24" },
16768
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
16769
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
16679
16770
  ]
16680
- }
16771
+ },
16772
+ { name: "isCurrency0", internalType: "bool", type: "bool" },
16773
+ { name: "orderSizes", internalType: "uint256[]", type: "uint256[]" },
16774
+ { name: "orderTicks", internalType: "int24[]", type: "int24[]" },
16775
+ { name: "maker", internalType: "address", type: "address" }
16681
16776
  ],
16682
- stateMutability: "view"
16777
+ name: "create",
16778
+ outputs: [{ name: "", internalType: "bytes32[]", type: "bytes32[]" }],
16779
+ stateMutability: "payable"
16683
16780
  },
16684
16781
  {
16685
16782
  type: "function",
16686
16783
  inputs: [
16687
16784
  {
16688
- name: "permit",
16689
- internalType: "struct IZoraSparks1155Managed.PermitBatch",
16785
+ name: "key",
16786
+ internalType: "struct PoolKey",
16690
16787
  type: "tuple",
16691
16788
  components: [
16692
- { name: "owner", internalType: "address", type: "address" },
16693
- { name: "to", internalType: "address", type: "address" },
16694
- { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
16695
- { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
16696
- { name: "safeTransferData", internalType: "bytes", type: "bytes" },
16697
- { name: "deadline", internalType: "uint256", type: "uint256" },
16698
- { name: "nonce", internalType: "uint256", type: "uint256" }
16789
+ { name: "currency0", internalType: "Currency", type: "address" },
16790
+ { name: "currency1", internalType: "Currency", type: "address" },
16791
+ { name: "fee", internalType: "uint24", type: "uint24" },
16792
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
16793
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
16699
16794
  ]
16700
- }
16795
+ },
16796
+ { name: "isCurrency0", internalType: "bool", type: "bool" },
16797
+ { name: "startTick", internalType: "int24", type: "int24" },
16798
+ { name: "endTick", internalType: "int24", type: "int24" },
16799
+ { name: "maxFillCount", internalType: "uint256", type: "uint256" },
16800
+ { name: "fillReferral", internalType: "address", type: "address" }
16701
16801
  ],
16702
- name: "hashPermitBatch",
16703
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
16704
- stateMutability: "view"
16802
+ name: "fill",
16803
+ outputs: [],
16804
+ stateMutability: "nonpayable"
16705
16805
  },
16706
16806
  {
16707
16807
  type: "function",
16708
16808
  inputs: [
16709
16809
  {
16710
- name: "permit",
16711
- internalType: "struct IZoraSparks1155Managed.PermitSingle",
16712
- type: "tuple",
16810
+ name: "batches",
16811
+ internalType: "struct IZoraLimitOrderBook.OrderBatch[]",
16812
+ type: "tuple[]",
16713
16813
  components: [
16714
- { name: "owner", internalType: "address", type: "address" },
16715
- { name: "to", internalType: "address", type: "address" },
16716
- { name: "tokenId", internalType: "uint256", type: "uint256" },
16717
- { name: "quantity", internalType: "uint256", type: "uint256" },
16718
- { name: "safeTransferData", internalType: "bytes", type: "bytes" },
16719
- { name: "deadline", internalType: "uint256", type: "uint256" },
16720
- { name: "nonce", internalType: "uint256", type: "uint256" }
16814
+ {
16815
+ name: "key",
16816
+ internalType: "struct PoolKey",
16817
+ type: "tuple",
16818
+ components: [
16819
+ { name: "currency0", internalType: "Currency", type: "address" },
16820
+ { name: "currency1", internalType: "Currency", type: "address" },
16821
+ { name: "fee", internalType: "uint24", type: "uint24" },
16822
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
16823
+ {
16824
+ name: "hooks",
16825
+ internalType: "contract IHooks",
16826
+ type: "address"
16827
+ }
16828
+ ]
16829
+ },
16830
+ { name: "isCurrency0", internalType: "bool", type: "bool" },
16831
+ { name: "orderIds", internalType: "bytes32[]", type: "bytes32[]" }
16721
16832
  ]
16722
- }
16833
+ },
16834
+ { name: "fillReferral", internalType: "address", type: "address" }
16723
16835
  ],
16724
- name: "hashPermitSingle",
16725
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
16726
- stateMutability: "view"
16836
+ name: "fill",
16837
+ outputs: [],
16838
+ stateMutability: "nonpayable"
16727
16839
  },
16728
16840
  {
16729
16841
  type: "function",
16730
- inputs: [
16731
- { name: "account", internalType: "address", type: "address" },
16732
- { name: "operator", internalType: "address", type: "address" }
16733
- ],
16734
- name: "isApprovedForAll",
16735
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
16842
+ inputs: [],
16843
+ name: "getMaxFillCount",
16844
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
16736
16845
  stateMutability: "view"
16737
16846
  },
16738
16847
  {
16739
16848
  type: "function",
16740
16849
  inputs: [],
16741
- name: "isConsumingScheduledOp",
16742
- outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
16850
+ name: "poolManager",
16851
+ outputs: [
16852
+ { name: "", internalType: "contract IPoolManager", type: "address" }
16853
+ ],
16743
16854
  stateMutability: "view"
16744
16855
  },
16745
16856
  {
16746
16857
  type: "function",
16747
16858
  inputs: [
16748
- {
16749
- name: "permit",
16750
- internalType: "struct IZoraSparks1155Managed.PermitBatch",
16751
- type: "tuple",
16752
- components: [
16753
- { name: "owner", internalType: "address", type: "address" },
16754
- { name: "to", internalType: "address", type: "address" },
16755
- { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
16756
- { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
16757
- { name: "safeTransferData", internalType: "bytes", type: "bytes" },
16758
- { name: "deadline", internalType: "uint256", type: "uint256" },
16759
- { name: "nonce", internalType: "uint256", type: "uint256" }
16760
- ]
16761
- },
16762
- { name: "signature", internalType: "bytes", type: "bytes" }
16859
+ { name: "newAuthority", internalType: "address", type: "address" }
16763
16860
  ],
16764
- name: "isValidSignatureTransferBatch",
16765
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
16766
- stateMutability: "view"
16861
+ name: "setAuthority",
16862
+ outputs: [],
16863
+ stateMutability: "nonpayable"
16767
16864
  },
16768
16865
  {
16769
16866
  type: "function",
16770
16867
  inputs: [
16771
- {
16772
- name: "permit",
16773
- internalType: "struct IZoraSparks1155Managed.PermitSingle",
16774
- type: "tuple",
16775
- components: [
16776
- { name: "owner", internalType: "address", type: "address" },
16777
- { name: "to", internalType: "address", type: "address" },
16778
- { name: "tokenId", internalType: "uint256", type: "uint256" },
16779
- { name: "quantity", internalType: "uint256", type: "uint256" },
16780
- { name: "safeTransferData", internalType: "bytes", type: "bytes" },
16781
- { name: "deadline", internalType: "uint256", type: "uint256" },
16782
- { name: "nonce", internalType: "uint256", type: "uint256" }
16783
- ]
16784
- },
16785
- { name: "signature", internalType: "bytes", type: "bytes" }
16868
+ { name: "maxFillCount", internalType: "uint256", type: "uint256" }
16786
16869
  ],
16787
- name: "isValidSignatureTransferSingle",
16788
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
16789
- stateMutability: "view"
16870
+ name: "setMaxFillCount",
16871
+ outputs: [],
16872
+ stateMutability: "nonpayable"
16790
16873
  },
16791
16874
  {
16792
16875
  type: "function",
16793
- inputs: [
16794
- { name: "tokenId", internalType: "uint256", type: "uint256" },
16795
- { name: "tokenAddress", internalType: "address", type: "address" },
16796
- { name: "quantity", internalType: "uint256", type: "uint256" },
16797
- { name: "recipient", internalType: "address", type: "address" },
16798
- { name: "data", internalType: "bytes", type: "bytes" }
16799
- ],
16800
- name: "mintTokenWithERC20",
16801
- outputs: [],
16876
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
16877
+ name: "unlockCallback",
16878
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
16802
16879
  stateMutability: "nonpayable"
16803
16880
  },
16804
16881
  {
16805
16882
  type: "function",
16806
16883
  inputs: [
16807
- { name: "tokenId", internalType: "uint256", type: "uint256" },
16808
- { name: "quantity", internalType: "uint256", type: "uint256" },
16809
- { name: "recipient", internalType: "address", type: "address" },
16810
- { name: "data", internalType: "bytes", type: "bytes" }
16884
+ { name: "orderIds", internalType: "bytes32[]", type: "bytes32[]" },
16885
+ { name: "coin", internalType: "address", type: "address" },
16886
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" },
16887
+ { name: "recipient", internalType: "address", type: "address" }
16811
16888
  ],
16812
- name: "mintTokenWithEth",
16889
+ name: "withdraw",
16813
16890
  outputs: [],
16814
- stateMutability: "payable"
16891
+ stateMutability: "nonpayable"
16815
16892
  },
16816
16893
  {
16817
16894
  type: "function",
16818
16895
  inputs: [],
16819
- name: "name",
16820
- outputs: [{ name: "", internalType: "string", type: "string" }],
16821
- stateMutability: "pure"
16822
- },
16823
- {
16824
- type: "function",
16825
- inputs: [
16826
- { name: "owner", internalType: "address", type: "address" },
16827
- { name: "nonce", internalType: "uint256", type: "uint256" }
16896
+ name: "zoraCoinVersionLookup",
16897
+ outputs: [
16898
+ {
16899
+ name: "",
16900
+ internalType: "contract IDeployedCoinVersionLookup",
16901
+ type: "address"
16902
+ }
16828
16903
  ],
16829
- name: "nonceUsed",
16830
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
16831
16904
  stateMutability: "view"
16832
16905
  },
16833
16906
  {
16834
16907
  type: "function",
16835
- inputs: [
16836
- { name: "newContractURI", internalType: "string", type: "string" },
16837
- { name: "newBaseURI", internalType: "string", type: "string" }
16908
+ inputs: [],
16909
+ name: "zoraHookRegistry",
16910
+ outputs: [
16911
+ { name: "", internalType: "contract IZoraHookRegistry", type: "address" }
16838
16912
  ],
16839
- name: "notifyURIsUpdated",
16840
- outputs: [],
16841
- stateMutability: "nonpayable"
16913
+ stateMutability: "view"
16842
16914
  },
16843
16915
  {
16844
- type: "function",
16916
+ type: "event",
16917
+ anonymous: false,
16845
16918
  inputs: [
16846
- { name: "newUri", internalType: "string", type: "string" },
16847
- { name: "tokenId", internalType: "uint256", type: "uint256" }
16919
+ {
16920
+ name: "authority",
16921
+ internalType: "address",
16922
+ type: "address",
16923
+ indexed: false
16924
+ }
16848
16925
  ],
16849
- name: "notifyUpdatedTokenURI",
16850
- outputs: [],
16851
- stateMutability: "nonpayable"
16926
+ name: "AuthorityUpdated"
16852
16927
  },
16853
16928
  {
16854
- type: "function",
16929
+ type: "event",
16930
+ anonymous: false,
16855
16931
  inputs: [
16856
16932
  {
16857
- name: "permit",
16858
- internalType: "struct IZoraSparks1155Managed.PermitSingle",
16859
- type: "tuple",
16860
- components: [
16861
- { name: "owner", internalType: "address", type: "address" },
16862
- { name: "to", internalType: "address", type: "address" },
16863
- { name: "tokenId", internalType: "uint256", type: "uint256" },
16864
- { name: "quantity", internalType: "uint256", type: "uint256" },
16865
- { name: "safeTransferData", internalType: "bytes", type: "bytes" },
16866
- { name: "deadline", internalType: "uint256", type: "uint256" },
16867
- { name: "nonce", internalType: "uint256", type: "uint256" }
16868
- ]
16933
+ name: "maker",
16934
+ internalType: "address",
16935
+ type: "address",
16936
+ indexed: true
16869
16937
  },
16870
- { name: "signature", internalType: "bytes", type: "bytes" }
16871
- ],
16872
- name: "permitSafeTransfer",
16873
- outputs: [],
16874
- stateMutability: "nonpayable"
16875
- },
16876
- {
16877
- type: "function",
16878
- inputs: [
16938
+ { name: "coin", internalType: "address", type: "address", indexed: true },
16879
16939
  {
16880
- name: "permit",
16881
- internalType: "struct IZoraSparks1155Managed.PermitBatch",
16882
- type: "tuple",
16883
- components: [
16884
- { name: "owner", internalType: "address", type: "address" },
16885
- { name: "to", internalType: "address", type: "address" },
16886
- { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
16887
- { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
16888
- { name: "safeTransferData", internalType: "bytes", type: "bytes" },
16889
- { name: "deadline", internalType: "uint256", type: "uint256" },
16890
- { name: "nonce", internalType: "uint256", type: "uint256" }
16891
- ]
16940
+ name: "poolKeyHash",
16941
+ internalType: "bytes32",
16942
+ type: "bytes32",
16943
+ indexed: false
16892
16944
  },
16893
- { name: "signature", internalType: "bytes", type: "bytes" }
16894
- ],
16895
- name: "permitSafeTransferBatch",
16896
- outputs: [],
16897
- stateMutability: "nonpayable"
16898
- },
16899
- {
16900
- type: "function",
16901
- inputs: [
16902
- { name: "tokenId", internalType: "uint256", type: "uint256" },
16903
- { name: "quantity", internalType: "uint256", type: "uint256" },
16904
- { name: "recipient", internalType: "address", type: "address" }
16905
- ],
16906
- name: "redeem",
16907
- outputs: [
16908
16945
  {
16909
- name: "",
16910
- internalType: "struct Redemption",
16911
- type: "tuple",
16912
- components: [
16913
- { name: "tokenAddress", internalType: "address", type: "address" },
16914
- { name: "valueRedeemed", internalType: "uint256", type: "uint256" }
16915
- ]
16916
- }
16917
- ],
16918
- stateMutability: "nonpayable"
16919
- },
16920
- {
16921
- type: "function",
16922
- inputs: [
16923
- { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
16924
- { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
16925
- { name: "recipient", internalType: "address", type: "address" }
16926
- ],
16927
- name: "redeemBatch",
16928
- outputs: [
16946
+ name: "isCurrency0",
16947
+ internalType: "bool",
16948
+ type: "bool",
16949
+ indexed: false
16950
+ },
16929
16951
  {
16930
- name: "redemptions",
16931
- internalType: "struct Redemption[]",
16932
- type: "tuple[]",
16933
- components: [
16934
- { name: "tokenAddress", internalType: "address", type: "address" },
16935
- { name: "valueRedeemed", internalType: "uint256", type: "uint256" }
16936
- ]
16952
+ name: "orderTick",
16953
+ internalType: "int24",
16954
+ type: "int24",
16955
+ indexed: false
16956
+ },
16957
+ {
16958
+ name: "currentTick",
16959
+ internalType: "int24",
16960
+ type: "int24",
16961
+ indexed: false
16962
+ },
16963
+ {
16964
+ name: "orderSize",
16965
+ internalType: "uint128",
16966
+ type: "uint128",
16967
+ indexed: false
16968
+ },
16969
+ {
16970
+ name: "orderId",
16971
+ internalType: "bytes32",
16972
+ type: "bytes32",
16973
+ indexed: false
16937
16974
  }
16938
16975
  ],
16939
- stateMutability: "nonpayable"
16940
- },
16941
- {
16942
- type: "function",
16943
- inputs: [
16944
- { name: "from", internalType: "address", type: "address" },
16945
- { name: "to", internalType: "address", type: "address" },
16946
- { name: "ids", internalType: "uint256[]", type: "uint256[]" },
16947
- { name: "values", internalType: "uint256[]", type: "uint256[]" },
16948
- { name: "data", internalType: "bytes", type: "bytes" }
16949
- ],
16950
- name: "safeBatchTransferFrom",
16951
- outputs: [],
16952
- stateMutability: "nonpayable"
16953
- },
16954
- {
16955
- type: "function",
16956
- inputs: [
16957
- { name: "from", internalType: "address", type: "address" },
16958
- { name: "to", internalType: "address", type: "address" },
16959
- { name: "id", internalType: "uint256", type: "uint256" },
16960
- { name: "value", internalType: "uint256", type: "uint256" },
16961
- { name: "data", internalType: "bytes", type: "bytes" }
16962
- ],
16963
- name: "safeTransferFrom",
16964
- outputs: [],
16965
- stateMutability: "nonpayable"
16966
- },
16967
- {
16968
- type: "function",
16969
- inputs: [
16970
- { name: "operator", internalType: "address", type: "address" },
16971
- { name: "approved", internalType: "bool", type: "bool" }
16972
- ],
16973
- name: "setApprovalForAll",
16974
- outputs: [],
16975
- stateMutability: "nonpayable"
16976
- },
16977
- {
16978
- type: "function",
16979
- inputs: [
16980
- { name: "newAuthority", internalType: "address", type: "address" }
16981
- ],
16982
- name: "setAuthority",
16983
- outputs: [],
16984
- stateMutability: "nonpayable"
16985
- },
16986
- {
16987
- type: "function",
16988
- inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
16989
- name: "supportsInterface",
16990
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
16991
- stateMutability: "view"
16992
- },
16993
- {
16994
- type: "function",
16995
- inputs: [],
16996
- name: "symbol",
16997
- outputs: [{ name: "", internalType: "string", type: "string" }],
16998
- stateMutability: "pure"
16999
- },
17000
- {
17001
- type: "function",
17002
- inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
17003
- name: "tokenExists",
17004
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
17005
- stateMutability: "view"
17006
- },
17007
- {
17008
- type: "function",
17009
- inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
17010
- name: "tokenPrice",
17011
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
17012
- stateMutability: "view"
17013
- },
17014
- {
17015
- type: "function",
17016
- inputs: [
17017
- { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
17018
- { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
17019
- { name: "call", internalType: "bytes", type: "bytes" }
17020
- ],
17021
- name: "transferBatchToManagerAndCall",
17022
- outputs: [{ name: "callReturn", internalType: "bytes", type: "bytes" }],
17023
- stateMutability: "payable"
17024
- },
17025
- {
17026
- type: "function",
17027
- inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
17028
- name: "uri",
17029
- outputs: [{ name: "", internalType: "string", type: "string" }],
17030
- stateMutability: "view"
16976
+ name: "LimitOrderCreated"
17031
16977
  },
17032
16978
  {
17033
16979
  type: "event",
17034
16980
  anonymous: false,
17035
16981
  inputs: [
17036
16982
  {
17037
- name: "account",
16983
+ name: "maker",
17038
16984
  internalType: "address",
17039
16985
  type: "address",
17040
16986
  indexed: true
17041
16987
  },
17042
16988
  {
17043
- name: "operator",
16989
+ name: "coinIn",
17044
16990
  internalType: "address",
17045
16991
  type: "address",
17046
16992
  indexed: true
17047
16993
  },
17048
- { name: "approved", internalType: "bool", type: "bool", indexed: false }
17049
- ],
17050
- name: "ApprovalForAll"
17051
- },
17052
- {
17053
- type: "event",
17054
- anonymous: false,
17055
- inputs: [
17056
16994
  {
17057
- name: "authority",
16995
+ name: "coinOut",
17058
16996
  internalType: "address",
17059
16997
  type: "address",
17060
16998
  indexed: false
17061
- }
17062
- ],
17063
- name: "AuthorityUpdated"
17064
- },
17065
- { type: "event", anonymous: false, inputs: [], name: "ContractURIUpdated" },
17066
- { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
17067
- {
17068
- type: "event",
17069
- anonymous: false,
17070
- inputs: [
16999
+ },
17071
17000
  {
17072
- name: "tokenId",
17073
- internalType: "uint256",
17074
- type: "uint256",
17075
- indexed: true
17001
+ name: "amountIn",
17002
+ internalType: "uint128",
17003
+ type: "uint128",
17004
+ indexed: false
17076
17005
  },
17077
17006
  {
17078
- name: "price",
17079
- internalType: "uint256",
17080
- type: "uint256",
17081
- indexed: true
17007
+ name: "amountOut",
17008
+ internalType: "uint128",
17009
+ type: "uint128",
17010
+ indexed: false
17082
17011
  },
17083
17012
  {
17084
- name: "tokenAddress",
17013
+ name: "fillReferral",
17085
17014
  internalType: "address",
17086
17015
  type: "address",
17087
- indexed: true
17016
+ indexed: false
17017
+ },
17018
+ {
17019
+ name: "fillReferralAmount",
17020
+ internalType: "uint128",
17021
+ type: "uint128",
17022
+ indexed: false
17023
+ },
17024
+ {
17025
+ name: "poolKeyHash",
17026
+ internalType: "bytes32",
17027
+ type: "bytes32",
17028
+ indexed: false
17029
+ },
17030
+ { name: "tick", internalType: "int24", type: "int24", indexed: false },
17031
+ {
17032
+ name: "orderId",
17033
+ internalType: "bytes32",
17034
+ type: "bytes32",
17035
+ indexed: false
17088
17036
  }
17089
17037
  ],
17090
- name: "TokenCreated"
17038
+ name: "LimitOrderFilled"
17091
17039
  },
17092
17040
  {
17093
17041
  type: "event",
17094
17042
  anonymous: false,
17095
17043
  inputs: [
17096
17044
  {
17097
- name: "operator",
17045
+ name: "maker",
17098
17046
  internalType: "address",
17099
17047
  type: "address",
17100
17048
  indexed: true
17101
17049
  },
17102
- { name: "from", internalType: "address", type: "address", indexed: true },
17103
- { name: "to", internalType: "address", type: "address", indexed: true },
17050
+ { name: "coin", internalType: "address", type: "address", indexed: true },
17104
17051
  {
17105
- name: "ids",
17106
- internalType: "uint256[]",
17107
- type: "uint256[]",
17052
+ name: "poolKeyHash",
17053
+ internalType: "bytes32",
17054
+ type: "bytes32",
17108
17055
  indexed: false
17109
17056
  },
17110
17057
  {
17111
- name: "values",
17112
- internalType: "uint256[]",
17113
- type: "uint256[]",
17058
+ name: "isCurrency0",
17059
+ internalType: "bool",
17060
+ type: "bool",
17061
+ indexed: false
17062
+ },
17063
+ { name: "tick", internalType: "int24", type: "int24", indexed: false },
17064
+ {
17065
+ name: "orderSize",
17066
+ internalType: "uint128",
17067
+ type: "uint128",
17068
+ indexed: false
17069
+ },
17070
+ {
17071
+ name: "orderId",
17072
+ internalType: "bytes32",
17073
+ type: "bytes32",
17074
+ indexed: false
17075
+ },
17076
+ {
17077
+ name: "isCancelled",
17078
+ internalType: "bool",
17079
+ type: "bool",
17114
17080
  indexed: false
17115
17081
  }
17116
17082
  ],
17117
- name: "TransferBatch"
17083
+ name: "LimitOrderUpdated"
17118
17084
  },
17119
17085
  {
17120
17086
  type: "event",
17121
17087
  anonymous: false,
17122
17088
  inputs: [
17123
17089
  {
17124
- name: "operator",
17090
+ name: "maker",
17125
17091
  internalType: "address",
17126
17092
  type: "address",
17127
17093
  indexed: true
17128
17094
  },
17129
- { name: "from", internalType: "address", type: "address", indexed: true },
17130
- { name: "to", internalType: "address", type: "address", indexed: true },
17131
- { name: "id", internalType: "uint256", type: "uint256", indexed: false },
17095
+ { name: "coin", internalType: "address", type: "address", indexed: true },
17132
17096
  {
17133
- name: "value",
17097
+ name: "newBalance",
17134
17098
  internalType: "uint256",
17135
17099
  type: "uint256",
17136
17100
  indexed: false
17137
17101
  }
17138
17102
  ],
17139
- name: "TransferSingle"
17103
+ name: "MakerBalanceUpdated"
17140
17104
  },
17141
17105
  {
17142
- type: "event",
17143
- anonymous: false,
17144
- inputs: [
17145
- { name: "value", internalType: "string", type: "string", indexed: false },
17146
- { name: "id", internalType: "uint256", type: "uint256", indexed: true }
17147
- ],
17148
- name: "URI"
17106
+ type: "error",
17107
+ inputs: [{ name: "authority", internalType: "address", type: "address" }],
17108
+ name: "AccessManagedInvalidAuthority"
17149
17109
  },
17110
+ { type: "error", inputs: [], name: "AccessManagedUnauthorized" },
17111
+ { type: "error", inputs: [], name: "AddressZero" },
17112
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
17150
17113
  {
17151
- type: "event",
17152
- anonymous: false,
17114
+ type: "error",
17153
17115
  inputs: [
17154
- {
17155
- name: "contractURI",
17156
- internalType: "string",
17157
- type: "string",
17158
- indexed: false
17159
- },
17160
- {
17161
- name: "baseURI",
17162
- internalType: "string",
17163
- type: "string",
17164
- indexed: false
17165
- }
17116
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
17117
+ { name: "expectedCoin", internalType: "address", type: "address" },
17118
+ { name: "actualCoin", internalType: "address", type: "address" }
17166
17119
  ],
17167
- name: "URIsUpdated"
17120
+ name: "CoinMismatch"
17168
17121
  },
17122
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
17123
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
17169
17124
  {
17170
17125
  type: "error",
17171
- inputs: [{ name: "authority", internalType: "address", type: "address" }],
17172
- name: "AccessManagedInvalidAuthority"
17126
+ inputs: [
17127
+ { name: "startTick", internalType: "int24", type: "int24" },
17128
+ { name: "endTick", internalType: "int24", type: "int24" },
17129
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
17130
+ ],
17131
+ name: "InvalidFillWindow"
17173
17132
  },
17133
+ { type: "error", inputs: [], name: "InvalidOrder" },
17134
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
17135
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
17174
17136
  {
17175
17137
  type: "error",
17176
17138
  inputs: [
17177
- { name: "caller", internalType: "address", type: "address" },
17178
- { name: "delay", internalType: "uint32", type: "uint32" }
17139
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
17140
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
17179
17141
  ],
17180
- name: "AccessManagedRequiredDelay"
17142
+ name: "MinAmountNotReached"
17181
17143
  },
17144
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
17145
+ { type: "error", inputs: [], name: "NotPoolManager" },
17146
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
17147
+ { type: "error", inputs: [], name: "OrderClosed" },
17148
+ { type: "error", inputs: [], name: "OrderNotMaker" },
17149
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
17150
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
17151
+ { type: "error", inputs: [], name: "UnknownCallback" },
17152
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
17153
+ { type: "error", inputs: [], name: "ZeroMaker" },
17154
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
17155
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" },
17156
+ { type: "error", inputs: [], name: "AddressZero" },
17157
+ { type: "error", inputs: [], name: "AlreadyOwner" },
17158
+ { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
17182
17159
  {
17183
17160
  type: "error",
17184
- inputs: [{ name: "caller", internalType: "address", type: "address" }],
17185
- name: "AccessManagedUnauthorized"
17161
+ inputs: [],
17162
+ name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
17186
17163
  },
17164
+ { type: "error", inputs: [], name: "ECDSAInvalidSignature" },
17187
17165
  {
17188
17166
  type: "error",
17189
- inputs: [{ name: "target", internalType: "address", type: "address" }],
17190
- name: "AddressEmptyCode"
17167
+ inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
17168
+ name: "ECDSAInvalidSignatureLength"
17191
17169
  },
17192
17170
  {
17193
17171
  type: "error",
17194
- inputs: [{ name: "account", internalType: "address", type: "address" }],
17195
- name: "AddressInsufficientBalance"
17172
+ inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
17173
+ name: "ECDSAInvalidSignatureS"
17196
17174
  },
17197
17175
  {
17198
17176
  type: "error",
17199
17177
  inputs: [
17200
- { name: "lengthA", internalType: "uint256", type: "uint256" },
17201
- { name: "lengthB", internalType: "uint256", type: "uint256" }
17178
+ { name: "spender", internalType: "address", type: "address" },
17179
+ { name: "allowance", internalType: "uint256", type: "uint256" },
17180
+ { name: "needed", internalType: "uint256", type: "uint256" }
17202
17181
  ],
17203
- name: "ArrayLengthMismatch"
17204
- },
17205
- {
17206
- type: "error",
17207
- inputs: [{ name: "returnData", internalType: "bytes", type: "bytes" }],
17208
- name: "CallFailed"
17182
+ name: "ERC20InsufficientAllowance"
17209
17183
  },
17210
17184
  {
17211
17185
  type: "error",
17212
17186
  inputs: [
17213
17187
  { name: "sender", internalType: "address", type: "address" },
17214
17188
  { name: "balance", internalType: "uint256", type: "uint256" },
17215
- { name: "needed", internalType: "uint256", type: "uint256" },
17216
- { name: "tokenId", internalType: "uint256", type: "uint256" }
17189
+ { name: "needed", internalType: "uint256", type: "uint256" }
17217
17190
  ],
17218
- name: "ERC1155InsufficientBalance"
17191
+ name: "ERC20InsufficientBalance"
17219
17192
  },
17220
17193
  {
17221
17194
  type: "error",
17222
17195
  inputs: [{ name: "approver", internalType: "address", type: "address" }],
17223
- name: "ERC1155InvalidApprover"
17196
+ name: "ERC20InvalidApprover"
17224
17197
  },
17225
17198
  {
17226
17199
  type: "error",
17227
- inputs: [
17228
- { name: "idsLength", internalType: "uint256", type: "uint256" },
17229
- { name: "valuesLength", internalType: "uint256", type: "uint256" }
17230
- ],
17231
- name: "ERC1155InvalidArrayLength"
17200
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
17201
+ name: "ERC20InvalidReceiver"
17232
17202
  },
17233
17203
  {
17234
17204
  type: "error",
17235
- inputs: [{ name: "operator", internalType: "address", type: "address" }],
17236
- name: "ERC1155InvalidOperator"
17205
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
17206
+ name: "ERC20InvalidSender"
17237
17207
  },
17238
17208
  {
17239
17209
  type: "error",
17240
- inputs: [{ name: "receiver", internalType: "address", type: "address" }],
17241
- name: "ERC1155InvalidReceiver"
17210
+ inputs: [{ name: "spender", internalType: "address", type: "address" }],
17211
+ name: "ERC20InvalidSpender"
17242
17212
  },
17213
+ { type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
17243
17214
  {
17244
17215
  type: "error",
17245
- inputs: [{ name: "sender", internalType: "address", type: "address" }],
17246
- name: "ERC1155InvalidSender"
17216
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
17217
+ name: "ERC2612ExpiredSignature"
17247
17218
  },
17248
17219
  {
17249
17220
  type: "error",
17250
17221
  inputs: [
17251
- { name: "operator", internalType: "address", type: "address" },
17222
+ { name: "signer", internalType: "address", type: "address" },
17252
17223
  { name: "owner", internalType: "address", type: "address" }
17253
17224
  ],
17254
- name: "ERC1155MissingApprovalForAll"
17255
- },
17256
- { type: "error", inputs: [], name: "ERC20TransferSlippage" },
17257
- {
17258
- type: "error",
17259
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
17260
- name: "ERC2612ExpiredSignature"
17225
+ name: "ERC2612InvalidSigner"
17261
17226
  },
17262
- { type: "error", inputs: [], name: "ETHTransferFailed" },
17263
- { type: "error", inputs: [], name: "FailedInnerCall" },
17264
- { type: "error", inputs: [], name: "IncorrectAmountSent" },
17227
+ { type: "error", inputs: [], name: "EthAmountMismatch" },
17228
+ { type: "error", inputs: [], name: "EthAmountTooSmall" },
17229
+ { type: "error", inputs: [], name: "EthTransferFailed" },
17230
+ { type: "error", inputs: [], name: "EthTransferInvalid" },
17231
+ { type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
17232
+ { type: "error", inputs: [], name: "InsufficientFunds" },
17233
+ { type: "error", inputs: [], name: "InsufficientLiquidity" },
17265
17234
  {
17266
17235
  type: "error",
17267
17236
  inputs: [
@@ -17270,311 +17239,202 @@ var zoraMints1155ABI = [
17270
17239
  ],
17271
17240
  name: "InvalidAccountNonce"
17272
17241
  },
17273
- { type: "error", inputs: [], name: "InvalidRecipient" },
17274
- { type: "error", inputs: [], name: "InvalidShortString" },
17275
- { type: "error", inputs: [], name: "InvalidSignature" },
17276
- { type: "error", inputs: [], name: "InvalidTokenPrice" },
17277
- { type: "error", inputs: [], name: "NoUriForNonexistentToken" },
17242
+ { type: "error", inputs: [], name: "InvalidCurrency" },
17243
+ { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
17244
+ { type: "error", inputs: [], name: "InvalidInitialization" },
17245
+ { type: "error", inputs: [], name: "InvalidMarketType" },
17246
+ { type: "error", inputs: [], name: "InvalidPoolVersion" },
17278
17247
  {
17279
17248
  type: "error",
17280
- inputs: [{ name: "handler", internalType: "address", type: "address" }],
17281
- name: "NotARedeemHandler"
17249
+ inputs: [
17250
+ { name: "tickLower", internalType: "int24", type: "int24" },
17251
+ { name: "tickUpper", internalType: "int24", type: "int24" }
17252
+ ],
17253
+ name: "InvalidTickRangeMisordered"
17282
17254
  },
17255
+ { type: "error", inputs: [], name: "InvalidWethLowerTick" },
17256
+ { type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
17257
+ { type: "error", inputs: [], name: "MarketAlreadyGraduated" },
17258
+ { type: "error", inputs: [], name: "MarketNotGraduated" },
17283
17259
  {
17284
17260
  type: "error",
17285
- inputs: [{ name: "token", internalType: "address", type: "address" }],
17286
- name: "SafeERC20FailedOperation"
17261
+ inputs: [
17262
+ { name: "value", internalType: "uint256", type: "uint256" },
17263
+ { name: "limit", internalType: "uint256", type: "uint256" }
17264
+ ],
17265
+ name: "MaxShareToBeSoldExceeded"
17287
17266
  },
17267
+ { type: "error", inputs: [], name: "NameIsRequired" },
17268
+ { type: "error", inputs: [], name: "NotInitializing" },
17269
+ { type: "error", inputs: [], name: "NotOwner" },
17270
+ { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
17271
+ { type: "error", inputs: [], name: "OneOwnerRequired" },
17272
+ { type: "error", inputs: [], name: "OnlyOwner" },
17288
17273
  {
17289
17274
  type: "error",
17290
- inputs: [{ name: "str", internalType: "string", type: "string" }],
17291
- name: "StringTooLong"
17275
+ inputs: [
17276
+ { name: "sender", internalType: "address", type: "address" },
17277
+ { name: "pool", internalType: "address", type: "address" }
17278
+ ],
17279
+ name: "OnlyPool"
17280
+ },
17281
+ { type: "error", inputs: [], name: "OnlyWeth" },
17282
+ { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
17283
+ { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
17284
+ { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" },
17285
+ { type: "error", inputs: [], name: "CoinVersionLookupCannotBeZeroAddress" },
17286
+ { type: "error", inputs: [], name: "EthTransferFailed" },
17287
+ { type: "error", inputs: [], name: "HookNotImplemented" },
17288
+ {
17289
+ type: "error",
17290
+ inputs: [{ name: "callbackId", internalType: "uint8", type: "uint8" }],
17291
+ name: "InvalidCallbackId"
17292
+ },
17293
+ {
17294
+ type: "error",
17295
+ inputs: [{ name: "newHook", internalType: "address", type: "address" }],
17296
+ name: "InvalidNewHook"
17292
17297
  },
17293
- { type: "error", inputs: [], name: "TokenAlreadyCreated" },
17294
- { type: "error", inputs: [], name: "TokenDoesNotExist" },
17295
17298
  {
17296
17299
  type: "error",
17297
17300
  inputs: [
17298
- { name: "storedTokenAddress", internalType: "address", type: "address" },
17299
17301
  {
17300
- name: "expectedTokenAddress",
17301
- internalType: "address",
17302
- type: "address"
17302
+ name: "key",
17303
+ internalType: "struct PoolKey",
17304
+ type: "tuple",
17305
+ components: [
17306
+ { name: "currency0", internalType: "Currency", type: "address" },
17307
+ { name: "currency1", internalType: "Currency", type: "address" },
17308
+ { name: "fee", internalType: "uint24", type: "uint24" },
17309
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
17310
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
17311
+ ]
17303
17312
  }
17304
17313
  ],
17305
- name: "TokenMismatch"
17314
+ name: "NoCoinForHook"
17306
17315
  },
17307
- { type: "error", inputs: [], name: "TokenNotMintable" }
17308
- ];
17309
- var zoraMints1155Address = {
17310
- 7777777: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
17311
- 999999999: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073"
17312
- };
17313
- var zoraMints1155Config = {
17314
- address: zoraMints1155Address,
17315
- abi: zoraMints1155ABI
17316
- };
17317
- var zoraMintsManagerImplABI = [
17318
17316
  {
17319
- type: "constructor",
17317
+ type: "error",
17318
+ inputs: [{ name: "coin", internalType: "address", type: "address" }],
17319
+ name: "NotACoin"
17320
+ },
17321
+ { type: "error", inputs: [], name: "NotPoolManager" },
17322
+ {
17323
+ type: "error",
17320
17324
  inputs: [
17321
- {
17322
- name: "_premintExecutor",
17323
- internalType: "contract IZoraCreator1155PremintExecutorAllVersions",
17324
- type: "address"
17325
- }
17325
+ { name: "caller", internalType: "address", type: "address" },
17326
+ { name: "expectedCoin", internalType: "address", type: "address" }
17326
17327
  ],
17327
- stateMutability: "nonpayable"
17328
+ name: "OnlyCoin"
17328
17329
  },
17330
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
17331
+ { type: "error", inputs: [], name: "SafeCastOverflow" },
17329
17332
  {
17330
- type: "function",
17331
- inputs: [],
17332
- name: "UPGRADE_INTERFACE_VERSION",
17333
- outputs: [{ name: "", internalType: "string", type: "string" }],
17334
- stateMutability: "view"
17333
+ type: "error",
17334
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
17335
+ name: "SafeERC20FailedOperation"
17335
17336
  },
17336
17337
  {
17337
- type: "function",
17338
+ type: "error",
17338
17339
  inputs: [],
17339
- name: "acceptOwnership",
17340
- outputs: [],
17341
- stateMutability: "nonpayable"
17340
+ name: "TrustedMsgSenderLookupCannotBeZeroAddress"
17342
17341
  },
17342
+ { type: "error", inputs: [], name: "UpgradeGateCannotBeZeroAddress" },
17343
17343
  {
17344
- type: "function",
17344
+ type: "error",
17345
17345
  inputs: [
17346
- { name: "callFrom", internalType: "address", type: "address" },
17347
- { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
17348
- { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
17349
- { name: "call", internalType: "bytes", type: "bytes" }
17350
- ],
17351
- name: "callWithTransferTokens",
17352
- outputs: [
17353
- { name: "success", internalType: "bool", type: "bool" },
17354
- { name: "result", internalType: "bytes", type: "bytes" }
17346
+ { name: "oldHook", internalType: "address", type: "address" },
17347
+ { name: "newHook", internalType: "address", type: "address" }
17355
17348
  ],
17356
- stateMutability: "payable"
17349
+ name: "UpgradePathNotRegistered"
17357
17350
  },
17351
+ { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
17352
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
17353
+ ];
17354
+ var zoraLimitOrderBookAddress = {
17355
+ 8453: "0x198419084C13d59c7b3E4c469A3d15b31263B06C"
17356
+ };
17357
+ var zoraLimitOrderBookConfig = {
17358
+ address: zoraLimitOrderBookAddress,
17359
+ abi: zoraLimitOrderBookABI
17360
+ };
17361
+ var zoraMints1155ABI = [
17362
+ { type: "constructor", inputs: [], stateMutability: "nonpayable" },
17358
17363
  {
17359
17364
  type: "function",
17360
- inputs: [
17361
- { name: "caller", internalType: "address", type: "address" },
17362
- { name: "", internalType: "address", type: "address" },
17363
- { name: "", internalType: "bytes4", type: "bytes4" }
17364
- ],
17365
- name: "canCall",
17366
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
17365
+ inputs: [],
17366
+ name: "ETH_ADDRESS",
17367
+ outputs: [{ name: "", internalType: "address", type: "address" }],
17367
17368
  stateMutability: "view"
17368
17369
  },
17369
17370
  {
17370
17371
  type: "function",
17371
- inputs: [
17372
- {
17373
- name: "zoraCreator1155Contract",
17374
- internalType: "contract IMintWithSparks",
17375
- type: "address"
17376
- },
17377
- { name: "minter", internalType: "contract IMinter1155", type: "address" },
17378
- {
17379
- name: "zoraCreator1155TokenId",
17380
- internalType: "uint256",
17381
- type: "uint256"
17382
- },
17383
- {
17384
- name: "collectMintArguments",
17385
- internalType: "struct ICollectWithZoraSparks.CollectMintArguments",
17386
- type: "tuple",
17387
- components: [
17388
- {
17389
- name: "mintRewardsRecipients",
17390
- internalType: "address[]",
17391
- type: "address[]"
17392
- },
17393
- { name: "minterArguments", internalType: "bytes", type: "bytes" },
17394
- { name: "mintComment", internalType: "string", type: "string" }
17395
- ]
17396
- }
17397
- ],
17398
- name: "collect",
17399
- outputs: [],
17400
- stateMutability: "payable"
17372
+ inputs: [],
17373
+ name: "MINIMUM_ERC20_PRICE",
17374
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
17375
+ stateMutability: "view"
17401
17376
  },
17402
17377
  {
17403
17378
  type: "function",
17404
- inputs: [
17405
- {
17406
- name: "contractConfig",
17407
- internalType: "struct ContractWithAdditionalAdminsCreationConfig",
17408
- type: "tuple",
17409
- components: [
17410
- { name: "contractAdmin", internalType: "address", type: "address" },
17411
- { name: "contractURI", internalType: "string", type: "string" },
17412
- { name: "contractName", internalType: "string", type: "string" },
17413
- {
17414
- name: "additionalAdmins",
17415
- internalType: "address[]",
17416
- type: "address[]"
17417
- }
17418
- ]
17419
- },
17420
- { name: "tokenContract", internalType: "address", type: "address" },
17421
- {
17422
- name: "premintConfig",
17423
- internalType: "struct PremintConfigEncoded",
17424
- type: "tuple",
17425
- components: [
17426
- { name: "uid", internalType: "uint32", type: "uint32" },
17427
- { name: "version", internalType: "uint32", type: "uint32" },
17428
- { name: "deleted", internalType: "bool", type: "bool" },
17429
- { name: "tokenConfig", internalType: "bytes", type: "bytes" },
17430
- {
17431
- name: "premintConfigVersion",
17432
- internalType: "bytes32",
17433
- type: "bytes32"
17434
- }
17435
- ]
17436
- },
17437
- { name: "signature", internalType: "bytes", type: "bytes" },
17438
- {
17439
- name: "mintArguments",
17440
- internalType: "struct MintArguments",
17441
- type: "tuple",
17442
- components: [
17443
- { name: "mintRecipient", internalType: "address", type: "address" },
17444
- { name: "mintComment", internalType: "string", type: "string" },
17445
- {
17446
- name: "mintRewardsRecipients",
17447
- internalType: "address[]",
17448
- type: "address[]"
17449
- }
17450
- ]
17451
- },
17452
- { name: "firstMinter", internalType: "address", type: "address" },
17453
- { name: "signerContract", internalType: "address", type: "address" }
17454
- ],
17455
- name: "collectPremint",
17456
- outputs: [
17457
- {
17458
- name: "result",
17459
- internalType: "struct PremintResult",
17460
- type: "tuple",
17461
- components: [
17462
- { name: "contractAddress", internalType: "address", type: "address" },
17463
- { name: "tokenId", internalType: "uint256", type: "uint256" },
17464
- { name: "createdNewContract", internalType: "bool", type: "bool" }
17465
- ]
17466
- }
17467
- ],
17468
- stateMutability: "payable"
17379
+ inputs: [],
17380
+ name: "MINIMUM_ETH_PRICE",
17381
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
17382
+ stateMutability: "view"
17469
17383
  },
17470
17384
  {
17471
17385
  type: "function",
17472
- inputs: [
17473
- {
17474
- name: "contractConfig",
17475
- internalType: "struct ContractCreationConfig",
17476
- type: "tuple",
17477
- components: [
17478
- { name: "contractAdmin", internalType: "address", type: "address" },
17479
- { name: "contractURI", internalType: "string", type: "string" },
17480
- { name: "contractName", internalType: "string", type: "string" }
17481
- ]
17482
- },
17483
- {
17484
- name: "premintConfig",
17485
- internalType: "struct PremintConfigV2",
17486
- type: "tuple",
17487
- components: [
17488
- {
17489
- name: "tokenConfig",
17490
- internalType: "struct TokenCreationConfigV2",
17491
- type: "tuple",
17492
- components: [
17493
- { name: "tokenURI", internalType: "string", type: "string" },
17494
- { name: "maxSupply", internalType: "uint256", type: "uint256" },
17495
- {
17496
- name: "maxTokensPerAddress",
17497
- internalType: "uint64",
17498
- type: "uint64"
17499
- },
17500
- { name: "pricePerToken", internalType: "uint96", type: "uint96" },
17501
- { name: "mintStart", internalType: "uint64", type: "uint64" },
17502
- { name: "mintDuration", internalType: "uint64", type: "uint64" },
17503
- { name: "royaltyBPS", internalType: "uint32", type: "uint32" },
17504
- {
17505
- name: "payoutRecipient",
17506
- internalType: "address",
17507
- type: "address"
17508
- },
17509
- {
17510
- name: "fixedPriceMinter",
17511
- internalType: "address",
17512
- type: "address"
17513
- },
17514
- {
17515
- name: "createReferral",
17516
- internalType: "address",
17517
- type: "address"
17518
- }
17519
- ]
17520
- },
17521
- { name: "uid", internalType: "uint32", type: "uint32" },
17522
- { name: "version", internalType: "uint32", type: "uint32" },
17523
- { name: "deleted", internalType: "bool", type: "bool" }
17524
- ]
17525
- },
17526
- { name: "signature", internalType: "bytes", type: "bytes" },
17527
- {
17528
- name: "mintArguments",
17529
- internalType: "struct MintArguments",
17530
- type: "tuple",
17531
- components: [
17532
- { name: "mintRecipient", internalType: "address", type: "address" },
17533
- { name: "mintComment", internalType: "string", type: "string" },
17534
- {
17535
- name: "mintRewardsRecipients",
17536
- internalType: "address[]",
17537
- type: "address[]"
17538
- }
17539
- ]
17540
- },
17541
- { name: "signerContract", internalType: "address", type: "address" }
17542
- ],
17543
- name: "collectPremintV2",
17544
- outputs: [
17545
- {
17546
- name: "result",
17547
- internalType: "struct PremintResult",
17548
- type: "tuple",
17549
- components: [
17550
- { name: "contractAddress", internalType: "address", type: "address" },
17551
- { name: "tokenId", internalType: "uint256", type: "uint256" },
17552
- { name: "createdNewContract", internalType: "bool", type: "bool" }
17553
- ]
17554
- }
17555
- ],
17556
- stateMutability: "payable"
17386
+ inputs: [],
17387
+ name: "NAME",
17388
+ outputs: [{ name: "", internalType: "string", type: "string" }],
17389
+ stateMutability: "view"
17557
17390
  },
17558
17391
  {
17559
17392
  type: "function",
17560
17393
  inputs: [],
17561
- name: "contractName",
17394
+ name: "VERSION",
17562
17395
  outputs: [{ name: "", internalType: "string", type: "string" }],
17563
- stateMutability: "pure"
17396
+ stateMutability: "view"
17564
17397
  },
17565
17398
  {
17566
17399
  type: "function",
17567
17400
  inputs: [],
17568
- name: "contractURI",
17569
- outputs: [{ name: "", internalType: "string", type: "string" }],
17401
+ name: "authority",
17402
+ outputs: [{ name: "", internalType: "address", type: "address" }],
17403
+ stateMutability: "view"
17404
+ },
17405
+ {
17406
+ type: "function",
17407
+ inputs: [
17408
+ { name: "account", internalType: "address", type: "address" },
17409
+ { name: "id", internalType: "uint256", type: "uint256" }
17410
+ ],
17411
+ name: "balanceOf",
17412
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
17413
+ stateMutability: "view"
17414
+ },
17415
+ {
17416
+ type: "function",
17417
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
17418
+ name: "balanceOfAccount",
17419
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
17420
+ stateMutability: "view"
17421
+ },
17422
+ {
17423
+ type: "function",
17424
+ inputs: [
17425
+ { name: "accounts", internalType: "address[]", type: "address[]" },
17426
+ { name: "ids", internalType: "uint256[]", type: "uint256[]" }
17427
+ ],
17428
+ name: "balanceOfBatch",
17429
+ outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }],
17570
17430
  stateMutability: "view"
17571
17431
  },
17572
17432
  {
17573
17433
  type: "function",
17574
17434
  inputs: [],
17575
- name: "contractVersion",
17435
+ name: "contractURI",
17576
17436
  outputs: [{ name: "", internalType: "string", type: "string" }],
17577
- stateMutability: "pure"
17437
+ stateMutability: "view"
17578
17438
  },
17579
17439
  {
17580
17440
  type: "function",
@@ -17589,203 +17449,1733 @@ var zoraMintsManagerImplABI = [
17589
17449
  { name: "tokenAddress", internalType: "address", type: "address" },
17590
17450
  { name: "redeemHandler", internalType: "address", type: "address" }
17591
17451
  ]
17592
- },
17593
- { name: "defaultMintable", internalType: "bool", type: "bool" }
17452
+ }
17594
17453
  ],
17595
17454
  name: "createToken",
17596
17455
  outputs: [],
17597
17456
  stateMutability: "nonpayable"
17598
17457
  },
17599
- {
17600
- type: "function",
17601
- inputs: [{ name: "minterArguments", internalType: "bytes", type: "bytes" }],
17602
- name: "decodeMintRecipientAndComment",
17603
- outputs: [
17604
- { name: "mintTo", internalType: "address", type: "address" },
17605
- { name: "mintComment", internalType: "string", type: "string" }
17606
- ],
17607
- stateMutability: "pure"
17608
- },
17609
17458
  {
17610
17459
  type: "function",
17611
17460
  inputs: [],
17612
- name: "getEthPrice",
17613
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
17461
+ name: "eip712Domain",
17462
+ outputs: [
17463
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
17464
+ { name: "name", internalType: "string", type: "string" },
17465
+ { name: "version", internalType: "string", type: "string" },
17466
+ { name: "chainId", internalType: "uint256", type: "uint256" },
17467
+ { name: "verifyingContract", internalType: "address", type: "address" },
17468
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
17469
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
17470
+ ],
17614
17471
  stateMutability: "view"
17615
17472
  },
17616
17473
  {
17617
17474
  type: "function",
17618
17475
  inputs: [],
17619
- name: "implementation",
17476
+ name: "getManager",
17620
17477
  outputs: [{ name: "", internalType: "address", type: "address" }],
17621
17478
  stateMutability: "view"
17622
17479
  },
17480
+ {
17481
+ type: "function",
17482
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
17483
+ name: "getTokenConfig",
17484
+ outputs: [
17485
+ {
17486
+ name: "",
17487
+ internalType: "struct TokenConfig",
17488
+ type: "tuple",
17489
+ components: [
17490
+ { name: "price", internalType: "uint256", type: "uint256" },
17491
+ { name: "tokenAddress", internalType: "address", type: "address" },
17492
+ { name: "redeemHandler", internalType: "address", type: "address" }
17493
+ ]
17494
+ }
17495
+ ],
17496
+ stateMutability: "view"
17497
+ },
17623
17498
  {
17624
17499
  type: "function",
17625
17500
  inputs: [
17626
- { name: "defaultOwner", internalType: "address", type: "address" },
17627
- { name: "zoraSparksSalt", internalType: "bytes32", type: "bytes32" },
17628
- { name: "zoraSparksCreationCode", internalType: "bytes", type: "bytes" },
17629
- { name: "initialEthTokenId", internalType: "uint256", type: "uint256" },
17630
17501
  {
17631
- name: "initialEthTokenPrice",
17632
- internalType: "uint256",
17633
- type: "uint256"
17634
- },
17635
- { name: "newBaseURI", internalType: "string", type: "string" },
17636
- { name: "newContractURI", internalType: "string", type: "string" }
17502
+ name: "permit",
17503
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
17504
+ type: "tuple",
17505
+ components: [
17506
+ { name: "owner", internalType: "address", type: "address" },
17507
+ { name: "to", internalType: "address", type: "address" },
17508
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
17509
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
17510
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
17511
+ { name: "deadline", internalType: "uint256", type: "uint256" },
17512
+ { name: "nonce", internalType: "uint256", type: "uint256" }
17513
+ ]
17514
+ }
17637
17515
  ],
17638
- name: "initialize",
17639
- outputs: [
17516
+ name: "hashPermitBatch",
17517
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
17518
+ stateMutability: "view"
17519
+ },
17520
+ {
17521
+ type: "function",
17522
+ inputs: [
17640
17523
  {
17641
- name: "mints",
17642
- internalType: "contract IZoraSparks1155",
17643
- type: "address"
17524
+ name: "permit",
17525
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
17526
+ type: "tuple",
17527
+ components: [
17528
+ { name: "owner", internalType: "address", type: "address" },
17529
+ { name: "to", internalType: "address", type: "address" },
17530
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
17531
+ { name: "quantity", internalType: "uint256", type: "uint256" },
17532
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
17533
+ { name: "deadline", internalType: "uint256", type: "uint256" },
17534
+ { name: "nonce", internalType: "uint256", type: "uint256" }
17535
+ ]
17644
17536
  }
17645
17537
  ],
17646
- stateMutability: "nonpayable"
17538
+ name: "hashPermitSingle",
17539
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
17540
+ stateMutability: "view"
17541
+ },
17542
+ {
17543
+ type: "function",
17544
+ inputs: [
17545
+ { name: "account", internalType: "address", type: "address" },
17546
+ { name: "operator", internalType: "address", type: "address" }
17547
+ ],
17548
+ name: "isApprovedForAll",
17549
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
17550
+ stateMutability: "view"
17551
+ },
17552
+ {
17553
+ type: "function",
17554
+ inputs: [],
17555
+ name: "isConsumingScheduledOp",
17556
+ outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
17557
+ stateMutability: "view"
17558
+ },
17559
+ {
17560
+ type: "function",
17561
+ inputs: [
17562
+ {
17563
+ name: "permit",
17564
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
17565
+ type: "tuple",
17566
+ components: [
17567
+ { name: "owner", internalType: "address", type: "address" },
17568
+ { name: "to", internalType: "address", type: "address" },
17569
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
17570
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
17571
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
17572
+ { name: "deadline", internalType: "uint256", type: "uint256" },
17573
+ { name: "nonce", internalType: "uint256", type: "uint256" }
17574
+ ]
17575
+ },
17576
+ { name: "signature", internalType: "bytes", type: "bytes" }
17577
+ ],
17578
+ name: "isValidSignatureTransferBatch",
17579
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
17580
+ stateMutability: "view"
17581
+ },
17582
+ {
17583
+ type: "function",
17584
+ inputs: [
17585
+ {
17586
+ name: "permit",
17587
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
17588
+ type: "tuple",
17589
+ components: [
17590
+ { name: "owner", internalType: "address", type: "address" },
17591
+ { name: "to", internalType: "address", type: "address" },
17592
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
17593
+ { name: "quantity", internalType: "uint256", type: "uint256" },
17594
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
17595
+ { name: "deadline", internalType: "uint256", type: "uint256" },
17596
+ { name: "nonce", internalType: "uint256", type: "uint256" }
17597
+ ]
17598
+ },
17599
+ { name: "signature", internalType: "bytes", type: "bytes" }
17600
+ ],
17601
+ name: "isValidSignatureTransferSingle",
17602
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
17603
+ stateMutability: "view"
17647
17604
  },
17648
17605
  {
17649
17606
  type: "function",
17650
17607
  inputs: [
17608
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
17651
17609
  { name: "tokenAddress", internalType: "address", type: "address" },
17652
17610
  { name: "quantity", internalType: "uint256", type: "uint256" },
17653
- { name: "recipient", internalType: "address", type: "address" }
17654
- ],
17655
- name: "mintWithERC20",
17656
- outputs: [
17657
- { name: "mintableTokenId", internalType: "uint256", type: "uint256" }
17611
+ { name: "recipient", internalType: "address", type: "address" },
17612
+ { name: "data", internalType: "bytes", type: "bytes" }
17658
17613
  ],
17614
+ name: "mintTokenWithERC20",
17615
+ outputs: [],
17659
17616
  stateMutability: "nonpayable"
17660
17617
  },
17661
17618
  {
17662
17619
  type: "function",
17663
17620
  inputs: [
17621
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
17664
17622
  { name: "quantity", internalType: "uint256", type: "uint256" },
17665
- { name: "recipient", internalType: "address", type: "address" }
17666
- ],
17667
- name: "mintWithEth",
17668
- outputs: [
17669
- { name: "mintableTokenId", internalType: "uint256", type: "uint256" }
17623
+ { name: "recipient", internalType: "address", type: "address" },
17624
+ { name: "data", internalType: "bytes", type: "bytes" }
17670
17625
  ],
17626
+ name: "mintTokenWithEth",
17627
+ outputs: [],
17671
17628
  stateMutability: "payable"
17672
17629
  },
17673
17630
  {
17674
17631
  type: "function",
17675
17632
  inputs: [],
17676
- name: "mintableEthToken",
17677
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
17633
+ name: "name",
17634
+ outputs: [{ name: "", internalType: "string", type: "string" }],
17635
+ stateMutability: "pure"
17636
+ },
17637
+ {
17638
+ type: "function",
17639
+ inputs: [
17640
+ { name: "owner", internalType: "address", type: "address" },
17641
+ { name: "nonce", internalType: "uint256", type: "uint256" }
17642
+ ],
17643
+ name: "nonceUsed",
17644
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
17678
17645
  stateMutability: "view"
17679
17646
  },
17680
17647
  {
17681
17648
  type: "function",
17682
17649
  inputs: [
17683
- { name: "", internalType: "address", type: "address" },
17684
- { name: "from", internalType: "address", type: "address" },
17685
- { name: "ids", internalType: "uint256[]", type: "uint256[]" },
17686
- { name: "values", internalType: "uint256[]", type: "uint256[]" },
17687
- { name: "data", internalType: "bytes", type: "bytes" }
17650
+ { name: "newContractURI", internalType: "string", type: "string" },
17651
+ { name: "newBaseURI", internalType: "string", type: "string" }
17688
17652
  ],
17689
- name: "onERC1155BatchReceived",
17690
- outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
17653
+ name: "notifyURIsUpdated",
17654
+ outputs: [],
17691
17655
  stateMutability: "nonpayable"
17692
17656
  },
17693
17657
  {
17694
17658
  type: "function",
17695
17659
  inputs: [
17696
- { name: "", internalType: "address", type: "address" },
17697
- { name: "from", internalType: "address", type: "address" },
17698
- { name: "id", internalType: "uint256", type: "uint256" },
17699
- { name: "value", internalType: "uint256", type: "uint256" },
17700
- { name: "data", internalType: "bytes", type: "bytes" }
17660
+ { name: "newUri", internalType: "string", type: "string" },
17661
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
17701
17662
  ],
17702
- name: "onERC1155Received",
17703
- outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
17663
+ name: "notifyUpdatedTokenURI",
17664
+ outputs: [],
17704
17665
  stateMutability: "nonpayable"
17705
17666
  },
17706
17667
  {
17707
17668
  type: "function",
17708
- inputs: [],
17709
- name: "owner",
17710
- outputs: [{ name: "", internalType: "address", type: "address" }],
17711
- stateMutability: "view"
17669
+ inputs: [
17670
+ {
17671
+ name: "permit",
17672
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
17673
+ type: "tuple",
17674
+ components: [
17675
+ { name: "owner", internalType: "address", type: "address" },
17676
+ { name: "to", internalType: "address", type: "address" },
17677
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
17678
+ { name: "quantity", internalType: "uint256", type: "uint256" },
17679
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
17680
+ { name: "deadline", internalType: "uint256", type: "uint256" },
17681
+ { name: "nonce", internalType: "uint256", type: "uint256" }
17682
+ ]
17683
+ },
17684
+ { name: "signature", internalType: "bytes", type: "bytes" }
17685
+ ],
17686
+ name: "permitSafeTransfer",
17687
+ outputs: [],
17688
+ stateMutability: "nonpayable"
17689
+ },
17690
+ {
17691
+ type: "function",
17692
+ inputs: [
17693
+ {
17694
+ name: "permit",
17695
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
17696
+ type: "tuple",
17697
+ components: [
17698
+ { name: "owner", internalType: "address", type: "address" },
17699
+ { name: "to", internalType: "address", type: "address" },
17700
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
17701
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
17702
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
17703
+ { name: "deadline", internalType: "uint256", type: "uint256" },
17704
+ { name: "nonce", internalType: "uint256", type: "uint256" }
17705
+ ]
17706
+ },
17707
+ { name: "signature", internalType: "bytes", type: "bytes" }
17708
+ ],
17709
+ name: "permitSafeTransferBatch",
17710
+ outputs: [],
17711
+ stateMutability: "nonpayable"
17712
+ },
17713
+ {
17714
+ type: "function",
17715
+ inputs: [
17716
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
17717
+ { name: "quantity", internalType: "uint256", type: "uint256" },
17718
+ { name: "recipient", internalType: "address", type: "address" }
17719
+ ],
17720
+ name: "redeem",
17721
+ outputs: [
17722
+ {
17723
+ name: "",
17724
+ internalType: "struct Redemption",
17725
+ type: "tuple",
17726
+ components: [
17727
+ { name: "tokenAddress", internalType: "address", type: "address" },
17728
+ { name: "valueRedeemed", internalType: "uint256", type: "uint256" }
17729
+ ]
17730
+ }
17731
+ ],
17732
+ stateMutability: "nonpayable"
17733
+ },
17734
+ {
17735
+ type: "function",
17736
+ inputs: [
17737
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
17738
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
17739
+ { name: "recipient", internalType: "address", type: "address" }
17740
+ ],
17741
+ name: "redeemBatch",
17742
+ outputs: [
17743
+ {
17744
+ name: "redemptions",
17745
+ internalType: "struct Redemption[]",
17746
+ type: "tuple[]",
17747
+ components: [
17748
+ { name: "tokenAddress", internalType: "address", type: "address" },
17749
+ { name: "valueRedeemed", internalType: "uint256", type: "uint256" }
17750
+ ]
17751
+ }
17752
+ ],
17753
+ stateMutability: "nonpayable"
17754
+ },
17755
+ {
17756
+ type: "function",
17757
+ inputs: [
17758
+ { name: "from", internalType: "address", type: "address" },
17759
+ { name: "to", internalType: "address", type: "address" },
17760
+ { name: "ids", internalType: "uint256[]", type: "uint256[]" },
17761
+ { name: "values", internalType: "uint256[]", type: "uint256[]" },
17762
+ { name: "data", internalType: "bytes", type: "bytes" }
17763
+ ],
17764
+ name: "safeBatchTransferFrom",
17765
+ outputs: [],
17766
+ stateMutability: "nonpayable"
17767
+ },
17768
+ {
17769
+ type: "function",
17770
+ inputs: [
17771
+ { name: "from", internalType: "address", type: "address" },
17772
+ { name: "to", internalType: "address", type: "address" },
17773
+ { name: "id", internalType: "uint256", type: "uint256" },
17774
+ { name: "value", internalType: "uint256", type: "uint256" },
17775
+ { name: "data", internalType: "bytes", type: "bytes" }
17776
+ ],
17777
+ name: "safeTransferFrom",
17778
+ outputs: [],
17779
+ stateMutability: "nonpayable"
17780
+ },
17781
+ {
17782
+ type: "function",
17783
+ inputs: [
17784
+ { name: "operator", internalType: "address", type: "address" },
17785
+ { name: "approved", internalType: "bool", type: "bool" }
17786
+ ],
17787
+ name: "setApprovalForAll",
17788
+ outputs: [],
17789
+ stateMutability: "nonpayable"
17790
+ },
17791
+ {
17792
+ type: "function",
17793
+ inputs: [
17794
+ { name: "newAuthority", internalType: "address", type: "address" }
17795
+ ],
17796
+ name: "setAuthority",
17797
+ outputs: [],
17798
+ stateMutability: "nonpayable"
17799
+ },
17800
+ {
17801
+ type: "function",
17802
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
17803
+ name: "supportsInterface",
17804
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
17805
+ stateMutability: "view"
17806
+ },
17807
+ {
17808
+ type: "function",
17809
+ inputs: [],
17810
+ name: "symbol",
17811
+ outputs: [{ name: "", internalType: "string", type: "string" }],
17812
+ stateMutability: "pure"
17813
+ },
17814
+ {
17815
+ type: "function",
17816
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
17817
+ name: "tokenExists",
17818
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
17819
+ stateMutability: "view"
17820
+ },
17821
+ {
17822
+ type: "function",
17823
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
17824
+ name: "tokenPrice",
17825
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
17826
+ stateMutability: "view"
17827
+ },
17828
+ {
17829
+ type: "function",
17830
+ inputs: [
17831
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
17832
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
17833
+ { name: "call", internalType: "bytes", type: "bytes" }
17834
+ ],
17835
+ name: "transferBatchToManagerAndCall",
17836
+ outputs: [{ name: "callReturn", internalType: "bytes", type: "bytes" }],
17837
+ stateMutability: "payable"
17838
+ },
17839
+ {
17840
+ type: "function",
17841
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
17842
+ name: "uri",
17843
+ outputs: [{ name: "", internalType: "string", type: "string" }],
17844
+ stateMutability: "view"
17845
+ },
17846
+ {
17847
+ type: "event",
17848
+ anonymous: false,
17849
+ inputs: [
17850
+ {
17851
+ name: "account",
17852
+ internalType: "address",
17853
+ type: "address",
17854
+ indexed: true
17855
+ },
17856
+ {
17857
+ name: "operator",
17858
+ internalType: "address",
17859
+ type: "address",
17860
+ indexed: true
17861
+ },
17862
+ { name: "approved", internalType: "bool", type: "bool", indexed: false }
17863
+ ],
17864
+ name: "ApprovalForAll"
17865
+ },
17866
+ {
17867
+ type: "event",
17868
+ anonymous: false,
17869
+ inputs: [
17870
+ {
17871
+ name: "authority",
17872
+ internalType: "address",
17873
+ type: "address",
17874
+ indexed: false
17875
+ }
17876
+ ],
17877
+ name: "AuthorityUpdated"
17878
+ },
17879
+ { type: "event", anonymous: false, inputs: [], name: "ContractURIUpdated" },
17880
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
17881
+ {
17882
+ type: "event",
17883
+ anonymous: false,
17884
+ inputs: [
17885
+ {
17886
+ name: "tokenId",
17887
+ internalType: "uint256",
17888
+ type: "uint256",
17889
+ indexed: true
17890
+ },
17891
+ {
17892
+ name: "price",
17893
+ internalType: "uint256",
17894
+ type: "uint256",
17895
+ indexed: true
17896
+ },
17897
+ {
17898
+ name: "tokenAddress",
17899
+ internalType: "address",
17900
+ type: "address",
17901
+ indexed: true
17902
+ }
17903
+ ],
17904
+ name: "TokenCreated"
17905
+ },
17906
+ {
17907
+ type: "event",
17908
+ anonymous: false,
17909
+ inputs: [
17910
+ {
17911
+ name: "operator",
17912
+ internalType: "address",
17913
+ type: "address",
17914
+ indexed: true
17915
+ },
17916
+ { name: "from", internalType: "address", type: "address", indexed: true },
17917
+ { name: "to", internalType: "address", type: "address", indexed: true },
17918
+ {
17919
+ name: "ids",
17920
+ internalType: "uint256[]",
17921
+ type: "uint256[]",
17922
+ indexed: false
17923
+ },
17924
+ {
17925
+ name: "values",
17926
+ internalType: "uint256[]",
17927
+ type: "uint256[]",
17928
+ indexed: false
17929
+ }
17930
+ ],
17931
+ name: "TransferBatch"
17932
+ },
17933
+ {
17934
+ type: "event",
17935
+ anonymous: false,
17936
+ inputs: [
17937
+ {
17938
+ name: "operator",
17939
+ internalType: "address",
17940
+ type: "address",
17941
+ indexed: true
17942
+ },
17943
+ { name: "from", internalType: "address", type: "address", indexed: true },
17944
+ { name: "to", internalType: "address", type: "address", indexed: true },
17945
+ { name: "id", internalType: "uint256", type: "uint256", indexed: false },
17946
+ {
17947
+ name: "value",
17948
+ internalType: "uint256",
17949
+ type: "uint256",
17950
+ indexed: false
17951
+ }
17952
+ ],
17953
+ name: "TransferSingle"
17954
+ },
17955
+ {
17956
+ type: "event",
17957
+ anonymous: false,
17958
+ inputs: [
17959
+ { name: "value", internalType: "string", type: "string", indexed: false },
17960
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true }
17961
+ ],
17962
+ name: "URI"
17963
+ },
17964
+ {
17965
+ type: "event",
17966
+ anonymous: false,
17967
+ inputs: [
17968
+ {
17969
+ name: "contractURI",
17970
+ internalType: "string",
17971
+ type: "string",
17972
+ indexed: false
17973
+ },
17974
+ {
17975
+ name: "baseURI",
17976
+ internalType: "string",
17977
+ type: "string",
17978
+ indexed: false
17979
+ }
17980
+ ],
17981
+ name: "URIsUpdated"
17982
+ },
17983
+ {
17984
+ type: "error",
17985
+ inputs: [{ name: "authority", internalType: "address", type: "address" }],
17986
+ name: "AccessManagedInvalidAuthority"
17987
+ },
17988
+ {
17989
+ type: "error",
17990
+ inputs: [
17991
+ { name: "caller", internalType: "address", type: "address" },
17992
+ { name: "delay", internalType: "uint32", type: "uint32" }
17993
+ ],
17994
+ name: "AccessManagedRequiredDelay"
17995
+ },
17996
+ {
17997
+ type: "error",
17998
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
17999
+ name: "AccessManagedUnauthorized"
18000
+ },
18001
+ {
18002
+ type: "error",
18003
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
18004
+ name: "AddressEmptyCode"
18005
+ },
18006
+ {
18007
+ type: "error",
18008
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
18009
+ name: "AddressInsufficientBalance"
18010
+ },
18011
+ {
18012
+ type: "error",
18013
+ inputs: [
18014
+ { name: "lengthA", internalType: "uint256", type: "uint256" },
18015
+ { name: "lengthB", internalType: "uint256", type: "uint256" }
18016
+ ],
18017
+ name: "ArrayLengthMismatch"
18018
+ },
18019
+ {
18020
+ type: "error",
18021
+ inputs: [{ name: "returnData", internalType: "bytes", type: "bytes" }],
18022
+ name: "CallFailed"
18023
+ },
18024
+ {
18025
+ type: "error",
18026
+ inputs: [
18027
+ { name: "sender", internalType: "address", type: "address" },
18028
+ { name: "balance", internalType: "uint256", type: "uint256" },
18029
+ { name: "needed", internalType: "uint256", type: "uint256" },
18030
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
18031
+ ],
18032
+ name: "ERC1155InsufficientBalance"
18033
+ },
18034
+ {
18035
+ type: "error",
18036
+ inputs: [{ name: "approver", internalType: "address", type: "address" }],
18037
+ name: "ERC1155InvalidApprover"
18038
+ },
18039
+ {
18040
+ type: "error",
18041
+ inputs: [
18042
+ { name: "idsLength", internalType: "uint256", type: "uint256" },
18043
+ { name: "valuesLength", internalType: "uint256", type: "uint256" }
18044
+ ],
18045
+ name: "ERC1155InvalidArrayLength"
18046
+ },
18047
+ {
18048
+ type: "error",
18049
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
18050
+ name: "ERC1155InvalidOperator"
18051
+ },
18052
+ {
18053
+ type: "error",
18054
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
18055
+ name: "ERC1155InvalidReceiver"
18056
+ },
18057
+ {
18058
+ type: "error",
18059
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
18060
+ name: "ERC1155InvalidSender"
18061
+ },
18062
+ {
18063
+ type: "error",
18064
+ inputs: [
18065
+ { name: "operator", internalType: "address", type: "address" },
18066
+ { name: "owner", internalType: "address", type: "address" }
18067
+ ],
18068
+ name: "ERC1155MissingApprovalForAll"
18069
+ },
18070
+ { type: "error", inputs: [], name: "ERC20TransferSlippage" },
18071
+ {
18072
+ type: "error",
18073
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
18074
+ name: "ERC2612ExpiredSignature"
18075
+ },
18076
+ { type: "error", inputs: [], name: "ETHTransferFailed" },
18077
+ { type: "error", inputs: [], name: "FailedInnerCall" },
18078
+ { type: "error", inputs: [], name: "IncorrectAmountSent" },
18079
+ {
18080
+ type: "error",
18081
+ inputs: [
18082
+ { name: "account", internalType: "address", type: "address" },
18083
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
18084
+ ],
18085
+ name: "InvalidAccountNonce"
18086
+ },
18087
+ { type: "error", inputs: [], name: "InvalidRecipient" },
18088
+ { type: "error", inputs: [], name: "InvalidShortString" },
18089
+ { type: "error", inputs: [], name: "InvalidSignature" },
18090
+ { type: "error", inputs: [], name: "InvalidTokenPrice" },
18091
+ { type: "error", inputs: [], name: "NoUriForNonexistentToken" },
18092
+ {
18093
+ type: "error",
18094
+ inputs: [{ name: "handler", internalType: "address", type: "address" }],
18095
+ name: "NotARedeemHandler"
18096
+ },
18097
+ {
18098
+ type: "error",
18099
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
18100
+ name: "SafeERC20FailedOperation"
18101
+ },
18102
+ {
18103
+ type: "error",
18104
+ inputs: [{ name: "str", internalType: "string", type: "string" }],
18105
+ name: "StringTooLong"
18106
+ },
18107
+ { type: "error", inputs: [], name: "TokenAlreadyCreated" },
18108
+ { type: "error", inputs: [], name: "TokenDoesNotExist" },
18109
+ {
18110
+ type: "error",
18111
+ inputs: [
18112
+ { name: "storedTokenAddress", internalType: "address", type: "address" },
18113
+ {
18114
+ name: "expectedTokenAddress",
18115
+ internalType: "address",
18116
+ type: "address"
18117
+ }
18118
+ ],
18119
+ name: "TokenMismatch"
18120
+ },
18121
+ { type: "error", inputs: [], name: "TokenNotMintable" }
18122
+ ];
18123
+ var zoraMints1155Address = {
18124
+ 7777777: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
18125
+ 999999999: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073"
18126
+ };
18127
+ var zoraMints1155Config = {
18128
+ address: zoraMints1155Address,
18129
+ abi: zoraMints1155ABI
18130
+ };
18131
+ var zoraMintsManagerImplABI = [
18132
+ {
18133
+ type: "constructor",
18134
+ inputs: [
18135
+ {
18136
+ name: "_premintExecutor",
18137
+ internalType: "contract IZoraCreator1155PremintExecutorAllVersions",
18138
+ type: "address"
18139
+ }
18140
+ ],
18141
+ stateMutability: "nonpayable"
18142
+ },
18143
+ {
18144
+ type: "function",
18145
+ inputs: [],
18146
+ name: "UPGRADE_INTERFACE_VERSION",
18147
+ outputs: [{ name: "", internalType: "string", type: "string" }],
18148
+ stateMutability: "view"
18149
+ },
18150
+ {
18151
+ type: "function",
18152
+ inputs: [],
18153
+ name: "acceptOwnership",
18154
+ outputs: [],
18155
+ stateMutability: "nonpayable"
18156
+ },
18157
+ {
18158
+ type: "function",
18159
+ inputs: [
18160
+ { name: "callFrom", internalType: "address", type: "address" },
18161
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
18162
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
18163
+ { name: "call", internalType: "bytes", type: "bytes" }
18164
+ ],
18165
+ name: "callWithTransferTokens",
18166
+ outputs: [
18167
+ { name: "success", internalType: "bool", type: "bool" },
18168
+ { name: "result", internalType: "bytes", type: "bytes" }
18169
+ ],
18170
+ stateMutability: "payable"
18171
+ },
18172
+ {
18173
+ type: "function",
18174
+ inputs: [
18175
+ { name: "caller", internalType: "address", type: "address" },
18176
+ { name: "", internalType: "address", type: "address" },
18177
+ { name: "", internalType: "bytes4", type: "bytes4" }
18178
+ ],
18179
+ name: "canCall",
18180
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
18181
+ stateMutability: "view"
18182
+ },
18183
+ {
18184
+ type: "function",
18185
+ inputs: [
18186
+ {
18187
+ name: "zoraCreator1155Contract",
18188
+ internalType: "contract IMintWithSparks",
18189
+ type: "address"
18190
+ },
18191
+ { name: "minter", internalType: "contract IMinter1155", type: "address" },
18192
+ {
18193
+ name: "zoraCreator1155TokenId",
18194
+ internalType: "uint256",
18195
+ type: "uint256"
18196
+ },
18197
+ {
18198
+ name: "collectMintArguments",
18199
+ internalType: "struct ICollectWithZoraSparks.CollectMintArguments",
18200
+ type: "tuple",
18201
+ components: [
18202
+ {
18203
+ name: "mintRewardsRecipients",
18204
+ internalType: "address[]",
18205
+ type: "address[]"
18206
+ },
18207
+ { name: "minterArguments", internalType: "bytes", type: "bytes" },
18208
+ { name: "mintComment", internalType: "string", type: "string" }
18209
+ ]
18210
+ }
18211
+ ],
18212
+ name: "collect",
18213
+ outputs: [],
18214
+ stateMutability: "payable"
18215
+ },
18216
+ {
18217
+ type: "function",
18218
+ inputs: [
18219
+ {
18220
+ name: "contractConfig",
18221
+ internalType: "struct ContractWithAdditionalAdminsCreationConfig",
18222
+ type: "tuple",
18223
+ components: [
18224
+ { name: "contractAdmin", internalType: "address", type: "address" },
18225
+ { name: "contractURI", internalType: "string", type: "string" },
18226
+ { name: "contractName", internalType: "string", type: "string" },
18227
+ {
18228
+ name: "additionalAdmins",
18229
+ internalType: "address[]",
18230
+ type: "address[]"
18231
+ }
18232
+ ]
18233
+ },
18234
+ { name: "tokenContract", internalType: "address", type: "address" },
18235
+ {
18236
+ name: "premintConfig",
18237
+ internalType: "struct PremintConfigEncoded",
18238
+ type: "tuple",
18239
+ components: [
18240
+ { name: "uid", internalType: "uint32", type: "uint32" },
18241
+ { name: "version", internalType: "uint32", type: "uint32" },
18242
+ { name: "deleted", internalType: "bool", type: "bool" },
18243
+ { name: "tokenConfig", internalType: "bytes", type: "bytes" },
18244
+ {
18245
+ name: "premintConfigVersion",
18246
+ internalType: "bytes32",
18247
+ type: "bytes32"
18248
+ }
18249
+ ]
18250
+ },
18251
+ { name: "signature", internalType: "bytes", type: "bytes" },
18252
+ {
18253
+ name: "mintArguments",
18254
+ internalType: "struct MintArguments",
18255
+ type: "tuple",
18256
+ components: [
18257
+ { name: "mintRecipient", internalType: "address", type: "address" },
18258
+ { name: "mintComment", internalType: "string", type: "string" },
18259
+ {
18260
+ name: "mintRewardsRecipients",
18261
+ internalType: "address[]",
18262
+ type: "address[]"
18263
+ }
18264
+ ]
18265
+ },
18266
+ { name: "firstMinter", internalType: "address", type: "address" },
18267
+ { name: "signerContract", internalType: "address", type: "address" }
18268
+ ],
18269
+ name: "collectPremint",
18270
+ outputs: [
18271
+ {
18272
+ name: "result",
18273
+ internalType: "struct PremintResult",
18274
+ type: "tuple",
18275
+ components: [
18276
+ { name: "contractAddress", internalType: "address", type: "address" },
18277
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
18278
+ { name: "createdNewContract", internalType: "bool", type: "bool" }
18279
+ ]
18280
+ }
18281
+ ],
18282
+ stateMutability: "payable"
18283
+ },
18284
+ {
18285
+ type: "function",
18286
+ inputs: [
18287
+ {
18288
+ name: "contractConfig",
18289
+ internalType: "struct ContractCreationConfig",
18290
+ type: "tuple",
18291
+ components: [
18292
+ { name: "contractAdmin", internalType: "address", type: "address" },
18293
+ { name: "contractURI", internalType: "string", type: "string" },
18294
+ { name: "contractName", internalType: "string", type: "string" }
18295
+ ]
18296
+ },
18297
+ {
18298
+ name: "premintConfig",
18299
+ internalType: "struct PremintConfigV2",
18300
+ type: "tuple",
18301
+ components: [
18302
+ {
18303
+ name: "tokenConfig",
18304
+ internalType: "struct TokenCreationConfigV2",
18305
+ type: "tuple",
18306
+ components: [
18307
+ { name: "tokenURI", internalType: "string", type: "string" },
18308
+ { name: "maxSupply", internalType: "uint256", type: "uint256" },
18309
+ {
18310
+ name: "maxTokensPerAddress",
18311
+ internalType: "uint64",
18312
+ type: "uint64"
18313
+ },
18314
+ { name: "pricePerToken", internalType: "uint96", type: "uint96" },
18315
+ { name: "mintStart", internalType: "uint64", type: "uint64" },
18316
+ { name: "mintDuration", internalType: "uint64", type: "uint64" },
18317
+ { name: "royaltyBPS", internalType: "uint32", type: "uint32" },
18318
+ {
18319
+ name: "payoutRecipient",
18320
+ internalType: "address",
18321
+ type: "address"
18322
+ },
18323
+ {
18324
+ name: "fixedPriceMinter",
18325
+ internalType: "address",
18326
+ type: "address"
18327
+ },
18328
+ {
18329
+ name: "createReferral",
18330
+ internalType: "address",
18331
+ type: "address"
18332
+ }
18333
+ ]
18334
+ },
18335
+ { name: "uid", internalType: "uint32", type: "uint32" },
18336
+ { name: "version", internalType: "uint32", type: "uint32" },
18337
+ { name: "deleted", internalType: "bool", type: "bool" }
18338
+ ]
18339
+ },
18340
+ { name: "signature", internalType: "bytes", type: "bytes" },
18341
+ {
18342
+ name: "mintArguments",
18343
+ internalType: "struct MintArguments",
18344
+ type: "tuple",
18345
+ components: [
18346
+ { name: "mintRecipient", internalType: "address", type: "address" },
18347
+ { name: "mintComment", internalType: "string", type: "string" },
18348
+ {
18349
+ name: "mintRewardsRecipients",
18350
+ internalType: "address[]",
18351
+ type: "address[]"
18352
+ }
18353
+ ]
18354
+ },
18355
+ { name: "signerContract", internalType: "address", type: "address" }
18356
+ ],
18357
+ name: "collectPremintV2",
18358
+ outputs: [
18359
+ {
18360
+ name: "result",
18361
+ internalType: "struct PremintResult",
18362
+ type: "tuple",
18363
+ components: [
18364
+ { name: "contractAddress", internalType: "address", type: "address" },
18365
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
18366
+ { name: "createdNewContract", internalType: "bool", type: "bool" }
18367
+ ]
18368
+ }
18369
+ ],
18370
+ stateMutability: "payable"
18371
+ },
18372
+ {
18373
+ type: "function",
18374
+ inputs: [],
18375
+ name: "contractName",
18376
+ outputs: [{ name: "", internalType: "string", type: "string" }],
18377
+ stateMutability: "pure"
18378
+ },
18379
+ {
18380
+ type: "function",
18381
+ inputs: [],
18382
+ name: "contractURI",
18383
+ outputs: [{ name: "", internalType: "string", type: "string" }],
18384
+ stateMutability: "view"
18385
+ },
18386
+ {
18387
+ type: "function",
18388
+ inputs: [],
18389
+ name: "contractVersion",
18390
+ outputs: [{ name: "", internalType: "string", type: "string" }],
18391
+ stateMutability: "pure"
18392
+ },
18393
+ {
18394
+ type: "function",
18395
+ inputs: [
18396
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
18397
+ {
18398
+ name: "tokenConfig",
18399
+ internalType: "struct TokenConfig",
18400
+ type: "tuple",
18401
+ components: [
18402
+ { name: "price", internalType: "uint256", type: "uint256" },
18403
+ { name: "tokenAddress", internalType: "address", type: "address" },
18404
+ { name: "redeemHandler", internalType: "address", type: "address" }
18405
+ ]
18406
+ },
18407
+ { name: "defaultMintable", internalType: "bool", type: "bool" }
18408
+ ],
18409
+ name: "createToken",
18410
+ outputs: [],
18411
+ stateMutability: "nonpayable"
18412
+ },
18413
+ {
18414
+ type: "function",
18415
+ inputs: [{ name: "minterArguments", internalType: "bytes", type: "bytes" }],
18416
+ name: "decodeMintRecipientAndComment",
18417
+ outputs: [
18418
+ { name: "mintTo", internalType: "address", type: "address" },
18419
+ { name: "mintComment", internalType: "string", type: "string" }
18420
+ ],
18421
+ stateMutability: "pure"
18422
+ },
18423
+ {
18424
+ type: "function",
18425
+ inputs: [],
18426
+ name: "getEthPrice",
18427
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
18428
+ stateMutability: "view"
18429
+ },
18430
+ {
18431
+ type: "function",
18432
+ inputs: [],
18433
+ name: "implementation",
18434
+ outputs: [{ name: "", internalType: "address", type: "address" }],
18435
+ stateMutability: "view"
18436
+ },
18437
+ {
18438
+ type: "function",
18439
+ inputs: [
18440
+ { name: "defaultOwner", internalType: "address", type: "address" },
18441
+ { name: "zoraSparksSalt", internalType: "bytes32", type: "bytes32" },
18442
+ { name: "zoraSparksCreationCode", internalType: "bytes", type: "bytes" },
18443
+ { name: "initialEthTokenId", internalType: "uint256", type: "uint256" },
18444
+ {
18445
+ name: "initialEthTokenPrice",
18446
+ internalType: "uint256",
18447
+ type: "uint256"
18448
+ },
18449
+ { name: "newBaseURI", internalType: "string", type: "string" },
18450
+ { name: "newContractURI", internalType: "string", type: "string" }
18451
+ ],
18452
+ name: "initialize",
18453
+ outputs: [
18454
+ {
18455
+ name: "mints",
18456
+ internalType: "contract IZoraSparks1155",
18457
+ type: "address"
18458
+ }
18459
+ ],
18460
+ stateMutability: "nonpayable"
18461
+ },
18462
+ {
18463
+ type: "function",
18464
+ inputs: [
18465
+ { name: "tokenAddress", internalType: "address", type: "address" },
18466
+ { name: "quantity", internalType: "uint256", type: "uint256" },
18467
+ { name: "recipient", internalType: "address", type: "address" }
18468
+ ],
18469
+ name: "mintWithERC20",
18470
+ outputs: [
18471
+ { name: "mintableTokenId", internalType: "uint256", type: "uint256" }
18472
+ ],
18473
+ stateMutability: "nonpayable"
18474
+ },
18475
+ {
18476
+ type: "function",
18477
+ inputs: [
18478
+ { name: "quantity", internalType: "uint256", type: "uint256" },
18479
+ { name: "recipient", internalType: "address", type: "address" }
18480
+ ],
18481
+ name: "mintWithEth",
18482
+ outputs: [
18483
+ { name: "mintableTokenId", internalType: "uint256", type: "uint256" }
18484
+ ],
18485
+ stateMutability: "payable"
18486
+ },
18487
+ {
18488
+ type: "function",
18489
+ inputs: [],
18490
+ name: "mintableEthToken",
18491
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
18492
+ stateMutability: "view"
18493
+ },
18494
+ {
18495
+ type: "function",
18496
+ inputs: [
18497
+ { name: "", internalType: "address", type: "address" },
18498
+ { name: "from", internalType: "address", type: "address" },
18499
+ { name: "ids", internalType: "uint256[]", type: "uint256[]" },
18500
+ { name: "values", internalType: "uint256[]", type: "uint256[]" },
18501
+ { name: "data", internalType: "bytes", type: "bytes" }
18502
+ ],
18503
+ name: "onERC1155BatchReceived",
18504
+ outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
18505
+ stateMutability: "nonpayable"
18506
+ },
18507
+ {
18508
+ type: "function",
18509
+ inputs: [
18510
+ { name: "", internalType: "address", type: "address" },
18511
+ { name: "from", internalType: "address", type: "address" },
18512
+ { name: "id", internalType: "uint256", type: "uint256" },
18513
+ { name: "value", internalType: "uint256", type: "uint256" },
18514
+ { name: "data", internalType: "bytes", type: "bytes" }
18515
+ ],
18516
+ name: "onERC1155Received",
18517
+ outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }],
18518
+ stateMutability: "nonpayable"
18519
+ },
18520
+ {
18521
+ type: "function",
18522
+ inputs: [],
18523
+ name: "owner",
18524
+ outputs: [{ name: "", internalType: "address", type: "address" }],
18525
+ stateMutability: "view"
18526
+ },
18527
+ {
18528
+ type: "function",
18529
+ inputs: [],
18530
+ name: "pendingOwner",
18531
+ outputs: [{ name: "", internalType: "address", type: "address" }],
18532
+ stateMutability: "view"
18533
+ },
18534
+ {
18535
+ type: "function",
18536
+ inputs: [],
18537
+ name: "proxiableUUID",
18538
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
18539
+ stateMutability: "view"
18540
+ },
18541
+ {
18542
+ type: "function",
18543
+ inputs: [],
18544
+ name: "renounceOwnership",
18545
+ outputs: [],
18546
+ stateMutability: "nonpayable"
18547
+ },
18548
+ {
18549
+ type: "function",
18550
+ inputs: [
18551
+ { name: "tokenAddress", internalType: "address", type: "address" },
18552
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
18553
+ ],
18554
+ name: "setDefaultMintable",
18555
+ outputs: [],
18556
+ stateMutability: "nonpayable"
18557
+ },
18558
+ {
18559
+ type: "function",
18560
+ inputs: [
18561
+ { name: "newContractURI", internalType: "string", type: "string" },
18562
+ { name: "newBaseURI", internalType: "string", type: "string" },
18563
+ {
18564
+ name: "tokenIdsToNotifyUpdate",
18565
+ internalType: "uint256[]",
18566
+ type: "uint256[]"
18567
+ }
18568
+ ],
18569
+ name: "setMetadataURIs",
18570
+ outputs: [],
18571
+ stateMutability: "nonpayable"
18572
+ },
18573
+ {
18574
+ type: "function",
18575
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
18576
+ name: "transferOwnership",
18577
+ outputs: [],
18578
+ stateMutability: "nonpayable"
18579
+ },
18580
+ {
18581
+ type: "function",
18582
+ inputs: [
18583
+ { name: "newImplementation", internalType: "address", type: "address" },
18584
+ { name: "data", internalType: "bytes", type: "bytes" }
18585
+ ],
18586
+ name: "upgradeToAndCall",
18587
+ outputs: [],
18588
+ stateMutability: "payable"
18589
+ },
18590
+ {
18591
+ type: "function",
18592
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
18593
+ name: "uri",
18594
+ outputs: [{ name: "", internalType: "string", type: "string" }],
18595
+ stateMutability: "view"
18596
+ },
18597
+ {
18598
+ type: "function",
18599
+ inputs: [],
18600
+ name: "zoraSparks1155",
18601
+ outputs: [
18602
+ { name: "", internalType: "contract IZoraSparks1155", type: "address" }
18603
+ ],
18604
+ stateMutability: "view"
18605
+ },
18606
+ {
18607
+ type: "event",
18608
+ anonymous: false,
18609
+ inputs: [
18610
+ {
18611
+ name: "tokenIds",
18612
+ internalType: "uint256[]",
18613
+ type: "uint256[]",
18614
+ indexed: true
18615
+ },
18616
+ {
18617
+ name: "quantities",
18618
+ internalType: "uint256[]",
18619
+ type: "uint256[]",
18620
+ indexed: false
18621
+ },
18622
+ {
18623
+ name: "zoraCreator1155Contract",
18624
+ internalType: "address",
18625
+ type: "address",
18626
+ indexed: true
18627
+ },
18628
+ {
18629
+ name: "zoraCreator1155TokenId",
18630
+ internalType: "uint256",
18631
+ type: "uint256",
18632
+ indexed: true
18633
+ }
18634
+ ],
18635
+ name: "Collected"
18636
+ },
18637
+ {
18638
+ type: "event",
18639
+ anonymous: false,
18640
+ inputs: [
18641
+ {
18642
+ name: "tokenAddress",
18643
+ internalType: "address",
18644
+ type: "address",
18645
+ indexed: false
18646
+ },
18647
+ {
18648
+ name: "tokenId",
18649
+ internalType: "uint256",
18650
+ type: "uint256",
18651
+ indexed: false
18652
+ }
18653
+ ],
18654
+ name: "DefaultMintableTokenSet"
18655
+ },
18656
+ {
18657
+ type: "event",
18658
+ anonymous: false,
18659
+ inputs: [
18660
+ {
18661
+ name: "version",
18662
+ internalType: "uint64",
18663
+ type: "uint64",
18664
+ indexed: false
18665
+ }
18666
+ ],
18667
+ name: "Initialized"
18668
+ },
18669
+ {
18670
+ type: "event",
18671
+ anonymous: false,
18672
+ inputs: [
18673
+ {
18674
+ name: "sender",
18675
+ internalType: "address",
18676
+ type: "address",
18677
+ indexed: true
18678
+ },
18679
+ {
18680
+ name: "tokenContract",
18681
+ internalType: "address",
18682
+ type: "address",
18683
+ indexed: true
18684
+ },
18685
+ {
18686
+ name: "tokenId",
18687
+ internalType: "uint256",
18688
+ type: "uint256",
18689
+ indexed: true
18690
+ },
18691
+ {
18692
+ name: "quantity",
18693
+ internalType: "uint256",
18694
+ type: "uint256",
18695
+ indexed: false
18696
+ },
18697
+ {
18698
+ name: "comment",
18699
+ internalType: "string",
18700
+ type: "string",
18701
+ indexed: false
18702
+ }
18703
+ ],
18704
+ name: "MintComment"
18705
+ },
18706
+ {
18707
+ type: "event",
18708
+ anonymous: false,
18709
+ inputs: [
18710
+ {
18711
+ name: "previousOwner",
18712
+ internalType: "address",
18713
+ type: "address",
18714
+ indexed: true
18715
+ },
18716
+ {
18717
+ name: "newOwner",
18718
+ internalType: "address",
18719
+ type: "address",
18720
+ indexed: true
18721
+ }
18722
+ ],
18723
+ name: "OwnershipTransferStarted"
18724
+ },
18725
+ {
18726
+ type: "event",
18727
+ anonymous: false,
18728
+ inputs: [
18729
+ {
18730
+ name: "previousOwner",
18731
+ internalType: "address",
18732
+ type: "address",
18733
+ indexed: true
18734
+ },
18735
+ {
18736
+ name: "newOwner",
18737
+ internalType: "address",
18738
+ type: "address",
18739
+ indexed: true
18740
+ }
18741
+ ],
18742
+ name: "OwnershipTransferred"
18743
+ },
18744
+ {
18745
+ type: "event",
18746
+ anonymous: false,
18747
+ inputs: [
18748
+ {
18749
+ name: "contractURI",
18750
+ internalType: "string",
18751
+ type: "string",
18752
+ indexed: false
18753
+ },
18754
+ {
18755
+ name: "baseURI",
18756
+ internalType: "string",
18757
+ type: "string",
18758
+ indexed: false
18759
+ }
18760
+ ],
18761
+ name: "URIsUpdated"
18762
+ },
18763
+ {
18764
+ type: "event",
18765
+ anonymous: false,
18766
+ inputs: [
18767
+ {
18768
+ name: "implementation",
18769
+ internalType: "address",
18770
+ type: "address",
18771
+ indexed: true
18772
+ }
18773
+ ],
18774
+ name: "Upgraded"
18775
+ },
18776
+ {
18777
+ type: "error",
18778
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
18779
+ name: "AddressEmptyCode"
18780
+ },
18781
+ {
18782
+ type: "error",
18783
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
18784
+ name: "AddressInsufficientBalance"
18785
+ },
18786
+ {
18787
+ type: "error",
18788
+ inputs: [
18789
+ { name: "lengthA", internalType: "uint256", type: "uint256" },
18790
+ { name: "lengthB", internalType: "uint256", type: "uint256" }
18791
+ ],
18792
+ name: "ArrayLengthMismatch"
18793
+ },
18794
+ {
18795
+ type: "error",
18796
+ inputs: [
18797
+ { name: "operator", internalType: "address", type: "address" },
18798
+ { name: "user", internalType: "address", type: "address" }
18799
+ ],
18800
+ name: "Burn_NotOwnerOrApproved"
18801
+ },
18802
+ {
18803
+ type: "error",
18804
+ inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
18805
+ name: "CallFailed"
18806
+ },
18807
+ { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
18808
+ { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
18809
+ {
18810
+ type: "error",
18811
+ inputs: [
18812
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
18813
+ { name: "quantity", internalType: "uint256", type: "uint256" },
18814
+ { name: "totalMinted", internalType: "uint256", type: "uint256" },
18815
+ { name: "maxSupply", internalType: "uint256", type: "uint256" }
18816
+ ],
18817
+ name: "CannotMintMoreTokens"
18818
+ },
18819
+ {
18820
+ type: "error",
18821
+ inputs: [
18822
+ { name: "proposedAddress", internalType: "address", type: "address" }
18823
+ ],
18824
+ name: "Config_TransferHookNotSupported"
18825
+ },
18826
+ { type: "error", inputs: [], name: "Create2EmptyBytecode" },
18827
+ { type: "error", inputs: [], name: "Create2FailedDeployment" },
18828
+ {
18829
+ type: "error",
18830
+ inputs: [
18831
+ { name: "balance", internalType: "uint256", type: "uint256" },
18832
+ { name: "needed", internalType: "uint256", type: "uint256" }
18833
+ ],
18834
+ name: "Create2InsufficientBalance"
18835
+ },
18836
+ { type: "error", inputs: [], name: "DefaultOwnerCannotBeZero" },
18837
+ { type: "error", inputs: [], name: "ERC1155BatchReceivedCallFailed" },
18838
+ { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
18839
+ {
18840
+ type: "error",
18841
+ inputs: [
18842
+ { name: "implementation", internalType: "address", type: "address" }
18843
+ ],
18844
+ name: "ERC1967InvalidImplementation"
18845
+ },
18846
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
18847
+ { type: "error", inputs: [], name: "ERC20TransferSlippage" },
18848
+ { type: "error", inputs: [], name: "ETHTransferFailed" },
18849
+ {
18850
+ type: "error",
18851
+ inputs: [
18852
+ { name: "recipient", internalType: "address", type: "address" },
18853
+ { name: "amount", internalType: "uint256", type: "uint256" }
18854
+ ],
18855
+ name: "ETHWithdrawFailed"
18856
+ },
18857
+ { type: "error", inputs: [], name: "FailedInnerCall" },
18858
+ { type: "error", inputs: [], name: "FirstMinterAddressZero" },
18859
+ {
18860
+ type: "error",
18861
+ inputs: [
18862
+ { name: "amount", internalType: "uint256", type: "uint256" },
18863
+ { name: "contractValue", internalType: "uint256", type: "uint256" }
18864
+ ],
18865
+ name: "FundsWithdrawInsolvent"
18866
+ },
18867
+ { type: "error", inputs: [], name: "IncorrectAmountSent" },
18868
+ { type: "error", inputs: [], name: "InvalidAdminAction" },
18869
+ { type: "error", inputs: [], name: "InvalidInitialization" },
18870
+ {
18871
+ type: "error",
18872
+ inputs: [
18873
+ { name: "mintTo", internalType: "address", type: "address" },
18874
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
18875
+ { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
18876
+ ],
18877
+ name: "InvalidMerkleProof"
18878
+ },
18879
+ { type: "error", inputs: [], name: "InvalidMintSchedule" },
18880
+ { type: "error", inputs: [], name: "InvalidOwnerForAssociatedZoraSparks" },
18881
+ { type: "error", inputs: [], name: "InvalidPremintVersion" },
18882
+ { type: "error", inputs: [], name: "InvalidRecipient" },
18883
+ { type: "error", inputs: [], name: "InvalidSignature" },
18884
+ { type: "error", inputs: [], name: "InvalidSignatureVersion" },
18885
+ {
18886
+ type: "error",
18887
+ inputs: [{ name: "magicValue", internalType: "bytes4", type: "bytes4" }],
18888
+ name: "InvalidSigner"
18889
+ },
18890
+ { type: "error", inputs: [], name: "InvalidTokenPrice" },
18891
+ { type: "error", inputs: [], name: "MintNotYetStarted" },
18892
+ { type: "error", inputs: [], name: "MintWithSparksNotSupportedOnContract" },
18893
+ { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
18894
+ { type: "error", inputs: [], name: "Mint_InvalidMintArrayLength" },
18895
+ { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
18896
+ { type: "error", inputs: [], name: "Mint_UnknownCommand" },
18897
+ { type: "error", inputs: [], name: "Mint_ValueTransferFail" },
18898
+ { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
18899
+ { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
18900
+ { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
18901
+ { type: "error", inputs: [], name: "NoTokensTransferred" },
18902
+ { type: "error", inputs: [], name: "NoUriForNonexistentToken" },
18903
+ { type: "error", inputs: [], name: "NonEthRedemption" },
18904
+ {
18905
+ type: "error",
18906
+ inputs: [{ name: "handler", internalType: "address", type: "address" }],
18907
+ name: "NotARedeemHandler"
18908
+ },
18909
+ { type: "error", inputs: [], name: "NotInitializing" },
18910
+ { type: "error", inputs: [], name: "NotSelfCall" },
18911
+ { type: "error", inputs: [], name: "NotZoraSparks1155" },
18912
+ { type: "error", inputs: [], name: "OnlyTransfersFromZoraSparks" },
18913
+ {
18914
+ type: "error",
18915
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
18916
+ name: "OwnableInvalidOwner"
18917
+ },
18918
+ {
18919
+ type: "error",
18920
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
18921
+ name: "OwnableUnauthorizedAccount"
18922
+ },
18923
+ { type: "error", inputs: [], name: "PremintDeleted" },
18924
+ { type: "error", inputs: [], name: "PremintExecutorCannotBeZero" },
18925
+ {
18926
+ type: "error",
18927
+ inputs: [
18928
+ { name: "caller", internalType: "address", type: "address" },
18929
+ { name: "recipient", internalType: "address", type: "address" },
18930
+ { name: "amount", internalType: "uint256", type: "uint256" }
18931
+ ],
18932
+ name: "ProtocolRewardsWithdrawFailed"
18933
+ },
18934
+ { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
18935
+ { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
18936
+ {
18937
+ type: "error",
18938
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
18939
+ name: "SafeERC20FailedOperation"
18940
+ },
18941
+ { type: "error", inputs: [], name: "SaleEnded" },
18942
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
18943
+ {
18944
+ type: "error",
18945
+ inputs: [
18946
+ { name: "targetContract", internalType: "address", type: "address" }
18947
+ ],
18948
+ name: "Sale_CannotCallNonSalesContract"
18949
+ },
18950
+ { type: "error", inputs: [], name: "TokenAlreadyCreated" },
18951
+ { type: "error", inputs: [], name: "TokenDoesNotExist" },
18952
+ {
18953
+ type: "error",
18954
+ inputs: [
18955
+ { name: "expected", internalType: "uint256", type: "uint256" },
18956
+ { name: "actual", internalType: "uint256", type: "uint256" }
18957
+ ],
18958
+ name: "TokenIdMismatch"
18959
+ },
18960
+ {
18961
+ type: "error",
18962
+ inputs: [
18963
+ { name: "storedTokenAddress", internalType: "address", type: "address" },
18964
+ {
18965
+ name: "expectedTokenAddress",
18966
+ internalType: "address",
18967
+ type: "address"
18968
+ }
18969
+ ],
18970
+ name: "TokenMismatch"
18971
+ },
18972
+ { type: "error", inputs: [], name: "TokenNotMintable" },
18973
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
18974
+ {
18975
+ type: "error",
18976
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
18977
+ name: "UUPSUnsupportedProxiableUUID"
18978
+ },
18979
+ {
18980
+ type: "error",
18981
+ inputs: [{ name: "selector", internalType: "bytes4", type: "bytes4" }],
18982
+ name: "UnknownUserAction"
18983
+ },
18984
+ {
18985
+ type: "error",
18986
+ inputs: [
18987
+ { name: "expected", internalType: "string", type: "string" },
18988
+ { name: "actual", internalType: "string", type: "string" }
18989
+ ],
18990
+ name: "UpgradeToMismatchedContractName"
18991
+ },
18992
+ {
18993
+ type: "error",
18994
+ inputs: [
18995
+ { name: "user", internalType: "address", type: "address" },
18996
+ { name: "limit", internalType: "uint256", type: "uint256" },
18997
+ { name: "requestedAmount", internalType: "uint256", type: "uint256" }
18998
+ ],
18999
+ name: "UserExceedsMintLimit"
19000
+ },
19001
+ {
19002
+ type: "error",
19003
+ inputs: [
19004
+ { name: "user", internalType: "address", type: "address" },
19005
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
19006
+ { name: "role", internalType: "uint256", type: "uint256" }
19007
+ ],
19008
+ name: "UserMissingRoleForToken"
19009
+ },
19010
+ { type: "error", inputs: [], name: "WrongValueSent" },
19011
+ {
19012
+ type: "error",
19013
+ inputs: [],
19014
+ name: "premintSignerContractFailedToRecoverSigner"
19015
+ },
19016
+ { type: "error", inputs: [], name: "premintSignerContractNotAContract" }
19017
+ ];
19018
+ var zoraMintsManagerImplAddress = {
19019
+ 7777777: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
19020
+ 999999999: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B"
19021
+ };
19022
+ var zoraMintsManagerImplConfig = {
19023
+ address: zoraMintsManagerImplAddress,
19024
+ abi: zoraMintsManagerImplABI
19025
+ };
19026
+ var zoraRouterABI = [
19027
+ {
19028
+ type: "constructor",
19029
+ inputs: [
19030
+ {
19031
+ name: "poolManager_",
19032
+ internalType: "contract IPoolManager",
19033
+ type: "address"
19034
+ },
19035
+ {
19036
+ name: "zoraLimitOrderBook_",
19037
+ internalType: "contract IZoraLimitOrderBook",
19038
+ type: "address"
19039
+ },
19040
+ {
19041
+ name: "swapRouter_",
19042
+ internalType: "contract ISwapRouter",
19043
+ type: "address"
19044
+ },
19045
+ { name: "permit2_", internalType: "address", type: "address" }
19046
+ ],
19047
+ stateMutability: "nonpayable"
17712
19048
  },
19049
+ { type: "receive", stateMutability: "payable" },
17713
19050
  {
17714
19051
  type: "function",
17715
19052
  inputs: [],
17716
- name: "pendingOwner",
17717
- outputs: [{ name: "", internalType: "address", type: "address" }],
19053
+ name: "getLimitOrderConfig",
19054
+ outputs: [
19055
+ {
19056
+ name: "",
19057
+ internalType: "struct LimitOrderConfig",
19058
+ type: "tuple",
19059
+ components: [
19060
+ { name: "multiples", internalType: "uint256[]", type: "uint256[]" },
19061
+ { name: "percentages", internalType: "uint256[]", type: "uint256[]" }
19062
+ ]
19063
+ }
19064
+ ],
17718
19065
  stateMutability: "view"
17719
19066
  },
17720
19067
  {
17721
19068
  type: "function",
17722
19069
  inputs: [],
17723
- name: "proxiableUUID",
17724
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
19070
+ name: "msgSender",
19071
+ outputs: [{ name: "", internalType: "address", type: "address" }],
17725
19072
  stateMutability: "view"
17726
19073
  },
17727
19074
  {
17728
19075
  type: "function",
17729
19076
  inputs: [],
17730
- name: "renounceOwnership",
17731
- outputs: [],
17732
- stateMutability: "nonpayable"
17733
- },
17734
- {
17735
- type: "function",
17736
- inputs: [
17737
- { name: "tokenAddress", internalType: "address", type: "address" },
17738
- { name: "tokenId", internalType: "uint256", type: "uint256" }
19077
+ name: "poolManager",
19078
+ outputs: [
19079
+ { name: "", internalType: "contract IPoolManager", type: "address" }
17739
19080
  ],
17740
- name: "setDefaultMintable",
17741
- outputs: [],
17742
- stateMutability: "nonpayable"
19081
+ stateMutability: "view"
17743
19082
  },
17744
19083
  {
17745
19084
  type: "function",
17746
19085
  inputs: [
17747
- { name: "newContractURI", internalType: "string", type: "string" },
17748
- { name: "newBaseURI", internalType: "string", type: "string" },
17749
19086
  {
17750
- name: "tokenIdsToNotifyUpdate",
17751
- internalType: "uint256[]",
17752
- type: "uint256[]"
19087
+ name: "config",
19088
+ internalType: "struct LimitOrderConfig",
19089
+ type: "tuple",
19090
+ components: [
19091
+ { name: "multiples", internalType: "uint256[]", type: "uint256[]" },
19092
+ { name: "percentages", internalType: "uint256[]", type: "uint256[]" }
19093
+ ]
17753
19094
  }
17754
19095
  ],
17755
- name: "setMetadataURIs",
19096
+ name: "setLimitOrderConfig",
17756
19097
  outputs: [],
17757
19098
  stateMutability: "nonpayable"
17758
19099
  },
17759
19100
  {
17760
19101
  type: "function",
17761
- inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
17762
- name: "transferOwnership",
17763
- outputs: [],
17764
- stateMutability: "nonpayable"
19102
+ inputs: [],
19103
+ name: "swapRouter",
19104
+ outputs: [
19105
+ { name: "", internalType: "contract ISwapRouter", type: "address" }
19106
+ ],
19107
+ stateMutability: "view"
17765
19108
  },
17766
19109
  {
17767
19110
  type: "function",
17768
19111
  inputs: [
17769
- { name: "newImplementation", internalType: "address", type: "address" },
17770
- { name: "data", internalType: "bytes", type: "bytes" }
19112
+ {
19113
+ name: "params",
19114
+ internalType: "struct SwapWithLimitOrders.SwapWithLimitOrdersParams",
19115
+ type: "tuple",
19116
+ components: [
19117
+ { name: "recipient", internalType: "address", type: "address" },
19118
+ {
19119
+ name: "limitOrderConfig",
19120
+ internalType: "struct LimitOrderConfig",
19121
+ type: "tuple",
19122
+ components: [
19123
+ {
19124
+ name: "multiples",
19125
+ internalType: "uint256[]",
19126
+ type: "uint256[]"
19127
+ },
19128
+ {
19129
+ name: "percentages",
19130
+ internalType: "uint256[]",
19131
+ type: "uint256[]"
19132
+ }
19133
+ ]
19134
+ },
19135
+ { name: "inputCurrency", internalType: "address", type: "address" },
19136
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
19137
+ { name: "v3Route", internalType: "bytes", type: "bytes" },
19138
+ {
19139
+ name: "v4Route",
19140
+ internalType: "struct PoolKey[]",
19141
+ type: "tuple[]",
19142
+ components: [
19143
+ { name: "currency0", internalType: "Currency", type: "address" },
19144
+ { name: "currency1", internalType: "Currency", type: "address" },
19145
+ { name: "fee", internalType: "uint24", type: "uint24" },
19146
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
19147
+ {
19148
+ name: "hooks",
19149
+ internalType: "contract IHooks",
19150
+ type: "address"
19151
+ }
19152
+ ]
19153
+ },
19154
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
19155
+ ]
19156
+ }
17771
19157
  ],
17772
- name: "upgradeToAndCall",
17773
- outputs: [],
19158
+ name: "swapWithLimitOrders",
19159
+ outputs: [{ name: "delta", internalType: "BalanceDelta", type: "int256" }],
17774
19160
  stateMutability: "payable"
17775
19161
  },
17776
19162
  {
17777
19163
  type: "function",
17778
- inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
17779
- name: "uri",
17780
- outputs: [{ name: "", internalType: "string", type: "string" }],
17781
- stateMutability: "view"
19164
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
19165
+ name: "unlockCallback",
19166
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
19167
+ stateMutability: "nonpayable"
17782
19168
  },
17783
19169
  {
17784
19170
  type: "function",
17785
19171
  inputs: [],
17786
- name: "zoraSparks1155",
19172
+ name: "zoraLimitOrderBook",
17787
19173
  outputs: [
17788
- { name: "", internalType: "contract IZoraSparks1155", type: "address" }
19174
+ {
19175
+ name: "",
19176
+ internalType: "contract IZoraLimitOrderBook",
19177
+ type: "address"
19178
+ }
17789
19179
  ],
17790
19180
  stateMutability: "view"
17791
19181
  },
@@ -17794,63 +19184,19 @@ var zoraMintsManagerImplABI = [
17794
19184
  anonymous: false,
17795
19185
  inputs: [
17796
19186
  {
17797
- name: "tokenIds",
19187
+ name: "multiples",
17798
19188
  internalType: "uint256[]",
17799
19189
  type: "uint256[]",
17800
- indexed: true
19190
+ indexed: false
17801
19191
  },
17802
19192
  {
17803
- name: "quantities",
19193
+ name: "percentages",
17804
19194
  internalType: "uint256[]",
17805
19195
  type: "uint256[]",
17806
19196
  indexed: false
17807
- },
17808
- {
17809
- name: "zoraCreator1155Contract",
17810
- internalType: "address",
17811
- type: "address",
17812
- indexed: true
17813
- },
17814
- {
17815
- name: "zoraCreator1155TokenId",
17816
- internalType: "uint256",
17817
- type: "uint256",
17818
- indexed: true
17819
- }
17820
- ],
17821
- name: "Collected"
17822
- },
17823
- {
17824
- type: "event",
17825
- anonymous: false,
17826
- inputs: [
17827
- {
17828
- name: "tokenAddress",
17829
- internalType: "address",
17830
- type: "address",
17831
- indexed: false
17832
- },
17833
- {
17834
- name: "tokenId",
17835
- internalType: "uint256",
17836
- type: "uint256",
17837
- indexed: false
17838
- }
17839
- ],
17840
- name: "DefaultMintableTokenSet"
17841
- },
17842
- {
17843
- type: "event",
17844
- anonymous: false,
17845
- inputs: [
17846
- {
17847
- name: "version",
17848
- internalType: "uint64",
17849
- type: "uint64",
17850
- indexed: false
17851
19197
  }
17852
19198
  ],
17853
- name: "Initialized"
19199
+ name: "LimitOrderConfigUpdated"
17854
19200
  },
17855
19201
  {
17856
19202
  type: "event",
@@ -17863,351 +19209,338 @@ var zoraMintsManagerImplABI = [
17863
19209
  indexed: true
17864
19210
  },
17865
19211
  {
17866
- name: "tokenContract",
19212
+ name: "recipient",
17867
19213
  internalType: "address",
17868
19214
  type: "address",
17869
19215
  indexed: true
17870
19216
  },
17871
19217
  {
17872
- name: "tokenId",
17873
- internalType: "uint256",
17874
- type: "uint256",
17875
- indexed: true
17876
- },
17877
- {
17878
- name: "quantity",
17879
- internalType: "uint256",
17880
- type: "uint256",
19218
+ name: "poolKey",
19219
+ internalType: "struct PoolKey",
19220
+ type: "tuple",
19221
+ components: [
19222
+ { name: "currency0", internalType: "Currency", type: "address" },
19223
+ { name: "currency1", internalType: "Currency", type: "address" },
19224
+ { name: "fee", internalType: "uint24", type: "uint24" },
19225
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
19226
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
19227
+ ],
17881
19228
  indexed: false
17882
19229
  },
17883
19230
  {
17884
- name: "comment",
17885
- internalType: "string",
17886
- type: "string",
19231
+ name: "delta",
19232
+ internalType: "BalanceDelta",
19233
+ type: "int256",
17887
19234
  indexed: false
17888
- }
17889
- ],
17890
- name: "MintComment"
17891
- },
17892
- {
17893
- type: "event",
17894
- anonymous: false,
17895
- inputs: [
17896
- {
17897
- name: "previousOwner",
17898
- internalType: "address",
17899
- type: "address",
17900
- indexed: true
17901
19235
  },
17902
19236
  {
17903
- name: "newOwner",
17904
- internalType: "address",
17905
- type: "address",
17906
- indexed: true
17907
- }
17908
- ],
17909
- name: "OwnershipTransferStarted"
17910
- },
17911
- {
17912
- type: "event",
17913
- anonymous: false,
17914
- inputs: [
17915
- {
17916
- name: "previousOwner",
17917
- internalType: "address",
17918
- type: "address",
17919
- indexed: true
19237
+ name: "tickBeforeSwap",
19238
+ internalType: "int24",
19239
+ type: "int24",
19240
+ indexed: false
17920
19241
  },
17921
19242
  {
17922
- name: "newOwner",
17923
- internalType: "address",
17924
- type: "address",
17925
- indexed: true
17926
- }
17927
- ],
17928
- name: "OwnershipTransferred"
17929
- },
17930
- {
17931
- type: "event",
17932
- anonymous: false,
17933
- inputs: [
17934
- {
17935
- name: "contractURI",
17936
- internalType: "string",
17937
- type: "string",
19243
+ name: "tickAfterSwap",
19244
+ internalType: "int24",
19245
+ type: "int24",
17938
19246
  indexed: false
17939
19247
  },
17940
19248
  {
17941
- name: "baseURI",
17942
- internalType: "string",
17943
- type: "string",
19249
+ name: "orders",
19250
+ internalType: "struct SwapWithLimitOrders.CreatedOrder[]",
19251
+ type: "tuple[]",
19252
+ components: [
19253
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
19254
+ { name: "multiple", internalType: "uint256", type: "uint256" },
19255
+ { name: "percentage", internalType: "uint256", type: "uint256" }
19256
+ ],
17944
19257
  indexed: false
17945
19258
  }
17946
19259
  ],
17947
- name: "URIsUpdated"
19260
+ name: "SwapWithLimitOrdersExecuted"
17948
19261
  },
19262
+ { type: "error", inputs: [], name: "EmptyV4Route" },
19263
+ { type: "error", inputs: [], name: "FromAddressIsNotOwner" },
17949
19264
  {
17950
- type: "event",
17951
- anonymous: false,
19265
+ type: "error",
17952
19266
  inputs: [
17953
- {
17954
- name: "implementation",
17955
- internalType: "address",
17956
- type: "address",
17957
- indexed: true
17958
- }
19267
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
19268
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
17959
19269
  ],
17960
- name: "Upgraded"
19270
+ name: "InsufficientInputCurrency"
19271
+ },
19272
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
19273
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
19274
+ { type: "error", inputs: [], name: "InvalidLimitOrderConfig" },
19275
+ { type: "error", inputs: [], name: "InvalidMultiple" },
19276
+ { type: "error", inputs: [], name: "InvalidPercent" },
19277
+ { type: "error", inputs: [], name: "LengthMismatch" },
19278
+ { type: "error", inputs: [], name: "OnlyAuthority" },
19279
+ { type: "error", inputs: [], name: "OnlyPoolManager" },
19280
+ { type: "error", inputs: [], name: "PercentOverflow" },
19281
+ {
19282
+ type: "error",
19283
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
19284
+ name: "SafeERC20FailedOperation"
19285
+ },
19286
+ { type: "error", inputs: [], name: "UnsafeCast" },
19287
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
19288
+ { type: "error", inputs: [], name: "ZeroSwapDelta" },
19289
+ { type: "error", inputs: [], name: "AddressZero" },
19290
+ { type: "error", inputs: [], name: "AlreadyOwner" },
19291
+ { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
19292
+ {
19293
+ type: "error",
19294
+ inputs: [],
19295
+ name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
17961
19296
  },
19297
+ { type: "error", inputs: [], name: "ECDSAInvalidSignature" },
17962
19298
  {
17963
19299
  type: "error",
17964
- inputs: [{ name: "target", internalType: "address", type: "address" }],
17965
- name: "AddressEmptyCode"
19300
+ inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
19301
+ name: "ECDSAInvalidSignatureLength"
17966
19302
  },
17967
19303
  {
17968
19304
  type: "error",
17969
- inputs: [{ name: "account", internalType: "address", type: "address" }],
17970
- name: "AddressInsufficientBalance"
19305
+ inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
19306
+ name: "ECDSAInvalidSignatureS"
17971
19307
  },
17972
19308
  {
17973
19309
  type: "error",
17974
19310
  inputs: [
17975
- { name: "lengthA", internalType: "uint256", type: "uint256" },
17976
- { name: "lengthB", internalType: "uint256", type: "uint256" }
19311
+ { name: "spender", internalType: "address", type: "address" },
19312
+ { name: "allowance", internalType: "uint256", type: "uint256" },
19313
+ { name: "needed", internalType: "uint256", type: "uint256" }
17977
19314
  ],
17978
- name: "ArrayLengthMismatch"
19315
+ name: "ERC20InsufficientAllowance"
17979
19316
  },
17980
19317
  {
17981
19318
  type: "error",
17982
19319
  inputs: [
17983
- { name: "operator", internalType: "address", type: "address" },
17984
- { name: "user", internalType: "address", type: "address" }
19320
+ { name: "sender", internalType: "address", type: "address" },
19321
+ { name: "balance", internalType: "uint256", type: "uint256" },
19322
+ { name: "needed", internalType: "uint256", type: "uint256" }
17985
19323
  ],
17986
- name: "Burn_NotOwnerOrApproved"
19324
+ name: "ERC20InsufficientBalance"
17987
19325
  },
17988
19326
  {
17989
19327
  type: "error",
17990
- inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
17991
- name: "CallFailed"
19328
+ inputs: [{ name: "approver", internalType: "address", type: "address" }],
19329
+ name: "ERC20InvalidApprover"
17992
19330
  },
17993
- { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
17994
- { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
17995
19331
  {
17996
19332
  type: "error",
17997
- inputs: [
17998
- { name: "tokenId", internalType: "uint256", type: "uint256" },
17999
- { name: "quantity", internalType: "uint256", type: "uint256" },
18000
- { name: "totalMinted", internalType: "uint256", type: "uint256" },
18001
- { name: "maxSupply", internalType: "uint256", type: "uint256" }
18002
- ],
18003
- name: "CannotMintMoreTokens"
19333
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
19334
+ name: "ERC20InvalidReceiver"
18004
19335
  },
18005
19336
  {
18006
19337
  type: "error",
18007
- inputs: [
18008
- { name: "proposedAddress", internalType: "address", type: "address" }
18009
- ],
18010
- name: "Config_TransferHookNotSupported"
19338
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
19339
+ name: "ERC20InvalidSender"
18011
19340
  },
18012
- { type: "error", inputs: [], name: "Create2EmptyBytecode" },
18013
- { type: "error", inputs: [], name: "Create2FailedDeployment" },
18014
19341
  {
18015
19342
  type: "error",
18016
- inputs: [
18017
- { name: "balance", internalType: "uint256", type: "uint256" },
18018
- { name: "needed", internalType: "uint256", type: "uint256" }
18019
- ],
18020
- name: "Create2InsufficientBalance"
19343
+ inputs: [{ name: "spender", internalType: "address", type: "address" }],
19344
+ name: "ERC20InvalidSpender"
18021
19345
  },
18022
- { type: "error", inputs: [], name: "DefaultOwnerCannotBeZero" },
18023
- { type: "error", inputs: [], name: "ERC1155BatchReceivedCallFailed" },
18024
- { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
19346
+ { type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
18025
19347
  {
18026
19348
  type: "error",
18027
- inputs: [
18028
- { name: "implementation", internalType: "address", type: "address" }
18029
- ],
18030
- name: "ERC1967InvalidImplementation"
19349
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
19350
+ name: "ERC2612ExpiredSignature"
18031
19351
  },
18032
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
18033
- { type: "error", inputs: [], name: "ERC20TransferSlippage" },
18034
- { type: "error", inputs: [], name: "ETHTransferFailed" },
18035
19352
  {
18036
19353
  type: "error",
18037
19354
  inputs: [
18038
- { name: "recipient", internalType: "address", type: "address" },
18039
- { name: "amount", internalType: "uint256", type: "uint256" }
19355
+ { name: "signer", internalType: "address", type: "address" },
19356
+ { name: "owner", internalType: "address", type: "address" }
18040
19357
  ],
18041
- name: "ETHWithdrawFailed"
19358
+ name: "ERC2612InvalidSigner"
18042
19359
  },
18043
- { type: "error", inputs: [], name: "FailedInnerCall" },
18044
- { type: "error", inputs: [], name: "FirstMinterAddressZero" },
19360
+ { type: "error", inputs: [], name: "EthAmountMismatch" },
19361
+ { type: "error", inputs: [], name: "EthAmountTooSmall" },
19362
+ { type: "error", inputs: [], name: "EthTransferFailed" },
19363
+ { type: "error", inputs: [], name: "EthTransferInvalid" },
19364
+ { type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
19365
+ { type: "error", inputs: [], name: "InsufficientFunds" },
19366
+ { type: "error", inputs: [], name: "InsufficientLiquidity" },
18045
19367
  {
18046
19368
  type: "error",
18047
19369
  inputs: [
18048
- { name: "amount", internalType: "uint256", type: "uint256" },
18049
- { name: "contractValue", internalType: "uint256", type: "uint256" }
19370
+ { name: "account", internalType: "address", type: "address" },
19371
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
18050
19372
  ],
18051
- name: "FundsWithdrawInsolvent"
19373
+ name: "InvalidAccountNonce"
18052
19374
  },
18053
- { type: "error", inputs: [], name: "IncorrectAmountSent" },
18054
- { type: "error", inputs: [], name: "InvalidAdminAction" },
19375
+ { type: "error", inputs: [], name: "InvalidCurrency" },
19376
+ { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
18055
19377
  { type: "error", inputs: [], name: "InvalidInitialization" },
19378
+ { type: "error", inputs: [], name: "InvalidMarketType" },
19379
+ { type: "error", inputs: [], name: "InvalidPoolVersion" },
18056
19380
  {
18057
19381
  type: "error",
18058
19382
  inputs: [
18059
- { name: "mintTo", internalType: "address", type: "address" },
18060
- { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
18061
- { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
19383
+ { name: "tickLower", internalType: "int24", type: "int24" },
19384
+ { name: "tickUpper", internalType: "int24", type: "int24" }
18062
19385
  ],
18063
- name: "InvalidMerkleProof"
19386
+ name: "InvalidTickRangeMisordered"
18064
19387
  },
18065
- { type: "error", inputs: [], name: "InvalidMintSchedule" },
18066
- { type: "error", inputs: [], name: "InvalidOwnerForAssociatedZoraSparks" },
18067
- { type: "error", inputs: [], name: "InvalidPremintVersion" },
18068
- { type: "error", inputs: [], name: "InvalidRecipient" },
18069
- { type: "error", inputs: [], name: "InvalidSignature" },
18070
- { type: "error", inputs: [], name: "InvalidSignatureVersion" },
19388
+ { type: "error", inputs: [], name: "InvalidWethLowerTick" },
19389
+ { type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
19390
+ { type: "error", inputs: [], name: "MarketAlreadyGraduated" },
19391
+ { type: "error", inputs: [], name: "MarketNotGraduated" },
18071
19392
  {
18072
19393
  type: "error",
18073
- inputs: [{ name: "magicValue", internalType: "bytes4", type: "bytes4" }],
18074
- name: "InvalidSigner"
19394
+ inputs: [
19395
+ { name: "value", internalType: "uint256", type: "uint256" },
19396
+ { name: "limit", internalType: "uint256", type: "uint256" }
19397
+ ],
19398
+ name: "MaxShareToBeSoldExceeded"
18075
19399
  },
18076
- { type: "error", inputs: [], name: "InvalidTokenPrice" },
18077
- { type: "error", inputs: [], name: "MintNotYetStarted" },
18078
- { type: "error", inputs: [], name: "MintWithSparksNotSupportedOnContract" },
18079
- { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
18080
- { type: "error", inputs: [], name: "Mint_InvalidMintArrayLength" },
18081
- { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
18082
- { type: "error", inputs: [], name: "Mint_UnknownCommand" },
18083
- { type: "error", inputs: [], name: "Mint_ValueTransferFail" },
18084
- { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
18085
- { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
18086
- { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
18087
- { type: "error", inputs: [], name: "NoTokensTransferred" },
18088
- { type: "error", inputs: [], name: "NoUriForNonexistentToken" },
18089
- { type: "error", inputs: [], name: "NonEthRedemption" },
19400
+ { type: "error", inputs: [], name: "NameIsRequired" },
19401
+ { type: "error", inputs: [], name: "NotInitializing" },
19402
+ { type: "error", inputs: [], name: "NotOwner" },
19403
+ { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
19404
+ { type: "error", inputs: [], name: "OneOwnerRequired" },
19405
+ { type: "error", inputs: [], name: "OnlyOwner" },
18090
19406
  {
18091
19407
  type: "error",
18092
- inputs: [{ name: "handler", internalType: "address", type: "address" }],
18093
- name: "NotARedeemHandler"
19408
+ inputs: [
19409
+ { name: "sender", internalType: "address", type: "address" },
19410
+ { name: "pool", internalType: "address", type: "address" }
19411
+ ],
19412
+ name: "OnlyPool"
18094
19413
  },
18095
- { type: "error", inputs: [], name: "NotInitializing" },
18096
- { type: "error", inputs: [], name: "NotSelfCall" },
18097
- { type: "error", inputs: [], name: "NotZoraSparks1155" },
18098
- { type: "error", inputs: [], name: "OnlyTransfersFromZoraSparks" },
19414
+ { type: "error", inputs: [], name: "OnlyWeth" },
19415
+ { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
19416
+ { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
19417
+ { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" },
19418
+ { type: "error", inputs: [], name: "CoinVersionLookupCannotBeZeroAddress" },
19419
+ { type: "error", inputs: [], name: "EthTransferFailed" },
19420
+ { type: "error", inputs: [], name: "HookNotImplemented" },
18099
19421
  {
18100
19422
  type: "error",
18101
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
18102
- name: "OwnableInvalidOwner"
19423
+ inputs: [{ name: "callbackId", internalType: "uint8", type: "uint8" }],
19424
+ name: "InvalidCallbackId"
18103
19425
  },
18104
19426
  {
18105
19427
  type: "error",
18106
- inputs: [{ name: "account", internalType: "address", type: "address" }],
18107
- name: "OwnableUnauthorizedAccount"
19428
+ inputs: [{ name: "newHook", internalType: "address", type: "address" }],
19429
+ name: "InvalidNewHook"
18108
19430
  },
18109
- { type: "error", inputs: [], name: "PremintDeleted" },
18110
- { type: "error", inputs: [], name: "PremintExecutorCannotBeZero" },
18111
19431
  {
18112
19432
  type: "error",
18113
19433
  inputs: [
18114
- { name: "caller", internalType: "address", type: "address" },
18115
- { name: "recipient", internalType: "address", type: "address" },
18116
- { name: "amount", internalType: "uint256", type: "uint256" }
19434
+ {
19435
+ name: "key",
19436
+ internalType: "struct PoolKey",
19437
+ type: "tuple",
19438
+ components: [
19439
+ { name: "currency0", internalType: "Currency", type: "address" },
19440
+ { name: "currency1", internalType: "Currency", type: "address" },
19441
+ { name: "fee", internalType: "uint24", type: "uint24" },
19442
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
19443
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
19444
+ ]
19445
+ }
18117
19446
  ],
18118
- name: "ProtocolRewardsWithdrawFailed"
19447
+ name: "NoCoinForHook"
18119
19448
  },
18120
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
18121
- { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
18122
19449
  {
18123
19450
  type: "error",
18124
- inputs: [{ name: "token", internalType: "address", type: "address" }],
18125
- name: "SafeERC20FailedOperation"
19451
+ inputs: [{ name: "coin", internalType: "address", type: "address" }],
19452
+ name: "NotACoin"
18126
19453
  },
18127
- { type: "error", inputs: [], name: "SaleEnded" },
18128
- { type: "error", inputs: [], name: "SaleHasNotStarted" },
19454
+ { type: "error", inputs: [], name: "NotPoolManager" },
18129
19455
  {
18130
19456
  type: "error",
18131
19457
  inputs: [
18132
- { name: "targetContract", internalType: "address", type: "address" }
19458
+ { name: "caller", internalType: "address", type: "address" },
19459
+ { name: "expectedCoin", internalType: "address", type: "address" }
18133
19460
  ],
18134
- name: "Sale_CannotCallNonSalesContract"
19461
+ name: "OnlyCoin"
18135
19462
  },
18136
- { type: "error", inputs: [], name: "TokenAlreadyCreated" },
18137
- { type: "error", inputs: [], name: "TokenDoesNotExist" },
19463
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
19464
+ { type: "error", inputs: [], name: "SafeCastOverflow" },
18138
19465
  {
18139
19466
  type: "error",
18140
- inputs: [
18141
- { name: "expected", internalType: "uint256", type: "uint256" },
18142
- { name: "actual", internalType: "uint256", type: "uint256" }
18143
- ],
18144
- name: "TokenIdMismatch"
19467
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
19468
+ name: "SafeERC20FailedOperation"
18145
19469
  },
18146
19470
  {
18147
19471
  type: "error",
18148
- inputs: [
18149
- { name: "storedTokenAddress", internalType: "address", type: "address" },
18150
- {
18151
- name: "expectedTokenAddress",
18152
- internalType: "address",
18153
- type: "address"
18154
- }
18155
- ],
18156
- name: "TokenMismatch"
19472
+ inputs: [],
19473
+ name: "TrustedMsgSenderLookupCannotBeZeroAddress"
18157
19474
  },
18158
- { type: "error", inputs: [], name: "TokenNotMintable" },
18159
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
19475
+ { type: "error", inputs: [], name: "UpgradeGateCannotBeZeroAddress" },
18160
19476
  {
18161
19477
  type: "error",
18162
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
18163
- name: "UUPSUnsupportedProxiableUUID"
19478
+ inputs: [
19479
+ { name: "oldHook", internalType: "address", type: "address" },
19480
+ { name: "newHook", internalType: "address", type: "address" }
19481
+ ],
19482
+ name: "UpgradePathNotRegistered"
18164
19483
  },
19484
+ { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
19485
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
18165
19486
  {
18166
19487
  type: "error",
18167
- inputs: [{ name: "selector", internalType: "bytes4", type: "bytes4" }],
18168
- name: "UnknownUserAction"
19488
+ inputs: [{ name: "authority", internalType: "address", type: "address" }],
19489
+ name: "AccessManagedInvalidAuthority"
18169
19490
  },
19491
+ { type: "error", inputs: [], name: "AccessManagedUnauthorized" },
19492
+ { type: "error", inputs: [], name: "AddressZero" },
19493
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
18170
19494
  {
18171
19495
  type: "error",
18172
19496
  inputs: [
18173
- { name: "expected", internalType: "string", type: "string" },
18174
- { name: "actual", internalType: "string", type: "string" }
19497
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
19498
+ { name: "expectedCoin", internalType: "address", type: "address" },
19499
+ { name: "actualCoin", internalType: "address", type: "address" }
18175
19500
  ],
18176
- name: "UpgradeToMismatchedContractName"
19501
+ name: "CoinMismatch"
18177
19502
  },
19503
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
19504
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
18178
19505
  {
18179
19506
  type: "error",
18180
19507
  inputs: [
18181
- { name: "user", internalType: "address", type: "address" },
18182
- { name: "limit", internalType: "uint256", type: "uint256" },
18183
- { name: "requestedAmount", internalType: "uint256", type: "uint256" }
19508
+ { name: "startTick", internalType: "int24", type: "int24" },
19509
+ { name: "endTick", internalType: "int24", type: "int24" },
19510
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
18184
19511
  ],
18185
- name: "UserExceedsMintLimit"
19512
+ name: "InvalidFillWindow"
18186
19513
  },
19514
+ { type: "error", inputs: [], name: "InvalidOrder" },
19515
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
19516
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
18187
19517
  {
18188
19518
  type: "error",
18189
19519
  inputs: [
18190
- { name: "user", internalType: "address", type: "address" },
18191
- { name: "tokenId", internalType: "uint256", type: "uint256" },
18192
- { name: "role", internalType: "uint256", type: "uint256" }
19520
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
19521
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
18193
19522
  ],
18194
- name: "UserMissingRoleForToken"
18195
- },
18196
- { type: "error", inputs: [], name: "WrongValueSent" },
18197
- {
18198
- type: "error",
18199
- inputs: [],
18200
- name: "premintSignerContractFailedToRecoverSigner"
19523
+ name: "MinAmountNotReached"
18201
19524
  },
18202
- { type: "error", inputs: [], name: "premintSignerContractNotAContract" }
19525
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
19526
+ { type: "error", inputs: [], name: "NotPoolManager" },
19527
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
19528
+ { type: "error", inputs: [], name: "OrderClosed" },
19529
+ { type: "error", inputs: [], name: "OrderNotMaker" },
19530
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
19531
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
19532
+ { type: "error", inputs: [], name: "UnknownCallback" },
19533
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
19534
+ { type: "error", inputs: [], name: "ZeroMaker" },
19535
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
19536
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" }
18203
19537
  ];
18204
- var zoraMintsManagerImplAddress = {
18205
- 7777777: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
18206
- 999999999: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B"
19538
+ var zoraRouterAddress = {
19539
+ 8453: "0x42E354928b1BD9082FAFc2dF01222827E9fD098F"
18207
19540
  };
18208
- var zoraMintsManagerImplConfig = {
18209
- address: zoraMintsManagerImplAddress,
18210
- abi: zoraMintsManagerImplABI
19541
+ var zoraRouterConfig = {
19542
+ address: zoraRouterAddress,
19543
+ abi: zoraRouterABI
18211
19544
  };
18212
19545
  var zoraSparks1155ABI = [
18213
19546
  { type: "constructor", inputs: [], stateMutability: "nonpayable" },
@@ -21137,6 +22470,20 @@ var chainConfigs2 = {
21137
22470
  PROXY_ADMIN: "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E",
21138
22471
  ZORA_RECIPIENT: "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E",
21139
22472
  WETH: "0x4200000000000000000000000000000000000006"
22473
+ },
22474
+ NaN: {
22475
+ NONFUNGIBLE_POSITION_MANAGER: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
22476
+ UNISWAP_SWAP_ROUTER: "0x2626664c2603336E57B271c5C0b26F421741e481",
22477
+ UNISWAP_V3_FACTORY: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
22478
+ UNISWAP_QUOTER_V2: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
22479
+ DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
22480
+ PROXY_ADMIN: "0xEAB37fbA9E4F99602815E173A7FeAee0f4eF980B",
22481
+ ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
22482
+ WETH: "0x4200000000000000000000000000000000000006",
22483
+ UNISWAP_V4_POOL_MANAGER: "0x498581ff718922c3f8e6a244956af099b2652b2b",
22484
+ UNISWAP_V4_POSITION_MANAGER: "0x7c5f5a4bbd8fd63184577525326123b519429bdc",
22485
+ UNISWAP_PERMIT2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
22486
+ UNISWAP_UNIVERSAL_ROUTER: "0x6ff5693b99212da76ad316178a184ab56d299b43"
21140
22487
  }
21141
22488
  };
21142
22489
  var addresses2 = {
@@ -21279,9 +22626,6 @@ var addresses2 = {
21279
22626
  uniswapQuoterV2ABI,
21280
22627
  uniswapQuoterV2Address,
21281
22628
  uniswapQuoterV2Config,
21282
- uniswapUniversalRouterABI,
21283
- uniswapUniversalRouterAddress,
21284
- uniswapUniversalRouterConfig,
21285
22629
  uniswapV3SwapRouterABI,
21286
22630
  uniswapV3SwapRouterAddress,
21287
22631
  uniswapV3SwapRouterConfig,
@@ -21310,12 +22654,18 @@ var addresses2 = {
21310
22654
  zoraCreatorRedeemMinterFactoryABI,
21311
22655
  zoraCreatorRedeemMinterFactoryAddress,
21312
22656
  zoraCreatorRedeemMinterFactoryConfig,
22657
+ zoraLimitOrderBookABI,
22658
+ zoraLimitOrderBookAddress,
22659
+ zoraLimitOrderBookConfig,
21313
22660
  zoraMints1155ABI,
21314
22661
  zoraMints1155Address,
21315
22662
  zoraMints1155Config,
21316
22663
  zoraMintsManagerImplABI,
21317
22664
  zoraMintsManagerImplAddress,
21318
22665
  zoraMintsManagerImplConfig,
22666
+ zoraRouterABI,
22667
+ zoraRouterAddress,
22668
+ zoraRouterConfig,
21319
22669
  zoraSparks1155ABI,
21320
22670
  zoraSparks1155Address,
21321
22671
  zoraSparks1155Config,