@raydium-io/raydium-sdk-v2 0.2.42-alpha → 0.2.43-alpha

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.
Files changed (115) hide show
  1. package/lib/api/api.d.ts +1 -1
  2. package/lib/api/api.js +1 -1
  3. package/lib/api/api.js.map +1 -1
  4. package/lib/api/api.mjs +1 -1
  5. package/lib/api/api.mjs.map +1 -1
  6. package/lib/api/index.d.ts +1 -1
  7. package/lib/api/index.js +1 -1
  8. package/lib/api/index.js.map +1 -1
  9. package/lib/api/index.mjs +1 -1
  10. package/lib/api/index.mjs.map +1 -1
  11. package/lib/api/type.d.ts +1 -1
  12. package/lib/api/type.js +1 -1
  13. package/lib/api/type.js.map +1 -1
  14. package/lib/api/type.mjs +1 -1
  15. package/lib/api/type.mjs.map +1 -1
  16. package/lib/api/url.d.ts +10 -10
  17. package/lib/api/url.js +1 -1
  18. package/lib/api/url.js.map +1 -1
  19. package/lib/api/url.mjs +1 -1
  20. package/lib/api/url.mjs.map +1 -1
  21. package/lib/{api-ce8cb0e7.d.ts → api-aa5759c5.d.ts} +7 -7
  22. package/lib/common/accountInfo.d.ts +1 -1
  23. package/lib/common/bignumber.d.ts +1 -1
  24. package/lib/common/constant.d.ts +1 -1
  25. package/lib/common/fractionUtil.d.ts +1 -1
  26. package/lib/common/index.d.ts +1 -1
  27. package/lib/common/transfer.d.ts +1 -1
  28. package/lib/common/txTool/txTool.d.ts +1 -1
  29. package/lib/common/txTool/txUtils.d.ts +1 -1
  30. package/lib/common/utility.d.ts +1 -1
  31. package/lib/index.d.ts +3 -3
  32. package/lib/index.js +1 -1
  33. package/lib/index.js.map +1 -1
  34. package/lib/index.mjs +1 -1
  35. package/lib/index.mjs.map +1 -1
  36. package/lib/module/amount.d.ts +1 -1
  37. package/lib/module/fraction.d.ts +1 -1
  38. package/lib/module/index.d.ts +1 -1
  39. package/lib/module/percent.d.ts +1 -1
  40. package/lib/module/price.d.ts +1 -1
  41. package/lib/raydium/account/account.d.ts +3 -3
  42. package/lib/raydium/account/index.d.ts +1 -1
  43. package/lib/raydium/account/instruction.d.ts +1 -1
  44. package/lib/raydium/account/types.d.ts +1 -1
  45. package/lib/raydium/account/util.d.ts +1 -1
  46. package/lib/raydium/clmm/clmm.d.ts +3 -3
  47. package/lib/raydium/clmm/index.d.ts +3 -3
  48. package/lib/raydium/clmm/index.js +1 -1
  49. package/lib/raydium/clmm/index.mjs +1 -1
  50. package/lib/raydium/clmm/instrument.d.ts +2 -2
  51. package/lib/raydium/clmm/type.d.ts +2 -2
  52. package/lib/raydium/clmm/utils/math.d.ts +2 -2
  53. package/lib/raydium/clmm/utils/pool.d.ts +2 -2
  54. package/lib/raydium/clmm/utils/position.d.ts +2 -2
  55. package/lib/raydium/clmm/utils/tick.d.ts +2 -2
  56. package/lib/raydium/clmm/utils/tickQuery.d.ts +2 -2
  57. package/lib/raydium/cpmm/cpmm.d.ts +3 -3
  58. package/lib/raydium/cpmm/index.d.ts +1 -1
  59. package/lib/raydium/cpmm/instruction.d.ts +1 -1
  60. package/lib/raydium/cpmm/type.d.ts +1 -1
  61. package/lib/raydium/farm/config.d.ts +1 -1
  62. package/lib/raydium/farm/farm.d.ts +3 -3
  63. package/lib/raydium/farm/index.d.ts +1 -1
  64. package/lib/raydium/farm/instruction.d.ts +1 -1
  65. package/lib/raydium/farm/layout.d.ts +1 -1
  66. package/lib/raydium/farm/type.d.ts +1 -1
  67. package/lib/raydium/farm/util.d.ts +1 -1
  68. package/lib/raydium/ido/ido.d.ts +3 -3
  69. package/lib/raydium/ido/index.d.ts +3 -3
  70. package/lib/raydium/ido/instruction.d.ts +1 -1
  71. package/lib/raydium/ido/type.d.ts +1 -1
  72. package/lib/raydium/index.d.ts +3 -3
  73. package/lib/raydium/index.js +1 -1
  74. package/lib/raydium/index.js.map +1 -1
  75. package/lib/raydium/index.mjs +1 -1
  76. package/lib/raydium/index.mjs.map +1 -1
  77. package/lib/raydium/launchpad/curve/curve.d.ts +1 -1
  78. package/lib/raydium/launchpad/index.d.ts +3 -3
  79. package/lib/raydium/launchpad/instrument.d.ts +1 -1
  80. package/lib/raydium/launchpad/launchpad.d.ts +3 -3
  81. package/lib/raydium/launchpad/pda.d.ts +1 -1
  82. package/lib/raydium/launchpad/pda.js +1 -1
  83. package/lib/raydium/launchpad/pda.mjs +1 -1
  84. package/lib/raydium/launchpad/type.d.ts +1 -1
  85. package/lib/raydium/liquidity/index.d.ts +1 -1
  86. package/lib/raydium/liquidity/instruction.d.ts +1 -1
  87. package/lib/raydium/liquidity/liquidity.d.ts +3 -3
  88. package/lib/raydium/liquidity/type.d.ts +1 -1
  89. package/lib/raydium/liquidity/utils.d.ts +1 -1
  90. package/lib/raydium/marketV2/createMarket.d.ts +3 -3
  91. package/lib/raydium/marketV2/index.d.ts +3 -3
  92. package/lib/raydium/moduleBase.d.ts +3 -3
  93. package/lib/raydium/raydium.d.ts +3 -3
  94. package/lib/raydium/raydium.js +1 -1
  95. package/lib/raydium/raydium.js.map +1 -1
  96. package/lib/raydium/raydium.mjs +1 -1
  97. package/lib/raydium/raydium.mjs.map +1 -1
  98. package/lib/raydium/token/constant.d.ts +1 -1
  99. package/lib/raydium/token/index.d.ts +1 -1
  100. package/lib/raydium/token/token.d.ts +3 -3
  101. package/lib/raydium/token/type.d.ts +1 -1
  102. package/lib/raydium/token/utils.d.ts +1 -1
  103. package/lib/raydium/tradeV2/index.d.ts +2 -2
  104. package/lib/raydium/tradeV2/instrument.d.ts +2 -2
  105. package/lib/raydium/tradeV2/trade.d.ts +3 -3
  106. package/lib/raydium/tradeV2/type.d.ts +2 -2
  107. package/lib/raydium/type.d.ts +1 -1
  108. package/lib/raydium/utils1216/index.d.ts +3 -3
  109. package/lib/raydium/utils1216/utils1216.d.ts +3 -3
  110. package/lib/{raydium-d940abae.d.ts → raydium-940808d1.d.ts} +2 -2
  111. package/lib/{type-526e8620.d.ts → type-3ac7311b.d.ts} +1 -1
  112. package/package.json +1 -1
  113. package/src/api/api.ts +12 -5
  114. package/src/api/type.ts +6 -6
  115. package/src/api/url.ts +7 -7
