@raydium-io/raydium-sdk-v2 0.1.92-alpha → 0.1.93-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/{api-9d98bd04.d.ts → api-0eb57ba2.d.ts} +7 -7
- 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/account.js +1 -1
- package/lib/raydium/account/account.js.map +1 -1
- package/lib/raydium/account/account.mjs +1 -1
- package/lib/raydium/account/account.mjs.map +1 -1
- package/lib/raydium/account/index.d.ts +1 -1
- package/lib/raydium/account/instruction.d.ts +1 -1
- package/lib/raydium/account/layout.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 +2 -2
- 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/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 +2 -2
- 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-cfb7854f.d.ts → raydium-547ac6e6.d.ts} +4 -3
- package/lib/{type-351304d7.d.ts → type-3b522576.d.ts} +1 -1
- package/package.json +1 -1
- package/src/raydium/account/account.ts +10 -18
package/lib/api/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'axios';
|
|
2
2
|
import '../solana/type.js';
|
|
3
|
-
export { a as Api, A as ApiProps, e as endlessRetry } from '../api-
|
|
3
|
+
export { a as Api, A as ApiProps, e as endlessRetry } from '../api-0eb57ba2.js';
|
|
4
4
|
import './url.js';
|
|
5
5
|
import '@solana/web3.js';
|
|
6
6
|
import 'bn.js';
|
package/lib/api/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { w as AmmV4Keys, x as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, E as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, A as ApiProps, a2 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, n as ApiV3PoolInfoBaseItem, o as ApiV3PoolInfoConcentratedItem, k as ApiV3PoolInfoCountItem, r as ApiV3PoolInfoItem, p as ApiV3PoolInfoStandardItem, q as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, j as ApiV3TokenRes, _ as AvailabilityCheckAPI3, B as ClmmKeys, z as ClmmRewardType, y as CpmmKeys, C as CpmmLockInfo, a3 as FarmPositionData, F as FarmRewardInfoV6, I as FarmRewardTypeV6Key, V as FarmTagsItem, t as FetchPoolParams, Z as FormatFarmInfoOut, W as FormatFarmInfoOutBase, X as FormatFarmInfoOutV345, Y as FormatFarmInfoOutV6, Q as FormatFarmKeyOut, N as FormatFarmKeyOutV345, O as FormatFarmKeyOutV6, a1 as IdoKeysData, J as JupTokenType, v as LiquidityLineApi, L as LiquidityVersion, $ as OwnerCreatedFarmInfo, a0 as OwnerIdoInfo, u as Point, l as PoolFarmRewardInfo, s as PoolFetchType, D as PoolKeys, m as PoolRewardInfoItem, P as PoolsApiReturn, S as RewardInfoV345, U as RewardInfoV6, K as RewardKeyInfoV345, M as RewardKeyInfoV6, R as RpcItemA, G as RpcItemB, H as RpcType, T as TransferFeeDataBaseType, e as endlessRetry } from '../api-
|
|
1
|
+
export { w as AmmV4Keys, x as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, E as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, A as ApiProps, a2 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, n as ApiV3PoolInfoBaseItem, o as ApiV3PoolInfoConcentratedItem, k as ApiV3PoolInfoCountItem, r as ApiV3PoolInfoItem, p as ApiV3PoolInfoStandardItem, q as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, j as ApiV3TokenRes, _ as AvailabilityCheckAPI3, B as ClmmKeys, z as ClmmRewardType, y as CpmmKeys, C as CpmmLockInfo, a3 as FarmPositionData, F as FarmRewardInfoV6, I as FarmRewardTypeV6Key, V as FarmTagsItem, t as FetchPoolParams, Z as FormatFarmInfoOut, W as FormatFarmInfoOutBase, X as FormatFarmInfoOutV345, Y as FormatFarmInfoOutV6, Q as FormatFarmKeyOut, N as FormatFarmKeyOutV345, O as FormatFarmKeyOutV6, a1 as IdoKeysData, J as JupTokenType, v as LiquidityLineApi, L as LiquidityVersion, $ as OwnerCreatedFarmInfo, a0 as OwnerIdoInfo, u as Point, l as PoolFarmRewardInfo, s as PoolFetchType, D as PoolKeys, m as PoolRewardInfoItem, P as PoolsApiReturn, S as RewardInfoV345, U as RewardInfoV6, K as RewardKeyInfoV345, M as RewardKeyInfoV6, R as RpcItemA, G as RpcItemB, H as RpcType, T as TransferFeeDataBaseType, e as endlessRetry } from '../api-0eb57ba2.js';
|
|
2
2
|
export { API_URLS, API_URL_CONFIG, DEV_API_URLS } from './url.js';
|
|
3
3
|
export { ResHistory, SESSION_KEY, STORAGE_KEY, getSessionKey, updateReqHistory } from './utils.js';
|
|
4
4
|
import 'axios';
|
package/lib/api/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { w as AmmV4Keys, x as AmmV5Keys, d as ApiClmmConfigInfo, E as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, a2 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, n as ApiV3PoolInfoBaseItem, o as ApiV3PoolInfoConcentratedItem, k as ApiV3PoolInfoCountItem, r as ApiV3PoolInfoItem, p as ApiV3PoolInfoStandardItem, q as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, j as ApiV3TokenRes, _ as AvailabilityCheckAPI3, B as ClmmKeys, z as ClmmRewardType, y as CpmmKeys, C as CpmmLockInfo, a3 as FarmPositionData, F as FarmRewardInfoV6, I as FarmRewardTypeV6Key, V as FarmTagsItem, t as FetchPoolParams, Z as FormatFarmInfoOut, W as FormatFarmInfoOutBase, X as FormatFarmInfoOutV345, Y as FormatFarmInfoOutV6, Q as FormatFarmKeyOut, N as FormatFarmKeyOutV345, O as FormatFarmKeyOutV6, a1 as IdoKeysData, J as JupTokenType, v as LiquidityLineApi, L as LiquidityVersion, $ as OwnerCreatedFarmInfo, a0 as OwnerIdoInfo, u as Point, l as PoolFarmRewardInfo, s as PoolFetchType, D as PoolKeys, m as PoolRewardInfoItem, P as PoolsApiReturn, S as RewardInfoV345, U as RewardInfoV6, K as RewardKeyInfoV345, M as RewardKeyInfoV6, R as RpcItemA, G as RpcItemB, H as RpcType, T as TransferFeeDataBaseType } from '../api-
|
|
1
|
+
export { w as AmmV4Keys, x as AmmV5Keys, d as ApiClmmConfigInfo, E as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, a2 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, n as ApiV3PoolInfoBaseItem, o as ApiV3PoolInfoConcentratedItem, k as ApiV3PoolInfoCountItem, r as ApiV3PoolInfoItem, p as ApiV3PoolInfoStandardItem, q as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, j as ApiV3TokenRes, _ as AvailabilityCheckAPI3, B as ClmmKeys, z as ClmmRewardType, y as CpmmKeys, C as CpmmLockInfo, a3 as FarmPositionData, F as FarmRewardInfoV6, I as FarmRewardTypeV6Key, V as FarmTagsItem, t as FetchPoolParams, Z as FormatFarmInfoOut, W as FormatFarmInfoOutBase, X as FormatFarmInfoOutV345, Y as FormatFarmInfoOutV6, Q as FormatFarmKeyOut, N as FormatFarmKeyOutV345, O as FormatFarmKeyOutV6, a1 as IdoKeysData, J as JupTokenType, v as LiquidityLineApi, L as LiquidityVersion, $ as OwnerCreatedFarmInfo, a0 as OwnerIdoInfo, u as Point, l as PoolFarmRewardInfo, s as PoolFetchType, D as PoolKeys, m as PoolRewardInfoItem, P as PoolsApiReturn, S as RewardInfoV345, U as RewardInfoV6, K as RewardKeyInfoV345, M as RewardKeyInfoV6, R as RpcItemA, G as RpcItemB, H as RpcType, T as TransferFeeDataBaseType } from '../api-0eb57ba2.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import '../solana/type.js';
|
|
4
4
|
import '@solana/web3.js';
|
|
@@ -873,38 +873,38 @@ declare type FarmStateV6 = GetStructureSchema<FarmStateLayoutV6>;
|
|
|
873
873
|
declare type FarmState = FarmStateV3 | FarmStateV5 | FarmStateV6;
|
|
874
874
|
declare type FarmStateLayout = FarmStateLayoutV3 | FarmStateLayoutV5 | FarmStateLayoutV6;
|
|
875
875
|
declare const farmLedgerLayoutV3_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
876
|
-
owner: PublicKey;
|
|
877
876
|
state: BN__default;
|
|
878
877
|
id: PublicKey;
|
|
878
|
+
owner: PublicKey;
|
|
879
879
|
deposited: BN__default;
|
|
880
880
|
rewardDebts: BN__default[];
|
|
881
881
|
}>;
|
|
882
882
|
declare const farmLedgerLayoutV3_2: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
883
|
-
owner: PublicKey;
|
|
884
883
|
state: BN__default;
|
|
885
884
|
id: PublicKey;
|
|
885
|
+
owner: PublicKey;
|
|
886
886
|
deposited: BN__default;
|
|
887
887
|
rewardDebts: BN__default[];
|
|
888
888
|
voteLockedBalance: BN__default;
|
|
889
889
|
}>;
|
|
890
890
|
declare const farmLedgerLayoutV5_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
891
|
-
owner: PublicKey;
|
|
892
891
|
state: BN__default;
|
|
893
892
|
id: PublicKey;
|
|
893
|
+
owner: PublicKey;
|
|
894
894
|
deposited: BN__default;
|
|
895
895
|
rewardDebts: BN__default[];
|
|
896
896
|
}>;
|
|
897
897
|
declare const farmLedgerLayoutV5_2: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
898
|
-
owner: PublicKey;
|
|
899
898
|
state: BN__default;
|
|
900
899
|
id: PublicKey;
|
|
900
|
+
owner: PublicKey;
|
|
901
901
|
deposited: BN__default;
|
|
902
902
|
rewardDebts: BN__default[];
|
|
903
903
|
}>;
|
|
904
904
|
declare const farmLedgerLayoutV6_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
905
|
-
owner: PublicKey;
|
|
906
905
|
state: BN__default;
|
|
907
906
|
id: PublicKey;
|
|
907
|
+
owner: PublicKey;
|
|
908
908
|
deposited: BN__default;
|
|
909
909
|
rewardDebts: BN__default[];
|
|
910
910
|
}>;
|
|
@@ -934,7 +934,7 @@ declare const VoterVotingMintConfig: Structure<PublicKey | number[] | BN__defaul
|
|
|
934
934
|
reserved1: number[];
|
|
935
935
|
reserved2: BN__default[];
|
|
936
936
|
}>;
|
|
937
|
-
declare const VoterRegistrar: Structure<number | PublicKey |
|
|
937
|
+
declare const VoterRegistrar: Structure<number | PublicKey | number[] | Buffer | BN__default | BN__default[] | {
|
|
938
938
|
mint: PublicKey;
|
|
939
939
|
grantAuthority: PublicKey;
|
|
940
940
|
baselineVoteWeightScaledFactor: BN__default;
|
|
@@ -989,7 +989,7 @@ declare const VoterDepositEntry: Structure<number | boolean | number[] | BN__def
|
|
|
989
989
|
allowClawback: boolean;
|
|
990
990
|
votingMintConfigIdx: number;
|
|
991
991
|
}>;
|
|
992
|
-
declare const Voter: Structure<number | PublicKey |
|
|
992
|
+
declare const Voter: Structure<number | PublicKey | number[] | Buffer | {
|
|
993
993
|
reserved: number[];
|
|
994
994
|
lockup: {
|
|
995
995
|
startTime: BN__default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Commitment, Connection, PublicKey, AccountInfo } from '@solana/web3.js';
|
|
2
|
-
import { bT as ReturnTypeFetchMultipleMintInfos } from '../api-
|
|
2
|
+
import { bT as ReturnTypeFetchMultipleMintInfos } from '../api-0eb57ba2.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import '../solana/type.js';
|
|
5
5
|
import 'bn.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'bn.js';
|
|
2
2
|
import 'decimal.js';
|
|
3
|
-
export { aa as BN_100, ab as BN_1000, ac as BN_10000, a8 as BN_FIVE, a5 as BN_ONE, a9 as BN_TEN, a7 as BN_THREE, a6 as BN_TWO, a4 as BN_ZERO, ad as BigNumberish, ae as Numberish, ap as decimalToFraction, ah as divCeil, aq as isDecimal, ag as parseNumberInfo, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency } from '../api-
|
|
3
|
+
export { aa as BN_100, ab as BN_1000, ac as BN_10000, a8 as BN_FIVE, a5 as BN_ONE, a9 as BN_TEN, a7 as BN_THREE, a6 as BN_TWO, a4 as BN_ZERO, ad as BigNumberish, ae as Numberish, ap as decimalToFraction, ah as divCeil, aq as isDecimal, ag as parseNumberInfo, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency } from '../api-0eb57ba2.js';
|
|
4
4
|
import '../module/token.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../solana/type.js';
|
package/lib/common/constant.d.ts
CHANGED
package/lib/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ACCOUNT_TYPE_SIZE, AccountType, GetMultipleAccountsInfoConfig, fetchMultipleMintInfos, getMultipleAccountsInfo, getMultipleAccountsInfoWithCustomFlags } from './accountInfo.js';
|
|
2
|
-
export { au as AddInstructionParam, aa as BN_100, ab as BN_1000, ac as BN_10000, a8 as BN_FIVE, a5 as BN_ONE, a9 as BN_TEN, a7 as BN_THREE, a6 as BN_TWO, a4 as BN_ZERO, ad as BigNumberish, aA as MakeMultiTxData, aB as MakeTxData, ay as MultiTxBuildData, ax as MultiTxExecuteParam, az as MultiTxV0BuildData, ae as Numberish, as as Rounding, av as TxBuildData, aC as TxBuilder, aw as TxV0BuildData, ap as decimalToFraction, ah as divCeil, aq as isDecimal, at as parseBigNumberish, ag as parseNumberInfo, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency } from '../api-
|
|
2
|
+
export { au as AddInstructionParam, aa as BN_100, ab as BN_1000, ac as BN_10000, a8 as BN_FIVE, a5 as BN_ONE, a9 as BN_TEN, a7 as BN_THREE, a6 as BN_TWO, a4 as BN_ZERO, ad as BigNumberish, aA as MakeMultiTxData, aB as MakeTxData, ay as MultiTxBuildData, ax as MultiTxExecuteParam, az as MultiTxV0BuildData, ae as Numberish, as as Rounding, av as TxBuildData, aC as TxBuilder, aw as TxV0BuildData, ap as decimalToFraction, ah as divCeil, aq as isDecimal, at as parseBigNumberish, ag as parseNumberInfo, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency } from '../api-0eb57ba2.js';
|
|
3
3
|
export { DateParam, TimeStamp, getDate, getTime, isDateAfter, isDateBefore, isNumber, offsetDateTime } from './date.js';
|
|
4
4
|
export { add, div, eq, getMax, gt, gte, isMeaningfulNumber, lt, lte, mul, sub, toFractionWithDecimals } from './fractionUtil.js';
|
|
5
5
|
export { chunkArray, intersection, uniq, xor } from './lodash.js';
|
package/lib/common/transfer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EpochInfo } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
3
|
import { TransferFeeConfig } from '@solana/spl-token';
|
|
4
|
-
import { bR as GetTransferAmountFee, T as TransferFeeDataBaseType } from '../api-
|
|
4
|
+
import { bR as GetTransferAmountFee, T as TransferFeeDataBaseType } from '../api-0eb57ba2.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../solana/type.js';
|
|
7
7
|
import '../api/url.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
|
-
export { au as AddInstructionParam, aA as MakeMultiTxData, aB as MakeTxData, ay as MultiTxBuildData, ax as MultiTxExecuteParam, az as MultiTxV0BuildData, av as TxBuildData, aC as TxBuilder, aw as TxV0BuildData } from '../../api-
|
|
2
|
+
export { au as AddInstructionParam, aA as MakeMultiTxData, aB as MakeTxData, ay as MultiTxBuildData, ax as MultiTxExecuteParam, az as MultiTxV0BuildData, av as TxBuildData, aC as TxBuilder, aw as TxV0BuildData } from '../../api-0eb57ba2.js';
|
|
3
3
|
import '../owner.js';
|
|
4
4
|
import './lookupTable.js';
|
|
5
5
|
import './txType.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TransactionInstruction, Connection, Commitment, PublicKey, Transaction, EpochInfo, VersionedTransaction } from '@solana/web3.js';
|
|
2
2
|
import { CacheLTA } from './lookupTable.js';
|
|
3
|
-
import { bO as ComputeBudgetConfig } from '../../api-
|
|
3
|
+
import { bO as ComputeBudgetConfig } from '../../api-0eb57ba2.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../solana/type.js';
|
|
6
6
|
import 'bn.js';
|
package/lib/common/utility.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bj as APIRewardInfo, au as AddInstructionParam, w as AmmV4Keys, x as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, E as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, A as ApiProps, a2 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, n as ApiV3PoolInfoBaseItem, o as ApiV3PoolInfoConcentratedItem, k as ApiV3PoolInfoCountItem, r as ApiV3PoolInfoItem, p as ApiV3PoolInfoStandardItem, q as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, j as ApiV3TokenRes, bY as ArrayItem, _ as AvailabilityCheckAPI3, aa as BN_100, ab as BN_1000, ac as BN_10000, a8 as BN_FIVE, a5 as BN_ONE, a9 as BN_TEN, a7 as BN_THREE, a6 as BN_TWO, a4 as BN_ZERO, ad as BigNumberish, B as ClmmKeys, z as ClmmRewardType, bO as ComputeBudgetConfig, c3 as Cover, y as CpmmKeys, C as CpmmLockInfo, bp as CreateFarm, bq as CreateFarmExtInfo, c8 as CurrencyAmount, bZ 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, c2 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, a3 as FarmPositionData, bl as FarmRewardInfo, bm as FarmRewardInfoConfig, F as FarmRewardInfoV6, I as FarmRewardTypeV6Key, aV as FarmState, aW as FarmStateLayout, aP as FarmStateLayoutV3, aQ as FarmStateLayoutV5, aR as FarmStateLayoutV6, aS as FarmStateV3, aT as FarmStateV5, aU as FarmStateV6, V as FarmTagsItem, bv as FarmVersion, t as FetchPoolParams, Z as FormatFarmInfoOut, W as FormatFarmInfoOutBase, X as FormatFarmInfoOutV345, Y as FormatFarmInfoOutV6, Q as FormatFarmKeyOut, N as FormatFarmKeyOutV345, O as FormatFarmKeyOutV6, c9 as Fraction, bR as GetTransferAmountFee, c0 as GetValue, a1 as IdoKeysData, bN as InstructionReturn, J as JupTokenType, v as LiquidityLineApi, L as LiquidityVersion, bP as LoadParams, bH as LpToken, bM as MakeMultiTransaction, aA as MakeMultiTxData, bK as MakeTransaction, aB as MakeTxData, bL as MakeV0Transaction, bV as MayArray, bW as MayDeepArray, bX as MayFunction, ay as MultiTxBuildData, ax as MultiTxExecuteParam, az as MultiTxV0BuildData, ae as Numberish, $ as OwnerCreatedFarmInfo, a0 as OwnerIdoInfo, cb as Percent, u as Point, l as PoolFarmRewardInfo, s as PoolFetchType, D as PoolKeys, m as PoolRewardInfoItem, P as PoolsApiReturn, cc as Price, bU as ReplaceType, bS as ReturnTypeFetchMultipleMintInfo, bT as ReturnTypeFetchMultipleMintInfos, bI as ReturnTypeMakeInstructions, bn as RewardInfoKey, S as RewardInfoV345, U as RewardInfoV6, bk as RewardInfoWithKey, K as RewardKeyInfoV345, M as RewardKeyInfoV6, bi as RewardType, as as Rounding, R as RpcItemA, G as RpcItemB, H as RpcType, b$ as SKeyof, c1 as SOR, bJ as SignAllTransactions, bG as SplToken, c7 as TokenAmount, bE as TokenInfo, bF as TokenJson, bQ as TransferAmountFee, T as TransferFeeDataBaseType, av as TxBuildData, aC as TxBuilder, aw as TxV0BuildData, c4 as UnionCover, br as UpdateFarmReward, bs as UpdateFarmRewards, bh as Voter, bg as VoterDepositEntry, bf as VoterLockup, be as VoterRegistrar, bd as VoterVotingMintConfig, ca as _100_PERCENT, aD as associatedLedgerAccountLayout, ap as decimalToFraction, ah as divCeil, bc as dwLayout, e as endlessRetry, 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, aq as isDecimal, bA as isValidFarmVersion, at as parseBigNumberish, ag as parseNumberInfo, bC as poolTypeV6, aF as realFarmStateV3Layout, aG as realFarmStateV5Layout, aH as realFarmV6Layout, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, c6 as splitNumber, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency, c5 as unionArr, bB as validateFarmRewards, aE as withdrawRewardLayout } from './api-
|
|
1
|
+
export { bj as APIRewardInfo, au as AddInstructionParam, w as AmmV4Keys, x as AmmV5Keys, a as Api, d as ApiClmmConfigInfo, E as ApiClmmConfigV3, g as ApiClmmPoolsItemStatistics, f as ApiCpmmConfigInfo, b as ApiPoolInfoV4, A as ApiProps, a2 as ApiStakePool, c as ApiStakePoolInfo, h as ApiV3PageIns, n as ApiV3PoolInfoBaseItem, o as ApiV3PoolInfoConcentratedItem, k as ApiV3PoolInfoCountItem, r as ApiV3PoolInfoItem, p as ApiV3PoolInfoStandardItem, q as ApiV3PoolInfoStandardItemCpmm, i as ApiV3Token, j as ApiV3TokenRes, bY as ArrayItem, _ as AvailabilityCheckAPI3, aa as BN_100, ab as BN_1000, ac as BN_10000, a8 as BN_FIVE, a5 as BN_ONE, a9 as BN_TEN, a7 as BN_THREE, a6 as BN_TWO, a4 as BN_ZERO, ad as BigNumberish, B as ClmmKeys, z as ClmmRewardType, bO as ComputeBudgetConfig, c3 as Cover, y as CpmmKeys, C as CpmmLockInfo, bp as CreateFarm, bq as CreateFarmExtInfo, c8 as CurrencyAmount, bZ 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, c2 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, a3 as FarmPositionData, bl as FarmRewardInfo, bm as FarmRewardInfoConfig, F as FarmRewardInfoV6, I as FarmRewardTypeV6Key, aV as FarmState, aW as FarmStateLayout, aP as FarmStateLayoutV3, aQ as FarmStateLayoutV5, aR as FarmStateLayoutV6, aS as FarmStateV3, aT as FarmStateV5, aU as FarmStateV6, V as FarmTagsItem, bv as FarmVersion, t as FetchPoolParams, Z as FormatFarmInfoOut, W as FormatFarmInfoOutBase, X as FormatFarmInfoOutV345, Y as FormatFarmInfoOutV6, Q as FormatFarmKeyOut, N as FormatFarmKeyOutV345, O as FormatFarmKeyOutV6, c9 as Fraction, bR as GetTransferAmountFee, c0 as GetValue, a1 as IdoKeysData, bN as InstructionReturn, J as JupTokenType, v as LiquidityLineApi, L as LiquidityVersion, bP as LoadParams, bH as LpToken, bM as MakeMultiTransaction, aA as MakeMultiTxData, bK as MakeTransaction, aB as MakeTxData, bL as MakeV0Transaction, bV as MayArray, bW as MayDeepArray, bX as MayFunction, ay as MultiTxBuildData, ax as MultiTxExecuteParam, az as MultiTxV0BuildData, ae as Numberish, $ as OwnerCreatedFarmInfo, a0 as OwnerIdoInfo, cb as Percent, u as Point, l as PoolFarmRewardInfo, s as PoolFetchType, D as PoolKeys, m as PoolRewardInfoItem, P as PoolsApiReturn, cc as Price, bU as ReplaceType, bS as ReturnTypeFetchMultipleMintInfo, bT as ReturnTypeFetchMultipleMintInfos, bI as ReturnTypeMakeInstructions, bn as RewardInfoKey, S as RewardInfoV345, U as RewardInfoV6, bk as RewardInfoWithKey, K as RewardKeyInfoV345, M as RewardKeyInfoV6, bi as RewardType, as as Rounding, R as RpcItemA, G as RpcItemB, H as RpcType, b$ as SKeyof, c1 as SOR, bJ as SignAllTransactions, bG as SplToken, c7 as TokenAmount, bE as TokenInfo, bF as TokenJson, bQ as TransferAmountFee, T as TransferFeeDataBaseType, av as TxBuildData, aC as TxBuilder, aw as TxV0BuildData, c4 as UnionCover, br as UpdateFarmReward, bs as UpdateFarmRewards, bh as Voter, bg as VoterDepositEntry, bf as VoterLockup, be as VoterRegistrar, bd as VoterVotingMintConfig, ca as _100_PERCENT, aD as associatedLedgerAccountLayout, ap as decimalToFraction, ah as divCeil, bc as dwLayout, e as endlessRetry, 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, aq as isDecimal, bA as isValidFarmVersion, at as parseBigNumberish, ag as parseNumberInfo, bC as poolTypeV6, aF as realFarmStateV3Layout, aG as realFarmStateV5Layout, aH as realFarmV6Layout, ar as recursivelyDecimalToFraction, ai as shakeFractionDecimal, c6 as splitNumber, af as tenExponential, aj as toBN, ak as toFraction, al as toPercent, am as toTokenPrice, ao as toTotalPrice, an as toUsdCurrency, c5 as unionArr, bB as validateFarmRewards, aE as withdrawRewardLayout } from './api-0eb57ba2.js';
|
|
2
2
|
export { API_URLS, API_URL_CONFIG, DEV_API_URLS } from './api/url.js';
|
|
3
3
|
export { ResHistory, SESSION_KEY, STORAGE_KEY, getSessionKey, updateReqHistory } from './api/utils.js';
|
|
4
4
|
export { ACCOUNT_TYPE_SIZE, AccountType, GetMultipleAccountsInfoConfig, fetchMultipleMintInfos, getMultipleAccountsInfo, getMultipleAccountsInfoWithCustomFlags } from './common/accountInfo.js';
|
|
@@ -15,7 +15,7 @@ export { CacheLTA, LOOKUP_TABLE_CACHE, getMultipleLookupTableInfo } from './comm
|
|
|
15
15
|
export { InstructionType, TxVersion } from './common/txTool/txType.js';
|
|
16
16
|
export { MAX_BASE64_SIZE, ProgramAddress, addComputeBudget, checkLegacyTxSize, checkV0TxSize, confirmTransaction, findProgramAddress, forecastTransactionSize, getEpochInfo, getRecentBlockHash, parseSimulateLogToJson, parseSimulateValue, printSimulate, simulateMultipleInstruction, simulateTransaction, toBuffer, transformTxToBase64, txToBase64 } from './common/txTool/txUtils.js';
|
|
17
17
|
export { getTimestamp, jsonInfo2PoolKeys, notInnerObject, sleep } from './common/utility.js';
|
|
18
|
-
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-
|
|
18
|
+
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-547ac6e6.js';
|
|
19
19
|
export { splAccountLayout } from './raydium/account/layout.js';
|
|
20
20
|
export { GetOrCreateTokenAccountParams, HandleTokenAccountParams, SplAccount, SplAccountLayout, TokenAccount, TokenAccountRaw, getCreatedTokenAccountParams } from './raydium/account/types.js';
|
|
21
21
|
export { ParseTokenAccount, generatePubKey, parseTokenAccountResp } from './raydium/account/util.js';
|
|
@@ -29,7 +29,7 @@ export { parseTokenInfo, solToWSolToken, toApiV3Token, toFeeConfig, toToken, toT
|
|
|
29
29
|
export { Currency, currencyEquals } from './module/currency.js';
|
|
30
30
|
export { WrappedBig, WrappedDecimal } from './module/formatter.js';
|
|
31
31
|
export { Token, TokenProps } from './module/token.js';
|
|
32
|
-
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-
|
|
32
|
+
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-3b522576.js';
|
|
33
33
|
export { ClmmConfigLayout, ClmmPositionLayout, LockClPositionLayoutV2, LockPositionLayout, ObservationInfoLayout, ObservationLayout, OperationLayout, PoolInfoLayout, PositionInfoLayout, PositionRewardInfoLayout, ProtocolPositionLayout, RewardInfo, TickArrayBitmapExtensionLayout, TickArrayLayout, TickLayout } from './raydium/clmm/layout.js';
|
|
34
34
|
export { ClmmInstrument } from './raydium/clmm/instrument.js';
|
|
35
35
|
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 './raydium/clmm/utils/constants.js';
|