@zoralabs/protocol-deployments 0.1.13 → 0.2.0-SPARKS.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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,1232 @@ 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: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
8339
+ name: "getTokenConfig",
8340
+ outputs: [
8341
+ {
8342
+ name: "",
8343
+ internalType: "struct TokenConfig",
8344
+ type: "tuple",
8345
+ components: [
8346
+ { name: "price", internalType: "uint256", type: "uint256" },
8347
+ { name: "tokenAddress", internalType: "address", type: "address" },
8348
+ { name: "redeemHandler", internalType: "address", type: "address" }
8349
+ ]
8350
+ }
8351
+ ]
8352
+ },
8353
+ {
8354
+ stateMutability: "view",
8355
+ type: "function",
8356
+ inputs: [
8357
+ {
8358
+ name: "permit",
8359
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
8360
+ type: "tuple",
8361
+ components: [
8362
+ { name: "owner", internalType: "address", type: "address" },
8363
+ { name: "to", internalType: "address", type: "address" },
8364
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
8365
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
8366
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8367
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8368
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8369
+ ]
8370
+ }
8371
+ ],
8372
+ name: "hashPermitBatch",
8373
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
8374
+ },
8375
+ {
8376
+ stateMutability: "view",
8377
+ type: "function",
8378
+ inputs: [
8379
+ {
8380
+ name: "permit",
8381
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
8382
+ type: "tuple",
8383
+ components: [
8384
+ { name: "owner", internalType: "address", type: "address" },
8385
+ { name: "to", internalType: "address", type: "address" },
8386
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8387
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8388
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8389
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8390
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8391
+ ]
8392
+ }
8393
+ ],
8394
+ name: "hashPermitSingle",
8395
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
8396
+ },
8397
+ {
8398
+ stateMutability: "view",
8399
+ type: "function",
8400
+ inputs: [
8401
+ { name: "account", internalType: "address", type: "address" },
8402
+ { name: "operator", internalType: "address", type: "address" }
8403
+ ],
8404
+ name: "isApprovedForAll",
8405
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8406
+ },
8407
+ {
8408
+ stateMutability: "view",
8409
+ type: "function",
8410
+ inputs: [],
8411
+ name: "isConsumingScheduledOp",
8412
+ outputs: [{ name: "", internalType: "bytes4", type: "bytes4" }]
8413
+ },
8414
+ {
8415
+ stateMutability: "view",
8416
+ type: "function",
8417
+ inputs: [
8418
+ {
8419
+ name: "permit",
8420
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
8421
+ type: "tuple",
8422
+ components: [
8423
+ { name: "owner", internalType: "address", type: "address" },
8424
+ { name: "to", internalType: "address", type: "address" },
8425
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
8426
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
8427
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8428
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8429
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8430
+ ]
8431
+ },
8432
+ { name: "signature", internalType: "bytes", type: "bytes" }
8433
+ ],
8434
+ name: "isValidSignatureTransferBatch",
8435
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8436
+ },
8437
+ {
8438
+ stateMutability: "view",
8439
+ type: "function",
8440
+ inputs: [
8441
+ {
8442
+ name: "permit",
8443
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
8444
+ type: "tuple",
8445
+ components: [
8446
+ { name: "owner", internalType: "address", type: "address" },
8447
+ { name: "to", internalType: "address", type: "address" },
8448
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8449
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8450
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8451
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8452
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8453
+ ]
8454
+ },
8455
+ { name: "signature", internalType: "bytes", type: "bytes" }
8456
+ ],
8457
+ name: "isValidSignatureTransferSingle",
8458
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8459
+ },
8460
+ {
8461
+ stateMutability: "nonpayable",
8462
+ type: "function",
8463
+ inputs: [
8464
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8465
+ { name: "tokenAddress", internalType: "address", type: "address" },
8466
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8467
+ { name: "recipient", internalType: "address", type: "address" },
8468
+ { name: "data", internalType: "bytes", type: "bytes" }
8469
+ ],
8470
+ name: "mintTokenWithERC20",
8471
+ outputs: []
8472
+ },
8473
+ {
8474
+ stateMutability: "payable",
8475
+ type: "function",
8476
+ inputs: [
8477
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8478
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8479
+ { name: "recipient", internalType: "address", type: "address" },
8480
+ { name: "data", internalType: "bytes", type: "bytes" }
8481
+ ],
8482
+ name: "mintTokenWithEth",
8483
+ outputs: []
8484
+ },
8485
+ {
8486
+ stateMutability: "pure",
8487
+ type: "function",
8488
+ inputs: [],
8489
+ name: "name",
8490
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8491
+ },
8492
+ {
8493
+ stateMutability: "view",
8494
+ type: "function",
8495
+ inputs: [
8496
+ { name: "owner", internalType: "address", type: "address" },
8497
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8498
+ ],
8499
+ name: "nonceUsed",
8500
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8501
+ },
8502
+ {
8503
+ stateMutability: "nonpayable",
8504
+ type: "function",
8505
+ inputs: [
8506
+ { name: "newContractURI", internalType: "string", type: "string" },
8507
+ { name: "newBaseURI", internalType: "string", type: "string" }
8508
+ ],
8509
+ name: "notifyURIsUpdated",
8510
+ outputs: []
8511
+ },
8512
+ {
8513
+ stateMutability: "nonpayable",
8514
+ type: "function",
8515
+ inputs: [
8516
+ { name: "newUri", internalType: "string", type: "string" },
8517
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
8518
+ ],
8519
+ name: "notifyUpdatedTokenURI",
8520
+ outputs: []
8521
+ },
8522
+ {
8523
+ stateMutability: "nonpayable",
8524
+ type: "function",
8525
+ inputs: [
8526
+ {
8527
+ name: "permit",
8528
+ internalType: "struct IZoraSparks1155Managed.PermitSingle",
8529
+ type: "tuple",
8530
+ components: [
8531
+ { name: "owner", internalType: "address", type: "address" },
8532
+ { name: "to", internalType: "address", type: "address" },
8533
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8534
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8535
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8536
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8537
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8538
+ ]
8539
+ },
8540
+ { name: "signature", internalType: "bytes", type: "bytes" }
8541
+ ],
8542
+ name: "permitSafeTransfer",
8543
+ outputs: []
8544
+ },
8545
+ {
8546
+ stateMutability: "nonpayable",
8547
+ type: "function",
8548
+ inputs: [
8549
+ {
8550
+ name: "permit",
8551
+ internalType: "struct IZoraSparks1155Managed.PermitBatch",
8552
+ type: "tuple",
8553
+ components: [
8554
+ { name: "owner", internalType: "address", type: "address" },
8555
+ { name: "to", internalType: "address", type: "address" },
8556
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
8557
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
8558
+ { name: "safeTransferData", internalType: "bytes", type: "bytes" },
8559
+ { name: "deadline", internalType: "uint256", type: "uint256" },
8560
+ { name: "nonce", internalType: "uint256", type: "uint256" }
8561
+ ]
8562
+ },
8563
+ { name: "signature", internalType: "bytes", type: "bytes" }
8564
+ ],
8565
+ name: "permitSafeTransferBatch",
8566
+ outputs: []
8567
+ },
8568
+ {
8569
+ stateMutability: "nonpayable",
8570
+ type: "function",
8571
+ inputs: [
8572
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8573
+ { name: "quantity", internalType: "uint256", type: "uint256" },
8574
+ { name: "recipient", internalType: "address", type: "address" }
8575
+ ],
8576
+ name: "redeem",
8577
+ outputs: [
8578
+ {
8579
+ name: "",
8580
+ internalType: "struct Redemption",
8581
+ type: "tuple",
8582
+ components: [
8583
+ { name: "tokenAddress", internalType: "address", type: "address" },
8584
+ { name: "valueRedeemed", internalType: "uint256", type: "uint256" }
8585
+ ]
8586
+ }
8587
+ ]
8588
+ },
8589
+ {
8590
+ stateMutability: "nonpayable",
8591
+ type: "function",
8592
+ inputs: [
8593
+ { name: "tokenIds", internalType: "uint256[]", type: "uint256[]" },
8594
+ { name: "quantities", internalType: "uint256[]", type: "uint256[]" },
8595
+ { name: "recipient", internalType: "address", type: "address" }
8596
+ ],
8597
+ name: "redeemBatch",
8598
+ outputs: [
8599
+ {
8600
+ name: "redemptions",
8601
+ internalType: "struct Redemption[]",
8602
+ type: "tuple[]",
8603
+ components: [
8604
+ { name: "tokenAddress", internalType: "address", type: "address" },
8605
+ { name: "valueRedeemed", internalType: "uint256", type: "uint256" }
8606
+ ]
8607
+ }
8608
+ ]
8609
+ },
8610
+ {
8611
+ stateMutability: "nonpayable",
8612
+ type: "function",
8613
+ inputs: [
8614
+ { name: "from", internalType: "address", type: "address" },
8615
+ { name: "to", internalType: "address", type: "address" },
8616
+ { name: "ids", internalType: "uint256[]", type: "uint256[]" },
8617
+ { name: "values", internalType: "uint256[]", type: "uint256[]" },
8618
+ { name: "data", internalType: "bytes", type: "bytes" }
8619
+ ],
8620
+ name: "safeBatchTransferFrom",
8621
+ outputs: []
8622
+ },
8623
+ {
8624
+ stateMutability: "nonpayable",
8625
+ type: "function",
8626
+ inputs: [
8627
+ { name: "from", internalType: "address", type: "address" },
8628
+ { name: "to", internalType: "address", type: "address" },
8629
+ { name: "id", internalType: "uint256", type: "uint256" },
8630
+ { name: "value", internalType: "uint256", type: "uint256" },
8631
+ { name: "data", internalType: "bytes", type: "bytes" }
8632
+ ],
8633
+ name: "safeTransferFrom",
8634
+ outputs: []
8635
+ },
8636
+ {
8637
+ stateMutability: "nonpayable",
8638
+ type: "function",
8639
+ inputs: [
8640
+ { name: "operator", internalType: "address", type: "address" },
8641
+ { name: "approved", internalType: "bool", type: "bool" }
8642
+ ],
8643
+ name: "setApprovalForAll",
8644
+ outputs: []
8645
+ },
8646
+ {
8647
+ stateMutability: "nonpayable",
8648
+ type: "function",
8649
+ inputs: [
8650
+ { name: "newAuthority", internalType: "address", type: "address" }
8651
+ ],
8652
+ name: "setAuthority",
8653
+ outputs: []
8654
+ },
8655
+ {
8656
+ stateMutability: "view",
8657
+ type: "function",
8658
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
8659
+ name: "supportsInterface",
8660
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8661
+ },
8662
+ {
8663
+ stateMutability: "pure",
8664
+ type: "function",
8665
+ inputs: [],
8666
+ name: "symbol",
8667
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8668
+ },
8669
+ {
8670
+ stateMutability: "view",
8671
+ type: "function",
8672
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
8673
+ name: "tokenExists",
8674
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
8675
+ },
8676
+ {
8677
+ stateMutability: "view",
8678
+ type: "function",
8679
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
8680
+ name: "tokenPrice",
8681
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
8682
+ },
8683
+ {
8684
+ stateMutability: "view",
8685
+ type: "function",
8686
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
8687
+ name: "uri",
8688
+ outputs: [{ name: "", internalType: "string", type: "string" }]
8689
+ },
8690
+ {
8691
+ type: "event",
8692
+ anonymous: false,
8693
+ inputs: [
8694
+ {
8695
+ name: "account",
8696
+ internalType: "address",
8697
+ type: "address",
8698
+ indexed: true
8699
+ },
8700
+ {
8701
+ name: "operator",
8702
+ internalType: "address",
8703
+ type: "address",
8704
+ indexed: true
8705
+ },
8706
+ { name: "approved", internalType: "bool", type: "bool", indexed: false }
8707
+ ],
8708
+ name: "ApprovalForAll"
8709
+ },
8710
+ {
8711
+ type: "event",
8712
+ anonymous: false,
8713
+ inputs: [
8714
+ {
8715
+ name: "authority",
8716
+ internalType: "address",
8717
+ type: "address",
8718
+ indexed: false
8719
+ }
8720
+ ],
8721
+ name: "AuthorityUpdated"
8722
+ },
8723
+ { type: "event", anonymous: false, inputs: [], name: "ContractURIUpdated" },
8724
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
8725
+ {
8726
+ type: "event",
8727
+ anonymous: false,
8728
+ inputs: [
8729
+ {
8730
+ name: "tokenId",
8731
+ internalType: "uint256",
8732
+ type: "uint256",
8733
+ indexed: true
8734
+ },
8735
+ {
8736
+ name: "price",
8737
+ internalType: "uint256",
8738
+ type: "uint256",
8739
+ indexed: true
8740
+ },
8741
+ {
8742
+ name: "tokenAddress",
8743
+ internalType: "address",
8744
+ type: "address",
8745
+ indexed: true
8746
+ }
8747
+ ],
8748
+ name: "TokenCreated"
8749
+ },
8750
+ {
8751
+ type: "event",
8752
+ anonymous: false,
8753
+ inputs: [
8754
+ {
8755
+ name: "operator",
8756
+ internalType: "address",
8757
+ type: "address",
8758
+ indexed: true
8759
+ },
8760
+ { name: "from", internalType: "address", type: "address", indexed: true },
8761
+ { name: "to", internalType: "address", type: "address", indexed: true },
8762
+ {
8763
+ name: "ids",
8764
+ internalType: "uint256[]",
8765
+ type: "uint256[]",
8766
+ indexed: false
8767
+ },
8768
+ {
8769
+ name: "values",
8770
+ internalType: "uint256[]",
8771
+ type: "uint256[]",
8772
+ indexed: false
8773
+ }
8774
+ ],
8775
+ name: "TransferBatch"
8776
+ },
8777
+ {
8778
+ type: "event",
8779
+ anonymous: false,
8780
+ inputs: [
8781
+ {
8782
+ name: "from",
8783
+ internalType: "address",
8784
+ type: "address",
8785
+ indexed: false
8786
+ },
8787
+ { name: "to", internalType: "address", type: "address", indexed: false },
8788
+ {
8789
+ name: "tokenIds",
8790
+ internalType: "uint256[]",
8791
+ type: "uint256[]",
8792
+ indexed: false
8793
+ },
8794
+ {
8795
+ name: "quantities",
8796
+ internalType: "uint256[]",
8797
+ type: "uint256[]",
8798
+ indexed: false
8799
+ },
8800
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
8801
+ ],
8802
+ name: "TransferBatchWithData"
8803
+ },
8804
+ {
8805
+ type: "event",
8806
+ anonymous: false,
8807
+ inputs: [
8808
+ {
8809
+ name: "operator",
8810
+ internalType: "address",
8811
+ type: "address",
8812
+ indexed: true
8813
+ },
8814
+ { name: "from", internalType: "address", type: "address", indexed: true },
8815
+ { name: "to", internalType: "address", type: "address", indexed: true },
8816
+ { name: "id", internalType: "uint256", type: "uint256", indexed: false },
8817
+ {
8818
+ name: "value",
8819
+ internalType: "uint256",
8820
+ type: "uint256",
8821
+ indexed: false
8822
+ }
8823
+ ],
8824
+ name: "TransferSingle"
8825
+ },
8826
+ {
8827
+ type: "event",
8828
+ anonymous: false,
8829
+ inputs: [
8830
+ {
8831
+ name: "from",
8832
+ internalType: "address",
8833
+ type: "address",
8834
+ indexed: false
8835
+ },
8836
+ { name: "to", internalType: "address", type: "address", indexed: false },
8837
+ {
8838
+ name: "tokenId",
8839
+ internalType: "uint256",
8840
+ type: "uint256",
8841
+ indexed: false
8842
+ },
8843
+ {
8844
+ name: "quantity",
8845
+ internalType: "uint256",
8846
+ type: "uint256",
8847
+ indexed: false
8848
+ },
8849
+ { name: "data", internalType: "bytes", type: "bytes", indexed: false }
8850
+ ],
8851
+ name: "TransferSingleWithData"
8852
+ },
8853
+ {
8854
+ type: "event",
8855
+ anonymous: false,
8856
+ inputs: [
8857
+ { name: "value", internalType: "string", type: "string", indexed: false },
8858
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true }
8859
+ ],
8860
+ name: "URI"
8861
+ },
8862
+ {
8863
+ type: "event",
8864
+ anonymous: false,
8865
+ inputs: [
8866
+ {
8867
+ name: "contractURI",
8868
+ internalType: "string",
8869
+ type: "string",
8870
+ indexed: false
8871
+ },
8872
+ {
8873
+ name: "baseURI",
8874
+ internalType: "string",
8875
+ type: "string",
8876
+ indexed: false
8877
+ }
8878
+ ],
8879
+ name: "URIsUpdated"
8880
+ },
8881
+ {
8882
+ type: "error",
8883
+ inputs: [{ name: "authority", internalType: "address", type: "address" }],
8884
+ name: "AccessManagedInvalidAuthority"
8885
+ },
8886
+ {
8887
+ type: "error",
8888
+ inputs: [
8889
+ { name: "caller", internalType: "address", type: "address" },
8890
+ { name: "delay", internalType: "uint32", type: "uint32" }
8891
+ ],
8892
+ name: "AccessManagedRequiredDelay"
8893
+ },
8894
+ {
8895
+ type: "error",
8896
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
8897
+ name: "AccessManagedUnauthorized"
8898
+ },
8899
+ {
8900
+ type: "error",
8901
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
8902
+ name: "AddressEmptyCode"
8903
+ },
8904
+ {
8905
+ type: "error",
8906
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
8907
+ name: "AddressInsufficientBalance"
8908
+ },
8909
+ {
8910
+ type: "error",
8911
+ inputs: [
8912
+ { name: "lengthA", internalType: "uint256", type: "uint256" },
8913
+ { name: "lengthB", internalType: "uint256", type: "uint256" }
8914
+ ],
8915
+ name: "ArrayLengthMismatch"
8916
+ },
8917
+ {
8918
+ type: "error",
8919
+ inputs: [{ name: "returnData", internalType: "bytes", type: "bytes" }],
8920
+ name: "CallFailed"
8921
+ },
8922
+ {
8923
+ type: "error",
8924
+ inputs: [
8925
+ { name: "sender", internalType: "address", type: "address" },
8926
+ { name: "balance", internalType: "uint256", type: "uint256" },
8927
+ { name: "needed", internalType: "uint256", type: "uint256" },
8928
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
8929
+ ],
8930
+ name: "ERC1155InsufficientBalance"
8931
+ },
8932
+ {
8933
+ type: "error",
8934
+ inputs: [{ name: "approver", internalType: "address", type: "address" }],
8935
+ name: "ERC1155InvalidApprover"
8936
+ },
8937
+ {
8938
+ type: "error",
8939
+ inputs: [
8940
+ { name: "idsLength", internalType: "uint256", type: "uint256" },
8941
+ { name: "valuesLength", internalType: "uint256", type: "uint256" }
8942
+ ],
8943
+ name: "ERC1155InvalidArrayLength"
8944
+ },
8945
+ {
8946
+ type: "error",
8947
+ inputs: [{ name: "operator", internalType: "address", type: "address" }],
8948
+ name: "ERC1155InvalidOperator"
8949
+ },
8950
+ {
8951
+ type: "error",
8952
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
8953
+ name: "ERC1155InvalidReceiver"
8954
+ },
8955
+ {
8956
+ type: "error",
8957
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
8958
+ name: "ERC1155InvalidSender"
8959
+ },
8960
+ {
8961
+ type: "error",
8962
+ inputs: [
8963
+ { name: "operator", internalType: "address", type: "address" },
8964
+ { name: "owner", internalType: "address", type: "address" }
8965
+ ],
8966
+ name: "ERC1155MissingApprovalForAll"
8967
+ },
8968
+ { type: "error", inputs: [], name: "ERC20TransferSlippage" },
8969
+ {
8970
+ type: "error",
8971
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
8972
+ name: "ERC2612ExpiredSignature"
8973
+ },
8974
+ { type: "error", inputs: [], name: "ETHTransferFailed" },
8975
+ { type: "error", inputs: [], name: "FailedInnerCall" },
8976
+ { type: "error", inputs: [], name: "IncorrectAmountSent" },
8977
+ {
8978
+ type: "error",
8979
+ inputs: [
8980
+ { name: "account", internalType: "address", type: "address" },
8981
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
8982
+ ],
8983
+ name: "InvalidAccountNonce"
8984
+ },
8985
+ { type: "error", inputs: [], name: "InvalidRecipient" },
8986
+ { type: "error", inputs: [], name: "InvalidShortString" },
8987
+ { type: "error", inputs: [], name: "InvalidSignature" },
8988
+ { type: "error", inputs: [], name: "InvalidTokenPrice" },
8989
+ { type: "error", inputs: [], name: "NoUriForNonexistentToken" },
8990
+ {
8991
+ type: "error",
8992
+ inputs: [{ name: "handler", internalType: "address", type: "address" }],
8993
+ name: "NotARedeemHandler"
8994
+ },
8995
+ {
8996
+ type: "error",
8997
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
8998
+ name: "SafeERC20FailedOperation"
8999
+ },
9000
+ {
9001
+ type: "error",
9002
+ inputs: [{ name: "str", internalType: "string", type: "string" }],
9003
+ name: "StringTooLong"
9004
+ },
9005
+ { type: "error", inputs: [], name: "TokenAlreadyCreated" },
9006
+ { type: "error", inputs: [], name: "TokenDoesNotExist" },
9007
+ {
9008
+ type: "error",
9009
+ inputs: [
9010
+ { name: "storedTokenAddress", internalType: "address", type: "address" },
9011
+ {
9012
+ name: "expectedTokenAddress",
9013
+ internalType: "address",
9014
+ type: "address"
9015
+ }
9016
+ ],
9017
+ name: "TokenMismatch"
9018
+ },
9019
+ { type: "error", inputs: [], name: "TokenNotMintable" }
9020
+ ];
9021
+ var zoraSparks1155Address = {
9022
+ 7777777: "0x777777771fEcDcC3FDEe9022e0ee60770dC06088",
9023
+ 999999999: "0x777777771fEcDcC3FDEe9022e0ee60770dC06088"
9024
+ };
9025
+ var zoraSparks1155Config = {
9026
+ address: zoraSparks1155Address,
9027
+ abi: zoraSparks1155ABI
9028
+ };
9029
+ var zoraSparksManagerImplABI = [
9030
+ { stateMutability: "nonpayable", type: "constructor", inputs: [] },
9031
+ {
9032
+ stateMutability: "view",
9033
+ type: "function",
9034
+ inputs: [],
9035
+ name: "UPGRADE_INTERFACE_VERSION",
9036
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9037
+ },
9038
+ {
9039
+ stateMutability: "nonpayable",
9040
+ type: "function",
9041
+ inputs: [],
9042
+ name: "acceptOwnership",
9043
+ outputs: []
9044
+ },
9045
+ {
9046
+ stateMutability: "view",
9047
+ type: "function",
9048
+ inputs: [
9049
+ { name: "caller", internalType: "address", type: "address" },
9050
+ { name: "", internalType: "address", type: "address" },
9051
+ { name: "", internalType: "bytes4", type: "bytes4" }
9052
+ ],
9053
+ name: "canCall",
9054
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
9055
+ },
9056
+ {
9057
+ stateMutability: "pure",
9058
+ type: "function",
9059
+ inputs: [],
9060
+ name: "contractName",
9061
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9062
+ },
9063
+ {
9064
+ stateMutability: "view",
9065
+ type: "function",
9066
+ inputs: [],
9067
+ name: "contractURI",
9068
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9069
+ },
9070
+ {
9071
+ stateMutability: "pure",
9072
+ type: "function",
9073
+ inputs: [],
9074
+ name: "contractVersion",
9075
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9076
+ },
9077
+ {
9078
+ stateMutability: "nonpayable",
9079
+ type: "function",
9080
+ inputs: [
9081
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
9082
+ {
9083
+ name: "tokenConfig",
9084
+ internalType: "struct TokenConfig",
9085
+ type: "tuple",
9086
+ components: [
9087
+ { name: "price", internalType: "uint256", type: "uint256" },
9088
+ { name: "tokenAddress", internalType: "address", type: "address" },
9089
+ { name: "redeemHandler", internalType: "address", type: "address" }
9090
+ ]
9091
+ }
9092
+ ],
9093
+ name: "createToken",
9094
+ outputs: []
9095
+ },
9096
+ {
9097
+ stateMutability: "view",
9098
+ type: "function",
9099
+ inputs: [],
9100
+ name: "implementation",
9101
+ outputs: [{ name: "", internalType: "address", type: "address" }]
9102
+ },
9103
+ {
9104
+ stateMutability: "nonpayable",
9105
+ type: "function",
9106
+ inputs: [
9107
+ { name: "defaultOwner", internalType: "address", type: "address" },
9108
+ { name: "zoraSparksSalt", internalType: "bytes32", type: "bytes32" },
9109
+ { name: "zoraSparksCreationCode", internalType: "bytes", type: "bytes" },
9110
+ { name: "initialEthTokenId", internalType: "uint256", type: "uint256" },
9111
+ {
9112
+ name: "initialEthTokenPrice",
9113
+ internalType: "uint256",
9114
+ type: "uint256"
9115
+ },
9116
+ { name: "newBaseURI", internalType: "string", type: "string" },
9117
+ { name: "newContractURI", internalType: "string", type: "string" }
9118
+ ],
9119
+ name: "initialize",
9120
+ outputs: [
9121
+ {
9122
+ name: "sparks",
9123
+ internalType: "contract IZoraSparks1155",
9124
+ type: "address"
9125
+ }
9126
+ ]
9127
+ },
9128
+ {
9129
+ stateMutability: "nonpayable",
9130
+ type: "function",
9131
+ inputs: [
9132
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
9133
+ { name: "tokenAddress", internalType: "address", type: "address" },
9134
+ { name: "quantity", internalType: "uint256", type: "uint256" },
9135
+ { name: "recipient", internalType: "address", type: "address" }
9136
+ ],
9137
+ name: "mintWithERC20",
9138
+ outputs: []
9139
+ },
9140
+ {
9141
+ stateMutability: "payable",
9142
+ type: "function",
9143
+ inputs: [
9144
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
9145
+ { name: "quantity", internalType: "uint256", type: "uint256" },
9146
+ { name: "recipient", internalType: "address", type: "address" }
9147
+ ],
9148
+ name: "mintWithEth",
9149
+ outputs: []
9150
+ },
9151
+ {
9152
+ stateMutability: "view",
9153
+ type: "function",
9154
+ inputs: [],
9155
+ name: "owner",
9156
+ outputs: [{ name: "", internalType: "address", type: "address" }]
9157
+ },
9158
+ {
9159
+ stateMutability: "view",
9160
+ type: "function",
9161
+ inputs: [],
9162
+ name: "pendingOwner",
9163
+ outputs: [{ name: "", internalType: "address", type: "address" }]
9164
+ },
9165
+ {
9166
+ stateMutability: "view",
9167
+ type: "function",
9168
+ inputs: [],
9169
+ name: "proxiableUUID",
9170
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
9171
+ },
9172
+ {
9173
+ stateMutability: "nonpayable",
9174
+ type: "function",
9175
+ inputs: [],
9176
+ name: "renounceOwnership",
9177
+ outputs: []
9178
+ },
9179
+ {
9180
+ stateMutability: "nonpayable",
9181
+ type: "function",
9182
+ inputs: [
9183
+ { name: "newContractURI", internalType: "string", type: "string" },
9184
+ { name: "newBaseURI", internalType: "string", type: "string" },
9185
+ {
9186
+ name: "tokenIdsToNotifyUpdate",
9187
+ internalType: "uint256[]",
9188
+ type: "uint256[]"
9189
+ }
9190
+ ],
9191
+ name: "setMetadataURIs",
9192
+ outputs: []
9193
+ },
9194
+ {
9195
+ stateMutability: "nonpayable",
9196
+ type: "function",
9197
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
9198
+ name: "transferOwnership",
9199
+ outputs: []
9200
+ },
9201
+ {
9202
+ stateMutability: "payable",
9203
+ type: "function",
9204
+ inputs: [
9205
+ { name: "newImplementation", internalType: "address", type: "address" },
9206
+ { name: "data", internalType: "bytes", type: "bytes" }
9207
+ ],
9208
+ name: "upgradeToAndCall",
9209
+ outputs: []
9210
+ },
9211
+ {
9212
+ stateMutability: "view",
9213
+ type: "function",
9214
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
9215
+ name: "uri",
9216
+ outputs: [{ name: "", internalType: "string", type: "string" }]
9217
+ },
9218
+ {
9219
+ stateMutability: "view",
9220
+ type: "function",
9221
+ inputs: [],
9222
+ name: "zoraSparks1155",
9223
+ outputs: [
9224
+ { name: "", internalType: "contract IZoraSparks1155", type: "address" }
9225
+ ]
9226
+ },
9227
+ {
9228
+ type: "event",
9229
+ anonymous: false,
9230
+ inputs: [
9231
+ {
9232
+ name: "version",
9233
+ internalType: "uint64",
9234
+ type: "uint64",
9235
+ indexed: false
9236
+ }
9237
+ ],
9238
+ name: "Initialized"
9239
+ },
9240
+ {
9241
+ type: "event",
9242
+ anonymous: false,
9243
+ inputs: [
9244
+ {
9245
+ name: "previousOwner",
9246
+ internalType: "address",
9247
+ type: "address",
9248
+ indexed: true
9249
+ },
9250
+ {
9251
+ name: "newOwner",
9252
+ internalType: "address",
9253
+ type: "address",
9254
+ indexed: true
9255
+ }
9256
+ ],
9257
+ name: "OwnershipTransferStarted"
9258
+ },
9259
+ {
9260
+ type: "event",
9261
+ anonymous: false,
9262
+ inputs: [
9263
+ {
9264
+ name: "previousOwner",
9265
+ internalType: "address",
9266
+ type: "address",
9267
+ indexed: true
9268
+ },
9269
+ {
9270
+ name: "newOwner",
9271
+ internalType: "address",
9272
+ type: "address",
9273
+ indexed: true
9274
+ }
9275
+ ],
9276
+ name: "OwnershipTransferred"
9277
+ },
9278
+ {
9279
+ type: "event",
9280
+ anonymous: false,
9281
+ inputs: [
9282
+ {
9283
+ name: "contractURI",
9284
+ internalType: "string",
9285
+ type: "string",
9286
+ indexed: false
9287
+ },
9288
+ {
9289
+ name: "baseURI",
9290
+ internalType: "string",
9291
+ type: "string",
9292
+ indexed: false
9293
+ }
9294
+ ],
9295
+ name: "URIsUpdated"
9296
+ },
9297
+ {
9298
+ type: "event",
9299
+ anonymous: false,
9300
+ inputs: [
9301
+ {
9302
+ name: "implementation",
9303
+ internalType: "address",
9304
+ type: "address",
9305
+ indexed: true
9306
+ }
9307
+ ],
9308
+ name: "Upgraded"
9309
+ },
9310
+ {
9311
+ type: "error",
9312
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
9313
+ name: "AddressEmptyCode"
9314
+ },
9315
+ {
9316
+ type: "error",
9317
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
9318
+ name: "AddressInsufficientBalance"
9319
+ },
9320
+ {
9321
+ type: "error",
9322
+ inputs: [
9323
+ { name: "lengthA", internalType: "uint256", type: "uint256" },
9324
+ { name: "lengthB", internalType: "uint256", type: "uint256" }
9325
+ ],
9326
+ name: "ArrayLengthMismatch"
9327
+ },
9328
+ { type: "error", inputs: [], name: "Create2EmptyBytecode" },
9329
+ { type: "error", inputs: [], name: "Create2FailedDeployment" },
9330
+ {
9331
+ type: "error",
9332
+ inputs: [
9333
+ { name: "balance", internalType: "uint256", type: "uint256" },
9334
+ { name: "needed", internalType: "uint256", type: "uint256" }
9335
+ ],
9336
+ name: "Create2InsufficientBalance"
9337
+ },
9338
+ { type: "error", inputs: [], name: "DefaultOwnerCannotBeZero" },
9339
+ {
9340
+ type: "error",
9341
+ inputs: [
9342
+ { name: "implementation", internalType: "address", type: "address" }
9343
+ ],
9344
+ name: "ERC1967InvalidImplementation"
9345
+ },
9346
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
9347
+ { type: "error", inputs: [], name: "ERC20TransferSlippage" },
9348
+ { type: "error", inputs: [], name: "ETHTransferFailed" },
9349
+ { type: "error", inputs: [], name: "FailedInnerCall" },
9350
+ { type: "error", inputs: [], name: "IncorrectAmountSent" },
9351
+ { type: "error", inputs: [], name: "InvalidAdminAction" },
9352
+ { type: "error", inputs: [], name: "InvalidInitialization" },
9353
+ { type: "error", inputs: [], name: "InvalidOwnerForAssociatedZoraSparks" },
9354
+ { type: "error", inputs: [], name: "InvalidRecipient" },
9355
+ { type: "error", inputs: [], name: "InvalidTokenPrice" },
9356
+ { type: "error", inputs: [], name: "NoUriForNonexistentToken" },
9357
+ {
9358
+ type: "error",
9359
+ inputs: [{ name: "handler", internalType: "address", type: "address" }],
9360
+ name: "NotARedeemHandler"
9361
+ },
9362
+ { type: "error", inputs: [], name: "NotInitializing" },
9363
+ {
9364
+ type: "error",
9365
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
9366
+ name: "OwnableInvalidOwner"
9367
+ },
9368
+ {
9369
+ type: "error",
9370
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
9371
+ name: "OwnableUnauthorizedAccount"
9372
+ },
9373
+ { type: "error", inputs: [], name: "PremintExecutorCannotBeZero" },
9374
+ { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
9375
+ {
9376
+ type: "error",
9377
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
9378
+ name: "SafeERC20FailedOperation"
9379
+ },
9380
+ { type: "error", inputs: [], name: "TokenAlreadyCreated" },
9381
+ { type: "error", inputs: [], name: "TokenDoesNotExist" },
9382
+ {
9383
+ type: "error",
9384
+ inputs: [
9385
+ { name: "storedTokenAddress", internalType: "address", type: "address" },
9386
+ {
9387
+ name: "expectedTokenAddress",
9388
+ internalType: "address",
9389
+ type: "address"
9390
+ }
9391
+ ],
9392
+ name: "TokenMismatch"
9393
+ },
9394
+ { type: "error", inputs: [], name: "TokenNotMintable" },
9395
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
9396
+ {
9397
+ type: "error",
9398
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
9399
+ name: "UUPSUnsupportedProxiableUUID"
9400
+ },
9401
+ {
9402
+ type: "error",
9403
+ inputs: [
9404
+ { name: "expected", internalType: "string", type: "string" },
9405
+ { name: "actual", internalType: "string", type: "string" }
9406
+ ],
9407
+ name: "UpgradeToMismatchedContractName"
9408
+ }
9409
+ ];
9410
+ var zoraSparksManagerImplAddress = {
9411
+ 7777777: "0x7777777F57d8a26e94D1Fb7629c6FE6cb92Cd788",
9412
+ 999999999: "0x7777777F57d8a26e94D1Fb7629c6FE6cb92Cd788"
9413
+ };
9414
+ var zoraSparksManagerImplConfig = {
9415
+ address: zoraSparksManagerImplAddress,
9416
+ abi: zoraSparksManagerImplABI
9417
+ };
9418
+
9419
+ // ../../node_modules/viem/_esm/index.js
9420
+ init_encodeAbiParameters();
9421
+ init_getAbiItem();
9422
+ init_toHex();
9423
+ init_keccak256();
9424
+
9425
+ // src/types.ts
9426
+ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
9427
+ PremintConfigVersion2["V1"] = "1";
9428
+ PremintConfigVersion2["V2"] = "2";
9429
+ PremintConfigVersion2["V3"] = "3";
9430
+ return PremintConfigVersion2;
9431
+ })(PremintConfigVersion || {});
9432
+
9433
+ // src/typedData.ts
9434
+ var premintTypedDataDomain = ({
9435
+ chainId,
9436
+ version: version2,
9437
+ creator1155Contract: verifyingContract
9438
+ }) => ({
9439
+ chainId,
9440
+ name: "Preminter",
9441
+ version: version2,
8311
9442
  verifyingContract
8312
9443
  });
