@raydium-io/raydium-sdk-v2 0.1.43-alpha → 0.1.44-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 (108) hide show
  1. package/README.md +40 -0
  2. package/lib/api/api.d.ts +1 -1
  3. package/lib/api/index.d.ts +1 -1
  4. package/lib/api/type.d.ts +1 -1
  5. package/lib/{api-7c7b1543.d.ts → api-51b11f0d.d.ts} +3 -3
  6. package/lib/common/accountInfo.d.ts +1 -1
  7. package/lib/common/bignumber.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/index.d.ts +1 -1
  42. package/lib/raydium/cpmm/type.d.ts +1 -1
  43. package/lib/raydium/farm/config.d.ts +1 -1
  44. package/lib/raydium/farm/farm.d.ts +3 -3
  45. package/lib/raydium/farm/index.d.ts +1 -1
  46. package/lib/raydium/farm/instruction.d.ts +1 -1
  47. package/lib/raydium/farm/layout.d.ts +1 -1
  48. package/lib/raydium/farm/type.d.ts +1 -1
  49. package/lib/raydium/farm/util.d.ts +1 -1
  50. package/lib/raydium/ido/ido.d.ts +3 -3
  51. package/lib/raydium/ido/index.d.ts +3 -3
  52. package/lib/raydium/ido/instruction.d.ts +1 -1
  53. package/lib/raydium/ido/type.d.ts +1 -1
  54. package/lib/raydium/index.d.ts +3 -3
  55. package/lib/raydium/index.js +1 -1
  56. package/lib/raydium/index.js.map +1 -1
  57. package/lib/raydium/index.mjs +1 -1
  58. package/lib/raydium/index.mjs.map +1 -1
  59. package/lib/raydium/liquidity/index.d.ts +1 -1
  60. package/lib/raydium/liquidity/instruction.d.ts +1 -1
  61. package/lib/raydium/liquidity/liquidity.d.ts +3 -3
  62. package/lib/raydium/liquidity/type.d.ts +1 -1
  63. package/lib/raydium/liquidity/utils.d.ts +1 -1
  64. package/lib/raydium/marketV2/createMarket.d.ts +3 -3
  65. package/lib/raydium/marketV2/createMarket.js +1 -1
  66. package/lib/raydium/marketV2/createMarket.js.map +1 -1
  67. package/lib/raydium/marketV2/createMarket.mjs +1 -1
  68. package/lib/raydium/marketV2/createMarket.mjs.map +1 -1
  69. package/lib/raydium/marketV2/index.d.ts +3 -3
  70. package/lib/raydium/marketV2/index.js +1 -1
  71. package/lib/raydium/marketV2/index.js.map +1 -1
  72. package/lib/raydium/marketV2/index.mjs +1 -1
  73. package/lib/raydium/marketV2/index.mjs.map +1 -1
  74. package/lib/raydium/marketV2/instrument.d.ts +3 -0
  75. package/lib/raydium/marketV2/instrument.js +1 -1
  76. package/lib/raydium/marketV2/instrument.js.map +1 -1
  77. package/lib/raydium/marketV2/instrument.mjs +1 -1
  78. package/lib/raydium/marketV2/instrument.mjs.map +1 -1
  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/index.js.map +1 -1
  92. package/lib/raydium/tradeV2/index.mjs.map +1 -1
  93. package/lib/raydium/tradeV2/instrument.d.ts +2 -2
  94. package/lib/raydium/tradeV2/trade.d.ts +3 -3
  95. package/lib/raydium/tradeV2/trade.js +1 -1
  96. package/lib/raydium/tradeV2/trade.js.map +1 -1
  97. package/lib/raydium/tradeV2/trade.mjs +1 -1
  98. package/lib/raydium/tradeV2/trade.mjs.map +1 -1
  99. package/lib/raydium/tradeV2/type.d.ts +2 -2
  100. package/lib/raydium/type.d.ts +1 -1
  101. package/lib/raydium/utils1216/index.d.ts +3 -3
  102. package/lib/raydium/utils1216/utils1216.d.ts +3 -3
  103. package/lib/{raydium-8a28fbc6.d.ts → raydium-026a0a95.d.ts} +6 -3
  104. package/lib/{type-32d4c4bc.d.ts → type-c1771287.d.ts} +1 -1
  105. package/package.json +1 -1
  106. package/src/raydium/marketV2/createMarket.ts +10 -0
  107. package/src/raydium/marketV2/instrument.ts +12 -8
  108. package/src/raydium/tradeV2/trade.ts +4 -8
package/README.md CHANGED
@@ -66,3 +66,43 @@ raydium.token.mintGroup
66
66
  raydium.account.tokenAccounts
67
67
  raydium.account.tokenAccountRawInfos
