@raydium-io/raydium-sdk-v2 0.1.5-alpha → 0.1.6-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.
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/raydium/account/account.d.ts +1 -1
- package/lib/raydium/clmm/clmm.d.ts +1 -1
- package/lib/raydium/clmm/index.d.ts +1 -1
- package/lib/raydium/cpmm/cpmm.d.ts +1 -1
- package/lib/raydium/cpmm/cpmm.js +1 -1
- package/lib/raydium/cpmm/cpmm.js.map +1 -1
- package/lib/raydium/cpmm/cpmm.mjs +1 -1
- package/lib/raydium/cpmm/cpmm.mjs.map +1 -1
- package/lib/raydium/cpmm/type.d.ts +2 -0
- package/lib/raydium/cpmm/type.js +1 -1
- package/lib/raydium/cpmm/type.js.map +1 -1
- package/lib/raydium/farm/farm.d.ts +1 -1
- package/lib/raydium/ido/ido.d.ts +1 -1
- package/lib/raydium/ido/index.d.ts +1 -1
- package/lib/raydium/index.d.ts +1 -1
- package/lib/raydium/index.js +1 -1
- package/lib/raydium/index.js.map +1 -1
- package/lib/raydium/index.mjs +1 -1
- package/lib/raydium/index.mjs.map +1 -1
- package/lib/raydium/liquidity/liquidity.d.ts +1 -1
- package/lib/raydium/marketV2/createMarket.d.ts +1 -1
- package/lib/raydium/marketV2/index.d.ts +1 -1
- package/lib/raydium/moduleBase.d.ts +1 -1
- package/lib/raydium/raydium.d.ts +1 -1
- package/lib/raydium/raydium.js +1 -1
- package/lib/raydium/raydium.js.map +1 -1
- package/lib/raydium/raydium.mjs +1 -1
- package/lib/raydium/raydium.mjs.map +1 -1
- package/lib/raydium/token/token.d.ts +1 -1
- package/lib/raydium/tradeV2/trade.d.ts +1 -1
- package/lib/raydium/utils1216/index.d.ts +1 -1
- package/lib/raydium/utils1216/utils1216.d.ts +1 -1
- package/lib/{raydium-e681ad95.d.ts → raydium-4f9e818a.d.ts} +1 -1
- package/package.json +1 -1
- package/src/raydium/cpmm/cpmm.ts +21 -11
- package/src/raydium/cpmm/type.ts +2 -0
|
@@ -120,6 +120,8 @@ interface CpmmSwapParams<T = TxVersion.LEGACY> {
|
|
|
120
120
|
}
|
|
121
121
|
interface ComputePairAmountParams {
|
|
122
122
|
poolInfo: ApiV3PoolInfoStandardItemCpmm;
|
|
123
|
+
baseReserve: BN__default;
|
|
124
|
+
quoteReserve: BN__default;
|
|
123
125
|
amount: string | Decimal;
|
|
124
126
|
slippage: Percent;
|
|
125
127
|
epochInfo: EpochInfo;
|
package/lib/raydium/cpmm/type.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var
|
|
1
|
+
var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var p=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!u.call(o,t)&&t!==r&&i(o,t,{get:()=>e[t],enumerable:!(n=m(e,t))||n.enumerable});return o};var l=o=>p(i({},"__esModule",{value:!0}),o);var c={};module.exports=l(c);
|
|
2
2
|
//# sourceMappingURL=type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/raydium/cpmm/type.ts"],"sourcesContent":["import { EpochInfo, PublicKey } from \"@solana/web3.js\";\nimport { ApiV3PoolInfoStandardItemCpmm, ApiV3Token } from \"@/api/type\";\nimport { TxVersion } from \"@/common/txTool/txType\";\nimport BN from \"bn.js\";\nimport { ComputeBudgetConfig, GetTransferAmountFee } from \"@/raydium/type\";\nimport { SwapResult } from \"./curve/calculator\";\nimport { Percent } from \"@/module\";\nimport Decimal from \"decimal.js\";\n\nexport interface CpmmConfigInfoInterface {\n bump: number;\n disableCreatePool: boolean;\n index: number;\n tradeFeeRate: BN;\n protocolFeeRate: BN;\n fundFeeRate: BN;\n createPoolFee: BN;\n\n protocolOwner: PublicKey;\n fundOwner: PublicKey;\n}\n\nexport interface CpmmPoolInfoInterface {\n configId: PublicKey;\n poolCreator: PublicKey;\n vaultA: PublicKey;\n vaultB: PublicKey;\n\n mintLp: PublicKey;\n mintA: PublicKey;\n mintB: PublicKey;\n\n mintProgramA: PublicKey;\n mintProgramB: PublicKey;\n\n observationId: PublicKey;\n\n bump: number;\n status: number;\n\n lpDecimals: number;\n mintDecimalA: number;\n mintDecimalB: number;\n\n lpAmount: BN;\n protocolFeesMintA: BN;\n protocolFeesMintB: BN;\n fundFeesMintA: BN;\n fundFeesMintB: BN;\n openTime: BN;\n}\n\nexport interface CreateCpmmPoolParam<T> {\n programId: PublicKey;\n poolFeeAccount: PublicKey;\n mintA: Pick<ApiV3Token, \"address\" | \"decimals\" | \"programId\">;\n mintB: Pick<ApiV3Token, \"address\" | \"decimals\" | \"programId\">;\n mintAAmount: BN;\n mintBAmount: BN;\n startTime: BN;\n\n associatedOnly: boolean;\n checkCreateATAOwner?: boolean;\n\n ownerInfo: {\n feePayer?: PublicKey;\n useSOLBalance?: boolean; // if has WSOL mint\n };\n computeBudgetConfig?: ComputeBudgetConfig;\n txVersion?: T;\n}\n\nexport interface CreateCpmmPoolAddress {\n poolId: PublicKey;\n configId: PublicKey;\n authority: PublicKey;\n lpMint: PublicKey;\n vaultA: PublicKey;\n vaultB: PublicKey;\n observationId: PublicKey;\n mintA: ApiV3Token;\n mintB: ApiV3Token;\n programId: PublicKey;\n poolFeeAccount: PublicKey;\n}\n\nexport interface AddCpmmLiquidityParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n payer?: PublicKey;\n inputAmount: BN;\n baseIn: boolean;\n slippage: Percent;\n config?: {\n bypassAssociatedCheck?: boolean;\n checkCreateATAOwner?: boolean;\n };\n computeBudgetConfig?: ComputeBudgetConfig;\n txVersion?: T;\n computeResult?: {\n inputAmountFee: GetTransferAmountFee;\n anotherAmount: GetTransferAmountFee;\n maxAnotherAmount: GetTransferAmountFee;\n liquidity: BN;\n };\n}\n\nexport interface WithdrawCpmmLiquidityParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n payer?: PublicKey;\n lpAmount: BN;\n slippage: Percent;\n computeBudgetConfig?: ComputeBudgetConfig;\n txVersion?: T;\n}\n\nexport interface CpmmSwapParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n payer?: PublicKey;\n baseIn: boolean;\n swapResult: SwapResult;\n\n config?: {\n bypassAssociatedCheck?: boolean;\n checkCreateATAOwner?: boolean;\n };\n computeBudgetConfig?: ComputeBudgetConfig;\n txVersion?: T;\n}\n\nexport interface ComputePairAmountParams {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n amount: string | Decimal;\n slippage: Percent;\n epochInfo: EpochInfo;\n baseIn?: boolean;\n}\n"],"mappings":"kWAAA","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/raydium/cpmm/type.ts"],"sourcesContent":["import { EpochInfo, PublicKey } from \"@solana/web3.js\";\nimport { ApiV3PoolInfoStandardItemCpmm, ApiV3Token } from \"@/api/type\";\nimport { TxVersion } from \"@/common/txTool/txType\";\nimport BN from \"bn.js\";\nimport { ComputeBudgetConfig, GetTransferAmountFee } from \"@/raydium/type\";\nimport { SwapResult } from \"./curve/calculator\";\nimport { Percent } from \"@/module\";\nimport Decimal from \"decimal.js\";\n\nexport interface CpmmConfigInfoInterface {\n bump: number;\n disableCreatePool: boolean;\n index: number;\n tradeFeeRate: BN;\n protocolFeeRate: BN;\n fundFeeRate: BN;\n createPoolFee: BN;\n\n protocolOwner: PublicKey;\n fundOwner: PublicKey;\n}\n\nexport interface CpmmPoolInfoInterface {\n configId: PublicKey;\n poolCreator: PublicKey;\n vaultA: PublicKey;\n vaultB: PublicKey;\n\n mintLp: PublicKey;\n mintA: PublicKey;\n mintB: PublicKey;\n\n mintProgramA: PublicKey;\n mintProgramB: PublicKey;\n\n observationId: PublicKey;\n\n bump: number;\n status: number;\n\n lpDecimals: number;\n mintDecimalA: number;\n mintDecimalB: number;\n\n lpAmount: BN;\n protocolFeesMintA: BN;\n protocolFeesMintB: BN;\n fundFeesMintA: BN;\n fundFeesMintB: BN;\n openTime: BN;\n}\n\nexport interface CreateCpmmPoolParam<T> {\n programId: PublicKey;\n poolFeeAccount: PublicKey;\n mintA: Pick<ApiV3Token, \"address\" | \"decimals\" | \"programId\">;\n mintB: Pick<ApiV3Token, \"address\" | \"decimals\" | \"programId\">;\n mintAAmount: BN;\n mintBAmount: BN;\n startTime: BN;\n\n associatedOnly: boolean;\n checkCreateATAOwner?: boolean;\n\n ownerInfo: {\n feePayer?: PublicKey;\n useSOLBalance?: boolean; // if has WSOL mint\n };\n computeBudgetConfig?: ComputeBudgetConfig;\n txVersion?: T;\n}\n\nexport interface CreateCpmmPoolAddress {\n poolId: PublicKey;\n configId: PublicKey;\n authority: PublicKey;\n lpMint: PublicKey;\n vaultA: PublicKey;\n vaultB: PublicKey;\n observationId: PublicKey;\n mintA: ApiV3Token;\n mintB: ApiV3Token;\n programId: PublicKey;\n poolFeeAccount: PublicKey;\n}\n\nexport interface AddCpmmLiquidityParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n payer?: PublicKey;\n inputAmount: BN;\n baseIn: boolean;\n slippage: Percent;\n config?: {\n bypassAssociatedCheck?: boolean;\n checkCreateATAOwner?: boolean;\n };\n computeBudgetConfig?: ComputeBudgetConfig;\n txVersion?: T;\n computeResult?: {\n inputAmountFee: GetTransferAmountFee;\n anotherAmount: GetTransferAmountFee;\n maxAnotherAmount: GetTransferAmountFee;\n liquidity: BN;\n };\n}\n\nexport interface WithdrawCpmmLiquidityParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n payer?: PublicKey;\n lpAmount: BN;\n slippage: Percent;\n computeBudgetConfig?: ComputeBudgetConfig;\n txVersion?: T;\n}\n\nexport interface CpmmSwapParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n payer?: PublicKey;\n baseIn: boolean;\n swapResult: SwapResult;\n\n config?: {\n bypassAssociatedCheck?: boolean;\n checkCreateATAOwner?: boolean;\n };\n computeBudgetConfig?: ComputeBudgetConfig;\n txVersion?: T;\n}\n\nexport interface ComputePairAmountParams {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n baseReserve: BN;\n quoteReserve: BN;\n amount: string | Decimal;\n slippage: Percent;\n epochInfo: EpochInfo;\n baseIn?: boolean;\n}\n"],"mappings":"kWAAA","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import '../../type-9fe71e3c.js';
|
|
3
3
|
import '../../common/txTool/txType.js';
|
|
4
|
-
export { F as default } from '../../raydium-
|
|
4
|
+
export { F as default } from '../../raydium-4f9e818a.js';
|
|
5
5
|
import 'bn.js';
|
|
6
6
|
import '@solana/spl-token';
|
|
7
7
|
import '../../solana/type.js';
|
package/lib/raydium/ido/ido.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as default } from '../../raydium-
|
|
1
|
+
export { M as default } from '../../raydium-4f9e818a.js';
|
|
2
2
|
export { makeClaimInstruction, makeClaimInstructionV4, makePurchaseInstruction } from './instruction.js';
|
|
3
3
|
export { ClaimInstructionKeys, ClaimInstructionKeysV3, IdoClaimInstructionParams, IdoPoolConfig, IdoUserKeys, IdoVersion, PurchaseInstructionKeys, SnapshotVersion } from './type.js';
|
|
4
4
|
export { claimLayout, purchaseLayout } from './layout.js';
|
package/lib/raydium/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-4f9e818a.js';
|
|
2
2
|
export { splAccountLayout } from './account/layout.js';
|
|
3
3
|
export { GetOrCreateTokenAccountParams, HandleTokenAccountParams, SplAccount, SplAccountLayout, TokenAccount, TokenAccountRaw, getCreatedTokenAccountParams } from './account/types.js';
|
|
4
4
|
export { ParseTokenAccount, generatePubKey, parseTokenAccountResp } from './account/util.js';
|