@raydium-io/raydium-sdk-v2 0.1.63-alpha → 0.1.64-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 (95) 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-11ffb196.d.ts → api-f242758a.d.ts} +8 -8
  5. package/lib/common/accountInfo.d.ts +1 -1
  6. package/lib/common/bignumber.d.ts +1 -1
  7. package/lib/common/fractionUtil.d.ts +1 -1
  8. package/lib/common/index.d.ts +1 -1
  9. package/lib/common/transfer.d.ts +1 -1
  10. package/lib/common/txTool/txTool.d.ts +1 -1
  11. package/lib/common/txTool/txUtils.d.ts +1 -1
  12. package/lib/common/utility.d.ts +1 -1
  13. package/lib/index.d.ts +3 -3
  14. package/lib/index.js +1 -1
  15. package/lib/index.js.map +1 -1
  16. package/lib/index.mjs +1 -1
  17. package/lib/index.mjs.map +1 -1
  18. package/lib/module/amount.d.ts +1 -1
  19. package/lib/module/fraction.d.ts +1 -1
  20. package/lib/module/index.d.ts +1 -1
  21. package/lib/module/percent.d.ts +1 -1
  22. package/lib/module/price.d.ts +1 -1
  23. package/lib/raydium/account/account.d.ts +3 -3
  24. package/lib/raydium/account/index.d.ts +1 -1
  25. package/lib/raydium/account/instruction.d.ts +1 -1
  26. package/lib/raydium/account/types.d.ts +1 -1
  27. package/lib/raydium/account/util.d.ts +1 -1
  28. package/lib/raydium/clmm/clmm.d.ts +3 -3
  29. package/lib/raydium/clmm/index.d.ts +3 -3
  30. package/lib/raydium/clmm/instrument.d.ts +2 -2
  31. package/lib/raydium/clmm/layout.d.ts +6 -6
  32. package/lib/raydium/clmm/type.d.ts +2 -2
  33. package/lib/raydium/clmm/utils/math.d.ts +2 -2
  34. package/lib/raydium/clmm/utils/pool.d.ts +2 -2
  35. package/lib/raydium/clmm/utils/position.d.ts +2 -2
  36. package/lib/raydium/clmm/utils/tick.d.ts +2 -2
  37. package/lib/raydium/clmm/utils/tickQuery.d.ts +2 -2
  38. package/lib/raydium/clmm/utils/tickarrayBitmap.d.ts +2 -2
  39. package/lib/raydium/cpmm/cpmm.d.ts +3 -3
  40. package/lib/raydium/cpmm/curve/calculator.d.ts +1 -1
  41. package/lib/raydium/cpmm/curve/constantProduct.d.ts +1 -1
  42. package/lib/raydium/cpmm/index.d.ts +1 -1
  43. package/lib/raydium/cpmm/layout.d.ts +1 -1
  44. package/lib/raydium/cpmm/type.d.ts +1 -1
  45. package/lib/raydium/farm/config.d.ts +1 -1
  46. package/lib/raydium/farm/farm.d.ts +3 -3
  47. package/lib/raydium/farm/index.d.ts +1 -1
  48. package/lib/raydium/farm/instruction.d.ts +1 -1
  49. package/lib/raydium/farm/layout.d.ts +1 -1
  50. package/lib/raydium/farm/type.d.ts +1 -1
  51. package/lib/raydium/farm/util.d.ts +1 -1
  52. package/lib/raydium/ido/ido.d.ts +3 -3
  53. package/lib/raydium/ido/index.d.ts +3 -3
  54. package/lib/raydium/ido/instruction.d.ts +1 -1
  55. package/lib/raydium/ido/type.d.ts +1 -1
  56. package/lib/raydium/index.d.ts +3 -3
  57. package/lib/raydium/index.js +1 -1
  58. package/lib/raydium/index.js.map +1 -1
  59. package/lib/raydium/index.mjs +1 -1
  60. package/lib/raydium/index.mjs.map +1 -1
  61. package/lib/raydium/liquidity/index.d.ts +1 -1
  62. package/lib/raydium/liquidity/instruction.d.ts +1 -1
  63. package/lib/raydium/liquidity/layout.d.ts +6 -6
  64. package/lib/raydium/liquidity/liquidity.d.ts +3 -3
  65. package/lib/raydium/liquidity/type.d.ts +1 -1
  66. package/lib/raydium/liquidity/utils.d.ts +1 -1
  67. package/lib/raydium/marketV2/createMarket.d.ts +3 -3
  68. package/lib/raydium/marketV2/index.d.ts +3 -3
  69. package/lib/raydium/moduleBase.d.ts +3 -3
  70. package/lib/raydium/raydium.d.ts +3 -3
  71. package/lib/raydium/raydium.js +1 -1
  72. package/lib/raydium/raydium.js.map +1 -1
  73. package/lib/raydium/raydium.mjs +1 -1
  74. package/lib/raydium/raydium.mjs.map +1 -1
  75. package/lib/raydium/token/constant.d.ts +1 -1
  76. package/lib/raydium/token/index.d.ts +1 -1
  77. package/lib/raydium/token/token.d.ts +3 -3
  78. package/lib/raydium/token/token.js +1 -1
  79. package/lib/raydium/token/token.js.map +1 -1
  80. package/lib/raydium/token/token.mjs +1 -1
  81. package/lib/raydium/token/token.mjs.map +1 -1
  82. package/lib/raydium/token/type.d.ts +1 -1
  83. package/lib/raydium/token/utils.d.ts +1 -1
  84. package/lib/raydium/tradeV2/index.d.ts +2 -2
  85. package/lib/raydium/tradeV2/instrument.d.ts +2 -2
  86. package/lib/raydium/tradeV2/trade.d.ts +3 -3
  87. package/lib/raydium/tradeV2/type.d.ts +2 -2
  88. package/lib/raydium/type.d.ts +1 -1
  89. package/lib/raydium/utils1216/index.d.ts +3 -3
  90. package/lib/raydium/utils1216/utils1216.d.ts +3 -3
  91. package/lib/{raydium-a023305c.d.ts → raydium-5502e631.d.ts} +3 -3
  92. package/lib/{type-1bf767ed.d.ts → type-b1a9baec.d.ts} +1 -1
  93. package/package.json +1 -1
  94. package/src/raydium/raydium.ts +1 -1
  95. package/src/raydium/token/token.ts +1 -2