68
68
  ```
69
+
70
+ #### Api methods (https://github.com/raydium-io/raydium-sdk-V2/blob/master/src/api/api.ts)
71
+
72
+ - fetch raydium default mint list
73
+ ```
74
+ const data = await raydium.api.getTokenList()
75
+ ```
76
+
77
+ - fetch mints recognizable by raydium
78
+ ```
79
+ const data = await raydium.api.getTokenInfo(['So11111111111111111111111111111111111111112', '4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R'])
80
+ ```
81
+
82
+ - fetch pool list
83
+ available fetch params defined here: https://github.com/raydium-io/raydium-sdk-V2/blob/master/src/api/type.ts#L249
84
+ ```
85
+ const data = await raydium.api.getPoolList({})
86
+ ```
87
+
88
+ - fetch poolInfo by id
89
+ ```
90
+ // ids: join pool ids by comma(,)
91
+ const data = await raydium.api.fetchPoolById({ ids: 'AVs9TA4nWDzfPJE9gGVNJMVhcQy3V9PGazuz33BfG2RA,8sLbNZoA1cfnvMJLPfp98ZLAnFSYCFApfJKMbiXNLwxj' })
92
+ ```
93
+
94
+ - fetch pool list by mints
95
+ ```
96
+ const data = await raydium.api.fetchPoolByMints({
97
+ mint1: 'So11111111111111111111111111111111111111112',
98
+ mint2: '4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R' // optional,
99
+ // extra params: https://github.com/raydium-io/raydium-sdk-V2/blob/master/src/api/type.ts#L249
100
+ })
101
+ ```
102
+
103
+ - fetch farmInfo by id
104
+ ```
105
+ // ids: join farm ids by comma(,)
106
+ const data = await raydium.api.fetchFarmInfoById({ ids: '4EwbZo8BZXP5313z5A2H11MRBP15M5n6YxfmkjXESKAW,HUDr9BDaAGqi37xbQHzxCyXvfMCKPTPNF8g9c9bPu1Fu' })
107
+ ```
108
+
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-7c7b1543.js';
3
+ export { a as Api, A as ApiProps, e as endlessRetry } from '../api-51b11f0d.js';
4
4
  import './url.js';
5
5
  import '@solana/web3.js';
6
6
  import 'bn.js';
@@ -1,4 +1,4 @@
1
- export { v as AmmV4Keys, w as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, B as ApiClmmConfigV3, f as ApiClmmPoolsItemStatistics, b as ApiPoolInfoV4, A as ApiProps, a0 as ApiStakePool, c as ApiStakePoolInfo, g as ApiV3PageIns, m as ApiV3PoolInfoBaseItem, n as ApiV3PoolInfoConcentratedItem, j as ApiV3PoolInfoCountItem, q as ApiV3PoolInfoItem, o as ApiV3PoolInfoStandardItem, p as ApiV3PoolInfoStandardItemCpmm, h as ApiV3Token, i as ApiV3TokenRes, Y as AvailabilityCheckAPI3, y as ClmmKeys, x as ClmmRewardType, C as CpmmKeys, a1 as FarmPositionData, F as FarmRewardInfoV6, G as FarmRewardTypeV6Key, S as FarmTagsItem, s as FetchPoolParams, X as FormatFarmInfoOut, U as FormatFarmInfoOutBase, V as FormatFarmInfoOutV345, W as FormatFarmInfoOutV6, N as FormatFarmKeyOut, K as FormatFarmKeyOutV345, M as FormatFarmKeyOutV6, $ as IdoKeysData, J as JupTokenType, u as LiquidityLineApi, L as LiquidityVersion, Z as OwnerCreatedFarmInfo, _ as OwnerIdoInfo, t as Point, k as PoolFarmRewardInfo, r as PoolFetchType, z as PoolKeys, l as PoolRewardInfoItem, P as PoolsApiReturn, O as RewardInfoV345, Q as RewardInfoV6, H as RewardKeyInfoV345, I as RewardKeyInfoV6, R as RpcItemA, D as RpcItemB, E as RpcType, T as TransferFeeDataBaseType, e as endlessRetry } from '../api-7c7b1543.js';
1
+ export { v as AmmV4Keys, w as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, B as ApiClmmConfigV3, f as ApiClmmPoolsItemStatistics, b as ApiPoolInfoV4, A as ApiProps, a0 as ApiStakePool, c as ApiStakePoolInfo, g as ApiV3PageIns, m as ApiV3PoolInfoBaseItem, n as ApiV3PoolInfoConcentratedItem, j as ApiV3PoolInfoCountItem, q as ApiV3PoolInfoItem, o as ApiV3PoolInfoStandardItem, p as ApiV3PoolInfoStandardItemCpmm, h as ApiV3Token, i as ApiV3TokenRes, Y as AvailabilityCheckAPI3, y as ClmmKeys, x as ClmmRewardType, C as CpmmKeys, a1 as FarmPositionData, F as FarmRewardInfoV6, G as FarmRewardTypeV6Key, S as FarmTagsItem, s as FetchPoolParams, X as FormatFarmInfoOut, U as FormatFarmInfoOutBase, V as FormatFarmInfoOutV345, W as FormatFarmInfoOutV6, N as FormatFarmKeyOut, K as FormatFarmKeyOutV345, M as FormatFarmKeyOutV6, $ as IdoKeysData, J as JupTokenType, u as LiquidityLineApi, L as LiquidityVersion, Z as OwnerCreatedFarmInfo, _ as OwnerIdoInfo, t as Point, k as PoolFarmRewardInfo, r as PoolFetchType, z as PoolKeys, l as PoolRewardInfoItem, P as PoolsApiReturn, O as RewardInfoV345, Q as RewardInfoV6, H as RewardKeyInfoV345, I as RewardKeyInfoV6, R as RpcItemA, D as RpcItemB, E as RpcType, T as TransferFeeDataBaseType, e as endlessRetry } from '../api-51b11f0d.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 { v as AmmV4Keys, w as AmmV5Keys, d as ApiClmmConfigInfo, B as ApiClmmConfigV3, f as ApiClmmPoolsItemStatistics, b as ApiPoolInfoV4, a0 as ApiStakePool, c as ApiStakePoolInfo, g as ApiV3PageIns, m as ApiV3PoolInfoBaseItem, n as ApiV3PoolInfoConcentratedItem, j as ApiV3PoolInfoCountItem, q as ApiV3PoolInfoItem, o as ApiV3PoolInfoStandardItem, p as ApiV3PoolInfoStandardItemCpmm, h as ApiV3Token, i as ApiV3TokenRes, Y as AvailabilityCheckAPI3, y as ClmmKeys, x as ClmmRewardType, C as CpmmKeys, a1 as FarmPositionData, F as FarmRewardInfoV6, G as FarmRewardTypeV6Key, S as FarmTagsItem, s as FetchPoolParams, X as FormatFarmInfoOut, U as FormatFarmInfoOutBase, V as FormatFarmInfoOutV345, W as FormatFarmInfoOutV6, N as FormatFarmKeyOut, K as FormatFarmKeyOutV345, M as FormatFarmKeyOutV6, $ as IdoKeysData, J as JupTokenType, u as LiquidityLineApi, L as LiquidityVersion, Z as OwnerCreatedFarmInfo, _ as OwnerIdoInfo, t as Point, k as PoolFarmRewardInfo, r as PoolFetchType, z as PoolKeys, l as PoolRewardInfoItem, P as PoolsApiReturn, O as RewardInfoV345, Q as RewardInfoV6, H as RewardKeyInfoV345, I as RewardKeyInfoV6, R as RpcItemA, D as RpcItemB, E as RpcType, T as TransferFeeDataBaseType } from '../api-7c7b1543.js';
1
+ export { v as AmmV4Keys, w as AmmV5Keys, d as ApiClmmConfigInfo, B as ApiClmmConfigV3, f as ApiClmmPoolsItemStatistics, b as ApiPoolInfoV4, a0 as ApiStakePool, c as ApiStakePoolInfo, g as ApiV3PageIns, m as ApiV3PoolInfoBaseItem, n as ApiV3PoolInfoConcentratedItem, j as ApiV3PoolInfoCountItem, q as ApiV3PoolInfoItem, o as ApiV3PoolInfoStandardItem, p as ApiV3PoolInfoStandardItemCpmm, h as ApiV3Token, i as ApiV3TokenRes, Y as AvailabilityCheckAPI3, y as ClmmKeys, x as ClmmRewardType, C as CpmmKeys, a1 as FarmPositionData, F as FarmRewardInfoV6, G as FarmRewardTypeV6Key, S as FarmTagsItem, s as FetchPoolParams, X as FormatFarmInfoOut, U as FormatFarmInfoOutBase, V as FormatFarmInfoOutV345, W as FormatFarmInfoOutV6, N as FormatFarmKeyOut, K as FormatFarmKeyOutV345, M as FormatFarmKeyOutV6, $ as IdoKeysData, J as JupTokenType, u as LiquidityLineApi, L as LiquidityVersion, Z as OwnerCreatedFarmInfo, _ as OwnerIdoInfo, t as Point, k as PoolFarmRewardInfo, r as PoolFetchType, z as PoolKeys, l as PoolRewardInfoItem, P as PoolsApiReturn, O as RewardInfoV345, Q as RewardInfoV6, H as RewardKeyInfoV345, I as RewardKeyInfoV6, R as RpcItemA, D as RpcItemB, E as RpcType, T as TransferFeeDataBaseType } from '../api-51b11f0d.js';
2
2
  import 'axios';
3
3
  import '../solana/type.js';
4
4
  import '@solana/web3.js';
@@ -910,7 +910,7 @@ declare const dwLayout: Structure<number | BN__default, "", {
910
910
  instruction: number;
911
911
  amount: BN__default;
912
912
  }>;
913
- declare const VoterVotingMintConfig: Structure<PublicKey | number[] | BN__default | BN__default[], "", {
913
+ declare const VoterVotingMintConfig: Structure<number[] | PublicKey | BN__default | BN__default[], "", {
914
914
  mint: PublicKey;
915
915
  grantAuthority: PublicKey;
916
916
  baselineVoteWeightScaledFactor: BN__default;
@@ -920,7 +920,7 @@ declare const VoterVotingMintConfig: Structure<PublicKey | number[] | BN__defaul
920
920
  reserved1: number[];
921
921
  reserved2: BN__default[];
922
922
  }>;
923
- declare const VoterRegistrar: Structure<number | PublicKey | number[] | Buffer | BN__default | BN__default[] | {
923
+ declare const VoterRegistrar: Structure<number | number[] | PublicKey | Buffer | BN__default | BN__default[] | {
924
924
  mint: PublicKey;
925
925
  grantAuthority: PublicKey;
926
926
  baselineVoteWeightScaledFactor: BN__default;
@@ -975,7 +975,7 @@ declare const VoterDepositEntry: Structure<number | boolean | number[] | BN__def
975
975
  allowClawback: boolean;
976
976
  votingMintConfigIdx: number;
977
977
  }>;
978
- declare const Voter: Structure<number | PublicKey | number[] | Buffer | {
978
+ declare const Voter: Structure<number | number[] | PublicKey | Buffer | {
979
979
  reserved: number[];
980
980
  lockup: {
981
981
  startTime: BN__default;
@@ -1,5 +1,5 @@
1
1
  import { Commitment, Connection, PublicKey, AccountInfo } from '@solana/web3.js';
2
- import { bQ as ReturnTypeFetchMultipleMintInfos } from '../api-7c7b1543.js';
2
+ import { bQ as ReturnTypeFetchMultipleMintInfos } from '../api-51b11f0d.js';
3
3
  import 'axios';
4
4
  import '../solana/type.js';
5
5
  import 'bn.js';
@@ -1,7 +1,7 @@
1
1
  import 'bn.js';
2
2
  import 'decimal.js';
3
3
  import '../module/token.js';
4
- export { a9 as BN_100, aa as BN_1000, ab as BN_10000, a7 as BN_FIVE, a4 as BN_ONE, a8 as BN_TEN, a6 as BN_THREE, a5 as BN_TWO, a3 as BN_ZERO, ac as BigNumberish, ad as Numberish, a2 as Rounding, ap as decimalToFraction, ah as divCeil, aq as isDecimal, ae as parseBigNumberish, ag as parseNumberInfo, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency } from '../api-7c7b1543.js';
4
+ export { a9 as BN_100, aa as BN_1000, ab as BN_10000, a7 as BN_FIVE, a4 as BN_ONE, a8 as BN_TEN, a6 as BN_THREE, a5 as BN_TWO, a3 as BN_ZERO, ac as BigNumberish, ad as Numberish, a2 as Rounding, ap as decimalToFraction, ah as divCeil, aq as isDecimal, ae as parseBigNumberish, ag as parseNumberInfo, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency } from '../api-51b11f0d.js';
5
5
  import '@solana/web3.js';
6
6
  import './pubKey.js';
7
7
  import 'axios';
@@ -1,4 +1,4 @@
1
- import { ad as Numberish, c6 as Fraction } from '../api-7c7b1543.js';
1
+ import { ad as Numberish, c6 as Fraction } from '../api-51b11f0d.js';
2
2
  import 'axios';
3
3
  import '../solana/type.js';
4
4
  import '@solana/web3.js';
@@ -1,6 +1,6 @@
1
1
  export { LogLevel, Logger, ModuleName, createLogger, setLoggerLevel } from './logger.js';
2
2
  export { getTimestamp, jsonInfo2PoolKeys, notInnerObject, sleep } from './utility.js';
3
- export { as as AddInstructionParam, a9 as BN_100, aa as BN_1000, ab as BN_10000, a7 as BN_FIVE, a4 as BN_ONE, a8 as BN_TEN, a6 as BN_THREE, a5 as BN_TWO, a3 as BN_ZERO, ac as BigNumberish, ay as MakeMultiTxData, az as MakeTxData, aw as MultiTxBuildData, av as MultiTxExecuteParam, ax as MultiTxV0BuildData, ad as Numberish, a2 as Rounding, at as TxBuildData, aA as TxBuilder, au as TxV0BuildData, ap as decimalToFraction, ah as divCeil, aq as isDecimal, ae as parseBigNumberish, ag as parseNumberInfo, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency } from '../api-7c7b1543.js';
3
+ export { as as AddInstructionParam, a9 as BN_100, aa as BN_1000, ab as BN_10000, a7 as BN_FIVE, a4 as BN_ONE, a8 as BN_TEN, a6 as BN_THREE, a5 as BN_TWO, a3 as BN_ZERO, ac as BigNumberish, ay as MakeMultiTxData, az as MakeTxData, aw as MultiTxBuildData, av as MultiTxExecuteParam, ax as MultiTxV0BuildData, ad as Numberish, a2 as Rounding, at as TxBuildData, aA as TxBuilder, au as TxV0BuildData, ap as decimalToFraction, ah as divCeil, aq as isDecimal, ae as parseBigNumberish, ag as parseNumberInfo, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency } from '../api-51b11f0d.js';
4
4
  export { ANAMint, CLOCK_PROGRAM_ID, ETHMint, INSTRUCTION_PROGRAM_ID, MEMO_PROGRAM_ID, MEMO_PROGRAM_ID2, METADATA_PROGRAM_ID, NRVMint, PAIMint, PublicKeyish, RAYMint, RENT_PROGRAM_ID, SOLMint, SRMMint, SYSTEM_PROGRAM_ID, USDCMint, USDHMint, USDTMint, WSOLMint, accountMeta, commonSystemAccountMeta, mSOLMint, solToWSol, stSOLMint, tryParsePublicKey, validateAndParsePublicKey } from './pubKey.js';
5
5
  export { MAX_BASE64_SIZE, ProgramAddress, addComputeBudget, checkLegacyTxSize, checkV0TxSize, findProgramAddress, forecastTransactionSize, getEpochInfo, getRecentBlockHash, parseSimulateLogToJson, parseSimulateValue, printSimulate, simulateMultipleInstruction, simulateTransaction, toBuffer, transformTxToBase64 } from './txTool/txUtils.js';
6
6
  export { InstructionType, TxVersion } from './txTool/txType.js';
@@ -1,7 +1,7 @@
1
1
  import { EpochInfo } from '@solana/web3.js';
2
2
  import { TransferFeeConfig } from '@solana/spl-token';
3
3
  import BN__default from 'bn.js';
4
- import { bO as GetTransferAmountFee, T as TransferFeeDataBaseType } from '../api-7c7b1543.js';
4
+ import { bO as GetTransferAmountFee, T as TransferFeeDataBaseType } from '../api-51b11f0d.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 { as as AddInstructionParam, ay as MakeMultiTxData, az as MakeTxData, aw as MultiTxBuildData, av as MultiTxExecuteParam, ax as MultiTxV0BuildData, at as TxBuildData, aA as TxBuilder, au as TxV0BuildData } from '../../api-7c7b1543.js';
2
+ export { as as AddInstructionParam, ay as MakeMultiTxData, az as MakeTxData, aw as MultiTxBuildData, av as MultiTxExecuteParam, ax as MultiTxV0BuildData, at as TxBuildData, aA as TxBuilder, au as TxV0BuildData } from '../../api-51b11f0d.js';
3
3
  import './lookupTable.js';
4
4
  import './txType.js';
5
5
  import '../owner.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 { bL as ComputeBudgetConfig } from '../../api-7c7b1543.js';
3
+ import { bL as ComputeBudgetConfig } from '../../api-51b11f0d.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 { bR as ReplaceType } from '../api-7c7b1543.js';
2
+ import { bR as ReplaceType } from '../api-51b11f0d.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 { bh as APIRewardInfo, as as AddInstructionParam, v as AmmV4Keys, w as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, B as ApiClmmConfigV3, f as ApiClmmPoolsItemStatistics, b as ApiPoolInfoV4, A as ApiProps, a0 as ApiStakePool, c as ApiStakePoolInfo, g as ApiV3PageIns, m as ApiV3PoolInfoBaseItem, n as ApiV3PoolInfoConcentratedItem, j as ApiV3PoolInfoCountItem, q as ApiV3PoolInfoItem, o as ApiV3PoolInfoStandardItem, p as ApiV3PoolInfoStandardItemCpmm, h as ApiV3Token, i as ApiV3TokenRes, bV as ArrayItem, Y as AvailabilityCheckAPI3, a9 as BN_100, aa as BN_1000, ab as BN_10000, a7 as BN_FIVE, a4 as BN_ONE, a8 as BN_TEN, a6 as BN_THREE, a5 as BN_TWO, a3 as BN_ZERO, ac as BigNumberish, y as ClmmKeys, x as ClmmRewardType, bL as ComputeBudgetConfig, c0 as Cover, C as CpmmKeys, bn as CreateFarm, bo as CreateFarmExtInfo, c5 as CurrencyAmount, bW as ExactPartial, bX as ExactRequired, bu as FARM_LOCK_MINT, bv as FARM_LOCK_VAULT, bB as FARM_PROGRAM_TO_VERSION, bx as FARM_VERSION_TO_LEDGER_LAYOUT, bw as FARM_VERSION_TO_STATE_LAYOUT, b$ as Fallback, br as FarmDWParam, b9 as FarmLedger, b3 as FarmLedgerLayout, a_ as FarmLedgerLayoutV3_1, a$ as FarmLedgerLayoutV3_2, b0 as FarmLedgerLayoutV5_1, b1 as FarmLedgerLayoutV5_2, b2 as FarmLedgerLayoutV6_1, b4 as FarmLedgerV3_1, b5 as FarmLedgerV3_2, b6 as FarmLedgerV5_1, b7 as FarmLedgerV5_2, b8 as FarmLedgerV6_1, bm as FarmPoolInfoV6, bs as FarmPoolKeys, a1 as FarmPositionData, bj as FarmRewardInfo, bk as FarmRewardInfoConfig, F as FarmRewardInfoV6, G as FarmRewardTypeV6Key, aT as FarmState, aU as FarmStateLayout, aN as FarmStateLayoutV3, aO as FarmStateLayoutV5, aP as FarmStateLayoutV6, aQ as FarmStateV3, aR as FarmStateV5, aS as FarmStateV6, S as FarmTagsItem, bt as FarmVersion, s as FetchPoolParams, X as FormatFarmInfoOut, U as FormatFarmInfoOutBase, V as FormatFarmInfoOutV345, W as FormatFarmInfoOutV6, N as FormatFarmKeyOut, K as FormatFarmKeyOutV345, M as FormatFarmKeyOutV6, c6 as Fraction, bO as GetTransferAmountFee, bZ as GetValue, $ as IdoKeysData, bK as InstructionReturn, J as JupTokenType, u as LiquidityLineApi, L as LiquidityVersion, bM as LoadParams, bF as LpToken, bJ as MakeMultiTransaction, ay as MakeMultiTxData, bH as MakeTransaction, az as MakeTxData, bI as MakeV0Transaction, bS as MayArray, bT as MayDeepArray, bU as MayFunction, aw as MultiTxBuildData, av as MultiTxExecuteParam, ax as MultiTxV0BuildData, ad as Numberish, Z as OwnerCreatedFarmInfo, _ as OwnerIdoInfo, c8 as Percent, t as Point, k as PoolFarmRewardInfo, r as PoolFetchType, z as PoolKeys, l as PoolRewardInfoItem, P as PoolsApiReturn, c9 as Price, bR as ReplaceType, bP as ReturnTypeFetchMultipleMintInfo, bQ as ReturnTypeFetchMultipleMintInfos, bl as RewardInfoKey, O as RewardInfoV345, Q as RewardInfoV6, bi as RewardInfoWithKey, H as RewardKeyInfoV345, I as RewardKeyInfoV6, bg as RewardType, a2 as Rounding, R as RpcItemA, D as RpcItemB, E as RpcType, bY as SKeyof, b_ as SOR, bG as SignAllTransactions, bE as SplToken, c4 as TokenAmount, bC as TokenInfo, bD as TokenJson, bN as TransferAmountFee, T as TransferFeeDataBaseType, at as TxBuildData, aA as TxBuilder, au as TxV0BuildData, c1 as UnionCover, bp as UpdateFarmReward, bq as UpdateFarmRewards, bf as Voter, be as VoterDepositEntry, bd as VoterLockup, bc as VoterRegistrar, bb as VoterVotingMintConfig, c7 as _100_PERCENT, aB as associatedLedgerAccountLayout, ap as decimalToFraction, ah as divCeil, ba as dwLayout, e as endlessRetry, aM as farmAddRewardLayout, aV as farmLedgerLayoutV3_1, aW as farmLedgerLayoutV3_2, aX as farmLedgerLayoutV5_1, aY as farmLedgerLayoutV5_2, aZ as farmLedgerLayoutV6_1, aK as farmRewardLayout, aL as farmRewardRestartLayout, aJ as farmRewardTimeInfoLayout, aG as farmStateV3Layout, aH as farmStateV5Layout, aI as farmStateV6Layout, aq as isDecimal, by as isValidFarmVersion, ae as parseBigNumberish, ag as parseNumberInfo, bA as poolTypeV6, aD as realFarmStateV3Layout, aE as realFarmStateV5Layout, aF as realFarmV6Layout, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, c3 as splitNumber, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency, c2 as unionArr, bz as validateFarmRewards, aC as withdrawRewardLayout } from './api-7c7b1543.js';
1
+ export { bh as APIRewardInfo, as as AddInstructionParam, v as AmmV4Keys, w as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, B as ApiClmmConfigV3, f as ApiClmmPoolsItemStatistics, b as ApiPoolInfoV4, A as ApiProps, a0 as ApiStakePool, c as ApiStakePoolInfo, g as ApiV3PageIns, m as ApiV3PoolInfoBaseItem, n as ApiV3PoolInfoConcentratedItem, j as ApiV3PoolInfoCountItem, q as ApiV3PoolInfoItem, o as ApiV3PoolInfoStandardItem, p as ApiV3PoolInfoStandardItemCpmm, h as ApiV3Token, i as ApiV3TokenRes, bV as ArrayItem, Y as AvailabilityCheckAPI3, a9 as BN_100, aa as BN_1000, ab as BN_10000, a7 as BN_FIVE, a4 as BN_ONE, a8 as BN_TEN, a6 as BN_THREE, a5 as BN_TWO, a3 as BN_ZERO, ac as BigNumberish, y as ClmmKeys, x as ClmmRewardType, bL as ComputeBudgetConfig, c0 as Cover, C as CpmmKeys, bn as CreateFarm, bo as CreateFarmExtInfo, c5 as CurrencyAmount, bW as ExactPartial, bX as ExactRequired, bu as FARM_LOCK_MINT, bv as FARM_LOCK_VAULT, bB as FARM_PROGRAM_TO_VERSION, bx as FARM_VERSION_TO_LEDGER_LAYOUT, bw as FARM_VERSION_TO_STATE_LAYOUT, b$ as Fallback, br as FarmDWParam, b9 as FarmLedger, b3 as FarmLedgerLayout, a_ as FarmLedgerLayoutV3_1, a$ as FarmLedgerLayoutV3_2, b0 as FarmLedgerLayoutV5_1, b1 as FarmLedgerLayoutV5_2, b2 as FarmLedgerLayoutV6_1, b4 as FarmLedgerV3_1, b5 as FarmLedgerV3_2, b6 as FarmLedgerV5_1, b7 as FarmLedgerV5_2, b8 as FarmLedgerV6_1, bm as FarmPoolInfoV6, bs as FarmPoolKeys, a1 as FarmPositionData, bj as FarmRewardInfo, bk as FarmRewardInfoConfig, F as FarmRewardInfoV6, G as FarmRewardTypeV6Key, aT as FarmState, aU as FarmStateLayout, aN as FarmStateLayoutV3, aO as FarmStateLayoutV5, aP as FarmStateLayoutV6, aQ as FarmStateV3, aR as FarmStateV5, aS as FarmStateV6, S as FarmTagsItem, bt as FarmVersion, s as FetchPoolParams, X as FormatFarmInfoOut, U as FormatFarmInfoOutBase, V as FormatFarmInfoOutV345, W as FormatFarmInfoOutV6, N as FormatFarmKeyOut, K as FormatFarmKeyOutV345, M as FormatFarmKeyOutV6, c6 as Fraction, bO as GetTransferAmountFee, bZ as GetValue, $ as IdoKeysData, bK as InstructionReturn, J as JupTokenType, u as LiquidityLineApi, L as LiquidityVersion, bM as LoadParams, bF as LpToken, bJ as MakeMultiTransaction, ay as MakeMultiTxData, bH as MakeTransaction, az as MakeTxData, bI as MakeV0Transaction, bS as MayArray, bT as MayDeepArray, bU as MayFunction, aw as MultiTxBuildData, av as MultiTxExecuteParam, ax as MultiTxV0BuildData, ad as Numberish, Z as OwnerCreatedFarmInfo, _ as OwnerIdoInfo, c8 as Percent, t as Point, k as PoolFarmRewardInfo, r as PoolFetchType, z as PoolKeys, l as PoolRewardInfoItem, P as PoolsApiReturn, c9 as Price, bR as ReplaceType, bP as ReturnTypeFetchMultipleMintInfo, bQ as ReturnTypeFetchMultipleMintInfos, bl as RewardInfoKey, O as RewardInfoV345, Q as RewardInfoV6, bi as RewardInfoWithKey, H as RewardKeyInfoV345, I as RewardKeyInfoV6, bg as RewardType, a2 as Rounding, R as RpcItemA, D as RpcItemB, E as RpcType, bY as SKeyof, b_ as SOR, bG as SignAllTransactions, bE as SplToken, c4 as TokenAmount, bC as TokenInfo, bD as TokenJson, bN as TransferAmountFee, T as TransferFeeDataBaseType, at as TxBuildData, aA as TxBuilder, au as TxV0BuildData, c1 as UnionCover, bp as UpdateFarmReward, bq as UpdateFarmRewards, bf as Voter, be as VoterDepositEntry, bd as VoterLockup, bc as VoterRegistrar, bb as VoterVotingMintConfig, c7 as _100_PERCENT, aB as associatedLedgerAccountLayout, ap as decimalToFraction, ah as divCeil, ba as dwLayout, e as endlessRetry, aM as farmAddRewardLayout, aV as farmLedgerLayoutV3_1, aW as farmLedgerLayoutV3_2, aX as farmLedgerLayoutV5_1, aY as farmLedgerLayoutV5_2, aZ as farmLedgerLayoutV6_1, aK as farmRewardLayout, aL as farmRewardRestartLayout, aJ as farmRewardTimeInfoLayout, aG as farmStateV3Layout, aH as farmStateV5Layout, aI as farmStateV6Layout, aq as isDecimal, by as isValidFarmVersion, ae as parseBigNumberish, ag as parseNumberInfo, bA as poolTypeV6, aD as realFarmStateV3Layout, aE as realFarmStateV5Layout, aF as realFarmV6Layout, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, c3 as splitNumber, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency, c2 as unionArr, bz as validateFarmRewards, aC as withdrawRewardLayout } from './api-51b11f0d.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 { LogLevel, Logger, ModuleName, createLogger, setLoggerLevel } from './common/logger.js';
@@ -15,7 +15,7 @@ export { ALL_PROGRAM_ID, AMM_STABLE, AMM_V4, CLMM_PROGRAM_ID, CREATE_CPMM_POOL_A
15
15
  export { getATAAddress } from './common/pda.js';
16
16
  export { BNDivCeil, getTransferAmountFee, getTransferAmountFeeV2, minExpirationTime } from './common/transfer.js';
17
17
  export { CacheLTA, LOOKUP_TABLE_CACHE, getMultipleLookupTableInfo } from './common/txTool/lookupTable.js';
18
- export { C as Clmm, c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams, S as SHOW_INFO, d as canClaimErrorType } from './raydium-8a28fbc6.js';
18
+ export { C as Clmm, c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams, S as SHOW_INFO, d as canClaimErrorType } from './raydium-026a0a95.js';
19
19
  export { splAccountLayout } from './raydium/account/layout.js';
20
20
  export { GetOrCreateTokenAccountParams, HandleTokenAccountParams, SplAccount, SplAccountLayout, TokenAccount, TokenAccountRaw, getCreatedTokenAccountParams } from './raydium/account/types.js';
21
21
  export { ParseTokenAccount, generatePubKey, parseTokenAccountResp } from './raydium/account/util.js';
@@ -32,7 +32,7 @@ export { AddLiquidityParams, AmmRpcData, AmountSide, ComputeAmountOutParam, Crea
32
32
  export { fetchMultipleInfo, getAssociatedConfigId, getAssociatedOpenOrders, getAssociatedPoolKeys, getLiquidityAssociatedAuthority, getLiquidityAssociatedId, toAmmComputePoolInfo } from './raydium/liquidity/utils.js';
33
33
  export { createPoolV4InstructionV2, makeAMMSwapInstruction, makeAddLiquidityInstruction, makeInitPoolInstructionV4, makeSimulatePoolInfoInstruction, makeSwapFixedInInstruction, makeSwapFixedOutInstruction, removeLiquidityInstruction, simulatePoolInfoInstruction } from './raydium/liquidity/instruction.js';
34
34
  export { DataElement, MODEL_DATA_PUBKEY, StableLayout, StableModelLayout, formatLayout, getDxByDyBaseIn, getDyByDxBaseIn, getStablePrice, modelDataInfoLayout } from './raydium/liquidity/stable.js';
35
- export { a as ApiClmmConfigInfos, A as ApiClmmPoint, C as ClmmConfigInfo, 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, H as HarvestAllRewardsParams, n as IncreasePositionFromBase, I as IncreasePositionFromLiquidity, E as InitRewardExtInfo, s as InitRewardParams, t as InitRewardsParams, M as ManipulateLiquidityExtInfo, O as OpenPositionFromBase, p as OpenPositionFromBaseExtInfo, q as OpenPositionFromLiquidity, r as OpenPositionFromLiquidityExtInfo, k as ReturnTypeComputeAmountOut, y as ReturnTypeComputeAmountOutBaseOut, j as ReturnTypeComputeAmountOutFormat, z as ReturnTypeFetchExBitmaps, l as ReturnTypeFetchMultiplePoolTickArrays, i as ReturnTypeGetAmountsFromLiquidity, h as ReturnTypeGetLiquidityAmountOut, N as ReturnTypeGetPriceAndTick, L as ReturnTypeGetTickPrice, f as ReturnTypeMakeCreatePoolTransaction, R as ReturnTypeMakeHarvestTransaction, g as ReturnTypeMakeInstructions, S as SDKParsedConcentratedInfo, u as SetRewardParams, v as SetRewardsParams, K as TICK_ARRAY_BITMAP_SIZE, J as TICK_ARRAY_SIZE, P as Tick, Q as TickArray, T as TickArrayBitmapExtensionType, W as TickArrayState, V as TickState, X as TickUtils, U as UserPositionAccount } from './type-32d4c4bc.js';
35
+ export { a as ApiClmmConfigInfos, A as ApiClmmPoint, C as ClmmConfigInfo, 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, H as HarvestAllRewardsParams, n as IncreasePositionFromBase, I as IncreasePositionFromLiquidity, E as InitRewardExtInfo, s as InitRewardParams, t as InitRewardsParams, M as ManipulateLiquidityExtInfo, O as OpenPositionFromBase, p as OpenPositionFromBaseExtInfo, q as OpenPositionFromLiquidity, r as OpenPositionFromLiquidityExtInfo, k as ReturnTypeComputeAmountOut, y as ReturnTypeComputeAmountOutBaseOut, j as ReturnTypeComputeAmountOutFormat, z as ReturnTypeFetchExBitmaps, l as ReturnTypeFetchMultiplePoolTickArrays, i as ReturnTypeGetAmountsFromLiquidity, h as ReturnTypeGetLiquidityAmountOut, N as ReturnTypeGetPriceAndTick, L as ReturnTypeGetTickPrice, f as ReturnTypeMakeCreatePoolTransaction, R as ReturnTypeMakeHarvestTransaction, g as ReturnTypeMakeInstructions, S as SDKParsedConcentratedInfo, u as SetRewardParams, v as SetRewardsParams, K as TICK_ARRAY_BITMAP_SIZE, J as TICK_ARRAY_SIZE, P as Tick, Q as TickArray, T as TickArrayBitmapExtensionType, W as TickArrayState, V as TickState, X as TickUtils, U as UserPositionAccount } from './type-c1771287.js';
36
36
  export { ClmmConfigLayout, ClmmPositionLayout, ObservationInfoLayout, ObservationLayout, OperationLayout, PoolInfoLayout, PositionInfoLayout, PositionRewardInfoLayout, ProtocolPositionLayout, RewardInfo, TickArrayBitmapExtensionLayout, TickArrayLayout, TickLayout } from './raydium/clmm/layout.js';
37
37
  export { ClmmInstrument } from './raydium/clmm/instrument.js';
38
38
  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';