@raydium-io/raydium-sdk-v2 0.2.6-alpha → 0.2.7-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 (100) hide show
  1. package/lib/api/api.d.ts +1 -1
  2. package/lib/api/index.d.ts +1 -1
  3. package/lib/api/type.d.ts +1 -1
  4. package/lib/{api-c81dd6be.d.ts → api-92e9adc3.d.ts} +3 -3
  5. package/lib/common/accountInfo.d.ts +1 -1
  6. package/lib/common/bignumber.d.ts +1 -1
  7. package/lib/common/constant.d.ts +1 -1
  8. package/lib/common/fractionUtil.d.ts +1 -1
  9. package/lib/common/index.d.ts +1 -1
  10. package/lib/common/transfer.d.ts +1 -1
  11. package/lib/common/txTool/txTool.d.ts +1 -1
  12. package/lib/common/txTool/txUtils.d.ts +1 -1
  13. package/lib/common/utility.d.ts +1 -1
  14. package/lib/index.d.ts +3 -3
  15. package/lib/index.js +1 -1
  16. package/lib/index.js.map +1 -1
  17. package/lib/index.mjs +1 -1
  18. package/lib/index.mjs.map +1 -1
  19. package/lib/module/amount.d.ts +1 -1
  20. package/lib/module/fraction.d.ts +1 -1
  21. package/lib/module/index.d.ts +1 -1
  22. package/lib/module/percent.d.ts +1 -1
  23. package/lib/module/price.d.ts +1 -1
  24. package/lib/raydium/account/account.d.ts +3 -3
  25. package/lib/raydium/account/index.d.ts +1 -1
  26. package/lib/raydium/account/instruction.d.ts +1 -1
  27. package/lib/raydium/account/types.d.ts +1 -1
  28. package/lib/raydium/account/util.d.ts +1 -1
  29. package/lib/raydium/clmm/clmm.d.ts +3 -3
  30. package/lib/raydium/clmm/index.d.ts +3 -3
  31. package/lib/raydium/clmm/instrument.d.ts +2 -2
  32. package/lib/raydium/clmm/layout.d.ts +5 -5
  33. package/lib/raydium/clmm/type.d.ts +2 -2
  34. package/lib/raydium/clmm/utils/math.d.ts +2 -2
  35. package/lib/raydium/clmm/utils/pool.d.ts +2 -2
  36. package/lib/raydium/clmm/utils/position.d.ts +2 -2
  37. package/lib/raydium/clmm/utils/tick.d.ts +2 -2
  38. package/lib/raydium/clmm/utils/tickQuery.d.ts +2 -2
  39. package/lib/raydium/clmm/utils/tickarrayBitmap.d.ts +2 -2
  40. package/lib/raydium/cpmm/cpmm.d.ts +3 -3
  41. package/lib/raydium/cpmm/cpmm.js +1 -1
  42. package/lib/raydium/cpmm/cpmm.js.map +1 -1
  43. package/lib/raydium/cpmm/cpmm.mjs +1 -1
  44. package/lib/raydium/cpmm/cpmm.mjs.map +1 -1
  45. package/lib/raydium/cpmm/curve/calculator.d.ts +1 -1
  46. package/lib/raydium/cpmm/curve/constantProduct.d.ts +1 -1
  47. package/lib/raydium/cpmm/index.d.ts +1 -1
  48. package/lib/raydium/cpmm/instruction.d.ts +1 -1
  49. package/lib/raydium/cpmm/type.d.ts +1 -1
  50. package/lib/raydium/farm/config.d.ts +1 -1
  51. package/lib/raydium/farm/farm.d.ts +3 -3
  52. package/lib/raydium/farm/index.d.ts +1 -1
  53. package/lib/raydium/farm/instruction.d.ts +1 -1
  54. package/lib/raydium/farm/layout.d.ts +1 -1
  55. package/lib/raydium/farm/type.d.ts +1 -1
  56. package/lib/raydium/farm/util.d.ts +1 -1
  57. package/lib/raydium/ido/ido.d.ts +3 -3
  58. package/lib/raydium/ido/index.d.ts +3 -3
  59. package/lib/raydium/ido/instruction.d.ts +1 -1
  60. package/lib/raydium/ido/type.d.ts +1 -1
  61. package/lib/raydium/index.d.ts +3 -3
  62. package/lib/raydium/index.js +1 -1
  63. package/lib/raydium/index.js.map +1 -1
  64. package/lib/raydium/index.mjs +1 -1
  65. package/lib/raydium/index.mjs.map +1 -1
  66. package/lib/raydium/launchpad/curve/curve.d.ts +1 -1
  67. package/lib/raydium/launchpad/index.d.ts +3 -3
  68. package/lib/raydium/launchpad/launchpad.d.ts +3 -3
  69. package/lib/raydium/launchpad/layout.d.ts +2 -2
  70. package/lib/raydium/launchpad/pda.d.ts +1 -1
  71. package/lib/raydium/launchpad/type.d.ts +1 -1
  72. package/lib/raydium/liquidity/index.d.ts +1 -1
  73. package/lib/raydium/liquidity/instruction.d.ts +1 -1
  74. package/lib/raydium/liquidity/liquidity.d.ts +3 -3
  75. package/lib/raydium/liquidity/type.d.ts +1 -1
  76. package/lib/raydium/liquidity/utils.d.ts +1 -1
  77. package/lib/raydium/marketV2/createMarket.d.ts +3 -3
  78. package/lib/raydium/marketV2/index.d.ts +3 -3
  79. package/lib/raydium/moduleBase.d.ts +3 -3
  80. package/lib/raydium/raydium.d.ts +3 -3
  81. package/lib/raydium/raydium.js +1 -1
  82. package/lib/raydium/raydium.js.map +1 -1
  83. package/lib/raydium/raydium.mjs +1 -1
  84. package/lib/raydium/raydium.mjs.map +1 -1
  85. package/lib/raydium/token/constant.d.ts +1 -1
  86. package/lib/raydium/token/index.d.ts +1 -1
  87. package/lib/raydium/token/token.d.ts +3 -3
  88. package/lib/raydium/token/type.d.ts +1 -1
  89. package/lib/raydium/token/utils.d.ts +1 -1
  90. package/lib/raydium/tradeV2/index.d.ts +2 -2
  91. package/lib/raydium/tradeV2/instrument.d.ts +2 -2
  92. package/lib/raydium/tradeV2/trade.d.ts +3 -3
  93. package/lib/raydium/tradeV2/type.d.ts +2 -2
  94. package/lib/raydium/type.d.ts +1 -1
  95. package/lib/raydium/utils1216/index.d.ts +3 -3
  96. package/lib/raydium/utils1216/utils1216.d.ts +3 -3
  97. package/lib/{raydium-0ce2c946.d.ts → raydium-bd752ae1.d.ts} +2 -2
  98. package/lib/{type-dabc7a99.d.ts → type-f95c297a.d.ts} +1 -1
  99. package/package.json +1 -1
  100. package/src/raydium/cpmm/cpmm.ts +70 -65
