@raydium-io/raydium-sdk-v2 0.2.18-alpha → 0.2.19-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 (54) hide show
  1. package/lib/index.d.ts +2 -2
  2. package/lib/index.js +1 -1
  3. package/lib/index.js.map +1 -1
  4. package/lib/index.mjs +1 -1
  5. package/lib/index.mjs.map +1 -1
  6. package/lib/raydium/account/account.d.ts +2 -2
  7. package/lib/raydium/clmm/clmm.d.ts +2 -2
  8. package/lib/raydium/clmm/index.d.ts +2 -2
  9. package/lib/raydium/clmm/instrument.d.ts +1 -1
  10. package/lib/raydium/clmm/layout.d.ts +1 -1
  11. package/lib/raydium/clmm/type.d.ts +1 -1
  12. package/lib/raydium/clmm/utils/math.d.ts +1 -1
  13. package/lib/raydium/clmm/utils/pool.d.ts +1 -1
  14. package/lib/raydium/clmm/utils/position.d.ts +1 -1
  15. package/lib/raydium/clmm/utils/tick.d.ts +1 -1
  16. package/lib/raydium/clmm/utils/tickQuery.d.ts +1 -1
  17. package/lib/raydium/cpmm/cpmm.d.ts +2 -2
  18. package/lib/raydium/cpmm/cpmm.js +1 -1
  19. package/lib/raydium/cpmm/cpmm.js.map +1 -1
  20. package/lib/raydium/cpmm/cpmm.mjs +1 -1
  21. package/lib/raydium/cpmm/cpmm.mjs.map +1 -1
  22. package/lib/raydium/cpmm/layout.d.ts +1 -1
  23. package/lib/raydium/farm/farm.d.ts +2 -2
  24. package/lib/raydium/ido/ido.d.ts +2 -2
  25. package/lib/raydium/ido/index.d.ts +2 -2
  26. package/lib/raydium/index.d.ts +2 -2
  27. package/lib/raydium/index.js +1 -1
  28. package/lib/raydium/index.js.map +1 -1
  29. package/lib/raydium/index.mjs +1 -1
  30. package/lib/raydium/index.mjs.map +1 -1
  31. package/lib/raydium/launchpad/index.d.ts +2 -2
  32. package/lib/raydium/launchpad/launchpad.d.ts +2 -2
  33. package/lib/raydium/launchpad/layout.d.ts +1 -1
  34. package/lib/raydium/liquidity/layout.d.ts +2 -2
  35. package/lib/raydium/liquidity/liquidity.d.ts +2 -2
  36. package/lib/raydium/marketV2/createMarket.d.ts +2 -2
  37. package/lib/raydium/marketV2/index.d.ts +2 -2
  38. package/lib/raydium/moduleBase.d.ts +2 -2
  39. package/lib/raydium/raydium.d.ts +2 -2
  40. package/lib/raydium/raydium.js +1 -1
  41. package/lib/raydium/raydium.js.map +1 -1
  42. package/lib/raydium/raydium.mjs +1 -1
  43. package/lib/raydium/raydium.mjs.map +1 -1
  44. package/lib/raydium/token/token.d.ts +2 -2
  45. package/lib/raydium/tradeV2/index.d.ts +1 -1
  46. package/lib/raydium/tradeV2/instrument.d.ts +1 -1
  47. package/lib/raydium/tradeV2/trade.d.ts +2 -2
  48. package/lib/raydium/tradeV2/type.d.ts +1 -1
  49. package/lib/raydium/utils1216/index.d.ts +2 -2
  50. package/lib/raydium/utils1216/utils1216.d.ts +2 -2
  51. package/lib/{raydium-3337931c.d.ts → raydium-a0551e10.d.ts} +2 -2
  52. package/package.json +1 -1
  53. package/src/raydium/cpmm/cpmm.ts +8 -2
  54. /package/lib/{type-f8905221.d.ts → type-400dcd9a.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import '@solana/web3.js';
2
2
  import '../../api-4c9df9c5.js';
3
- export { n as default } from '../../raydium-3337931c.js';
3
+ export { n as default } from '../../raydium-a0551e10.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-f8905221.js';
25
+ import '../../type-400dcd9a.js';
26
26
  import '../cpmm/type.js';
27
27
  import '../cpmm/curve/calculator.js';
28
28
  import '../cpmm/layout.js';
@@ -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-f8905221.js';
20
+ import '../../type-400dcd9a.js';
21
21
  import '../clmm/layout.js';
22
22
  import '../liquidity/type.js';
23
23
  import '../liquidity/layout.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-f8905221.js';
19
+ import '../../type-400dcd9a.js';
20
20
  import '../clmm/layout.js';
21
21
  import '../liquidity/type.js';
22
22
  import '../liquidity/layout.js';
@@ -2,8 +2,8 @@ import '@solana/web3.js';
2
2
  import 'bn.js';
3
3
  import '../../api-4c9df9c5.js';
4
4
  import '../../common/txTool/txType.js';
5
- export { l as default } from '../../raydium-3337931c.js';
6
- import '../../type-f8905221.js';
5
+ export { l as default } from '../../raydium-a0551e10.js';
6
+ import '../../type-400dcd9a.js';
7
7
  import '../liquidity/type.js';
8
8
  import '../cpmm/type.js';
9
9
  import './type.js';
@@ -3,7 +3,7 @@ import BN__default from 'bn.js';
3
3
  import Decimal from 'decimal.js';
4
4
  import { bX as TransferAmountFee, ce as TokenAmount, G as PoolKeys, s as ApiV3PoolInfoItem } from '../../api-4c9df9c5.js';
5
5
  import { Token } from '../../module/token.js';
6
- import { d as ComputeClmmPoolInfo } from '../../type-f8905221.js';
6
+ import { d as ComputeClmmPoolInfo } from '../../type-400dcd9a.js';
7
7
  import { ComputeAmountOutParam } from '../liquidity/type.js';
8
8
  import { CpmmComputeData } from '../cpmm/type.js';
9
9
  import 'axios';
@@ -1,4 +1,4 @@
1
- export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-3337931c.js';
1
+ export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-a0551e10.js';
2
2
  import '@solana/web3.js';
3
3
  import '../../api-4c9df9c5.js';
4
4
  import 'axios';
@@ -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-f8905221.js';
25
+ import '../../type-400dcd9a.js';
26
26
  import '../cpmm/type.js';
27
27
  import '../cpmm/curve/calculator.js';
28
28
  import '../cpmm/layout.js';
@@ -1,7 +1,7 @@
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-3337931c.js';
4
+ export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-a0551e10.js';
5
5
  import '../../marshmallow/buffer-layout.js';
6
6
  import '../../api-4c9df9c5.js';
7
7
  import 'axios';
@@ -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-f8905221.js';
25
+ import '../../type-400dcd9a.js';
26
26
  import '../cpmm/type.js';
27
27
  import '../cpmm/curve/calculator.js';
28
28
  import '../cpmm/layout.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 } from './type-f8905221.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 } from './type-400dcd9a.js';
