@zoralabs/protocol-deployments 0.4.1 → 0.5.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.
@@ -1586,12 +1586,6 @@ export const coinABI = [
1586
1586
  type: 'uint256',
1587
1587
  indexed: false,
1588
1588
  },
1589
- {
1590
- name: 'comment',
1591
- internalType: 'string',
1592
- type: 'string',
1593
- indexed: false,
1594
- },
1595
1589
  ],
1596
1590
  name: 'CoinBuy',
1597
1591
  },
@@ -1600,7 +1594,7 @@ export const coinABI = [
1600
1594
  anonymous: false,
1601
1595
  inputs: [
1602
1596
  {
1603
- name: 'creatorPayoutAddress',
1597
+ name: 'payoutRecipient',
1604
1598
  internalType: 'address',
1605
1599
  type: 'address',
1606
1600
  indexed: true,
@@ -1741,12 +1735,6 @@ export const coinABI = [
1741
1735
  type: 'uint256',
1742
1736
  indexed: false,
1743
1737
  },
1744
- {
1745
- name: 'comment',
1746
- internalType: 'string',
1747
- type: 'string',
1748
- indexed: false,
1749
- },
1750
1738
  ],
1751
1739
  name: 'CoinSell',
1752
1740
  },
@@ -1755,7 +1743,7 @@ export const coinABI = [
1755
1743
  anonymous: false,
1756
1744
  inputs: [
1757
1745
  {
1758
- name: 'creatorPayoutRecipient',
1746
+ name: 'payoutRecipient',
1759
1747
  internalType: 'address',
1760
1748
  type: 'address',
1761
1749
  indexed: true,
@@ -2038,27 +2026,19 @@ export const coinABI = [
2038
2026
  ] as const
2039
2027
 
2040
2028
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2041
- // Cointag
2029
+ // CoinFactory
2042
2030
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2043
2031
 
2044
- export const cointagABI = [
2032
+ /**
2033
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
2034
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
2035
+ */
2036
+ export const coinFactoryABI = [
2045
2037
  {
2046
2038
  type: 'constructor',
2047
- inputs: [
2048
- { name: 'protocolRewards_', internalType: 'address', type: 'address' },
2049
- { name: 'weth_', internalType: 'address', type: 'address' },
2050
- { name: 'upgradeGate_', internalType: 'address', type: 'address' },
2051
- ],
2039
+ inputs: [{ name: '_coinImpl', internalType: 'address', type: 'address' }],
2052
2040
  stateMutability: 'nonpayable',
2053
2041
  },
2054
- { type: 'receive', stateMutability: 'payable' },
2055
- {
2056
- type: 'function',
2057
- inputs: [],
2058
- name: 'PERCENTAGE_BASIS',
2059
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2060
- stateMutability: 'view',
2061
- },
2062
2042
  {
2063
2043
  type: 'function',
2064
2044
  inputs: [],
@@ -2069,68 +2049,26 @@ export const cointagABI = [
2069
2049
  {
2070
2050
  type: 'function',
2071
2051
  inputs: [],
2072
- name: 'acceptOwnership',
2073
- outputs: [],
2074
- stateMutability: 'nonpayable',
2052
+ name: 'coinImpl',
2053
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2054
+ stateMutability: 'view',
2075
2055
  },
2076
2056
  {
2077
2057
  type: 'function',
2078
- inputs: [],
2079
- name: 'config',
2080
- outputs: [
2081
- {
2082
- name: 'cointagStorage',
2083
- internalType: 'struct ICointag.CointagStorageV1',
2084
- type: 'tuple',
2085
- components: [
2086
- {
2087
- name: 'creatorRewardRecipient',
2088
- internalType: 'address',
2089
- type: 'address',
2090
- },
2091
- { name: 'erc20', internalType: 'contract IERC20', type: 'address' },
2092
- {
2093
- name: 'pool',
2094
- internalType: 'contract IUniswapV3Pool',
2095
- type: 'address',
2096
- },
2097
- {
2098
- name: 'percentageToBuyBurn',
2099
- internalType: 'uint256',
2100
- type: 'uint256',
2101
- },
2102
- ],
2103
- },
2058
+ inputs: [
2059
+ { name: 'payoutRecipient', internalType: 'address', type: 'address' },
2060
+ { name: 'owners', internalType: 'address[]', type: 'address[]' },
2061
+ { name: 'uri', internalType: 'string', type: 'string' },
2062
+ { name: 'name', internalType: 'string', type: 'string' },
2063
+ { name: 'symbol', internalType: 'string', type: 'string' },
2064
+ { name: 'platformReferrer', internalType: 'address', type: 'address' },
2065
+ { name: 'currency', internalType: 'address', type: 'address' },
2066
+ { name: 'tickLower', internalType: 'int24', type: 'int24' },
2067
+ { name: 'orderSize', internalType: 'uint256', type: 'uint256' },
2104
2068
  ],
2105
- stateMutability: 'pure',
2106
- },
2107
- {
2108
- type: 'function',
2109
- inputs: [],
2110
- name: 'contractName',
2111
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
2112
- stateMutability: 'pure',
2113
- },
2114
- {
2115
- type: 'function',
2116
- inputs: [],
2117
- name: 'contractVersion',
2118
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
2119
- stateMutability: 'pure',
2120
- },
2121
- {
2122
- type: 'function',
2123
- inputs: [],
2124
- name: 'distribute',
2125
- outputs: [],
2126
- stateMutability: 'nonpayable',
2127
- },
2128
- {
2129
- type: 'function',
2130
- inputs: [],
2131
- name: 'erc20',
2132
- outputs: [{ name: '', internalType: 'contract IERC20', type: 'address' }],
2133
- stateMutability: 'view',
2069
+ name: 'deploy',
2070
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2071
+ stateMutability: 'payable',
2134
2072
  },
2135
2073
  {
2136
2074
  type: 'function',
@@ -2142,13 +2080,7 @@ export const cointagABI = [
2142
2080
  {
2143
2081
  type: 'function',
2144
2082
  inputs: [
2145
- {
2146
- name: 'creatorRewardRecipient',
2147
- internalType: 'address',
2148
- type: 'address',
2149
- },
2150
- { name: 'pool_', internalType: 'address', type: 'address' },
2151
- { name: 'percentageToBuyBurn', internalType: 'uint256', type: 'uint256' },
2083
+ { name: 'initialOwner', internalType: 'address', type: 'address' },
2152
2084
  ],
2153
2085
  name: 'initialize',
2154
2086
  outputs: [],
@@ -2161,31 +2093,6 @@ export const cointagABI = [
2161
2093
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
2162
2094
  stateMutability: 'view',
2163
2095
  },
2164
- {
2165
- type: 'function',
2166
- inputs: [],
2167
- name: 'pendingOwner',
2168
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
2169
- stateMutability: 'view',
2170
- },
2171
- {
2172
- type: 'function',
2173
- inputs: [],
2174
- name: 'pool',
2175
- outputs: [
2176
- { name: '', internalType: 'contract IUniswapV3Pool', type: 'address' },
2177
- ],
2178
- stateMutability: 'view',
2179
- },
2180
- {
2181
- type: 'function',
2182
- inputs: [],
2183
- name: 'protocolRewards',
2184
- outputs: [
2185
- { name: '', internalType: 'contract IProtocolRewards', type: 'address' },
2186
- ],
2187
- stateMutability: 'view',
2188
- },
2189
2096
  {
2190
2097
  type: 'function',
2191
2098
  inputs: [],
@@ -2193,13 +2100,6 @@ export const cointagABI = [
2193
2100
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2194
2101
  stateMutability: 'view',
2195
2102
  },
2196
- {
2197
- type: 'function',
2198
- inputs: [],
2199
- name: 'pull',
2200
- outputs: [],
2201
- stateMutability: 'nonpayable',
2202
- },
2203
2103
  {
2204
2104
  type: 'function',
2205
2105
  inputs: [],
@@ -2214,26 +2114,6 @@ export const cointagABI = [
2214
2114
  outputs: [],
2215
2115
  stateMutability: 'nonpayable',
2216
2116
  },
2217
- {
2218
- type: 'function',
2219
- inputs: [
2220
- { name: 'amount0Delta', internalType: 'int256', type: 'int256' },
2221
- { name: 'amount1Delta', internalType: 'int256', type: 'int256' },
2222
- { name: '', internalType: 'bytes', type: 'bytes' },
2223
- ],
2224
- name: 'uniswapV3SwapCallback',
2225
- outputs: [],
2226
- stateMutability: 'nonpayable',
2227
- },
2228
- {
2229
- type: 'function',
2230
- inputs: [],
2231
- name: 'upgradeGate',
2232
- outputs: [
2233
- { name: '', internalType: 'contract IUpgradeGate', type: 'address' },
2234
- ],
2235
- stateMutability: 'view',
2236
- },
2237
2117
  {
2238
2118
  type: 'function',
2239
2119
  inputs: [
@@ -2244,80 +2124,62 @@ export const cointagABI = [
2244
2124
  outputs: [],
2245
2125
  stateMutability: 'payable',
2246
2126
  },
2247
- {
2248
- type: 'function',
2249
- inputs: [],
2250
- name: 'weth',
2251
- outputs: [{ name: '', internalType: 'contract IWETH', type: 'address' }],
2252
- stateMutability: 'view',
2253
- },
2254
2127
  {
2255
2128
  type: 'event',
2256
2129
  anonymous: false,
2257
2130
  inputs: [
2258
2131
  {
2259
- name: 'amountERC20Received',
2260
- internalType: 'uint256',
2261
- type: 'uint256',
2262
- indexed: false,
2132
+ name: 'caller',
2133
+ internalType: 'address',
2134
+ type: 'address',
2135
+ indexed: true,
2263
2136
  },
2264
2137
  {
2265
- name: 'amountERC20Burned',
2266
- internalType: 'uint256',
2267
- type: 'uint256',
2268
- indexed: false,
2138
+ name: 'payoutRecipient',
2139
+ internalType: 'address',
2140
+ type: 'address',
2141
+ indexed: true,
2269
2142
  },
2270
2143
  {
2271
- name: 'amountETHSpent',
2272
- internalType: 'uint256',
2273
- type: 'uint256',
2274
- indexed: false,
2144
+ name: 'platformReferrer',
2145
+ internalType: 'address',
2146
+ type: 'address',
2147
+ indexed: true,
2275
2148
  },
2276
2149
  {
2277
- name: 'amountETHToCreator',
2278
- internalType: 'uint256',
2279
- type: 'uint256',
2150
+ name: 'currency',
2151
+ internalType: 'address',
2152
+ type: 'address',
2280
2153
  indexed: false,
2281
2154
  },
2155
+ { name: 'uri', internalType: 'string', type: 'string', indexed: false },
2156
+ { name: 'name', internalType: 'string', type: 'string', indexed: false },
2282
2157
  {
2283
- name: 'totalETHReceived',
2284
- internalType: 'uint256',
2285
- type: 'uint256',
2158
+ name: 'symbol',
2159
+ internalType: 'string',
2160
+ type: 'string',
2286
2161
  indexed: false,
2287
2162
  },
2288
2163
  {
2289
- name: 'buyFailureError',
2290
- internalType: 'bytes',
2291
- type: 'bytes',
2164
+ name: 'coin',
2165
+ internalType: 'address',
2166
+ type: 'address',
2292
2167
  indexed: false,
2293
2168
  },
2294
2169
  {
2295
- name: 'burnFailureError',
2296
- internalType: 'bytes',
2297
- type: 'bytes',
2170
+ name: 'pool',
2171
+ internalType: 'address',
2172
+ type: 'address',
2298
2173
  indexed: false,
2299
2174
  },
2300
- ],
2301
- name: 'BuyBurn',
2302
- },
2303
- {
2304
- type: 'event',
2305
- anonymous: false,
2306
- inputs: [
2307
- {
2308
- name: 'amount',
2309
- internalType: 'uint256',
2310
- type: 'uint256',
2311
- indexed: true,
2312
- },
2313
2175
  {
2314
- name: 'sender',
2315
- internalType: 'address',
2316
- type: 'address',
2317
- indexed: true,
2176
+ name: 'version',
2177
+ internalType: 'string',
2178
+ type: 'string',
2179
+ indexed: false,
2318
2180
  },
2319
2181
  ],
2320
- name: 'EthReceived',
2182
+ name: 'CoinCreated',
2321
2183
  },
2322
2184
  {
2323
2185
  type: 'event',
@@ -2337,66 +2199,16 @@ export const cointagABI = [
2337
2199
  anonymous: false,
2338
2200
  inputs: [
2339
2201
  {
2340
- name: 'creatorRewardRecipient',
2202
+ name: 'previousOwner',
2341
2203
  internalType: 'address',
2342
2204
  type: 'address',
2343
- indexed: false,
2205
+ indexed: true,
2344
2206
  },
2345
2207
  {
2346
- name: 'erc20',
2208
+ name: 'newOwner',
2347
2209
  internalType: 'address',
2348
2210
  type: 'address',
2349
- indexed: false,
2350
- },
2351
- {
2352
- name: 'pool',
2353
- internalType: 'address',
2354
- type: 'address',
2355
- indexed: false,
2356
- },
2357
- {
2358
- name: 'percentageToBuyBurn',
2359
- internalType: 'uint256',
2360
- type: 'uint256',
2361
- indexed: false,
2362
- },
2363
- ],
2364
- name: 'Initialized',
2365
- },
2366
- {
2367
- type: 'event',
2368
- anonymous: false,
2369
- inputs: [
2370
- {
2371
- name: 'previousOwner',
2372
- internalType: 'address',
2373
- type: 'address',
2374
- indexed: true,
2375
- },
2376
- {
2377
- name: 'newOwner',
2378
- internalType: 'address',
2379
- type: 'address',
2380
- indexed: true,
2381
- },
2382
- ],
2383
- name: 'OwnershipTransferStarted',
2384
- },
2385
- {
2386
- type: 'event',
2387
- anonymous: false,
2388
- inputs: [
2389
- {
2390
- name: 'previousOwner',
2391
- internalType: 'address',
2392
- type: 'address',
2393
- indexed: true,
2394
- },
2395
- {
2396
- name: 'newOwner',
2397
- internalType: 'address',
2398
- type: 'address',
2399
- indexed: true,
2211
+ indexed: true,
2400
2212
  },
2401
2213
  ],
2402
2214
  name: 'OwnershipTransferred',
@@ -2424,7 +2236,7 @@ export const cointagABI = [
2424
2236
  inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2425
2237
  name: 'AddressInsufficientBalance',
2426
2238
  },
2427
- { type: 'error', inputs: [], name: 'AddressZero' },
2239
+ { type: 'error', inputs: [], name: 'ERC1167FailedCreateClone' },
2428
2240
  {
2429
2241
  type: 'error',
2430
2242
  inputs: [
@@ -2433,20 +2245,11 @@ export const cointagABI = [
2433
2245
  name: 'ERC1967InvalidImplementation',
2434
2246
  },
2435
2247
  { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
2248
+ { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
2249
+ { type: 'error', inputs: [], name: 'EthTransferInvalid' },
2436
2250
  { type: 'error', inputs: [], name: 'FailedInnerCall' },
2437
2251
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
2438
- {
2439
- type: 'error',
2440
- inputs: [
2441
- { name: 'oldImpl', internalType: 'address', type: 'address' },
2442
- { name: 'newImpl', internalType: 'address', type: 'address' },
2443
- ],
2444
- name: 'InvalidUpgradePath',
2445
- },
2446
2252
  { type: 'error', inputs: [], name: 'NotInitializing' },
2447
- { type: 'error', inputs: [], name: 'NotUniswapV3Pool' },
2448
- { type: 'error', inputs: [], name: 'OnlyPool' },
2449
- { type: 'error', inputs: [], name: 'OnlyProtocolRewardsOrWeth' },
2450
2253
  {
2451
2254
  type: 'error',
2452
2255
  inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
@@ -2457,7 +2260,7 @@ export const cointagABI = [
2457
2260
  inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2458
2261
  name: 'OwnableUnauthorizedAccount',
2459
2262
  },
2460
- { type: 'error', inputs: [], name: 'PoolNeedsOneTokenToBeWETH' },
2263
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
2461
2264
  {
2462
2265
  type: 'error',
2463
2266
  inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
@@ -2469,40 +2272,48 @@ export const cointagABI = [
2469
2272
  inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
2470
2273
  name: 'UUPSUnsupportedProxiableUUID',
2471
2274
  },
2472
- { type: 'error', inputs: [], name: 'UnknownBurnError' },
2473
- { type: 'error', inputs: [], name: 'UnknownSwapError' },
2474
- {
2475
- type: 'error',
2476
- inputs: [
2477
- { name: 'current', internalType: 'string', type: 'string' },
2478
- { name: 'newName', internalType: 'string', type: 'string' },
2479
- ],
2480
- name: 'UpgradeToMismatchedContractName',
2481
- },
2482
2275
  ] as const
2483
2276
 
2484
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2485
- // CointagFactory
2486
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2277
+ /**
2278
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
2279
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
2280
+ */
2281
+ export const coinFactoryAddress = {
2282
+ 8453: '0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC',
2283
+ 84532: '0x1E670515d3A4C75C0860846c0605c84AF0e0db0d',
2284
+ } as const
2487
2285
 
2488
2286
  /**
2489
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
2490
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
2491
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
2492
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777773Bd7Cccb7E704315CA51245707E19B0DE)
2287
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
2288
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
2493
2289
  */
2494
- export const cointagFactoryABI = [
2290
+ export const coinFactoryConfig = {
2291
+ address: coinFactoryAddress,
2292
+ abi: coinFactoryABI,
2293
+ } as const
2294
+
2295
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2296
+ // Cointag
2297
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2298
+
2299
+ export const cointagABI = [
2495
2300
  {
2496
2301
  type: 'constructor',
2497
2302
  inputs: [
2498
- {
2499
- name: '_cointagImplementation',
2500
- internalType: 'address',
2501
- type: 'address',
2502
- },
2303
+ { name: 'protocolRewards_', internalType: 'address', type: 'address' },
2304
+ { name: 'weth_', internalType: 'address', type: 'address' },
2305
+ { name: 'upgradeGate_', internalType: 'address', type: 'address' },
2503
2306
  ],
2504
2307
  stateMutability: 'nonpayable',
2505
2308
  },
2309
+ { type: 'receive', stateMutability: 'payable' },
2310
+ {
2311
+ type: 'function',
2312
+ inputs: [],
2313
+ name: 'PERCENTAGE_BASIS',
2314
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2315
+ stateMutability: 'view',
2316
+ },
2506
2317
  {
2507
2318
  type: 'function',
2508
2319
  inputs: [],
@@ -2520,9 +2331,33 @@ export const cointagFactoryABI = [
2520
2331
  {
2521
2332
  type: 'function',
2522
2333
  inputs: [],
2523
- name: 'cointagImplementation',
2524
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
2525
- stateMutability: 'view',
2334
+ name: 'config',
2335
+ outputs: [
2336
+ {
2337
+ name: 'cointagStorage',
2338
+ internalType: 'struct ICointag.CointagStorageV1',
2339
+ type: 'tuple',
2340
+ components: [
2341
+ {
2342
+ name: 'creatorRewardRecipient',
2343
+ internalType: 'address',
2344
+ type: 'address',
2345
+ },
2346
+ { name: 'erc20', internalType: 'contract IERC20', type: 'address' },
2347
+ {
2348
+ name: 'pool',
2349
+ internalType: 'contract IUniswapV3Pool',
2350
+ type: 'address',
2351
+ },
2352
+ {
2353
+ name: 'percentageToBuyBurn',
2354
+ internalType: 'uint256',
2355
+ type: 'uint256',
2356
+ },
2357
+ ],
2358
+ },
2359
+ ],
2360
+ stateMutability: 'pure',
2526
2361
  },
2527
2362
  {
2528
2363
  type: 'function',
@@ -2534,106 +2369,76 @@ export const cointagFactoryABI = [
2534
2369
  {
2535
2370
  type: 'function',
2536
2371
  inputs: [],
2537
- name: 'contractURI',
2372
+ name: 'contractVersion',
2538
2373
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
2539
2374
  stateMutability: 'pure',
2540
2375
  },
2541
2376
  {
2542
2377
  type: 'function',
2543
2378
  inputs: [],
2544
- name: 'contractVersion',
2545
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
2546
- stateMutability: 'pure',
2379
+ name: 'distribute',
2380
+ outputs: [],
2381
+ stateMutability: 'nonpayable',
2547
2382
  },
2548
2383
  {
2549
2384
  type: 'function',
2550
- inputs: [
2551
- {
2552
- name: '_creatorRewardRecipient',
2553
- internalType: 'address',
2554
- type: 'address',
2555
- },
2556
- { name: '_pool', internalType: 'address', type: 'address' },
2557
- {
2558
- name: '_percentageToBuyBurn',
2559
- internalType: 'uint256',
2560
- type: 'uint256',
2561
- },
2562
- { name: 'saltSource', internalType: 'bytes', type: 'bytes' },
2563
- ],
2564
- name: 'getCointagAddress',
2565
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
2385
+ inputs: [],
2386
+ name: 'erc20',
2387
+ outputs: [{ name: '', internalType: 'contract IERC20', type: 'address' }],
2566
2388
  stateMutability: 'view',
2567
2389
  },
2568
2390
  {
2569
2391
  type: 'function',
2570
- inputs: [
2571
- {
2572
- name: '_creatorRewardRecipient',
2573
- internalType: 'address',
2574
- type: 'address',
2575
- },
2576
- { name: '_pool', internalType: 'address', type: 'address' },
2577
- {
2578
- name: '_percentageToBuyBurn',
2579
- internalType: 'uint256',
2580
- type: 'uint256',
2581
- },
2582
- { name: 'saltSource', internalType: 'bytes', type: 'bytes' },
2583
- ],
2584
- name: 'getOrCreateCointag',
2585
- outputs: [{ name: '', internalType: 'contract ICointag', type: 'address' }],
2586
- stateMutability: 'nonpayable',
2392
+ inputs: [],
2393
+ name: 'implementation',
2394
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2395
+ stateMutability: 'view',
2587
2396
  },
2588
2397
  {
2589
2398
  type: 'function',
2590
2399
  inputs: [
2591
2400
  {
2592
- name: '_creatorRewardRecipient',
2401
+ name: 'creatorRewardRecipient',
2593
2402
  internalType: 'address',
2594
2403
  type: 'address',
2595
2404
  },
2596
- { name: '_pool', internalType: 'address', type: 'address' },
2597
- {
2598
- name: '_percentageToBuyBurn',
2599
- internalType: 'uint256',
2600
- type: 'uint256',
2601
- },
2602
- { name: 'saltSource', internalType: 'bytes', type: 'bytes' },
2603
- { name: 'expectedAddress', internalType: 'address', type: 'address' },
2405
+ { name: 'pool_', internalType: 'address', type: 'address' },
2406
+ { name: 'percentageToBuyBurn', internalType: 'uint256', type: 'uint256' },
2604
2407
  ],
2605
- name: 'getOrCreateCointagAtExpectedAddress',
2606
- outputs: [{ name: '', internalType: 'contract ICointag', type: 'address' }],
2408
+ name: 'initialize',
2409
+ outputs: [],
2607
2410
  stateMutability: 'nonpayable',
2608
2411
  },
2609
2412
  {
2610
2413
  type: 'function',
2611
2414
  inputs: [],
2612
- name: 'implementation',
2415
+ name: 'owner',
2613
2416
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
2614
2417
  stateMutability: 'view',
2615
2418
  },
2616
2419
  {
2617
2420
  type: 'function',
2618
- inputs: [
2619
- { name: '_defaultOwner', internalType: 'address', type: 'address' },
2620
- ],
2621
- name: 'initialize',
2622
- outputs: [],
2623
- stateMutability: 'nonpayable',
2421
+ inputs: [],
2422
+ name: 'pendingOwner',
2423
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2424
+ stateMutability: 'view',
2624
2425
  },
2625
2426
  {
2626
2427
  type: 'function',
2627
2428
  inputs: [],
2628
- name: 'owner',
2629
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
2429
+ name: 'pool',
2430
+ outputs: [
2431
+ { name: '', internalType: 'contract IUniswapV3Pool', type: 'address' },
2432
+ ],
2630
2433
  stateMutability: 'view',
2631
2434
  },
2632
2435
  {
2633
2436
  type: 'function',
2634
2437
  inputs: [],
2635
- name: 'pendingOwner',
2636
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
2438
+ name: 'protocolRewards',
2439
+ outputs: [
2440
+ { name: '', internalType: 'contract IProtocolRewards', type: 'address' },
2441
+ ],
2637
2442
  stateMutability: 'view',
2638
2443
  },
2639
2444
  {
@@ -2643,6 +2448,13 @@ export const cointagFactoryABI = [
2643
2448
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2644
2449
  stateMutability: 'view',
2645
2450
  },
2451
+ {
2452
+ type: 'function',
2453
+ inputs: [],
2454
+ name: 'pull',
2455
+ outputs: [],
2456
+ stateMutability: 'nonpayable',
2457
+ },
2646
2458
  {
2647
2459
  type: 'function',
2648
2460
  inputs: [],
@@ -2657,6 +2469,17 @@ export const cointagFactoryABI = [
2657
2469
  outputs: [],
2658
2470
  stateMutability: 'nonpayable',
2659
2471
  },
2472
+ {
2473
+ type: 'function',
2474
+ inputs: [
2475
+ { name: 'amount0Delta', internalType: 'int256', type: 'int256' },
2476
+ { name: 'amount1Delta', internalType: 'int256', type: 'int256' },
2477
+ { name: '', internalType: 'bytes', type: 'bytes' },
2478
+ ],
2479
+ name: 'uniswapV3SwapCallback',
2480
+ outputs: [],
2481
+ stateMutability: 'nonpayable',
2482
+ },
2660
2483
  {
2661
2484
  type: 'function',
2662
2485
  inputs: [],
@@ -2677,98 +2500,161 @@ export const cointagFactoryABI = [
2677
2500
  stateMutability: 'payable',
2678
2501
  },
2679
2502
  {
2680
- type: 'event',
2681
- anonymous: false,
2682
- inputs: [
2503
+ type: 'function',
2504
+ inputs: [],
2505
+ name: 'weth',
2506
+ outputs: [{ name: '', internalType: 'contract IWETH', type: 'address' }],
2507
+ stateMutability: 'view',
2508
+ },
2509
+ {
2510
+ type: 'event',
2511
+ anonymous: false,
2512
+ inputs: [
2683
2513
  {
2684
- name: 'version',
2685
- internalType: 'uint64',
2686
- type: 'uint64',
2514
+ name: 'amountERC20Received',
2515
+ internalType: 'uint256',
2516
+ type: 'uint256',
2517
+ indexed: false,
2518
+ },
2519
+ {
2520
+ name: 'amountERC20Burned',
2521
+ internalType: 'uint256',
2522
+ type: 'uint256',
2523
+ indexed: false,
2524
+ },
2525
+ {
2526
+ name: 'amountETHSpent',
2527
+ internalType: 'uint256',
2528
+ type: 'uint256',
2529
+ indexed: false,
2530
+ },
2531
+ {
2532
+ name: 'amountETHToCreator',
2533
+ internalType: 'uint256',
2534
+ type: 'uint256',
2535
+ indexed: false,
2536
+ },
2537
+ {
2538
+ name: 'totalETHReceived',
2539
+ internalType: 'uint256',
2540
+ type: 'uint256',
2541
+ indexed: false,
2542
+ },
2543
+ {
2544
+ name: 'buyFailureError',
2545
+ internalType: 'bytes',
2546
+ type: 'bytes',
2547
+ indexed: false,
2548
+ },
2549
+ {
2550
+ name: 'burnFailureError',
2551
+ internalType: 'bytes',
2552
+ type: 'bytes',
2687
2553
  indexed: false,
2688
2554
  },
2689
2555
  ],
2690
- name: 'Initialized',
2556
+ name: 'BuyBurn',
2691
2557
  },
2692
2558
  {
2693
2559
  type: 'event',
2694
2560
  anonymous: false,
2695
2561
  inputs: [
2696
2562
  {
2697
- name: 'previousOwner',
2698
- internalType: 'address',
2699
- type: 'address',
2563
+ name: 'amount',
2564
+ internalType: 'uint256',
2565
+ type: 'uint256',
2700
2566
  indexed: true,
2701
2567
  },
2702
2568
  {
2703
- name: 'newOwner',
2569
+ name: 'sender',
2704
2570
  internalType: 'address',
2705
2571
  type: 'address',
2706
2572
  indexed: true,
2707
2573
  },
2708
2574
  ],
2709
- name: 'OwnershipTransferStarted',
2575
+ name: 'EthReceived',
2710
2576
  },
2711
2577
  {
2712
2578
  type: 'event',
2713
2579
  anonymous: false,
2714
2580
  inputs: [
2715
2581
  {
2716
- name: 'previousOwner',
2582
+ name: 'version',
2583
+ internalType: 'uint64',
2584
+ type: 'uint64',
2585
+ indexed: false,
2586
+ },
2587
+ ],
2588
+ name: 'Initialized',
2589
+ },
2590
+ {
2591
+ type: 'event',
2592
+ anonymous: false,
2593
+ inputs: [
2594
+ {
2595
+ name: 'creatorRewardRecipient',
2717
2596
  internalType: 'address',
2718
2597
  type: 'address',
2719
- indexed: true,
2598
+ indexed: false,
2720
2599
  },
2721
2600
  {
2722
- name: 'newOwner',
2601
+ name: 'erc20',
2723
2602
  internalType: 'address',
2724
2603
  type: 'address',
2725
- indexed: true,
2604
+ indexed: false,
2605
+ },
2606
+ {
2607
+ name: 'pool',
2608
+ internalType: 'address',
2609
+ type: 'address',
2610
+ indexed: false,
2611
+ },
2612
+ {
2613
+ name: 'percentageToBuyBurn',
2614
+ internalType: 'uint256',
2615
+ type: 'uint256',
2616
+ indexed: false,
2726
2617
  },
2727
2618
  ],
2728
- name: 'OwnershipTransferred',
2619
+ name: 'Initialized',
2729
2620
  },
2730
2621
  {
2731
2622
  type: 'event',
2732
2623
  anonymous: false,
2733
2624
  inputs: [
2734
2625
  {
2735
- name: 'cointag',
2626
+ name: 'previousOwner',
2736
2627
  internalType: 'address',
2737
2628
  type: 'address',
2738
2629
  indexed: true,
2739
2630
  },
2740
2631
  {
2741
- name: 'creatorRewardRecipient',
2632
+ name: 'newOwner',
2742
2633
  internalType: 'address',
2743
2634
  type: 'address',
2744
2635
  indexed: true,
2745
2636
  },
2637
+ ],
2638
+ name: 'OwnershipTransferStarted',
2639
+ },
2640
+ {
2641
+ type: 'event',
2642
+ anonymous: false,
2643
+ inputs: [
2746
2644
  {
2747
- name: 'erc20',
2645
+ name: 'previousOwner',
2748
2646
  internalType: 'address',
2749
2647
  type: 'address',
2750
2648
  indexed: true,
2751
2649
  },
2752
2650
  {
2753
- name: 'pool',
2651
+ name: 'newOwner',
2754
2652
  internalType: 'address',
2755
2653
  type: 'address',
2756
- indexed: false,
2757
- },
2758
- {
2759
- name: 'percentageToBuyBurn',
2760
- internalType: 'uint256',
2761
- type: 'uint256',
2762
- indexed: false,
2763
- },
2764
- {
2765
- name: 'saltSource',
2766
- internalType: 'bytes',
2767
- type: 'bytes',
2768
- indexed: false,
2654
+ indexed: true,
2769
2655
  },
2770
2656
  ],
2771
- name: 'SetupNewCointag',
2657
+ name: 'OwnershipTransferred',
2772
2658
  },
2773
2659
  {
2774
2660
  type: 'event',
@@ -2788,6 +2674,11 @@ export const cointagFactoryABI = [
2788
2674
  inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
2789
2675
  name: 'AddressEmptyCode',
2790
2676
  },
2677
+ {
2678
+ type: 'error',
2679
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2680
+ name: 'AddressInsufficientBalance',
2681
+ },
2791
2682
  { type: 'error', inputs: [], name: 'AddressZero' },
2792
2683
  {
2793
2684
  type: 'error',
@@ -2799,7 +2690,18 @@ export const cointagFactoryABI = [
2799
2690
  { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
2800
2691
  { type: 'error', inputs: [], name: 'FailedInnerCall' },
2801
2692
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
2693
+ {
2694
+ type: 'error',
2695
+ inputs: [
2696
+ { name: 'oldImpl', internalType: 'address', type: 'address' },
2697
+ { name: 'newImpl', internalType: 'address', type: 'address' },
2698
+ ],
2699
+ name: 'InvalidUpgradePath',
2700
+ },
2802
2701
  { type: 'error', inputs: [], name: 'NotInitializing' },
2702
+ { type: 'error', inputs: [], name: 'NotUniswapV3Pool' },
2703
+ { type: 'error', inputs: [], name: 'OnlyPool' },
2704
+ { type: 'error', inputs: [], name: 'OnlyProtocolRewardsOrWeth' },
2803
2705
  {
2804
2706
  type: 'error',
2805
2707
  inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
@@ -2810,42 +2712,33 @@ export const cointagFactoryABI = [
2810
2712
  inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
2811
2713
  name: 'OwnableUnauthorizedAccount',
2812
2714
  },
2813
- { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
2715
+ { type: 'error', inputs: [], name: 'PoolNeedsOneTokenToBeWETH' },
2814
2716
  {
2815
2717
  type: 'error',
2816
- inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
2817
- name: 'UUPSUnsupportedProxiableUUID',
2718
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
2719
+ name: 'SafeERC20FailedOperation',
2818
2720
  },
2721
+ { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
2819
2722
  {
2820
2723
  type: 'error',
2821
- inputs: [
2822
- { name: 'expected', internalType: 'address', type: 'address' },
2823
- { name: 'actual', internalType: 'address', type: 'address' },
2824
- ],
2825
- name: 'UnexpectedCointagAddress',
2724
+ inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
2725
+ name: 'UUPSUnsupportedProxiableUUID',
2826
2726
  },
2727
+ { type: 'error', inputs: [], name: 'UnknownBurnError' },
2728
+ { type: 'error', inputs: [], name: 'UnknownSwapError' },
2827
2729
  {
2828
2730
  type: 'error',
2829
2731
  inputs: [
2830
- { name: 'currentName', internalType: 'string', type: 'string' },
2732
+ { name: 'current', internalType: 'string', type: 'string' },
2831
2733
  { name: 'newName', internalType: 'string', type: 'string' },
2832
2734
  ],
2833
2735
  name: 'UpgradeToMismatchedContractName',
2834
2736
  },
2835
2737
  ] as const
2836
2738
 
2837
- /**
2838
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
2839
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
2840
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
2841
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777773Bd7Cccb7E704315CA51245707E19B0DE)
2842
- */
2843
- export const cointagFactoryAddress = {
2844
- 8453: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
2845
- 84532: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
2846
- 7777777: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
2847
- 999999999: '0x77777773Bd7Cccb7E704315CA51245707E19B0DE',
2848
- } as const
2739
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2740
+ // CointagFactory
2741
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2849
2742
 
2850
2743
  /**
2851
2744
  * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
@@ -2853,356 +2746,718 @@ export const cointagFactoryAddress = {
2853
2746
  * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
2854
2747
  * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777773Bd7Cccb7E704315CA51245707E19B0DE)
2855
2748
  */
2856
- export const cointagFactoryConfig = {
2857
- address: cointagFactoryAddress,
2858
- abi: cointagFactoryABI,
2859
- } as const
2860
-
2861
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2862
- // Comments
2863
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2864
-
2865
- /**
2866
- * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2867
- * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2868
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2869
- * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2870
- * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2871
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2872
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2873
- * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2874
- * - [__View Contract on Op Sepolia Blockscout__](https://optimism-sepolia.blockscout.com/address/0x7777777C2B3132e03a65721a41745C07170a5877)
2875
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777C2B3132e03a65721a41745C07170a5877)
2876
- */
2877
- export const commentsABI = [
2749
+ export const cointagFactoryABI = [
2878
2750
  {
2879
2751
  type: 'constructor',
2880
2752
  inputs: [
2881
- { name: '_sparkValue', internalType: 'uint256', type: 'uint256' },
2882
- { name: '_protocolRewards', internalType: 'address', type: 'address' },
2883
- { name: '_zoraRecipient', internalType: 'address', type: 'address' },
2753
+ {
2754
+ name: '_cointagImplementation',
2755
+ internalType: 'address',
2756
+ type: 'address',
2757
+ },
2884
2758
  ],
2885
2759
  stateMutability: 'nonpayable',
2886
2760
  },
2887
2761
  {
2888
2762
  type: 'function',
2889
2763
  inputs: [],
2890
- name: 'BACKFILLER_ROLE',
2891
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2764
+ name: 'UPGRADE_INTERFACE_VERSION',
2765
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
2892
2766
  stateMutability: 'view',
2893
2767
  },
2894
2768
  {
2895
2769
  type: 'function',
2896
2770
  inputs: [],
2897
- name: 'DEFAULT_ADMIN_ROLE',
2898
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2899
- stateMutability: 'view',
2771
+ name: 'acceptOwnership',
2772
+ outputs: [],
2773
+ stateMutability: 'nonpayable',
2900
2774
  },
2901
2775
  {
2902
2776
  type: 'function',
2903
2777
  inputs: [],
2904
- name: 'DELEGATE_COMMENTER',
2905
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2778
+ name: 'cointagImplementation',
2779
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2906
2780
  stateMutability: 'view',
2907
2781
  },
2908
2782
  {
2909
2783
  type: 'function',
2910
2784
  inputs: [],
2911
- name: 'DOMAIN_NAME',
2785
+ name: 'contractName',
2912
2786
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
2913
- stateMutability: 'view',
2787
+ stateMutability: 'pure',
2914
2788
  },
2915
2789
  {
2916
2790
  type: 'function',
2917
2791
  inputs: [],
2918
- name: 'DOMAIN_VERSION',
2792
+ name: 'contractURI',
2919
2793
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
2920
- stateMutability: 'view',
2921
- },
2922
- {
2923
- type: 'function',
2924
- inputs: [],
2925
- name: 'PERMISSION_BIT_ADMIN',
2926
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2927
- stateMutability: 'view',
2928
- },
2929
- {
2930
- type: 'function',
2931
- inputs: [],
2932
- name: 'REFERRER_REWARD_PCT',
2933
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2934
- stateMutability: 'view',
2794
+ stateMutability: 'pure',
2935
2795
  },
2936
2796
  {
2937
2797
  type: 'function',
2938
2798
  inputs: [],
2939
- name: 'UPGRADE_INTERFACE_VERSION',
2799
+ name: 'contractVersion',
2940
2800
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
2941
- stateMutability: 'view',
2942
- },
2943
- {
2944
- type: 'function',
2945
- inputs: [],
2946
- name: 'ZORA_REWARD_NO_REFERRER_PCT',
2947
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2948
- stateMutability: 'view',
2949
- },
2950
- {
2951
- type: 'function',
2952
- inputs: [],
2953
- name: 'ZORA_REWARD_PCT',
2954
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2955
- stateMutability: 'view',
2801
+ stateMutability: 'pure',
2956
2802
  },
2957
2803
  {
2958
2804
  type: 'function',
2959
2805
  inputs: [
2960
2806
  {
2961
- name: 'commentIdentifiers',
2962
- internalType: 'struct IComments.CommentIdentifier[]',
2963
- type: 'tuple[]',
2964
- components: [
2965
- { name: 'commenter', internalType: 'address', type: 'address' },
2966
- { name: 'contractAddress', internalType: 'address', type: 'address' },
2967
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
2968
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
2969
- ],
2807
+ name: '_creatorRewardRecipient',
2808
+ internalType: 'address',
2809
+ type: 'address',
2970
2810
  },
2971
- { name: 'texts', internalType: 'string[]', type: 'string[]' },
2972
- { name: 'timestamps', internalType: 'uint256[]', type: 'uint256[]' },
2811
+ { name: '_pool', internalType: 'address', type: 'address' },
2973
2812
  {
2974
- name: 'originalTransactionHashes',
2975
- internalType: 'bytes32[]',
2976
- type: 'bytes32[]',
2813
+ name: '_percentageToBuyBurn',
2814
+ internalType: 'uint256',
2815
+ type: 'uint256',
2977
2816
  },
2817
+ { name: 'saltSource', internalType: 'bytes', type: 'bytes' },
2978
2818
  ],
2979
- name: 'backfillBatchAddComment',
2980
- outputs: [],
2981
- stateMutability: 'nonpayable',
2819
+ name: 'getCointagAddress',
2820
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2821
+ stateMutability: 'view',
2982
2822
  },
2983
2823
  {
2984
2824
  type: 'function',
2985
2825
  inputs: [
2986
- { name: 'commenter', internalType: 'address', type: 'address' },
2987
- { name: 'contractAddress', internalType: 'address', type: 'address' },
2988
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
2989
- { name: 'text', internalType: 'string', type: 'string' },
2990
- {
2991
- name: 'replyTo',
2992
- internalType: 'struct IComments.CommentIdentifier',
2993
- type: 'tuple',
2994
- components: [
2995
- { name: 'commenter', internalType: 'address', type: 'address' },
2996
- { name: 'contractAddress', internalType: 'address', type: 'address' },
2997
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
2998
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
2999
- ],
3000
- },
3001
2826
  {
3002
- name: 'commenterSmartWallet',
2827
+ name: '_creatorRewardRecipient',
3003
2828
  internalType: 'address',
3004
2829
  type: 'address',
3005
2830
  },
3006
- { name: 'referrer', internalType: 'address', type: 'address' },
3007
- ],
3008
- name: 'comment',
3009
- outputs: [
2831
+ { name: '_pool', internalType: 'address', type: 'address' },
3010
2832
  {
3011
- name: 'commentIdentifier',
3012
- internalType: 'struct IComments.CommentIdentifier',
3013
- type: 'tuple',
3014
- components: [
3015
- { name: 'commenter', internalType: 'address', type: 'address' },
3016
- { name: 'contractAddress', internalType: 'address', type: 'address' },
3017
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3018
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3019
- ],
2833
+ name: '_percentageToBuyBurn',
2834
+ internalType: 'uint256',
2835
+ type: 'uint256',
3020
2836
  },
2837
+ { name: 'saltSource', internalType: 'bytes', type: 'bytes' },
3021
2838
  ],
3022
- stateMutability: 'payable',
2839
+ name: 'getOrCreateCointag',
2840
+ outputs: [{ name: '', internalType: 'contract ICointag', type: 'address' }],
2841
+ stateMutability: 'nonpayable',
3023
2842
  },
3024
2843
  {
3025
2844
  type: 'function',
3026
2845
  inputs: [
3027
2846
  {
3028
- name: 'commentIdentifier',
3029
- internalType: 'struct IComments.CommentIdentifier',
3030
- type: 'tuple',
3031
- components: [
3032
- { name: 'commenter', internalType: 'address', type: 'address' },
3033
- { name: 'contractAddress', internalType: 'address', type: 'address' },
3034
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3035
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3036
- ],
2847
+ name: '_creatorRewardRecipient',
2848
+ internalType: 'address',
2849
+ type: 'address',
2850
+ },
2851
+ { name: '_pool', internalType: 'address', type: 'address' },
2852
+ {
2853
+ name: '_percentageToBuyBurn',
2854
+ internalType: 'uint256',
2855
+ type: 'uint256',
3037
2856
  },
2857
+ { name: 'saltSource', internalType: 'bytes', type: 'bytes' },
2858
+ { name: 'expectedAddress', internalType: 'address', type: 'address' },
3038
2859
  ],
3039
- name: 'commentSparksQuantity',
3040
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3041
- stateMutability: 'view',
2860
+ name: 'getOrCreateCointagAtExpectedAddress',
2861
+ outputs: [{ name: '', internalType: 'contract ICointag', type: 'address' }],
2862
+ stateMutability: 'nonpayable',
3042
2863
  },
3043
2864
  {
3044
2865
  type: 'function',
3045
2866
  inputs: [],
3046
- name: 'contractName',
3047
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
3048
- stateMutability: 'pure',
2867
+ name: 'implementation',
2868
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2869
+ stateMutability: 'view',
3049
2870
  },
3050
2871
  {
3051
2872
  type: 'function',
3052
- inputs: [],
3053
- name: 'contractVersion',
3054
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
3055
- stateMutability: 'pure',
2873
+ inputs: [
2874
+ { name: '_defaultOwner', internalType: 'address', type: 'address' },
2875
+ ],
2876
+ name: 'initialize',
2877
+ outputs: [],
2878
+ stateMutability: 'nonpayable',
3056
2879
  },
3057
2880
  {
3058
2881
  type: 'function',
3059
- inputs: [
3060
- { name: 'commenter', internalType: 'address', type: 'address' },
3061
- { name: 'contractAddress', internalType: 'address', type: 'address' },
3062
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3063
- { name: 'text', internalType: 'string', type: 'string' },
3064
- {
3065
- name: 'replyTo',
3066
- internalType: 'struct IComments.CommentIdentifier',
3067
- type: 'tuple',
3068
- components: [
3069
- { name: 'commenter', internalType: 'address', type: 'address' },
3070
- { name: 'contractAddress', internalType: 'address', type: 'address' },
3071
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3072
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3073
- ],
3074
- },
3075
- {
3076
- name: 'commenterSmartWalletOwner',
3077
- internalType: 'address',
3078
- type: 'address',
3079
- },
3080
- { name: 'referrer', internalType: 'address', type: 'address' },
3081
- ],
3082
- name: 'delegateComment',
3083
- outputs: [
3084
- {
3085
- name: 'commentIdentifier',
3086
- internalType: 'struct IComments.CommentIdentifier',
3087
- type: 'tuple',
3088
- components: [
3089
- { name: 'commenter', internalType: 'address', type: 'address' },
3090
- { name: 'contractAddress', internalType: 'address', type: 'address' },
3091
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3092
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3093
- ],
3094
- },
3095
- { name: 'commentId', internalType: 'bytes32', type: 'bytes32' },
3096
- ],
3097
- stateMutability: 'payable',
2882
+ inputs: [],
2883
+ name: 'owner',
2884
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2885
+ stateMutability: 'view',
3098
2886
  },
3099
2887
  {
3100
2888
  type: 'function',
3101
2889
  inputs: [],
3102
- name: 'eip712Domain',
3103
- outputs: [
3104
- { name: 'fields', internalType: 'bytes1', type: 'bytes1' },
3105
- { name: 'name', internalType: 'string', type: 'string' },
3106
- { name: 'version', internalType: 'string', type: 'string' },
3107
- { name: 'chainId', internalType: 'uint256', type: 'uint256' },
3108
- { name: 'verifyingContract', internalType: 'address', type: 'address' },
3109
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
3110
- { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
3111
- ],
2890
+ name: 'pendingOwner',
2891
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3112
2892
  stateMutability: 'view',
3113
2893
  },
3114
2894
  {
3115
2895
  type: 'function',
3116
- inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }],
3117
- name: 'getRoleAdmin',
2896
+ inputs: [],
2897
+ name: 'proxiableUUID',
3118
2898
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3119
2899
  stateMutability: 'view',
3120
2900
  },
3121
2901
  {
3122
2902
  type: 'function',
3123
- inputs: [
3124
- { name: 'role', internalType: 'bytes32', type: 'bytes32' },
3125
- { name: 'account', internalType: 'address', type: 'address' },
3126
- ],
3127
- name: 'grantRole',
2903
+ inputs: [],
2904
+ name: 'renounceOwnership',
3128
2905
  outputs: [],
3129
2906
  stateMutability: 'nonpayable',
3130
2907
  },
3131
2908
  {
3132
2909
  type: 'function',
3133
- inputs: [
3134
- { name: 'role', internalType: 'bytes32', type: 'bytes32' },
3135
- { name: 'account', internalType: 'address', type: 'address' },
3136
- ],
3137
- name: 'hasRole',
3138
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3139
- stateMutability: 'view',
2910
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
2911
+ name: 'transferOwnership',
2912
+ outputs: [],
2913
+ stateMutability: 'nonpayable',
3140
2914
  },
3141
2915
  {
3142
2916
  type: 'function',
3143
- inputs: [
3144
- {
3145
- name: 'commentIdentifier',
3146
- internalType: 'struct IComments.CommentIdentifier',
3147
- type: 'tuple',
3148
- components: [
3149
- { name: 'commenter', internalType: 'address', type: 'address' },
3150
- { name: 'contractAddress', internalType: 'address', type: 'address' },
3151
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3152
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3153
- ],
3154
- },
3155
- ],
3156
- name: 'hashAndCheckCommentExists',
2917
+ inputs: [],
2918
+ name: 'upgradeGate',
3157
2919
  outputs: [
3158
- { name: 'commentId', internalType: 'bytes32', type: 'bytes32' },
3159
- { name: 'exists', internalType: 'bool', type: 'bool' },
2920
+ { name: '', internalType: 'contract IUpgradeGate', type: 'address' },
3160
2921
  ],
3161
2922
  stateMutability: 'view',
3162
2923
  },
3163
2924
  {
3164
2925
  type: 'function',
3165
2926
  inputs: [
3166
- {
3167
- name: 'commentIdentifier',
3168
- internalType: 'struct IComments.CommentIdentifier',
3169
- type: 'tuple',
3170
- components: [
3171
- { name: 'commenter', internalType: 'address', type: 'address' },
3172
- { name: 'contractAddress', internalType: 'address', type: 'address' },
3173
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3174
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3175
- ],
3176
- },
2927
+ { name: 'newImplementation', internalType: 'address', type: 'address' },
2928
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
3177
2929
  ],
3178
- name: 'hashAndValidateCommentExists',
3179
- outputs: [{ name: 'commentId', internalType: 'bytes32', type: 'bytes32' }],
3180
- stateMutability: 'view',
2930
+ name: 'upgradeToAndCall',
2931
+ outputs: [],
2932
+ stateMutability: 'payable',
3181
2933
  },
3182
2934
  {
3183
- type: 'function',
2935
+ type: 'event',
2936
+ anonymous: false,
3184
2937
  inputs: [
3185
2938
  {
3186
- name: 'commentIdentifier',
3187
- internalType: 'struct IComments.CommentIdentifier',
3188
- type: 'tuple',
3189
- components: [
3190
- { name: 'commenter', internalType: 'address', type: 'address' },
3191
- { name: 'contractAddress', internalType: 'address', type: 'address' },
3192
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3193
- { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3194
- ],
2939
+ name: 'version',
2940
+ internalType: 'uint64',
2941
+ type: 'uint64',
2942
+ indexed: false,
3195
2943
  },
3196
2944
  ],
3197
- name: 'hashCommentIdentifier',
3198
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3199
- stateMutability: 'pure',
2945
+ name: 'Initialized',
3200
2946
  },
3201
2947
  {
3202
- type: 'function',
2948
+ type: 'event',
2949
+ anonymous: false,
3203
2950
  inputs: [
3204
2951
  {
3205
- name: 'permit',
2952
+ name: 'previousOwner',
2953
+ internalType: 'address',
2954
+ type: 'address',
2955
+ indexed: true,
2956
+ },
2957
+ {
2958
+ name: 'newOwner',
2959
+ internalType: 'address',
2960
+ type: 'address',
2961
+ indexed: true,
2962
+ },
2963
+ ],
2964
+ name: 'OwnershipTransferStarted',
2965
+ },
2966
+ {
2967
+ type: 'event',
2968
+ anonymous: false,
2969
+ inputs: [
2970
+ {
2971
+ name: 'previousOwner',
2972
+ internalType: 'address',
2973
+ type: 'address',
2974
+ indexed: true,
2975
+ },
2976
+ {
2977
+ name: 'newOwner',
2978
+ internalType: 'address',
2979
+ type: 'address',
2980
+ indexed: true,
2981
+ },
2982
+ ],
2983
+ name: 'OwnershipTransferred',
2984
+ },
2985
+ {
2986
+ type: 'event',
2987
+ anonymous: false,
2988
+ inputs: [
2989
+ {
2990
+ name: 'cointag',
2991
+ internalType: 'address',
2992
+ type: 'address',
2993
+ indexed: true,
2994
+ },
2995
+ {
2996
+ name: 'creatorRewardRecipient',
2997
+ internalType: 'address',
2998
+ type: 'address',
2999
+ indexed: true,
3000
+ },
3001
+ {
3002
+ name: 'erc20',
3003
+ internalType: 'address',
3004
+ type: 'address',
3005
+ indexed: true,
3006
+ },
3007
+ {
3008
+ name: 'pool',
3009
+ internalType: 'address',
3010
+ type: 'address',
3011
+ indexed: false,
3012
+ },
3013
+ {
3014
+ name: 'percentageToBuyBurn',
3015
+ internalType: 'uint256',
3016
+ type: 'uint256',
3017
+ indexed: false,
3018
+ },
3019
+ {
3020
+ name: 'saltSource',
3021
+ internalType: 'bytes',
3022
+ type: 'bytes',
3023
+ indexed: false,
3024
+ },
3025
+ ],
3026
+ name: 'SetupNewCointag',
3027
+ },
3028
+ {
3029
+ type: 'event',
3030
+ anonymous: false,
3031
+ inputs: [
3032
+ {
3033
+ name: 'implementation',
3034
+ internalType: 'address',
3035
+ type: 'address',
3036
+ indexed: true,
3037
+ },
3038
+ ],
3039
+ name: 'Upgraded',
3040
+ },
3041
+ {
3042
+ type: 'error',
3043
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
3044
+ name: 'AddressEmptyCode',
3045
+ },
3046
+ { type: 'error', inputs: [], name: 'AddressZero' },
3047
+ {
3048
+ type: 'error',
3049
+ inputs: [
3050
+ { name: 'implementation', internalType: 'address', type: 'address' },
3051
+ ],
3052
+ name: 'ERC1967InvalidImplementation',
3053
+ },
3054
+ { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
3055
+ { type: 'error', inputs: [], name: 'FailedInnerCall' },
3056
+ { type: 'error', inputs: [], name: 'InvalidInitialization' },
3057
+ { type: 'error', inputs: [], name: 'NotInitializing' },
3058
+ {
3059
+ type: 'error',
3060
+ inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
3061
+ name: 'OwnableInvalidOwner',
3062
+ },
3063
+ {
3064
+ type: 'error',
3065
+ inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
3066
+ name: 'OwnableUnauthorizedAccount',
3067
+ },
3068
+ { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
3069
+ {
3070
+ type: 'error',
3071
+ inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
3072
+ name: 'UUPSUnsupportedProxiableUUID',
3073
+ },
3074
+ {
3075
+ type: 'error',
3076
+ inputs: [
3077
+ { name: 'expected', internalType: 'address', type: 'address' },
3078
+ { name: 'actual', internalType: 'address', type: 'address' },
3079
+ ],
3080
+ name: 'UnexpectedCointagAddress',
3081
+ },
3082
+ {
3083
+ type: 'error',
3084
+ inputs: [
3085
+ { name: 'currentName', internalType: 'string', type: 'string' },
3086
+ { name: 'newName', internalType: 'string', type: 'string' },
3087
+ ],
3088
+ name: 'UpgradeToMismatchedContractName',
3089
+ },
3090
+ ] as const
3091
+
3092
+ /**
3093
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
3094
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
3095
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
3096
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777773Bd7Cccb7E704315CA51245707E19B0DE)
3097
+ */
3098
+ export const cointagFactoryAddress = {
3099
+ 8453: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
3100
+ 84532: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
3101
+ 7777777: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
3102
+ 999999999: '0x77777773Bd7Cccb7E704315CA51245707E19B0DE',
3103
+ } as const
3104
+
3105
+ /**
3106
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
3107
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
3108
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
3109
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777773Bd7Cccb7E704315CA51245707E19B0DE)
3110
+ */
3111
+ export const cointagFactoryConfig = {
3112
+ address: cointagFactoryAddress,
3113
+ abi: cointagFactoryABI,
3114
+ } as const
3115
+
3116
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3117
+ // Comments
3118
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3119
+
3120
+ /**
3121
+ * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3122
+ * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3123
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3124
+ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3125
+ * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3126
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3127
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3128
+ * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3129
+ * - [__View Contract on Op Sepolia Blockscout__](https://optimism-sepolia.blockscout.com/address/0x7777777C2B3132e03a65721a41745C07170a5877)
3130
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777C2B3132e03a65721a41745C07170a5877)
3131
+ */
3132
+ export const commentsABI = [
3133
+ {
3134
+ type: 'constructor',
3135
+ inputs: [
3136
+ { name: '_sparkValue', internalType: 'uint256', type: 'uint256' },
3137
+ { name: '_protocolRewards', internalType: 'address', type: 'address' },
3138
+ { name: '_zoraRecipient', internalType: 'address', type: 'address' },
3139
+ ],
3140
+ stateMutability: 'nonpayable',
3141
+ },
3142
+ {
3143
+ type: 'function',
3144
+ inputs: [],
3145
+ name: 'BACKFILLER_ROLE',
3146
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3147
+ stateMutability: 'view',
3148
+ },
3149
+ {
3150
+ type: 'function',
3151
+ inputs: [],
3152
+ name: 'DEFAULT_ADMIN_ROLE',
3153
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3154
+ stateMutability: 'view',
3155
+ },
3156
+ {
3157
+ type: 'function',
3158
+ inputs: [],
3159
+ name: 'DELEGATE_COMMENTER',
3160
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3161
+ stateMutability: 'view',
3162
+ },
3163
+ {
3164
+ type: 'function',
3165
+ inputs: [],
3166
+ name: 'DOMAIN_NAME',
3167
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3168
+ stateMutability: 'view',
3169
+ },
3170
+ {
3171
+ type: 'function',
3172
+ inputs: [],
3173
+ name: 'DOMAIN_VERSION',
3174
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3175
+ stateMutability: 'view',
3176
+ },
3177
+ {
3178
+ type: 'function',
3179
+ inputs: [],
3180
+ name: 'PERMISSION_BIT_ADMIN',
3181
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3182
+ stateMutability: 'view',
3183
+ },
3184
+ {
3185
+ type: 'function',
3186
+ inputs: [],
3187
+ name: 'REFERRER_REWARD_PCT',
3188
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3189
+ stateMutability: 'view',
3190
+ },
3191
+ {
3192
+ type: 'function',
3193
+ inputs: [],
3194
+ name: 'UPGRADE_INTERFACE_VERSION',
3195
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3196
+ stateMutability: 'view',
3197
+ },
3198
+ {
3199
+ type: 'function',
3200
+ inputs: [],
3201
+ name: 'ZORA_REWARD_NO_REFERRER_PCT',
3202
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3203
+ stateMutability: 'view',
3204
+ },
3205
+ {
3206
+ type: 'function',
3207
+ inputs: [],
3208
+ name: 'ZORA_REWARD_PCT',
3209
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3210
+ stateMutability: 'view',
3211
+ },
3212
+ {
3213
+ type: 'function',
3214
+ inputs: [
3215
+ {
3216
+ name: 'commentIdentifiers',
3217
+ internalType: 'struct IComments.CommentIdentifier[]',
3218
+ type: 'tuple[]',
3219
+ components: [
3220
+ { name: 'commenter', internalType: 'address', type: 'address' },
3221
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3222
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3223
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3224
+ ],
3225
+ },
3226
+ { name: 'texts', internalType: 'string[]', type: 'string[]' },
3227
+ { name: 'timestamps', internalType: 'uint256[]', type: 'uint256[]' },
3228
+ {
3229
+ name: 'originalTransactionHashes',
3230
+ internalType: 'bytes32[]',
3231
+ type: 'bytes32[]',
3232
+ },
3233
+ ],
3234
+ name: 'backfillBatchAddComment',
3235
+ outputs: [],
3236
+ stateMutability: 'nonpayable',
3237
+ },
3238
+ {
3239
+ type: 'function',
3240
+ inputs: [
3241
+ { name: 'commenter', internalType: 'address', type: 'address' },
3242
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3243
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3244
+ { name: 'text', internalType: 'string', type: 'string' },
3245
+ {
3246
+ name: 'replyTo',
3247
+ internalType: 'struct IComments.CommentIdentifier',
3248
+ type: 'tuple',
3249
+ components: [
3250
+ { name: 'commenter', internalType: 'address', type: 'address' },
3251
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3252
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3253
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3254
+ ],
3255
+ },
3256
+ {
3257
+ name: 'commenterSmartWallet',
3258
+ internalType: 'address',
3259
+ type: 'address',
3260
+ },
3261
+ { name: 'referrer', internalType: 'address', type: 'address' },
3262
+ ],
3263
+ name: 'comment',
3264
+ outputs: [
3265
+ {
3266
+ name: 'commentIdentifier',
3267
+ internalType: 'struct IComments.CommentIdentifier',
3268
+ type: 'tuple',
3269
+ components: [
3270
+ { name: 'commenter', internalType: 'address', type: 'address' },
3271
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3272
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3273
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3274
+ ],
3275
+ },
3276
+ ],
3277
+ stateMutability: 'payable',
3278
+ },
3279
+ {
3280
+ type: 'function',
3281
+ inputs: [
3282
+ {
3283
+ name: 'commentIdentifier',
3284
+ internalType: 'struct IComments.CommentIdentifier',
3285
+ type: 'tuple',
3286
+ components: [
3287
+ { name: 'commenter', internalType: 'address', type: 'address' },
3288
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3289
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3290
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3291
+ ],
3292
+ },
3293
+ ],
3294
+ name: 'commentSparksQuantity',
3295
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3296
+ stateMutability: 'view',
3297
+ },
3298
+ {
3299
+ type: 'function',
3300
+ inputs: [],
3301
+ name: 'contractName',
3302
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3303
+ stateMutability: 'pure',
3304
+ },
3305
+ {
3306
+ type: 'function',
3307
+ inputs: [],
3308
+ name: 'contractVersion',
3309
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
3310
+ stateMutability: 'pure',
3311
+ },
3312
+ {
3313
+ type: 'function',
3314
+ inputs: [
3315
+ { name: 'commenter', internalType: 'address', type: 'address' },
3316
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3317
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3318
+ { name: 'text', internalType: 'string', type: 'string' },
3319
+ {
3320
+ name: 'replyTo',
3321
+ internalType: 'struct IComments.CommentIdentifier',
3322
+ type: 'tuple',
3323
+ components: [
3324
+ { name: 'commenter', internalType: 'address', type: 'address' },
3325
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3326
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3327
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3328
+ ],
3329
+ },
3330
+ {
3331
+ name: 'commenterSmartWalletOwner',
3332
+ internalType: 'address',
3333
+ type: 'address',
3334
+ },
3335
+ { name: 'referrer', internalType: 'address', type: 'address' },
3336
+ ],
3337
+ name: 'delegateComment',
3338
+ outputs: [
3339
+ {
3340
+ name: 'commentIdentifier',
3341
+ internalType: 'struct IComments.CommentIdentifier',
3342
+ type: 'tuple',
3343
+ components: [
3344
+ { name: 'commenter', internalType: 'address', type: 'address' },
3345
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3346
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3347
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3348
+ ],
3349
+ },
3350
+ { name: 'commentId', internalType: 'bytes32', type: 'bytes32' },
3351
+ ],
3352
+ stateMutability: 'payable',
3353
+ },
3354
+ {
3355
+ type: 'function',
3356
+ inputs: [],
3357
+ name: 'eip712Domain',
3358
+ outputs: [
3359
+ { name: 'fields', internalType: 'bytes1', type: 'bytes1' },
3360
+ { name: 'name', internalType: 'string', type: 'string' },
3361
+ { name: 'version', internalType: 'string', type: 'string' },
3362
+ { name: 'chainId', internalType: 'uint256', type: 'uint256' },
3363
+ { name: 'verifyingContract', internalType: 'address', type: 'address' },
3364
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
3365
+ { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
3366
+ ],
3367
+ stateMutability: 'view',
3368
+ },
3369
+ {
3370
+ type: 'function',
3371
+ inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }],
3372
+ name: 'getRoleAdmin',
3373
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3374
+ stateMutability: 'view',
3375
+ },
3376
+ {
3377
+ type: 'function',
3378
+ inputs: [
3379
+ { name: 'role', internalType: 'bytes32', type: 'bytes32' },
3380
+ { name: 'account', internalType: 'address', type: 'address' },
3381
+ ],
3382
+ name: 'grantRole',
3383
+ outputs: [],
3384
+ stateMutability: 'nonpayable',
3385
+ },
3386
+ {
3387
+ type: 'function',
3388
+ inputs: [
3389
+ { name: 'role', internalType: 'bytes32', type: 'bytes32' },
3390
+ { name: 'account', internalType: 'address', type: 'address' },
3391
+ ],
3392
+ name: 'hasRole',
3393
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3394
+ stateMutability: 'view',
3395
+ },
3396
+ {
3397
+ type: 'function',
3398
+ inputs: [
3399
+ {
3400
+ name: 'commentIdentifier',
3401
+ internalType: 'struct IComments.CommentIdentifier',
3402
+ type: 'tuple',
3403
+ components: [
3404
+ { name: 'commenter', internalType: 'address', type: 'address' },
3405
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3406
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3407
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3408
+ ],
3409
+ },
3410
+ ],
3411
+ name: 'hashAndCheckCommentExists',
3412
+ outputs: [
3413
+ { name: 'commentId', internalType: 'bytes32', type: 'bytes32' },
3414
+ { name: 'exists', internalType: 'bool', type: 'bool' },
3415
+ ],
3416
+ stateMutability: 'view',
3417
+ },
3418
+ {
3419
+ type: 'function',
3420
+ inputs: [
3421
+ {
3422
+ name: 'commentIdentifier',
3423
+ internalType: 'struct IComments.CommentIdentifier',
3424
+ type: 'tuple',
3425
+ components: [
3426
+ { name: 'commenter', internalType: 'address', type: 'address' },
3427
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3428
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3429
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3430
+ ],
3431
+ },
3432
+ ],
3433
+ name: 'hashAndValidateCommentExists',
3434
+ outputs: [{ name: 'commentId', internalType: 'bytes32', type: 'bytes32' }],
3435
+ stateMutability: 'view',
3436
+ },
3437
+ {
3438
+ type: 'function',
3439
+ inputs: [
3440
+ {
3441
+ name: 'commentIdentifier',
3442
+ internalType: 'struct IComments.CommentIdentifier',
3443
+ type: 'tuple',
3444
+ components: [
3445
+ { name: 'commenter', internalType: 'address', type: 'address' },
3446
+ { name: 'contractAddress', internalType: 'address', type: 'address' },
3447
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
3448
+ { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
3449
+ ],
3450
+ },
3451
+ ],
3452
+ name: 'hashCommentIdentifier',
3453
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3454
+ stateMutability: 'pure',
3455
+ },
3456
+ {
3457
+ type: 'function',
3458
+ inputs: [
3459
+ {
3460
+ name: 'permit',
3206
3461
  internalType: 'struct IComments.PermitComment',
3207
3462
  type: 'tuple',
3208
3463
  components: [
@@ -11785,453 +12040,181 @@ export const zoraCreatorRedeemMinterFactoryABI = [
11785
12040
  type: 'function',
11786
12041
  inputs: [],
11787
12042
  name: 'contractURI',
11788
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
11789
- stateMutability: 'pure',
11790
- },
11791
- {
11792
- type: 'function',
11793
- inputs: [],
11794
- name: 'contractVersion',
11795
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
11796
- stateMutability: 'pure',
11797
- },
11798
- {
11799
- type: 'function',
11800
- inputs: [],
11801
- name: 'createMinterIfNoneExists',
11802
- outputs: [],
11803
- stateMutability: 'nonpayable',
11804
- },
11805
- {
11806
- type: 'function',
11807
- inputs: [
11808
- { name: '_creatorContract', internalType: 'address', type: 'address' },
11809
- ],
11810
- name: 'doesRedeemMinterExistForCreatorContract',
11811
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
11812
- stateMutability: 'view',
11813
- },
11814
- {
11815
- type: 'function',
11816
- inputs: [
11817
- { name: '_creatorContract', internalType: 'address', type: 'address' },
11818
- ],
11819
- name: 'getDeployedRedeemMinterForCreatorContract',
11820
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
11821
- stateMutability: 'view',
11822
- },
11823
- {
11824
- type: 'function',
11825
- inputs: [
11826
- { name: '_creatorContract', internalType: 'address', type: 'address' },
11827
- ],
11828
- name: 'predictMinterAddress',
11829
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
11830
- stateMutability: 'view',
11831
- },
11832
- {
11833
- type: 'function',
11834
- inputs: [
11835
- { name: 'sender', internalType: 'address', type: 'address' },
11836
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
11837
- { name: 'quantity', internalType: 'uint256', type: 'uint256' },
11838
- { name: 'ethValueSent', internalType: 'uint256', type: 'uint256' },
11839
- { name: 'minterArguments', internalType: 'bytes', type: 'bytes' },
11840
- ],
11841
- name: 'requestMint',
11842
- outputs: [
11843
- {
11844
- name: 'commands',
11845
- internalType: 'struct ICreatorCommands.CommandSet',
11846
- type: 'tuple',
11847
- components: [
11848
- {
11849
- name: 'commands',
11850
- internalType: 'struct ICreatorCommands.Command[]',
11851
- type: 'tuple[]',
11852
- components: [
11853
- {
11854
- name: 'method',
11855
- internalType: 'enum ICreatorCommands.CreatorActions',
11856
- type: 'uint8',
11857
- },
11858
- { name: 'args', internalType: 'bytes', type: 'bytes' },
11859
- ],
11860
- },
11861
- { name: 'at', internalType: 'uint256', type: 'uint256' },
11862
- ],
11863
- },
11864
- ],
11865
- stateMutability: 'nonpayable',
11866
- },
11867
- {
11868
- type: 'function',
11869
- inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
11870
- name: 'supportsInterface',
11871
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
11872
- stateMutability: 'pure',
11873
- },
11874
- {
11875
- type: 'function',
11876
- inputs: [],
11877
- name: 'zoraRedeemMinterImplementation',
11878
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
11879
- stateMutability: 'view',
11880
- },
11881
- {
11882
- type: 'event',
11883
- anonymous: false,
11884
- inputs: [
11885
- {
11886
- name: 'creatorContract',
11887
- internalType: 'address',
11888
- type: 'address',
11889
- indexed: true,
11890
- },
11891
- {
11892
- name: 'minterContract',
11893
- internalType: 'address',
11894
- type: 'address',
11895
- indexed: true,
11896
- },
11897
- ],
11898
- name: 'RedeemMinterDeployed',
11899
- },
11900
- { type: 'error', inputs: [], name: 'CallerNotZoraCreator1155' },
11901
- {
11902
- type: 'error',
11903
- inputs: [
11904
- { name: 'mintTo', internalType: 'address', type: 'address' },
11905
- { name: 'merkleProof', internalType: 'bytes32[]', type: 'bytes32[]' },
11906
- { name: 'merkleRoot', internalType: 'bytes32', type: 'bytes32' },
11907
- ],
11908
- name: 'InvalidMerkleProof',
11909
- },
11910
- { type: 'error', inputs: [], name: 'MinterContractAlreadyExists' },
11911
- { type: 'error', inputs: [], name: 'MinterContractDoesNotExist' },
11912
- { type: 'error', inputs: [], name: 'SaleEnded' },
11913
- { type: 'error', inputs: [], name: 'SaleHasNotStarted' },
11914
- { type: 'error', inputs: [], name: 'WrongValueSent' },
11915
- ] as const
11916
-
11917
- /**
11918
- * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
11919
- * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
11920
- * - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
11921
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
11922
- * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
11923
- * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
11924
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea)
11925
- * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
11926
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
11927
- * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
11928
- * - [__View Contract on Blast Sepolia Blastscan__](https://sepolia.blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
11929
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
11930
- */
11931
- export const zoraCreatorRedeemMinterFactoryAddress = {
11932
- 1: '0x78964965cF77850224513a367f899435C5B69174',
11933
- 10: '0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2',
11934
- 999: '0x78964965cF77850224513a367f899435C5B69174',
11935
- 8453: '0x78964965cF77850224513a367f899435C5B69174',
11936
- 42161: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
11937
- 81457: '0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614',
11938
- 84532: '0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea',
11939
- 421614: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
11940
- 7777777: '0x78964965cF77850224513a367f899435C5B69174',
11941
- 11155111: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
11942
- 168587773: '0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614',
11943
- 999999999: '0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6',
11944
- } as const
11945
-
11946
- /**
11947
- * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
11948
- * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
11949
- * - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
11950
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
11951
- * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
11952
- * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
11953
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea)
11954
- * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
11955
- * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
11956
- * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
11957
- * - [__View Contract on Blast Sepolia Blastscan__](https://sepolia.blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
11958
- * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
11959
- */
11960
- export const zoraCreatorRedeemMinterFactoryConfig = {
11961
- address: zoraCreatorRedeemMinterFactoryAddress,
11962
- abi: zoraCreatorRedeemMinterFactoryABI,
11963
- } as const
11964
-
11965
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11966
- // ZoraFactory
11967
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11968
-
11969
- /**
11970
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
11971
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
11972
- */
11973
- export const zoraFactoryABI = [
11974
- {
11975
- type: 'constructor',
11976
- inputs: [{ name: '_coinImpl', internalType: 'address', type: 'address' }],
11977
- stateMutability: 'nonpayable',
11978
- },
11979
- {
11980
- type: 'function',
11981
- inputs: [],
11982
- name: 'UPGRADE_INTERFACE_VERSION',
11983
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
11984
- stateMutability: 'view',
11985
- },
11986
- {
11987
- type: 'function',
11988
- inputs: [],
11989
- name: 'coinImpl',
11990
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
11991
- stateMutability: 'view',
11992
- },
11993
- {
11994
- type: 'function',
11995
- inputs: [
11996
- { name: 'payoutRecipient', internalType: 'address', type: 'address' },
11997
- { name: 'owners', internalType: 'address[]', type: 'address[]' },
11998
- { name: 'uri', internalType: 'string', type: 'string' },
11999
- { name: 'name', internalType: 'string', type: 'string' },
12000
- { name: 'symbol', internalType: 'string', type: 'string' },
12001
- { name: 'platformReferrer', internalType: 'address', type: 'address' },
12002
- { name: 'currency', internalType: 'address', type: 'address' },
12003
- { name: 'tickLower', internalType: 'int24', type: 'int24' },
12004
- { name: 'orderSize', internalType: 'uint256', type: 'uint256' },
12005
- ],
12006
- name: 'deploy',
12007
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
12008
- stateMutability: 'payable',
12009
- },
12010
- {
12011
- type: 'function',
12012
- inputs: [],
12013
- name: 'implementation',
12014
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
12015
- stateMutability: 'view',
12016
- },
12017
- {
12018
- type: 'function',
12019
- inputs: [
12020
- { name: 'initialOwner', internalType: 'address', type: 'address' },
12021
- ],
12022
- name: 'initialize',
12023
- outputs: [],
12024
- stateMutability: 'nonpayable',
12025
- },
12026
- {
12027
- type: 'function',
12028
- inputs: [],
12029
- name: 'owner',
12030
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
12031
- stateMutability: 'view',
12043
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
12044
+ stateMutability: 'pure',
12032
12045
  },
12033
12046
  {
12034
12047
  type: 'function',
12035
12048
  inputs: [],
12036
- name: 'proxiableUUID',
12037
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
12038
- stateMutability: 'view',
12049
+ name: 'contractVersion',
12050
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
12051
+ stateMutability: 'pure',
12039
12052
  },
12040
12053
  {
12041
12054
  type: 'function',
12042
12055
  inputs: [],
12043
- name: 'renounceOwnership',
12056
+ name: 'createMinterIfNoneExists',
12044
12057
  outputs: [],
12045
12058
  stateMutability: 'nonpayable',
12046
12059
  },
12047
12060
  {
12048
12061
  type: 'function',
12049
- inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
12050
- name: 'transferOwnership',
12051
- outputs: [],
12052
- stateMutability: 'nonpayable',
12062
+ inputs: [
12063
+ { name: '_creatorContract', internalType: 'address', type: 'address' },
12064
+ ],
12065
+ name: 'doesRedeemMinterExistForCreatorContract',
12066
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
12067
+ stateMutability: 'view',
12053
12068
  },
12054
12069
  {
12055
12070
  type: 'function',
12056
12071
  inputs: [
12057
- { name: 'newImplementation', internalType: 'address', type: 'address' },
12058
- { name: 'data', internalType: 'bytes', type: 'bytes' },
12072
+ { name: '_creatorContract', internalType: 'address', type: 'address' },
12059
12073
  ],
12060
- name: 'upgradeToAndCall',
12061
- outputs: [],
12062
- stateMutability: 'payable',
12074
+ name: 'getDeployedRedeemMinterForCreatorContract',
12075
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
12076
+ stateMutability: 'view',
12063
12077
  },
12064
12078
  {
12065
- type: 'event',
12066
- anonymous: false,
12079
+ type: 'function',
12067
12080
  inputs: [
12068
- {
12069
- name: 'deployer',
12070
- internalType: 'address',
12071
- type: 'address',
12072
- indexed: true,
12073
- },
12074
- {
12075
- name: 'creator',
12076
- internalType: 'address',
12077
- type: 'address',
12078
- indexed: true,
12079
- },
12080
- {
12081
- name: 'payoutRecipient',
12082
- internalType: 'address',
12083
- type: 'address',
12084
- indexed: true,
12085
- },
12086
- {
12087
- name: 'platformReferrer',
12088
- internalType: 'address',
12089
- type: 'address',
12090
- indexed: false,
12091
- },
12092
- {
12093
- name: 'currency',
12094
- internalType: 'address',
12095
- type: 'address',
12096
- indexed: false,
12097
- },
12098
- {
12099
- name: 'tokenURI',
12100
- internalType: 'string',
12101
- type: 'string',
12102
- indexed: false,
12103
- },
12104
- { name: 'name', internalType: 'string', type: 'string', indexed: false },
12105
- {
12106
- name: 'symbol',
12107
- internalType: 'string',
12108
- type: 'string',
12109
- indexed: false,
12110
- },
12111
- {
12112
- name: 'coin',
12113
- internalType: 'address',
12114
- type: 'address',
12115
- indexed: false,
12116
- },
12117
- {
12118
- name: 'pool',
12119
- internalType: 'address',
12120
- type: 'address',
12121
- indexed: false,
12122
- },
12081
+ { name: '_creatorContract', internalType: 'address', type: 'address' },
12123
12082
  ],
12124
- name: 'CoinCreated',
12083
+ name: 'predictMinterAddress',
12084
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
12085
+ stateMutability: 'view',
12125
12086
  },
12126
12087
  {
12127
- type: 'event',
12128
- anonymous: false,
12088
+ type: 'function',
12129
12089
  inputs: [
12090
+ { name: 'sender', internalType: 'address', type: 'address' },
12091
+ { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
12092
+ { name: 'quantity', internalType: 'uint256', type: 'uint256' },
12093
+ { name: 'ethValueSent', internalType: 'uint256', type: 'uint256' },
12094
+ { name: 'minterArguments', internalType: 'bytes', type: 'bytes' },
12095
+ ],
12096
+ name: 'requestMint',
12097
+ outputs: [
12130
12098
  {
12131
- name: 'version',
12132
- internalType: 'uint64',
12133
- type: 'uint64',
12134
- indexed: false,
12099
+ name: 'commands',
12100
+ internalType: 'struct ICreatorCommands.CommandSet',
12101
+ type: 'tuple',
12102
+ components: [
12103
+ {
12104
+ name: 'commands',
12105
+ internalType: 'struct ICreatorCommands.Command[]',
12106
+ type: 'tuple[]',
12107
+ components: [
12108
+ {
12109
+ name: 'method',
12110
+ internalType: 'enum ICreatorCommands.CreatorActions',
12111
+ type: 'uint8',
12112
+ },
12113
+ { name: 'args', internalType: 'bytes', type: 'bytes' },
12114
+ ],
12115
+ },
12116
+ { name: 'at', internalType: 'uint256', type: 'uint256' },
12117
+ ],
12135
12118
  },
12136
12119
  ],
12137
- name: 'Initialized',
12120
+ stateMutability: 'nonpayable',
12121
+ },
12122
+ {
12123
+ type: 'function',
12124
+ inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
12125
+ name: 'supportsInterface',
12126
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
12127
+ stateMutability: 'pure',
12128
+ },
12129
+ {
12130
+ type: 'function',
12131
+ inputs: [],
12132
+ name: 'zoraRedeemMinterImplementation',
12133
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
12134
+ stateMutability: 'view',
12138
12135
  },
12139
12136
  {
12140
12137
  type: 'event',
12141
12138
  anonymous: false,
12142
12139
  inputs: [
12143
12140
  {
12144
- name: 'previousOwner',
12145
- internalType: 'address',
12146
- type: 'address',
12147
- indexed: true,
12148
- },
12149
- {
12150
- name: 'newOwner',
12141
+ name: 'creatorContract',
12151
12142
  internalType: 'address',
12152
12143
  type: 'address',
12153
12144
  indexed: true,
12154
12145
  },
12155
- ],
12156
- name: 'OwnershipTransferred',
12157
- },
12158
- {
12159
- type: 'event',
12160
- anonymous: false,
12161
- inputs: [
12162
12146
  {
12163
- name: 'implementation',
12147
+ name: 'minterContract',
12164
12148
  internalType: 'address',
12165
12149
  type: 'address',
12166
12150
  indexed: true,
12167
12151
  },
12168
12152
  ],
12169
- name: 'Upgraded',
12170
- },
12171
- {
12172
- type: 'error',
12173
- inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
12174
- name: 'AddressEmptyCode',
12175
- },
12176
- {
12177
- type: 'error',
12178
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
12179
- name: 'AddressInsufficientBalance',
12153
+ name: 'RedeemMinterDeployed',
12180
12154
  },
12181
- { type: 'error', inputs: [], name: 'ERC1167FailedCreateClone' },
12155
+ { type: 'error', inputs: [], name: 'CallerNotZoraCreator1155' },
12182
12156
  {
12183
12157
  type: 'error',
12184
12158
  inputs: [
12185
- { name: 'implementation', internalType: 'address', type: 'address' },
12159
+ { name: 'mintTo', internalType: 'address', type: 'address' },
12160
+ { name: 'merkleProof', internalType: 'bytes32[]', type: 'bytes32[]' },
12161
+ { name: 'merkleRoot', internalType: 'bytes32', type: 'bytes32' },
12186
12162
  ],
12187
- name: 'ERC1967InvalidImplementation',
12188
- },
12189
- { type: 'error', inputs: [], name: 'ERC1967NonPayable' },
12190
- { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
12191
- { type: 'error', inputs: [], name: 'EthTransferInvalid' },
12192
- { type: 'error', inputs: [], name: 'FailedInnerCall' },
12193
- { type: 'error', inputs: [], name: 'InvalidInitialization' },
12194
- { type: 'error', inputs: [], name: 'NotInitializing' },
12195
- {
12196
- type: 'error',
12197
- inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
12198
- name: 'OwnableInvalidOwner',
12199
- },
12200
- {
12201
- type: 'error',
12202
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
12203
- name: 'OwnableUnauthorizedAccount',
12204
- },
12205
- { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
12206
- {
12207
- type: 'error',
12208
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
12209
- name: 'SafeERC20FailedOperation',
12210
- },
12211
- { type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
12212
- {
12213
- type: 'error',
12214
- inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
12215
- name: 'UUPSUnsupportedProxiableUUID',
12163
+ name: 'InvalidMerkleProof',
12216
12164
  },
12165
+ { type: 'error', inputs: [], name: 'MinterContractAlreadyExists' },
12166
+ { type: 'error', inputs: [], name: 'MinterContractDoesNotExist' },
12167
+ { type: 'error', inputs: [], name: 'SaleEnded' },
12168
+ { type: 'error', inputs: [], name: 'SaleHasNotStarted' },
12169
+ { type: 'error', inputs: [], name: 'WrongValueSent' },
12217
12170
  ] as const
12218
12171
 
12219
12172
  /**
12220
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
12221
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
12173
+ * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
12174
+ * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
12175
+ * - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
12176
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
12177
+ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
12178
+ * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
12179
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea)
12180
+ * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
12181
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
12182
+ * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
12183
+ * - [__View Contract on Blast Sepolia Blastscan__](https://sepolia.blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
12184
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
12222
12185
  */
12223
- export const zoraFactoryAddress = {
12224
- 8453: '0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC',
12225
- 84532: '0x1E670515d3A4C75C0860846c0605c84AF0e0db0d',
12186
+ export const zoraCreatorRedeemMinterFactoryAddress = {
12187
+ 1: '0x78964965cF77850224513a367f899435C5B69174',
12188
+ 10: '0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2',
12189
+ 999: '0x78964965cF77850224513a367f899435C5B69174',
12190
+ 8453: '0x78964965cF77850224513a367f899435C5B69174',
12191
+ 42161: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
12192
+ 81457: '0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614',
12193
+ 84532: '0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea',
12194
+ 421614: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
12195
+ 7777777: '0x78964965cF77850224513a367f899435C5B69174',
12196
+ 11155111: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
12197
+ 168587773: '0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614',
12198
+ 999999999: '0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6',
12226
12199
  } as const
12227
12200
 
12228
12201
  /**
12229
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
12230
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
12202
+ * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
12203
+ * - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
12204
+ * - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
12205
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
12206
+ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
12207
+ * - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
12208
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea)
12209
+ * - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
12210
+ * - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
12211
+ * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
12212
+ * - [__View Contract on Blast Sepolia Blastscan__](https://sepolia.blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
12213
+ * - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
12231
12214
  */
12232
- export const zoraFactoryConfig = {
12233
- address: zoraFactoryAddress,
12234
- abi: zoraFactoryABI,
12215
+ export const zoraCreatorRedeemMinterFactoryConfig = {
12216
+ address: zoraCreatorRedeemMinterFactoryAddress,
12217
+ abi: zoraCreatorRedeemMinterFactoryABI,
12235
12218
  } as const
12236
12219
 
12237
12220
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////