@zoralabs/protocol-deployments 0.6.0-creator-coins.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +18 -18
- package/CHANGELOG.md +13 -2
- package/dist/encoding.d.ts +2 -2
- package/dist/generated/sparks.d.ts +2 -0
- package/dist/generated/sparks.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +1336 -158
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +532 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +525 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/sparks.ts +2 -0
- package/src/generated/wagmi.ts +567 -21
package/dist/index.cjs
CHANGED
|
@@ -2203,6 +2203,7 @@ var init_unit = __esm({
|
|
|
2203
2203
|
var index_exports = {};
|
|
2204
2204
|
__export(index_exports, {
|
|
2205
2205
|
PremintConfigVersion: () => PremintConfigVersion,
|
|
2206
|
+
autoSwapperABI: () => autoSwapperABI,
|
|
2206
2207
|
buySupplyWithSwapRouterHookABI: () => buySupplyWithSwapRouterHookABI,
|
|
2207
2208
|
buySupplyWithSwapRouterHookAbiParameters: () => buySupplyWithSwapRouterHookAbiParameters,
|
|
2208
2209
|
buySupplyWithSwapRouterHookAddress: () => buySupplyWithSwapRouterHookAddress,
|
|
@@ -2225,6 +2226,9 @@ __export(index_exports, {
|
|
|
2225
2226
|
commentsConfig: () => commentsConfig,
|
|
2226
2227
|
contracts1155: () => __exports,
|
|
2227
2228
|
decodeBuySupplyWithSwapRouterHookReturn: () => decodeBuySupplyWithSwapRouterHookReturn,
|
|
2229
|
+
devBuySupplyWithSwapRouterHookABI: () => devBuySupplyWithSwapRouterHookABI,
|
|
2230
|
+
devBuySupplyWithSwapRouterHookAddress: () => devBuySupplyWithSwapRouterHookAddress,
|
|
2231
|
+
devBuySupplyWithSwapRouterHookConfig: () => devBuySupplyWithSwapRouterHookConfig,
|
|
2228
2232
|
devCoinFactoryABI: () => devCoinFactoryABI,
|
|
2229
2233
|
devCoinFactoryAddress: () => devCoinFactoryAddress,
|
|
2230
2234
|
devCoinFactoryConfig: () => devCoinFactoryConfig,
|
|
@@ -2275,6 +2279,9 @@ __export(index_exports, {
|
|
|
2275
2279
|
sponsoredSparksSpenderABI: () => sponsoredSparksSpenderABI,
|
|
2276
2280
|
sponsoredSparksSpenderAddress: () => sponsoredSparksSpenderAddress,
|
|
2277
2281
|
sponsoredSparksSpenderConfig: () => sponsoredSparksSpenderConfig,
|
|
2282
|
+
uniswapQuoterV2ABI: () => uniswapQuoterV2ABI,
|
|
2283
|
+
uniswapQuoterV2Address: () => uniswapQuoterV2Address,
|
|
2284
|
+
uniswapQuoterV2Config: () => uniswapQuoterV2Config,
|
|
2278
2285
|
uniswapUniversalRouterABI: () => uniswapUniversalRouterABI,
|
|
2279
2286
|
uniswapUniversalRouterAddress: () => uniswapUniversalRouterAddress,
|
|
2280
2287
|
uniswapUniversalRouterConfig: () => uniswapUniversalRouterConfig,
|
|
@@ -2325,6 +2332,98 @@ __export(index_exports, {
|
|
|
2325
2332
|
module.exports = __toCommonJS(index_exports);
|
|
2326
2333
|
|
|
2327
2334
|
// src/generated/wagmi.ts
|
|
2335
|
+
var autoSwapperABI = [
|
|
2336
|
+
{
|
|
2337
|
+
type: "constructor",
|
|
2338
|
+
inputs: [
|
|
2339
|
+
{
|
|
2340
|
+
name: "_router",
|
|
2341
|
+
internalType: "contract ISwapRouter",
|
|
2342
|
+
type: "address"
|
|
2343
|
+
},
|
|
2344
|
+
{ name: "_swapRecipient", internalType: "address", type: "address" },
|
|
2345
|
+
{ name: "_swapper", internalType: "address", type: "address" }
|
|
2346
|
+
],
|
|
2347
|
+
stateMutability: "nonpayable"
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
type: "function",
|
|
2351
|
+
inputs: [],
|
|
2352
|
+
name: "router",
|
|
2353
|
+
outputs: [
|
|
2354
|
+
{ name: "", internalType: "contract ISwapRouter", type: "address" }
|
|
2355
|
+
],
|
|
2356
|
+
stateMutability: "view"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
type: "function",
|
|
2360
|
+
inputs: [
|
|
2361
|
+
{
|
|
2362
|
+
name: "params",
|
|
2363
|
+
internalType: "struct AutoSwapper.ExactInputParams",
|
|
2364
|
+
type: "tuple",
|
|
2365
|
+
components: [
|
|
2366
|
+
{ name: "path", internalType: "bytes", type: "bytes" },
|
|
2367
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
2368
|
+
{
|
|
2369
|
+
name: "amountOutMinimum",
|
|
2370
|
+
internalType: "uint256",
|
|
2371
|
+
type: "uint256"
|
|
2372
|
+
}
|
|
2373
|
+
]
|
|
2374
|
+
}
|
|
2375
|
+
],
|
|
2376
|
+
name: "swapExactInput",
|
|
2377
|
+
outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
|
|
2378
|
+
stateMutability: "nonpayable"
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
type: "function",
|
|
2382
|
+
inputs: [
|
|
2383
|
+
{
|
|
2384
|
+
name: "params",
|
|
2385
|
+
internalType: "struct AutoSwapper.ExactInputSingleParams",
|
|
2386
|
+
type: "tuple",
|
|
2387
|
+
components: [
|
|
2388
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
2389
|
+
{ name: "tokenOut", internalType: "address", type: "address" },
|
|
2390
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
2391
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
2392
|
+
{
|
|
2393
|
+
name: "amountOutMinimum",
|
|
2394
|
+
internalType: "uint256",
|
|
2395
|
+
type: "uint256"
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
name: "sqrtPriceLimitX96",
|
|
2399
|
+
internalType: "uint160",
|
|
2400
|
+
type: "uint160"
|
|
2401
|
+
}
|
|
2402
|
+
]
|
|
2403
|
+
}
|
|
2404
|
+
],
|
|
2405
|
+
name: "swapExactInputSingle",
|
|
2406
|
+
outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
|
|
2407
|
+
stateMutability: "nonpayable"
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
type: "function",
|
|
2411
|
+
inputs: [],
|
|
2412
|
+
name: "swapRecipient",
|
|
2413
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2414
|
+
stateMutability: "view"
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
type: "function",
|
|
2418
|
+
inputs: [],
|
|
2419
|
+
name: "swapper",
|
|
2420
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2421
|
+
stateMutability: "view"
|
|
2422
|
+
},
|
|
2423
|
+
{ type: "error", inputs: [], name: "InvalidRecipient" },
|
|
2424
|
+
{ type: "error", inputs: [], name: "InvalidSelector" },
|
|
2425
|
+
{ type: "error", inputs: [], name: "NotSwapper" }
|
|
2426
|
+
];
|
|
2328
2427
|
var buySupplyWithSwapRouterHookABI = [
|
|
2329
2428
|
{
|
|
2330
2429
|
type: "constructor",
|
|
@@ -2334,7 +2433,8 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2334
2433
|
internalType: "contract IZoraFactory",
|
|
2335
2434
|
type: "address"
|
|
2336
2435
|
},
|
|
2337
|
-
{ name: "_swapRouter", internalType: "address", type: "address" }
|
|
2436
|
+
{ name: "_swapRouter", internalType: "address", type: "address" },
|
|
2437
|
+
{ name: "_poolManager", internalType: "address", type: "address" }
|
|
2338
2438
|
],
|
|
2339
2439
|
stateMutability: "nonpayable"
|
|
2340
2440
|
},
|
|
@@ -2365,16 +2465,45 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2365
2465
|
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
2366
2466
|
stateMutability: "pure"
|
|
2367
2467
|
},
|
|
2468
|
+
{
|
|
2469
|
+
type: "function",
|
|
2470
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
2471
|
+
name: "unlockCallback",
|
|
2472
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
2473
|
+
stateMutability: "nonpayable"
|
|
2474
|
+
},
|
|
2475
|
+
{
|
|
2476
|
+
type: "error",
|
|
2477
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
2478
|
+
name: "AddressEmptyCode"
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
type: "error",
|
|
2482
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
2483
|
+
name: "AddressInsufficientBalance"
|
|
2484
|
+
},
|
|
2368
2485
|
{ type: "error", inputs: [], name: "AddressZero" },
|
|
2369
2486
|
{
|
|
2370
2487
|
type: "error",
|
|
2371
2488
|
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
2372
2489
|
name: "CoinBalanceNot0"
|
|
2373
2490
|
},
|
|
2491
|
+
{
|
|
2492
|
+
type: "error",
|
|
2493
|
+
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
2494
|
+
name: "CurrencyBalanceNot0"
|
|
2495
|
+
},
|
|
2374
2496
|
{ type: "error", inputs: [], name: "Erc20NotReceived" },
|
|
2497
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
2375
2498
|
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
2376
2499
|
{ type: "error", inputs: [], name: "InvalidSwapRouterCall" },
|
|
2377
2500
|
{ type: "error", inputs: [], name: "NotFactory" },
|
|
2501
|
+
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
2502
|
+
{
|
|
2503
|
+
type: "error",
|
|
2504
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
2505
|
+
name: "SafeERC20FailedOperation"
|
|
2506
|
+
},
|
|
2378
2507
|
{
|
|
2379
2508
|
type: "error",
|
|
2380
2509
|
inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
|
|
@@ -2382,8 +2511,8 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
2382
2511
|
}
|
|
2383
2512
|
];
|
|
2384
2513
|
var buySupplyWithSwapRouterHookAddress = {
|
|
2385
|
-
8453: "
|
|
2386
|
-
84532: "
|
|
2514
|
+
8453: "0xd77038a7f400E8242d2916f7EB5741e689d4aE25",
|
|
2515
|
+
84532: "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE"
|
|
2387
2516
|
};
|
|
2388
2517
|
var buySupplyWithSwapRouterHookConfig = {
|
|
2389
2518
|
address: buySupplyWithSwapRouterHookAddress,
|
|
@@ -3822,6 +3951,16 @@ var coinABI = [
|
|
|
3822
3951
|
outputs: [],
|
|
3823
3952
|
stateMutability: "nonpayable"
|
|
3824
3953
|
},
|
|
3954
|
+
{
|
|
3955
|
+
type: "function",
|
|
3956
|
+
inputs: [
|
|
3957
|
+
{ name: "newName", internalType: "string", type: "string" },
|
|
3958
|
+
{ name: "newSymbol", internalType: "string", type: "string" }
|
|
3959
|
+
],
|
|
3960
|
+
name: "setNameAndSymbol",
|
|
3961
|
+
outputs: [],
|
|
3962
|
+
stateMutability: "nonpayable"
|
|
3963
|
+
},
|
|
3825
3964
|
{
|
|
3826
3965
|
type: "function",
|
|
3827
3966
|
inputs: [
|
|
@@ -4261,6 +4400,31 @@ var coinABI = [
|
|
|
4261
4400
|
],
|
|
4262
4401
|
name: "Initialized"
|
|
4263
4402
|
},
|
|
4403
|
+
{
|
|
4404
|
+
type: "event",
|
|
4405
|
+
anonymous: false,
|
|
4406
|
+
inputs: [
|
|
4407
|
+
{
|
|
4408
|
+
name: "caller",
|
|
4409
|
+
internalType: "address",
|
|
4410
|
+
type: "address",
|
|
4411
|
+
indexed: true
|
|
4412
|
+
},
|
|
4413
|
+
{
|
|
4414
|
+
name: "newName",
|
|
4415
|
+
internalType: "string",
|
|
4416
|
+
type: "string",
|
|
4417
|
+
indexed: false
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
name: "newSymbol",
|
|
4421
|
+
internalType: "string",
|
|
4422
|
+
type: "string",
|
|
4423
|
+
indexed: false
|
|
4424
|
+
}
|
|
4425
|
+
],
|
|
4426
|
+
name: "NameAndSymbolUpdated"
|
|
4427
|
+
},
|
|
4264
4428
|
{
|
|
4265
4429
|
type: "event",
|
|
4266
4430
|
anonymous: false,
|
|
@@ -4453,7 +4617,9 @@ var coinFactoryABI = [
|
|
|
4453
4617
|
inputs: [
|
|
4454
4618
|
{ name: "_coinImpl", internalType: "address", type: "address" },
|
|
4455
4619
|
{ name: "_coinV4Impl", internalType: "address", type: "address" },
|
|
4456
|
-
{ name: "_creatorCoinImpl", internalType: "address", type: "address" }
|
|
4620
|
+
{ name: "_creatorCoinImpl", internalType: "address", type: "address" },
|
|
4621
|
+
{ name: "_contentCoinHook", internalType: "address", type: "address" },
|
|
4622
|
+
{ name: "_creatorCoinHook", internalType: "address", type: "address" }
|
|
4457
4623
|
],
|
|
4458
4624
|
stateMutability: "nonpayable"
|
|
4459
4625
|
},
|
|
@@ -4492,6 +4658,13 @@ var coinFactoryABI = [
|
|
|
4492
4658
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
4493
4659
|
stateMutability: "view"
|
|
4494
4660
|
},
|
|
4661
|
+
{
|
|
4662
|
+
type: "function",
|
|
4663
|
+
inputs: [],
|
|
4664
|
+
name: "contentCoinHook",
|
|
4665
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
4666
|
+
stateMutability: "view"
|
|
4667
|
+
},
|
|
4495
4668
|
{
|
|
4496
4669
|
type: "function",
|
|
4497
4670
|
inputs: [],
|
|
@@ -4506,6 +4679,13 @@ var coinFactoryABI = [
|
|
|
4506
4679
|
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
4507
4680
|
stateMutability: "pure"
|
|
4508
4681
|
},
|
|
4682
|
+
{
|
|
4683
|
+
type: "function",
|
|
4684
|
+
inputs: [],
|
|
4685
|
+
name: "creatorCoinHook",
|
|
4686
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
4687
|
+
stateMutability: "view"
|
|
4688
|
+
},
|
|
4509
4689
|
{
|
|
4510
4690
|
type: "function",
|
|
4511
4691
|
inputs: [],
|
|
@@ -5002,8 +5182,8 @@ var coinFactoryABI = [
|
|
|
5002
5182
|
{ type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
|
|
5003
5183
|
];
|
|
5004
5184
|
var coinFactoryAddress = {
|
|
5005
|
-
8453: "
|
|
5006
|
-
84532: "
|
|
5185
|
+
8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
5186
|
+
84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
|
|
5007
5187
|
};
|
|
5008
5188
|
var coinFactoryConfig = {
|
|
5009
5189
|
address: coinFactoryAddress,
|
|
@@ -5024,8 +5204,7 @@ var coinV4ABI = [
|
|
|
5024
5204
|
internalType: "contract IPoolManager",
|
|
5025
5205
|
type: "address"
|
|
5026
5206
|
},
|
|
5027
|
-
{ name: "airlock_", internalType: "address", type: "address" }
|
|
5028
|
-
{ name: "hooks_", internalType: "contract IHooks", type: "address" }
|
|
5207
|
+
{ name: "airlock_", internalType: "address", type: "address" }
|
|
5029
5208
|
],
|
|
5030
5209
|
stateMutability: "nonpayable"
|
|
5031
5210
|
},
|
|
@@ -5301,6 +5480,29 @@ var coinV4ABI = [
|
|
|
5301
5480
|
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
5302
5481
|
stateMutability: "view"
|
|
5303
5482
|
},
|
|
5483
|
+
{
|
|
5484
|
+
type: "function",
|
|
5485
|
+
inputs: [
|
|
5486
|
+
{ name: "newHook", internalType: "address", type: "address" },
|
|
5487
|
+
{ name: "additionalData", internalType: "bytes", type: "bytes" }
|
|
5488
|
+
],
|
|
5489
|
+
name: "migrateLiquidity",
|
|
5490
|
+
outputs: [
|
|
5491
|
+
{
|
|
5492
|
+
name: "newPoolKey",
|
|
5493
|
+
internalType: "struct PoolKey",
|
|
5494
|
+
type: "tuple",
|
|
5495
|
+
components: [
|
|
5496
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
5497
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
5498
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
5499
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
5500
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
5501
|
+
]
|
|
5502
|
+
}
|
|
5503
|
+
],
|
|
5504
|
+
stateMutability: "nonpayable"
|
|
5505
|
+
},
|
|
5304
5506
|
{
|
|
5305
5507
|
type: "function",
|
|
5306
5508
|
inputs: [],
|
|
@@ -5404,6 +5606,16 @@ var coinV4ABI = [
|
|
|
5404
5606
|
outputs: [],
|
|
5405
5607
|
stateMutability: "nonpayable"
|
|
5406
5608
|
},
|
|
5609
|
+
{
|
|
5610
|
+
type: "function",
|
|
5611
|
+
inputs: [
|
|
5612
|
+
{ name: "newName", internalType: "string", type: "string" },
|
|
5613
|
+
{ name: "newSymbol", internalType: "string", type: "string" }
|
|
5614
|
+
],
|
|
5615
|
+
name: "setNameAndSymbol",
|
|
5616
|
+
outputs: [],
|
|
5617
|
+
stateMutability: "nonpayable"
|
|
5618
|
+
},
|
|
5407
5619
|
{
|
|
5408
5620
|
type: "function",
|
|
5409
5621
|
inputs: [
|
|
@@ -5818,6 +6030,76 @@ var coinV4ABI = [
|
|
|
5818
6030
|
],
|
|
5819
6031
|
name: "Initialized"
|
|
5820
6032
|
},
|
|
6033
|
+
{
|
|
6034
|
+
type: "event",
|
|
6035
|
+
anonymous: false,
|
|
6036
|
+
inputs: [
|
|
6037
|
+
{
|
|
6038
|
+
name: "fromPoolKey",
|
|
6039
|
+
internalType: "struct PoolKey",
|
|
6040
|
+
type: "tuple",
|
|
6041
|
+
components: [
|
|
6042
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
6043
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
6044
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
6045
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
6046
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
6047
|
+
],
|
|
6048
|
+
indexed: false
|
|
6049
|
+
},
|
|
6050
|
+
{
|
|
6051
|
+
name: "fromPoolKeyHash",
|
|
6052
|
+
internalType: "bytes32",
|
|
6053
|
+
type: "bytes32",
|
|
6054
|
+
indexed: false
|
|
6055
|
+
},
|
|
6056
|
+
{
|
|
6057
|
+
name: "toPoolKey",
|
|
6058
|
+
internalType: "struct PoolKey",
|
|
6059
|
+
type: "tuple",
|
|
6060
|
+
components: [
|
|
6061
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
6062
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
6063
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
6064
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
6065
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
6066
|
+
],
|
|
6067
|
+
indexed: false
|
|
6068
|
+
},
|
|
6069
|
+
{
|
|
6070
|
+
name: "toPoolKeyHash",
|
|
6071
|
+
internalType: "bytes32",
|
|
6072
|
+
type: "bytes32",
|
|
6073
|
+
indexed: false
|
|
6074
|
+
}
|
|
6075
|
+
],
|
|
6076
|
+
name: "LiquidityMigrated"
|
|
6077
|
+
},
|
|
6078
|
+
{
|
|
6079
|
+
type: "event",
|
|
6080
|
+
anonymous: false,
|
|
6081
|
+
inputs: [
|
|
6082
|
+
{
|
|
6083
|
+
name: "caller",
|
|
6084
|
+
internalType: "address",
|
|
6085
|
+
type: "address",
|
|
6086
|
+
indexed: true
|
|
6087
|
+
},
|
|
6088
|
+
{
|
|
6089
|
+
name: "newName",
|
|
6090
|
+
internalType: "string",
|
|
6091
|
+
type: "string",
|
|
6092
|
+
indexed: false
|
|
6093
|
+
},
|
|
6094
|
+
{
|
|
6095
|
+
name: "newSymbol",
|
|
6096
|
+
internalType: "string",
|
|
6097
|
+
type: "string",
|
|
6098
|
+
indexed: false
|
|
6099
|
+
}
|
|
6100
|
+
],
|
|
6101
|
+
name: "NameAndSymbolUpdated"
|
|
6102
|
+
},
|
|
5821
6103
|
{
|
|
5822
6104
|
type: "event",
|
|
5823
6105
|
anonymous: false,
|
|
@@ -7762,13 +8044,108 @@ var commentsConfig = {
|
|
|
7762
8044
|
address: commentsAddress,
|
|
7763
8045
|
abi: commentsABI
|
|
7764
8046
|
};
|
|
8047
|
+
var devBuySupplyWithSwapRouterHookABI = [
|
|
8048
|
+
{
|
|
8049
|
+
type: "constructor",
|
|
8050
|
+
inputs: [
|
|
8051
|
+
{
|
|
8052
|
+
name: "_factory",
|
|
8053
|
+
internalType: "contract IZoraFactory",
|
|
8054
|
+
type: "address"
|
|
8055
|
+
},
|
|
8056
|
+
{ name: "_swapRouter", internalType: "address", type: "address" },
|
|
8057
|
+
{ name: "_poolManager", internalType: "address", type: "address" }
|
|
8058
|
+
],
|
|
8059
|
+
stateMutability: "nonpayable"
|
|
8060
|
+
},
|
|
8061
|
+
{
|
|
8062
|
+
type: "function",
|
|
8063
|
+
inputs: [
|
|
8064
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
8065
|
+
{ name: "coin", internalType: "contract ICoin", type: "address" },
|
|
8066
|
+
{ name: "hookData", internalType: "bytes", type: "bytes" }
|
|
8067
|
+
],
|
|
8068
|
+
name: "afterCoinDeploy",
|
|
8069
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
8070
|
+
stateMutability: "payable"
|
|
8071
|
+
},
|
|
8072
|
+
{
|
|
8073
|
+
type: "function",
|
|
8074
|
+
inputs: [],
|
|
8075
|
+
name: "factory",
|
|
8076
|
+
outputs: [
|
|
8077
|
+
{ name: "", internalType: "contract IZoraFactory", type: "address" }
|
|
8078
|
+
],
|
|
8079
|
+
stateMutability: "view"
|
|
8080
|
+
},
|
|
8081
|
+
{
|
|
8082
|
+
type: "function",
|
|
8083
|
+
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
8084
|
+
name: "supportsInterface",
|
|
8085
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
8086
|
+
stateMutability: "pure"
|
|
8087
|
+
},
|
|
8088
|
+
{
|
|
8089
|
+
type: "function",
|
|
8090
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
8091
|
+
name: "unlockCallback",
|
|
8092
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
8093
|
+
stateMutability: "nonpayable"
|
|
8094
|
+
},
|
|
8095
|
+
{
|
|
8096
|
+
type: "error",
|
|
8097
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
8098
|
+
name: "AddressEmptyCode"
|
|
8099
|
+
},
|
|
8100
|
+
{
|
|
8101
|
+
type: "error",
|
|
8102
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
8103
|
+
name: "AddressInsufficientBalance"
|
|
8104
|
+
},
|
|
8105
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
8106
|
+
{
|
|
8107
|
+
type: "error",
|
|
8108
|
+
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
8109
|
+
name: "CoinBalanceNot0"
|
|
8110
|
+
},
|
|
8111
|
+
{
|
|
8112
|
+
type: "error",
|
|
8113
|
+
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
8114
|
+
name: "CurrencyBalanceNot0"
|
|
8115
|
+
},
|
|
8116
|
+
{ type: "error", inputs: [], name: "Erc20NotReceived" },
|
|
8117
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
8118
|
+
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
8119
|
+
{ type: "error", inputs: [], name: "InvalidSwapRouterCall" },
|
|
8120
|
+
{ type: "error", inputs: [], name: "NotFactory" },
|
|
8121
|
+
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
8122
|
+
{
|
|
8123
|
+
type: "error",
|
|
8124
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
8125
|
+
name: "SafeERC20FailedOperation"
|
|
8126
|
+
},
|
|
8127
|
+
{
|
|
8128
|
+
type: "error",
|
|
8129
|
+
inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
|
|
8130
|
+
name: "SwapReverted"
|
|
8131
|
+
}
|
|
8132
|
+
];
|
|
8133
|
+
var devBuySupplyWithSwapRouterHookAddress = {
|
|
8134
|
+
8453: "0x62B95629F965bf48E15BB110A1729B9b9dF1C07D"
|
|
8135
|
+
};
|
|
8136
|
+
var devBuySupplyWithSwapRouterHookConfig = {
|
|
8137
|
+
address: devBuySupplyWithSwapRouterHookAddress,
|
|
8138
|
+
abi: devBuySupplyWithSwapRouterHookABI
|
|
8139
|
+
};
|
|
7765
8140
|
var devCoinFactoryABI = [
|
|
7766
8141
|
{
|
|
7767
8142
|
type: "constructor",
|
|
7768
8143
|
inputs: [
|
|
7769
8144
|
{ name: "_coinImpl", internalType: "address", type: "address" },
|
|
7770
8145
|
{ name: "_coinV4Impl", internalType: "address", type: "address" },
|
|
7771
|
-
{ name: "_creatorCoinImpl", internalType: "address", type: "address" }
|
|
8146
|
+
{ name: "_creatorCoinImpl", internalType: "address", type: "address" },
|
|
8147
|
+
{ name: "_contentCoinHook", internalType: "address", type: "address" },
|
|
8148
|
+
{ name: "_creatorCoinHook", internalType: "address", type: "address" }
|
|
7772
8149
|
],
|
|
7773
8150
|
stateMutability: "nonpayable"
|
|
7774
8151
|
},
|
|
@@ -7807,6 +8184,13 @@ var devCoinFactoryABI = [
|
|
|
7807
8184
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
7808
8185
|
stateMutability: "view"
|
|
7809
8186
|
},
|
|
8187
|
+
{
|
|
8188
|
+
type: "function",
|
|
8189
|
+
inputs: [],
|
|
8190
|
+
name: "contentCoinHook",
|
|
8191
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8192
|
+
stateMutability: "view"
|
|
8193
|
+
},
|
|
7810
8194
|
{
|
|
7811
8195
|
type: "function",
|
|
7812
8196
|
inputs: [],
|
|
@@ -7821,6 +8205,13 @@ var devCoinFactoryABI = [
|
|
|
7821
8205
|
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
7822
8206
|
stateMutability: "pure"
|
|
7823
8207
|
},
|
|
8208
|
+
{
|
|
8209
|
+
type: "function",
|
|
8210
|
+
inputs: [],
|
|
8211
|
+
name: "creatorCoinHook",
|
|
8212
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8213
|
+
stateMutability: "view"
|
|
8214
|
+
},
|
|
7824
8215
|
{
|
|
7825
8216
|
type: "function",
|
|
7826
8217
|
inputs: [],
|
|
@@ -8317,7 +8708,7 @@ var devCoinFactoryABI = [
|
|
|
8317
8708
|
{ type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
|
|
8318
8709
|
];
|
|
8319
8710
|
var devCoinFactoryAddress = {
|
|
8320
|
-
8453: "
|
|
8711
|
+
8453: "0x47B0C1205B01e5e967dB24A186968152e5cCf764"
|
|
8321
8712
|
};
|
|
8322
8713
|
var devCoinFactoryConfig = {
|
|
8323
8714
|
address: devCoinFactoryAddress,
|
|
@@ -11751,6 +12142,128 @@ var sponsoredSparksSpenderConfig = {
|
|
|
11751
12142
|
address: sponsoredSparksSpenderAddress,
|
|
11752
12143
|
abi: sponsoredSparksSpenderABI
|
|
11753
12144
|
};
|
|
12145
|
+
var uniswapQuoterV2ABI = [
|
|
12146
|
+
{
|
|
12147
|
+
type: "function",
|
|
12148
|
+
inputs: [
|
|
12149
|
+
{ name: "path", internalType: "bytes", type: "bytes" },
|
|
12150
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" }
|
|
12151
|
+
],
|
|
12152
|
+
name: "quoteExactInput",
|
|
12153
|
+
outputs: [
|
|
12154
|
+
{ name: "amountOut", internalType: "uint256", type: "uint256" },
|
|
12155
|
+
{
|
|
12156
|
+
name: "sqrtPriceX96AfterList",
|
|
12157
|
+
internalType: "uint160[]",
|
|
12158
|
+
type: "uint160[]"
|
|
12159
|
+
},
|
|
12160
|
+
{
|
|
12161
|
+
name: "initializedTicksCrossedList",
|
|
12162
|
+
internalType: "uint32[]",
|
|
12163
|
+
type: "uint32[]"
|
|
12164
|
+
},
|
|
12165
|
+
{ name: "gasEstimate", internalType: "uint256", type: "uint256" }
|
|
12166
|
+
],
|
|
12167
|
+
stateMutability: "nonpayable"
|
|
12168
|
+
},
|
|
12169
|
+
{
|
|
12170
|
+
type: "function",
|
|
12171
|
+
inputs: [
|
|
12172
|
+
{
|
|
12173
|
+
name: "params",
|
|
12174
|
+
internalType: "struct IQuoterV2.QuoteExactInputSingleParams",
|
|
12175
|
+
type: "tuple",
|
|
12176
|
+
components: [
|
|
12177
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
12178
|
+
{ name: "tokenOut", internalType: "address", type: "address" },
|
|
12179
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
12180
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
12181
|
+
{
|
|
12182
|
+
name: "sqrtPriceLimitX96",
|
|
12183
|
+
internalType: "uint160",
|
|
12184
|
+
type: "uint160"
|
|
12185
|
+
}
|
|
12186
|
+
]
|
|
12187
|
+
}
|
|
12188
|
+
],
|
|
12189
|
+
name: "quoteExactInputSingle",
|
|
12190
|
+
outputs: [
|
|
12191
|
+
{ name: "amountOut", internalType: "uint256", type: "uint256" },
|
|
12192
|
+
{ name: "sqrtPriceX96After", internalType: "uint160", type: "uint160" },
|
|
12193
|
+
{
|
|
12194
|
+
name: "initializedTicksCrossed",
|
|
12195
|
+
internalType: "uint32",
|
|
12196
|
+
type: "uint32"
|
|
12197
|
+
},
|
|
12198
|
+
{ name: "gasEstimate", internalType: "uint256", type: "uint256" }
|
|
12199
|
+
],
|
|
12200
|
+
stateMutability: "nonpayable"
|
|
12201
|
+
},
|
|
12202
|
+
{
|
|
12203
|
+
type: "function",
|
|
12204
|
+
inputs: [
|
|
12205
|
+
{ name: "path", internalType: "bytes", type: "bytes" },
|
|
12206
|
+
{ name: "amountOut", internalType: "uint256", type: "uint256" }
|
|
12207
|
+
],
|
|
12208
|
+
name: "quoteExactOutput",
|
|
12209
|
+
outputs: [
|
|
12210
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
12211
|
+
{
|
|
12212
|
+
name: "sqrtPriceX96AfterList",
|
|
12213
|
+
internalType: "uint160[]",
|
|
12214
|
+
type: "uint160[]"
|
|
12215
|
+
},
|
|
12216
|
+
{
|
|
12217
|
+
name: "initializedTicksCrossedList",
|
|
12218
|
+
internalType: "uint32[]",
|
|
12219
|
+
type: "uint32[]"
|
|
12220
|
+
},
|
|
12221
|
+
{ name: "gasEstimate", internalType: "uint256", type: "uint256" }
|
|
12222
|
+
],
|
|
12223
|
+
stateMutability: "nonpayable"
|
|
12224
|
+
},
|
|
12225
|
+
{
|
|
12226
|
+
type: "function",
|
|
12227
|
+
inputs: [
|
|
12228
|
+
{
|
|
12229
|
+
name: "params",
|
|
12230
|
+
internalType: "struct IQuoterV2.QuoteExactOutputSingleParams",
|
|
12231
|
+
type: "tuple",
|
|
12232
|
+
components: [
|
|
12233
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
12234
|
+
{ name: "tokenOut", internalType: "address", type: "address" },
|
|
12235
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
12236
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
12237
|
+
{
|
|
12238
|
+
name: "sqrtPriceLimitX96",
|
|
12239
|
+
internalType: "uint160",
|
|
12240
|
+
type: "uint160"
|
|
12241
|
+
}
|
|
12242
|
+
]
|
|
12243
|
+
}
|
|
12244
|
+
],
|
|
12245
|
+
name: "quoteExactOutputSingle",
|
|
12246
|
+
outputs: [
|
|
12247
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
12248
|
+
{ name: "sqrtPriceX96After", internalType: "uint160", type: "uint160" },
|
|
12249
|
+
{
|
|
12250
|
+
name: "initializedTicksCrossed",
|
|
12251
|
+
internalType: "uint32",
|
|
12252
|
+
type: "uint32"
|
|
12253
|
+
},
|
|
12254
|
+
{ name: "gasEstimate", internalType: "uint256", type: "uint256" }
|
|
12255
|
+
],
|
|
12256
|
+
stateMutability: "nonpayable"
|
|
12257
|
+
}
|
|
12258
|
+
];
|
|
12259
|
+
var uniswapQuoterV2Address = {
|
|
12260
|
+
8453: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
12261
|
+
84532: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27"
|
|
12262
|
+
};
|
|
12263
|
+
var uniswapQuoterV2Config = {
|
|
12264
|
+
address: uniswapQuoterV2Address,
|
|
12265
|
+
abi: uniswapQuoterV2ABI
|
|
12266
|
+
};
|
|
11754
12267
|
var uniswapUniversalRouterABI = [
|
|
11755
12268
|
{
|
|
11756
12269
|
type: "function",
|
|
@@ -20934,6 +21447,7 @@ var chainConfigs2 = {
|
|
|
20934
21447
|
NONFUNGIBLE_POSITION_MANAGER: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
|
|
20935
21448
|
UNISWAP_SWAP_ROUTER: "0x2626664c2603336E57B271c5C0b26F421741e481",
|
|
20936
21449
|
UNISWAP_V3_FACTORY: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
|
|
21450
|
+
UNISWAP_QUOTER_V2: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
20937
21451
|
DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
|
|
20938
21452
|
PROXY_ADMIN: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
|
|
20939
21453
|
ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
|
|
@@ -20961,6 +21475,7 @@ var chainConfigs2 = {
|
|
|
20961
21475
|
NONFUNGIBLE_POSITION_MANAGER: "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",
|
|
20962
21476
|
UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
|
|
20963
21477
|
UNISWAP_V3_FACTORY: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
|
|
21478
|
+
UNISWAP_QUOTER_V2: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
|
|
20964
21479
|
DOPPLER_AIRLOCK: "0xa24E35a5d71d02a59b41E7c93567626302da1958",
|
|
20965
21480
|
PROXY_ADMIN: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
|
|
20966
21481
|
ZORA_RECIPIENT: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
|
|
@@ -21076,6 +21591,7 @@ var addresses2 = {
|
|
|
21076
21591
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21077
21592
|
0 && (module.exports = {
|
|
21078
21593
|
PremintConfigVersion,
|
|
21594
|
+
autoSwapperABI,
|
|
21079
21595
|
buySupplyWithSwapRouterHookABI,
|
|
21080
21596
|
buySupplyWithSwapRouterHookAbiParameters,
|
|
21081
21597
|
buySupplyWithSwapRouterHookAddress,
|
|
@@ -21098,6 +21614,9 @@ var addresses2 = {
|
|
|
21098
21614
|
commentsConfig,
|
|
21099
21615
|
contracts1155,
|
|
21100
21616
|
decodeBuySupplyWithSwapRouterHookReturn,
|
|
21617
|
+
devBuySupplyWithSwapRouterHookABI,
|
|
21618
|
+
devBuySupplyWithSwapRouterHookAddress,
|
|
21619
|
+
devBuySupplyWithSwapRouterHookConfig,
|
|
21101
21620
|
devCoinFactoryABI,
|
|
21102
21621
|
devCoinFactoryAddress,
|
|
21103
21622
|
devCoinFactoryConfig,
|
|
@@ -21148,6 +21667,9 @@ var addresses2 = {
|
|
|
21148
21667
|
sponsoredSparksSpenderABI,
|
|
21149
21668
|
sponsoredSparksSpenderAddress,
|
|
21150
21669
|
sponsoredSparksSpenderConfig,
|
|
21670
|
+
uniswapQuoterV2ABI,
|
|
21671
|
+
uniswapQuoterV2Address,
|
|
21672
|
+
uniswapQuoterV2Config,
|
|
21151
21673
|
uniswapUniversalRouterABI,
|
|
21152
21674
|
uniswapUniversalRouterAddress,
|
|
21153
21675
|
uniswapUniversalRouterConfig,
|