@zoralabs/protocol-deployments 0.6.3 → 0.6.4

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.js CHANGED
@@ -2,12 +2,11 @@ import {
2
2
  BaseError,
3
3
  decodeAbiParameters,
4
4
  encodeAbiParameters,
5
- encodeFunctionData,
6
5
  etherUnits,
7
6
  getAbiItem,
8
7
  keccak256,
9
8
  toHex
10
- } from "./chunk-NPNNGXR4.js";
9
+ } from "./chunk-4DQDZNUA.js";
11
10
  import {
12
11
  __export
13
12
  } from "./chunk-PR4QN5HX.js";
@@ -130,6 +129,63 @@ var buySupplyWithSwapRouterHookABI = [
130
129
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
131
130
  stateMutability: "payable"
132
131
  },
132
+ {
133
+ type: "function",
134
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
135
+ name: "decodeV4RouteData",
136
+ outputs: [
137
+ {
138
+ name: "v4Route",
139
+ internalType: "struct PoolKey[]",
140
+ type: "tuple[]",
141
+ components: [
142
+ { name: "currency0", internalType: "Currency", type: "address" },
143
+ { name: "currency1", internalType: "Currency", type: "address" },
144
+ { name: "fee", internalType: "uint24", type: "uint24" },
145
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
146
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
147
+ ]
148
+ },
149
+ { name: "startAmount", internalType: "uint256", type: "uint256" }
150
+ ],
151
+ stateMutability: "pure"
152
+ },
153
+ {
154
+ type: "function",
155
+ inputs: [
156
+ {
157
+ name: "params",
158
+ internalType: "struct BuySupplyWithV4SwapHook.InitialSupplyParams",
159
+ type: "tuple",
160
+ components: [
161
+ { name: "buyRecipient", internalType: "address", type: "address" },
162
+ { name: "v3Route", internalType: "bytes", type: "bytes" },
163
+ {
164
+ name: "v4Route",
165
+ internalType: "struct PoolKey[]",
166
+ type: "tuple[]",
167
+ components: [
168
+ { name: "currency0", internalType: "Currency", type: "address" },
169
+ { name: "currency1", internalType: "Currency", type: "address" },
170
+ { name: "fee", internalType: "uint24", type: "uint24" },
171
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
172
+ {
173
+ name: "hooks",
174
+ internalType: "contract IHooks",
175
+ type: "address"
176
+ }
177
+ ]
178
+ },
179
+ { name: "inputCurrency", internalType: "address", type: "address" },
180
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
181
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
182
+ ]
183
+ }
184
+ ],
185
+ name: "encodeBuySupplyWithV4SwapHookData",
186
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
187
+ stateMutability: "pure"
188
+ },
133
189
  {
134
190
  type: "function",
135
191
  inputs: [],
@@ -139,6 +195,15 @@ var buySupplyWithSwapRouterHookABI = [
139
195
  ],
140
196
  stateMutability: "view"
141
197
  },
