damm-sdk 1.1.31-alpha.24 → 1.1.31-alpha.25
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/dist/index.cjs +48976 -41325
- package/dist/index.cjs.map +119 -56
- package/dist/index.js +220 -219
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/integrations/slipstream/slipstream.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -80171,224 +80171,6 @@ var position_manager_abi_default3 = [
|
|
|
80171
80171
|
{ type: "receive", stateMutability: "payable" }
|
|
80172
80172
|
];
|
|
80173
80173
|
|
|
80174
|
-
// src/integrations/slipstream/slipstream.ts
|
|
80175
|
-
var swapRouterInterface2 = new exports_ethers.utils.Interface(swap_router_abi_default2);
|
|
80176
|
-
var positionManagerInterface2 = new exports_ethers.utils.Interface(position_manager_abi_default3);
|
|
80177
|
-
var gaugeInterface = new exports_ethers.utils.Interface(gauge_abi_default);
|
|
80178
|
-
var RouterSwapExactInputSingleCalldata = ({
|
|
80179
|
-
tokenIn,
|
|
80180
|
-
tokenOut,
|
|
80181
|
-
tickSpacing,
|
|
80182
|
-
recipient,
|
|
80183
|
-
deadline,
|
|
80184
|
-
amountIn,
|
|
80185
|
-
amountOutMinimum,
|
|
80186
|
-
sqrtPriceLimitX96
|
|
80187
|
-
}) => {
|
|
80188
|
-
return swapRouterInterface2.encodeFunctionData("exactInputSingle", [
|
|
80189
|
-
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountIn, amountOutMinimum, sqrtPriceLimitX96]
|
|
80190
|
-
]);
|
|
80191
|
-
};
|
|
80192
|
-
var RouterSwapExactOutputSingleCalldata = ({
|
|
80193
|
-
tokenIn,
|
|
80194
|
-
tokenOut,
|
|
80195
|
-
tickSpacing,
|
|
80196
|
-
recipient,
|
|
80197
|
-
deadline,
|
|
80198
|
-
amountOut,
|
|
80199
|
-
amountInMaximum,
|
|
80200
|
-
sqrtPriceLimitX96
|
|
80201
|
-
}) => {
|
|
80202
|
-
return swapRouterInterface2.encodeFunctionData("exactOutputSingle", [
|
|
80203
|
-
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountOut, amountInMaximum, sqrtPriceLimitX96]
|
|
80204
|
-
]);
|
|
80205
|
-
};
|
|
80206
|
-
var slipstreamSwapExactInputSingleTrx = ({
|
|
80207
|
-
swapParams,
|
|
80208
|
-
swapRouter
|
|
80209
|
-
}) => {
|
|
80210
|
-
return createCall({
|
|
80211
|
-
to: swapRouter,
|
|
80212
|
-
data: RouterSwapExactInputSingleCalldata(swapParams),
|
|
80213
|
-
value: 0n,
|
|
80214
|
-
operation: 0
|
|
80215
|
-
});
|
|
80216
|
-
};
|
|
80217
|
-
var slipstreamSwapExactOutputSingleTrx = ({
|
|
80218
|
-
swapParams,
|
|
80219
|
-
swapRouter
|
|
80220
|
-
}) => {
|
|
80221
|
-
return createCall({
|
|
80222
|
-
to: swapRouter,
|
|
80223
|
-
data: RouterSwapExactOutputSingleCalldata(swapParams),
|
|
80224
|
-
value: 0n,
|
|
80225
|
-
operation: 0
|
|
80226
|
-
});
|
|
80227
|
-
};
|
|
80228
|
-
var SlipstreamMintPositionCalldata = ({
|
|
80229
|
-
token0,
|
|
80230
|
-
token1,
|
|
80231
|
-
tickSpacing,
|
|
80232
|
-
tickLower,
|
|
80233
|
-
tickUpper,
|
|
80234
|
-
amount0Desired,
|
|
80235
|
-
amount1Desired,
|
|
80236
|
-
amount0Min,
|
|
80237
|
-
amount1Min,
|
|
80238
|
-
recipient,
|
|
80239
|
-
deadline,
|
|
80240
|
-
sqrtPriceX96
|
|
80241
|
-
}) => {
|
|
80242
|
-
return positionManagerInterface2.encodeFunctionData("mint", [
|
|
80243
|
-
[
|
|
80244
|
-
token0,
|
|
80245
|
-
token1,
|
|
80246
|
-
tickSpacing,
|
|
80247
|
-
tickLower,
|
|
80248
|
-
tickUpper,
|
|
80249
|
-
amount0Desired,
|
|
80250
|
-
amount1Desired,
|
|
80251
|
-
amount0Min,
|
|
80252
|
-
amount1Min,
|
|
80253
|
-
recipient,
|
|
80254
|
-
deadline,
|
|
80255
|
-
sqrtPriceX96
|
|
80256
|
-
]
|
|
80257
|
-
]);
|
|
80258
|
-
};
|
|
80259
|
-
var slipstreamMintPositionTrx = ({
|
|
80260
|
-
mintParams,
|
|
80261
|
-
positionManager
|
|
80262
|
-
}) => {
|
|
80263
|
-
return createCall({
|
|
80264
|
-
to: positionManager,
|
|
80265
|
-
data: SlipstreamMintPositionCalldata(mintParams),
|
|
80266
|
-
value: 0n,
|
|
80267
|
-
operation: 0
|
|
80268
|
-
});
|
|
80269
|
-
};
|
|
80270
|
-
var SlipstreamIncreaseLiquidityCalldata = ({
|
|
80271
|
-
tokenId,
|
|
80272
|
-
amount0Desired,
|
|
80273
|
-
amount1Desired,
|
|
80274
|
-
amount0Min,
|
|
80275
|
-
amount1Min,
|
|
80276
|
-
deadline
|
|
80277
|
-
}) => {
|
|
80278
|
-
return positionManagerInterface2.encodeFunctionData("increaseLiquidity", [
|
|
80279
|
-
[tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline]
|
|
80280
|
-
]);
|
|
80281
|
-
};
|
|
80282
|
-
var slipstreamIncreaseLiquidityTrx = ({
|
|
80283
|
-
increaseParams,
|
|
80284
|
-
positionManager
|
|
80285
|
-
}) => {
|
|
80286
|
-
return createCall({
|
|
80287
|
-
to: positionManager,
|
|
80288
|
-
data: SlipstreamIncreaseLiquidityCalldata(increaseParams),
|
|
80289
|
-
value: 0n,
|
|
80290
|
-
operation: 0
|
|
80291
|
-
});
|
|
80292
|
-
};
|
|
80293
|
-
var SlipstreamDecreaseLiquidityCalldata = ({
|
|
80294
|
-
tokenId,
|
|
80295
|
-
liquidity,
|
|
80296
|
-
amount0Min,
|
|
80297
|
-
amount1Min,
|
|
80298
|
-
deadline
|
|
80299
|
-
}) => {
|
|
80300
|
-
return positionManagerInterface2.encodeFunctionData("decreaseLiquidity", [
|
|
80301
|
-
[tokenId, liquidity, amount0Min, amount1Min, deadline]
|
|
80302
|
-
]);
|
|
80303
|
-
};
|
|
80304
|
-
var slipstreamDecreaseLiquidityTrx = ({
|
|
80305
|
-
decreaseParams,
|
|
80306
|
-
positionManager
|
|
80307
|
-
}) => {
|
|
80308
|
-
return createCall({
|
|
80309
|
-
to: positionManager,
|
|
80310
|
-
data: SlipstreamDecreaseLiquidityCalldata(decreaseParams),
|
|
80311
|
-
value: 0n,
|
|
80312
|
-
operation: 0
|
|
80313
|
-
});
|
|
80314
|
-
};
|
|
80315
|
-
var SlipstreamBurnPositionCalldata = ({ tokenId }) => {
|
|
80316
|
-
return positionManagerInterface2.encodeFunctionData("burn", [[tokenId]]);
|
|
80317
|
-
};
|
|
80318
|
-
var slipstreamBurnPositionTrx = ({
|
|
80319
|
-
burnParams,
|
|
80320
|
-
positionManager
|
|
80321
|
-
}) => {
|
|
80322
|
-
return createCall({
|
|
80323
|
-
to: positionManager,
|
|
80324
|
-
data: SlipstreamBurnPositionCalldata(burnParams),
|
|
80325
|
-
value: 0n,
|
|
80326
|
-
operation: 0
|
|
80327
|
-
});
|
|
80328
|
-
};
|
|
80329
|
-
var SlipstreamCollectFeesCalldata = ({
|
|
80330
|
-
tokenId,
|
|
80331
|
-
recipient,
|
|
80332
|
-
amount0Max,
|
|
80333
|
-
amount1Max
|
|
80334
|
-
}) => {
|
|
80335
|
-
return positionManagerInterface2.encodeFunctionData("collect", [
|
|
80336
|
-
[tokenId, recipient, amount0Max, amount1Max]
|
|
80337
|
-
]);
|
|
80338
|
-
};
|
|
80339
|
-
var slipstreamCollectFeesTrx = ({
|
|
80340
|
-
collectParams,
|
|
80341
|
-
positionManager
|
|
80342
|
-
}) => {
|
|
80343
|
-
return createCall({
|
|
80344
|
-
to: positionManager,
|
|
80345
|
-
data: SlipstreamCollectFeesCalldata(collectParams),
|
|
80346
|
-
value: 0n,
|
|
80347
|
-
operation: 0
|
|
80348
|
-
});
|
|
80349
|
-
};
|
|
80350
|
-
var SlipstreamGaugeDepositCalldata = ({ tokenId }) => {
|
|
80351
|
-
return gaugeInterface.encodeFunctionData("deposit", [tokenId]);
|
|
80352
|
-
};
|
|
80353
|
-
var slipstreamGaugeDepositTrx = ({
|
|
80354
|
-
tokenId,
|
|
80355
|
-
gauge
|
|
80356
|
-
}) => {
|
|
80357
|
-
return createCall({
|
|
80358
|
-
to: gauge,
|
|
80359
|
-
data: SlipstreamGaugeDepositCalldata({ tokenId }),
|
|
80360
|
-
value: 0n,
|
|
80361
|
-
operation: 0
|
|
80362
|
-
});
|
|
80363
|
-
};
|
|
80364
|
-
var SlipstreamGaugeWithdrawCalldata = ({ tokenId }) => {
|
|
80365
|
-
return gaugeInterface.encodeFunctionData("withdraw", [tokenId]);
|
|
80366
|
-
};
|
|
80367
|
-
var slipstreamGaugeWithdrawTrx = ({
|
|
80368
|
-
tokenId,
|
|
80369
|
-
gauge
|
|
80370
|
-
}) => {
|
|
80371
|
-
return createCall({
|
|
80372
|
-
to: gauge,
|
|
80373
|
-
data: SlipstreamGaugeWithdrawCalldata({ tokenId }),
|
|
80374
|
-
value: 0n,
|
|
80375
|
-
operation: 0
|
|
80376
|
-
});
|
|
80377
|
-
};
|
|
80378
|
-
var SlipstreamGaugeGetRewardCalldata = ({ tokenId }) => {
|
|
80379
|
-
return gaugeInterface.encodeFunctionData("getReward", [tokenId]);
|
|
80380
|
-
};
|
|
80381
|
-
var slipstreamGaugeGetRewardTrx = ({
|
|
80382
|
-
tokenId,
|
|
80383
|
-
gauge
|
|
80384
|
-
}) => {
|
|
80385
|
-
return createCall({
|
|
80386
|
-
to: gauge,
|
|
80387
|
-
data: SlipstreamGaugeGetRewardCalldata({ tokenId }),
|
|
80388
|
-
value: 0n,
|
|
80389
|
-
operation: 0
|
|
80390
|
-
});
|
|
80391
|
-
};
|
|
80392
80174
|
// src/integrations/slipstream/gauge.abi.ts
|
|
80393
80175
|
var gauge_abi_default = [
|
|
80394
80176
|
{
|
|
@@ -80802,6 +80584,225 @@ var gauge_abi_default = [
|
|
|
80802
80584
|
stateMutability: "nonpayable"
|
|
80803
80585
|
}
|
|
80804
80586
|
];
|
|
80587
|
+
|
|
80588
|
+
// src/integrations/slipstream/slipstream.ts
|
|
80589
|
+
var swapRouterInterface2 = new exports_ethers.utils.Interface(swap_router_abi_default2);
|
|
80590
|
+
var positionManagerInterface2 = new exports_ethers.utils.Interface(position_manager_abi_default3);
|
|
80591
|
+
var gaugeInterface = new exports_ethers.utils.Interface(gauge_abi_default);
|
|
80592
|
+
var RouterSwapExactInputSingleCalldata = ({
|
|
80593
|
+
tokenIn,
|
|
80594
|
+
tokenOut,
|
|
80595
|
+
tickSpacing,
|
|
80596
|
+
recipient,
|
|
80597
|
+
deadline,
|
|
80598
|
+
amountIn,
|
|
80599
|
+
amountOutMinimum,
|
|
80600
|
+
sqrtPriceLimitX96
|
|
80601
|
+
}) => {
|
|
80602
|
+
return swapRouterInterface2.encodeFunctionData("exactInputSingle", [
|
|
80603
|
+
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountIn, amountOutMinimum, sqrtPriceLimitX96]
|
|
80604
|
+
]);
|
|
80605
|
+
};
|
|
80606
|
+
var RouterSwapExactOutputSingleCalldata = ({
|
|
80607
|
+
tokenIn,
|
|
80608
|
+
tokenOut,
|
|
80609
|
+
tickSpacing,
|
|
80610
|
+
recipient,
|
|
80611
|
+
deadline,
|
|
80612
|
+
amountOut,
|
|
80613
|
+
amountInMaximum,
|
|
80614
|
+
sqrtPriceLimitX96
|
|
80615
|
+
}) => {
|
|
80616
|
+
return swapRouterInterface2.encodeFunctionData("exactOutputSingle", [
|
|
80617
|
+
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountOut, amountInMaximum, sqrtPriceLimitX96]
|
|
80618
|
+
]);
|
|
80619
|
+
};
|
|
80620
|
+
var slipstreamSwapExactInputSingleTrx = ({
|
|
80621
|
+
swapParams,
|
|
80622
|
+
swapRouter
|
|
80623
|
+
}) => {
|
|
80624
|
+
return createCall({
|
|
80625
|
+
to: swapRouter,
|
|
80626
|
+
data: RouterSwapExactInputSingleCalldata(swapParams),
|
|
80627
|
+
value: 0n,
|
|
80628
|
+
operation: 0
|
|
80629
|
+
});
|
|
80630
|
+
};
|
|
80631
|
+
var slipstreamSwapExactOutputSingleTrx = ({
|
|
80632
|
+
swapParams,
|
|
80633
|
+
swapRouter
|
|
80634
|
+
}) => {
|
|
80635
|
+
return createCall({
|
|
80636
|
+
to: swapRouter,
|
|
80637
|
+
data: RouterSwapExactOutputSingleCalldata(swapParams),
|
|
80638
|
+
value: 0n,
|
|
80639
|
+
operation: 0
|
|
80640
|
+
});
|
|
80641
|
+
};
|
|
80642
|
+
var SlipstreamMintPositionCalldata = ({
|
|
80643
|
+
token0,
|
|
80644
|
+
token1,
|
|
80645
|
+
tickSpacing,
|
|
80646
|
+
tickLower,
|
|
80647
|
+
tickUpper,
|
|
80648
|
+
amount0Desired,
|
|
80649
|
+
amount1Desired,
|
|
80650
|
+
amount0Min,
|
|
80651
|
+
amount1Min,
|
|
80652
|
+
recipient,
|
|
80653
|
+
deadline,
|
|
80654
|
+
sqrtPriceX96
|
|
80655
|
+
}) => {
|
|
80656
|
+
return positionManagerInterface2.encodeFunctionData("mint", [
|
|
80657
|
+
[
|
|
80658
|
+
token0,
|
|
80659
|
+
token1,
|
|
80660
|
+
tickSpacing,
|
|
80661
|
+
tickLower,
|
|
80662
|
+
tickUpper,
|
|
80663
|
+
amount0Desired,
|
|
80664
|
+
amount1Desired,
|
|
80665
|
+
amount0Min,
|
|
80666
|
+
amount1Min,
|
|
80667
|
+
recipient,
|
|
80668
|
+
deadline,
|
|
80669
|
+
sqrtPriceX96
|
|
80670
|
+
]
|
|
80671
|
+
]);
|
|
80672
|
+
};
|
|
80673
|
+
var slipstreamMintPositionTrx = ({
|
|
80674
|
+
mintParams,
|
|
80675
|
+
positionManager
|
|
80676
|
+
}) => {
|
|
80677
|
+
return createCall({
|
|
80678
|
+
to: positionManager,
|
|
80679
|
+
data: SlipstreamMintPositionCalldata(mintParams),
|
|
80680
|
+
value: 0n,
|
|
80681
|
+
operation: 0
|
|
80682
|
+
});
|
|
80683
|
+
};
|
|
80684
|
+
var SlipstreamIncreaseLiquidityCalldata = ({
|
|
80685
|
+
tokenId,
|
|
80686
|
+
amount0Desired,
|
|
80687
|
+
amount1Desired,
|
|
80688
|
+
amount0Min,
|
|
80689
|
+
amount1Min,
|
|
80690
|
+
deadline
|
|
80691
|
+
}) => {
|
|
80692
|
+
return positionManagerInterface2.encodeFunctionData("increaseLiquidity", [
|
|
80693
|
+
[tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline]
|
|
80694
|
+
]);
|
|
80695
|
+
};
|
|
80696
|
+
var slipstreamIncreaseLiquidityTrx = ({
|
|
80697
|
+
increaseParams,
|
|
80698
|
+
positionManager
|
|
80699
|
+
}) => {
|
|
80700
|
+
return createCall({
|
|
80701
|
+
to: positionManager,
|
|
80702
|
+
data: SlipstreamIncreaseLiquidityCalldata(increaseParams),
|
|
80703
|
+
value: 0n,
|
|
80704
|
+
operation: 0
|
|
80705
|
+
});
|
|
80706
|
+
};
|
|
80707
|
+
var SlipstreamDecreaseLiquidityCalldata = ({
|
|
80708
|
+
tokenId,
|
|
80709
|
+
liquidity,
|
|
80710
|
+
amount0Min,
|
|
80711
|
+
amount1Min,
|
|
80712
|
+
deadline
|
|
80713
|
+
}) => {
|
|
80714
|
+
return positionManagerInterface2.encodeFunctionData("decreaseLiquidity", [
|
|
80715
|
+
[tokenId, liquidity, amount0Min, amount1Min, deadline]
|
|
80716
|
+
]);
|
|
80717
|
+
};
|
|
80718
|
+
var slipstreamDecreaseLiquidityTrx = ({
|
|
80719
|
+
decreaseParams,
|
|
80720
|
+
positionManager
|
|
80721
|
+
}) => {
|
|
80722
|
+
return createCall({
|
|
80723
|
+
to: positionManager,
|
|
80724
|
+
data: SlipstreamDecreaseLiquidityCalldata(decreaseParams),
|
|
80725
|
+
value: 0n,
|
|
80726
|
+
operation: 0
|
|
80727
|
+
});
|
|
80728
|
+
};
|
|
80729
|
+
var SlipstreamBurnPositionCalldata = ({ tokenId }) => {
|
|
80730
|
+
return positionManagerInterface2.encodeFunctionData("burn", [[tokenId]]);
|
|
80731
|
+
};
|
|
80732
|
+
var slipstreamBurnPositionTrx = ({
|
|
80733
|
+
burnParams,
|
|
80734
|
+
positionManager
|
|
80735
|
+
}) => {
|
|
80736
|
+
return createCall({
|
|
80737
|
+
to: positionManager,
|
|
80738
|
+
data: SlipstreamBurnPositionCalldata(burnParams),
|
|
80739
|
+
value: 0n,
|
|
80740
|
+
operation: 0
|
|
80741
|
+
});
|
|
80742
|
+
};
|
|
80743
|
+
var SlipstreamCollectFeesCalldata = ({
|
|
80744
|
+
tokenId,
|
|
80745
|
+
recipient,
|
|
80746
|
+
amount0Max,
|
|
80747
|
+
amount1Max
|
|
80748
|
+
}) => {
|
|
80749
|
+
return positionManagerInterface2.encodeFunctionData("collect", [
|
|
80750
|
+
[tokenId, recipient, amount0Max, amount1Max]
|
|
80751
|
+
]);
|
|
80752
|
+
};
|
|
80753
|
+
var slipstreamCollectFeesTrx = ({
|
|
80754
|
+
collectParams,
|
|
80755
|
+
positionManager
|
|
80756
|
+
}) => {
|
|
80757
|
+
return createCall({
|
|
80758
|
+
to: positionManager,
|
|
80759
|
+
data: SlipstreamCollectFeesCalldata(collectParams),
|
|
80760
|
+
value: 0n,
|
|
80761
|
+
operation: 0
|
|
80762
|
+
});
|
|
80763
|
+
};
|
|
80764
|
+
var SlipstreamGaugeDepositCalldata = ({ tokenId }) => {
|
|
80765
|
+
return gaugeInterface.encodeFunctionData("deposit", [tokenId]);
|
|
80766
|
+
};
|
|
80767
|
+
var slipstreamGaugeDepositTrx = ({
|
|
80768
|
+
tokenId,
|
|
80769
|
+
gauge
|
|
80770
|
+
}) => {
|
|
80771
|
+
return createCall({
|
|
80772
|
+
to: gauge,
|
|
80773
|
+
data: SlipstreamGaugeDepositCalldata({ tokenId }),
|
|
80774
|
+
value: 0n,
|
|
80775
|
+
operation: 0
|
|
80776
|
+
});
|
|
80777
|
+
};
|
|
80778
|
+
var SlipstreamGaugeWithdrawCalldata = ({ tokenId }) => {
|
|
80779
|
+
return gaugeInterface.encodeFunctionData("withdraw", [tokenId]);
|
|
80780
|
+
};
|
|
80781
|
+
var slipstreamGaugeWithdrawTrx = ({
|
|
80782
|
+
tokenId,
|
|
80783
|
+
gauge
|
|
80784
|
+
}) => {
|
|
80785
|
+
return createCall({
|
|
80786
|
+
to: gauge,
|
|
80787
|
+
data: SlipstreamGaugeWithdrawCalldata({ tokenId }),
|
|
80788
|
+
value: 0n,
|
|
80789
|
+
operation: 0
|
|
80790
|
+
});
|
|
80791
|
+
};
|
|
80792
|
+
var SlipstreamGaugeGetRewardCalldata = ({ tokenId }) => {
|
|
80793
|
+
return gaugeInterface.encodeFunctionData("getReward", [tokenId]);
|
|
80794
|
+
};
|
|
80795
|
+
var slipstreamGaugeGetRewardTrx = ({
|
|
80796
|
+
tokenId,
|
|
80797
|
+
gauge
|
|
80798
|
+
}) => {
|
|
80799
|
+
return createCall({
|
|
80800
|
+
to: gauge,
|
|
80801
|
+
data: SlipstreamGaugeGetRewardCalldata({ tokenId }),
|
|
80802
|
+
value: 0n,
|
|
80803
|
+
operation: 0
|
|
80804
|
+
});
|
|
80805
|
+
};
|
|
80805
80806
|
// src/integrations/morphoVault/morpho.vault.abi.ts
|
|
80806
80807
|
var morpho_vault_abi_default = [
|
|
80807
80808
|
{
|
|
@@ -85819,4 +85820,4 @@ export {
|
|
|
85819
85820
|
aave_pool_abi_default as AaveL1PoolAbi
|
|
85820
85821
|
};
|
|
85821
85822
|
|
|
85822
|
-
//# debugId=
|
|
85823
|
+
//# debugId=45C3ADCCBB542FED64756E2164756E21
|