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

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