@zoralabs/protocol-deployments 0.6.4 → 0.6.5-LOB.0

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