198
+ {
199
+ type: "function",
200
+ inputs: [],
201
+ name: "poolManager",
202
+ outputs: [
203
+ { name: "", internalType: "contract IPoolManager", type: "address" }
204
+ ],
205
+ stateMutability: "view"
206
+ },
142
207
  {
143
208
  type: "function",
144
209
  inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
@@ -146,6 +211,15 @@ var buySupplyWithSwapRouterHookABI = [
146
211
  outputs: [{ name: "", internalType: "bool", type: "bool" }],
147
212
  stateMutability: "pure"
148
213
  },
214
+ {
215
+ type: "function",
216
+ inputs: [],
217
+ name: "swapRouter",
218
+ outputs: [
219
+ { name: "", internalType: "contract ISwapRouter", type: "address" }
220
+ ],
221
+ stateMutability: "view"
222
+ },
149
223
  {
150
224
  type: "function",
151
225
  inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
@@ -153,6 +227,58 @@ var buySupplyWithSwapRouterHookABI = [
153
227
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
154
228
  stateMutability: "nonpayable"
155
229
  },
230
+ {
231
+ type: "event",
232
+ anonymous: false,
233
+ inputs: [
234
+ { name: "coin", internalType: "address", type: "address", indexed: true },
235
+ {
236
+ name: "recipient",
237
+ internalType: "address",
238
+ type: "address",
239
+ indexed: true
240
+ },
241
+ {
242
+ name: "coinsPurchased",
243
+ internalType: "uint256",
244
+ type: "uint256",
245
+ indexed: true
246
+ },
247
+ { name: "v3Route", internalType: "bytes", type: "bytes", indexed: false },
248
+ {
249
+ name: "v4Route",
250
+ internalType: "struct PoolKey[]",
251
+ type: "tuple[]",
252
+ components: [
253
+ { name: "currency0", internalType: "Currency", type: "address" },
254
+ { name: "currency1", internalType: "Currency", type: "address" },
255
+ { name: "fee", internalType: "uint24", type: "uint24" },
256
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
257
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
258
+ ],
259
+ indexed: false
260
+ },
261
+ {
262
+ name: "inputCurrency",
263
+ internalType: "address",
264
+ type: "address",
265
+ indexed: false
266
+ },
267
+ {
268
+ name: "inputAmount",
269
+ internalType: "uint256",
270
+ type: "uint256",
271
+ indexed: false
272
+ },
273
+ {
274
+ name: "v4SwapInput",
275
+ internalType: "uint256",
276
+ type: "uint256",
277
+ indexed: false
278
+ }
279
+ ],
280
+ name: "BuyInitialSupply"
281
+ },
156
282
  {
157
283
  type: "error",
158
284
  inputs: [{ name: "target", internalType: "address", type: "address" }],
@@ -164,20 +290,17 @@ var buySupplyWithSwapRouterHookABI = [
164
290
  name: "AddressInsufficientBalance"
165
291
  },
166
292
  { type: "error", inputs: [], name: "AddressZero" },
293
+ { type: "error", inputs: [], name: "FailedInnerCall" },
294
+ { type: "error", inputs: [], name: "HookNotImplemented" },
167
295
  {
168
296
  type: "error",
169
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
170
- name: "CoinBalanceNot0"
171
- },
172
- {
173
- type: "error",
174
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
175
- name: "CurrencyBalanceNot0"
297
+ inputs: [
298
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
299
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
300
+ ],
301
+ name: "InsufficientInputCurrency"
176
302
  },
177
- { type: "error", inputs: [], name: "Erc20NotReceived" },
178
- { type: "error", inputs: [], name: "FailedInnerCall" },
179
- { type: "error", inputs: [], name: "HookNotImplemented" },
180
- { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
303
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
181
304
  { type: "error", inputs: [], name: "NotFactory" },
182
305
  { type: "error", inputs: [], name: "OnlyPoolManager" },
183
306
  {
@@ -185,14 +308,11 @@ var buySupplyWithSwapRouterHookABI = [
185
308
  inputs: [{ name: "token", internalType: "address", type: "address" }],
186
309
  name: "SafeERC20FailedOperation"
187
310
  },
188
- {
189
- type: "error",
190
- inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
191
- name: "SwapReverted"
192
- }
311
+ { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
312
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" }
193
313
  ];
194
314
  var buySupplyWithSwapRouterHookAddress = {
195
- 8453: "0xc90e349360C43a0217CEF289f231C66D4748960F",
315
+ 8453: "0xd8CC7bCA1dE52eA788829B16E375e9B96C18D433",
196
316
  84532: "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE"
197
317
  };
198
318
  var buySupplyWithSwapRouterHookConfig = {
@@ -2914,121 +3034,280 @@ var coinFactoryABI = [
2914
3034
  name: "UpgradeToMismatchedContractName"
2915
3035
  },
2916
3036
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
2917
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
2918
- ];
2919
- var coinFactoryAddress = {
2920
- 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
2921
- 84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
2922
- };
2923
- var coinFactoryConfig = {
2924
- address: coinFactoryAddress,
2925
- abi: coinFactoryABI
2926
- };
2927
- var coinV4ABI = [
2928
- {
2929
- type: "constructor",
2930
- inputs: [
2931
- {
2932
- name: "protocolRewardRecipient_",
2933
- internalType: "address",
2934
- type: "address"
2935
- },
2936
- { name: "protocolRewards_", internalType: "address", type: "address" },
2937
- {
2938
- name: "poolManager_",
2939
- internalType: "contract IPoolManager",
2940
- type: "address"
2941
- },
2942
- { name: "airlock_", internalType: "address", type: "address" }
2943
- ],
2944
- stateMutability: "nonpayable"
2945
- },
3037
+ { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
2946
3038
  {
2947
- type: "function",
2948
- inputs: [],
2949
- name: "DOMAIN_SEPARATOR",
2950
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2951
- stateMutability: "view"
3039
+ type: "error",
3040
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
3041
+ name: "AddressEmptyCode"
2952
3042
  },
2953
3043
  {
2954
- type: "function",
3044
+ type: "error",
2955
3045
  inputs: [{ name: "account", internalType: "address", type: "address" }],
2956
- name: "addOwner",
2957
- outputs: [],
2958
- stateMutability: "nonpayable"
3046
+ name: "AddressInsufficientBalance"
2959
3047
  },
3048
+ { type: "error", inputs: [], name: "AddressZero" },
3049
+ { type: "error", inputs: [], name: "FailedInnerCall" },
3050
+ { type: "error", inputs: [], name: "HookNotImplemented" },
2960
3051
  {
2961
- type: "function",
3052
+ type: "error",
2962
3053
  inputs: [
2963
- { name: "accounts", internalType: "address[]", type: "address[]" }
3054
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
3055
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
2964
3056
  ],
2965
- name: "addOwners",
2966
- outputs: [],
2967
- stateMutability: "nonpayable"
3057
+ name: "InsufficientInputCurrency"
2968
3058
  },
3059
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
3060
+ { type: "error", inputs: [], name: "NotFactory" },
3061
+ { type: "error", inputs: [], name: "OnlyPoolManager" },
2969
3062
  {
2970
- type: "function",
3063
+ type: "error",
3064
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
3065
+ name: "SafeERC20FailedOperation"
3066
+ },
3067
+ { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
3068
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
3069
+ { type: "error", inputs: [], name: "AddressZero" },
3070
+ { type: "error", inputs: [], name: "AlreadyOwner" },
3071
+ { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
3072
+ {
3073
+ type: "error",
2971
3074
  inputs: [],
2972
- name: "airlock",
2973
- outputs: [{ name: "", internalType: "address", type: "address" }],
2974
- stateMutability: "view"
3075
+ name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
2975
3076
  },
3077
+ { type: "error", inputs: [], name: "ECDSAInvalidSignature" },
2976
3078
  {
2977
- type: "function",
2978
- inputs: [
2979
- { name: "owner", internalType: "address", type: "address" },
2980
- { name: "spender", internalType: "address", type: "address" }
2981
- ],
2982
- name: "allowance",
2983
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2984
- stateMutability: "view"
3079
+ type: "error",
3080
+ inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
3081
+ name: "ECDSAInvalidSignatureLength"
2985
3082
  },
2986
3083
  {
2987
- type: "function",
3084
+ type: "error",
3085
+ inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
3086
+ name: "ECDSAInvalidSignatureS"
3087
+ },
3088
+ {
3089
+ type: "error",
2988
3090
  inputs: [
2989
3091
  { name: "spender", internalType: "address", type: "address" },
2990
- { name: "value", internalType: "uint256", type: "uint256" }
3092
+ { name: "allowance", internalType: "uint256", type: "uint256" },
3093
+ { name: "needed", internalType: "uint256", type: "uint256" }
2991
3094
  ],
2992
- name: "approve",
2993
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
2994
- stateMutability: "nonpayable"
3095
+ name: "ERC20InsufficientAllowance"
2995
3096
  },
2996
3097
  {
2997
- type: "function",
2998
- inputs: [{ name: "account", internalType: "address", type: "address" }],
2999
- name: "balanceOf",
3000
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3001
- stateMutability: "view"
3098
+ type: "error",
3099
+ inputs: [
3100
+ { name: "sender", internalType: "address", type: "address" },
3101
+ { name: "balance", internalType: "uint256", type: "uint256" },
3102
+ { name: "needed", internalType: "uint256", type: "uint256" }
3103
+ ],
3104
+ name: "ERC20InsufficientBalance"
3002
3105
  },
3003
3106
  {
3004
- type: "function",
3005
- inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
3006
- name: "burn",
3007
- outputs: [],
3008
- stateMutability: "nonpayable"
3107
+ type: "error",
3108
+ inputs: [{ name: "approver", internalType: "address", type: "address" }],
3109
+ name: "ERC20InvalidApprover"
3009
3110
  },
3010
3111
  {
3011
- type: "function",
3012
- inputs: [],
3013
- name: "claimVesting",
3014
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3015
- stateMutability: "nonpayable"
3112
+ type: "error",
3113
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
3114
+ name: "ERC20InvalidReceiver"
3016
3115
  },
3017
3116
  {
3018
- type: "function",
3019
- inputs: [],
3020
- name: "coinType",
3021
- outputs: [
3022
- { name: "", internalType: "enum IHasCoinType.CoinType", type: "uint8" }
3023
- ],
3024
- stateMutability: "pure"
3117
+ type: "error",
3118
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
3119
+ name: "ERC20InvalidSender"
3025
3120
  },
3026
3121
  {
3027
- type: "function",
3028
- inputs: [],
3029
- name: "contractURI",
3030
- outputs: [{ name: "", internalType: "string", type: "string" }],
3031
- stateMutability: "view"
3122
+ type: "error",
3123
+ inputs: [{ name: "spender", internalType: "address", type: "address" }],
3124
+ name: "ERC20InvalidSpender"
3125
+ },
3126
+ { type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
3127
+ {
3128
+ type: "error",
3129
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
3130
+ name: "ERC2612ExpiredSignature"
3131
+ },
3132
+ {
3133
+ type: "error",
3134
+ inputs: [
3135
+ { name: "signer", internalType: "address", type: "address" },
3136
+ { name: "owner", internalType: "address", type: "address" }
3137
+ ],
3138
+ name: "ERC2612InvalidSigner"
3139
+ },
3140
+ { type: "error", inputs: [], name: "EthAmountMismatch" },
3141
+ { type: "error", inputs: [], name: "EthAmountTooSmall" },
3142
+ { type: "error", inputs: [], name: "EthTransferFailed" },
3143
+ { type: "error", inputs: [], name: "EthTransferInvalid" },
3144
+ { type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
3145
+ { type: "error", inputs: [], name: "InsufficientFunds" },
3146
+ { type: "error", inputs: [], name: "InsufficientLiquidity" },
3147
+ {
3148
+ type: "error",
3149
+ inputs: [
3150
+ { name: "account", internalType: "address", type: "address" },
3151
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
3152
+ ],
3153
+ name: "InvalidAccountNonce"
3154
+ },
3155
+ { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
3156
+ { type: "error", inputs: [], name: "InvalidInitialization" },
3157
+ { type: "error", inputs: [], name: "InvalidMarketType" },
3158
+ { type: "error", inputs: [], name: "InvalidPoolVersion" },
3159
+ {
3160
+ type: "error",
3161
+ inputs: [
3162
+ { name: "tickLower", internalType: "int24", type: "int24" },
3163
+ { name: "tickUpper", internalType: "int24", type: "int24" }
3164
+ ],
3165
+ name: "InvalidTickRangeMisordered"
3166
+ },
3167
+ { type: "error", inputs: [], name: "InvalidWethLowerTick" },
3168
+ { type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
3169
+ { type: "error", inputs: [], name: "MarketAlreadyGraduated" },
3170
+ { type: "error", inputs: [], name: "MarketNotGraduated" },
3171
+ {
3172
+ type: "error",
3173
+ inputs: [
3174
+ { name: "value", internalType: "uint256", type: "uint256" },
3175
+ { name: "limit", internalType: "uint256", type: "uint256" }
3176
+ ],
3177
+ name: "MaxShareToBeSoldExceeded"
3178
+ },
3179
+ { type: "error", inputs: [], name: "NameIsRequired" },
3180
+ { type: "error", inputs: [], name: "NotInitializing" },
3181
+ { type: "error", inputs: [], name: "NotOwner" },
3182
+ { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
3183
+ { type: "error", inputs: [], name: "OneOwnerRequired" },
3184
+ { type: "error", inputs: [], name: "OnlyOwner" },
3185
+ {
3186
+ type: "error",
3187
+ inputs: [
3188
+ { name: "sender", internalType: "address", type: "address" },
3189
+ { name: "pool", internalType: "address", type: "address" }
3190
+ ],
3191
+ name: "OnlyPool"
3192
+ },
3193
+ { type: "error", inputs: [], name: "OnlyWeth" },
3194
+ { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
3195
+ { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
3196
+ { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
3197
+ ];
3198
+ var coinFactoryAddress = {
3199
+ 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
3200
+ 84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
3201
+ };
3202
+ var coinFactoryConfig = {
3203
+ address: coinFactoryAddress,
3204
+ abi: coinFactoryABI
3205
+ };
3206
+ var coinV4ABI = [
3207
+ {
3208
+ type: "constructor",
3209
+ inputs: [
3210
+ {
3211
+ name: "protocolRewardRecipient_",
3212
+ internalType: "address",
3213
+ type: "address"
3214
+ },
3215
+ { name: "protocolRewards_", internalType: "address", type: "address" },
3216
+ {
3217
+ name: "poolManager_",
3218
+ internalType: "contract IPoolManager",
3219
+ type: "address"
3220
+ },
3221
+ { name: "airlock_", internalType: "address", type: "address" }
3222
+ ],
3223
+ stateMutability: "nonpayable"
3224
+ },
3225
+ {
3226
+ type: "function",
3227
+ inputs: [],
3228
+ name: "DOMAIN_SEPARATOR",
3229
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3230
+ stateMutability: "view"
3231
+ },
3232
+ {
3233
+ type: "function",
3234
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
3235
+ name: "addOwner",
3236
+ outputs: [],
3237
+ stateMutability: "nonpayable"
3238
+ },
3239
+ {
3240
+ type: "function",
3241
+ inputs: [
3242
+ { name: "accounts", internalType: "address[]", type: "address[]" }
3243
+ ],
3244
+ name: "addOwners",
3245
+ outputs: [],
3246
+ stateMutability: "nonpayable"
3247
+ },
3248
+ {
3249
+ type: "function",
3250
+ inputs: [],
3251
+ name: "airlock",
3252
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3253
+ stateMutability: "view"
3254
+ },
3255
+ {
3256
+ type: "function",
3257
+ inputs: [
3258
+ { name: "owner", internalType: "address", type: "address" },
3259
+ { name: "spender", internalType: "address", type: "address" }
3260
+ ],
3261
+ name: "allowance",
3262
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3263
+ stateMutability: "view"
3264
+ },
3265
+ {
3266
+ type: "function",
3267
+ inputs: [
3268
+ { name: "spender", internalType: "address", type: "address" },
3269
+ { name: "value", internalType: "uint256", type: "uint256" }
3270
+ ],
3271
+ name: "approve",
3272
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3273
+ stateMutability: "nonpayable"
3274
+ },
3275
+ {
3276
+ type: "function",
3277
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
3278
+ name: "balanceOf",
3279
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3280
+ stateMutability: "view"
3281
+ },
3282
+ {
3283
+ type: "function",
3284
+ inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
3285
+ name: "burn",
3286
+ outputs: [],
3287
+ stateMutability: "nonpayable"
3288
+ },
3289
+ {
3290
+ type: "function",
3291
+ inputs: [],
3292
+ name: "claimVesting",
3293
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3294
+ stateMutability: "nonpayable"
3295
+ },
3296
+ {
3297
+ type: "function",
3298
+ inputs: [],
3299
+ name: "coinType",
3300
+ outputs: [
3301
+ { name: "", internalType: "enum IHasCoinType.CoinType", type: "uint8" }
3302
+ ],
3303
+ stateMutability: "pure"
3304
+ },
3305
+ {
3306
+ type: "function",
3307
+ inputs: [],
3308
+ name: "contractURI",
3309
+ outputs: [{ name: "", internalType: "string", type: "string" }],
3310
+ stateMutability: "view"
3032
3311
  },
3033
3312
  {
3034
3313
  type: "function",
@@ -5559,884 +5838,56 @@ var commentsABI = [
5559
5838
  {
5560
5839
  name: "commentIdentifier",
5561
5840
  internalType: "struct IComments.CommentIdentifier",
5562
- type: "tuple",
5563
- components: [
5564
- { name: "commenter", internalType: "address", type: "address" },
5565
- { name: "contractAddress", internalType: "address", type: "address" },
5566
- { name: "tokenId", internalType: "uint256", type: "uint256" },
5567
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
5568
- ],
5569
- indexed: false
5570
- },
5571
- {
5572
- name: "replyToId",
5573
- internalType: "bytes32",
5574
- type: "bytes32",
5575
- indexed: false
5576
- },
5577
- {
5578
- name: "replyTo",
5579
- internalType: "struct IComments.CommentIdentifier",
5580
- type: "tuple",
5581
- components: [
5582
- { name: "commenter", internalType: "address", type: "address" },
5583
- { name: "contractAddress", internalType: "address", type: "address" },
5584
- { name: "tokenId", internalType: "uint256", type: "uint256" },
5585
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
5586
- ],
5587
- indexed: false
5588
- },
5589
- {
5590
- name: "sparksQuantity",
5591
- internalType: "uint256",
5592
- type: "uint256",
5593
- indexed: false
5594
- },
5595
- { name: "text", internalType: "string", type: "string", indexed: false },
5596
- {
5597
- name: "timestamp",
5598
- internalType: "uint256",
5599
- type: "uint256",
5600
- indexed: false
5601
- },
5602
- {
5603
- name: "referrer",
5604
- internalType: "address",
5605
- type: "address",
5606
- indexed: false
5607
- }
5608
- ],
5609
- name: "Commented"
5610
- },
5611
- { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
5612
- {
5613
- type: "event",
5614
- anonymous: false,
5615
- inputs: [
5616
- {
5617
- name: "version",
5618
- internalType: "uint64",
5619
- type: "uint64",
5620
- indexed: false
5621
- }
5622
- ],
5623
- name: "Initialized"
5624
- },
5625
- {
5626
- type: "event",
5627
- anonymous: false,
5628
- inputs: [
5629
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5630
- {
5631
- name: "previousAdminRole",
5632
- internalType: "bytes32",
5633
- type: "bytes32",
5634
- indexed: true
5635
- },
5636
- {
5637
- name: "newAdminRole",
5638
- internalType: "bytes32",
5639
- type: "bytes32",
5640
- indexed: true
5641
- }
5642
- ],
5643
- name: "RoleAdminChanged"
5644
- },
5645
- {
5646
- type: "event",
5647
- anonymous: false,
5648
- inputs: [
5649
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5650
- {
5651
- name: "account",
5652
- internalType: "address",
5653
- type: "address",
5654
- indexed: true
5655
- },
5656
- {
5657
- name: "sender",
5658
- internalType: "address",
5659
- type: "address",
5660
- indexed: true
5661
- }
5662
- ],
5663
- name: "RoleGranted"
5664
- },
5665
- {
5666
- type: "event",
5667
- anonymous: false,
5668
- inputs: [
5669
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5670
- {
5671
- name: "account",
5672
- internalType: "address",
5673
- type: "address",
5674
- indexed: true
5675
- },
5676
- {
5677
- name: "sender",
5678
- internalType: "address",
5679
- type: "address",
5680
- indexed: true
5681
- }
5682
- ],
5683
- name: "RoleRevoked"
5684
- },
5685
- {
5686
- type: "event",
5687
- anonymous: false,
5688
- inputs: [
5689
- {
5690
- name: "commentId",
5691
- internalType: "bytes32",
5692
- type: "bytes32",
5693
- indexed: true
5694
- },
5695
- {
5696
- name: "commentIdentifier",
5697
- internalType: "struct IComments.CommentIdentifier",
5698
- type: "tuple",
5699
- components: [
5700
- { name: "commenter", internalType: "address", type: "address" },
5701
- { name: "contractAddress", internalType: "address", type: "address" },
5702
- { name: "tokenId", internalType: "uint256", type: "uint256" },
5703
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
5704
- ],
5705
- indexed: false
5706
- },
5707
- {
5708
- name: "sparksQuantity",
5709
- internalType: "uint256",
5710
- type: "uint256",
5711
- indexed: false
5712
- },
5713
- {
5714
- name: "sparker",
5715
- internalType: "address",
5716
- type: "address",
5717
- indexed: false
5718
- },
5719
- {
5720
- name: "timestamp",
5721
- internalType: "uint256",
5722
- type: "uint256",
5723
- indexed: false
5724
- },
5725
- {
5726
- name: "referrer",
5727
- internalType: "address",
5728
- type: "address",
5729
- indexed: false
5730
- }
5731
- ],
5732
- name: "SparkedComment"
5733
- },
5734
- {
5735
- type: "event",
5736
- anonymous: false,
5737
- inputs: [
5738
- {
5739
- name: "implementation",
5740
- internalType: "address",
5741
- type: "address",
5742
- indexed: true
5743
- }
5744
- ],
5745
- name: "Upgraded"
5746
- },
5747
- { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
5748
- {
5749
- type: "error",
5750
- inputs: [
5751
- { name: "account", internalType: "address", type: "address" },
5752
- { name: "neededRole", internalType: "bytes32", type: "bytes32" }
5753
- ],
5754
- name: "AccessControlUnauthorizedAccount"
5755
- },
5756
- {
5757
- type: "error",
5758
- inputs: [{ name: "target", internalType: "address", type: "address" }],
5759
- name: "AddressEmptyCode"
5760
- },
5761
- { type: "error", inputs: [], name: "AddressZero" },
5762
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
5763
- { type: "error", inputs: [], name: "CannotSparkOwnComment" },
5764
- {
5765
- type: "error",
5766
- inputs: [
5767
- { name: "commentAddress", internalType: "address", type: "address" },
5768
- { name: "commentTokenId", internalType: "uint256", type: "uint256" },
5769
- { name: "replyAddress", internalType: "address", type: "address" },
5770
- { name: "replyTokenId", internalType: "uint256", type: "uint256" }
5771
- ],
5772
- name: "CommentAddressOrTokenIdsDoNotMatch"
5773
- },
5774
- { type: "error", inputs: [], name: "CommentDoesntExist" },
5775
- {
5776
- type: "error",
5777
- inputs: [
5778
- { name: "expected", internalType: "address", type: "address" },
5779
- { name: "actual", internalType: "address", type: "address" }
5780
- ],
5781
- name: "CommenterMismatch"
5782
- },
5783
- {
5784
- type: "error",
5785
- inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
5786
- name: "DuplicateComment"
5787
- },
5788
- {
5789
- type: "error",
5790
- inputs: [
5791
- { name: "implementation", internalType: "address", type: "address" }
5792
- ],
5793
- name: "ERC1967InvalidImplementation"
5794
- },
5795
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
5796
- {
5797
- type: "error",
5798
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
5799
- name: "ERC2612ExpiredSignature"
5800
- },
5801
- { type: "error", inputs: [], name: "EmptyComment" },
5802
- { type: "error", inputs: [], name: "FailedInnerCall" },
5803
- {
5804
- type: "error",
5805
- inputs: [
5806
- {
5807
- name: "wrongDestinationChainId",
5808
- internalType: "uint256",
5809
- type: "uint256"
5810
- }
5811
- ],
5812
- name: "IncorrectDestinationChain"
5813
- },
5814
- {
5815
- type: "error",
5816
- inputs: [
5817
- { name: "actual", internalType: "uint256", type: "uint256" },
5818
- { name: "expected", internalType: "uint256", type: "uint256" }
5819
- ],
5820
- name: "IncorrectETHAmountForSparks"
5821
- },
5822
- {
5823
- type: "error",
5824
- inputs: [
5825
- { name: "account", internalType: "address", type: "address" },
5826
- { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
5827
- ],
5828
- name: "InvalidAccountNonce"
5829
- },
5830
- { type: "error", inputs: [], name: "InvalidInitialization" },
5831
- { type: "error", inputs: [], name: "InvalidSignature" },
5832
- { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
5833
- { type: "error", inputs: [], name: "NoFundsRecipient" },
5834
- { type: "error", inputs: [], name: "NotInitializing" },
5835
- { type: "error", inputs: [], name: "NotSmartWallet" },
5836
- { type: "error", inputs: [], name: "NotSmartWalletOwner" },
5837
- { type: "error", inputs: [], name: "OnlySparksContract" },
5838
- { type: "error", inputs: [], name: "TransferFailed" },
5839
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
5840
- {
5841
- type: "error",
5842
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
5843
- name: "UUPSUnsupportedProxiableUUID"
5844
- },
5845
- {
5846
- type: "error",
5847
- inputs: [
5848
- { name: "currentName", internalType: "string", type: "string" },
5849
- { name: "newName", internalType: "string", type: "string" }
5850
- ],
5851
- name: "UpgradeToMismatchedContractName"
5852
- }
5853
- ];
5854
- var commentsAddress = {
5855
- 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
5856
- 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
5857
- 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
5858
- 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
5859
- 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
5860
- 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
5861
- 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
5862
- 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
5863
- 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
5864
- 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
5865
- };
5866
- var commentsConfig = {
5867
- address: commentsAddress,
5868
- abi: commentsABI
5869
- };
5870
- var devBuySupplyWithSwapRouterHookABI = [
5871
- {
5872
- type: "constructor",
5873
- inputs: [
5874
- {
5875
- name: "_factory",
5876
- internalType: "contract IZoraFactory",
5877
- type: "address"
5878
- },
5879
- { name: "_swapRouter", internalType: "address", type: "address" },
5880
- { name: "_poolManager", internalType: "address", type: "address" }
5881
- ],
5882
- stateMutability: "nonpayable"
5883
- },
5884
- {
5885
- type: "function",
5886
- inputs: [
5887
- { name: "sender", internalType: "address", type: "address" },
5888
- { name: "coin", internalType: "contract ICoin", type: "address" },
5889
- { name: "hookData", internalType: "bytes", type: "bytes" }
5890
- ],
5891
- name: "afterCoinDeploy",
5892
- outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
5893
- stateMutability: "payable"
5894
- },
5895
- {
5896
- type: "function",
5897
- inputs: [],
5898
- name: "factory",
5899
- outputs: [
5900
- { name: "", internalType: "contract IZoraFactory", type: "address" }
5901
- ],
5902
- stateMutability: "view"
5903
- },
5904
- {
5905
- type: "function",
5906
- inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
5907
- name: "supportsInterface",
5908
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
5909
- stateMutability: "pure"
5910
- },
5911
- {
5912
- type: "function",
5913
- inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
5914
- name: "unlockCallback",
5915
- outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
5916
- stateMutability: "nonpayable"
5917
- },
5918
- {
5919
- type: "error",
5920
- inputs: [{ name: "target", internalType: "address", type: "address" }],
5921
- name: "AddressEmptyCode"
5922
- },
5923
- {
5924
- type: "error",
5925
- inputs: [{ name: "account", internalType: "address", type: "address" }],
5926
- name: "AddressInsufficientBalance"
5927
- },
5928
- { type: "error", inputs: [], name: "AddressZero" },
5929
- {
5930
- type: "error",
5931
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
5932
- name: "CoinBalanceNot0"
5933
- },
5934
- {
5935
- type: "error",
5936
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
5937
- name: "CurrencyBalanceNot0"
5938
- },
5939
- { type: "error", inputs: [], name: "Erc20NotReceived" },
5940
- { type: "error", inputs: [], name: "FailedInnerCall" },
5941
- { type: "error", inputs: [], name: "HookNotImplemented" },
5942
- { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
5943
- { type: "error", inputs: [], name: "NotFactory" },
5944
- { type: "error", inputs: [], name: "OnlyPoolManager" },
5945
- {
5946
- type: "error",
5947
- inputs: [{ name: "token", internalType: "address", type: "address" }],
5948
- name: "SafeERC20FailedOperation"
5949
- },
5950
- {
5951
- type: "error",
5952
- inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
5953
- name: "SwapReverted"
5954
- }
5955
- ];
5956
- var devBuySupplyWithSwapRouterHookAddress = {
5957
- 8453: "0x62B95629F965bf48E15BB110A1729B9b9dF1C07D"
5958
- };
5959
- var devBuySupplyWithSwapRouterHookConfig = {
5960
- address: devBuySupplyWithSwapRouterHookAddress,
5961
- abi: devBuySupplyWithSwapRouterHookABI
5962
- };
5963
- var devCoinFactoryABI = [
5964
- {
5965
- type: "constructor",
5966
- inputs: [
5967
- { name: "coinV4Impl_", internalType: "address", type: "address" },
5968
- { name: "creatorCoinImpl_", internalType: "address", type: "address" },
5969
- { name: "hook_", internalType: "address", type: "address" },
5970
- { name: "zoraHookRegistry_", internalType: "address", type: "address" }
5971
- ],
5972
- stateMutability: "nonpayable"
5973
- },
5974
- {
5975
- type: "function",
5976
- inputs: [],
5977
- name: "UPGRADE_INTERFACE_VERSION",
5978
- outputs: [{ name: "", internalType: "string", type: "string" }],
5979
- stateMutability: "view"
5980
- },
5981
- {
5982
- type: "function",
5983
- inputs: [],
5984
- name: "acceptOwnership",
5985
- outputs: [],
5986
- stateMutability: "nonpayable"
5987
- },
5988
- {
5989
- type: "function",
5990
- inputs: [
5991
- { name: "msgSender", internalType: "address", type: "address" },
5992
- { name: "name", internalType: "string", type: "string" },
5993
- { name: "symbol", internalType: "string", type: "string" },
5994
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
5995
- { name: "platformReferrer", internalType: "address", type: "address" },
5996
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
5997
- ],
5998
- name: "coinAddress",
5999
- outputs: [{ name: "", internalType: "address", type: "address" }],
6000
- stateMutability: "view"
6001
- },
6002
- {
6003
- type: "function",
6004
- inputs: [],
6005
- name: "coinV4Impl",
6006
- outputs: [{ name: "", internalType: "address", type: "address" }],
6007
- stateMutability: "view"
6008
- },
6009
- {
6010
- type: "function",
6011
- inputs: [],
6012
- name: "contentCoinHook",
6013
- outputs: [{ name: "", internalType: "address", type: "address" }],
6014
- stateMutability: "view"
6015
- },
6016
- {
6017
- type: "function",
6018
- inputs: [],
6019
- name: "contractName",
6020
- outputs: [{ name: "", internalType: "string", type: "string" }],
6021
- stateMutability: "pure"
6022
- },
6023
- {
6024
- type: "function",
6025
- inputs: [],
6026
- name: "contractVersion",
6027
- outputs: [{ name: "", internalType: "string", type: "string" }],
6028
- stateMutability: "pure"
6029
- },
6030
- {
6031
- type: "function",
6032
- inputs: [],
6033
- name: "creatorCoinHook",
6034
- outputs: [{ name: "", internalType: "address", type: "address" }],
6035
- stateMutability: "view"
6036
- },
6037
- {
6038
- type: "function",
6039
- inputs: [],
6040
- name: "creatorCoinImpl",
6041
- outputs: [{ name: "", internalType: "address", type: "address" }],
6042
- stateMutability: "view"
6043
- },
6044
- {
6045
- type: "function",
6046
- inputs: [
6047
- { name: "payoutRecipient", internalType: "address", type: "address" },
6048
- { name: "owners", internalType: "address[]", type: "address[]" },
6049
- { name: "uri", internalType: "string", type: "string" },
6050
- { name: "name", internalType: "string", type: "string" },
6051
- { name: "symbol", internalType: "string", type: "string" },
6052
- { name: "platformReferrer", internalType: "address", type: "address" },
6053
- { name: "currency", internalType: "address", type: "address" },
6054
- { name: "", internalType: "int24", type: "int24" },
6055
- { name: "", internalType: "uint256", type: "uint256" }
6056
- ],
6057
- name: "deploy",
6058
- outputs: [
6059
- { name: "", internalType: "address", type: "address" },
6060
- { name: "", internalType: "uint256", type: "uint256" }
6061
- ],
6062
- stateMutability: "payable"
6063
- },
6064
- {
6065
- type: "function",
6066
- inputs: [
6067
- { name: "payoutRecipient", internalType: "address", type: "address" },
6068
- { name: "owners", internalType: "address[]", type: "address[]" },
6069
- { name: "uri", internalType: "string", type: "string" },
6070
- { name: "name", internalType: "string", type: "string" },
6071
- { name: "symbol", internalType: "string", type: "string" },
6072
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6073
- { name: "platformReferrer", internalType: "address", type: "address" },
6074
- { name: "postDeployHook", internalType: "address", type: "address" },
6075
- { name: "postDeployHookData", internalType: "bytes", type: "bytes" },
6076
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
6077
- ],
6078
- name: "deploy",
6079
- outputs: [
6080
- { name: "coin", internalType: "address", type: "address" },
6081
- { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
6082
- ],
6083
- stateMutability: "payable"
6084
- },
6085
- {
6086
- type: "function",
6087
- inputs: [
6088
- { name: "payoutRecipient", internalType: "address", type: "address" },
6089
- { name: "owners", internalType: "address[]", type: "address[]" },
6090
- { name: "uri", internalType: "string", type: "string" },
6091
- { name: "name", internalType: "string", type: "string" },
6092
- { name: "symbol", internalType: "string", type: "string" },
6093
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6094
- { name: "platformReferrer", internalType: "address", type: "address" },
6095
- { name: "", internalType: "uint256", type: "uint256" }
6096
- ],
6097
- name: "deploy",
6098
- outputs: [
6099
- { name: "", internalType: "address", type: "address" },
6100
- { name: "", internalType: "uint256", type: "uint256" }
6101
- ],
6102
- stateMutability: "payable"
6103
- },
6104
- {
6105
- type: "function",
6106
- inputs: [
6107
- { name: "payoutRecipient", internalType: "address", type: "address" },
6108
- { name: "owners", internalType: "address[]", type: "address[]" },
6109
- { name: "uri", internalType: "string", type: "string" },
6110
- { name: "name", internalType: "string", type: "string" },
6111
- { name: "symbol", internalType: "string", type: "string" },
6112
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6113
- { name: "platformReferrer", internalType: "address", type: "address" },
6114
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
6115
- ],
6116
- name: "deployCreatorCoin",
6117
- outputs: [{ name: "", internalType: "address", type: "address" }],
6118
- stateMutability: "nonpayable"
6119
- },
6120
- {
6121
- type: "function",
6122
- inputs: [
6123
- { name: "payoutRecipient", internalType: "address", type: "address" },
6124
- { name: "owners", internalType: "address[]", type: "address[]" },
6125
- { name: "uri", internalType: "string", type: "string" },
6126
- { name: "name", internalType: "string", type: "string" },
6127
- { name: "symbol", internalType: "string", type: "string" },
6128
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6129
- { name: "platformReferrer", internalType: "address", type: "address" },
6130
- { name: "postDeployHook", internalType: "address", type: "address" },
6131
- { name: "postDeployHookData", internalType: "bytes", type: "bytes" },
6132
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
6133
- ],
6134
- name: "deployCreatorCoin",
6135
- outputs: [
6136
- { name: "coin", internalType: "address", type: "address" },
6137
- { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
6138
- ],
6139
- stateMutability: "payable"
6140
- },
6141
- {
6142
- type: "function",
6143
- inputs: [
6144
- { name: "payoutRecipient", internalType: "address", type: "address" },
6145
- { name: "owners", internalType: "address[]", type: "address[]" },
6146
- { name: "uri", internalType: "string", type: "string" },
6147
- { name: "name", internalType: "string", type: "string" },
6148
- { name: "symbol", internalType: "string", type: "string" },
6149
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
6150
- { name: "platformReferrer", internalType: "address", type: "address" },
6151
- { name: "deployHook", internalType: "address", type: "address" },
6152
- { name: "hookData", internalType: "bytes", type: "bytes" }
6153
- ],
6154
- name: "deployWithHook",
6155
- outputs: [
6156
- { name: "coin", internalType: "address", type: "address" },
6157
- { name: "hookDataOut", internalType: "bytes", type: "bytes" }
6158
- ],
6159
- stateMutability: "payable"
6160
- },
6161
- {
6162
- type: "function",
6163
- inputs: [{ name: "coin", internalType: "address", type: "address" }],
6164
- name: "getVersionForDeployedCoin",
6165
- outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
6166
- stateMutability: "view"
6167
- },
6168
- {
6169
- type: "function",
6170
- inputs: [],
6171
- name: "hook",
6172
- outputs: [{ name: "", internalType: "address", type: "address" }],
6173
- stateMutability: "view"
6174
- },
6175
- {
6176
- type: "function",
6177
- inputs: [],
6178
- name: "implementation",
6179
- outputs: [{ name: "", internalType: "address", type: "address" }],
6180
- stateMutability: "view"
6181
- },
6182
- {
6183
- type: "function",
6184
- inputs: [
6185
- { name: "initialOwner", internalType: "address", type: "address" }
6186
- ],
6187
- name: "initialize",
6188
- outputs: [],
6189
- stateMutability: "nonpayable"
6190
- },
6191
- {
6192
- type: "function",
6193
- inputs: [],
6194
- name: "owner",
6195
- outputs: [{ name: "", internalType: "address", type: "address" }],
6196
- stateMutability: "view"
6197
- },
6198
- {
6199
- type: "function",
6200
- inputs: [],
6201
- name: "pendingOwner",
6202
- outputs: [{ name: "", internalType: "address", type: "address" }],
6203
- stateMutability: "view"
6204
- },
6205
- {
6206
- type: "function",
6207
- inputs: [],
6208
- name: "proxiableUUID",
6209
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
6210
- stateMutability: "view"
6211
- },
6212
- {
6213
- type: "function",
6214
- inputs: [],
6215
- name: "renounceOwnership",
6216
- outputs: [],
6217
- stateMutability: "nonpayable"
6218
- },
6219
- {
6220
- type: "function",
6221
- inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
6222
- name: "transferOwnership",
6223
- outputs: [],
6224
- stateMutability: "nonpayable"
6225
- },
6226
- {
6227
- type: "function",
6228
- inputs: [
6229
- { name: "newImplementation", internalType: "address", type: "address" },
6230
- { name: "data", internalType: "bytes", type: "bytes" }
6231
- ],
6232
- name: "upgradeToAndCall",
6233
- outputs: [],
6234
- stateMutability: "payable"
6235
- },
6236
- {
6237
- type: "function",
6238
- inputs: [],
6239
- name: "zoraHookRegistry",
6240
- outputs: [{ name: "", internalType: "address", type: "address" }],
6241
- stateMutability: "view"
6242
- },
6243
- {
6244
- type: "event",
6245
- anonymous: false,
6246
- inputs: [
6247
- {
6248
- name: "caller",
6249
- internalType: "address",
6250
- type: "address",
6251
- indexed: true
6252
- },
6253
- {
6254
- name: "payoutRecipient",
6255
- internalType: "address",
6256
- type: "address",
6257
- indexed: true
6258
- },
6259
- {
6260
- name: "platformReferrer",
6261
- internalType: "address",
6262
- type: "address",
6263
- indexed: true
6264
- },
6265
- {
6266
- name: "currency",
6267
- internalType: "address",
6268
- type: "address",
6269
- indexed: false
6270
- },
6271
- { name: "uri", internalType: "string", type: "string", indexed: false },
6272
- { name: "name", internalType: "string", type: "string", indexed: false },
6273
- {
6274
- name: "symbol",
6275
- internalType: "string",
6276
- type: "string",
6277
- indexed: false
6278
- },
6279
- {
6280
- name: "coin",
6281
- internalType: "address",
6282
- type: "address",
6283
- indexed: false
6284
- },
6285
- {
6286
- name: "pool",
6287
- internalType: "address",
6288
- type: "address",
6289
- indexed: false
6290
- },
6291
- {
6292
- name: "version",
6293
- internalType: "string",
6294
- type: "string",
6295
- indexed: false
6296
- }
6297
- ],
6298
- name: "CoinCreated"
6299
- },
6300
- {
6301
- type: "event",
6302
- anonymous: false,
6303
- inputs: [
6304
- {
6305
- name: "caller",
6306
- internalType: "address",
6307
- type: "address",
6308
- indexed: true
6309
- },
6310
- {
6311
- name: "payoutRecipient",
6312
- internalType: "address",
6313
- type: "address",
6314
- indexed: true
6315
- },
6316
- {
6317
- name: "platformReferrer",
6318
- internalType: "address",
6319
- type: "address",
6320
- indexed: true
6321
- },
6322
- {
6323
- name: "currency",
6324
- internalType: "address",
6325
- type: "address",
6326
- indexed: false
6327
- },
6328
- { name: "uri", internalType: "string", type: "string", indexed: false },
6329
- { name: "name", internalType: "string", type: "string", indexed: false },
6330
- {
6331
- name: "symbol",
6332
- internalType: "string",
6333
- type: "string",
6334
- indexed: false
6335
- },
6336
- {
6337
- name: "coin",
6338
- internalType: "address",
6339
- type: "address",
6340
- indexed: false
6341
- },
6342
- {
6343
- name: "poolKey",
6344
- internalType: "struct PoolKey",
6345
- type: "tuple",
6346
- components: [
6347
- { name: "currency0", internalType: "Currency", type: "address" },
6348
- { name: "currency1", internalType: "Currency", type: "address" },
6349
- { name: "fee", internalType: "uint24", type: "uint24" },
6350
- { name: "tickSpacing", internalType: "int24", type: "int24" },
6351
- { name: "hooks", internalType: "contract IHooks", type: "address" }
6352
- ],
6353
- indexed: false
6354
- },
6355
- {
6356
- name: "poolKeyHash",
6357
- internalType: "bytes32",
6358
- type: "bytes32",
6359
- indexed: false
6360
- },
6361
- {
6362
- name: "version",
6363
- internalType: "string",
6364
- type: "string",
6365
- indexed: false
6366
- }
6367
- ],
6368
- name: "CoinCreatedV4"
6369
- },
6370
- {
6371
- type: "event",
6372
- anonymous: false,
6373
- inputs: [
6374
- {
6375
- name: "caller",
6376
- internalType: "address",
6377
- type: "address",
6378
- indexed: true
6379
- },
6380
- {
6381
- name: "payoutRecipient",
6382
- internalType: "address",
6383
- type: "address",
6384
- indexed: true
6385
- },
6386
- {
6387
- name: "platformReferrer",
6388
- internalType: "address",
6389
- type: "address",
6390
- indexed: true
6391
- },
6392
- {
6393
- name: "currency",
6394
- internalType: "address",
6395
- type: "address",
6396
- indexed: false
6397
- },
6398
- { name: "uri", internalType: "string", type: "string", indexed: false },
6399
- { name: "name", internalType: "string", type: "string", indexed: false },
6400
- {
6401
- name: "symbol",
6402
- internalType: "string",
6403
- type: "string",
5841
+ type: "tuple",
5842
+ components: [
5843
+ { name: "commenter", internalType: "address", type: "address" },
5844
+ { name: "contractAddress", internalType: "address", type: "address" },
5845
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5846
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
5847
+ ],
6404
5848
  indexed: false
6405
5849
  },
6406
5850
  {
6407
- name: "coin",
6408
- internalType: "address",
6409
- type: "address",
5851
+ name: "replyToId",
5852
+ internalType: "bytes32",
5853
+ type: "bytes32",
6410
5854
  indexed: false
6411
5855
  },
6412
5856
  {
6413
- name: "poolKey",
6414
- internalType: "struct PoolKey",
5857
+ name: "replyTo",
5858
+ internalType: "struct IComments.CommentIdentifier",
6415
5859
  type: "tuple",
6416
5860
  components: [
6417
- { name: "currency0", internalType: "Currency", type: "address" },
6418
- { name: "currency1", internalType: "Currency", type: "address" },
6419
- { name: "fee", internalType: "uint24", type: "uint24" },
6420
- { name: "tickSpacing", internalType: "int24", type: "int24" },
6421
- { name: "hooks", internalType: "contract IHooks", type: "address" }
5861
+ { name: "commenter", internalType: "address", type: "address" },
5862
+ { name: "contractAddress", internalType: "address", type: "address" },
5863
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5864
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
6422
5865
  ],
6423
5866
  indexed: false
6424
5867
  },
6425
5868
  {
6426
- name: "poolKeyHash",
6427
- internalType: "bytes32",
6428
- type: "bytes32",
5869
+ name: "sparksQuantity",
5870
+ internalType: "uint256",
5871
+ type: "uint256",
6429
5872
  indexed: false
6430
5873
  },
5874
+ { name: "text", internalType: "string", type: "string", indexed: false },
6431
5875
  {
6432
- name: "version",
6433
- internalType: "string",
6434
- type: "string",
5876
+ name: "timestamp",
5877
+ internalType: "uint256",
5878
+ type: "uint256",
5879
+ indexed: false
5880
+ },
5881
+ {
5882
+ name: "referrer",
5883
+ internalType: "address",
5884
+ type: "address",
6435
5885
  indexed: false
6436
5886
  }
6437
5887
  ],
6438
- name: "CreatorCoinCreated"
5888
+ name: "Commented"
6439
5889
  },
5890
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
6440
5891
  {
6441
5892
  type: "event",
6442
5893
  anonymous: false,
@@ -6454,39 +5905,110 @@ var devCoinFactoryABI = [
6454
5905
  type: "event",
6455
5906
  anonymous: false,
6456
5907
  inputs: [
5908
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
6457
5909
  {
6458
- name: "previousOwner",
5910
+ name: "previousAdminRole",
5911
+ internalType: "bytes32",
5912
+ type: "bytes32",
5913
+ indexed: true
5914
+ },
5915
+ {
5916
+ name: "newAdminRole",
5917
+ internalType: "bytes32",
5918
+ type: "bytes32",
5919
+ indexed: true
5920
+ }
5921
+ ],
5922
+ name: "RoleAdminChanged"
5923
+ },
5924
+ {
5925
+ type: "event",
5926
+ anonymous: false,
5927
+ inputs: [
5928
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5929
+ {
5930
+ name: "account",
6459
5931
  internalType: "address",
6460
5932
  type: "address",
6461
5933
  indexed: true
6462
5934
  },
6463
5935
  {
6464
- name: "newOwner",
5936
+ name: "sender",
6465
5937
  internalType: "address",
6466
5938
  type: "address",
6467
5939
  indexed: true
6468
5940
  }
6469
5941
  ],
6470
- name: "OwnershipTransferStarted"
5942
+ name: "RoleGranted"
6471
5943
  },
6472
5944
  {
6473
5945
  type: "event",
6474
5946
  anonymous: false,
6475
5947
  inputs: [
5948
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
6476
5949
  {
6477
- name: "previousOwner",
5950
+ name: "account",
6478
5951
  internalType: "address",
6479
5952
  type: "address",
6480
5953
  indexed: true
6481
5954
  },
6482
5955
  {
6483
- name: "newOwner",
5956
+ name: "sender",
6484
5957
  internalType: "address",
6485
5958
  type: "address",
6486
5959
  indexed: true
6487
5960
  }
6488
5961
  ],
6489
- name: "OwnershipTransferred"
5962
+ name: "RoleRevoked"
5963
+ },
5964
+ {
5965
+ type: "event",
5966
+ anonymous: false,
5967
+ inputs: [
5968
+ {
5969
+ name: "commentId",
5970
+ internalType: "bytes32",
5971
+ type: "bytes32",
5972
+ indexed: true
5973
+ },
5974
+ {
5975
+ name: "commentIdentifier",
5976
+ internalType: "struct IComments.CommentIdentifier",
5977
+ type: "tuple",
5978
+ components: [
5979
+ { name: "commenter", internalType: "address", type: "address" },
5980
+ { name: "contractAddress", internalType: "address", type: "address" },
5981
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5982
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
5983
+ ],
5984
+ indexed: false
5985
+ },
5986
+ {
5987
+ name: "sparksQuantity",
5988
+ internalType: "uint256",
5989
+ type: "uint256",
5990
+ indexed: false
5991
+ },
5992
+ {
5993
+ name: "sparker",
5994
+ internalType: "address",
5995
+ type: "address",
5996
+ indexed: false
5997
+ },
5998
+ {
5999
+ name: "timestamp",
6000
+ internalType: "uint256",
6001
+ type: "uint256",
6002
+ indexed: false
6003
+ },
6004
+ {
6005
+ name: "referrer",
6006
+ internalType: "address",
6007
+ type: "address",
6008
+ indexed: false
6009
+ }
6010
+ ],
6011
+ name: "SparkedComment"
6490
6012
  },
6491
6013
  {
6492
6014
  type: "event",
@@ -6501,15 +6023,47 @@ var devCoinFactoryABI = [
6501
6023
  ],
6502
6024
  name: "Upgraded"
6503
6025
  },
6026
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
6027
+ {
6028
+ type: "error",
6029
+ inputs: [
6030
+ { name: "account", internalType: "address", type: "address" },
6031
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
6032
+ ],
6033
+ name: "AccessControlUnauthorizedAccount"
6034
+ },
6504
6035
  {
6505
6036
  type: "error",
6506
6037
  inputs: [{ name: "target", internalType: "address", type: "address" }],
6507
6038
  name: "AddressEmptyCode"
6508
6039
  },
6040
+ { type: "error", inputs: [], name: "AddressZero" },
6509
6041
  { type: "error", inputs: [], name: "ArrayLengthMismatch" },
6510
- { type: "error", inputs: [], name: "ConfigTickLowerMustBeLessThanTickUpper" },
6511
- { type: "error", inputs: [], name: "Deprecated" },
6512
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
6042
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
6043
+ {
6044
+ type: "error",
6045
+ inputs: [
6046
+ { name: "commentAddress", internalType: "address", type: "address" },
6047
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
6048
+ { name: "replyAddress", internalType: "address", type: "address" },
6049
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
6050
+ ],
6051
+ name: "CommentAddressOrTokenIdsDoNotMatch"
6052
+ },
6053
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
6054
+ {
6055
+ type: "error",
6056
+ inputs: [
6057
+ { name: "expected", internalType: "address", type: "address" },
6058
+ { name: "actual", internalType: "address", type: "address" }
6059
+ ],
6060
+ name: "CommenterMismatch"
6061
+ },
6062
+ {
6063
+ type: "error",
6064
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
6065
+ name: "DuplicateComment"
6066
+ },
6513
6067
  {
6514
6068
  type: "error",
6515
6069
  inputs: [
@@ -6518,41 +6072,49 @@ var devCoinFactoryABI = [
6518
6072
  name: "ERC1967InvalidImplementation"
6519
6073
  },
6520
6074
  { type: "error", inputs: [], name: "ERC1967NonPayable" },
6521
- { type: "error", inputs: [], name: "EthTransferInvalid" },
6522
- { type: "error", inputs: [], name: "FailedInnerCall" },
6523
- { type: "error", inputs: [], name: "InvalidConfig" },
6524
- { type: "error", inputs: [], name: "InvalidHook" },
6525
- { type: "error", inputs: [], name: "InvalidInitialization" },
6526
- { type: "error", inputs: [], name: "InvalidPoolVersion" },
6527
6075
  {
6528
6076
  type: "error",
6529
- inputs: [
6530
- { name: "tickLower", internalType: "int24", type: "int24" },
6531
- { name: "tickUpper", internalType: "int24", type: "int24" }
6532
- ],
6533
- name: "InvalidTickRangeMisordered"
6077
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
6078
+ name: "ERC2612ExpiredSignature"
6534
6079
  },
6080
+ { type: "error", inputs: [], name: "EmptyComment" },
6081
+ { type: "error", inputs: [], name: "FailedInnerCall" },
6535
6082
  {
6536
6083
  type: "error",
6537
6084
  inputs: [
6538
- { name: "value", internalType: "uint256", type: "uint256" },
6539
- { name: "limit", internalType: "uint256", type: "uint256" }
6085
+ {
6086
+ name: "wrongDestinationChainId",
6087
+ internalType: "uint256",
6088
+ type: "uint256"
6089
+ }
6540
6090
  ],
6541
- name: "MaxShareToBeSoldExceeded"
6091
+ name: "IncorrectDestinationChain"
6542
6092
  },
6543
- { type: "error", inputs: [], name: "NotInitializing" },
6544
- { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
6545
6093
  {
6546
6094
  type: "error",
6547
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
6548
- name: "OwnableInvalidOwner"
6095
+ inputs: [
6096
+ { name: "actual", internalType: "uint256", type: "uint256" },
6097
+ { name: "expected", internalType: "uint256", type: "uint256" }
6098
+ ],
6099
+ name: "IncorrectETHAmountForSparks"
6549
6100
  },
6550
6101
  {
6551
6102
  type: "error",
6552
- inputs: [{ name: "account", internalType: "address", type: "address" }],
6553
- name: "OwnableUnauthorizedAccount"
6103
+ inputs: [
6104
+ { name: "account", internalType: "address", type: "address" },
6105
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
6106
+ ],
6107
+ name: "InvalidAccountNonce"
6554
6108
  },
6555
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
6109
+ { type: "error", inputs: [], name: "InvalidInitialization" },
6110
+ { type: "error", inputs: [], name: "InvalidSignature" },
6111
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
6112
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
6113
+ { type: "error", inputs: [], name: "NotInitializing" },
6114
+ { type: "error", inputs: [], name: "NotSmartWallet" },
6115
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
6116
+ { type: "error", inputs: [], name: "OnlySparksContract" },
6117
+ { type: "error", inputs: [], name: "TransferFailed" },
6556
6118
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
6557
6119
  {
6558
6120
  type: "error",
@@ -6566,16 +6128,23 @@ var devCoinFactoryABI = [
6566
6128
  { name: "newName", internalType: "string", type: "string" }
6567
6129
  ],
6568
6130
  name: "UpgradeToMismatchedContractName"
6569
- },
6570
- { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
6571
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
6131
+ }
6572
6132
  ];
6573
- var devCoinFactoryAddress = {
6574
- 8453: "0x47B0C1205B01e5e967dB24A186968152e5cCf764"
6133
+ var commentsAddress = {
6134
+ 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
6135
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
6136
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
6137
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
6138
+ 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
6139
+ 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
6140
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
6141
+ 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
6142
+ 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
6143
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
6575
6144
  };
6576
- var devCoinFactoryConfig = {
6577
- address: devCoinFactoryAddress,
6578
- abi: devCoinFactoryABI
6145
+ var commentsConfig = {
6146
+ address: commentsAddress,
6147
+ abi: commentsABI
6579
6148
  };
6580
6149
  var erc20MinterABI = [
6581
6150
  {
@@ -18947,64 +18516,6 @@ var buySupplyWithSwapRouterHookReturnParameters = [
18947
18516
  { name: "amountCurrency", internalType: "uint256", type: "uint256" },
18948
18517
  { name: "coinsPurchased", internalType: "uint256", type: "uint256" }
18949
18518
  ];
18950
- var encodeBuySupplyWithSwapRouterHookCalldata = (buyRecipient, swapRouterCall) => {
18951
- return encodeAbiParameters(buySupplyWithSwapRouterHookAbiParameters, [
18952
- buyRecipient,
18953
- swapRouterCall
18954
- ]);
18955
- };
18956
- var encodeBuySupplyWithSingleHopSwapRouterHookCall = ({
18957
- buyRecipient,
18958
- exactInputSingleParams,
18959
- chainId,
18960
- ethValue
18961
- }) => {
18962
- const hook = buySupplyWithSwapRouterHookAddress[chainId];
18963
- const callToSwapRouter = encodeFunctionData({
18964
- abi: uniswapV3SwapRouterABI,
18965
- functionName: "exactInputSingle",
18966
- args: [
18967
- {
18968
- recipient: hook,
18969
- ...exactInputSingleParams
18970
- }
18971
- ]
18972
- });
18973
- return {
18974
- hook,
18975
- hookData: encodeBuySupplyWithSwapRouterHookCalldata(
18976
- buyRecipient,
18977
- callToSwapRouter
18978
- ),
18979
- value: ethValue
18980
- };
18981
- };
18982
- var encodeBuySupplyWithMultiHopSwapRouterHookCall = ({
18983
- buyRecipient,
18984
- exactInputParams,
18985
- chainId,
18986
- ethValue
18987
- }) => {
18988
- const hook = buySupplyWithSwapRouterHookAddress[chainId];
18989
- const callToSwapRouter = encodeFunctionData({
18990
- abi: uniswapV3SwapRouterABI,
18991
- functionName: "exactInput",
18992
- args: [
18993
- {
18994
- recipient: hook,
18995
- ...exactInputParams
18996
- }
18997
- ]
18998
- });
18999
- return {
19000
- hook,
19001
- hookData: encodeBuySupplyWithSwapRouterHookCalldata(
19002
- buyRecipient,
19003
- callToSwapRouter
19004
- ),
19005
- value: ethValue
19006
- };
19007
- };
19008
18519
  var decodeBuySupplyWithSwapRouterHookReturn = (returnData) => {
19009
18520
  const result = decodeAbiParameters(
19010
18521
  buySupplyWithSwapRouterHookReturnParameters,
@@ -19466,16 +18977,7 @@ export {
19466
18977
  commentsConfig,
19467
18978
  __exports as contracts1155,
19468
18979
  decodeBuySupplyWithSwapRouterHookReturn,
19469
- devBuySupplyWithSwapRouterHookABI,
19470
- devBuySupplyWithSwapRouterHookAddress,
19471
- devBuySupplyWithSwapRouterHookConfig,
19472
- devCoinFactoryABI,
19473
- devCoinFactoryAddress,
19474
- devCoinFactoryConfig,
19475
18980
  emptyCommentIdentifier,
19476
- encodeBuySupplyWithMultiHopSwapRouterHookCall,
19477
- encodeBuySupplyWithSingleHopSwapRouterHookCall,
19478
- encodeBuySupplyWithSwapRouterHookCalldata,
19479
18981
  encodeMultiCurvePoolConfig,
19480
18982
  encodePremintConfig,
19481
18983
  erc20MinterABI,