@zoralabs/protocol-deployments 0.6.3 → 0.6.4
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$colon$js.log +24 -24
- package/CHANGELOG.md +6 -0
- package/dist/{ccip-C5WONSSK.js → ccip-3JNBGYOD.js} +2 -2
- package/dist/{chunk-NPNNGXR4.js → chunk-4DQDZNUA.js} +2 -3
- package/dist/encoding.d.ts +0 -55
- package/dist/encoding.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +5635 -6845
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +562 -1135
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +572 -1070
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/encoding.ts +1 -124
- package/src/generated/wagmi.ts +390 -852
- /package/dist/{ccip-C5WONSSK.js.map → ccip-3JNBGYOD.js.map} +0 -0
- /package/dist/{chunk-NPNNGXR4.js.map → chunk-4DQDZNUA.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -187,7 +187,7 @@ var init_base = __esm({
|
|
|
187
187
|
"use strict";
|
|
188
188
|
init_version();
|
|
189
189
|
errorConfig = {
|
|
190
|
-
getDocsUrl: ({ docsBaseUrl, docsPath
|
|
190
|
+
getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
191
191
|
version: `viem@${version}`
|
|
192
192
|
};
|
|
193
193
|
BaseError = class _BaseError extends Error {
|
|
@@ -199,12 +199,12 @@ var init_base = __esm({
|
|
|
199
199
|
return args.cause.message;
|
|
200
200
|
return args.details;
|
|
201
201
|
})();
|
|
202
|
-
const
|
|
202
|
+
const docsPath = (() => {
|
|
203
203
|
if (args.cause instanceof _BaseError)
|
|
204
204
|
return args.cause.docsPath || args.docsPath;
|
|
205
205
|
return args.docsPath;
|
|
206
206
|
})();
|
|
207
|
-
const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath
|
|
207
|
+
const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath });
|
|
208
208
|
const message = [
|
|
209
209
|
shortMessage || "An error occurred.",
|
|
210
210
|
"",
|
|
@@ -251,7 +251,7 @@ var init_base = __esm({
|
|
|
251
251
|
value: "BaseError"
|
|
252
252
|
});
|
|
253
253
|
this.details = details;
|
|
254
|
-
this.docsPath =
|
|
254
|
+
this.docsPath = docsPath;
|
|
255
255
|
this.metaMessages = args.metaMessages;
|
|
256
256
|
this.name = args.name ?? this.name;
|
|
257
257
|
this.shortMessage = shortMessage;
|
|
@@ -265,7 +265,7 @@ var init_base = __esm({
|
|
|
265
265
|
});
|
|
266
266
|
|
|
267
267
|
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/abi.js
|
|
268
|
-
var AbiDecodingDataSizeTooSmallError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingBytesSizeMismatchError, AbiEncodingLengthMismatchError,
|
|
268
|
+
var AbiDecodingDataSizeTooSmallError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingBytesSizeMismatchError, AbiEncodingLengthMismatchError, AbiItemAmbiguityError, InvalidAbiEncodingTypeError, InvalidAbiDecodingTypeError, InvalidArrayError, InvalidDefinitionTypeError;
|
|
269
269
|
var init_abi = __esm({
|
|
270
270
|
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/abi.js"() {
|
|
271
271
|
"use strict";
|
|
@@ -334,17 +334,6 @@ var init_abi = __esm({
|
|
|
334
334
|
].join("\n"), { name: "AbiEncodingLengthMismatchError" });
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
|
-
AbiFunctionNotFoundError = class extends BaseError {
|
|
338
|
-
constructor(functionName, { docsPath: docsPath2 } = {}) {
|
|
339
|
-
super([
|
|
340
|
-
`Function ${functionName ? `"${functionName}" ` : ""}not found on ABI.`,
|
|
341
|
-
"Make sure you are using the correct ABI and that the function exists on it."
|
|
342
|
-
].join("\n"), {
|
|
343
|
-
docsPath: docsPath2,
|
|
344
|
-
name: "AbiFunctionNotFoundError"
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
337
|
AbiItemAmbiguityError = class extends BaseError {
|
|
349
338
|
constructor(x, y) {
|
|
350
339
|
super("Found ambiguous types in overloaded ABI items.", {
|
|
@@ -360,19 +349,19 @@ var init_abi = __esm({
|
|
|
360
349
|
}
|
|
361
350
|
};
|
|
362
351
|
InvalidAbiEncodingTypeError = class extends BaseError {
|
|
363
|
-
constructor(type, { docsPath
|
|
352
|
+
constructor(type, { docsPath }) {
|
|
364
353
|
super([
|
|
365
354
|
`Type "${type}" is not a valid encoding type.`,
|
|
366
355
|
"Please provide a valid ABI type."
|
|
367
|
-
].join("\n"), { docsPath
|
|
356
|
+
].join("\n"), { docsPath, name: "InvalidAbiEncodingType" });
|
|
368
357
|
}
|
|
369
358
|
};
|
|
370
359
|
InvalidAbiDecodingTypeError = class extends BaseError {
|
|
371
|
-
constructor(type, { docsPath
|
|
360
|
+
constructor(type, { docsPath }) {
|
|
372
361
|
super([
|
|
373
362
|
`Type "${type}" is not a valid decoding type.`,
|
|
374
363
|
"Please provide a valid ABI type."
|
|
375
|
-
].join("\n"), { docsPath
|
|
364
|
+
].join("\n"), { docsPath, name: "InvalidAbiDecodingType" });
|
|
376
365
|
}
|
|
377
366
|
};
|
|
378
367
|
InvalidArrayError = class extends BaseError {
|
|
@@ -1686,61 +1675,6 @@ var init_getAbiItem = __esm({
|
|
|
1686
1675
|
}
|
|
1687
1676
|
});
|
|
1688
1677
|
|
|
1689
|
-
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
1690
|
-
function prepareEncodeFunctionData(parameters) {
|
|
1691
|
-
const { abi, args, functionName } = parameters;
|
|
1692
|
-
let abiItem = abi[0];
|
|
1693
|
-
if (functionName) {
|
|
1694
|
-
const item = getAbiItem({
|
|
1695
|
-
abi,
|
|
1696
|
-
args,
|
|
1697
|
-
name: functionName
|
|
1698
|
-
});
|
|
1699
|
-
if (!item)
|
|
1700
|
-
throw new AbiFunctionNotFoundError(functionName, { docsPath });
|
|
1701
|
-
abiItem = item;
|
|
1702
|
-
}
|
|
1703
|
-
if (abiItem.type !== "function")
|
|
1704
|
-
throw new AbiFunctionNotFoundError(void 0, { docsPath });
|
|
1705
|
-
return {
|
|
1706
|
-
abi: [abiItem],
|
|
1707
|
-
functionName: toFunctionSelector(formatAbiItem2(abiItem))
|
|
1708
|
-
};
|
|
1709
|
-
}
|
|
1710
|
-
var docsPath;
|
|
1711
|
-
var init_prepareEncodeFunctionData = __esm({
|
|
1712
|
-
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js"() {
|
|
1713
|
-
"use strict";
|
|
1714
|
-
init_abi();
|
|
1715
|
-
init_toFunctionSelector();
|
|
1716
|
-
init_formatAbiItem2();
|
|
1717
|
-
init_getAbiItem();
|
|
1718
|
-
docsPath = "/docs/contract/encodeFunctionData";
|
|
1719
|
-
}
|
|
1720
|
-
});
|
|
1721
|
-
|
|
1722
|
-
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
1723
|
-
function encodeFunctionData(parameters) {
|
|
1724
|
-
const { args } = parameters;
|
|
1725
|
-
const { abi, functionName } = (() => {
|
|
1726
|
-
if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
|
|
1727
|
-
return parameters;
|
|
1728
|
-
return prepareEncodeFunctionData(parameters);
|
|
1729
|
-
})();
|
|
1730
|
-
const abiItem = abi[0];
|
|
1731
|
-
const signature = functionName;
|
|
1732
|
-
const data = "inputs" in abiItem && abiItem.inputs ? encodeAbiParameters(abiItem.inputs, args ?? []) : void 0;
|
|
1733
|
-
return concatHex([signature, data ?? "0x"]);
|
|
1734
|
-
}
|
|
1735
|
-
var init_encodeFunctionData = __esm({
|
|
1736
|
-
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeFunctionData.js"() {
|
|
1737
|
-
"use strict";
|
|
1738
|
-
init_concat();
|
|
1739
|
-
init_encodeAbiParameters();
|
|
1740
|
-
init_prepareEncodeFunctionData();
|
|
1741
|
-
}
|
|
1742
|
-
});
|
|
1743
|
-
|
|
1744
1678
|
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/cursor.js
|
|
1745
1679
|
var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
|
|
1746
1680
|
var init_cursor = __esm({
|
|
@@ -2226,16 +2160,7 @@ __export(index_exports, {
|
|
|
2226
2160
|
commentsConfig: () => commentsConfig,
|
|
2227
2161
|
contracts1155: () => __exports,
|
|
2228
2162
|
decodeBuySupplyWithSwapRouterHookReturn: () => decodeBuySupplyWithSwapRouterHookReturn,
|
|
2229
|
-
devBuySupplyWithSwapRouterHookABI: () => devBuySupplyWithSwapRouterHookABI,
|
|
2230
|
-
devBuySupplyWithSwapRouterHookAddress: () => devBuySupplyWithSwapRouterHookAddress,
|
|
2231
|
-
devBuySupplyWithSwapRouterHookConfig: () => devBuySupplyWithSwapRouterHookConfig,
|
|
2232
|
-
devCoinFactoryABI: () => devCoinFactoryABI,
|
|
2233
|
-
devCoinFactoryAddress: () => devCoinFactoryAddress,
|
|
2234
|
-
devCoinFactoryConfig: () => devCoinFactoryConfig,
|
|
2235
2163
|
emptyCommentIdentifier: () => emptyCommentIdentifier,
|
|
2236
|
-
encodeBuySupplyWithMultiHopSwapRouterHookCall: () => encodeBuySupplyWithMultiHopSwapRouterHookCall,
|
|
2237
|
-
encodeBuySupplyWithSingleHopSwapRouterHookCall: () => encodeBuySupplyWithSingleHopSwapRouterHookCall,
|
|
2238
|
-
encodeBuySupplyWithSwapRouterHookCalldata: () => encodeBuySupplyWithSwapRouterHookCalldata,
|
|
2239
2164
|
encodeMultiCurvePoolConfig: () => encodeMultiCurvePoolConfig,
|
|
2240
2165
|
encodePremintConfig: () => encodePremintConfig,
|
|
2241
2166
|
erc20MinterABI: () => erc20MinterABI,
|
|
@@ -2449,6 +2374,63 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2449
2374
|
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
2450
2375
|
stateMutability: "payable"
|
|
2451
2376
|
},
|
|
2377
|
+
{
|
|
2378
|
+
type: "function",
|
|
2379
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
2380
|
+
name: "decodeV4RouteData",
|
|
2381
|
+
outputs: [
|
|
2382
|
+
{
|
|
2383
|
+
name: "v4Route",
|
|
2384
|
+
internalType: "struct PoolKey[]",
|
|
2385
|
+
type: "tuple[]",
|
|
2386
|
+
components: [
|
|
2387
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
2388
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
2389
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
2390
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
2391
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
2392
|
+
]
|
|
2393
|
+
},
|
|
2394
|
+
{ name: "startAmount", internalType: "uint256", type: "uint256" }
|
|
2395
|
+
],
|
|
2396
|
+
stateMutability: "pure"
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
type: "function",
|
|
2400
|
+
inputs: [
|
|
2401
|
+
{
|
|
2402
|
+
name: "params",
|
|
2403
|
+
internalType: "struct BuySupplyWithV4SwapHook.InitialSupplyParams",
|
|
2404
|
+
type: "tuple",
|
|
2405
|
+
components: [
|
|
2406
|
+
{ name: "buyRecipient", internalType: "address", type: "address" },
|
|
2407
|
+
{ name: "v3Route", internalType: "bytes", type: "bytes" },
|
|
2408
|
+
{
|
|
2409
|
+
name: "v4Route",
|
|
2410
|
+
internalType: "struct PoolKey[]",
|
|
2411
|
+
type: "tuple[]",
|
|
2412
|
+
components: [
|
|
2413
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
2414
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
2415
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
2416
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
2417
|
+
{
|
|
2418
|
+
name: "hooks",
|
|
2419
|
+
internalType: "contract IHooks",
|
|
2420
|
+
type: "address"
|
|
2421
|
+
}
|
|
2422
|
+
]
|
|
2423
|
+
},
|
|
2424
|
+
{ name: "inputCurrency", internalType: "address", type: "address" },
|
|
2425
|
+
{ name: "inputAmount", internalType: "uint256", type: "uint256" },
|
|
2426
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" }
|
|
2427
|
+
]
|
|
2428
|
+
}
|
|
2429
|
+
],
|
|
2430
|
+
name: "encodeBuySupplyWithV4SwapHookData",
|
|
2431
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
2432
|
+
stateMutability: "pure"
|
|
2433
|
+
},
|
|
2452
2434
|
{
|
|
2453
2435
|
type: "function",
|
|
2454
2436
|
inputs: [],
|
|
@@ -2458,6 +2440,15 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2458
2440
|
],
|
|
2459
2441
|
stateMutability: "view"
|
|
2460
2442
|
},
|
|
2443
|
+
{
|
|
2444
|
+
type: "function",
|
|
2445
|
+
inputs: [],
|
|
2446
|
+
name: "poolManager",
|
|
2447
|
+
outputs: [
|
|
2448
|
+
{ name: "", internalType: "contract IPoolManager", type: "address" }
|
|
2449
|
+
],
|
|
2450
|
+
stateMutability: "view"
|
|
2451
|
+
},
|
|
2461
2452
|
{
|
|
2462
2453
|
type: "function",
|
|
2463
2454
|
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
@@ -2465,6 +2456,15 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2465
2456
|
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
2466
2457
|
stateMutability: "pure"
|
|
2467
2458
|
},
|
|
2459
|
+
{
|
|
2460
|
+
type: "function",
|
|
2461
|
+
inputs: [],
|
|
2462
|
+
name: "swapRouter",
|
|
2463
|
+
outputs: [
|
|
2464
|
+
{ name: "", internalType: "contract ISwapRouter", type: "address" }
|
|
2465
|
+
],
|
|
2466
|
+
stateMutability: "view"
|
|
2467
|
+
},
|
|
2468
2468
|
{
|
|
2469
2469
|
type: "function",
|
|
2470
2470
|
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
@@ -2472,6 +2472,58 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2472
2472
|
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
2473
2473
|
stateMutability: "nonpayable"
|
|
2474
2474
|
},
|
|
2475
|
+
{
|
|
2476
|
+
type: "event",
|
|
2477
|
+
anonymous: false,
|
|
2478
|
+
inputs: [
|
|
2479
|
+
{ name: "coin", internalType: "address", type: "address", indexed: true },
|
|
2480
|
+
{
|
|
2481
|
+
name: "recipient",
|
|
2482
|
+
internalType: "address",
|
|
2483
|
+
type: "address",
|
|
2484
|
+
indexed: true
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
name: "coinsPurchased",
|
|
2488
|
+
internalType: "uint256",
|
|
2489
|
+
type: "uint256",
|
|
2490
|
+
indexed: true
|
|
2491
|
+
},
|
|
2492
|
+
{ name: "v3Route", internalType: "bytes", type: "bytes", indexed: false },
|
|
2493
|
+
{
|
|
2494
|
+
name: "v4Route",
|
|
2495
|
+
internalType: "struct PoolKey[]",
|
|
2496
|
+
type: "tuple[]",
|
|
2497
|
+
components: [
|
|
2498
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
2499
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
2500
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
2501
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
2502
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
2503
|
+
],
|
|
2504
|
+
indexed: false
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
name: "inputCurrency",
|
|
2508
|
+
internalType: "address",
|
|
2509
|
+
type: "address",
|
|
2510
|
+
indexed: false
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
name: "inputAmount",
|
|
2514
|
+
internalType: "uint256",
|
|
2515
|
+
type: "uint256",
|
|
2516
|
+
indexed: false
|
|
2517
|
+
},
|
|
2518
|
+
{
|
|
2519
|
+
name: "v4SwapInput",
|
|
2520
|
+
internalType: "uint256",
|
|
2521
|
+
type: "uint256",
|
|
2522
|
+
indexed: false
|
|
2523
|
+
}
|
|
2524
|
+
],
|
|
2525
|
+
name: "BuyInitialSupply"
|
|
2526
|
+
},
|
|
2475
2527
|
{
|
|
2476
2528
|
type: "error",
|
|
2477
2529
|
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
@@ -2483,20 +2535,17 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2483
2535
|
name: "AddressInsufficientBalance"
|
|
2484
2536
|
},
|
|
2485
2537
|
{ type: "error", inputs: [], name: "AddressZero" },
|
|
2538
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
2539
|
+
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
2486
2540
|
{
|
|
2487
2541
|
type: "error",
|
|
2488
|
-
inputs: [
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
2494
|
-
name: "CurrencyBalanceNot0"
|
|
2542
|
+
inputs: [
|
|
2543
|
+
{ name: "inputAmount", internalType: "uint256", type: "uint256" },
|
|
2544
|
+
{ name: "availableAmount", internalType: "uint256", type: "uint256" }
|
|
2545
|
+
],
|
|
2546
|
+
name: "InsufficientInputCurrency"
|
|
2495
2547
|
},
|
|
2496
|
-
{ type: "error", inputs: [], name: "
|
|
2497
|
-
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
2498
|
-
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
2499
|
-
{ type: "error", inputs: [], name: "InvalidSwapRouterCall" },
|
|
2548
|
+
{ type: "error", inputs: [], name: "InsufficientOutputAmount" },
|
|
2500
2549
|
{ type: "error", inputs: [], name: "NotFactory" },
|
|
2501
2550
|
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
2502
2551
|
{
|
|
@@ -2504,14 +2553,11 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2504
2553
|
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
2505
2554
|
name: "SafeERC20FailedOperation"
|
|
2506
2555
|
},
|
|
2507
|
-
{
|
|
2508
|
-
|
|
2509
|
-
inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
|
|
2510
|
-
name: "SwapReverted"
|
|
2511
|
-
}
|
|
2556
|
+
{ type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
|
|
2557
|
+
{ type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" }
|
|
2512
2558
|
];
|
|
2513
2559
|
var buySupplyWithSwapRouterHookAddress = {
|
|
2514
|
-
8453: "
|
|
2560
|
+
8453: "0xd8CC7bCA1dE52eA788829B16E375e9B96C18D433",
|
|
2515
2561
|
84532: "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE"
|
|
2516
2562
|
};
|
|
2517
2563
|
var buySupplyWithSwapRouterHookConfig = {
|
|
@@ -5233,98 +5279,257 @@ var coinFactoryABI = [
|
|
|
5233
5279
|
name: "UpgradeToMismatchedContractName"
|
|
5234
5280
|
},
|
|
5235
5281
|
{ type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
|
|
5236
|
-
{ type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
|
|
5237
|
-
];
|
|
5238
|
-
var coinFactoryAddress = {
|
|
5239
|
-
8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
5240
|
-
84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
|
|
5241
|
-
};
|
|
5242
|
-
var coinFactoryConfig = {
|
|
5243
|
-
address: coinFactoryAddress,
|
|
5244
|
-
abi: coinFactoryABI
|
|
5245
|
-
};
|
|
5246
|
-
var coinV4ABI = [
|
|
5247
|
-
{
|
|
5248
|
-
type: "constructor",
|
|
5249
|
-
inputs: [
|
|
5250
|
-
{
|
|
5251
|
-
name: "protocolRewardRecipient_",
|
|
5252
|
-
internalType: "address",
|
|
5253
|
-
type: "address"
|
|
5254
|
-
},
|
|
5255
|
-
{ name: "protocolRewards_", internalType: "address", type: "address" },
|
|
5256
|
-
{
|
|
5257
|
-
name: "poolManager_",
|
|
5258
|
-
internalType: "contract IPoolManager",
|
|
5259
|
-
type: "address"
|
|
5260
|
-
},
|
|
5261
|
-
{ name: "airlock_", internalType: "address", type: "address" }
|
|
5262
|
-
],
|
|
5263
|
-
stateMutability: "nonpayable"
|
|
5264
|
-
},
|
|
5282
|
+
{ type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
|
|
5265
5283
|
{
|
|
5266
|
-
type: "
|
|
5267
|
-
inputs: [],
|
|
5268
|
-
name: "
|
|
5269
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
5270
|
-
stateMutability: "view"
|
|
5284
|
+
type: "error",
|
|
5285
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
5286
|
+
name: "AddressEmptyCode"
|
|
5271
5287
|
},
|
|
5272
5288
|
{
|
|
5273
|
-
type: "
|
|
5289
|
+
type: "error",
|
|
5274
5290
|
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
5275
|
-
name: "
|
|
5276
|
-
outputs: [],
|
|
5277
|
-
stateMutability: "nonpayable"
|
|
5291
|
+
name: "AddressInsufficientBalance"
|
|
5278
5292
|
},
|
|
5293
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
5294
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
5295
|
+
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
5279
5296
|
{
|
|
5280
|
-
type: "
|
|
5297
|
+
type: "error",
|
|
5281
5298
|
inputs: [
|
|
5282
|
-
{ name: "
|
|
5299
|
+
{ name: "inputAmount", internalType: "uint256", type: "uint256" },
|
|
5300
|
+
{ name: "availableAmount", internalType: "uint256", type: "uint256" }
|
|
5283
5301
|
],
|
|
5284
|
-
name: "
|
|
5285
|
-
|
|
5286
|
-
|
|
5302
|
+
name: "InsufficientInputCurrency"
|
|
5303
|
+
},
|
|
5304
|
+
{ type: "error", inputs: [], name: "InsufficientOutputAmount" },
|
|
5305
|
+
{ type: "error", inputs: [], name: "NotFactory" },
|
|
5306
|
+
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
5307
|
+
{
|
|
5308
|
+
type: "error",
|
|
5309
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
5310
|
+
name: "SafeERC20FailedOperation"
|
|
5287
5311
|
},
|
|
5312
|
+
{ type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
|
|
5313
|
+
{ type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
|
|
5314
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
5315
|
+
{ type: "error", inputs: [], name: "AlreadyOwner" },
|
|
5316
|
+
{ type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
|
|
5288
5317
|
{
|
|
5289
|
-
type: "
|
|
5318
|
+
type: "error",
|
|
5290
5319
|
inputs: [],
|
|
5291
|
-
name: "
|
|
5292
|
-
|
|
5293
|
-
|
|
5320
|
+
name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
|
|
5321
|
+
},
|
|
5322
|
+
{ type: "error", inputs: [], name: "ECDSAInvalidSignature" },
|
|
5323
|
+
{
|
|
5324
|
+
type: "error",
|
|
5325
|
+
inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
|
|
5326
|
+
name: "ECDSAInvalidSignatureLength"
|
|
5294
5327
|
},
|
|
5295
5328
|
{
|
|
5296
|
-
type: "
|
|
5329
|
+
type: "error",
|
|
5330
|
+
inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
|
|
5331
|
+
name: "ECDSAInvalidSignatureS"
|
|
5332
|
+
},
|
|
5333
|
+
{
|
|
5334
|
+
type: "error",
|
|
5297
5335
|
inputs: [
|
|
5298
|
-
{ name: "
|
|
5299
|
-
{ name: "
|
|
5336
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
5337
|
+
{ name: "allowance", internalType: "uint256", type: "uint256" },
|
|
5338
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
5300
5339
|
],
|
|
5301
|
-
name: "
|
|
5302
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
5303
|
-
stateMutability: "view"
|
|
5340
|
+
name: "ERC20InsufficientAllowance"
|
|
5304
5341
|
},
|
|
5305
5342
|
{
|
|
5306
|
-
type: "
|
|
5343
|
+
type: "error",
|
|
5307
5344
|
inputs: [
|
|
5308
|
-
{ name: "
|
|
5309
|
-
{ name: "
|
|
5345
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
5346
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
5347
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
5310
5348
|
],
|
|
5311
|
-
name: "
|
|
5312
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
5313
|
-
stateMutability: "nonpayable"
|
|
5349
|
+
name: "ERC20InsufficientBalance"
|
|
5314
5350
|
},
|
|
5315
5351
|
{
|
|
5316
|
-
type: "
|
|
5317
|
-
inputs: [{ name: "
|
|
5318
|
-
name: "
|
|
5319
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
5320
|
-
stateMutability: "view"
|
|
5352
|
+
type: "error",
|
|
5353
|
+
inputs: [{ name: "approver", internalType: "address", type: "address" }],
|
|
5354
|
+
name: "ERC20InvalidApprover"
|
|
5321
5355
|
},
|
|
5322
5356
|
{
|
|
5323
|
-
type: "
|
|
5324
|
-
inputs: [{ name: "
|
|
5325
|
-
name: "
|
|
5326
|
-
|
|
5327
|
-
|
|
5357
|
+
type: "error",
|
|
5358
|
+
inputs: [{ name: "receiver", internalType: "address", type: "address" }],
|
|
5359
|
+
name: "ERC20InvalidReceiver"
|
|
5360
|
+
},
|
|
5361
|
+
{
|
|
5362
|
+
type: "error",
|
|
5363
|
+
inputs: [{ name: "sender", internalType: "address", type: "address" }],
|
|
5364
|
+
name: "ERC20InvalidSender"
|
|
5365
|
+
},
|
|
5366
|
+
{
|
|
5367
|
+
type: "error",
|
|
5368
|
+
inputs: [{ name: "spender", internalType: "address", type: "address" }],
|
|
5369
|
+
name: "ERC20InvalidSpender"
|
|
5370
|
+
},
|
|
5371
|
+
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
5372
|
+
{
|
|
5373
|
+
type: "error",
|
|
5374
|
+
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
5375
|
+
name: "ERC2612ExpiredSignature"
|
|
5376
|
+
},
|
|
5377
|
+
{
|
|
5378
|
+
type: "error",
|
|
5379
|
+
inputs: [
|
|
5380
|
+
{ name: "signer", internalType: "address", type: "address" },
|
|
5381
|
+
{ name: "owner", internalType: "address", type: "address" }
|
|
5382
|
+
],
|
|
5383
|
+
name: "ERC2612InvalidSigner"
|
|
5384
|
+
},
|
|
5385
|
+
{ type: "error", inputs: [], name: "EthAmountMismatch" },
|
|
5386
|
+
{ type: "error", inputs: [], name: "EthAmountTooSmall" },
|
|
5387
|
+
{ type: "error", inputs: [], name: "EthTransferFailed" },
|
|
5388
|
+
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
5389
|
+
{ type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
|
|
5390
|
+
{ type: "error", inputs: [], name: "InsufficientFunds" },
|
|
5391
|
+
{ type: "error", inputs: [], name: "InsufficientLiquidity" },
|
|
5392
|
+
{
|
|
5393
|
+
type: "error",
|
|
5394
|
+
inputs: [
|
|
5395
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
5396
|
+
{ name: "currentNonce", internalType: "uint256", type: "uint256" }
|
|
5397
|
+
],
|
|
5398
|
+
name: "InvalidAccountNonce"
|
|
5399
|
+
},
|
|
5400
|
+
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
5401
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
5402
|
+
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
5403
|
+
{ type: "error", inputs: [], name: "InvalidPoolVersion" },
|
|
5404
|
+
{
|
|
5405
|
+
type: "error",
|
|
5406
|
+
inputs: [
|
|
5407
|
+
{ name: "tickLower", internalType: "int24", type: "int24" },
|
|
5408
|
+
{ name: "tickUpper", internalType: "int24", type: "int24" }
|
|
5409
|
+
],
|
|
5410
|
+
name: "InvalidTickRangeMisordered"
|
|
5411
|
+
},
|
|
5412
|
+
{ type: "error", inputs: [], name: "InvalidWethLowerTick" },
|
|
5413
|
+
{ type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
|
|
5414
|
+
{ type: "error", inputs: [], name: "MarketAlreadyGraduated" },
|
|
5415
|
+
{ type: "error", inputs: [], name: "MarketNotGraduated" },
|
|
5416
|
+
{
|
|
5417
|
+
type: "error",
|
|
5418
|
+
inputs: [
|
|
5419
|
+
{ name: "value", internalType: "uint256", type: "uint256" },
|
|
5420
|
+
{ name: "limit", internalType: "uint256", type: "uint256" }
|
|
5421
|
+
],
|
|
5422
|
+
name: "MaxShareToBeSoldExceeded"
|
|
5423
|
+
},
|
|
5424
|
+
{ type: "error", inputs: [], name: "NameIsRequired" },
|
|
5425
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
5426
|
+
{ type: "error", inputs: [], name: "NotOwner" },
|
|
5427
|
+
{ type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
|
|
5428
|
+
{ type: "error", inputs: [], name: "OneOwnerRequired" },
|
|
5429
|
+
{ type: "error", inputs: [], name: "OnlyOwner" },
|
|
5430
|
+
{
|
|
5431
|
+
type: "error",
|
|
5432
|
+
inputs: [
|
|
5433
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
5434
|
+
{ name: "pool", internalType: "address", type: "address" }
|
|
5435
|
+
],
|
|
5436
|
+
name: "OnlyPool"
|
|
5437
|
+
},
|
|
5438
|
+
{ type: "error", inputs: [], name: "OnlyWeth" },
|
|
5439
|
+
{ type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
|
|
5440
|
+
{ type: "error", inputs: [], name: "SlippageBoundsExceeded" },
|
|
5441
|
+
{ type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
|
|
5442
|
+
];
|
|
5443
|
+
var coinFactoryAddress = {
|
|
5444
|
+
8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
5445
|
+
84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
|
|
5446
|
+
};
|
|
5447
|
+
var coinFactoryConfig = {
|
|
5448
|
+
address: coinFactoryAddress,
|
|
5449
|
+
abi: coinFactoryABI
|
|
5450
|
+
};
|
|
5451
|
+
var coinV4ABI = [
|
|
5452
|
+
{
|
|
5453
|
+
type: "constructor",
|
|
5454
|
+
inputs: [
|
|
5455
|
+
{
|
|
5456
|
+
name: "protocolRewardRecipient_",
|
|
5457
|
+
internalType: "address",
|
|
5458
|
+
type: "address"
|
|
5459
|
+
},
|
|
5460
|
+
{ name: "protocolRewards_", internalType: "address", type: "address" },
|
|
5461
|
+
{
|
|
5462
|
+
name: "poolManager_",
|
|
5463
|
+
internalType: "contract IPoolManager",
|
|
5464
|
+
type: "address"
|
|
5465
|
+
},
|
|
5466
|
+
{ name: "airlock_", internalType: "address", type: "address" }
|
|
5467
|
+
],
|
|
5468
|
+
stateMutability: "nonpayable"
|
|
5469
|
+
},
|
|
5470
|
+
{
|
|
5471
|
+
type: "function",
|
|
5472
|
+
inputs: [],
|
|
5473
|
+
name: "DOMAIN_SEPARATOR",
|
|
5474
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
5475
|
+
stateMutability: "view"
|
|
5476
|
+
},
|
|
5477
|
+
{
|
|
5478
|
+
type: "function",
|
|
5479
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
5480
|
+
name: "addOwner",
|
|
5481
|
+
outputs: [],
|
|
5482
|
+
stateMutability: "nonpayable"
|
|
5483
|
+
},
|
|
5484
|
+
{
|
|
5485
|
+
type: "function",
|
|
5486
|
+
inputs: [
|
|
5487
|
+
{ name: "accounts", internalType: "address[]", type: "address[]" }
|
|
5488
|
+
],
|
|
5489
|
+
name: "addOwners",
|
|
5490
|
+
outputs: [],
|
|
5491
|
+
stateMutability: "nonpayable"
|
|
5492
|
+
},
|
|
5493
|
+
{
|
|
5494
|
+
type: "function",
|
|
5495
|
+
inputs: [],
|
|
5496
|
+
name: "airlock",
|
|
5497
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
5498
|
+
stateMutability: "view"
|
|
5499
|
+
},
|
|
5500
|
+
{
|
|
5501
|
+
type: "function",
|
|
5502
|
+
inputs: [
|
|
5503
|
+
{ name: "owner", internalType: "address", type: "address" },
|
|
5504
|
+
{ name: "spender", internalType: "address", type: "address" }
|
|
5505
|
+
],
|
|
5506
|
+
name: "allowance",
|
|
5507
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
5508
|
+
stateMutability: "view"
|
|
5509
|
+
},
|
|
5510
|
+
{
|
|
5511
|
+
type: "function",
|
|
5512
|
+
inputs: [
|
|
5513
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
5514
|
+
{ name: "value", internalType: "uint256", type: "uint256" }
|
|
5515
|
+
],
|
|
5516
|
+
name: "approve",
|
|
5517
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
5518
|
+
stateMutability: "nonpayable"
|
|
5519
|
+
},
|
|
5520
|
+
{
|
|
5521
|
+
type: "function",
|
|
5522
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
5523
|
+
name: "balanceOf",
|
|
5524
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
5525
|
+
stateMutability: "view"
|
|
5526
|
+
},
|
|
5527
|
+
{
|
|
5528
|
+
type: "function",
|
|
5529
|
+
inputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
|
|
5530
|
+
name: "burn",
|
|
5531
|
+
outputs: [],
|
|
5532
|
+
stateMutability: "nonpayable"
|
|
5328
5533
|
},
|
|
5329
5534
|
{
|
|
5330
5535
|
type: "function",
|
|
@@ -7878,884 +8083,56 @@ var commentsABI = [
|
|
|
7878
8083
|
{
|
|
7879
8084
|
name: "commentIdentifier",
|
|
7880
8085
|
internalType: "struct IComments.CommentIdentifier",
|
|
7881
|
-
type: "tuple",
|
|
7882
|
-
components: [
|
|
7883
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
7884
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
7885
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
7886
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
7887
|
-
],
|
|
7888
|
-
indexed: false
|
|
7889
|
-
},
|
|
7890
|
-
{
|
|
7891
|
-
name: "replyToId",
|
|
7892
|
-
internalType: "bytes32",
|
|
7893
|
-
type: "bytes32",
|
|
7894
|
-
indexed: false
|
|
7895
|
-
},
|
|
7896
|
-
{
|
|
7897
|
-
name: "replyTo",
|
|
7898
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
7899
|
-
type: "tuple",
|
|
7900
|
-
components: [
|
|
7901
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
7902
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
7903
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
7904
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
7905
|
-
],
|
|
7906
|
-
indexed: false
|
|
7907
|
-
},
|
|
7908
|
-
{
|
|
7909
|
-
name: "sparksQuantity",
|
|
7910
|
-
internalType: "uint256",
|
|
7911
|
-
type: "uint256",
|
|
7912
|
-
indexed: false
|
|
7913
|
-
},
|
|
7914
|
-
{ name: "text", internalType: "string", type: "string", indexed: false },
|
|
7915
|
-
{
|
|
7916
|
-
name: "timestamp",
|
|
7917
|
-
internalType: "uint256",
|
|
7918
|
-
type: "uint256",
|
|
7919
|
-
indexed: false
|
|
7920
|
-
},
|
|
7921
|
-
{
|
|
7922
|
-
name: "referrer",
|
|
7923
|
-
internalType: "address",
|
|
7924
|
-
type: "address",
|
|
7925
|
-
indexed: false
|
|
7926
|
-
}
|
|
7927
|
-
],
|
|
7928
|
-
name: "Commented"
|
|
7929
|
-
},
|
|
7930
|
-
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
7931
|
-
{
|
|
7932
|
-
type: "event",
|
|
7933
|
-
anonymous: false,
|
|
7934
|
-
inputs: [
|
|
7935
|
-
{
|
|
7936
|
-
name: "version",
|
|
7937
|
-
internalType: "uint64",
|
|
7938
|
-
type: "uint64",
|
|
7939
|
-
indexed: false
|
|
7940
|
-
}
|
|
7941
|
-
],
|
|
7942
|
-
name: "Initialized"
|
|
7943
|
-
},
|
|
7944
|
-
{
|
|
7945
|
-
type: "event",
|
|
7946
|
-
anonymous: false,
|
|
7947
|
-
inputs: [
|
|
7948
|
-
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
7949
|
-
{
|
|
7950
|
-
name: "previousAdminRole",
|
|
7951
|
-
internalType: "bytes32",
|
|
7952
|
-
type: "bytes32",
|
|
7953
|
-
indexed: true
|
|
7954
|
-
},
|
|
7955
|
-
{
|
|
7956
|
-
name: "newAdminRole",
|
|
7957
|
-
internalType: "bytes32",
|
|
7958
|
-
type: "bytes32",
|
|
7959
|
-
indexed: true
|
|
7960
|
-
}
|
|
7961
|
-
],
|
|
7962
|
-
name: "RoleAdminChanged"
|
|
7963
|
-
},
|
|
7964
|
-
{
|
|
7965
|
-
type: "event",
|
|
7966
|
-
anonymous: false,
|
|
7967
|
-
inputs: [
|
|
7968
|
-
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
7969
|
-
{
|
|
7970
|
-
name: "account",
|
|
7971
|
-
internalType: "address",
|
|
7972
|
-
type: "address",
|
|
7973
|
-
indexed: true
|
|
7974
|
-
},
|
|
7975
|
-
{
|
|
7976
|
-
name: "sender",
|
|
7977
|
-
internalType: "address",
|
|
7978
|
-
type: "address",
|
|
7979
|
-
indexed: true
|
|
7980
|
-
}
|
|
7981
|
-
],
|
|
7982
|
-
name: "RoleGranted"
|
|
7983
|
-
},
|
|
7984
|
-
{
|
|
7985
|
-
type: "event",
|
|
7986
|
-
anonymous: false,
|
|
7987
|
-
inputs: [
|
|
7988
|
-
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
7989
|
-
{
|
|
7990
|
-
name: "account",
|
|
7991
|
-
internalType: "address",
|
|
7992
|
-
type: "address",
|
|
7993
|
-
indexed: true
|
|
7994
|
-
},
|
|
7995
|
-
{
|
|
7996
|
-
name: "sender",
|
|
7997
|
-
internalType: "address",
|
|
7998
|
-
type: "address",
|
|
7999
|
-
indexed: true
|
|
8000
|
-
}
|
|
8001
|
-
],
|
|
8002
|
-
name: "RoleRevoked"
|
|
8003
|
-
},
|
|
8004
|
-
{
|
|
8005
|
-
type: "event",
|
|
8006
|
-
anonymous: false,
|
|
8007
|
-
inputs: [
|
|
8008
|
-
{
|
|
8009
|
-
name: "commentId",
|
|
8010
|
-
internalType: "bytes32",
|
|
8011
|
-
type: "bytes32",
|
|
8012
|
-
indexed: true
|
|
8013
|
-
},
|
|
8014
|
-
{
|
|
8015
|
-
name: "commentIdentifier",
|
|
8016
|
-
internalType: "struct IComments.CommentIdentifier",
|
|
8017
|
-
type: "tuple",
|
|
8018
|
-
components: [
|
|
8019
|
-
{ name: "commenter", internalType: "address", type: "address" },
|
|
8020
|
-
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
8021
|
-
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
8022
|
-
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
8023
|
-
],
|
|
8024
|
-
indexed: false
|
|
8025
|
-
},
|
|
8026
|
-
{
|
|
8027
|
-
name: "sparksQuantity",
|
|
8028
|
-
internalType: "uint256",
|
|
8029
|
-
type: "uint256",
|
|
8030
|
-
indexed: false
|
|
8031
|
-
},
|
|
8032
|
-
{
|
|
8033
|
-
name: "sparker",
|
|
8034
|
-
internalType: "address",
|
|
8035
|
-
type: "address",
|
|
8036
|
-
indexed: false
|
|
8037
|
-
},
|
|
8038
|
-
{
|
|
8039
|
-
name: "timestamp",
|
|
8040
|
-
internalType: "uint256",
|
|
8041
|
-
type: "uint256",
|
|
8042
|
-
indexed: false
|
|
8043
|
-
},
|
|
8044
|
-
{
|
|
8045
|
-
name: "referrer",
|
|
8046
|
-
internalType: "address",
|
|
8047
|
-
type: "address",
|
|
8048
|
-
indexed: false
|
|
8049
|
-
}
|
|
8050
|
-
],
|
|
8051
|
-
name: "SparkedComment"
|
|
8052
|
-
},
|
|
8053
|
-
{
|
|
8054
|
-
type: "event",
|
|
8055
|
-
anonymous: false,
|
|
8056
|
-
inputs: [
|
|
8057
|
-
{
|
|
8058
|
-
name: "implementation",
|
|
8059
|
-
internalType: "address",
|
|
8060
|
-
type: "address",
|
|
8061
|
-
indexed: true
|
|
8062
|
-
}
|
|
8063
|
-
],
|
|
8064
|
-
name: "Upgraded"
|
|
8065
|
-
},
|
|
8066
|
-
{ type: "error", inputs: [], name: "AccessControlBadConfirmation" },
|
|
8067
|
-
{
|
|
8068
|
-
type: "error",
|
|
8069
|
-
inputs: [
|
|
8070
|
-
{ name: "account", internalType: "address", type: "address" },
|
|
8071
|
-
{ name: "neededRole", internalType: "bytes32", type: "bytes32" }
|
|
8072
|
-
],
|
|
8073
|
-
name: "AccessControlUnauthorizedAccount"
|
|
8074
|
-
},
|
|
8075
|
-
{
|
|
8076
|
-
type: "error",
|
|
8077
|
-
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
8078
|
-
name: "AddressEmptyCode"
|
|
8079
|
-
},
|
|
8080
|
-
{ type: "error", inputs: [], name: "AddressZero" },
|
|
8081
|
-
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
8082
|
-
{ type: "error", inputs: [], name: "CannotSparkOwnComment" },
|
|
8083
|
-
{
|
|
8084
|
-
type: "error",
|
|
8085
|
-
inputs: [
|
|
8086
|
-
{ name: "commentAddress", internalType: "address", type: "address" },
|
|
8087
|
-
{ name: "commentTokenId", internalType: "uint256", type: "uint256" },
|
|
8088
|
-
{ name: "replyAddress", internalType: "address", type: "address" },
|
|
8089
|
-
{ name: "replyTokenId", internalType: "uint256", type: "uint256" }
|
|
8090
|
-
],
|
|
8091
|
-
name: "CommentAddressOrTokenIdsDoNotMatch"
|
|
8092
|
-
},
|
|
8093
|
-
{ type: "error", inputs: [], name: "CommentDoesntExist" },
|
|
8094
|
-
{
|
|
8095
|
-
type: "error",
|
|
8096
|
-
inputs: [
|
|
8097
|
-
{ name: "expected", internalType: "address", type: "address" },
|
|
8098
|
-
{ name: "actual", internalType: "address", type: "address" }
|
|
8099
|
-
],
|
|
8100
|
-
name: "CommenterMismatch"
|
|
8101
|
-
},
|
|
8102
|
-
{
|
|
8103
|
-
type: "error",
|
|
8104
|
-
inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
|
|
8105
|
-
name: "DuplicateComment"
|
|
8106
|
-
},
|
|
8107
|
-
{
|
|
8108
|
-
type: "error",
|
|
8109
|
-
inputs: [
|
|
8110
|
-
{ name: "implementation", internalType: "address", type: "address" }
|
|
8111
|
-
],
|
|
8112
|
-
name: "ERC1967InvalidImplementation"
|
|
8113
|
-
},
|
|
8114
|
-
{ type: "error", inputs: [], name: "ERC1967NonPayable" },
|
|
8115
|
-
{
|
|
8116
|
-
type: "error",
|
|
8117
|
-
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
8118
|
-
name: "ERC2612ExpiredSignature"
|
|
8119
|
-
},
|
|
8120
|
-
{ type: "error", inputs: [], name: "EmptyComment" },
|
|
8121
|
-
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
8122
|
-
{
|
|
8123
|
-
type: "error",
|
|
8124
|
-
inputs: [
|
|
8125
|
-
{
|
|
8126
|
-
name: "wrongDestinationChainId",
|
|
8127
|
-
internalType: "uint256",
|
|
8128
|
-
type: "uint256"
|
|
8129
|
-
}
|
|
8130
|
-
],
|
|
8131
|
-
name: "IncorrectDestinationChain"
|
|
8132
|
-
},
|
|
8133
|
-
{
|
|
8134
|
-
type: "error",
|
|
8135
|
-
inputs: [
|
|
8136
|
-
{ name: "actual", internalType: "uint256", type: "uint256" },
|
|
8137
|
-
{ name: "expected", internalType: "uint256", type: "uint256" }
|
|
8138
|
-
],
|
|
8139
|
-
name: "IncorrectETHAmountForSparks"
|
|
8140
|
-
},
|
|
8141
|
-
{
|
|
8142
|
-
type: "error",
|
|
8143
|
-
inputs: [
|
|
8144
|
-
{ name: "account", internalType: "address", type: "address" },
|
|
8145
|
-
{ name: "currentNonce", internalType: "bytes32", type: "bytes32" }
|
|
8146
|
-
],
|
|
8147
|
-
name: "InvalidAccountNonce"
|
|
8148
|
-
},
|
|
8149
|
-
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
8150
|
-
{ type: "error", inputs: [], name: "InvalidSignature" },
|
|
8151
|
-
{ type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
|
|
8152
|
-
{ type: "error", inputs: [], name: "NoFundsRecipient" },
|
|
8153
|
-
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
8154
|
-
{ type: "error", inputs: [], name: "NotSmartWallet" },
|
|
8155
|
-
{ type: "error", inputs: [], name: "NotSmartWalletOwner" },
|
|
8156
|
-
{ type: "error", inputs: [], name: "OnlySparksContract" },
|
|
8157
|
-
{ type: "error", inputs: [], name: "TransferFailed" },
|
|
8158
|
-
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
8159
|
-
{
|
|
8160
|
-
type: "error",
|
|
8161
|
-
inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
|
|
8162
|
-
name: "UUPSUnsupportedProxiableUUID"
|
|
8163
|
-
},
|
|
8164
|
-
{
|
|
8165
|
-
type: "error",
|
|
8166
|
-
inputs: [
|
|
8167
|
-
{ name: "currentName", internalType: "string", type: "string" },
|
|
8168
|
-
{ name: "newName", internalType: "string", type: "string" }
|
|
8169
|
-
],
|
|
8170
|
-
name: "UpgradeToMismatchedContractName"
|
|
8171
|
-
}
|
|
8172
|
-
];
|
|
8173
|
-
var commentsAddress = {
|
|
8174
|
-
1: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8175
|
-
10: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8176
|
-
8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8177
|
-
42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8178
|
-
81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8179
|
-
84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8180
|
-
7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8181
|
-
11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8182
|
-
11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8183
|
-
999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
|
|
8184
|
-
};
|
|
8185
|
-
var commentsConfig = {
|
|
8186
|
-
address: commentsAddress,
|
|
8187
|
-
abi: commentsABI
|
|
8188
|
-
};
|
|
8189
|
-
var devBuySupplyWithSwapRouterHookABI = [
|
|
8190
|
-
{
|
|
8191
|
-
type: "constructor",
|
|
8192
|
-
inputs: [
|
|
8193
|
-
{
|
|
8194
|
-
name: "_factory",
|
|
8195
|
-
internalType: "contract IZoraFactory",
|
|
8196
|
-
type: "address"
|
|
8197
|
-
},
|
|
8198
|
-
{ name: "_swapRouter", internalType: "address", type: "address" },
|
|
8199
|
-
{ name: "_poolManager", internalType: "address", type: "address" }
|
|
8200
|
-
],
|
|
8201
|
-
stateMutability: "nonpayable"
|
|
8202
|
-
},
|
|
8203
|
-
{
|
|
8204
|
-
type: "function",
|
|
8205
|
-
inputs: [
|
|
8206
|
-
{ name: "sender", internalType: "address", type: "address" },
|
|
8207
|
-
{ name: "coin", internalType: "contract ICoin", type: "address" },
|
|
8208
|
-
{ name: "hookData", internalType: "bytes", type: "bytes" }
|
|
8209
|
-
],
|
|
8210
|
-
name: "afterCoinDeploy",
|
|
8211
|
-
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
8212
|
-
stateMutability: "payable"
|
|
8213
|
-
},
|
|
8214
|
-
{
|
|
8215
|
-
type: "function",
|
|
8216
|
-
inputs: [],
|
|
8217
|
-
name: "factory",
|
|
8218
|
-
outputs: [
|
|
8219
|
-
{ name: "", internalType: "contract IZoraFactory", type: "address" }
|
|
8220
|
-
],
|
|
8221
|
-
stateMutability: "view"
|
|
8222
|
-
},
|
|
8223
|
-
{
|
|
8224
|
-
type: "function",
|
|
8225
|
-
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
8226
|
-
name: "supportsInterface",
|
|
8227
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
8228
|
-
stateMutability: "pure"
|
|
8229
|
-
},
|
|
8230
|
-
{
|
|
8231
|
-
type: "function",
|
|
8232
|
-
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
8233
|
-
name: "unlockCallback",
|
|
8234
|
-
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
8235
|
-
stateMutability: "nonpayable"
|
|
8236
|
-
},
|
|
8237
|
-
{
|
|
8238
|
-
type: "error",
|
|
8239
|
-
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
8240
|
-
name: "AddressEmptyCode"
|
|
8241
|
-
},
|
|
8242
|
-
{
|
|
8243
|
-
type: "error",
|
|
8244
|
-
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
8245
|
-
name: "AddressInsufficientBalance"
|
|
8246
|
-
},
|
|
8247
|
-
{ type: "error", inputs: [], name: "AddressZero" },
|
|
8248
|
-
{
|
|
8249
|
-
type: "error",
|
|
8250
|
-
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
8251
|
-
name: "CoinBalanceNot0"
|
|
8252
|
-
},
|
|
8253
|
-
{
|
|
8254
|
-
type: "error",
|
|
8255
|
-
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
8256
|
-
name: "CurrencyBalanceNot0"
|
|
8257
|
-
},
|
|
8258
|
-
{ type: "error", inputs: [], name: "Erc20NotReceived" },
|
|
8259
|
-
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
8260
|
-
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
8261
|
-
{ type: "error", inputs: [], name: "InvalidSwapRouterCall" },
|
|
8262
|
-
{ type: "error", inputs: [], name: "NotFactory" },
|
|
8263
|
-
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
8264
|
-
{
|
|
8265
|
-
type: "error",
|
|
8266
|
-
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
8267
|
-
name: "SafeERC20FailedOperation"
|
|
8268
|
-
},
|
|
8269
|
-
{
|
|
8270
|
-
type: "error",
|
|
8271
|
-
inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
|
|
8272
|
-
name: "SwapReverted"
|
|
8273
|
-
}
|
|
8274
|
-
];
|
|
8275
|
-
var devBuySupplyWithSwapRouterHookAddress = {
|
|
8276
|
-
8453: "0x62B95629F965bf48E15BB110A1729B9b9dF1C07D"
|
|
8277
|
-
};
|
|
8278
|
-
var devBuySupplyWithSwapRouterHookConfig = {
|
|
8279
|
-
address: devBuySupplyWithSwapRouterHookAddress,
|
|
8280
|
-
abi: devBuySupplyWithSwapRouterHookABI
|
|
8281
|
-
};
|
|
8282
|
-
var devCoinFactoryABI = [
|
|
8283
|
-
{
|
|
8284
|
-
type: "constructor",
|
|
8285
|
-
inputs: [
|
|
8286
|
-
{ name: "coinV4Impl_", internalType: "address", type: "address" },
|
|
8287
|
-
{ name: "creatorCoinImpl_", internalType: "address", type: "address" },
|
|
8288
|
-
{ name: "hook_", internalType: "address", type: "address" },
|
|
8289
|
-
{ name: "zoraHookRegistry_", internalType: "address", type: "address" }
|
|
8290
|
-
],
|
|
8291
|
-
stateMutability: "nonpayable"
|
|
8292
|
-
},
|
|
8293
|
-
{
|
|
8294
|
-
type: "function",
|
|
8295
|
-
inputs: [],
|
|
8296
|
-
name: "UPGRADE_INTERFACE_VERSION",
|
|
8297
|
-
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
8298
|
-
stateMutability: "view"
|
|
8299
|
-
},
|
|
8300
|
-
{
|
|
8301
|
-
type: "function",
|
|
8302
|
-
inputs: [],
|
|
8303
|
-
name: "acceptOwnership",
|
|
8304
|
-
outputs: [],
|
|
8305
|
-
stateMutability: "nonpayable"
|
|
8306
|
-
},
|
|
8307
|
-
{
|
|
8308
|
-
type: "function",
|
|
8309
|
-
inputs: [
|
|
8310
|
-
{ name: "msgSender", internalType: "address", type: "address" },
|
|
8311
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
8312
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
8313
|
-
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
8314
|
-
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
8315
|
-
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
8316
|
-
],
|
|
8317
|
-
name: "coinAddress",
|
|
8318
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8319
|
-
stateMutability: "view"
|
|
8320
|
-
},
|
|
8321
|
-
{
|
|
8322
|
-
type: "function",
|
|
8323
|
-
inputs: [],
|
|
8324
|
-
name: "coinV4Impl",
|
|
8325
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8326
|
-
stateMutability: "view"
|
|
8327
|
-
},
|
|
8328
|
-
{
|
|
8329
|
-
type: "function",
|
|
8330
|
-
inputs: [],
|
|
8331
|
-
name: "contentCoinHook",
|
|
8332
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8333
|
-
stateMutability: "view"
|
|
8334
|
-
},
|
|
8335
|
-
{
|
|
8336
|
-
type: "function",
|
|
8337
|
-
inputs: [],
|
|
8338
|
-
name: "contractName",
|
|
8339
|
-
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
8340
|
-
stateMutability: "pure"
|
|
8341
|
-
},
|
|
8342
|
-
{
|
|
8343
|
-
type: "function",
|
|
8344
|
-
inputs: [],
|
|
8345
|
-
name: "contractVersion",
|
|
8346
|
-
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
8347
|
-
stateMutability: "pure"
|
|
8348
|
-
},
|
|
8349
|
-
{
|
|
8350
|
-
type: "function",
|
|
8351
|
-
inputs: [],
|
|
8352
|
-
name: "creatorCoinHook",
|
|
8353
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8354
|
-
stateMutability: "view"
|
|
8355
|
-
},
|
|
8356
|
-
{
|
|
8357
|
-
type: "function",
|
|
8358
|
-
inputs: [],
|
|
8359
|
-
name: "creatorCoinImpl",
|
|
8360
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8361
|
-
stateMutability: "view"
|
|
8362
|
-
},
|
|
8363
|
-
{
|
|
8364
|
-
type: "function",
|
|
8365
|
-
inputs: [
|
|
8366
|
-
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
8367
|
-
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
8368
|
-
{ name: "uri", internalType: "string", type: "string" },
|
|
8369
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
8370
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
8371
|
-
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
8372
|
-
{ name: "currency", internalType: "address", type: "address" },
|
|
8373
|
-
{ name: "", internalType: "int24", type: "int24" },
|
|
8374
|
-
{ name: "", internalType: "uint256", type: "uint256" }
|
|
8375
|
-
],
|
|
8376
|
-
name: "deploy",
|
|
8377
|
-
outputs: [
|
|
8378
|
-
{ name: "", internalType: "address", type: "address" },
|
|
8379
|
-
{ name: "", internalType: "uint256", type: "uint256" }
|
|
8380
|
-
],
|
|
8381
|
-
stateMutability: "payable"
|
|
8382
|
-
},
|
|
8383
|
-
{
|
|
8384
|
-
type: "function",
|
|
8385
|
-
inputs: [
|
|
8386
|
-
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
8387
|
-
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
8388
|
-
{ name: "uri", internalType: "string", type: "string" },
|
|
8389
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
8390
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
8391
|
-
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
8392
|
-
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
8393
|
-
{ name: "postDeployHook", internalType: "address", type: "address" },
|
|
8394
|
-
{ name: "postDeployHookData", internalType: "bytes", type: "bytes" },
|
|
8395
|
-
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
8396
|
-
],
|
|
8397
|
-
name: "deploy",
|
|
8398
|
-
outputs: [
|
|
8399
|
-
{ name: "coin", internalType: "address", type: "address" },
|
|
8400
|
-
{ name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
|
|
8401
|
-
],
|
|
8402
|
-
stateMutability: "payable"
|
|
8403
|
-
},
|
|
8404
|
-
{
|
|
8405
|
-
type: "function",
|
|
8406
|
-
inputs: [
|
|
8407
|
-
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
8408
|
-
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
8409
|
-
{ name: "uri", internalType: "string", type: "string" },
|
|
8410
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
8411
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
8412
|
-
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
8413
|
-
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
8414
|
-
{ name: "", internalType: "uint256", type: "uint256" }
|
|
8415
|
-
],
|
|
8416
|
-
name: "deploy",
|
|
8417
|
-
outputs: [
|
|
8418
|
-
{ name: "", internalType: "address", type: "address" },
|
|
8419
|
-
{ name: "", internalType: "uint256", type: "uint256" }
|
|
8420
|
-
],
|
|
8421
|
-
stateMutability: "payable"
|
|
8422
|
-
},
|
|
8423
|
-
{
|
|
8424
|
-
type: "function",
|
|
8425
|
-
inputs: [
|
|
8426
|
-
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
8427
|
-
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
8428
|
-
{ name: "uri", internalType: "string", type: "string" },
|
|
8429
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
8430
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
8431
|
-
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
8432
|
-
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
8433
|
-
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
8434
|
-
],
|
|
8435
|
-
name: "deployCreatorCoin",
|
|
8436
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8437
|
-
stateMutability: "nonpayable"
|
|
8438
|
-
},
|
|
8439
|
-
{
|
|
8440
|
-
type: "function",
|
|
8441
|
-
inputs: [
|
|
8442
|
-
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
8443
|
-
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
8444
|
-
{ name: "uri", internalType: "string", type: "string" },
|
|
8445
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
8446
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
8447
|
-
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
8448
|
-
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
8449
|
-
{ name: "postDeployHook", internalType: "address", type: "address" },
|
|
8450
|
-
{ name: "postDeployHookData", internalType: "bytes", type: "bytes" },
|
|
8451
|
-
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
8452
|
-
],
|
|
8453
|
-
name: "deployCreatorCoin",
|
|
8454
|
-
outputs: [
|
|
8455
|
-
{ name: "coin", internalType: "address", type: "address" },
|
|
8456
|
-
{ name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
|
|
8457
|
-
],
|
|
8458
|
-
stateMutability: "payable"
|
|
8459
|
-
},
|
|
8460
|
-
{
|
|
8461
|
-
type: "function",
|
|
8462
|
-
inputs: [
|
|
8463
|
-
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
8464
|
-
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
8465
|
-
{ name: "uri", internalType: "string", type: "string" },
|
|
8466
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
8467
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
8468
|
-
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
8469
|
-
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
8470
|
-
{ name: "deployHook", internalType: "address", type: "address" },
|
|
8471
|
-
{ name: "hookData", internalType: "bytes", type: "bytes" }
|
|
8472
|
-
],
|
|
8473
|
-
name: "deployWithHook",
|
|
8474
|
-
outputs: [
|
|
8475
|
-
{ name: "coin", internalType: "address", type: "address" },
|
|
8476
|
-
{ name: "hookDataOut", internalType: "bytes", type: "bytes" }
|
|
8477
|
-
],
|
|
8478
|
-
stateMutability: "payable"
|
|
8479
|
-
},
|
|
8480
|
-
{
|
|
8481
|
-
type: "function",
|
|
8482
|
-
inputs: [{ name: "coin", internalType: "address", type: "address" }],
|
|
8483
|
-
name: "getVersionForDeployedCoin",
|
|
8484
|
-
outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
|
|
8485
|
-
stateMutability: "view"
|
|
8486
|
-
},
|
|
8487
|
-
{
|
|
8488
|
-
type: "function",
|
|
8489
|
-
inputs: [],
|
|
8490
|
-
name: "hook",
|
|
8491
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8492
|
-
stateMutability: "view"
|
|
8493
|
-
},
|
|
8494
|
-
{
|
|
8495
|
-
type: "function",
|
|
8496
|
-
inputs: [],
|
|
8497
|
-
name: "implementation",
|
|
8498
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8499
|
-
stateMutability: "view"
|
|
8500
|
-
},
|
|
8501
|
-
{
|
|
8502
|
-
type: "function",
|
|
8503
|
-
inputs: [
|
|
8504
|
-
{ name: "initialOwner", internalType: "address", type: "address" }
|
|
8505
|
-
],
|
|
8506
|
-
name: "initialize",
|
|
8507
|
-
outputs: [],
|
|
8508
|
-
stateMutability: "nonpayable"
|
|
8509
|
-
},
|
|
8510
|
-
{
|
|
8511
|
-
type: "function",
|
|
8512
|
-
inputs: [],
|
|
8513
|
-
name: "owner",
|
|
8514
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8515
|
-
stateMutability: "view"
|
|
8516
|
-
},
|
|
8517
|
-
{
|
|
8518
|
-
type: "function",
|
|
8519
|
-
inputs: [],
|
|
8520
|
-
name: "pendingOwner",
|
|
8521
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8522
|
-
stateMutability: "view"
|
|
8523
|
-
},
|
|
8524
|
-
{
|
|
8525
|
-
type: "function",
|
|
8526
|
-
inputs: [],
|
|
8527
|
-
name: "proxiableUUID",
|
|
8528
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
8529
|
-
stateMutability: "view"
|
|
8530
|
-
},
|
|
8531
|
-
{
|
|
8532
|
-
type: "function",
|
|
8533
|
-
inputs: [],
|
|
8534
|
-
name: "renounceOwnership",
|
|
8535
|
-
outputs: [],
|
|
8536
|
-
stateMutability: "nonpayable"
|
|
8537
|
-
},
|
|
8538
|
-
{
|
|
8539
|
-
type: "function",
|
|
8540
|
-
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
8541
|
-
name: "transferOwnership",
|
|
8542
|
-
outputs: [],
|
|
8543
|
-
stateMutability: "nonpayable"
|
|
8544
|
-
},
|
|
8545
|
-
{
|
|
8546
|
-
type: "function",
|
|
8547
|
-
inputs: [
|
|
8548
|
-
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
8549
|
-
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
8550
|
-
],
|
|
8551
|
-
name: "upgradeToAndCall",
|
|
8552
|
-
outputs: [],
|
|
8553
|
-
stateMutability: "payable"
|
|
8554
|
-
},
|
|
8555
|
-
{
|
|
8556
|
-
type: "function",
|
|
8557
|
-
inputs: [],
|
|
8558
|
-
name: "zoraHookRegistry",
|
|
8559
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8560
|
-
stateMutability: "view"
|
|
8561
|
-
},
|
|
8562
|
-
{
|
|
8563
|
-
type: "event",
|
|
8564
|
-
anonymous: false,
|
|
8565
|
-
inputs: [
|
|
8566
|
-
{
|
|
8567
|
-
name: "caller",
|
|
8568
|
-
internalType: "address",
|
|
8569
|
-
type: "address",
|
|
8570
|
-
indexed: true
|
|
8571
|
-
},
|
|
8572
|
-
{
|
|
8573
|
-
name: "payoutRecipient",
|
|
8574
|
-
internalType: "address",
|
|
8575
|
-
type: "address",
|
|
8576
|
-
indexed: true
|
|
8577
|
-
},
|
|
8578
|
-
{
|
|
8579
|
-
name: "platformReferrer",
|
|
8580
|
-
internalType: "address",
|
|
8581
|
-
type: "address",
|
|
8582
|
-
indexed: true
|
|
8583
|
-
},
|
|
8584
|
-
{
|
|
8585
|
-
name: "currency",
|
|
8586
|
-
internalType: "address",
|
|
8587
|
-
type: "address",
|
|
8588
|
-
indexed: false
|
|
8589
|
-
},
|
|
8590
|
-
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
8591
|
-
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
8592
|
-
{
|
|
8593
|
-
name: "symbol",
|
|
8594
|
-
internalType: "string",
|
|
8595
|
-
type: "string",
|
|
8596
|
-
indexed: false
|
|
8597
|
-
},
|
|
8598
|
-
{
|
|
8599
|
-
name: "coin",
|
|
8600
|
-
internalType: "address",
|
|
8601
|
-
type: "address",
|
|
8602
|
-
indexed: false
|
|
8603
|
-
},
|
|
8604
|
-
{
|
|
8605
|
-
name: "pool",
|
|
8606
|
-
internalType: "address",
|
|
8607
|
-
type: "address",
|
|
8608
|
-
indexed: false
|
|
8609
|
-
},
|
|
8610
|
-
{
|
|
8611
|
-
name: "version",
|
|
8612
|
-
internalType: "string",
|
|
8613
|
-
type: "string",
|
|
8614
|
-
indexed: false
|
|
8615
|
-
}
|
|
8616
|
-
],
|
|
8617
|
-
name: "CoinCreated"
|
|
8618
|
-
},
|
|
8619
|
-
{
|
|
8620
|
-
type: "event",
|
|
8621
|
-
anonymous: false,
|
|
8622
|
-
inputs: [
|
|
8623
|
-
{
|
|
8624
|
-
name: "caller",
|
|
8625
|
-
internalType: "address",
|
|
8626
|
-
type: "address",
|
|
8627
|
-
indexed: true
|
|
8628
|
-
},
|
|
8629
|
-
{
|
|
8630
|
-
name: "payoutRecipient",
|
|
8631
|
-
internalType: "address",
|
|
8632
|
-
type: "address",
|
|
8633
|
-
indexed: true
|
|
8634
|
-
},
|
|
8635
|
-
{
|
|
8636
|
-
name: "platformReferrer",
|
|
8637
|
-
internalType: "address",
|
|
8638
|
-
type: "address",
|
|
8639
|
-
indexed: true
|
|
8640
|
-
},
|
|
8641
|
-
{
|
|
8642
|
-
name: "currency",
|
|
8643
|
-
internalType: "address",
|
|
8644
|
-
type: "address",
|
|
8645
|
-
indexed: false
|
|
8646
|
-
},
|
|
8647
|
-
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
8648
|
-
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
8649
|
-
{
|
|
8650
|
-
name: "symbol",
|
|
8651
|
-
internalType: "string",
|
|
8652
|
-
type: "string",
|
|
8653
|
-
indexed: false
|
|
8654
|
-
},
|
|
8655
|
-
{
|
|
8656
|
-
name: "coin",
|
|
8657
|
-
internalType: "address",
|
|
8658
|
-
type: "address",
|
|
8659
|
-
indexed: false
|
|
8660
|
-
},
|
|
8661
|
-
{
|
|
8662
|
-
name: "poolKey",
|
|
8663
|
-
internalType: "struct PoolKey",
|
|
8664
|
-
type: "tuple",
|
|
8665
|
-
components: [
|
|
8666
|
-
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
8667
|
-
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
8668
|
-
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
8669
|
-
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
8670
|
-
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
8671
|
-
],
|
|
8672
|
-
indexed: false
|
|
8673
|
-
},
|
|
8674
|
-
{
|
|
8675
|
-
name: "poolKeyHash",
|
|
8676
|
-
internalType: "bytes32",
|
|
8677
|
-
type: "bytes32",
|
|
8678
|
-
indexed: false
|
|
8679
|
-
},
|
|
8680
|
-
{
|
|
8681
|
-
name: "version",
|
|
8682
|
-
internalType: "string",
|
|
8683
|
-
type: "string",
|
|
8684
|
-
indexed: false
|
|
8685
|
-
}
|
|
8686
|
-
],
|
|
8687
|
-
name: "CoinCreatedV4"
|
|
8688
|
-
},
|
|
8689
|
-
{
|
|
8690
|
-
type: "event",
|
|
8691
|
-
anonymous: false,
|
|
8692
|
-
inputs: [
|
|
8693
|
-
{
|
|
8694
|
-
name: "caller",
|
|
8695
|
-
internalType: "address",
|
|
8696
|
-
type: "address",
|
|
8697
|
-
indexed: true
|
|
8698
|
-
},
|
|
8699
|
-
{
|
|
8700
|
-
name: "payoutRecipient",
|
|
8701
|
-
internalType: "address",
|
|
8702
|
-
type: "address",
|
|
8703
|
-
indexed: true
|
|
8704
|
-
},
|
|
8705
|
-
{
|
|
8706
|
-
name: "platformReferrer",
|
|
8707
|
-
internalType: "address",
|
|
8708
|
-
type: "address",
|
|
8709
|
-
indexed: true
|
|
8710
|
-
},
|
|
8711
|
-
{
|
|
8712
|
-
name: "currency",
|
|
8713
|
-
internalType: "address",
|
|
8714
|
-
type: "address",
|
|
8715
|
-
indexed: false
|
|
8716
|
-
},
|
|
8717
|
-
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
8718
|
-
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
8719
|
-
{
|
|
8720
|
-
name: "symbol",
|
|
8721
|
-
internalType: "string",
|
|
8722
|
-
type: "string",
|
|
8086
|
+
type: "tuple",
|
|
8087
|
+
components: [
|
|
8088
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
8089
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
8090
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
8091
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
8092
|
+
],
|
|
8723
8093
|
indexed: false
|
|
8724
8094
|
},
|
|
8725
8095
|
{
|
|
8726
|
-
name: "
|
|
8727
|
-
internalType: "
|
|
8728
|
-
type: "
|
|
8096
|
+
name: "replyToId",
|
|
8097
|
+
internalType: "bytes32",
|
|
8098
|
+
type: "bytes32",
|
|
8729
8099
|
indexed: false
|
|
8730
8100
|
},
|
|
8731
8101
|
{
|
|
8732
|
-
name: "
|
|
8733
|
-
internalType: "struct
|
|
8102
|
+
name: "replyTo",
|
|
8103
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
8734
8104
|
type: "tuple",
|
|
8735
8105
|
components: [
|
|
8736
|
-
{ name: "
|
|
8737
|
-
{ name: "
|
|
8738
|
-
{ name: "
|
|
8739
|
-
{ name: "
|
|
8740
|
-
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
8106
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
8107
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
8108
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
8109
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
8741
8110
|
],
|
|
8742
8111
|
indexed: false
|
|
8743
8112
|
},
|
|
8744
8113
|
{
|
|
8745
|
-
name: "
|
|
8746
|
-
internalType: "
|
|
8747
|
-
type: "
|
|
8114
|
+
name: "sparksQuantity",
|
|
8115
|
+
internalType: "uint256",
|
|
8116
|
+
type: "uint256",
|
|
8748
8117
|
indexed: false
|
|
8749
8118
|
},
|
|
8119
|
+
{ name: "text", internalType: "string", type: "string", indexed: false },
|
|
8750
8120
|
{
|
|
8751
|
-
name: "
|
|
8752
|
-
internalType: "
|
|
8753
|
-
type: "
|
|
8121
|
+
name: "timestamp",
|
|
8122
|
+
internalType: "uint256",
|
|
8123
|
+
type: "uint256",
|
|
8124
|
+
indexed: false
|
|
8125
|
+
},
|
|
8126
|
+
{
|
|
8127
|
+
name: "referrer",
|
|
8128
|
+
internalType: "address",
|
|
8129
|
+
type: "address",
|
|
8754
8130
|
indexed: false
|
|
8755
8131
|
}
|
|
8756
8132
|
],
|
|
8757
|
-
name: "
|
|
8133
|
+
name: "Commented"
|
|
8758
8134
|
},
|
|
8135
|
+
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
8759
8136
|
{
|
|
8760
8137
|
type: "event",
|
|
8761
8138
|
anonymous: false,
|
|
@@ -8773,39 +8150,110 @@ var devCoinFactoryABI = [
|
|
|
8773
8150
|
type: "event",
|
|
8774
8151
|
anonymous: false,
|
|
8775
8152
|
inputs: [
|
|
8153
|
+
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
8776
8154
|
{
|
|
8777
|
-
name: "
|
|
8155
|
+
name: "previousAdminRole",
|
|
8156
|
+
internalType: "bytes32",
|
|
8157
|
+
type: "bytes32",
|
|
8158
|
+
indexed: true
|
|
8159
|
+
},
|
|
8160
|
+
{
|
|
8161
|
+
name: "newAdminRole",
|
|
8162
|
+
internalType: "bytes32",
|
|
8163
|
+
type: "bytes32",
|
|
8164
|
+
indexed: true
|
|
8165
|
+
}
|
|
8166
|
+
],
|
|
8167
|
+
name: "RoleAdminChanged"
|
|
8168
|
+
},
|
|
8169
|
+
{
|
|
8170
|
+
type: "event",
|
|
8171
|
+
anonymous: false,
|
|
8172
|
+
inputs: [
|
|
8173
|
+
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
8174
|
+
{
|
|
8175
|
+
name: "account",
|
|
8778
8176
|
internalType: "address",
|
|
8779
8177
|
type: "address",
|
|
8780
8178
|
indexed: true
|
|
8781
8179
|
},
|
|
8782
8180
|
{
|
|
8783
|
-
name: "
|
|
8181
|
+
name: "sender",
|
|
8784
8182
|
internalType: "address",
|
|
8785
8183
|
type: "address",
|
|
8786
8184
|
indexed: true
|
|
8787
8185
|
}
|
|
8788
8186
|
],
|
|
8789
|
-
name: "
|
|
8187
|
+
name: "RoleGranted"
|
|
8790
8188
|
},
|
|
8791
8189
|
{
|
|
8792
8190
|
type: "event",
|
|
8793
8191
|
anonymous: false,
|
|
8794
8192
|
inputs: [
|
|
8193
|
+
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
8795
8194
|
{
|
|
8796
|
-
name: "
|
|
8195
|
+
name: "account",
|
|
8797
8196
|
internalType: "address",
|
|
8798
8197
|
type: "address",
|
|
8799
8198
|
indexed: true
|
|
8800
8199
|
},
|
|
8801
8200
|
{
|
|
8802
|
-
name: "
|
|
8201
|
+
name: "sender",
|
|
8803
8202
|
internalType: "address",
|
|
8804
8203
|
type: "address",
|
|
8805
8204
|
indexed: true
|
|
8806
8205
|
}
|
|
8807
8206
|
],
|
|
8808
|
-
name: "
|
|
8207
|
+
name: "RoleRevoked"
|
|
8208
|
+
},
|
|
8209
|
+
{
|
|
8210
|
+
type: "event",
|
|
8211
|
+
anonymous: false,
|
|
8212
|
+
inputs: [
|
|
8213
|
+
{
|
|
8214
|
+
name: "commentId",
|
|
8215
|
+
internalType: "bytes32",
|
|
8216
|
+
type: "bytes32",
|
|
8217
|
+
indexed: true
|
|
8218
|
+
},
|
|
8219
|
+
{
|
|
8220
|
+
name: "commentIdentifier",
|
|
8221
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
8222
|
+
type: "tuple",
|
|
8223
|
+
components: [
|
|
8224
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
8225
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
8226
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
8227
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
8228
|
+
],
|
|
8229
|
+
indexed: false
|
|
8230
|
+
},
|
|
8231
|
+
{
|
|
8232
|
+
name: "sparksQuantity",
|
|
8233
|
+
internalType: "uint256",
|
|
8234
|
+
type: "uint256",
|
|
8235
|
+
indexed: false
|
|
8236
|
+
},
|
|
8237
|
+
{
|
|
8238
|
+
name: "sparker",
|
|
8239
|
+
internalType: "address",
|
|
8240
|
+
type: "address",
|
|
8241
|
+
indexed: false
|
|
8242
|
+
},
|
|
8243
|
+
{
|
|
8244
|
+
name: "timestamp",
|
|
8245
|
+
internalType: "uint256",
|
|
8246
|
+
type: "uint256",
|
|
8247
|
+
indexed: false
|
|
8248
|
+
},
|
|
8249
|
+
{
|
|
8250
|
+
name: "referrer",
|
|
8251
|
+
internalType: "address",
|
|
8252
|
+
type: "address",
|
|
8253
|
+
indexed: false
|
|
8254
|
+
}
|
|
8255
|
+
],
|
|
8256
|
+
name: "SparkedComment"
|
|
8809
8257
|
},
|
|
8810
8258
|
{
|
|
8811
8259
|
type: "event",
|
|
@@ -8820,15 +8268,47 @@ var devCoinFactoryABI = [
|
|
|
8820
8268
|
],
|
|
8821
8269
|
name: "Upgraded"
|
|
8822
8270
|
},
|
|
8271
|
+
{ type: "error", inputs: [], name: "AccessControlBadConfirmation" },
|
|
8272
|
+
{
|
|
8273
|
+
type: "error",
|
|
8274
|
+
inputs: [
|
|
8275
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
8276
|
+
{ name: "neededRole", internalType: "bytes32", type: "bytes32" }
|
|
8277
|
+
],
|
|
8278
|
+
name: "AccessControlUnauthorizedAccount"
|
|
8279
|
+
},
|
|
8823
8280
|
{
|
|
8824
8281
|
type: "error",
|
|
8825
8282
|
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
8826
8283
|
name: "AddressEmptyCode"
|
|
8827
8284
|
},
|
|
8285
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
8828
8286
|
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
8829
|
-
{ type: "error", inputs: [], name: "
|
|
8830
|
-
{
|
|
8831
|
-
|
|
8287
|
+
{ type: "error", inputs: [], name: "CannotSparkOwnComment" },
|
|
8288
|
+
{
|
|
8289
|
+
type: "error",
|
|
8290
|
+
inputs: [
|
|
8291
|
+
{ name: "commentAddress", internalType: "address", type: "address" },
|
|
8292
|
+
{ name: "commentTokenId", internalType: "uint256", type: "uint256" },
|
|
8293
|
+
{ name: "replyAddress", internalType: "address", type: "address" },
|
|
8294
|
+
{ name: "replyTokenId", internalType: "uint256", type: "uint256" }
|
|
8295
|
+
],
|
|
8296
|
+
name: "CommentAddressOrTokenIdsDoNotMatch"
|
|
8297
|
+
},
|
|
8298
|
+
{ type: "error", inputs: [], name: "CommentDoesntExist" },
|
|
8299
|
+
{
|
|
8300
|
+
type: "error",
|
|
8301
|
+
inputs: [
|
|
8302
|
+
{ name: "expected", internalType: "address", type: "address" },
|
|
8303
|
+
{ name: "actual", internalType: "address", type: "address" }
|
|
8304
|
+
],
|
|
8305
|
+
name: "CommenterMismatch"
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
type: "error",
|
|
8309
|
+
inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
|
|
8310
|
+
name: "DuplicateComment"
|
|
8311
|
+
},
|
|
8832
8312
|
{
|
|
8833
8313
|
type: "error",
|
|
8834
8314
|
inputs: [
|
|
@@ -8837,41 +8317,49 @@ var devCoinFactoryABI = [
|
|
|
8837
8317
|
name: "ERC1967InvalidImplementation"
|
|
8838
8318
|
},
|
|
8839
8319
|
{ type: "error", inputs: [], name: "ERC1967NonPayable" },
|
|
8840
|
-
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
8841
|
-
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
8842
|
-
{ type: "error", inputs: [], name: "InvalidConfig" },
|
|
8843
|
-
{ type: "error", inputs: [], name: "InvalidHook" },
|
|
8844
|
-
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
8845
|
-
{ type: "error", inputs: [], name: "InvalidPoolVersion" },
|
|
8846
8320
|
{
|
|
8847
8321
|
type: "error",
|
|
8848
|
-
inputs: [
|
|
8849
|
-
|
|
8850
|
-
{ name: "tickUpper", internalType: "int24", type: "int24" }
|
|
8851
|
-
],
|
|
8852
|
-
name: "InvalidTickRangeMisordered"
|
|
8322
|
+
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
8323
|
+
name: "ERC2612ExpiredSignature"
|
|
8853
8324
|
},
|
|
8325
|
+
{ type: "error", inputs: [], name: "EmptyComment" },
|
|
8326
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
8854
8327
|
{
|
|
8855
8328
|
type: "error",
|
|
8856
8329
|
inputs: [
|
|
8857
|
-
{
|
|
8858
|
-
|
|
8330
|
+
{
|
|
8331
|
+
name: "wrongDestinationChainId",
|
|
8332
|
+
internalType: "uint256",
|
|
8333
|
+
type: "uint256"
|
|
8334
|
+
}
|
|
8859
8335
|
],
|
|
8860
|
-
name: "
|
|
8336
|
+
name: "IncorrectDestinationChain"
|
|
8861
8337
|
},
|
|
8862
|
-
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
8863
|
-
{ type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
|
|
8864
8338
|
{
|
|
8865
8339
|
type: "error",
|
|
8866
|
-
inputs: [
|
|
8867
|
-
|
|
8340
|
+
inputs: [
|
|
8341
|
+
{ name: "actual", internalType: "uint256", type: "uint256" },
|
|
8342
|
+
{ name: "expected", internalType: "uint256", type: "uint256" }
|
|
8343
|
+
],
|
|
8344
|
+
name: "IncorrectETHAmountForSparks"
|
|
8868
8345
|
},
|
|
8869
8346
|
{
|
|
8870
8347
|
type: "error",
|
|
8871
|
-
inputs: [
|
|
8872
|
-
|
|
8348
|
+
inputs: [
|
|
8349
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
8350
|
+
{ name: "currentNonce", internalType: "bytes32", type: "bytes32" }
|
|
8351
|
+
],
|
|
8352
|
+
name: "InvalidAccountNonce"
|
|
8873
8353
|
},
|
|
8874
|
-
{ type: "error", inputs: [], name: "
|
|
8354
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
8355
|
+
{ type: "error", inputs: [], name: "InvalidSignature" },
|
|
8356
|
+
{ type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
|
|
8357
|
+
{ type: "error", inputs: [], name: "NoFundsRecipient" },
|
|
8358
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
8359
|
+
{ type: "error", inputs: [], name: "NotSmartWallet" },
|
|
8360
|
+
{ type: "error", inputs: [], name: "NotSmartWalletOwner" },
|
|
8361
|
+
{ type: "error", inputs: [], name: "OnlySparksContract" },
|
|
8362
|
+
{ type: "error", inputs: [], name: "TransferFailed" },
|
|
8875
8363
|
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
8876
8364
|
{
|
|
8877
8365
|
type: "error",
|
|
@@ -8885,16 +8373,23 @@ var devCoinFactoryABI = [
|
|
|
8885
8373
|
{ name: "newName", internalType: "string", type: "string" }
|
|
8886
8374
|
],
|
|
8887
8375
|
name: "UpgradeToMismatchedContractName"
|
|
8888
|
-
}
|
|
8889
|
-
{ type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
|
|
8890
|
-
{ type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
|
|
8376
|
+
}
|
|
8891
8377
|
];
|
|
8892
|
-
var
|
|
8893
|
-
|
|
8378
|
+
var commentsAddress = {
|
|
8379
|
+
1: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8380
|
+
10: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8381
|
+
8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8382
|
+
42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8383
|
+
81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8384
|
+
84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8385
|
+
7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8386
|
+
11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8387
|
+
11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
|
|
8388
|
+
999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
|
|
8894
8389
|
};
|
|
8895
|
-
var
|
|
8896
|
-
address:
|
|
8897
|
-
abi:
|
|
8390
|
+
var commentsConfig = {
|
|
8391
|
+
address: commentsAddress,
|
|
8392
|
+
abi: commentsABI
|
|
8898
8393
|
};
|
|
8899
8394
|
var erc20MinterABI = [
|
|
8900
8395
|
{
|
|
@@ -20809,7 +20304,6 @@ function parseEther(ether, unit = "wei") {
|
|
|
20809
20304
|
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/index.js
|
|
20810
20305
|
init_decodeAbiParameters();
|
|
20811
20306
|
init_encodeAbiParameters();
|
|
20812
|
-
init_encodeFunctionData();
|
|
20813
20307
|
init_getAbiItem();
|
|
20814
20308
|
init_toHex();
|
|
20815
20309
|
init_keccak256();
|
|
@@ -21276,64 +20770,6 @@ var buySupplyWithSwapRouterHookReturnParameters = [
|
|
|
21276
20770
|
{ name: "amountCurrency", internalType: "uint256", type: "uint256" },
|
|
21277
20771
|
{ name: "coinsPurchased", internalType: "uint256", type: "uint256" }
|
|
21278
20772
|
];
|
|
21279
|
-
var encodeBuySupplyWithSwapRouterHookCalldata = (buyRecipient, swapRouterCall) => {
|
|
21280
|
-
return encodeAbiParameters(buySupplyWithSwapRouterHookAbiParameters, [
|
|
21281
|
-
buyRecipient,
|
|
21282
|
-
swapRouterCall
|
|
21283
|
-
]);
|
|
21284
|
-
};
|
|
21285
|
-
var encodeBuySupplyWithSingleHopSwapRouterHookCall = ({
|
|
21286
|
-
buyRecipient,
|
|
21287
|
-
exactInputSingleParams,
|
|
21288
|
-
chainId,
|
|
21289
|
-
ethValue
|
|
21290
|
-
}) => {
|
|
21291
|
-
const hook = buySupplyWithSwapRouterHookAddress[chainId];
|
|
21292
|
-
const callToSwapRouter = encodeFunctionData({
|
|
21293
|
-
abi: uniswapV3SwapRouterABI,
|
|
21294
|
-
functionName: "exactInputSingle",
|
|
21295
|
-
args: [
|
|
21296
|
-
{
|
|
21297
|
-
recipient: hook,
|
|
21298
|
-
...exactInputSingleParams
|
|
21299
|
-
}
|
|
21300
|
-
]
|
|
21301
|
-
});
|
|
21302
|
-
return {
|
|
21303
|
-
hook,
|
|
21304
|
-
hookData: encodeBuySupplyWithSwapRouterHookCalldata(
|
|
21305
|
-
buyRecipient,
|
|
21306
|
-
callToSwapRouter
|
|
21307
|
-
),
|
|
21308
|
-
value: ethValue
|
|
21309
|
-
};
|
|
21310
|
-
};
|
|
21311
|
-
var encodeBuySupplyWithMultiHopSwapRouterHookCall = ({
|
|
21312
|
-
buyRecipient,
|
|
21313
|
-
exactInputParams,
|
|
21314
|
-
chainId,
|
|
21315
|
-
ethValue
|
|
21316
|
-
}) => {
|
|
21317
|
-
const hook = buySupplyWithSwapRouterHookAddress[chainId];
|
|
21318
|
-
const callToSwapRouter = encodeFunctionData({
|
|
21319
|
-
abi: uniswapV3SwapRouterABI,
|
|
21320
|
-
functionName: "exactInput",
|
|
21321
|
-
args: [
|
|
21322
|
-
{
|
|
21323
|
-
recipient: hook,
|
|
21324
|
-
...exactInputParams
|
|
21325
|
-
}
|
|
21326
|
-
]
|
|
21327
|
-
});
|
|
21328
|
-
return {
|
|
21329
|
-
hook,
|
|
21330
|
-
hookData: encodeBuySupplyWithSwapRouterHookCalldata(
|
|
21331
|
-
buyRecipient,
|
|
21332
|
-
callToSwapRouter
|
|
21333
|
-
),
|
|
21334
|
-
value: ethValue
|
|
21335
|
-
};
|
|
21336
|
-
};
|
|
21337
20773
|
var decodeBuySupplyWithSwapRouterHookReturn = (returnData) => {
|
|
21338
20774
|
const result = decodeAbiParameters(
|
|
21339
20775
|
buySupplyWithSwapRouterHookReturnParameters,
|
|
@@ -21796,16 +21232,7 @@ var addresses2 = {
|
|
|
21796
21232
|
commentsConfig,
|
|
21797
21233
|
contracts1155,
|
|
21798
21234
|
decodeBuySupplyWithSwapRouterHookReturn,
|
|
21799
|
-
devBuySupplyWithSwapRouterHookABI,
|
|
21800
|
-
devBuySupplyWithSwapRouterHookAddress,
|
|
21801
|
-
devBuySupplyWithSwapRouterHookConfig,
|
|
21802
|
-
devCoinFactoryABI,
|
|
21803
|
-
devCoinFactoryAddress,
|
|
21804
|
-
devCoinFactoryConfig,
|
|
21805
21235
|
emptyCommentIdentifier,
|
|
21806
|
-
encodeBuySupplyWithMultiHopSwapRouterHookCall,
|
|
21807
|
-
encodeBuySupplyWithSingleHopSwapRouterHookCall,
|
|
21808
|
-
encodeBuySupplyWithSwapRouterHookCalldata,
|
|
21809
21236
|
encodeMultiCurvePoolConfig,
|
|
21810
21237
|
encodePremintConfig,
|
|
21811
21238
|
erc20MinterABI,
|