@raydium-io/raydium-sdk-v2 0.1.112-alpha → 0.1.114-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/api/api.d.ts +1 -1
- package/lib/api/api.js.map +1 -1
- package/lib/api/api.mjs.map +1 -1
- package/lib/api/index.d.ts +1 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/index.mjs.map +1 -1
- package/lib/api/type.d.ts +1 -1
- package/lib/api/type.js.map +1 -1
- package/lib/api/type.mjs.map +1 -1
- package/lib/{api-19c05a82.d.ts → api-80d620f3.d.ts} +5 -5
- package/lib/common/accountInfo.d.ts +1 -1
- package/lib/common/bignumber.d.ts +1 -1
- package/lib/common/constant.d.ts +1 -1
- package/lib/common/fractionUtil.d.ts +1 -1
- package/lib/common/index.d.ts +1 -1
- package/lib/common/transfer.d.ts +1 -1
- package/lib/common/txTool/txTool.d.ts +1 -1
- package/lib/common/txTool/txUtils.d.ts +1 -1
- package/lib/common/utility.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- 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/module/amount.d.ts +1 -1
- package/lib/module/fraction.d.ts +1 -1
- package/lib/module/index.d.ts +1 -1
- package/lib/module/percent.d.ts +1 -1
- package/lib/module/price.d.ts +1 -1
- package/lib/raydium/account/account.d.ts +3 -3
- package/lib/raydium/account/index.d.ts +1 -1
- package/lib/raydium/account/instruction.d.ts +1 -1
- package/lib/raydium/account/types.d.ts +1 -1
- package/lib/raydium/account/util.d.ts +1 -1
- package/lib/raydium/clmm/clmm.d.ts +3 -3
- package/lib/raydium/clmm/index.d.ts +3 -3
- package/lib/raydium/clmm/instrument.d.ts +2 -2
- package/lib/raydium/clmm/layout.d.ts +5 -5
- package/lib/raydium/clmm/type.d.ts +2 -2
- package/lib/raydium/clmm/utils/math.d.ts +2 -2
- package/lib/raydium/clmm/utils/pool.d.ts +2 -2
- package/lib/raydium/clmm/utils/position.d.ts +2 -2
- package/lib/raydium/clmm/utils/tick.d.ts +2 -2
- package/lib/raydium/clmm/utils/tickQuery.d.ts +2 -2
- package/lib/raydium/clmm/utils/tickarrayBitmap.d.ts +2 -2
- package/lib/raydium/cpmm/cpmm.d.ts +3 -3
- 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/curve/calculator.d.ts +1 -1
- package/lib/raydium/cpmm/curve/constantProduct.d.ts +1 -1
- package/lib/raydium/cpmm/index.d.ts +1 -1
- package/lib/raydium/cpmm/instruction.d.ts +1 -1
- package/lib/raydium/cpmm/type.d.ts +3 -1
- package/lib/raydium/cpmm/type.js.map +1 -1
- package/lib/raydium/farm/config.d.ts +1 -1
- package/lib/raydium/farm/farm.d.ts +3 -3
- package/lib/raydium/farm/index.d.ts +1 -1
- package/lib/raydium/farm/instruction.d.ts +1 -1
- package/lib/raydium/farm/layout.d.ts +1 -1
- package/lib/raydium/farm/type.d.ts +1 -1
- package/lib/raydium/farm/util.d.ts +1 -1
- package/lib/raydium/ido/ido.d.ts +3 -3
- package/lib/raydium/ido/index.d.ts +3 -3
- package/lib/raydium/ido/instruction.d.ts +1 -1
- package/lib/raydium/ido/type.d.ts +1 -1
- package/lib/raydium/index.d.ts +3 -3
- 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/index.d.ts +1 -1
- package/lib/raydium/liquidity/instruction.d.ts +1 -1
- package/lib/raydium/liquidity/liquidity.d.ts +3 -3
- package/lib/raydium/liquidity/type.d.ts +1 -1
- package/lib/raydium/liquidity/utils.d.ts +1 -1
- package/lib/raydium/marketV2/createMarket.d.ts +3 -3
- package/lib/raydium/marketV2/index.d.ts +3 -3
- package/lib/raydium/moduleBase.d.ts +3 -3
- package/lib/raydium/raydium.d.ts +3 -3
- 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/constant.d.ts +1 -1
- package/lib/raydium/token/index.d.ts +1 -1
- package/lib/raydium/token/token.d.ts +3 -3
- package/lib/raydium/token/token.js +1 -1
- package/lib/raydium/token/token.js.map +1 -1
- package/lib/raydium/token/token.mjs +1 -1
- package/lib/raydium/token/token.mjs.map +1 -1
- package/lib/raydium/token/type.d.ts +1 -1
- package/lib/raydium/token/utils.d.ts +1 -1
- package/lib/raydium/tradeV2/index.d.ts +2 -2
- package/lib/raydium/tradeV2/index.js +1 -1
- package/lib/raydium/tradeV2/index.mjs +1 -1
- package/lib/raydium/tradeV2/instrument.d.ts +2 -2
- package/lib/raydium/tradeV2/trade.d.ts +3 -3
- package/lib/raydium/tradeV2/type.d.ts +2 -2
- package/lib/raydium/type.d.ts +1 -1
- package/lib/raydium/utils1216/index.d.ts +3 -3
- package/lib/raydium/utils1216/utils1216.d.ts +3 -3
- package/lib/{raydium-12e49584.d.ts → raydium-3ed04285.d.ts} +3 -3
- package/lib/{type-5c415626.d.ts → type-3885792c.d.ts} +1 -1
- package/package.json +1 -1
- package/src/api/api.ts +1 -1
- package/src/api/type.ts +1 -1
- package/src/raydium/.DS_Store +0 -0
- package/src/raydium/cpmm/cpmm.ts +6 -4
- package/src/raydium/cpmm/type.ts +2 -0
- package/src/raydium/token/token.ts +3 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
|
-
import { i as ApiV3Token } from '../../../api-
|
|
3
|
+
import { i as ApiV3Token } from '../../../api-80d620f3.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../../solana/type.js';
|
|
6
6
|
import '@solana/spl-token';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BN__default from 'bn.js';
|
|
2
2
|
import { SwapWithoutFeesResult, RoundDirection, TradingTokenResult } from './calculator.js';
|
|
3
3
|
import '@solana/web3.js';
|
|
4
|
-
import '../../../api-
|
|
4
|
+
import '../../../api-80d620f3.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../../solana/type.js';
|
|
7
7
|
import '@solana/spl-token';
|
|
@@ -10,7 +10,7 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'bn.js';
|
|
11
11
|
import '../../marshmallow/buffer-layout.js';
|
|
12
12
|
import 'decimal.js';
|
|
13
|
-
import '../../api-
|
|
13
|
+
import '../../api-80d620f3.js';
|
|
14
14
|
import 'axios';
|
|
15
15
|
import '../../solana/type.js';
|
|
16
16
|
import '@solana/spl-token';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BN__default from 'bn.js';
|
|
2
2
|
import { PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
3
|
-
import { q as ApiV3PoolInfoStandardItemCpmm, y as CpmmKeys, bI as ReturnTypeMakeInstructions } from '../../api-
|
|
3
|
+
import { q as ApiV3PoolInfoStandardItemCpmm, y as CpmmKeys, bI as ReturnTypeMakeInstructions } from '../../api-80d620f3.js';
|
|
4
4
|
import { CpmmLockExtInfo } from './type.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PublicKey, EpochInfo } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
3
|
import Decimal from 'decimal.js';
|
|
4
|
-
import { i as ApiV3Token, f as ApiCpmmConfigInfo, bO as ComputeBudgetConfig, bP as TxTipConfig, q as ApiV3PoolInfoStandardItemCpmm, y as CpmmKeys, cc as Percent, bS as GetTransferAmountFee } from '../../api-
|
|
4
|
+
import { i as ApiV3Token, f as ApiCpmmConfigInfo, bO as ComputeBudgetConfig, bP as TxTipConfig, q as ApiV3PoolInfoStandardItemCpmm, y as CpmmKeys, cc as Percent, bS as GetTransferAmountFee } from '../../api-80d620f3.js';
|
|
5
5
|
import { TxVersion } from '../../common/txTool/txType.js';
|
|
6
6
|
import { SwapResult } from './curve/calculator.js';
|
|
7
7
|
import { CpmmPoolInfoLayout } from './layout.js';
|
|
@@ -119,6 +119,7 @@ interface WithdrawCpmmLiquidityParams<T = TxVersion.LEGACY> {
|
|
|
119
119
|
txTipConfig?: TxTipConfig;
|
|
120
120
|
txVersion?: T;
|
|
121
121
|
feePayer?: PublicKey;
|
|
122
|
+
closeWsol?: boolean;
|
|
122
123
|
}
|
|
123
124
|
interface CpmmSwapParams<T = TxVersion.LEGACY> {
|
|
124
125
|
poolInfo: ApiV3PoolInfoStandardItemCpmm;
|
|
@@ -205,6 +206,7 @@ interface HarvestLockCpmmLpParams<T = TxVersion.LEGACY> {
|
|
|
205
206
|
computeBudgetConfig?: ComputeBudgetConfig;
|
|
206
207
|
txTipConfig?: TxTipConfig;
|
|
207
208
|
txVersion?: T;
|
|
209
|
+
closeWsol?: boolean;
|
|
208
210
|
}
|
|
209
211
|
interface CpmmLockNftBasicInfo {
|
|
210
212
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/raydium/cpmm/type.ts"],"sourcesContent":["import { EpochInfo, PublicKey } from \"@solana/web3.js\";\nimport BN from \"bn.js\";\nimport Decimal from \"decimal.js\";\nimport { ApiCpmmConfigInfo, ApiV3PoolInfoStandardItemCpmm, ApiV3Token, CpmmKeys } from \"../../api/type\";\nimport { TxVersion } from \"../../common/txTool/txType\";\nimport { Percent } from \"../../module\";\nimport { ComputeBudgetConfig, GetTransferAmountFee, TxTipConfig } from \"../../raydium/type\";\nimport { SwapResult } from \"./curve/calculator\";\nimport { CpmmPoolInfoLayout } from \"./layout\";\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 poolId?: PublicKey;\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 feeConfig: ApiCpmmConfigInfo;\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 txTipConfig?: TxTipConfig;\n feePayer?: PublicKey;\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 feeConfig: ApiCpmmConfigInfo;\n}\n\nexport interface AddCpmmLiquidityParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\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 txTipConfig?: TxTipConfig;\n txVersion?: T;\n computeResult?: {\n inputAmountFee: GetTransferAmountFee;\n anotherAmount: GetTransferAmountFee;\n maxAnotherAmount: GetTransferAmountFee;\n liquidity: BN;\n };\n feePayer?: PublicKey;\n}\n\nexport interface WithdrawCpmmLiquidityParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\n payer?: PublicKey;\n lpAmount: BN;\n slippage: Percent;\n computeBudgetConfig?: ComputeBudgetConfig;\n txTipConfig?: TxTipConfig;\n txVersion?: T;\n feePayer?: PublicKey;\n}\n\nexport interface CpmmSwapParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\n payer?: PublicKey;\n baseIn: boolean;\n fixedOut?: boolean;\n slippage?: number;\n swapResult: Pick<SwapResult, \"sourceAmountSwapped\" | \"destinationAmountSwapped\">;\n inputAmount: BN;\n\n config?: {\n bypassAssociatedCheck?: boolean;\n checkCreateATAOwner?: boolean;\n associatedOnly?: boolean;\n };\n computeBudgetConfig?: ComputeBudgetConfig;\n txTipConfig?: TxTipConfig;\n txVersion?: T;\n feePayer?: PublicKey;\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\nexport type CpmmRpcData = ReturnType<typeof CpmmPoolInfoLayout.decode> & {\n baseReserve: BN;\n quoteReserve: BN;\n vaultAAmount: BN;\n vaultBAmount: BN;\n configInfo?: CpmmConfigInfoInterface;\n poolPrice: Decimal;\n programId: PublicKey;\n};\n\nexport type CpmmComputeData = {\n id: PublicKey;\n version: 7;\n configInfo: CpmmConfigInfoInterface;\n mintA: ApiV3Token;\n mintB: ApiV3Token;\n authority: PublicKey;\n} & Omit<CpmmRpcData, \"configInfo\" | \"mintA\" | \"mintB\">;\n\nexport type CpmmLockExtInfo = {\n nftMint: PublicKey;\n nftAccount: PublicKey;\n metadataAccount: PublicKey;\n lockPda: PublicKey;\n userLpVault: PublicKey;\n lockLpVault: PublicKey;\n};\n\nexport interface LockCpmmLpParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\n lpAmount: BN;\n programId?: PublicKey;\n authProgram?: PublicKey;\n feePayer?: PublicKey;\n feeNftOwner?: PublicKey;\n withMetadata?: boolean;\n getEphemeralSigners?: (k: number) => any;\n computeBudgetConfig?: ComputeBudgetConfig;\n txTipConfig?: TxTipConfig;\n txVersion?: T;\n}\n\nexport interface HarvestLockCpmmLpParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\n\n nftMint: PublicKey;\n lpFeeAmount: BN;\n\n programId?: PublicKey;\n authProgram?: PublicKey;\n clmmProgram?: PublicKey;\n\n cpmmProgram?: {\n programId?: PublicKey;\n authProgram?: PublicKey;\n };\n\n feePayer?: PublicKey;\n\n withMetadata?: boolean;\n getEphemeralSigners?: (k: number) => any;\n computeBudgetConfig?: ComputeBudgetConfig;\n txTipConfig?: TxTipConfig;\n txVersion?: T;\n}\n\nexport interface CpmmLockNftBasicInfo {\n name: string;\n symbol: string;\n description: string;\n external_url: string;\n collection: {\n name: string;\n family: string;\n };\n image: string;\n}\n\nexport interface CpmmLockNftInfo extends CpmmLockNftBasicInfo {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n positionInfo: {\n percentage: number;\n usdValue: number;\n unclaimedFee: {\n lp: number;\n amountA: number;\n amountB: number;\n useValue: number;\n };\n };\n}\n"],"mappings":"kWAAA","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/raydium/cpmm/type.ts"],"sourcesContent":["import { EpochInfo, PublicKey } from \"@solana/web3.js\";\nimport BN from \"bn.js\";\nimport Decimal from \"decimal.js\";\nimport { ApiCpmmConfigInfo, ApiV3PoolInfoStandardItemCpmm, ApiV3Token, CpmmKeys } from \"../../api/type\";\nimport { TxVersion } from \"../../common/txTool/txType\";\nimport { Percent } from \"../../module\";\nimport { ComputeBudgetConfig, GetTransferAmountFee, TxTipConfig } from \"../../raydium/type\";\nimport { SwapResult } from \"./curve/calculator\";\nimport { CpmmPoolInfoLayout } from \"./layout\";\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 poolId?: PublicKey;\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 feeConfig: ApiCpmmConfigInfo;\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 txTipConfig?: TxTipConfig;\n feePayer?: PublicKey;\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 feeConfig: ApiCpmmConfigInfo;\n}\n\nexport interface AddCpmmLiquidityParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\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 txTipConfig?: TxTipConfig;\n txVersion?: T;\n computeResult?: {\n inputAmountFee: GetTransferAmountFee;\n anotherAmount: GetTransferAmountFee;\n maxAnotherAmount: GetTransferAmountFee;\n liquidity: BN;\n };\n feePayer?: PublicKey;\n}\n\nexport interface WithdrawCpmmLiquidityParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\n payer?: PublicKey;\n lpAmount: BN;\n slippage: Percent;\n computeBudgetConfig?: ComputeBudgetConfig;\n txTipConfig?: TxTipConfig;\n txVersion?: T;\n feePayer?: PublicKey;\n closeWsol?: boolean;\n}\n\nexport interface CpmmSwapParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\n payer?: PublicKey;\n baseIn: boolean;\n fixedOut?: boolean;\n slippage?: number;\n swapResult: Pick<SwapResult, \"sourceAmountSwapped\" | \"destinationAmountSwapped\">;\n inputAmount: BN;\n\n config?: {\n bypassAssociatedCheck?: boolean;\n checkCreateATAOwner?: boolean;\n associatedOnly?: boolean;\n };\n computeBudgetConfig?: ComputeBudgetConfig;\n txTipConfig?: TxTipConfig;\n txVersion?: T;\n feePayer?: PublicKey;\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\nexport type CpmmRpcData = ReturnType<typeof CpmmPoolInfoLayout.decode> & {\n baseReserve: BN;\n quoteReserve: BN;\n vaultAAmount: BN;\n vaultBAmount: BN;\n configInfo?: CpmmConfigInfoInterface;\n poolPrice: Decimal;\n programId: PublicKey;\n};\n\nexport type CpmmComputeData = {\n id: PublicKey;\n version: 7;\n configInfo: CpmmConfigInfoInterface;\n mintA: ApiV3Token;\n mintB: ApiV3Token;\n authority: PublicKey;\n} & Omit<CpmmRpcData, \"configInfo\" | \"mintA\" | \"mintB\">;\n\nexport type CpmmLockExtInfo = {\n nftMint: PublicKey;\n nftAccount: PublicKey;\n metadataAccount: PublicKey;\n lockPda: PublicKey;\n userLpVault: PublicKey;\n lockLpVault: PublicKey;\n};\n\nexport interface LockCpmmLpParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\n lpAmount: BN;\n programId?: PublicKey;\n authProgram?: PublicKey;\n feePayer?: PublicKey;\n feeNftOwner?: PublicKey;\n withMetadata?: boolean;\n getEphemeralSigners?: (k: number) => any;\n computeBudgetConfig?: ComputeBudgetConfig;\n txTipConfig?: TxTipConfig;\n txVersion?: T;\n}\n\nexport interface HarvestLockCpmmLpParams<T = TxVersion.LEGACY> {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n poolKeys?: CpmmKeys;\n\n nftMint: PublicKey;\n lpFeeAmount: BN;\n\n programId?: PublicKey;\n authProgram?: PublicKey;\n clmmProgram?: PublicKey;\n\n cpmmProgram?: {\n programId?: PublicKey;\n authProgram?: PublicKey;\n };\n\n feePayer?: PublicKey;\n\n withMetadata?: boolean;\n getEphemeralSigners?: (k: number) => any;\n computeBudgetConfig?: ComputeBudgetConfig;\n txTipConfig?: TxTipConfig;\n txVersion?: T;\n closeWsol?: boolean;\n}\n\nexport interface CpmmLockNftBasicInfo {\n name: string;\n symbol: string;\n description: string;\n external_url: string;\n collection: {\n name: string;\n family: string;\n };\n image: string;\n}\n\nexport interface CpmmLockNftInfo extends CpmmLockNftBasicInfo {\n poolInfo: ApiV3PoolInfoStandardItemCpmm;\n positionInfo: {\n percentage: number;\n usdValue: number;\n unclaimedFee: {\n lp: number;\n amountA: number;\n amountB: number;\n useValue: number;\n };\n };\n}\n"],"mappings":"kWAAA","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
export { bw as FARM_LOCK_MINT, bx as FARM_LOCK_VAULT, bD as FARM_PROGRAM_TO_VERSION, bz as FARM_VERSION_TO_LEDGER_LAYOUT, by as FARM_VERSION_TO_STATE_LAYOUT, bv as FarmVersion, bA as isValidFarmVersion, bC as poolTypeV6, bB as validateFarmRewards } from '../../api-
|
|
2
|
+
export { bw as FARM_LOCK_MINT, bx as FARM_LOCK_VAULT, bD as FARM_PROGRAM_TO_VERSION, bz as FARM_VERSION_TO_LEDGER_LAYOUT, by as FARM_VERSION_TO_STATE_LAYOUT, bv as FarmVersion, bA as isValidFarmVersion, bC as poolTypeV6, bB as validateFarmRewards } from '../../api-80d620f3.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import '../../solana/type.js';
|
|
5
5
|
import 'bn.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
import '../../api-
|
|
2
|
+
import '../../api-80d620f3.js';
|
|
3
3
|
import '../../common/txTool/txType.js';
|
|
4
|
-
export { F as default } from '../../raydium-
|
|
4
|
+
export { F as default } from '../../raydium-3ed04285.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
7
7
|
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-
|
|
25
|
+
import '../../type-3885792c.js';
|
|
26
26
|
import '../cpmm/type.js';
|
|
27
27
|
import '../cpmm/curve/calculator.js';
|
|
28
28
|
import '../cpmm/layout.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bj as APIRewardInfo, bp as CreateFarm, bq as CreateFarmExtInfo, bw as FARM_LOCK_MINT, bx as FARM_LOCK_VAULT, bD as FARM_PROGRAM_TO_VERSION, bz as FARM_VERSION_TO_LEDGER_LAYOUT, by as FARM_VERSION_TO_STATE_LAYOUT, bt as FarmDWParam, bb as FarmLedger, b5 as FarmLedgerLayout, b0 as FarmLedgerLayoutV3_1, b1 as FarmLedgerLayoutV3_2, b2 as FarmLedgerLayoutV5_1, b3 as FarmLedgerLayoutV5_2, b4 as FarmLedgerLayoutV6_1, b6 as FarmLedgerV3_1, b7 as FarmLedgerV3_2, b8 as FarmLedgerV5_1, b9 as FarmLedgerV5_2, ba as FarmLedgerV6_1, bo as FarmPoolInfoV6, bu as FarmPoolKeys, bl as FarmRewardInfo, bm as FarmRewardInfoConfig, aV as FarmState, aW as FarmStateLayout, aP as FarmStateLayoutV3, aQ as FarmStateLayoutV5, aR as FarmStateLayoutV6, aS as FarmStateV3, aT as FarmStateV5, aU as FarmStateV6, bv as FarmVersion, bn as RewardInfoKey, bk as RewardInfoWithKey, bi as RewardType, br as UpdateFarmReward, bs as UpdateFarmRewards, bh as Voter, bg as VoterDepositEntry, bf as VoterLockup, be as VoterRegistrar, bd as VoterVotingMintConfig, aD as associatedLedgerAccountLayout, bc as dwLayout, aO as farmAddRewardLayout, aX as farmLedgerLayoutV3_1, aY as farmLedgerLayoutV3_2, aZ as farmLedgerLayoutV5_1, a_ as farmLedgerLayoutV5_2, a$ as farmLedgerLayoutV6_1, aM as farmRewardLayout, aN as farmRewardRestartLayout, aL as farmRewardTimeInfoLayout, aI as farmStateV3Layout, aJ as farmStateV5Layout, aK as farmStateV6Layout, bA as isValidFarmVersion, bC as poolTypeV6, aF as realFarmStateV3Layout, aG as realFarmStateV5Layout, aH as realFarmV6Layout, bB as validateFarmRewards, aE as withdrawRewardLayout } from '../../api-
|
|
1
|
+
export { bj as APIRewardInfo, bp as CreateFarm, bq as CreateFarmExtInfo, bw as FARM_LOCK_MINT, bx as FARM_LOCK_VAULT, bD as FARM_PROGRAM_TO_VERSION, bz as FARM_VERSION_TO_LEDGER_LAYOUT, by as FARM_VERSION_TO_STATE_LAYOUT, bt as FarmDWParam, bb as FarmLedger, b5 as FarmLedgerLayout, b0 as FarmLedgerLayoutV3_1, b1 as FarmLedgerLayoutV3_2, b2 as FarmLedgerLayoutV5_1, b3 as FarmLedgerLayoutV5_2, b4 as FarmLedgerLayoutV6_1, b6 as FarmLedgerV3_1, b7 as FarmLedgerV3_2, b8 as FarmLedgerV5_1, b9 as FarmLedgerV5_2, ba as FarmLedgerV6_1, bo as FarmPoolInfoV6, bu as FarmPoolKeys, bl as FarmRewardInfo, bm as FarmRewardInfoConfig, aV as FarmState, aW as FarmStateLayout, aP as FarmStateLayoutV3, aQ as FarmStateLayoutV5, aR as FarmStateLayoutV6, aS as FarmStateV3, aT as FarmStateV5, aU as FarmStateV6, bv as FarmVersion, bn as RewardInfoKey, bk as RewardInfoWithKey, bi as RewardType, br as UpdateFarmReward, bs as UpdateFarmRewards, bh as Voter, bg as VoterDepositEntry, bf as VoterLockup, be as VoterRegistrar, bd as VoterVotingMintConfig, aD as associatedLedgerAccountLayout, bc as dwLayout, aO as farmAddRewardLayout, aX as farmLedgerLayoutV3_1, aY as farmLedgerLayoutV3_2, aZ as farmLedgerLayoutV5_1, a_ as farmLedgerLayoutV5_2, a$ as farmLedgerLayoutV6_1, aM as farmRewardLayout, aN as farmRewardRestartLayout, aL as farmRewardTimeInfoLayout, aI as farmStateV3Layout, aJ as farmStateV5Layout, aK as farmStateV6Layout, bA as isValidFarmVersion, bC as poolTypeV6, aF as realFarmStateV3Layout, aG as realFarmStateV5Layout, aH as realFarmV6Layout, bB as validateFarmRewards, aE as withdrawRewardLayout } from '../../api-80d620f3.js';
|
|
2
2
|
export { FarmFetchMultipleInfoParams, calFarmRewardAmount, farmRewardInfoToConfig, fetchMultipleFarmInfoAndUpdate, getAssociatedAuthority, getAssociatedLedgerAccount, getAssociatedLedgerPoolAccount, getDepositEntryIndex, getFarmLedgerLayout, getFarmStateLayout, judgeFarmType, updateFarmPoolInfo } from './util.js';
|
|
3
3
|
export { createAssociatedLedgerAccountInstruction, governanceCreateTokenOwnerRecord, makeAddNewRewardInstruction, makeCreateFarmInstruction, makeCreatorWithdrawFarmRewardInstruction, makeDepositInstructionV3, makeDepositInstructionV5, makeDepositInstructionV6, makeDepositTokenInstruction, makeDepositWithdrawInstruction, makeRestartRewardInstruction, makeWithdrawInstructionV3, makeWithdrawInstructionV4, makeWithdrawInstructionV5, makeWithdrawInstructionV6, makeWithdrawTokenInstruction, voterStakeRegistryCreateDepositEntry, voterStakeRegistryCreateVoter, voterStakeRegistryDeposit, voterStakeRegistryUpdateVoterWeightRecord, voterStakeRegistryWithdraw } from './instruction.js';
|
|
4
4
|
export { getRegistrarAddress, getTokenOwnerRecordAddress, getVoterAddress, getVoterWeightRecordAddress, getVotingMintAuthority, getVotingTokenMint } from './pda.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey, TransactionInstruction, Connection } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
|
-
import { bN as InstructionReturn, bi as RewardType, Q as FormatFarmKeyOut, bn as RewardInfoKey, bm as FarmRewardInfoConfig } from '../../api-
|
|
3
|
+
import { bN as InstructionReturn, bi as RewardType, Q as FormatFarmKeyOut, bn as RewardInfoKey, bm as FarmRewardInfoConfig } from '../../api-80d620f3.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../solana/type.js';
|
|
6
6
|
import '@solana/spl-token';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../marshmallow/index.js';
|
|
2
2
|
import '@solana/web3.js';
|
|
3
3
|
import 'bn.js';
|
|
4
|
-
export { bb as FarmLedger, b5 as FarmLedgerLayout, b0 as FarmLedgerLayoutV3_1, b1 as FarmLedgerLayoutV3_2, b2 as FarmLedgerLayoutV5_1, b3 as FarmLedgerLayoutV5_2, b4 as FarmLedgerLayoutV6_1, b6 as FarmLedgerV3_1, b7 as FarmLedgerV3_2, b8 as FarmLedgerV5_1, b9 as FarmLedgerV5_2, ba as FarmLedgerV6_1, aV as FarmState, aW as FarmStateLayout, aP as FarmStateLayoutV3, aQ as FarmStateLayoutV5, aR as FarmStateLayoutV6, aS as FarmStateV3, aT as FarmStateV5, aU as FarmStateV6, bh as Voter, bg as VoterDepositEntry, bf as VoterLockup, be as VoterRegistrar, bd as VoterVotingMintConfig, aD as associatedLedgerAccountLayout, bc as dwLayout, aO as farmAddRewardLayout, aX as farmLedgerLayoutV3_1, aY as farmLedgerLayoutV3_2, aZ as farmLedgerLayoutV5_1, a_ as farmLedgerLayoutV5_2, a$ as farmLedgerLayoutV6_1, aM as farmRewardLayout, aN as farmRewardRestartLayout, aL as farmRewardTimeInfoLayout, aI as farmStateV3Layout, aJ as farmStateV5Layout, aK as farmStateV6Layout, aF as realFarmStateV3Layout, aG as realFarmStateV5Layout, aH as realFarmV6Layout, aE as withdrawRewardLayout } from '../../api-
|
|
4
|
+
export { bb as FarmLedger, b5 as FarmLedgerLayout, b0 as FarmLedgerLayoutV3_1, b1 as FarmLedgerLayoutV3_2, b2 as FarmLedgerLayoutV5_1, b3 as FarmLedgerLayoutV5_2, b4 as FarmLedgerLayoutV6_1, b6 as FarmLedgerV3_1, b7 as FarmLedgerV3_2, b8 as FarmLedgerV5_1, b9 as FarmLedgerV5_2, ba as FarmLedgerV6_1, aV as FarmState, aW as FarmStateLayout, aP as FarmStateLayoutV3, aQ as FarmStateLayoutV5, aR as FarmStateLayoutV6, aS as FarmStateV3, aT as FarmStateV5, aU as FarmStateV6, bh as Voter, bg as VoterDepositEntry, bf as VoterLockup, be as VoterRegistrar, bd as VoterVotingMintConfig, aD as associatedLedgerAccountLayout, bc as dwLayout, aO as farmAddRewardLayout, aX as farmLedgerLayoutV3_1, aY as farmLedgerLayoutV3_2, aZ as farmLedgerLayoutV5_1, a_ as farmLedgerLayoutV5_2, a$ as farmLedgerLayoutV6_1, aM as farmRewardLayout, aN as farmRewardRestartLayout, aL as farmRewardTimeInfoLayout, aI as farmStateV3Layout, aJ as farmStateV5Layout, aK as farmStateV6Layout, aF as realFarmStateV3Layout, aG as realFarmStateV5Layout, aH as realFarmV6Layout, aE as withdrawRewardLayout } from '../../api-80d620f3.js';
|
|
5
5
|
import '../../marshmallow/buffer-layout.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '../../solana/type.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import 'bn.js';
|
|
3
|
-
export { bj as APIRewardInfo, bp as CreateFarm, bq as CreateFarmExtInfo, bt as FarmDWParam, bo as FarmPoolInfoV6, bu as FarmPoolKeys, bl as FarmRewardInfo, bm as FarmRewardInfoConfig, bn as RewardInfoKey, bk as RewardInfoWithKey, bi as RewardType, br as UpdateFarmReward, bs as UpdateFarmRewards } from '../../api-
|
|
3
|
+
export { bj as APIRewardInfo, bp as CreateFarm, bq as CreateFarmExtInfo, bt as FarmDWParam, bo as FarmPoolInfoV6, bu as FarmPoolKeys, bl as FarmRewardInfo, bm as FarmRewardInfoConfig, bn as RewardInfoKey, bk as RewardInfoWithKey, bi as RewardType, br as UpdateFarmReward, bs as UpdateFarmRewards } from '../../api-80d620f3.js';
|
|
4
4
|
import '../../common/txTool/txType.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey, Connection } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
|
-
import { bl as FarmRewardInfo, bm as FarmRewardInfoConfig, U as RewardInfoV6, b5 as FarmLedgerLayout, aW as FarmStateLayout, aV as FarmState, bb as FarmLedger } from '../../api-
|
|
3
|
+
import { bl as FarmRewardInfo, bm as FarmRewardInfoConfig, U as RewardInfoV6, b5 as FarmLedgerLayout, aW as FarmStateLayout, aV as FarmState, bb as FarmLedger } from '../../api-80d620f3.js';
|
|
4
4
|
import { GetMultipleAccountsInfoConfig } from '../../common/accountInfo.js';
|
|
5
5
|
import { DateParam } from '../../common/date.js';
|
|
6
6
|
import { ProgramAddress } from '../../common/txTool/txUtils.js';
|
package/lib/raydium/ido/ido.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
import '../../api-
|
|
2
|
+
import '../../api-80d620f3.js';
|
|
3
3
|
import '../../common/txTool/txType.js';
|
|
4
|
-
export { e as default } from '../../raydium-
|
|
4
|
+
export { e as default } from '../../raydium-3ed04285.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
7
7
|
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-
|
|
25
|
+
import '../../type-3885792c.js';
|
|
26
26
|
import '../cpmm/type.js';
|
|
27
27
|
import '../cpmm/curve/calculator.js';
|
|
28
28
|
import '../cpmm/layout.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { e as default } from '../../raydium-
|
|
1
|
+
export { e as default } from '../../raydium-3ed04285.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';
|
|
5
5
|
import '@solana/web3.js';
|
|
6
|
-
import '../../api-
|
|
6
|
+
import '../../api-80d620f3.js';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import '../../solana/type.js';
|
|
9
9
|
import 'bn.js';
|
|
@@ -25,7 +25,7 @@ import '../liquidity/stable.js';
|
|
|
25
25
|
import '../liquidity/type.js';
|
|
26
26
|
import '../liquidity/layout.js';
|
|
27
27
|
import '../clmm/layout.js';
|
|
28
|
-
import '../../type-
|
|
28
|
+
import '../../type-3885792c.js';
|
|
29
29
|
import '../cpmm/type.js';
|
|
30
30
|
import '../cpmm/curve/calculator.js';
|
|
31
31
|
import '../cpmm/layout.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
2
2
|
import { PurchaseInstructionKeys, ClaimInstructionKeysV3, ClaimInstructionKeys, IdoClaimInstructionParams } from './type.js';
|
|
3
|
-
import '../../api-
|
|
3
|
+
import '../../api-80d620f3.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../solana/type.js';
|
|
6
6
|
import 'bn.js';
|
package/lib/raydium/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { C as Clmm, M as MarketExtInfo, 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, M as MarketExtInfo, c as Raydium, a as RaydiumApiBatchRequestParams, b as RaydiumConstructorParams, R as RaydiumLoadParams, S as SHOW_INFO, d as canClaimErrorType } from '../raydium-3ed04285.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';
|
|
5
5
|
export { closeAccountInstruction, createWSolAccountInstructions, initTokenAccountInstruction, makeTransferInstruction } from './account/instruction.js';
|
|
6
|
-
export { bj as APIRewardInfo, d as ApiClmmConfigInfo, bZ as ArrayItem, bO as ComputeBudgetConfig, c4 as Cover, bp as CreateFarm, bq as CreateFarmExtInfo, b_ as ExactPartial, b$ as ExactRequired, bw as FARM_LOCK_MINT, bx as FARM_LOCK_VAULT, bD as FARM_PROGRAM_TO_VERSION, bz as FARM_VERSION_TO_LEDGER_LAYOUT, by as FARM_VERSION_TO_STATE_LAYOUT, c3 as Fallback, bt as FarmDWParam, bb as FarmLedger, b5 as FarmLedgerLayout, b0 as FarmLedgerLayoutV3_1, b1 as FarmLedgerLayoutV3_2, b2 as FarmLedgerLayoutV5_1, b3 as FarmLedgerLayoutV5_2, b4 as FarmLedgerLayoutV6_1, b6 as FarmLedgerV3_1, b7 as FarmLedgerV3_2, b8 as FarmLedgerV5_1, b9 as FarmLedgerV5_2, ba as FarmLedgerV6_1, bo as FarmPoolInfoV6, bu as FarmPoolKeys, bl as FarmRewardInfo, bm as FarmRewardInfoConfig, aV as FarmState, aW as FarmStateLayout, aP as FarmStateLayoutV3, aQ as FarmStateLayoutV5, aR as FarmStateLayoutV6, aS as FarmStateV3, aT as FarmStateV5, aU as FarmStateV6, bv as FarmVersion, bS as GetTransferAmountFee, c1 as GetValue, bN as InstructionReturn, bQ as LoadParams, bH as LpToken, bM as MakeMultiTransaction, bK as MakeTransaction, bL as MakeV0Transaction, bW as MayArray, bX as MayDeepArray, bY as MayFunction, bV as ReplaceType, bT as ReturnTypeFetchMultipleMintInfo, bU as ReturnTypeFetchMultipleMintInfos, bI as ReturnTypeMakeInstructions, bn as RewardInfoKey, bk as RewardInfoWithKey, bi as RewardType, c0 as SKeyof, c2 as SOR, bJ as SignAllTransactions, bG as SplToken, bE as TokenInfo, bF as TokenJson, bR as TransferAmountFee, bP as TxTipConfig, c5 as UnionCover, br as UpdateFarmReward, bs as UpdateFarmRewards, bh as Voter, bg as VoterDepositEntry, bf as VoterLockup, be as VoterRegistrar, bd as VoterVotingMintConfig, aD as associatedLedgerAccountLayout, bc as dwLayout, aO as farmAddRewardLayout, aX as farmLedgerLayoutV3_1, aY as farmLedgerLayoutV3_2, aZ as farmLedgerLayoutV5_1, a_ as farmLedgerLayoutV5_2, a$ as farmLedgerLayoutV6_1, aM as farmRewardLayout, aN as farmRewardRestartLayout, aL as farmRewardTimeInfoLayout, aI as farmStateV3Layout, aJ as farmStateV5Layout, aK as farmStateV6Layout, bA as isValidFarmVersion, bC as poolTypeV6, aF as realFarmStateV3Layout, aG as realFarmStateV5Layout, aH as realFarmV6Layout, c6 as unionArr, bB as validateFarmRewards, aE as withdrawRewardLayout } from '../api-
|
|
6
|
+
export { bj as APIRewardInfo, d as ApiClmmConfigInfo, bZ as ArrayItem, bO as ComputeBudgetConfig, c4 as Cover, bp as CreateFarm, bq as CreateFarmExtInfo, b_ as ExactPartial, b$ as ExactRequired, bw as FARM_LOCK_MINT, bx as FARM_LOCK_VAULT, bD as FARM_PROGRAM_TO_VERSION, bz as FARM_VERSION_TO_LEDGER_LAYOUT, by as FARM_VERSION_TO_STATE_LAYOUT, c3 as Fallback, bt as FarmDWParam, bb as FarmLedger, b5 as FarmLedgerLayout, b0 as FarmLedgerLayoutV3_1, b1 as FarmLedgerLayoutV3_2, b2 as FarmLedgerLayoutV5_1, b3 as FarmLedgerLayoutV5_2, b4 as FarmLedgerLayoutV6_1, b6 as FarmLedgerV3_1, b7 as FarmLedgerV3_2, b8 as FarmLedgerV5_1, b9 as FarmLedgerV5_2, ba as FarmLedgerV6_1, bo as FarmPoolInfoV6, bu as FarmPoolKeys, bl as FarmRewardInfo, bm as FarmRewardInfoConfig, aV as FarmState, aW as FarmStateLayout, aP as FarmStateLayoutV3, aQ as FarmStateLayoutV5, aR as FarmStateLayoutV6, aS as FarmStateV3, aT as FarmStateV5, aU as FarmStateV6, bv as FarmVersion, bS as GetTransferAmountFee, c1 as GetValue, bN as InstructionReturn, bQ as LoadParams, bH as LpToken, bM as MakeMultiTransaction, bK as MakeTransaction, bL as MakeV0Transaction, bW as MayArray, bX as MayDeepArray, bY as MayFunction, bV as ReplaceType, bT as ReturnTypeFetchMultipleMintInfo, bU as ReturnTypeFetchMultipleMintInfos, bI as ReturnTypeMakeInstructions, bn as RewardInfoKey, bk as RewardInfoWithKey, bi as RewardType, c0 as SKeyof, c2 as SOR, bJ as SignAllTransactions, bG as SplToken, bE as TokenInfo, bF as TokenJson, bR as TransferAmountFee, bP as TxTipConfig, c5 as UnionCover, br as UpdateFarmReward, bs as UpdateFarmRewards, bh as Voter, bg as VoterDepositEntry, bf as VoterLockup, be as VoterRegistrar, bd as VoterVotingMintConfig, aD as associatedLedgerAccountLayout, bc as dwLayout, aO as farmAddRewardLayout, aX as farmLedgerLayoutV3_1, aY as farmLedgerLayoutV3_2, aZ as farmLedgerLayoutV5_1, a_ as farmLedgerLayoutV5_2, a$ as farmLedgerLayoutV6_1, aM as farmRewardLayout, aN as farmRewardRestartLayout, aL as farmRewardTimeInfoLayout, aI as farmStateV3Layout, aJ as farmStateV5Layout, aK as farmStateV6Layout, bA as isValidFarmVersion, bC as poolTypeV6, aF as realFarmStateV3Layout, aG as realFarmStateV5Layout, aH as realFarmV6Layout, c6 as unionArr, bB as validateFarmRewards, aE as withdrawRewardLayout } from '../api-80d620f3.js';
|
|
7
7
|
export { FarmFetchMultipleInfoParams, calFarmRewardAmount, farmRewardInfoToConfig, fetchMultipleFarmInfoAndUpdate, getAssociatedAuthority, getAssociatedLedgerAccount, getAssociatedLedgerPoolAccount, getDepositEntryIndex, getFarmLedgerLayout, getFarmStateLayout, judgeFarmType, updateFarmPoolInfo } from './farm/util.js';
|
|
8
8
|
export { createAssociatedLedgerAccountInstruction, governanceCreateTokenOwnerRecord, makeAddNewRewardInstruction, makeCreateFarmInstruction, makeCreatorWithdrawFarmRewardInstruction, makeDepositInstructionV3, makeDepositInstructionV5, makeDepositInstructionV6, makeDepositTokenInstruction, makeDepositWithdrawInstruction, makeRestartRewardInstruction, makeWithdrawInstructionV3, makeWithdrawInstructionV4, makeWithdrawInstructionV5, makeWithdrawInstructionV6, makeWithdrawTokenInstruction, voterStakeRegistryCreateDepositEntry, voterStakeRegistryCreateVoter, voterStakeRegistryDeposit, voterStakeRegistryUpdateVoterWeightRecord, voterStakeRegistryWithdraw } from './farm/instruction.js';
|
|
9
9
|
export { getRegistrarAddress, getTokenOwnerRecordAddress, getVoterAddress, getVoterWeightRecordAddress, getVotingMintAuthority, getVotingTokenMint } from './farm/pda.js';
|
|
10
10
|
export { SOL_INFO, TOKEN_WSOL } from './token/constant.js';
|
|
11
11
|
export { SPL_MINT_LAYOUT, SplMintLayout } from './token/layout.js';
|
|
12
12
|
export { parseTokenInfo, solToWSolToken, toApiV3Token, toFeeConfig, toToken, toTokenAmount, toTokenInfo, wSolToSolToken } from './token/utils.js';
|
|
13
|
-
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-
|
|
13
|
+
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-3885792c.js';
|
|
14
14
|
export { ClmmConfigLayout, ClmmPositionLayout, LockClPositionLayoutV2, LockPositionLayout, ObservationInfoLayout, ObservationLayout, OperationLayout, PoolInfoLayout, PositionInfoLayout, PositionRewardInfoLayout, ProtocolPositionLayout, RewardInfo, TickArrayBitmapExtensionLayout, TickArrayLayout, TickLayout } from './clmm/layout.js';
|
|
15
15
|
export { ClmmInstrument } from './clmm/instrument.js';
|
|
16
16
|
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 './clmm/utils/constants.js';
|