damm-sdk 1.1.29-alpha.3 → 1.1.29-alpha.5
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 +1554 -60
- package/dist/index.cjs.map +8 -5
- package/dist/index.js +8325 -6314
- package/dist/index.js.map +25 -16
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/slipstream/index.d.ts +4 -0
- package/dist/integrations/slipstream/index.d.ts.map +1 -0
- package/dist/integrations/slipstream/position.manager.abi.d.ts +1020 -0
- package/dist/integrations/slipstream/position.manager.abi.d.ts.map +1 -0
- package/dist/integrations/slipstream/slipstream.d.ts +95 -0
- package/dist/integrations/slipstream/slipstream.d.ts.map +1 -0
- package/dist/integrations/slipstream/swap.router.abi.d.ts +440 -0
- package/dist/integrations/slipstream/swap.router.abi.d.ts.map +1 -0
- package/dist/integrations/uniswapV3/uniswap.v3.d.ts +26 -26
- package/dist/integrations/uniswapV3/uniswap.v3.d.ts.map +1 -1
- package/dist/integrations/uniswapV4/uniswap.v4.d.ts +9 -9
- package/dist/integrations/uniswapV4/uniswap.v4.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/integrations/index.ts +1 -0
- package/src/integrations/slipstream/index.ts +3 -0
- package/src/integrations/slipstream/position.manager.abi.ts +885 -0
- package/src/integrations/slipstream/slipstream.ts +284 -0
- package/src/integrations/slipstream/swap.router.abi.ts +414 -0
- package/src/integrations/uniswapV3/uniswap.v3.ts +39 -39
- package/src/integrations/uniswapV4/uniswap.v4.ts +10 -10
- package/src/lib/contractsRegistry.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44300,16 +44300,36 @@ __export(exports_src, {
|
|
|
44300
44300
|
withdrawCollateralMorphoBlueTrx: () => withdrawCollateralMorphoBlueTrx,
|
|
44301
44301
|
updateTotalAssetsLifespanTrx: () => updateTotalAssetsLifespanTrx,
|
|
44302
44302
|
updateOrderTrx: () => updateOrderTrx,
|
|
44303
|
+
uniswapV4SwapTrx: () => uniswapV4SwapTrx,
|
|
44304
|
+
uniswapV4FinalizeActions: () => uniswapV4FinalizeActions,
|
|
44305
|
+
uniswapV4AddTakePair: () => uniswapV4AddTakePair,
|
|
44306
|
+
uniswapV4AddSettlePair: () => uniswapV4AddSettlePair,
|
|
44307
|
+
uniswapV4AddMintPosition: () => uniswapV4AddMintPosition,
|
|
44308
|
+
uniswapV4AddIncreaseLiquidity: () => uniswapV4AddIncreaseLiquidity,
|
|
44309
|
+
uniswapV4AddDecreaseLiquidity: () => uniswapV4AddDecreaseLiquidity,
|
|
44310
|
+
uniswapV4AddCollectFees: () => uniswapV4AddCollectFees,
|
|
44311
|
+
uniswapV4AddCloseCurrency: () => uniswapV4AddCloseCurrency,
|
|
44312
|
+
uniswapV3SwapExactOutputSingleTrx: () => uniswapV3SwapExactOutputSingleTrx,
|
|
44313
|
+
uniswapV3SwapExactInputSingleTrx: () => uniswapV3SwapExactInputSingleTrx,
|
|
44314
|
+
uniswapV3MintPositionTrx: () => uniswapV3MintPositionTrx,
|
|
44315
|
+
uniswapV3IncreaseLiquidityTrx: () => uniswapV3IncreaseLiquidityTrx,
|
|
44316
|
+
uniswapV3DecreaseLiquidityTrx: () => uniswapV3DecreaseLiquidityTrx,
|
|
44317
|
+
uniswapV3CollectFeesTrx: () => uniswapV3CollectFeesTrx,
|
|
44318
|
+
uniswapV3BurnPositionTrx: () => uniswapV3BurnPositionTrx,
|
|
44303
44319
|
transferNativeEth: () => transferNativeEth,
|
|
44304
44320
|
transferFromERC20Trx: () => transferFromERC20Trx,
|
|
44305
44321
|
transferERC20Trx: () => transferERC20Trx,
|
|
44306
|
-
swapTrxV4: () => swapTrxV4,
|
|
44307
44322
|
swapOwner: () => swapOwner,
|
|
44308
|
-
swapExactOutputSingleTrx: () => swapExactOutputSingleTrx,
|
|
44309
|
-
swapExactInputSingleTrx: () => swapExactInputSingleTrx,
|
|
44310
44323
|
supplyToAaveV3Trx: () => supplyToAaveV3Trx,
|
|
44311
44324
|
supplyMorphoBlueTrx: () => supplyMorphoBlueTrx,
|
|
44312
44325
|
supplyCollateralMorphoBlueTrx: () => supplyCollateralMorphoBlueTrx,
|
|
44326
|
+
slipstreamSwapExactOutputSingleTrx: () => slipstreamSwapExactOutputSingleTrx,
|
|
44327
|
+
slipstreamSwapExactInputSingleTrx: () => slipstreamSwapExactInputSingleTrx,
|
|
44328
|
+
slipstreamMintPositionTrx: () => slipstreamMintPositionTrx,
|
|
44329
|
+
slipstreamIncreaseLiquidityTrx: () => slipstreamIncreaseLiquidityTrx,
|
|
44330
|
+
slipstreamDecreaseLiquidityTrx: () => slipstreamDecreaseLiquidityTrx,
|
|
44331
|
+
slipstreamCollectFeesTrx: () => slipstreamCollectFeesTrx,
|
|
44332
|
+
slipstreamBurnPositionTrx: () => slipstreamBurnPositionTrx,
|
|
44313
44333
|
simulateOrThrow: () => simulateOrThrow,
|
|
44314
44334
|
simulateGnosisTrx: () => simulateGnosisTrx,
|
|
44315
44335
|
simulateAndExecuteGnosisTrx: () => simulateAndExecuteGnosisTrx,
|
|
@@ -44321,16 +44341,13 @@ __export(exports_src, {
|
|
|
44321
44341
|
repayToLendleTrx: () => repayToLendleTrx,
|
|
44322
44342
|
repayToAaveV3Trx: () => repayToAaveV3Trx,
|
|
44323
44343
|
repayMorphoBlueTrx: () => repayMorphoBlueTrx,
|
|
44324
|
-
mintPositionTrx: () => mintPositionTrx,
|
|
44325
44344
|
maxApproveERC20Trx: () => maxApproveERC20Trx,
|
|
44326
44345
|
lagoonV1VaultAbi: () => vault_abi_default,
|
|
44327
44346
|
lagoonV1SiloAbi: () => silo_abi_default,
|
|
44328
44347
|
lagoonV1FactoryAbi: () => factory_abi_default,
|
|
44329
|
-
increaseLiquidityTrx: () => increaseLiquidityTrx,
|
|
44330
44348
|
gnosisTrx: () => gnosisTrx,
|
|
44331
44349
|
getGnosisTrxSimulationResult: () => getGnosisTrxSimulationResult,
|
|
44332
44350
|
getAddressOrThrow: () => getAddressOrThrow,
|
|
44333
|
-
finalizeActionsV4: () => finalizeActionsV4,
|
|
44334
44351
|
executeTrx: () => executeTrx,
|
|
44335
44352
|
executeNextTx: () => executeNextTx,
|
|
44336
44353
|
executeGnosisTrx: () => executeGnosisTrx,
|
|
@@ -44339,15 +44356,12 @@ __export(exports_src, {
|
|
|
44339
44356
|
execTransactionWithDelay: () => execTransactionWithDelay,
|
|
44340
44357
|
execTransactionFromModuleTrx: () => execTransactionFromModuleTrx,
|
|
44341
44358
|
depositToLendleTrx: () => depositToLendleTrx,
|
|
44342
|
-
decreaseLiquidityTrx: () => decreaseLiquidityTrx,
|
|
44343
44359
|
createVaultProxyTrx: () => createVaultProxyTrx,
|
|
44344
44360
|
createOrderTrx: () => createOrderTrx,
|
|
44345
44361
|
createCall: () => createCall,
|
|
44346
|
-
collectFeesTrx: () => collectFeesTrx,
|
|
44347
44362
|
claimFundingFeesTrx: () => claimFundingFeesTrx,
|
|
44348
44363
|
cancelOrderTrx: () => cancelOrderTrx,
|
|
44349
44364
|
calculateDeterministicVaultAddress: () => calculateDeterministicVaultAddress,
|
|
44350
|
-
burnPositionTrx: () => burnPositionTrx,
|
|
44351
44365
|
borrowMorphoBlueTrx: () => borrowMorphoBlueTrx,
|
|
44352
44366
|
borrowFromLendleTrx: () => borrowFromLendleTrx,
|
|
44353
44367
|
borrowFromAaveV3Trx: () => borrowFromAaveV3Trx,
|
|
@@ -44355,13 +44369,6 @@ __export(exports_src, {
|
|
|
44355
44369
|
approveTokenThroughPermit2: () => approveTokenThroughPermit2,
|
|
44356
44370
|
approveERC20Trx: () => approveERC20Trx,
|
|
44357
44371
|
addToVaultWhitelistTrx: () => addToVaultWhitelistTrx,
|
|
44358
|
-
addTakePairV4: () => addTakePairV4,
|
|
44359
|
-
addSettlePairV4: () => addSettlePairV4,
|
|
44360
|
-
addMintPositionV4: () => addMintPositionV4,
|
|
44361
|
-
addIncreaseLiquidityV4: () => addIncreaseLiquidityV4,
|
|
44362
|
-
addDecreaseLiquidityV4: () => addDecreaseLiquidityV4,
|
|
44363
|
-
addCollectFeesV4: () => addCollectFeesV4,
|
|
44364
|
-
addCloseCurrencyV4: () => addCloseCurrencyV4,
|
|
44365
44372
|
ZodiacRolesAbi: () => zodiac_roles_abi_default,
|
|
44366
44373
|
ZodiacDelayAbi: () => zodiac_delay_abi_default,
|
|
44367
44374
|
ZERO_ADDRESS: () => ZERO_ADDRESS,
|
|
@@ -44378,10 +44385,19 @@ __export(exports_src, {
|
|
|
44378
44385
|
UniswapV4PoolAbi: () => pool_manager_abi_default,
|
|
44379
44386
|
UniswapV4Pool: () => UniswapV4Pool,
|
|
44380
44387
|
UniswapV4Planner: () => UniswapV4Planner,
|
|
44388
|
+
UniswapV3Router02SwapExactOutputSingleCalldata: () => UniswapV3Router02SwapExactOutputSingleCalldata,
|
|
44389
|
+
UniswapV3Router02SwapExactInputCalldata: () => UniswapV3Router02SwapExactInputCalldata,
|
|
44381
44390
|
UniswapV3Router02Abi: () => swap_router_02_abi_default,
|
|
44391
|
+
UniswapV3Router01SwapExactOutputSingleCalldata: () => UniswapV3Router01SwapExactOutputSingleCalldata,
|
|
44392
|
+
UniswapV3Router01SwapExactInputSingleCalldata: () => UniswapV3Router01SwapExactInputSingleCalldata,
|
|
44382
44393
|
UniswapV3Router01Abi: () => swap_router_01_abi_default,
|
|
44383
44394
|
UniswapV3PositionManagerAbi: () => position_manager_abi_default,
|
|
44384
44395
|
UniswapV3PoolAbi: () => pool_abi_default,
|
|
44396
|
+
UniswapV3MintPositionCalldata: () => UniswapV3MintPositionCalldata,
|
|
44397
|
+
UniswapV3IncreaseLiquidityCalldata: () => UniswapV3IncreaseLiquidityCalldata,
|
|
44398
|
+
UniswapV3DecreaseLiquidityCalldata: () => UniswapV3DecreaseLiquidityCalldata,
|
|
44399
|
+
UniswapV3CollectFeesCalldata: () => UniswapV3CollectFeesCalldata,
|
|
44400
|
+
UniswapV3BurnPositionCalldata: () => UniswapV3BurnPositionCalldata,
|
|
44385
44401
|
USDT_ARB: () => USDT_ARB,
|
|
44386
44402
|
USDCe_ARB: () => USDCe_ARB,
|
|
44387
44403
|
USDC_ARB: () => USDC_ARB,
|
|
@@ -44395,14 +44411,19 @@ __export(exports_src, {
|
|
|
44395
44411
|
SupplyToAaveV3L1Calldata: () => SupplyToAaveV3L1Calldata,
|
|
44396
44412
|
SupplyMorphoBlueCalldata: () => SupplyMorphoBlueCalldata,
|
|
44397
44413
|
SupplyCollateralMorphoBlueCalldata: () => SupplyCollateralMorphoBlueCalldata,
|
|
44414
|
+
SlipstreamRouterAbi: () => swap_router_abi_default2,
|
|
44415
|
+
SlipstreamPositionManagerAbi: () => position_manager_abi_default3,
|
|
44416
|
+
SlipstreamMintPositionCalldata: () => SlipstreamMintPositionCalldata,
|
|
44417
|
+
SlipstreamIncreaseLiquidityCalldata: () => SlipstreamIncreaseLiquidityCalldata,
|
|
44418
|
+
SlipstreamDecreaseLiquidityCalldata: () => SlipstreamDecreaseLiquidityCalldata,
|
|
44419
|
+
SlipstreamCollectFeesCalldata: () => SlipstreamCollectFeesCalldata,
|
|
44420
|
+
SlipstreamBurnPositionCalldata: () => SlipstreamBurnPositionCalldata,
|
|
44398
44421
|
SafeMultiSendAbi: () => multisend_abi_default,
|
|
44399
44422
|
SafeL2Abi: () => safe_L2_abi_default,
|
|
44400
44423
|
SafeAbi: () => safe_abi_default,
|
|
44401
44424
|
SENTINEL_ADDRESS: () => SENTINEL_ADDRESS,
|
|
44402
|
-
|
|
44403
|
-
|
|
44404
|
-
Router01SwapExactOutputSingleCalldata: () => Router01SwapExactOutputSingleCalldata,
|
|
44405
|
-
Router01SwapExactInputSingleCalldata: () => Router01SwapExactInputSingleCalldata,
|
|
44425
|
+
RouterSwapExactOutputSingleCalldata: () => RouterSwapExactOutputSingleCalldata,
|
|
44426
|
+
RouterSwapExactInputSingleCalldata: () => RouterSwapExactInputSingleCalldata,
|
|
44406
44427
|
RevokeFromVaultWhitelistCalldata: () => RevokeFromVaultWhitelistCalldata,
|
|
44407
44428
|
RepayToLendleCalldata: () => RepayToLendleCalldata,
|
|
44408
44429
|
RepayToAaveV3L1Calldata: () => RepayToAaveV3L1Calldata,
|
|
@@ -44413,9 +44434,7 @@ __export(exports_src, {
|
|
|
44413
44434
|
NextTxCalldata: () => NextTxCalldata,
|
|
44414
44435
|
MultisendBuilder: () => MultisendBuilder,
|
|
44415
44436
|
MorphoBlueAbi: () => morpho_blue_abi_default,
|
|
44416
|
-
MintPositionCalldata: () => MintPositionCalldata,
|
|
44417
44437
|
LendlePoolAbi: () => lendle_pool_abi_default,
|
|
44418
|
-
IncreaseLiquidityCalldata: () => IncreaseLiquidityCalldata,
|
|
44419
44438
|
GMX_EXCHANGE_ROUTER_ARB: () => GMX_EXCHANGE_ROUTER_ARB,
|
|
44420
44439
|
GMXExchangeRouterAbi: () => exchange_router_abi_default,
|
|
44421
44440
|
Erc20Abi: () => erc20_abi_default,
|
|
@@ -44423,17 +44442,14 @@ __export(exports_src, {
|
|
|
44423
44442
|
DepositToLendleCalldata: () => DepositToLendleCalldata,
|
|
44424
44443
|
DelayedTransactionCalldata: () => DelayedTransactionCalldata,
|
|
44425
44444
|
DecreasePositionSwapType: () => DecreasePositionSwapType,
|
|
44426
|
-
DecreaseLiquidityCalldata: () => DecreaseLiquidityCalldata,
|
|
44427
44445
|
DELEGATE_CALL_OP_CODE: () => DELEGATE_CALL_OP_CODE,
|
|
44428
44446
|
DAI_ARB: () => DAI_ARB,
|
|
44429
44447
|
CreateVaultProxyCalldata: () => CreateVaultProxyCalldata,
|
|
44430
44448
|
CreateOrderCalldata: () => CreateOrderCalldata,
|
|
44431
44449
|
Commands: () => Commands,
|
|
44432
|
-
CollectFeesCalldata: () => CollectFeesCalldata,
|
|
44433
44450
|
ClaimFundingFeesCalldata: () => ClaimFundingFeesCalldata,
|
|
44434
44451
|
CancelOrderCalldata: () => CancelOrderCalldata,
|
|
44435
44452
|
CALL_OP_CODE: () => CALL_OP_CODE,
|
|
44436
|
-
BurnPositionCalldata: () => BurnPositionCalldata,
|
|
44437
44453
|
BorrowMorphoBlueCalldata: () => BorrowMorphoBlueCalldata,
|
|
44438
44454
|
BorrowFromLendleCalldata: () => BorrowFromLendleCalldata,
|
|
44439
44455
|
BorrowFromAaveV3L1Calldata: () => BorrowFromAaveV3L1Calldata,
|
|
@@ -53283,7 +53299,7 @@ var contractsRegistry_default = {
|
|
|
53283
53299
|
zodiac: {
|
|
53284
53300
|
rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
|
|
53285
53301
|
moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
|
|
53286
|
-
delayModule: "
|
|
53302
|
+
delayModule: "0xd54895B1121A2eE3f37b502F507631FA1331BED6",
|
|
53287
53303
|
multisendUnwrapper: "0x93B7fCbc63ED8a3a24B59e1C3e6649D50B7427c0"
|
|
53288
53304
|
},
|
|
53289
53305
|
slipstream: {
|
|
@@ -57272,7 +57288,7 @@ var position_manager_abi_default = [
|
|
|
57272
57288
|
var swapRouter01Interface = new exports_ethers.utils.Interface(swap_router_01_abi_default);
|
|
57273
57289
|
var swapRouter02Interface = new exports_ethers.utils.Interface(swap_router_02_abi_default);
|
|
57274
57290
|
var positionManagerInterface = new exports_ethers.utils.Interface(position_manager_abi_default);
|
|
57275
|
-
var
|
|
57291
|
+
var UniswapV3Router01SwapExactInputSingleCalldata = ({
|
|
57276
57292
|
tokenIn,
|
|
57277
57293
|
tokenOut,
|
|
57278
57294
|
fee,
|
|
@@ -57286,7 +57302,7 @@ var Router01SwapExactInputSingleCalldata = ({
|
|
|
57286
57302
|
[tokenIn, tokenOut, fee, recipient, deadline, amountIn, amountOutMinimum, sqrtPriceLimitX96]
|
|
57287
57303
|
]);
|
|
57288
57304
|
};
|
|
57289
|
-
var
|
|
57305
|
+
var UniswapV3Router01SwapExactOutputSingleCalldata = ({
|
|
57290
57306
|
tokenIn,
|
|
57291
57307
|
tokenOut,
|
|
57292
57308
|
fee,
|
|
@@ -57300,7 +57316,7 @@ var Router01SwapExactOutputSingleCalldata = ({
|
|
|
57300
57316
|
[tokenIn, tokenOut, fee, recipient, deadline, amountOut, amountInMaximum, sqrtPriceLimitX96]
|
|
57301
57317
|
]);
|
|
57302
57318
|
};
|
|
57303
|
-
var
|
|
57319
|
+
var UniswapV3Router02SwapExactOutputSingleCalldata = ({
|
|
57304
57320
|
tokenIn,
|
|
57305
57321
|
tokenOut,
|
|
57306
57322
|
fee,
|
|
@@ -57313,7 +57329,7 @@ var Router02SwapExactOutputSingleCalldata = ({
|
|
|
57313
57329
|
[tokenIn, tokenOut, fee, recipient, amountOut, amountInMaximum, sqrtPriceLimitX96]
|
|
57314
57330
|
]);
|
|
57315
57331
|
};
|
|
57316
|
-
var
|
|
57332
|
+
var UniswapV3Router02SwapExactInputCalldata = ({
|
|
57317
57333
|
tokenIn,
|
|
57318
57334
|
tokenOut,
|
|
57319
57335
|
fee,
|
|
@@ -57326,29 +57342,29 @@ var Router02SwapExactInputCalldata = ({
|
|
|
57326
57342
|
[tokenIn, tokenOut, fee, recipient, amountIn, amountOutMinimum, sqrtPriceLimitX96]
|
|
57327
57343
|
]);
|
|
57328
57344
|
};
|
|
57329
|
-
var
|
|
57345
|
+
var uniswapV3SwapExactInputSingleTrx = ({
|
|
57330
57346
|
swapParams,
|
|
57331
57347
|
swapRouter
|
|
57332
57348
|
}) => {
|
|
57333
57349
|
return createCall({
|
|
57334
57350
|
to: swapRouter,
|
|
57335
|
-
data: "deadline" in swapParams ?
|
|
57351
|
+
data: "deadline" in swapParams ? UniswapV3Router01SwapExactInputSingleCalldata(swapParams) : UniswapV3Router02SwapExactInputCalldata(swapParams),
|
|
57336
57352
|
value: 0n,
|
|
57337
57353
|
operation: 0
|
|
57338
57354
|
});
|
|
57339
57355
|
};
|
|
57340
|
-
var
|
|
57356
|
+
var uniswapV3SwapExactOutputSingleTrx = ({
|
|
57341
57357
|
swapParams,
|
|
57342
57358
|
swapRouter
|
|
57343
57359
|
}) => {
|
|
57344
57360
|
return createCall({
|
|
57345
57361
|
to: swapRouter,
|
|
57346
|
-
data: "deadline" in swapParams ?
|
|
57362
|
+
data: "deadline" in swapParams ? UniswapV3Router01SwapExactOutputSingleCalldata(swapParams) : UniswapV3Router02SwapExactOutputSingleCalldata(swapParams),
|
|
57347
57363
|
value: 0n,
|
|
57348
57364
|
operation: 0
|
|
57349
57365
|
});
|
|
57350
57366
|
};
|
|
57351
|
-
var
|
|
57367
|
+
var UniswapV3MintPositionCalldata = ({
|
|
57352
57368
|
token0,
|
|
57353
57369
|
token1,
|
|
57354
57370
|
fee,
|
|
@@ -57377,18 +57393,18 @@ var MintPositionCalldata = ({
|
|
|
57377
57393
|
]
|
|
57378
57394
|
]);
|
|
57379
57395
|
};
|
|
57380
|
-
var
|
|
57396
|
+
var uniswapV3MintPositionTrx = ({
|
|
57381
57397
|
mintParams,
|
|
57382
57398
|
positionManager
|
|
57383
57399
|
}) => {
|
|
57384
57400
|
return createCall({
|
|
57385
57401
|
to: positionManager,
|
|
57386
|
-
data:
|
|
57402
|
+
data: UniswapV3MintPositionCalldata(mintParams),
|
|
57387
57403
|
value: 0n,
|
|
57388
57404
|
operation: 0
|
|
57389
57405
|
});
|
|
57390
57406
|
};
|
|
57391
|
-
var
|
|
57407
|
+
var UniswapV3IncreaseLiquidityCalldata = ({
|
|
57392
57408
|
tokenId,
|
|
57393
57409
|
amount0Desired,
|
|
57394
57410
|
amount1Desired,
|
|
@@ -57400,18 +57416,18 @@ var IncreaseLiquidityCalldata = ({
|
|
|
57400
57416
|
[tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline]
|
|
57401
57417
|
]);
|
|
57402
57418
|
};
|
|
57403
|
-
var
|
|
57419
|
+
var uniswapV3IncreaseLiquidityTrx = ({
|
|
57404
57420
|
increaseParams,
|
|
57405
57421
|
positionManager
|
|
57406
57422
|
}) => {
|
|
57407
57423
|
return createCall({
|
|
57408
57424
|
to: positionManager,
|
|
57409
|
-
data:
|
|
57425
|
+
data: UniswapV3IncreaseLiquidityCalldata(increaseParams),
|
|
57410
57426
|
value: 0n,
|
|
57411
57427
|
operation: 0
|
|
57412
57428
|
});
|
|
57413
57429
|
};
|
|
57414
|
-
var
|
|
57430
|
+
var UniswapV3DecreaseLiquidityCalldata = ({
|
|
57415
57431
|
tokenId,
|
|
57416
57432
|
liquidity,
|
|
57417
57433
|
amount0Min,
|
|
@@ -57422,32 +57438,32 @@ var DecreaseLiquidityCalldata = ({
|
|
|
57422
57438
|
[tokenId, liquidity, amount0Min, amount1Min, deadline]
|
|
57423
57439
|
]);
|
|
57424
57440
|
};
|
|
57425
|
-
var
|
|
57441
|
+
var uniswapV3DecreaseLiquidityTrx = ({
|
|
57426
57442
|
decreaseParams,
|
|
57427
57443
|
positionManager
|
|
57428
57444
|
}) => {
|
|
57429
57445
|
return createCall({
|
|
57430
57446
|
to: positionManager,
|
|
57431
|
-
data:
|
|
57447
|
+
data: UniswapV3DecreaseLiquidityCalldata(decreaseParams),
|
|
57432
57448
|
value: 0n,
|
|
57433
57449
|
operation: 0
|
|
57434
57450
|
});
|
|
57435
57451
|
};
|
|
57436
|
-
var
|
|
57452
|
+
var UniswapV3BurnPositionCalldata = ({ tokenId }) => {
|
|
57437
57453
|
return positionManagerInterface.encodeFunctionData("burn", [[tokenId]]);
|
|
57438
57454
|
};
|
|
57439
|
-
var
|
|
57455
|
+
var uniswapV3BurnPositionTrx = ({
|
|
57440
57456
|
burnParams,
|
|
57441
57457
|
positionManager
|
|
57442
57458
|
}) => {
|
|
57443
57459
|
return createCall({
|
|
57444
57460
|
to: positionManager,
|
|
57445
|
-
data:
|
|
57461
|
+
data: UniswapV3BurnPositionCalldata(burnParams),
|
|
57446
57462
|
value: 0n,
|
|
57447
57463
|
operation: 0
|
|
57448
57464
|
});
|
|
57449
57465
|
};
|
|
57450
|
-
var
|
|
57466
|
+
var UniswapV3CollectFeesCalldata = ({
|
|
57451
57467
|
tokenId,
|
|
57452
57468
|
recipient,
|
|
57453
57469
|
amount0Max,
|
|
@@ -57457,13 +57473,13 @@ var CollectFeesCalldata = ({
|
|
|
57457
57473
|
[tokenId, recipient, amount0Max, amount1Max]
|
|
57458
57474
|
]);
|
|
57459
57475
|
};
|
|
57460
|
-
var
|
|
57476
|
+
var uniswapV3CollectFeesTrx = ({
|
|
57461
57477
|
collectParams,
|
|
57462
57478
|
positionManager
|
|
57463
57479
|
}) => {
|
|
57464
57480
|
return createCall({
|
|
57465
57481
|
to: positionManager,
|
|
57466
|
-
data:
|
|
57482
|
+
data: UniswapV3CollectFeesCalldata(collectParams),
|
|
57467
57483
|
value: 0n,
|
|
57468
57484
|
operation: 0
|
|
57469
57485
|
});
|
|
@@ -69077,7 +69093,7 @@ var SwapExactInputSingleCalldataV4 = ({
|
|
|
69077
69093
|
const inputs = [exports_ethers.utils.defaultAbiCoder.encode(["bytes", "bytes[]"], [actions, params])];
|
|
69078
69094
|
return swapRouterInterface.encodeFunctionData("execute", [commands, inputs, deadline]);
|
|
69079
69095
|
};
|
|
69080
|
-
function
|
|
69096
|
+
function uniswapV4AddMintPosition(planner, { pool, tickLower, tickUpper, liquidity, recipient, amount0Max, amount1Max, hookData = "0x" }) {
|
|
69081
69097
|
return planner.addAction(Actions2.MINT_POSITION, [
|
|
69082
69098
|
pool.poolKey,
|
|
69083
69099
|
tickLower.toString(),
|
|
@@ -69089,10 +69105,10 @@ function addMintPositionV4(planner, { pool, tickLower, tickUpper, liquidity, rec
|
|
|
69089
69105
|
hookData
|
|
69090
69106
|
]);
|
|
69091
69107
|
}
|
|
69092
|
-
function
|
|
69108
|
+
function uniswapV4AddSettlePair(planner, pool, safeAddress) {
|
|
69093
69109
|
return planner.addAction(Actions2.SETTLE_PAIR, [toAddress(pool.currency0), toAddress(pool.currency1)]).addAction(Actions2.SWEEP, [toAddress(pool.currency0), safeAddress]).addAction(Actions2.SWEEP, [toAddress(pool.currency1), safeAddress]);
|
|
69094
69110
|
}
|
|
69095
|
-
function
|
|
69111
|
+
function uniswapV4FinalizeActions(planner, deadline, positionManagerAddress, value) {
|
|
69096
69112
|
return createCall({
|
|
69097
69113
|
to: positionManagerAddress,
|
|
69098
69114
|
data: V4PositionManager.encodeModifyLiquidities(planner.finalize(), deadline),
|
|
@@ -69100,7 +69116,7 @@ function finalizeActionsV4(planner, deadline, positionManagerAddress, value) {
|
|
|
69100
69116
|
operation: 0
|
|
69101
69117
|
});
|
|
69102
69118
|
}
|
|
69103
|
-
function
|
|
69119
|
+
function uniswapV4AddIncreaseLiquidity(planner, { tokenId, liquidity, amount0Max, amount1Max, hookData = "0x" }) {
|
|
69104
69120
|
return planner.addAction(Actions2.INCREASE_LIQUIDITY, [
|
|
69105
69121
|
tokenId.toString(),
|
|
69106
69122
|
liquidity.toString(),
|
|
@@ -69109,7 +69125,7 @@ function addIncreaseLiquidityV4(planner, { tokenId, liquidity, amount0Max, amoun
|
|
|
69109
69125
|
hookData
|
|
69110
69126
|
]);
|
|
69111
69127
|
}
|
|
69112
|
-
function
|
|
69128
|
+
function uniswapV4AddDecreaseLiquidity(planner, { tokenId, liquidity, amount0Min, amount1Min, hookData = "0x" }) {
|
|
69113
69129
|
return planner.addAction(Actions2.DECREASE_LIQUIDITY, [
|
|
69114
69130
|
tokenId.toString(),
|
|
69115
69131
|
liquidity.toString(),
|
|
@@ -69118,14 +69134,14 @@ function addDecreaseLiquidityV4(planner, { tokenId, liquidity, amount0Min, amoun
|
|
|
69118
69134
|
hookData
|
|
69119
69135
|
]);
|
|
69120
69136
|
}
|
|
69121
|
-
function
|
|
69137
|
+
function uniswapV4AddTakePair(planner, pool, recipient) {
|
|
69122
69138
|
return planner.addAction(Actions2.TAKE_PAIR, [toAddress(pool.currency0), toAddress(pool.currency1), recipient]);
|
|
69123
69139
|
}
|
|
69124
|
-
function
|
|
69140
|
+
function uniswapV4AddCloseCurrency(planner, pool) {
|
|
69125
69141
|
return planner.addAction(Actions2.CLOSE_CURRENCY, [toAddress(pool.currency1)]).addAction(Actions2.CLOSE_CURRENCY, [toAddress(pool.currency0)]);
|
|
69126
69142
|
}
|
|
69127
|
-
function
|
|
69128
|
-
return
|
|
69143
|
+
function uniswapV4AddCollectFees(planner, { tokenId, hookData = "0x" }) {
|
|
69144
|
+
return uniswapV4AddDecreaseLiquidity(planner, {
|
|
69129
69145
|
tokenId,
|
|
69130
69146
|
liquidity: import_jsbi6.default.BigInt(0),
|
|
69131
69147
|
amount0Min: import_jsbi6.default.BigInt(0),
|
|
@@ -69134,7 +69150,7 @@ function addCollectFeesV4(planner, { tokenId, hookData = "0x" }) {
|
|
|
69134
69150
|
hookData
|
|
69135
69151
|
});
|
|
69136
69152
|
}
|
|
69137
|
-
var
|
|
69153
|
+
var uniswapV4SwapTrx = ({
|
|
69138
69154
|
swapParams,
|
|
69139
69155
|
swapRouter,
|
|
69140
69156
|
value = 0n
|
|
@@ -79287,6 +79303,1484 @@ var transferFromERC20Trx = ({
|
|
|
79287
79303
|
operation: 0
|
|
79288
79304
|
});
|
|
79289
79305
|
};
|
|
79306
|
+
// src/integrations/slipstream/swap.router.abi.ts
|
|
79307
|
+
var swap_router_abi_default2 = [
|
|
79308
|
+
{
|
|
79309
|
+
type: "constructor",
|
|
79310
|
+
inputs: [
|
|
79311
|
+
{
|
|
79312
|
+
name: "_factory",
|
|
79313
|
+
type: "address",
|
|
79314
|
+
internalType: "address"
|
|
79315
|
+
},
|
|
79316
|
+
{ name: "_WETH9", type: "address", internalType: "address" }
|
|
79317
|
+
],
|
|
79318
|
+
stateMutability: "nonpayable"
|
|
79319
|
+
},
|
|
79320
|
+
{
|
|
79321
|
+
name: "WETH9",
|
|
79322
|
+
type: "function",
|
|
79323
|
+
inputs: [],
|
|
79324
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
79325
|
+
stateMutability: "view"
|
|
79326
|
+
},
|
|
79327
|
+
{
|
|
79328
|
+
name: "exactInput",
|
|
79329
|
+
type: "function",
|
|
79330
|
+
inputs: [
|
|
79331
|
+
{
|
|
79332
|
+
name: "params",
|
|
79333
|
+
type: "tuple",
|
|
79334
|
+
components: [
|
|
79335
|
+
{
|
|
79336
|
+
name: "path",
|
|
79337
|
+
type: "bytes",
|
|
79338
|
+
internalType: "bytes"
|
|
79339
|
+
},
|
|
79340
|
+
{
|
|
79341
|
+
name: "recipient",
|
|
79342
|
+
type: "address",
|
|
79343
|
+
internalType: "address"
|
|
79344
|
+
},
|
|
79345
|
+
{
|
|
79346
|
+
name: "deadline",
|
|
79347
|
+
type: "uint256",
|
|
79348
|
+
internalType: "uint256"
|
|
79349
|
+
},
|
|
79350
|
+
{
|
|
79351
|
+
name: "amountIn",
|
|
79352
|
+
type: "uint256",
|
|
79353
|
+
internalType: "uint256"
|
|
79354
|
+
},
|
|
79355
|
+
{
|
|
79356
|
+
name: "amountOutMinimum",
|
|
79357
|
+
type: "uint256",
|
|
79358
|
+
internalType: "uint256"
|
|
79359
|
+
}
|
|
79360
|
+
],
|
|
79361
|
+
internalType: "struct ISwapRouter.ExactInputParams"
|
|
79362
|
+
}
|
|
79363
|
+
],
|
|
79364
|
+
outputs: [
|
|
79365
|
+
{
|
|
79366
|
+
name: "amountOut",
|
|
79367
|
+
type: "uint256",
|
|
79368
|
+
internalType: "uint256"
|
|
79369
|
+
}
|
|
79370
|
+
],
|
|
79371
|
+
stateMutability: "payable"
|
|
79372
|
+
},
|
|
79373
|
+
{
|
|
79374
|
+
name: "exactInputSingle",
|
|
79375
|
+
type: "function",
|
|
79376
|
+
inputs: [
|
|
79377
|
+
{
|
|
79378
|
+
name: "params",
|
|
79379
|
+
type: "tuple",
|
|
79380
|
+
components: [
|
|
79381
|
+
{
|
|
79382
|
+
name: "tokenIn",
|
|
79383
|
+
type: "address",
|
|
79384
|
+
internalType: "address"
|
|
79385
|
+
},
|
|
79386
|
+
{
|
|
79387
|
+
name: "tokenOut",
|
|
79388
|
+
type: "address",
|
|
79389
|
+
internalType: "address"
|
|
79390
|
+
},
|
|
79391
|
+
{
|
|
79392
|
+
name: "tickSpacing",
|
|
79393
|
+
type: "int24",
|
|
79394
|
+
internalType: "int24"
|
|
79395
|
+
},
|
|
79396
|
+
{
|
|
79397
|
+
name: "recipient",
|
|
79398
|
+
type: "address",
|
|
79399
|
+
internalType: "address"
|
|
79400
|
+
},
|
|
79401
|
+
{
|
|
79402
|
+
name: "deadline",
|
|
79403
|
+
type: "uint256",
|
|
79404
|
+
internalType: "uint256"
|
|
79405
|
+
},
|
|
79406
|
+
{
|
|
79407
|
+
name: "amountIn",
|
|
79408
|
+
type: "uint256",
|
|
79409
|
+
internalType: "uint256"
|
|
79410
|
+
},
|
|
79411
|
+
{
|
|
79412
|
+
name: "amountOutMinimum",
|
|
79413
|
+
type: "uint256",
|
|
79414
|
+
internalType: "uint256"
|
|
79415
|
+
},
|
|
79416
|
+
{
|
|
79417
|
+
name: "sqrtPriceLimitX96",
|
|
79418
|
+
type: "uint160",
|
|
79419
|
+
internalType: "uint160"
|
|
79420
|
+
}
|
|
79421
|
+
],
|
|
79422
|
+
internalType: "struct ISwapRouter.ExactInputSingleParams"
|
|
79423
|
+
}
|
|
79424
|
+
],
|
|
79425
|
+
outputs: [
|
|
79426
|
+
{
|
|
79427
|
+
name: "amountOut",
|
|
79428
|
+
type: "uint256",
|
|
79429
|
+
internalType: "uint256"
|
|
79430
|
+
}
|
|
79431
|
+
],
|
|
79432
|
+
stateMutability: "payable"
|
|
79433
|
+
},
|
|
79434
|
+
{
|
|
79435
|
+
name: "exactOutput",
|
|
79436
|
+
type: "function",
|
|
79437
|
+
inputs: [
|
|
79438
|
+
{
|
|
79439
|
+
name: "params",
|
|
79440
|
+
type: "tuple",
|
|
79441
|
+
components: [
|
|
79442
|
+
{
|
|
79443
|
+
name: "path",
|
|
79444
|
+
type: "bytes",
|
|
79445
|
+
internalType: "bytes"
|
|
79446
|
+
},
|
|
79447
|
+
{
|
|
79448
|
+
name: "recipient",
|
|
79449
|
+
type: "address",
|
|
79450
|
+
internalType: "address"
|
|
79451
|
+
},
|
|
79452
|
+
{
|
|
79453
|
+
name: "deadline",
|
|
79454
|
+
type: "uint256",
|
|
79455
|
+
internalType: "uint256"
|
|
79456
|
+
},
|
|
79457
|
+
{
|
|
79458
|
+
name: "amountOut",
|
|
79459
|
+
type: "uint256",
|
|
79460
|
+
internalType: "uint256"
|
|
79461
|
+
},
|
|
79462
|
+
{
|
|
79463
|
+
name: "amountInMaximum",
|
|
79464
|
+
type: "uint256",
|
|
79465
|
+
internalType: "uint256"
|
|
79466
|
+
}
|
|
79467
|
+
],
|
|
79468
|
+
internalType: "struct ISwapRouter.ExactOutputParams"
|
|
79469
|
+
}
|
|
79470
|
+
],
|
|
79471
|
+
outputs: [{ name: "amountIn", type: "uint256", internalType: "uint256" }],
|
|
79472
|
+
stateMutability: "payable"
|
|
79473
|
+
},
|
|
79474
|
+
{
|
|
79475
|
+
name: "exactOutputSingle",
|
|
79476
|
+
type: "function",
|
|
79477
|
+
inputs: [
|
|
79478
|
+
{
|
|
79479
|
+
name: "params",
|
|
79480
|
+
type: "tuple",
|
|
79481
|
+
components: [
|
|
79482
|
+
{
|
|
79483
|
+
name: "tokenIn",
|
|
79484
|
+
type: "address",
|
|
79485
|
+
internalType: "address"
|
|
79486
|
+
},
|
|
79487
|
+
{
|
|
79488
|
+
name: "tokenOut",
|
|
79489
|
+
type: "address",
|
|
79490
|
+
internalType: "address"
|
|
79491
|
+
},
|
|
79492
|
+
{
|
|
79493
|
+
name: "tickSpacing",
|
|
79494
|
+
type: "int24",
|
|
79495
|
+
internalType: "int24"
|
|
79496
|
+
},
|
|
79497
|
+
{
|
|
79498
|
+
name: "recipient",
|
|
79499
|
+
type: "address",
|
|
79500
|
+
internalType: "address"
|
|
79501
|
+
},
|
|
79502
|
+
{
|
|
79503
|
+
name: "deadline",
|
|
79504
|
+
type: "uint256",
|
|
79505
|
+
internalType: "uint256"
|
|
79506
|
+
},
|
|
79507
|
+
{
|
|
79508
|
+
name: "amountOut",
|
|
79509
|
+
type: "uint256",
|
|
79510
|
+
internalType: "uint256"
|
|
79511
|
+
},
|
|
79512
|
+
{
|
|
79513
|
+
name: "amountInMaximum",
|
|
79514
|
+
type: "uint256",
|
|
79515
|
+
internalType: "uint256"
|
|
79516
|
+
},
|
|
79517
|
+
{
|
|
79518
|
+
name: "sqrtPriceLimitX96",
|
|
79519
|
+
type: "uint160",
|
|
79520
|
+
internalType: "uint160"
|
|
79521
|
+
}
|
|
79522
|
+
],
|
|
79523
|
+
internalType: "struct ISwapRouter.ExactOutputSingleParams"
|
|
79524
|
+
}
|
|
79525
|
+
],
|
|
79526
|
+
outputs: [{ name: "amountIn", type: "uint256", internalType: "uint256" }],
|
|
79527
|
+
stateMutability: "payable"
|
|
79528
|
+
},
|
|
79529
|
+
{
|
|
79530
|
+
name: "factory",
|
|
79531
|
+
type: "function",
|
|
79532
|
+
inputs: [],
|
|
79533
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
79534
|
+
stateMutability: "view"
|
|
79535
|
+
},
|
|
79536
|
+
{
|
|
79537
|
+
name: "multicall",
|
|
79538
|
+
type: "function",
|
|
79539
|
+
inputs: [{ name: "data", type: "bytes[]", internalType: "bytes[]" }],
|
|
79540
|
+
outputs: [{ name: "results", type: "bytes[]", internalType: "bytes[]" }],
|
|
79541
|
+
stateMutability: "payable"
|
|
79542
|
+
},
|
|
79543
|
+
{
|
|
79544
|
+
name: "refundETH",
|
|
79545
|
+
type: "function",
|
|
79546
|
+
inputs: [],
|
|
79547
|
+
outputs: [],
|
|
79548
|
+
stateMutability: "payable"
|
|
79549
|
+
},
|
|
79550
|
+
{
|
|
79551
|
+
name: "selfPermit",
|
|
79552
|
+
type: "function",
|
|
79553
|
+
inputs: [
|
|
79554
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
79555
|
+
{ name: "value", type: "uint256", internalType: "uint256" },
|
|
79556
|
+
{
|
|
79557
|
+
name: "deadline",
|
|
79558
|
+
type: "uint256",
|
|
79559
|
+
internalType: "uint256"
|
|
79560
|
+
},
|
|
79561
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
79562
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
79563
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
79564
|
+
],
|
|
79565
|
+
outputs: [],
|
|
79566
|
+
stateMutability: "payable"
|
|
79567
|
+
},
|
|
79568
|
+
{
|
|
79569
|
+
name: "selfPermitAllowed",
|
|
79570
|
+
type: "function",
|
|
79571
|
+
inputs: [
|
|
79572
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
79573
|
+
{ name: "nonce", type: "uint256", internalType: "uint256" },
|
|
79574
|
+
{ name: "expiry", type: "uint256", internalType: "uint256" },
|
|
79575
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
79576
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
79577
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
79578
|
+
],
|
|
79579
|
+
outputs: [],
|
|
79580
|
+
stateMutability: "payable"
|
|
79581
|
+
},
|
|
79582
|
+
{
|
|
79583
|
+
name: "selfPermitAllowedIfNecessary",
|
|
79584
|
+
type: "function",
|
|
79585
|
+
inputs: [
|
|
79586
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
79587
|
+
{ name: "nonce", type: "uint256", internalType: "uint256" },
|
|
79588
|
+
{ name: "expiry", type: "uint256", internalType: "uint256" },
|
|
79589
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
79590
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
79591
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
79592
|
+
],
|
|
79593
|
+
outputs: [],
|
|
79594
|
+
stateMutability: "payable"
|
|
79595
|
+
},
|
|
79596
|
+
{
|
|
79597
|
+
name: "selfPermitIfNecessary",
|
|
79598
|
+
type: "function",
|
|
79599
|
+
inputs: [
|
|
79600
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
79601
|
+
{ name: "value", type: "uint256", internalType: "uint256" },
|
|
79602
|
+
{
|
|
79603
|
+
name: "deadline",
|
|
79604
|
+
type: "uint256",
|
|
79605
|
+
internalType: "uint256"
|
|
79606
|
+
},
|
|
79607
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
79608
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
79609
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
79610
|
+
],
|
|
79611
|
+
outputs: [],
|
|
79612
|
+
stateMutability: "payable"
|
|
79613
|
+
},
|
|
79614
|
+
{
|
|
79615
|
+
name: "sweepToken",
|
|
79616
|
+
type: "function",
|
|
79617
|
+
inputs: [
|
|
79618
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
79619
|
+
{
|
|
79620
|
+
name: "amountMinimum",
|
|
79621
|
+
type: "uint256",
|
|
79622
|
+
internalType: "uint256"
|
|
79623
|
+
},
|
|
79624
|
+
{
|
|
79625
|
+
name: "recipient",
|
|
79626
|
+
type: "address",
|
|
79627
|
+
internalType: "address"
|
|
79628
|
+
}
|
|
79629
|
+
],
|
|
79630
|
+
outputs: [],
|
|
79631
|
+
stateMutability: "payable"
|
|
79632
|
+
},
|
|
79633
|
+
{
|
|
79634
|
+
name: "sweepTokenWithFee",
|
|
79635
|
+
type: "function",
|
|
79636
|
+
inputs: [
|
|
79637
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
79638
|
+
{
|
|
79639
|
+
name: "amountMinimum",
|
|
79640
|
+
type: "uint256",
|
|
79641
|
+
internalType: "uint256"
|
|
79642
|
+
},
|
|
79643
|
+
{
|
|
79644
|
+
name: "recipient",
|
|
79645
|
+
type: "address",
|
|
79646
|
+
internalType: "address"
|
|
79647
|
+
},
|
|
79648
|
+
{ name: "feeBips", type: "uint256", internalType: "uint256" },
|
|
79649
|
+
{
|
|
79650
|
+
name: "feeRecipient",
|
|
79651
|
+
type: "address",
|
|
79652
|
+
internalType: "address"
|
|
79653
|
+
}
|
|
79654
|
+
],
|
|
79655
|
+
outputs: [],
|
|
79656
|
+
stateMutability: "payable"
|
|
79657
|
+
},
|
|
79658
|
+
{
|
|
79659
|
+
name: "uniswapV3SwapCallback",
|
|
79660
|
+
type: "function",
|
|
79661
|
+
inputs: [
|
|
79662
|
+
{
|
|
79663
|
+
name: "amount0Delta",
|
|
79664
|
+
type: "int256",
|
|
79665
|
+
internalType: "int256"
|
|
79666
|
+
},
|
|
79667
|
+
{
|
|
79668
|
+
name: "amount1Delta",
|
|
79669
|
+
type: "int256",
|
|
79670
|
+
internalType: "int256"
|
|
79671
|
+
},
|
|
79672
|
+
{ name: "_data", type: "bytes", internalType: "bytes" }
|
|
79673
|
+
],
|
|
79674
|
+
outputs: [],
|
|
79675
|
+
stateMutability: "nonpayable"
|
|
79676
|
+
},
|
|
79677
|
+
{
|
|
79678
|
+
name: "unwrapWETH9",
|
|
79679
|
+
type: "function",
|
|
79680
|
+
inputs: [
|
|
79681
|
+
{
|
|
79682
|
+
name: "amountMinimum",
|
|
79683
|
+
type: "uint256",
|
|
79684
|
+
internalType: "uint256"
|
|
79685
|
+
},
|
|
79686
|
+
{
|
|
79687
|
+
name: "recipient",
|
|
79688
|
+
type: "address",
|
|
79689
|
+
internalType: "address"
|
|
79690
|
+
}
|
|
79691
|
+
],
|
|
79692
|
+
outputs: [],
|
|
79693
|
+
stateMutability: "payable"
|
|
79694
|
+
},
|
|
79695
|
+
{
|
|
79696
|
+
name: "unwrapWETH9WithFee",
|
|
79697
|
+
type: "function",
|
|
79698
|
+
inputs: [
|
|
79699
|
+
{
|
|
79700
|
+
name: "amountMinimum",
|
|
79701
|
+
type: "uint256",
|
|
79702
|
+
internalType: "uint256"
|
|
79703
|
+
},
|
|
79704
|
+
{
|
|
79705
|
+
name: "recipient",
|
|
79706
|
+
type: "address",
|
|
79707
|
+
internalType: "address"
|
|
79708
|
+
},
|
|
79709
|
+
{ name: "feeBips", type: "uint256", internalType: "uint256" },
|
|
79710
|
+
{
|
|
79711
|
+
name: "feeRecipient",
|
|
79712
|
+
type: "address",
|
|
79713
|
+
internalType: "address"
|
|
79714
|
+
}
|
|
79715
|
+
],
|
|
79716
|
+
outputs: [],
|
|
79717
|
+
stateMutability: "payable"
|
|
79718
|
+
},
|
|
79719
|
+
{ type: "receive", stateMutability: "payable" }
|
|
79720
|
+
];
|
|
79721
|
+
|
|
79722
|
+
// src/integrations/slipstream/position.manager.abi.ts
|
|
79723
|
+
var position_manager_abi_default3 = [
|
|
79724
|
+
{
|
|
79725
|
+
type: "constructor",
|
|
79726
|
+
inputs: [
|
|
79727
|
+
{
|
|
79728
|
+
name: "_factory",
|
|
79729
|
+
type: "address",
|
|
79730
|
+
internalType: "address"
|
|
79731
|
+
},
|
|
79732
|
+
{ name: "_WETH9", type: "address", internalType: "address" },
|
|
79733
|
+
{
|
|
79734
|
+
name: "_tokenDescriptor",
|
|
79735
|
+
type: "address",
|
|
79736
|
+
internalType: "address"
|
|
79737
|
+
},
|
|
79738
|
+
{ name: "name", type: "string", internalType: "string" },
|
|
79739
|
+
{ name: "symbol", type: "string", internalType: "string" }
|
|
79740
|
+
],
|
|
79741
|
+
stateMutability: "nonpayable"
|
|
79742
|
+
},
|
|
79743
|
+
{
|
|
79744
|
+
name: "Approval",
|
|
79745
|
+
type: "event",
|
|
79746
|
+
inputs: [
|
|
79747
|
+
{
|
|
79748
|
+
name: "owner",
|
|
79749
|
+
type: "address",
|
|
79750
|
+
indexed: true,
|
|
79751
|
+
internalType: "address"
|
|
79752
|
+
},
|
|
79753
|
+
{
|
|
79754
|
+
name: "approved",
|
|
79755
|
+
type: "address",
|
|
79756
|
+
indexed: true,
|
|
79757
|
+
internalType: "address"
|
|
79758
|
+
},
|
|
79759
|
+
{
|
|
79760
|
+
name: "tokenId",
|
|
79761
|
+
type: "uint256",
|
|
79762
|
+
indexed: true,
|
|
79763
|
+
internalType: "uint256"
|
|
79764
|
+
}
|
|
79765
|
+
],
|
|
79766
|
+
anonymous: false
|
|
79767
|
+
},
|
|
79768
|
+
{
|
|
79769
|
+
name: "ApprovalForAll",
|
|
79770
|
+
type: "event",
|
|
79771
|
+
inputs: [
|
|
79772
|
+
{
|
|
79773
|
+
name: "owner",
|
|
79774
|
+
type: "address",
|
|
79775
|
+
indexed: true,
|
|
79776
|
+
internalType: "address"
|
|
79777
|
+
},
|
|
79778
|
+
{
|
|
79779
|
+
name: "operator",
|
|
79780
|
+
type: "address",
|
|
79781
|
+
indexed: true,
|
|
79782
|
+
internalType: "address"
|
|
79783
|
+
},
|
|
79784
|
+
{
|
|
79785
|
+
name: "approved",
|
|
79786
|
+
type: "bool",
|
|
79787
|
+
indexed: false,
|
|
79788
|
+
internalType: "bool"
|
|
79789
|
+
}
|
|
79790
|
+
],
|
|
79791
|
+
anonymous: false
|
|
79792
|
+
},
|
|
79793
|
+
{
|
|
79794
|
+
name: "BatchMetadataUpdate",
|
|
79795
|
+
type: "event",
|
|
79796
|
+
inputs: [
|
|
79797
|
+
{
|
|
79798
|
+
name: "_fromTokenId",
|
|
79799
|
+
type: "uint256",
|
|
79800
|
+
indexed: false,
|
|
79801
|
+
internalType: "uint256"
|
|
79802
|
+
},
|
|
79803
|
+
{
|
|
79804
|
+
name: "_toTokenId",
|
|
79805
|
+
type: "uint256",
|
|
79806
|
+
indexed: false,
|
|
79807
|
+
internalType: "uint256"
|
|
79808
|
+
}
|
|
79809
|
+
],
|
|
79810
|
+
anonymous: false
|
|
79811
|
+
},
|
|
79812
|
+
{
|
|
79813
|
+
name: "Collect",
|
|
79814
|
+
type: "event",
|
|
79815
|
+
inputs: [
|
|
79816
|
+
{
|
|
79817
|
+
name: "tokenId",
|
|
79818
|
+
type: "uint256",
|
|
79819
|
+
indexed: true,
|
|
79820
|
+
internalType: "uint256"
|
|
79821
|
+
},
|
|
79822
|
+
{
|
|
79823
|
+
name: "recipient",
|
|
79824
|
+
type: "address",
|
|
79825
|
+
indexed: false,
|
|
79826
|
+
internalType: "address"
|
|
79827
|
+
},
|
|
79828
|
+
{
|
|
79829
|
+
name: "amount0",
|
|
79830
|
+
type: "uint256",
|
|
79831
|
+
indexed: false,
|
|
79832
|
+
internalType: "uint256"
|
|
79833
|
+
},
|
|
79834
|
+
{
|
|
79835
|
+
name: "amount1",
|
|
79836
|
+
type: "uint256",
|
|
79837
|
+
indexed: false,
|
|
79838
|
+
internalType: "uint256"
|
|
79839
|
+
}
|
|
79840
|
+
],
|
|
79841
|
+
anonymous: false
|
|
79842
|
+
},
|
|
79843
|
+
{
|
|
79844
|
+
name: "DecreaseLiquidity",
|
|
79845
|
+
type: "event",
|
|
79846
|
+
inputs: [
|
|
79847
|
+
{
|
|
79848
|
+
name: "tokenId",
|
|
79849
|
+
type: "uint256",
|
|
79850
|
+
indexed: true,
|
|
79851
|
+
internalType: "uint256"
|
|
79852
|
+
},
|
|
79853
|
+
{
|
|
79854
|
+
name: "liquidity",
|
|
79855
|
+
type: "uint128",
|
|
79856
|
+
indexed: false,
|
|
79857
|
+
internalType: "uint128"
|
|
79858
|
+
},
|
|
79859
|
+
{
|
|
79860
|
+
name: "amount0",
|
|
79861
|
+
type: "uint256",
|
|
79862
|
+
indexed: false,
|
|
79863
|
+
internalType: "uint256"
|
|
79864
|
+
},
|
|
79865
|
+
{
|
|
79866
|
+
name: "amount1",
|
|
79867
|
+
type: "uint256",
|
|
79868
|
+
indexed: false,
|
|
79869
|
+
internalType: "uint256"
|
|
79870
|
+
}
|
|
79871
|
+
],
|
|
79872
|
+
anonymous: false
|
|
79873
|
+
},
|
|
79874
|
+
{
|
|
79875
|
+
name: "IncreaseLiquidity",
|
|
79876
|
+
type: "event",
|
|
79877
|
+
inputs: [
|
|
79878
|
+
{
|
|
79879
|
+
name: "tokenId",
|
|
79880
|
+
type: "uint256",
|
|
79881
|
+
indexed: true,
|
|
79882
|
+
internalType: "uint256"
|
|
79883
|
+
},
|
|
79884
|
+
{
|
|
79885
|
+
name: "liquidity",
|
|
79886
|
+
type: "uint128",
|
|
79887
|
+
indexed: false,
|
|
79888
|
+
internalType: "uint128"
|
|
79889
|
+
},
|
|
79890
|
+
{
|
|
79891
|
+
name: "amount0",
|
|
79892
|
+
type: "uint256",
|
|
79893
|
+
indexed: false,
|
|
79894
|
+
internalType: "uint256"
|
|
79895
|
+
},
|
|
79896
|
+
{
|
|
79897
|
+
name: "amount1",
|
|
79898
|
+
type: "uint256",
|
|
79899
|
+
indexed: false,
|
|
79900
|
+
internalType: "uint256"
|
|
79901
|
+
}
|
|
79902
|
+
],
|
|
79903
|
+
anonymous: false
|
|
79904
|
+
},
|
|
79905
|
+
{
|
|
79906
|
+
name: "MetadataUpdate",
|
|
79907
|
+
type: "event",
|
|
79908
|
+
inputs: [
|
|
79909
|
+
{
|
|
79910
|
+
name: "_tokenId",
|
|
79911
|
+
type: "uint256",
|
|
79912
|
+
indexed: false,
|
|
79913
|
+
internalType: "uint256"
|
|
79914
|
+
}
|
|
79915
|
+
],
|
|
79916
|
+
anonymous: false
|
|
79917
|
+
},
|
|
79918
|
+
{
|
|
79919
|
+
name: "TokenDescriptorChanged",
|
|
79920
|
+
type: "event",
|
|
79921
|
+
inputs: [
|
|
79922
|
+
{
|
|
79923
|
+
name: "tokenDescriptor",
|
|
79924
|
+
type: "address",
|
|
79925
|
+
indexed: true,
|
|
79926
|
+
internalType: "address"
|
|
79927
|
+
}
|
|
79928
|
+
],
|
|
79929
|
+
anonymous: false
|
|
79930
|
+
},
|
|
79931
|
+
{
|
|
79932
|
+
name: "Transfer",
|
|
79933
|
+
type: "event",
|
|
79934
|
+
inputs: [
|
|
79935
|
+
{
|
|
79936
|
+
name: "from",
|
|
79937
|
+
type: "address",
|
|
79938
|
+
indexed: true,
|
|
79939
|
+
internalType: "address"
|
|
79940
|
+
},
|
|
79941
|
+
{
|
|
79942
|
+
name: "to",
|
|
79943
|
+
type: "address",
|
|
79944
|
+
indexed: true,
|
|
79945
|
+
internalType: "address"
|
|
79946
|
+
},
|
|
79947
|
+
{
|
|
79948
|
+
name: "tokenId",
|
|
79949
|
+
type: "uint256",
|
|
79950
|
+
indexed: true,
|
|
79951
|
+
internalType: "uint256"
|
|
79952
|
+
}
|
|
79953
|
+
],
|
|
79954
|
+
anonymous: false
|
|
79955
|
+
},
|
|
79956
|
+
{
|
|
79957
|
+
name: "TransferOwnership",
|
|
79958
|
+
type: "event",
|
|
79959
|
+
inputs: [
|
|
79960
|
+
{
|
|
79961
|
+
name: "owner",
|
|
79962
|
+
type: "address",
|
|
79963
|
+
indexed: true,
|
|
79964
|
+
internalType: "address"
|
|
79965
|
+
}
|
|
79966
|
+
],
|
|
79967
|
+
anonymous: false
|
|
79968
|
+
},
|
|
79969
|
+
{
|
|
79970
|
+
name: "DOMAIN_SEPARATOR",
|
|
79971
|
+
type: "function",
|
|
79972
|
+
inputs: [],
|
|
79973
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
79974
|
+
stateMutability: "view"
|
|
79975
|
+
},
|
|
79976
|
+
{
|
|
79977
|
+
name: "PERMIT_TYPEHASH",
|
|
79978
|
+
type: "function",
|
|
79979
|
+
inputs: [],
|
|
79980
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
79981
|
+
stateMutability: "view"
|
|
79982
|
+
},
|
|
79983
|
+
{
|
|
79984
|
+
name: "WETH9",
|
|
79985
|
+
type: "function",
|
|
79986
|
+
inputs: [],
|
|
79987
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
79988
|
+
stateMutability: "view"
|
|
79989
|
+
},
|
|
79990
|
+
{
|
|
79991
|
+
name: "approve",
|
|
79992
|
+
type: "function",
|
|
79993
|
+
inputs: [
|
|
79994
|
+
{ name: "to", type: "address", internalType: "address" },
|
|
79995
|
+
{ name: "tokenId", type: "uint256", internalType: "uint256" }
|
|
79996
|
+
],
|
|
79997
|
+
outputs: [],
|
|
79998
|
+
stateMutability: "nonpayable"
|
|
79999
|
+
},
|
|
80000
|
+
{
|
|
80001
|
+
name: "balanceOf",
|
|
80002
|
+
type: "function",
|
|
80003
|
+
inputs: [{ name: "owner", type: "address", internalType: "address" }],
|
|
80004
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
80005
|
+
stateMutability: "view"
|
|
80006
|
+
},
|
|
80007
|
+
{
|
|
80008
|
+
name: "baseURI",
|
|
80009
|
+
type: "function",
|
|
80010
|
+
inputs: [],
|
|
80011
|
+
outputs: [{ name: "", type: "string", internalType: "string" }],
|
|
80012
|
+
stateMutability: "pure"
|
|
80013
|
+
},
|
|
80014
|
+
{
|
|
80015
|
+
name: "burn",
|
|
80016
|
+
type: "function",
|
|
80017
|
+
inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
|
|
80018
|
+
outputs: [],
|
|
80019
|
+
stateMutability: "payable"
|
|
80020
|
+
},
|
|
80021
|
+
{
|
|
80022
|
+
name: "collect",
|
|
80023
|
+
type: "function",
|
|
80024
|
+
inputs: [
|
|
80025
|
+
{
|
|
80026
|
+
name: "params",
|
|
80027
|
+
type: "tuple",
|
|
80028
|
+
components: [
|
|
80029
|
+
{
|
|
80030
|
+
name: "tokenId",
|
|
80031
|
+
type: "uint256",
|
|
80032
|
+
internalType: "uint256"
|
|
80033
|
+
},
|
|
80034
|
+
{
|
|
80035
|
+
name: "recipient",
|
|
80036
|
+
type: "address",
|
|
80037
|
+
internalType: "address"
|
|
80038
|
+
},
|
|
80039
|
+
{
|
|
80040
|
+
name: "amount0Max",
|
|
80041
|
+
type: "uint128",
|
|
80042
|
+
internalType: "uint128"
|
|
80043
|
+
},
|
|
80044
|
+
{
|
|
80045
|
+
name: "amount1Max",
|
|
80046
|
+
type: "uint128",
|
|
80047
|
+
internalType: "uint128"
|
|
80048
|
+
}
|
|
80049
|
+
],
|
|
80050
|
+
internalType: "struct INonfungiblePositionManager.CollectParams"
|
|
80051
|
+
}
|
|
80052
|
+
],
|
|
80053
|
+
outputs: [
|
|
80054
|
+
{ name: "amount0", type: "uint256", internalType: "uint256" },
|
|
80055
|
+
{ name: "amount1", type: "uint256", internalType: "uint256" }
|
|
80056
|
+
],
|
|
80057
|
+
stateMutability: "payable"
|
|
80058
|
+
},
|
|
80059
|
+
{
|
|
80060
|
+
name: "decreaseLiquidity",
|
|
80061
|
+
type: "function",
|
|
80062
|
+
inputs: [
|
|
80063
|
+
{
|
|
80064
|
+
name: "params",
|
|
80065
|
+
type: "tuple",
|
|
80066
|
+
components: [
|
|
80067
|
+
{
|
|
80068
|
+
name: "tokenId",
|
|
80069
|
+
type: "uint256",
|
|
80070
|
+
internalType: "uint256"
|
|
80071
|
+
},
|
|
80072
|
+
{
|
|
80073
|
+
name: "liquidity",
|
|
80074
|
+
type: "uint128",
|
|
80075
|
+
internalType: "uint128"
|
|
80076
|
+
},
|
|
80077
|
+
{
|
|
80078
|
+
name: "amount0Min",
|
|
80079
|
+
type: "uint256",
|
|
80080
|
+
internalType: "uint256"
|
|
80081
|
+
},
|
|
80082
|
+
{
|
|
80083
|
+
name: "amount1Min",
|
|
80084
|
+
type: "uint256",
|
|
80085
|
+
internalType: "uint256"
|
|
80086
|
+
},
|
|
80087
|
+
{
|
|
80088
|
+
name: "deadline",
|
|
80089
|
+
type: "uint256",
|
|
80090
|
+
internalType: "uint256"
|
|
80091
|
+
}
|
|
80092
|
+
],
|
|
80093
|
+
internalType: "struct INonfungiblePositionManager.DecreaseLiquidityParams"
|
|
80094
|
+
}
|
|
80095
|
+
],
|
|
80096
|
+
outputs: [
|
|
80097
|
+
{ name: "amount0", type: "uint256", internalType: "uint256" },
|
|
80098
|
+
{ name: "amount1", type: "uint256", internalType: "uint256" }
|
|
80099
|
+
],
|
|
80100
|
+
stateMutability: "payable"
|
|
80101
|
+
},
|
|
80102
|
+
{
|
|
80103
|
+
name: "factory",
|
|
80104
|
+
type: "function",
|
|
80105
|
+
inputs: [],
|
|
80106
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
80107
|
+
stateMutability: "view"
|
|
80108
|
+
},
|
|
80109
|
+
{
|
|
80110
|
+
name: "getApproved",
|
|
80111
|
+
type: "function",
|
|
80112
|
+
inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
|
|
80113
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
80114
|
+
stateMutability: "view"
|
|
80115
|
+
},
|
|
80116
|
+
{
|
|
80117
|
+
name: "increaseLiquidity",
|
|
80118
|
+
type: "function",
|
|
80119
|
+
inputs: [
|
|
80120
|
+
{
|
|
80121
|
+
name: "params",
|
|
80122
|
+
type: "tuple",
|
|
80123
|
+
components: [
|
|
80124
|
+
{
|
|
80125
|
+
name: "tokenId",
|
|
80126
|
+
type: "uint256",
|
|
80127
|
+
internalType: "uint256"
|
|
80128
|
+
},
|
|
80129
|
+
{
|
|
80130
|
+
name: "amount0Desired",
|
|
80131
|
+
type: "uint256",
|
|
80132
|
+
internalType: "uint256"
|
|
80133
|
+
},
|
|
80134
|
+
{
|
|
80135
|
+
name: "amount1Desired",
|
|
80136
|
+
type: "uint256",
|
|
80137
|
+
internalType: "uint256"
|
|
80138
|
+
},
|
|
80139
|
+
{
|
|
80140
|
+
name: "amount0Min",
|
|
80141
|
+
type: "uint256",
|
|
80142
|
+
internalType: "uint256"
|
|
80143
|
+
},
|
|
80144
|
+
{
|
|
80145
|
+
name: "amount1Min",
|
|
80146
|
+
type: "uint256",
|
|
80147
|
+
internalType: "uint256"
|
|
80148
|
+
},
|
|
80149
|
+
{
|
|
80150
|
+
name: "deadline",
|
|
80151
|
+
type: "uint256",
|
|
80152
|
+
internalType: "uint256"
|
|
80153
|
+
}
|
|
80154
|
+
],
|
|
80155
|
+
internalType: "struct INonfungiblePositionManager.IncreaseLiquidityParams"
|
|
80156
|
+
}
|
|
80157
|
+
],
|
|
80158
|
+
outputs: [
|
|
80159
|
+
{
|
|
80160
|
+
name: "liquidity",
|
|
80161
|
+
type: "uint128",
|
|
80162
|
+
internalType: "uint128"
|
|
80163
|
+
},
|
|
80164
|
+
{ name: "amount0", type: "uint256", internalType: "uint256" },
|
|
80165
|
+
{ name: "amount1", type: "uint256", internalType: "uint256" }
|
|
80166
|
+
],
|
|
80167
|
+
stateMutability: "payable"
|
|
80168
|
+
},
|
|
80169
|
+
{
|
|
80170
|
+
name: "isApprovedForAll",
|
|
80171
|
+
type: "function",
|
|
80172
|
+
inputs: [
|
|
80173
|
+
{ name: "owner", type: "address", internalType: "address" },
|
|
80174
|
+
{ name: "operator", type: "address", internalType: "address" }
|
|
80175
|
+
],
|
|
80176
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
80177
|
+
stateMutability: "view"
|
|
80178
|
+
},
|
|
80179
|
+
{
|
|
80180
|
+
name: "mint",
|
|
80181
|
+
type: "function",
|
|
80182
|
+
inputs: [
|
|
80183
|
+
{
|
|
80184
|
+
name: "params",
|
|
80185
|
+
type: "tuple",
|
|
80186
|
+
components: [
|
|
80187
|
+
{
|
|
80188
|
+
name: "token0",
|
|
80189
|
+
type: "address",
|
|
80190
|
+
internalType: "address"
|
|
80191
|
+
},
|
|
80192
|
+
{
|
|
80193
|
+
name: "token1",
|
|
80194
|
+
type: "address",
|
|
80195
|
+
internalType: "address"
|
|
80196
|
+
},
|
|
80197
|
+
{
|
|
80198
|
+
name: "tickSpacing",
|
|
80199
|
+
type: "int24",
|
|
80200
|
+
internalType: "int24"
|
|
80201
|
+
},
|
|
80202
|
+
{
|
|
80203
|
+
name: "tickLower",
|
|
80204
|
+
type: "int24",
|
|
80205
|
+
internalType: "int24"
|
|
80206
|
+
},
|
|
80207
|
+
{
|
|
80208
|
+
name: "tickUpper",
|
|
80209
|
+
type: "int24",
|
|
80210
|
+
internalType: "int24"
|
|
80211
|
+
},
|
|
80212
|
+
{
|
|
80213
|
+
name: "amount0Desired",
|
|
80214
|
+
type: "uint256",
|
|
80215
|
+
internalType: "uint256"
|
|
80216
|
+
},
|
|
80217
|
+
{
|
|
80218
|
+
name: "amount1Desired",
|
|
80219
|
+
type: "uint256",
|
|
80220
|
+
internalType: "uint256"
|
|
80221
|
+
},
|
|
80222
|
+
{
|
|
80223
|
+
name: "amount0Min",
|
|
80224
|
+
type: "uint256",
|
|
80225
|
+
internalType: "uint256"
|
|
80226
|
+
},
|
|
80227
|
+
{
|
|
80228
|
+
name: "amount1Min",
|
|
80229
|
+
type: "uint256",
|
|
80230
|
+
internalType: "uint256"
|
|
80231
|
+
},
|
|
80232
|
+
{
|
|
80233
|
+
name: "recipient",
|
|
80234
|
+
type: "address",
|
|
80235
|
+
internalType: "address"
|
|
80236
|
+
},
|
|
80237
|
+
{
|
|
80238
|
+
name: "deadline",
|
|
80239
|
+
type: "uint256",
|
|
80240
|
+
internalType: "uint256"
|
|
80241
|
+
},
|
|
80242
|
+
{
|
|
80243
|
+
name: "sqrtPriceX96",
|
|
80244
|
+
type: "uint160",
|
|
80245
|
+
internalType: "uint160"
|
|
80246
|
+
}
|
|
80247
|
+
],
|
|
80248
|
+
internalType: "struct INonfungiblePositionManager.MintParams"
|
|
80249
|
+
}
|
|
80250
|
+
],
|
|
80251
|
+
outputs: [
|
|
80252
|
+
{ name: "tokenId", type: "uint256", internalType: "uint256" },
|
|
80253
|
+
{
|
|
80254
|
+
name: "liquidity",
|
|
80255
|
+
type: "uint128",
|
|
80256
|
+
internalType: "uint128"
|
|
80257
|
+
},
|
|
80258
|
+
{ name: "amount0", type: "uint256", internalType: "uint256" },
|
|
80259
|
+
{ name: "amount1", type: "uint256", internalType: "uint256" }
|
|
80260
|
+
],
|
|
80261
|
+
stateMutability: "payable"
|
|
80262
|
+
},
|
|
80263
|
+
{
|
|
80264
|
+
name: "multicall",
|
|
80265
|
+
type: "function",
|
|
80266
|
+
inputs: [{ name: "data", type: "bytes[]", internalType: "bytes[]" }],
|
|
80267
|
+
outputs: [{ name: "results", type: "bytes[]", internalType: "bytes[]" }],
|
|
80268
|
+
stateMutability: "payable"
|
|
80269
|
+
},
|
|
80270
|
+
{
|
|
80271
|
+
name: "name",
|
|
80272
|
+
type: "function",
|
|
80273
|
+
inputs: [],
|
|
80274
|
+
outputs: [{ name: "", type: "string", internalType: "string" }],
|
|
80275
|
+
stateMutability: "view"
|
|
80276
|
+
},
|
|
80277
|
+
{
|
|
80278
|
+
name: "owner",
|
|
80279
|
+
type: "function",
|
|
80280
|
+
inputs: [],
|
|
80281
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
80282
|
+
stateMutability: "view"
|
|
80283
|
+
},
|
|
80284
|
+
{
|
|
80285
|
+
name: "ownerOf",
|
|
80286
|
+
type: "function",
|
|
80287
|
+
inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
|
|
80288
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
80289
|
+
stateMutability: "view"
|
|
80290
|
+
},
|
|
80291
|
+
{
|
|
80292
|
+
name: "permit",
|
|
80293
|
+
type: "function",
|
|
80294
|
+
inputs: [
|
|
80295
|
+
{ name: "spender", type: "address", internalType: "address" },
|
|
80296
|
+
{ name: "tokenId", type: "uint256", internalType: "uint256" },
|
|
80297
|
+
{
|
|
80298
|
+
name: "deadline",
|
|
80299
|
+
type: "uint256",
|
|
80300
|
+
internalType: "uint256"
|
|
80301
|
+
},
|
|
80302
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
80303
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
80304
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
80305
|
+
],
|
|
80306
|
+
outputs: [],
|
|
80307
|
+
stateMutability: "payable"
|
|
80308
|
+
},
|
|
80309
|
+
{
|
|
80310
|
+
name: "positions",
|
|
80311
|
+
type: "function",
|
|
80312
|
+
inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
|
|
80313
|
+
outputs: [
|
|
80314
|
+
{ name: "nonce", type: "uint96", internalType: "uint96" },
|
|
80315
|
+
{
|
|
80316
|
+
name: "operator",
|
|
80317
|
+
type: "address",
|
|
80318
|
+
internalType: "address"
|
|
80319
|
+
},
|
|
80320
|
+
{ name: "token0", type: "address", internalType: "address" },
|
|
80321
|
+
{ name: "token1", type: "address", internalType: "address" },
|
|
80322
|
+
{ name: "tickSpacing", type: "int24", internalType: "int24" },
|
|
80323
|
+
{ name: "tickLower", type: "int24", internalType: "int24" },
|
|
80324
|
+
{ name: "tickUpper", type: "int24", internalType: "int24" },
|
|
80325
|
+
{
|
|
80326
|
+
name: "liquidity",
|
|
80327
|
+
type: "uint128",
|
|
80328
|
+
internalType: "uint128"
|
|
80329
|
+
},
|
|
80330
|
+
{
|
|
80331
|
+
name: "feeGrowthInside0LastX128",
|
|
80332
|
+
type: "uint256",
|
|
80333
|
+
internalType: "uint256"
|
|
80334
|
+
},
|
|
80335
|
+
{
|
|
80336
|
+
name: "feeGrowthInside1LastX128",
|
|
80337
|
+
type: "uint256",
|
|
80338
|
+
internalType: "uint256"
|
|
80339
|
+
},
|
|
80340
|
+
{
|
|
80341
|
+
name: "tokensOwed0",
|
|
80342
|
+
type: "uint128",
|
|
80343
|
+
internalType: "uint128"
|
|
80344
|
+
},
|
|
80345
|
+
{
|
|
80346
|
+
name: "tokensOwed1",
|
|
80347
|
+
type: "uint128",
|
|
80348
|
+
internalType: "uint128"
|
|
80349
|
+
}
|
|
80350
|
+
],
|
|
80351
|
+
stateMutability: "view"
|
|
80352
|
+
},
|
|
80353
|
+
{
|
|
80354
|
+
name: "refundETH",
|
|
80355
|
+
type: "function",
|
|
80356
|
+
inputs: [],
|
|
80357
|
+
outputs: [],
|
|
80358
|
+
stateMutability: "payable"
|
|
80359
|
+
},
|
|
80360
|
+
{
|
|
80361
|
+
name: "safeTransferFrom",
|
|
80362
|
+
type: "function",
|
|
80363
|
+
inputs: [
|
|
80364
|
+
{ name: "from", type: "address", internalType: "address" },
|
|
80365
|
+
{ name: "to", type: "address", internalType: "address" },
|
|
80366
|
+
{ name: "tokenId", type: "uint256", internalType: "uint256" }
|
|
80367
|
+
],
|
|
80368
|
+
outputs: [],
|
|
80369
|
+
stateMutability: "nonpayable"
|
|
80370
|
+
},
|
|
80371
|
+
{
|
|
80372
|
+
name: "safeTransferFrom",
|
|
80373
|
+
type: "function",
|
|
80374
|
+
inputs: [
|
|
80375
|
+
{ name: "from", type: "address", internalType: "address" },
|
|
80376
|
+
{ name: "to", type: "address", internalType: "address" },
|
|
80377
|
+
{ name: "tokenId", type: "uint256", internalType: "uint256" },
|
|
80378
|
+
{ name: "_data", type: "bytes", internalType: "bytes" }
|
|
80379
|
+
],
|
|
80380
|
+
outputs: [],
|
|
80381
|
+
stateMutability: "nonpayable"
|
|
80382
|
+
},
|
|
80383
|
+
{
|
|
80384
|
+
name: "selfPermit",
|
|
80385
|
+
type: "function",
|
|
80386
|
+
inputs: [
|
|
80387
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
80388
|
+
{ name: "value", type: "uint256", internalType: "uint256" },
|
|
80389
|
+
{
|
|
80390
|
+
name: "deadline",
|
|
80391
|
+
type: "uint256",
|
|
80392
|
+
internalType: "uint256"
|
|
80393
|
+
},
|
|
80394
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
80395
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
80396
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
80397
|
+
],
|
|
80398
|
+
outputs: [],
|
|
80399
|
+
stateMutability: "payable"
|
|
80400
|
+
},
|
|
80401
|
+
{
|
|
80402
|
+
name: "selfPermitAllowed",
|
|
80403
|
+
type: "function",
|
|
80404
|
+
inputs: [
|
|
80405
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
80406
|
+
{ name: "nonce", type: "uint256", internalType: "uint256" },
|
|
80407
|
+
{ name: "expiry", type: "uint256", internalType: "uint256" },
|
|
80408
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
80409
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
80410
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
80411
|
+
],
|
|
80412
|
+
outputs: [],
|
|
80413
|
+
stateMutability: "payable"
|
|
80414
|
+
},
|
|
80415
|
+
{
|
|
80416
|
+
name: "selfPermitAllowedIfNecessary",
|
|
80417
|
+
type: "function",
|
|
80418
|
+
inputs: [
|
|
80419
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
80420
|
+
{ name: "nonce", type: "uint256", internalType: "uint256" },
|
|
80421
|
+
{ name: "expiry", type: "uint256", internalType: "uint256" },
|
|
80422
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
80423
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
80424
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
80425
|
+
],
|
|
80426
|
+
outputs: [],
|
|
80427
|
+
stateMutability: "payable"
|
|
80428
|
+
},
|
|
80429
|
+
{
|
|
80430
|
+
name: "selfPermitIfNecessary",
|
|
80431
|
+
type: "function",
|
|
80432
|
+
inputs: [
|
|
80433
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
80434
|
+
{ name: "value", type: "uint256", internalType: "uint256" },
|
|
80435
|
+
{
|
|
80436
|
+
name: "deadline",
|
|
80437
|
+
type: "uint256",
|
|
80438
|
+
internalType: "uint256"
|
|
80439
|
+
},
|
|
80440
|
+
{ name: "v", type: "uint8", internalType: "uint8" },
|
|
80441
|
+
{ name: "r", type: "bytes32", internalType: "bytes32" },
|
|
80442
|
+
{ name: "s", type: "bytes32", internalType: "bytes32" }
|
|
80443
|
+
],
|
|
80444
|
+
outputs: [],
|
|
80445
|
+
stateMutability: "payable"
|
|
80446
|
+
},
|
|
80447
|
+
{
|
|
80448
|
+
name: "setApprovalForAll",
|
|
80449
|
+
type: "function",
|
|
80450
|
+
inputs: [
|
|
80451
|
+
{
|
|
80452
|
+
name: "operator",
|
|
80453
|
+
type: "address",
|
|
80454
|
+
internalType: "address"
|
|
80455
|
+
},
|
|
80456
|
+
{ name: "approved", type: "bool", internalType: "bool" }
|
|
80457
|
+
],
|
|
80458
|
+
outputs: [],
|
|
80459
|
+
stateMutability: "nonpayable"
|
|
80460
|
+
},
|
|
80461
|
+
{
|
|
80462
|
+
name: "setOwner",
|
|
80463
|
+
type: "function",
|
|
80464
|
+
inputs: [{ name: "_owner", type: "address", internalType: "address" }],
|
|
80465
|
+
outputs: [],
|
|
80466
|
+
stateMutability: "nonpayable"
|
|
80467
|
+
},
|
|
80468
|
+
{
|
|
80469
|
+
name: "setTokenDescriptor",
|
|
80470
|
+
type: "function",
|
|
80471
|
+
inputs: [
|
|
80472
|
+
{
|
|
80473
|
+
name: "_tokenDescriptor",
|
|
80474
|
+
type: "address",
|
|
80475
|
+
internalType: "address"
|
|
80476
|
+
}
|
|
80477
|
+
],
|
|
80478
|
+
outputs: [],
|
|
80479
|
+
stateMutability: "nonpayable"
|
|
80480
|
+
},
|
|
80481
|
+
{
|
|
80482
|
+
name: "supportsInterface",
|
|
80483
|
+
type: "function",
|
|
80484
|
+
inputs: [
|
|
80485
|
+
{
|
|
80486
|
+
name: "interfaceId",
|
|
80487
|
+
type: "bytes4",
|
|
80488
|
+
internalType: "bytes4"
|
|
80489
|
+
}
|
|
80490
|
+
],
|
|
80491
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
80492
|
+
stateMutability: "view"
|
|
80493
|
+
},
|
|
80494
|
+
{
|
|
80495
|
+
name: "sweepToken",
|
|
80496
|
+
type: "function",
|
|
80497
|
+
inputs: [
|
|
80498
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
80499
|
+
{
|
|
80500
|
+
name: "amountMinimum",
|
|
80501
|
+
type: "uint256",
|
|
80502
|
+
internalType: "uint256"
|
|
80503
|
+
},
|
|
80504
|
+
{
|
|
80505
|
+
name: "recipient",
|
|
80506
|
+
type: "address",
|
|
80507
|
+
internalType: "address"
|
|
80508
|
+
}
|
|
80509
|
+
],
|
|
80510
|
+
outputs: [],
|
|
80511
|
+
stateMutability: "payable"
|
|
80512
|
+
},
|
|
80513
|
+
{
|
|
80514
|
+
name: "symbol",
|
|
80515
|
+
type: "function",
|
|
80516
|
+
inputs: [],
|
|
80517
|
+
outputs: [{ name: "", type: "string", internalType: "string" }],
|
|
80518
|
+
stateMutability: "view"
|
|
80519
|
+
},
|
|
80520
|
+
{
|
|
80521
|
+
name: "tokenByIndex",
|
|
80522
|
+
type: "function",
|
|
80523
|
+
inputs: [{ name: "index", type: "uint256", internalType: "uint256" }],
|
|
80524
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
80525
|
+
stateMutability: "view"
|
|
80526
|
+
},
|
|
80527
|
+
{
|
|
80528
|
+
name: "tokenDescriptor",
|
|
80529
|
+
type: "function",
|
|
80530
|
+
inputs: [],
|
|
80531
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
80532
|
+
stateMutability: "view"
|
|
80533
|
+
},
|
|
80534
|
+
{
|
|
80535
|
+
name: "tokenOfOwnerByIndex",
|
|
80536
|
+
type: "function",
|
|
80537
|
+
inputs: [
|
|
80538
|
+
{ name: "owner", type: "address", internalType: "address" },
|
|
80539
|
+
{ name: "index", type: "uint256", internalType: "uint256" }
|
|
80540
|
+
],
|
|
80541
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
80542
|
+
stateMutability: "view"
|
|
80543
|
+
},
|
|
80544
|
+
{
|
|
80545
|
+
name: "tokenURI",
|
|
80546
|
+
type: "function",
|
|
80547
|
+
inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
|
|
80548
|
+
outputs: [{ name: "", type: "string", internalType: "string" }],
|
|
80549
|
+
stateMutability: "view"
|
|
80550
|
+
},
|
|
80551
|
+
{
|
|
80552
|
+
name: "totalSupply",
|
|
80553
|
+
type: "function",
|
|
80554
|
+
inputs: [],
|
|
80555
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
80556
|
+
stateMutability: "view"
|
|
80557
|
+
},
|
|
80558
|
+
{
|
|
80559
|
+
name: "transferFrom",
|
|
80560
|
+
type: "function",
|
|
80561
|
+
inputs: [
|
|
80562
|
+
{ name: "from", type: "address", internalType: "address" },
|
|
80563
|
+
{ name: "to", type: "address", internalType: "address" },
|
|
80564
|
+
{ name: "tokenId", type: "uint256", internalType: "uint256" }
|
|
80565
|
+
],
|
|
80566
|
+
outputs: [],
|
|
80567
|
+
stateMutability: "nonpayable"
|
|
80568
|
+
},
|
|
80569
|
+
{
|
|
80570
|
+
name: "uniswapV3MintCallback",
|
|
80571
|
+
type: "function",
|
|
80572
|
+
inputs: [
|
|
80573
|
+
{
|
|
80574
|
+
name: "amount0Owed",
|
|
80575
|
+
type: "uint256",
|
|
80576
|
+
internalType: "uint256"
|
|
80577
|
+
},
|
|
80578
|
+
{
|
|
80579
|
+
name: "amount1Owed",
|
|
80580
|
+
type: "uint256",
|
|
80581
|
+
internalType: "uint256"
|
|
80582
|
+
},
|
|
80583
|
+
{ name: "data", type: "bytes", internalType: "bytes" }
|
|
80584
|
+
],
|
|
80585
|
+
outputs: [],
|
|
80586
|
+
stateMutability: "nonpayable"
|
|
80587
|
+
},
|
|
80588
|
+
{
|
|
80589
|
+
name: "unwrapWETH9",
|
|
80590
|
+
type: "function",
|
|
80591
|
+
inputs: [
|
|
80592
|
+
{
|
|
80593
|
+
name: "amountMinimum",
|
|
80594
|
+
type: "uint256",
|
|
80595
|
+
internalType: "uint256"
|
|
80596
|
+
},
|
|
80597
|
+
{
|
|
80598
|
+
name: "recipient",
|
|
80599
|
+
type: "address",
|
|
80600
|
+
internalType: "address"
|
|
80601
|
+
}
|
|
80602
|
+
],
|
|
80603
|
+
outputs: [],
|
|
80604
|
+
stateMutability: "payable"
|
|
80605
|
+
},
|
|
80606
|
+
{ type: "receive", stateMutability: "payable" }
|
|
80607
|
+
];
|
|
80608
|
+
|
|
80609
|
+
// src/integrations/slipstream/slipstream.ts
|
|
80610
|
+
var swapRouterInterface2 = new exports_ethers.utils.Interface(swap_router_abi_default2);
|
|
80611
|
+
var positionManagerInterface2 = new exports_ethers.utils.Interface(position_manager_abi_default3);
|
|
80612
|
+
var RouterSwapExactInputSingleCalldata = ({
|
|
80613
|
+
tokenIn,
|
|
80614
|
+
tokenOut,
|
|
80615
|
+
tickSpacing,
|
|
80616
|
+
recipient,
|
|
80617
|
+
deadline,
|
|
80618
|
+
amountIn,
|
|
80619
|
+
amountOutMinimum,
|
|
80620
|
+
sqrtPriceLimitX96
|
|
80621
|
+
}) => {
|
|
80622
|
+
return swapRouterInterface2.encodeFunctionData("exactInputSingle", [
|
|
80623
|
+
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountIn, amountOutMinimum, sqrtPriceLimitX96]
|
|
80624
|
+
]);
|
|
80625
|
+
};
|
|
80626
|
+
var RouterSwapExactOutputSingleCalldata = ({
|
|
80627
|
+
tokenIn,
|
|
80628
|
+
tokenOut,
|
|
80629
|
+
tickSpacing,
|
|
80630
|
+
recipient,
|
|
80631
|
+
deadline,
|
|
80632
|
+
amountOut,
|
|
80633
|
+
amountInMaximum,
|
|
80634
|
+
sqrtPriceLimitX96
|
|
80635
|
+
}) => {
|
|
80636
|
+
return swapRouterInterface2.encodeFunctionData("exactOutputSingle", [
|
|
80637
|
+
[tokenIn, tokenOut, tickSpacing, recipient, deadline, amountOut, amountInMaximum, sqrtPriceLimitX96]
|
|
80638
|
+
]);
|
|
80639
|
+
};
|
|
80640
|
+
var slipstreamSwapExactInputSingleTrx = ({
|
|
80641
|
+
swapParams,
|
|
80642
|
+
swapRouter
|
|
80643
|
+
}) => {
|
|
80644
|
+
return createCall({
|
|
80645
|
+
to: swapRouter,
|
|
80646
|
+
data: RouterSwapExactInputSingleCalldata(swapParams),
|
|
80647
|
+
value: 0n,
|
|
80648
|
+
operation: 0
|
|
80649
|
+
});
|
|
80650
|
+
};
|
|
80651
|
+
var slipstreamSwapExactOutputSingleTrx = ({
|
|
80652
|
+
swapParams,
|
|
80653
|
+
swapRouter
|
|
80654
|
+
}) => {
|
|
80655
|
+
return createCall({
|
|
80656
|
+
to: swapRouter,
|
|
80657
|
+
data: RouterSwapExactOutputSingleCalldata(swapParams),
|
|
80658
|
+
value: 0n,
|
|
80659
|
+
operation: 0
|
|
80660
|
+
});
|
|
80661
|
+
};
|
|
80662
|
+
var SlipstreamMintPositionCalldata = ({
|
|
80663
|
+
token0,
|
|
80664
|
+
token1,
|
|
80665
|
+
tickSpacing,
|
|
80666
|
+
tickLower,
|
|
80667
|
+
tickUpper,
|
|
80668
|
+
amount0Desired,
|
|
80669
|
+
amount1Desired,
|
|
80670
|
+
amount0Min,
|
|
80671
|
+
amount1Min,
|
|
80672
|
+
recipient,
|
|
80673
|
+
deadline,
|
|
80674
|
+
sqrtPriceX96
|
|
80675
|
+
}) => {
|
|
80676
|
+
return positionManagerInterface2.encodeFunctionData("mint", [
|
|
80677
|
+
[
|
|
80678
|
+
token0,
|
|
80679
|
+
token1,
|
|
80680
|
+
tickSpacing,
|
|
80681
|
+
tickLower,
|
|
80682
|
+
tickUpper,
|
|
80683
|
+
amount0Desired,
|
|
80684
|
+
amount1Desired,
|
|
80685
|
+
amount0Min,
|
|
80686
|
+
amount1Min,
|
|
80687
|
+
recipient,
|
|
80688
|
+
deadline,
|
|
80689
|
+
sqrtPriceX96
|
|
80690
|
+
]
|
|
80691
|
+
]);
|
|
80692
|
+
};
|
|
80693
|
+
var slipstreamMintPositionTrx = ({
|
|
80694
|
+
mintParams,
|
|
80695
|
+
positionManager
|
|
80696
|
+
}) => {
|
|
80697
|
+
return createCall({
|
|
80698
|
+
to: positionManager,
|
|
80699
|
+
data: SlipstreamMintPositionCalldata(mintParams),
|
|
80700
|
+
value: 0n,
|
|
80701
|
+
operation: 0
|
|
80702
|
+
});
|
|
80703
|
+
};
|
|
80704
|
+
var SlipstreamIncreaseLiquidityCalldata = ({
|
|
80705
|
+
tokenId,
|
|
80706
|
+
amount0Desired,
|
|
80707
|
+
amount1Desired,
|
|
80708
|
+
amount0Min,
|
|
80709
|
+
amount1Min,
|
|
80710
|
+
deadline
|
|
80711
|
+
}) => {
|
|
80712
|
+
return positionManagerInterface2.encodeFunctionData("increaseLiquidity", [
|
|
80713
|
+
[tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline]
|
|
80714
|
+
]);
|
|
80715
|
+
};
|
|
80716
|
+
var slipstreamIncreaseLiquidityTrx = ({
|
|
80717
|
+
increaseParams,
|
|
80718
|
+
positionManager
|
|
80719
|
+
}) => {
|
|
80720
|
+
return createCall({
|
|
80721
|
+
to: positionManager,
|
|
80722
|
+
data: SlipstreamIncreaseLiquidityCalldata(increaseParams),
|
|
80723
|
+
value: 0n,
|
|
80724
|
+
operation: 0
|
|
80725
|
+
});
|
|
80726
|
+
};
|
|
80727
|
+
var SlipstreamDecreaseLiquidityCalldata = ({
|
|
80728
|
+
tokenId,
|
|
80729
|
+
liquidity,
|
|
80730
|
+
amount0Min,
|
|
80731
|
+
amount1Min,
|
|
80732
|
+
deadline
|
|
80733
|
+
}) => {
|
|
80734
|
+
return positionManagerInterface2.encodeFunctionData("decreaseLiquidity", [
|
|
80735
|
+
[tokenId, liquidity, amount0Min, amount1Min, deadline]
|
|
80736
|
+
]);
|
|
80737
|
+
};
|
|
80738
|
+
var slipstreamDecreaseLiquidityTrx = ({
|
|
80739
|
+
decreaseParams,
|
|
80740
|
+
positionManager
|
|
80741
|
+
}) => {
|
|
80742
|
+
return createCall({
|
|
80743
|
+
to: positionManager,
|
|
80744
|
+
data: SlipstreamDecreaseLiquidityCalldata(decreaseParams),
|
|
80745
|
+
value: 0n,
|
|
80746
|
+
operation: 0
|
|
80747
|
+
});
|
|
80748
|
+
};
|
|
80749
|
+
var SlipstreamBurnPositionCalldata = ({ tokenId }) => {
|
|
80750
|
+
return positionManagerInterface2.encodeFunctionData("burn", [[tokenId]]);
|
|
80751
|
+
};
|
|
80752
|
+
var slipstreamBurnPositionTrx = ({
|
|
80753
|
+
burnParams,
|
|
80754
|
+
positionManager
|
|
80755
|
+
}) => {
|
|
80756
|
+
return createCall({
|
|
80757
|
+
to: positionManager,
|
|
80758
|
+
data: SlipstreamBurnPositionCalldata(burnParams),
|
|
80759
|
+
value: 0n,
|
|
80760
|
+
operation: 0
|
|
80761
|
+
});
|
|
80762
|
+
};
|
|
80763
|
+
var SlipstreamCollectFeesCalldata = ({
|
|
80764
|
+
tokenId,
|
|
80765
|
+
recipient,
|
|
80766
|
+
amount0Max,
|
|
80767
|
+
amount1Max
|
|
80768
|
+
}) => {
|
|
80769
|
+
return positionManagerInterface2.encodeFunctionData("collect", [
|
|
80770
|
+
[tokenId, recipient, amount0Max, amount1Max]
|
|
80771
|
+
]);
|
|
80772
|
+
};
|
|
80773
|
+
var slipstreamCollectFeesTrx = ({
|
|
80774
|
+
collectParams,
|
|
80775
|
+
positionManager
|
|
80776
|
+
}) => {
|
|
80777
|
+
return createCall({
|
|
80778
|
+
to: positionManager,
|
|
80779
|
+
data: SlipstreamCollectFeesCalldata(collectParams),
|
|
80780
|
+
value: 0n,
|
|
80781
|
+
operation: 0
|
|
80782
|
+
});
|
|
80783
|
+
};
|
|
79290
80784
|
// src/lib/utils.ts
|
|
79291
80785
|
var executeTrx = ({
|
|
79292
80786
|
client,
|
|
@@ -79381,4 +80875,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
79381
80875
|
};
|
|
79382
80876
|
};
|
|
79383
80877
|
|
|
79384
|
-
//# debugId=
|
|
80878
|
+
//# debugId=34847EA1DFE5C32964756E2164756E21
|