@@ -1,4 +1,4 @@
1
- import { bK as TokenInfo } from '../../api-ce8cb0e7.js';
1
+ import { bK as TokenInfo } from '../../api-aa5759c5.js';
2
2
  import 'axios';
3
3
  import '../../solana/type.js';
4
4
  import '@solana/web3.js';
@@ -1,6 +1,6 @@
1
1
  export { SOL_INFO, TOKEN_WSOL } from './constant.js';
2
2
  export { SPL_MINT_LAYOUT, SplMintLayout } from './layout.js';
3
- export { bN as LpToken, bM as SplToken, bK as TokenInfo, bL as TokenJson } from '../../api-ce8cb0e7.js';
3
+ export { bN as LpToken, bM as SplToken, bK as TokenInfo, bL as TokenJson } from '../../api-aa5759c5.js';
4
4
  export { parseTokenInfo, solToWSolToken, toApiV3Token, toFeeConfig, toToken, toTokenAmount, toTokenInfo, wSolToSolToken } from './utils.js';
5
5
  import 'axios';
6
6
  import '../../solana/type.js';
@@ -1,6 +1,6 @@
1
1
  import '@solana/web3.js';
2
- import '../../api-ce8cb0e7.js';
3
- export { n as default } from '../../raydium-d940abae.js';
2
+ import '../../api-aa5759c5.js';
3
+ export { n as default } from '../../raydium-940808d1.js';
4
4
  import 'axios';
