@zoralabs/protocol-deployments 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +14 -14
- package/CHANGELOG.md +8 -1
- package/dist/generated/wagmi.d.ts +16843 -16843
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +259 -259
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +256 -256
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/wagmi.ts +1024 -1024
package/src/generated/wagmi.ts
CHANGED
|
@@ -2038,27 +2038,19 @@ export const coinABI = [
|
|
|
2038
2038
|
] as const
|
|
2039
2039
|
|
|
2040
2040
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2041
|
-
//
|
|
2041
|
+
// CoinFactory
|
|
2042
2042
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2043
2043
|
|
|
2044
|
-
|
|
2044
|
+
/**
|
|
2045
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
|
|
2046
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
|
|
2047
|
+
*/
|
|
2048
|
+
export const coinFactoryABI = [
|
|
2045
2049
|
{
|
|
2046
2050
|
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
|
-
],
|
|
2051
|
+
inputs: [{ name: '_coinImpl', internalType: 'address', type: 'address' }],
|
|
2052
2052
|
stateMutability: 'nonpayable',
|
|
2053
2053
|
},
|
|
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
2054
|
{
|
|
2063
2055
|
type: 'function',
|
|
2064
2056
|
inputs: [],
|
|
@@ -2069,68 +2061,26 @@ export const cointagABI = [
|
|
|
2069
2061
|
{
|
|
2070
2062
|
type: 'function',
|
|
2071
2063
|
inputs: [],
|
|
2072
|
-
name: '
|
|
2073
|
-
outputs: [],
|
|
2074
|
-
stateMutability: '
|
|
2064
|
+
name: 'coinImpl',
|
|
2065
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2066
|
+
stateMutability: 'view',
|
|
2075
2067
|
},
|
|
2076
2068
|
{
|
|
2077
2069
|
type: 'function',
|
|
2078
|
-
inputs: [
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
{
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
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
|
-
},
|
|
2070
|
+
inputs: [
|
|
2071
|
+
{ name: 'payoutRecipient', internalType: 'address', type: 'address' },
|
|
2072
|
+
{ name: 'owners', internalType: 'address[]', type: 'address[]' },
|
|
2073
|
+
{ name: 'uri', internalType: 'string', type: 'string' },
|
|
2074
|
+
{ name: 'name', internalType: 'string', type: 'string' },
|
|
2075
|
+
{ name: 'symbol', internalType: 'string', type: 'string' },
|
|
2076
|
+
{ name: 'platformReferrer', internalType: 'address', type: 'address' },
|
|
2077
|
+
{ name: 'currency', internalType: 'address', type: 'address' },
|
|
2078
|
+
{ name: 'tickLower', internalType: 'int24', type: 'int24' },
|
|
2079
|
+
{ name: 'orderSize', internalType: 'uint256', type: 'uint256' },
|
|
2104
2080
|
],
|
|
2105
|
-
|
|
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',
|
|
2081
|
+
name: 'deploy',
|
|
2082
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2083
|
+
stateMutability: 'payable',
|
|
2134
2084
|
},
|
|
2135
2085
|
{
|
|
2136
2086
|
type: 'function',
|
|
@@ -2142,13 +2092,7 @@ export const cointagABI = [
|
|
|
2142
2092
|
{
|
|
2143
2093
|
type: 'function',
|
|
2144
2094
|
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' },
|
|
2095
|
+
{ name: 'initialOwner', internalType: 'address', type: 'address' },
|
|
2152
2096
|
],
|
|
2153
2097
|
name: 'initialize',
|
|
2154
2098
|
outputs: [],
|
|
@@ -2161,31 +2105,6 @@ export const cointagABI = [
|
|
|
2161
2105
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2162
2106
|
stateMutability: 'view',
|
|
2163
2107
|
},
|
|
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
2108
|
{
|
|
2190
2109
|
type: 'function',
|
|
2191
2110
|
inputs: [],
|
|
@@ -2193,13 +2112,6 @@ export const cointagABI = [
|
|
|
2193
2112
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2194
2113
|
stateMutability: 'view',
|
|
2195
2114
|
},
|
|
2196
|
-
{
|
|
2197
|
-
type: 'function',
|
|
2198
|
-
inputs: [],
|
|
2199
|
-
name: 'pull',
|
|
2200
|
-
outputs: [],
|
|
2201
|
-
stateMutability: 'nonpayable',
|
|
2202
|
-
},
|
|
2203
2115
|
{
|
|
2204
2116
|
type: 'function',
|
|
2205
2117
|
inputs: [],
|
|
@@ -2214,26 +2126,6 @@ export const cointagABI = [
|
|
|
2214
2126
|
outputs: [],
|
|
2215
2127
|
stateMutability: 'nonpayable',
|
|
2216
2128
|
},
|
|
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
2129
|
{
|
|
2238
2130
|
type: 'function',
|
|
2239
2131
|
inputs: [
|
|
@@ -2244,80 +2136,67 @@ export const cointagABI = [
|
|
|
2244
2136
|
outputs: [],
|
|
2245
2137
|
stateMutability: 'payable',
|
|
2246
2138
|
},
|
|
2247
|
-
{
|
|
2248
|
-
type: 'function',
|
|
2249
|
-
inputs: [],
|
|
2250
|
-
name: 'weth',
|
|
2251
|
-
outputs: [{ name: '', internalType: 'contract IWETH', type: 'address' }],
|
|
2252
|
-
stateMutability: 'view',
|
|
2253
|
-
},
|
|
2254
2139
|
{
|
|
2255
2140
|
type: 'event',
|
|
2256
2141
|
anonymous: false,
|
|
2257
2142
|
inputs: [
|
|
2258
2143
|
{
|
|
2259
|
-
name: '
|
|
2260
|
-
internalType: '
|
|
2261
|
-
type: '
|
|
2262
|
-
indexed:
|
|
2144
|
+
name: 'deployer',
|
|
2145
|
+
internalType: 'address',
|
|
2146
|
+
type: 'address',
|
|
2147
|
+
indexed: true,
|
|
2263
2148
|
},
|
|
2264
2149
|
{
|
|
2265
|
-
name: '
|
|
2266
|
-
internalType: '
|
|
2267
|
-
type: '
|
|
2268
|
-
indexed:
|
|
2150
|
+
name: 'creator',
|
|
2151
|
+
internalType: 'address',
|
|
2152
|
+
type: 'address',
|
|
2153
|
+
indexed: true,
|
|
2269
2154
|
},
|
|
2270
2155
|
{
|
|
2271
|
-
name: '
|
|
2272
|
-
internalType: '
|
|
2273
|
-
type: '
|
|
2274
|
-
indexed:
|
|
2156
|
+
name: 'payoutRecipient',
|
|
2157
|
+
internalType: 'address',
|
|
2158
|
+
type: 'address',
|
|
2159
|
+
indexed: true,
|
|
2275
2160
|
},
|
|
2276
2161
|
{
|
|
2277
|
-
name: '
|
|
2278
|
-
internalType: '
|
|
2279
|
-
type: '
|
|
2162
|
+
name: 'platformReferrer',
|
|
2163
|
+
internalType: 'address',
|
|
2164
|
+
type: 'address',
|
|
2280
2165
|
indexed: false,
|
|
2281
2166
|
},
|
|
2282
2167
|
{
|
|
2283
|
-
name: '
|
|
2284
|
-
internalType: '
|
|
2285
|
-
type: '
|
|
2168
|
+
name: 'currency',
|
|
2169
|
+
internalType: 'address',
|
|
2170
|
+
type: 'address',
|
|
2286
2171
|
indexed: false,
|
|
2287
2172
|
},
|
|
2288
2173
|
{
|
|
2289
|
-
name: '
|
|
2290
|
-
internalType: '
|
|
2291
|
-
type: '
|
|
2174
|
+
name: 'tokenURI',
|
|
2175
|
+
internalType: 'string',
|
|
2176
|
+
type: 'string',
|
|
2292
2177
|
indexed: false,
|
|
2293
2178
|
},
|
|
2179
|
+
{ name: 'name', internalType: 'string', type: 'string', indexed: false },
|
|
2294
2180
|
{
|
|
2295
|
-
name: '
|
|
2296
|
-
internalType: '
|
|
2297
|
-
type: '
|
|
2181
|
+
name: 'symbol',
|
|
2182
|
+
internalType: 'string',
|
|
2183
|
+
type: 'string',
|
|
2298
2184
|
indexed: false,
|
|
2299
2185
|
},
|
|
2300
|
-
],
|
|
2301
|
-
name: 'BuyBurn',
|
|
2302
|
-
},
|
|
2303
|
-
{
|
|
2304
|
-
type: 'event',
|
|
2305
|
-
anonymous: false,
|
|
2306
|
-
inputs: [
|
|
2307
2186
|
{
|
|
2308
|
-
name: '
|
|
2309
|
-
internalType: '
|
|
2310
|
-
type: '
|
|
2311
|
-
indexed:
|
|
2187
|
+
name: 'coin',
|
|
2188
|
+
internalType: 'address',
|
|
2189
|
+
type: 'address',
|
|
2190
|
+
indexed: false,
|
|
2312
2191
|
},
|
|
2313
2192
|
{
|
|
2314
|
-
name: '
|
|
2193
|
+
name: 'pool',
|
|
2315
2194
|
internalType: 'address',
|
|
2316
2195
|
type: 'address',
|
|
2317
|
-
indexed:
|
|
2196
|
+
indexed: false,
|
|
2318
2197
|
},
|
|
2319
2198
|
],
|
|
2320
|
-
name: '
|
|
2199
|
+
name: 'CoinCreated',
|
|
2321
2200
|
},
|
|
2322
2201
|
{
|
|
2323
2202
|
type: 'event',
|
|
@@ -2337,76 +2216,26 @@ export const cointagABI = [
|
|
|
2337
2216
|
anonymous: false,
|
|
2338
2217
|
inputs: [
|
|
2339
2218
|
{
|
|
2340
|
-
name: '
|
|
2341
|
-
internalType: 'address',
|
|
2342
|
-
type: 'address',
|
|
2343
|
-
indexed: false,
|
|
2344
|
-
},
|
|
2345
|
-
{
|
|
2346
|
-
name: 'erc20',
|
|
2219
|
+
name: 'previousOwner',
|
|
2347
2220
|
internalType: 'address',
|
|
2348
2221
|
type: 'address',
|
|
2349
|
-
indexed:
|
|
2222
|
+
indexed: true,
|
|
2350
2223
|
},
|
|
2351
2224
|
{
|
|
2352
|
-
name: '
|
|
2225
|
+
name: 'newOwner',
|
|
2353
2226
|
internalType: 'address',
|
|
2354
2227
|
type: 'address',
|
|
2355
|
-
indexed:
|
|
2356
|
-
},
|
|
2357
|
-
{
|
|
2358
|
-
name: 'percentageToBuyBurn',
|
|
2359
|
-
internalType: 'uint256',
|
|
2360
|
-
type: 'uint256',
|
|
2361
|
-
indexed: false,
|
|
2228
|
+
indexed: true,
|
|
2362
2229
|
},
|
|
2363
2230
|
],
|
|
2364
|
-
name: '
|
|
2231
|
+
name: 'OwnershipTransferred',
|
|
2365
2232
|
},
|
|
2366
2233
|
{
|
|
2367
2234
|
type: 'event',
|
|
2368
2235
|
anonymous: false,
|
|
2369
2236
|
inputs: [
|
|
2370
2237
|
{
|
|
2371
|
-
name: '
|
|
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,
|
|
2400
|
-
},
|
|
2401
|
-
],
|
|
2402
|
-
name: 'OwnershipTransferred',
|
|
2403
|
-
},
|
|
2404
|
-
{
|
|
2405
|
-
type: 'event',
|
|
2406
|
-
anonymous: false,
|
|
2407
|
-
inputs: [
|
|
2408
|
-
{
|
|
2409
|
-
name: 'implementation',
|
|
2238
|
+
name: 'implementation',
|
|
2410
2239
|
internalType: 'address',
|
|
2411
2240
|
type: 'address',
|
|
2412
2241
|
indexed: true,
|
|
@@ -2424,7 +2253,7 @@ export const cointagABI = [
|
|
|
2424
2253
|
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
2425
2254
|
name: 'AddressInsufficientBalance',
|
|
2426
2255
|
},
|
|
2427
|
-
{ type: 'error', inputs: [], name: '
|
|
2256
|
+
{ type: 'error', inputs: [], name: 'ERC1167FailedCreateClone' },
|
|
2428
2257
|
{
|
|
2429
2258
|
type: 'error',
|
|
2430
2259
|
inputs: [
|
|
@@ -2433,20 +2262,11 @@ export const cointagABI = [
|
|
|
2433
2262
|
name: 'ERC1967InvalidImplementation',
|
|
2434
2263
|
},
|
|
2435
2264
|
{ type: 'error', inputs: [], name: 'ERC1967NonPayable' },
|
|
2265
|
+
{ type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
|
|
2266
|
+
{ type: 'error', inputs: [], name: 'EthTransferInvalid' },
|
|
2436
2267
|
{ type: 'error', inputs: [], name: 'FailedInnerCall' },
|
|
2437
2268
|
{ 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
2269
|
{ type: 'error', inputs: [], name: 'NotInitializing' },
|
|
2447
|
-
{ type: 'error', inputs: [], name: 'NotUniswapV3Pool' },
|
|
2448
|
-
{ type: 'error', inputs: [], name: 'OnlyPool' },
|
|
2449
|
-
{ type: 'error', inputs: [], name: 'OnlyProtocolRewardsOrWeth' },
|
|
2450
2270
|
{
|
|
2451
2271
|
type: 'error',
|
|
2452
2272
|
inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
|
|
@@ -2457,7 +2277,7 @@ export const cointagABI = [
|
|
|
2457
2277
|
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
2458
2278
|
name: 'OwnableUnauthorizedAccount',
|
|
2459
2279
|
},
|
|
2460
|
-
{ type: 'error', inputs: [], name: '
|
|
2280
|
+
{ type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
|
|
2461
2281
|
{
|
|
2462
2282
|
type: 'error',
|
|
2463
2283
|
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
@@ -2469,40 +2289,48 @@ export const cointagABI = [
|
|
|
2469
2289
|
inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
|
|
2470
2290
|
name: 'UUPSUnsupportedProxiableUUID',
|
|
2471
2291
|
},
|
|
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
2292
|
] as const
|
|
2483
2293
|
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2294
|
+
/**
|
|
2295
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
|
|
2296
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
|
|
2297
|
+
*/
|
|
2298
|
+
export const coinFactoryAddress = {
|
|
2299
|
+
8453: '0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC',
|
|
2300
|
+
84532: '0x1E670515d3A4C75C0860846c0605c84AF0e0db0d',
|
|
2301
|
+
} as const
|
|
2487
2302
|
|
|
2488
2303
|
/**
|
|
2489
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
2490
|
-
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/
|
|
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)
|
|
2304
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC)
|
|
2305
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1E670515d3A4C75C0860846c0605c84AF0e0db0d)
|
|
2493
2306
|
*/
|
|
2494
|
-
export const
|
|
2307
|
+
export const coinFactoryConfig = {
|
|
2308
|
+
address: coinFactoryAddress,
|
|
2309
|
+
abi: coinFactoryABI,
|
|
2310
|
+
} as const
|
|
2311
|
+
|
|
2312
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2313
|
+
// Cointag
|
|
2314
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2315
|
+
|
|
2316
|
+
export const cointagABI = [
|
|
2495
2317
|
{
|
|
2496
2318
|
type: 'constructor',
|
|
2497
2319
|
inputs: [
|
|
2498
|
-
{
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
type: 'address',
|
|
2502
|
-
},
|
|
2320
|
+
{ name: 'protocolRewards_', internalType: 'address', type: 'address' },
|
|
2321
|
+
{ name: 'weth_', internalType: 'address', type: 'address' },
|
|
2322
|
+
{ name: 'upgradeGate_', internalType: 'address', type: 'address' },
|
|
2503
2323
|
],
|
|
2504
2324
|
stateMutability: 'nonpayable',
|
|
2505
2325
|
},
|
|
2326
|
+
{ type: 'receive', stateMutability: 'payable' },
|
|
2327
|
+
{
|
|
2328
|
+
type: 'function',
|
|
2329
|
+
inputs: [],
|
|
2330
|
+
name: 'PERCENTAGE_BASIS',
|
|
2331
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2332
|
+
stateMutability: 'view',
|
|
2333
|
+
},
|
|
2506
2334
|
{
|
|
2507
2335
|
type: 'function',
|
|
2508
2336
|
inputs: [],
|
|
@@ -2520,9 +2348,33 @@ export const cointagFactoryABI = [
|
|
|
2520
2348
|
{
|
|
2521
2349
|
type: 'function',
|
|
2522
2350
|
inputs: [],
|
|
2523
|
-
name: '
|
|
2524
|
-
outputs: [
|
|
2525
|
-
|
|
2351
|
+
name: 'config',
|
|
2352
|
+
outputs: [
|
|
2353
|
+
{
|
|
2354
|
+
name: 'cointagStorage',
|
|
2355
|
+
internalType: 'struct ICointag.CointagStorageV1',
|
|
2356
|
+
type: 'tuple',
|
|
2357
|
+
components: [
|
|
2358
|
+
{
|
|
2359
|
+
name: 'creatorRewardRecipient',
|
|
2360
|
+
internalType: 'address',
|
|
2361
|
+
type: 'address',
|
|
2362
|
+
},
|
|
2363
|
+
{ name: 'erc20', internalType: 'contract IERC20', type: 'address' },
|
|
2364
|
+
{
|
|
2365
|
+
name: 'pool',
|
|
2366
|
+
internalType: 'contract IUniswapV3Pool',
|
|
2367
|
+
type: 'address',
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
name: 'percentageToBuyBurn',
|
|
2371
|
+
internalType: 'uint256',
|
|
2372
|
+
type: 'uint256',
|
|
2373
|
+
},
|
|
2374
|
+
],
|
|
2375
|
+
},
|
|
2376
|
+
],
|
|
2377
|
+
stateMutability: 'pure',
|
|
2526
2378
|
},
|
|
2527
2379
|
{
|
|
2528
2380
|
type: 'function',
|
|
@@ -2534,106 +2386,76 @@ export const cointagFactoryABI = [
|
|
|
2534
2386
|
{
|
|
2535
2387
|
type: 'function',
|
|
2536
2388
|
inputs: [],
|
|
2537
|
-
name: '
|
|
2389
|
+
name: 'contractVersion',
|
|
2538
2390
|
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2539
2391
|
stateMutability: 'pure',
|
|
2540
2392
|
},
|
|
2541
2393
|
{
|
|
2542
2394
|
type: 'function',
|
|
2543
2395
|
inputs: [],
|
|
2544
|
-
name: '
|
|
2545
|
-
outputs: [
|
|
2546
|
-
stateMutability: '
|
|
2396
|
+
name: 'distribute',
|
|
2397
|
+
outputs: [],
|
|
2398
|
+
stateMutability: 'nonpayable',
|
|
2547
2399
|
},
|
|
2548
2400
|
{
|
|
2549
2401
|
type: 'function',
|
|
2550
|
-
inputs: [
|
|
2551
|
-
|
|
2552
|
-
|
|
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' }],
|
|
2402
|
+
inputs: [],
|
|
2403
|
+
name: 'erc20',
|
|
2404
|
+
outputs: [{ name: '', internalType: 'contract IERC20', type: 'address' }],
|
|
2566
2405
|
stateMutability: 'view',
|
|
2567
2406
|
},
|
|
2568
2407
|
{
|
|
2569
2408
|
type: 'function',
|
|
2570
|
-
inputs: [
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
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',
|
|
2409
|
+
inputs: [],
|
|
2410
|
+
name: 'implementation',
|
|
2411
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2412
|
+
stateMutability: 'view',
|
|
2587
2413
|
},
|
|
2588
2414
|
{
|
|
2589
2415
|
type: 'function',
|
|
2590
2416
|
inputs: [
|
|
2591
2417
|
{
|
|
2592
|
-
name: '
|
|
2418
|
+
name: 'creatorRewardRecipient',
|
|
2593
2419
|
internalType: 'address',
|
|
2594
2420
|
type: 'address',
|
|
2595
2421
|
},
|
|
2596
|
-
{ name: '
|
|
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' },
|
|
2422
|
+
{ name: 'pool_', internalType: 'address', type: 'address' },
|
|
2423
|
+
{ name: 'percentageToBuyBurn', internalType: 'uint256', type: 'uint256' },
|
|
2604
2424
|
],
|
|
2605
|
-
name: '
|
|
2606
|
-
outputs: [
|
|
2425
|
+
name: 'initialize',
|
|
2426
|
+
outputs: [],
|
|
2607
2427
|
stateMutability: 'nonpayable',
|
|
2608
2428
|
},
|
|
2609
2429
|
{
|
|
2610
2430
|
type: 'function',
|
|
2611
2431
|
inputs: [],
|
|
2612
|
-
name: '
|
|
2432
|
+
name: 'owner',
|
|
2613
2433
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2614
2434
|
stateMutability: 'view',
|
|
2615
2435
|
},
|
|
2616
2436
|
{
|
|
2617
2437
|
type: 'function',
|
|
2618
|
-
inputs: [
|
|
2619
|
-
|
|
2620
|
-
],
|
|
2621
|
-
|
|
2622
|
-
outputs: [],
|
|
2623
|
-
stateMutability: 'nonpayable',
|
|
2438
|
+
inputs: [],
|
|
2439
|
+
name: 'pendingOwner',
|
|
2440
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2441
|
+
stateMutability: 'view',
|
|
2624
2442
|
},
|
|
2625
2443
|
{
|
|
2626
2444
|
type: 'function',
|
|
2627
2445
|
inputs: [],
|
|
2628
|
-
name: '
|
|
2629
|
-
outputs: [
|
|
2446
|
+
name: 'pool',
|
|
2447
|
+
outputs: [
|
|
2448
|
+
{ name: '', internalType: 'contract IUniswapV3Pool', type: 'address' },
|
|
2449
|
+
],
|
|
2630
2450
|
stateMutability: 'view',
|
|
2631
2451
|
},
|
|
2632
2452
|
{
|
|
2633
2453
|
type: 'function',
|
|
2634
2454
|
inputs: [],
|
|
2635
|
-
name: '
|
|
2636
|
-
outputs: [
|
|
2455
|
+
name: 'protocolRewards',
|
|
2456
|
+
outputs: [
|
|
2457
|
+
{ name: '', internalType: 'contract IProtocolRewards', type: 'address' },
|
|
2458
|
+
],
|
|
2637
2459
|
stateMutability: 'view',
|
|
2638
2460
|
},
|
|
2639
2461
|
{
|
|
@@ -2643,6 +2465,13 @@ export const cointagFactoryABI = [
|
|
|
2643
2465
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2644
2466
|
stateMutability: 'view',
|
|
2645
2467
|
},
|
|
2468
|
+
{
|
|
2469
|
+
type: 'function',
|
|
2470
|
+
inputs: [],
|
|
2471
|
+
name: 'pull',
|
|
2472
|
+
outputs: [],
|
|
2473
|
+
stateMutability: 'nonpayable',
|
|
2474
|
+
},
|
|
2646
2475
|
{
|
|
2647
2476
|
type: 'function',
|
|
2648
2477
|
inputs: [],
|
|
@@ -2657,6 +2486,17 @@ export const cointagFactoryABI = [
|
|
|
2657
2486
|
outputs: [],
|
|
2658
2487
|
stateMutability: 'nonpayable',
|
|
2659
2488
|
},
|
|
2489
|
+
{
|
|
2490
|
+
type: 'function',
|
|
2491
|
+
inputs: [
|
|
2492
|
+
{ name: 'amount0Delta', internalType: 'int256', type: 'int256' },
|
|
2493
|
+
{ name: 'amount1Delta', internalType: 'int256', type: 'int256' },
|
|
2494
|
+
{ name: '', internalType: 'bytes', type: 'bytes' },
|
|
2495
|
+
],
|
|
2496
|
+
name: 'uniswapV3SwapCallback',
|
|
2497
|
+
outputs: [],
|
|
2498
|
+
stateMutability: 'nonpayable',
|
|
2499
|
+
},
|
|
2660
2500
|
{
|
|
2661
2501
|
type: 'function',
|
|
2662
2502
|
inputs: [],
|
|
@@ -2677,77 +2517,108 @@ export const cointagFactoryABI = [
|
|
|
2677
2517
|
stateMutability: 'payable',
|
|
2678
2518
|
},
|
|
2679
2519
|
{
|
|
2680
|
-
type: '
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
internalType: 'uint64',
|
|
2686
|
-
type: 'uint64',
|
|
2687
|
-
indexed: false,
|
|
2688
|
-
},
|
|
2689
|
-
],
|
|
2690
|
-
name: 'Initialized',
|
|
2520
|
+
type: 'function',
|
|
2521
|
+
inputs: [],
|
|
2522
|
+
name: 'weth',
|
|
2523
|
+
outputs: [{ name: '', internalType: 'contract IWETH', type: 'address' }],
|
|
2524
|
+
stateMutability: 'view',
|
|
2691
2525
|
},
|
|
2692
2526
|
{
|
|
2693
2527
|
type: 'event',
|
|
2694
2528
|
anonymous: false,
|
|
2695
2529
|
inputs: [
|
|
2696
2530
|
{
|
|
2697
|
-
name: '
|
|
2698
|
-
internalType: '
|
|
2699
|
-
type: '
|
|
2700
|
-
indexed:
|
|
2531
|
+
name: 'amountERC20Received',
|
|
2532
|
+
internalType: 'uint256',
|
|
2533
|
+
type: 'uint256',
|
|
2534
|
+
indexed: false,
|
|
2701
2535
|
},
|
|
2702
2536
|
{
|
|
2703
|
-
name: '
|
|
2704
|
-
internalType: '
|
|
2705
|
-
type: '
|
|
2706
|
-
indexed:
|
|
2537
|
+
name: 'amountERC20Burned',
|
|
2538
|
+
internalType: 'uint256',
|
|
2539
|
+
type: 'uint256',
|
|
2540
|
+
indexed: false,
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
name: 'amountETHSpent',
|
|
2544
|
+
internalType: 'uint256',
|
|
2545
|
+
type: 'uint256',
|
|
2546
|
+
indexed: false,
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
name: 'amountETHToCreator',
|
|
2550
|
+
internalType: 'uint256',
|
|
2551
|
+
type: 'uint256',
|
|
2552
|
+
indexed: false,
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
name: 'totalETHReceived',
|
|
2556
|
+
internalType: 'uint256',
|
|
2557
|
+
type: 'uint256',
|
|
2558
|
+
indexed: false,
|
|
2559
|
+
},
|
|
2560
|
+
{
|
|
2561
|
+
name: 'buyFailureError',
|
|
2562
|
+
internalType: 'bytes',
|
|
2563
|
+
type: 'bytes',
|
|
2564
|
+
indexed: false,
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
name: 'burnFailureError',
|
|
2568
|
+
internalType: 'bytes',
|
|
2569
|
+
type: 'bytes',
|
|
2570
|
+
indexed: false,
|
|
2707
2571
|
},
|
|
2708
2572
|
],
|
|
2709
|
-
name: '
|
|
2573
|
+
name: 'BuyBurn',
|
|
2710
2574
|
},
|
|
2711
2575
|
{
|
|
2712
2576
|
type: 'event',
|
|
2713
2577
|
anonymous: false,
|
|
2714
2578
|
inputs: [
|
|
2715
2579
|
{
|
|
2716
|
-
name: '
|
|
2717
|
-
internalType: '
|
|
2718
|
-
type: '
|
|
2580
|
+
name: 'amount',
|
|
2581
|
+
internalType: 'uint256',
|
|
2582
|
+
type: 'uint256',
|
|
2719
2583
|
indexed: true,
|
|
2720
2584
|
},
|
|
2721
2585
|
{
|
|
2722
|
-
name: '
|
|
2586
|
+
name: 'sender',
|
|
2723
2587
|
internalType: 'address',
|
|
2724
2588
|
type: 'address',
|
|
2725
2589
|
indexed: true,
|
|
2726
2590
|
},
|
|
2727
2591
|
],
|
|
2728
|
-
name: '
|
|
2592
|
+
name: 'EthReceived',
|
|
2729
2593
|
},
|
|
2730
2594
|
{
|
|
2731
2595
|
type: 'event',
|
|
2732
2596
|
anonymous: false,
|
|
2733
2597
|
inputs: [
|
|
2734
2598
|
{
|
|
2735
|
-
name: '
|
|
2736
|
-
internalType: '
|
|
2737
|
-
type: '
|
|
2738
|
-
indexed:
|
|
2599
|
+
name: 'version',
|
|
2600
|
+
internalType: 'uint64',
|
|
2601
|
+
type: 'uint64',
|
|
2602
|
+
indexed: false,
|
|
2739
2603
|
},
|
|
2604
|
+
],
|
|
2605
|
+
name: 'Initialized',
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
type: 'event',
|
|
2609
|
+
anonymous: false,
|
|
2610
|
+
inputs: [
|
|
2740
2611
|
{
|
|
2741
2612
|
name: 'creatorRewardRecipient',
|
|
2742
2613
|
internalType: 'address',
|
|
2743
2614
|
type: 'address',
|
|
2744
|
-
indexed:
|
|
2615
|
+
indexed: false,
|
|
2745
2616
|
},
|
|
2746
2617
|
{
|
|
2747
2618
|
name: 'erc20',
|
|
2748
2619
|
internalType: 'address',
|
|
2749
2620
|
type: 'address',
|
|
2750
|
-
indexed:
|
|
2621
|
+
indexed: false,
|
|
2751
2622
|
},
|
|
2752
2623
|
{
|
|
2753
2624
|
name: 'pool',
|
|
@@ -2761,14 +2632,46 @@ export const cointagFactoryABI = [
|
|
|
2761
2632
|
type: 'uint256',
|
|
2762
2633
|
indexed: false,
|
|
2763
2634
|
},
|
|
2635
|
+
],
|
|
2636
|
+
name: 'Initialized',
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
type: 'event',
|
|
2640
|
+
anonymous: false,
|
|
2641
|
+
inputs: [
|
|
2642
|
+
{
|
|
2643
|
+
name: 'previousOwner',
|
|
2644
|
+
internalType: 'address',
|
|
2645
|
+
type: 'address',
|
|
2646
|
+
indexed: true,
|
|
2647
|
+
},
|
|
2764
2648
|
{
|
|
2765
|
-
name: '
|
|
2766
|
-
internalType: '
|
|
2767
|
-
type: '
|
|
2768
|
-
indexed:
|
|
2649
|
+
name: 'newOwner',
|
|
2650
|
+
internalType: 'address',
|
|
2651
|
+
type: 'address',
|
|
2652
|
+
indexed: true,
|
|
2769
2653
|
},
|
|
2770
2654
|
],
|
|
2771
|
-
name: '
|
|
2655
|
+
name: 'OwnershipTransferStarted',
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
type: 'event',
|
|
2659
|
+
anonymous: false,
|
|
2660
|
+
inputs: [
|
|
2661
|
+
{
|
|
2662
|
+
name: 'previousOwner',
|
|
2663
|
+
internalType: 'address',
|
|
2664
|
+
type: 'address',
|
|
2665
|
+
indexed: true,
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
name: 'newOwner',
|
|
2669
|
+
internalType: 'address',
|
|
2670
|
+
type: 'address',
|
|
2671
|
+
indexed: true,
|
|
2672
|
+
},
|
|
2673
|
+
],
|
|
2674
|
+
name: 'OwnershipTransferred',
|
|
2772
2675
|
},
|
|
2773
2676
|
{
|
|
2774
2677
|
type: 'event',
|
|
@@ -2788,6 +2691,11 @@ export const cointagFactoryABI = [
|
|
|
2788
2691
|
inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
|
|
2789
2692
|
name: 'AddressEmptyCode',
|
|
2790
2693
|
},
|
|
2694
|
+
{
|
|
2695
|
+
type: 'error',
|
|
2696
|
+
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
2697
|
+
name: 'AddressInsufficientBalance',
|
|
2698
|
+
},
|
|
2791
2699
|
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
2792
2700
|
{
|
|
2793
2701
|
type: 'error',
|
|
@@ -2799,7 +2707,18 @@ export const cointagFactoryABI = [
|
|
|
2799
2707
|
{ type: 'error', inputs: [], name: 'ERC1967NonPayable' },
|
|
2800
2708
|
{ type: 'error', inputs: [], name: 'FailedInnerCall' },
|
|
2801
2709
|
{ type: 'error', inputs: [], name: 'InvalidInitialization' },
|
|
2710
|
+
{
|
|
2711
|
+
type: 'error',
|
|
2712
|
+
inputs: [
|
|
2713
|
+
{ name: 'oldImpl', internalType: 'address', type: 'address' },
|
|
2714
|
+
{ name: 'newImpl', internalType: 'address', type: 'address' },
|
|
2715
|
+
],
|
|
2716
|
+
name: 'InvalidUpgradePath',
|
|
2717
|
+
},
|
|
2802
2718
|
{ type: 'error', inputs: [], name: 'NotInitializing' },
|
|
2719
|
+
{ type: 'error', inputs: [], name: 'NotUniswapV3Pool' },
|
|
2720
|
+
{ type: 'error', inputs: [], name: 'OnlyPool' },
|
|
2721
|
+
{ type: 'error', inputs: [], name: 'OnlyProtocolRewardsOrWeth' },
|
|
2803
2722
|
{
|
|
2804
2723
|
type: 'error',
|
|
2805
2724
|
inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
|
|
@@ -2810,42 +2729,33 @@ export const cointagFactoryABI = [
|
|
|
2810
2729
|
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
2811
2730
|
name: 'OwnableUnauthorizedAccount',
|
|
2812
2731
|
},
|
|
2813
|
-
{ type: 'error', inputs: [], name: '
|
|
2732
|
+
{ type: 'error', inputs: [], name: 'PoolNeedsOneTokenToBeWETH' },
|
|
2814
2733
|
{
|
|
2815
2734
|
type: 'error',
|
|
2816
|
-
inputs: [{ name: '
|
|
2817
|
-
name: '
|
|
2735
|
+
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
2736
|
+
name: 'SafeERC20FailedOperation',
|
|
2818
2737
|
},
|
|
2738
|
+
{ type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
|
|
2819
2739
|
{
|
|
2820
2740
|
type: 'error',
|
|
2821
|
-
inputs: [
|
|
2822
|
-
|
|
2823
|
-
{ name: 'actual', internalType: 'address', type: 'address' },
|
|
2824
|
-
],
|
|
2825
|
-
name: 'UnexpectedCointagAddress',
|
|
2741
|
+
inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
|
|
2742
|
+
name: 'UUPSUnsupportedProxiableUUID',
|
|
2826
2743
|
},
|
|
2744
|
+
{ type: 'error', inputs: [], name: 'UnknownBurnError' },
|
|
2745
|
+
{ type: 'error', inputs: [], name: 'UnknownSwapError' },
|
|
2827
2746
|
{
|
|
2828
2747
|
type: 'error',
|
|
2829
2748
|
inputs: [
|
|
2830
|
-
{ name: '
|
|
2749
|
+
{ name: 'current', internalType: 'string', type: 'string' },
|
|
2831
2750
|
{ name: 'newName', internalType: 'string', type: 'string' },
|
|
2832
2751
|
],
|
|
2833
2752
|
name: 'UpgradeToMismatchedContractName',
|
|
2834
2753
|
},
|
|
2835
2754
|
] as const
|
|
2836
2755
|
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
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
|
|
2756
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2757
|
+
// CointagFactory
|
|
2758
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2849
2759
|
|
|
2850
2760
|
/**
|
|
2851
2761
|
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
|
|
@@ -2853,363 +2763,725 @@ export const cointagFactoryAddress = {
|
|
|
2853
2763
|
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
|
|
2854
2764
|
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777773Bd7Cccb7E704315CA51245707E19B0DE)
|
|
2855
2765
|
*/
|
|
2856
|
-
export const
|
|
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 = [
|
|
2766
|
+
export const cointagFactoryABI = [
|
|
2878
2767
|
{
|
|
2879
2768
|
type: 'constructor',
|
|
2880
2769
|
inputs: [
|
|
2881
|
-
{
|
|
2882
|
-
|
|
2883
|
-
|
|
2770
|
+
{
|
|
2771
|
+
name: '_cointagImplementation',
|
|
2772
|
+
internalType: 'address',
|
|
2773
|
+
type: 'address',
|
|
2774
|
+
},
|
|
2884
2775
|
],
|
|
2885
2776
|
stateMutability: 'nonpayable',
|
|
2886
2777
|
},
|
|
2887
2778
|
{
|
|
2888
2779
|
type: 'function',
|
|
2889
2780
|
inputs: [],
|
|
2890
|
-
name: '
|
|
2891
|
-
outputs: [{ name: '', internalType: '
|
|
2781
|
+
name: 'UPGRADE_INTERFACE_VERSION',
|
|
2782
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2892
2783
|
stateMutability: 'view',
|
|
2893
2784
|
},
|
|
2894
2785
|
{
|
|
2895
2786
|
type: 'function',
|
|
2896
2787
|
inputs: [],
|
|
2897
|
-
name: '
|
|
2898
|
-
outputs: [
|
|
2899
|
-
stateMutability: '
|
|
2788
|
+
name: 'acceptOwnership',
|
|
2789
|
+
outputs: [],
|
|
2790
|
+
stateMutability: 'nonpayable',
|
|
2900
2791
|
},
|
|
2901
2792
|
{
|
|
2902
2793
|
type: 'function',
|
|
2903
2794
|
inputs: [],
|
|
2904
|
-
name: '
|
|
2905
|
-
outputs: [{ name: '', internalType: '
|
|
2795
|
+
name: 'cointagImplementation',
|
|
2796
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2906
2797
|
stateMutability: 'view',
|
|
2907
2798
|
},
|
|
2908
2799
|
{
|
|
2909
2800
|
type: 'function',
|
|
2910
2801
|
inputs: [],
|
|
2911
|
-
name: '
|
|
2802
|
+
name: 'contractName',
|
|
2912
2803
|
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2913
|
-
stateMutability: '
|
|
2804
|
+
stateMutability: 'pure',
|
|
2914
2805
|
},
|
|
2915
2806
|
{
|
|
2916
2807
|
type: 'function',
|
|
2917
2808
|
inputs: [],
|
|
2918
|
-
name: '
|
|
2809
|
+
name: 'contractURI',
|
|
2919
2810
|
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2920
|
-
stateMutability: '
|
|
2921
|
-
},
|
|
2922
|
-
{
|
|
2923
|
-
type: 'function',
|
|
2924
|
-
inputs: [],
|
|
2925
|
-
name: 'PERMISSION_BIT_ADMIN',
|
|
2926
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2927
|
-
stateMutability: 'view',
|
|
2811
|
+
stateMutability: 'pure',
|
|
2928
2812
|
},
|
|
2929
2813
|
{
|
|
2930
2814
|
type: 'function',
|
|
2931
2815
|
inputs: [],
|
|
2932
|
-
name: '
|
|
2933
|
-
outputs: [{ name: '', internalType: '
|
|
2934
|
-
stateMutability: '
|
|
2816
|
+
name: 'contractVersion',
|
|
2817
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2818
|
+
stateMutability: 'pure',
|
|
2935
2819
|
},
|
|
2936
2820
|
{
|
|
2937
2821
|
type: 'function',
|
|
2938
|
-
inputs: [
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
name: '
|
|
2954
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2822
|
+
inputs: [
|
|
2823
|
+
{
|
|
2824
|
+
name: '_creatorRewardRecipient',
|
|
2825
|
+
internalType: 'address',
|
|
2826
|
+
type: 'address',
|
|
2827
|
+
},
|
|
2828
|
+
{ name: '_pool', internalType: 'address', type: 'address' },
|
|
2829
|
+
{
|
|
2830
|
+
name: '_percentageToBuyBurn',
|
|
2831
|
+
internalType: 'uint256',
|
|
2832
|
+
type: 'uint256',
|
|
2833
|
+
},
|
|
2834
|
+
{ name: 'saltSource', internalType: 'bytes', type: 'bytes' },
|
|
2835
|
+
],
|
|
2836
|
+
name: 'getCointagAddress',
|
|
2837
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2955
2838
|
stateMutability: 'view',
|
|
2956
2839
|
},
|
|
2957
2840
|
{
|
|
2958
2841
|
type: 'function',
|
|
2959
2842
|
inputs: [
|
|
2960
2843
|
{
|
|
2961
|
-
name: '
|
|
2962
|
-
internalType: '
|
|
2963
|
-
type: '
|
|
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
|
-
],
|
|
2844
|
+
name: '_creatorRewardRecipient',
|
|
2845
|
+
internalType: 'address',
|
|
2846
|
+
type: 'address',
|
|
2970
2847
|
},
|
|
2971
|
-
{ name: '
|
|
2972
|
-
{ name: 'timestamps', internalType: 'uint256[]', type: 'uint256[]' },
|
|
2848
|
+
{ name: '_pool', internalType: 'address', type: 'address' },
|
|
2973
2849
|
{
|
|
2974
|
-
name: '
|
|
2975
|
-
internalType: '
|
|
2976
|
-
type: '
|
|
2850
|
+
name: '_percentageToBuyBurn',
|
|
2851
|
+
internalType: 'uint256',
|
|
2852
|
+
type: 'uint256',
|
|
2977
2853
|
},
|
|
2854
|
+
{ name: 'saltSource', internalType: 'bytes', type: 'bytes' },
|
|
2978
2855
|
],
|
|
2979
|
-
name: '
|
|
2980
|
-
outputs: [],
|
|
2856
|
+
name: 'getOrCreateCointag',
|
|
2857
|
+
outputs: [{ name: '', internalType: 'contract ICointag', type: 'address' }],
|
|
2981
2858
|
stateMutability: 'nonpayable',
|
|
2982
2859
|
},
|
|
2983
2860
|
{
|
|
2984
2861
|
type: 'function',
|
|
2985
2862
|
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
2863
|
{
|
|
3002
|
-
name: '
|
|
2864
|
+
name: '_creatorRewardRecipient',
|
|
3003
2865
|
internalType: 'address',
|
|
3004
2866
|
type: 'address',
|
|
3005
2867
|
},
|
|
3006
|
-
{ name: '
|
|
3007
|
-
],
|
|
3008
|
-
name: 'comment',
|
|
3009
|
-
outputs: [
|
|
2868
|
+
{ name: '_pool', internalType: 'address', type: 'address' },
|
|
3010
2869
|
{
|
|
3011
|
-
name: '
|
|
3012
|
-
internalType: '
|
|
3013
|
-
type: '
|
|
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
|
-
],
|
|
2870
|
+
name: '_percentageToBuyBurn',
|
|
2871
|
+
internalType: 'uint256',
|
|
2872
|
+
type: 'uint256',
|
|
3020
2873
|
},
|
|
2874
|
+
{ name: 'saltSource', internalType: 'bytes', type: 'bytes' },
|
|
2875
|
+
{ name: 'expectedAddress', internalType: 'address', type: 'address' },
|
|
3021
2876
|
],
|
|
3022
|
-
|
|
2877
|
+
name: 'getOrCreateCointagAtExpectedAddress',
|
|
2878
|
+
outputs: [{ name: '', internalType: 'contract ICointag', type: 'address' }],
|
|
2879
|
+
stateMutability: 'nonpayable',
|
|
3023
2880
|
},
|
|
3024
2881
|
{
|
|
3025
2882
|
type: 'function',
|
|
3026
|
-
inputs: [
|
|
3027
|
-
|
|
3028
|
-
|
|
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
|
-
],
|
|
3037
|
-
},
|
|
3038
|
-
],
|
|
3039
|
-
name: 'commentSparksQuantity',
|
|
3040
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2883
|
+
inputs: [],
|
|
2884
|
+
name: 'implementation',
|
|
2885
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3041
2886
|
stateMutability: 'view',
|
|
3042
2887
|
},
|
|
3043
2888
|
{
|
|
3044
2889
|
type: 'function',
|
|
3045
|
-
inputs: [
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
2890
|
+
inputs: [
|
|
2891
|
+
{ name: '_defaultOwner', internalType: 'address', type: 'address' },
|
|
2892
|
+
],
|
|
2893
|
+
name: 'initialize',
|
|
2894
|
+
outputs: [],
|
|
2895
|
+
stateMutability: 'nonpayable',
|
|
3049
2896
|
},
|
|
3050
2897
|
{
|
|
3051
2898
|
type: 'function',
|
|
3052
2899
|
inputs: [],
|
|
3053
|
-
name: '
|
|
3054
|
-
outputs: [{ name: '', internalType: '
|
|
3055
|
-
stateMutability: '
|
|
3056
|
-
},
|
|
3057
|
-
{
|
|
3058
|
-
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',
|
|
2900
|
+
name: 'owner',
|
|
2901
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2902
|
+
stateMutability: 'view',
|
|
3098
2903
|
},
|
|
3099
2904
|
{
|
|
3100
2905
|
type: 'function',
|
|
3101
2906
|
inputs: [],
|
|
3102
|
-
name: '
|
|
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
|
-
],
|
|
2907
|
+
name: 'pendingOwner',
|
|
2908
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3112
2909
|
stateMutability: 'view',
|
|
3113
2910
|
},
|
|
3114
2911
|
{
|
|
3115
2912
|
type: 'function',
|
|
3116
|
-
inputs: [
|
|
3117
|
-
name: '
|
|
2913
|
+
inputs: [],
|
|
2914
|
+
name: 'proxiableUUID',
|
|
3118
2915
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3119
2916
|
stateMutability: 'view',
|
|
3120
2917
|
},
|
|
3121
2918
|
{
|
|
3122
2919
|
type: 'function',
|
|
3123
|
-
inputs: [
|
|
3124
|
-
|
|
3125
|
-
{ name: 'account', internalType: 'address', type: 'address' },
|
|
3126
|
-
],
|
|
3127
|
-
name: 'grantRole',
|
|
2920
|
+
inputs: [],
|
|
2921
|
+
name: 'renounceOwnership',
|
|
3128
2922
|
outputs: [],
|
|
3129
2923
|
stateMutability: 'nonpayable',
|
|
3130
2924
|
},
|
|
3131
2925
|
{
|
|
3132
2926
|
type: 'function',
|
|
3133
|
-
inputs: [
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
name: 'hasRole',
|
|
3138
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3139
|
-
stateMutability: 'view',
|
|
2927
|
+
inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
|
|
2928
|
+
name: 'transferOwnership',
|
|
2929
|
+
outputs: [],
|
|
2930
|
+
stateMutability: 'nonpayable',
|
|
3140
2931
|
},
|
|
3141
2932
|
{
|
|
3142
2933
|
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',
|
|
2934
|
+
inputs: [],
|
|
2935
|
+
name: 'upgradeGate',
|
|
3157
2936
|
outputs: [
|
|
3158
|
-
{ name: '
|
|
3159
|
-
{ name: 'exists', internalType: 'bool', type: 'bool' },
|
|
2937
|
+
{ name: '', internalType: 'contract IUpgradeGate', type: 'address' },
|
|
3160
2938
|
],
|
|
3161
2939
|
stateMutability: 'view',
|
|
3162
2940
|
},
|
|
3163
2941
|
{
|
|
3164
2942
|
type: 'function',
|
|
3165
2943
|
inputs: [
|
|
3166
|
-
{
|
|
3167
|
-
|
|
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
|
-
},
|
|
2944
|
+
{ name: 'newImplementation', internalType: 'address', type: 'address' },
|
|
2945
|
+
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
3177
2946
|
],
|
|
3178
|
-
name: '
|
|
3179
|
-
outputs: [
|
|
3180
|
-
stateMutability: '
|
|
2947
|
+
name: 'upgradeToAndCall',
|
|
2948
|
+
outputs: [],
|
|
2949
|
+
stateMutability: 'payable',
|
|
3181
2950
|
},
|
|
3182
2951
|
{
|
|
3183
|
-
type: '
|
|
2952
|
+
type: 'event',
|
|
2953
|
+
anonymous: false,
|
|
3184
2954
|
inputs: [
|
|
3185
2955
|
{
|
|
3186
|
-
name: '
|
|
3187
|
-
internalType: '
|
|
3188
|
-
type: '
|
|
3189
|
-
|
|
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
|
-
],
|
|
2956
|
+
name: 'version',
|
|
2957
|
+
internalType: 'uint64',
|
|
2958
|
+
type: 'uint64',
|
|
2959
|
+
indexed: false,
|
|
3195
2960
|
},
|
|
3196
2961
|
],
|
|
3197
|
-
name: '
|
|
3198
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3199
|
-
stateMutability: 'pure',
|
|
2962
|
+
name: 'Initialized',
|
|
3200
2963
|
},
|
|
3201
2964
|
{
|
|
3202
|
-
type: '
|
|
2965
|
+
type: 'event',
|
|
2966
|
+
anonymous: false,
|
|
3203
2967
|
inputs: [
|
|
3204
2968
|
{
|
|
3205
|
-
name: '
|
|
3206
|
-
internalType: '
|
|
3207
|
-
type: '
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
2969
|
+
name: 'previousOwner',
|
|
2970
|
+
internalType: 'address',
|
|
2971
|
+
type: 'address',
|
|
2972
|
+
indexed: true,
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
name: 'newOwner',
|
|
2976
|
+
internalType: 'address',
|
|
2977
|
+
type: 'address',
|
|
2978
|
+
indexed: true,
|
|
2979
|
+
},
|
|
2980
|
+
],
|
|
2981
|
+
name: 'OwnershipTransferStarted',
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
type: 'event',
|
|
2985
|
+
anonymous: false,
|
|
2986
|
+
inputs: [
|
|
2987
|
+
{
|
|
2988
|
+
name: 'previousOwner',
|
|
2989
|
+
internalType: 'address',
|
|
2990
|
+
type: 'address',
|
|
2991
|
+
indexed: true,
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
name: 'newOwner',
|
|
2995
|
+
internalType: 'address',
|
|
2996
|
+
type: 'address',
|
|
2997
|
+
indexed: true,
|
|
2998
|
+
},
|
|
2999
|
+
],
|
|
3000
|
+
name: 'OwnershipTransferred',
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
type: 'event',
|
|
3004
|
+
anonymous: false,
|
|
3005
|
+
inputs: [
|
|
3006
|
+
{
|
|
3007
|
+
name: 'cointag',
|
|
3008
|
+
internalType: 'address',
|
|
3009
|
+
type: 'address',
|
|
3010
|
+
indexed: true,
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
name: 'creatorRewardRecipient',
|
|
3014
|
+
internalType: 'address',
|
|
3015
|
+
type: 'address',
|
|
3016
|
+
indexed: true,
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
name: 'erc20',
|
|
3020
|
+
internalType: 'address',
|
|
3021
|
+
type: 'address',
|
|
3022
|
+
indexed: true,
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
name: 'pool',
|
|
3026
|
+
internalType: 'address',
|
|
3027
|
+
type: 'address',
|
|
3028
|
+
indexed: false,
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
name: 'percentageToBuyBurn',
|
|
3032
|
+
internalType: 'uint256',
|
|
3033
|
+
type: 'uint256',
|
|
3034
|
+
indexed: false,
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
name: 'saltSource',
|
|
3038
|
+
internalType: 'bytes',
|
|
3039
|
+
type: 'bytes',
|
|
3040
|
+
indexed: false,
|
|
3041
|
+
},
|
|
3042
|
+
],
|
|
3043
|
+
name: 'SetupNewCointag',
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
type: 'event',
|
|
3047
|
+
anonymous: false,
|
|
3048
|
+
inputs: [
|
|
3049
|
+
{
|
|
3050
|
+
name: 'implementation',
|
|
3051
|
+
internalType: 'address',
|
|
3052
|
+
type: 'address',
|
|
3053
|
+
indexed: true,
|
|
3054
|
+
},
|
|
3055
|
+
],
|
|
3056
|
+
name: 'Upgraded',
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
type: 'error',
|
|
3060
|
+
inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
|
|
3061
|
+
name: 'AddressEmptyCode',
|
|
3062
|
+
},
|
|
3063
|
+
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
3064
|
+
{
|
|
3065
|
+
type: 'error',
|
|
3066
|
+
inputs: [
|
|
3067
|
+
{ name: 'implementation', internalType: 'address', type: 'address' },
|
|
3068
|
+
],
|
|
3069
|
+
name: 'ERC1967InvalidImplementation',
|
|
3070
|
+
},
|
|
3071
|
+
{ type: 'error', inputs: [], name: 'ERC1967NonPayable' },
|
|
3072
|
+
{ type: 'error', inputs: [], name: 'FailedInnerCall' },
|
|
3073
|
+
{ type: 'error', inputs: [], name: 'InvalidInitialization' },
|
|
3074
|
+
{ type: 'error', inputs: [], name: 'NotInitializing' },
|
|
3075
|
+
{
|
|
3076
|
+
type: 'error',
|
|
3077
|
+
inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
|
|
3078
|
+
name: 'OwnableInvalidOwner',
|
|
3079
|
+
},
|
|
3080
|
+
{
|
|
3081
|
+
type: 'error',
|
|
3082
|
+
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
3083
|
+
name: 'OwnableUnauthorizedAccount',
|
|
3084
|
+
},
|
|
3085
|
+
{ type: 'error', inputs: [], name: 'UUPSUnauthorizedCallContext' },
|
|
3086
|
+
{
|
|
3087
|
+
type: 'error',
|
|
3088
|
+
inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
|
|
3089
|
+
name: 'UUPSUnsupportedProxiableUUID',
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
type: 'error',
|
|
3093
|
+
inputs: [
|
|
3094
|
+
{ name: 'expected', internalType: 'address', type: 'address' },
|
|
3095
|
+
{ name: 'actual', internalType: 'address', type: 'address' },
|
|
3096
|
+
],
|
|
3097
|
+
name: 'UnexpectedCointagAddress',
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
type: 'error',
|
|
3101
|
+
inputs: [
|
|
3102
|
+
{ name: 'currentName', internalType: 'string', type: 'string' },
|
|
3103
|
+
{ name: 'newName', internalType: 'string', type: 'string' },
|
|
3104
|
+
],
|
|
3105
|
+
name: 'UpgradeToMismatchedContractName',
|
|
3106
|
+
},
|
|
3107
|
+
] as const
|
|
3108
|
+
|
|
3109
|
+
/**
|
|
3110
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
|
|
3111
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
|
|
3112
|
+
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
|
|
3113
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777773Bd7Cccb7E704315CA51245707E19B0DE)
|
|
3114
|
+
*/
|
|
3115
|
+
export const cointagFactoryAddress = {
|
|
3116
|
+
8453: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
|
|
3117
|
+
84532: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
|
|
3118
|
+
7777777: '0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F',
|
|
3119
|
+
999999999: '0x77777773Bd7Cccb7E704315CA51245707E19B0DE',
|
|
3120
|
+
} as const
|
|
3121
|
+
|
|
3122
|
+
/**
|
|
3123
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
|
|
3124
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
|
|
3125
|
+
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777BbD0b88aD5F3b5f4c89C6B60D74b9774F)
|
|
3126
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x77777773Bd7Cccb7E704315CA51245707E19B0DE)
|
|
3127
|
+
*/
|
|
3128
|
+
export const cointagFactoryConfig = {
|
|
3129
|
+
address: cointagFactoryAddress,
|
|
3130
|
+
abi: cointagFactoryABI,
|
|
3131
|
+
} as const
|
|
3132
|
+
|
|
3133
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3134
|
+
// Comments
|
|
3135
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3136
|
+
|
|
3137
|
+
/**
|
|
3138
|
+
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3139
|
+
* - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3140
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3141
|
+
* - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3142
|
+
* - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3143
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3144
|
+
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3145
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3146
|
+
* - [__View Contract on Op Sepolia Blockscout__](https://optimism-sepolia.blockscout.com/address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3147
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x7777777C2B3132e03a65721a41745C07170a5877)
|
|
3148
|
+
*/
|
|
3149
|
+
export const commentsABI = [
|
|
3150
|
+
{
|
|
3151
|
+
type: 'constructor',
|
|
3152
|
+
inputs: [
|
|
3153
|
+
{ name: '_sparkValue', internalType: 'uint256', type: 'uint256' },
|
|
3154
|
+
{ name: '_protocolRewards', internalType: 'address', type: 'address' },
|
|
3155
|
+
{ name: '_zoraRecipient', internalType: 'address', type: 'address' },
|
|
3156
|
+
],
|
|
3157
|
+
stateMutability: 'nonpayable',
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
type: 'function',
|
|
3161
|
+
inputs: [],
|
|
3162
|
+
name: 'BACKFILLER_ROLE',
|
|
3163
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3164
|
+
stateMutability: 'view',
|
|
3165
|
+
},
|
|
3166
|
+
{
|
|
3167
|
+
type: 'function',
|
|
3168
|
+
inputs: [],
|
|
3169
|
+
name: 'DEFAULT_ADMIN_ROLE',
|
|
3170
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3171
|
+
stateMutability: 'view',
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
type: 'function',
|
|
3175
|
+
inputs: [],
|
|
3176
|
+
name: 'DELEGATE_COMMENTER',
|
|
3177
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3178
|
+
stateMutability: 'view',
|
|
3179
|
+
},
|
|
3180
|
+
{
|
|
3181
|
+
type: 'function',
|
|
3182
|
+
inputs: [],
|
|
3183
|
+
name: 'DOMAIN_NAME',
|
|
3184
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
3185
|
+
stateMutability: 'view',
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
type: 'function',
|
|
3189
|
+
inputs: [],
|
|
3190
|
+
name: 'DOMAIN_VERSION',
|
|
3191
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
3192
|
+
stateMutability: 'view',
|
|
3193
|
+
},
|
|
3194
|
+
{
|
|
3195
|
+
type: 'function',
|
|
3196
|
+
inputs: [],
|
|
3197
|
+
name: 'PERMISSION_BIT_ADMIN',
|
|
3198
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3199
|
+
stateMutability: 'view',
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
type: 'function',
|
|
3203
|
+
inputs: [],
|
|
3204
|
+
name: 'REFERRER_REWARD_PCT',
|
|
3205
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3206
|
+
stateMutability: 'view',
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
type: 'function',
|
|
3210
|
+
inputs: [],
|
|
3211
|
+
name: 'UPGRADE_INTERFACE_VERSION',
|
|
3212
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
3213
|
+
stateMutability: 'view',
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
type: 'function',
|
|
3217
|
+
inputs: [],
|
|
3218
|
+
name: 'ZORA_REWARD_NO_REFERRER_PCT',
|
|
3219
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3220
|
+
stateMutability: 'view',
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
type: 'function',
|
|
3224
|
+
inputs: [],
|
|
3225
|
+
name: 'ZORA_REWARD_PCT',
|
|
3226
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3227
|
+
stateMutability: 'view',
|
|
3228
|
+
},
|
|
3229
|
+
{
|
|
3230
|
+
type: 'function',
|
|
3231
|
+
inputs: [
|
|
3232
|
+
{
|
|
3233
|
+
name: 'commentIdentifiers',
|
|
3234
|
+
internalType: 'struct IComments.CommentIdentifier[]',
|
|
3235
|
+
type: 'tuple[]',
|
|
3236
|
+
components: [
|
|
3237
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3238
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3239
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3240
|
+
{ name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
|
|
3241
|
+
],
|
|
3242
|
+
},
|
|
3243
|
+
{ name: 'texts', internalType: 'string[]', type: 'string[]' },
|
|
3244
|
+
{ name: 'timestamps', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3245
|
+
{
|
|
3246
|
+
name: 'originalTransactionHashes',
|
|
3247
|
+
internalType: 'bytes32[]',
|
|
3248
|
+
type: 'bytes32[]',
|
|
3249
|
+
},
|
|
3250
|
+
],
|
|
3251
|
+
name: 'backfillBatchAddComment',
|
|
3252
|
+
outputs: [],
|
|
3253
|
+
stateMutability: 'nonpayable',
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
type: 'function',
|
|
3257
|
+
inputs: [
|
|
3258
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3259
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3260
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3261
|
+
{ name: 'text', internalType: 'string', type: 'string' },
|
|
3262
|
+
{
|
|
3263
|
+
name: 'replyTo',
|
|
3264
|
+
internalType: 'struct IComments.CommentIdentifier',
|
|
3265
|
+
type: 'tuple',
|
|
3266
|
+
components: [
|
|
3267
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3268
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3269
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3270
|
+
{ name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
|
|
3271
|
+
],
|
|
3272
|
+
},
|
|
3273
|
+
{
|
|
3274
|
+
name: 'commenterSmartWallet',
|
|
3275
|
+
internalType: 'address',
|
|
3276
|
+
type: 'address',
|
|
3277
|
+
},
|
|
3278
|
+
{ name: 'referrer', internalType: 'address', type: 'address' },
|
|
3279
|
+
],
|
|
3280
|
+
name: 'comment',
|
|
3281
|
+
outputs: [
|
|
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
|
+
stateMutability: 'payable',
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
type: 'function',
|
|
3298
|
+
inputs: [
|
|
3299
|
+
{
|
|
3300
|
+
name: 'commentIdentifier',
|
|
3301
|
+
internalType: 'struct IComments.CommentIdentifier',
|
|
3302
|
+
type: 'tuple',
|
|
3303
|
+
components: [
|
|
3304
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3305
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3306
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3307
|
+
{ name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
|
|
3308
|
+
],
|
|
3309
|
+
},
|
|
3310
|
+
],
|
|
3311
|
+
name: 'commentSparksQuantity',
|
|
3312
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3313
|
+
stateMutability: 'view',
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
type: 'function',
|
|
3317
|
+
inputs: [],
|
|
3318
|
+
name: 'contractName',
|
|
3319
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
3320
|
+
stateMutability: 'pure',
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
type: 'function',
|
|
3324
|
+
inputs: [],
|
|
3325
|
+
name: 'contractVersion',
|
|
3326
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
3327
|
+
stateMutability: 'pure',
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
type: 'function',
|
|
3331
|
+
inputs: [
|
|
3332
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3333
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3334
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3335
|
+
{ name: 'text', internalType: 'string', type: 'string' },
|
|
3336
|
+
{
|
|
3337
|
+
name: 'replyTo',
|
|
3338
|
+
internalType: 'struct IComments.CommentIdentifier',
|
|
3339
|
+
type: 'tuple',
|
|
3340
|
+
components: [
|
|
3341
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3342
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3343
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3344
|
+
{ name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
|
|
3345
|
+
],
|
|
3346
|
+
},
|
|
3347
|
+
{
|
|
3348
|
+
name: 'commenterSmartWalletOwner',
|
|
3349
|
+
internalType: 'address',
|
|
3350
|
+
type: 'address',
|
|
3351
|
+
},
|
|
3352
|
+
{ name: 'referrer', internalType: 'address', type: 'address' },
|
|
3353
|
+
],
|
|
3354
|
+
name: 'delegateComment',
|
|
3355
|
+
outputs: [
|
|
3356
|
+
{
|
|
3357
|
+
name: 'commentIdentifier',
|
|
3358
|
+
internalType: 'struct IComments.CommentIdentifier',
|
|
3359
|
+
type: 'tuple',
|
|
3360
|
+
components: [
|
|
3361
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3362
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3363
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3364
|
+
{ name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
|
|
3365
|
+
],
|
|
3366
|
+
},
|
|
3367
|
+
{ name: 'commentId', internalType: 'bytes32', type: 'bytes32' },
|
|
3368
|
+
],
|
|
3369
|
+
stateMutability: 'payable',
|
|
3370
|
+
},
|
|
3371
|
+
{
|
|
3372
|
+
type: 'function',
|
|
3373
|
+
inputs: [],
|
|
3374
|
+
name: 'eip712Domain',
|
|
3375
|
+
outputs: [
|
|
3376
|
+
{ name: 'fields', internalType: 'bytes1', type: 'bytes1' },
|
|
3377
|
+
{ name: 'name', internalType: 'string', type: 'string' },
|
|
3378
|
+
{ name: 'version', internalType: 'string', type: 'string' },
|
|
3379
|
+
{ name: 'chainId', internalType: 'uint256', type: 'uint256' },
|
|
3380
|
+
{ name: 'verifyingContract', internalType: 'address', type: 'address' },
|
|
3381
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3382
|
+
{ name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3383
|
+
],
|
|
3384
|
+
stateMutability: 'view',
|
|
3385
|
+
},
|
|
3386
|
+
{
|
|
3387
|
+
type: 'function',
|
|
3388
|
+
inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }],
|
|
3389
|
+
name: 'getRoleAdmin',
|
|
3390
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3391
|
+
stateMutability: 'view',
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
type: 'function',
|
|
3395
|
+
inputs: [
|
|
3396
|
+
{ name: 'role', internalType: 'bytes32', type: 'bytes32' },
|
|
3397
|
+
{ name: 'account', internalType: 'address', type: 'address' },
|
|
3398
|
+
],
|
|
3399
|
+
name: 'grantRole',
|
|
3400
|
+
outputs: [],
|
|
3401
|
+
stateMutability: 'nonpayable',
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
type: 'function',
|
|
3405
|
+
inputs: [
|
|
3406
|
+
{ name: 'role', internalType: 'bytes32', type: 'bytes32' },
|
|
3407
|
+
{ name: 'account', internalType: 'address', type: 'address' },
|
|
3408
|
+
],
|
|
3409
|
+
name: 'hasRole',
|
|
3410
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3411
|
+
stateMutability: 'view',
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
type: 'function',
|
|
3415
|
+
inputs: [
|
|
3416
|
+
{
|
|
3417
|
+
name: 'commentIdentifier',
|
|
3418
|
+
internalType: 'struct IComments.CommentIdentifier',
|
|
3419
|
+
type: 'tuple',
|
|
3420
|
+
components: [
|
|
3421
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3422
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3423
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3424
|
+
{ name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
|
|
3425
|
+
],
|
|
3426
|
+
},
|
|
3427
|
+
],
|
|
3428
|
+
name: 'hashAndCheckCommentExists',
|
|
3429
|
+
outputs: [
|
|
3430
|
+
{ name: 'commentId', internalType: 'bytes32', type: 'bytes32' },
|
|
3431
|
+
{ name: 'exists', internalType: 'bool', type: 'bool' },
|
|
3432
|
+
],
|
|
3433
|
+
stateMutability: 'view',
|
|
3434
|
+
},
|
|
3435
|
+
{
|
|
3436
|
+
type: 'function',
|
|
3437
|
+
inputs: [
|
|
3438
|
+
{
|
|
3439
|
+
name: 'commentIdentifier',
|
|
3440
|
+
internalType: 'struct IComments.CommentIdentifier',
|
|
3441
|
+
type: 'tuple',
|
|
3442
|
+
components: [
|
|
3443
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3444
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3445
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3446
|
+
{ name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
|
|
3447
|
+
],
|
|
3448
|
+
},
|
|
3449
|
+
],
|
|
3450
|
+
name: 'hashAndValidateCommentExists',
|
|
3451
|
+
outputs: [{ name: 'commentId', internalType: 'bytes32', type: 'bytes32' }],
|
|
3452
|
+
stateMutability: 'view',
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
type: 'function',
|
|
3456
|
+
inputs: [
|
|
3457
|
+
{
|
|
3458
|
+
name: 'commentIdentifier',
|
|
3459
|
+
internalType: 'struct IComments.CommentIdentifier',
|
|
3460
|
+
type: 'tuple',
|
|
3461
|
+
components: [
|
|
3462
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3463
|
+
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
3464
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
3465
|
+
{ name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
|
|
3466
|
+
],
|
|
3467
|
+
},
|
|
3468
|
+
],
|
|
3469
|
+
name: 'hashCommentIdentifier',
|
|
3470
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3471
|
+
stateMutability: 'pure',
|
|
3472
|
+
},
|
|
3473
|
+
{
|
|
3474
|
+
type: 'function',
|
|
3475
|
+
inputs: [
|
|
3476
|
+
{
|
|
3477
|
+
name: 'permit',
|
|
3478
|
+
internalType: 'struct IComments.PermitComment',
|
|
3479
|
+
type: 'tuple',
|
|
3480
|
+
components: [
|
|
3481
|
+
{ name: 'commenter', internalType: 'address', type: 'address' },
|
|
3482
|
+
{
|
|
3483
|
+
name: 'commenterSmartWallet',
|
|
3484
|
+
internalType: 'address',
|
|
3213
3485
|
type: 'address',
|
|
3214
3486
|
},
|
|
3215
3487
|
{ name: 'contractAddress', internalType: 'address', type: 'address' },
|
|
@@ -11791,447 +12063,175 @@ export const zoraCreatorRedeemMinterFactoryABI = [
|
|
|
11791
12063
|
{
|
|
11792
12064
|
type: 'function',
|
|
11793
12065
|
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',
|
|
12032
|
-
},
|
|
12033
|
-
{
|
|
12034
|
-
type: 'function',
|
|
12035
|
-
inputs: [],
|
|
12036
|
-
name: 'proxiableUUID',
|
|
12037
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
12038
|
-
stateMutability: 'view',
|
|
12066
|
+
name: 'contractVersion',
|
|
12067
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
12068
|
+
stateMutability: 'pure',
|
|
12039
12069
|
},
|
|
12040
12070
|
{
|
|
12041
12071
|
type: 'function',
|
|
12042
12072
|
inputs: [],
|
|
12043
|
-
name: '
|
|
12073
|
+
name: 'createMinterIfNoneExists',
|
|
12044
12074
|
outputs: [],
|
|
12045
12075
|
stateMutability: 'nonpayable',
|
|
12046
12076
|
},
|
|
12047
12077
|
{
|
|
12048
12078
|
type: 'function',
|
|
12049
|
-
inputs: [
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12079
|
+
inputs: [
|
|
12080
|
+
{ name: '_creatorContract', internalType: 'address', type: 'address' },
|
|
12081
|
+
],
|
|
12082
|
+
name: 'doesRedeemMinterExistForCreatorContract',
|
|
12083
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
12084
|
+
stateMutability: 'view',
|
|
12053
12085
|
},
|
|
12054
12086
|
{
|
|
12055
12087
|
type: 'function',
|
|
12056
12088
|
inputs: [
|
|
12057
|
-
{ name: '
|
|
12058
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
12089
|
+
{ name: '_creatorContract', internalType: 'address', type: 'address' },
|
|
12059
12090
|
],
|
|
12060
|
-
name: '
|
|
12061
|
-
outputs: [],
|
|
12062
|
-
stateMutability: '
|
|
12091
|
+
name: 'getDeployedRedeemMinterForCreatorContract',
|
|
12092
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
12093
|
+
stateMutability: 'view',
|
|
12063
12094
|
},
|
|
12064
12095
|
{
|
|
12065
|
-
type: '
|
|
12066
|
-
anonymous: false,
|
|
12096
|
+
type: 'function',
|
|
12067
12097
|
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
|
-
},
|
|
12098
|
+
{ name: '_creatorContract', internalType: 'address', type: 'address' },
|
|
12123
12099
|
],
|
|
12124
|
-
name: '
|
|
12100
|
+
name: 'predictMinterAddress',
|
|
12101
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
12102
|
+
stateMutability: 'view',
|
|
12125
12103
|
},
|
|
12126
12104
|
{
|
|
12127
|
-
type: '
|
|
12128
|
-
anonymous: false,
|
|
12105
|
+
type: 'function',
|
|
12129
12106
|
inputs: [
|
|
12107
|
+
{ name: 'sender', internalType: 'address', type: 'address' },
|
|
12108
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
12109
|
+
{ name: 'quantity', internalType: 'uint256', type: 'uint256' },
|
|
12110
|
+
{ name: 'ethValueSent', internalType: 'uint256', type: 'uint256' },
|
|
12111
|
+
{ name: 'minterArguments', internalType: 'bytes', type: 'bytes' },
|
|
12112
|
+
],
|
|
12113
|
+
name: 'requestMint',
|
|
12114
|
+
outputs: [
|
|
12130
12115
|
{
|
|
12131
|
-
name: '
|
|
12132
|
-
internalType: '
|
|
12133
|
-
type: '
|
|
12134
|
-
|
|
12116
|
+
name: 'commands',
|
|
12117
|
+
internalType: 'struct ICreatorCommands.CommandSet',
|
|
12118
|
+
type: 'tuple',
|
|
12119
|
+
components: [
|
|
12120
|
+
{
|
|
12121
|
+
name: 'commands',
|
|
12122
|
+
internalType: 'struct ICreatorCommands.Command[]',
|
|
12123
|
+
type: 'tuple[]',
|
|
12124
|
+
components: [
|
|
12125
|
+
{
|
|
12126
|
+
name: 'method',
|
|
12127
|
+
internalType: 'enum ICreatorCommands.CreatorActions',
|
|
12128
|
+
type: 'uint8',
|
|
12129
|
+
},
|
|
12130
|
+
{ name: 'args', internalType: 'bytes', type: 'bytes' },
|
|
12131
|
+
],
|
|
12132
|
+
},
|
|
12133
|
+
{ name: 'at', internalType: 'uint256', type: 'uint256' },
|
|
12134
|
+
],
|
|
12135
12135
|
},
|
|
12136
12136
|
],
|
|
12137
|
-
|
|
12137
|
+
stateMutability: 'nonpayable',
|
|
12138
|
+
},
|
|
12139
|
+
{
|
|
12140
|
+
type: 'function',
|
|
12141
|
+
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
12142
|
+
name: 'supportsInterface',
|
|
12143
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
12144
|
+
stateMutability: 'pure',
|
|
12145
|
+
},
|
|
12146
|
+
{
|
|
12147
|
+
type: 'function',
|
|
12148
|
+
inputs: [],
|
|
12149
|
+
name: 'zoraRedeemMinterImplementation',
|
|
12150
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
12151
|
+
stateMutability: 'view',
|
|
12138
12152
|
},
|
|
12139
12153
|
{
|
|
12140
12154
|
type: 'event',
|
|
12141
12155
|
anonymous: false,
|
|
12142
12156
|
inputs: [
|
|
12143
12157
|
{
|
|
12144
|
-
name: '
|
|
12145
|
-
internalType: 'address',
|
|
12146
|
-
type: 'address',
|
|
12147
|
-
indexed: true,
|
|
12148
|
-
},
|
|
12149
|
-
{
|
|
12150
|
-
name: 'newOwner',
|
|
12158
|
+
name: 'creatorContract',
|
|
12151
12159
|
internalType: 'address',
|
|
12152
12160
|
type: 'address',
|
|
12153
12161
|
indexed: true,
|
|
12154
12162
|
},
|
|
12155
|
-
],
|
|
12156
|
-
name: 'OwnershipTransferred',
|
|
12157
|
-
},
|
|
12158
|
-
{
|
|
12159
|
-
type: 'event',
|
|
12160
|
-
anonymous: false,
|
|
12161
|
-
inputs: [
|
|
12162
12163
|
{
|
|
12163
|
-
name: '
|
|
12164
|
+
name: 'minterContract',
|
|
12164
12165
|
internalType: 'address',
|
|
12165
12166
|
type: 'address',
|
|
12166
12167
|
indexed: true,
|
|
12167
12168
|
},
|
|
12168
12169
|
],
|
|
12169
|
-
name: '
|
|
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',
|
|
12170
|
+
name: 'RedeemMinterDeployed',
|
|
12180
12171
|
},
|
|
12181
|
-
{ type: 'error', inputs: [], name: '
|
|
12172
|
+
{ type: 'error', inputs: [], name: 'CallerNotZoraCreator1155' },
|
|
12182
12173
|
{
|
|
12183
12174
|
type: 'error',
|
|
12184
12175
|
inputs: [
|
|
12185
|
-
{ name: '
|
|
12176
|
+
{ name: 'mintTo', internalType: 'address', type: 'address' },
|
|
12177
|
+
{ name: 'merkleProof', internalType: 'bytes32[]', type: 'bytes32[]' },
|
|
12178
|
+
{ name: 'merkleRoot', internalType: 'bytes32', type: 'bytes32' },
|
|
12186
12179
|
],
|
|
12187
|
-
name: '
|
|
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',
|
|
12180
|
+
name: 'InvalidMerkleProof',
|
|
12216
12181
|
},
|
|
12182
|
+
{ type: 'error', inputs: [], name: 'MinterContractAlreadyExists' },
|
|
12183
|
+
{ type: 'error', inputs: [], name: 'MinterContractDoesNotExist' },
|
|
12184
|
+
{ type: 'error', inputs: [], name: 'SaleEnded' },
|
|
12185
|
+
{ type: 'error', inputs: [], name: 'SaleHasNotStarted' },
|
|
12186
|
+
{ type: 'error', inputs: [], name: 'WrongValueSent' },
|
|
12217
12187
|
] as const
|
|
12218
12188
|
|
|
12219
12189
|
/**
|
|
12220
|
-
* - [__View Contract on
|
|
12221
|
-
* - [__View Contract on
|
|
12190
|
+
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
12191
|
+
* - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
|
|
12192
|
+
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
12193
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
12194
|
+
* - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
12195
|
+
* - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
|
|
12196
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea)
|
|
12197
|
+
* - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
12198
|
+
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
12199
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
12200
|
+
* - [__View Contract on Blast Sepolia Blastscan__](https://sepolia.blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
|
|
12201
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
|
|
12222
12202
|
*/
|
|
12223
|
-
export const
|
|
12224
|
-
|
|
12225
|
-
|
|
12203
|
+
export const zoraCreatorRedeemMinterFactoryAddress = {
|
|
12204
|
+
1: '0x78964965cF77850224513a367f899435C5B69174',
|
|
12205
|
+
10: '0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2',
|
|
12206
|
+
999: '0x78964965cF77850224513a367f899435C5B69174',
|
|
12207
|
+
8453: '0x78964965cF77850224513a367f899435C5B69174',
|
|
12208
|
+
42161: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
|
|
12209
|
+
81457: '0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614',
|
|
12210
|
+
84532: '0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea',
|
|
12211
|
+
421614: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
|
|
12212
|
+
7777777: '0x78964965cF77850224513a367f899435C5B69174',
|
|
12213
|
+
11155111: '0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D',
|
|
12214
|
+
168587773: '0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614',
|
|
12215
|
+
999999999: '0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6',
|
|
12226
12216
|
} as const
|
|
12227
12217
|
|
|
12228
12218
|
/**
|
|
12229
|
-
* - [__View Contract on
|
|
12230
|
-
* - [__View Contract on
|
|
12219
|
+
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
12220
|
+
* - [__View Contract on Op Mainnet Optimism Explorer__](https://optimistic.etherscan.io/address/0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2)
|
|
12221
|
+
* - [__View Contract on Zora Goerli Testnet Explorer__](https://testnet.explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
12222
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
12223
|
+
* - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
12224
|
+
* - [__View Contract on Blast Blastscan__](https://blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
|
|
12225
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea)
|
|
12226
|
+
* - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
12227
|
+
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x78964965cF77850224513a367f899435C5B69174)
|
|
12228
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D)
|
|
12229
|
+
* - [__View Contract on Blast Sepolia Blastscan__](https://sepolia.blastscan.io/address/0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614)
|
|
12230
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6)
|
|
12231
12231
|
*/
|
|
12232
|
-
export const
|
|
12233
|
-
address:
|
|
12234
|
-
abi:
|
|
12232
|
+
export const zoraCreatorRedeemMinterFactoryConfig = {
|
|
12233
|
+
address: zoraCreatorRedeemMinterFactoryAddress,
|
|
12234
|
+
abi: zoraCreatorRedeemMinterFactoryABI,
|
|
12235
12235
|
} as const
|
|
12236
12236
|
|
|
12237
12237
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|