@raydium-io/raydium-sdk-v2 0.1.73-alpha → 0.1.74-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/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/createMarket.js +1 -1
- package/lib/raydium/marketV2/createMarket.js.map +1 -1
- package/lib/raydium/marketV2/createMarket.mjs +1 -1
- package/lib/raydium/marketV2/createMarket.mjs.map +1 -1
- package/lib/raydium/marketV2/index.d.ts +3 -3
- package/lib/raydium/marketV2/index.js +1 -1
- package/lib/raydium/marketV2/index.js.map +1 -1
- package/lib/raydium/marketV2/index.mjs +1 -1
- package/lib/raydium/marketV2/index.mjs.map +1 -1
- package/lib/raydium/marketV2/instrument.d.ts +1 -0
- package/lib/raydium/marketV2/instrument.js +1 -1
- package/lib/raydium/marketV2/instrument.js.map +1 -1
- package/lib/raydium/marketV2/instrument.mjs +1 -1
- package/lib/raydium/marketV2/instrument.mjs.map +1 -1
- 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-94d49791.d.ts → raydium-87764c35.d.ts} +5 -4
- package/lib/{type-11af28b1.d.ts → type-91ebce1b.d.ts} +1 -1
- package/package.json +1 -1
- package/src/raydium/marketV2/createMarket.ts +4 -0
- package/src/raydium/marketV2/instrument.ts +14 -4
- package/lib/{api-f6d3edc7.d.ts → api-fd862469.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 { bH as LpToken, bG as SplToken, bE as TokenInfo, bF as TokenJson } from '../../api-
|
|
3
|
+
export { bH as LpToken, bG as SplToken, bE as TokenInfo, bF as TokenJson } from '../../api-fd862469.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 { j as default } from '../../raydium-
|
|
2
|
+
import '../../api-fd862469.js';
|
|
3
|
+
export { j as default } from '../../raydium-87764c35.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-91ebce1b.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 { bH as LpToken, bG as SplToken, bE as TokenInfo, bF as TokenJson } from '../../api-
|
|
1
|
+
export { bH as LpToken, bG as SplToken, bE as TokenInfo, bF as TokenJson } from '../../api-fd862469.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 { bE as TokenInfo, ad as BigNumberish, c7 as TokenAmount, i as ApiV3Token } from '../../api-
|
|
3
|
+
import { bE as TokenInfo, ad as BigNumberish, c7 as TokenAmount, i as ApiV3Token } from '../../api-fd862469.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-
|
|
5
|
+
import '../../api-fd862469.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-91ebce1b.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 { r as ApiV3PoolInfoItem, D as PoolKeys } from '../../api-
|
|
3
|
+
import { r as ApiV3PoolInfoItem, D as PoolKeys } from '../../api-fd862469.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-91ebce1b.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-fd862469.js';
|
|
4
4
|
import '../../common/txTool/txType.js';
|
|
5
|
-
export { i as default } from '../../raydium-
|
|
6
|
-
import '../../type-
|
|
5
|
+
export { i as default } from '../../raydium-87764c35.js';
|
|
6
|
+
import '../../type-91ebce1b.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 { bQ as TransferAmountFee, c7 as TokenAmount, D as PoolKeys, r as ApiV3PoolInfoItem } from '../../api-
|
|
4
|
+
import { bQ as TransferAmountFee, c7 as TokenAmount, D as PoolKeys, r as ApiV3PoolInfoItem } from '../../api-fd862469.js';
|
|
5
5
|
import { Token } from '../../module/token.js';
|
|
6
|
-
import { d as ComputeClmmPoolInfo } from '../../type-
|
|
6
|
+
import { d as ComputeClmmPoolInfo } from '../../type-91ebce1b.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 { bY as ArrayItem, bO as ComputeBudgetConfig, c3 as Cover, bZ as ExactPartial, b_ as ExactRequired, c2 as Fallback, bR as GetTransferAmountFee, c0 as GetValue, bN as InstructionReturn, bP as LoadParams, bM as MakeMultiTransaction, bK as MakeTransaction, bL as MakeV0Transaction, bV as MayArray, bW as MayDeepArray, bX as MayFunction, bU as ReplaceType, bS as ReturnTypeFetchMultipleMintInfo, bT as ReturnTypeFetchMultipleMintInfos, bI as ReturnTypeMakeInstructions, b$ as SKeyof, c1 as SOR, bJ as SignAllTransactions, bQ as TransferAmountFee, c4 as UnionCover, c5 as unionArr } from '../api-
|
|
4
|
+
export { bY as ArrayItem, bO as ComputeBudgetConfig, c3 as Cover, bZ as ExactPartial, b_ as ExactRequired, c2 as Fallback, bR as GetTransferAmountFee, c0 as GetValue, bN as InstructionReturn, bP as LoadParams, bM as MakeMultiTransaction, bK as MakeTransaction, bL as MakeV0Transaction, bV as MayArray, bW as MayDeepArray, bX as MayFunction, bU as ReplaceType, bS as ReturnTypeFetchMultipleMintInfo, bT as ReturnTypeFetchMultipleMintInfos, bI as ReturnTypeMakeInstructions, b$ as SKeyof, c1 as SOR, bJ as SignAllTransactions, bQ as TransferAmountFee, c4 as UnionCover, c5 as unionArr } from '../api-fd862469.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-87764c35.js';
|
|
2
2
|
import '@solana/web3.js';
|
|
3
|
-
import '../../api-
|
|
3
|
+
import '../../api-fd862469.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-91ebce1b.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-87764c35.js';
|
|
5
5
|
import '../../marshmallow/buffer-layout.js';
|
|
6
|
-
import '../../api-
|
|
6
|
+
import '../../api-fd862469.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-91ebce1b.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 { aC as TxBuilder, au as AddInstructionParam, ad as BigNumberish, bp as CreateFarm, aB as MakeTxData, bq as CreateFarmExtInfo, br as UpdateFarmReward, bs as UpdateFarmRewards, bt as FarmDWParam, Z as FormatFarmInfoOut, bO as ComputeBudgetConfig, aA as MakeMultiTxData, p as ApiV3PoolInfoStandardItem, cb as Percent, c7 as TokenAmount, w as AmmV4Keys, x as AmmV5Keys, o as ApiV3PoolInfoConcentratedItem, Y as FormatFarmInfoOutV6, B as ClmmKeys, bK as MakeTransaction, bT as ReturnTypeFetchMultipleMintInfos, y as CpmmKeys, q as ApiV3PoolInfoStandardItemCpmm, bR as GetTransferAmountFee, D as PoolKeys, i as ApiV3Token, a0 as OwnerIdoInfo, a1 as IdoKeysData, bP as LoadParams, J as JupTokenType, bE as TokenInfo, bJ as SignAllTransactions, a as Api, _ as AvailabilityCheckAPI3, j as ApiV3TokenRes } from './api-
|
|
2
|
+
import { aC as TxBuilder, au as AddInstructionParam, ad as BigNumberish, bp as CreateFarm, aB as MakeTxData, bq as CreateFarmExtInfo, br as UpdateFarmReward, bs as UpdateFarmRewards, bt as FarmDWParam, Z as FormatFarmInfoOut, bO as ComputeBudgetConfig, aA as MakeMultiTxData, p as ApiV3PoolInfoStandardItem, cb as Percent, c7 as TokenAmount, w as AmmV4Keys, x as AmmV5Keys, o as ApiV3PoolInfoConcentratedItem, Y as FormatFarmInfoOutV6, B as ClmmKeys, bK as MakeTransaction, bT as ReturnTypeFetchMultipleMintInfos, y as CpmmKeys, q as ApiV3PoolInfoStandardItemCpmm, bR as GetTransferAmountFee, D as PoolKeys, i as ApiV3Token, a0 as OwnerIdoInfo, a1 as IdoKeysData, bP as LoadParams, J as JupTokenType, bE as TokenInfo, bJ as SignAllTransactions, a as Api, _ as AvailabilityCheckAPI3, j as ApiV3TokenRes } from './api-fd862469.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, 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-91ebce1b.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';
|
|
@@ -452,11 +452,11 @@ declare class Utils1216 extends ModuleBase {
|
|
|
452
452
|
perLpLoss: BN__default;
|
|
453
453
|
totalClaimedAmount: BN__default;
|
|
454
454
|
}[], "", {
|
|
455
|
+
status: number;
|
|
455
456
|
padding: BN__default[];
|
|
456
457
|
bump: number;
|
|
457
458
|
endTime: BN__default;
|
|
458
459
|
openTime: BN__default;
|
|
459
|
-
status: number;
|
|
460
460
|
ammId: PublicKey;
|
|
461
461
|
tokenInfo: {
|
|
462
462
|
mintDecimals: number;
|
|
@@ -556,7 +556,7 @@ interface ExtInfo {
|
|
|
556
556
|
declare class MarketV2$1 extends ModuleBase {
|
|
557
557
|
create<T extends TxVersion>({ baseInfo, quoteInfo, lotSize, // 1
|
|
558
558
|
tickSize, // 0.01
|
|
559
|
-
dexProgramId, requestQueueSpace, eventQueueSpace, orderbookQueueSpace, txVersion, computeBudgetConfig, }: {
|
|
559
|
+
dexProgramId, requestQueueSpace, eventQueueSpace, orderbookQueueSpace, lowestFeeMarket, txVersion, computeBudgetConfig, }: {
|
|
560
560
|
baseInfo: {
|
|
561
561
|
mint: PublicKey;
|
|
562
562
|
decimals: number;
|
|
@@ -573,6 +573,7 @@ declare class MarketV2$1 extends ModuleBase {
|
|
|
573
573
|
requestQueueSpace?: number;
|
|
574
574
|
eventQueueSpace?: number;
|
|
575
575
|
orderbookQueueSpace?: number;
|
|
576
|
+
lowestFeeMarket?: boolean;
|
|
576
577
|
txVersion?: T;
|
|
577
578
|
computeBudgetConfig?: ComputeBudgetConfig;
|
|
578
579
|
}): Promise<MakeMultiTxData<T, ExtInfo>>;
|
|
@@ -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 { o as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bR as GetTransferAmountFee, bQ as TransferAmountFee, cc as Price, cb as Percent, c7 as TokenAmount, bO as ComputeBudgetConfig, c9 as Fraction, bE as TokenInfo, B as ClmmKeys } from './api-
|
|
4
|
+
import { o as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bR as GetTransferAmountFee, bQ as TransferAmountFee, cc as Price, cb as Percent, c7 as TokenAmount, bO as ComputeBudgetConfig, c9 as Fraction, bE as TokenInfo, B as ClmmKeys } from './api-fd862469.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
|
@@ -33,6 +33,7 @@ export default class MarketV2 extends ModuleBase {
|
|
|
33
33
|
requestQueueSpace,
|
|
34
34
|
eventQueueSpace,
|
|
35
35
|
orderbookQueueSpace,
|
|
36
|
+
lowestFeeMarket,
|
|
36
37
|
txVersion,
|
|
37
38
|
computeBudgetConfig,
|
|
38
39
|
}: {
|
|
@@ -52,6 +53,7 @@ export default class MarketV2 extends ModuleBase {
|
|
|
52
53
|
requestQueueSpace?: number;
|
|
53
54
|
eventQueueSpace?: number;
|
|
54
55
|
orderbookQueueSpace?: number;
|
|
56
|
+
lowestFeeMarket?: boolean;
|
|
55
57
|
txVersion?: T;
|
|
56
58
|
computeBudgetConfig?: ComputeBudgetConfig;
|
|
57
59
|
}): Promise<MakeMultiTxData<T, ExtInfo>> {
|
|
@@ -112,6 +114,8 @@ export default class MarketV2 extends ModuleBase {
|
|
|
112
114
|
requestQueueSpace,
|
|
113
115
|
eventQueueSpace,
|
|
114
116
|
orderbookQueueSpace,
|
|
117
|
+
|
|
118
|
+
lowestFeeMarket,
|
|
115
119
|
},
|
|
116
120
|
});
|
|
117
121
|
const txBuilder = this.createTxBuilder();
|
|
@@ -130,6 +130,8 @@ export async function makeCreateMarketInstruction({
|
|
|
130
130
|
requestQueueSpace?: number;
|
|
131
131
|
eventQueueSpace?: number;
|
|
132
132
|
orderbookQueueSpace?: number;
|
|
133
|
+
|
|
134
|
+
lowestFeeMarket?: boolean;
|
|
133
135
|
};
|
|
134
136
|
}): Promise<Transactions> {
|
|
135
137
|
const tx1 = new Transaction();
|
|
@@ -173,7 +175,9 @@ export async function makeCreateMarketInstruction({
|
|
|
173
175
|
basePubkey: wallet,
|
|
174
176
|
seed: marketInfo.requestQueue.seed,
|
|
175
177
|
newAccountPubkey: marketInfo.requestQueue.publicKey,
|
|
176
|
-
lamports:
|
|
178
|
+
lamports: marketInfo.lowestFeeMarket
|
|
179
|
+
? 6208320
|
|
180
|
+
: await connection.getMinimumBalanceForRentExemption(marketInfo.requestQueueSpace ?? 5120 + 12),
|
|
177
181
|
space: marketInfo.requestQueueSpace ?? 5120 + 12,
|
|
178
182
|
programId: marketInfo.programId,
|
|
179
183
|
}),
|
|
@@ -182,7 +186,9 @@ export async function makeCreateMarketInstruction({
|
|
|
182
186
|
basePubkey: wallet,
|
|
183
187
|
seed: marketInfo.eventQueue.seed,
|
|
184
188
|
newAccountPubkey: marketInfo.eventQueue.publicKey,
|
|
185
|
-
lamports:
|
|
189
|
+
lamports: marketInfo.lowestFeeMarket
|
|
190
|
+
? 79594560
|
|
191
|
+
: await connection.getMinimumBalanceForRentExemption(marketInfo.eventQueueSpace ?? 262144 + 12),
|
|
186
192
|
space: marketInfo.eventQueueSpace ?? 262144 + 12,
|
|
187
193
|
programId: marketInfo.programId,
|
|
188
194
|
}),
|
|
@@ -191,7 +197,9 @@ export async function makeCreateMarketInstruction({
|
|
|
191
197
|
basePubkey: wallet,
|
|
192
198
|
seed: marketInfo.bids.seed,
|
|
193
199
|
newAccountPubkey: marketInfo.bids.publicKey,
|
|
194
|
-
lamports:
|
|
200
|
+
lamports: marketInfo.lowestFeeMarket
|
|
201
|
+
? 101977920
|
|
202
|
+
: await connection.getMinimumBalanceForRentExemption(marketInfo.orderbookQueueSpace ?? 65536 + 12),
|
|
195
203
|
space: marketInfo.orderbookQueueSpace ?? 65536 + 12,
|
|
196
204
|
programId: marketInfo.programId,
|
|
197
205
|
}),
|
|
@@ -200,7 +208,9 @@ export async function makeCreateMarketInstruction({
|
|
|
200
208
|
basePubkey: wallet,
|
|
201
209
|
seed: marketInfo.asks.seed,
|
|
202
210
|
newAccountPubkey: marketInfo.asks.publicKey,
|
|
203
|
-
lamports:
|
|
211
|
+
lamports: marketInfo.lowestFeeMarket
|
|
212
|
+
? 101977920
|
|
213
|
+
: await connection.getMinimumBalanceForRentExemption(marketInfo.orderbookQueueSpace ?? 65536 + 12),
|
|
204
214
|
space: marketInfo.orderbookQueueSpace ?? 65536 + 12,
|
|
205
215
|
programId: marketInfo.programId,
|
|
206
216
|
}),
|
|
@@ -870,37 +870,37 @@ declare type FarmStateV6 = GetStructureSchema<FarmStateLayoutV6>;
|
|
|
870
870
|
declare type FarmState = FarmStateV3 | FarmStateV5 | FarmStateV6;
|
|
871
871
|
declare type FarmStateLayout = FarmStateLayoutV3 | FarmStateLayoutV5 | FarmStateLayoutV6;
|
|
872
872
|
declare const farmLedgerLayoutV3_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
873
|
-
state: BN__default;
|
|
874
873
|
id: PublicKey;
|
|
874
|
+
state: BN__default;
|
|
875
875
|
owner: PublicKey;
|
|
876
876
|
deposited: BN__default;
|
|
877
877
|
rewardDebts: BN__default[];
|
|
878
878
|
}>;
|
|
879
879
|
declare const farmLedgerLayoutV3_2: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
880
|
-
state: BN__default;
|
|
881
880
|
id: PublicKey;
|
|
881
|
+
state: BN__default;
|
|
882
882
|
owner: PublicKey;
|
|
883
883
|
deposited: BN__default;
|
|
884
884
|
rewardDebts: BN__default[];
|
|
885
885
|
voteLockedBalance: BN__default;
|
|
886
886
|
}>;
|
|
887
887
|
declare const farmLedgerLayoutV5_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
888
|
-
state: BN__default;
|
|
889
888
|
id: PublicKey;
|
|
889
|
+
state: BN__default;
|
|
890
890
|
owner: PublicKey;
|
|
891
891
|
deposited: BN__default;
|
|
892
892
|
rewardDebts: BN__default[];
|
|
893
893
|
}>;
|
|
894
894
|
declare const farmLedgerLayoutV5_2: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
895
|
-
state: BN__default;
|
|
896
895
|
id: PublicKey;
|
|
896
|
+
state: BN__default;
|
|
897
897
|
owner: PublicKey;
|
|
898
898
|
deposited: BN__default;
|
|
899
899
|
rewardDebts: BN__default[];
|
|
900
900
|
}>;
|
|
901
901
|
declare const farmLedgerLayoutV6_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
902
|
-
state: BN__default;
|
|
903
902
|
id: PublicKey;
|
|
903
|
+
state: BN__default;
|
|
904
904
|
owner: PublicKey;
|
|
905
905
|
deposited: BN__default;
|
|
906
906
|
rewardDebts: BN__default[];
|