@zoralabs/protocol-deployments 0.6.3 → 0.6.4-PRE.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.js CHANGED
@@ -2,12 +2,12 @@ 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-KMBLRPCX.js";
10
+ import "./chunk-BYTNVMX7.js";
11
11
  import {
12
12
  __export
13
13
  } from "./chunk-PR4QN5HX.js";
@@ -130,6 +130,63 @@ var buySupplyWithSwapRouterHookABI = [
130
130
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
131
131
  stateMutability: "payable"
132
132
  },
133
+ {
134
+ type: "function",
135
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
136
+ name: "decodeV4RouteData",
137
+ outputs: [
138
+ {
139
+ name: "v4Route",
140
+ internalType: "struct PoolKey[]",
141
+ type: "tuple[]",
142
+ components: [
143
+ { name: "currency0", internalType: "Currency", type: "address" },
144
+ { name: "currency1", internalType: "Currency", type: "address" },
145
+ { name: "fee", internalType: "uint24", type: "uint24" },
146
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
147
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
148
+ ]
149
+ },
150
+ { name: "startAmount", internalType: "uint256", type: "uint256" }
151
+ ],
152
+ stateMutability: "pure"
153
+ },
154
+ {
155
+ type: "function",
156
+ inputs: [
157
+ {
158
+ name: "params",
159
+ internalType: "struct BuySupplyWithV4SwapHook.InitialSupplyParams",
160
+ type: "tuple",
161
+ components: [
162
+ { name: "buyRecipient", internalType: "address", type: "address" },
163
+ { name: "v3Route", internalType: "bytes", type: "bytes" },
164
+ {
165
+ name: "v4Route",
166
+ internalType: "struct PoolKey[]",
167
+ type: "tuple[]",
168
+ components: [
169
+ { name: "currency0", internalType: "Currency", type: "address" },
170
+ { name: "currency1", internalType: "Currency", type: "address" },
171
+ { name: "fee", internalType: "uint24", type: "uint24" },
172
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
173
+ {
174
+ name: "hooks",
175
+ internalType: "contract IHooks",
176
+ type: "address"
177
+ }
178
+ ]
179
+ },
180
+ { name: "inputCurrency", internalType: "address", type: "address" },
181
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
182
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
183
+ ]
184
+ }
185
+ ],
186
+ name: "encodeBuySupplyWithV4SwapHookData",
187
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
188
+ stateMutability: "pure"
189
+ },
133
190
  {
134
191
  type: "function",
135
192
  inputs: [],
@@ -139,6 +196,15 @@ var buySupplyWithSwapRouterHookABI = [
139
196
  ],
140
197
  stateMutability: "view"
141
198
  },
