@zoralabs/protocol-deployments 0.5.9 → 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 +19 -19
- package/CHANGELOG.md +13 -0
- package/LICENSE +21 -0
- 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 +589 -12
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +258 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +254 -6
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/generated/sparks.ts +2 -0
- package/src/generated/wagmi.ts +276 -10
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",
|
|
@@ -22,7 +114,8 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
22
114
|
internalType: "contract IZoraFactory",
|
|
23
115
|
type: "address"
|
|
24
116
|
},
|
|
25
|
-
{ name: "_swapRouter", internalType: "address", type: "address" }
|
|
117
|
+
{ name: "_swapRouter", internalType: "address", type: "address" },
|
|
118
|
+
{ name: "_poolManager", internalType: "address", type: "address" }
|
|
26
119
|
],
|
|
27
120
|
stateMutability: "nonpayable"
|
|
28
121
|
},
|
|
@@ -53,16 +146,29 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
53
146
|
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
54
147
|
stateMutability: "pure"
|
|
55
148
|
},
|
|
149
|
+
{
|
|
150
|
+
type: "function",
|
|
151
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
152
|
+
name: "unlockCallback",
|
|
153
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
154
|
+
stateMutability: "nonpayable"
|
|
155
|
+
},
|
|
56
156
|
{ type: "error", inputs: [], name: "AddressZero" },
|
|
57
157
|
{
|
|
58
158
|
type: "error",
|
|
59
159
|
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
60
160
|
name: "CoinBalanceNot0"
|
|
61
161
|
},
|
|
162
|
+
{
|
|
163
|
+
type: "error",
|
|
164
|
+
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
165
|
+
name: "CurrencyBalanceNot0"
|
|
166
|
+
},
|
|
62
167
|
{ type: "error", inputs: [], name: "Erc20NotReceived" },
|
|
63
168
|
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
64
169
|
{ type: "error", inputs: [], name: "InvalidSwapRouterCall" },
|
|
65
170
|
{ type: "error", inputs: [], name: "NotFactory" },
|
|
171
|
+
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
66
172
|
{
|
|
67
173
|
type: "error",
|
|
68
174
|
inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
|
|
@@ -70,7 +176,7 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
70
176
|
}
|
|
71
177
|
];
|
|
72
178
|
var buySupplyWithSwapRouterHookAddress = {
|
|
73
|
-
8453: "
|
|
179
|
+
8453: "0xd77038a7f400E8242d2916f7EB5741e689d4aE25",
|
|
74
180
|
84532: "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE"
|
|
75
181
|
};
|
|
76
182
|
var buySupplyWithSwapRouterHookConfig = {
|
|
@@ -1250,7 +1356,7 @@ var coinABI = [
|
|
|
1250
1356
|
{
|
|
1251
1357
|
type: "function",
|
|
1252
1358
|
inputs: [],
|
|
1253
|
-
name: "
|
|
1359
|
+
name: "dopplerFeeRecipient",
|
|
1254
1360
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
1255
1361
|
stateMutability: "view"
|
|
1256
1362
|
},
|
|
@@ -2717,7 +2823,7 @@ var coinV4ABI = [
|
|
|
2717
2823
|
{
|
|
2718
2824
|
type: "function",
|
|
2719
2825
|
inputs: [],
|
|
2720
|
-
name: "
|
|
2826
|
+
name: "dopplerFeeRecipient",
|
|
2721
2827
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2722
2828
|
stateMutability: "view"
|
|
2723
2829
|
},
|
|
@@ -5364,7 +5470,8 @@ var devBuySupplyWithSwapRouterHookABI = [
|
|
|
5364
5470
|
internalType: "contract IZoraFactory",
|
|
5365
5471
|
type: "address"
|
|
5366
5472
|
},
|
|
5367
|
-
{ name: "_swapRouter", internalType: "address", type: "address" }
|
|
5473
|
+
{ name: "_swapRouter", internalType: "address", type: "address" },
|
|
5474
|
+
{ name: "_poolManager", internalType: "address", type: "address" }
|
|
5368
5475
|
],
|
|
5369
5476
|
stateMutability: "nonpayable"
|
|
5370
5477
|
},
|
|
@@ -5395,16 +5502,29 @@ var devBuySupplyWithSwapRouterHookABI = [
|
|
|
5395
5502
|
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
5396
5503
|
stateMutability: "pure"
|
|
5397
5504
|
},
|
|
5505
|
+
{
|
|
5506
|
+
type: "function",
|
|
5507
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
5508
|
+
name: "unlockCallback",
|
|
5509
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
5510
|
+
stateMutability: "nonpayable"
|
|
5511
|
+
},
|
|
5398
5512
|
{ type: "error", inputs: [], name: "AddressZero" },
|
|
5399
5513
|
{
|
|
5400
5514
|
type: "error",
|
|
5401
5515
|
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
5402
5516
|
name: "CoinBalanceNot0"
|
|
5403
5517
|
},
|
|
5518
|
+
{
|
|
5519
|
+
type: "error",
|
|
5520
|
+
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
5521
|
+
name: "CurrencyBalanceNot0"
|
|
5522
|
+
},
|
|
5404
5523
|
{ type: "error", inputs: [], name: "Erc20NotReceived" },
|
|
5405
5524
|
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
5406
5525
|
{ type: "error", inputs: [], name: "InvalidSwapRouterCall" },
|
|
5407
5526
|
{ type: "error", inputs: [], name: "NotFactory" },
|
|
5527
|
+
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
5408
5528
|
{
|
|
5409
5529
|
type: "error",
|
|
5410
5530
|
inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
|
|
@@ -5412,7 +5532,7 @@ var devBuySupplyWithSwapRouterHookABI = [
|
|
|
5412
5532
|
}
|
|
5413
5533
|
];
|
|
5414
5534
|
var devBuySupplyWithSwapRouterHookAddress = {
|
|
5415
|
-
8453: "
|
|
5535
|
+
8453: "0x0a747629609b22E348d0ea9865fC2A5a04ED945d"
|
|
5416
5536
|
};
|
|
5417
5537
|
var devBuySupplyWithSwapRouterHookConfig = {
|
|
5418
5538
|
address: devBuySupplyWithSwapRouterHookAddress,
|
|
@@ -9312,6 +9432,128 @@ var sponsoredSparksSpenderConfig = {
|
|
|
9312
9432
|
address: sponsoredSparksSpenderAddress,
|
|
9313
9433
|
abi: sponsoredSparksSpenderABI
|
|
9314
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
|
+
};
|
|
9315
9557
|
var uniswapUniversalRouterABI = [
|
|
9316
9558
|
{
|
|
9317
9559
|
type: "function",
|
|
@@ -18485,6 +18727,7 @@ var chainConfigs2 = {
|
|
|
18485
18727
|
NONFUNGIBLE_POSITION_MANAGER: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
|
|
18486
18728
|
UNISWAP_SWAP_ROUTER: "0x2626664c2603336E57B271c5C0b26F421741e481",
|
|
18487
18729
|
UNISWAP_V3_FACTORY: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
|
|
18730
|
+
UNISWAP_QUOTER_V2: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
18488
18731
|
DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
|
|
18489
18732
|
PROXY_ADMIN: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
|
|
18490
18733
|
ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
|
|
@@ -18512,6 +18755,7 @@ var chainConfigs2 = {
|
|
|
18512
18755
|
NONFUNGIBLE_POSITION_MANAGER: "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",
|
|
18513
18756
|
UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
|
|
18514
18757
|
UNISWAP_V3_FACTORY: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
|
|
18758
|
+
UNISWAP_QUOTER_V2: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
|
|
18515
18759
|
DOPPLER_AIRLOCK: "0xa24E35a5d71d02a59b41E7c93567626302da1958",
|
|
18516
18760
|
PROXY_ADMIN: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
|
|
18517
18761
|
ZORA_RECIPIENT: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
|
|
@@ -18626,6 +18870,7 @@ var addresses2 = {
|
|
|
18626
18870
|
};
|
|
18627
18871
|
export {
|
|
18628
18872
|
PremintConfigVersion,
|
|
18873
|
+
autoSwapperABI,
|
|
18629
18874
|
buySupplyWithSwapRouterHookABI,
|
|
18630
18875
|
buySupplyWithSwapRouterHookAbiParameters,
|
|
18631
18876
|
buySupplyWithSwapRouterHookAddress,
|
|
@@ -18701,6 +18946,9 @@ export {
|
|
|
18701
18946
|
sponsoredSparksSpenderABI,
|
|
18702
18947
|
sponsoredSparksSpenderAddress,
|
|
18703
18948
|
sponsoredSparksSpenderConfig,
|
|
18949
|
+
uniswapQuoterV2ABI,
|
|
18950
|
+
uniswapQuoterV2Address,
|
|
18951
|
+
uniswapQuoterV2Config,
|
|
18704
18952
|
uniswapUniversalRouterABI,
|
|
18705
18953
|
uniswapUniversalRouterAddress,
|
|
18706
18954
|
uniswapUniversalRouterConfig,
|