@@ -1,4 +1,4 @@
1
- export { bG as LpToken, bF as SplToken, bD as TokenInfo, bE as TokenJson } from '../../api-11ffb196.js';
1
+ export { bG as LpToken, bF as SplToken, bD as TokenInfo, bE as TokenJson } from '../../api-f242758a.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, TransferFeeConfig } from '@solana/spl-token';
3
- import { bD as TokenInfo, ad as BigNumberish, c5 as TokenAmount, i as ApiV3Token } from '../../api-11ffb196.js';
3
+ import { bD as TokenInfo, ad as BigNumberish, c5 as TokenAmount, i as ApiV3Token } from '../../api-f242758a.js';
4
4
  import { Token } from '../../module/token.js';
5
5
  import 'axios';
6
6
  import '../../solana/type.js';
@@ -2,7 +2,7 @@ export { makeSwapInstruction, route1Instruction, route2Instruction, routeInstruc
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-11ffb196.js';
5
+ import '../../api-f242758a.js';
6
6
  import 'axios';
7
7
  import '../../solana/type.js';
8
8
  import '@solana/spl-token';
@@ -19,7 +19,7 @@ import '../../marshmallow/index.js';
19
19
  import '../../marshmallow/buffer-layout.js';
20
20
  import '../liquidity/type.js';
21
21
  import '../liquidity/layout.js';
22
- import '../../type-1bf767ed.js';
22
+ import '../../type-b1a9baec.js';
23
23
  import '../clmm/layout.js';
24
24
  import '../cpmm/type.js';
25
25
  import '../cpmm/curve/calculator.js';
@@ -1,6 +1,6 @@
1
1
  import { PublicKey, TransactionInstruction } from '@solana/web3.js';
2
2
  import BN__default from 'bn.js';
3
- import { r as ApiV3PoolInfoItem, B as PoolKeys } from '../../api-11ffb196.js';
3
+ import { r as ApiV3PoolInfoItem, B as PoolKeys } from '../../api-f242758a.js';
4
4
  import { ComputePoolType, MakeSwapInstructionParam, ReturnTypeMakeSwapInstruction } from './type.js';
5
5
  import 'axios';
6
6
  import '../../solana/type.js';
@@ -18,7 +18,7 @@ import '../../marshmallow/index.js';
18
18
  import '../../marshmallow/buffer-layout.js';
19
19
  import '../liquidity/type.js';
20
20
  import '../liquidity/layout.js';
21
- import '../../type-1bf767ed.js';
21
+ import '../../type-b1a9baec.js';
22
22
  import '../clmm/layout.js';
23
23
  import '../cpmm/type.js';
24
24
  import '../cpmm/curve/calculator.js';
@@ -1,10 +1,10 @@
1
1
  import '@solana/web3.js';
2
2
  import '../../common/txTool/txType.js';
3
- import '../../api-11ffb196.js';
4
- export { i as default } from '../../raydium-a023305c.js';
3
+ import '../../api-f242758a.js';
4
+ export { i as default } from '../../raydium-5502e631.js';
5
5
  import 'bn.js';
6
6
  import '../liquidity/type.js';
7
- import '../../type-1bf767ed.js';
7
+ import '../../type-b1a9baec.js';
8
8
  import './type.js';
9
9
  import '../cpmm/type.js';
10
10
  import 'axios';
@@ -1,10 +1,10 @@
1
1
  import { PublicKey, Keypair, Signer, TransactionInstruction, Transaction } from '@solana/web3.js';
2
2
  import BN__default from 'bn.js';
3
- import { bO as TransferAmountFee, c5 as TokenAmount, B as PoolKeys, r as ApiV3PoolInfoItem } from '../../api-11ffb196.js';
3
+ import { bO as TransferAmountFee, c5 as TokenAmount, B as PoolKeys, r as ApiV3PoolInfoItem } from '../../api-f242758a.js';
4
4
  import Decimal from 'decimal.js';
5
5
  import { Token } from '../../module/token.js';
6
6
  import { ComputeAmountOutParam } from '../liquidity/type.js';
7
- import { d as ComputeClmmPoolInfo } from '../../type-1bf767ed.js';
7
+ import { d as ComputeClmmPoolInfo } from '../../type-b1a9baec.js';
8
8
  import { CpmmComputeData } from '../cpmm/type.js';
9
9
  import 'axios';
10
10
  import '../../solana/type.js';
@@ -1,6 +1,6 @@
1
1
  import '@solana/web3.js';
2
2
  import '@solana/spl-token';
3
- export { bW as ArrayItem, bM as ComputeBudgetConfig, c1 as Cover, bX as ExactPartial, bY as ExactRequired, c0 as Fallback, bP as GetTransferAmountFee, b_ as GetValue, bL as InstructionReturn, bN as LoadParams, bK as MakeMultiTransaction, bI as MakeTransaction, bJ as MakeV0Transaction, bT as MayArray, bU as MayDeepArray, bV as MayFunction, bS as ReplaceType, bQ as ReturnTypeFetchMultipleMintInfo, bR as ReturnTypeFetchMultipleMintInfos, bZ as SKeyof, b$ as SOR, bH as SignAllTransactions, bO as TransferAmountFee, c2 as UnionCover, c3 as unionArr } from '../api-11ffb196.js';
3
+ export { bW as ArrayItem, bM as ComputeBudgetConfig, c1 as Cover, bX as ExactPartial, bY as ExactRequired, c0 as Fallback, bP as GetTransferAmountFee, b_ as GetValue, bL as InstructionReturn, bN as LoadParams, bK as MakeMultiTransaction, bI as MakeTransaction, bJ as MakeV0Transaction, bT as MayArray, bU as MayDeepArray, bV as MayFunction, bS as ReplaceType, bQ as ReturnTypeFetchMultipleMintInfo, bR as ReturnTypeFetchMultipleMintInfos, bZ as SKeyof, b$ as SOR, bH as SignAllTransactions, bO as TransferAmountFee, c2 as UnionCover, c3 as unionArr } from '../api-f242758a.js';
4
4
  import 'bn.js';
5
5
  import 'axios';
6
6
  import '../solana/type.js';
@@ -1,6 +1,6 @@
1
- export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-a023305c.js';
1
+ export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-5502e631.js';
2
2
  import '@solana/web3.js';
3
- import '../../api-11ffb196.js';
3
+ import '../../api-f242758a.js';
4
4
  import 'axios';
5
5
  import '../../solana/type.js';
6
6
  import 'bn.js';
@@ -21,7 +21,7 @@ import '../account/layout.js';
21
21
  import '../liquidity/type.js';
22
22
  import '../liquidity/layout.js';
23
23
  import '../liquidity/stable.js';
24
- import '../../type-1bf767ed.js';
24
+ import '../../type-b1a9baec.js';
25
25
  import '../clmm/layout.js';
26
26
  import '../cpmm/type.js';
27
27
  import '../cpmm/curve/calculator.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-a023305c.js';
4
+ export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-5502e631.js';
5
5
  import '../../marshmallow/buffer-layout.js';
6
- import '../../api-11ffb196.js';
6
+ import '../../api-f242758a.js';
7
7
  import 'axios';
8
8
  import '../../solana/type.js';
9
9
  import '@solana/spl-token';
@@ -21,7 +21,7 @@ import '../account/layout.js';
21
21
  import '../liquidity/type.js';
22
22
  import '../liquidity/layout.js';
23
23
  import '../liquidity/stable.js';
24
- import '../../type-1bf767ed.js';
24
+ import '../../type-b1a9baec.js';
25
25
  import '../clmm/layout.js';
26
26
  import '../cpmm/type.js';
27
27
  import '../cpmm/curve/calculator.js';
@@ -1,5 +1,5 @@
1
1
  import { PublicKey, Commitment, EpochInfo, Connection, Transaction, Signer, TransactionInstruction, Keypair } from '@solana/web3.js';
2
- import { aB as TxBuilder, at as AddInstructionParam, ad as BigNumberish, bo as CreateFarm, aA as MakeTxData, bp as CreateFarmExtInfo, bq as UpdateFarmReward, br as UpdateFarmRewards, bs as FarmDWParam, Y as FormatFarmInfoOut, bM as ComputeBudgetConfig, az as MakeMultiTxData, p as ApiV3PoolInfoStandardItem, c9 as Percent, c5 as TokenAmount, w as AmmV4Keys, x as AmmV5Keys, o as ApiV3PoolInfoConcentratedItem, X as FormatFarmInfoOutV6, z as ClmmKeys, bI as MakeTransaction, bR as ReturnTypeFetchMultipleMintInfos, C as CpmmKeys, q as ApiV3PoolInfoStandardItemCpmm, bP as GetTransferAmountFee, B as PoolKeys, i as ApiV3Token, $ as OwnerIdoInfo, a0 as IdoKeysData, bN as LoadParams, J as JupTokenType, bD as TokenInfo, bH as SignAllTransactions, a as Api, Z as AvailabilityCheckAPI3, j as ApiV3TokenRes } from './api-11ffb196.js';
2
+ import { aB as TxBuilder, at as AddInstructionParam, ad as BigNumberish, bo as CreateFarm, aA as MakeTxData, bp as CreateFarmExtInfo, bq as UpdateFarmReward, br as UpdateFarmRewards, bs as FarmDWParam, Y as FormatFarmInfoOut, bM as ComputeBudgetConfig, az as MakeMultiTxData, p as ApiV3PoolInfoStandardItem, c9 as Percent, c5 as TokenAmount, w as AmmV4Keys, x as AmmV5Keys, o as ApiV3PoolInfoConcentratedItem, X as FormatFarmInfoOutV6, z as ClmmKeys, bI as MakeTransaction, bR as ReturnTypeFetchMultipleMintInfos, C as CpmmKeys, q as ApiV3PoolInfoStandardItemCpmm, bP as GetTransferAmountFee, B as PoolKeys, i as ApiV3Token, $ as OwnerIdoInfo, a0 as IdoKeysData, bN as LoadParams, J as JupTokenType, bD as TokenInfo, bH as SignAllTransactions, a as Api, Z as AvailabilityCheckAPI3, j as ApiV3TokenRes } from './api-f242758a.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';
@@ -10,7 +10,7 @@ import BN__default from 'bn.js';
10
10
  import Decimal from 'decimal.js';
11
11
  import { AddLiquidityParams, RemoveParams, CreatePoolParam, CreatePoolAddress, ComputeAmountOutParam, ComputeAmountInParam, SwapParam, AmmRpcData } from './raydium/liquidity/type.js';
12
12
  import { StableLayout } from './raydium/liquidity/stable.js';
13
- import { n as CreateConcentratedPool, O as OpenPositionFromBase, q as OpenPositionFromBaseExtInfo, r as OpenPositionFromLiquidity, s as OpenPositionFromLiquidityExtInfo, I as IncreasePositionFromLiquidity, M as ManipulateLiquidityExtInfo, o as IncreasePositionFromBase, D as DecreaseLiquidity, B as ClosePositionExtInfo, t as InitRewardParams, E as InitRewardExtInfo, u as InitRewardsParams, v as SetRewardParams, w as SetRewardsParams, x as CollectRewardParams, y as CollectRewardsParams, H as HarvestAllRewardsParams, F as ClmmRpcData, d as ComputeClmmPoolInfo, m as ReturnTypeFetchMultiplePoolTickArrays } from './type-1bf767ed.js';
13
+ import { n as CreateConcentratedPool, O as OpenPositionFromBase, q as OpenPositionFromBaseExtInfo, r as OpenPositionFromLiquidity, s as OpenPositionFromLiquidityExtInfo, I as IncreasePositionFromLiquidity, M as ManipulateLiquidityExtInfo, o as IncreasePositionFromBase, D as DecreaseLiquidity, B as ClosePositionExtInfo, t as InitRewardParams, E as InitRewardExtInfo, u as InitRewardsParams, v as SetRewardParams, w as SetRewardsParams, x as CollectRewardParams, y as CollectRewardsParams, H as HarvestAllRewardsParams, F as ClmmRpcData, d as ComputeClmmPoolInfo, m as ReturnTypeFetchMultiplePoolTickArrays } from './type-b1a9baec.js';
14
14
  import { ClmmPositionLayout, PositionInfoLayout, PoolInfoLayout } from './raydium/clmm/layout.js';
15
15
  import { CpmmRpcData, CpmmComputeData, CreateCpmmPoolParam, CreateCpmmPoolAddress, AddCpmmLiquidityParams, WithdrawCpmmLiquidityParams, CpmmSwapParams, ComputePairAmountParams } from './raydium/cpmm/type.js';
16
16
  import { ComputeAmountOutLayout, BasicPoolInfo, ReturnTypeGetAllRoute, ComputeRoutePathType, ComputePoolType, ReturnTypeFetchMultipleInfo } from './raydium/tradeV2/type.js';
@@ -446,11 +446,11 @@ declare class Utils1216 extends ModuleBase {
446
446
  perLpLoss: BN__default;
447
447
  totalClaimedAmount: BN__default;
448
448
  }[], "", {
449
+ status: number;
449
450
  padding: BN__default[];
450
451
  bump: number;
451
452
  endTime: BN__default;
452
453
  openTime: BN__default;
453
- status: number;
454
454
  ammId: PublicKey;
455
455
  tokenInfo: {
456
456
  mintDecimals: number;
@@ -1,7 +1,7 @@
1
1
  import { PublicKey, Transaction, Signer, Keypair, TransactionInstruction, EpochInfo } from '@solana/web3.js';
2
2
  import BN__default from 'bn.js';
3
3
  import Decimal from 'decimal.js';
4
- import { o as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bP as GetTransferAmountFee, bO as TransferAmountFee, ca as Price, c9 as Percent, c5 as TokenAmount, bM as ComputeBudgetConfig, c7 as Fraction, bD as TokenInfo, z as ClmmKeys } from './api-11ffb196.js';
4
+ import { o as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bP as GetTransferAmountFee, bO as TransferAmountFee, ca as Price, c9 as Percent, c5 as TokenAmount, bM as ComputeBudgetConfig, c7 as Fraction, bD as TokenInfo, z as ClmmKeys } from './api-f242758a.js';
5
5
  import { TxVersion } from './common/txTool/txType.js';
6
6
  import { ClmmPositionLayout, PoolInfoLayout } 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.1.63-alpha",
3
+ "version": "0.1.64-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",
@@ -265,7 +265,7 @@ export class Raydium {
265
265
  data: jupList.map((t) => ({
266
266
  ...t,
267
267
  mintAuthority: t.mint_authority || undefined,
268
- freezeAuthority: t.freezeAuthority || undefined,
268
+ freezeAuthority: t.freeze_authority || undefined,
269
269
  })),
270
270
  };
271
271
 
@@ -51,7 +51,6 @@ export default class TokenModule extends ModuleBase {
51
51
  programId:
52
52
  token.programId ??
53
53
  (token.tags.includes("token-2022") ? TOKEN_2022_PROGRAM_ID.toBase58() : TOKEN_PROGRAM_ID.toBase58()),
54
- tags: token.freezeAuthority ? [...(token.tags || []), "hasFreeze"] : token.tags,
55
54
  });
56
55
  this._mintGroup.official.add(token.address);
57
56
  });
@@ -65,7 +64,7 @@ export default class TokenModule extends ModuleBase {
65
64
  programId:
66
65
  token.programId ??
67
66
  (token.tags.includes("token-2022") ? TOKEN_2022_PROGRAM_ID.toBase58() : TOKEN_PROGRAM_ID.toBase58()),
68
- mintAuthority: token.mintAuthority,
67
+ tags: token.freezeAuthority ? [...(token.tags || []), "hasFreeze"] : token.tags,
69
68
  });
70
69
  this._mintGroup.jup.add(token.address);
71
70
  });