5
5
  import '../../solana/type.js';
6
6
  import 'bn.js';
@@ -22,7 +22,7 @@ import '../liquidity/stable.js';
22
22
  import '../liquidity/type.js';
23
23
  import '../liquidity/layout.js';
24
24
  import '../clmm/layout.js';
25
- import '../../type-526e8620.js';
25
+ import '../../type-3ac7311b.js';
26
26
  import '../cpmm/curve/calculator.js';
27
27
  import '../cpmm/type.js';
28
28
  import '../cpmm/layout.js';
@@ -1,4 +1,4 @@
1
- export { bN as LpToken, bM as SplToken, bK as TokenInfo, bL as TokenJson } from '../../api-ce8cb0e7.js';
1
+ export { bN as LpToken, bM as SplToken, bK as TokenInfo, bL as TokenJson } from '../../api-aa5759c5.js';
2
2
  import '../../module/token.js';
3
3
  import 'axios';
4
4
  import '../../solana/type.js';
@@ -1,6 +1,6 @@
1
1
  import { Connection, PublicKey } from '@solana/web3.js';
2
2
  import { RawMint, TransferFeeConfigLayout } from '@solana/spl-token';
3
- import { bK as TokenInfo, ag as BigNumberish, ce as TokenAmount, i as ApiV3Token } from '../../api-ce8cb0e7.js';
3
+ import { bK as TokenInfo, ag as BigNumberish, ce as TokenAmount, i as ApiV3Token } from '../../api-aa5759c5.js';
4
4
  import { Token } from '../../module/token.js';
5
5
  import 'axios';
6
6
  import '../../solana/type.js';
