damm-sdk 1.1.31-alpha.23 → 1.1.31-alpha.24

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 CHANGED
@@ -44330,9 +44330,9 @@ __export(exports_src, {
44330
44330
  slipstreamSwapExactInputSingleTrx: () => slipstreamSwapExactInputSingleTrx,
44331
44331
  slipstreamMintPositionTrx: () => slipstreamMintPositionTrx,
44332
44332
  slipstreamIncreaseLiquidityTrx: () => slipstreamIncreaseLiquidityTrx,
44333
- slipstreamGuageWithdrawTrx: () => slipstreamGuageWithdrawTrx,
44334
- slipstreamGuageGetRewardTrx: () => slipstreamGuageGetRewardTrx,
44335
- slipstreamGuageDepositTrx: () => slipstreamGuageDepositTrx,
44333
+ slipstreamGaugeWithdrawTrx: () => slipstreamGaugeWithdrawTrx,
44334
+ slipstreamGaugeGetRewardTrx: () => slipstreamGaugeGetRewardTrx,
44335
+ slipstreamGaugeDepositTrx: () => slipstreamGaugeDepositTrx,
44336
44336
  slipstreamDecreaseLiquidityTrx: () => slipstreamDecreaseLiquidityTrx,
44337
44337
  slipstreamCollectFeesTrx: () => slipstreamCollectFeesTrx,
44338
44338
  slipstreamBurnPositionTrx: () => slipstreamBurnPositionTrx,
@@ -44435,10 +44435,10 @@ __export(exports_src, {
44435
44435
  SlipstreamPositionManagerAbi: () => position_manager_abi_default3,
44436
44436
  SlipstreamMintPositionCalldata: () => SlipstreamMintPositionCalldata,
44437
44437
  SlipstreamIncreaseLiquidityCalldata: () => SlipstreamIncreaseLiquidityCalldata,
44438
- SlipstreamGuageWithdrawCalldata: () => SlipstreamGuageWithdrawCalldata,
44439
- SlipstreamGuageGetRewardCalldata: () => SlipstreamGuageGetRewardCalldata,
44440
- SlipstreamGuageDepositCalldata: () => SlipstreamGuageDepositCalldata,
44441
- SlipstreamGuageAbi: () => guage_abi_default,
44438
+ SlipstreamGaugeWithdrawCalldata: () => SlipstreamGaugeWithdrawCalldata,
44439
+ SlipstreamGaugeGetRewardCalldata: () => SlipstreamGaugeGetRewardCalldata,
44440
+ SlipstreamGaugeDepositCalldata: () => SlipstreamGaugeDepositCalldata,
44441
+ SlipstreamGaugeAbi: () => gauge_abi_default,
44442
44442
  SlipstreamDecreaseLiquidityCalldata: () => SlipstreamDecreaseLiquidityCalldata,
44443
44443
  SlipstreamCollectFeesCalldata: () => SlipstreamCollectFeesCalldata,
44444
44444
  SlipstreamBurnPositionCalldata: () => SlipstreamBurnPositionCalldata,
@@ -53373,7 +53373,7 @@ var contractsRegistry_default = {
53373
53373
  slipstream: {
53374
53374
  router: "0xBE6D8f0d05cC4be24d5167a3eF062215bE6D18a5",
53375
53375
  positionManager: "0x827922686190790b37229fd06084350E74485b72",
53376
- guageImpl: "0xF5601F95708256A118EF5971820327F362442D2d"
53376
+ gaugeImpl: "0xF5601F95708256A118EF5971820327F362442D2d"
53377
53377
  },
53378
53378
  enso: {
53379
53379
  routerV2: "0xF75584eF6673aD213a685a1B58Cc0330B8eA22Cf"
@@ -53592,7 +53592,7 @@ var contractsRegistry_default = {
53592
53592
  slipstream: {
53593
53593
  router: "0x0792a633F0c19c351081CF4B211F68F79bCc9676",
53594
53594
  positionManager: "0x416b433906b1B72FA758e166e239c43d68dC6F29",
53595
- guageImpl: "0x7155b84A704F0657975827c65Ff6fe42e3A962bb"
53595
+ gaugeImpl: "0x7155b84A704F0657975827c65Ff6fe42e3A962bb"
53596
53596
  },
53597
53597
  OFTAdapters: {
53598
53598
  "0x01bFF41798a0BcF287b996046Ca68b395DbC1071": "0xF03b4d9AC1D5d1E7c4cEf54C2A313b9fe051A0aD"
@@ -80890,8 +80890,226 @@ var position_manager_abi_default3 = [
80890
80890
  { type: "receive", stateMutability: "payable" }
80891
80891
  ];
80892
80892
 
80893
- // src/integrations/slipstream/guage.abi.ts
80894
- var guage_abi_default = [
80893
+ // src/integrations/slipstream/slipstream.ts
80894
+ var swapRouterInterface2 = new exports_ethers.utils.Interface(swap_router_abi_default2);
80895
+ var positionManagerInterface2 = new exports_ethers.utils.Interface(position_manager_abi_default3);
80896
+ var gaugeInterface = new exports_ethers.utils.Interface(gauge_abi_default);
80897
+ var RouterSwapExactInputSingleCalldata = ({
80898
+ tokenIn,
80899
+ tokenOut,
80900
+ tickSpacing,
80901
+ recipient,
80902
+ deadline,
80903
+ amountIn,
80904
+ amountOutMinimum,
80905
+ sqrtPriceLimitX96
80906
+ }) => {
80907
+ return swapRouterInterface2.encodeFunctionData("exactInputSingle", [
80908
+ [tokenIn, tokenOut, tickSpacing, recipient, deadline, amountIn, amountOutMinimum, sqrtPriceLimitX96]
80909
+ ]);
80910
+ };
80911
+ var RouterSwapExactOutputSingleCalldata = ({
80912
+ tokenIn,
80913
+ tokenOut,
80914
+ tickSpacing,
80915
+ recipient,
80916
+ deadline,
80917
+ amountOut,
80918
+ amountInMaximum,
80919
+ sqrtPriceLimitX96
80920
+ }) => {
80921
+ return swapRouterInterface2.encodeFunctionData("exactOutputSingle", [
80922
+ [tokenIn, tokenOut, tickSpacing, recipient, deadline, amountOut, amountInMaximum, sqrtPriceLimitX96]
80923
+ ]);
80924
+ };
80925
+ var slipstreamSwapExactInputSingleTrx = ({
80926
+ swapParams,
80927
+ swapRouter
80928
+ }) => {
80929
+ return createCall({
80930
+ to: swapRouter,
80931
+ data: RouterSwapExactInputSingleCalldata(swapParams),
80932
+ value: 0n,
80933
+ operation: 0
80934
+ });
80935
+ };
80936
+ var slipstreamSwapExactOutputSingleTrx = ({
80937
+ swapParams,
80938
+ swapRouter
80939
+ }) => {
80940
+ return createCall({
80941
+ to: swapRouter,
80942
+ data: RouterSwapExactOutputSingleCalldata(swapParams),
80943
+ value: 0n,
80944
+ operation: 0
80945
+ });
80946
+ };
80947
+ var SlipstreamMintPositionCalldata = ({
80948
+ token0,
80949
+ token1,
80950
+ tickSpacing,
80951
+ tickLower,
80952
+ tickUpper,
80953
+ amount0Desired,
80954
+ amount1Desired,
80955
+ amount0Min,
80956
+ amount1Min,
80957
+ recipient,
80958
+ deadline,
80959
+ sqrtPriceX96
80960
+ }) => {
80961
+ return positionManagerInterface2.encodeFunctionData("mint", [
80962
+ [
80963
+ token0,
80964
+ token1,
80965
+ tickSpacing,
80966
+ tickLower,
80967
+ tickUpper,
80968
+ amount0Desired,
80969
+ amount1Desired,
80970
+ amount0Min,
80971
+ amount1Min,
80972
+ recipient,
80973
+ deadline,
80974
+ sqrtPriceX96
80975
+ ]
80976
+ ]);
80977
+ };
80978
+ var slipstreamMintPositionTrx = ({
80979
+ mintParams,
80980
+ positionManager
80981
+ }) => {
80982
+ return createCall({
80983
+ to: positionManager,
80984
+ data: SlipstreamMintPositionCalldata(mintParams),
80985
+ value: 0n,
80986
+ operation: 0
80987
+ });
80988
+ };
80989
+ var SlipstreamIncreaseLiquidityCalldata = ({
80990
+ tokenId,
80991
+ amount0Desired,
80992
+ amount1Desired,
80993
+ amount0Min,
80994
+ amount1Min,
80995
+ deadline
80996
+ }) => {
80997
+ return positionManagerInterface2.encodeFunctionData("increaseLiquidity", [
80998
+ [tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline]
80999
+ ]);
81000
+ };
81001
+ var slipstreamIncreaseLiquidityTrx = ({
81002
+ increaseParams,
81003
+ positionManager
81004
+ }) => {
81005
+ return createCall({
81006
+ to: positionManager,
81007
+ data: SlipstreamIncreaseLiquidityCalldata(increaseParams),
81008
+ value: 0n,
81009
+ operation: 0
81010
+ });
81011
+ };
81012
+ var SlipstreamDecreaseLiquidityCalldata = ({
81013
+ tokenId,
81014
+ liquidity,
81015
+ amount0Min,
81016
+ amount1Min,
81017
+ deadline
81018
+ }) => {
81019
+ return positionManagerInterface2.encodeFunctionData("decreaseLiquidity", [
81020
+ [tokenId, liquidity, amount0Min, amount1Min, deadline]
81021
+ ]);
81022
+ };
81023
+ var slipstreamDecreaseLiquidityTrx = ({
81024
+ decreaseParams,
81025
+ positionManager
81026
+ }) => {
81027
+ return createCall({
81028
+ to: positionManager,
81029
+ data: SlipstreamDecreaseLiquidityCalldata(decreaseParams),
81030
+ value: 0n,
81031
+ operation: 0
81032
+ });
81033
+ };
81034
+ var SlipstreamBurnPositionCalldata = ({ tokenId }) => {
81035
+ return positionManagerInterface2.encodeFunctionData("burn", [[tokenId]]);
81036
+ };
81037
+ var slipstreamBurnPositionTrx = ({
81038
+ burnParams,
81039
+ positionManager
81040
+ }) => {
81041
+ return createCall({
81042
+ to: positionManager,
81043
+ data: SlipstreamBurnPositionCalldata(burnParams),
81044
+ value: 0n,
81045
+ operation: 0
81046
+ });
81047
+ };
81048
+ var SlipstreamCollectFeesCalldata = ({
81049
+ tokenId,
81050
+ recipient,
81051
+ amount0Max,
81052
+ amount1Max
81053
+ }) => {
81054
+ return positionManagerInterface2.encodeFunctionData("collect", [
81055
+ [tokenId, recipient, amount0Max, amount1Max]
81056
+ ]);
81057
+ };
81058
+ var slipstreamCollectFeesTrx = ({
81059
+ collectParams,
81060
+ positionManager
81061
+ }) => {
81062
+ return createCall({
81063
+ to: positionManager,
81064
+ data: SlipstreamCollectFeesCalldata(collectParams),
81065
+ value: 0n,
81066
+ operation: 0
81067
+ });
81068
+ };
81069
+ var SlipstreamGaugeDepositCalldata = ({ tokenId }) => {
81070
+ return gaugeInterface.encodeFunctionData("deposit", [tokenId]);
81071
+ };
81072
+ var slipstreamGaugeDepositTrx = ({
81073
+ tokenId,
81074
+ gauge
81075
+ }) => {
81076
+ return createCall({
81077
+ to: gauge,
81078
+ data: SlipstreamGaugeDepositCalldata({ tokenId }),
81079
+ value: 0n,
81080
+ operation: 0
81081
+ });
81082
+ };
81083
+ var SlipstreamGaugeWithdrawCalldata = ({ tokenId }) => {
81084
+ return gaugeInterface.encodeFunctionData("withdraw", [tokenId]);
81085
+ };
81086
+ var slipstreamGaugeWithdrawTrx = ({
81087
+ tokenId,
81088
+ gauge
81089
+ }) => {
81090
+ return createCall({
81091
+ to: gauge,
81092
+ data: SlipstreamGaugeWithdrawCalldata({ tokenId }),
81093
+ value: 0n,
81094
+ operation: 0
81095
+ });
81096
+ };
81097
+ var SlipstreamGaugeGetRewardCalldata = ({ tokenId }) => {
81098
+ return gaugeInterface.encodeFunctionData("getReward", [tokenId]);
81099
+ };
81100
+ var slipstreamGaugeGetRewardTrx = ({
81101
+ tokenId,
81102
+ gauge
81103
+ }) => {
81104
+ return createCall({
81105
+ to: gauge,
81106
+ data: SlipstreamGaugeGetRewardCalldata({ tokenId }),
81107
+ value: 0n,
81108
+ operation: 0
81109
+ });
81110
+ };
81111
+ // src/integrations/slipstream/gauge.abi.ts
81112
+ var gauge_abi_default = [
80895
81113
  {
80896
81114
  name: "ClaimFees",
80897
81115
  type: "event",
@@ -81303,225 +81521,6 @@ var guage_abi_default = [
81303
81521
  stateMutability: "nonpayable"
81304
81522
  }
81305
81523
  ];
81306
-
81307
- // src/integrations/slipstream/slipstream.ts
81308
- var swapRouterInterface2 = new exports_ethers.utils.Interface(swap_router_abi_default2);
81309
- var positionManagerInterface2 = new exports_ethers.utils.Interface(position_manager_abi_default3);
81310
- var guageInterface = new exports_ethers.utils.Interface(guage_abi_default);
81311
- var RouterSwapExactInputSingleCalldata = ({
81312
- tokenIn,
81313
- tokenOut,
81314
- tickSpacing,
81315
- recipient,
81316
- deadline,
81317
- amountIn,
81318
- amountOutMinimum,
81319
- sqrtPriceLimitX96
81320
- }) => {
81321
- return swapRouterInterface2.encodeFunctionData("exactInputSingle", [
81322
- [tokenIn, tokenOut, tickSpacing, recipient, deadline, amountIn, amountOutMinimum, sqrtPriceLimitX96]
81323
- ]);
81324
- };
81325
- var RouterSwapExactOutputSingleCalldata = ({
81326
- tokenIn,
81327
- tokenOut,
81328
- tickSpacing,
81329
- recipient,
81330
- deadline,
81331
- amountOut,
81332
- amountInMaximum,
81333
- sqrtPriceLimitX96
81334
- }) => {
81335
- return swapRouterInterface2.encodeFunctionData("exactOutputSingle", [
81336
- [tokenIn, tokenOut, tickSpacing, recipient, deadline, amountOut, amountInMaximum, sqrtPriceLimitX96]
81337
- ]);
81338
- };
81339
- var slipstreamSwapExactInputSingleTrx = ({
81340
- swapParams,
81341
- swapRouter
81342
- }) => {
81343
- return createCall({
81344
- to: swapRouter,
81345
- data: RouterSwapExactInputSingleCalldata(swapParams),
81346
- value: 0n,
81347
- operation: 0
81348
- });
81349
- };
81350
- var slipstreamSwapExactOutputSingleTrx = ({
81351
- swapParams,
81352
- swapRouter
81353
- }) => {
81354
- return createCall({
81355
- to: swapRouter,
81356
- data: RouterSwapExactOutputSingleCalldata(swapParams),
81357
- value: 0n,
81358
- operation: 0
81359
- });
81360
- };
81361
- var SlipstreamMintPositionCalldata = ({
81362
- token0,
81363
- token1,
81364
- tickSpacing,
81365
- tickLower,
81366
- tickUpper,
81367
- amount0Desired,
81368
- amount1Desired,
81369
- amount0Min,
81370
- amount1Min,
81371
- recipient,
81372
- deadline,
81373
- sqrtPriceX96
81374
- }) => {
81375
- return positionManagerInterface2.encodeFunctionData("mint", [
81376
- [
81377
- token0,
81378
- token1,
81379
- tickSpacing,
81380
- tickLower,
81381
- tickUpper,
81382
- amount0Desired,
81383
- amount1Desired,
81384
- amount0Min,
81385
- amount1Min,
81386
- recipient,
81387
- deadline,
81388
- sqrtPriceX96
81389
- ]
81390
- ]);
81391
- };
81392
- var slipstreamMintPositionTrx = ({
81393
- mintParams,
81394
- positionManager
81395
- }) => {
81396
- return createCall({
81397
- to: positionManager,
81398
- data: SlipstreamMintPositionCalldata(mintParams),
81399
- value: 0n,
81400
- operation: 0
81401
- });
81402
- };
81403
- var SlipstreamIncreaseLiquidityCalldata = ({
81404
- tokenId,
81405
- amount0Desired,
81406
- amount1Desired,
81407
- amount0Min,
81408
- amount1Min,
81409
- deadline
81410
- }) => {
81411
- return positionManagerInterface2.encodeFunctionData("increaseLiquidity", [
81412
- [tokenId, amount0Desired, amount1Desired, amount0Min, amount1Min, deadline]
81413
- ]);
81414
- };
81415
- var slipstreamIncreaseLiquidityTrx = ({
81416
- increaseParams,
81417
- positionManager
81418
- }) => {
81419
- return createCall({
81420
- to: positionManager,
81421
- data: SlipstreamIncreaseLiquidityCalldata(increaseParams),
81422
- value: 0n,
81423
- operation: 0
81424
- });
81425
- };
81426
- var SlipstreamDecreaseLiquidityCalldata = ({
81427
- tokenId,
81428
- liquidity,
81429
- amount0Min,
81430
- amount1Min,
81431
- deadline
81432
- }) => {
81433
- return positionManagerInterface2.encodeFunctionData("decreaseLiquidity", [
81434
- [tokenId, liquidity, amount0Min, amount1Min, deadline]
81435
- ]);
81436
- };
81437
- var slipstreamDecreaseLiquidityTrx = ({
81438
- decreaseParams,
81439
- positionManager
81440
- }) => {
81441
- return createCall({
81442
- to: positionManager,
81443
- data: SlipstreamDecreaseLiquidityCalldata(decreaseParams),
81444
- value: 0n,
81445
- operation: 0
81446
- });
81447
- };
81448
- var SlipstreamBurnPositionCalldata = ({ tokenId }) => {
81449
- return positionManagerInterface2.encodeFunctionData("burn", [[tokenId]]);
81450
- };
81451
- var slipstreamBurnPositionTrx = ({
81452
- burnParams,
81453
- positionManager
81454
- }) => {
81455
- return createCall({
81456
- to: positionManager,
81457
- data: SlipstreamBurnPositionCalldata(burnParams),
81458
- value: 0n,
81459
- operation: 0
81460
- });
81461
- };
81462
- var SlipstreamCollectFeesCalldata = ({
81463
- tokenId,
81464
- recipient,
81465
- amount0Max,
81466
- amount1Max
81467
- }) => {
81468
- return positionManagerInterface2.encodeFunctionData("collect", [
81469
- [tokenId, recipient, amount0Max, amount1Max]
81470
- ]);
81471
- };
81472
- var slipstreamCollectFeesTrx = ({
81473
- collectParams,
81474
- positionManager
81475
- }) => {
81476
- return createCall({
81477
- to: positionManager,
81478
- data: SlipstreamCollectFeesCalldata(collectParams),
81479
- value: 0n,
81480
- operation: 0
81481
- });
81482
- };
81483
- var SlipstreamGuageDepositCalldata = ({ tokenId }) => {
81484
- return guageInterface.encodeFunctionData("deposit", [tokenId]);
81485
- };
81486
- var slipstreamGuageDepositTrx = ({
81487
- tokenId,
81488
- guage
81489
- }) => {
81490
- return createCall({
81491
- to: guage,
81492
- data: SlipstreamGuageDepositCalldata({ tokenId }),
81493
- value: 0n,
81494
- operation: 0
81495
- });
81496
- };
81497
- var SlipstreamGuageWithdrawCalldata = ({ tokenId }) => {
81498
- return guageInterface.encodeFunctionData("withdraw", [tokenId]);
81499
- };
81500
- var slipstreamGuageWithdrawTrx = ({
81501
- tokenId,
81502
- guage
81503
- }) => {
81504
- return createCall({
81505
- to: guage,
81506
- data: SlipstreamGuageWithdrawCalldata({ tokenId }),
81507
- value: 0n,
81508
- operation: 0
81509
- });
81510
- };
81511
- var SlipstreamGuageGetRewardCalldata = ({ tokenId }) => {
81512
- return guageInterface.encodeFunctionData("getReward", [tokenId]);
81513
- };
81514
- var slipstreamGuageGetRewardTrx = ({
81515
- tokenId,
81516
- guage
81517
- }) => {
81518
- return createCall({
81519
- to: guage,
81520
- data: SlipstreamGuageGetRewardCalldata({ tokenId }),
81521
- value: 0n,
81522
- operation: 0
81523
- });
81524
- };
81525
81524
  // src/integrations/morphoVault/morpho.vault.abi.ts
81526
81525
  var morpho_vault_abi_default = [
81527
81526
  {
@@ -86334,4 +86333,4 @@ var simulateOrThrow = async (env2) => {
86334
86333
  };
86335
86334
  };
86336
86335
 
86337
- //# debugId=BE3E1DF84A09A07164756E2164756E21
86336
+ //# debugId=68D4B4861D962F0964756E2164756E21