199
+ {
200
+ type: "function",
201
+ inputs: [],
202
+ name: "poolManager",
203
+ outputs: [
204
+ { name: "", internalType: "contract IPoolManager", type: "address" }
205
+ ],
206
+ stateMutability: "view"
207
+ },
142
208
  {
143
209
  type: "function",
144
210
  inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
@@ -146,6 +212,15 @@ var buySupplyWithSwapRouterHookABI = [
146
212
  outputs: [{ name: "", internalType: "bool", type: "bool" }],
147
213
  stateMutability: "pure"
148
214
  },
215
+ {
216
+ type: "function",
217
+ inputs: [],
218
+ name: "swapRouter",
219
+ outputs: [
220
+ { name: "", internalType: "contract ISwapRouter", type: "address" }
221
+ ],
222
+ stateMutability: "view"
223
+ },
149
224
  {
150
225
  type: "function",
151
226
  inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
@@ -153,6 +228,58 @@ var buySupplyWithSwapRouterHookABI = [
153
228
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
154
229
  stateMutability: "nonpayable"
155
230
  },
231
+ {
232
+ type: "event",
233
+ anonymous: false,
234
+ inputs: [
235
+ { name: "coin", internalType: "address", type: "address", indexed: true },
236
+ {
237
+ name: "recipient",
238
+ internalType: "address",
239
+ type: "address",
240
+ indexed: true
241
+ },
242
+ {
243
+ name: "coinsPurchased",
244
+ internalType: "uint256",
245
+ type: "uint256",
246
+ indexed: true
247
+ },
248
+ { name: "v3Route", internalType: "bytes", type: "bytes", indexed: false },
249
+ {
250
+ name: "v4Route",
251
+ internalType: "struct PoolKey[]",
252
+ type: "tuple[]",
253
+ components: [
254
+ { name: "currency0", internalType: "Currency", type: "address" },
255
+ { name: "currency1", internalType: "Currency", type: "address" },
256
+ { name: "fee", internalType: "uint24", type: "uint24" },
257
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
258
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
259
+ ],
260
+ indexed: false
261
+ },
262
+ {
263
+ name: "inputCurrency",
264
+ internalType: "address",
265
+ type: "address",
266
+ indexed: false
267
+ },
268
+ {
269
+ name: "inputAmount",
270
+ internalType: "uint256",
271
+ type: "uint256",
272
+ indexed: false
273
+ },
274
+ {
275
+ name: "v4SwapInput",
276
+ internalType: "uint256",
277
+ type: "uint256",
278
+ indexed: false
279
+ }
280
+ ],
281
+ name: "BuyInitialSupply"
282
+ },
156
283
  {
157
284
  type: "error",
158
285
  inputs: [{ name: "target", internalType: "address", type: "address" }],
@@ -164,20 +291,17 @@ var buySupplyWithSwapRouterHookABI = [
164
291
  name: "AddressInsufficientBalance"
165
292
  },
166
293
  { type: "error", inputs: [], name: "AddressZero" },
294
+ { type: "error", inputs: [], name: "FailedInnerCall" },
295
+ { type: "error", inputs: [], name: "HookNotImplemented" },
167
296
  {
168
297
  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"
298
+ inputs: [
299
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
300
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
301
+ ],
302
+ name: "InsufficientInputCurrency"
176
303
  },
177
- { type: "error", inputs: [], name: "Erc20NotReceived" },
178
- { type: "error", inputs: [], name: "FailedInnerCall" },
179
- { type: "error", inputs: [], name: "HookNotImplemented" },
180
- { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
304
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
181
305
  { type: "error", inputs: [], name: "NotFactory" },
182
306
  { type: "error", inputs: [], name: "OnlyPoolManager" },
183
307
  {
@@ -185,14 +309,11 @@ var buySupplyWithSwapRouterHookABI = [
185
309
  inputs: [{ name: "token", internalType: "address", type: "address" }],
186
310
  name: "SafeERC20FailedOperation"
187
311
  },
188
- {
189
- type: "error",
190
- inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
191
- name: "SwapReverted"
192
- }
312
+ { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
313
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" }
193
314
  ];
194
315
  var buySupplyWithSwapRouterHookAddress = {
195
- 8453: "0xc90e349360C43a0217CEF289f231C66D4748960F",
316
+ 8453: "0xd8CC7bCA1dE52eA788829B16E375e9B96C18D433",
196
317
  84532: "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE"
197
318
  };
198
319
  var buySupplyWithSwapRouterHookConfig = {
@@ -2914,121 +3035,280 @@ var coinFactoryABI = [
2914
3035
  name: "UpgradeToMismatchedContractName"
2915
3036
  },
2916
3037
  { 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
- },
3038
+ { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
2946
3039
  {
2947
- type: "function",
2948
- inputs: [],
2949
- name: "DOMAIN_SEPARATOR",
2950
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2951
- stateMutability: "view"
3040
+ type: "error",
3041
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
3042
+ name: "AddressEmptyCode"
2952
3043
  },
2953
3044
  {
2954
- type: "function",
3045
+ type: "error",
2955
3046
  inputs: [{ name: "account", internalType: "address", type: "address" }],
2956
- name: "addOwner",
2957
- outputs: [],
2958
- stateMutability: "nonpayable"
3047
+ name: "AddressInsufficientBalance"
2959
3048
  },
3049
+ { type: "error", inputs: [], name: "AddressZero" },
3050
+ { type: "error", inputs: [], name: "FailedInnerCall" },
3051
+ { type: "error", inputs: [], name: "HookNotImplemented" },
2960
3052
  {
2961
- type: "function",
3053
+ type: "error",
2962
3054
  inputs: [
2963
- { name: "accounts", internalType: "address[]", type: "address[]" }
3055
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
3056
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
2964
3057
  ],
2965
- name: "addOwners",
2966
- outputs: [],
2967
- stateMutability: "nonpayable"
3058
+ name: "InsufficientInputCurrency"
2968
3059
  },
3060
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
3061
+ { type: "error", inputs: [], name: "NotFactory" },
3062
+ { type: "error", inputs: [], name: "OnlyPoolManager" },
2969
3063
  {
2970
- type: "function",
3064
+ type: "error",
3065
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
3066
+ name: "SafeERC20FailedOperation"
3067
+ },
3068
+ { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
3069
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
3070
+ { type: "error", inputs: [], name: "AddressZero" },
3071
+ { type: "error", inputs: [], name: "AlreadyOwner" },
3072
+ { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
3073
+ {
3074
+ type: "error",
2971
3075
  inputs: [],
2972
- name: "airlock",
2973
- outputs: [{ name: "", internalType: "address", type: "address" }],
2974
- stateMutability: "view"
3076
+ name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
2975
3077
  },
3078
+ { type: "error", inputs: [], name: "ECDSAInvalidSignature" },
2976
3079
  {
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"
3080
+ type: "error",
3081
+ inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
3082
+ name: "ECDSAInvalidSignatureLength"
2985
3083
  },
2986
3084
  {
2987
- type: "function",
3085
+ type: "error",
3086
+ inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
3087
+ name: "ECDSAInvalidSignatureS"
3088
+ },
3089
+ {
3090
+ type: "error",
2988
3091
  inputs: [
2989
3092
  { name: "spender", internalType: "address", type: "address" },
2990
- { name: "value", internalType: "uint256", type: "uint256" }
3093
+ { name: "allowance", internalType: "uint256", type: "uint256" },
3094
+ { name: "needed", internalType: "uint256", type: "uint256" }
2991
3095
  ],
2992
- name: "approve",
2993
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
2994
- stateMutability: "nonpayable"
3096
+ name: "ERC20InsufficientAllowance"
2995
3097
  },
2996
3098
  {
2997
- type: "function",
2998
- inputs: [{ name: "account", internalType: "address", type: "address" }],
2999
- name: "balanceOf",
3000
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3001
- stateMutability: "view"
3099
+ type: "error",
3100
+ inputs: [
3101
+ { name: "sender", internalType: "address", type: "address" },
3102
+ { name: "balance", internalType: "uint256", type: "uint256" },
3103
+ { name: "needed", internalType: "uint256", type: "uint256" }
3104
+ ],
3105
+ name: "ERC20InsufficientBalance"
3002
3106
  },
3003
3107
  {
3004
- type: "function",
3005
- inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
3006
- name: "burn",
3007
- outputs: [],
3008
- stateMutability: "nonpayable"
3108
+ type: "error",
3109
+ inputs: [{ name: "approver", internalType: "address", type: "address" }],
3110
+ name: "ERC20InvalidApprover"
3009
3111
  },
3010
3112
  {
3011
- type: "function",
3012
- inputs: [],
3013
- name: "claimVesting",
3014
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3015
- stateMutability: "nonpayable"
3113
+ type: "error",
3114
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
3115
+ name: "ERC20InvalidReceiver"
3016
3116
  },
3017
3117
  {
3018
- type: "function",
3019
- inputs: [],
3020
- name: "coinType",
3021
- outputs: [
3022
- { name: "", internalType: "enum IHasCoinType.CoinType", type: "uint8" }
3023
- ],
3024
- stateMutability: "pure"
3118
+ type: "error",
3119
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
3120
+ name: "ERC20InvalidSender"
3025
3121
  },
3026
3122
  {
3027
- type: "function",
3028
- inputs: [],
3029
- name: "contractURI",
3030
- outputs: [{ name: "", internalType: "string", type: "string" }],
3031
- stateMutability: "view"
3123
+ type: "error",
3124
+ inputs: [{ name: "spender", internalType: "address", type: "address" }],
3125
+ name: "ERC20InvalidSpender"
3126
+ },
3127
+ { type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
3128
+ {
3129
+ type: "error",
3130
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
3131
+ name: "ERC2612ExpiredSignature"
3132
+ },
3133
+ {
3134
+ type: "error",
3135
+ inputs: [
3136
+ { name: "signer", internalType: "address", type: "address" },
3137
+ { name: "owner", internalType: "address", type: "address" }
3138
+ ],
3139
+ name: "ERC2612InvalidSigner"
3140
+ },
3141
+ { type: "error", inputs: [], name: "EthAmountMismatch" },
3142
+ { type: "error", inputs: [], name: "EthAmountTooSmall" },
3143
+ { type: "error", inputs: [], name: "EthTransferFailed" },
3144
+ { type: "error", inputs: [], name: "EthTransferInvalid" },
3145
+ { type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
3146
+ { type: "error", inputs: [], name: "InsufficientFunds" },
3147
+ { type: "error", inputs: [], name: "InsufficientLiquidity" },
3148
+ {
3149
+ type: "error",
3150
+ inputs: [
3151
+ { name: "account", internalType: "address", type: "address" },
3152
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
3153
+ ],
3154
+ name: "InvalidAccountNonce"
3155
+ },
3156
+ { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
3157
+ { type: "error", inputs: [], name: "InvalidInitialization" },
3158
+ { type: "error", inputs: [], name: "InvalidMarketType" },
3159
+ { type: "error", inputs: [], name: "InvalidPoolVersion" },
3160
+ {
3161
+ type: "error",
3162
+ inputs: [
3163
+ { name: "tickLower", internalType: "int24", type: "int24" },
3164
+ { name: "tickUpper", internalType: "int24", type: "int24" }
3165
+ ],
3166
+ name: "InvalidTickRangeMisordered"
3167
+ },
3168
+ { type: "error", inputs: [], name: "InvalidWethLowerTick" },
3169
+ { type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
3170
+ { type: "error", inputs: [], name: "MarketAlreadyGraduated" },
3171
+ { type: "error", inputs: [], name: "MarketNotGraduated" },
3172
+ {
3173
+ type: "error",
3174
+ inputs: [
3175
+ { name: "value", internalType: "uint256", type: "uint256" },
3176
+ { name: "limit", internalType: "uint256", type: "uint256" }
3177
+ ],
3178
+ name: "MaxShareToBeSoldExceeded"
3179
+ },
3180
+ { type: "error", inputs: [], name: "NameIsRequired" },
3181
+ { type: "error", inputs: [], name: "NotInitializing" },
3182
+ { type: "error", inputs: [], name: "NotOwner" },
3183
+ { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
3184
+ { type: "error", inputs: [], name: "OneOwnerRequired" },
3185
+ { type: "error", inputs: [], name: "OnlyOwner" },
3186
+ {
3187
+ type: "error",
3188
+ inputs: [
3189
+ { name: "sender", internalType: "address", type: "address" },
3190
+ { name: "pool", internalType: "address", type: "address" }
3191
+ ],
3192
+ name: "OnlyPool"
3193
+ },
3194
+ { type: "error", inputs: [], name: "OnlyWeth" },
3195
+ { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
3196
+ { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
3197
+ { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
3198
+ ];
3199
+ var coinFactoryAddress = {
3200
+ 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
3201
+ 84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
3202
+ };
3203
+ var coinFactoryConfig = {
3204
+ address: coinFactoryAddress,
3205
+ abi: coinFactoryABI
3206
+ };
3207
+ var coinV4ABI = [
3208
+ {
3209
+ type: "constructor",
3210
+ inputs: [
3211
+ {
3212
+ name: "protocolRewardRecipient_",
3213
+ internalType: "address",
3214
+ type: "address"
3215
+ },
3216
+ { name: "protocolRewards_", internalType: "address", type: "address" },
3217
+ {
3218
+ name: "poolManager_",
3219
+ internalType: "contract IPoolManager",
3220
+ type: "address"
3221
+ },
3222
+ { name: "airlock_", internalType: "address", type: "address" }
3223
+ ],
3224
+ stateMutability: "nonpayable"
3225
+ },
3226
+ {
3227
+ type: "function",
3228
+ inputs: [],
3229
+ name: "DOMAIN_SEPARATOR",
3230
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3231
+ stateMutability: "view"
3232
+ },
3233
+ {
3234
+ type: "function",
3235
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
3236
+ name: "addOwner",
3237
+ outputs: [],
3238
+ stateMutability: "nonpayable"
3239
+ },
3240
+ {
3241
+ type: "function",
3242
+ inputs: [
3243
+ { name: "accounts", internalType: "address[]", type: "address[]" }
3244
+ ],
3245
+ name: "addOwners",
3246
+ outputs: [],
3247
+ stateMutability: "nonpayable"
3248
+ },
3249
+ {
3250
+ type: "function",
3251
+ inputs: [],
3252
+ name: "airlock",
3253
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3254
+ stateMutability: "view"
3255
+ },
3256
+ {
3257
+ type: "function",
3258
+ inputs: [
3259
+ { name: "owner", internalType: "address", type: "address" },
3260
+ { name: "spender", internalType: "address", type: "address" }
3261
+ ],
3262
+ name: "allowance",
3263
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3264
+ stateMutability: "view"
3265
+ },
3266
+ {
3267
+ type: "function",
3268
+ inputs: [
3269
+ { name: "spender", internalType: "address", type: "address" },
3270
+ { name: "value", internalType: "uint256", type: "uint256" }
3271
+ ],
3272
+ name: "approve",
3273
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3274
+ stateMutability: "nonpayable"
3275
+ },
3276
+ {
3277
+ type: "function",
3278
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
3279
+ name: "balanceOf",
3280
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3281
+ stateMutability: "view"
3282
+ },
3283
+ {
3284
+ type: "function",
3285
+ inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
3286
+ name: "burn",
3287
+ outputs: [],
3288
+ stateMutability: "nonpayable"
3289
+ },
3290
+ {
3291
+ type: "function",
3292
+ inputs: [],
3293
+ name: "claimVesting",
3294
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3295
+ stateMutability: "nonpayable"
3296
+ },
3297
+ {
3298
+ type: "function",
3299
+ inputs: [],
3300
+ name: "coinType",
3301
+ outputs: [
3302
+ { name: "", internalType: "enum IHasCoinType.CoinType", type: "uint8" }
3303
+ ],
3304
+ stateMutability: "pure"
3305
+ },
3306
+ {
3307
+ type: "function",
3308
+ inputs: [],
3309
+ name: "contractURI",
3310
+ outputs: [{ name: "", internalType: "string", type: "string" }],
3311
+ stateMutability: "view"
3032
3312
  },
3033
3313
  {
3034
3314
  type: "function",
@@ -5559,884 +5839,56 @@ var commentsABI = [
5559
5839
  {
5560
5840
  name: "commentIdentifier",
5561
5841
  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",
5842
+ type: "tuple",
5843
+ components: [
5844
+ { name: "commenter", internalType: "address", type: "address" },
5845
+ { name: "contractAddress", internalType: "address", type: "address" },
5846
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5847
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
5848
+ ],
6404
5849
  indexed: false
6405
5850
  },
6406
5851
  {
6407
- name: "coin",
6408
- internalType: "address",
6409
- type: "address",
5852
+ name: "replyToId",
5853
+ internalType: "bytes32",
5854
+ type: "bytes32",
6410
5855
  indexed: false
6411
5856
  },
6412
5857
  {
6413
- name: "poolKey",
6414
- internalType: "struct PoolKey",
5858
+ name: "replyTo",
5859
+ internalType: "struct IComments.CommentIdentifier",
6415
5860
  type: "tuple",
6416
5861
  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" }
5862
+ { name: "commenter", internalType: "address", type: "address" },
5863
+ { name: "contractAddress", internalType: "address", type: "address" },
5864
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5865
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
6422
5866
  ],
6423
5867
  indexed: false
6424
5868
  },
6425
5869
  {
6426
- name: "poolKeyHash",
6427
- internalType: "bytes32",
6428
- type: "bytes32",
5870
+ name: "sparksQuantity",
5871
+ internalType: "uint256",
5872
+ type: "uint256",
6429
5873
  indexed: false
6430
5874
  },
5875
+ { name: "text", internalType: "string", type: "string", indexed: false },
6431
5876
  {
6432
- name: "version",
6433
- internalType: "string",
6434
- type: "string",
5877
+ name: "timestamp",
5878
+ internalType: "uint256",
5879
+ type: "uint256",
5880
+ indexed: false
5881
+ },
5882
+ {
5883
+ name: "referrer",
5884
+ internalType: "address",
5885
+ type: "address",
6435
5886
  indexed: false
6436
5887
  }
6437
5888
  ],
6438
- name: "CreatorCoinCreated"
5889
+ name: "Commented"
6439
5890
  },
5891
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
6440
5892
  {
6441
5893
  type: "event",
6442
5894
  anonymous: false,
@@ -6454,39 +5906,110 @@ var devCoinFactoryABI = [
6454
5906
  type: "event",
6455
5907
  anonymous: false,
6456
5908
  inputs: [
5909
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
6457
5910
  {
6458
- name: "previousOwner",
5911
+ name: "previousAdminRole",
5912
+ internalType: "bytes32",
5913
+ type: "bytes32",
5914
+ indexed: true
5915
+ },
5916
+ {
5917
+ name: "newAdminRole",
5918
+ internalType: "bytes32",
5919
+ type: "bytes32",
5920
+ indexed: true
5921
+ }
5922
+ ],
5923
+ name: "RoleAdminChanged"
5924
+ },
5925
+ {
5926
+ type: "event",
5927
+ anonymous: false,
5928
+ inputs: [
5929
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
5930
+ {
5931
+ name: "account",
6459
5932
  internalType: "address",
6460
5933
  type: "address",
6461
5934
  indexed: true
6462
5935
  },
6463
5936
  {
6464
- name: "newOwner",
5937
+ name: "sender",
6465
5938
  internalType: "address",
6466
5939
  type: "address",
6467
5940
  indexed: true
6468
5941
  }
6469
5942
  ],
6470
- name: "OwnershipTransferStarted"
5943
+ name: "RoleGranted"
6471
5944
  },
6472
5945
  {
6473
5946
  type: "event",
6474
5947
  anonymous: false,
6475
5948
  inputs: [
5949
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
6476
5950
  {
6477
- name: "previousOwner",
5951
+ name: "account",
6478
5952
  internalType: "address",
6479
5953
  type: "address",
6480
5954
  indexed: true
6481
5955
  },
6482
5956
  {
6483
- name: "newOwner",
5957
+ name: "sender",
6484
5958
  internalType: "address",
6485
5959
  type: "address",
6486
5960
  indexed: true
6487
5961
  }
6488
5962
  ],
6489
- name: "OwnershipTransferred"
5963
+ name: "RoleRevoked"
5964
+ },
5965
+ {
5966
+ type: "event",
5967
+ anonymous: false,
5968
+ inputs: [
5969
+ {
5970
+ name: "commentId",
5971
+ internalType: "bytes32",
5972
+ type: "bytes32",
5973
+ indexed: true
5974
+ },
5975
+ {
5976
+ name: "commentIdentifier",
5977
+ internalType: "struct IComments.CommentIdentifier",
5978
+ type: "tuple",
5979
+ components: [
5980
+ { name: "commenter", internalType: "address", type: "address" },
5981
+ { name: "contractAddress", internalType: "address", type: "address" },
5982
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
5983
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
5984
+ ],
5985
+ indexed: false
5986
+ },
5987
+ {
5988
+ name: "sparksQuantity",
5989
+ internalType: "uint256",
5990
+ type: "uint256",
5991
+ indexed: false
5992
+ },
5993
+ {
5994
+ name: "sparker",
5995
+ internalType: "address",
5996
+ type: "address",
5997
+ indexed: false
5998
+ },
5999
+ {
6000
+ name: "timestamp",
6001
+ internalType: "uint256",
6002
+ type: "uint256",
6003
+ indexed: false
6004
+ },
6005
+ {
6006
+ name: "referrer",
6007
+ internalType: "address",
6008
+ type: "address",
6009
+ indexed: false
6010
+ }
6011
+ ],
6012
+ name: "SparkedComment"
6490
6013
  },
6491
6014
  {
6492
6015
  type: "event",
@@ -6501,15 +6024,47 @@ var devCoinFactoryABI = [
6501
6024
  ],
6502
6025
  name: "Upgraded"
6503
6026
  },
6027
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
6028
+ {
6029
+ type: "error",
6030
+ inputs: [
6031
+ { name: "account", internalType: "address", type: "address" },
6032
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
6033
+ ],
6034
+ name: "AccessControlUnauthorizedAccount"
6035
+ },
6504
6036
  {
6505
6037
  type: "error",
6506
6038
  inputs: [{ name: "target", internalType: "address", type: "address" }],
6507
6039
  name: "AddressEmptyCode"
6508
6040
  },
6041
+ { type: "error", inputs: [], name: "AddressZero" },
6509
6042
  { type: "error", inputs: [], name: "ArrayLengthMismatch" },
6510
- { type: "error", inputs: [], name: "ConfigTickLowerMustBeLessThanTickUpper" },
6511
- { type: "error", inputs: [], name: "Deprecated" },
6512
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
6043
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
6044
+ {
6045
+ type: "error",
6046
+ inputs: [
6047
+ { name: "commentAddress", internalType: "address", type: "address" },
6048
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
6049
+ { name: "replyAddress", internalType: "address", type: "address" },
6050
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
6051
+ ],
6052
+ name: "CommentAddressOrTokenIdsDoNotMatch"
6053
+ },
6054
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
6055
+ {
6056
+ type: "error",
6057
+ inputs: [
6058
+ { name: "expected", internalType: "address", type: "address" },
6059
+ { name: "actual", internalType: "address", type: "address" }
6060
+ ],
6061
+ name: "CommenterMismatch"
6062
+ },
6063
+ {
6064
+ type: "error",
6065
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
6066
+ name: "DuplicateComment"
6067
+ },
6513
6068
  {
6514
6069
  type: "error",
6515
6070
  inputs: [
@@ -6518,41 +6073,49 @@ var devCoinFactoryABI = [
6518
6073
  name: "ERC1967InvalidImplementation"
6519
6074
  },
6520
6075
  { 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
6076
  {
6528
6077
  type: "error",
6529
- inputs: [
6530
- { name: "tickLower", internalType: "int24", type: "int24" },
6531
- { name: "tickUpper", internalType: "int24", type: "int24" }
6532
- ],
6533
- name: "InvalidTickRangeMisordered"
6078
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
6079
+ name: "ERC2612ExpiredSignature"
6534
6080
  },
6081
+ { type: "error", inputs: [], name: "EmptyComment" },
6082
+ { type: "error", inputs: [], name: "FailedInnerCall" },
6535
6083
  {
6536
6084
  type: "error",
6537
6085
  inputs: [
6538
- { name: "value", internalType: "uint256", type: "uint256" },
6539
- { name: "limit", internalType: "uint256", type: "uint256" }
6086
+ {
6087
+ name: "wrongDestinationChainId",
6088
+ internalType: "uint256",
6089
+ type: "uint256"
6090
+ }
6540
6091
  ],
6541
- name: "MaxShareToBeSoldExceeded"
6092
+ name: "IncorrectDestinationChain"
6542
6093
  },
6543
- { type: "error", inputs: [], name: "NotInitializing" },
6544
- { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
6545
6094
  {
6546
6095
  type: "error",
6547
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
6548
- name: "OwnableInvalidOwner"
6096
+ inputs: [
6097
+ { name: "actual", internalType: "uint256", type: "uint256" },
6098
+ { name: "expected", internalType: "uint256", type: "uint256" }
6099
+ ],
6100
+ name: "IncorrectETHAmountForSparks"
6549
6101
  },
6550
6102
  {
6551
6103
  type: "error",
6552
- inputs: [{ name: "account", internalType: "address", type: "address" }],
6553
- name: "OwnableUnauthorizedAccount"
6104
+ inputs: [
6105
+ { name: "account", internalType: "address", type: "address" },
6106
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
6107
+ ],
6108
+ name: "InvalidAccountNonce"
6554
6109
  },
6555
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
6110
+ { type: "error", inputs: [], name: "InvalidInitialization" },
6111
+ { type: "error", inputs: [], name: "InvalidSignature" },
6112
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
6113
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
6114
+ { type: "error", inputs: [], name: "NotInitializing" },
6115
+ { type: "error", inputs: [], name: "NotSmartWallet" },
6116
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
6117
+ { type: "error", inputs: [], name: "OnlySparksContract" },
6118
+ { type: "error", inputs: [], name: "TransferFailed" },
6556
6119
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
6557
6120
  {
6558
6121
  type: "error",
@@ -6566,16 +6129,23 @@ var devCoinFactoryABI = [
6566
6129
  { name: "newName", internalType: "string", type: "string" }
6567
6130
  ],
6568
6131
  name: "UpgradeToMismatchedContractName"
6569
- },
6570
- { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
6571
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
6132
+ }
6572
6133
  ];
6573
- var devCoinFactoryAddress = {
6574
- 8453: "0x47B0C1205B01e5e967dB24A186968152e5cCf764"
6134
+ var commentsAddress = {
6135
+ 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
6136
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
6137
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
6138
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
6139
+ 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
6140
+ 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
6141
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
6142
+ 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
6143
+ 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
6144
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
6575
6145
  };
6576
- var devCoinFactoryConfig = {
6577
- address: devCoinFactoryAddress,
6578
- abi: devCoinFactoryABI
6146
+ var commentsConfig = {
6147
+ address: commentsAddress,
6148
+ abi: commentsABI
6579
6149
  };
6580
6150
  var erc20MinterABI = [
6581
6151
  {
@@ -18436,7 +18006,7 @@ var zoraTimedSaleStrategyConfig = {
18436
18006
  abi: zoraTimedSaleStrategyABI
18437
18007
  };
18438
18008
 
18439
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/unit.js
18009
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/unit.js
18440
18010
  var InvalidDecimalNumberError = class extends BaseError {
18441
18011
  constructor({ value }) {
18442
18012
  super(`Number \`${value}\` is not a valid decimal number.`, {
@@ -18445,7 +18015,7 @@ var InvalidDecimalNumberError = class extends BaseError {
18445
18015
  }
18446
18016
  };
18447
18017
 
18448
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseUnits.js
18018
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/parseUnits.js
18449
18019
  function parseUnits(value, decimals) {
18450
18020
  if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
18451
18021
  throw new InvalidDecimalNumberError({ value });
@@ -18480,7 +18050,7 @@ function parseUnits(value, decimals) {
18480
18050
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
18481
18051
  }
18482
18052
 
18483
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseEther.js
18053
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/parseEther.js
18484
18054
  function parseEther(ether, unit = "wei") {
18485
18055
  return parseUnits(ether, etherUnits[unit]);
18486
18056
  }
@@ -18947,64 +18517,6 @@ var buySupplyWithSwapRouterHookReturnParameters = [
18947
18517
  { name: "amountCurrency", internalType: "uint256", type: "uint256" },
18948
18518
  { name: "coinsPurchased", internalType: "uint256", type: "uint256" }
18949
18519
  ];
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
18520
  var decodeBuySupplyWithSwapRouterHookReturn = (returnData) => {
19009
18521
  const result = decodeAbiParameters(
19010
18522
  buySupplyWithSwapRouterHookReturnParameters,
@@ -19466,16 +18978,7 @@ export {
19466
18978
  commentsConfig,
19467
18979
  __exports as contracts1155,
19468
18980
  decodeBuySupplyWithSwapRouterHookReturn,
19469
- devBuySupplyWithSwapRouterHookABI,
19470
- devBuySupplyWithSwapRouterHookAddress,
19471
- devBuySupplyWithSwapRouterHookConfig,
19472
- devCoinFactoryABI,
19473
- devCoinFactoryAddress,
19474
- devCoinFactoryConfig,
19475
18981
  emptyCommentIdentifier,
19476
- encodeBuySupplyWithMultiHopSwapRouterHookCall,
19477
- encodeBuySupplyWithSingleHopSwapRouterHookCall,
19478
- encodeBuySupplyWithSwapRouterHookCalldata,
19479
18982
  encodeMultiCurvePoolConfig,
19480
18983
  encodePremintConfig,
19481
18984
  erc20MinterABI,