15
15
  import { CpmmParsedRpcData, CpmmComputeData, CreateCpmmPoolParam, CreateCpmmPoolAddress, AddCpmmLiquidityParams, WithdrawCpmmLiquidityParams, CpmmSwapParams, LockCpmmLpParams, CpmmLockExtInfo, HarvestLockCpmmLpParams, HarvestMultiLockCpmmLpParams, CreateCpmmPoolPermissionParam, CollectCreatorFees, CollectMultiCreatorFees, ComputePairAmountParams } from './raydium/cpmm/type.js';
16
16
  import { ComputeAmountOutLayout, BasicPoolInfo, ReturnTypeGetAllRoute, ComputeRoutePathType, ComputePoolType, ReturnTypeFetchMultipleInfo } from './raydium/tradeV2/type.js';
17
17
  import { Structure } from './marshmallow/index.js';
@@ -531,11 +531,11 @@ declare class Utils1216 extends ModuleBase {
531
531
  perLpLoss: BN__default;
532
532
  totalClaimedAmount: BN__default;
533
533
  }[], "", {
534
- status: number;
535
534
  padding: BN__default[];
536
535
  bump: number;
537
536
  endTime: BN__default;
538
537
  openTime: BN__default;
538
+ status: number;
539
539
  ammId: PublicKey;
540
540
  tokenInfo: {
541
541
  mintDecimals: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydium-io/raydium-sdk-v2",
3
- "version": "0.2.18-alpha",
3
+ "version": "0.2.19-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",
@@ -138,8 +138,14 @@ export default class CpmmModule extends ModuleBase {
138
138
  const returnData: { [poolId: string]: CpmmParsedRpcData } = {};
139
139
 
140
140
  for (const [id, info] of Object.entries(poolInfos)) {
141
- const baseReserve = vaultInfo[info.vaultA.toString()].sub(info.protocolFeesMintA).sub(info.fundFeesMintA);
142
- const quoteReserve = vaultInfo[info.vaultB.toString()].sub(info.protocolFeesMintB).sub(info.fundFeesMintB);
141
+ const baseReserve = vaultInfo[info.vaultA.toString()]
142
+ .sub(info.protocolFeesMintA)
143
+ .sub(info.fundFeesMintA)
144
+ .sub(info.creatorFeesMintA);
145
+ const quoteReserve = vaultInfo[info.vaultB.toString()]
146
+ .sub(info.protocolFeesMintB)
147
+ .sub(info.fundFeesMintB)
148
+ .sub(info.creatorFeesMintB);
143
149
  returnData[id] = {
144
150
  ...info,
145
151
  baseReserve,
File without changes