@zoralabs/protocol-deployments 0.6.5-PRE.1 → 0.6.5

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.
@@ -278,7 +278,18 @@ export const buySupplyWithSwapRouterHookABI = [
278
278
  ],
279
279
  name: 'BuyInitialSupply',
280
280
  },
281
+ {
282
+ type: 'error',
283
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
284
+ name: 'AddressEmptyCode',
285
+ },
286
+ {
287
+ type: 'error',
288
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
289
+ name: 'AddressInsufficientBalance',
290
+ },
281
291
  { type: 'error', inputs: [], name: 'AddressZero' },
292
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
282
293
  { type: 'error', inputs: [], name: 'HookNotImplemented' },
283
294
  {
284
295
  type: 'error',
@@ -296,6 +307,7 @@ export const buySupplyWithSwapRouterHookABI = [
296
307
  inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
297
308
  name: 'SafeERC20FailedOperation',
298
309
  },
310
+ { type: 'error', inputs: [], name: 'V3RouteCannotStartWithInputCurrency' },
299
311
  { type: 'error', inputs: [], name: 'V3RouteDoesNotConnectToV4RouteStart' },
300
312
  ] as const
301
313
 
@@ -3033,6 +3045,7 @@ export const coinFactoryABI = [
3033
3045
  { type: 'error', inputs: [], name: 'ArrayLengthMismatch' },
3034
3046
  { type: 'error', inputs: [], name: 'ConfigTickLowerMustBeLessThanTickUpper' },
3035
3047
  { type: 'error', inputs: [], name: 'Deprecated' },
3048
+ { type: 'error', inputs: [], name: 'ERC1167FailedCreateClone' },
3036
3049
  {
3037
3050
  type: 'error',
3038
3051
  inputs: [
@@ -3042,16 +3055,7 @@ export const coinFactoryABI = [
3042
3055
  },
3043
3056
  { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
3044
3057
  { type: 'error', inputs: [], name: 'EthTransferInvalid' },
3045
- { type: 'error', inputs: [], name: 'FailedCall' },
3046
- { type: 'error', inputs: [], name: 'FailedDeployment' },
3047
- {
3048
- type: 'error',
3049
- inputs: [
3050
- { name: 'balance', internalType: 'uint256', type: 'uint256' },
3051
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
3052
- ],
3053
- name: 'InsufficientBalance',
3054
- },
3058
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
3055
3059
  { type: 'error', inputs: [], name: 'InvalidConfig' },
3056
3060
  { type: 'error', inputs: [], name: 'InvalidHook' },
3057
3061
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
@@ -3101,7 +3105,18 @@ export const coinFactoryABI = [
3101
3105
  },
3102
3106
  { type: 'error', inputs: [], name: 'ZeroDiscoveryPositions' },
3103
3107
  { type: 'error', inputs: [], name: 'ZeroDiscoverySupplyShare' },
3108
+ {
3109
+ type: 'error',
3110
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
3111
+ name: 'AddressEmptyCode',
3112
+ },
3113
+ {
3114
+ type: 'error',
3115
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
3116
+ name: 'AddressInsufficientBalance',
3117
+ },
3104
3118
  { type: 'error', inputs: [], name: 'AddressZero' },
3119
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
3105
3120
  { type: 'error', inputs: [], name: 'HookNotImplemented' },
3106
3121
  {
3107
3122
  type: 'error',
@@ -3119,6 +3134,7 @@ export const coinFactoryABI = [
3119
3134
  inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
3120
3135
  name: 'SafeERC20FailedOperation',
3121
3136
  },
3137
+ { type: 'error', inputs: [], name: 'V3RouteCannotStartWithInputCurrency' },
3122
3138
  { type: 'error', inputs: [], name: 'V3RouteDoesNotConnectToV4RouteStart' },
3123
3139
  { type: 'error', inputs: [], name: 'AddressZero' },
3124
3140
  { type: 'error', inputs: [], name: 'AlreadyOwner' },
@@ -3248,119 +3264,6 @@ export const coinFactoryABI = [
3248
3264
  { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' },
3249
3265
  { type: 'error', inputs: [], name: 'SlippageBoundsExceeded' },
3250
3266
  { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' },
3251
- { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' },
3252
- { type: 'error', inputs: [], name: 'CoinVersionLookupCannotBeZeroAddress' },
3253
- { type: 'error', inputs: [], name: 'EthTransferFailed' },
3254
- { type: 'error', inputs: [], name: 'HookNotImplemented' },
3255
- {
3256
- type: 'error',
3257
- inputs: [{ name: 'callbackId', internalType: 'uint8', type: 'uint8' }],
3258
- name: 'InvalidCallbackId',
3259
- },
3260
- {
3261
- type: 'error',
3262
- inputs: [{ name: 'newHook', internalType: 'address', type: 'address' }],
3263
- name: 'InvalidNewHook',
3264
- },
3265
- {
3266
- type: 'error',
3267
- inputs: [
3268
- { name: 'tickLower', internalType: 'int24', type: 'int24' },
3269
- { name: 'tickUpper', internalType: 'int24', type: 'int24' },
3270
- ],
3271
- name: 'InvalidTickRangeMisordered',
3272
- },
3273
- {
3274
- type: 'error',
3275
- inputs: [
3276
- {
3277
- name: 'key',
3278
- internalType: 'struct PoolKey',
3279
- type: 'tuple',
3280
- components: [
3281
- { name: 'currency0', internalType: 'Currency', type: 'address' },
3282
- { name: 'currency1', internalType: 'Currency', type: 'address' },
3283
- { name: 'fee', internalType: 'uint24', type: 'uint24' },
3284
- { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
3285
- { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
3286
- ],
3287
- },
3288
- ],
3289
- name: 'NoCoinForHook',
3290
- },
3291
- {
3292
- type: 'error',
3293
- inputs: [{ name: 'coin', internalType: 'address', type: 'address' }],
3294
- name: 'NotACoin',
3295
- },
3296
- { type: 'error', inputs: [], name: 'NotPoolManager' },
3297
- {
3298
- type: 'error',
3299
- inputs: [
3300
- { name: 'caller', internalType: 'address', type: 'address' },
3301
- { name: 'expectedCoin', internalType: 'address', type: 'address' },
3302
- ],
3303
- name: 'OnlyCoin',
3304
- },
3305
- { type: 'error', inputs: [], name: 'PathMustHaveAtLeastOneStep' },
3306
- { type: 'error', inputs: [], name: 'SafeCastOverflow' },
3307
- {
3308
- type: 'error',
3309
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
3310
- name: 'SafeERC20FailedOperation',
3311
- },
3312
- {
3313
- type: 'error',
3314
- inputs: [],
3315
- name: 'TrustedMsgSenderLookupCannotBeZeroAddress',
3316
- },
3317
- { type: 'error', inputs: [], name: 'UpgradeGateCannotBeZeroAddress' },
3318
- {
3319
- type: 'error',
3320
- inputs: [
3321
- { name: 'oldHook', internalType: 'address', type: 'address' },
3322
- { name: 'newHook', internalType: 'address', type: 'address' },
3323
- ],
3324
- name: 'UpgradePathNotRegistered',
3325
- },
3326
- { type: 'error', inputs: [], name: 'ZoraHookRegistryCannotBeZeroAddress' },
3327
- { type: 'error', inputs: [], name: 'ZoraLimitOrderBookCannotBeZeroAddress' },
3328
- {
3329
- type: 'error',
3330
- inputs: [{ name: 'authority', internalType: 'address', type: 'address' }],
3331
- name: 'AccessManagedInvalidAuthority',
3332
- },
3333
- { type: 'error', inputs: [], name: 'AccessManagedUnauthorized' },
3334
- { type: 'error', inputs: [], name: 'AddressZero' },
3335
- { type: 'error', inputs: [], name: 'ArrayLengthMismatch' },
3336
- { type: 'error', inputs: [], name: 'InsufficientBalance' },
3337
- { type: 'error', inputs: [], name: 'InsufficientForwardedFunds' },
3338
- { type: 'error', inputs: [], name: 'InsufficientTransferFunds' },
3339
- {
3340
- type: 'error',
3341
- inputs: [
3342
- { name: 'startTick', internalType: 'int24', type: 'int24' },
3343
- { name: 'endTick', internalType: 'int24', type: 'int24' },
3344
- { name: 'isCurrency0', internalType: 'bool', type: 'bool' },
3345
- ],
3346
- name: 'InvalidFillWindow',
3347
- },
3348
- { type: 'error', inputs: [], name: 'InvalidOrder' },
3349
- { type: 'error', inputs: [], name: 'InvalidPoolKey' },
3350
- { type: 'error', inputs: [], name: 'MaxFillCountCannotBeZero' },
3351
- { type: 'error', inputs: [], name: 'NativeValueMismatch' },
3352
- { type: 'error', inputs: [], name: 'NotPoolManager' },
3353
- { type: 'error', inputs: [], name: 'OnlyZoraHook' },
3354
- { type: 'error', inputs: [], name: 'OrderClosed' },
3355
- { type: 'error', inputs: [], name: 'OrderNotMaker' },
3356
- { type: 'error', inputs: [], name: 'PathMustHaveAtLeastOneStep' },
3357
- { type: 'error', inputs: [], name: 'RouterMsgSenderInvalid' },
3358
- { type: 'error', inputs: [], name: 'UnknownCallback' },
3359
- { type: 'error', inputs: [], name: 'UnlockedFillNotAllowed' },
3360
- { type: 'error', inputs: [], name: 'ZeroMaker' },
3361
- { type: 'error', inputs: [], name: 'ZeroMakerOrders' },
3362
- { type: 'error', inputs: [], name: 'ZeroOrderSize' },
3363
- { type: 'error', inputs: [], name: 'ZeroRealizedOrder' },
3364
3267
  ] as const
3365
3268
 
3366
3269
  /**
@@ -10251,6 +10154,58 @@ export const uniswapQuoterV2Config = {
10251
10154
  abi: uniswapQuoterV2ABI,
10252
10155
  } as const
10253
10156
 
10157
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10158
+ // UniswapUniversalRouter
10159
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10160
+
10161
+ /**
10162
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x6ff5693b99212da76ad316178a184ab56d299b43)
10163
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x492E6456D9528771018DeB9E87ef7750EF184104)
10164
+ */
10165
+ export const uniswapUniversalRouterABI = [
10166
+ {
10167
+ type: 'function',
10168
+ inputs: [
10169
+ { name: 'commands', internalType: 'bytes', type: 'bytes' },
10170
+ { name: 'inputs', internalType: 'bytes[]', type: 'bytes[]' },
10171
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
10172
+ ],
10173
+ name: 'execute',
10174
+ outputs: [],
10175
+ stateMutability: 'payable',
10176
+ },
10177
+ { type: 'error', inputs: [], name: 'ETHNotAccepted' },
10178
+ {
10179
+ type: 'error',
10180
+ inputs: [
10181
+ { name: 'commandIndex', internalType: 'uint256', type: 'uint256' },
10182
+ { name: 'message', internalType: 'bytes', type: 'bytes' },
10183
+ ],
10184
+ name: 'ExecutionFailed',
10185
+ },
10186
+ { type: 'error', inputs: [], name: 'InvalidEthSender' },
10187
+ { type: 'error', inputs: [], name: 'LengthMismatch' },
10188
+ { type: 'error', inputs: [], name: 'TransactionDeadlinePassed' },
10189
+ ] as const
10190
+
10191
+ /**
10192
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x6ff5693b99212da76ad316178a184ab56d299b43)
10193
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x492E6456D9528771018DeB9E87ef7750EF184104)
10194
+ */
10195
+ export const uniswapUniversalRouterAddress = {
10196
+ 8453: '0x6fF5693b99212Da76ad316178A184AB56D299b43',
10197
+ 84532: '0x492E6456D9528771018DeB9E87ef7750EF184104',
10198
+ } as const
10199
+
10200
+ /**
10201
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x6ff5693b99212da76ad316178a184ab56d299b43)
10202
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x492E6456D9528771018DeB9E87ef7750EF184104)
10203
+ */
10204
+ export const uniswapUniversalRouterConfig = {
10205
+ address: uniswapUniversalRouterAddress,
10206
+ abi: uniswapUniversalRouterABI,
10207
+ } as const
10208
+
10254
10209
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10255
10210
  // UniswapV3SwapRouter
10256
10211
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -15229,2523 +15184,1274 @@ export const zoraCreatorRedeemMinterFactoryConfig = {
15229
15184
  } as const
15230
15185
 
15231
15186
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15232
- // ZoraLimitOrderBook
15187
+ // ZoraMints1155
15233
15188
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15234
15189
 
15235
15190
  /**
15236
- * [__View Contract on Base Basescan__](https://basescan.org/address/0xAe990bBE7624b20b30e282A159e2BF05f45143A8)
15191
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
15192
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
15237
15193
  */
15238
- export const zoraLimitOrderBookABI = [
15239
- {
15240
- type: 'constructor',
15241
- inputs: [
15242
- { name: 'poolManager_', internalType: 'address', type: 'address' },
15243
- {
15244
- name: 'zoraCoinVersionLookup_',
15245
- internalType: 'address',
15246
- type: 'address',
15247
- },
15248
- { name: 'zoraHookRegistry_', internalType: 'address', type: 'address' },
15249
- { name: 'authority_', internalType: 'address', type: 'address' },
15250
- ],
15251
- stateMutability: 'nonpayable',
15252
- },
15253
- { type: 'receive', stateMutability: 'payable' },
15194
+ export const zoraMints1155ABI = [
15195
+ { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
15254
15196
  {
15255
15197
  type: 'function',
15256
15198
  inputs: [],
15257
- name: 'authority',
15199
+ name: 'ETH_ADDRESS',
15258
15200
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
15259
15201
  stateMutability: 'view',
15260
15202
  },
15261
15203
  {
15262
15204
  type: 'function',
15263
- inputs: [
15264
- { name: 'maker', internalType: 'address', type: 'address' },
15265
- { name: 'coin', internalType: 'address', type: 'address' },
15266
- ],
15267
- name: 'balanceOf',
15205
+ inputs: [],
15206
+ name: 'MINIMUM_ERC20_PRICE',
15268
15207
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15269
15208
  stateMutability: 'view',
15270
15209
  },
15271
15210
  {
15272
15211
  type: 'function',
15273
- inputs: [
15274
- {
15275
- name: 'key',
15276
- internalType: 'struct PoolKey',
15277
- type: 'tuple',
15278
- components: [
15279
- { name: 'currency0', internalType: 'Currency', type: 'address' },
15280
- { name: 'currency1', internalType: 'Currency', type: 'address' },
15281
- { name: 'fee', internalType: 'uint24', type: 'uint24' },
15282
- { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
15283
- { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
15284
- ],
15285
- },
15286
- { name: 'isCurrency0', internalType: 'bool', type: 'bool' },
15287
- { name: 'orderSizes', internalType: 'uint256[]', type: 'uint256[]' },
15288
- { name: 'orderTicks', internalType: 'int24[]', type: 'int24[]' },
15289
- { name: 'maker', internalType: 'address', type: 'address' },
15290
- ],
15291
- name: 'create',
15292
- outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
15293
- stateMutability: 'payable',
15212
+ inputs: [],
15213
+ name: 'MINIMUM_ETH_PRICE',
15214
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15215
+ stateMutability: 'view',
15294
15216
  },
15295
15217
  {
15296
15218
  type: 'function',
15297
- inputs: [
15298
- {
15299
- name: 'key',
15300
- internalType: 'struct PoolKey',
15301
- type: 'tuple',
15302
- components: [
15303
- { name: 'currency0', internalType: 'Currency', type: 'address' },
15304
- { name: 'currency1', internalType: 'Currency', type: 'address' },
15305
- { name: 'fee', internalType: 'uint24', type: 'uint24' },
15306
- { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
15307
- { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
15308
- ],
15309
- },
15310
- { name: 'isCurrency0', internalType: 'bool', type: 'bool' },
15311
- { name: 'startTick', internalType: 'int24', type: 'int24' },
15312
- { name: 'endTick', internalType: 'int24', type: 'int24' },
15313
- { name: 'maxFillCount', internalType: 'uint256', type: 'uint256' },
15314
- { name: 'fillReferral', internalType: 'address', type: 'address' },
15315
- ],
15316
- name: 'fill',
15317
- outputs: [],
15318
- stateMutability: 'nonpayable',
15219
+ inputs: [],
15220
+ name: 'NAME',
15221
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
15222
+ stateMutability: 'view',
15319
15223
  },
15320
15224
  {
15321
15225
  type: 'function',
15322
- inputs: [
15323
- {
15324
- name: 'batches',
15325
- internalType: 'struct IZoraLimitOrderBook.OrderBatch[]',
15326
- type: 'tuple[]',
15327
- components: [
15328
- {
15329
- name: 'key',
15330
- internalType: 'struct PoolKey',
15331
- type: 'tuple',
15332
- components: [
15333
- { name: 'currency0', internalType: 'Currency', type: 'address' },
15334
- { name: 'currency1', internalType: 'Currency', type: 'address' },
15335
- { name: 'fee', internalType: 'uint24', type: 'uint24' },
15336
- { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
15337
- {
15338
- name: 'hooks',
15339
- internalType: 'contract IHooks',
15340
- type: 'address',
15341
- },
15342
- ],
15343
- },
15344
- { name: 'isCurrency0', internalType: 'bool', type: 'bool' },
15345
- { name: 'orderIds', internalType: 'bytes32[]', type: 'bytes32[]' },
15346
- ],
15347
- },
15348
- { name: 'fillReferral', internalType: 'address', type: 'address' },
15349
- ],
15350
- name: 'fill',
15351
- outputs: [],
15352
- stateMutability: 'nonpayable',
15226
+ inputs: [],
15227
+ name: 'VERSION',
15228
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
15229
+ stateMutability: 'view',
15353
15230
  },
15354
15231
  {
15355
15232
  type: 'function',
15356
15233
  inputs: [],
15357
- name: 'getMaxFillCount',
15358
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15234
+ name: 'authority',
15235
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
15359
15236
  stateMutability: 'view',
15360
15237
  },
15361
15238
  {
15362
15239
  type: 'function',
15363
- inputs: [],
15364
- name: 'poolManager',
15365
- outputs: [
15366
- { name: '', internalType: 'contract IPoolManager', type: 'address' },
15240
+ inputs: [
15241
+ { name: 'account', internalType: 'address', type: 'address' },
15242
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
15367
15243
  ],
15244
+ name: 'balanceOf',
15245
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15368
15246
  stateMutability: 'view',
15369
15247
  },
15370
15248
  {
15371
15249
  type: 'function',
15372
- inputs: [
15373
- { name: 'newAuthority', internalType: 'address', type: 'address' },
15374
- ],
15375
- name: 'setAuthority',
15376
- outputs: [],
15377
- stateMutability: 'nonpayable',
15250
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
15251
+ name: 'balanceOfAccount',
15252
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15253
+ stateMutability: 'view',
15378
15254
  },
15379
15255
  {
15380
15256
  type: 'function',
15381
15257
  inputs: [
15382
- { name: 'maxFillCount', internalType: 'uint256', type: 'uint256' },
15258
+ { name: 'accounts', internalType: 'address[]', type: 'address[]' },
15259
+ { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
15383
15260
  ],
15384
- name: 'setMaxFillCount',
15385
- outputs: [],
15386
- stateMutability: 'nonpayable',
15261
+ name: 'balanceOfBatch',
15262
+ outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }],
15263
+ stateMutability: 'view',
15387
15264
  },
15388
15265
  {
15389
15266
  type: 'function',
15390
- inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
15391
- name: 'unlockCallback',
15392
- outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
15393
- stateMutability: 'nonpayable',
15267
+ inputs: [],
15268
+ name: 'contractURI',
15269
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
15270
+ stateMutability: 'view',
15394
15271
  },
15395
15272
  {
15396
15273
  type: 'function',
15397
15274
  inputs: [
15398
- { name: 'orderIds', internalType: 'bytes32[]', type: 'bytes32[]' },
15399
- { name: 'recipient', internalType: 'address', type: 'address' },
15400
- ],
15401
- name: 'withdraw',
15402
- outputs: [],
15403
- stateMutability: 'nonpayable',
15404
- },
15405
- {
15406
- type: 'function',
15407
- inputs: [
15408
- { name: 'coin', internalType: 'address', type: 'address' },
15409
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
15410
- { name: 'recipient', internalType: 'address', type: 'address' },
15275
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15276
+ {
15277
+ name: 'tokenConfig',
15278
+ internalType: 'struct TokenConfig',
15279
+ type: 'tuple',
15280
+ components: [
15281
+ { name: 'price', internalType: 'uint256', type: 'uint256' },
15282
+ { name: 'tokenAddress', internalType: 'address', type: 'address' },
15283
+ { name: 'redeemHandler', internalType: 'address', type: 'address' },
15284
+ ],
15285
+ },
15411
15286
  ],
15412
- name: 'withdraw',
15287
+ name: 'createToken',
15413
15288
  outputs: [],
15414
15289
  stateMutability: 'nonpayable',
15415
15290
  },
15416
15291
  {
15417
15292
  type: 'function',
15418
15293
  inputs: [],
15419
- name: 'zoraCoinVersionLookup',
15294
+ name: 'eip712Domain',
15420
15295
  outputs: [
15421
- {
15422
- name: '',
15423
- internalType: 'contract IDeployedCoinVersionLookup',
15424
- type: 'address',
15425
- },
15296
+ { name: 'fields', internalType: 'bytes1', type: 'bytes1' },
15297
+ { name: 'name', internalType: 'string', type: 'string' },
15298
+ { name: 'version', internalType: 'string', type: 'string' },
15299
+ { name: 'chainId', internalType: 'uint256', type: 'uint256' },
15300
+ { name: 'verifyingContract', internalType: 'address', type: 'address' },
15301
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
15302
+ { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
15426
15303
  ],
15427
15304
  stateMutability: 'view',
15428
15305
  },
15429
15306
  {
15430
15307
  type: 'function',
15431
15308
  inputs: [],
15432
- name: 'zoraHookRegistry',
15309
+ name: 'getManager',
15310
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
15311
+ stateMutability: 'view',
15312
+ },
15313
+ {
15314
+ type: 'function',
15315
+ inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
15316
+ name: 'getTokenConfig',
15433
15317
  outputs: [
15434
- { name: '', internalType: 'contract IZoraHookRegistry', type: 'address' },
15318
+ {
15319
+ name: '',
15320
+ internalType: 'struct TokenConfig',
15321
+ type: 'tuple',
15322
+ components: [
15323
+ { name: 'price', internalType: 'uint256', type: 'uint256' },
15324
+ { name: 'tokenAddress', internalType: 'address', type: 'address' },
15325
+ { name: 'redeemHandler', internalType: 'address', type: 'address' },
15326
+ ],
15327
+ },
15435
15328
  ],
15436
15329
  stateMutability: 'view',
15437
15330
  },
15438
15331
  {
15439
- type: 'event',
15440
- anonymous: false,
15332
+ type: 'function',
15441
15333
  inputs: [
15442
15334
  {
15443
- name: 'authority',
15444
- internalType: 'address',
15445
- type: 'address',
15446
- indexed: false,
15335
+ name: 'permit',
15336
+ internalType: 'struct IZoraSparks1155Managed.PermitBatch',
15337
+ type: 'tuple',
15338
+ components: [
15339
+ { name: 'owner', internalType: 'address', type: 'address' },
15340
+ { name: 'to', internalType: 'address', type: 'address' },
15341
+ { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
15342
+ { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
15343
+ { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
15344
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
15345
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
15346
+ ],
15447
15347
  },
15448
15348
  ],
15449
- name: 'AuthorityUpdated',
15349
+ name: 'hashPermitBatch',
15350
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
15351
+ stateMutability: 'view',
15450
15352
  },
15451
15353
  {
15452
- type: 'event',
15453
- anonymous: false,
15354
+ type: 'function',
15454
15355
  inputs: [
15455
15356
  {
15456
- name: 'maker',
15457
- internalType: 'address',
15458
- type: 'address',
15459
- indexed: true,
15460
- },
15461
- { name: 'coin', internalType: 'address', type: 'address', indexed: true },
15462
- {
15463
- name: 'poolKeyHash',
15464
- internalType: 'bytes32',
15465
- type: 'bytes32',
15466
- indexed: false,
15467
- },
15468
- {
15469
- name: 'isCurrency0',
15470
- internalType: 'bool',
15471
- type: 'bool',
15472
- indexed: false,
15473
- },
15474
- {
15475
- name: 'orderTick',
15476
- internalType: 'int24',
15477
- type: 'int24',
15478
- indexed: false,
15479
- },
15480
- {
15481
- name: 'currentTick',
15482
- internalType: 'int24',
15483
- type: 'int24',
15484
- indexed: false,
15485
- },
15486
- {
15487
- name: 'orderSize',
15488
- internalType: 'uint128',
15489
- type: 'uint128',
15490
- indexed: false,
15491
- },
15492
- {
15493
- name: 'orderId',
15494
- internalType: 'bytes32',
15495
- type: 'bytes32',
15496
- indexed: false,
15357
+ name: 'permit',
15358
+ internalType: 'struct IZoraSparks1155Managed.PermitSingle',
15359
+ type: 'tuple',
15360
+ components: [
15361
+ { name: 'owner', internalType: 'address', type: 'address' },
15362
+ { name: 'to', internalType: 'address', type: 'address' },
15363
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15364
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
15365
+ { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
15366
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
15367
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
15368
+ ],
15497
15369
  },
15498
15370
  ],
15499
- name: 'LimitOrderCreated',
15371
+ name: 'hashPermitSingle',
15372
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
15373
+ stateMutability: 'view',
15500
15374
  },
15501
15375
  {
15502
- type: 'event',
15503
- anonymous: false,
15376
+ type: 'function',
15504
15377
  inputs: [
15505
- {
15506
- name: 'maker',
15507
- internalType: 'address',
15508
- type: 'address',
15509
- indexed: true,
15510
- },
15511
- {
15512
- name: 'coinIn',
15513
- internalType: 'address',
15514
- type: 'address',
15515
- indexed: true,
15516
- },
15517
- {
15518
- name: 'coinOut',
15519
- internalType: 'address',
15520
- type: 'address',
15521
- indexed: false,
15522
- },
15523
- {
15524
- name: 'amountIn',
15525
- internalType: 'uint128',
15526
- type: 'uint128',
15527
- indexed: false,
15528
- },
15529
- {
15530
- name: 'amountOut',
15531
- internalType: 'uint128',
15532
- type: 'uint128',
15533
- indexed: false,
15534
- },
15535
- {
15536
- name: 'fillReferral',
15537
- internalType: 'address',
15538
- type: 'address',
15539
- indexed: false,
15540
- },
15541
- {
15542
- name: 'fillReferralAmount',
15543
- internalType: 'uint128',
15544
- type: 'uint128',
15545
- indexed: false,
15546
- },
15547
- {
15548
- name: 'poolKeyHash',
15549
- internalType: 'bytes32',
15550
- type: 'bytes32',
15551
- indexed: false,
15552
- },
15553
- { name: 'tick', internalType: 'int24', type: 'int24', indexed: false },
15554
- {
15555
- name: 'orderId',
15556
- internalType: 'bytes32',
15557
- type: 'bytes32',
15558
- indexed: false,
15559
- },
15378
+ { name: 'account', internalType: 'address', type: 'address' },
15379
+ { name: 'operator', internalType: 'address', type: 'address' },
15560
15380
  ],
15561
- name: 'LimitOrderFilled',
15381
+ name: 'isApprovedForAll',
15382
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
15383
+ stateMutability: 'view',
15562
15384
  },
15563
15385
  {
15564
- type: 'event',
15565
- anonymous: false,
15386
+ type: 'function',
15387
+ inputs: [],
15388
+ name: 'isConsumingScheduledOp',
15389
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
15390
+ stateMutability: 'view',
15391
+ },
15392
+ {
15393
+ type: 'function',
15566
15394
  inputs: [
15567
15395
  {
15568
- name: 'maker',
15569
- internalType: 'address',
15570
- type: 'address',
15571
- indexed: true,
15572
- },
15573
- { name: 'coin', internalType: 'address', type: 'address', indexed: true },
15574
- {
15575
- name: 'poolKeyHash',
15576
- internalType: 'bytes32',
15577
- type: 'bytes32',
15578
- indexed: false,
15579
- },
15580
- {
15581
- name: 'isCurrency0',
15582
- internalType: 'bool',
15583
- type: 'bool',
15584
- indexed: false,
15585
- },
15586
- { name: 'tick', internalType: 'int24', type: 'int24', indexed: false },
15587
- {
15588
- name: 'orderSize',
15589
- internalType: 'uint128',
15590
- type: 'uint128',
15591
- indexed: false,
15592
- },
15593
- {
15594
- name: 'orderId',
15595
- internalType: 'bytes32',
15596
- type: 'bytes32',
15597
- indexed: false,
15598
- },
15599
- {
15600
- name: 'isCancelled',
15601
- internalType: 'bool',
15602
- type: 'bool',
15603
- indexed: false,
15396
+ name: 'permit',
15397
+ internalType: 'struct IZoraSparks1155Managed.PermitBatch',
15398
+ type: 'tuple',
15399
+ components: [
15400
+ { name: 'owner', internalType: 'address', type: 'address' },
15401
+ { name: 'to', internalType: 'address', type: 'address' },
15402
+ { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
15403
+ { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
15404
+ { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
15405
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
15406
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
15407
+ ],
15604
15408
  },
15409
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
15605
15410
  ],
15606
- name: 'LimitOrderUpdated',
15411
+ name: 'isValidSignatureTransferBatch',
15412
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
15413
+ stateMutability: 'view',
15607
15414
  },
15608
15415
  {
15609
- type: 'event',
15610
- anonymous: false,
15416
+ type: 'function',
15611
15417
  inputs: [
15612
15418
  {
15613
- name: 'maker',
15614
- internalType: 'address',
15615
- type: 'address',
15616
- indexed: true,
15617
- },
15618
- { name: 'coin', internalType: 'address', type: 'address', indexed: true },
15619
- {
15620
- name: 'balance',
15621
- internalType: 'uint128',
15622
- type: 'uint128',
15623
- indexed: false,
15419
+ name: 'permit',
15420
+ internalType: 'struct IZoraSparks1155Managed.PermitSingle',
15421
+ type: 'tuple',
15422
+ components: [
15423
+ { name: 'owner', internalType: 'address', type: 'address' },
15424
+ { name: 'to', internalType: 'address', type: 'address' },
15425
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15426
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
15427
+ { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
15428
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
15429
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
15430
+ ],
15624
15431
  },
15432
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
15625
15433
  ],
15626
- name: 'MakerBalanceUpdated',
15434
+ name: 'isValidSignatureTransferSingle',
15435
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
15436
+ stateMutability: 'view',
15627
15437
  },
15628
15438
  {
15629
- type: 'error',
15630
- inputs: [{ name: 'authority', internalType: 'address', type: 'address' }],
15631
- name: 'AccessManagedInvalidAuthority',
15632
- },
15633
- { type: 'error', inputs: [], name: 'AccessManagedUnauthorized' },
15634
- { type: 'error', inputs: [], name: 'AddressZero' },
15635
- { type: 'error', inputs: [], name: 'ArrayLengthMismatch' },
15636
- { type: 'error', inputs: [], name: 'InsufficientBalance' },
15637
- { type: 'error', inputs: [], name: 'InsufficientForwardedFunds' },
15638
- { type: 'error', inputs: [], name: 'InsufficientTransferFunds' },
15639
- {
15640
- type: 'error',
15641
- inputs: [
15642
- { name: 'startTick', internalType: 'int24', type: 'int24' },
15643
- { name: 'endTick', internalType: 'int24', type: 'int24' },
15644
- { name: 'isCurrency0', internalType: 'bool', type: 'bool' },
15645
- ],
15646
- name: 'InvalidFillWindow',
15647
- },
15648
- { type: 'error', inputs: [], name: 'InvalidOrder' },
15649
- { type: 'error', inputs: [], name: 'InvalidPoolKey' },
15650
- { type: 'error', inputs: [], name: 'MaxFillCountCannotBeZero' },
15651
- { type: 'error', inputs: [], name: 'NativeValueMismatch' },
15652
- { type: 'error', inputs: [], name: 'NotPoolManager' },
15653
- { type: 'error', inputs: [], name: 'OnlyZoraHook' },
15654
- { type: 'error', inputs: [], name: 'OrderClosed' },
15655
- { type: 'error', inputs: [], name: 'OrderNotMaker' },
15656
- { type: 'error', inputs: [], name: 'PathMustHaveAtLeastOneStep' },
15657
- { type: 'error', inputs: [], name: 'RouterMsgSenderInvalid' },
15658
- { type: 'error', inputs: [], name: 'UnknownCallback' },
15659
- { type: 'error', inputs: [], name: 'UnlockedFillNotAllowed' },
15660
- { type: 'error', inputs: [], name: 'ZeroMaker' },
15661
- { type: 'error', inputs: [], name: 'ZeroMakerOrders' },
15662
- { type: 'error', inputs: [], name: 'ZeroOrderSize' },
15663
- { type: 'error', inputs: [], name: 'ZeroRealizedOrder' },
15664
- { type: 'error', inputs: [], name: 'AddressZero' },
15665
- { type: 'error', inputs: [], name: 'AlreadyOwner' },
15666
- { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' },
15667
- {
15668
- type: 'error',
15669
- inputs: [],
15670
- name: 'DopplerPoolMustHaveMoreThan2DiscoveryPositions',
15671
- },
15672
- { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' },
15673
- {
15674
- type: 'error',
15675
- inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
15676
- name: 'ECDSAInvalidSignatureLength',
15677
- },
15678
- {
15679
- type: 'error',
15680
- inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }],
15681
- name: 'ECDSAInvalidSignatureS',
15682
- },
15683
- {
15684
- type: 'error',
15439
+ type: 'function',
15685
15440
  inputs: [
15686
- { name: 'spender', internalType: 'address', type: 'address' },
15687
- { name: 'allowance', internalType: 'uint256', type: 'uint256' },
15688
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
15441
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15442
+ { name: 'tokenAddress', internalType: 'address', type: 'address' },
15443
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
15444
+ { name: 'recipient', internalType: 'address', type: 'address' },
15445
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
15689
15446
  ],
15690
- name: 'ERC20InsufficientAllowance',
15447
+ name: 'mintTokenWithERC20',
15448
+ outputs: [],
15449
+ stateMutability: 'nonpayable',
15691
15450
  },
15692
15451
  {
15693
- type: 'error',
15452
+ type: 'function',
15694
15453
  inputs: [
15695
- { name: 'sender', internalType: 'address', type: 'address' },
15696
- { name: 'balance', internalType: 'uint256', type: 'uint256' },
15697
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
15454
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15455
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
15456
+ { name: 'recipient', internalType: 'address', type: 'address' },
15457
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
15698
15458
  ],
15699
- name: 'ERC20InsufficientBalance',
15700
- },
15701
- {
15702
- type: 'error',
15703
- inputs: [{ name: 'approver', internalType: 'address', type: 'address' }],
15704
- name: 'ERC20InvalidApprover',
15705
- },
15706
- {
15707
- type: 'error',
15708
- inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }],
15709
- name: 'ERC20InvalidReceiver',
15710
- },
15711
- {
15712
- type: 'error',
15713
- inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
15714
- name: 'ERC20InvalidSender',
15715
- },
15716
- {
15717
- type: 'error',
15718
- inputs: [{ name: 'spender', internalType: 'address', type: 'address' }],
15719
- name: 'ERC20InvalidSpender',
15459
+ name: 'mintTokenWithEth',
15460
+ outputs: [],
15461
+ stateMutability: 'payable',
15720
15462
  },
15721
- { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
15722
15463
  {
15723
- type: 'error',
15724
- inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }],
15725
- name: 'ERC2612ExpiredSignature',
15464
+ type: 'function',
15465
+ inputs: [],
15466
+ name: 'name',
15467
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
15468
+ stateMutability: 'pure',
15726
15469
  },
15727
15470
  {
15728
- type: 'error',
15471
+ type: 'function',
15729
15472
  inputs: [
15730
- { name: 'signer', internalType: 'address', type: 'address' },
15731
15473
  { name: 'owner', internalType: 'address', type: 'address' },
15474
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
15732
15475
  ],
15733
- name: 'ERC2612InvalidSigner',
15476
+ name: 'nonceUsed',
15477
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
15478
+ stateMutability: 'view',
15734
15479
  },
15735
- { type: 'error', inputs: [], name: 'EthAmountMismatch' },
15736
- { type: 'error', inputs: [], name: 'EthAmountTooSmall' },
15737
- { type: 'error', inputs: [], name: 'EthTransferFailed' },
15738
- { type: 'error', inputs: [], name: 'EthTransferInvalid' },
15739
- { type: 'error', inputs: [], name: 'InitialOrderSizeTooLarge' },
15740
- { type: 'error', inputs: [], name: 'InsufficientFunds' },
15741
- { type: 'error', inputs: [], name: 'InsufficientLiquidity' },
15742
15480
  {
15743
- type: 'error',
15481
+ type: 'function',
15744
15482
  inputs: [
15745
- { name: 'account', internalType: 'address', type: 'address' },
15746
- { name: 'currentNonce', internalType: 'uint256', type: 'uint256' },
15483
+ { name: 'newContractURI', internalType: 'string', type: 'string' },
15484
+ { name: 'newBaseURI', internalType: 'string', type: 'string' },
15747
15485
  ],
15748
- name: 'InvalidAccountNonce',
15486
+ name: 'notifyURIsUpdated',
15487
+ outputs: [],
15488
+ stateMutability: 'nonpayable',
15749
15489
  },
15750
- { type: 'error', inputs: [], name: 'InvalidCurrencyLowerTick' },
15751
- { type: 'error', inputs: [], name: 'InvalidInitialization' },
15752
- { type: 'error', inputs: [], name: 'InvalidMarketType' },
15753
- { type: 'error', inputs: [], name: 'InvalidPoolVersion' },
15754
15490
  {
15755
- type: 'error',
15491
+ type: 'function',
15756
15492
  inputs: [
15757
- { name: 'tickLower', internalType: 'int24', type: 'int24' },
15758
- { name: 'tickUpper', internalType: 'int24', type: 'int24' },
15493
+ { name: 'newUri', internalType: 'string', type: 'string' },
15494
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15759
15495
  ],
15760
- name: 'InvalidTickRangeMisordered',
15496
+ name: 'notifyUpdatedTokenURI',
15497
+ outputs: [],
15498
+ stateMutability: 'nonpayable',
15761
15499
  },
15762
- { type: 'error', inputs: [], name: 'InvalidWethLowerTick' },
15763
- { type: 'error', inputs: [], name: 'LegacyPoolMustHaveOneDiscoveryPosition' },
15764
- { type: 'error', inputs: [], name: 'MarketAlreadyGraduated' },
15765
- { type: 'error', inputs: [], name: 'MarketNotGraduated' },
15766
15500
  {
15767
- type: 'error',
15501
+ type: 'function',
15768
15502
  inputs: [
15769
- { name: 'value', internalType: 'uint256', type: 'uint256' },
15770
- { name: 'limit', internalType: 'uint256', type: 'uint256' },
15503
+ {
15504
+ name: 'permit',
15505
+ internalType: 'struct IZoraSparks1155Managed.PermitSingle',
15506
+ type: 'tuple',
15507
+ components: [
15508
+ { name: 'owner', internalType: 'address', type: 'address' },
15509
+ { name: 'to', internalType: 'address', type: 'address' },
15510
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15511
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
15512
+ { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
15513
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
15514
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
15515
+ ],
15516
+ },
15517
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
15771
15518
  ],
15772
- name: 'MaxShareToBeSoldExceeded',
15519
+ name: 'permitSafeTransfer',
15520
+ outputs: [],
15521
+ stateMutability: 'nonpayable',
15773
15522
  },
15774
- { type: 'error', inputs: [], name: 'NameIsRequired' },
15775
- { type: 'error', inputs: [], name: 'NotInitializing' },
15776
- { type: 'error', inputs: [], name: 'NotOwner' },
15777
- { type: 'error', inputs: [], name: 'NumDiscoveryPositionsOutOfRange' },
15778
- { type: 'error', inputs: [], name: 'OneOwnerRequired' },
15779
- { type: 'error', inputs: [], name: 'OnlyOwner' },
15780
15523
  {
15781
- type: 'error',
15524
+ type: 'function',
15782
15525
  inputs: [
15783
- { name: 'sender', internalType: 'address', type: 'address' },
15784
- { name: 'pool', internalType: 'address', type: 'address' },
15526
+ {
15527
+ name: 'permit',
15528
+ internalType: 'struct IZoraSparks1155Managed.PermitBatch',
15529
+ type: 'tuple',
15530
+ components: [
15531
+ { name: 'owner', internalType: 'address', type: 'address' },
15532
+ { name: 'to', internalType: 'address', type: 'address' },
15533
+ { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
15534
+ { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
15535
+ { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
15536
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
15537
+ { name: 'nonce', internalType: 'uint256', type: 'uint256' },
15538
+ ],
15539
+ },
15540
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
15785
15541
  ],
15786
- name: 'OnlyPool',
15787
- },
15788
- { type: 'error', inputs: [], name: 'OnlyWeth' },
15789
- { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' },
15790
- { type: 'error', inputs: [], name: 'SlippageBoundsExceeded' },
15791
- { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' },
15792
- { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' },
15793
- { type: 'error', inputs: [], name: 'CoinVersionLookupCannotBeZeroAddress' },
15794
- { type: 'error', inputs: [], name: 'EthTransferFailed' },
15795
- { type: 'error', inputs: [], name: 'HookNotImplemented' },
15796
- {
15797
- type: 'error',
15798
- inputs: [{ name: 'callbackId', internalType: 'uint8', type: 'uint8' }],
15799
- name: 'InvalidCallbackId',
15800
- },
15801
- {
15802
- type: 'error',
15803
- inputs: [{ name: 'newHook', internalType: 'address', type: 'address' }],
15804
- name: 'InvalidNewHook',
15542
+ name: 'permitSafeTransferBatch',
15543
+ outputs: [],
15544
+ stateMutability: 'nonpayable',
15805
15545
  },
15806
15546
  {
15807
- type: 'error',
15547
+ type: 'function',
15808
15548
  inputs: [
15809
- { name: 'tickLower', internalType: 'int24', type: 'int24' },
15810
- { name: 'tickUpper', internalType: 'int24', type: 'int24' },
15549
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15550
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
15551
+ { name: 'recipient', internalType: 'address', type: 'address' },
15811
15552
  ],
15812
- name: 'InvalidTickRangeMisordered',
15553
+ name: 'redeem',
15554
+ outputs: [
15555
+ {
15556
+ name: '',
15557
+ internalType: 'struct Redemption',
15558
+ type: 'tuple',
15559
+ components: [
15560
+ { name: 'tokenAddress', internalType: 'address', type: 'address' },
15561
+ { name: 'valueRedeemed', internalType: 'uint256', type: 'uint256' },
15562
+ ],
15563
+ },
15564
+ ],
15565
+ stateMutability: 'nonpayable',
15813
15566
  },
15814
15567
  {
15815
- type: 'error',
15568
+ type: 'function',
15816
15569
  inputs: [
15570
+ { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
15571
+ { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
15572
+ { name: 'recipient', internalType: 'address', type: 'address' },
15573
+ ],
15574
+ name: 'redeemBatch',
15575
+ outputs: [
15817
15576
  {
15818
- name: 'key',
15819
- internalType: 'struct PoolKey',
15820
- type: 'tuple',
15577
+ name: 'redemptions',
15578
+ internalType: 'struct Redemption[]',
15579
+ type: 'tuple[]',
15821
15580
  components: [
15822
- { name: 'currency0', internalType: 'Currency', type: 'address' },
15823
- { name: 'currency1', internalType: 'Currency', type: 'address' },
15824
- { name: 'fee', internalType: 'uint24', type: 'uint24' },
15825
- { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
15826
- { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
15581
+ { name: 'tokenAddress', internalType: 'address', type: 'address' },
15582
+ { name: 'valueRedeemed', internalType: 'uint256', type: 'uint256' },
15827
15583
  ],
15828
15584
  },
15829
15585
  ],
15830
- name: 'NoCoinForHook',
15586
+ stateMutability: 'nonpayable',
15831
15587
  },
15832
15588
  {
15833
- type: 'error',
15834
- inputs: [{ name: 'coin', internalType: 'address', type: 'address' }],
15835
- name: 'NotACoin',
15589
+ type: 'function',
15590
+ inputs: [
15591
+ { name: 'from', internalType: 'address', type: 'address' },
15592
+ { name: 'to', internalType: 'address', type: 'address' },
15593
+ { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
15594
+ { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
15595
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
15596
+ ],
15597
+ name: 'safeBatchTransferFrom',
15598
+ outputs: [],
15599
+ stateMutability: 'nonpayable',
15836
15600
  },
15837
- { type: 'error', inputs: [], name: 'NotPoolManager' },
15838
15601
  {
15839
- type: 'error',
15602
+ type: 'function',
15840
15603
  inputs: [
15841
- { name: 'caller', internalType: 'address', type: 'address' },
15842
- { name: 'expectedCoin', internalType: 'address', type: 'address' },
15604
+ { name: 'from', internalType: 'address', type: 'address' },
15605
+ { name: 'to', internalType: 'address', type: 'address' },
15606
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
15607
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
15608
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
15843
15609
  ],
15844
- name: 'OnlyCoin',
15610
+ name: 'safeTransferFrom',
15611
+ outputs: [],
15612
+ stateMutability: 'nonpayable',
15845
15613
  },
15846
- { type: 'error', inputs: [], name: 'PathMustHaveAtLeastOneStep' },
15847
- { type: 'error', inputs: [], name: 'SafeCastOverflow' },
15848
15614
  {
15849
- type: 'error',
15850
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
15851
- name: 'SafeERC20FailedOperation',
15852
- },
15853
- {
15854
- type: 'error',
15855
- inputs: [],
15856
- name: 'TrustedMsgSenderLookupCannotBeZeroAddress',
15857
- },
15858
- { type: 'error', inputs: [], name: 'UpgradeGateCannotBeZeroAddress' },
15859
- {
15860
- type: 'error',
15615
+ type: 'function',
15861
15616
  inputs: [
15862
- { name: 'oldHook', internalType: 'address', type: 'address' },
15863
- { name: 'newHook', internalType: 'address', type: 'address' },
15617
+ { name: 'operator', internalType: 'address', type: 'address' },
15618
+ { name: 'approved', internalType: 'bool', type: 'bool' },
15864
15619
  ],
15865
- name: 'UpgradePathNotRegistered',
15866
- },
15867
- { type: 'error', inputs: [], name: 'ZoraHookRegistryCannotBeZeroAddress' },
15868
- { type: 'error', inputs: [], name: 'ZoraLimitOrderBookCannotBeZeroAddress' },
15869
- ] as const
15870
-
15871
- /**
15872
- * [__View Contract on Base Basescan__](https://basescan.org/address/0xAe990bBE7624b20b30e282A159e2BF05f45143A8)
15873
- */
15874
- export const zoraLimitOrderBookAddress = {
15875
- 8453: '0xAe990bBE7624b20b30e282A159e2BF05f45143A8',
15876
- } as const
15877
-
15878
- /**
15879
- * [__View Contract on Base Basescan__](https://basescan.org/address/0xAe990bBE7624b20b30e282A159e2BF05f45143A8)
15880
- */
15881
- export const zoraLimitOrderBookConfig = {
15882
- address: zoraLimitOrderBookAddress,
15883
- abi: zoraLimitOrderBookABI,
15884
- } as const
15885
-
15886
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15887
- // ZoraMints1155
15888
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15889
-
15890
- /**
15891
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
15892
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
15893
- */
15894
- export const zoraMints1155ABI = [
15895
- { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
15896
- {
15897
- type: 'function',
15898
- inputs: [],
15899
- name: 'ETH_ADDRESS',
15900
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
15901
- stateMutability: 'view',
15902
- },
15903
- {
15904
- type: 'function',
15905
- inputs: [],
15906
- name: 'MINIMUM_ERC20_PRICE',
15907
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15908
- stateMutability: 'view',
15620
+ name: 'setApprovalForAll',
15621
+ outputs: [],
15622
+ stateMutability: 'nonpayable',
15909
15623
  },
15910
15624
  {
15911
15625
  type: 'function',
15912
- inputs: [],
15913
- name: 'MINIMUM_ETH_PRICE',
15914
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15915
- stateMutability: 'view',
15626
+ inputs: [
15627
+ { name: 'newAuthority', internalType: 'address', type: 'address' },
15628
+ ],
15629
+ name: 'setAuthority',
15630
+ outputs: [],
15631
+ stateMutability: 'nonpayable',
15916
15632
  },
15917
15633
  {
15918
15634
  type: 'function',
15919
- inputs: [],
15920
- name: 'NAME',
15921
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
15635
+ inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
15636
+ name: 'supportsInterface',
15637
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
15922
15638
  stateMutability: 'view',
15923
15639
  },
15924
15640
  {
15925
15641
  type: 'function',
15926
15642
  inputs: [],
15927
- name: 'VERSION',
15643
+ name: 'symbol',
15928
15644
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
15929
- stateMutability: 'view',
15930
- },
15931
- {
15932
- type: 'function',
15933
- inputs: [],
15934
- name: 'authority',
15935
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
15936
- stateMutability: 'view',
15645
+ stateMutability: 'pure',
15937
15646
  },
15938
15647
  {
15939
15648
  type: 'function',
15940
- inputs: [
15941
- { name: 'account', internalType: 'address', type: 'address' },
15942
- { name: 'id', internalType: 'uint256', type: 'uint256' },
15943
- ],
15944
- name: 'balanceOf',
15945
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15649
+ inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
15650
+ name: 'tokenExists',
15651
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
15946
15652
  stateMutability: 'view',
15947
15653
  },
15948
15654
  {
15949
15655
  type: 'function',
15950
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
15951
- name: 'balanceOfAccount',
15656
+ inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
15657
+ name: 'tokenPrice',
15952
15658
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
15953
15659
  stateMutability: 'view',
15954
15660
  },
15955
15661
  {
15956
15662
  type: 'function',
15957
15663
  inputs: [
15958
- { name: 'accounts', internalType: 'address[]', type: 'address[]' },
15959
- { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
15664
+ { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
15665
+ { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
15666
+ { name: 'call', internalType: 'bytes', type: 'bytes' },
15960
15667
  ],
15961
- name: 'balanceOfBatch',
15962
- outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }],
15963
- stateMutability: 'view',
15668
+ name: 'transferBatchToManagerAndCall',
15669
+ outputs: [{ name: 'callReturn', internalType: 'bytes', type: 'bytes' }],
15670
+ stateMutability: 'payable',
15964
15671
  },
15965
15672
  {
15966
15673
  type: 'function',
15967
- inputs: [],
15968
- name: 'contractURI',
15674
+ inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
15675
+ name: 'uri',
15969
15676
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
15970
15677
  stateMutability: 'view',
15971
15678
  },
15972
15679
  {
15973
- type: 'function',
15680
+ type: 'event',
15681
+ anonymous: false,
15974
15682
  inputs: [
15975
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
15976
15683
  {
15977
- name: 'tokenConfig',
15978
- internalType: 'struct TokenConfig',
15979
- type: 'tuple',
15980
- components: [
15981
- { name: 'price', internalType: 'uint256', type: 'uint256' },
15982
- { name: 'tokenAddress', internalType: 'address', type: 'address' },
15983
- { name: 'redeemHandler', internalType: 'address', type: 'address' },
15984
- ],
15684
+ name: 'account',
15685
+ internalType: 'address',
15686
+ type: 'address',
15687
+ indexed: true,
15985
15688
  },
15986
- ],
15987
- name: 'createToken',
15988
- outputs: [],
15989
- stateMutability: 'nonpayable',
15990
- },
15991
- {
15992
- type: 'function',
15993
- inputs: [],
15994
- name: 'eip712Domain',
15995
- outputs: [
15996
- { name: 'fields', internalType: 'bytes1', type: 'bytes1' },
15997
- { name: 'name', internalType: 'string', type: 'string' },
15998
- { name: 'version', internalType: 'string', type: 'string' },
15999
- { name: 'chainId', internalType: 'uint256', type: 'uint256' },
16000
- { name: 'verifyingContract', internalType: 'address', type: 'address' },
16001
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
16002
- { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
16003
- ],
16004
- stateMutability: 'view',
16005
- },
16006
- {
16007
- type: 'function',
16008
- inputs: [],
16009
- name: 'getManager',
16010
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
16011
- stateMutability: 'view',
16012
- },
16013
- {
16014
- type: 'function',
16015
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
16016
- name: 'getTokenConfig',
16017
- outputs: [
16018
15689
  {
16019
- name: '',
16020
- internalType: 'struct TokenConfig',
16021
- type: 'tuple',
16022
- components: [
16023
- { name: 'price', internalType: 'uint256', type: 'uint256' },
16024
- { name: 'tokenAddress', internalType: 'address', type: 'address' },
16025
- { name: 'redeemHandler', internalType: 'address', type: 'address' },
16026
- ],
15690
+ name: 'operator',
15691
+ internalType: 'address',
15692
+ type: 'address',
15693
+ indexed: true,
16027
15694
  },
15695
+ { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
16028
15696
  ],
16029
- stateMutability: 'view',
15697
+ name: 'ApprovalForAll',
16030
15698
  },
16031
15699
  {
16032
- type: 'function',
15700
+ type: 'event',
15701
+ anonymous: false,
16033
15702
  inputs: [
16034
15703
  {
16035
- name: 'permit',
16036
- internalType: 'struct IZoraSparks1155Managed.PermitBatch',
16037
- type: 'tuple',
16038
- components: [
16039
- { name: 'owner', internalType: 'address', type: 'address' },
16040
- { name: 'to', internalType: 'address', type: 'address' },
16041
- { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
16042
- { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
16043
- { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
16044
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
16045
- { name: 'nonce', internalType: 'uint256', type: 'uint256' },
16046
- ],
15704
+ name: 'authority',
15705
+ internalType: 'address',
15706
+ type: 'address',
15707
+ indexed: false,
16047
15708
  },
16048
15709
  ],
16049
- name: 'hashPermitBatch',
16050
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
16051
- stateMutability: 'view',
15710
+ name: 'AuthorityUpdated',
16052
15711
  },
15712
+ { type: 'event', anonymous: false, inputs: [], name: 'ContractURIUpdated' },
15713
+ { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' },
16053
15714
  {
16054
- type: 'function',
15715
+ type: 'event',
15716
+ anonymous: false,
16055
15717
  inputs: [
16056
15718
  {
16057
- name: 'permit',
16058
- internalType: 'struct IZoraSparks1155Managed.PermitSingle',
16059
- type: 'tuple',
16060
- components: [
16061
- { name: 'owner', internalType: 'address', type: 'address' },
16062
- { name: 'to', internalType: 'address', type: 'address' },
16063
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16064
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16065
- { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
16066
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
16067
- { name: 'nonce', internalType: 'uint256', type: 'uint256' },
16068
- ],
15719
+ name: 'tokenId',
15720
+ internalType: 'uint256',
15721
+ type: 'uint256',
15722
+ indexed: true,
15723
+ },
15724
+ {
15725
+ name: 'price',
15726
+ internalType: 'uint256',
15727
+ type: 'uint256',
15728
+ indexed: true,
15729
+ },
15730
+ {
15731
+ name: 'tokenAddress',
15732
+ internalType: 'address',
15733
+ type: 'address',
15734
+ indexed: true,
16069
15735
  },
16070
15736
  ],
16071
- name: 'hashPermitSingle',
16072
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
16073
- stateMutability: 'view',
15737
+ name: 'TokenCreated',
16074
15738
  },
16075
15739
  {
16076
- type: 'function',
15740
+ type: 'event',
15741
+ anonymous: false,
16077
15742
  inputs: [
16078
- { name: 'account', internalType: 'address', type: 'address' },
16079
- { name: 'operator', internalType: 'address', type: 'address' },
15743
+ {
15744
+ name: 'operator',
15745
+ internalType: 'address',
15746
+ type: 'address',
15747
+ indexed: true,
15748
+ },
15749
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
15750
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
15751
+ {
15752
+ name: 'ids',
15753
+ internalType: 'uint256[]',
15754
+ type: 'uint256[]',
15755
+ indexed: false,
15756
+ },
15757
+ {
15758
+ name: 'values',
15759
+ internalType: 'uint256[]',
15760
+ type: 'uint256[]',
15761
+ indexed: false,
15762
+ },
16080
15763
  ],
16081
- name: 'isApprovedForAll',
16082
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
16083
- stateMutability: 'view',
15764
+ name: 'TransferBatch',
16084
15765
  },
16085
15766
  {
16086
- type: 'function',
16087
- inputs: [],
16088
- name: 'isConsumingScheduledOp',
16089
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
16090
- stateMutability: 'view',
16091
- },
16092
- {
16093
- type: 'function',
15767
+ type: 'event',
15768
+ anonymous: false,
16094
15769
  inputs: [
16095
15770
  {
16096
- name: 'permit',
16097
- internalType: 'struct IZoraSparks1155Managed.PermitBatch',
16098
- type: 'tuple',
16099
- components: [
16100
- { name: 'owner', internalType: 'address', type: 'address' },
16101
- { name: 'to', internalType: 'address', type: 'address' },
16102
- { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
16103
- { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
16104
- { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
16105
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
16106
- { name: 'nonce', internalType: 'uint256', type: 'uint256' },
16107
- ],
15771
+ name: 'operator',
15772
+ internalType: 'address',
15773
+ type: 'address',
15774
+ indexed: true,
16108
15775
  },
16109
- { name: 'signature', internalType: 'bytes', type: 'bytes' },
16110
- ],
16111
- name: 'isValidSignatureTransferBatch',
16112
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
16113
- stateMutability: 'view',
16114
- },
16115
- {
16116
- type: 'function',
16117
- inputs: [
15776
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
15777
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
15778
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: false },
16118
15779
  {
16119
- name: 'permit',
16120
- internalType: 'struct IZoraSparks1155Managed.PermitSingle',
16121
- type: 'tuple',
16122
- components: [
16123
- { name: 'owner', internalType: 'address', type: 'address' },
16124
- { name: 'to', internalType: 'address', type: 'address' },
16125
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16126
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16127
- { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
16128
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
16129
- { name: 'nonce', internalType: 'uint256', type: 'uint256' },
16130
- ],
15780
+ name: 'value',
15781
+ internalType: 'uint256',
15782
+ type: 'uint256',
15783
+ indexed: false,
16131
15784
  },
16132
- { name: 'signature', internalType: 'bytes', type: 'bytes' },
16133
15785
  ],
16134
- name: 'isValidSignatureTransferSingle',
16135
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
16136
- stateMutability: 'view',
15786
+ name: 'TransferSingle',
16137
15787
  },
16138
15788
  {
16139
- type: 'function',
15789
+ type: 'event',
15790
+ anonymous: false,
16140
15791
  inputs: [
16141
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16142
- { name: 'tokenAddress', internalType: 'address', type: 'address' },
16143
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16144
- { name: 'recipient', internalType: 'address', type: 'address' },
16145
- { name: 'data', internalType: 'bytes', type: 'bytes' },
15792
+ { name: 'value', internalType: 'string', type: 'string', indexed: false },
15793
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
16146
15794
  ],
16147
- name: 'mintTokenWithERC20',
16148
- outputs: [],
16149
- stateMutability: 'nonpayable',
15795
+ name: 'URI',
16150
15796
  },
16151
15797
  {
16152
- type: 'function',
15798
+ type: 'event',
15799
+ anonymous: false,
16153
15800
  inputs: [
16154
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16155
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16156
- { name: 'recipient', internalType: 'address', type: 'address' },
16157
- { name: 'data', internalType: 'bytes', type: 'bytes' },
15801
+ {
15802
+ name: 'contractURI',
15803
+ internalType: 'string',
15804
+ type: 'string',
15805
+ indexed: false,
15806
+ },
15807
+ {
15808
+ name: 'baseURI',
15809
+ internalType: 'string',
15810
+ type: 'string',
15811
+ indexed: false,
15812
+ },
16158
15813
  ],
16159
- name: 'mintTokenWithEth',
16160
- outputs: [],
16161
- stateMutability: 'payable',
15814
+ name: 'URIsUpdated',
16162
15815
  },
16163
15816
  {
16164
- type: 'function',
16165
- inputs: [],
16166
- name: 'name',
16167
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
16168
- stateMutability: 'pure',
15817
+ type: 'error',
15818
+ inputs: [{ name: 'authority', internalType: 'address', type: 'address' }],
15819
+ name: 'AccessManagedInvalidAuthority',
16169
15820
  },
16170
15821
  {
16171
- type: 'function',
15822
+ type: 'error',
16172
15823
  inputs: [
16173
- { name: 'owner', internalType: 'address', type: 'address' },
16174
- { name: 'nonce', internalType: 'uint256', type: 'uint256' },
15824
+ { name: 'caller', internalType: 'address', type: 'address' },
15825
+ { name: 'delay', internalType: 'uint32', type: 'uint32' },
16175
15826
  ],
16176
- name: 'nonceUsed',
16177
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
16178
- stateMutability: 'view',
15827
+ name: 'AccessManagedRequiredDelay',
16179
15828
  },
16180
15829
  {
16181
- type: 'function',
16182
- inputs: [
16183
- { name: 'newContractURI', internalType: 'string', type: 'string' },
16184
- { name: 'newBaseURI', internalType: 'string', type: 'string' },
16185
- ],
16186
- name: 'notifyURIsUpdated',
16187
- outputs: [],
16188
- stateMutability: 'nonpayable',
15830
+ type: 'error',
15831
+ inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
15832
+ name: 'AccessManagedUnauthorized',
16189
15833
  },
16190
15834
  {
16191
- type: 'function',
16192
- inputs: [
16193
- { name: 'newUri', internalType: 'string', type: 'string' },
16194
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16195
- ],
16196
- name: 'notifyUpdatedTokenURI',
16197
- outputs: [],
16198
- stateMutability: 'nonpayable',
15835
+ type: 'error',
15836
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
15837
+ name: 'AddressEmptyCode',
16199
15838
  },
16200
15839
  {
16201
- type: 'function',
16202
- inputs: [
16203
- {
16204
- name: 'permit',
16205
- internalType: 'struct IZoraSparks1155Managed.PermitSingle',
16206
- type: 'tuple',
16207
- components: [
16208
- { name: 'owner', internalType: 'address', type: 'address' },
16209
- { name: 'to', internalType: 'address', type: 'address' },
16210
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16211
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16212
- { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
16213
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
16214
- { name: 'nonce', internalType: 'uint256', type: 'uint256' },
16215
- ],
16216
- },
16217
- { name: 'signature', internalType: 'bytes', type: 'bytes' },
16218
- ],
16219
- name: 'permitSafeTransfer',
16220
- outputs: [],
16221
- stateMutability: 'nonpayable',
15840
+ type: 'error',
15841
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
15842
+ name: 'AddressInsufficientBalance',
16222
15843
  },
16223
15844
  {
16224
- type: 'function',
15845
+ type: 'error',
16225
15846
  inputs: [
16226
- {
16227
- name: 'permit',
16228
- internalType: 'struct IZoraSparks1155Managed.PermitBatch',
16229
- type: 'tuple',
16230
- components: [
16231
- { name: 'owner', internalType: 'address', type: 'address' },
16232
- { name: 'to', internalType: 'address', type: 'address' },
16233
- { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
16234
- { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
16235
- { name: 'safeTransferData', internalType: 'bytes', type: 'bytes' },
16236
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
16237
- { name: 'nonce', internalType: 'uint256', type: 'uint256' },
16238
- ],
16239
- },
16240
- { name: 'signature', internalType: 'bytes', type: 'bytes' },
15847
+ { name: 'lengthA', internalType: 'uint256', type: 'uint256' },
15848
+ { name: 'lengthB', internalType: 'uint256', type: 'uint256' },
16241
15849
  ],
16242
- name: 'permitSafeTransferBatch',
16243
- outputs: [],
16244
- stateMutability: 'nonpayable',
15850
+ name: 'ArrayLengthMismatch',
16245
15851
  },
16246
15852
  {
16247
- type: 'function',
15853
+ type: 'error',
15854
+ inputs: [{ name: 'returnData', internalType: 'bytes', type: 'bytes' }],
15855
+ name: 'CallFailed',
15856
+ },
15857
+ {
15858
+ type: 'error',
16248
15859
  inputs: [
15860
+ { name: 'sender', internalType: 'address', type: 'address' },
15861
+ { name: 'balance', internalType: 'uint256', type: 'uint256' },
15862
+ { name: 'needed', internalType: 'uint256', type: 'uint256' },
16249
15863
  { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16250
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16251
- { name: 'recipient', internalType: 'address', type: 'address' },
16252
- ],
16253
- name: 'redeem',
16254
- outputs: [
16255
- {
16256
- name: '',
16257
- internalType: 'struct Redemption',
16258
- type: 'tuple',
16259
- components: [
16260
- { name: 'tokenAddress', internalType: 'address', type: 'address' },
16261
- { name: 'valueRedeemed', internalType: 'uint256', type: 'uint256' },
16262
- ],
16263
- },
16264
15864
  ],
16265
- stateMutability: 'nonpayable',
15865
+ name: 'ERC1155InsufficientBalance',
16266
15866
  },
16267
15867
  {
16268
- type: 'function',
16269
- inputs: [
16270
- { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
16271
- { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
16272
- { name: 'recipient', internalType: 'address', type: 'address' },
16273
- ],
16274
- name: 'redeemBatch',
16275
- outputs: [
16276
- {
16277
- name: 'redemptions',
16278
- internalType: 'struct Redemption[]',
16279
- type: 'tuple[]',
16280
- components: [
16281
- { name: 'tokenAddress', internalType: 'address', type: 'address' },
16282
- { name: 'valueRedeemed', internalType: 'uint256', type: 'uint256' },
16283
- ],
16284
- },
16285
- ],
16286
- stateMutability: 'nonpayable',
15868
+ type: 'error',
15869
+ inputs: [{ name: 'approver', internalType: 'address', type: 'address' }],
15870
+ name: 'ERC1155InvalidApprover',
16287
15871
  },
16288
15872
  {
16289
- type: 'function',
15873
+ type: 'error',
16290
15874
  inputs: [
16291
- { name: 'from', internalType: 'address', type: 'address' },
16292
- { name: 'to', internalType: 'address', type: 'address' },
16293
- { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
16294
- { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
16295
- { name: 'data', internalType: 'bytes', type: 'bytes' },
15875
+ { name: 'idsLength', internalType: 'uint256', type: 'uint256' },
15876
+ { name: 'valuesLength', internalType: 'uint256', type: 'uint256' },
16296
15877
  ],
16297
- name: 'safeBatchTransferFrom',
16298
- outputs: [],
16299
- stateMutability: 'nonpayable',
15878
+ name: 'ERC1155InvalidArrayLength',
16300
15879
  },
16301
15880
  {
16302
- type: 'function',
16303
- inputs: [
16304
- { name: 'from', internalType: 'address', type: 'address' },
16305
- { name: 'to', internalType: 'address', type: 'address' },
16306
- { name: 'id', internalType: 'uint256', type: 'uint256' },
16307
- { name: 'value', internalType: 'uint256', type: 'uint256' },
16308
- { name: 'data', internalType: 'bytes', type: 'bytes' },
16309
- ],
16310
- name: 'safeTransferFrom',
16311
- outputs: [],
16312
- stateMutability: 'nonpayable',
15881
+ type: 'error',
15882
+ inputs: [{ name: 'operator', internalType: 'address', type: 'address' }],
15883
+ name: 'ERC1155InvalidOperator',
16313
15884
  },
16314
15885
  {
16315
- type: 'function',
15886
+ type: 'error',
15887
+ inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }],
15888
+ name: 'ERC1155InvalidReceiver',
15889
+ },
15890
+ {
15891
+ type: 'error',
15892
+ inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
15893
+ name: 'ERC1155InvalidSender',
15894
+ },
15895
+ {
15896
+ type: 'error',
16316
15897
  inputs: [
16317
15898
  { name: 'operator', internalType: 'address', type: 'address' },
16318
- { name: 'approved', internalType: 'bool', type: 'bool' },
15899
+ { name: 'owner', internalType: 'address', type: 'address' },
16319
15900
  ],
16320
- name: 'setApprovalForAll',
16321
- outputs: [],
16322
- stateMutability: 'nonpayable',
15901
+ name: 'ERC1155MissingApprovalForAll',
16323
15902
  },
15903
+ { type: 'error', inputs: [], name: 'ERC20TransferSlippage' },
16324
15904
  {
16325
- type: 'function',
15905
+ type: 'error',
15906
+ inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }],
15907
+ name: 'ERC2612ExpiredSignature',
15908
+ },
15909
+ { type: 'error', inputs: [], name: 'ETHTransferFailed' },
15910
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
15911
+ { type: 'error', inputs: [], name: 'IncorrectAmountSent' },
15912
+ {
15913
+ type: 'error',
16326
15914
  inputs: [
16327
- { name: 'newAuthority', internalType: 'address', type: 'address' },
15915
+ { name: 'account', internalType: 'address', type: 'address' },
15916
+ { name: 'currentNonce', internalType: 'uint256', type: 'uint256' },
16328
15917
  ],
16329
- name: 'setAuthority',
16330
- outputs: [],
16331
- stateMutability: 'nonpayable',
15918
+ name: 'InvalidAccountNonce',
16332
15919
  },
15920
+ { type: 'error', inputs: [], name: 'InvalidRecipient' },
15921
+ { type: 'error', inputs: [], name: 'InvalidShortString' },
15922
+ { type: 'error', inputs: [], name: 'InvalidSignature' },
15923
+ { type: 'error', inputs: [], name: 'InvalidTokenPrice' },
15924
+ { type: 'error', inputs: [], name: 'NoUriForNonexistentToken' },
16333
15925
  {
16334
- type: 'function',
16335
- inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
16336
- name: 'supportsInterface',
16337
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
16338
- stateMutability: 'view',
15926
+ type: 'error',
15927
+ inputs: [{ name: 'handler', internalType: 'address', type: 'address' }],
15928
+ name: 'NotARedeemHandler',
16339
15929
  },
16340
15930
  {
16341
- type: 'function',
16342
- inputs: [],
16343
- name: 'symbol',
16344
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
16345
- stateMutability: 'pure',
15931
+ type: 'error',
15932
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
15933
+ name: 'SafeERC20FailedOperation',
15934
+ },
15935
+ {
15936
+ type: 'error',
15937
+ inputs: [{ name: 'str', internalType: 'string', type: 'string' }],
15938
+ name: 'StringTooLong',
15939
+ },
15940
+ { type: 'error', inputs: [], name: 'TokenAlreadyCreated' },
15941
+ { type: 'error', inputs: [], name: 'TokenDoesNotExist' },
15942
+ {
15943
+ type: 'error',
15944
+ inputs: [
15945
+ { name: 'storedTokenAddress', internalType: 'address', type: 'address' },
15946
+ {
15947
+ name: 'expectedTokenAddress',
15948
+ internalType: 'address',
15949
+ type: 'address',
15950
+ },
15951
+ ],
15952
+ name: 'TokenMismatch',
15953
+ },
15954
+ { type: 'error', inputs: [], name: 'TokenNotMintable' },
15955
+ ] as const
15956
+
15957
+ /**
15958
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
15959
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
15960
+ */
15961
+ export const zoraMints1155Address = {
15962
+ 7777777: '0x7777777d57c1C6e472fa379b7b3B6c6ba3835073',
15963
+ 999999999: '0x7777777d57c1C6e472fa379b7b3B6c6ba3835073',
15964
+ } as const
15965
+
15966
+ /**
15967
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
15968
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
15969
+ */
15970
+ export const zoraMints1155Config = {
15971
+ address: zoraMints1155Address,
15972
+ abi: zoraMints1155ABI,
15973
+ } as const
15974
+
15975
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15976
+ // ZoraMintsManagerImpl
15977
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15978
+
15979
+ /**
15980
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
15981
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
15982
+ */
15983
+ export const zoraMintsManagerImplABI = [
15984
+ {
15985
+ type: 'constructor',
15986
+ inputs: [
15987
+ {
15988
+ name: '_premintExecutor',
15989
+ internalType: 'contract IZoraCreator1155PremintExecutorAllVersions',
15990
+ type: 'address',
15991
+ },
15992
+ ],
15993
+ stateMutability: 'nonpayable',
16346
15994
  },
16347
15995
  {
16348
15996
  type: 'function',
16349
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
16350
- name: 'tokenExists',
16351
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
15997
+ inputs: [],
15998
+ name: 'UPGRADE_INTERFACE_VERSION',
15999
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
16352
16000
  stateMutability: 'view',
16353
16001
  },
16354
16002
  {
16355
16003
  type: 'function',
16356
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
16357
- name: 'tokenPrice',
16358
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
16359
- stateMutability: 'view',
16004
+ inputs: [],
16005
+ name: 'acceptOwnership',
16006
+ outputs: [],
16007
+ stateMutability: 'nonpayable',
16360
16008
  },
16361
16009
  {
16362
16010
  type: 'function',
16363
16011
  inputs: [
16012
+ { name: 'callFrom', internalType: 'address', type: 'address' },
16364
16013
  { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
16365
16014
  { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
16366
16015
  { name: 'call', internalType: 'bytes', type: 'bytes' },
16367
16016
  ],
16368
- name: 'transferBatchToManagerAndCall',
16369
- outputs: [{ name: 'callReturn', internalType: 'bytes', type: 'bytes' }],
16017
+ name: 'callWithTransferTokens',
16018
+ outputs: [
16019
+ { name: 'success', internalType: 'bool', type: 'bool' },
16020
+ { name: 'result', internalType: 'bytes', type: 'bytes' },
16021
+ ],
16370
16022
  stateMutability: 'payable',
16371
16023
  },
16372
16024
  {
16373
16025
  type: 'function',
16374
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
16375
- name: 'uri',
16376
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
16377
- stateMutability: 'view',
16378
- },
16379
- {
16380
- type: 'event',
16381
- anonymous: false,
16382
16026
  inputs: [
16383
- {
16384
- name: 'account',
16385
- internalType: 'address',
16386
- type: 'address',
16387
- indexed: true,
16388
- },
16389
- {
16390
- name: 'operator',
16391
- internalType: 'address',
16392
- type: 'address',
16393
- indexed: true,
16394
- },
16395
- { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
16027
+ { name: 'caller', internalType: 'address', type: 'address' },
16028
+ { name: '', internalType: 'address', type: 'address' },
16029
+ { name: '', internalType: 'bytes4', type: 'bytes4' },
16396
16030
  ],
16397
- name: 'ApprovalForAll',
16031
+ name: 'canCall',
16032
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
16033
+ stateMutability: 'view',
16398
16034
  },
16399
16035
  {
16400
- type: 'event',
16401
- anonymous: false,
16036
+ type: 'function',
16402
16037
  inputs: [
16403
16038
  {
16404
- name: 'authority',
16405
- internalType: 'address',
16039
+ name: 'zoraCreator1155Contract',
16040
+ internalType: 'contract IMintWithSparks',
16406
16041
  type: 'address',
16407
- indexed: false,
16408
- },
16409
- ],
16410
- name: 'AuthorityUpdated',
16411
- },
16412
- { type: 'event', anonymous: false, inputs: [], name: 'ContractURIUpdated' },
16413
- { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' },
16414
- {
16415
- type: 'event',
16416
- anonymous: false,
16417
- inputs: [
16418
- {
16419
- name: 'tokenId',
16420
- internalType: 'uint256',
16421
- type: 'uint256',
16422
- indexed: true,
16423
16042
  },
16043
+ { name: 'minter', internalType: 'contract IMinter1155', type: 'address' },
16424
16044
  {
16425
- name: 'price',
16045
+ name: 'zoraCreator1155TokenId',
16426
16046
  internalType: 'uint256',
16427
16047
  type: 'uint256',
16428
- indexed: true,
16429
16048
  },
16430
16049
  {
16431
- name: 'tokenAddress',
16432
- internalType: 'address',
16433
- type: 'address',
16434
- indexed: true,
16050
+ name: 'collectMintArguments',
16051
+ internalType: 'struct ICollectWithZoraSparks.CollectMintArguments',
16052
+ type: 'tuple',
16053
+ components: [
16054
+ {
16055
+ name: 'mintRewardsRecipients',
16056
+ internalType: 'address[]',
16057
+ type: 'address[]',
16058
+ },
16059
+ { name: 'minterArguments', internalType: 'bytes', type: 'bytes' },
16060
+ { name: 'mintComment', internalType: 'string', type: 'string' },
16061
+ ],
16435
16062
  },
16436
16063
  ],
16437
- name: 'TokenCreated',
16064
+ name: 'collect',
16065
+ outputs: [],
16066
+ stateMutability: 'payable',
16438
16067
  },
16439
16068
  {
16440
- type: 'event',
16441
- anonymous: false,
16069
+ type: 'function',
16442
16070
  inputs: [
16443
16071
  {
16444
- name: 'operator',
16445
- internalType: 'address',
16446
- type: 'address',
16447
- indexed: true,
16072
+ name: 'contractConfig',
16073
+ internalType: 'struct ContractWithAdditionalAdminsCreationConfig',
16074
+ type: 'tuple',
16075
+ components: [
16076
+ { name: 'contractAdmin', internalType: 'address', type: 'address' },
16077
+ { name: 'contractURI', internalType: 'string', type: 'string' },
16078
+ { name: 'contractName', internalType: 'string', type: 'string' },
16079
+ {
16080
+ name: 'additionalAdmins',
16081
+ internalType: 'address[]',
16082
+ type: 'address[]',
16083
+ },
16084
+ ],
16448
16085
  },
16449
- { name: 'from', internalType: 'address', type: 'address', indexed: true },
16450
- { name: 'to', internalType: 'address', type: 'address', indexed: true },
16086
+ { name: 'tokenContract', internalType: 'address', type: 'address' },
16451
16087
  {
16452
- name: 'ids',
16453
- internalType: 'uint256[]',
16454
- type: 'uint256[]',
16455
- indexed: false,
16088
+ name: 'premintConfig',
16089
+ internalType: 'struct PremintConfigEncoded',
16090
+ type: 'tuple',
16091
+ components: [
16092
+ { name: 'uid', internalType: 'uint32', type: 'uint32' },
16093
+ { name: 'version', internalType: 'uint32', type: 'uint32' },
16094
+ { name: 'deleted', internalType: 'bool', type: 'bool' },
16095
+ { name: 'tokenConfig', internalType: 'bytes', type: 'bytes' },
16096
+ {
16097
+ name: 'premintConfigVersion',
16098
+ internalType: 'bytes32',
16099
+ type: 'bytes32',
16100
+ },
16101
+ ],
16456
16102
  },
16103
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
16457
16104
  {
16458
- name: 'values',
16459
- internalType: 'uint256[]',
16460
- type: 'uint256[]',
16461
- indexed: false,
16462
- },
16463
- ],
16464
- name: 'TransferBatch',
16465
- },
16466
- {
16467
- type: 'event',
16468
- anonymous: false,
16469
- inputs: [
16470
- {
16471
- name: 'operator',
16472
- internalType: 'address',
16473
- type: 'address',
16474
- indexed: true,
16475
- },
16476
- { name: 'from', internalType: 'address', type: 'address', indexed: true },
16477
- { name: 'to', internalType: 'address', type: 'address', indexed: true },
16478
- { name: 'id', internalType: 'uint256', type: 'uint256', indexed: false },
16479
- {
16480
- name: 'value',
16481
- internalType: 'uint256',
16482
- type: 'uint256',
16483
- indexed: false,
16484
- },
16485
- ],
16486
- name: 'TransferSingle',
16487
- },
16488
- {
16489
- type: 'event',
16490
- anonymous: false,
16491
- inputs: [
16492
- { name: 'value', internalType: 'string', type: 'string', indexed: false },
16493
- { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
16494
- ],
16495
- name: 'URI',
16496
- },
16497
- {
16498
- type: 'event',
16499
- anonymous: false,
16500
- inputs: [
16501
- {
16502
- name: 'contractURI',
16503
- internalType: 'string',
16504
- type: 'string',
16505
- indexed: false,
16506
- },
16507
- {
16508
- name: 'baseURI',
16509
- internalType: 'string',
16510
- type: 'string',
16511
- indexed: false,
16512
- },
16513
- ],
16514
- name: 'URIsUpdated',
16515
- },
16516
- {
16517
- type: 'error',
16518
- inputs: [{ name: 'authority', internalType: 'address', type: 'address' }],
16519
- name: 'AccessManagedInvalidAuthority',
16520
- },
16521
- {
16522
- type: 'error',
16523
- inputs: [
16524
- { name: 'caller', internalType: 'address', type: 'address' },
16525
- { name: 'delay', internalType: 'uint32', type: 'uint32' },
16526
- ],
16527
- name: 'AccessManagedRequiredDelay',
16528
- },
16529
- {
16530
- type: 'error',
16531
- inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
16532
- name: 'AccessManagedUnauthorized',
16533
- },
16534
- {
16535
- type: 'error',
16536
- inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
16537
- name: 'AddressEmptyCode',
16538
- },
16539
- {
16540
- type: 'error',
16541
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
16542
- name: 'AddressInsufficientBalance',
16543
- },
16544
- {
16545
- type: 'error',
16546
- inputs: [
16547
- { name: 'lengthA', internalType: 'uint256', type: 'uint256' },
16548
- { name: 'lengthB', internalType: 'uint256', type: 'uint256' },
16549
- ],
16550
- name: 'ArrayLengthMismatch',
16551
- },
16552
- {
16553
- type: 'error',
16554
- inputs: [{ name: 'returnData', internalType: 'bytes', type: 'bytes' }],
16555
- name: 'CallFailed',
16556
- },
16557
- {
16558
- type: 'error',
16559
- inputs: [
16560
- { name: 'sender', internalType: 'address', type: 'address' },
16561
- { name: 'balance', internalType: 'uint256', type: 'uint256' },
16562
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
16563
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16564
- ],
16565
- name: 'ERC1155InsufficientBalance',
16566
- },
16567
- {
16568
- type: 'error',
16569
- inputs: [{ name: 'approver', internalType: 'address', type: 'address' }],
16570
- name: 'ERC1155InvalidApprover',
16571
- },
16572
- {
16573
- type: 'error',
16574
- inputs: [
16575
- { name: 'idsLength', internalType: 'uint256', type: 'uint256' },
16576
- { name: 'valuesLength', internalType: 'uint256', type: 'uint256' },
16577
- ],
16578
- name: 'ERC1155InvalidArrayLength',
16579
- },
16580
- {
16581
- type: 'error',
16582
- inputs: [{ name: 'operator', internalType: 'address', type: 'address' }],
16583
- name: 'ERC1155InvalidOperator',
16584
- },
16585
- {
16586
- type: 'error',
16587
- inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }],
16588
- name: 'ERC1155InvalidReceiver',
16589
- },
16590
- {
16591
- type: 'error',
16592
- inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
16593
- name: 'ERC1155InvalidSender',
16594
- },
16595
- {
16596
- type: 'error',
16597
- inputs: [
16598
- { name: 'operator', internalType: 'address', type: 'address' },
16599
- { name: 'owner', internalType: 'address', type: 'address' },
16600
- ],
16601
- name: 'ERC1155MissingApprovalForAll',
16602
- },
16603
- { type: 'error', inputs: [], name: 'ERC20TransferSlippage' },
16604
- {
16605
- type: 'error',
16606
- inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }],
16607
- name: 'ERC2612ExpiredSignature',
16608
- },
16609
- { type: 'error', inputs: [], name: 'ETHTransferFailed' },
16610
- { type: 'error', inputs: [], name: 'FailedInnerCall' },
16611
- { type: 'error', inputs: [], name: 'IncorrectAmountSent' },
16612
- {
16613
- type: 'error',
16614
- inputs: [
16615
- { name: 'account', internalType: 'address', type: 'address' },
16616
- { name: 'currentNonce', internalType: 'uint256', type: 'uint256' },
16617
- ],
16618
- name: 'InvalidAccountNonce',
16619
- },
16620
- { type: 'error', inputs: [], name: 'InvalidRecipient' },
16621
- { type: 'error', inputs: [], name: 'InvalidShortString' },
16622
- { type: 'error', inputs: [], name: 'InvalidSignature' },
16623
- { type: 'error', inputs: [], name: 'InvalidTokenPrice' },
16624
- { type: 'error', inputs: [], name: 'NoUriForNonexistentToken' },
16625
- {
16626
- type: 'error',
16627
- inputs: [{ name: 'handler', internalType: 'address', type: 'address' }],
16628
- name: 'NotARedeemHandler',
16629
- },
16630
- {
16631
- type: 'error',
16632
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
16633
- name: 'SafeERC20FailedOperation',
16634
- },
16635
- {
16636
- type: 'error',
16637
- inputs: [{ name: 'str', internalType: 'string', type: 'string' }],
16638
- name: 'StringTooLong',
16639
- },
16640
- { type: 'error', inputs: [], name: 'TokenAlreadyCreated' },
16641
- { type: 'error', inputs: [], name: 'TokenDoesNotExist' },
16642
- {
16643
- type: 'error',
16644
- inputs: [
16645
- { name: 'storedTokenAddress', internalType: 'address', type: 'address' },
16646
- {
16647
- name: 'expectedTokenAddress',
16648
- internalType: 'address',
16649
- type: 'address',
16650
- },
16651
- ],
16652
- name: 'TokenMismatch',
16653
- },
16654
- { type: 'error', inputs: [], name: 'TokenNotMintable' },
16655
- ] as const
16656
-
16657
- /**
16658
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
16659
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
16660
- */
16661
- export const zoraMints1155Address = {
16662
- 7777777: '0x7777777d57c1C6e472fa379b7b3B6c6ba3835073',
16663
- 999999999: '0x7777777d57c1C6e472fa379b7b3B6c6ba3835073',
16664
- } as const
16665
-
16666
- /**
16667
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
16668
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777d57c1C6e472fa379b7b3B6c6ba3835073)
16669
- */
16670
- export const zoraMints1155Config = {
16671
- address: zoraMints1155Address,
16672
- abi: zoraMints1155ABI,
16673
- } as const
16674
-
16675
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
16676
- // ZoraMintsManagerImpl
16677
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
16678
-
16679
- /**
16680
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
16681
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
16682
- */
16683
- export const zoraMintsManagerImplABI = [
16684
- {
16685
- type: 'constructor',
16686
- inputs: [
16687
- {
16688
- name: '_premintExecutor',
16689
- internalType: 'contract IZoraCreator1155PremintExecutorAllVersions',
16690
- type: 'address',
16691
- },
16692
- ],
16693
- stateMutability: 'nonpayable',
16694
- },
16695
- {
16696
- type: 'function',
16697
- inputs: [],
16698
- name: 'UPGRADE_INTERFACE_VERSION',
16699
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
16700
- stateMutability: 'view',
16701
- },
16702
- {
16703
- type: 'function',
16704
- inputs: [],
16705
- name: 'acceptOwnership',
16706
- outputs: [],
16707
- stateMutability: 'nonpayable',
16708
- },
16709
- {
16710
- type: 'function',
16711
- inputs: [
16712
- { name: 'callFrom', internalType: 'address', type: 'address' },
16713
- { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
16714
- { name: 'quantities', internalType: 'uint256[]', type: 'uint256[]' },
16715
- { name: 'call', internalType: 'bytes', type: 'bytes' },
16716
- ],
16717
- name: 'callWithTransferTokens',
16718
- outputs: [
16719
- { name: 'success', internalType: 'bool', type: 'bool' },
16720
- { name: 'result', internalType: 'bytes', type: 'bytes' },
16721
- ],
16722
- stateMutability: 'payable',
16723
- },
16724
- {
16725
- type: 'function',
16726
- inputs: [
16727
- { name: 'caller', internalType: 'address', type: 'address' },
16728
- { name: '', internalType: 'address', type: 'address' },
16729
- { name: '', internalType: 'bytes4', type: 'bytes4' },
16730
- ],
16731
- name: 'canCall',
16732
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
16733
- stateMutability: 'view',
16734
- },
16735
- {
16736
- type: 'function',
16737
- inputs: [
16738
- {
16739
- name: 'zoraCreator1155Contract',
16740
- internalType: 'contract IMintWithSparks',
16741
- type: 'address',
16742
- },
16743
- { name: 'minter', internalType: 'contract IMinter1155', type: 'address' },
16744
- {
16745
- name: 'zoraCreator1155TokenId',
16746
- internalType: 'uint256',
16747
- type: 'uint256',
16748
- },
16749
- {
16750
- name: 'collectMintArguments',
16751
- internalType: 'struct ICollectWithZoraSparks.CollectMintArguments',
16752
- type: 'tuple',
16753
- components: [
16754
- {
16755
- name: 'mintRewardsRecipients',
16756
- internalType: 'address[]',
16757
- type: 'address[]',
16758
- },
16759
- { name: 'minterArguments', internalType: 'bytes', type: 'bytes' },
16760
- { name: 'mintComment', internalType: 'string', type: 'string' },
16761
- ],
16762
- },
16763
- ],
16764
- name: 'collect',
16765
- outputs: [],
16766
- stateMutability: 'payable',
16767
- },
16768
- {
16769
- type: 'function',
16770
- inputs: [
16771
- {
16772
- name: 'contractConfig',
16773
- internalType: 'struct ContractWithAdditionalAdminsCreationConfig',
16774
- type: 'tuple',
16775
- components: [
16776
- { name: 'contractAdmin', internalType: 'address', type: 'address' },
16777
- { name: 'contractURI', internalType: 'string', type: 'string' },
16778
- { name: 'contractName', internalType: 'string', type: 'string' },
16779
- {
16780
- name: 'additionalAdmins',
16781
- internalType: 'address[]',
16782
- type: 'address[]',
16783
- },
16784
- ],
16785
- },
16786
- { name: 'tokenContract', internalType: 'address', type: 'address' },
16787
- {
16788
- name: 'premintConfig',
16789
- internalType: 'struct PremintConfigEncoded',
16790
- type: 'tuple',
16791
- components: [
16792
- { name: 'uid', internalType: 'uint32', type: 'uint32' },
16793
- { name: 'version', internalType: 'uint32', type: 'uint32' },
16794
- { name: 'deleted', internalType: 'bool', type: 'bool' },
16795
- { name: 'tokenConfig', internalType: 'bytes', type: 'bytes' },
16796
- {
16797
- name: 'premintConfigVersion',
16798
- internalType: 'bytes32',
16799
- type: 'bytes32',
16800
- },
16801
- ],
16802
- },
16803
- { name: 'signature', internalType: 'bytes', type: 'bytes' },
16804
- {
16805
- name: 'mintArguments',
16806
- internalType: 'struct MintArguments',
16807
- type: 'tuple',
16808
- components: [
16809
- { name: 'mintRecipient', internalType: 'address', type: 'address' },
16810
- { name: 'mintComment', internalType: 'string', type: 'string' },
16811
- {
16812
- name: 'mintRewardsRecipients',
16813
- internalType: 'address[]',
16814
- type: 'address[]',
16815
- },
16816
- ],
16817
- },
16818
- { name: 'firstMinter', internalType: 'address', type: 'address' },
16819
- { name: 'signerContract', internalType: 'address', type: 'address' },
16820
- ],
16821
- name: 'collectPremint',
16822
- outputs: [
16823
- {
16824
- name: 'result',
16825
- internalType: 'struct PremintResult',
16826
- type: 'tuple',
16827
- components: [
16828
- { name: 'contractAddress', internalType: 'address', type: 'address' },
16829
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16830
- { name: 'createdNewContract', internalType: 'bool', type: 'bool' },
16831
- ],
16832
- },
16833
- ],
16834
- stateMutability: 'payable',
16835
- },
16836
- {
16837
- type: 'function',
16838
- inputs: [
16839
- {
16840
- name: 'contractConfig',
16841
- internalType: 'struct ContractCreationConfig',
16842
- type: 'tuple',
16843
- components: [
16844
- { name: 'contractAdmin', internalType: 'address', type: 'address' },
16845
- { name: 'contractURI', internalType: 'string', type: 'string' },
16846
- { name: 'contractName', internalType: 'string', type: 'string' },
16847
- ],
16848
- },
16849
- {
16850
- name: 'premintConfig',
16851
- internalType: 'struct PremintConfigV2',
16852
- type: 'tuple',
16853
- components: [
16854
- {
16855
- name: 'tokenConfig',
16856
- internalType: 'struct TokenCreationConfigV2',
16857
- type: 'tuple',
16858
- components: [
16859
- { name: 'tokenURI', internalType: 'string', type: 'string' },
16860
- { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
16861
- {
16862
- name: 'maxTokensPerAddress',
16863
- internalType: 'uint64',
16864
- type: 'uint64',
16865
- },
16866
- { name: 'pricePerToken', internalType: 'uint96', type: 'uint96' },
16867
- { name: 'mintStart', internalType: 'uint64', type: 'uint64' },
16868
- { name: 'mintDuration', internalType: 'uint64', type: 'uint64' },
16869
- { name: 'royaltyBPS', internalType: 'uint32', type: 'uint32' },
16870
- {
16871
- name: 'payoutRecipient',
16872
- internalType: 'address',
16873
- type: 'address',
16874
- },
16875
- {
16876
- name: 'fixedPriceMinter',
16877
- internalType: 'address',
16878
- type: 'address',
16879
- },
16880
- {
16881
- name: 'createReferral',
16882
- internalType: 'address',
16883
- type: 'address',
16884
- },
16885
- ],
16886
- },
16887
- { name: 'uid', internalType: 'uint32', type: 'uint32' },
16888
- { name: 'version', internalType: 'uint32', type: 'uint32' },
16889
- { name: 'deleted', internalType: 'bool', type: 'bool' },
16890
- ],
16891
- },
16892
- { name: 'signature', internalType: 'bytes', type: 'bytes' },
16893
- {
16894
- name: 'mintArguments',
16895
- internalType: 'struct MintArguments',
16896
- type: 'tuple',
16897
- components: [
16898
- { name: 'mintRecipient', internalType: 'address', type: 'address' },
16899
- { name: 'mintComment', internalType: 'string', type: 'string' },
16900
- {
16901
- name: 'mintRewardsRecipients',
16902
- internalType: 'address[]',
16903
- type: 'address[]',
16904
- },
16905
- ],
16906
- },
16907
- { name: 'signerContract', internalType: 'address', type: 'address' },
16908
- ],
16909
- name: 'collectPremintV2',
16910
- outputs: [
16911
- {
16912
- name: 'result',
16913
- internalType: 'struct PremintResult',
16914
- type: 'tuple',
16915
- components: [
16916
- { name: 'contractAddress', internalType: 'address', type: 'address' },
16917
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16918
- { name: 'createdNewContract', internalType: 'bool', type: 'bool' },
16919
- ],
16920
- },
16921
- ],
16922
- stateMutability: 'payable',
16923
- },
16924
- {
16925
- type: 'function',
16926
- inputs: [],
16927
- name: 'contractName',
16928
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
16929
- stateMutability: 'pure',
16930
- },
16931
- {
16932
- type: 'function',
16933
- inputs: [],
16934
- name: 'contractURI',
16935
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
16936
- stateMutability: 'view',
16937
- },
16938
- {
16939
- type: 'function',
16940
- inputs: [],
16941
- name: 'contractVersion',
16942
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
16943
- stateMutability: 'pure',
16944
- },
16945
- {
16946
- type: 'function',
16947
- inputs: [
16948
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16949
- {
16950
- name: 'tokenConfig',
16951
- internalType: 'struct TokenConfig',
16952
- type: 'tuple',
16953
- components: [
16954
- { name: 'price', internalType: 'uint256', type: 'uint256' },
16955
- { name: 'tokenAddress', internalType: 'address', type: 'address' },
16956
- { name: 'redeemHandler', internalType: 'address', type: 'address' },
16957
- ],
16958
- },
16959
- { name: 'defaultMintable', internalType: 'bool', type: 'bool' },
16960
- ],
16961
- name: 'createToken',
16962
- outputs: [],
16963
- stateMutability: 'nonpayable',
16964
- },
16965
- {
16966
- type: 'function',
16967
- inputs: [{ name: 'minterArguments', internalType: 'bytes', type: 'bytes' }],
16968
- name: 'decodeMintRecipientAndComment',
16969
- outputs: [
16970
- { name: 'mintTo', internalType: 'address', type: 'address' },
16971
- { name: 'mintComment', internalType: 'string', type: 'string' },
16972
- ],
16973
- stateMutability: 'pure',
16974
- },
16975
- {
16976
- type: 'function',
16977
- inputs: [],
16978
- name: 'getEthPrice',
16979
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
16980
- stateMutability: 'view',
16981
- },
16982
- {
16983
- type: 'function',
16984
- inputs: [],
16985
- name: 'implementation',
16986
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
16987
- stateMutability: 'view',
16988
- },
16989
- {
16990
- type: 'function',
16991
- inputs: [
16992
- { name: 'defaultOwner', internalType: 'address', type: 'address' },
16993
- { name: 'zoraSparksSalt', internalType: 'bytes32', type: 'bytes32' },
16994
- { name: 'zoraSparksCreationCode', internalType: 'bytes', type: 'bytes' },
16995
- { name: 'initialEthTokenId', internalType: 'uint256', type: 'uint256' },
16996
- {
16997
- name: 'initialEthTokenPrice',
16998
- internalType: 'uint256',
16999
- type: 'uint256',
17000
- },
17001
- { name: 'newBaseURI', internalType: 'string', type: 'string' },
17002
- { name: 'newContractURI', internalType: 'string', type: 'string' },
17003
- ],
17004
- name: 'initialize',
17005
- outputs: [
17006
- {
17007
- name: 'mints',
17008
- internalType: 'contract IZoraSparks1155',
17009
- type: 'address',
17010
- },
17011
- ],
17012
- stateMutability: 'nonpayable',
17013
- },
17014
- {
17015
- type: 'function',
17016
- inputs: [
17017
- { name: 'tokenAddress', internalType: 'address', type: 'address' },
17018
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
17019
- { name: 'recipient', internalType: 'address', type: 'address' },
17020
- ],
17021
- name: 'mintWithERC20',
17022
- outputs: [
17023
- { name: 'mintableTokenId', internalType: 'uint256', type: 'uint256' },
17024
- ],
17025
- stateMutability: 'nonpayable',
17026
- },
17027
- {
17028
- type: 'function',
17029
- inputs: [
17030
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
17031
- { name: 'recipient', internalType: 'address', type: 'address' },
17032
- ],
17033
- name: 'mintWithEth',
17034
- outputs: [
17035
- { name: 'mintableTokenId', internalType: 'uint256', type: 'uint256' },
17036
- ],
17037
- stateMutability: 'payable',
17038
- },
17039
- {
17040
- type: 'function',
17041
- inputs: [],
17042
- name: 'mintableEthToken',
17043
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
17044
- stateMutability: 'view',
17045
- },
17046
- {
17047
- type: 'function',
17048
- inputs: [
17049
- { name: '', internalType: 'address', type: 'address' },
17050
- { name: 'from', internalType: 'address', type: 'address' },
17051
- { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
17052
- { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
17053
- { name: 'data', internalType: 'bytes', type: 'bytes' },
17054
- ],
17055
- name: 'onERC1155BatchReceived',
17056
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
17057
- stateMutability: 'nonpayable',
17058
- },
17059
- {
17060
- type: 'function',
17061
- inputs: [
17062
- { name: '', internalType: 'address', type: 'address' },
17063
- { name: 'from', internalType: 'address', type: 'address' },
17064
- { name: 'id', internalType: 'uint256', type: 'uint256' },
17065
- { name: 'value', internalType: 'uint256', type: 'uint256' },
17066
- { name: 'data', internalType: 'bytes', type: 'bytes' },
17067
- ],
17068
- name: 'onERC1155Received',
17069
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
17070
- stateMutability: 'nonpayable',
17071
- },
17072
- {
17073
- type: 'function',
17074
- inputs: [],
17075
- name: 'owner',
17076
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
17077
- stateMutability: 'view',
17078
- },
17079
- {
17080
- type: 'function',
17081
- inputs: [],
17082
- name: 'pendingOwner',
17083
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
17084
- stateMutability: 'view',
17085
- },
17086
- {
17087
- type: 'function',
17088
- inputs: [],
17089
- name: 'proxiableUUID',
17090
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
17091
- stateMutability: 'view',
17092
- },
17093
- {
17094
- type: 'function',
17095
- inputs: [],
17096
- name: 'renounceOwnership',
17097
- outputs: [],
17098
- stateMutability: 'nonpayable',
17099
- },
17100
- {
17101
- type: 'function',
17102
- inputs: [
17103
- { name: 'tokenAddress', internalType: 'address', type: 'address' },
17104
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
17105
- ],
17106
- name: 'setDefaultMintable',
17107
- outputs: [],
17108
- stateMutability: 'nonpayable',
17109
- },
17110
- {
17111
- type: 'function',
17112
- inputs: [
17113
- { name: 'newContractURI', internalType: 'string', type: 'string' },
17114
- { name: 'newBaseURI', internalType: 'string', type: 'string' },
17115
- {
17116
- name: 'tokenIdsToNotifyUpdate',
17117
- internalType: 'uint256[]',
17118
- type: 'uint256[]',
17119
- },
17120
- ],
17121
- name: 'setMetadataURIs',
17122
- outputs: [],
17123
- stateMutability: 'nonpayable',
17124
- },
17125
- {
17126
- type: 'function',
17127
- inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
17128
- name: 'transferOwnership',
17129
- outputs: [],
17130
- stateMutability: 'nonpayable',
17131
- },
17132
- {
17133
- type: 'function',
17134
- inputs: [
17135
- { name: 'newImplementation', internalType: 'address', type: 'address' },
17136
- { name: 'data', internalType: 'bytes', type: 'bytes' },
17137
- ],
17138
- name: 'upgradeToAndCall',
17139
- outputs: [],
17140
- stateMutability: 'payable',
17141
- },
17142
- {
17143
- type: 'function',
17144
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
17145
- name: 'uri',
17146
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
17147
- stateMutability: 'view',
17148
- },
17149
- {
17150
- type: 'function',
17151
- inputs: [],
17152
- name: 'zoraSparks1155',
17153
- outputs: [
17154
- { name: '', internalType: 'contract IZoraSparks1155', type: 'address' },
17155
- ],
17156
- stateMutability: 'view',
17157
- },
17158
- {
17159
- type: 'event',
17160
- anonymous: false,
17161
- inputs: [
17162
- {
17163
- name: 'tokenIds',
17164
- internalType: 'uint256[]',
17165
- type: 'uint256[]',
17166
- indexed: true,
17167
- },
17168
- {
17169
- name: 'quantities',
17170
- internalType: 'uint256[]',
17171
- type: 'uint256[]',
17172
- indexed: false,
17173
- },
17174
- {
17175
- name: 'zoraCreator1155Contract',
17176
- internalType: 'address',
17177
- type: 'address',
17178
- indexed: true,
17179
- },
17180
- {
17181
- name: 'zoraCreator1155TokenId',
17182
- internalType: 'uint256',
17183
- type: 'uint256',
17184
- indexed: true,
17185
- },
17186
- ],
17187
- name: 'Collected',
17188
- },
17189
- {
17190
- type: 'event',
17191
- anonymous: false,
17192
- inputs: [
17193
- {
17194
- name: 'tokenAddress',
17195
- internalType: 'address',
17196
- type: 'address',
17197
- indexed: false,
17198
- },
17199
- {
17200
- name: 'tokenId',
17201
- internalType: 'uint256',
17202
- type: 'uint256',
17203
- indexed: false,
17204
- },
17205
- ],
17206
- name: 'DefaultMintableTokenSet',
17207
- },
17208
- {
17209
- type: 'event',
17210
- anonymous: false,
17211
- inputs: [
17212
- {
17213
- name: 'version',
17214
- internalType: 'uint64',
17215
- type: 'uint64',
17216
- indexed: false,
17217
- },
17218
- ],
17219
- name: 'Initialized',
17220
- },
17221
- {
17222
- type: 'event',
17223
- anonymous: false,
17224
- inputs: [
17225
- {
17226
- name: 'sender',
17227
- internalType: 'address',
17228
- type: 'address',
17229
- indexed: true,
17230
- },
17231
- {
17232
- name: 'tokenContract',
17233
- internalType: 'address',
17234
- type: 'address',
17235
- indexed: true,
17236
- },
17237
- {
17238
- name: 'tokenId',
17239
- internalType: 'uint256',
17240
- type: 'uint256',
17241
- indexed: true,
17242
- },
17243
- {
17244
- name: 'quantity',
17245
- internalType: 'uint256',
17246
- type: 'uint256',
17247
- indexed: false,
17248
- },
17249
- {
17250
- name: 'comment',
17251
- internalType: 'string',
17252
- type: 'string',
17253
- indexed: false,
16105
+ name: 'mintArguments',
16106
+ internalType: 'struct MintArguments',
16107
+ type: 'tuple',
16108
+ components: [
16109
+ { name: 'mintRecipient', internalType: 'address', type: 'address' },
16110
+ { name: 'mintComment', internalType: 'string', type: 'string' },
16111
+ {
16112
+ name: 'mintRewardsRecipients',
16113
+ internalType: 'address[]',
16114
+ type: 'address[]',
16115
+ },
16116
+ ],
17254
16117
  },
16118
+ { name: 'firstMinter', internalType: 'address', type: 'address' },
16119
+ { name: 'signerContract', internalType: 'address', type: 'address' },
17255
16120
  ],
17256
- name: 'MintComment',
17257
- },
17258
- {
17259
- type: 'event',
17260
- anonymous: false,
17261
- inputs: [
17262
- {
17263
- name: 'previousOwner',
17264
- internalType: 'address',
17265
- type: 'address',
17266
- indexed: true,
17267
- },
16121
+ name: 'collectPremint',
16122
+ outputs: [
17268
16123
  {
17269
- name: 'newOwner',
17270
- internalType: 'address',
17271
- type: 'address',
17272
- indexed: true,
16124
+ name: 'result',
16125
+ internalType: 'struct PremintResult',
16126
+ type: 'tuple',
16127
+ components: [
16128
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
16129
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16130
+ { name: 'createdNewContract', internalType: 'bool', type: 'bool' },
16131
+ ],
17273
16132
  },
17274
16133
  ],
17275
- name: 'OwnershipTransferStarted',
16134
+ stateMutability: 'payable',
17276
16135
  },
17277
16136
  {
17278
- type: 'event',
17279
- anonymous: false,
16137
+ type: 'function',
17280
16138
  inputs: [
17281
16139
  {
17282
- name: 'previousOwner',
17283
- internalType: 'address',
17284
- type: 'address',
17285
- indexed: true,
17286
- },
17287
- {
17288
- name: 'newOwner',
17289
- internalType: 'address',
17290
- type: 'address',
17291
- indexed: true,
16140
+ name: 'contractConfig',
16141
+ internalType: 'struct ContractCreationConfig',
16142
+ type: 'tuple',
16143
+ components: [
16144
+ { name: 'contractAdmin', internalType: 'address', type: 'address' },
16145
+ { name: 'contractURI', internalType: 'string', type: 'string' },
16146
+ { name: 'contractName', internalType: 'string', type: 'string' },
16147
+ ],
17292
16148
  },
17293
- ],
17294
- name: 'OwnershipTransferred',
17295
- },
17296
- {
17297
- type: 'event',
17298
- anonymous: false,
17299
- inputs: [
17300
16149
  {
17301
- name: 'contractURI',
17302
- internalType: 'string',
17303
- type: 'string',
17304
- indexed: false,
16150
+ name: 'premintConfig',
16151
+ internalType: 'struct PremintConfigV2',
16152
+ type: 'tuple',
16153
+ components: [
16154
+ {
16155
+ name: 'tokenConfig',
16156
+ internalType: 'struct TokenCreationConfigV2',
16157
+ type: 'tuple',
16158
+ components: [
16159
+ { name: 'tokenURI', internalType: 'string', type: 'string' },
16160
+ { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
16161
+ {
16162
+ name: 'maxTokensPerAddress',
16163
+ internalType: 'uint64',
16164
+ type: 'uint64',
16165
+ },
16166
+ { name: 'pricePerToken', internalType: 'uint96', type: 'uint96' },
16167
+ { name: 'mintStart', internalType: 'uint64', type: 'uint64' },
16168
+ { name: 'mintDuration', internalType: 'uint64', type: 'uint64' },
16169
+ { name: 'royaltyBPS', internalType: 'uint32', type: 'uint32' },
16170
+ {
16171
+ name: 'payoutRecipient',
16172
+ internalType: 'address',
16173
+ type: 'address',
16174
+ },
16175
+ {
16176
+ name: 'fixedPriceMinter',
16177
+ internalType: 'address',
16178
+ type: 'address',
16179
+ },
16180
+ {
16181
+ name: 'createReferral',
16182
+ internalType: 'address',
16183
+ type: 'address',
16184
+ },
16185
+ ],
16186
+ },
16187
+ { name: 'uid', internalType: 'uint32', type: 'uint32' },
16188
+ { name: 'version', internalType: 'uint32', type: 'uint32' },
16189
+ { name: 'deleted', internalType: 'bool', type: 'bool' },
16190
+ ],
17305
16191
  },
16192
+ { name: 'signature', internalType: 'bytes', type: 'bytes' },
17306
16193
  {
17307
- name: 'baseURI',
17308
- internalType: 'string',
17309
- type: 'string',
17310
- indexed: false,
16194
+ name: 'mintArguments',
16195
+ internalType: 'struct MintArguments',
16196
+ type: 'tuple',
16197
+ components: [
16198
+ { name: 'mintRecipient', internalType: 'address', type: 'address' },
16199
+ { name: 'mintComment', internalType: 'string', type: 'string' },
16200
+ {
16201
+ name: 'mintRewardsRecipients',
16202
+ internalType: 'address[]',
16203
+ type: 'address[]',
16204
+ },
16205
+ ],
17311
16206
  },
16207
+ { name: 'signerContract', internalType: 'address', type: 'address' },
17312
16208
  ],
17313
- name: 'URIsUpdated',
17314
- },
17315
- {
17316
- type: 'event',
17317
- anonymous: false,
17318
- inputs: [
16209
+ name: 'collectPremintV2',
16210
+ outputs: [
17319
16211
  {
17320
- name: 'implementation',
17321
- internalType: 'address',
17322
- type: 'address',
17323
- indexed: true,
17324
- },
17325
- ],
17326
- name: 'Upgraded',
17327
- },
17328
- {
17329
- type: 'error',
17330
- inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
17331
- name: 'AddressEmptyCode',
17332
- },
17333
- {
17334
- type: 'error',
17335
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
17336
- name: 'AddressInsufficientBalance',
17337
- },
17338
- {
17339
- type: 'error',
17340
- inputs: [
17341
- { name: 'lengthA', internalType: 'uint256', type: 'uint256' },
17342
- { name: 'lengthB', internalType: 'uint256', type: 'uint256' },
17343
- ],
17344
- name: 'ArrayLengthMismatch',
17345
- },
17346
- {
17347
- type: 'error',
17348
- inputs: [
17349
- { name: 'operator', internalType: 'address', type: 'address' },
17350
- { name: 'user', internalType: 'address', type: 'address' },
17351
- ],
17352
- name: 'Burn_NotOwnerOrApproved',
17353
- },
17354
- {
17355
- type: 'error',
17356
- inputs: [{ name: 'reason', internalType: 'bytes', type: 'bytes' }],
17357
- name: 'CallFailed',
17358
- },
17359
- { type: 'error', inputs: [], name: 'Call_TokenIdMismatch' },
17360
- { type: 'error', inputs: [], name: 'CallerNotZoraCreator1155' },
17361
- {
17362
- type: 'error',
17363
- inputs: [
17364
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
17365
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
17366
- { name: 'totalMinted', internalType: 'uint256', type: 'uint256' },
17367
- { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
17368
- ],
17369
- name: 'CannotMintMoreTokens',
17370
- },
17371
- {
17372
- type: 'error',
17373
- inputs: [
17374
- { name: 'proposedAddress', internalType: 'address', type: 'address' },
17375
- ],
17376
- name: 'Config_TransferHookNotSupported',
17377
- },
17378
- { type: 'error', inputs: [], name: 'Create2EmptyBytecode' },
17379
- { type: 'error', inputs: [], name: 'Create2FailedDeployment' },
17380
- {
17381
- type: 'error',
17382
- inputs: [
17383
- { name: 'balance', internalType: 'uint256', type: 'uint256' },
17384
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
17385
- ],
17386
- name: 'Create2InsufficientBalance',
17387
- },
17388
- { type: 'error', inputs: [], name: 'DefaultOwnerCannotBeZero' },
17389
- { type: 'error', inputs: [], name: 'ERC1155BatchReceivedCallFailed' },
17390
- { type: 'error', inputs: [], name: 'ERC1155_MINT_TO_ZERO_ADDRESS' },
17391
- {
17392
- type: 'error',
17393
- inputs: [
17394
- { name: 'implementation', internalType: 'address', type: 'address' },
17395
- ],
17396
- name: 'ERC1967InvalidImplementation',
17397
- },
17398
- { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
17399
- { type: 'error', inputs: [], name: 'ERC20TransferSlippage' },
17400
- { type: 'error', inputs: [], name: 'ETHTransferFailed' },
17401
- {
17402
- type: 'error',
17403
- inputs: [
17404
- { name: 'recipient', internalType: 'address', type: 'address' },
17405
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
17406
- ],
17407
- name: 'ETHWithdrawFailed',
17408
- },
17409
- { type: 'error', inputs: [], name: 'FailedInnerCall' },
17410
- { type: 'error', inputs: [], name: 'FirstMinterAddressZero' },
17411
- {
17412
- type: 'error',
17413
- inputs: [
17414
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
17415
- { name: 'contractValue', internalType: 'uint256', type: 'uint256' },
17416
- ],
17417
- name: 'FundsWithdrawInsolvent',
17418
- },
17419
- { type: 'error', inputs: [], name: 'IncorrectAmountSent' },
17420
- { type: 'error', inputs: [], name: 'InvalidAdminAction' },
17421
- { type: 'error', inputs: [], name: 'InvalidInitialization' },
17422
- {
17423
- type: 'error',
17424
- inputs: [
17425
- { name: 'mintTo', internalType: 'address', type: 'address' },
17426
- { name: 'merkleProof', internalType: 'bytes32[]', type: 'bytes32[]' },
17427
- { name: 'merkleRoot', internalType: 'bytes32', type: 'bytes32' },
16212
+ name: 'result',
16213
+ internalType: 'struct PremintResult',
16214
+ type: 'tuple',
16215
+ components: [
16216
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
16217
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16218
+ { name: 'createdNewContract', internalType: 'bool', type: 'bool' },
16219
+ ],
16220
+ },
17428
16221
  ],
17429
- name: 'InvalidMerkleProof',
17430
- },
17431
- { type: 'error', inputs: [], name: 'InvalidMintSchedule' },
17432
- { type: 'error', inputs: [], name: 'InvalidOwnerForAssociatedZoraSparks' },
17433
- { type: 'error', inputs: [], name: 'InvalidPremintVersion' },
17434
- { type: 'error', inputs: [], name: 'InvalidRecipient' },
17435
- { type: 'error', inputs: [], name: 'InvalidSignature' },
17436
- { type: 'error', inputs: [], name: 'InvalidSignatureVersion' },
17437
- {
17438
- type: 'error',
17439
- inputs: [{ name: 'magicValue', internalType: 'bytes4', type: 'bytes4' }],
17440
- name: 'InvalidSigner',
16222
+ stateMutability: 'payable',
17441
16223
  },
17442
- { type: 'error', inputs: [], name: 'InvalidTokenPrice' },
17443
- { type: 'error', inputs: [], name: 'MintNotYetStarted' },
17444
- { type: 'error', inputs: [], name: 'MintWithSparksNotSupportedOnContract' },
17445
- { type: 'error', inputs: [], name: 'Mint_InsolventSaleTransfer' },
17446
- { type: 'error', inputs: [], name: 'Mint_InvalidMintArrayLength' },
17447
- { type: 'error', inputs: [], name: 'Mint_TokenIDMintNotAllowed' },
17448
- { type: 'error', inputs: [], name: 'Mint_UnknownCommand' },
17449
- { type: 'error', inputs: [], name: 'Mint_ValueTransferFail' },
17450
- { type: 'error', inputs: [], name: 'MinterContractAlreadyExists' },
17451
- { type: 'error', inputs: [], name: 'MinterContractDoesNotExist' },
17452
- { type: 'error', inputs: [], name: 'NewOwnerNeedsToBeAdmin' },
17453
- { type: 'error', inputs: [], name: 'NoTokensTransferred' },
17454
- { type: 'error', inputs: [], name: 'NoUriForNonexistentToken' },
17455
- { type: 'error', inputs: [], name: 'NonEthRedemption' },
17456
16224
  {
17457
- type: 'error',
17458
- inputs: [{ name: 'handler', internalType: 'address', type: 'address' }],
17459
- name: 'NotARedeemHandler',
16225
+ type: 'function',
16226
+ inputs: [],
16227
+ name: 'contractName',
16228
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
16229
+ stateMutability: 'pure',
17460
16230
  },
17461
- { type: 'error', inputs: [], name: 'NotInitializing' },
17462
- { type: 'error', inputs: [], name: 'NotSelfCall' },
17463
- { type: 'error', inputs: [], name: 'NotZoraSparks1155' },
17464
- { type: 'error', inputs: [], name: 'OnlyTransfersFromZoraSparks' },
17465
16231
  {
17466
- type: 'error',
17467
- inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
17468
- name: 'OwnableInvalidOwner',
16232
+ type: 'function',
16233
+ inputs: [],
16234
+ name: 'contractURI',
16235
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
16236
+ stateMutability: 'view',
17469
16237
  },
17470
16238
  {
17471
- type: 'error',
17472
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
17473
- name: 'OwnableUnauthorizedAccount',
16239
+ type: 'function',
16240
+ inputs: [],
16241
+ name: 'contractVersion',
16242
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
16243
+ stateMutability: 'pure',
17474
16244
  },
17475
- { type: 'error', inputs: [], name: 'PremintDeleted' },
17476
- { type: 'error', inputs: [], name: 'PremintExecutorCannotBeZero' },
17477
16245
  {
17478
- type: 'error',
16246
+ type: 'function',
17479
16247
  inputs: [
17480
- { name: 'caller', internalType: 'address', type: 'address' },
17481
- { name: 'recipient', internalType: 'address', type: 'address' },
17482
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
16248
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16249
+ {
16250
+ name: 'tokenConfig',
16251
+ internalType: 'struct TokenConfig',
16252
+ type: 'tuple',
16253
+ components: [
16254
+ { name: 'price', internalType: 'uint256', type: 'uint256' },
16255
+ { name: 'tokenAddress', internalType: 'address', type: 'address' },
16256
+ { name: 'redeemHandler', internalType: 'address', type: 'address' },
16257
+ ],
16258
+ },
16259
+ { name: 'defaultMintable', internalType: 'bool', type: 'bool' },
17483
16260
  ],
17484
- name: 'ProtocolRewardsWithdrawFailed',
16261
+ name: 'createToken',
16262
+ outputs: [],
16263
+ stateMutability: 'nonpayable',
17485
16264
  },
17486
- { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
17487
- { type: 'error', inputs: [], name: 'Renderer_NotValidRendererContract' },
17488
16265
  {
17489
- type: 'error',
17490
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
17491
- name: 'SafeERC20FailedOperation',
16266
+ type: 'function',
16267
+ inputs: [{ name: 'minterArguments', internalType: 'bytes', type: 'bytes' }],
16268
+ name: 'decodeMintRecipientAndComment',
16269
+ outputs: [
16270
+ { name: 'mintTo', internalType: 'address', type: 'address' },
16271
+ { name: 'mintComment', internalType: 'string', type: 'string' },
16272
+ ],
16273
+ stateMutability: 'pure',
17492
16274
  },
17493
- { type: 'error', inputs: [], name: 'SaleEnded' },
17494
- { type: 'error', inputs: [], name: 'SaleHasNotStarted' },
17495
16275
  {
17496
- type: 'error',
17497
- inputs: [
17498
- { name: 'targetContract', internalType: 'address', type: 'address' },
17499
- ],
17500
- name: 'Sale_CannotCallNonSalesContract',
16276
+ type: 'function',
16277
+ inputs: [],
16278
+ name: 'getEthPrice',
16279
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
16280
+ stateMutability: 'view',
17501
16281
  },
17502
- { type: 'error', inputs: [], name: 'TokenAlreadyCreated' },
17503
- { type: 'error', inputs: [], name: 'TokenDoesNotExist' },
17504
16282
  {
17505
- type: 'error',
17506
- inputs: [
17507
- { name: 'expected', internalType: 'uint256', type: 'uint256' },
17508
- { name: 'actual', internalType: 'uint256', type: 'uint256' },
17509
- ],
17510
- name: 'TokenIdMismatch',
16283
+ type: 'function',
16284
+ inputs: [],
16285
+ name: 'implementation',
16286
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
16287
+ stateMutability: 'view',
17511
16288
  },
17512
16289
  {
17513
- type: 'error',
16290
+ type: 'function',
17514
16291
  inputs: [
17515
- { name: 'storedTokenAddress', internalType: 'address', type: 'address' },
16292
+ { name: 'defaultOwner', internalType: 'address', type: 'address' },
16293
+ { name: 'zoraSparksSalt', internalType: 'bytes32', type: 'bytes32' },
16294
+ { name: 'zoraSparksCreationCode', internalType: 'bytes', type: 'bytes' },
16295
+ { name: 'initialEthTokenId', internalType: 'uint256', type: 'uint256' },
17516
16296
  {
17517
- name: 'expectedTokenAddress',
17518
- internalType: 'address',
16297
+ name: 'initialEthTokenPrice',
16298
+ internalType: 'uint256',
16299
+ type: 'uint256',
16300
+ },
16301
+ { name: 'newBaseURI', internalType: 'string', type: 'string' },
16302
+ { name: 'newContractURI', internalType: 'string', type: 'string' },
16303
+ ],
16304
+ name: 'initialize',
16305
+ outputs: [
16306
+ {
16307
+ name: 'mints',
16308
+ internalType: 'contract IZoraSparks1155',
17519
16309
  type: 'address',
17520
16310
  },
17521
16311
  ],
17522
- name: 'TokenMismatch',
17523
- },
17524
- { type: 'error', inputs: [], name: 'TokenNotMintable' },
17525
- { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
17526
- {
17527
- type: 'error',
17528
- inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
17529
- name: 'UUPSUnsupportedProxiableUUID',
17530
- },
17531
- {
17532
- type: 'error',
17533
- inputs: [{ name: 'selector', internalType: 'bytes4', type: 'bytes4' }],
17534
- name: 'UnknownUserAction',
16312
+ stateMutability: 'nonpayable',
17535
16313
  },
17536
16314
  {
17537
- type: 'error',
16315
+ type: 'function',
17538
16316
  inputs: [
17539
- { name: 'expected', internalType: 'string', type: 'string' },
17540
- { name: 'actual', internalType: 'string', type: 'string' },
16317
+ { name: 'tokenAddress', internalType: 'address', type: 'address' },
16318
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16319
+ { name: 'recipient', internalType: 'address', type: 'address' },
17541
16320
  ],
17542
- name: 'UpgradeToMismatchedContractName',
17543
- },
17544
- {
17545
- type: 'error',
17546
- inputs: [
17547
- { name: 'user', internalType: 'address', type: 'address' },
17548
- { name: 'limit', internalType: 'uint256', type: 'uint256' },
17549
- { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' },
16321
+ name: 'mintWithERC20',
16322
+ outputs: [
16323
+ { name: 'mintableTokenId', internalType: 'uint256', type: 'uint256' },
17550
16324
  ],
17551
- name: 'UserExceedsMintLimit',
16325
+ stateMutability: 'nonpayable',
17552
16326
  },
17553
16327
  {
17554
- type: 'error',
16328
+ type: 'function',
17555
16329
  inputs: [
17556
- { name: 'user', internalType: 'address', type: 'address' },
17557
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
17558
- { name: 'role', internalType: 'uint256', type: 'uint256' },
16330
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16331
+ { name: 'recipient', internalType: 'address', type: 'address' },
17559
16332
  ],
17560
- name: 'UserMissingRoleForToken',
16333
+ name: 'mintWithEth',
16334
+ outputs: [
16335
+ { name: 'mintableTokenId', internalType: 'uint256', type: 'uint256' },
16336
+ ],
16337
+ stateMutability: 'payable',
17561
16338
  },
17562
- { type: 'error', inputs: [], name: 'WrongValueSent' },
17563
16339
  {
17564
- type: 'error',
16340
+ type: 'function',
17565
16341
  inputs: [],
17566
- name: 'premintSignerContractFailedToRecoverSigner',
16342
+ name: 'mintableEthToken',
16343
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
16344
+ stateMutability: 'view',
17567
16345
  },
17568
- { type: 'error', inputs: [], name: 'premintSignerContractNotAContract' },
17569
- ] as const
17570
-
17571
- /**
17572
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
17573
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
17574
- */
17575
- export const zoraMintsManagerImplAddress = {
17576
- 7777777: '0x77777770cA269366c7208aFcF36FE2C6F7f7608B',
17577
- 999999999: '0x77777770cA269366c7208aFcF36FE2C6F7f7608B',
17578
- } as const
17579
-
17580
- /**
17581
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
17582
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
17583
- */
17584
- export const zoraMintsManagerImplConfig = {
17585
- address: zoraMintsManagerImplAddress,
17586
- abi: zoraMintsManagerImplABI,
17587
- } as const
17588
-
17589
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
17590
- // ZoraRouter
17591
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
17592
-
17593
- /**
17594
- * [__View Contract on Base Basescan__](https://basescan.org/address/0xaF46ff83421F580d9824A1027b9b3cafDbba7229)
17595
- */
17596
- export const zoraRouterABI = [
17597
16346
  {
17598
- type: 'constructor',
16347
+ type: 'function',
17599
16348
  inputs: [
17600
- {
17601
- name: 'poolManager_',
17602
- internalType: 'contract IPoolManager',
17603
- type: 'address',
17604
- },
17605
- {
17606
- name: 'zoraLimitOrderBook_',
17607
- internalType: 'contract IZoraLimitOrderBook',
17608
- type: 'address',
17609
- },
17610
- {
17611
- name: 'swapRouter_',
17612
- internalType: 'contract ISwapRouter',
17613
- type: 'address',
17614
- },
17615
- { name: 'permit2_', internalType: 'address', type: 'address' },
16349
+ { name: '', internalType: 'address', type: 'address' },
16350
+ { name: 'from', internalType: 'address', type: 'address' },
16351
+ { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
16352
+ { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
16353
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
16354
+ ],
16355
+ name: 'onERC1155BatchReceived',
16356
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
16357
+ stateMutability: 'nonpayable',
16358
+ },
16359
+ {
16360
+ type: 'function',
16361
+ inputs: [
16362
+ { name: '', internalType: 'address', type: 'address' },
16363
+ { name: 'from', internalType: 'address', type: 'address' },
16364
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
16365
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
16366
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
17616
16367
  ],
16368
+ name: 'onERC1155Received',
16369
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
17617
16370
  stateMutability: 'nonpayable',
17618
16371
  },
17619
- { type: 'receive', stateMutability: 'payable' },
17620
16372
  {
17621
16373
  type: 'function',
17622
16374
  inputs: [],
17623
- name: 'getLimitOrderConfig',
17624
- outputs: [
17625
- {
17626
- name: '',
17627
- internalType: 'struct LimitOrderConfig',
17628
- type: 'tuple',
17629
- components: [
17630
- { name: 'multiples', internalType: 'uint256[]', type: 'uint256[]' },
17631
- { name: 'percentages', internalType: 'uint256[]', type: 'uint256[]' },
17632
- ],
17633
- },
17634
- ],
16375
+ name: 'owner',
16376
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
17635
16377
  stateMutability: 'view',
17636
16378
  },
17637
16379
  {
17638
16380
  type: 'function',
17639
16381
  inputs: [],
17640
- name: 'msgSender',
16382
+ name: 'pendingOwner',
17641
16383
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
17642
16384
  stateMutability: 'view',
17643
16385
  },
17644
16386
  {
17645
16387
  type: 'function',
17646
16388
  inputs: [],
17647
- name: 'poolManager',
17648
- outputs: [
17649
- { name: '', internalType: 'contract IPoolManager', type: 'address' },
17650
- ],
16389
+ name: 'proxiableUUID',
16390
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
17651
16391
  stateMutability: 'view',
17652
16392
  },
16393
+ {
16394
+ type: 'function',
16395
+ inputs: [],
16396
+ name: 'renounceOwnership',
16397
+ outputs: [],
16398
+ stateMutability: 'nonpayable',
16399
+ },
16400
+ {
16401
+ type: 'function',
16402
+ inputs: [
16403
+ { name: 'tokenAddress', internalType: 'address', type: 'address' },
16404
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16405
+ ],
16406
+ name: 'setDefaultMintable',
16407
+ outputs: [],
16408
+ stateMutability: 'nonpayable',
16409
+ },
17653
16410
  {
17654
16411
  type: 'function',
17655
16412
  inputs: [
16413
+ { name: 'newContractURI', internalType: 'string', type: 'string' },
16414
+ { name: 'newBaseURI', internalType: 'string', type: 'string' },
17656
16415
  {
17657
- name: 'config',
17658
- internalType: 'struct LimitOrderConfig',
17659
- type: 'tuple',
17660
- components: [
17661
- { name: 'multiples', internalType: 'uint256[]', type: 'uint256[]' },
17662
- { name: 'percentages', internalType: 'uint256[]', type: 'uint256[]' },
17663
- ],
16416
+ name: 'tokenIdsToNotifyUpdate',
16417
+ internalType: 'uint256[]',
16418
+ type: 'uint256[]',
17664
16419
  },
17665
16420
  ],
17666
- name: 'setLimitOrderConfig',
16421
+ name: 'setMetadataURIs',
17667
16422
  outputs: [],
17668
16423
  stateMutability: 'nonpayable',
17669
16424
  },
17670
16425
  {
17671
16426
  type: 'function',
17672
- inputs: [],
17673
- name: 'swapRouter',
17674
- outputs: [
17675
- { name: '', internalType: 'contract ISwapRouter', type: 'address' },
17676
- ],
17677
- stateMutability: 'view',
16427
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
16428
+ name: 'transferOwnership',
16429
+ outputs: [],
16430
+ stateMutability: 'nonpayable',
17678
16431
  },
17679
16432
  {
17680
16433
  type: 'function',
17681
16434
  inputs: [
17682
- {
17683
- name: 'params',
17684
- internalType: 'struct SwapWithLimitOrders.SwapWithLimitOrdersParams',
17685
- type: 'tuple',
17686
- components: [
17687
- { name: 'recipient', internalType: 'address', type: 'address' },
17688
- {
17689
- name: 'limitOrderConfig',
17690
- internalType: 'struct LimitOrderConfig',
17691
- type: 'tuple',
17692
- components: [
17693
- {
17694
- name: 'multiples',
17695
- internalType: 'uint256[]',
17696
- type: 'uint256[]',
17697
- },
17698
- {
17699
- name: 'percentages',
17700
- internalType: 'uint256[]',
17701
- type: 'uint256[]',
17702
- },
17703
- ],
17704
- },
17705
- { name: 'inputCurrency', internalType: 'address', type: 'address' },
17706
- { name: 'inputAmount', internalType: 'uint256', type: 'uint256' },
17707
- { name: 'v3Route', internalType: 'bytes', type: 'bytes' },
17708
- {
17709
- name: 'v4Route',
17710
- internalType: 'struct PoolKey[]',
17711
- type: 'tuple[]',
17712
- components: [
17713
- { name: 'currency0', internalType: 'Currency', type: 'address' },
17714
- { name: 'currency1', internalType: 'Currency', type: 'address' },
17715
- { name: 'fee', internalType: 'uint24', type: 'uint24' },
17716
- { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
17717
- {
17718
- name: 'hooks',
17719
- internalType: 'contract IHooks',
17720
- type: 'address',
17721
- },
17722
- ],
17723
- },
17724
- { name: 'minAmountOut', internalType: 'uint256', type: 'uint256' },
17725
- ],
17726
- },
16435
+ { name: 'newImplementation', internalType: 'address', type: 'address' },
16436
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
17727
16437
  ],
17728
- name: 'swapWithLimitOrders',
17729
- outputs: [{ name: 'delta', internalType: 'BalanceDelta', type: 'int256' }],
16438
+ name: 'upgradeToAndCall',
16439
+ outputs: [],
17730
16440
  stateMutability: 'payable',
17731
16441
  },
17732
16442
  {
17733
16443
  type: 'function',
17734
- inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
17735
- name: 'unlockCallback',
17736
- outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
17737
- stateMutability: 'nonpayable',
16444
+ inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
16445
+ name: 'uri',
16446
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
16447
+ stateMutability: 'view',
17738
16448
  },
17739
16449
  {
17740
16450
  type: 'function',
17741
16451
  inputs: [],
17742
- name: 'zoraLimitOrderBook',
16452
+ name: 'zoraSparks1155',
17743
16453
  outputs: [
17744
- {
17745
- name: '',
17746
- internalType: 'contract IZoraLimitOrderBook',
17747
- type: 'address',
17748
- },
16454
+ { name: '', internalType: 'contract IZoraSparks1155', type: 'address' },
17749
16455
  ],
17750
16456
  stateMutability: 'view',
17751
16457
  },
@@ -17754,19 +16460,63 @@ export const zoraRouterABI = [
17754
16460
  anonymous: false,
17755
16461
  inputs: [
17756
16462
  {
17757
- name: 'multiples',
16463
+ name: 'tokenIds',
17758
16464
  internalType: 'uint256[]',
17759
16465
  type: 'uint256[]',
17760
- indexed: false,
16466
+ indexed: true,
17761
16467
  },
17762
16468
  {
17763
- name: 'percentages',
16469
+ name: 'quantities',
17764
16470
  internalType: 'uint256[]',
17765
16471
  type: 'uint256[]',
17766
16472
  indexed: false,
17767
16473
  },
16474
+ {
16475
+ name: 'zoraCreator1155Contract',
16476
+ internalType: 'address',
16477
+ type: 'address',
16478
+ indexed: true,
16479
+ },
16480
+ {
16481
+ name: 'zoraCreator1155TokenId',
16482
+ internalType: 'uint256',
16483
+ type: 'uint256',
16484
+ indexed: true,
16485
+ },
16486
+ ],
16487
+ name: 'Collected',
16488
+ },
16489
+ {
16490
+ type: 'event',
16491
+ anonymous: false,
16492
+ inputs: [
16493
+ {
16494
+ name: 'tokenAddress',
16495
+ internalType: 'address',
16496
+ type: 'address',
16497
+ indexed: false,
16498
+ },
16499
+ {
16500
+ name: 'tokenId',
16501
+ internalType: 'uint256',
16502
+ type: 'uint256',
16503
+ indexed: false,
16504
+ },
16505
+ ],
16506
+ name: 'DefaultMintableTokenSet',
16507
+ },
16508
+ {
16509
+ type: 'event',
16510
+ anonymous: false,
16511
+ inputs: [
16512
+ {
16513
+ name: 'version',
16514
+ internalType: 'uint64',
16515
+ type: 'uint64',
16516
+ indexed: false,
16517
+ },
17768
16518
  ],
17769
- name: 'LimitOrderConfigUpdated',
16519
+ name: 'Initialized',
17770
16520
  },
17771
16521
  {
17772
16522
  type: 'event',
@@ -17779,339 +16529,361 @@ export const zoraRouterABI = [
17779
16529
  indexed: true,
17780
16530
  },
17781
16531
  {
17782
- name: 'recipient',
16532
+ name: 'tokenContract',
17783
16533
  internalType: 'address',
17784
16534
  type: 'address',
17785
16535
  indexed: true,
17786
16536
  },
17787
16537
  {
17788
- name: 'poolKey',
17789
- internalType: 'struct PoolKey',
17790
- type: 'tuple',
17791
- components: [
17792
- { name: 'currency0', internalType: 'Currency', type: 'address' },
17793
- { name: 'currency1', internalType: 'Currency', type: 'address' },
17794
- { name: 'fee', internalType: 'uint24', type: 'uint24' },
17795
- { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
17796
- { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
17797
- ],
17798
- indexed: false,
16538
+ name: 'tokenId',
16539
+ internalType: 'uint256',
16540
+ type: 'uint256',
16541
+ indexed: true,
17799
16542
  },
17800
16543
  {
17801
- name: 'delta',
17802
- internalType: 'BalanceDelta',
17803
- type: 'int256',
16544
+ name: 'quantity',
16545
+ internalType: 'uint256',
16546
+ type: 'uint256',
17804
16547
  indexed: false,
17805
16548
  },
17806
16549
  {
17807
- name: 'tickBeforeSwap',
17808
- internalType: 'int24',
17809
- type: 'int24',
16550
+ name: 'comment',
16551
+ internalType: 'string',
16552
+ type: 'string',
17810
16553
  indexed: false,
17811
16554
  },
16555
+ ],
16556
+ name: 'MintComment',
16557
+ },
16558
+ {
16559
+ type: 'event',
16560
+ anonymous: false,
16561
+ inputs: [
17812
16562
  {
17813
- name: 'tickAfterSwap',
17814
- internalType: 'int24',
17815
- type: 'int24',
17816
- indexed: false,
16563
+ name: 'previousOwner',
16564
+ internalType: 'address',
16565
+ type: 'address',
16566
+ indexed: true,
17817
16567
  },
17818
16568
  {
17819
- name: 'orders',
17820
- internalType: 'struct SwapWithLimitOrders.CreatedOrder[]',
17821
- type: 'tuple[]',
17822
- components: [
17823
- { name: 'orderId', internalType: 'bytes32', type: 'bytes32' },
17824
- { name: 'multiple', internalType: 'uint256', type: 'uint256' },
17825
- { name: 'percentage', internalType: 'uint256', type: 'uint256' },
17826
- ],
17827
- indexed: false,
16569
+ name: 'newOwner',
16570
+ internalType: 'address',
16571
+ type: 'address',
16572
+ indexed: true,
17828
16573
  },
17829
16574
  ],
17830
- name: 'SwapWithLimitOrdersExecuted',
16575
+ name: 'OwnershipTransferStarted',
17831
16576
  },
17832
- { type: 'error', inputs: [], name: 'EmptyV4Route' },
17833
- { type: 'error', inputs: [], name: 'FromAddressIsNotOwner' },
17834
16577
  {
17835
- type: 'error',
16578
+ type: 'event',
16579
+ anonymous: false,
17836
16580
  inputs: [
17837
- { name: 'inputAmount', internalType: 'uint256', type: 'uint256' },
17838
- { name: 'availableAmount', internalType: 'uint256', type: 'uint256' },
16581
+ {
16582
+ name: 'previousOwner',
16583
+ internalType: 'address',
16584
+ type: 'address',
16585
+ indexed: true,
16586
+ },
16587
+ {
16588
+ name: 'newOwner',
16589
+ internalType: 'address',
16590
+ type: 'address',
16591
+ indexed: true,
16592
+ },
17839
16593
  ],
17840
- name: 'InsufficientInputCurrency',
16594
+ name: 'OwnershipTransferred',
17841
16595
  },
17842
- { type: 'error', inputs: [], name: 'InsufficientOutputAmount' },
17843
- { type: 'error', inputs: [], name: 'InsufficientTransferFunds' },
17844
- { type: 'error', inputs: [], name: 'InvalidLimitOrderConfig' },
17845
- { type: 'error', inputs: [], name: 'InvalidMultiple' },
17846
- { type: 'error', inputs: [], name: 'InvalidPercent' },
17847
- { type: 'error', inputs: [], name: 'LengthMismatch' },
17848
- { type: 'error', inputs: [], name: 'OnlyAuthority' },
17849
- { type: 'error', inputs: [], name: 'OnlyPoolManager' },
17850
- { type: 'error', inputs: [], name: 'PercentOverflow' },
17851
16596
  {
17852
- type: 'error',
17853
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
17854
- name: 'SafeERC20FailedOperation',
16597
+ type: 'event',
16598
+ anonymous: false,
16599
+ inputs: [
16600
+ {
16601
+ name: 'contractURI',
16602
+ internalType: 'string',
16603
+ type: 'string',
16604
+ indexed: false,
16605
+ },
16606
+ {
16607
+ name: 'baseURI',
16608
+ internalType: 'string',
16609
+ type: 'string',
16610
+ indexed: false,
16611
+ },
16612
+ ],
16613
+ name: 'URIsUpdated',
17855
16614
  },
17856
- { type: 'error', inputs: [], name: 'UnsafeCast' },
17857
- { type: 'error', inputs: [], name: 'V3RouteDoesNotConnectToV4RouteStart' },
17858
- { type: 'error', inputs: [], name: 'ZeroSwapDelta' },
17859
- { type: 'error', inputs: [], name: 'AddressZero' },
17860
- { type: 'error', inputs: [], name: 'AlreadyOwner' },
17861
- { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' },
17862
16615
  {
17863
- type: 'error',
17864
- inputs: [],
17865
- name: 'DopplerPoolMustHaveMoreThan2DiscoveryPositions',
16616
+ type: 'event',
16617
+ anonymous: false,
16618
+ inputs: [
16619
+ {
16620
+ name: 'implementation',
16621
+ internalType: 'address',
16622
+ type: 'address',
16623
+ indexed: true,
16624
+ },
16625
+ ],
16626
+ name: 'Upgraded',
17866
16627
  },
17867
- { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' },
17868
16628
  {
17869
16629
  type: 'error',
17870
- inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
17871
- name: 'ECDSAInvalidSignatureLength',
16630
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
16631
+ name: 'AddressEmptyCode',
17872
16632
  },
17873
16633
  {
17874
16634
  type: 'error',
17875
- inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }],
17876
- name: 'ECDSAInvalidSignatureS',
16635
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
16636
+ name: 'AddressInsufficientBalance',
17877
16637
  },
17878
16638
  {
17879
16639
  type: 'error',
17880
16640
  inputs: [
17881
- { name: 'spender', internalType: 'address', type: 'address' },
17882
- { name: 'allowance', internalType: 'uint256', type: 'uint256' },
17883
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
16641
+ { name: 'lengthA', internalType: 'uint256', type: 'uint256' },
16642
+ { name: 'lengthB', internalType: 'uint256', type: 'uint256' },
17884
16643
  ],
17885
- name: 'ERC20InsufficientAllowance',
16644
+ name: 'ArrayLengthMismatch',
17886
16645
  },
17887
16646
  {
17888
16647
  type: 'error',
17889
16648
  inputs: [
17890
- { name: 'sender', internalType: 'address', type: 'address' },
17891
- { name: 'balance', internalType: 'uint256', type: 'uint256' },
17892
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
16649
+ { name: 'operator', internalType: 'address', type: 'address' },
16650
+ { name: 'user', internalType: 'address', type: 'address' },
17893
16651
  ],
17894
- name: 'ERC20InsufficientBalance',
16652
+ name: 'Burn_NotOwnerOrApproved',
17895
16653
  },
17896
16654
  {
17897
16655
  type: 'error',
17898
- inputs: [{ name: 'approver', internalType: 'address', type: 'address' }],
17899
- name: 'ERC20InvalidApprover',
16656
+ inputs: [{ name: 'reason', internalType: 'bytes', type: 'bytes' }],
16657
+ name: 'CallFailed',
17900
16658
  },
16659
+ { type: 'error', inputs: [], name: 'Call_TokenIdMismatch' },
16660
+ { type: 'error', inputs: [], name: 'CallerNotZoraCreator1155' },
17901
16661
  {
17902
16662
  type: 'error',
17903
- inputs: [{ name: 'receiver', internalType: 'address', type: 'address' }],
17904
- name: 'ERC20InvalidReceiver',
16663
+ inputs: [
16664
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16665
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
16666
+ { name: 'totalMinted', internalType: 'uint256', type: 'uint256' },
16667
+ { name: 'maxSupply', internalType: 'uint256', type: 'uint256' },
16668
+ ],
16669
+ name: 'CannotMintMoreTokens',
17905
16670
  },
17906
16671
  {
17907
16672
  type: 'error',
17908
- inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
17909
- name: 'ERC20InvalidSender',
16673
+ inputs: [
16674
+ { name: 'proposedAddress', internalType: 'address', type: 'address' },
16675
+ ],
16676
+ name: 'Config_TransferHookNotSupported',
17910
16677
  },
16678
+ { type: 'error', inputs: [], name: 'Create2EmptyBytecode' },
16679
+ { type: 'error', inputs: [], name: 'Create2FailedDeployment' },
17911
16680
  {
17912
16681
  type: 'error',
17913
- inputs: [{ name: 'spender', internalType: 'address', type: 'address' }],
17914
- name: 'ERC20InvalidSpender',
16682
+ inputs: [
16683
+ { name: 'balance', internalType: 'uint256', type: 'uint256' },
16684
+ { name: 'needed', internalType: 'uint256', type: 'uint256' },
16685
+ ],
16686
+ name: 'Create2InsufficientBalance',
17915
16687
  },
17916
- { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
16688
+ { type: 'error', inputs: [], name: 'DefaultOwnerCannotBeZero' },
16689
+ { type: 'error', inputs: [], name: 'ERC1155BatchReceivedCallFailed' },
16690
+ { type: 'error', inputs: [], name: 'ERC1155_MINT_TO_ZERO_ADDRESS' },
17917
16691
  {
17918
16692
  type: 'error',
17919
- inputs: [{ name: 'deadline', internalType: 'uint256', type: 'uint256' }],
17920
- name: 'ERC2612ExpiredSignature',
16693
+ inputs: [
16694
+ { name: 'implementation', internalType: 'address', type: 'address' },
16695
+ ],
16696
+ name: 'ERC1967InvalidImplementation',
17921
16697
  },
16698
+ { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
16699
+ { type: 'error', inputs: [], name: 'ERC20TransferSlippage' },
16700
+ { type: 'error', inputs: [], name: 'ETHTransferFailed' },
17922
16701
  {
17923
16702
  type: 'error',
17924
16703
  inputs: [
17925
- { name: 'signer', internalType: 'address', type: 'address' },
17926
- { name: 'owner', internalType: 'address', type: 'address' },
16704
+ { name: 'recipient', internalType: 'address', type: 'address' },
16705
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
17927
16706
  ],
17928
- name: 'ERC2612InvalidSigner',
16707
+ name: 'ETHWithdrawFailed',
17929
16708
  },
17930
- { type: 'error', inputs: [], name: 'EthAmountMismatch' },
17931
- { type: 'error', inputs: [], name: 'EthAmountTooSmall' },
17932
- { type: 'error', inputs: [], name: 'EthTransferFailed' },
17933
- { type: 'error', inputs: [], name: 'EthTransferInvalid' },
17934
- { type: 'error', inputs: [], name: 'InitialOrderSizeTooLarge' },
17935
- { type: 'error', inputs: [], name: 'InsufficientFunds' },
17936
- { type: 'error', inputs: [], name: 'InsufficientLiquidity' },
16709
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
16710
+ { type: 'error', inputs: [], name: 'FirstMinterAddressZero' },
17937
16711
  {
17938
16712
  type: 'error',
17939
16713
  inputs: [
17940
- { name: 'account', internalType: 'address', type: 'address' },
17941
- { name: 'currentNonce', internalType: 'uint256', type: 'uint256' },
16714
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
16715
+ { name: 'contractValue', internalType: 'uint256', type: 'uint256' },
17942
16716
  ],
17943
- name: 'InvalidAccountNonce',
16717
+ name: 'FundsWithdrawInsolvent',
17944
16718
  },
17945
- { type: 'error', inputs: [], name: 'InvalidCurrencyLowerTick' },
16719
+ { type: 'error', inputs: [], name: 'IncorrectAmountSent' },
16720
+ { type: 'error', inputs: [], name: 'InvalidAdminAction' },
17946
16721
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
17947
- { type: 'error', inputs: [], name: 'InvalidMarketType' },
17948
- { type: 'error', inputs: [], name: 'InvalidPoolVersion' },
17949
16722
  {
17950
16723
  type: 'error',
17951
16724
  inputs: [
17952
- { name: 'tickLower', internalType: 'int24', type: 'int24' },
17953
- { name: 'tickUpper', internalType: 'int24', type: 'int24' },
16725
+ { name: 'mintTo', internalType: 'address', type: 'address' },
16726
+ { name: 'merkleProof', internalType: 'bytes32[]', type: 'bytes32[]' },
16727
+ { name: 'merkleRoot', internalType: 'bytes32', type: 'bytes32' },
17954
16728
  ],
17955
- name: 'InvalidTickRangeMisordered',
16729
+ name: 'InvalidMerkleProof',
17956
16730
  },
17957
- { type: 'error', inputs: [], name: 'InvalidWethLowerTick' },
17958
- { type: 'error', inputs: [], name: 'LegacyPoolMustHaveOneDiscoveryPosition' },
17959
- { type: 'error', inputs: [], name: 'MarketAlreadyGraduated' },
17960
- { type: 'error', inputs: [], name: 'MarketNotGraduated' },
16731
+ { type: 'error', inputs: [], name: 'InvalidMintSchedule' },
16732
+ { type: 'error', inputs: [], name: 'InvalidOwnerForAssociatedZoraSparks' },
16733
+ { type: 'error', inputs: [], name: 'InvalidPremintVersion' },
16734
+ { type: 'error', inputs: [], name: 'InvalidRecipient' },
16735
+ { type: 'error', inputs: [], name: 'InvalidSignature' },
16736
+ { type: 'error', inputs: [], name: 'InvalidSignatureVersion' },
17961
16737
  {
17962
16738
  type: 'error',
17963
- inputs: [
17964
- { name: 'value', internalType: 'uint256', type: 'uint256' },
17965
- { name: 'limit', internalType: 'uint256', type: 'uint256' },
17966
- ],
17967
- name: 'MaxShareToBeSoldExceeded',
16739
+ inputs: [{ name: 'magicValue', internalType: 'bytes4', type: 'bytes4' }],
16740
+ name: 'InvalidSigner',
16741
+ },
16742
+ { type: 'error', inputs: [], name: 'InvalidTokenPrice' },
16743
+ { type: 'error', inputs: [], name: 'MintNotYetStarted' },
16744
+ { type: 'error', inputs: [], name: 'MintWithSparksNotSupportedOnContract' },
16745
+ { type: 'error', inputs: [], name: 'Mint_InsolventSaleTransfer' },
16746
+ { type: 'error', inputs: [], name: 'Mint_InvalidMintArrayLength' },
16747
+ { type: 'error', inputs: [], name: 'Mint_TokenIDMintNotAllowed' },
16748
+ { type: 'error', inputs: [], name: 'Mint_UnknownCommand' },
16749
+ { type: 'error', inputs: [], name: 'Mint_ValueTransferFail' },
16750
+ { type: 'error', inputs: [], name: 'MinterContractAlreadyExists' },
16751
+ { type: 'error', inputs: [], name: 'MinterContractDoesNotExist' },
16752
+ { type: 'error', inputs: [], name: 'NewOwnerNeedsToBeAdmin' },
16753
+ { type: 'error', inputs: [], name: 'NoTokensTransferred' },
16754
+ { type: 'error', inputs: [], name: 'NoUriForNonexistentToken' },
16755
+ { type: 'error', inputs: [], name: 'NonEthRedemption' },
16756
+ {
16757
+ type: 'error',
16758
+ inputs: [{ name: 'handler', internalType: 'address', type: 'address' }],
16759
+ name: 'NotARedeemHandler',
17968
16760
  },
17969
- { type: 'error', inputs: [], name: 'NameIsRequired' },
17970
16761
  { type: 'error', inputs: [], name: 'NotInitializing' },
17971
- { type: 'error', inputs: [], name: 'NotOwner' },
17972
- { type: 'error', inputs: [], name: 'NumDiscoveryPositionsOutOfRange' },
17973
- { type: 'error', inputs: [], name: 'OneOwnerRequired' },
17974
- { type: 'error', inputs: [], name: 'OnlyOwner' },
16762
+ { type: 'error', inputs: [], name: 'NotSelfCall' },
16763
+ { type: 'error', inputs: [], name: 'NotZoraSparks1155' },
16764
+ { type: 'error', inputs: [], name: 'OnlyTransfersFromZoraSparks' },
16765
+ {
16766
+ type: 'error',
16767
+ inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
16768
+ name: 'OwnableInvalidOwner',
16769
+ },
16770
+ {
16771
+ type: 'error',
16772
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
16773
+ name: 'OwnableUnauthorizedAccount',
16774
+ },
16775
+ { type: 'error', inputs: [], name: 'PremintDeleted' },
16776
+ { type: 'error', inputs: [], name: 'PremintExecutorCannotBeZero' },
17975
16777
  {
17976
16778
  type: 'error',
17977
16779
  inputs: [
17978
- { name: 'sender', internalType: 'address', type: 'address' },
17979
- { name: 'pool', internalType: 'address', type: 'address' },
16780
+ { name: 'caller', internalType: 'address', type: 'address' },
16781
+ { name: 'recipient', internalType: 'address', type: 'address' },
16782
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
17980
16783
  ],
17981
- name: 'OnlyPool',
16784
+ name: 'ProtocolRewardsWithdrawFailed',
17982
16785
  },
17983
- { type: 'error', inputs: [], name: 'OnlyWeth' },
17984
- { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' },
17985
- { type: 'error', inputs: [], name: 'SlippageBoundsExceeded' },
17986
- { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' },
17987
- { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' },
17988
- { type: 'error', inputs: [], name: 'CoinVersionLookupCannotBeZeroAddress' },
17989
- { type: 'error', inputs: [], name: 'EthTransferFailed' },
17990
- { type: 'error', inputs: [], name: 'HookNotImplemented' },
16786
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
16787
+ { type: 'error', inputs: [], name: 'Renderer_NotValidRendererContract' },
17991
16788
  {
17992
16789
  type: 'error',
17993
- inputs: [{ name: 'callbackId', internalType: 'uint8', type: 'uint8' }],
17994
- name: 'InvalidCallbackId',
16790
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
16791
+ name: 'SafeERC20FailedOperation',
17995
16792
  },
16793
+ { type: 'error', inputs: [], name: 'SaleEnded' },
16794
+ { type: 'error', inputs: [], name: 'SaleHasNotStarted' },
17996
16795
  {
17997
16796
  type: 'error',
17998
- inputs: [{ name: 'newHook', internalType: 'address', type: 'address' }],
17999
- name: 'InvalidNewHook',
16797
+ inputs: [
16798
+ { name: 'targetContract', internalType: 'address', type: 'address' },
16799
+ ],
16800
+ name: 'Sale_CannotCallNonSalesContract',
18000
16801
  },
16802
+ { type: 'error', inputs: [], name: 'TokenAlreadyCreated' },
16803
+ { type: 'error', inputs: [], name: 'TokenDoesNotExist' },
18001
16804
  {
18002
16805
  type: 'error',
18003
16806
  inputs: [
18004
- { name: 'tickLower', internalType: 'int24', type: 'int24' },
18005
- { name: 'tickUpper', internalType: 'int24', type: 'int24' },
16807
+ { name: 'expected', internalType: 'uint256', type: 'uint256' },
16808
+ { name: 'actual', internalType: 'uint256', type: 'uint256' },
18006
16809
  ],
18007
- name: 'InvalidTickRangeMisordered',
16810
+ name: 'TokenIdMismatch',
18008
16811
  },
18009
16812
  {
18010
16813
  type: 'error',
18011
16814
  inputs: [
16815
+ { name: 'storedTokenAddress', internalType: 'address', type: 'address' },
18012
16816
  {
18013
- name: 'key',
18014
- internalType: 'struct PoolKey',
18015
- type: 'tuple',
18016
- components: [
18017
- { name: 'currency0', internalType: 'Currency', type: 'address' },
18018
- { name: 'currency1', internalType: 'Currency', type: 'address' },
18019
- { name: 'fee', internalType: 'uint24', type: 'uint24' },
18020
- { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
18021
- { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
18022
- ],
16817
+ name: 'expectedTokenAddress',
16818
+ internalType: 'address',
16819
+ type: 'address',
18023
16820
  },
18024
16821
  ],
18025
- name: 'NoCoinForHook',
16822
+ name: 'TokenMismatch',
18026
16823
  },
16824
+ { type: 'error', inputs: [], name: 'TokenNotMintable' },
16825
+ { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
18027
16826
  {
18028
16827
  type: 'error',
18029
- inputs: [{ name: 'coin', internalType: 'address', type: 'address' }],
18030
- name: 'NotACoin',
16828
+ inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
16829
+ name: 'UUPSUnsupportedProxiableUUID',
18031
16830
  },
18032
- { type: 'error', inputs: [], name: 'NotPoolManager' },
18033
16831
  {
18034
16832
  type: 'error',
18035
- inputs: [
18036
- { name: 'caller', internalType: 'address', type: 'address' },
18037
- { name: 'expectedCoin', internalType: 'address', type: 'address' },
18038
- ],
18039
- name: 'OnlyCoin',
16833
+ inputs: [{ name: 'selector', internalType: 'bytes4', type: 'bytes4' }],
16834
+ name: 'UnknownUserAction',
18040
16835
  },
18041
- { type: 'error', inputs: [], name: 'PathMustHaveAtLeastOneStep' },
18042
- { type: 'error', inputs: [], name: 'SafeCastOverflow' },
18043
16836
  {
18044
16837
  type: 'error',
18045
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
18046
- name: 'SafeERC20FailedOperation',
16838
+ inputs: [
16839
+ { name: 'expected', internalType: 'string', type: 'string' },
16840
+ { name: 'actual', internalType: 'string', type: 'string' },
16841
+ ],
16842
+ name: 'UpgradeToMismatchedContractName',
18047
16843
  },
18048
16844
  {
18049
16845
  type: 'error',
18050
- inputs: [],
18051
- name: 'TrustedMsgSenderLookupCannotBeZeroAddress',
16846
+ inputs: [
16847
+ { name: 'user', internalType: 'address', type: 'address' },
16848
+ { name: 'limit', internalType: 'uint256', type: 'uint256' },
16849
+ { name: 'requestedAmount', internalType: 'uint256', type: 'uint256' },
16850
+ ],
16851
+ name: 'UserExceedsMintLimit',
18052
16852
  },
18053
- { type: 'error', inputs: [], name: 'UpgradeGateCannotBeZeroAddress' },
18054
16853
  {
18055
16854
  type: 'error',
18056
16855
  inputs: [
18057
- { name: 'oldHook', internalType: 'address', type: 'address' },
18058
- { name: 'newHook', internalType: 'address', type: 'address' },
16856
+ { name: 'user', internalType: 'address', type: 'address' },
16857
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
16858
+ { name: 'role', internalType: 'uint256', type: 'uint256' },
18059
16859
  ],
18060
- name: 'UpgradePathNotRegistered',
16860
+ name: 'UserMissingRoleForToken',
18061
16861
  },
18062
- { type: 'error', inputs: [], name: 'ZoraHookRegistryCannotBeZeroAddress' },
18063
- { type: 'error', inputs: [], name: 'ZoraLimitOrderBookCannotBeZeroAddress' },
16862
+ { type: 'error', inputs: [], name: 'WrongValueSent' },
18064
16863
  {
18065
16864
  type: 'error',
18066
- inputs: [{ name: 'authority', internalType: 'address', type: 'address' }],
18067
- name: 'AccessManagedInvalidAuthority',
16865
+ inputs: [],
16866
+ name: 'premintSignerContractFailedToRecoverSigner',
18068
16867
  },
18069
- { type: 'error', inputs: [], name: 'AccessManagedUnauthorized' },
18070
- { type: 'error', inputs: [], name: 'AddressZero' },
18071
- { type: 'error', inputs: [], name: 'ArrayLengthMismatch' },
18072
- { type: 'error', inputs: [], name: 'InsufficientBalance' },
18073
- { type: 'error', inputs: [], name: 'InsufficientForwardedFunds' },
18074
- { type: 'error', inputs: [], name: 'InsufficientTransferFunds' },
18075
- {
18076
- type: 'error',
18077
- inputs: [
18078
- { name: 'startTick', internalType: 'int24', type: 'int24' },
18079
- { name: 'endTick', internalType: 'int24', type: 'int24' },
18080
- { name: 'isCurrency0', internalType: 'bool', type: 'bool' },
18081
- ],
18082
- name: 'InvalidFillWindow',
18083
- },
18084
- { type: 'error', inputs: [], name: 'InvalidOrder' },
18085
- { type: 'error', inputs: [], name: 'InvalidPoolKey' },
18086
- { type: 'error', inputs: [], name: 'MaxFillCountCannotBeZero' },
18087
- { type: 'error', inputs: [], name: 'NativeValueMismatch' },
18088
- { type: 'error', inputs: [], name: 'NotPoolManager' },
18089
- { type: 'error', inputs: [], name: 'OnlyZoraHook' },
18090
- { type: 'error', inputs: [], name: 'OrderClosed' },
18091
- { type: 'error', inputs: [], name: 'OrderNotMaker' },
18092
- { type: 'error', inputs: [], name: 'PathMustHaveAtLeastOneStep' },
18093
- { type: 'error', inputs: [], name: 'RouterMsgSenderInvalid' },
18094
- { type: 'error', inputs: [], name: 'UnknownCallback' },
18095
- { type: 'error', inputs: [], name: 'UnlockedFillNotAllowed' },
18096
- { type: 'error', inputs: [], name: 'ZeroMaker' },
18097
- { type: 'error', inputs: [], name: 'ZeroMakerOrders' },
18098
- { type: 'error', inputs: [], name: 'ZeroOrderSize' },
18099
- { type: 'error', inputs: [], name: 'ZeroRealizedOrder' },
16868
+ { type: 'error', inputs: [], name: 'premintSignerContractNotAContract' },
18100
16869
  ] as const
18101
16870
 
18102
16871
  /**
18103
- * [__View Contract on Base Basescan__](https://basescan.org/address/0xaF46ff83421F580d9824A1027b9b3cafDbba7229)
16872
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
16873
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
18104
16874
  */
18105
- export const zoraRouterAddress = {
18106
- 8453: '0xaF46ff83421F580d9824A1027b9b3cafDbba7229',
16875
+ export const zoraMintsManagerImplAddress = {
16876
+ 7777777: '0x77777770cA269366c7208aFcF36FE2C6F7f7608B',
16877
+ 999999999: '0x77777770cA269366c7208aFcF36FE2C6F7f7608B',
18107
16878
  } as const
18108
16879
 
18109
16880
  /**
18110
- * [__View Contract on Base Basescan__](https://basescan.org/address/0xaF46ff83421F580d9824A1027b9b3cafDbba7229)
16881
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
16882
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777770cA269366c7208aFcF36FE2C6F7f7608B)
18111
16883
  */
18112
- export const zoraRouterConfig = {
18113
- address: zoraRouterAddress,
18114
- abi: zoraRouterABI,
16884
+ export const zoraMintsManagerImplConfig = {
16885
+ address: zoraMintsManagerImplAddress,
16886
+ abi: zoraMintsManagerImplABI,
18115
16887
  } as const
18116
16888
 
18117
16889
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////