@zoralabs/protocol-deployments 0.4.0-DEV.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2702,8 +2702,9 @@ var cointagABI = [
2702
2702
  {
2703
2703
  type: "constructor",
2704
2704
  inputs: [
2705
- { name: "_protocolRewards", internalType: "address", type: "address" },
2706
- { name: "_weth", internalType: "address", type: "address" }
2705
+ { name: "protocolRewards_", internalType: "address", type: "address" },
2706
+ { name: "weth_", internalType: "address", type: "address" },
2707
+ { name: "upgradeGate_", internalType: "address", type: "address" }
2707
2708
  ],
2708
2709
  stateMutability: "nonpayable"
2709
2710
  },
@@ -2718,42 +2719,66 @@ var cointagABI = [
2718
2719
  {
2719
2720
  type: "function",
2720
2721
  inputs: [],
2721
- name: "REQUIRED_OBSERVATION_CARDINALITY",
2722
- outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
2722
+ name: "UPGRADE_INTERFACE_VERSION",
2723
+ outputs: [{ name: "", internalType: "string", type: "string" }],
2723
2724
  stateMutability: "view"
2724
2725
  },
2725
2726
  {
2726
2727
  type: "function",
2727
2728
  inputs: [],
2728
- name: "SLIPPAGE",
2729
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2730
- stateMutability: "view"
2729
+ name: "acceptOwnership",
2730
+ outputs: [],
2731
+ stateMutability: "nonpayable"
2731
2732
  },
2732
2733
  {
2733
2734
  type: "function",
2734
2735
  inputs: [],
2735
- name: "TIME_WEIGHTED_PRICE_PERIOD",
2736
- outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
2737
- stateMutability: "view"
2736
+ name: "config",
2737
+ outputs: [
2738
+ {
2739
+ name: "cointagStorage",
2740
+ internalType: "struct ICointag.CointagStorageV1",
2741
+ type: "tuple",
2742
+ components: [
2743
+ {
2744
+ name: "creatorRewardRecipient",
2745
+ internalType: "address",
2746
+ type: "address"
2747
+ },
2748
+ { name: "erc20", internalType: "contract IERC20", type: "address" },
2749
+ {
2750
+ name: "pool",
2751
+ internalType: "contract IUniswapV3Pool",
2752
+ type: "address"
2753
+ },
2754
+ {
2755
+ name: "percentageToBuyBurn",
2756
+ internalType: "uint256",
2757
+ type: "uint256"
2758
+ }
2759
+ ]
2760
+ }
2761
+ ],
2762
+ stateMutability: "pure"
2738
2763
  },
2739
2764
  {
2740
2765
  type: "function",
2741
2766
  inputs: [],
2742
- name: "contractVersion",
2767
+ name: "contractName",
2743
2768
  outputs: [{ name: "", internalType: "string", type: "string" }],
2744
2769
  stateMutability: "pure"
2745
2770
  },
2746
2771
  {
2747
2772
  type: "function",
2748
2773
  inputs: [],
2749
- name: "creatorRewardRecipient",
2750
- outputs: [{ name: "", internalType: "address", type: "address" }],
2751
- stateMutability: "view"
2774
+ name: "contractVersion",
2775
+ outputs: [{ name: "", internalType: "string", type: "string" }],
2776
+ stateMutability: "pure"
2752
2777
  },
2753
2778
  {
2754
2779
  type: "function",
2755
2780
  inputs: [],
2756
- name: "ensureObservationCardinality",
2781
+ name: "distribute",
2757
2782
  outputs: [],
2758
2783
  stateMutability: "nonpayable"
2759
2784
  },
@@ -2761,35 +2786,26 @@ var cointagABI = [
2761
2786
  type: "function",
2762
2787
  inputs: [],
2763
2788
  name: "erc20",
2764
- outputs: [
2765
- { name: "", internalType: "contract IBurnableERC20", type: "address" }
2766
- ],
2789
+ outputs: [{ name: "", internalType: "contract IERC20", type: "address" }],
2767
2790
  stateMutability: "view"
2768
2791
  },
2769
2792
  {
2770
2793
  type: "function",
2771
2794
  inputs: [],
2772
- name: "hasEnoughObservationCardinality",
2773
- outputs: [
2774
- { name: "", internalType: "bool", type: "bool" },
2775
- { name: "", internalType: "uint256", type: "uint256" }
2776
- ],
2795
+ name: "implementation",
2796
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2777
2797
  stateMutability: "view"
2778
2798
  },
2779
2799
  {
2780
2800
  type: "function",
2781
2801
  inputs: [
2782
2802
  {
2783
- name: "_creatorRewardRecipient",
2803
+ name: "creatorRewardRecipient",
2784
2804
  internalType: "address",
2785
2805
  type: "address"
2786
2806
  },
2787
- { name: "_pool", internalType: "address", type: "address" },
2788
- {
2789
- name: "_percentageToBuyBurn",
2790
- internalType: "uint256",
2791
- type: "uint256"
2792
- }
2807
+ { name: "pool_", internalType: "address", type: "address" },
2808
+ { name: "percentageToBuyBurn", internalType: "uint256", type: "uint256" }
2793
2809
  ],
2794
2810
  name: "initialize",
2795
2811
  outputs: [],
@@ -2798,8 +2814,15 @@ var cointagABI = [
2798
2814
  {
2799
2815
  type: "function",
2800
2816
  inputs: [],
2801
- name: "percentageToBuyBurn",
2802
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2817
+ name: "owner",
2818
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2819
+ stateMutability: "view"
2820
+ },
2821
+ {
2822
+ type: "function",
2823
+ inputs: [],
2824
+ name: "pendingOwner",
2825
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2803
2826
  stateMutability: "view"
2804
2827
  },
2805
2828
  {
@@ -2820,6 +2843,13 @@ var cointagABI = [
2820
2843
  ],
2821
2844
  stateMutability: "view"
2822
2845
  },
2846
+ {
2847
+ type: "function",
2848
+ inputs: [],
2849
+ name: "proxiableUUID",
2850
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2851
+ stateMutability: "view"
2852
+ },
2823
2853
  {
2824
2854
  type: "function",
2825
2855
  inputs: [],
@@ -2827,6 +2857,20 @@ var cointagABI = [
2827
2857
  outputs: [],
2828
2858
  stateMutability: "nonpayable"
2829
2859
  },
2860
+ {
2861
+ type: "function",
2862
+ inputs: [],
2863
+ name: "renounceOwnership",
2864
+ outputs: [],
2865
+ stateMutability: "nonpayable"
2866
+ },
2867
+ {
2868
+ type: "function",
2869
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
2870
+ name: "transferOwnership",
2871
+ outputs: [],
2872
+ stateMutability: "nonpayable"
2873
+ },
2830
2874
  {
2831
2875
  type: "function",
2832
2876
  inputs: [
@@ -2838,6 +2882,25 @@ var cointagABI = [
2838
2882
  outputs: [],
2839
2883
  stateMutability: "nonpayable"
2840
2884
  },
2885
+ {
2886
+ type: "function",
2887
+ inputs: [],
2888
+ name: "upgradeGate",
2889
+ outputs: [
2890
+ { name: "", internalType: "contract IUpgradeGate", type: "address" }
2891
+ ],
2892
+ stateMutability: "view"
2893
+ },
2894
+ {
2895
+ type: "function",
2896
+ inputs: [
2897
+ { name: "newImplementation", internalType: "address", type: "address" },
2898
+ { name: "data", internalType: "bytes", type: "bytes" }
2899
+ ],
2900
+ name: "upgradeToAndCall",
2901
+ outputs: [],
2902
+ stateMutability: "payable"
2903
+ },
2841
2904
  {
2842
2905
  type: "function",
2843
2906
  inputs: [],
@@ -2850,31 +2913,31 @@ var cointagABI = [
2850
2913
  anonymous: false,
2851
2914
  inputs: [
2852
2915
  {
2853
- name: "amountERc20Received",
2916
+ name: "amountERC20Received",
2854
2917
  internalType: "uint256",
2855
2918
  type: "uint256",
2856
2919
  indexed: false
2857
2920
  },
2858
2921
  {
2859
- name: "amountERc20Burned",
2922
+ name: "amountERC20Burned",
2860
2923
  internalType: "uint256",
2861
2924
  type: "uint256",
2862
2925
  indexed: false
2863
2926
  },
2864
2927
  {
2865
- name: "amountEthSpent",
2928
+ name: "amountETHSpent",
2866
2929
  internalType: "uint256",
2867
2930
  type: "uint256",
2868
2931
  indexed: false
2869
2932
  },
2870
2933
  {
2871
- name: "amountEthToCreator",
2934
+ name: "amountETHToCreator",
2872
2935
  internalType: "uint256",
2873
2936
  type: "uint256",
2874
2937
  indexed: false
2875
2938
  },
2876
2939
  {
2877
- name: "totalEthReceived",
2940
+ name: "totalETHReceived",
2878
2941
  internalType: "uint256",
2879
2942
  type: "uint256",
2880
2943
  indexed: false
@@ -2894,6 +2957,25 @@ var cointagABI = [
2894
2957
  ],
2895
2958
  name: "BuyBurn"
2896
2959
  },
2960
+ {
2961
+ type: "event",
2962
+ anonymous: false,
2963
+ inputs: [
2964
+ {
2965
+ name: "amount",
2966
+ internalType: "uint256",
2967
+ type: "uint256",
2968
+ indexed: true
2969
+ },
2970
+ {
2971
+ name: "sender",
2972
+ internalType: "address",
2973
+ type: "address",
2974
+ indexed: true
2975
+ }
2976
+ ],
2977
+ name: "EthReceived"
2978
+ },
2897
2979
  {
2898
2980
  type: "event",
2899
2981
  anonymous: false,
@@ -2938,6 +3020,57 @@ var cointagABI = [
2938
3020
  ],
2939
3021
  name: "Initialized"
2940
3022
  },
3023
+ {
3024
+ type: "event",
3025
+ anonymous: false,
3026
+ inputs: [
3027
+ {
3028
+ name: "previousOwner",
3029
+ internalType: "address",
3030
+ type: "address",
3031
+ indexed: true
3032
+ },
3033
+ {
3034
+ name: "newOwner",
3035
+ internalType: "address",
3036
+ type: "address",
3037
+ indexed: true
3038
+ }
3039
+ ],
3040
+ name: "OwnershipTransferStarted"
3041
+ },
3042
+ {
3043
+ type: "event",
3044
+ anonymous: false,
3045
+ inputs: [
3046
+ {
3047
+ name: "previousOwner",
3048
+ internalType: "address",
3049
+ type: "address",
3050
+ indexed: true
3051
+ },
3052
+ {
3053
+ name: "newOwner",
3054
+ internalType: "address",
3055
+ type: "address",
3056
+ indexed: true
3057
+ }
3058
+ ],
3059
+ name: "OwnershipTransferred"
3060
+ },
3061
+ {
3062
+ type: "event",
3063
+ anonymous: false,
3064
+ inputs: [
3065
+ {
3066
+ name: "implementation",
3067
+ internalType: "address",
3068
+ type: "address",
3069
+ indexed: true
3070
+ }
3071
+ ],
3072
+ name: "Upgraded"
3073
+ },
2941
3074
  {
2942
3075
  type: "error",
2943
3076
  inputs: [{ name: "target", internalType: "address", type: "address" }],
@@ -2948,31 +3081,59 @@ var cointagABI = [
2948
3081
  inputs: [{ name: "account", internalType: "address", type: "address" }],
2949
3082
  name: "AddressInsufficientBalance"
2950
3083
  },
3084
+ { type: "error", inputs: [], name: "AddressZero" },
2951
3085
  {
2952
3086
  type: "error",
2953
3087
  inputs: [
2954
- { name: "amountOut", internalType: "uint256", type: "uint256" },
2955
- { name: "amountOutMinimum", internalType: "uint256", type: "uint256" }
3088
+ { name: "implementation", internalType: "address", type: "address" }
2956
3089
  ],
2957
- name: "AmountOutLessThanMinimum"
3090
+ name: "ERC1967InvalidImplementation"
2958
3091
  },
3092
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
2959
3093
  { type: "error", inputs: [], name: "FailedInnerCall" },
2960
3094
  { type: "error", inputs: [], name: "InvalidInitialization" },
2961
3095
  {
2962
3096
  type: "error",
2963
3097
  inputs: [
2964
- { name: "requiredCardinality", internalType: "uint256", type: "uint256" },
2965
- { name: "currentCardinality", internalType: "uint256", type: "uint256" }
3098
+ { name: "oldImpl", internalType: "address", type: "address" },
3099
+ { name: "newImpl", internalType: "address", type: "address" }
2966
3100
  ],
2967
- name: "NotEnoughObservationCardinality"
3101
+ name: "InvalidUpgradePath"
2968
3102
  },
2969
3103
  { type: "error", inputs: [], name: "NotInitializing" },
2970
3104
  { type: "error", inputs: [], name: "OnlyPool" },
2971
3105
  { type: "error", inputs: [], name: "OnlyProtocolRewardsOrWeth" },
3106
+ {
3107
+ type: "error",
3108
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
3109
+ name: "OwnableInvalidOwner"
3110
+ },
3111
+ {
3112
+ type: "error",
3113
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
3114
+ name: "OwnableUnauthorizedAccount"
3115
+ },
3116
+ { type: "error", inputs: [], name: "PoolNeedsOneTokenToBeWETH" },
2972
3117
  {
2973
3118
  type: "error",
2974
3119
  inputs: [{ name: "token", internalType: "address", type: "address" }],
2975
3120
  name: "SafeERC20FailedOperation"
3121
+ },
3122
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
3123
+ {
3124
+ type: "error",
3125
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
3126
+ name: "UUPSUnsupportedProxiableUUID"
3127
+ },
3128
+ { type: "error", inputs: [], name: "UnknownBurnError" },
3129
+ { type: "error", inputs: [], name: "UnknownSwapError" },
3130
+ {
3131
+ type: "error",
3132
+ inputs: [
3133
+ { name: "current", internalType: "string", type: "string" },
3134
+ { name: "newName", internalType: "string", type: "string" }
3135
+ ],
3136
+ name: "UpgradeToMismatchedContractName"
2976
3137
  }
2977
3138
  ];
2978
3139
  var cointagFactoryABI = [
@@ -3049,27 +3210,6 @@ var cointagFactoryABI = [
3049
3210
  outputs: [{ name: "", internalType: "address", type: "address" }],
3050
3211
  stateMutability: "view"
3051
3212
  },
3052
- {
3053
- type: "function",
3054
- inputs: [
3055
- { name: "_implementation", internalType: "address", type: "address" },
3056
- {
3057
- name: "_creatorRewardRecipient",
3058
- internalType: "address",
3059
- type: "address"
3060
- },
3061
- { name: "_pool", internalType: "address", type: "address" },
3062
- {
3063
- name: "_percentageToBuyBurn",
3064
- internalType: "uint256",
3065
- type: "uint256"
3066
- },
3067
- { name: "saltSource", internalType: "bytes", type: "bytes" }
3068
- ],
3069
- name: "getCointagAddressForImpl",
3070
- outputs: [{ name: "", internalType: "address", type: "address" }],
3071
- stateMutability: "view"
3072
- },
3073
3213
  {
3074
3214
  type: "function",
3075
3215
  inputs: [
@@ -3162,6 +3302,15 @@ var cointagFactoryABI = [
3162
3302
  outputs: [],
3163
3303
  stateMutability: "nonpayable"
3164
3304
  },
3305
+ {
3306
+ type: "function",
3307
+ inputs: [],
3308
+ name: "upgradeGate",
3309
+ outputs: [
3310
+ { name: "", internalType: "contract IUpgradeGate", type: "address" }
3311
+ ],
3312
+ stateMutability: "view"
3313
+ },
3165
3314
  {
3166
3315
  type: "function",
3167
3316
  inputs: [
@@ -3285,7 +3434,6 @@ var cointagFactoryABI = [
3285
3434
  name: "AddressEmptyCode"
3286
3435
  },
3287
3436
  { type: "error", inputs: [], name: "AddressZero" },
3288
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
3289
3437
  {
3290
3438
  type: "error",
3291
3439
  inputs: [
@@ -3333,7 +3481,8 @@ var cointagFactoryABI = [
3333
3481
  var cointagFactoryAddress = {
3334
3482
  8453: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
3335
3483
  84532: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
3336
- 7777777: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F"
3484
+ 7777777: "0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F",
3485
+ 999999999: "0x77777773Bd7Cccb7E704315CA51245707E19B0DE"
3337
3486
  };
3338
3487
  var cointagFactoryConfig = {
3339
3488
  address: cointagFactoryAddress,
@@ -6634,7 +6783,7 @@ var secondarySwapABI = [
6634
6783
  indexed: true
6635
6784
  },
6636
6785
  {
6637
- name: "amountEthSold",
6786
+ name: "amountETHSold",
6638
6787
  internalType: "uint256",
6639
6788
  type: "uint256",
6640
6789
  indexed: false
@@ -6714,7 +6863,7 @@ var secondarySwapABI = [
6714
6863
  indexed: true
6715
6864
  },
6716
6865
  {
6717
- name: "amountEthPurchased",
6866
+ name: "amountETHPurchased",
6718
6867
  internalType: "uint256",
6719
6868
  type: "uint256",
6720
6869
  indexed: false
@@ -14204,6 +14353,8 @@ var zoraSparks1155ABI = [
14204
14353
  { type: "error", inputs: [], name: "TokenNotMintable" }
14205
14354
  ];
14206
14355
  var zoraSparks1155Address = {
14356
+ 8453: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
14357
+ 84532: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
14207
14358
  7777777: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
14208
14359
  999999999: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D"
14209
14360
  };
@@ -14593,6 +14744,8 @@ var zoraSparksManagerImplABI = [
14593
14744
  }
14594
14745
  ];
14595
14746
  var zoraSparksManagerImplAddress = {
14747
+ 8453: "0x77777779acd6a96C0c57272112921A0b833c38fD",
14748
+ 84532: "0x77777779acd6a96C0c57272112921A0b833c38fD",
14596
14749
  7777777: "0x77777779acd6a96C0c57272112921A0b833c38fD",
14597
14750
  999999999: "0x77777779acd6a96C0c57272112921A0b833c38fD"
14598
14751
  };
@@ -16286,9 +16439,13 @@ var addresses2 = {
16286
16439
  SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
16287
16440
  },
16288
16441
  8453: {
16442
+ MINTS_1155: "0x0000000000000000000000000000000000000000",
16289
16443
  MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
16290
- SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
16291
- SPARKS_MANAGER_IMPL_VERSION: "",
16444
+ MINTS_MANAGER: "0x0000000000000000000000000000000000000000",
16445
+ SPARKS_1155: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
16446
+ SPARKS_MANAGER: "0x77777779acd6a96C0c57272112921A0b833c38fD",
16447
+ SPARKS_MANAGER_IMPL: "0x122648369E390009F18c1B2b9B100AfB09B982fc",
16448
+ SPARKS_MANAGER_IMPL_VERSION: "0.2.4",
16292
16449
  SPONSORED_SPARKS_SPENDER: "0x6958A8866A40118e2CC21ab4752353835321b5e6",
16293
16450
  SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
16294
16451
  },
@@ -16307,9 +16464,13 @@ var addresses2 = {
16307
16464
  SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
16308
16465
  },
16309
16466
  84532: {
16467
+ MINTS_1155: "0x0000000000000000000000000000000000000000",
16310
16468
  MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
16311
- SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
16312
- SPARKS_MANAGER_IMPL_VERSION: "",
16469
+ MINTS_MANAGER: "0x0000000000000000000000000000000000000000",
16470
+ SPARKS_1155: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
16471
+ SPARKS_MANAGER: "0x77777779acd6a96C0c57272112921A0b833c38fD",
16472
+ SPARKS_MANAGER_IMPL: "0x122648369E390009F18c1B2b9B100AfB09B982fc",
16473
+ SPARKS_MANAGER_IMPL_VERSION: "0.2.4",
16313
16474
  SPONSORED_SPARKS_SPENDER: "0x23150f60E233F519A01C735C29c1591f9E8353dE",
16314
16475
  SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
16315
16476
  },