8313
9444
  var premintV1TypedDataType = {
@@ -8753,10 +9884,10 @@ var addresses = {
8753
9884
  timestamp: 1709234007
8754
9885
  },
8755
9886
  999999999: {
8756
- CONTRACT_1155_IMPL: "0x1120b10c14d38C85B610292170a784784ED9658E",
8757
- CONTRACT_1155_IMPL_VERSION: "2.10.1",
9887
+ CONTRACT_1155_IMPL: "0xD98e9AF77D87f69b006FA1bE123632e9cc5419F8",
9888
+ CONTRACT_1155_IMPL_VERSION: "2.12.0-SPARKS.0",
8758
9889
  ERC20_MINTER: "0x8Ec7f068A77fa5FC1925110f82381374BA054Ff2",
8759
- FACTORY_IMPL: "0x74Fc9A34AebAc1D78Aad0C85FAfcDAbD972FC1B0",
9890
+ FACTORY_IMPL: "0x7F6f98a90B604b65D192652096861B92323B1a69",
8760
9891
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
8761
9892
  FIXED_PRICE_SALE_STRATEGY: "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A",
8762
9893
  MERKLE_MINT_SALE_STRATEGY: "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c",
@@ -8764,13 +9895,13 @@ var addresses = {
8764
9895
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
8765
9896
  REDEEM_MINTER_FACTORY: "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
8766
9897
  UPGRADE_GATE: "0x0000000000000000000000000000000000000000",
8767
- timestamp: 1717181506
9898
+ timestamp: 1720743447
8768
9899
  }
8769
9900
  };
8770
9901
 
8771
- // src/generated/mints.ts
8772
- var mints_exports = {};
8773
- __export(mints_exports, {
9902
+ // src/generated/sparks.ts
9903
+ var sparks_exports = {};
9904
+ __export(sparks_exports, {
8774
9905
  addresses: () => addresses2,
8775
9906
  chainConfigs: () => chainConfigs2
8776
9907
  });
@@ -8789,55 +9920,15 @@ var chainConfigs2 = {
8789
9920
  999999999: { PROXY_ADMIN: "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E" }
8790
9921
  };
8791
9922
  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
9923
  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"
9924
+ SPARKS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
9925
+ SPARKS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
9926
+ SPARKS_MANAGER_IMPL_VERSION: "0.1.4"
8836
9927
  },
8837
9928
  999999999: {
8838
- MINTS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
8839
- MINTS_MANAGER_IMPL: "0x66a48d99A349e228618BB68f41496923958D5543",
8840
- MINTS_MANAGER_IMPL_VERSION: "0.1.4"
9929
+ SPARKS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
9930
+ SPARKS_MANAGER_IMPL: "0xf7D8d07267E840aE466E5f2fe8b089F4DE79c7da",
9931
+ SPARKS_MANAGER_IMPL_VERSION: "0.1.4"
8841
9932
  }
8842
9933
  };
8843
9934
  // Annotate the CommonJS export names for ESM import in node:
@@ -8850,10 +9941,6 @@ var addresses2 = {
8850
9941
  erc20MinterConfig,
8851
9942
  iPremintDefinitionsABI,
8852
9943
  iUnwrapAndForwardActionABI,
8853
- mints,
8854
- mintsEthUnwrapperAndCallerABI,
8855
- mintsEthUnwrapperAndCallerAddress,
8856
- mintsEthUnwrapperAndCallerConfig,
8857
9944
  mintsSafeTransferBatchTypedDataDefinition,
8858
9945
  mintsSafeTransferTypedDataDefinition,
8859
9946
  premintTypedDataDefinition,
@@ -8862,6 +9949,10 @@ var addresses2 = {
8862
9949
  protocolRewardsABI,
8863
9950
  protocolRewardsAddress,
8864
9951
  protocolRewardsConfig,
9952
+ sparks,
9953
+ sparksEthUnwrapperAndCallerABI,
9954
+ sparksEthUnwrapperAndCallerAddress,
9955
+ sparksEthUnwrapperAndCallerConfig,
8865
9956
  upgradeGateABI,
8866
9957
  upgradeGateAddress,
8867
9958
  upgradeGateConfig,
@@ -8886,7 +9977,13 @@ var addresses2 = {
8886
9977
  zoraMints1155Config,
8887
9978
  zoraMintsManagerImplABI,
8888
9979
  zoraMintsManagerImplAddress,
8889
- zoraMintsManagerImplConfig
9980
+ zoraMintsManagerImplConfig,
9981
+ zoraSparks1155ABI,
9982
+ zoraSparks1155Address,
9983
+ zoraSparks1155Config,
9984
+ zoraSparksManagerImplABI,
9985
+ zoraSparksManagerImplAddress,
9986
+ zoraSparksManagerImplConfig
8890
9987
  });
8891
9988
  /*! Bundled license information:
8892
9989