package/lib/api/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'axios';
2
2
  import '../solana/type.js';
3
- export { a as Api, A as ApiProps, e as endlessRetry } from '../api-c81dd6be.js';
3
+ export { a as Api, A as ApiProps, e as endlessRetry } from '../api-92e9adc3.js';
4
4
  import './url.js';
5
5
  import '@solana/web3.js';
6
6
  import 'bn.js';
@@ -1,4 +1,4 @@
1
- export { x as AmmV4Keys, y as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, H as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, A as ApiProps, a4 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, o as ApiV3PoolInfoBaseItem, p as ApiV3PoolInfoConcentratedItem, l as ApiV3PoolInfoCountItem, s as ApiV3PoolInfoItem, q as ApiV3PoolInfoStandardItem, r as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, k as ApiV3TokenRes, a0 as AvailabilityCheckAPI3, D as ClmmKeys, B as ClmmRewardType, z as CpmmKeys, C as CpmmLockInfo, E as ExtensionsItem, a5 as FarmPositionData, F as FarmRewardInfoV6, M as FarmRewardTypeV6Key, X as FarmTagsItem, u as FetchPoolParams, $ as FormatFarmInfoOut, Y as FormatFarmInfoOutBase, Z as FormatFarmInfoOutV345, _ as FormatFarmInfoOutV6, U as FormatFarmKeyOut, Q as FormatFarmKeyOutV345, S as FormatFarmKeyOutV6, a3 as IdoKeysData, j as JupToken, J as JupTokenType, w as LiquidityLineApi, L as LiquidityVersion, a1 as OwnerCreatedFarmInfo, a2 as OwnerIdoInfo, v as Point, m as PoolFarmRewardInfo, t as PoolFetchType, G as PoolKeys, n as PoolRewardInfoItem, P as PoolsApiReturn, V as RewardInfoV345, W as RewardInfoV6, N as RewardKeyInfoV345, O as RewardKeyInfoV6, R as RpcItemA, I as RpcItemB, K as RpcType, T as TransferFeeDataBaseType, e as endlessRetry } from '../api-c81dd6be.js';
1
+ export { x as AmmV4Keys, y as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, H as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, A as ApiProps, a4 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, o as ApiV3PoolInfoBaseItem, p as ApiV3PoolInfoConcentratedItem, l as ApiV3PoolInfoCountItem, s as ApiV3PoolInfoItem, q as ApiV3PoolInfoStandardItem, r as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, k as ApiV3TokenRes, a0 as AvailabilityCheckAPI3, D as ClmmKeys, B as ClmmRewardType, z as CpmmKeys, C as CpmmLockInfo, E as ExtensionsItem, a5 as FarmPositionData, F as FarmRewardInfoV6, M as FarmRewardTypeV6Key, X as FarmTagsItem, u as FetchPoolParams, $ as FormatFarmInfoOut, Y as FormatFarmInfoOutBase, Z as FormatFarmInfoOutV345, _ as FormatFarmInfoOutV6, U as FormatFarmKeyOut, Q as FormatFarmKeyOutV345, S as FormatFarmKeyOutV6, a3 as IdoKeysData, j as JupToken, J as JupTokenType, w as LiquidityLineApi, L as LiquidityVersion, a1 as OwnerCreatedFarmInfo, a2 as OwnerIdoInfo, v as Point, m as PoolFarmRewardInfo, t as PoolFetchType, G as PoolKeys, n as PoolRewardInfoItem, P as PoolsApiReturn, V as RewardInfoV345, W as RewardInfoV6, N as RewardKeyInfoV345, O as RewardKeyInfoV6, R as RpcItemA, I as RpcItemB, K as RpcType, T as TransferFeeDataBaseType, e as endlessRetry } from '../api-92e9adc3.js';
2
2
  export { API_URLS, API_URL_CONFIG, DEV_API_URLS } from './url.js';
3
3
  export { ResHistory, SESSION_KEY, STORAGE_KEY, getSessionKey, updateReqHistory } from './utils.js';
4
4
  import 'axios';