@@ -2,7 +2,7 @@ export { ApiSwapV1Out, makeSwapInstruction, route1Instruction, route2Instruction
2
2
  export { BasicPoolInfo, ComputeAmountOutAmmLayout, ComputeAmountOutLayout, ComputeAmountOutRouteLayout, ComputePoolType, ComputeRoutePathType, MakeSwapInstructionParam, PoolAccountInfoV4, ReturnTypeFetchMultipleInfo, ReturnTypeGetAddLiquidityDefaultPool, ReturnTypeGetAllRoute, ReturnTypeMakeSwapInstruction, ReturnTypeMakeSwapTransaction, RoutePathType } from './type.js';
3
3
  import '@solana/web3.js';
4
4
  import 'bn.js';
5
- import '../../api-ce8cb0e7.js';
5
+ import '../../api-aa5759c5.js';
6
6
  import 'axios';
7
7
  import '../../solana/type.js';
8
8
  import '@solana/spl-token';
@@ -17,7 +17,7 @@ import '../../common/logger.js';
17
17
  import '../../module/currency.js';
18
18
  import '../../marshmallow/index.js';
19
19
  import '../../marshmallow/buffer-layout.js';
20
- import '../../type-526e8620.js';
20
+ import '../../type-3ac7311b.js';
21
21
  import '../clmm/layout.js';
22
22
  import '../liquidity/type.js';
23
23
  import '../liquidity/layout.js';
@@ -1,6 +1,6 @@
1
1
  import { PublicKey, TransactionInstruction } from '@solana/web3.js';
2
2
  import BN__default from 'bn.js';
3
- import { s as ApiV3PoolInfoItem, G as PoolKeys } from '../../api-ce8cb0e7.js';
3
+ import { s as ApiV3PoolInfoItem, G as PoolKeys } from '../../api-aa5759c5.js';
4
4
  import { ComputePoolType, MakeSwapInstructionParam, ReturnTypeMakeSwapInstruction } from './type.js';
5
5
  import 'axios';
6
6
  import '../../solana/type.js';
@@ -16,7 +16,7 @@ import '../../common/logger.js';
16
16
  import '../../module/currency.js';
17
17
  import '../../marshmallow/index.js';
18
18
  import '../../marshmallow/buffer-layout.js';
19
- import '../../type-526e8620.js';
19
+ import '../../type-3ac7311b.js';
20
20
  import '../clmm/layout.js';
21
21
  import '../liquidity/type.js';
22
22
  import '../liquidity/layout.js';
@@ -2,10 +2,10 @@ import '@solana/web3.js';
2
2
  import '@solana/spl-token';
3
3
  import 'bn.js';
4
4
  import 'decimal.js';
5
- import '../../api-ce8cb0e7.js';
5
+ import '../../api-aa5759c5.js';
6
6
  import '../../common/txTool/txType.js';
7
- export { m as default } from '../../raydium-d940abae.js';
8
- import '../../type-526e8620.js';
7
+ export { m as default } from '../../raydium-940808d1.js';
8
+ import '../../type-3ac7311b.js';
9
9
  import '../cpmm/type.js';
10
10
  import '../cpmm/curve/calculator.js';
11
11
  import '../liquidity/type.js';
@@ -1,9 +1,9 @@
1
1
  import { PublicKey, Keypair, Signer, TransactionInstruction, Transaction } from '@solana/web3.js';
2
2
  import BN__default from 'bn.js';
3
3
  import Decimal from 'decimal.js';
4
- import { bX as TransferAmountFee, ce as TokenAmount, G as PoolKeys, s as ApiV3PoolInfoItem } from '../../api-ce8cb0e7.js';
4
+ import { bX as TransferAmountFee, ce as TokenAmount, G as PoolKeys, s as ApiV3PoolInfoItem } from '../../api-aa5759c5.js';
5
5
  import { Token } from '../../module/token.js';
6
- import { d as ComputeClmmPoolInfo } from '../../type-526e8620.js';
6
+ import { d as ComputeClmmPoolInfo } from '../../type-3ac7311b.js';
7
7
  import { ComputeAmountOutParam } from '../liquidity/type.js';
8
8
  import { CpmmComputeData } from '../cpmm/type.js';
9
9
  import 'axios';
@@ -1,7 +1,7 @@
1
1
  import '@solana/web3.js';
2
2
  import 'bn.js';
3
3
  import '@solana/spl-token';
4
- export { c3 as ArrayItem, bU as ComputeBudgetConfig, ca as Cover, c4 as ExactPartial, c5 as ExactRequired, c9 as Fallback, bY as GetTransferAmountFee, c7 as GetValue, bT as InstructionReturn, bW as LoadParams, bS as MakeMultiTransaction, bQ as MakeTransaction, bR as MakeV0Transaction, c0 as MayArray, c1 as MayDeepArray, c2 as MayFunction, b$ as ReplaceType, bZ as ReturnTypeFetchMultipleMintInfo, b_ as ReturnTypeFetchMultipleMintInfos, bO as ReturnTypeMakeInstructions, c6 as SKeyof, c8 as SOR, bP as SignAllTransactions, bX as TransferAmountFee, bV as TxTipConfig, cb as UnionCover, cc as unionArr } from '../api-ce8cb0e7.js';
4
+ export { c3 as ArrayItem, bU as ComputeBudgetConfig, ca as Cover, c4 as ExactPartial, c5 as ExactRequired, c9 as Fallback, bY as GetTransferAmountFee, c7 as GetValue, bT as InstructionReturn, bW as LoadParams, bS as MakeMultiTransaction, bQ as MakeTransaction, bR as MakeV0Transaction, c0 as MayArray, c1 as MayDeepArray, c2 as MayFunction, b$ as ReplaceType, bZ as ReturnTypeFetchMultipleMintInfo, b_ as ReturnTypeFetchMultipleMintInfos, bO as ReturnTypeMakeInstructions, c6 as SKeyof, c8 as SOR, bP as SignAllTransactions, bX as TransferAmountFee, bV as TxTipConfig, cb as UnionCover, cc as unionArr } from '../api-aa5759c5.js';
5
5
  import 'axios';
6
6
  import '../solana/type.js';
7
7
  import '../api/url.js';
@@ -1,6 +1,6 @@
1
- export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-d940abae.js';
1
+ export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-940808d1.js';
2
2
  import '@solana/web3.js';
3
- import '../../api-ce8cb0e7.js';
3
+ import '../../api-aa5759c5.js';
4
4
  import 'axios';
5
5
  import '../../solana/type.js';
6
6
  import 'bn.js';
@@ -22,7 +22,7 @@ import '../liquidity/stable.js';
22
22
  import '../liquidity/type.js';
23
23
  import '../liquidity/layout.js';
24
24
  import '../clmm/layout.js';
25
- import '../../type-526e8620.js';
25
+ import '../../type-3ac7311b.js';
26
26
  import '../cpmm/curve/calculator.js';
27
27
  import '../cpmm/type.js';
28
28
  import '../cpmm/layout.js';
@@ -1,9 +1,9 @@
1
1
  import '../../marshmallow/index.js';
2
2
  import '@solana/web3.js';
3
3
  import 'bn.js';
4
- export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-d940abae.js';
4
+ export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-940808d1.js';
5
5
  import '../../marshmallow/buffer-layout.js';
6
- import '../../api-ce8cb0e7.js';
6
+ import '../../api-aa5759c5.js';
7
7
  import 'axios';
8
8
  import '../../solana/type.js';
9
9
  import '@solana/spl-token';
@@ -22,7 +22,7 @@ import '../liquidity/stable.js';
22
22
  import '../liquidity/type.js';
23
23
  import '../liquidity/layout.js';
24
24
  import '../clmm/layout.js';
25
- import '../../type-526e8620.js';
25
+ import '../../type-3ac7311b.js';
26
26
  import '../cpmm/curve/calculator.js';
27
27
  import '../cpmm/type.js';
28
28
  import '../cpmm/layout.js';
@@ -1,5 +1,5 @@
1
1
  import { PublicKey, Commitment, EpochInfo, Connection, Transaction, Signer, TransactionInstruction, Keypair } from '@solana/web3.js';
2
- import { aG as TxBuilder, ay as AddInstructionParam, ag as BigNumberish, bt as CreateFarm, aF as MakeTxData, bu as CreateFarmExtInfo, bv as UpdateFarmReward, bw as UpdateFarmRewards, bx as FarmDWParam, $ as FormatFarmInfoOut, bU as ComputeBudgetConfig, bV as TxTipConfig, aE as MakeMultiTxData, q as ApiV3PoolInfoStandardItem, ci as Percent, ce as TokenAmount, x as AmmV4Keys, y as AmmV5Keys, p as ApiV3PoolInfoConcentratedItem, _ as FormatFarmInfoOutV6, D as ClmmKeys, bQ as MakeTransaction, b_ as ReturnTypeFetchMultipleMintInfos, z as CpmmKeys, r as ApiV3PoolInfoStandardItemCpmm, bY as GetTransferAmountFee, G as PoolKeys, i as ApiV3Token, a2 as OwnerIdoInfo, a3 as IdoKeysData, bW as LoadParams, J as JupTokenType, bK as TokenInfo, bP as SignAllTransactions, a as Api, a0 as AvailabilityCheckAPI3, k as ApiV3TokenRes } from './api-ce8cb0e7.js';
2
+ import { aG as TxBuilder, ay as AddInstructionParam, ag as BigNumberish, bt as CreateFarm, aF as MakeTxData, bu as CreateFarmExtInfo, bv as UpdateFarmReward, bw as UpdateFarmRewards, bx as FarmDWParam, $ as FormatFarmInfoOut, bU as ComputeBudgetConfig, bV as TxTipConfig, aE as MakeMultiTxData, q as ApiV3PoolInfoStandardItem, ci as Percent, ce as TokenAmount, x as AmmV4Keys, y as AmmV5Keys, p as ApiV3PoolInfoConcentratedItem, _ as FormatFarmInfoOutV6, D as ClmmKeys, bQ as MakeTransaction, b_ as ReturnTypeFetchMultipleMintInfos, z as CpmmKeys, r as ApiV3PoolInfoStandardItemCpmm, bY as GetTransferAmountFee, G as PoolKeys, i as ApiV3Token, a2 as OwnerIdoInfo, a3 as IdoKeysData, bW as LoadParams, J as JupTokenType, bK as TokenInfo, bP as SignAllTransactions, a as Api, a0 as AvailabilityCheckAPI3, k as ApiV3TokenRes } from './api-aa5759c5.js';
3
3
  import { API_URL_CONFIG } from './api/url.js';
4
4
  import { Owner } from './common/owner.js';
5
5
  import { Cluster } from './solana/type.js';
@@ -11,7 +11,7 @@ import Decimal from 'decimal.js';
11
11
  import { StableLayout } from './raydium/liquidity/stable.js';
12
12
  import { AddLiquidityParams, RemoveParams, CreatePoolParam, CreatePoolAddress, CreateMarketAndPoolParam, ComputeAmountOutParam, ComputeAmountInParam, SwapParam, AmmRpcData } from './raydium/liquidity/type.js';
13
13
  import { ClmmPositionLayout, PositionInfoLayout, LockClPositionLayoutV2, PoolInfoLayout } from './raydium/clmm/layout.js';
14
- import { m as CreateConcentratedPool, O as OpenPositionFromBase, o as OpenPositionFromBaseExtInfo, p as OpenPositionFromLiquidity, q as OpenPositionFromLiquidityExtInfo, I as IncreasePositionFromLiquidity, M as ManipulateLiquidityExtInfo, n as IncreasePositionFromBase, D as DecreaseLiquidity, z as ClosePositionExtInfo, L as LockPosition, F as ClmmLockAddress, H as HarvestLockPosition, r as InitRewardParams, B as InitRewardExtInfo, s as InitRewardsParams, t as SetRewardParams, u as SetRewardsParams, v as CollectRewardParams, w as CollectRewardsParams, x as HarvestAllRewardsParams, E as ClmmParsedRpcData, d as ComputeClmmPoolInfo, l as ReturnTypeFetchMultiplePoolTickArrays, k as ReturnTypeComputeAmountOutBaseOut, i as ReturnTypeComputeAmountOutFormat } from './type-526e8620.js';
14
+ import { m as CreateConcentratedPool, O as OpenPositionFromBase, o as OpenPositionFromBaseExtInfo, p as OpenPositionFromLiquidity, q as OpenPositionFromLiquidityExtInfo, I as IncreasePositionFromLiquidity, M as ManipulateLiquidityExtInfo, n as IncreasePositionFromBase, D as DecreaseLiquidity, z as ClosePositionExtInfo, L as LockPosition, F as ClmmLockAddress, H as HarvestLockPosition, r as InitRewardParams, B as InitRewardExtInfo, s as InitRewardsParams, t as SetRewardParams, u as SetRewardsParams, v as CollectRewardParams, w as CollectRewardsParams, x as HarvestAllRewardsParams, E as ClmmParsedRpcData, d as ComputeClmmPoolInfo, l as ReturnTypeFetchMultiplePoolTickArrays, k as ReturnTypeComputeAmountOutBaseOut, i as ReturnTypeComputeAmountOutFormat } from './type-3ac7311b.js';
15
15
  import { SwapResult } from './raydium/cpmm/curve/calculator.js';
16
16
  import { CpmmParsedRpcData, CpmmComputeData, CreateCpmmPoolParam, CreateCpmmPoolAddress, AddCpmmLiquidityParams, WithdrawCpmmLiquidityParams, CpmmSwapParams, LockCpmmLpParams, CpmmLockExtInfo, HarvestLockCpmmLpParams, HarvestMultiLockCpmmLpParams, CreateCpmmPoolPermissionParam, CollectCreatorFees, CollectMultiCreatorFees, ComputePairAmountParams } from './raydium/cpmm/type.js';
17
17
  import { TransferFeeConfig } from '@solana/spl-token';
@@ -1,7 +1,7 @@
1
1
  import { PublicKey, Transaction, Signer, Keypair, EpochInfo } from '@solana/web3.js';
2
2
  import BN__default from 'bn.js';
3
3
  import Decimal from 'decimal.js';
4
- import { p as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bY as GetTransferAmountFee, bX as TransferAmountFee, cj as Price, ci as Percent, ce as TokenAmount, bU as ComputeBudgetConfig, bV as TxTipConfig, cg as Fraction, bK as TokenInfo, D as ClmmKeys } from './api-ce8cb0e7.js';
4
+ import { p as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bY as GetTransferAmountFee, bX as TransferAmountFee, cj as Price, ci as Percent, ce as TokenAmount, bU as ComputeBudgetConfig, bV as TxTipConfig, cg as Fraction, bK as TokenInfo, D as ClmmKeys } from './api-aa5759c5.js';
5
5
  import { TxVersion } from './common/txTool/txType.js';
6
6
  import { TickArrayBitmapExtensionLayout, PoolInfoLayout, ClmmPositionLayout, LockClPositionLayoutV2 } from './raydium/clmm/layout.js';
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydium-io/raydium-sdk-v2",
3
- "version": "0.2.42-alpha",
3
+ "version": "0.2.43-alpha",
4
4
  "description": "An SDK for building applications on top of Raydium.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "./lib/index.js",
package/src/api/api.ts CHANGED
@@ -211,10 +211,12 @@ export class Api {
211
211
  }
212
212
 
213
213
  async getPoolList(props: FetchPoolParams = {}): Promise<PoolsApiReturn> {
214
- const { type = "all", sort = "liquidity", order = "desc", page = 0, pageSize = 100 } = props;
214
+ const { type = "all", sort = "liquidity", order = "desc", showFarms = false, nextPageId, pageSize = 100 } = props;
215
215
  const res = await this.api.get<PoolsApiReturn>(
216
216
  (this.urlConfigs.POOL_LIST || API_URLS.POOL_LIST) +
217
- `?poolType=${type}&poolSortField=${sort}&sortType=${order}&page=${page}&pageSize=${pageSize}`,
217
+ `?size=${pageSize}&hasReward=${showFarms}${type && type !== "all" ? `&poolType=${type}` : ""}${
218
+ sort ? `&sortField=${sort}` : ""
219
+ }${order ? `&sortType=${order}` : ""}${nextPageId ? `&nextPageId=${nextPageId}` : ""}`,
218
220
  );
219
221
  return res.data;
220
222
  }
@@ -256,7 +258,7 @@ export class Api {
256
258
  props: {
257
259
  mint1: string | PublicKey;
258
260
  mint2?: string | PublicKey;
259
- } & Omit<FetchPoolParams, "pageSize">,
261
+ } & FetchPoolParams,
260
262
  ): Promise<PoolsApiReturn> {
261
263
  const {
262
264
  mint1: propMint1,
@@ -264,7 +266,7 @@ export class Api {
264
266
  type = PoolFetchType.All,
265
267
  sort = "default",
266
268
  order = "desc",
267
- page = 1,
269
+ nextPageId,
268
270
  } = props;
269
271
 
270
272
  const [mint1, mint2] = [
@@ -273,9 +275,14 @@ export class Api {
273
275
  ];
274
276
  const [baseMint, quoteMint] = mint2 && mint1 > mint2 ? [mint2, mint1] : [mint1, mint2];
275
277
 
278
+ if (!mint1 && !mint2) throw new Error("not search mints provided");
276
279
  const res = await this.api.get(
277
280
  (this.urlConfigs.POOL_SEARCH_MINT || API_URLS.POOL_SEARCH_MINT) +
278
- `?mint1=${baseMint}&mint2=${quoteMint}&poolType=${type}&poolSortField=${sort}&sortType=${order}&pageSize=100&page=${page}`,
281
+ `?size=100&mint1=${baseMint}${quoteMint ? `&mint2=${quoteMint}` : ""}${
282
+ type && type !== "all" ? `&poolType=${type}` : ""
283
+ }${sort ? `&sortField=${sort}` : ""}${order ? `&sortType=${order}` : ""}${
284
+ nextPageId ? `&nextPageId=${nextPageId}` : ""
285
+ }`,
279
286
  );
280
287
  return res.data;
281
288
  }
package/src/api/type.ts CHANGED
@@ -357,11 +357,8 @@ export type ApiV3PoolInfoItem =
357
357
 
358
358
  export enum PoolFetchType {
359
359
  All = "all",
360
- Standard = "standard",
361
- Concentrated = "concentrated",
362
- AllFarm = "allFarm",
363
- StandardFarm = "standardFarm",
364
- ConcentratedFarm = "concentratedFarm",
360
+ Standard = "Standard",
361
+ Concentrated = "Concentrated",
365
362
  }
366
363
 
367
364
  export interface FetchPoolParams {
@@ -379,7 +376,10 @@ export interface FetchPoolParams {
379
376
  | "apr30d";
380
377
  order?: "desc" | "asc";
381
378
  pageSize?: number;
382
- page?: number;
379
+ nextPageId?: string;
380
+ showFarms?: boolean;
381
+ mint1?: string;
382
+ mint2?: string;
383
383
  }
384
384
 
385
385
  // liquidity line
package/src/api/url.ts CHANGED
@@ -26,13 +26,13 @@ export const API_URLS = {
26
26
 
27
27
  JUP_TOKEN_LIST: "https://lite-api.jup.ag/tokens/v2/tag?query=verified",
28
28
  /**
29
- * poolType: {all, concentrated, standard, allFarm, concentratedFarm, standardFarm}
30
- * poolSortField: {liquidity | volume_24h / 7d / 30d | fee_24h / 7d / 30d | apr_24h / 7d / 30d}
31
- * sortType: {desc/asc}
32
- * page: number
33
- * pageSize: number
29
+ * poolType: Concentrated / Standard // optional
30
+ * sortField: liquidity / volume24h / fee24h / apr24h (more time unit 7d/30d e.g. volume27d) // optional
31
+ * sortType: desc / asc // optional
32
+ * size: 100
33
+ * hasReward: true or false // optional
34
34
  */
35
- POOL_LIST: "/pools/info/list",
35
+ POOL_LIST: "/pools/info/list-v2",
36
36
  /**
37
37
  * ?ids=idList.join(',')
38
38
  */
@@ -45,7 +45,7 @@ export const API_URLS = {
45
45
  * page: number
46
46
  * pageSize: number
47
47
  */
48
- POOL_SEARCH_MINT: "/pools/info/mint",
48
+ POOL_SEARCH_MINT: "/pools/info/list-v2",
49
49
  /** ?lps=lpList.join(',') */
50
50
  POOL_SEARCH_LP: "/pools/info/lps",
51
51
  /** ?ids=idList.join(',') */