@zoralabs/protocol-deployments 0.1.13 → 0.2.0-SPARKS.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
@@ -1608,10 +1608,6 @@ __export(src_exports, {
1608
1608
  erc20MinterConfig: () => erc20MinterConfig,
1609
1609
  iPremintDefinitionsABI: () => iPremintDefinitionsABI,
1610
1610
  iUnwrapAndForwardActionABI: () => iUnwrapAndForwardActionABI,
1611
- mints: () => mints_exports,
1612
- mintsEthUnwrapperAndCallerABI: () => mintsEthUnwrapperAndCallerABI,
1613
- mintsEthUnwrapperAndCallerAddress: () => mintsEthUnwrapperAndCallerAddress,
1614
- mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
1615
1611
  mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
1616
1612
  mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
1617
1613
  premintTypedDataDefinition: () => premintTypedDataDefinition,
@@ -1620,6 +1616,10 @@ __export(src_exports, {
1620
1616
  protocolRewardsABI: () => protocolRewardsABI,
1621
1617
  protocolRewardsAddress: () => protocolRewardsAddress,
1622
1618
  protocolRewardsConfig: () => protocolRewardsConfig,
1619
+ sparks: () => sparks_exports,
1620
+ sparksEthUnwrapperAndCallerABI: () => sparksEthUnwrapperAndCallerABI,
1621
+ sparksEthUnwrapperAndCallerAddress: () => sparksEthUnwrapperAndCallerAddress,
1622
+ sparksEthUnwrapperAndCallerConfig: () => sparksEthUnwrapperAndCallerConfig,
1623
1623
  upgradeGateABI: () => upgradeGateABI,
1624
1624
  upgradeGateAddress: () => upgradeGateAddress,
1625
1625
  upgradeGateConfig: () => upgradeGateConfig,
@@ -1644,7 +1644,13 @@ __export(src_exports, {
1644
1644
  zoraMints1155Config: () => zoraMints1155Config,
1645
1645
  zoraMintsManagerImplABI: () => zoraMintsManagerImplABI,
1646
1646
  zoraMintsManagerImplAddress: () => zoraMintsManagerImplAddress,
1647
- zoraMintsManagerImplConfig: () => zoraMintsManagerImplConfig
1647
+ zoraMintsManagerImplConfig: () => zoraMintsManagerImplConfig,
1648
+ zoraSparks1155ABI: () => zoraSparks1155ABI,
1649
+ zoraSparks1155Address: () => zoraSparks1155Address,
1650
+ zoraSparks1155Config: () => zoraSparks1155Config,
1651
+ zoraSparksManagerImplABI: () => zoraSparksManagerImplABI,
1652
+ zoraSparksManagerImplAddress: () => zoraSparksManagerImplAddress,
1653
+ zoraSparksManagerImplConfig: () => zoraSparksManagerImplConfig
1648
1654
  });
1649
1655
  module.exports = __toCommonJS(src_exports);
1650
1656
 
@@ -2486,109 +2492,6 @@ var iUnwrapAndForwardActionABI = [
2486
2492
  outputs: []
2487
2493
  }
2488
2494
  ];
2489
- var mintsEthUnwrapperAndCallerABI = [
2490
- {
2491
- stateMutability: "nonpayable",
2492
- type: "constructor",
2493
- inputs: [
2494
- {
2495
- name: "_zoraMints1155",
2496
- internalType: "contract IZoraMints1155",
2497
- type: "address"
2498
- }
2499
- ]
2500
- },
2501
- { stateMutability: "payable", type: "receive" },
2502
- {
2503
- stateMutability: "nonpayable",
2504
- type: "function",
2505
- inputs: [
2506
- { name: "", internalType: "address", type: "address" },
2507
- { name: "from", internalType: "address", type: "address" },
2508
- { name: "ids", internalType: "uint256[]", type: "uint256[]" },
2509
- { name: "values", internalType: "uint256[]", type: "uint256[]" },
2510
- { name: "data", internalType: "bytes", type: "bytes" }
2511
- ],
2512
- name: "onERC1155BatchReceived",
2513
- outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
2514
- },
2515
- {
2516
- stateMutability: "nonpayable",
2517
- type: "function",
2518
- inputs: [
2519
- { name: "", internalType: "address", type: "address" },
2520
- { name: "from", internalType: "address", type: "address" },
2521
- { name: "id", internalType: "uint256", type: "uint256" },
2522
- { name: "value", internalType: "uint256", type: "uint256" },
2523
- { name: "data", internalType: "bytes", type: "bytes" }
2524
- ],
2525
- name: "onERC1155Received",
2526
- outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
2527
- },
2528
- {
2529
- stateMutability: "payable",
2530
- type: "function",
2531
- inputs: [
2532
- {
2533
- name: "permit",
2534
- internalType: "struct IZoraMints1155Managed.PermitBatch",
2535
- type: "tuple",
2536
- components: [
2537
- { name: "owner", internalType: "address", type: "address" },
2538
- { name: "to", internalType: "address", type: "address" },
2539
- { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
2540
- { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
2541
- { name: "safeTransferData", internalType: "bytes", type: "bytes" },
2542
- { name: "deadline", internalType: "uint256", type: "uint256" },
2543
- { name: "nonce", internalType: "uint256", type: "uint256" }
2544
- ]
2545
- },
2546
- { name: "signature", internalType: "bytes", type: "bytes" }
2547
- ],
2548
- name: "permitWithAdditionalValue",
2549
- outputs: []
2550
- },
2551
- {
2552
- type: "error",
2553
- inputs: [{ name: "account", internalType: "address", type: "address" }],
2554
- name: "AddressInsufficientBalance"
2555
- },
2556
- {
2557
- type: "error",
2558
- inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
2559
- name: "CallFailed"
2560
- },
2561
- {
2562
- type: "error",
2563
- inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
2564
- name: "ERC20NotSupported"
2565
- },
2566
- { type: "error", inputs: [], name: "FailedInnerCall" },
2567
- { type: "error", inputs: [], name: "NotExpectingReceive" },
2568
- { type: "error", inputs: [], name: "NotZoraMints1155" },
2569
- {
2570
- type: "error",
2571
- inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
2572
- name: "TransferFailed"
2573
- },
2574
- { type: "error", inputs: [], name: "UnknownUserAction" }
2575
- ];
2576
- var mintsEthUnwrapperAndCallerAddress = {
2577
- 1: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2578
- 10: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2579
- 8453: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2580
- 42161: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2581
- 81457: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2582
- 84532: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2583
- 421614: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2584
- 7777777: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2585
- 11155111: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2586
- 999999999: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A"
2587
- };
2588
- var mintsEthUnwrapperAndCallerConfig = {
2589
- address: mintsEthUnwrapperAndCallerAddress,
2590
- abi: mintsEthUnwrapperAndCallerABI
2591
- };
2592
2495
  var protocolRewardsABI = [
2593
2496
  { stateMutability: "payable", type: "constructor", inputs: [] },
2594
2497
  {
@@ -2857,6 +2760,101 @@ var protocolRewardsConfig = {
2857
2760
  address: protocolRewardsAddress,
2858
2761
  abi: protocolRewardsABI
2859
2762
  };
2763
+ var sparksEthUnwrapperAndCallerABI = [
2764
+ {
2765
+ stateMutability: "nonpayable",
2766
+ type: "constructor",
2767
+ inputs: [
2768
+ {
2769
+ name: "_zoraSparks1155",
2770
+ internalType: "contract IZoraSparks1155",
2771
+ type: "address"
2772
+ }
2773
+ ]
2774
+ },
2775
+ { stateMutability: "payable", type: "receive" },
2776
+ {
2777
+ stateMutability: "nonpayable",
2778
+ type: "function",
2779
+ inputs: [
2780
+ { name: "", internalType: "address", type: "address" },
2781
+ { name: "from", internalType: "address", type: "address" },
2782
+ { name: "ids", internalType: "uint256[]", type: "uint256[]" },
2783
+ { name: "values", internalType: "uint256[]", type: "uint256[]" },
2784
+ { name: "data", internalType: "bytes", type: "bytes" }
2785
+ ],
2786
+ name: "onERC1155BatchReceived",
2787
+ outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
2788
+ },
2789
+ {
2790
+ stateMutability: "nonpayable",
2791
+ type: "function",
2792
+ inputs: [
2793
+ { name: "", internalType: "address", type: "address" },
2794
+ { name: "from", internalType: "address", type: "address" },
2795
+ { name: "id", internalType: "uint256", type: "uint256" },
2796
+ { name: "value", internalType: "uint256", type: "uint256" },
2797
+ { name: "data", internalType: "bytes", type: "bytes" }
2798
+ ],
2799
+ name: "onERC1155Received",
2800
+ outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
2801
+ },
2802
+ {
2803
+ stateMutability: "payable",
2804
+ type: "function",
2805
+ inputs: [
2806
+ {
2807
+ name: "permit",
2808
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
2809
+ type: "tuple",
2810
+ components: [
2811
+ { name: "owner", internalType: "address", type: "address" },
2812
+ { name: "to", internalType: "address", type: "address" },
2813
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
2814
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
2815
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
2816
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2817
+ { name: "nonce", internalType: "uint256", type: "uint256" }
2818
+ ]
2819
+ },
2820
+ { name: "signature", internalType: "bytes", type: "bytes" }
2821
+ ],
2822
+ name: "permitWithAdditionalValue",
2823
+ outputs: []
2824
+ },
2825
+ {
2826
+ type: "error",
2827
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
2828
+ name: "AddressInsufficientBalance"
2829
+ },
2830
+ {
2831
+ type: "error",
2832
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
2833
+ name: "CallFailed"
2834
+ },
2835
+ {
2836
+ type: "error",
2837
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
2838
+ name: "ERC20NotSupported"
2839
+ },
2840
+ { type: "error", inputs: [], name: "FailedInnerCall" },
2841
+ { type: "error", inputs: [], name: "NotExpectingReceive" },
2842
+ { type: "error", inputs: [], name: "NotZoraSparks1155" },
2843
+ {
2844
+ type: "error",
2845
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
2846
+ name: "TransferFailed"
2847
+ },
2848
+ { type: "error", inputs: [], name: "UnknownUserAction" }
2849
+ ];
2850
+ var sparksEthUnwrapperAndCallerAddress = {
2851
+ 7777777: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
2852
+ 999999999: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A"
2853
+ };
2854
+ var sparksEthUnwrapperAndCallerConfig = {
2855
+ address: sparksEthUnwrapperAndCallerAddress,
2856
+ abi: sparksEthUnwrapperAndCallerABI
2857
+ };
2860
2858
  var upgradeGateABI = [
2861
2859
  { stateMutability: "nonpayable", type: "constructor", inputs: [] },
2862
2860
  {
@@ -3616,8 +3614,7 @@ var zoraCreator1155ImplABI = [
3616
3614
  inputs: [
3617
3615
  { name: "_mintFeeRecipient", internalType: "address", type: "address" },
3618
3616
  { name: "_upgradeGate", internalType: "address", type: "address" },
3619
- { name: "_protocolRewards", internalType: "address", type: "address" },
3620
- { name: "_mints", internalType: "address", type: "address" }
3617
+ { name: "_protocolRewards", internalType: "address", type: "address" }
3621
3618
  ]
3622
3619
  },
3623
3620
  { stateMutability: "payable", type: "receive" },
@@ -4001,39 +3998,6 @@ var zoraCreator1155ImplABI = [
4001
3998
  name: "mintFee",
4002
3999
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
4003
4000
  },
4004
- {
4005
- stateMutability: "payable",
4006
- type: "function",
4007
- inputs: [
4008
- { name: "mintTokenIds", internalType: "uint256[]", type: "uint256[]" },
4009
- { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
4010
- { name: "minter", internalType: "contract IMinter1155", type: "address" },
4011
- { name: "tokenId", internalType: "uint256", type: "uint256" },
4012
- {
4013
- name: "rewardsRecipients",
4014
- internalType: "address[]",
4015
- type: "address[]"
4016
- },
4017
- { name: "minterArguments", internalType: "bytes", type: "bytes" }
4018
- ],
4019
- name: "mintWithMints",
4020
- outputs: [
4021
- { name: "quantityMinted", internalType: "uint256", type: "uint256" }
4022
- ]
4023
- },
4024
- {
4025
- stateMutability: "payable",
4026
- type: "function",
4027
- inputs: [
4028
- { name: "minter", internalType: "contract IMinter1155", type: "address" },
4029
- { name: "tokenId", internalType: "uint256", type: "uint256" },
4030
- { name: "quantity", internalType: "uint256", type: "uint256" },
4031
- { name: "minterArguments", internalType: "bytes", type: "bytes" },
4032
- { name: "mintReferral", internalType: "address", type: "address" }
4033
- ],
4034
- name: "mintWithRewards",
4035
- outputs: []
4036
- },
4037
4001
  {
4038
4002
  stateMutability: "nonpayable",
4039
4003
  type: "function",
@@ -4055,32 +4019,6 @@ var zoraCreator1155ImplABI = [
4055
4019
  name: "nextTokenId",
4056
4020
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
4057
4021
  },
4058
- {
4059
- stateMutability: "view",
4060
- type: "function",
4061
- inputs: [
4062
- { name: "", internalType: "address", type: "address" },
4063
- { name: "", internalType: "address", type: "address" },
4064
- { name: "", internalType: "uint256[]", type: "uint256[]" },
4065
- { name: "", internalType: "uint256[]", type: "uint256[]" },
4066
- { name: "", internalType: "bytes", type: "bytes" }
4067
- ],
4068
- name: "onERC1155BatchReceived",
4069
- outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
4070
- },
4071
- {
4072
- stateMutability: "view",
4073
- type: "function",
4074
- inputs: [
4075
- { name: "", internalType: "address", type: "address" },
4076
- { name: "", internalType: "address", type: "address" },
4077
- { name: "", internalType: "uint256", type: "uint256" },
4078
- { name: "", internalType: "uint256", type: "uint256" },
4079
- { name: "", internalType: "bytes", type: "bytes" }
4080
- ],
4081
- name: "onERC1155Received",
4082
- outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
4083
- },
4084
4022
  {
4085
4023
  stateMutability: "view",
4086
4024
  type: "function",
@@ -4105,6 +4043,16 @@ var zoraCreator1155ImplABI = [
4105
4043
  name: "proxiableUUID",
4106
4044
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
4107
4045
  },
4046
+ {
4047
+ stateMutability: "nonpayable",
4048
+ type: "function",
4049
+ inputs: [
4050
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
4051
+ { name: "newMaxSupply", internalType: "uint256", type: "uint256" }
4052
+ ],
4053
+ name: "reduceSupply",
4054
+ outputs: []
4055
+ },
4108
4056
  {
4109
4057
  stateMutability: "nonpayable",
4110
4058
  type: "function",
@@ -4796,6 +4744,7 @@ var zoraCreator1155ImplABI = [
4796
4744
  },
4797
4745
  { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
4798
4746
  { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
4747
+ { type: "error", inputs: [], name: "CanOnlyReduceMaxSupply" },
4799
4748
  {
4800
4749
  type: "error",
4801
4750
  inputs: [
@@ -4806,6 +4755,7 @@ var zoraCreator1155ImplABI = [
4806
4755
  ],
4807
4756
  name: "CannotMintMoreTokens"
4808
4757
  },
4758
+ { type: "error", inputs: [], name: "CannotReduceMaxSupplyBelowMinted" },
4809
4759
  {
4810
4760
  type: "error",
4811
4761
  inputs: [
@@ -5793,6 +5743,7 @@ var zoraCreator1155PremintExecutorImplABI = [
5793
5743
  },
5794
5744
  { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
5795
5745
  { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
5746
+ { type: "error", inputs: [], name: "CanOnlyReduceMaxSupply" },
5796
5747
  {
5797
5748
  type: "error",
5798
5749
  inputs: [
@@ -5803,6 +5754,7 @@ var zoraCreator1155PremintExecutorImplABI = [
5803
5754
  ],
5804
5755
  name: "CannotMintMoreTokens"
5805
5756
  },
5757
+ { type: "error", inputs: [], name: "CannotReduceMaxSupplyBelowMinted" },
5806
5758
  {
5807
5759
  type: "error",
5808
5760
  inputs: [
@@ -6746,7 +6698,7 @@ var zoraMints1155ABI = [
6746
6698
  inputs: [
6747
6699
  {
6748
6700
  name: "permit",
6749
- internalType: "struct IZoraMints1155Managed.PermitBatch",
6701
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
6750
6702
  type: "tuple",
6751
6703
  components: [
6752
6704
  { name: "owner", internalType: "address", type: "address" },
@@ -6768,7 +6720,7 @@ var zoraMints1155ABI = [
6768
6720
  inputs: [
6769
6721
  {
6770
6722
  name: "permit",
6771
- internalType: "struct IZoraMints1155Managed.PermitSingle",
6723
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
6772
6724
  type: "tuple",
6773
6725
  components: [
6774
6726
  { name: "owner", internalType: "address", type: "address" },
@@ -6807,7 +6759,7 @@ var zoraMints1155ABI = [
6807
6759
  inputs: [
6808
6760
  {
6809
6761
  name: "permit",
6810
- internalType: "struct IZoraMints1155Managed.PermitBatch",
6762
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
6811
6763
  type: "tuple",
6812
6764
  components: [
6813
6765
  { name: "owner", internalType: "address", type: "address" },
@@ -6830,7 +6782,7 @@ var zoraMints1155ABI = [
6830
6782
  inputs: [
6831
6783
  {
6832
6784
  name: "permit",
6833
- internalType: "struct IZoraMints1155Managed.PermitSingle",
6785
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
6834
6786
  type: "tuple",
6835
6787
  components: [
6836
6788
  { name: "owner", internalType: "address", type: "address" },
@@ -6915,7 +6867,7 @@ var zoraMints1155ABI = [
6915
6867
  inputs: [
6916
6868
  {
6917
6869
  name: "permit",
6918
- internalType: "struct IZoraMints1155Managed.PermitSingle",
6870
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
6919
6871
  type: "tuple",
6920
6872
  components: [
6921
6873
  { name: "owner", internalType: "address", type: "address" },
@@ -6938,7 +6890,7 @@ var zoraMints1155ABI = [
6938
6890
  inputs: [
6939
6891
  {
6940
6892
  name: "permit",
6941
- internalType: "struct IZoraMints1155Managed.PermitBatch",
6893
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
6942
6894
  type: "tuple",
6943
6895
  components: [
6944
6896
  { name: "owner", internalType: "address", type: "address" },
@@ -7366,15 +7318,7 @@ var zoraMints1155ABI = [
7366
7318
  { type: "error", inputs: [], name: "TokenNotMintable" }
7367
7319
  ];
7368
7320
  var zoraMints1155Address = {
7369
- 1: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7370
- 10: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7371
- 8453: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7372
- 42161: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7373
- 81457: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7374
- 84532: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7375
- 421614: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7376
7321
  7777777: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7377
- 11155111: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
7378
7322
  999999999: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073"
7379
7323
  };
7380
7324
  var zoraMints1155Config = {
@@ -7439,7 +7383,7 @@ var zoraMintsManagerImplABI = [
7439
7383
  inputs: [
7440
7384
  {
7441
7385
  name: "zoraCreator1155Contract",
7442
- internalType: "contract IMintWithMints",
7386
+ internalType: "contract IMintWithSparks",
7443
7387
  type: "address"
7444
7388
  },
7445
7389
  { name: "minter", internalType: "contract IMinter1155", type: "address" },
@@ -7450,7 +7394,7 @@ var zoraMintsManagerImplABI = [
7450
7394
  },
7451
7395
  {
7452
7396
  name: "collectMintArguments",
7453
- internalType: "struct ICollectWithZoraMints.CollectMintArguments",
7397
+ internalType: "struct ICollectWithZoraSparks.CollectMintArguments",
7454
7398
  type: "tuple",
7455
7399
  components: [
7456
7400
  {
@@ -7692,8 +7636,8 @@ var zoraMintsManagerImplABI = [
7692
7636
  type: "function",
7693
7637
  inputs: [
7694
7638
  { name: "defaultOwner", internalType: "address", type: "address" },
7695
- { name: "zoraMintsSalt", internalType: "bytes32", type: "bytes32" },
7696
- { name: "zoraMintsCreationCode", internalType: "bytes", type: "bytes" },
7639
+ { name: "zoraSparksSalt", internalType: "bytes32", type: "bytes32" },
7640
+ { name: "zoraSparksCreationCode", internalType: "bytes", type: "bytes" },
7697
7641
  { name: "initialEthTokenId", internalType: "uint256", type: "uint256" },
7698
7642
  {
7699
7643
  name: "initialEthTokenPrice",
@@ -7707,7 +7651,7 @@ var zoraMintsManagerImplABI = [
7707
7651
  outputs: [
7708
7652
  {
7709
7653
  name: "mints",
7710
- internalType: "contract IZoraMints1155",
7654
+ internalType: "contract IZoraSparks1155",
7711
7655
  type: "address"
7712
7656
  }
7713
7657
  ]
@@ -7851,9 +7795,9 @@ var zoraMintsManagerImplABI = [
7851
7795
  stateMutability: "view",
7852
7796
  type: "function",
7853
7797
  inputs: [],
7854
- name: "zoraMints1155",
7798
+ name: "zoraSparks1155",
7855
7799
  outputs: [
7856
- { name: "", internalType: "contract IZoraMints1155", type: "address" }
7800
+ { name: "", internalType: "contract IZoraSparks1155", type: "address" }
7857
7801
  ]
7858
7802
  },
7859
7803
  {
@@ -8130,7 +8074,7 @@ var zoraMintsManagerImplABI = [
8130
8074
  name: "InvalidMerkleProof"
8131
8075
  },
8132
8076
  { type: "error", inputs: [], name: "InvalidMintSchedule" },
8133
- { type: "error", inputs: [], name: "InvalidOwnerForAssociatedZoraMints" },
8077
+ { type: "error", inputs: [], name: "InvalidOwnerForAssociatedZoraSparks" },
8134
8078
  { type: "error", inputs: [], name: "InvalidPremintVersion" },
8135
8079
  { type: "error", inputs: [], name: "InvalidRecipient" },
8136
8080
  { type: "error", inputs: [], name: "InvalidSignature" },
@@ -8142,7 +8086,7 @@ var zoraMintsManagerImplABI = [
8142
8086
  },
8143
8087
  { type: "error", inputs: [], name: "InvalidTokenPrice" },
8144
8088
  { type: "error", inputs: [], name: "MintNotYetStarted" },
8145
- { type: "error", inputs: [], name: "MintWithMintsNotSupportedOnContract" },
8089
+ { type: "error", inputs: [], name: "MintWithSparksNotSupportedOnContract" },
8146
8090
  { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
8147
8091
  { type: "error", inputs: [], name: "Mint_InvalidMintArrayLength" },
8148
8092
  { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
@@ -8161,8 +8105,8 @@ var zoraMintsManagerImplABI = [
8161
8105
  },
8162
8106
  { type: "error", inputs: [], name: "NotInitializing" },
8163
8107
  { type: "error", inputs: [], name: "NotSelfCall" },
8164
- { type: "error", inputs: [], name: "NotZoraMints1155" },
8165
- { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
8108
+ { type: "error", inputs: [], name: "NotZoraSparks1155" },
8109
+ { type: "error", inputs: [], name: "OnlyTransfersFromZoraSparks" },
8166
8110
  {
8167
8111
  type: "error",
8168
8112
  inputs: [{ name: "owner", internalType: "address", type: "address" }],
@@ -8269,45 +8213,1185 @@ var zoraMintsManagerImplABI = [
8269
8213
  { type: "error", inputs: [], name: "premintSignerContractNotAContract" }
8270
8214
  ];
8271
8215
  var zoraMintsManagerImplAddress = {
8272
- 1: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8273
- 10: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8274
- 8453: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8275
- 42161: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8276
- 81457: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8277
- 84532: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8278
- 421614: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8279
8216
  7777777: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8280
- 11155111: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
8281
8217
  999999999: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B"
8282
8218
  };
8283
8219
  var zoraMintsManagerImplConfig = {
8284
8220
  address: zoraMintsManagerImplAddress,
8285
8221
  abi: zoraMintsManagerImplABI
8286
8222
  };
8287
-
8288
- // ../../node_modules/viem/_esm/index.js
8289
- init_encodeAbiParameters();
8290
- init_getAbiItem();
8291
- init_toHex();
8292
- init_keccak256();
8293
-
8294
- // src/types.ts
8295
- var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
8296
- PremintConfigVersion2["V1"] = "1";
8297
- PremintConfigVersion2["V2"] = "2";
8298
- PremintConfigVersion2["V3"] = "3";
8299
- return PremintConfigVersion2;
8300
- })(PremintConfigVersion || {});
8301
-
8302
- // src/typedData.ts
8303
- var premintTypedDataDomain = ({
8304
- chainId,
8305
- version: version2,
8306
- creator1155Contract: verifyingContract
8307
- }) => ({
8308
- chainId,
8309
- name: "Preminter",
8310
- version: version2,
8223
+ var zoraSparks1155ABI = [
8224
+ { stateMutability: "nonpayable", type: "constructor", inputs: [] },
8225
+ {
8226
+ stateMutability: "view",
8227
+ type: "function",
8228
+ inputs: [],
8229
+ name: "ETH_ADDRESS",
8230
+ outputs: [{ name: "", internalType: "address", type: "address" }]
8231
+ },
8232
+ {
8233
+ stateMutability: "view",
8234
+ type: "function",
8235
+ inputs: [],
8236
+ name: "MINIMUM_ERC20_PRICE",
8237
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
8238
+ },
8239
+ {
8240
+ stateMutability: "view",
8241
+ type: "function",
8242
+ inputs: [],
8243
+ name: "MINIMUM_ETH_PRICE",
8244
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
8245
+ },
8246
+ {
8247
+ stateMutability: "view",
8248
+ type: "function",
8249
+ inputs: [],
8250
+ name: "NAME",
8251
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8252
+ },
8253
+ {
8254
+ stateMutability: "view",
8255
+ type: "function",
8256
+ inputs: [],
8257
+ name: "VERSION",
8258
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8259
+ },
8260
+ {
8261
+ stateMutability: "view",
8262
+ type: "function",
8263
+ inputs: [],
8264
+ name: "authority",
8265
+ outputs: [{ name: "", internalType: "address", type: "address" }]
8266
+ },
8267
+ {
8268
+ stateMutability: "view",
8269
+ type: "function",
8270
+ inputs: [
8271
+ { name: "account", internalType: "address", type: "address" },
8272
+ { name: "id", internalType: "uint256", type: "uint256" }
8273
+ ],
8274
+ name: "balanceOf",
8275
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
8276
+ },
8277
+ {
8278
+ stateMutability: "view",
8279
+ type: "function",
8280
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
8281
+ name: "balanceOfAccount",
8282
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
8283
+ },
8284
+ {
8285
+ stateMutability: "view",
8286
+ type: "function",
8287
+ inputs: [
8288
+ { name: "accounts", internalType: "address[]", type: "address[]" },
8289
+ { name: "ids", internalType: "uint256[]", type: "uint256[]" }
8290
+ ],
8291
+ name: "balanceOfBatch",
8292
+ outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }]
8293
+ },
8294
+ {
8295
+ stateMutability: "view",
8296
+ type: "function",
8297
+ inputs: [],
8298
+ name: "contractURI",
8299
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8300
+ },
8301
+ {
8302
+ stateMutability: "nonpayable",
8303
+ type: "function",
8304
+ inputs: [
8305
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8306
+ {
8307
+ name: "tokenConfig",
8308
+ internalType: "struct TokenConfig",
8309
+ type: "tuple",
8310
+ components: [
8311
+ { name: "price", internalType: "uint256", type: "uint256" },
8312
+ { name: "tokenAddress", internalType: "address", type: "address" },
8313
+ { name: "redeemHandler", internalType: "address", type: "address" }
8314
+ ]
8315
+ }
8316
+ ],
8317
+ name: "createToken",
8318
+ outputs: []
8319
+ },
8320
+ {
8321
+ stateMutability: "view",
8322
+ type: "function",
8323
+ inputs: [],
8324
+ name: "eip712Domain",
8325
+ outputs: [
8326
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
8327
+ { name: "name", internalType: "string", type: "string" },
8328
+ { name: "version", internalType: "string", type: "string" },
8329
+ { name: "chainId", internalType: "uint256", type: "uint256" },
8330
+ { name: "verifyingContract", internalType: "address", type: "address" },
8331
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
8332
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
8333
+ ]
8334
+ },
8335
+ {
8336
+ stateMutability: "view",
8337
+ type: "function",
8338
+ inputs: [],
8339
+ name: "getManager",
8340
+ outputs: [{ name: "", internalType: "address", type: "address" }]
8341
+ },
8342
+ {
8343
+ stateMutability: "view",
8344
+ type: "function",
8345
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
8346
+ name: "getTokenConfig",
8347
+ outputs: [
8348
+ {
8349
+ name: "",
8350
+ internalType: "struct TokenConfig",
8351
+ type: "tuple",
8352
+ components: [
8353
+ { name: "price", internalType: "uint256", type: "uint256" },
8354
+ { name: "tokenAddress", internalType: "address", type: "address" },
8355
+ { name: "redeemHandler", internalType: "address", type: "address" }
8356
+ ]
8357
+ }
8358
+ ]
8359
+ },
8360
+ {
8361
+ stateMutability: "view",
8362
+ type: "function",
8363
+ inputs: [
8364
+ {
8365
+ name: "permit",
8366
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
8367
+ type: "tuple",
8368
+ components: [
8369
+ { name: "owner", internalType: "address", type: "address" },
8370
+ { name: "to", internalType: "address", type: "address" },
8371
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
8372
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
8373
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8374
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8375
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8376
+ ]
8377
+ }
8378
+ ],
8379
+ name: "hashPermitBatch",
8380
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
8381
+ },
8382
+ {
8383
+ stateMutability: "view",
8384
+ type: "function",
8385
+ inputs: [
8386
+ {
8387
+ name: "permit",
8388
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
8389
+ type: "tuple",
8390
+ components: [
8391
+ { name: "owner", internalType: "address", type: "address" },
8392
+ { name: "to", internalType: "address", type: "address" },
8393
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8394
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8395
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8396
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8397
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8398
+ ]
8399
+ }
8400
+ ],
8401
+ name: "hashPermitSingle",
8402
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
8403
+ },
8404
+ {
8405
+ stateMutability: "view",
8406
+ type: "function",
8407
+ inputs: [
8408
+ { name: "account", internalType: "address", type: "address" },
8409
+ { name: "operator", internalType: "address", type: "address" }
8410
+ ],
8411
+ name: "isApprovedForAll",
8412
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8413
+ },
8414
+ {
8415
+ stateMutability: "view",
8416
+ type: "function",
8417
+ inputs: [],
8418
+ name: "isConsumingScheduledOp",
8419
+ outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
8420
+ },
8421
+ {
8422
+ stateMutability: "view",
8423
+ type: "function",
8424
+ inputs: [
8425
+ {
8426
+ name: "permit",
8427
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
8428
+ type: "tuple",
8429
+ components: [
8430
+ { name: "owner", internalType: "address", type: "address" },
8431
+ { name: "to", internalType: "address", type: "address" },
8432
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
8433
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
8434
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8435
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8436
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8437
+ ]
8438
+ },
8439
+ { name: "signature", internalType: "bytes", type: "bytes" }
8440
+ ],
8441
+ name: "isValidSignatureTransferBatch",
8442
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8443
+ },
8444
+ {
8445
+ stateMutability: "view",
8446
+ type: "function",
8447
+ inputs: [
8448
+ {
8449
+ name: "permit",
8450
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
8451
+ type: "tuple",
8452
+ components: [
8453
+ { name: "owner", internalType: "address", type: "address" },
8454
+ { name: "to", internalType: "address", type: "address" },
8455
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8456
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8457
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8458
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8459
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8460
+ ]
8461
+ },
8462
+ { name: "signature", internalType: "bytes", type: "bytes" }
8463
+ ],
8464
+ name: "isValidSignatureTransferSingle",
8465
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8466
+ },
8467
+ {
8468
+ stateMutability: "nonpayable",
8469
+ type: "function",
8470
+ inputs: [
8471
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8472
+ { name: "tokenAddress", internalType: "address", type: "address" },
8473
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8474
+ { name: "recipient", internalType: "address", type: "address" },
8475
+ { name: "data", internalType: "bytes", type: "bytes" }
8476
+ ],
8477
+ name: "mintTokenWithERC20",
8478
+ outputs: []
8479
+ },
8480
+ {
8481
+ stateMutability: "payable",
8482
+ type: "function",
8483
+ inputs: [
8484
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8485
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8486
+ { name: "recipient", internalType: "address", type: "address" },
8487
+ { name: "data", internalType: "bytes", type: "bytes" }
8488
+ ],
8489
+ name: "mintTokenWithEth",
8490
+ outputs: []
8491
+ },
8492
+ {
8493
+ stateMutability: "pure",
8494
+ type: "function",
8495
+ inputs: [],
8496
+ name: "name",
8497
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8498
+ },
8499
+ {
8500
+ stateMutability: "view",
8501
+ type: "function",
8502
+ inputs: [
8503
+ { name: "owner", internalType: "address", type: "address" },
8504
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8505
+ ],
8506
+ name: "nonceUsed",
8507
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8508
+ },
8509
+ {
8510
+ stateMutability: "nonpayable",
8511
+ type: "function",
8512
+ inputs: [
8513
+ { name: "newContractURI", internalType: "string", type: "string" },
8514
+ { name: "newBaseURI", internalType: "string", type: "string" }
8515
+ ],
8516
+ name: "notifyURIsUpdated",
8517
+ outputs: []
8518
+ },
8519
+ {
8520
+ stateMutability: "nonpayable",
8521
+ type: "function",
8522
+ inputs: [
8523
+ { name: "newUri", internalType: "string", type: "string" },
8524
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
8525
+ ],
8526
+ name: "notifyUpdatedTokenURI",
8527
+ outputs: []
8528
+ },
8529
+ {
8530
+ stateMutability: "nonpayable",
8531
+ type: "function",
8532
+ inputs: [
8533
+ {
8534
+ name: "permit",
8535
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
8536
+ type: "tuple",
8537
+ components: [
8538
+ { name: "owner", internalType: "address", type: "address" },
8539
+ { name: "to", internalType: "address", type: "address" },
8540
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8541
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8542
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8543
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8544
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8545
+ ]
8546
+ },
8547
+ { name: "signature", internalType: "bytes", type: "bytes" }
8548
+ ],
8549
+ name: "permitSafeTransfer",
8550
+ outputs: []
8551
+ },
8552
+ {
8553
+ stateMutability: "nonpayable",
8554
+ type: "function",
8555
+ inputs: [
8556
+ {
8557
+ name: "permit",
8558
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
8559
+ type: "tuple",
8560
+ components: [
8561
+ { name: "owner", internalType: "address", type: "address" },
8562
+ { name: "to", internalType: "address", type: "address" },
8563
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
8564
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
8565
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8566
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8567
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8568
+ ]
8569
+ },
8570
+ { name: "signature", internalType: "bytes", type: "bytes" }
8571
+ ],
8572
+ name: "permitSafeTransferBatch",
8573
+ outputs: []
8574
+ },
8575
+ {
8576
+ stateMutability: "nonpayable",
8577
+ type: "function",
8578
+ inputs: [
8579
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8580
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8581
+ { name: "recipient", internalType: "address", type: "address" }
8582
+ ],
8583
+ name: "redeem",
8584
+ outputs: [
8585
+ {
8586
+ name: "",
8587
+ internalType: "struct Redemption",
8588
+ type: "tuple",
8589
+ components: [
8590
+ { name: "tokenAddress", internalType: "address", type: "address" },
8591
+ { name: "valueRedeemed", internalType: "uint256", type: "uint256" }
8592
+ ]
8593
+ }
8594
+ ]
8595
+ },
8596
+ {
8597
+ stateMutability: "nonpayable",
8598
+ type: "function",
8599
+ inputs: [
8600
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
8601
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
8602
+ { name: "recipient", internalType: "address", type: "address" }
8603
+ ],
8604
+ name: "redeemBatch",
8605
+ outputs: [
8606
+ {
8607
+ name: "redemptions",
8608
+ internalType: "struct Redemption[]",
8609
+ type: "tuple[]",
8610
+ components: [
8611
+ { name: "tokenAddress", internalType: "address", type: "address" },
8612
+ { name: "valueRedeemed", internalType: "uint256", type: "uint256" }
8613
+ ]
8614
+ }
8615
+ ]
8616
+ },
8617
+ {
8618
+ stateMutability: "nonpayable",
8619
+ type: "function",
8620
+ inputs: [
8621
+ { name: "from", internalType: "address", type: "address" },
8622
+ { name: "to", internalType: "address", type: "address" },
8623
+ { name: "ids", internalType: "uint256[]", type: "uint256[]" },
8624
+ { name: "values", internalType: "uint256[]", type: "uint256[]" },
8625
+ { name: "data", internalType: "bytes", type: "bytes" }
8626
+ ],
8627
+ name: "safeBatchTransferFrom",
8628
+ outputs: []
8629
+ },
8630
+ {
8631
+ stateMutability: "nonpayable",
8632
+ type: "function",
8633
+ inputs: [
8634
+ { name: "from", internalType: "address", type: "address" },
8635
+ { name: "to", internalType: "address", type: "address" },
8636
+ { name: "id", internalType: "uint256", type: "uint256" },
8637
+ { name: "value", internalType: "uint256", type: "uint256" },
8638
+ { name: "data", internalType: "bytes", type: "bytes" }
8639
+ ],
8640
+ name: "safeTransferFrom",
8641
+ outputs: []
8642
+ },
8643
+ {
8644
+ stateMutability: "nonpayable",
8645
+ type: "function",
8646
+ inputs: [
8647
+ { name: "operator", internalType: "address", type: "address" },
8648
+ { name: "approved", internalType: "bool", type: "bool" }
8649
+ ],
8650
+ name: "setApprovalForAll",
8651
+ outputs: []
8652
+ },
8653
+ {
8654
+ stateMutability: "nonpayable",
8655
+ type: "function",
8656
+ inputs: [
8657
+ { name: "newAuthority", internalType: "address", type: "address" }
8658
+ ],
8659
+ name: "setAuthority",
8660
+ outputs: []
8661
+ },
8662
+ {
8663
+ stateMutability: "view",
8664
+ type: "function",
8665
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
8666
+ name: "supportsInterface",
8667
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8668
+ },
8669
+ {
8670
+ stateMutability: "pure",
8671
+ type: "function",
8672
+ inputs: [],
8673
+ name: "symbol",
8674
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8675
+ },
8676
+ {
8677
+ stateMutability: "view",
8678
+ type: "function",
8679
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
8680
+ name: "tokenExists",
8681
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8682
+ },
8683
+ {
8684
+ stateMutability: "view",
8685
+ type: "function",
8686
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
8687
+ name: "tokenPrice",
8688
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
8689
+ },
8690
+ {
8691
+ stateMutability: "view",
8692
+ type: "function",
8693
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
8694
+ name: "uri",
8695
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8696
+ },
8697
+ {
8698
+ type: "event",
8699
+ anonymous: false,
8700
+ inputs: [
8701
+ {
8702
+ name: "account",
8703
+ internalType: "address",
8704
+ type: "address",
8705
+ indexed: true
8706
+ },
8707
+ {
8708
+ name: "operator",
8709
+ internalType: "address",
8710
+ type: "address",
8711
+ indexed: true
8712
+ },
8713
+ { name: "approved", internalType: "bool", type: "bool", indexed: false }
8714
+ ],
8715
+ name: "ApprovalForAll"
8716
+ },
8717
+ {
8718
+ type: "event",
8719
+ anonymous: false,
8720
+ inputs: [
8721
+ {
8722
+ name: "authority",
8723
+ internalType: "address",
8724
+ type: "address",
8725
+ indexed: false
8726
+ }
8727
+ ],
8728
+ name: "AuthorityUpdated"
8729
+ },
8730
+ { type: "event", anonymous: false, inputs: [], name: "ContractURIUpdated" },
8731
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
8732
+ {
8733
+ type: "event",
8734
+ anonymous: false,
8735
+ inputs: [
8736
+ {
8737
+ name: "tokenId",
8738
+ internalType: "uint256",
8739
+ type: "uint256",
8740
+ indexed: true
8741
+ },
8742
+ {
8743
+ name: "price",
8744
+ internalType: "uint256",
8745
+ type: "uint256",
8746
+ indexed: true
8747
+ },
8748
+ {
8749
+ name: "tokenAddress",
8750
+ internalType: "address",
8751
+ type: "address",
8752
+ indexed: true
8753
+ }
8754
+ ],
8755
+ name: "TokenCreated"
8756
+ },
8757
+ {
8758
+ type: "event",
8759
+ anonymous: false,
8760
+ inputs: [
8761
+ {
8762
+ name: "operator",
8763
+ internalType: "address",
8764
+ type: "address",
8765
+ indexed: true
8766
+ },
8767
+ { name: "from", internalType: "address", type: "address", indexed: true },
8768
+ { name: "to", internalType: "address", type: "address", indexed: true },
8769
+ {
8770
+ name: "ids",
8771
+ internalType: "uint256[]",
8772
+ type: "uint256[]",
8773
+ indexed: false
8774
+ },
8775
+ {
8776
+ name: "values",
8777
+ internalType: "uint256[]",
8778
+ type: "uint256[]",
8779
+ indexed: false
8780
+ }
8781
+ ],
8782
+ name: "TransferBatch"
8783
+ },
8784
+ {
8785
+ type: "event",
8786
+ anonymous: false,
8787
+ inputs: [
8788
+ {
8789
+ name: "operator",
8790
+ internalType: "address",
8791
+ type: "address",
8792
+ indexed: true
8793
+ },
8794
+ { name: "from", internalType: "address", type: "address", indexed: true },
8795
+ { name: "to", internalType: "address", type: "address", indexed: true },
8796
+ { name: "id", internalType: "uint256", type: "uint256", indexed: false },
8797
+ {
8798
+ name: "value",
8799
+ internalType: "uint256",
8800
+ type: "uint256",
8801
+ indexed: false
8802
+ }
8803
+ ],
8804
+ name: "TransferSingle"
8805
+ },
8806
+ {
8807
+ type: "event",
8808
+ anonymous: false,
8809
+ inputs: [
8810
+ { name: "value", internalType: "string", type: "string", indexed: false },
8811
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true }
8812
+ ],
8813
+ name: "URI"
8814
+ },
8815
+ {
8816
+ type: "event",
8817
+ anonymous: false,
8818
+ inputs: [
8819
+ {
8820
+ name: "contractURI",
8821
+ internalType: "string",
8822
+ type: "string",
8823
+ indexed: false
8824
+ },
8825
+ {
8826
+ name: "baseURI",
8827
+ internalType: "string",
8828
+ type: "string",
8829
+ indexed: false
8830
+ }
8831
+ ],
8832
+ name: "URIsUpdated"
8833
+ },
8834
+ {
8835
+ type: "error",
8836
+ inputs: [{ name: "authority", internalType: "address", type: "address" }],
8837
+ name: "AccessManagedInvalidAuthority"
8838
+ },
8839
+ {
8840
+ type: "error",
8841
+ inputs: [
8842
+ { name: "caller", internalType: "address", type: "address" },
8843
+ { name: "delay", internalType: "uint32", type: "uint32" }
8844
+ ],
8845
+ name: "AccessManagedRequiredDelay"
8846
+ },
8847
+ {
8848
+ type: "error",
8849
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
8850
+ name: "AccessManagedUnauthorized"
8851
+ },
8852
+ {
8853
+ type: "error",
8854
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
8855
+ name: "AddressEmptyCode"
8856
+ },
8857
+ {
8858
+ type: "error",
8859
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
8860
+ name: "AddressInsufficientBalance"
8861
+ },
8862
+ {
8863
+ type: "error",
8864
+ inputs: [
8865
+ { name: "lengthA", internalType: "uint256", type: "uint256" },
8866
+ { name: "lengthB", internalType: "uint256", type: "uint256" }
8867
+ ],
8868
+ name: "ArrayLengthMismatch"
8869
+ },
8870
+ {
8871
+ type: "error",
8872
+ inputs: [{ name: "returnData", internalType: "bytes", type: "bytes" }],
8873
+ name: "CallFailed"
8874
+ },
8875
+ {
8876
+ type: "error",
8877
+ inputs: [
8878
+ { name: "sender", internalType: "address", type: "address" },
8879
+ { name: "balance", internalType: "uint256", type: "uint256" },
8880
+ { name: "needed", internalType: "uint256", type: "uint256" },
8881
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
8882
+ ],
8883
+ name: "ERC1155InsufficientBalance"
8884
+ },
8885
+ {
8886
+ type: "error",
8887
+ inputs: [{ name: "approver", internalType: "address", type: "address" }],
8888
+ name: "ERC1155InvalidApprover"
8889
+ },
8890
+ {
8891
+ type: "error",
8892
+ inputs: [
8893
+ { name: "idsLength", internalType: "uint256", type: "uint256" },
8894
+ { name: "valuesLength", internalType: "uint256", type: "uint256" }
8895
+ ],
8896
+ name: "ERC1155InvalidArrayLength"
8897
+ },
8898
+ {
8899
+ type: "error",
8900
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
8901
+ name: "ERC1155InvalidOperator"
8902
+ },
8903
+ {
8904
+ type: "error",
8905
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
8906
+ name: "ERC1155InvalidReceiver"
8907
+ },
8908
+ {
8909
+ type: "error",
8910
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
8911
+ name: "ERC1155InvalidSender"
8912
+ },
8913
+ {
8914
+ type: "error",
8915
+ inputs: [
8916
+ { name: "operator", internalType: "address", type: "address" },
8917
+ { name: "owner", internalType: "address", type: "address" }
8918
+ ],
8919
+ name: "ERC1155MissingApprovalForAll"
8920
+ },
8921
+ { type: "error", inputs: [], name: "ERC20TransferSlippage" },
8922
+ {
8923
+ type: "error",
8924
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
8925
+ name: "ERC2612ExpiredSignature"
8926
+ },
8927
+ { type: "error", inputs: [], name: "ETHTransferFailed" },
8928
+ { type: "error", inputs: [], name: "FailedInnerCall" },
8929
+ { type: "error", inputs: [], name: "IncorrectAmountSent" },
8930
+ {
8931
+ type: "error",
8932
+ inputs: [
8933
+ { name: "account", internalType: "address", type: "address" },
8934
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
8935
+ ],
8936
+ name: "InvalidAccountNonce"
8937
+ },
8938
+ { type: "error", inputs: [], name: "InvalidRecipient" },
8939
+ { type: "error", inputs: [], name: "InvalidShortString" },
8940
+ { type: "error", inputs: [], name: "InvalidSignature" },
8941
+ { type: "error", inputs: [], name: "InvalidTokenPrice" },
8942
+ { type: "error", inputs: [], name: "NoUriForNonexistentToken" },
8943
+ {
8944
+ type: "error",
8945
+ inputs: [{ name: "handler", internalType: "address", type: "address" }],
8946
+ name: "NotARedeemHandler"
8947
+ },
8948
+ {
8949
+ type: "error",
8950
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
8951
+ name: "SafeERC20FailedOperation"
8952
+ },
8953
+ {
8954
+ type: "error",
8955
+ inputs: [{ name: "str", internalType: "string", type: "string" }],
8956
+ name: "StringTooLong"
8957
+ },
8958
+ { type: "error", inputs: [], name: "TokenAlreadyCreated" },
8959
+ { type: "error", inputs: [], name: "TokenDoesNotExist" },
8960
+ {
8961
+ type: "error",
8962
+ inputs: [
8963
+ { name: "storedTokenAddress", internalType: "address", type: "address" },
8964
+ {
8965
+ name: "expectedTokenAddress",
8966
+ internalType: "address",
8967
+ type: "address"
8968
+ }
8969
+ ],
8970
+ name: "TokenMismatch"
8971
+ },
8972
+ { type: "error", inputs: [], name: "TokenNotMintable" }
8973
+ ];
8974
+ var zoraSparks1155Address = {
8975
+ 7777777: "0x7777777D1EEdCa69D2f2b85F4012E6045d162B5E",
8976
+ 999999999: "0x7777777D1EEdCa69D2f2b85F4012E6045d162B5E"
8977
+ };
8978
+ var zoraSparks1155Config = {
8979
+ address: zoraSparks1155Address,
8980
+ abi: zoraSparks1155ABI
8981
+ };
8982
+ var zoraSparksManagerImplABI = [
8983
+ { stateMutability: "nonpayable", type: "constructor", inputs: [] },
8984
+ {
8985
+ stateMutability: "view",
8986
+ type: "function",
8987
+ inputs: [],
8988
+ name: "UPGRADE_INTERFACE_VERSION",
8989
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8990
+ },
8991
+ {
8992
+ stateMutability: "nonpayable",
8993
+ type: "function",
8994
+ inputs: [],
8995
+ name: "acceptOwnership",
8996
+ outputs: []
8997
+ },
8998
+ {
8999
+ stateMutability: "view",
9000
+ type: "function",
9001
+ inputs: [
9002
+ { name: "caller", internalType: "address", type: "address" },
9003
+ { name: "", internalType: "address", type: "address" },
9004
+ { name: "", internalType: "bytes4", type: "bytes4" }
9005
+ ],
9006
+ name: "canCall",
9007
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
9008
+ },
9009
+ {
9010
+ stateMutability: "pure",
9011
+ type: "function",
9012
+ inputs: [],
9013
+ name: "contractName",
9014
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9015
+ },
9016
+ {
9017
+ stateMutability: "view",
9018
+ type: "function",
9019
+ inputs: [],
9020
+ name: "contractURI",
9021
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9022
+ },
9023
+ {
9024
+ stateMutability: "pure",
9025
+ type: "function",
9026
+ inputs: [],
9027
+ name: "contractVersion",
9028
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9029
+ },
9030
+ {
9031
+ stateMutability: "nonpayable",
9032
+ type: "function",
9033
+ inputs: [
9034
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
9035
+ {
9036
+ name: "tokenConfig",
9037
+ internalType: "struct TokenConfig",
9038
+ type: "tuple",
9039
+ components: [
9040
+ { name: "price", internalType: "uint256", type: "uint256" },
9041
+ { name: "tokenAddress", internalType: "address", type: "address" },
9042
+ { name: "redeemHandler", internalType: "address", type: "address" }
9043
+ ]
9044
+ }
9045
+ ],
9046
+ name: "createToken",
9047
+ outputs: []
9048
+ },
9049
+ {
9050
+ stateMutability: "view",
9051
+ type: "function",
9052
+ inputs: [],
9053
+ name: "implementation",
9054
+ outputs: [{ name: "", internalType: "address", type: "address" }]
9055
+ },
9056
+ {
9057
+ stateMutability: "nonpayable",
9058
+ type: "function",
9059
+ inputs: [
9060
+ { name: "defaultOwner", internalType: "address", type: "address" },
9061
+ { name: "zoraSparksSalt", internalType: "bytes32", type: "bytes32" },
9062
+ { name: "zoraSparksCreationCode", internalType: "bytes", type: "bytes" },
9063
+ { name: "initialEthTokenId", internalType: "uint256", type: "uint256" },
9064
+ {
9065
+ name: "initialEthTokenPrice",
9066
+ internalType: "uint256",
9067
+ type: "uint256"
9068
+ },
9069
+ { name: "newBaseURI", internalType: "string", type: "string" },
9070
+ { name: "newContractURI", internalType: "string", type: "string" }
9071
+ ],
9072
+ name: "initialize",
9073
+ outputs: [
9074
+ {
9075
+ name: "sparks",
9076
+ internalType: "contract IZoraSparks1155",
9077
+ type: "address"
9078
+ }
9079
+ ]
9080
+ },
9081
+ {
9082
+ stateMutability: "nonpayable",
9083
+ type: "function",
9084
+ inputs: [
9085
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
9086
+ { name: "tokenAddress", internalType: "address", type: "address" },
9087
+ { name: "quantity", internalType: "uint256", type: "uint256" },
9088
+ { name: "recipient", internalType: "address", type: "address" }
9089
+ ],
9090
+ name: "mintWithERC20",
9091
+ outputs: []
9092
+ },
9093
+ {
9094
+ stateMutability: "payable",
9095
+ type: "function",
9096
+ inputs: [
9097
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
9098
+ { name: "quantity", internalType: "uint256", type: "uint256" },
9099
+ { name: "recipient", internalType: "address", type: "address" }
9100
+ ],
9101
+ name: "mintWithEth",
9102
+ outputs: []
9103
+ },
9104
+ {
9105
+ stateMutability: "view",
9106
+ type: "function",
9107
+ inputs: [],
9108
+ name: "owner",
9109
+ outputs: [{ name: "", internalType: "address", type: "address" }]
9110
+ },
9111
+ {
9112
+ stateMutability: "view",
9113
+ type: "function",
9114
+ inputs: [],
9115
+ name: "pendingOwner",
9116
+ outputs: [{ name: "", internalType: "address", type: "address" }]
9117
+ },
9118
+ {
9119
+ stateMutability: "view",
9120
+ type: "function",
9121
+ inputs: [],
9122
+ name: "proxiableUUID",
9123
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
9124
+ },
9125
+ {
9126
+ stateMutability: "nonpayable",
9127
+ type: "function",
9128
+ inputs: [],
9129
+ name: "renounceOwnership",
9130
+ outputs: []
9131
+ },
9132
+ {
9133
+ stateMutability: "nonpayable",
9134
+ type: "function",
9135
+ inputs: [
9136
+ { name: "newContractURI", internalType: "string", type: "string" },
9137
+ { name: "newBaseURI", internalType: "string", type: "string" },
9138
+ {
9139
+ name: "tokenIdsToNotifyUpdate",
9140
+ internalType: "uint256[]",
9141
+ type: "uint256[]"
9142
+ }
9143
+ ],
9144
+ name: "setMetadataURIs",
9145
+ outputs: []
9146
+ },
9147
+ {
9148
+ stateMutability: "nonpayable",
9149
+ type: "function",
9150
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
9151
+ name: "transferOwnership",
9152
+ outputs: []
9153
+ },
9154
+ {
9155
+ stateMutability: "payable",
9156
+ type: "function",
9157
+ inputs: [
9158
+ { name: "newImplementation", internalType: "address", type: "address" },
9159
+ { name: "data", internalType: "bytes", type: "bytes" }
9160
+ ],
9161
+ name: "upgradeToAndCall",
9162
+ outputs: []
9163
+ },
9164
+ {
9165
+ stateMutability: "view",
9166
+ type: "function",
9167
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
9168
+ name: "uri",
9169
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9170
+ },
9171
+ {
9172
+ stateMutability: "view",
9173
+ type: "function",
9174
+ inputs: [],
9175
+ name: "zoraSparks1155",
9176
+ outputs: [
9177
+ { name: "", internalType: "contract IZoraSparks1155", type: "address" }
9178
+ ]
9179
+ },
9180
+ {
9181
+ type: "event",
9182
+ anonymous: false,
9183
+ inputs: [
9184
+ {
9185
+ name: "version",
9186
+ internalType: "uint64",
9187
+ type: "uint64",
9188
+ indexed: false
9189
+ }
9190
+ ],
9191
+ name: "Initialized"
9192
+ },
9193
+ {
9194
+ type: "event",
9195
+ anonymous: false,
9196
+ inputs: [
9197
+ {
9198
+ name: "previousOwner",
9199
+ internalType: "address",
9200
+ type: "address",
9201
+ indexed: true
9202
+ },
9203
+ {
9204
+ name: "newOwner",
9205
+ internalType: "address",
9206
+ type: "address",
9207
+ indexed: true
9208
+ }
9209
+ ],
9210
+ name: "OwnershipTransferStarted"
9211
+ },
9212
+ {
9213
+ type: "event",
9214
+ anonymous: false,
9215
+ inputs: [
9216
+ {
9217
+ name: "previousOwner",
9218
+ internalType: "address",
9219
+ type: "address",
9220
+ indexed: true
9221
+ },
9222
+ {
9223
+ name: "newOwner",
9224
+ internalType: "address",
9225
+ type: "address",
9226
+ indexed: true
9227
+ }
9228
+ ],
9229
+ name: "OwnershipTransferred"
9230
+ },
9231
+ {
9232
+ type: "event",
9233
+ anonymous: false,
9234
+ inputs: [
9235
+ {
9236
+ name: "contractURI",
9237
+ internalType: "string",
9238
+ type: "string",
9239
+ indexed: false
9240
+ },
9241
+ {
9242
+ name: "baseURI",
9243
+ internalType: "string",
9244
+ type: "string",
9245
+ indexed: false
9246
+ }
9247
+ ],
9248
+ name: "URIsUpdated"
9249
+ },
9250
+ {
9251
+ type: "event",
9252
+ anonymous: false,
9253
+ inputs: [
9254
+ {
9255
+ name: "implementation",
9256
+ internalType: "address",
9257
+ type: "address",
9258
+ indexed: true
9259
+ }
9260
+ ],
9261
+ name: "Upgraded"
9262
+ },
9263
+ {
9264
+ type: "error",
9265
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
9266
+ name: "AddressEmptyCode"
9267
+ },
9268
+ {
9269
+ type: "error",
9270
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
9271
+ name: "AddressInsufficientBalance"
9272
+ },
9273
+ {
9274
+ type: "error",
9275
+ inputs: [
9276
+ { name: "lengthA", internalType: "uint256", type: "uint256" },
9277
+ { name: "lengthB", internalType: "uint256", type: "uint256" }
9278
+ ],
9279
+ name: "ArrayLengthMismatch"
9280
+ },
9281
+ { type: "error", inputs: [], name: "Create2EmptyBytecode" },
9282
+ { type: "error", inputs: [], name: "Create2FailedDeployment" },
9283
+ {
9284
+ type: "error",
9285
+ inputs: [
9286
+ { name: "balance", internalType: "uint256", type: "uint256" },
9287
+ { name: "needed", internalType: "uint256", type: "uint256" }
9288
+ ],
9289
+ name: "Create2InsufficientBalance"
9290
+ },
9291
+ { type: "error", inputs: [], name: "DefaultOwnerCannotBeZero" },
9292
+ {
9293
+ type: "error",
9294
+ inputs: [
9295
+ { name: "implementation", internalType: "address", type: "address" }
9296
+ ],
9297
+ name: "ERC1967InvalidImplementation"
9298
+ },
9299
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
9300
+ { type: "error", inputs: [], name: "ERC20TransferSlippage" },
9301
+ { type: "error", inputs: [], name: "ETHTransferFailed" },
9302
+ { type: "error", inputs: [], name: "FailedInnerCall" },
9303
+ { type: "error", inputs: [], name: "IncorrectAmountSent" },
9304
+ { type: "error", inputs: [], name: "InvalidAdminAction" },
9305
+ { type: "error", inputs: [], name: "InvalidInitialization" },
9306
+ { type: "error", inputs: [], name: "InvalidOwnerForAssociatedZoraSparks" },
9307
+ { type: "error", inputs: [], name: "InvalidRecipient" },
9308
+ { type: "error", inputs: [], name: "InvalidTokenPrice" },
9309
+ { type: "error", inputs: [], name: "NoUriForNonexistentToken" },
9310
+ {
9311
+ type: "error",
9312
+ inputs: [{ name: "handler", internalType: "address", type: "address" }],
9313
+ name: "NotARedeemHandler"
9314
+ },
9315
+ { type: "error", inputs: [], name: "NotInitializing" },
9316
+ {
9317
+ type: "error",
9318
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
9319
+ name: "OwnableInvalidOwner"
9320
+ },
9321
+ {
9322
+ type: "error",
9323
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
9324
+ name: "OwnableUnauthorizedAccount"
9325
+ },
9326
+ { type: "error", inputs: [], name: "PremintExecutorCannotBeZero" },
9327
+ { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
9328
+ {
9329
+ type: "error",
9330
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
9331
+ name: "SafeERC20FailedOperation"
9332
+ },
9333
+ { type: "error", inputs: [], name: "TokenAlreadyCreated" },
9334
+ { type: "error", inputs: [], name: "TokenDoesNotExist" },
9335
+ {
9336
+ type: "error",
9337
+ inputs: [
9338
+ { name: "storedTokenAddress", internalType: "address", type: "address" },
9339
+ {
9340
+ name: "expectedTokenAddress",
9341
+ internalType: "address",
9342
+ type: "address"
9343
+ }
9344
+ ],
9345
+ name: "TokenMismatch"
9346
+ },
9347
+ { type: "error", inputs: [], name: "TokenNotMintable" },
9348
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
9349
+ {
9350
+ type: "error",
9351
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
9352
+ name: "UUPSUnsupportedProxiableUUID"
9353
+ },
9354
+ {
9355
+ type: "error",
9356
+ inputs: [
9357
+ { name: "expected", internalType: "string", type: "string" },
9358
+ { name: "actual", internalType: "string", type: "string" }
9359
+ ],
9360
+ name: "UpgradeToMismatchedContractName"
9361
+ }
9362
+ ];
9363
+ var zoraSparksManagerImplAddress = {
9364
+ 7777777: "0x7777777402d71e0D39398F96ef2B789eCc8715d4",
9365
+ 999999999: "0x7777777402d71e0D39398F96ef2B789eCc8715d4"
9366
+ };
9367
+ var zoraSparksManagerImplConfig = {
9368
+ address: zoraSparksManagerImplAddress,
9369
+ abi: zoraSparksManagerImplABI
9370
+ };
9371
+
9372
+ // ../../node_modules/viem/_esm/index.js
9373
+ init_encodeAbiParameters();
9374
+ init_getAbiItem();
9375
+ init_toHex();
9376
+ init_keccak256();
9377
+
9378
+ // src/types.ts
9379
+ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
9380
+ PremintConfigVersion2["V1"] = "1";
9381
+ PremintConfigVersion2["V2"] = "2";
9382
+ PremintConfigVersion2["V3"] = "3";
9383
+ return PremintConfigVersion2;
9384
+ })(PremintConfigVersion || {});
9385
+
9386
+ // src/typedData.ts
9387
+ var premintTypedDataDomain = ({
9388
+ chainId,
9389
+ version: version2,
9390
+ creator1155Contract: verifyingContract
9391
+ }) => ({
9392
+ chainId,
9393
+ name: "Preminter",
9394
+ version: version2,
8311
9395
  verifyingContract
8312
9396
  });
8313
9397
  var premintV1TypedDataType = {
@@ -8753,10 +9837,10 @@ var addresses = {
8753
9837
  timestamp: 1709234007
8754
9838
  },
8755
9839
  999999999: {
8756
- CONTRACT_1155_IMPL: "0x1120b10c14d38C85B610292170a784784ED9658E",
8757
- CONTRACT_1155_IMPL_VERSION: "2.10.1",
9840
+ CONTRACT_1155_IMPL: "0xD98e9AF77D87f69b006FA1bE123632e9cc5419F8",
9841
+ CONTRACT_1155_IMPL_VERSION: "2.12.0-SPARKS.0",
8758
9842
  ERC20_MINTER: "0x8Ec7f068A77fa5FC1925110f82381374BA054Ff2",
8759
- FACTORY_IMPL: "0x74Fc9A34AebAc1D78Aad0C85FAfcDAbD972FC1B0",
9843
+ FACTORY_IMPL: "0x7F6f98a90B604b65D192652096861B92323B1a69",
8760
9844
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
8761
9845
  FIXED_PRICE_SALE_STRATEGY: "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A",
8762
9846
  MERKLE_MINT_SALE_STRATEGY: "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c",
@@ -8764,13 +9848,13 @@ var addresses = {
8764
9848
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
8765
9849
  REDEEM_MINTER_FACTORY: "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
8766
9850
  UPGRADE_GATE: "0x0000000000000000000000000000000000000000",
8767
- timestamp: 1717181506
9851
+ timestamp: 1720743447
8768
9852
  }
8769
9853
  };
8770
9854
 
8771
- // src/generated/mints.ts
8772
- var mints_exports = {};
8773
- __export(mints_exports, {
9855
+ // src/generated/sparks.ts
9856
+ var sparks_exports = {};
9857
+ __export(sparks_exports, {
8774
9858
  addresses: () => addresses2,
8775
9859
  chainConfigs: () => chainConfigs2
8776
9860
  });
@@ -8789,55 +9873,15 @@ var chainConfigs2 = {
8789
9873
  999999999: { PROXY_ADMIN: "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E" }
8790
9874
  };
8791
9875
  var addresses2 = {
8792
- 1: {
8793
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
8794
- MINTS_MANAGER_IMPL: "0x32C49770cC95F6A606Ae5a22A0a70e8F8ff64C75",
8795
- MINTS_MANAGER_IMPL_VERSION: "0.1.3"
8796
- },
8797
- 10: {
8798
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
8799
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8800
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
8801
- },
8802
- 8453: {
8803
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
8804
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8805
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
8806
- },
8807
- 42161: {
8808
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
8809
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8810
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
8811
- },
8812
- 81457: {
8813
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
8814
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8815
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
8816
- },
8817
- 84532: {
8818
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
8819
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8820
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
8821
- },
8822
- 421614: {
8823
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
8824
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8825
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
8826
- },
8827
9876
  7777777: {
8828
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
8829
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8830
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
8831
- },
8832
- 11155111: {
8833
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
8834
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8835
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
9877
+ SPARKS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
9878
+ SPARKS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
9879
+ SPARKS_MANAGER_IMPL_VERSION: "0.1.4"
8836
9880
  },
8837
9881
  999999999: {
8838
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
8839
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8840
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
9882
+ SPARKS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
9883
+ SPARKS_MANAGER_IMPL: "0xf7D8d07267E840aE466E5f2fe8b089F4DE79c7da",
9884
+ SPARKS_MANAGER_IMPL_VERSION: "0.1.4"
8841
9885
  }
8842
9886
  };
8843
9887
  // Annotate the CommonJS export names for ESM import in node:
@@ -8850,10 +9894,6 @@ var addresses2 = {
8850
9894
  erc20MinterConfig,
8851
9895
  iPremintDefinitionsABI,
8852
9896
  iUnwrapAndForwardActionABI,
8853
- mints,
8854
- mintsEthUnwrapperAndCallerABI,
8855
- mintsEthUnwrapperAndCallerAddress,
8856
- mintsEthUnwrapperAndCallerConfig,
8857
9897
  mintsSafeTransferBatchTypedDataDefinition,
8858
9898
  mintsSafeTransferTypedDataDefinition,
8859
9899
  premintTypedDataDefinition,
@@ -8862,6 +9902,10 @@ var addresses2 = {
8862
9902
  protocolRewardsABI,
8863
9903
  protocolRewardsAddress,
8864
9904
  protocolRewardsConfig,
9905
+ sparks,
9906
+ sparksEthUnwrapperAndCallerABI,
9907
+ sparksEthUnwrapperAndCallerAddress,
9908
+ sparksEthUnwrapperAndCallerConfig,
8865
9909
  upgradeGateABI,
8866
9910
  upgradeGateAddress,
8867
9911
  upgradeGateConfig,
@@ -8886,7 +9930,13 @@ var addresses2 = {
8886
9930
  zoraMints1155Config,
8887
9931
  zoraMintsManagerImplABI,
8888
9932
  zoraMintsManagerImplAddress,
8889
- zoraMintsManagerImplConfig
9933
+ zoraMintsManagerImplConfig,
9934
+ zoraSparks1155ABI,
9935
+ zoraSparks1155Address,
9936
+ zoraSparks1155Config,
9937
+ zoraSparksManagerImplABI,
9938
+ zoraSparksManagerImplAddress,
9939
+ zoraSparksManagerImplConfig
8890
9940
  });
8891
9941
  /*! Bundled license information:
8892
9942