package/lib/api/type.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { x as AmmV4Keys, y as AmmV5Keys, d as ApiClmmConfigInfo, H as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, a4 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, o as ApiV3PoolInfoBaseItem, p as ApiV3PoolInfoConcentratedItem, l as ApiV3PoolInfoCountItem, s as ApiV3PoolInfoItem, q as ApiV3PoolInfoStandardItem, r as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, k as ApiV3TokenRes, a0 as AvailabilityCheckAPI3, D as ClmmKeys, B as ClmmRewardType, z as CpmmKeys, C as CpmmLockInfo, E as ExtensionsItem, a5 as FarmPositionData, F as FarmRewardInfoV6, M as FarmRewardTypeV6Key, X as FarmTagsItem, u as FetchPoolParams, $ as FormatFarmInfoOut, Y as FormatFarmInfoOutBase, Z as FormatFarmInfoOutV345, _ as FormatFarmInfoOutV6, U as FormatFarmKeyOut, Q as FormatFarmKeyOutV345, S as FormatFarmKeyOutV6, a3 as IdoKeysData, j as JupToken, J as JupTokenType, w as LiquidityLineApi, L as LiquidityVersion, a1 as OwnerCreatedFarmInfo, a2 as OwnerIdoInfo, v as Point, m as PoolFarmRewardInfo, t as PoolFetchType, G as PoolKeys, n as PoolRewardInfoItem, P as PoolsApiReturn, V as RewardInfoV345, W as RewardInfoV6, N as RewardKeyInfoV345, O as RewardKeyInfoV6, R as RpcItemA, I as RpcItemB, K as RpcType, T as TransferFeeDataBaseType } from '../api-c81dd6be.js';
1
+ export { x as AmmV4Keys, y as AmmV5Keys, d as ApiClmmConfigInfo, H as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, a4 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, o as ApiV3PoolInfoBaseItem, p as ApiV3PoolInfoConcentratedItem, l as ApiV3PoolInfoCountItem, s as ApiV3PoolInfoItem, q as ApiV3PoolInfoStandardItem, r as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, k as ApiV3TokenRes, a0 as AvailabilityCheckAPI3, D as ClmmKeys, B as ClmmRewardType, z as CpmmKeys, C as CpmmLockInfo, E as ExtensionsItem, a5 as FarmPositionData, F as FarmRewardInfoV6, M as FarmRewardTypeV6Key, X as FarmTagsItem, u as FetchPoolParams, $ as FormatFarmInfoOut, Y as FormatFarmInfoOutBase, Z as FormatFarmInfoOutV345, _ as FormatFarmInfoOutV6, U as FormatFarmKeyOut, Q as FormatFarmKeyOutV345, S as FormatFarmKeyOutV6, a3 as IdoKeysData, j as JupToken, J as JupTokenType, w as LiquidityLineApi, L as LiquidityVersion, a1 as OwnerCreatedFarmInfo, a2 as OwnerIdoInfo, v as Point, m as PoolFarmRewardInfo, t as PoolFetchType, G as PoolKeys, n as PoolRewardInfoItem, P as PoolsApiReturn, V as RewardInfoV345, W as RewardInfoV6, N as RewardKeyInfoV345, O as RewardKeyInfoV6, R as RpcItemA, I as RpcItemB, K as RpcType, T as TransferFeeDataBaseType } from '../api-92e9adc3.js';
2
2
  import 'axios';
3
3
  import '../solana/type.js';
4
4
  import '@solana/web3.js';
@@ -950,7 +950,7 @@ declare const dwLayout: Structure<number | BN__default, "", {
950
950
  instruction: number;
951
951
  amount: BN__default;
952
952
  }>;
