@zoralabs/protocol-deployments 0.5.10 → 0.5.11-PRE.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +47 -46
- package/.turbo/turbo-lint.log +7 -0
- package/CHANGELOG.md +7 -0
- package/dist/generated/sparks.d.ts +2 -0
- package/dist/generated/sparks.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +457 -0
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +224 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +220 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/sparks.ts +2 -0
- package/src/generated/wagmi.ts +238 -0
package/dist/index.js
CHANGED
|
@@ -13,6 +13,98 @@ import {
|
|
|
13
13
|
} from "./chunk-PR4QN5HX.js";
|
|
14
14
|
|
|
15
15
|
// src/generated/wagmi.ts
|
|
16
|
+
var autoSwapperABI = [
|
|
17
|
+
{
|
|
18
|
+
type: "constructor",
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
name: "_router",
|
|
22
|
+
internalType: "contract ISwapRouter",
|
|
23
|
+
type: "address"
|
|
24
|
+
},
|
|
25
|
+
{ name: "_swapRecipient", internalType: "address", type: "address" },
|
|
26
|
+
{ name: "_swapper", internalType: "address", type: "address" }
|
|
27
|
+
],
|
|
28
|
+
stateMutability: "nonpayable"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: "function",
|
|
32
|
+
inputs: [],
|
|
33
|
+
name: "router",
|
|
34
|
+
outputs: [
|
|
35
|
+
{ name: "", internalType: "contract ISwapRouter", type: "address" }
|
|
36
|
+
],
|
|
37
|
+
stateMutability: "view"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "function",
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
name: "params",
|
|
44
|
+
internalType: "struct AutoSwapper.ExactInputParams",
|
|
45
|
+
type: "tuple",
|
|
46
|
+
components: [
|
|
47
|
+
{ name: "path", internalType: "bytes", type: "bytes" },
|
|
48
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
49
|
+
{
|
|
50
|
+
name: "amountOutMinimum",
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
type: "uint256"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
name: "swapExactInput",
|
|
58
|
+
outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
|
|
59
|
+
stateMutability: "nonpayable"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: "function",
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
name: "params",
|
|
66
|
+
internalType: "struct AutoSwapper.ExactInputSingleParams",
|
|
67
|
+
type: "tuple",
|
|
68
|
+
components: [
|
|
69
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
70
|
+
{ name: "tokenOut", internalType: "address", type: "address" },
|
|
71
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
72
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
73
|
+
{
|
|
74
|
+
name: "amountOutMinimum",
|
|
75
|
+
internalType: "uint256",
|
|
76
|
+
type: "uint256"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "sqrtPriceLimitX96",
|
|
80
|
+
internalType: "uint160",
|
|
81
|
+
type: "uint160"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
name: "swapExactInputSingle",
|
|
87
|
+
outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
|
|
88
|
+
stateMutability: "nonpayable"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: "function",
|
|
92
|
+
inputs: [],
|
|
93
|
+
name: "swapRecipient",
|
|
94
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
95
|
+
stateMutability: "view"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: "function",
|
|
99
|
+
inputs: [],
|
|
100
|
+
name: "swapper",
|
|
101
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
102
|
+
stateMutability: "view"
|
|
103
|
+
},
|
|
104
|
+
{ type: "error", inputs: [], name: "InvalidRecipient" },
|
|
105
|
+
{ type: "error", inputs: [], name: "InvalidSelector" },
|
|
106
|
+
{ type: "error", inputs: [], name: "NotSwapper" }
|
|
107
|
+
];
|
|
16
108
|
var buySupplyWithSwapRouterHookABI = [
|
|
17
109
|
{
|
|
18
110
|
type: "constructor",
|
|
@@ -9340,6 +9432,128 @@ var sponsoredSparksSpenderConfig = {
|
|
|
9340
9432
|
address: sponsoredSparksSpenderAddress,
|
|
9341
9433
|
abi: sponsoredSparksSpenderABI
|
|
9342
9434
|
};
|
|
9435
|
+
var uniswapQuoterV2ABI = [
|
|
9436
|
+
{
|
|
9437
|
+
type: "function",
|
|
9438
|
+
inputs: [
|
|
9439
|
+
{ name: "path", internalType: "bytes", type: "bytes" },
|
|
9440
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" }
|
|
9441
|
+
],
|
|
9442
|
+
name: "quoteExactInput",
|
|
9443
|
+
outputs: [
|
|
9444
|
+
{ name: "amountOut", internalType: "uint256", type: "uint256" },
|
|
9445
|
+
{
|
|
9446
|
+
name: "sqrtPriceX96AfterList",
|
|
9447
|
+
internalType: "uint160[]",
|
|
9448
|
+
type: "uint160[]"
|
|
9449
|
+
},
|
|
9450
|
+
{
|
|
9451
|
+
name: "initializedTicksCrossedList",
|
|
9452
|
+
internalType: "uint32[]",
|
|
9453
|
+
type: "uint32[]"
|
|
9454
|
+
},
|
|
9455
|
+
{ name: "gasEstimate", internalType: "uint256", type: "uint256" }
|
|
9456
|
+
],
|
|
9457
|
+
stateMutability: "nonpayable"
|
|
9458
|
+
},
|
|
9459
|
+
{
|
|
9460
|
+
type: "function",
|
|
9461
|
+
inputs: [
|
|
9462
|
+
{
|
|
9463
|
+
name: "params",
|
|
9464
|
+
internalType: "struct IQuoterV2.QuoteExactInputSingleParams",
|
|
9465
|
+
type: "tuple",
|
|
9466
|
+
components: [
|
|
9467
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
9468
|
+
{ name: "tokenOut", internalType: "address", type: "address" },
|
|
9469
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
9470
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
9471
|
+
{
|
|
9472
|
+
name: "sqrtPriceLimitX96",
|
|
9473
|
+
internalType: "uint160",
|
|
9474
|
+
type: "uint160"
|
|
9475
|
+
}
|
|
9476
|
+
]
|
|
9477
|
+
}
|
|
9478
|
+
],
|
|
9479
|
+
name: "quoteExactInputSingle",
|
|
9480
|
+
outputs: [
|
|
9481
|
+
{ name: "amountOut", internalType: "uint256", type: "uint256" },
|
|
9482
|
+
{ name: "sqrtPriceX96After", internalType: "uint160", type: "uint160" },
|
|
9483
|
+
{
|
|
9484
|
+
name: "initializedTicksCrossed",
|
|
9485
|
+
internalType: "uint32",
|
|
9486
|
+
type: "uint32"
|
|
9487
|
+
},
|
|
9488
|
+
{ name: "gasEstimate", internalType: "uint256", type: "uint256" }
|
|
9489
|
+
],
|
|
9490
|
+
stateMutability: "nonpayable"
|
|
9491
|
+
},
|
|
9492
|
+
{
|
|
9493
|
+
type: "function",
|
|
9494
|
+
inputs: [
|
|
9495
|
+
{ name: "path", internalType: "bytes", type: "bytes" },
|
|
9496
|
+
{ name: "amountOut", internalType: "uint256", type: "uint256" }
|
|
9497
|
+
],
|
|
9498
|
+
name: "quoteExactOutput",
|
|
9499
|
+
outputs: [
|
|
9500
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
9501
|
+
{
|
|
9502
|
+
name: "sqrtPriceX96AfterList",
|
|
9503
|
+
internalType: "uint160[]",
|
|
9504
|
+
type: "uint160[]"
|
|
9505
|
+
},
|
|
9506
|
+
{
|
|
9507
|
+
name: "initializedTicksCrossedList",
|
|
9508
|
+
internalType: "uint32[]",
|
|
9509
|
+
type: "uint32[]"
|
|
9510
|
+
},
|
|
9511
|
+
{ name: "gasEstimate", internalType: "uint256", type: "uint256" }
|
|
9512
|
+
],
|
|
9513
|
+
stateMutability: "nonpayable"
|
|
9514
|
+
},
|
|
9515
|
+
{
|
|
9516
|
+
type: "function",
|
|
9517
|
+
inputs: [
|
|
9518
|
+
{
|
|
9519
|
+
name: "params",
|
|
9520
|
+
internalType: "struct IQuoterV2.QuoteExactOutputSingleParams",
|
|
9521
|
+
type: "tuple",
|
|
9522
|
+
components: [
|
|
9523
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
9524
|
+
{ name: "tokenOut", internalType: "address", type: "address" },
|
|
9525
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
9526
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
9527
|
+
{
|
|
9528
|
+
name: "sqrtPriceLimitX96",
|
|
9529
|
+
internalType: "uint160",
|
|
9530
|
+
type: "uint160"
|
|
9531
|
+
}
|
|
9532
|
+
]
|
|
9533
|
+
}
|
|
9534
|
+
],
|
|
9535
|
+
name: "quoteExactOutputSingle",
|
|
9536
|
+
outputs: [
|
|
9537
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" },
|
|
9538
|
+
{ name: "sqrtPriceX96After", internalType: "uint160", type: "uint160" },
|
|
9539
|
+
{
|
|
9540
|
+
name: "initializedTicksCrossed",
|
|
9541
|
+
internalType: "uint32",
|
|
9542
|
+
type: "uint32"
|
|
9543
|
+
},
|
|
9544
|
+
{ name: "gasEstimate", internalType: "uint256", type: "uint256" }
|
|
9545
|
+
],
|
|
9546
|
+
stateMutability: "nonpayable"
|
|
9547
|
+
}
|
|
9548
|
+
];
|
|
9549
|
+
var uniswapQuoterV2Address = {
|
|
9550
|
+
8453: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
9551
|
+
84532: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27"
|
|
9552
|
+
};
|
|
9553
|
+
var uniswapQuoterV2Config = {
|
|
9554
|
+
address: uniswapQuoterV2Address,
|
|
9555
|
+
abi: uniswapQuoterV2ABI
|
|
9556
|
+
};
|
|
9343
9557
|
var uniswapUniversalRouterABI = [
|
|
9344
9558
|
{
|
|
9345
9559
|
type: "function",
|
|
@@ -18513,6 +18727,7 @@ var chainConfigs2 = {
|
|
|
18513
18727
|
NONFUNGIBLE_POSITION_MANAGER: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
|
|
18514
18728
|
UNISWAP_SWAP_ROUTER: "0x2626664c2603336E57B271c5C0b26F421741e481",
|
|
18515
18729
|
UNISWAP_V3_FACTORY: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
|
|
18730
|
+
UNISWAP_QUOTER_V2: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
18516
18731
|
DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
|
|
18517
18732
|
PROXY_ADMIN: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
|
|
18518
18733
|
ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
|
|
@@ -18540,6 +18755,7 @@ var chainConfigs2 = {
|
|
|
18540
18755
|
NONFUNGIBLE_POSITION_MANAGER: "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",
|
|
18541
18756
|
UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
|
|
18542
18757
|
UNISWAP_V3_FACTORY: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
|
|
18758
|
+
UNISWAP_QUOTER_V2: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
|
|
18543
18759
|
DOPPLER_AIRLOCK: "0xa24E35a5d71d02a59b41E7c93567626302da1958",
|
|
18544
18760
|
PROXY_ADMIN: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
|
|
18545
18761
|
ZORA_RECIPIENT: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
|
|
@@ -18654,6 +18870,7 @@ var addresses2 = {
|
|
|
18654
18870
|
};
|
|
18655
18871
|
export {
|
|
18656
18872
|
PremintConfigVersion,
|
|
18873
|
+
autoSwapperABI,
|
|
18657
18874
|
buySupplyWithSwapRouterHookABI,
|
|
18658
18875
|
buySupplyWithSwapRouterHookAbiParameters,
|
|
18659
18876
|
buySupplyWithSwapRouterHookAddress,
|
|
@@ -18729,6 +18946,9 @@ export {
|
|
|
18729
18946
|
sponsoredSparksSpenderABI,
|
|
18730
18947
|
sponsoredSparksSpenderAddress,
|
|
18731
18948
|
sponsoredSparksSpenderConfig,
|
|
18949
|
+
uniswapQuoterV2ABI,
|
|
18950
|
+
uniswapQuoterV2Address,
|
|
18951
|
+
uniswapQuoterV2Config,
|
|
18732
18952
|
uniswapUniversalRouterABI,
|
|
18733
18953
|
uniswapUniversalRouterAddress,
|
|
18734
18954
|
uniswapUniversalRouterConfig,
|