@zoralabs/protocol-deployments 0.5.6-PRE.4 → 0.5.6

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.
@@ -3,8 +3,8 @@
3
3
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
4
 
5
5
  /**
6
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d)
7
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x961EDdCA4150FC9FBFecd2D6876e1cF770919918)
6
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x4269b3ba4522192e0C54197BD0D7131A3abA6256)
7
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xBD42CD74A5fBA7570A2943CAC0B6b60C8f3153B2)
8
8
  */
9
9
  export const buySupplyWithSwapRouterHookABI = [
10
10
  {
@@ -64,17 +64,17 @@ export const buySupplyWithSwapRouterHookABI = [
64
64
  ] as const
65
65
 
66
66
  /**
67
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d)
68
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x961EDdCA4150FC9FBFecd2D6876e1cF770919918)
67
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x4269b3ba4522192e0C54197BD0D7131A3abA6256)
68
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xBD42CD74A5fBA7570A2943CAC0B6b60C8f3153B2)
69
69
  */
70
70
  export const buySupplyWithSwapRouterHookAddress = {
71
- 8453: '0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d',
72
- 84532: '0x961EDdCA4150FC9FBFecd2D6876e1cF770919918',
71
+ 8453: '0x4269b3ba4522192e0C54197BD0D7131A3abA6256',
72
+ 84532: '0xBD42CD74A5fBA7570A2943CAC0B6b60C8f3153B2',
73
73
  } as const
74
74
 
75
75
  /**
76
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d)
77
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x961EDdCA4150FC9FBFecd2D6876e1cF770919918)
76
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x4269b3ba4522192e0C54197BD0D7131A3abA6256)
77
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xBD42CD74A5fBA7570A2943CAC0B6b60C8f3153B2)
78
78
  */
79
79
  export const buySupplyWithSwapRouterHookConfig = {
80
80
  address: buySupplyWithSwapRouterHookAddress,
@@ -1167,15 +1167,15 @@ export const coinABI = [
1167
1167
  type: 'constructor',
1168
1168
  inputs: [
1169
1169
  {
1170
- name: '_protocolRewardRecipient',
1170
+ name: 'protocolRewardRecipient_',
1171
1171
  internalType: 'address',
1172
1172
  type: 'address',
1173
1173
  },
1174
- { name: '_protocolRewards', internalType: 'address', type: 'address' },
1175
- { name: '_weth', internalType: 'address', type: 'address' },
1176
- { name: '_v3Factory', internalType: 'address', type: 'address' },
1177
- { name: '_swapRouter', internalType: 'address', type: 'address' },
1178
- { name: '_airlock', internalType: 'address', type: 'address' },
1174
+ { name: 'protocolRewards_', internalType: 'address', type: 'address' },
1175
+ { name: 'weth_', internalType: 'address', type: 'address' },
1176
+ { name: 'v3Factory_', internalType: 'address', type: 'address' },
1177
+ { name: 'swapRouter_', internalType: 'address', type: 'address' },
1178
+ { name: 'airlock_', internalType: 'address', type: 'address' },
1179
1179
  ],
1180
1180
  stateMutability: 'nonpayable',
1181
1181
  },
@@ -1305,7 +1305,7 @@ export const coinABI = [
1305
1305
  {
1306
1306
  type: 'function',
1307
1307
  inputs: [],
1308
- name: 'doppler',
1308
+ name: 'dopplerFeeRecipient',
1309
1309
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
1310
1310
  stateMutability: 'view',
1311
1311
  },
@@ -2215,6 +2215,20 @@ export const coinFactoryABI = [
2215
2215
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
2216
2216
  stateMutability: 'view',
2217
2217
  },
2218
+ {
2219
+ type: 'function',
2220
+ inputs: [
2221
+ { name: 'msgSender', internalType: 'address', type: 'address' },
2222
+ { name: 'name', internalType: 'string', type: 'string' },
2223
+ { name: 'symbol', internalType: 'string', type: 'string' },
2224
+ { name: 'poolConfig', internalType: 'bytes', type: 'bytes' },
2225
+ { name: 'platformReferrer', internalType: 'address', type: 'address' },
2226
+ { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' },
2227
+ ],
2228
+ name: 'coinAddress',
2229
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2230
+ stateMutability: 'view',
2231
+ },
2218
2232
  {
2219
2233
  type: 'function',
2220
2234
  inputs: [],
@@ -2273,14 +2287,14 @@ export const coinFactoryABI = [
2273
2287
  { name: 'symbol', internalType: 'string', type: 'string' },
2274
2288
  { name: 'poolConfig', internalType: 'bytes', type: 'bytes' },
2275
2289
  { name: 'platformReferrer', internalType: 'address', type: 'address' },
2276
- { name: 'hook', internalType: 'address', type: 'address' },
2277
- { name: 'hookData', internalType: 'bytes', type: 'bytes' },
2290
+ { name: 'postDeployHook', internalType: 'address', type: 'address' },
2291
+ { name: 'postDeployHookData', internalType: 'bytes', type: 'bytes' },
2278
2292
  { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' },
2279
2293
  ],
2280
2294
  name: 'deploy',
2281
2295
  outputs: [
2282
2296
  { name: 'coin', internalType: 'address', type: 'address' },
2283
- { name: 'hookDataOut', internalType: 'bytes', type: 'bytes' },
2297
+ { name: 'postDeployHookDataOut', internalType: 'bytes', type: 'bytes' },
2284
2298
  ],
2285
2299
  stateMutability: 'payable',
2286
2300
  },
@@ -2323,6 +2337,13 @@ export const coinFactoryABI = [
2323
2337
  ],
2324
2338
  stateMutability: 'payable',
2325
2339
  },
2340
+ {
2341
+ type: 'function',
2342
+ inputs: [{ name: 'coin', internalType: 'address', type: 'address' }],
2343
+ name: 'getVersionForDeployedCoin',
2344
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
2345
+ stateMutability: 'view',
2346
+ },
2326
2347
  {
2327
2348
  type: 'function',
2328
2349
  inputs: [],
@@ -2657,207 +2678,1190 @@ export const coinFactoryConfig = {
2657
2678
  } as const
2658
2679
 
2659
2680
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2660
- // Cointag
2681
+ // CoinV4
2661
2682
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2662
2683
 
2663
- export const cointagABI = [
2684
+ export const coinV4ABI = [
2664
2685
  {
2665
2686
  type: 'constructor',
2666
2687
  inputs: [
2688
+ {
2689
+ name: 'protocolRewardRecipient_',
2690
+ internalType: 'address',
2691
+ type: 'address',
2692
+ },
2667
2693
  { name: 'protocolRewards_', internalType: 'address', type: 'address' },
2668
- { name: 'weth_', internalType: 'address', type: 'address' },
2669
- { name: 'upgradeGate_', internalType: 'address', type: 'address' },
2694
+ {
2695
+ name: 'poolManager_',
2696
+ internalType: 'contract IPoolManager',
2697
+ type: 'address',
2698
+ },
2699
+ { name: 'airlock_', internalType: 'address', type: 'address' },
2700
+ { name: 'hooks_', internalType: 'contract IHooks', type: 'address' },
2670
2701
  ],
2671
2702
  stateMutability: 'nonpayable',
2672
2703
  },
2673
- { type: 'receive', stateMutability: 'payable' },
2674
2704
  {
2675
2705
  type: 'function',
2676
2706
  inputs: [],
2677
- name: 'PERCENTAGE_BASIS',
2678
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2707
+ name: 'DOMAIN_SEPARATOR',
2708
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2679
2709
  stateMutability: 'view',
2680
2710
  },
2681
2711
  {
2682
2712
  type: 'function',
2683
- inputs: [],
2684
- name: 'UPGRADE_INTERFACE_VERSION',
2685
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
2686
- stateMutability: 'view',
2713
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2714
+ name: 'addOwner',
2715
+ outputs: [],
2716
+ stateMutability: 'nonpayable',
2687
2717
  },
2688
2718
  {
2689
2719
  type: 'function',
2690
- inputs: [],
2691
- name: 'acceptOwnership',
2720
+ inputs: [
2721
+ { name: 'accounts', internalType: 'address[]', type: 'address[]' },
2722
+ ],
2723
+ name: 'addOwners',
2692
2724
  outputs: [],
2693
2725
  stateMutability: 'nonpayable',
2694
2726
  },
2695
2727
  {
2696
2728
  type: 'function',
2697
2729
  inputs: [],
2698
- name: 'config',
2699
- outputs: [
2700
- {
2701
- name: 'cointagStorage',
2702
- internalType: 'struct ICointag.CointagStorageV1',
2703
- type: 'tuple',
2704
- components: [
2705
- {
2706
- name: 'creatorRewardRecipient',
2707
- internalType: 'address',
2708
- type: 'address',
2709
- },
2710
- { name: 'erc20', internalType: 'contract IERC20', type: 'address' },
2711
- {
2712
- name: 'pool',
2713
- internalType: 'contract IUniswapV3Pool',
2714
- type: 'address',
2715
- },
2716
- {
2717
- name: 'percentageToBuyBurn',
2718
- internalType: 'uint256',
2719
- type: 'uint256',
2720
- },
2721
- ],
2722
- },
2730
+ name: 'airlock',
2731
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2732
+ stateMutability: 'view',
2733
+ },
2734
+ {
2735
+ type: 'function',
2736
+ inputs: [
2737
+ { name: 'owner', internalType: 'address', type: 'address' },
2738
+ { name: 'spender', internalType: 'address', type: 'address' },
2723
2739
  ],
2724
- stateMutability: 'pure',
2740
+ name: 'allowance',
2741
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2742
+ stateMutability: 'view',
2725
2743
  },
2726
2744
  {
2727
2745
  type: 'function',
2728
- inputs: [],
2729
- name: 'contractName',
2730
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
2731
- stateMutability: 'pure',
2746
+ inputs: [
2747
+ { name: 'spender', internalType: 'address', type: 'address' },
2748
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
2749
+ ],
2750
+ name: 'approve',
2751
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2752
+ stateMutability: 'nonpayable',
2732
2753
  },
2733
2754
  {
2734
2755
  type: 'function',
2735
- inputs: [],
2736
- name: 'contractVersion',
2737
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
2738
- stateMutability: 'pure',
2756
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2757
+ name: 'balanceOf',
2758
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2759
+ stateMutability: 'view',
2739
2760
  },
2740
2761
  {
2741
2762
  type: 'function',
2742
- inputs: [],
2743
- name: 'distribute',
2763
+ inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2764
+ name: 'burn',
2744
2765
  outputs: [],
2745
2766
  stateMutability: 'nonpayable',
2746
2767
  },
2747
2768
  {
2748
2769
  type: 'function',
2749
2770
  inputs: [],
2750
- name: 'erc20',
2751
- outputs: [{ name: '', internalType: 'contract IERC20', type: 'address' }],
2771
+ name: 'contractURI',
2772
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
2752
2773
  stateMutability: 'view',
2753
2774
  },
2754
2775
  {
2755
2776
  type: 'function',
2756
2777
  inputs: [],
2757
- name: 'implementation',
2758
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
2759
- stateMutability: 'view',
2778
+ name: 'contractVersion',
2779
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
2780
+ stateMutability: 'pure',
2760
2781
  },
2761
2782
  {
2762
2783
  type: 'function',
2763
- inputs: [
2764
- {
2765
- name: 'creatorRewardRecipient',
2766
- internalType: 'address',
2767
- type: 'address',
2768
- },
2769
- { name: 'pool_', internalType: 'address', type: 'address' },
2770
- { name: 'percentageToBuyBurn', internalType: 'uint256', type: 'uint256' },
2771
- ],
2772
- name: 'initialize',
2773
- outputs: [],
2774
- stateMutability: 'nonpayable',
2784
+ inputs: [],
2785
+ name: 'currency',
2786
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2787
+ stateMutability: 'view',
2775
2788
  },
2776
2789
  {
2777
2790
  type: 'function',
2778
2791
  inputs: [],
2779
- name: 'owner',
2780
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
2792
+ name: 'decimals',
2793
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
2781
2794
  stateMutability: 'view',
2782
2795
  },
2783
2796
  {
2784
2797
  type: 'function',
2785
2798
  inputs: [],
2786
- name: 'pendingOwner',
2799
+ name: 'dopplerFeeRecipient',
2787
2800
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
2788
2801
  stateMutability: 'view',
2789
2802
  },
2790
2803
  {
2791
2804
  type: 'function',
2792
2805
  inputs: [],
2793
- name: 'pool',
2806
+ name: 'eip712Domain',
2794
2807
  outputs: [
2795
- { name: '', internalType: 'contract IUniswapV3Pool', type: 'address' },
2808
+ { name: 'fields', internalType: 'bytes1', type: 'bytes1' },
2809
+ { name: 'name', internalType: 'string', type: 'string' },
2810
+ { name: 'version', internalType: 'string', type: 'string' },
2811
+ { name: 'chainId', internalType: 'uint256', type: 'uint256' },
2812
+ { name: 'verifyingContract', internalType: 'address', type: 'address' },
2813
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2814
+ { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
2796
2815
  ],
2797
2816
  stateMutability: 'view',
2798
2817
  },
2799
2818
  {
2800
2819
  type: 'function',
2801
- inputs: [],
2802
- name: 'protocolRewards',
2820
+ inputs: [
2821
+ {
2822
+ name: 'coinVersionLookup',
2823
+ internalType: 'contract IDeployedCoinVersionLookup',
2824
+ type: 'address',
2825
+ },
2826
+ ],
2827
+ name: 'getPayoutSwapPath',
2803
2828
  outputs: [
2804
- { name: '', internalType: 'contract IProtocolRewards', type: 'address' },
2829
+ {
2830
+ name: 'payoutSwapPath',
2831
+ internalType: 'struct IHasSwapPath.PayoutSwapPath',
2832
+ type: 'tuple',
2833
+ components: [
2834
+ {
2835
+ name: 'path',
2836
+ internalType: 'struct PathKey[]',
2837
+ type: 'tuple[]',
2838
+ components: [
2839
+ {
2840
+ name: 'intermediateCurrency',
2841
+ internalType: 'Currency',
2842
+ type: 'address',
2843
+ },
2844
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
2845
+ { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
2846
+ {
2847
+ name: 'hooks',
2848
+ internalType: 'contract IHooks',
2849
+ type: 'address',
2850
+ },
2851
+ { name: 'hookData', internalType: 'bytes', type: 'bytes' },
2852
+ ],
2853
+ },
2854
+ { name: 'currencyIn', internalType: 'Currency', type: 'address' },
2855
+ ],
2856
+ },
2805
2857
  ],
2806
2858
  stateMutability: 'view',
2807
2859
  },
2808
2860
  {
2809
2861
  type: 'function',
2810
2862
  inputs: [],
2811
- name: 'proxiableUUID',
2812
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2863
+ name: 'getPoolConfiguration',
2864
+ outputs: [
2865
+ {
2866
+ name: '',
2867
+ internalType: 'struct PoolConfiguration',
2868
+ type: 'tuple',
2869
+ components: [
2870
+ { name: 'version', internalType: 'uint8', type: 'uint8' },
2871
+ { name: 'numPositions', internalType: 'uint16', type: 'uint16' },
2872
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
2873
+ { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
2874
+ {
2875
+ name: 'numDiscoveryPositions',
2876
+ internalType: 'uint16[]',
2877
+ type: 'uint16[]',
2878
+ },
2879
+ { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' },
2880
+ { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' },
2881
+ {
2882
+ name: 'maxDiscoverySupplyShare',
2883
+ internalType: 'uint256[]',
2884
+ type: 'uint256[]',
2885
+ },
2886
+ ],
2887
+ },
2888
+ ],
2813
2889
  stateMutability: 'view',
2814
2890
  },
2815
2891
  {
2816
2892
  type: 'function',
2817
2893
  inputs: [],
2818
- name: 'pull',
2819
- outputs: [],
2820
- stateMutability: 'nonpayable',
2821
- },
2822
- {
2823
- type: 'function',
2824
- inputs: [],
2825
- name: 'renounceOwnership',
2826
- outputs: [],
2827
- stateMutability: 'nonpayable',
2828
- },
2829
- {
2830
- type: 'function',
2831
- inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
2832
- name: 'transferOwnership',
2833
- outputs: [],
2834
- stateMutability: 'nonpayable',
2835
- },
2836
- {
2837
- type: 'function',
2838
- inputs: [
2839
- { name: 'amount0Delta', internalType: 'int256', type: 'int256' },
2840
- { name: 'amount1Delta', internalType: 'int256', type: 'int256' },
2841
- { name: '', internalType: 'bytes', type: 'bytes' },
2894
+ name: 'getPoolKey',
2895
+ outputs: [
2896
+ {
2897
+ name: '',
2898
+ internalType: 'struct PoolKey',
2899
+ type: 'tuple',
2900
+ components: [
2901
+ { name: 'currency0', internalType: 'Currency', type: 'address' },
2902
+ { name: 'currency1', internalType: 'Currency', type: 'address' },
2903
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
2904
+ { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
2905
+ { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
2906
+ ],
2907
+ },
2842
2908
  ],
2843
- name: 'uniswapV3SwapCallback',
2844
- outputs: [],
2845
- stateMutability: 'nonpayable',
2909
+ stateMutability: 'view',
2846
2910
  },
2847
2911
  {
2848
2912
  type: 'function',
2849
2913
  inputs: [],
2850
- name: 'upgradeGate',
2851
- outputs: [
2852
- { name: '', internalType: 'contract IUpgradeGate', type: 'address' },
2853
- ],
2914
+ name: 'hooks',
2915
+ outputs: [{ name: '', internalType: 'contract IHooks', type: 'address' }],
2854
2916
  stateMutability: 'view',
2855
2917
  },
2856
2918
  {
2857
2919
  type: 'function',
2858
2920
  inputs: [
2859
- { name: 'newImplementation', internalType: 'address', type: 'address' },
2860
- { name: 'data', internalType: 'bytes', type: 'bytes' },
2921
+ { name: 'payoutRecipient_', internalType: 'address', type: 'address' },
2922
+ { name: 'owners_', internalType: 'address[]', type: 'address[]' },
2923
+ { name: 'tokenURI_', internalType: 'string', type: 'string' },
2924
+ { name: 'name_', internalType: 'string', type: 'string' },
2925
+ { name: 'symbol_', internalType: 'string', type: 'string' },
2926
+ { name: 'platformReferrer_', internalType: 'address', type: 'address' },
2927
+ { name: 'currency_', internalType: 'address', type: 'address' },
2928
+ {
2929
+ name: 'poolKey_',
2930
+ internalType: 'struct PoolKey',
2931
+ type: 'tuple',
2932
+ components: [
2933
+ { name: 'currency0', internalType: 'Currency', type: 'address' },
2934
+ { name: 'currency1', internalType: 'Currency', type: 'address' },
2935
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
2936
+ { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
2937
+ { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
2938
+ ],
2939
+ },
2940
+ { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' },
2941
+ {
2942
+ name: 'poolConfiguration_',
2943
+ internalType: 'struct PoolConfiguration',
2944
+ type: 'tuple',
2945
+ components: [
2946
+ { name: 'version', internalType: 'uint8', type: 'uint8' },
2947
+ { name: 'numPositions', internalType: 'uint16', type: 'uint16' },
2948
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
2949
+ { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
2950
+ {
2951
+ name: 'numDiscoveryPositions',
2952
+ internalType: 'uint16[]',
2953
+ type: 'uint16[]',
2954
+ },
2955
+ { name: 'tickLower', internalType: 'int24[]', type: 'int24[]' },
2956
+ { name: 'tickUpper', internalType: 'int24[]', type: 'int24[]' },
2957
+ {
2958
+ name: 'maxDiscoverySupplyShare',
2959
+ internalType: 'uint256[]',
2960
+ type: 'uint256[]',
2961
+ },
2962
+ ],
2963
+ },
2964
+ ],
2965
+ name: 'initialize',
2966
+ outputs: [],
2967
+ stateMutability: 'nonpayable',
2968
+ },
2969
+ {
2970
+ type: 'function',
2971
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2972
+ name: 'isOwner',
2973
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2974
+ stateMutability: 'view',
2975
+ },
2976
+ {
2977
+ type: 'function',
2978
+ inputs: [],
2979
+ name: 'name',
2980
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
2981
+ stateMutability: 'view',
2982
+ },
2983
+ {
2984
+ type: 'function',
2985
+ inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
2986
+ name: 'nonces',
2987
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2988
+ stateMutability: 'view',
2989
+ },
2990
+ {
2991
+ type: 'function',
2992
+ inputs: [],
2993
+ name: 'owners',
2994
+ outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
2995
+ stateMutability: 'view',
2996
+ },
2997
+ {
2998
+ type: 'function',
2999
+ inputs: [],
3000
+ name: 'payoutRecipient',
3001
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3002
+ stateMutability: 'view',
3003
+ },
3004
+ {
3005
+ type: 'function',
3006
+ inputs: [
3007
+ { name: 'owner', internalType: 'address', type: 'address' },
3008
+ { name: 'spender', internalType: 'address', type: 'address' },
3009
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
3010
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
3011
+ { name: 'v', internalType: 'uint8', type: 'uint8' },
3012
+ { name: 'r', internalType: 'bytes32', type: 'bytes32' },
3013
+ { name: 's', internalType: 'bytes32', type: 'bytes32' },
3014
+ ],
3015
+ name: 'permit',
3016
+ outputs: [],
3017
+ stateMutability: 'nonpayable',
3018
+ },
3019
+ {
3020
+ type: 'function',
3021
+ inputs: [],
3022
+ name: 'platformReferrer',
3023
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3024
+ stateMutability: 'view',
3025
+ },
3026
+ {
3027
+ type: 'function',
3028
+ inputs: [],
3029
+ name: 'poolManager',
3030
+ outputs: [
3031
+ { name: '', internalType: 'contract IPoolManager', type: 'address' },
3032
+ ],
3033
+ stateMutability: 'view',
3034
+ },
3035
+ {
3036
+ type: 'function',
3037
+ inputs: [],
3038
+ name: 'protocolRewardRecipient',
3039
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3040
+ stateMutability: 'view',
3041
+ },
3042
+ {
3043
+ type: 'function',
3044
+ inputs: [],
3045
+ name: 'protocolRewards',
3046
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3047
+ stateMutability: 'view',
3048
+ },
3049
+ {
3050
+ type: 'function',
3051
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
3052
+ name: 'removeOwner',
3053
+ outputs: [],
3054
+ stateMutability: 'nonpayable',
3055
+ },
3056
+ {
3057
+ type: 'function',
3058
+ inputs: [
3059
+ { name: 'accounts', internalType: 'address[]', type: 'address[]' },
3060
+ ],
3061
+ name: 'removeOwners',
3062
+ outputs: [],
3063
+ stateMutability: 'nonpayable',
3064
+ },
3065
+ {
3066
+ type: 'function',
3067
+ inputs: [],
3068
+ name: 'revokeOwnership',
3069
+ outputs: [],
3070
+ stateMutability: 'nonpayable',
3071
+ },
3072
+ {
3073
+ type: 'function',
3074
+ inputs: [{ name: 'newURI', internalType: 'string', type: 'string' }],
3075
+ name: 'setContractURI',
3076
+ outputs: [],
3077
+ stateMutability: 'nonpayable',
3078
+ },
3079
+ {
3080
+ type: 'function',
3081
+ inputs: [
3082
+ { name: 'newPayoutRecipient', internalType: 'address', type: 'address' },
3083
+ ],
3084
+ name: 'setPayoutRecipient',
3085
+ outputs: [],
3086
+ stateMutability: 'nonpayable',
3087
+ },
3088
+ {
3089
+ type: 'function',
3090
+ inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
3091
+ name: 'supportsInterface',
3092
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3093
+ stateMutability: 'pure',
3094
+ },
3095
+ {
3096
+ type: 'function',
3097
+ inputs: [],
3098
+ name: 'symbol',
3099
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3100
+ stateMutability: 'view',
3101
+ },
3102
+ {
3103
+ type: 'function',
3104
+ inputs: [],
3105
+ name: 'tokenURI',
3106
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3107
+ stateMutability: 'view',
3108
+ },
3109
+ {
3110
+ type: 'function',
3111
+ inputs: [],
3112
+ name: 'totalSupply',
3113
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3114
+ stateMutability: 'view',
3115
+ },
3116
+ {
3117
+ type: 'function',
3118
+ inputs: [
3119
+ { name: 'to', internalType: 'address', type: 'address' },
3120
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
3121
+ ],
3122
+ name: 'transfer',
3123
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3124
+ stateMutability: 'nonpayable',
3125
+ },
3126
+ {
3127
+ type: 'function',
3128
+ inputs: [
3129
+ { name: 'from', internalType: 'address', type: 'address' },
3130
+ { name: 'to', internalType: 'address', type: 'address' },
3131
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
3132
+ ],
3133
+ name: 'transferFrom',
3134
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3135
+ stateMutability: 'nonpayable',
3136
+ },
3137
+ {
3138
+ type: 'event',
3139
+ anonymous: false,
3140
+ inputs: [
3141
+ {
3142
+ name: 'owner',
3143
+ internalType: 'address',
3144
+ type: 'address',
3145
+ indexed: true,
3146
+ },
3147
+ {
3148
+ name: 'spender',
3149
+ internalType: 'address',
3150
+ type: 'address',
3151
+ indexed: true,
3152
+ },
3153
+ {
3154
+ name: 'value',
3155
+ internalType: 'uint256',
3156
+ type: 'uint256',
3157
+ indexed: false,
3158
+ },
3159
+ ],
3160
+ name: 'Approval',
3161
+ },
3162
+ {
3163
+ type: 'event',
3164
+ anonymous: false,
3165
+ inputs: [
3166
+ {
3167
+ name: 'buyer',
3168
+ internalType: 'address',
3169
+ type: 'address',
3170
+ indexed: true,
3171
+ },
3172
+ {
3173
+ name: 'recipient',
3174
+ internalType: 'address',
3175
+ type: 'address',
3176
+ indexed: true,
3177
+ },
3178
+ {
3179
+ name: 'tradeReferrer',
3180
+ internalType: 'address',
3181
+ type: 'address',
3182
+ indexed: true,
3183
+ },
3184
+ {
3185
+ name: 'coinsPurchased',
3186
+ internalType: 'uint256',
3187
+ type: 'uint256',
3188
+ indexed: false,
3189
+ },
3190
+ {
3191
+ name: 'currency',
3192
+ internalType: 'address',
3193
+ type: 'address',
3194
+ indexed: false,
3195
+ },
3196
+ {
3197
+ name: 'amountFee',
3198
+ internalType: 'uint256',
3199
+ type: 'uint256',
3200
+ indexed: false,
3201
+ },
3202
+ {
3203
+ name: 'amountSold',
3204
+ internalType: 'uint256',
3205
+ type: 'uint256',
3206
+ indexed: false,
3207
+ },
3208
+ ],
3209
+ name: 'CoinBuy',
3210
+ },
3211
+ {
3212
+ type: 'event',
3213
+ anonymous: false,
3214
+ inputs: [
3215
+ {
3216
+ name: 'payoutRecipient',
3217
+ internalType: 'address',
3218
+ type: 'address',
3219
+ indexed: true,
3220
+ },
3221
+ {
3222
+ name: 'platformReferrer',
3223
+ internalType: 'address',
3224
+ type: 'address',
3225
+ indexed: true,
3226
+ },
3227
+ {
3228
+ name: 'protocolRewardRecipient',
3229
+ internalType: 'address',
3230
+ type: 'address',
3231
+ indexed: false,
3232
+ },
3233
+ {
3234
+ name: 'currency',
3235
+ internalType: 'address',
3236
+ type: 'address',
3237
+ indexed: false,
3238
+ },
3239
+ {
3240
+ name: 'marketRewards',
3241
+ internalType: 'struct ICoin.MarketRewards',
3242
+ type: 'tuple',
3243
+ components: [
3244
+ {
3245
+ name: 'totalAmountCurrency',
3246
+ internalType: 'uint256',
3247
+ type: 'uint256',
3248
+ },
3249
+ { name: 'totalAmountCoin', internalType: 'uint256', type: 'uint256' },
3250
+ {
3251
+ name: 'creatorPayoutAmountCurrency',
3252
+ internalType: 'uint256',
3253
+ type: 'uint256',
3254
+ },
3255
+ {
3256
+ name: 'creatorPayoutAmountCoin',
3257
+ internalType: 'uint256',
3258
+ type: 'uint256',
3259
+ },
3260
+ {
3261
+ name: 'platformReferrerAmountCurrency',
3262
+ internalType: 'uint256',
3263
+ type: 'uint256',
3264
+ },
3265
+ {
3266
+ name: 'platformReferrerAmountCoin',
3267
+ internalType: 'uint256',
3268
+ type: 'uint256',
3269
+ },
3270
+ {
3271
+ name: 'protocolAmountCurrency',
3272
+ internalType: 'uint256',
3273
+ type: 'uint256',
3274
+ },
3275
+ {
3276
+ name: 'protocolAmountCoin',
3277
+ internalType: 'uint256',
3278
+ type: 'uint256',
3279
+ },
3280
+ ],
3281
+ indexed: false,
3282
+ },
3283
+ ],
3284
+ name: 'CoinMarketRewards',
3285
+ },
3286
+ {
3287
+ type: 'event',
3288
+ anonymous: false,
3289
+ inputs: [
3290
+ {
3291
+ name: 'caller',
3292
+ internalType: 'address',
3293
+ type: 'address',
3294
+ indexed: true,
3295
+ },
3296
+ {
3297
+ name: 'prevRecipient',
3298
+ internalType: 'address',
3299
+ type: 'address',
3300
+ indexed: true,
3301
+ },
3302
+ {
3303
+ name: 'newRecipient',
3304
+ internalType: 'address',
3305
+ type: 'address',
3306
+ indexed: true,
3307
+ },
3308
+ ],
3309
+ name: 'CoinPayoutRecipientUpdated',
3310
+ },
3311
+ {
3312
+ type: 'event',
3313
+ anonymous: false,
3314
+ inputs: [
3315
+ {
3316
+ name: 'seller',
3317
+ internalType: 'address',
3318
+ type: 'address',
3319
+ indexed: true,
3320
+ },
3321
+ {
3322
+ name: 'recipient',
3323
+ internalType: 'address',
3324
+ type: 'address',
3325
+ indexed: true,
3326
+ },
3327
+ {
3328
+ name: 'tradeReferrer',
3329
+ internalType: 'address',
3330
+ type: 'address',
3331
+ indexed: true,
3332
+ },
3333
+ {
3334
+ name: 'coinsSold',
3335
+ internalType: 'uint256',
3336
+ type: 'uint256',
3337
+ indexed: false,
3338
+ },
3339
+ {
3340
+ name: 'currency',
3341
+ internalType: 'address',
3342
+ type: 'address',
3343
+ indexed: false,
3344
+ },
3345
+ {
3346
+ name: 'amountFee',
3347
+ internalType: 'uint256',
3348
+ type: 'uint256',
3349
+ indexed: false,
3350
+ },
3351
+ {
3352
+ name: 'amountPurchased',
3353
+ internalType: 'uint256',
3354
+ type: 'uint256',
3355
+ indexed: false,
3356
+ },
3357
+ ],
3358
+ name: 'CoinSell',
3359
+ },
3360
+ {
3361
+ type: 'event',
3362
+ anonymous: false,
3363
+ inputs: [
3364
+ {
3365
+ name: 'payoutRecipient',
3366
+ internalType: 'address',
3367
+ type: 'address',
3368
+ indexed: true,
3369
+ },
3370
+ {
3371
+ name: 'platformReferrer',
3372
+ internalType: 'address',
3373
+ type: 'address',
3374
+ indexed: true,
3375
+ },
3376
+ {
3377
+ name: 'tradeReferrer',
3378
+ internalType: 'address',
3379
+ type: 'address',
3380
+ indexed: true,
3381
+ },
3382
+ {
3383
+ name: 'protocolRewardRecipient',
3384
+ internalType: 'address',
3385
+ type: 'address',
3386
+ indexed: false,
3387
+ },
3388
+ {
3389
+ name: 'creatorReward',
3390
+ internalType: 'uint256',
3391
+ type: 'uint256',
3392
+ indexed: false,
3393
+ },
3394
+ {
3395
+ name: 'platformReferrerReward',
3396
+ internalType: 'uint256',
3397
+ type: 'uint256',
3398
+ indexed: false,
3399
+ },
3400
+ {
3401
+ name: 'traderReferrerReward',
3402
+ internalType: 'uint256',
3403
+ type: 'uint256',
3404
+ indexed: false,
3405
+ },
3406
+ {
3407
+ name: 'protocolReward',
3408
+ internalType: 'uint256',
3409
+ type: 'uint256',
3410
+ indexed: false,
3411
+ },
3412
+ {
3413
+ name: 'currency',
3414
+ internalType: 'address',
3415
+ type: 'address',
3416
+ indexed: false,
3417
+ },
3418
+ ],
3419
+ name: 'CoinTradeRewards',
3420
+ },
3421
+ {
3422
+ type: 'event',
3423
+ anonymous: false,
3424
+ inputs: [
3425
+ {
3426
+ name: 'sender',
3427
+ internalType: 'address',
3428
+ type: 'address',
3429
+ indexed: true,
3430
+ },
3431
+ {
3432
+ name: 'recipient',
3433
+ internalType: 'address',
3434
+ type: 'address',
3435
+ indexed: true,
3436
+ },
3437
+ {
3438
+ name: 'amount',
3439
+ internalType: 'uint256',
3440
+ type: 'uint256',
3441
+ indexed: false,
3442
+ },
3443
+ {
3444
+ name: 'senderBalance',
3445
+ internalType: 'uint256',
3446
+ type: 'uint256',
3447
+ indexed: false,
3448
+ },
3449
+ {
3450
+ name: 'recipientBalance',
3451
+ internalType: 'uint256',
3452
+ type: 'uint256',
3453
+ indexed: false,
3454
+ },
3455
+ ],
3456
+ name: 'CoinTransfer',
3457
+ },
3458
+ {
3459
+ type: 'event',
3460
+ anonymous: false,
3461
+ inputs: [
3462
+ {
3463
+ name: 'caller',
3464
+ internalType: 'address',
3465
+ type: 'address',
3466
+ indexed: true,
3467
+ },
3468
+ {
3469
+ name: 'newURI',
3470
+ internalType: 'string',
3471
+ type: 'string',
3472
+ indexed: false,
3473
+ },
3474
+ { name: 'name', internalType: 'string', type: 'string', indexed: false },
3475
+ ],
3476
+ name: 'ContractMetadataUpdated',
3477
+ },
3478
+ { type: 'event', anonymous: false, inputs: [], name: 'ContractURIUpdated' },
3479
+ { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' },
3480
+ {
3481
+ type: 'event',
3482
+ anonymous: false,
3483
+ inputs: [
3484
+ {
3485
+ name: 'version',
3486
+ internalType: 'uint64',
3487
+ type: 'uint64',
3488
+ indexed: false,
3489
+ },
3490
+ ],
3491
+ name: 'Initialized',
3492
+ },
3493
+ {
3494
+ type: 'event',
3495
+ anonymous: false,
3496
+ inputs: [
3497
+ {
3498
+ name: 'caller',
3499
+ internalType: 'address',
3500
+ type: 'address',
3501
+ indexed: true,
3502
+ },
3503
+ {
3504
+ name: 'prevOwner',
3505
+ internalType: 'address',
3506
+ type: 'address',
3507
+ indexed: true,
3508
+ },
3509
+ {
3510
+ name: 'newOwner',
3511
+ internalType: 'address',
3512
+ type: 'address',
3513
+ indexed: true,
3514
+ },
3515
+ ],
3516
+ name: 'OwnerUpdated',
3517
+ },
3518
+ {
3519
+ type: 'event',
3520
+ anonymous: false,
3521
+ inputs: [
3522
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
3523
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
3524
+ {
3525
+ name: 'value',
3526
+ internalType: 'uint256',
3527
+ type: 'uint256',
3528
+ indexed: false,
3529
+ },
3530
+ ],
3531
+ name: 'Transfer',
3532
+ },
3533
+ { type: 'error', inputs: [], name: 'AddressZero' },
3534
+ { type: 'error', inputs: [], name: 'AlreadyOwner' },
3535
+ { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' },
3536
+ {
3537
+ type: 'error',
3538
+ inputs: [],
3539
+ name: 'DopplerPoolMustHaveMoreThan2DiscoveryPositions',
3540
+ },
3541
+ { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' },
3542
+ {
3543
+ type: 'error',
3544
+ inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
3545
+ name: 'ECDSAInvalidSignatureLength',
3546
+ },
3547
+ {
3548
+ type: 'error',
3549
+ inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }],
3550
+ name: 'ECDSAInvalidSignatureS',
3551
+ },
3552
+ {
3553
+ type: 'error',
3554
+ inputs: [
3555
+ { name: 'spender', internalType: 'address', type: 'address' },
3556
+ { name: 'allowance', internalType: 'uint256', type: 'uint256' },
3557
+ { name: 'needed', internalType: 'uint256', type: 'uint256' },
3558
+ ],
3559
+ name: 'ERC20InsufficientAllowance',
3560
+ },
3561
+ {
3562
+ type: 'error',
3563
+ inputs: [
3564
+ { name: 'sender', internalType: 'address', type: 'address' },
3565
+ { name: 'balance', internalType: 'uint256', type: 'uint256' },
3566
+ { name: 'needed', internalType: 'uint256', type: 'uint256' },
3567
+ ],
3568
+ name: 'ERC20InsufficientBalance',
3569
+ },
3570
+ {
3571
+ type: 'error',
3572
+ inputs: [{ name: 'approver', internalType: 'address', type: 'address' }],
3573
+ name: 'ERC20InvalidApprover',
3574
+ },
3575
+ {
3576
+ type: 'error',
3577
+ inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }],
3578
+ name: 'ERC20InvalidReceiver',
3579
+ },
3580
+ {
3581
+ type: 'error',
3582
+ inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
3583
+ name: 'ERC20InvalidSender',
3584
+ },
3585
+ {
3586
+ type: 'error',
3587
+ inputs: [{ name: 'spender', internalType: 'address', type: 'address' }],
3588
+ name: 'ERC20InvalidSpender',
3589
+ },
3590
+ { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
3591
+ {
3592
+ type: 'error',
3593
+ inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }],
3594
+ name: 'ERC2612ExpiredSignature',
3595
+ },
3596
+ {
3597
+ type: 'error',
3598
+ inputs: [
3599
+ { name: 'signer', internalType: 'address', type: 'address' },
3600
+ { name: 'owner', internalType: 'address', type: 'address' },
3601
+ ],
3602
+ name: 'ERC2612InvalidSigner',
3603
+ },
3604
+ { type: 'error', inputs: [], name: 'EthAmountMismatch' },
3605
+ { type: 'error', inputs: [], name: 'EthAmountTooSmall' },
3606
+ { type: 'error', inputs: [], name: 'EthTransferFailed' },
3607
+ { type: 'error', inputs: [], name: 'EthTransferInvalid' },
3608
+ { type: 'error', inputs: [], name: 'InitialOrderSizeTooLarge' },
3609
+ { type: 'error', inputs: [], name: 'InsufficientFunds' },
3610
+ { type: 'error', inputs: [], name: 'InsufficientLiquidity' },
3611
+ {
3612
+ type: 'error',
3613
+ inputs: [
3614
+ { name: 'account', internalType: 'address', type: 'address' },
3615
+ { name: 'currentNonce', internalType: 'uint256', type: 'uint256' },
3616
+ ],
3617
+ name: 'InvalidAccountNonce',
3618
+ },
3619
+ { type: 'error', inputs: [], name: 'InvalidCurrencyLowerTick' },
3620
+ { type: 'error', inputs: [], name: 'InvalidInitialization' },
3621
+ { type: 'error', inputs: [], name: 'InvalidMarketType' },
3622
+ { type: 'error', inputs: [], name: 'InvalidPoolVersion' },
3623
+ {
3624
+ type: 'error',
3625
+ inputs: [
3626
+ { name: 'tickLower', internalType: 'int24', type: 'int24' },
3627
+ { name: 'tickUpper', internalType: 'int24', type: 'int24' },
3628
+ ],
3629
+ name: 'InvalidTickRangeMisordered',
3630
+ },
3631
+ { type: 'error', inputs: [], name: 'InvalidWethLowerTick' },
3632
+ { type: 'error', inputs: [], name: 'LegacyPoolMustHaveOneDiscoveryPosition' },
3633
+ { type: 'error', inputs: [], name: 'MarketAlreadyGraduated' },
3634
+ { type: 'error', inputs: [], name: 'MarketNotGraduated' },
3635
+ {
3636
+ type: 'error',
3637
+ inputs: [
3638
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
3639
+ { name: 'limit', internalType: 'uint256', type: 'uint256' },
3640
+ ],
3641
+ name: 'MaxShareToBeSoldExceeded',
3642
+ },
3643
+ { type: 'error', inputs: [], name: 'NotInitializing' },
3644
+ { type: 'error', inputs: [], name: 'NotOwner' },
3645
+ { type: 'error', inputs: [], name: 'NumDiscoveryPositionsOutOfRange' },
3646
+ { type: 'error', inputs: [], name: 'OneOwnerRequired' },
3647
+ { type: 'error', inputs: [], name: 'OnlyOwner' },
3648
+ {
3649
+ type: 'error',
3650
+ inputs: [
3651
+ { name: 'sender', internalType: 'address', type: 'address' },
3652
+ { name: 'pool', internalType: 'address', type: 'address' },
3653
+ ],
3654
+ name: 'OnlyPool',
3655
+ },
3656
+ { type: 'error', inputs: [], name: 'OnlyWeth' },
3657
+ { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' },
3658
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
3659
+ { type: 'error', inputs: [], name: 'SlippageBoundsExceeded' },
3660
+ { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' },
3661
+ ] as const
3662
+
3663
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3664
+ // Cointag
3665
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3666
+
3667
+ export const cointagABI = [
3668
+ {
3669
+ type: 'constructor',
3670
+ inputs: [
3671
+ { name: 'protocolRewards_', internalType: 'address', type: 'address' },
3672
+ { name: 'weth_', internalType: 'address', type: 'address' },
3673
+ { name: 'upgradeGate_', internalType: 'address', type: 'address' },
3674
+ ],
3675
+ stateMutability: 'nonpayable',
3676
+ },
3677
+ { type: 'receive', stateMutability: 'payable' },
3678
+ {
3679
+ type: 'function',
3680
+ inputs: [],
3681
+ name: 'PERCENTAGE_BASIS',
3682
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3683
+ stateMutability: 'view',
3684
+ },
3685
+ {
3686
+ type: 'function',
3687
+ inputs: [],
3688
+ name: 'UPGRADE_INTERFACE_VERSION',
3689
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3690
+ stateMutability: 'view',
3691
+ },
3692
+ {
3693
+ type: 'function',
3694
+ inputs: [],
3695
+ name: 'acceptOwnership',
3696
+ outputs: [],
3697
+ stateMutability: 'nonpayable',
3698
+ },
3699
+ {
3700
+ type: 'function',
3701
+ inputs: [],
3702
+ name: 'config',
3703
+ outputs: [
3704
+ {
3705
+ name: 'cointagStorage',
3706
+ internalType: 'struct ICointag.CointagStorageV1',
3707
+ type: 'tuple',
3708
+ components: [
3709
+ {
3710
+ name: 'creatorRewardRecipient',
3711
+ internalType: 'address',
3712
+ type: 'address',
3713
+ },
3714
+ { name: 'erc20', internalType: 'contract IERC20', type: 'address' },
3715
+ {
3716
+ name: 'pool',
3717
+ internalType: 'contract IUniswapV3Pool',
3718
+ type: 'address',
3719
+ },
3720
+ {
3721
+ name: 'percentageToBuyBurn',
3722
+ internalType: 'uint256',
3723
+ type: 'uint256',
3724
+ },
3725
+ ],
3726
+ },
3727
+ ],
3728
+ stateMutability: 'pure',
3729
+ },
3730
+ {
3731
+ type: 'function',
3732
+ inputs: [],
3733
+ name: 'contractName',
3734
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3735
+ stateMutability: 'pure',
3736
+ },
3737
+ {
3738
+ type: 'function',
3739
+ inputs: [],
3740
+ name: 'contractVersion',
3741
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3742
+ stateMutability: 'pure',
3743
+ },
3744
+ {
3745
+ type: 'function',
3746
+ inputs: [],
3747
+ name: 'distribute',
3748
+ outputs: [],
3749
+ stateMutability: 'nonpayable',
3750
+ },
3751
+ {
3752
+ type: 'function',
3753
+ inputs: [],
3754
+ name: 'erc20',
3755
+ outputs: [{ name: '', internalType: 'contract IERC20', type: 'address' }],
3756
+ stateMutability: 'view',
3757
+ },
3758
+ {
3759
+ type: 'function',
3760
+ inputs: [],
3761
+ name: 'implementation',
3762
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3763
+ stateMutability: 'view',
3764
+ },
3765
+ {
3766
+ type: 'function',
3767
+ inputs: [
3768
+ {
3769
+ name: 'creatorRewardRecipient',
3770
+ internalType: 'address',
3771
+ type: 'address',
3772
+ },
3773
+ { name: 'pool_', internalType: 'address', type: 'address' },
3774
+ { name: 'percentageToBuyBurn', internalType: 'uint256', type: 'uint256' },
3775
+ ],
3776
+ name: 'initialize',
3777
+ outputs: [],
3778
+ stateMutability: 'nonpayable',
3779
+ },
3780
+ {
3781
+ type: 'function',
3782
+ inputs: [],
3783
+ name: 'owner',
3784
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3785
+ stateMutability: 'view',
3786
+ },
3787
+ {
3788
+ type: 'function',
3789
+ inputs: [],
3790
+ name: 'pendingOwner',
3791
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3792
+ stateMutability: 'view',
3793
+ },
3794
+ {
3795
+ type: 'function',
3796
+ inputs: [],
3797
+ name: 'pool',
3798
+ outputs: [
3799
+ { name: '', internalType: 'contract IUniswapV3Pool', type: 'address' },
3800
+ ],
3801
+ stateMutability: 'view',
3802
+ },
3803
+ {
3804
+ type: 'function',
3805
+ inputs: [],
3806
+ name: 'protocolRewards',
3807
+ outputs: [
3808
+ { name: '', internalType: 'contract IProtocolRewards', type: 'address' },
3809
+ ],
3810
+ stateMutability: 'view',
3811
+ },
3812
+ {
3813
+ type: 'function',
3814
+ inputs: [],
3815
+ name: 'proxiableUUID',
3816
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3817
+ stateMutability: 'view',
3818
+ },
3819
+ {
3820
+ type: 'function',
3821
+ inputs: [],
3822
+ name: 'pull',
3823
+ outputs: [],
3824
+ stateMutability: 'nonpayable',
3825
+ },
3826
+ {
3827
+ type: 'function',
3828
+ inputs: [],
3829
+ name: 'renounceOwnership',
3830
+ outputs: [],
3831
+ stateMutability: 'nonpayable',
3832
+ },
3833
+ {
3834
+ type: 'function',
3835
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
3836
+ name: 'transferOwnership',
3837
+ outputs: [],
3838
+ stateMutability: 'nonpayable',
3839
+ },
3840
+ {
3841
+ type: 'function',
3842
+ inputs: [
3843
+ { name: 'amount0Delta', internalType: 'int256', type: 'int256' },
3844
+ { name: 'amount1Delta', internalType: 'int256', type: 'int256' },
3845
+ { name: '', internalType: 'bytes', type: 'bytes' },
3846
+ ],
3847
+ name: 'uniswapV3SwapCallback',
3848
+ outputs: [],
3849
+ stateMutability: 'nonpayable',
3850
+ },
3851
+ {
3852
+ type: 'function',
3853
+ inputs: [],
3854
+ name: 'upgradeGate',
3855
+ outputs: [
3856
+ { name: '', internalType: 'contract IUpgradeGate', type: 'address' },
3857
+ ],
3858
+ stateMutability: 'view',
3859
+ },
3860
+ {
3861
+ type: 'function',
3862
+ inputs: [
3863
+ { name: 'newImplementation', internalType: 'address', type: 'address' },
3864
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
2861
3865
  ],
2862
3866
  name: 'upgradeToAndCall',
2863
3867
  outputs: [],
@@ -4527,6 +5531,20 @@ export const devCoinFactoryABI = [
4527
5531
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
4528
5532
  stateMutability: 'view',
4529
5533
  },
5534
+ {
5535
+ type: 'function',
5536
+ inputs: [
5537
+ { name: 'msgSender', internalType: 'address', type: 'address' },
5538
+ { name: 'name', internalType: 'string', type: 'string' },
5539
+ { name: 'symbol', internalType: 'string', type: 'string' },
5540
+ { name: 'poolConfig', internalType: 'bytes', type: 'bytes' },
5541
+ { name: 'platformReferrer', internalType: 'address', type: 'address' },
5542
+ { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' },
5543
+ ],
5544
+ name: 'coinAddress',
5545
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
5546
+ stateMutability: 'view',
5547
+ },
4530
5548
  {
4531
5549
  type: 'function',
4532
5550
  inputs: [],
@@ -4585,14 +5603,14 @@ export const devCoinFactoryABI = [
4585
5603
  { name: 'symbol', internalType: 'string', type: 'string' },
4586
5604
  { name: 'poolConfig', internalType: 'bytes', type: 'bytes' },
4587
5605
  { name: 'platformReferrer', internalType: 'address', type: 'address' },
4588
- { name: 'hook', internalType: 'address', type: 'address' },
4589
- { name: 'hookData', internalType: 'bytes', type: 'bytes' },
5606
+ { name: 'postDeployHook', internalType: 'address', type: 'address' },
5607
+ { name: 'postDeployHookData', internalType: 'bytes', type: 'bytes' },
4590
5608
  { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' },
4591
5609
  ],
4592
5610
  name: 'deploy',
4593
5611
  outputs: [
4594
5612
  { name: 'coin', internalType: 'address', type: 'address' },
4595
- { name: 'hookDataOut', internalType: 'bytes', type: 'bytes' },
5613
+ { name: 'postDeployHookDataOut', internalType: 'bytes', type: 'bytes' },
4596
5614
  ],
4597
5615
  stateMutability: 'payable',
4598
5616
  },
@@ -4635,6 +5653,13 @@ export const devCoinFactoryABI = [
4635
5653
  ],
4636
5654
  stateMutability: 'payable',
4637
5655
  },
5656
+ {
5657
+ type: 'function',
5658
+ inputs: [{ name: 'coin', internalType: 'address', type: 'address' }],
5659
+ name: 'getVersionForDeployedCoin',
5660
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
5661
+ stateMutability: 'view',
5662
+ },
4638
5663
  {
4639
5664
  type: 'function',
4640
5665
  inputs: [],
@@ -6008,155 +7033,465 @@ export const erc20ZABI = [
6008
7033
  indexed: true,
6009
7034
  },
6010
7035
  {
6011
- name: 'value',
7036
+ name: 'value',
7037
+ internalType: 'uint256',
7038
+ type: 'uint256',
7039
+ indexed: false,
7040
+ },
7041
+ ],
7042
+ name: 'Approval',
7043
+ },
7044
+ {
7045
+ type: 'event',
7046
+ anonymous: false,
7047
+ inputs: [
7048
+ {
7049
+ name: 'erc20z',
7050
+ internalType: 'address',
7051
+ type: 'address',
7052
+ indexed: true,
7053
+ },
7054
+ {
7055
+ name: 'amount20z',
7056
+ internalType: 'uint256',
7057
+ type: 'uint256',
7058
+ indexed: false,
7059
+ },
7060
+ {
7061
+ name: 'collection',
7062
+ internalType: 'address',
7063
+ type: 'address',
7064
+ indexed: false,
7065
+ },
7066
+ {
7067
+ name: 'tokenId',
7068
+ internalType: 'uint256',
7069
+ type: 'uint256',
7070
+ indexed: false,
7071
+ },
7072
+ {
7073
+ name: 'amount1155',
7074
+ internalType: 'uint256',
7075
+ type: 'uint256',
7076
+ indexed: false,
7077
+ },
7078
+ {
7079
+ name: 'recipient',
7080
+ internalType: 'address',
7081
+ type: 'address',
7082
+ indexed: false,
7083
+ },
7084
+ ],
7085
+ name: 'ConvertedTo1155',
7086
+ },
7087
+ {
7088
+ type: 'event',
7089
+ anonymous: false,
7090
+ inputs: [
7091
+ {
7092
+ name: 'erc20z',
7093
+ internalType: 'address',
7094
+ type: 'address',
7095
+ indexed: true,
7096
+ },
7097
+ {
7098
+ name: 'amount20z',
7099
+ internalType: 'uint256',
7100
+ type: 'uint256',
7101
+ indexed: false,
7102
+ },
7103
+ {
7104
+ name: 'collection',
7105
+ internalType: 'address',
7106
+ type: 'address',
7107
+ indexed: false,
7108
+ },
7109
+ {
7110
+ name: 'tokenId',
7111
+ internalType: 'uint256',
7112
+ type: 'uint256',
7113
+ indexed: false,
7114
+ },
7115
+ {
7116
+ name: 'amount1155',
7117
+ internalType: 'uint256',
7118
+ type: 'uint256',
7119
+ indexed: false,
7120
+ },
7121
+ {
7122
+ name: 'recipient',
7123
+ internalType: 'address',
7124
+ type: 'address',
7125
+ indexed: false,
7126
+ },
7127
+ ],
7128
+ name: 'ConvertedTo20z',
7129
+ },
7130
+ {
7131
+ type: 'event',
7132
+ anonymous: false,
7133
+ inputs: [
7134
+ {
7135
+ name: 'version',
7136
+ internalType: 'uint64',
7137
+ type: 'uint64',
7138
+ indexed: false,
7139
+ },
7140
+ ],
7141
+ name: 'Initialized',
7142
+ },
7143
+ {
7144
+ type: 'event',
7145
+ anonymous: false,
7146
+ inputs: [
7147
+ {
7148
+ name: 'quantity',
6012
7149
  internalType: 'uint256',
6013
7150
  type: 'uint256',
6014
7151
  indexed: false,
6015
7152
  },
6016
7153
  ],
6017
- name: 'Approval',
7154
+ name: 'ReceivedAdminMintNFTs',
6018
7155
  },
6019
7156
  {
6020
7157
  type: 'event',
6021
7158
  anonymous: false,
6022
7159
  inputs: [
6023
7160
  {
6024
- name: 'erc20z',
7161
+ name: 'token0',
6025
7162
  internalType: 'address',
6026
7163
  type: 'address',
6027
7164
  indexed: true,
6028
7165
  },
6029
7166
  {
6030
- name: 'amount20z',
7167
+ name: 'amount0',
6031
7168
  internalType: 'uint256',
6032
7169
  type: 'uint256',
6033
- indexed: false,
7170
+ indexed: true,
6034
7171
  },
6035
7172
  {
6036
- name: 'collection',
7173
+ name: 'token1',
6037
7174
  internalType: 'address',
6038
7175
  type: 'address',
6039
7176
  indexed: false,
6040
7177
  },
6041
7178
  {
6042
- name: 'tokenId',
7179
+ name: 'amount1',
6043
7180
  internalType: 'uint256',
6044
7181
  type: 'uint256',
6045
7182
  indexed: false,
6046
7183
  },
7184
+ { name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false },
6047
7185
  {
6048
- name: 'amount1155',
7186
+ name: 'positionId',
6049
7187
  internalType: 'uint256',
6050
7188
  type: 'uint256',
6051
7189
  indexed: false,
6052
7190
  },
6053
7191
  {
6054
- name: 'recipient',
6055
- internalType: 'address',
6056
- type: 'address',
7192
+ name: 'lpLiquidity',
7193
+ internalType: 'uint256',
7194
+ type: 'uint256',
7195
+ indexed: false,
7196
+ },
7197
+ {
7198
+ name: 'erc20Excess',
7199
+ internalType: 'uint256',
7200
+ type: 'uint256',
7201
+ indexed: false,
7202
+ },
7203
+ {
7204
+ name: 'erc1155Excess',
7205
+ internalType: 'uint256',
7206
+ type: 'uint256',
6057
7207
  indexed: false,
6058
7208
  },
6059
7209
  ],
6060
- name: 'ConvertedTo1155',
7210
+ name: 'SecondaryMarketActivated',
6061
7211
  },
6062
7212
  {
6063
7213
  type: 'event',
6064
7214
  anonymous: false,
6065
7215
  inputs: [
7216
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
7217
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
6066
7218
  {
6067
- name: 'erc20z',
6068
- internalType: 'address',
6069
- type: 'address',
6070
- indexed: true,
6071
- },
6072
- {
6073
- name: 'amount20z',
7219
+ name: 'value',
6074
7220
  internalType: 'uint256',
6075
7221
  type: 'uint256',
6076
7222
  indexed: false,
6077
7223
  },
7224
+ ],
7225
+ name: 'Transfer',
7226
+ },
7227
+ {
7228
+ type: 'error',
7229
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
7230
+ name: 'AddressEmptyCode',
7231
+ },
7232
+ {
7233
+ type: 'error',
7234
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
7235
+ name: 'AddressInsufficientBalance',
7236
+ },
7237
+ { type: 'error', inputs: [], name: 'AlreadyActivatedCannotReactivate' },
7238
+ {
7239
+ type: 'error',
7240
+ inputs: [
7241
+ { name: 'spender', internalType: 'address', type: 'address' },
7242
+ { name: 'allowance', internalType: 'uint256', type: 'uint256' },
7243
+ { name: 'needed', internalType: 'uint256', type: 'uint256' },
7244
+ ],
7245
+ name: 'ERC20InsufficientAllowance',
7246
+ },
7247
+ {
7248
+ type: 'error',
7249
+ inputs: [
7250
+ { name: 'sender', internalType: 'address', type: 'address' },
7251
+ { name: 'balance', internalType: 'uint256', type: 'uint256' },
7252
+ { name: 'needed', internalType: 'uint256', type: 'uint256' },
7253
+ ],
7254
+ name: 'ERC20InsufficientBalance',
7255
+ },
7256
+ {
7257
+ type: 'error',
7258
+ inputs: [{ name: 'approver', internalType: 'address', type: 'address' }],
7259
+ name: 'ERC20InvalidApprover',
7260
+ },
7261
+ {
7262
+ type: 'error',
7263
+ inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }],
7264
+ name: 'ERC20InvalidReceiver',
7265
+ },
7266
+ {
7267
+ type: 'error',
7268
+ inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
7269
+ name: 'ERC20InvalidSender',
7270
+ },
7271
+ {
7272
+ type: 'error',
7273
+ inputs: [{ name: 'spender', internalType: 'address', type: 'address' }],
7274
+ name: 'ERC20InvalidSpender',
7275
+ },
7276
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
7277
+ { type: 'error', inputs: [], name: 'IDsDoNotMatchValuesLength' },
7278
+ { type: 'error', inputs: [], name: 'InsufficientBalance' },
7279
+ { type: 'error', inputs: [], name: 'Invalid20zTransfer' },
7280
+ { type: 'error', inputs: [], name: 'InvalidAmount20z' },
7281
+ { type: 'error', inputs: [], name: 'InvalidInitialization' },
7282
+ { type: 'error', inputs: [], name: 'InvalidParams' },
7283
+ { type: 'error', inputs: [], name: 'NotInitializing' },
7284
+ { type: 'error', inputs: [], name: 'OnlySaleStrategy' },
7285
+ {
7286
+ type: 'error',
7287
+ inputs: [],
7288
+ name: 'OnlySupportReceivingERC1155AssociatedZoraNFT',
7289
+ },
7290
+ {
7291
+ type: 'error',
7292
+ inputs: [],
7293
+ name: 'OnlySupportReceivingERC721UniswapPoolNFTs',
7294
+ },
7295
+ { type: 'error', inputs: [], name: 'PoolCreationFailed' },
7296
+ { type: 'error', inputs: [], name: 'RecipientAddressZero' },
7297
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
7298
+ {
7299
+ type: 'error',
7300
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
7301
+ name: 'SafeERC20FailedOperation',
7302
+ },
7303
+ { type: 'error', inputs: [], name: 'SecondaryMarketHasNotYetStarted' },
7304
+ { type: 'error', inputs: [], name: 'TokenIdNotValidToSwap' },
7305
+ { type: 'error', inputs: [], name: 'UnknownReceiveActionDataCall' },
7306
+ ] as const
7307
+
7308
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7309
+ // ERC20ZRoyalties
7310
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7311
+
7312
+ /**
7313
+ * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7314
+ * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7315
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7316
+ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7317
+ * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7318
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7319
+ * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7320
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7321
+ * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x53a85FbD2955EF713AA489Ae0C48523E727a0c07)
7322
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7323
+ */
7324
+ export const erc20ZRoyaltiesABI = [
7325
+ { type: 'receive', stateMutability: 'payable' },
7326
+ {
7327
+ type: 'function',
7328
+ inputs: [],
7329
+ name: 'WETH',
7330
+ outputs: [{ name: '', internalType: 'contract IWETH', type: 'address' }],
7331
+ stateMutability: 'view',
7332
+ },
7333
+ {
7334
+ type: 'function',
7335
+ inputs: [
7336
+ { name: 'erc20z', internalType: 'address', type: 'address' },
7337
+ { name: 'recipient', internalType: 'address payable', type: 'address' },
7338
+ ],
7339
+ name: 'claim',
7340
+ outputs: [],
7341
+ stateMutability: 'nonpayable',
7342
+ },
7343
+ {
7344
+ type: 'function',
7345
+ inputs: [{ name: 'erc20z', internalType: 'address', type: 'address' }],
7346
+ name: 'claimFor',
7347
+ outputs: [],
7348
+ stateMutability: 'nonpayable',
7349
+ },
7350
+ {
7351
+ type: 'function',
7352
+ inputs: [],
7353
+ name: 'feeBps',
7354
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
7355
+ stateMutability: 'view',
7356
+ },
7357
+ {
7358
+ type: 'function',
7359
+ inputs: [],
7360
+ name: 'feeRecipient',
7361
+ outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
7362
+ stateMutability: 'view',
7363
+ },
7364
+ {
7365
+ type: 'function',
7366
+ inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
7367
+ name: 'getFee',
7368
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
7369
+ stateMutability: 'view',
7370
+ },
7371
+ {
7372
+ type: 'function',
7373
+ inputs: [{ name: 'erc20z', internalType: 'address', type: 'address' }],
7374
+ name: 'getUnclaimedFees',
7375
+ outputs: [
6078
7376
  {
6079
- name: 'collection',
6080
- internalType: 'address',
6081
- type: 'address',
6082
- indexed: false,
7377
+ name: '',
7378
+ internalType: 'struct IRoyalties.UnclaimedFees',
7379
+ type: 'tuple',
7380
+ components: [
7381
+ { name: 'token0', internalType: 'address', type: 'address' },
7382
+ { name: 'token1', internalType: 'address', type: 'address' },
7383
+ { name: 'token0Amount', internalType: 'uint128', type: 'uint128' },
7384
+ { name: 'token1Amount', internalType: 'uint128', type: 'uint128' },
7385
+ ],
6083
7386
  },
7387
+ ],
7388
+ stateMutability: 'view',
7389
+ },
7390
+ {
7391
+ type: 'function',
7392
+ inputs: [{ name: 'erc20z', internalType: 'address[]', type: 'address[]' }],
7393
+ name: 'getUnclaimedFeesBatch',
7394
+ outputs: [
6084
7395
  {
6085
- name: 'tokenId',
6086
- internalType: 'uint256',
6087
- type: 'uint256',
6088
- indexed: false,
7396
+ name: '',
7397
+ internalType: 'struct IRoyalties.UnclaimedFees[]',
7398
+ type: 'tuple[]',
7399
+ components: [
7400
+ { name: 'token0', internalType: 'address', type: 'address' },
7401
+ { name: 'token1', internalType: 'address', type: 'address' },
7402
+ { name: 'token0Amount', internalType: 'uint128', type: 'uint128' },
7403
+ { name: 'token1Amount', internalType: 'uint128', type: 'uint128' },
7404
+ ],
6089
7405
  },
7406
+ ],
7407
+ stateMutability: 'view',
7408
+ },
7409
+ {
7410
+ type: 'function',
7411
+ inputs: [
7412
+ { name: '_weth', internalType: 'contract IWETH', type: 'address' },
6090
7413
  {
6091
- name: 'amount1155',
6092
- internalType: 'uint256',
6093
- type: 'uint256',
6094
- indexed: false,
7414
+ name: '_nonfungiblePositionManager',
7415
+ internalType: 'contract INonfungiblePositionManager',
7416
+ type: 'address',
6095
7417
  },
6096
7418
  {
6097
- name: 'recipient',
6098
- internalType: 'address',
7419
+ name: '_feeRecipient',
7420
+ internalType: 'address payable',
6099
7421
  type: 'address',
6100
- indexed: false,
6101
7422
  },
7423
+ { name: '_feeBps', internalType: 'uint256', type: 'uint256' },
6102
7424
  ],
6103
- name: 'ConvertedTo20z',
7425
+ name: 'initialize',
7426
+ outputs: [],
7427
+ stateMutability: 'nonpayable',
6104
7428
  },
6105
7429
  {
6106
- type: 'event',
6107
- anonymous: false,
6108
- inputs: [
7430
+ type: 'function',
7431
+ inputs: [],
7432
+ name: 'nonfungiblePositionManager',
7433
+ outputs: [
6109
7434
  {
6110
- name: 'version',
6111
- internalType: 'uint64',
6112
- type: 'uint64',
6113
- indexed: false,
7435
+ name: '',
7436
+ internalType: 'contract INonfungiblePositionManager',
7437
+ type: 'address',
6114
7438
  },
6115
7439
  ],
6116
- name: 'Initialized',
7440
+ stateMutability: 'view',
6117
7441
  },
6118
7442
  {
6119
- type: 'event',
6120
- anonymous: false,
7443
+ type: 'function',
6121
7444
  inputs: [
6122
- {
6123
- name: 'quantity',
6124
- internalType: 'uint256',
6125
- type: 'uint256',
6126
- indexed: false,
6127
- },
7445
+ { name: 'operator', internalType: 'address', type: 'address' },
7446
+ { name: 'from', internalType: 'address', type: 'address' },
7447
+ { name: 'positionId', internalType: 'uint256', type: 'uint256' },
7448
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
6128
7449
  ],
6129
- name: 'ReceivedAdminMintNFTs',
7450
+ name: 'onERC721Received',
7451
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
7452
+ stateMutability: 'nonpayable',
7453
+ },
7454
+ {
7455
+ type: 'function',
7456
+ inputs: [{ name: 'erc20z', internalType: 'address', type: 'address' }],
7457
+ name: 'positionsByErc20z',
7458
+ outputs: [{ name: 'positionId', internalType: 'uint256', type: 'uint256' }],
7459
+ stateMutability: 'view',
6130
7460
  },
6131
7461
  {
6132
7462
  type: 'event',
6133
7463
  anonymous: false,
6134
7464
  inputs: [
6135
7465
  {
6136
- name: 'token0',
7466
+ name: 'collection',
6137
7467
  internalType: 'address',
6138
7468
  type: 'address',
6139
7469
  indexed: true,
6140
7470
  },
6141
7471
  {
6142
- name: 'amount0',
7472
+ name: 'tokenId',
6143
7473
  internalType: 'uint256',
6144
7474
  type: 'uint256',
6145
7475
  indexed: true,
6146
7476
  },
6147
7477
  {
6148
- name: 'token1',
7478
+ name: 'creator',
7479
+ internalType: 'address',
7480
+ type: 'address',
7481
+ indexed: true,
7482
+ },
7483
+ {
7484
+ name: 'recipient',
6149
7485
  internalType: 'address',
6150
7486
  type: 'address',
6151
7487
  indexed: false,
6152
7488
  },
6153
7489
  {
6154
- name: 'amount1',
6155
- internalType: 'uint256',
6156
- type: 'uint256',
7490
+ name: 'positionAddress',
7491
+ internalType: 'address',
7492
+ type: 'address',
6157
7493
  indexed: false,
6158
7494
  },
6159
- { name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false },
6160
7495
  {
6161
7496
  name: 'positionId',
6162
7497
  internalType: 'uint256',
@@ -6164,41 +7499,58 @@ export const erc20ZABI = [
6164
7499
  indexed: false,
6165
7500
  },
6166
7501
  {
6167
- name: 'lpLiquidity',
6168
- internalType: 'uint256',
6169
- type: 'uint256',
7502
+ name: 'token0',
7503
+ internalType: 'address',
7504
+ type: 'address',
6170
7505
  indexed: false,
6171
7506
  },
6172
7507
  {
6173
- name: 'erc20Excess',
7508
+ name: 'token0Amount',
6174
7509
  internalType: 'uint256',
6175
7510
  type: 'uint256',
6176
7511
  indexed: false,
6177
7512
  },
6178
7513
  {
6179
- name: 'erc1155Excess',
7514
+ name: 'token1',
7515
+ internalType: 'address',
7516
+ type: 'address',
7517
+ indexed: false,
7518
+ },
7519
+ {
7520
+ name: 'token1Amount',
6180
7521
  internalType: 'uint256',
6181
7522
  type: 'uint256',
6182
7523
  indexed: false,
6183
7524
  },
6184
7525
  ],
6185
- name: 'SecondaryMarketActivated',
7526
+ name: 'RoyaltyClaim',
6186
7527
  },
6187
7528
  {
6188
7529
  type: 'event',
6189
7530
  anonymous: false,
6190
7531
  inputs: [
6191
- { name: 'from', internalType: 'address', type: 'address', indexed: true },
6192
- { name: 'to', internalType: 'address', type: 'address', indexed: true },
6193
7532
  {
6194
- name: 'value',
7533
+ name: 'erc20zAddress',
7534
+ internalType: 'address',
7535
+ type: 'address',
7536
+ indexed: true,
7537
+ },
7538
+ {
7539
+ name: 'positionAddress',
7540
+ internalType: 'address',
7541
+ type: 'address',
7542
+ indexed: false,
7543
+ },
7544
+ {
7545
+ name: 'positionId',
6195
7546
  internalType: 'uint256',
6196
7547
  type: 'uint256',
6197
7548
  indexed: false,
6198
7549
  },
6199
7550
  ],
6200
- name: 'Transfer',
7551
+ name: 'RoyaltyDeposit',
6201
7552
  },
7553
+ { type: 'error', inputs: [], name: 'AddressCannotBeZero' },
6202
7554
  {
6203
7555
  type: 'error',
6204
7556
  inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
@@ -6209,173 +7561,294 @@ export const erc20ZABI = [
6209
7561
  inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
6210
7562
  name: 'AddressInsufficientBalance',
6211
7563
  },
6212
- { type: 'error', inputs: [], name: 'AlreadyActivatedCannotReactivate' },
6213
- {
6214
- type: 'error',
6215
- inputs: [
6216
- { name: 'spender', internalType: 'address', type: 'address' },
6217
- { name: 'allowance', internalType: 'uint256', type: 'uint256' },
6218
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
6219
- ],
6220
- name: 'ERC20InsufficientAllowance',
6221
- },
6222
- {
6223
- type: 'error',
6224
- inputs: [
6225
- { name: 'sender', internalType: 'address', type: 'address' },
6226
- { name: 'balance', internalType: 'uint256', type: 'uint256' },
6227
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
6228
- ],
6229
- name: 'ERC20InsufficientBalance',
6230
- },
6231
- {
6232
- type: 'error',
6233
- inputs: [{ name: 'approver', internalType: 'address', type: 'address' }],
6234
- name: 'ERC20InvalidApprover',
6235
- },
6236
- {
6237
- type: 'error',
6238
- inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }],
6239
- name: 'ERC20InvalidReceiver',
6240
- },
7564
+ { type: 'error', inputs: [], name: 'AddressZero' },
7565
+ { type: 'error', inputs: [], name: 'AlreadyInitialized' },
7566
+ { type: 'error', inputs: [], name: 'CreatorMustBeSet' },
6241
7567
  {
6242
7568
  type: 'error',
6243
- inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
6244
- name: 'ERC20InvalidSender',
7569
+ inputs: [],
7570
+ name: 'ERC721SenderRoyaltiesNeedsToBePositionManager',
6245
7571
  },
7572
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
7573
+ { type: 'error', inputs: [], name: 'OnlyCreatorCanCall' },
7574
+ { type: 'error', inputs: [], name: 'OnlyErc20z' },
7575
+ { type: 'error', inputs: [], name: 'OnlyWeth' },
7576
+ { type: 'error', inputs: [], name: 'ParamsCannotBeZero' },
7577
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
6246
7578
  {
6247
7579
  type: 'error',
6248
- inputs: [{ name: 'spender', internalType: 'address', type: 'address' }],
6249
- name: 'ERC20InvalidSpender',
7580
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
7581
+ name: 'SafeERC20FailedOperation',
6250
7582
  },
6251
- { type: 'error', inputs: [], name: 'FailedInnerCall' },
6252
- { type: 'error', inputs: [], name: 'IDsDoNotMatchValuesLength' },
6253
- { type: 'error', inputs: [], name: 'InsufficientBalance' },
6254
- { type: 'error', inputs: [], name: 'Invalid20zTransfer' },
6255
- { type: 'error', inputs: [], name: 'InvalidAmount20z' },
6256
- { type: 'error', inputs: [], name: 'InvalidInitialization' },
6257
- { type: 'error', inputs: [], name: 'InvalidParams' },
6258
- { type: 'error', inputs: [], name: 'NotInitializing' },
6259
- { type: 'error', inputs: [], name: 'OnlySaleStrategy' },
7583
+ ] as const
7584
+
7585
+ /**
7586
+ * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7587
+ * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7588
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7589
+ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7590
+ * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7591
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7592
+ * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7593
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7594
+ * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x53a85FbD2955EF713AA489Ae0C48523E727a0c07)
7595
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7596
+ */
7597
+ export const erc20ZRoyaltiesAddress = {
7598
+ 1: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7599
+ 10: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7600
+ 8453: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7601
+ 42161: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7602
+ 81457: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7603
+ 84532: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7604
+ 421614: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7605
+ 7777777: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7606
+ 11155111: '0x53a85FbD2955EF713AA489Ae0C48523E727a0c07',
7607
+ 999999999: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
7608
+ } as const
7609
+
7610
+ /**
7611
+ * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7612
+ * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7613
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7614
+ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7615
+ * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7616
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7617
+ * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7618
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7619
+ * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x53a85FbD2955EF713AA489Ae0C48523E727a0c07)
7620
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
7621
+ */
7622
+ export const erc20ZRoyaltiesConfig = {
7623
+ address: erc20ZRoyaltiesAddress,
7624
+ abi: erc20ZRoyaltiesABI,
7625
+ } as const
7626
+
7627
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7628
+ // IPremintDefinitions
7629
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7630
+
7631
+ export const iPremintDefinitionsABI = [
6260
7632
  {
6261
- type: 'error',
6262
- inputs: [],
6263
- name: 'OnlySupportReceivingERC1155AssociatedZoraNFT',
7633
+ type: 'function',
7634
+ inputs: [
7635
+ {
7636
+ name: '',
7637
+ internalType: 'struct TokenCreationConfig',
7638
+ type: 'tuple',
7639
+ components: [
7640
+ { name: 'tokenURI', internalType: 'string', type: 'string' },
7641
+ { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
7642
+ {
7643
+ name: 'maxTokensPerAddress',
7644
+ internalType: 'uint64',
7645
+ type: 'uint64',
7646
+ },
7647
+ { name: 'pricePerToken', internalType: 'uint96', type: 'uint96' },
7648
+ { name: 'mintStart', internalType: 'uint64', type: 'uint64' },
7649
+ { name: 'mintDuration', internalType: 'uint64', type: 'uint64' },
7650
+ {
7651
+ name: 'royaltyMintSchedule',
7652
+ internalType: 'uint32',
7653
+ type: 'uint32',
7654
+ },
7655
+ { name: 'royaltyBPS', internalType: 'uint32', type: 'uint32' },
7656
+ {
7657
+ name: 'royaltyRecipient',
7658
+ internalType: 'address',
7659
+ type: 'address',
7660
+ },
7661
+ {
7662
+ name: 'fixedPriceMinter',
7663
+ internalType: 'address',
7664
+ type: 'address',
7665
+ },
7666
+ ],
7667
+ },
7668
+ ],
7669
+ name: 'tokenConfigV1Definition',
7670
+ outputs: [],
7671
+ stateMutability: 'nonpayable',
6264
7672
  },
6265
7673
  {
6266
- type: 'error',
6267
- inputs: [],
6268
- name: 'OnlySupportReceivingERC721UniswapPoolNFTs',
7674
+ type: 'function',
7675
+ inputs: [
7676
+ {
7677
+ name: '',
7678
+ internalType: 'struct TokenCreationConfigV2',
7679
+ type: 'tuple',
7680
+ components: [
7681
+ { name: 'tokenURI', internalType: 'string', type: 'string' },
7682
+ { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
7683
+ {
7684
+ name: 'maxTokensPerAddress',
7685
+ internalType: 'uint64',
7686
+ type: 'uint64',
7687
+ },
7688
+ { name: 'pricePerToken', internalType: 'uint96', type: 'uint96' },
7689
+ { name: 'mintStart', internalType: 'uint64', type: 'uint64' },
7690
+ { name: 'mintDuration', internalType: 'uint64', type: 'uint64' },
7691
+ { name: 'royaltyBPS', internalType: 'uint32', type: 'uint32' },
7692
+ { name: 'payoutRecipient', internalType: 'address', type: 'address' },
7693
+ {
7694
+ name: 'fixedPriceMinter',
7695
+ internalType: 'address',
7696
+ type: 'address',
7697
+ },
7698
+ { name: 'createReferral', internalType: 'address', type: 'address' },
7699
+ ],
7700
+ },
7701
+ ],
7702
+ name: 'tokenConfigV2Definition',
7703
+ outputs: [],
7704
+ stateMutability: 'nonpayable',
6269
7705
  },
6270
- { type: 'error', inputs: [], name: 'PoolCreationFailed' },
6271
- { type: 'error', inputs: [], name: 'RecipientAddressZero' },
6272
- { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
6273
7706
  {
6274
- type: 'error',
6275
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
6276
- name: 'SafeERC20FailedOperation',
7707
+ type: 'function',
7708
+ inputs: [
7709
+ {
7710
+ name: '',
7711
+ internalType: 'struct TokenCreationConfigV3',
7712
+ type: 'tuple',
7713
+ components: [
7714
+ { name: 'tokenURI', internalType: 'string', type: 'string' },
7715
+ { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
7716
+ { name: 'royaltyBPS', internalType: 'uint32', type: 'uint32' },
7717
+ { name: 'payoutRecipient', internalType: 'address', type: 'address' },
7718
+ { name: 'createReferral', internalType: 'address', type: 'address' },
7719
+ { name: 'mintStart', internalType: 'uint64', type: 'uint64' },
7720
+ { name: 'minter', internalType: 'address', type: 'address' },
7721
+ { name: 'premintSalesConfig', internalType: 'bytes', type: 'bytes' },
7722
+ ],
7723
+ },
7724
+ ],
7725
+ name: 'tokenConfigV3Definition',
7726
+ outputs: [],
7727
+ stateMutability: 'nonpayable',
6277
7728
  },
6278
- { type: 'error', inputs: [], name: 'SecondaryMarketHasNotYetStarted' },
6279
- { type: 'error', inputs: [], name: 'TokenIdNotValidToSwap' },
6280
- { type: 'error', inputs: [], name: 'UnknownReceiveActionDataCall' },
6281
7729
  ] as const
6282
7730
 
6283
7731
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6284
- // ERC20ZRoyalties
7732
+ // ISponsoredSparksSpenderAction
6285
7733
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6286
7734
 
6287
- /**
6288
- * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6289
- * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6290
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6291
- * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6292
- * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6293
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6294
- * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6295
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6296
- * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x53a85FbD2955EF713AA489Ae0C48523E727a0c07)
6297
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6298
- */
6299
- export const erc20ZRoyaltiesABI = [
6300
- { type: 'receive', stateMutability: 'payable' },
6301
- {
6302
- type: 'function',
6303
- inputs: [],
6304
- name: 'WETH',
6305
- outputs: [{ name: '', internalType: 'contract IWETH', type: 'address' }],
6306
- stateMutability: 'view',
6307
- },
7735
+ export const iSponsoredSparksSpenderActionABI = [
6308
7736
  {
6309
7737
  type: 'function',
6310
7738
  inputs: [
6311
- { name: 'erc20z', internalType: 'address', type: 'address' },
6312
- { name: 'recipient', internalType: 'address payable', type: 'address' },
7739
+ {
7740
+ name: 'sponsoredMintBatch',
7741
+ internalType: 'struct SponsoredMintBatch',
7742
+ type: 'tuple',
7743
+ components: [
7744
+ { name: 'verifier', internalType: 'address', type: 'address' },
7745
+ { name: 'from', internalType: 'address', type: 'address' },
7746
+ {
7747
+ name: 'destination',
7748
+ internalType: 'address payable',
7749
+ type: 'address',
7750
+ },
7751
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
7752
+ {
7753
+ name: 'expectedRedeemAmount',
7754
+ internalType: 'uint256',
7755
+ type: 'uint256',
7756
+ },
7757
+ { name: 'totalAmount', internalType: 'uint256', type: 'uint256' },
7758
+ { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
7759
+ { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
7760
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
7761
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
7762
+ ],
7763
+ },
7764
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
6313
7765
  ],
6314
- name: 'claim',
7766
+ name: 'sponsoredMintBatch',
6315
7767
  outputs: [],
6316
7768
  stateMutability: 'nonpayable',
6317
7769
  },
7770
+ ] as const
7771
+
7772
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7773
+ // IUniswapV3Pool
7774
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7775
+
7776
+ export const iUniswapV3PoolABI = [
6318
7777
  {
6319
7778
  type: 'function',
6320
- inputs: [{ name: 'erc20z', internalType: 'address', type: 'address' }],
6321
- name: 'claimFor',
6322
- outputs: [],
6323
- stateMutability: 'nonpayable',
7779
+ inputs: [],
7780
+ name: 'fee',
7781
+ outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
7782
+ stateMutability: 'view',
6324
7783
  },
6325
7784
  {
6326
7785
  type: 'function',
6327
7786
  inputs: [],
6328
- name: 'feeBps',
7787
+ name: 'feeGrowthGlobal0X128',
6329
7788
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
6330
7789
  stateMutability: 'view',
6331
7790
  },
6332
7791
  {
6333
7792
  type: 'function',
6334
7793
  inputs: [],
6335
- name: 'feeRecipient',
6336
- outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
7794
+ name: 'feeGrowthGlobal1X128',
7795
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
6337
7796
  stateMutability: 'view',
6338
7797
  },
6339
7798
  {
6340
7799
  type: 'function',
6341
- inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
6342
- name: 'getFee',
6343
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
6344
- stateMutability: 'view',
7800
+ inputs: [
7801
+ {
7802
+ name: 'observationCardinalityNext',
7803
+ internalType: 'uint16',
7804
+ type: 'uint16',
7805
+ },
7806
+ ],
7807
+ name: 'increaseObservationCardinalityNext',
7808
+ outputs: [],
7809
+ stateMutability: 'nonpayable',
6345
7810
  },
6346
7811
  {
6347
7812
  type: 'function',
6348
- inputs: [{ name: 'erc20z', internalType: 'address', type: 'address' }],
6349
- name: 'getUnclaimedFees',
7813
+ inputs: [
7814
+ { name: 'secondsAgos', internalType: 'uint32[]', type: 'uint32[]' },
7815
+ ],
7816
+ name: 'observe',
6350
7817
  outputs: [
7818
+ { name: 'tickCumulatives', internalType: 'int56[]', type: 'int56[]' },
6351
7819
  {
6352
- name: '',
6353
- internalType: 'struct IRoyalties.UnclaimedFees',
6354
- type: 'tuple',
6355
- components: [
6356
- { name: 'token0', internalType: 'address', type: 'address' },
6357
- { name: 'token1', internalType: 'address', type: 'address' },
6358
- { name: 'token0Amount', internalType: 'uint128', type: 'uint128' },
6359
- { name: 'token1Amount', internalType: 'uint128', type: 'uint128' },
6360
- ],
7820
+ name: 'secondsPerLiquidityCumulativeX128s',
7821
+ internalType: 'uint160[]',
7822
+ type: 'uint160[]',
6361
7823
  },
6362
7824
  ],
6363
7825
  stateMutability: 'view',
6364
7826
  },
6365
7827
  {
6366
7828
  type: 'function',
6367
- inputs: [{ name: 'erc20z', internalType: 'address[]', type: 'address[]' }],
6368
- name: 'getUnclaimedFeesBatch',
7829
+ inputs: [],
7830
+ name: 'slot0',
6369
7831
  outputs: [
6370
7832
  {
6371
- name: '',
6372
- internalType: 'struct IRoyalties.UnclaimedFees[]',
6373
- type: 'tuple[]',
7833
+ name: 'slot0',
7834
+ internalType: 'struct IUniswapV3Pool.Slot0',
7835
+ type: 'tuple',
6374
7836
  components: [
6375
- { name: 'token0', internalType: 'address', type: 'address' },
6376
- { name: 'token1', internalType: 'address', type: 'address' },
6377
- { name: 'token0Amount', internalType: 'uint128', type: 'uint128' },
6378
- { name: 'token1Amount', internalType: 'uint128', type: 'uint128' },
7837
+ { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' },
7838
+ { name: 'tick', internalType: 'int24', type: 'int24' },
7839
+ { name: 'observationIndex', internalType: 'uint16', type: 'uint16' },
7840
+ {
7841
+ name: 'observationCardinality',
7842
+ internalType: 'uint16',
7843
+ type: 'uint16',
7844
+ },
7845
+ {
7846
+ name: 'observationCardinalityNext',
7847
+ internalType: 'uint16',
7848
+ type: 'uint16',
7849
+ },
7850
+ { name: 'feeProtocol', internalType: 'uint8', type: 'uint8' },
7851
+ { name: 'unlocked', internalType: 'bool', type: 'bool' },
6379
7852
  ],
6380
7853
  },
6381
7854
  ],
@@ -6384,613 +7857,698 @@ export const erc20ZRoyaltiesABI = [
6384
7857
  {
6385
7858
  type: 'function',
6386
7859
  inputs: [
6387
- { name: '_weth', internalType: 'contract IWETH', type: 'address' },
6388
- {
6389
- name: '_nonfungiblePositionManager',
6390
- internalType: 'contract INonfungiblePositionManager',
6391
- type: 'address',
6392
- },
6393
- {
6394
- name: '_feeRecipient',
6395
- internalType: 'address payable',
6396
- type: 'address',
6397
- },
6398
- { name: '_feeBps', internalType: 'uint256', type: 'uint256' },
7860
+ { name: 'recipient', internalType: 'address', type: 'address' },
7861
+ { name: 'zeroForOne', internalType: 'bool', type: 'bool' },
7862
+ { name: 'amountSpecified', internalType: 'int256', type: 'int256' },
7863
+ { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
7864
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
7865
+ ],
7866
+ name: 'swap',
7867
+ outputs: [
7868
+ { name: 'amount0', internalType: 'int256', type: 'int256' },
7869
+ { name: 'amount1', internalType: 'int256', type: 'int256' },
6399
7870
  ],
6400
- name: 'initialize',
6401
- outputs: [],
6402
7871
  stateMutability: 'nonpayable',
6403
7872
  },
6404
7873
  {
6405
- type: 'function',
6406
- inputs: [],
6407
- name: 'nonfungiblePositionManager',
6408
- outputs: [
7874
+ type: 'function',
7875
+ inputs: [],
7876
+ name: 'token0',
7877
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
7878
+ stateMutability: 'view',
7879
+ },
7880
+ {
7881
+ type: 'function',
7882
+ inputs: [],
7883
+ name: 'token1',
7884
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
7885
+ stateMutability: 'view',
7886
+ },
7887
+ ] as const
7888
+
7889
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7890
+ // IUnwrapAndForwardAction
7891
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7892
+
7893
+ export const iUnwrapAndForwardActionABI = [
7894
+ {
7895
+ type: 'function',
7896
+ inputs: [
7897
+ { name: 'receiverAddress', internalType: 'address', type: 'address' },
7898
+ { name: 'call', internalType: 'bytes', type: 'bytes' },
7899
+ { name: 'valueToSend', internalType: 'uint256', type: 'uint256' },
7900
+ ],
7901
+ name: 'callWithEth',
7902
+ outputs: [],
7903
+ stateMutability: 'payable',
7904
+ },
7905
+ ] as const
7906
+
7907
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7908
+ // MintsEthUnwrapperAndCaller
7909
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7910
+
7911
+ /**
7912
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
7913
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
7914
+ */
7915
+ export const mintsEthUnwrapperAndCallerABI = [
7916
+ {
7917
+ type: 'constructor',
7918
+ inputs: [
6409
7919
  {
6410
- name: '',
6411
- internalType: 'contract INonfungiblePositionManager',
7920
+ name: '_zoraSparks1155',
7921
+ internalType: 'contract IZoraSparks1155',
6412
7922
  type: 'address',
6413
7923
  },
6414
7924
  ],
6415
- stateMutability: 'view',
7925
+ stateMutability: 'nonpayable',
6416
7926
  },
7927
+ { type: 'receive', stateMutability: 'payable' },
6417
7928
  {
6418
7929
  type: 'function',
6419
7930
  inputs: [
6420
- { name: 'operator', internalType: 'address', type: 'address' },
7931
+ { name: '', internalType: 'address', type: 'address' },
6421
7932
  { name: 'from', internalType: 'address', type: 'address' },
6422
- { name: 'positionId', internalType: 'uint256', type: 'uint256' },
7933
+ { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
7934
+ { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
6423
7935
  { name: 'data', internalType: 'bytes', type: 'bytes' },
6424
7936
  ],
6425
- name: 'onERC721Received',
7937
+ name: 'onERC1155BatchReceived',
6426
7938
  outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
6427
7939
  stateMutability: 'nonpayable',
6428
7940
  },
6429
7941
  {
6430
7942
  type: 'function',
6431
- inputs: [{ name: 'erc20z', internalType: 'address', type: 'address' }],
6432
- name: 'positionsByErc20z',
6433
- outputs: [{ name: 'positionId', internalType: 'uint256', type: 'uint256' }],
6434
- stateMutability: 'view',
6435
- },
6436
- {
6437
- type: 'event',
6438
- anonymous: false,
6439
7943
  inputs: [
6440
- {
6441
- name: 'collection',
6442
- internalType: 'address',
6443
- type: 'address',
6444
- indexed: true,
6445
- },
6446
- {
6447
- name: 'tokenId',
6448
- internalType: 'uint256',
6449
- type: 'uint256',
6450
- indexed: true,
6451
- },
6452
- {
6453
- name: 'creator',
6454
- internalType: 'address',
6455
- type: 'address',
6456
- indexed: true,
6457
- },
6458
- {
6459
- name: 'recipient',
6460
- internalType: 'address',
6461
- type: 'address',
6462
- indexed: false,
6463
- },
6464
- {
6465
- name: 'positionAddress',
6466
- internalType: 'address',
6467
- type: 'address',
6468
- indexed: false,
6469
- },
6470
- {
6471
- name: 'positionId',
6472
- internalType: 'uint256',
6473
- type: 'uint256',
6474
- indexed: false,
6475
- },
6476
- {
6477
- name: 'token0',
6478
- internalType: 'address',
6479
- type: 'address',
6480
- indexed: false,
6481
- },
6482
- {
6483
- name: 'token0Amount',
6484
- internalType: 'uint256',
6485
- type: 'uint256',
6486
- indexed: false,
6487
- },
6488
- {
6489
- name: 'token1',
6490
- internalType: 'address',
6491
- type: 'address',
6492
- indexed: false,
6493
- },
6494
- {
6495
- name: 'token1Amount',
6496
- internalType: 'uint256',
6497
- type: 'uint256',
6498
- indexed: false,
6499
- },
7944
+ { name: '', internalType: 'address', type: 'address' },
7945
+ { name: 'from', internalType: 'address', type: 'address' },
7946
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
7947
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
7948
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
6500
7949
  ],
6501
- name: 'RoyaltyClaim',
7950
+ name: 'onERC1155Received',
7951
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
7952
+ stateMutability: 'nonpayable',
6502
7953
  },
6503
7954
  {
6504
- type: 'event',
6505
- anonymous: false,
7955
+ type: 'function',
6506
7956
  inputs: [
6507
7957
  {
6508
- name: 'erc20zAddress',
6509
- internalType: 'address',
6510
- type: 'address',
6511
- indexed: true,
6512
- },
6513
- {
6514
- name: 'positionAddress',
6515
- internalType: 'address',
6516
- type: 'address',
6517
- indexed: false,
6518
- },
6519
- {
6520
- name: 'positionId',
6521
- internalType: 'uint256',
6522
- type: 'uint256',
6523
- indexed: false,
7958
+ name: 'permit',
7959
+ internalType: 'struct IZoraSparks1155Managed.PermitBatch',
7960
+ type: 'tuple',
7961
+ components: [
7962
+ { name: 'owner', internalType: 'address', type: 'address' },
7963
+ { name: 'to', internalType: 'address', type: 'address' },
7964
+ { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
7965
+ { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
7966
+ { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
7967
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
7968
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
7969
+ ],
6524
7970
  },
7971
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
6525
7972
  ],
6526
- name: 'RoyaltyDeposit',
7973
+ name: 'permitWithAdditionalValue',
7974
+ outputs: [],
7975
+ stateMutability: 'payable',
6527
7976
  },
6528
- { type: 'error', inputs: [], name: 'AddressCannotBeZero' },
6529
7977
  {
6530
7978
  type: 'error',
6531
- inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
6532
- name: 'AddressEmptyCode',
7979
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
7980
+ name: 'AddressInsufficientBalance',
6533
7981
  },
6534
7982
  {
6535
7983
  type: 'error',
6536
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
6537
- name: 'AddressInsufficientBalance',
7984
+ inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
7985
+ name: 'CallFailed',
6538
7986
  },
6539
- { type: 'error', inputs: [], name: 'AddressZero' },
6540
- { type: 'error', inputs: [], name: 'AlreadyInitialized' },
6541
- { type: 'error', inputs: [], name: 'CreatorMustBeSet' },
6542
7987
  {
6543
7988
  type: 'error',
6544
- inputs: [],
6545
- name: 'ERC721SenderRoyaltiesNeedsToBePositionManager',
7989
+ inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
7990
+ name: 'ERC20NotSupported',
6546
7991
  },
6547
7992
  { type: 'error', inputs: [], name: 'FailedInnerCall' },
6548
- { type: 'error', inputs: [], name: 'OnlyCreatorCanCall' },
6549
- { type: 'error', inputs: [], name: 'OnlyErc20z' },
6550
- { type: 'error', inputs: [], name: 'OnlyWeth' },
6551
- { type: 'error', inputs: [], name: 'ParamsCannotBeZero' },
6552
- { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
7993
+ { type: 'error', inputs: [], name: 'NotExpectingReceive' },
7994
+ { type: 'error', inputs: [], name: 'NotZoraSparks1155' },
6553
7995
  {
6554
7996
  type: 'error',
6555
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
6556
- name: 'SafeERC20FailedOperation',
7997
+ inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
7998
+ name: 'TransferFailed',
6557
7999
  },
8000
+ { type: 'error', inputs: [], name: 'UnknownUserAction' },
6558
8001
  ] as const
6559
8002
 
6560
8003
  /**
6561
- * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6562
- * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6563
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6564
- * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6565
- * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6566
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6567
- * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6568
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6569
- * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x53a85FbD2955EF713AA489Ae0C48523E727a0c07)
6570
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
8004
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
8005
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
6571
8006
  */
6572
- export const erc20ZRoyaltiesAddress = {
6573
- 1: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
6574
- 10: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
6575
- 8453: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
6576
- 42161: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
6577
- 81457: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
6578
- 84532: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
6579
- 421614: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
6580
- 7777777: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
6581
- 11155111: '0x53a85FbD2955EF713AA489Ae0C48523E727a0c07',
6582
- 999999999: '0x77777771DF91C56c5468746E80DFA8b880f9719F',
8007
+ export const mintsEthUnwrapperAndCallerAddress = {
8008
+ 7777777: '0xb0994EB9520C98C97e1F3953a5964535C2bd271A',
8009
+ 999999999: '0xb0994EB9520C98C97e1F3953a5964535C2bd271A',
6583
8010
  } as const
6584
8011
 
6585
8012
  /**
6586
- * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6587
- * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6588
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6589
- * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6590
- * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6591
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6592
- * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6593
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
6594
- * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x53a85FbD2955EF713AA489Ae0C48523E727a0c07)
6595
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777771DF91C56c5468746E80DFA8b880f9719F)
8013
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
8014
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
6596
8015
  */
6597
- export const erc20ZRoyaltiesConfig = {
6598
- address: erc20ZRoyaltiesAddress,
6599
- abi: erc20ZRoyaltiesABI,
8016
+ export const mintsEthUnwrapperAndCallerConfig = {
8017
+ address: mintsEthUnwrapperAndCallerAddress,
8018
+ abi: mintsEthUnwrapperAndCallerABI,
6600
8019
  } as const
6601
8020
 
6602
8021
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6603
- // IPremintDefinitions
8022
+ // Permit2
6604
8023
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6605
8024
 
6606
- export const iPremintDefinitionsABI = [
8025
+ /**
8026
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)
8027
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)
8028
+ */
8029
+ export const permit2ABI = [
8030
+ {
8031
+ type: 'function',
8032
+ inputs: [],
8033
+ name: 'DOMAIN_SEPARATOR',
8034
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
8035
+ stateMutability: 'view',
8036
+ },
8037
+ {
8038
+ type: 'function',
8039
+ inputs: [
8040
+ { name: 'user', internalType: 'address', type: 'address' },
8041
+ { name: 'token', internalType: 'address', type: 'address' },
8042
+ { name: 'spender', internalType: 'address', type: 'address' },
8043
+ ],
8044
+ name: 'allowance',
8045
+ outputs: [
8046
+ { name: 'amount', internalType: 'uint160', type: 'uint160' },
8047
+ { name: 'expiration', internalType: 'uint48', type: 'uint48' },
8048
+ { name: 'nonce', internalType: 'uint48', type: 'uint48' },
8049
+ ],
8050
+ stateMutability: 'view',
8051
+ },
8052
+ {
8053
+ type: 'function',
8054
+ inputs: [
8055
+ { name: 'token', internalType: 'address', type: 'address' },
8056
+ { name: 'spender', internalType: 'address', type: 'address' },
8057
+ { name: 'amount', internalType: 'uint160', type: 'uint160' },
8058
+ { name: 'expiration', internalType: 'uint48', type: 'uint48' },
8059
+ ],
8060
+ name: 'approve',
8061
+ outputs: [],
8062
+ stateMutability: 'nonpayable',
8063
+ },
8064
+ {
8065
+ type: 'function',
8066
+ inputs: [
8067
+ { name: 'token', internalType: 'address', type: 'address' },
8068
+ { name: 'spender', internalType: 'address', type: 'address' },
8069
+ { name: 'newNonce', internalType: 'uint48', type: 'uint48' },
8070
+ ],
8071
+ name: 'invalidateNonces',
8072
+ outputs: [],
8073
+ stateMutability: 'nonpayable',
8074
+ },
8075
+ {
8076
+ type: 'function',
8077
+ inputs: [
8078
+ { name: 'wordPos', internalType: 'uint256', type: 'uint256' },
8079
+ { name: 'mask', internalType: 'uint256', type: 'uint256' },
8080
+ ],
8081
+ name: 'invalidateUnorderedNonces',
8082
+ outputs: [],
8083
+ stateMutability: 'nonpayable',
8084
+ },
6607
8085
  {
6608
8086
  type: 'function',
6609
8087
  inputs: [
6610
8088
  {
6611
- name: '',
6612
- internalType: 'struct TokenCreationConfig',
6613
- type: 'tuple',
8089
+ name: 'approvals',
8090
+ internalType: 'struct IAllowanceTransfer.TokenSpenderPair[]',
8091
+ type: 'tuple[]',
6614
8092
  components: [
6615
- { name: 'tokenURI', internalType: 'string', type: 'string' },
6616
- { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
6617
- {
6618
- name: 'maxTokensPerAddress',
6619
- internalType: 'uint64',
6620
- type: 'uint64',
6621
- },
6622
- { name: 'pricePerToken', internalType: 'uint96', type: 'uint96' },
6623
- { name: 'mintStart', internalType: 'uint64', type: 'uint64' },
6624
- { name: 'mintDuration', internalType: 'uint64', type: 'uint64' },
6625
- {
6626
- name: 'royaltyMintSchedule',
6627
- internalType: 'uint32',
6628
- type: 'uint32',
6629
- },
6630
- { name: 'royaltyBPS', internalType: 'uint32', type: 'uint32' },
6631
- {
6632
- name: 'royaltyRecipient',
6633
- internalType: 'address',
6634
- type: 'address',
6635
- },
6636
- {
6637
- name: 'fixedPriceMinter',
6638
- internalType: 'address',
6639
- type: 'address',
6640
- },
8093
+ { name: 'token', internalType: 'address', type: 'address' },
8094
+ { name: 'spender', internalType: 'address', type: 'address' },
6641
8095
  ],
6642
8096
  },
6643
8097
  ],
6644
- name: 'tokenConfigV1Definition',
8098
+ name: 'lockdown',
6645
8099
  outputs: [],
6646
8100
  stateMutability: 'nonpayable',
6647
8101
  },
6648
8102
  {
6649
8103
  type: 'function',
6650
8104
  inputs: [
8105
+ { name: '', internalType: 'address', type: 'address' },
8106
+ { name: '', internalType: 'uint256', type: 'uint256' },
8107
+ ],
8108
+ name: 'nonceBitmap',
8109
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
8110
+ stateMutability: 'view',
8111
+ },
8112
+ {
8113
+ type: 'function',
8114
+ inputs: [
8115
+ { name: 'owner', internalType: 'address', type: 'address' },
6651
8116
  {
6652
- name: '',
6653
- internalType: 'struct TokenCreationConfigV2',
8117
+ name: 'permitBatch',
8118
+ internalType: 'struct IAllowanceTransfer.PermitBatch',
6654
8119
  type: 'tuple',
6655
8120
  components: [
6656
- { name: 'tokenURI', internalType: 'string', type: 'string' },
6657
- { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
6658
- {
6659
- name: 'maxTokensPerAddress',
6660
- internalType: 'uint64',
6661
- type: 'uint64',
6662
- },
6663
- { name: 'pricePerToken', internalType: 'uint96', type: 'uint96' },
6664
- { name: 'mintStart', internalType: 'uint64', type: 'uint64' },
6665
- { name: 'mintDuration', internalType: 'uint64', type: 'uint64' },
6666
- { name: 'royaltyBPS', internalType: 'uint32', type: 'uint32' },
6667
- { name: 'payoutRecipient', internalType: 'address', type: 'address' },
6668
8121
  {
6669
- name: 'fixedPriceMinter',
6670
- internalType: 'address',
6671
- type: 'address',
8122
+ name: 'details',
8123
+ internalType: 'struct IAllowanceTransfer.PermitDetails[]',
8124
+ type: 'tuple[]',
8125
+ components: [
8126
+ { name: 'token', internalType: 'address', type: 'address' },
8127
+ { name: 'amount', internalType: 'uint160', type: 'uint160' },
8128
+ { name: 'expiration', internalType: 'uint48', type: 'uint48' },
8129
+ { name: 'nonce', internalType: 'uint48', type: 'uint48' },
8130
+ ],
6672
8131
  },
6673
- { name: 'createReferral', internalType: 'address', type: 'address' },
8132
+ { name: 'spender', internalType: 'address', type: 'address' },
8133
+ { name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
6674
8134
  ],
6675
8135
  },
8136
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
6676
8137
  ],
6677
- name: 'tokenConfigV2Definition',
8138
+ name: 'permit',
6678
8139
  outputs: [],
6679
8140
  stateMutability: 'nonpayable',
6680
8141
  },
6681
8142
  {
6682
8143
  type: 'function',
6683
8144
  inputs: [
8145
+ { name: 'owner', internalType: 'address', type: 'address' },
6684
8146
  {
6685
- name: '',
6686
- internalType: 'struct TokenCreationConfigV3',
8147
+ name: 'permitSingle',
8148
+ internalType: 'struct IAllowanceTransfer.PermitSingle',
6687
8149
  type: 'tuple',
6688
8150
  components: [
6689
- { name: 'tokenURI', internalType: 'string', type: 'string' },
6690
- { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
6691
- { name: 'royaltyBPS', internalType: 'uint32', type: 'uint32' },
6692
- { name: 'payoutRecipient', internalType: 'address', type: 'address' },
6693
- { name: 'createReferral', internalType: 'address', type: 'address' },
6694
- { name: 'mintStart', internalType: 'uint64', type: 'uint64' },
6695
- { name: 'minter', internalType: 'address', type: 'address' },
6696
- { name: 'premintSalesConfig', internalType: 'bytes', type: 'bytes' },
8151
+ {
8152
+ name: 'details',
8153
+ internalType: 'struct IAllowanceTransfer.PermitDetails',
8154
+ type: 'tuple',
8155
+ components: [
8156
+ { name: 'token', internalType: 'address', type: 'address' },
8157
+ { name: 'amount', internalType: 'uint160', type: 'uint160' },
8158
+ { name: 'expiration', internalType: 'uint48', type: 'uint48' },
8159
+ { name: 'nonce', internalType: 'uint48', type: 'uint48' },
8160
+ ],
8161
+ },
8162
+ { name: 'spender', internalType: 'address', type: 'address' },
8163
+ { name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
6697
8164
  ],
6698
8165
  },
8166
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
6699
8167
  ],
6700
- name: 'tokenConfigV3Definition',
8168
+ name: 'permit',
6701
8169
  outputs: [],
6702
8170
  stateMutability: 'nonpayable',
6703
8171
  },
6704
- ] as const
6705
-
6706
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6707
- // ISponsoredSparksSpenderAction
6708
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6709
-
6710
- export const iSponsoredSparksSpenderActionABI = [
6711
8172
  {
6712
8173
  type: 'function',
6713
8174
  inputs: [
6714
8175
  {
6715
- name: 'sponsoredMintBatch',
6716
- internalType: 'struct SponsoredMintBatch',
8176
+ name: 'permit',
8177
+ internalType: 'struct ISignatureTransfer.PermitTransferFrom',
6717
8178
  type: 'tuple',
6718
8179
  components: [
6719
- { name: 'verifier', internalType: 'address', type: 'address' },
6720
- { name: 'from', internalType: 'address', type: 'address' },
6721
- {
6722
- name: 'destination',
6723
- internalType: 'address payable',
6724
- type: 'address',
6725
- },
6726
- { name: 'data', internalType: 'bytes', type: 'bytes' },
6727
8180
  {
6728
- name: 'expectedRedeemAmount',
6729
- internalType: 'uint256',
6730
- type: 'uint256',
8181
+ name: 'permitted',
8182
+ internalType: 'struct ISignatureTransfer.TokenPermissions',
8183
+ type: 'tuple',
8184
+ components: [
8185
+ { name: 'token', internalType: 'address', type: 'address' },
8186
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
8187
+ ],
6731
8188
  },
6732
- { name: 'totalAmount', internalType: 'uint256', type: 'uint256' },
6733
- { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
6734
- { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
6735
8189
  { name: 'nonce', internalType: 'uint256', type: 'uint256' },
6736
8190
  { name: 'deadline', internalType: 'uint256', type: 'uint256' },
6737
8191
  ],
6738
8192
  },
8193
+ {
8194
+ name: 'transferDetails',
8195
+ internalType: 'struct ISignatureTransfer.SignatureTransferDetails',
8196
+ type: 'tuple',
8197
+ components: [
8198
+ { name: 'to', internalType: 'address', type: 'address' },
8199
+ { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' },
8200
+ ],
8201
+ },
8202
+ { name: 'owner', internalType: 'address', type: 'address' },
6739
8203
  { name: 'signature', internalType: 'bytes', type: 'bytes' },
6740
8204
  ],
6741
- name: 'sponsoredMintBatch',
8205
+ name: 'permitTransferFrom',
6742
8206
  outputs: [],
6743
8207
  stateMutability: 'nonpayable',
6744
8208
  },
6745
- ] as const
6746
-
6747
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6748
- // IUniswapV3Pool
6749
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6750
-
6751
- export const iUniswapV3PoolABI = [
6752
- {
6753
- type: 'function',
6754
- inputs: [],
6755
- name: 'fee',
6756
- outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
6757
- stateMutability: 'view',
6758
- },
6759
- {
6760
- type: 'function',
6761
- inputs: [],
6762
- name: 'feeGrowthGlobal0X128',
6763
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
6764
- stateMutability: 'view',
6765
- },
6766
- {
6767
- type: 'function',
6768
- inputs: [],
6769
- name: 'feeGrowthGlobal1X128',
6770
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
6771
- stateMutability: 'view',
6772
- },
6773
8209
  {
6774
8210
  type: 'function',
6775
8211
  inputs: [
6776
8212
  {
6777
- name: 'observationCardinalityNext',
6778
- internalType: 'uint16',
6779
- type: 'uint16',
8213
+ name: 'permit',
8214
+ internalType: 'struct ISignatureTransfer.PermitBatchTransferFrom',
8215
+ type: 'tuple',
8216
+ components: [
8217
+ {
8218
+ name: 'permitted',
8219
+ internalType: 'struct ISignatureTransfer.TokenPermissions[]',
8220
+ type: 'tuple[]',
8221
+ components: [
8222
+ { name: 'token', internalType: 'address', type: 'address' },
8223
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
8224
+ ],
8225
+ },
8226
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
8227
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
8228
+ ],
8229
+ },
8230
+ {
8231
+ name: 'transferDetails',
8232
+ internalType: 'struct ISignatureTransfer.SignatureTransferDetails[]',
8233
+ type: 'tuple[]',
8234
+ components: [
8235
+ { name: 'to', internalType: 'address', type: 'address' },
8236
+ { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' },
8237
+ ],
6780
8238
  },
8239
+ { name: 'owner', internalType: 'address', type: 'address' },
8240
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
6781
8241
  ],
6782
- name: 'increaseObservationCardinalityNext',
8242
+ name: 'permitTransferFrom',
6783
8243
  outputs: [],
6784
8244
  stateMutability: 'nonpayable',
6785
8245
  },
6786
8246
  {
6787
8247
  type: 'function',
6788
8248
  inputs: [
6789
- { name: 'secondsAgos', internalType: 'uint32[]', type: 'uint32[]' },
6790
- ],
6791
- name: 'observe',
6792
- outputs: [
6793
- { name: 'tickCumulatives', internalType: 'int56[]', type: 'int56[]' },
6794
8249
  {
6795
- name: 'secondsPerLiquidityCumulativeX128s',
6796
- internalType: 'uint160[]',
6797
- type: 'uint160[]',
8250
+ name: 'permit',
8251
+ internalType: 'struct ISignatureTransfer.PermitTransferFrom',
8252
+ type: 'tuple',
8253
+ components: [
8254
+ {
8255
+ name: 'permitted',
8256
+ internalType: 'struct ISignatureTransfer.TokenPermissions',
8257
+ type: 'tuple',
8258
+ components: [
8259
+ { name: 'token', internalType: 'address', type: 'address' },
8260
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
8261
+ ],
8262
+ },
8263
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
8264
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
8265
+ ],
8266
+ },
8267
+ {
8268
+ name: 'transferDetails',
8269
+ internalType: 'struct ISignatureTransfer.SignatureTransferDetails',
8270
+ type: 'tuple',
8271
+ components: [
8272
+ { name: 'to', internalType: 'address', type: 'address' },
8273
+ { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' },
8274
+ ],
6798
8275
  },
8276
+ { name: 'owner', internalType: 'address', type: 'address' },
8277
+ { name: 'witness', internalType: 'bytes32', type: 'bytes32' },
8278
+ { name: 'witnessTypeString', internalType: 'string', type: 'string' },
8279
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
6799
8280
  ],
6800
- stateMutability: 'view',
8281
+ name: 'permitWitnessTransferFrom',
8282
+ outputs: [],
8283
+ stateMutability: 'nonpayable',
6801
8284
  },
6802
8285
  {
6803
8286
  type: 'function',
6804
- inputs: [],
6805
- name: 'slot0',
6806
- outputs: [
8287
+ inputs: [
6807
8288
  {
6808
- name: 'slot0',
6809
- internalType: 'struct IUniswapV3Pool.Slot0',
8289
+ name: 'permit',
8290
+ internalType: 'struct ISignatureTransfer.PermitBatchTransferFrom',
6810
8291
  type: 'tuple',
6811
8292
  components: [
6812
- { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' },
6813
- { name: 'tick', internalType: 'int24', type: 'int24' },
6814
- { name: 'observationIndex', internalType: 'uint16', type: 'uint16' },
6815
- {
6816
- name: 'observationCardinality',
6817
- internalType: 'uint16',
6818
- type: 'uint16',
6819
- },
6820
8293
  {
6821
- name: 'observationCardinalityNext',
6822
- internalType: 'uint16',
6823
- type: 'uint16',
8294
+ name: 'permitted',
8295
+ internalType: 'struct ISignatureTransfer.TokenPermissions[]',
8296
+ type: 'tuple[]',
8297
+ components: [
8298
+ { name: 'token', internalType: 'address', type: 'address' },
8299
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
8300
+ ],
6824
8301
  },
6825
- { name: 'feeProtocol', internalType: 'uint8', type: 'uint8' },
6826
- { name: 'unlocked', internalType: 'bool', type: 'bool' },
8302
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
8303
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
6827
8304
  ],
6828
8305
  },
6829
- ],
6830
- stateMutability: 'view',
6831
- },
6832
- {
6833
- type: 'function',
6834
- inputs: [
6835
- { name: 'recipient', internalType: 'address', type: 'address' },
6836
- { name: 'zeroForOne', internalType: 'bool', type: 'bool' },
6837
- { name: 'amountSpecified', internalType: 'int256', type: 'int256' },
6838
- { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
6839
- { name: 'data', internalType: 'bytes', type: 'bytes' },
6840
- ],
6841
- name: 'swap',
6842
- outputs: [
6843
- { name: 'amount0', internalType: 'int256', type: 'int256' },
6844
- { name: 'amount1', internalType: 'int256', type: 'int256' },
6845
- ],
6846
- stateMutability: 'nonpayable',
6847
- },
6848
- {
6849
- type: 'function',
6850
- inputs: [],
6851
- name: 'token0',
6852
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
6853
- stateMutability: 'view',
8306
+ {
8307
+ name: 'transferDetails',
8308
+ internalType: 'struct ISignatureTransfer.SignatureTransferDetails[]',
8309
+ type: 'tuple[]',
8310
+ components: [
8311
+ { name: 'to', internalType: 'address', type: 'address' },
8312
+ { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' },
8313
+ ],
8314
+ },
8315
+ { name: 'owner', internalType: 'address', type: 'address' },
8316
+ { name: 'witness', internalType: 'bytes32', type: 'bytes32' },
8317
+ { name: 'witnessTypeString', internalType: 'string', type: 'string' },
8318
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
8319
+ ],
8320
+ name: 'permitWitnessTransferFrom',
8321
+ outputs: [],
8322
+ stateMutability: 'nonpayable',
6854
8323
  },
6855
8324
  {
6856
8325
  type: 'function',
6857
- inputs: [],
6858
- name: 'token1',
6859
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
6860
- stateMutability: 'view',
8326
+ inputs: [
8327
+ {
8328
+ name: 'transferDetails',
8329
+ internalType: 'struct IAllowanceTransfer.AllowanceTransferDetails[]',
8330
+ type: 'tuple[]',
8331
+ components: [
8332
+ { name: 'from', internalType: 'address', type: 'address' },
8333
+ { name: 'to', internalType: 'address', type: 'address' },
8334
+ { name: 'amount', internalType: 'uint160', type: 'uint160' },
8335
+ { name: 'token', internalType: 'address', type: 'address' },
8336
+ ],
8337
+ },
8338
+ ],
8339
+ name: 'transferFrom',
8340
+ outputs: [],
8341
+ stateMutability: 'nonpayable',
6861
8342
  },
6862
- ] as const
6863
-
6864
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6865
- // IUnwrapAndForwardAction
6866
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6867
-
6868
- export const iUnwrapAndForwardActionABI = [
6869
8343
  {
6870
8344
  type: 'function',
6871
8345
  inputs: [
6872
- { name: 'receiverAddress', internalType: 'address', type: 'address' },
6873
- { name: 'call', internalType: 'bytes', type: 'bytes' },
6874
- { name: 'valueToSend', internalType: 'uint256', type: 'uint256' },
8346
+ { name: 'from', internalType: 'address', type: 'address' },
8347
+ { name: 'to', internalType: 'address', type: 'address' },
8348
+ { name: 'amount', internalType: 'uint160', type: 'uint160' },
8349
+ { name: 'token', internalType: 'address', type: 'address' },
6875
8350
  ],
6876
- name: 'callWithEth',
8351
+ name: 'transferFrom',
6877
8352
  outputs: [],
6878
- stateMutability: 'payable',
8353
+ stateMutability: 'nonpayable',
6879
8354
  },
6880
- ] as const
6881
-
6882
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6883
- // MintsEthUnwrapperAndCaller
6884
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6885
-
6886
- /**
6887
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
6888
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
6889
- */
6890
- export const mintsEthUnwrapperAndCallerABI = [
6891
8355
  {
6892
- type: 'constructor',
8356
+ type: 'event',
8357
+ anonymous: false,
6893
8358
  inputs: [
6894
8359
  {
6895
- name: '_zoraSparks1155',
6896
- internalType: 'contract IZoraSparks1155',
8360
+ name: 'owner',
8361
+ internalType: 'address',
8362
+ type: 'address',
8363
+ indexed: true,
8364
+ },
8365
+ {
8366
+ name: 'token',
8367
+ internalType: 'address',
8368
+ type: 'address',
8369
+ indexed: true,
8370
+ },
8371
+ {
8372
+ name: 'spender',
8373
+ internalType: 'address',
6897
8374
  type: 'address',
8375
+ indexed: true,
8376
+ },
8377
+ {
8378
+ name: 'amount',
8379
+ internalType: 'uint160',
8380
+ type: 'uint160',
8381
+ indexed: false,
8382
+ },
8383
+ {
8384
+ name: 'expiration',
8385
+ internalType: 'uint48',
8386
+ type: 'uint48',
8387
+ indexed: false,
6898
8388
  },
6899
8389
  ],
6900
- stateMutability: 'nonpayable',
8390
+ name: 'Approval',
6901
8391
  },
6902
- { type: 'receive', stateMutability: 'payable' },
6903
8392
  {
6904
- type: 'function',
8393
+ type: 'event',
8394
+ anonymous: false,
6905
8395
  inputs: [
6906
- { name: '', internalType: 'address', type: 'address' },
6907
- { name: 'from', internalType: 'address', type: 'address' },
6908
- { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
6909
- { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
6910
- { name: 'data', internalType: 'bytes', type: 'bytes' },
8396
+ {
8397
+ name: 'owner',
8398
+ internalType: 'address',
8399
+ type: 'address',
8400
+ indexed: true,
8401
+ },
8402
+ {
8403
+ name: 'token',
8404
+ internalType: 'address',
8405
+ type: 'address',
8406
+ indexed: false,
8407
+ },
8408
+ {
8409
+ name: 'spender',
8410
+ internalType: 'address',
8411
+ type: 'address',
8412
+ indexed: false,
8413
+ },
6911
8414
  ],
6912
- name: 'onERC1155BatchReceived',
6913
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
6914
- stateMutability: 'nonpayable',
8415
+ name: 'Lockdown',
6915
8416
  },
6916
8417
  {
6917
- type: 'function',
8418
+ type: 'event',
8419
+ anonymous: false,
6918
8420
  inputs: [
6919
- { name: '', internalType: 'address', type: 'address' },
6920
- { name: 'from', internalType: 'address', type: 'address' },
6921
- { name: 'id', internalType: 'uint256', type: 'uint256' },
6922
- { name: 'value', internalType: 'uint256', type: 'uint256' },
6923
- { name: 'data', internalType: 'bytes', type: 'bytes' },
8421
+ {
8422
+ name: 'owner',
8423
+ internalType: 'address',
8424
+ type: 'address',
8425
+ indexed: true,
8426
+ },
8427
+ {
8428
+ name: 'token',
8429
+ internalType: 'address',
8430
+ type: 'address',
8431
+ indexed: true,
8432
+ },
8433
+ {
8434
+ name: 'spender',
8435
+ internalType: 'address',
8436
+ type: 'address',
8437
+ indexed: true,
8438
+ },
8439
+ {
8440
+ name: 'newNonce',
8441
+ internalType: 'uint48',
8442
+ type: 'uint48',
8443
+ indexed: false,
8444
+ },
8445
+ {
8446
+ name: 'oldNonce',
8447
+ internalType: 'uint48',
8448
+ type: 'uint48',
8449
+ indexed: false,
8450
+ },
6924
8451
  ],
6925
- name: 'onERC1155Received',
6926
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
6927
- stateMutability: 'nonpayable',
8452
+ name: 'NonceInvalidation',
6928
8453
  },
6929
8454
  {
6930
- type: 'function',
8455
+ type: 'event',
8456
+ anonymous: false,
6931
8457
  inputs: [
6932
8458
  {
6933
- name: 'permit',
6934
- internalType: 'struct IZoraSparks1155Managed.PermitBatch',
6935
- type: 'tuple',
6936
- components: [
6937
- { name: 'owner', internalType: 'address', type: 'address' },
6938
- { name: 'to', internalType: 'address', type: 'address' },
6939
- { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
6940
- { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
6941
- { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
6942
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
6943
- { name: 'nonce', internalType: 'uint256', type: 'uint256' },
6944
- ],
8459
+ name: 'owner',
8460
+ internalType: 'address',
8461
+ type: 'address',
8462
+ indexed: true,
6945
8463
  },
6946
- { name: 'signature', internalType: 'bytes', type: 'bytes' },
8464
+ {
8465
+ name: 'token',
8466
+ internalType: 'address',
8467
+ type: 'address',
8468
+ indexed: true,
8469
+ },
8470
+ {
8471
+ name: 'spender',
8472
+ internalType: 'address',
8473
+ type: 'address',
8474
+ indexed: true,
8475
+ },
8476
+ {
8477
+ name: 'amount',
8478
+ internalType: 'uint160',
8479
+ type: 'uint160',
8480
+ indexed: false,
8481
+ },
8482
+ {
8483
+ name: 'expiration',
8484
+ internalType: 'uint48',
8485
+ type: 'uint48',
8486
+ indexed: false,
8487
+ },
8488
+ { name: 'nonce', internalType: 'uint48', type: 'uint48', indexed: false },
6947
8489
  ],
6948
- name: 'permitWithAdditionalValue',
6949
- outputs: [],
6950
- stateMutability: 'payable',
8490
+ name: 'Permit',
6951
8491
  },
6952
8492
  {
6953
- type: 'error',
6954
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
6955
- name: 'AddressInsufficientBalance',
8493
+ type: 'event',
8494
+ anonymous: false,
8495
+ inputs: [
8496
+ {
8497
+ name: 'owner',
8498
+ internalType: 'address',
8499
+ type: 'address',
8500
+ indexed: true,
8501
+ },
8502
+ {
8503
+ name: 'word',
8504
+ internalType: 'uint256',
8505
+ type: 'uint256',
8506
+ indexed: false,
8507
+ },
8508
+ {
8509
+ name: 'mask',
8510
+ internalType: 'uint256',
8511
+ type: 'uint256',
8512
+ indexed: false,
8513
+ },
8514
+ ],
8515
+ name: 'UnorderedNonceInvalidation',
6956
8516
  },
6957
8517
  {
6958
8518
  type: 'error',
6959
- inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
6960
- name: 'CallFailed',
8519
+ inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }],
8520
+ name: 'AllowanceExpired',
6961
8521
  },
8522
+ { type: 'error', inputs: [], name: 'ExcessiveInvalidation' },
6962
8523
  {
6963
8524
  type: 'error',
6964
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
6965
- name: 'ERC20NotSupported',
8525
+ inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
8526
+ name: 'InsufficientAllowance',
6966
8527
  },
6967
- { type: 'error', inputs: [], name: 'FailedInnerCall' },
6968
- { type: 'error', inputs: [], name: 'NotExpectingReceive' },
6969
- { type: 'error', inputs: [], name: 'NotZoraSparks1155' },
6970
8528
  {
6971
8529
  type: 'error',
6972
- inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
6973
- name: 'TransferFailed',
8530
+ inputs: [{ name: 'maxAmount', internalType: 'uint256', type: 'uint256' }],
8531
+ name: 'InvalidAmount',
6974
8532
  },
6975
- { type: 'error', inputs: [], name: 'UnknownUserAction' },
8533
+ { type: 'error', inputs: [], name: 'LengthMismatch' },
6976
8534
  ] as const
6977
8535
 
6978
8536
  /**
6979
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
6980
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
8537
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)
8538
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)
6981
8539
  */
6982
- export const mintsEthUnwrapperAndCallerAddress = {
6983
- 7777777: '0xb0994EB9520C98C97e1F3953a5964535C2bd271A',
6984
- 999999999: '0xb0994EB9520C98C97e1F3953a5964535C2bd271A',
8540
+ export const permit2Address = {
8541
+ 8453: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
8542
+ 84532: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
6985
8543
  } as const
6986
8544
 
6987
8545
  /**
6988
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
6989
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0xb0994EB9520C98C97e1F3953a5964535C2bd271A)
8546
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)
8547
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)
6990
8548
  */
6991
- export const mintsEthUnwrapperAndCallerConfig = {
6992
- address: mintsEthUnwrapperAndCallerAddress,
6993
- abi: mintsEthUnwrapperAndCallerABI,
8549
+ export const permit2Config = {
8550
+ address: permit2Address,
8551
+ abi: permit2ABI,
6994
8552
  } as const
6995
8553
 
6996
8554
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -8140,6 +9698,58 @@ export const sponsoredSparksSpenderConfig = {
8140
9698
  abi: sponsoredSparksSpenderABI,
8141
9699
  } as const
8142
9700
 
9701
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
9702
+ // UniswapUniversalRouter
9703
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
9704
+
9705
+ /**
9706
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x6ff5693b99212da76ad316178a184ab56d299b43)
9707
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x492E6456D9528771018DeB9E87ef7750EF184104)
9708
+ */
9709
+ export const uniswapUniversalRouterABI = [
9710
+ {
9711
+ type: 'function',
9712
+ inputs: [
9713
+ { name: 'commands', internalType: 'bytes', type: 'bytes' },
9714
+ { name: 'inputs', internalType: 'bytes[]', type: 'bytes[]' },
9715
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
9716
+ ],
9717
+ name: 'execute',
9718
+ outputs: [],
9719
+ stateMutability: 'payable',
9720
+ },
9721
+ { type: 'error', inputs: [], name: 'ETHNotAccepted' },
9722
+ {
9723
+ type: 'error',
9724
+ inputs: [
9725
+ { name: 'commandIndex', internalType: 'uint256', type: 'uint256' },
9726
+ { name: 'message', internalType: 'bytes', type: 'bytes' },
9727
+ ],
9728
+ name: 'ExecutionFailed',
9729
+ },
9730
+ { type: 'error', inputs: [], name: 'InvalidEthSender' },
9731
+ { type: 'error', inputs: [], name: 'LengthMismatch' },
9732
+ { type: 'error', inputs: [], name: 'TransactionDeadlinePassed' },
9733
+ ] as const
9734
+
9735
+ /**
9736
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x6ff5693b99212da76ad316178a184ab56d299b43)
9737
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x492E6456D9528771018DeB9E87ef7750EF184104)
9738
+ */
9739
+ export const uniswapUniversalRouterAddress = {
9740
+ 8453: '0x6fF5693b99212Da76ad316178A184AB56D299b43',
9741
+ 84532: '0x492E6456D9528771018DeB9E87ef7750EF184104',
9742
+ } as const
9743
+
9744
+ /**
9745
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x6ff5693b99212da76ad316178a184ab56d299b43)
9746
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x492E6456D9528771018DeB9E87ef7750EF184104)
9747
+ */
9748
+ export const uniswapUniversalRouterConfig = {
9749
+ address: uniswapUniversalRouterAddress,
9750
+ abi: uniswapUniversalRouterABI,
9751
+ } as const
9752
+
8143
9753
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8144
9754
  // UniswapV3SwapRouter
8145
9755
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -8724,7 +10334,8 @@ export const wethConfig = { address: wethAddress, abi: wethABI } as const
8724
10334
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8725
10335
 
8726
10336
  /**
8727
- * [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777f7bA9ce74A5d7f058B30Ac824d940fB52)
10337
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x0Ba958A449701907302e28F5955fa9d16dDC45c3)
10338
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777f7bA9ce74A5d7f058B30Ac824d940fB52)
8728
10339
  */
8729
10340
  export const zoraAccountManagerABI = [
8730
10341
  { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
@@ -8959,14 +10570,17 @@ export const zoraAccountManagerABI = [
8959
10570
  ] as const
8960
10571
 
8961
10572
  /**
8962
- * [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777f7bA9ce74A5d7f058B30Ac824d940fB52)
10573
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x0Ba958A449701907302e28F5955fa9d16dDC45c3)
10574
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777f7bA9ce74A5d7f058B30Ac824d940fB52)
8963
10575
  */
8964
10576
  export const zoraAccountManagerAddress = {
10577
+ 8453: '0x0Ba958A449701907302e28F5955fa9d16dDC45c3',
8965
10578
  7777777: '0x7777777f7bA9ce74A5d7f058B30Ac824d940fB52',
8966
10579
  } as const
8967
10580
 
8968
10581
  /**
8969
- * [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777f7bA9ce74A5d7f058B30Ac824d940fB52)
10582
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x0Ba958A449701907302e28F5955fa9d16dDC45c3)
10583
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777f7bA9ce74A5d7f058B30Ac824d940fB52)
8970
10584
  */
8971
10585
  export const zoraAccountManagerConfig = {
8972
10586
  address: zoraAccountManagerAddress,