953
- declare const VoterVotingMintConfig: Structure<PublicKey | number[] | BN__default | BN__default[], "", {
953
+ declare const VoterVotingMintConfig: Structure<number[] | PublicKey | BN__default | BN__default[], "", {
954
954
  mint: PublicKey;
955
955
  grantAuthority: PublicKey;
956
956
  baselineVoteWeightScaledFactor: BN__default;
@@ -960,7 +960,7 @@ declare const VoterVotingMintConfig: Structure<PublicKey | number[] | BN__defaul
960
960
  reserved1: number[];
961
961
  reserved2: BN__default[];
962
962
  }>;
963
- declare const VoterRegistrar: Structure<number | PublicKey | number[] | Buffer | BN__default | BN__default[] | {
963
+ declare const VoterRegistrar: Structure<number | number[] | PublicKey | Buffer | BN__default | BN__default[] | {
964
964
  mint: PublicKey;
965
965
  grantAuthority: PublicKey;
966
966
  baselineVoteWeightScaledFactor: BN__default;
@@ -1015,7 +1015,7 @@ declare const VoterDepositEntry: Structure<number | boolean | number[] | BN__def
1015
1015
  allowClawback: boolean;
1016
1016
  votingMintConfigIdx: number;
1017
1017
  }>;
1018
- declare const Voter: Structure<number | PublicKey | number[] | Buffer | {
1018
+ declare const Voter: Structure<number | number[] | PublicKey | Buffer | {
1019
1019
  reserved: number[];
1020
1020
  lockup: {
1021
1021
  startTime: BN__default;
@@ -1,5 +1,5 @@
1
1
  import { Commitment, Connection, PublicKey, AccountInfo } from '@solana/web3.js';
2
- import { b_ as ReturnTypeFetchMultipleMintInfos } from '../api-c81dd6be.js';
2
+ import { b_ as ReturnTypeFetchMultipleMintInfos } from '../api-92e9adc3.js';
3
3
  import 'axios';
4
4
  import '../solana/type.js';
5
5
  import 'bn.js';
@@ -1,6 +1,6 @@
1
1
  import 'bn.js';
2
2
  import 'decimal.js';
3
- export { ac as BN_100, ad as BN_1000, ae as BN_10000, aa as BN_FIVE, a7 as BN_ONE, ab as BN_TEN, a9 as BN_THREE, a8 as BN_TWO, a6 as BN_ZERO, af as BigNumberish, ag as Numberish, an as ceilDiv, at as decimalToFraction, aj as divCeil, ao as floorDiv, au as isDecimal, ai as parseNumberInfo, av as recursivelyDecimalToFraction, ak as shakeFractionDecimal, ah as tenExponential, al as toBN, am as toFraction, ap as toPercent, aq as toTokenPrice, as as toTotalPrice, ar as toUsdCurrency } from '../api-c81dd6be.js';
3
+ export { ac as BN_100, ad as BN_1000, ae as BN_10000, aa as BN_FIVE, a7 as BN_ONE, ab as BN_TEN, a9 as BN_THREE, a8 as BN_TWO, a6 as BN_ZERO, af as BigNumberish, ag as Numberish, an as ceilDiv, at as decimalToFraction, aj as divCeil, ao as floorDiv, au as isDecimal, ai as parseNumberInfo, av as recursivelyDecimalToFraction, ak as shakeFractionDecimal, ah as tenExponential, al as toBN, am as toFraction, ap as toPercent, aq as toTokenPrice, as as toTotalPrice, ar as toUsdCurrency } from '../api-92e9adc3.js';
4
4
  import '../module/token.js';
5
5
  import 'axios';
6
6
  import '../solana/type.js';
@@ -1,5 +1,5 @@
1
1
  import 'bn.js';
2
- export { aw as Rounding, ax as parseBigNumberish } from '../api-c81dd6be.js';
2
+ export { aw as Rounding, ax as parseBigNumberish } from '../api-92e9adc3.js';
3
3
  import 'axios';
4
4
  import '../solana/type.js';
5
5
  import '@solana/web3.js';
@@ -1,4 +1,4 @@
1
- import { ag as Numberish, cg as Fraction } from '../api-c81dd6be.js';
1
+ import { ag as Numberish, cg as Fraction } from '../api-92e9adc3.js';
2
2
  import 'axios';
3
3
  import '../solana/type.js';
4
4
  import '@solana/web3.js';
@@ -1,5 +1,5 @@
1
1
  export { ACCOUNT_TYPE_SIZE, AccountType, GetMultipleAccountsInfoConfig, fetchMultipleMintInfos, getMultipleAccountsInfo, getMultipleAccountsInfoWithCustomFlags } from './accountInfo.js';
2
- export { ay as AddInstructionParam, ac as BN_100, ad as BN_1000, ae as BN_10000, aa as BN_FIVE, a7 as BN_ONE, ab as BN_TEN, a9 as BN_THREE, a8 as BN_TWO, a6 as BN_ZERO, af as BigNumberish, aE as MakeMultiTxData, aF as MakeTxData, aC as MultiTxBuildData, aB as MultiTxExecuteParam, aD as MultiTxV0BuildData, ag as Numberish, aw as Rounding, az as TxBuildData, aG as TxBuilder, aA as TxV0BuildData, an as ceilDiv, at as decimalToFraction, aj as divCeil, ao as floorDiv, au as isDecimal, ax as parseBigNumberish, ai as parseNumberInfo, av as recursivelyDecimalToFraction, ak as shakeFractionDecimal, ah as tenExponential, al as toBN, am as toFraction, ap as toPercent, aq as toTokenPrice, as as toTotalPrice, ar as toUsdCurrency } from '../api-c81dd6be.js';
2
+ export { ay as AddInstructionParam, ac as BN_100, ad as BN_1000, ae as BN_10000, aa as BN_FIVE, a7 as BN_ONE, ab as BN_TEN, a9 as BN_THREE, a8 as BN_TWO, a6 as BN_ZERO, af as BigNumberish, aE as MakeMultiTxData, aF as MakeTxData, aC as MultiTxBuildData, aB as MultiTxExecuteParam, aD as MultiTxV0BuildData, ag as Numberish, aw as Rounding, az as TxBuildData, aG as TxBuilder, aA as TxV0BuildData, an as ceilDiv, at as decimalToFraction, aj as divCeil, ao as floorDiv, au as isDecimal, ax as parseBigNumberish, ai as parseNumberInfo, av as recursivelyDecimalToFraction, ak as shakeFractionDecimal, ah as tenExponential, al as toBN, am as toFraction, ap as toPercent, aq as toTokenPrice, as as toTotalPrice, ar as toUsdCurrency } from '../api-92e9adc3.js';
3
3
  export { DateParam, TimeStamp, getDate, getTime, isDateAfter, isDateBefore, isNumber, offsetDateTime } from './date.js';
4
4
  export { add, div, eq, getMax, gt, gte, isMeaningfulNumber, lt, lte, mul, sub, toFractionWithDecimals } from './fractionUtil.js';
5
5
  export { chunkArray, intersection, uniq, xor } from './lodash.js';
@@ -1,7 +1,7 @@
1
1
  import { EpochInfo } from '@solana/web3.js';
2
2
  import BN__default from 'bn.js';
3
3
  import { TransferFeeConfig } from '@solana/spl-token';
4
- import { bY as GetTransferAmountFee, T as TransferFeeDataBaseType } from '../api-c81dd6be.js';
4
+ import { bY as GetTransferAmountFee, T as TransferFeeDataBaseType } from '../api-92e9adc3.js';
5
5
  import 'axios';
6
6
  import '../solana/type.js';
7
7
  import '../api/url.js';
@@ -1,5 +1,5 @@
1
1
  import '@solana/web3.js';
2
- export { ay as AddInstructionParam, aE as MakeMultiTxData, aF as MakeTxData, aC as MultiTxBuildData, aB as MultiTxExecuteParam, aD as MultiTxV0BuildData, az as TxBuildData, aG as TxBuilder, aA as TxV0BuildData } from '../../api-c81dd6be.js';
2
+ export { ay as AddInstructionParam, aE as MakeMultiTxData, aF as MakeTxData, aC as MultiTxBuildData, aB as MultiTxExecuteParam, aD as MultiTxV0BuildData, az as TxBuildData, aG as TxBuilder, aA as TxV0BuildData } from '../../api-92e9adc3.js';
3
3
  import '../owner.js';
4
4
  import './lookupTable.js';
5
5
  import './txType.js';
@@ -1,6 +1,6 @@
1
1
  import { TransactionInstruction, Connection, Commitment, PublicKey, Transaction, EpochInfo, VersionedTransaction } from '@solana/web3.js';
2
2
  import { CacheLTA } from './lookupTable.js';
3
- import { bU as ComputeBudgetConfig } from '../../api-c81dd6be.js';
3
+ import { bU as ComputeBudgetConfig } from '../../api-92e9adc3.js';
4
4
  import 'axios';
5
5
  import '../../solana/type.js';
6
6
  import 'bn.js';
@@ -1,5 +1,5 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
- import { b$ as ReplaceType } from '../api-c81dd6be.js';
2
+ import { b$ as ReplaceType } from '../api-92e9adc3.js';
3
3
  import 'axios';
4
4
  import '../solana/type.js';
5
5
  import 'bn.js';
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { bn as APIRewardInfo, ay as AddInstructionParam, x as AmmV4Keys, y as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, H as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, A as ApiProps, a4 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, o as ApiV3PoolInfoBaseItem, p as ApiV3PoolInfoConcentratedItem, l as ApiV3PoolInfoCountItem, s as ApiV3PoolInfoItem, q as ApiV3PoolInfoStandardItem, r as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, k as ApiV3TokenRes, c3 as ArrayItem, a0 as AvailabilityCheckAPI3, ac as BN_100, ad as BN_1000, ae as BN_10000, aa as BN_FIVE, a7 as BN_ONE, ab as BN_TEN, a9 as BN_THREE, a8 as BN_TWO, a6 as BN_ZERO, af as BigNumberish, D as ClmmKeys, B as ClmmRewardType, bU as ComputeBudgetConfig, ca as Cover, z as CpmmKeys, C as CpmmLockInfo, bt as CreateFarm, bu as CreateFarmExtInfo, cf as CurrencyAmount, bC as DEV_FARM_LOCK_MINT, bD as DEV_FARM_LOCK_VAULT, c4 as ExactPartial, c5 as ExactRequired, E as ExtensionsItem, bA as FARM_LOCK_MINT, bB as FARM_LOCK_VAULT, bJ as FARM_PROGRAM_TO_VERSION, bF as FARM_VERSION_TO_LEDGER_LAYOUT, bE as FARM_VERSION_TO_STATE_LAYOUT, c9 as Fallback, bx as FarmDWParam, bf as FarmLedger, b9 as FarmLedgerLayout, b4 as FarmLedgerLayoutV3_1, b5 as FarmLedgerLayoutV3_2, b6 as FarmLedgerLayoutV5_1, b7 as FarmLedgerLayoutV5_2, b8 as FarmLedgerLayoutV6_1, ba as FarmLedgerV3_1, bb as FarmLedgerV3_2, bc as FarmLedgerV5_1, bd as FarmLedgerV5_2, be as FarmLedgerV6_1, bs as FarmPoolInfoV6, by as FarmPoolKeys, a5 as FarmPositionData, bp as FarmRewardInfo, bq as FarmRewardInfoConfig, F as FarmRewardInfoV6, M as FarmRewardTypeV6Key, aZ as FarmState, a_ as FarmStateLayout, aT as FarmStateLayoutV3, aU as FarmStateLayoutV5, aV as FarmStateLayoutV6, aW as FarmStateV3, aX as FarmStateV5, aY as FarmStateV6, X as FarmTagsItem, bz as FarmVersion, u as FetchPoolParams, $ as FormatFarmInfoOut, Y as FormatFarmInfoOutBase, Z as FormatFarmInfoOutV345, _ as FormatFarmInfoOutV6, U as FormatFarmKeyOut, Q as FormatFarmKeyOutV345, S as FormatFarmKeyOutV6, cg as Fraction, bY as GetTransferAmountFee, c7 as GetValue, a3 as IdoKeysData, bT as InstructionReturn, j as JupToken, J as JupTokenType, w as LiquidityLineApi, L as LiquidityVersion, bW as LoadParams, bN as LpToken, bS as MakeMultiTransaction, aE as MakeMultiTxData, bQ as MakeTransaction, aF as MakeTxData, bR as MakeV0Transaction, c0 as MayArray, c1 as MayDeepArray, c2 as MayFunction, aC as MultiTxBuildData, aB as MultiTxExecuteParam, aD as MultiTxV0BuildData, ag as Numberish, a1 as OwnerCreatedFarmInfo, a2 as OwnerIdoInfo, ci as Percent, v as Point, m as PoolFarmRewardInfo, t as PoolFetchType, G as PoolKeys, n as PoolRewardInfoItem, P as PoolsApiReturn, cj as Price, b$ as ReplaceType, bZ as ReturnTypeFetchMultipleMintInfo, b_ as ReturnTypeFetchMultipleMintInfos, bO as ReturnTypeMakeInstructions, br as RewardInfoKey, V as RewardInfoV345, W as RewardInfoV6, bo as RewardInfoWithKey, N as RewardKeyInfoV345, O as RewardKeyInfoV6, bm as RewardType, aw as Rounding, R as RpcItemA, I as RpcItemB, K as RpcType, c6 as SKeyof, c8 as SOR, bP as SignAllTransactions, bM as SplToken, ce as TokenAmount, bK as TokenInfo, bL as TokenJson, bX as TransferAmountFee, T as TransferFeeDataBaseType, az as TxBuildData, aG as TxBuilder, bV as TxTipConfig, aA as TxV0BuildData, cb as UnionCover, bv as UpdateFarmReward, bw as UpdateFarmRewards, bl as Voter, bk as VoterDepositEntry, bj as VoterLockup, bi as VoterRegistrar, bh as VoterVotingMintConfig, ch as _100_PERCENT, aH as associatedLedgerAccountLayout, an as ceilDiv, at as decimalToFraction, aj as divCeil, bg as dwLayout, e as endlessRetry, aS as farmAddRewardLayout, a$ as farmLedgerLayoutV3_1, b0 as farmLedgerLayoutV3_2, b1 as farmLedgerLayoutV5_1, b2 as farmLedgerLayoutV5_2, b3 as farmLedgerLayoutV6_1, aQ as farmRewardLayout, aR as farmRewardRestartLayout, aP as farmRewardTimeInfoLayout, aM as farmStateV3Layout, aN as farmStateV5Layout, aO as farmStateV6Layout, ao as floorDiv, au as isDecimal, bG as isValidFarmVersion, ax as parseBigNumberish, ai as parseNumberInfo, bI as poolTypeV6, aJ as realFarmStateV3Layout, aK as realFarmStateV5Layout, aL as realFarmV6Layout, av as recursivelyDecimalToFraction, ak as shakeFractionDecimal, cd as splitNumber, ah as tenExponential, al as toBN, am as toFraction, ap as toPercent, aq as toTokenPrice, as as toTotalPrice, ar as toUsdCurrency, cc as unionArr, bH as validateFarmRewards, aI as withdrawRewardLayout } from './api-c81dd6be.js';
1
+ export { bn as APIRewardInfo, ay as AddInstructionParam, x as AmmV4Keys, y as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, H as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, A as ApiProps, a4 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, o as ApiV3PoolInfoBaseItem, p as ApiV3PoolInfoConcentratedItem, l as ApiV3PoolInfoCountItem, s as ApiV3PoolInfoItem, q as ApiV3PoolInfoStandardItem, r as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, k as ApiV3TokenRes, c3 as ArrayItem, a0 as AvailabilityCheckAPI3, ac as BN_100, ad as BN_1000, ae as BN_10000, aa as BN_FIVE, a7 as BN_ONE, ab as BN_TEN, a9 as BN_THREE, a8 as BN_TWO, a6 as BN_ZERO, af as BigNumberish, D as ClmmKeys, B as ClmmRewardType, bU as ComputeBudgetConfig, ca as Cover, z as CpmmKeys, C as CpmmLockInfo, bt as CreateFarm, bu as CreateFarmExtInfo, cf as CurrencyAmount, bC as DEV_FARM_LOCK_MINT, bD as DEV_FARM_LOCK_VAULT, c4 as ExactPartial, c5 as ExactRequired, E as ExtensionsItem, bA as FARM_LOCK_MINT, bB as FARM_LOCK_VAULT, bJ as FARM_PROGRAM_TO_VERSION, bF as FARM_VERSION_TO_LEDGER_LAYOUT, bE as FARM_VERSION_TO_STATE_LAYOUT, c9 as Fallback, bx as FarmDWParam, bf as FarmLedger, b9 as FarmLedgerLayout, b4 as FarmLedgerLayoutV3_1, b5 as FarmLedgerLayoutV3_2, b6 as FarmLedgerLayoutV5_1, b7 as FarmLedgerLayoutV5_2, b8 as FarmLedgerLayoutV6_1, ba as FarmLedgerV3_1, bb as FarmLedgerV3_2, bc as FarmLedgerV5_1, bd as FarmLedgerV5_2, be as FarmLedgerV6_1, bs as FarmPoolInfoV6, by as FarmPoolKeys, a5 as FarmPositionData, bp as FarmRewardInfo, bq as FarmRewardInfoConfig, F as FarmRewardInfoV6, M as FarmRewardTypeV6Key, aZ as FarmState, a_ as FarmStateLayout, aT as FarmStateLayoutV3, aU as FarmStateLayoutV5, aV as FarmStateLayoutV6, aW as FarmStateV3, aX as FarmStateV5, aY as FarmStateV6, X as FarmTagsItem, bz as FarmVersion, u as FetchPoolParams, $ as FormatFarmInfoOut, Y as FormatFarmInfoOutBase, Z as FormatFarmInfoOutV345, _ as FormatFarmInfoOutV6, U as FormatFarmKeyOut, Q as FormatFarmKeyOutV345, S as FormatFarmKeyOutV6, cg as Fraction, bY as GetTransferAmountFee, c7 as GetValue, a3 as IdoKeysData, bT as InstructionReturn, j as JupToken, J as JupTokenType, w as LiquidityLineApi, L as LiquidityVersion, bW as LoadParams, bN as LpToken, bS as MakeMultiTransaction, aE as MakeMultiTxData, bQ as MakeTransaction, aF as MakeTxData, bR as MakeV0Transaction, c0 as MayArray, c1 as MayDeepArray, c2 as MayFunction, aC as MultiTxBuildData, aB as MultiTxExecuteParam, aD as MultiTxV0BuildData, ag as Numberish, a1 as OwnerCreatedFarmInfo, a2 as OwnerIdoInfo, ci as Percent, v as Point, m as PoolFarmRewardInfo, t as PoolFetchType, G as PoolKeys, n as PoolRewardInfoItem, P as PoolsApiReturn, cj as Price, b$ as ReplaceType, bZ as ReturnTypeFetchMultipleMintInfo, b_ as ReturnTypeFetchMultipleMintInfos, bO as ReturnTypeMakeInstructions, br as RewardInfoKey, V as RewardInfoV345, W as RewardInfoV6, bo as RewardInfoWithKey, N as RewardKeyInfoV345, O as RewardKeyInfoV6, bm as RewardType, aw as Rounding, R as RpcItemA, I as RpcItemB, K as RpcType, c6 as SKeyof, c8 as SOR, bP as SignAllTransactions, bM as SplToken, ce as TokenAmount, bK as TokenInfo, bL as TokenJson, bX as TransferAmountFee, T as TransferFeeDataBaseType, az as TxBuildData, aG as TxBuilder, bV as TxTipConfig, aA as TxV0BuildData, cb as UnionCover, bv as UpdateFarmReward, bw as UpdateFarmRewards, bl as Voter, bk as VoterDepositEntry, bj as VoterLockup, bi as VoterRegistrar, bh as VoterVotingMintConfig, ch as _100_PERCENT, aH as associatedLedgerAccountLayout, an as ceilDiv, at as decimalToFraction, aj as divCeil, bg as dwLayout, e as endlessRetry, aS as farmAddRewardLayout, a$ as farmLedgerLayoutV3_1, b0 as farmLedgerLayoutV3_2, b1 as farmLedgerLayoutV5_1, b2 as farmLedgerLayoutV5_2, b3 as farmLedgerLayoutV6_1, aQ as farmRewardLayout, aR as farmRewardRestartLayout, aP as farmRewardTimeInfoLayout, aM as farmStateV3Layout, aN as farmStateV5Layout, aO as farmStateV6Layout, ao as floorDiv, au as isDecimal, bG as isValidFarmVersion, ax as parseBigNumberish, ai as parseNumberInfo, bI as poolTypeV6, aJ as realFarmStateV3Layout, aK as realFarmStateV5Layout, aL as realFarmV6Layout, av as recursivelyDecimalToFraction, ak as shakeFractionDecimal, cd as splitNumber, ah as tenExponential, al as toBN, am as toFraction, ap as toPercent, aq as toTokenPrice, as as toTotalPrice, ar as toUsdCurrency, cc as unionArr, bH as validateFarmRewards, aI as withdrawRewardLayout } from './api-92e9adc3.js';
2
2
  export { API_URLS, API_URL_CONFIG, DEV_API_URLS } from './api/url.js';
3
3
  export { ResHistory, SESSION_KEY, STORAGE_KEY, getSessionKey, updateReqHistory } from './api/utils.js';
4
4
  export { ACCOUNT_TYPE_SIZE, AccountType, GetMultipleAccountsInfoConfig, fetchMultipleMintInfos, getMultipleAccountsInfo, getMultipleAccountsInfoWithCustomFlags } from './common/accountInfo.js';
@@ -16,7 +16,7 @@ export { InstructionType, TxVersion } from './common/txTool/txType.js';
16
16
  export { MAX_BASE64_SIZE, ProgramAddress, addComputeBudget, checkLegacyTxSize, checkV0TxSize, confirmTransaction, findProgramAddress, forecastTransactionSize, getEpochInfo, getRecentBlockHash, parseSimulateLogToJson, parseSimulateValue, printSimulate, simulateMultipleInstruction, simulateTransaction, toBuffer, transformTxToBase64, txToBase64 } from './common/txTool/txUtils.js';
17
17
  export { getTimestamp, jsonInfo2PoolKeys, notInnerObject, sleep } from './common/utility.js';
18
18
  export { FEE_RATE_DENOMINATOR_VALUE } from './common/fee.js';
19
- export { C as Clmm, L as LaunchpadPoolInitParam, M as MarketExtInfo, c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams, S as SHOW_INFO, e as SwapInfoReturnExt, d as canClaimErrorType } from './raydium-0ce2c946.js';
19
+ export { C as Clmm, L as LaunchpadPoolInitParam, M as MarketExtInfo, c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams, S as SHOW_INFO, e as SwapInfoReturnExt, d as canClaimErrorType } from './raydium-bd752ae1.js';
20
20
  export { splAccountLayout } from './raydium/account/layout.js';
21
21
  export { GetOrCreateTokenAccountParams, HandleTokenAccountParams, SplAccount, SplAccountLayout, TokenAccount, TokenAccountRaw, getCreatedTokenAccountParams } from './raydium/account/types.js';
22
22
  export { ParseTokenAccount, generatePubKey, parseTokenAccountResp } from './raydium/account/util.js';
@@ -30,7 +30,7 @@ export { parseTokenInfo, solToWSolToken, toApiV3Token, toFeeConfig, toToken, toT
30
30
  export { Currency, currencyEquals } from './module/currency.js';
31
31
  export { WrappedBig, WrappedDecimal } from './module/formatter.js';
32
32
  export { Token, TokenProps } from './module/token.js';
33
- export { a as ApiClmmConfigInfos, A as ApiClmmPoint, C as ClmmConfigInfo, J as ClmmLockAddress, c as ClmmPoolInfo, e as ClmmPoolPersonalPosition, b as ClmmPoolRewardInfo, o as ClmmPoolRewardLayoutInfo, F as ClmmRpcData, B as ClosePositionExtInfo, w as CollectRewardParams, x as CollectRewardsParams, d as ComputeClmmPoolInfo, m as CreateConcentratedPool, D as DecreaseLiquidity, G as GetAmountParams, y as HarvestAllRewardsParams, H as HarvestLockPosition, n as IncreasePositionFromBase, I as IncreasePositionFromLiquidity, E as InitRewardExtInfo, s as InitRewardParams, t as InitRewardsParams, L as LockPosition, M as ManipulateLiquidityExtInfo, O as OpenPositionFromBase, p as OpenPositionFromBaseExtInfo, q as OpenPositionFromLiquidity, r as OpenPositionFromLiquidityExtInfo, j as ReturnTypeComputeAmountOut, k as ReturnTypeComputeAmountOutBaseOut, i as ReturnTypeComputeAmountOutFormat, z as ReturnTypeFetchExBitmaps, l as ReturnTypeFetchMultiplePoolTickArrays, h as ReturnTypeGetAmountsFromLiquidity, g as ReturnTypeGetLiquidityAmountOut, Q as ReturnTypeGetPriceAndTick, P as ReturnTypeGetTickPrice, f as ReturnTypeMakeCreatePoolTransaction, R as ReturnTypeMakeHarvestTransaction, S as SDKParsedConcentratedInfo, u as SetRewardParams, v as SetRewardsParams, N as TICK_ARRAY_BITMAP_SIZE, K as TICK_ARRAY_SIZE, V as Tick, W as TickArray, T as TickArrayBitmapExtensionType, Y as TickArrayState, X as TickState, Z as TickUtils, U as UserPositionAccount } from './type-dabc7a99.js';
33
+ export { a as ApiClmmConfigInfos, A as ApiClmmPoint, C as ClmmConfigInfo, J as ClmmLockAddress, c as ClmmPoolInfo, e as ClmmPoolPersonalPosition, b as ClmmPoolRewardInfo, o as ClmmPoolRewardLayoutInfo, F as ClmmRpcData, B as ClosePositionExtInfo, w as CollectRewardParams, x as CollectRewardsParams, d as ComputeClmmPoolInfo, m as CreateConcentratedPool, D as DecreaseLiquidity, G as GetAmountParams, y as HarvestAllRewardsParams, H as HarvestLockPosition, n as IncreasePositionFromBase, I as IncreasePositionFromLiquidity, E as InitRewardExtInfo, s as InitRewardParams, t as InitRewardsParams, L as LockPosition, M as ManipulateLiquidityExtInfo, O as OpenPositionFromBase, p as OpenPositionFromBaseExtInfo, q as OpenPositionFromLiquidity, r as OpenPositionFromLiquidityExtInfo, j as ReturnTypeComputeAmountOut, k as ReturnTypeComputeAmountOutBaseOut, i as ReturnTypeComputeAmountOutFormat, z as ReturnTypeFetchExBitmaps, l as ReturnTypeFetchMultiplePoolTickArrays, h as ReturnTypeGetAmountsFromLiquidity, g as ReturnTypeGetLiquidityAmountOut, Q as ReturnTypeGetPriceAndTick, P as ReturnTypeGetTickPrice, f as ReturnTypeMakeCreatePoolTransaction, R as ReturnTypeMakeHarvestTransaction, S as SDKParsedConcentratedInfo, u as SetRewardParams, v as SetRewardsParams, N as TICK_ARRAY_BITMAP_SIZE, K as TICK_ARRAY_SIZE, V as Tick, W as TickArray, T as TickArrayBitmapExtensionType, Y as TickArrayState, X as TickState, Z as TickUtils, U as UserPositionAccount } from './type-f95c297a.js';
34
34
  export { ClmmConfigLayout, ClmmPositionLayout, LockClPositionLayoutV2, LockPositionLayout, ObservationInfoLayout, ObservationLayout, OperationLayout, PoolInfoLayout, PositionInfoLayout, PositionRewardInfoLayout, ProtocolPositionLayout, RewardInfo, TickArrayBitmapExtensionLayout, TickArrayLayout, TickLayout } from './raydium/clmm/layout.js';
35
35
  export { ClmmInstrument } from './raydium/clmm/instrument.js';
36
36
  export { BIT_PRECISION, FEE_RATE_DENOMINATOR, Fee, LOG_B_2_X32, LOG_B_P_ERR_MARGIN_LOWER_X64, LOG_B_P_ERR_MARGIN_UPPER_X64, MAX_SQRT_PRICE_X64, MAX_SQRT_PRICE_X64_SUB_ONE, MAX_TICK, MIN_SQRT_PRICE_X64, MIN_SQRT_PRICE_X64_ADD_ONE, MIN_TICK, MaxU64, MaxUint128, NEGATIVE_ONE, ONE, Q128, Q64, TICK_SPACINGS, U64Resolution, U64_IGNORE_RANGE, ZERO, mockCreatePoolInfo, mockV3CreatePoolInfo } from './raydium/clmm/utils/constants.js';