@raydium-io/raydium-sdk-v2 0.1.133-alpha → 0.1.134-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/index.d.ts +1 -1
- package/lib/api/type.d.ts +1 -1
- 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 +1 -1
- 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/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/layout.d.ts +1 -1
- package/lib/raydium/cpmm/type.d.ts +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/launchpad/curve/constantProductCurve.d.ts +1 -1
- package/lib/raydium/launchpad/curve/curve.d.ts +1 -1
- package/lib/raydium/launchpad/curve/curveBase.d.ts +1 -1
- package/lib/raydium/launchpad/curve/fixedPriceCurve.d.ts +1 -1
- package/lib/raydium/launchpad/curve/linearPriceCurve.d.ts +1 -1
- package/lib/raydium/launchpad/index.d.ts +3 -3
- package/lib/raydium/launchpad/index.js.map +1 -1
- package/lib/raydium/launchpad/index.mjs.map +1 -1
- package/lib/raydium/launchpad/launchpad.d.ts +3 -3
- package/lib/raydium/launchpad/launchpad.js +1 -1
- package/lib/raydium/launchpad/launchpad.js.map +1 -1
- package/lib/raydium/launchpad/launchpad.mjs +1 -1
- package/lib/raydium/launchpad/launchpad.mjs.map +1 -1
- package/lib/raydium/launchpad/layout.d.ts +1 -1
- package/lib/raydium/launchpad/pda.d.ts +1 -1
- package/lib/raydium/launchpad/type.d.ts +1 -1
- package/lib/raydium/liquidity/index.d.ts +1 -1
- package/lib/raydium/liquidity/instruction.d.ts +1 -1
- package/lib/raydium/liquidity/layout.d.ts +6 -6
- 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/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/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-37f7d3b6.d.ts → raydium-445995ec.d.ts} +3 -3
- package/lib/{type-79324455.d.ts → type-2a071cbf.d.ts} +1 -1
- package/package.json +1 -1
- package/src/raydium/clmmSol/.DS_Store +0 -0
- package/src/raydium/launchpad/launchpad.ts +11 -17
- package/lib/{api-82cf7801.d.ts → api-7a8cb334.d.ts} +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SOL_INFO, TOKEN_WSOL } from './constant.js';
|
|
2
2
|
export { SPL_MINT_LAYOUT, SplMintLayout } from './layout.js';
|
|
3
|
-
export { bL as LpToken, bK as SplToken, bI as TokenInfo, bJ as TokenJson } from '../../api-
|
|
3
|
+
export { bL as LpToken, bK as SplToken, bI as TokenInfo, bJ as TokenJson } from '../../api-7a8cb334.js';
|
|
4
4
|
export { parseTokenInfo, solToWSolToken, toApiV3Token, toFeeConfig, toToken, toTokenAmount, toTokenInfo, wSolToSolToken } from './utils.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
import '../../api-
|
|
3
|
-
export { m as default } from '../../raydium-
|
|
2
|
+
import '../../api-7a8cb334.js';
|
|
3
|
+
export { m as default } from '../../raydium-445995ec.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-
|
|
25
|
+
import '../../type-2a071cbf.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 { bL as LpToken, bK as SplToken, bI as TokenInfo, bJ as TokenJson } from '../../api-
|
|
1
|
+
export { bL as LpToken, bK as SplToken, bI as TokenInfo, bJ as TokenJson } from '../../api-7a8cb334.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, TransferFeeConfigLayout } from '@solana/spl-token';
|
|
3
|
-
import { bI as TokenInfo, af as BigNumberish, cc as TokenAmount, i as ApiV3Token } from '../../api-
|
|
3
|
+
import { bI as TokenInfo, af as BigNumberish, cc as TokenAmount, i as ApiV3Token } from '../../api-7a8cb334.js';
|
|
4
4
|
import { Token } from '../../module/token.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
@@ -2,7 +2,7 @@ export { ApiSwapV1Out, makeSwapInstruction, route1Instruction, route2Instruction
|
|
|
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-
|
|
5
|
+
import '../../api-7a8cb334.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '../../solana/type.js';
|
|
8
8
|
import '@solana/spl-token';
|
|
@@ -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-
|
|
20
|
+
import '../../type-2a071cbf.js';
|
|
21
21
|
import '../clmm/layout.js';
|
|
22
22
|
import '../liquidity/type.js';
|
|
23
23
|
import '../liquidity/layout.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
|
-
import { s as ApiV3PoolInfoItem, G as PoolKeys } from '../../api-
|
|
3
|
+
import { s as ApiV3PoolInfoItem, G as PoolKeys } from '../../api-7a8cb334.js';
|
|
4
4
|
import { ComputePoolType, MakeSwapInstructionParam, ReturnTypeMakeSwapInstruction } from './type.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.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-
|
|
19
|
+
import '../../type-2a071cbf.js';
|
|
20
20
|
import '../clmm/layout.js';
|
|
21
21
|
import '../liquidity/type.js';
|
|
22
22
|
import '../liquidity/layout.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import 'bn.js';
|
|
3
|
-
import '../../api-
|
|
3
|
+
import '../../api-7a8cb334.js';
|
|
4
4
|
import '../../common/txTool/txType.js';
|
|
5
|
-
export { k as default } from '../../raydium-
|
|
6
|
-
import '../../type-
|
|
5
|
+
export { k as default } from '../../raydium-445995ec.js';
|
|
6
|
+
import '../../type-2a071cbf.js';
|
|
7
7
|
import '../liquidity/type.js';
|
|
8
8
|
import '../cpmm/type.js';
|
|
9
9
|
import './type.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PublicKey, Keypair, Signer, TransactionInstruction, Transaction } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
3
|
import Decimal from 'decimal.js';
|
|
4
|
-
import { bV as TransferAmountFee, cc as TokenAmount, G as PoolKeys, s as ApiV3PoolInfoItem } from '../../api-
|
|
4
|
+
import { bV as TransferAmountFee, cc as TokenAmount, G as PoolKeys, s as ApiV3PoolInfoItem } from '../../api-7a8cb334.js';
|
|
5
5
|
import { Token } from '../../module/token.js';
|
|
6
|
-
import { d as ComputeClmmPoolInfo } from '../../type-
|
|
6
|
+
import { d as ComputeClmmPoolInfo } from '../../type-2a071cbf.js';
|
|
7
7
|
import { ComputeAmountOutParam } from '../liquidity/type.js';
|
|
8
8
|
import { CpmmComputeData } from '../cpmm/type.js';
|
|
9
9
|
import 'axios';
|
package/lib/raydium/type.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import 'bn.js';
|
|
3
3
|
import '@solana/spl-token';
|
|
4
|
-
export { c1 as ArrayItem, bS as ComputeBudgetConfig, c8 as Cover, c2 as ExactPartial, c3 as ExactRequired, c7 as Fallback, bW as GetTransferAmountFee, c5 as GetValue, bR as InstructionReturn, bU as LoadParams, bQ as MakeMultiTransaction, bO as MakeTransaction, bP as MakeV0Transaction, b_ as MayArray, b$ as MayDeepArray, c0 as MayFunction, bZ as ReplaceType, bX as ReturnTypeFetchMultipleMintInfo, bY as ReturnTypeFetchMultipleMintInfos, bM as ReturnTypeMakeInstructions, c4 as SKeyof, c6 as SOR, bN as SignAllTransactions, bV as TransferAmountFee, bT as TxTipConfig, c9 as UnionCover, ca as unionArr } from '../api-
|
|
4
|
+
export { c1 as ArrayItem, bS as ComputeBudgetConfig, c8 as Cover, c2 as ExactPartial, c3 as ExactRequired, c7 as Fallback, bW as GetTransferAmountFee, c5 as GetValue, bR as InstructionReturn, bU as LoadParams, bQ as MakeMultiTransaction, bO as MakeTransaction, bP as MakeV0Transaction, b_ as MayArray, b$ as MayDeepArray, c0 as MayFunction, bZ as ReplaceType, bX as ReturnTypeFetchMultipleMintInfo, bY as ReturnTypeFetchMultipleMintInfos, bM as ReturnTypeMakeInstructions, c4 as SKeyof, c6 as SOR, bN as SignAllTransactions, bV as TransferAmountFee, bT as TxTipConfig, c9 as UnionCover, ca as unionArr } from '../api-7a8cb334.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../solana/type.js';
|
|
7
7
|
import '../api/url.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-
|
|
1
|
+
export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-445995ec.js';
|
|
2
2
|
import '@solana/web3.js';
|
|
3
|
-
import '../../api-
|
|
3
|
+
import '../../api-7a8cb334.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-
|
|
25
|
+
import '../../type-2a071cbf.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
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-
|
|
4
|
+
export { S as SHOW_INFO, d as canClaimErrorType, U as default } from '../../raydium-445995ec.js';
|
|
5
5
|
import '../../marshmallow/buffer-layout.js';
|
|
6
|
-
import '../../api-
|
|
6
|
+
import '../../api-7a8cb334.js';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import '../../solana/type.js';
|
|
9
9
|
import '@solana/spl-token';
|
|
@@ -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-2a071cbf.js';
|
|
26
26
|
import '../cpmm/type.js';
|
|
27
27
|
import '../cpmm/curve/calculator.js';
|
|
28
28
|
import '../cpmm/layout.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicKey, Commitment, EpochInfo, Connection, Transaction, Signer, TransactionInstruction, Keypair } from '@solana/web3.js';
|
|
2
|
-
import { aG as TxBuilder, ay as AddInstructionParam, af as BigNumberish, bt as CreateFarm, aF as MakeTxData, bu as CreateFarmExtInfo, bv as UpdateFarmReward, bw as UpdateFarmRewards, bx as FarmDWParam, $ as FormatFarmInfoOut, bS as ComputeBudgetConfig, bT as TxTipConfig, aE as MakeMultiTxData, q as ApiV3PoolInfoStandardItem, cg as Percent, cc as TokenAmount, x as AmmV4Keys, y as AmmV5Keys, p as ApiV3PoolInfoConcentratedItem, _ as FormatFarmInfoOutV6, D as ClmmKeys, bO as MakeTransaction, bY as ReturnTypeFetchMultipleMintInfos, z as CpmmKeys, r as ApiV3PoolInfoStandardItemCpmm, bW as GetTransferAmountFee, G as PoolKeys, i as ApiV3Token, a2 as OwnerIdoInfo, a3 as IdoKeysData, bU as LoadParams, J as JupTokenType, bI as TokenInfo, bN as SignAllTransactions, a as Api, a0 as AvailabilityCheckAPI3, k as ApiV3TokenRes } from './api-
|
|
2
|
+
import { aG as TxBuilder, ay as AddInstructionParam, af as BigNumberish, bt as CreateFarm, aF as MakeTxData, bu as CreateFarmExtInfo, bv as UpdateFarmReward, bw as UpdateFarmRewards, bx as FarmDWParam, $ as FormatFarmInfoOut, bS as ComputeBudgetConfig, bT as TxTipConfig, aE as MakeMultiTxData, q as ApiV3PoolInfoStandardItem, cg as Percent, cc as TokenAmount, x as AmmV4Keys, y as AmmV5Keys, p as ApiV3PoolInfoConcentratedItem, _ as FormatFarmInfoOutV6, D as ClmmKeys, bO as MakeTransaction, bY as ReturnTypeFetchMultipleMintInfos, z as CpmmKeys, r as ApiV3PoolInfoStandardItemCpmm, bW as GetTransferAmountFee, G as PoolKeys, i as ApiV3Token, a2 as OwnerIdoInfo, a3 as IdoKeysData, bU as LoadParams, J as JupTokenType, bI as TokenInfo, bN as SignAllTransactions, a as Api, a0 as AvailabilityCheckAPI3, k as ApiV3TokenRes } from './api-7a8cb334.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';
|
|
@@ -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, PoolInfoLayout } from './raydium/clmm/layout.js';
|
|
14
|
-
import { m as CreateConcentratedPool, O as OpenPositionFromBase, p as OpenPositionFromBaseExtInfo, q as OpenPositionFromLiquidity, r as OpenPositionFromLiquidityExtInfo, I as IncreasePositionFromLiquidity, M as ManipulateLiquidityExtInfo, n as IncreasePositionFromBase, D as DecreaseLiquidity, B as ClosePositionExtInfo, L as LockPosition, J as ClmmLockAddress, H as HarvestLockPosition, s as InitRewardParams, E as InitRewardExtInfo, t as InitRewardsParams, u as SetRewardParams, v as SetRewardsParams, w as CollectRewardParams, x as CollectRewardsParams, y as HarvestAllRewardsParams, F as ClmmRpcData, d as ComputeClmmPoolInfo, l as ReturnTypeFetchMultiplePoolTickArrays } from './type-
|
|
14
|
+
import { m as CreateConcentratedPool, O as OpenPositionFromBase, p as OpenPositionFromBaseExtInfo, q as OpenPositionFromLiquidity, r as OpenPositionFromLiquidityExtInfo, I as IncreasePositionFromLiquidity, M as ManipulateLiquidityExtInfo, n as IncreasePositionFromBase, D as DecreaseLiquidity, B as ClosePositionExtInfo, L as LockPosition, J as ClmmLockAddress, H as HarvestLockPosition, s as InitRewardParams, E as InitRewardExtInfo, t as InitRewardsParams, u as SetRewardParams, v as SetRewardsParams, w as CollectRewardParams, x as CollectRewardsParams, y as HarvestAllRewardsParams, F as ClmmRpcData, d as ComputeClmmPoolInfo, l as ReturnTypeFetchMultiplePoolTickArrays } from './type-2a071cbf.js';
|
|
15
15
|
import { CpmmRpcData, CpmmComputeData, CreateCpmmPoolParam, CreateCpmmPoolAddress, AddCpmmLiquidityParams, WithdrawCpmmLiquidityParams, CpmmSwapParams, LockCpmmLpParams, CpmmLockExtInfo, HarvestLockCpmmLpParams, 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';
|
|
@@ -518,11 +518,11 @@ declare class Utils1216 extends ModuleBase {
|
|
|
518
518
|
perLpLoss: BN__default;
|
|
519
519
|
totalClaimedAmount: BN__default;
|
|
520
520
|
}[], "", {
|
|
521
|
+
status: number;
|
|
521
522
|
padding: BN__default[];
|
|
522
523
|
bump: number;
|
|
523
524
|
endTime: BN__default;
|
|
524
525
|
openTime: BN__default;
|
|
525
|
-
status: number;
|
|
526
526
|
ammId: PublicKey;
|
|
527
527
|
tokenInfo: {
|
|
528
528
|
mintDecimals: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PublicKey, Transaction, Signer, Keypair, EpochInfo } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
3
|
import Decimal from 'decimal.js';
|
|
4
|
-
import { p as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bW as GetTransferAmountFee, bV as TransferAmountFee, ch as Price, cg as Percent, cc as TokenAmount, bS as ComputeBudgetConfig, bT as TxTipConfig, ce as Fraction, bI as TokenInfo, D as ClmmKeys } from './api-
|
|
4
|
+
import { p as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bW as GetTransferAmountFee, bV as TransferAmountFee, ch as Price, cg as Percent, cc as TokenAmount, bS as ComputeBudgetConfig, bT as TxTipConfig, ce as Fraction, bI as TokenInfo, D as ClmmKeys } from './api-7a8cb334.js';
|
|
5
5
|
import { TxVersion } from './common/txTool/txType.js';
|
|
6
6
|
import { PoolInfoLayout, ClmmPositionLayout, LockClPositionLayoutV2 } from './raydium/clmm/layout.js';
|
|
7
7
|
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -783,23 +783,17 @@ export default class LaunchpadModule extends ModuleBase {
|
|
|
783
783
|
);
|
|
784
784
|
}
|
|
785
785
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
notUseTokenAccount: false,
|
|
798
|
-
associatedOnly,
|
|
799
|
-
checkCreateATAOwner,
|
|
800
|
-
});
|
|
801
|
-
if (_ownerTokenAccountB) userTokenAccountB = _ownerTokenAccountB;
|
|
802
|
-
txBuilder.addInstruction(_tokenAccountAInstruction || {});
|
|
786
|
+
const userTokenAccountB = getATAAddress(this.scope.ownerPubKey, mintB, TOKEN_PROGRAM_ID).publicKey;
|
|
787
|
+
txBuilder.addInstruction({
|
|
788
|
+
instructions: [
|
|
789
|
+
createAssociatedTokenAccountIdempotentInstruction(
|
|
790
|
+
this.scope.ownerPubKey,
|
|
791
|
+
userTokenAccountB,
|
|
792
|
+
this.scope.ownerPubKey,
|
|
793
|
+
mintB,
|
|
794
|
+
),
|
|
795
|
+
],
|
|
796
|
+
});
|
|
803
797
|
|
|
804
798
|
txBuilder.addInstruction({
|
|
805
799
|
instructions: [
|
|
@@ -893,37 +893,37 @@ declare type FarmStateV6 = GetStructureSchema<FarmStateLayoutV6>;
|
|
|
893
893
|
declare type FarmState = FarmStateV3 | FarmStateV5 | FarmStateV6;
|
|
894
894
|
declare type FarmStateLayout = FarmStateLayoutV3 | FarmStateLayoutV5 | FarmStateLayoutV6;
|
|
895
895
|
declare const farmLedgerLayoutV3_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
896
|
-
state: BN__default;
|
|
897
896
|
id: PublicKey;
|
|
897
|
+
state: BN__default;
|
|
898
898
|
owner: PublicKey;
|
|
899
899
|
deposited: BN__default;
|
|
900
900
|
rewardDebts: BN__default[];
|
|
901
901
|
}>;
|
|
902
902
|
declare const farmLedgerLayoutV3_2: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
903
|
-
state: BN__default;
|
|
904
903
|
id: PublicKey;
|
|
904
|
+
state: BN__default;
|
|
905
905
|
owner: PublicKey;
|
|
906
906
|
deposited: BN__default;
|
|
907
907
|
rewardDebts: BN__default[];
|
|
908
908
|
voteLockedBalance: BN__default;
|
|
909
909
|
}>;
|
|
910
910
|
declare const farmLedgerLayoutV5_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
911
|
-
state: BN__default;
|
|
912
911
|
id: PublicKey;
|
|
912
|
+
state: BN__default;
|
|
913
913
|
owner: PublicKey;
|
|
914
914
|
deposited: BN__default;
|
|
915
915
|
rewardDebts: BN__default[];
|
|
916
916
|
}>;
|
|
917
917
|
declare const farmLedgerLayoutV5_2: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
918
|
-
state: BN__default;
|
|
919
918
|
id: PublicKey;
|
|
919
|
+
state: BN__default;
|
|
920
920
|
owner: PublicKey;
|
|
921
921
|
deposited: BN__default;
|
|
922
922
|
rewardDebts: BN__default[];
|
|
923
923
|
}>;
|
|
924
924
|
declare const farmLedgerLayoutV6_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
925
|
-
state: BN__default;
|
|
926
925
|
id: PublicKey;
|
|
926
|
+
state: BN__default;
|
|
927
927
|
owner: PublicKey;
|
|
928
928
|
deposited: BN__default;
|
|
929
929
|
rewardDebts: BN__default[];
|