@zoralabs/protocol-deployments 0.3.11-DEV.4 → 0.3.11

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
@@ -1574,10 +1574,6 @@ __export(src_exports, {
1574
1574
  callerAndCommenterABI: () => callerAndCommenterABI,
1575
1575
  callerAndCommenterAddress: () => callerAndCommenterAddress,
1576
1576
  callerAndCommenterConfig: () => callerAndCommenterConfig,
1577
- cointagABI: () => cointagABI,
1578
- cointagFactoryABI: () => cointagFactoryABI,
1579
- cointagFactoryAddress: () => cointagFactoryAddress,
1580
- cointagFactoryConfig: () => cointagFactoryConfig,
1581
1577
  commentsABI: () => commentsABI,
1582
1578
  commentsAddress: () => commentsAddress,
1583
1579
  commentsConfig: () => commentsConfig,
@@ -2694,550 +2690,6 @@ var callerAndCommenterConfig = {
2694
2690
  address: callerAndCommenterAddress,
2695
2691
  abi: callerAndCommenterABI
2696
2692
  };
2697
- var cointagABI = [
2698
- {
2699
- type: "constructor",
2700
- inputs: [
2701
- { name: "_protocolRewards", internalType: "address", type: "address" },
2702
- { name: "_weth", internalType: "address", type: "address" }
2703
- ],
2704
- stateMutability: "nonpayable"
2705
- },
2706
- { type: "receive", stateMutability: "payable" },
2707
- {
2708
- type: "function",
2709
- inputs: [],
2710
- name: "PERCENTAGE_BASIS",
2711
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2712
- stateMutability: "view"
2713
- },
2714
- {
2715
- type: "function",
2716
- inputs: [],
2717
- name: "creatorRewardRecipient",
2718
- outputs: [{ name: "", internalType: "address", type: "address" }],
2719
- stateMutability: "view"
2720
- },
2721
- {
2722
- type: "function",
2723
- inputs: [],
2724
- name: "erc20",
2725
- outputs: [
2726
- { name: "", internalType: "contract IBurnableERC20", type: "address" }
2727
- ],
2728
- stateMutability: "view"
2729
- },
2730
- {
2731
- type: "function",
2732
- inputs: [
2733
- {
2734
- name: "_creatorRewardRecipient",
2735
- internalType: "address",
2736
- type: "address"
2737
- },
2738
- { name: "_pool", internalType: "address", type: "address" },
2739
- {
2740
- name: "_percentageToBuyBurn",
2741
- internalType: "uint256",
2742
- type: "uint256"
2743
- }
2744
- ],
2745
- name: "initialize",
2746
- outputs: [],
2747
- stateMutability: "nonpayable"
2748
- },
2749
- {
2750
- type: "function",
2751
- inputs: [],
2752
- name: "percentageToBuyBurn",
2753
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2754
- stateMutability: "view"
2755
- },
2756
- {
2757
- type: "function",
2758
- inputs: [],
2759
- name: "pool",
2760
- outputs: [
2761
- { name: "", internalType: "contract IUniswapV3Pool", type: "address" }
2762
- ],
2763
- stateMutability: "view"
2764
- },
2765
- {
2766
- type: "function",
2767
- inputs: [],
2768
- name: "protocolRewards",
2769
- outputs: [
2770
- { name: "", internalType: "contract IProtocolRewards", type: "address" }
2771
- ],
2772
- stateMutability: "view"
2773
- },
2774
- {
2775
- type: "function",
2776
- inputs: [
2777
- { name: "amount0Delta", internalType: "int256", type: "int256" },
2778
- { name: "amount1Delta", internalType: "int256", type: "int256" },
2779
- { name: "", internalType: "bytes", type: "bytes" }
2780
- ],
2781
- name: "uniswapV3SwapCallback",
2782
- outputs: [],
2783
- stateMutability: "nonpayable"
2784
- },
2785
- {
2786
- type: "function",
2787
- inputs: [],
2788
- name: "weth",
2789
- outputs: [{ name: "", internalType: "contract IWETH", type: "address" }],
2790
- stateMutability: "view"
2791
- },
2792
- {
2793
- type: "function",
2794
- inputs: [],
2795
- name: "withdraw",
2796
- outputs: [],
2797
- stateMutability: "nonpayable"
2798
- },
2799
- {
2800
- type: "event",
2801
- anonymous: false,
2802
- inputs: [
2803
- {
2804
- name: "amountERc20Received",
2805
- internalType: "uint256",
2806
- type: "uint256",
2807
- indexed: false
2808
- },
2809
- {
2810
- name: "amountERc20Burned",
2811
- internalType: "uint256",
2812
- type: "uint256",
2813
- indexed: false
2814
- },
2815
- {
2816
- name: "amountEthSpent",
2817
- internalType: "uint256",
2818
- type: "uint256",
2819
- indexed: false
2820
- },
2821
- {
2822
- name: "amountEthToCreator",
2823
- internalType: "uint256",
2824
- type: "uint256",
2825
- indexed: false
2826
- },
2827
- {
2828
- name: "totalEthReceived",
2829
- internalType: "uint256",
2830
- type: "uint256",
2831
- indexed: false
2832
- },
2833
- {
2834
- name: "buyFailureError",
2835
- internalType: "bytes",
2836
- type: "bytes",
2837
- indexed: false
2838
- },
2839
- {
2840
- name: "burnFailureError",
2841
- internalType: "bytes",
2842
- type: "bytes",
2843
- indexed: false
2844
- }
2845
- ],
2846
- name: "BuyBurn"
2847
- },
2848
- {
2849
- type: "event",
2850
- anonymous: false,
2851
- inputs: [
2852
- {
2853
- name: "version",
2854
- internalType: "uint64",
2855
- type: "uint64",
2856
- indexed: false
2857
- }
2858
- ],
2859
- name: "Initialized"
2860
- },
2861
- {
2862
- type: "event",
2863
- anonymous: false,
2864
- inputs: [
2865
- {
2866
- name: "creatorRewardRecipient",
2867
- internalType: "address",
2868
- type: "address",
2869
- indexed: false
2870
- },
2871
- {
2872
- name: "erc20",
2873
- internalType: "address",
2874
- type: "address",
2875
- indexed: false
2876
- },
2877
- {
2878
- name: "pool",
2879
- internalType: "address",
2880
- type: "address",
2881
- indexed: false
2882
- },
2883
- {
2884
- name: "percentageToBuyBurn",
2885
- internalType: "uint256",
2886
- type: "uint256",
2887
- indexed: false
2888
- }
2889
- ],
2890
- name: "Initialized"
2891
- },
2892
- {
2893
- type: "error",
2894
- inputs: [{ name: "target", internalType: "address", type: "address" }],
2895
- name: "AddressEmptyCode"
2896
- },
2897
- {
2898
- type: "error",
2899
- inputs: [{ name: "account", internalType: "address", type: "address" }],
2900
- name: "AddressInsufficientBalance"
2901
- },
2902
- { type: "error", inputs: [], name: "FailedInnerCall" },
2903
- { type: "error", inputs: [], name: "InvalidInitialization" },
2904
- { type: "error", inputs: [], name: "NotInitializing" },
2905
- { type: "error", inputs: [], name: "ONLY_POOL" },
2906
- { type: "error", inputs: [], name: "ONLY_PROTOCOL_REWARDS_OR_WETH" },
2907
- {
2908
- type: "error",
2909
- inputs: [{ name: "token", internalType: "address", type: "address" }],
2910
- name: "SafeERC20FailedOperation"
2911
- }
2912
- ];
2913
- var cointagFactoryABI = [
2914
- {
2915
- type: "constructor",
2916
- inputs: [
2917
- { name: "_protocolRewards", internalType: "address", type: "address" },
2918
- { name: "_weth", internalType: "address", type: "address" },
2919
- {
2920
- name: "_cointagImplementation",
2921
- internalType: "address",
2922
- type: "address"
2923
- }
2924
- ],
2925
- stateMutability: "nonpayable"
2926
- },
2927
- {
2928
- type: "function",
2929
- inputs: [],
2930
- name: "UPGRADE_INTERFACE_VERSION",
2931
- outputs: [{ name: "", internalType: "string", type: "string" }],
2932
- stateMutability: "view"
2933
- },
2934
- {
2935
- type: "function",
2936
- inputs: [],
2937
- name: "acceptOwnership",
2938
- outputs: [],
2939
- stateMutability: "nonpayable"
2940
- },
2941
- {
2942
- type: "function",
2943
- inputs: [],
2944
- name: "cointagImplementation",
2945
- outputs: [{ name: "", internalType: "address", type: "address" }],
2946
- stateMutability: "view"
2947
- },
2948
- {
2949
- type: "function",
2950
- inputs: [],
2951
- name: "contractName",
2952
- outputs: [{ name: "", internalType: "string", type: "string" }],
2953
- stateMutability: "pure"
2954
- },
2955
- {
2956
- type: "function",
2957
- inputs: [],
2958
- name: "contractURI",
2959
- outputs: [{ name: "", internalType: "string", type: "string" }],
2960
- stateMutability: "pure"
2961
- },
2962
- {
2963
- type: "function",
2964
- inputs: [],
2965
- name: "contractVersion",
2966
- outputs: [{ name: "", internalType: "string", type: "string" }],
2967
- stateMutability: "pure"
2968
- },
2969
- {
2970
- type: "function",
2971
- inputs: [
2972
- {
2973
- name: "_creatorRewardRecipient",
2974
- internalType: "address",
2975
- type: "address"
2976
- },
2977
- { name: "_pool", internalType: "address", type: "address" },
2978
- {
2979
- name: "_percentageToBuyBurn",
2980
- internalType: "uint256",
2981
- type: "uint256"
2982
- },
2983
- { name: "saltSource", internalType: "bytes", type: "bytes" }
2984
- ],
2985
- name: "getCointagAddress",
2986
- outputs: [{ name: "", internalType: "address", type: "address" }],
2987
- stateMutability: "view"
2988
- },
2989
- {
2990
- type: "function",
2991
- inputs: [
2992
- {
2993
- name: "_creatorRewardRecipient",
2994
- internalType: "address",
2995
- type: "address"
2996
- },
2997
- { name: "_pool", internalType: "address", type: "address" },
2998
- {
2999
- name: "_percentageToBuyBurn",
3000
- internalType: "uint256",
3001
- type: "uint256"
3002
- },
3003
- { name: "saltSource", internalType: "bytes", type: "bytes" }
3004
- ],
3005
- name: "getOrCreateCointag",
3006
- outputs: [{ name: "", internalType: "address", type: "address" }],
3007
- stateMutability: "nonpayable"
3008
- },
3009
- {
3010
- type: "function",
3011
- inputs: [],
3012
- name: "implementation",
3013
- outputs: [{ name: "", internalType: "address", type: "address" }],
3014
- stateMutability: "view"
3015
- },
3016
- {
3017
- type: "function",
3018
- inputs: [
3019
- { name: "_defaultOwner", internalType: "address", type: "address" }
3020
- ],
3021
- name: "initialize",
3022
- outputs: [],
3023
- stateMutability: "nonpayable"
3024
- },
3025
- {
3026
- type: "function",
3027
- inputs: [],
3028
- name: "owner",
3029
- outputs: [{ name: "", internalType: "address", type: "address" }],
3030
- stateMutability: "view"
3031
- },
3032
- {
3033
- type: "function",
3034
- inputs: [],
3035
- name: "pendingOwner",
3036
- outputs: [{ name: "", internalType: "address", type: "address" }],
3037
- stateMutability: "view"
3038
- },
3039
- {
3040
- type: "function",
3041
- inputs: [],
3042
- name: "protocolRewards",
3043
- outputs: [{ name: "", internalType: "address", type: "address" }],
3044
- stateMutability: "view"
3045
- },
3046
- {
3047
- type: "function",
3048
- inputs: [],
3049
- name: "proxiableUUID",
3050
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3051
- stateMutability: "view"
3052
- },
3053
- {
3054
- type: "function",
3055
- inputs: [],
3056
- name: "renounceOwnership",
3057
- outputs: [],
3058
- stateMutability: "nonpayable"
3059
- },
3060
- {
3061
- type: "function",
3062
- inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
3063
- name: "transferOwnership",
3064
- outputs: [],
3065
- stateMutability: "nonpayable"
3066
- },
3067
- {
3068
- type: "function",
3069
- inputs: [
3070
- { name: "newImplementation", internalType: "address", type: "address" },
3071
- { name: "data", internalType: "bytes", type: "bytes" }
3072
- ],
3073
- name: "upgradeToAndCall",
3074
- outputs: [],
3075
- stateMutability: "payable"
3076
- },
3077
- {
3078
- type: "function",
3079
- inputs: [],
3080
- name: "weth",
3081
- outputs: [{ name: "", internalType: "address", type: "address" }],
3082
- stateMutability: "view"
3083
- },
3084
- {
3085
- type: "event",
3086
- anonymous: false,
3087
- inputs: [
3088
- {
3089
- name: "version",
3090
- internalType: "uint64",
3091
- type: "uint64",
3092
- indexed: false
3093
- }
3094
- ],
3095
- name: "Initialized"
3096
- },
3097
- {
3098
- type: "event",
3099
- anonymous: false,
3100
- inputs: [
3101
- {
3102
- name: "previousOwner",
3103
- internalType: "address",
3104
- type: "address",
3105
- indexed: true
3106
- },
3107
- {
3108
- name: "newOwner",
3109
- internalType: "address",
3110
- type: "address",
3111
- indexed: true
3112
- }
3113
- ],
3114
- name: "OwnershipTransferStarted"
3115
- },
3116
- {
3117
- type: "event",
3118
- anonymous: false,
3119
- inputs: [
3120
- {
3121
- name: "previousOwner",
3122
- internalType: "address",
3123
- type: "address",
3124
- indexed: true
3125
- },
3126
- {
3127
- name: "newOwner",
3128
- internalType: "address",
3129
- type: "address",
3130
- indexed: true
3131
- }
3132
- ],
3133
- name: "OwnershipTransferred"
3134
- },
3135
- {
3136
- type: "event",
3137
- anonymous: false,
3138
- inputs: [
3139
- {
3140
- name: "cointag",
3141
- internalType: "address",
3142
- type: "address",
3143
- indexed: true
3144
- },
3145
- {
3146
- name: "creatorRewardRecipient",
3147
- internalType: "address",
3148
- type: "address",
3149
- indexed: true
3150
- },
3151
- {
3152
- name: "erc20",
3153
- internalType: "address",
3154
- type: "address",
3155
- indexed: true
3156
- },
3157
- {
3158
- name: "pool",
3159
- internalType: "address",
3160
- type: "address",
3161
- indexed: false
3162
- },
3163
- {
3164
- name: "percentageToBuyBurn",
3165
- internalType: "uint256",
3166
- type: "uint256",
3167
- indexed: false
3168
- },
3169
- {
3170
- name: "saltSource",
3171
- internalType: "bytes",
3172
- type: "bytes",
3173
- indexed: false
3174
- }
3175
- ],
3176
- name: "SetupNewCointag"
3177
- },
3178
- {
3179
- type: "event",
3180
- anonymous: false,
3181
- inputs: [
3182
- {
3183
- name: "implementation",
3184
- internalType: "address",
3185
- type: "address",
3186
- indexed: true
3187
- }
3188
- ],
3189
- name: "Upgraded"
3190
- },
3191
- {
3192
- type: "error",
3193
- inputs: [{ name: "target", internalType: "address", type: "address" }],
3194
- name: "AddressEmptyCode"
3195
- },
3196
- { type: "error", inputs: [], name: "AddressZero" },
3197
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
3198
- {
3199
- type: "error",
3200
- inputs: [
3201
- { name: "implementation", internalType: "address", type: "address" }
3202
- ],
3203
- name: "ERC1967InvalidImplementation"
3204
- },
3205
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
3206
- { type: "error", inputs: [], name: "FailedInnerCall" },
3207
- { type: "error", inputs: [], name: "InvalidInitialization" },
3208
- { type: "error", inputs: [], name: "NotInitializing" },
3209
- {
3210
- type: "error",
3211
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
3212
- name: "OwnableInvalidOwner"
3213
- },
3214
- {
3215
- type: "error",
3216
- inputs: [{ name: "account", internalType: "address", type: "address" }],
3217
- name: "OwnableUnauthorizedAccount"
3218
- },
3219
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
3220
- {
3221
- type: "error",
3222
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
3223
- name: "UUPSUnsupportedProxiableUUID"
3224
- },
3225
- {
3226
- type: "error",
3227
- inputs: [
3228
- { name: "currentName", internalType: "string", type: "string" },
3229
- { name: "newName", internalType: "string", type: "string" }
3230
- ],
3231
- name: "UpgradeToMismatchedContractName"
3232
- }
3233
- ];
3234
- var cointagFactoryAddress = {
3235
- 84532: "0x77777779A8ed7943134E4E2D5C48698bCcBE8Be8"
3236
- };
3237
- var cointagFactoryConfig = {
3238
- address: cointagFactoryAddress,
3239
- abi: cointagFactoryABI
3240
- };
3241
2693
  var commentsABI = [
3242
2694
  {
3243
2695
  type: "constructor",
@@ -14380,6 +13832,35 @@ var zoraTimedSaleStrategyABI = [
14380
13832
  ],
14381
13833
  stateMutability: "pure"
14382
13834
  },
13835
+ {
13836
+ type: "function",
13837
+ inputs: [{ name: "quantity", internalType: "uint256", type: "uint256" }],
13838
+ name: "computeRewardsV2",
13839
+ outputs: [
13840
+ {
13841
+ name: "",
13842
+ internalType: "struct IZoraTimedSaleStrategy.RewardsSettings",
13843
+ type: "tuple",
13844
+ components: [
13845
+ { name: "totalReward", internalType: "uint256", type: "uint256" },
13846
+ { name: "creatorReward", internalType: "uint256", type: "uint256" },
13847
+ {
13848
+ name: "createReferralReward",
13849
+ internalType: "uint256",
13850
+ type: "uint256"
13851
+ },
13852
+ {
13853
+ name: "mintReferralReward",
13854
+ internalType: "uint256",
13855
+ type: "uint256"
13856
+ },
13857
+ { name: "marketReward", internalType: "uint256", type: "uint256" },
13858
+ { name: "zoraReward", internalType: "uint256", type: "uint256" }
13859
+ ]
13860
+ }
13861
+ ],
13862
+ stateMutability: "pure"
13863
+ },
14383
13864
  {
14384
13865
  type: "function",
14385
13866
  inputs: [],
@@ -16014,10 +15495,6 @@ var addresses2 = {
16014
15495
  callerAndCommenterABI,
16015
15496
  callerAndCommenterAddress,
16016
15497
  callerAndCommenterConfig,
16017
- cointagABI,
16018
- cointagFactoryABI,
16019
- cointagFactoryAddress,
16020
- cointagFactoryConfig,
16021
15498
  commentsABI,
16022
15499
  commentsAddress,
16023
15500
  commentsConfig,