@raydium-io/raydium-sdk-v2 0.1.61-alpha → 0.1.63-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 +1 -1
- package/lib/api/api.js.map +1 -1
- package/lib/api/api.mjs +1 -1
- package/lib/api/api.mjs.map +1 -1
- package/lib/api/index.d.ts +1 -1
- package/lib/api/index.js +1 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/index.mjs +1 -1
- package/lib/api/index.mjs.map +1 -1
- package/lib/api/type.d.ts +1 -1
- package/lib/api/type.js +1 -1
- package/lib/api/type.js.map +1 -1
- package/lib/api/type.mjs.map +1 -1
- package/lib/api/url.d.ts +2 -2
- package/lib/api/url.js +1 -1
- package/lib/api/url.js.map +1 -1
- package/lib/api/url.mjs +1 -1
- package/lib/api/url.mjs.map +1 -1
- package/lib/{api-7319d407.d.ts → api-11ffb196.d.ts} +7 -1
- package/lib/common/accountInfo.d.ts +1 -1
- package/lib/common/bignumber.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/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/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/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/layout.d.ts +2 -2
- 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/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-bf8cfe1d.d.ts → raydium-a023305c.d.ts} +2 -2
- package/lib/{type-22f75cb2.d.ts → type-1bf767ed.d.ts} +1 -1
- package/package.json +1 -1
- package/src/api/api.ts +7 -1
- package/src/api/type.ts +2 -0
- package/src/api/url.ts +1 -1
- package/src/raydium/raydium.ts +5 -1
- package/src/raydium/token/token.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bG as LpToken, bF as SplToken, bD as TokenInfo, bE as TokenJson } from '../../api-
|
|
1
|
+
export { bG as LpToken, bF as SplToken, bD as TokenInfo, bE as TokenJson } from '../../api-11ffb196.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, TransferFeeConfig } from '@solana/spl-token';
|
|
3
|
-
import { bD as TokenInfo, ad as BigNumberish, c5 as TokenAmount, i as ApiV3Token } from '../../api-
|
|
3
|
+
import { bD as TokenInfo, ad as BigNumberish, c5 as TokenAmount, i as ApiV3Token } from '../../api-11ffb196.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-11ffb196.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import '../../solana/type.js';
|
|
8
8
|
import '@solana/spl-token';
|
|
@@ -19,7 +19,7 @@ import '../../marshmallow/index.js';
|
|
|
19
19
|
import '../../marshmallow/buffer-layout.js';
|
|
20
20
|
import '../liquidity/type.js';
|
|
21
21
|
import '../liquidity/layout.js';
|
|
22
|
-
import '../../type-
|
|
22
|
+
import '../../type-1bf767ed.js';
|
|
23
23
|
import '../clmm/layout.js';
|
|
24
24
|
import '../cpmm/type.js';
|
|
25
25
|
import '../cpmm/curve/calculator.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, B as PoolKeys } from '../../api-
|
|
3
|
+
import { r as ApiV3PoolInfoItem, B as PoolKeys } from '../../api-11ffb196.js';
|
|
4
4
|
import { ComputePoolType, MakeSwapInstructionParam, ReturnTypeMakeSwapInstruction } from './type.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../../solana/type.js';
|
|
@@ -18,7 +18,7 @@ import '../../marshmallow/index.js';
|
|
|
18
18
|
import '../../marshmallow/buffer-layout.js';
|
|
19
19
|
import '../liquidity/type.js';
|
|
20
20
|
import '../liquidity/layout.js';
|
|
21
|
-
import '../../type-
|
|
21
|
+
import '../../type-1bf767ed.js';
|
|
22
22
|
import '../clmm/layout.js';
|
|
23
23
|
import '../cpmm/type.js';
|
|
24
24
|
import '../cpmm/curve/calculator.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import '../../common/txTool/txType.js';
|
|
3
|
-
import '../../api-
|
|
4
|
-
export { i as default } from '../../raydium-
|
|
3
|
+
import '../../api-11ffb196.js';
|
|
4
|
+
export { i as default } from '../../raydium-a023305c.js';
|
|
5
5
|
import 'bn.js';
|
|
6
6
|
import '../liquidity/type.js';
|
|
7
|
-
import '../../type-
|
|
7
|
+
import '../../type-1bf767ed.js';
|
|
8
8
|
import './type.js';
|
|
9
9
|
import '../cpmm/type.js';
|
|
10
10
|
import 'axios';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PublicKey, Keypair, Signer, TransactionInstruction, Transaction } from '@solana/web3.js';
|
|
2
2
|
import BN__default from 'bn.js';
|
|
3
|
-
import { bO as TransferAmountFee, c5 as TokenAmount, B as PoolKeys, r as ApiV3PoolInfoItem } from '../../api-
|
|
3
|
+
import { bO as TransferAmountFee, c5 as TokenAmount, B as PoolKeys, r as ApiV3PoolInfoItem } from '../../api-11ffb196.js';
|
|
4
4
|
import Decimal from 'decimal.js';
|
|
5
5
|
import { Token } from '../../module/token.js';
|
|
6
6
|
import { ComputeAmountOutParam } from '../liquidity/type.js';
|
|
7
|
-
import { d as ComputeClmmPoolInfo } from '../../type-
|
|
7
|
+
import { d as ComputeClmmPoolInfo } from '../../type-1bf767ed.js';
|
|
8
8
|
import { CpmmComputeData } from '../cpmm/type.js';
|
|
9
9
|
import 'axios';
|
|
10
10
|
import '../../solana/type.js';
|
package/lib/raydium/type.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@solana/web3.js';
|
|
2
2
|
import '@solana/spl-token';
|
|
3
|
-
export { bW as ArrayItem, bM as ComputeBudgetConfig, c1 as Cover, bX as ExactPartial, bY as ExactRequired, c0 as Fallback, bP as GetTransferAmountFee, b_ as GetValue, bL as InstructionReturn, bN as LoadParams, bK as MakeMultiTransaction, bI as MakeTransaction, bJ as MakeV0Transaction, bT as MayArray, bU as MayDeepArray, bV as MayFunction, bS as ReplaceType, bQ as ReturnTypeFetchMultipleMintInfo, bR as ReturnTypeFetchMultipleMintInfos, bZ as SKeyof, b$ as SOR, bH as SignAllTransactions, bO as TransferAmountFee, c2 as UnionCover, c3 as unionArr } from '../api-
|
|
3
|
+
export { bW as ArrayItem, bM as ComputeBudgetConfig, c1 as Cover, bX as ExactPartial, bY as ExactRequired, c0 as Fallback, bP as GetTransferAmountFee, b_ as GetValue, bL as InstructionReturn, bN as LoadParams, bK as MakeMultiTransaction, bI as MakeTransaction, bJ as MakeV0Transaction, bT as MayArray, bU as MayDeepArray, bV as MayFunction, bS as ReplaceType, bQ as ReturnTypeFetchMultipleMintInfo, bR as ReturnTypeFetchMultipleMintInfos, bZ as SKeyof, b$ as SOR, bH as SignAllTransactions, bO as TransferAmountFee, c2 as UnionCover, c3 as unionArr } from '../api-11ffb196.js';
|
|
4
4
|
import 'bn.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import '../solana/type.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-a023305c.js';
|
|
2
2
|
import '@solana/web3.js';
|
|
3
|
-
import '../../api-
|
|
3
|
+
import '../../api-11ffb196.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import '../../solana/type.js';
|
|
6
6
|
import 'bn.js';
|
|
@@ -21,7 +21,7 @@ import '../account/layout.js';
|
|
|
21
21
|
import '../liquidity/type.js';
|
|
22
22
|
import '../liquidity/layout.js';
|
|
23
23
|
import '../liquidity/stable.js';
|
|
24
|
-
import '../../type-
|
|
24
|
+
import '../../type-1bf767ed.js';
|
|
25
25
|
import '../clmm/layout.js';
|
|
26
26
|
import '../cpmm/type.js';
|
|
27
27
|
import '../cpmm/curve/calculator.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-a023305c.js';
|
|
5
5
|
import '../../marshmallow/buffer-layout.js';
|
|
6
|
-
import '../../api-
|
|
6
|
+
import '../../api-11ffb196.js';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import '../../solana/type.js';
|
|
9
9
|
import '@solana/spl-token';
|
|
@@ -21,7 +21,7 @@ import '../account/layout.js';
|
|
|
21
21
|
import '../liquidity/type.js';
|
|
22
22
|
import '../liquidity/layout.js';
|
|
23
23
|
import '../liquidity/stable.js';
|
|
24
|
-
import '../../type-
|
|
24
|
+
import '../../type-1bf767ed.js';
|
|
25
25
|
import '../clmm/layout.js';
|
|
26
26
|
import '../cpmm/type.js';
|
|
27
27
|
import '../cpmm/curve/calculator.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicKey, Commitment, EpochInfo, Connection, Transaction, Signer, TransactionInstruction, Keypair } from '@solana/web3.js';
|
|
2
|
-
import { aB as TxBuilder, at as AddInstructionParam, ad as BigNumberish, bo as CreateFarm, aA as MakeTxData, bp as CreateFarmExtInfo, bq as UpdateFarmReward, br as UpdateFarmRewards, bs as FarmDWParam, Y as FormatFarmInfoOut, bM as ComputeBudgetConfig, az as MakeMultiTxData, p as ApiV3PoolInfoStandardItem, c9 as Percent, c5 as TokenAmount, w as AmmV4Keys, x as AmmV5Keys, o as ApiV3PoolInfoConcentratedItem, X as FormatFarmInfoOutV6, z as ClmmKeys, bI as MakeTransaction, bR as ReturnTypeFetchMultipleMintInfos, C as CpmmKeys, q as ApiV3PoolInfoStandardItemCpmm, bP as GetTransferAmountFee, B as PoolKeys, i as ApiV3Token, $ as OwnerIdoInfo, a0 as IdoKeysData, bN as LoadParams, J as JupTokenType, bD as TokenInfo, bH as SignAllTransactions, a as Api, Z as AvailabilityCheckAPI3, j as ApiV3TokenRes } from './api-
|
|
2
|
+
import { aB as TxBuilder, at as AddInstructionParam, ad as BigNumberish, bo as CreateFarm, aA as MakeTxData, bp as CreateFarmExtInfo, bq as UpdateFarmReward, br as UpdateFarmRewards, bs as FarmDWParam, Y as FormatFarmInfoOut, bM as ComputeBudgetConfig, az as MakeMultiTxData, p as ApiV3PoolInfoStandardItem, c9 as Percent, c5 as TokenAmount, w as AmmV4Keys, x as AmmV5Keys, o as ApiV3PoolInfoConcentratedItem, X as FormatFarmInfoOutV6, z as ClmmKeys, bI as MakeTransaction, bR as ReturnTypeFetchMultipleMintInfos, C as CpmmKeys, q as ApiV3PoolInfoStandardItemCpmm, bP as GetTransferAmountFee, B as PoolKeys, i as ApiV3Token, $ as OwnerIdoInfo, a0 as IdoKeysData, bN as LoadParams, J as JupTokenType, bD as TokenInfo, bH as SignAllTransactions, a as Api, Z as AvailabilityCheckAPI3, j as ApiV3TokenRes } from './api-11ffb196.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';
|
|
@@ -10,7 +10,7 @@ import BN__default from 'bn.js';
|
|
|
10
10
|
import Decimal from 'decimal.js';
|
|
11
11
|
import { AddLiquidityParams, RemoveParams, CreatePoolParam, CreatePoolAddress, ComputeAmountOutParam, ComputeAmountInParam, SwapParam, AmmRpcData } from './raydium/liquidity/type.js';
|
|
12
12
|
import { StableLayout } from './raydium/liquidity/stable.js';
|
|
13
|
-
import { n as CreateConcentratedPool, O as OpenPositionFromBase, q as OpenPositionFromBaseExtInfo, r as OpenPositionFromLiquidity, s as OpenPositionFromLiquidityExtInfo, I as IncreasePositionFromLiquidity, M as ManipulateLiquidityExtInfo, o as IncreasePositionFromBase, D as DecreaseLiquidity, B as ClosePositionExtInfo, t as InitRewardParams, E as InitRewardExtInfo, u as InitRewardsParams, v as SetRewardParams, w as SetRewardsParams, x as CollectRewardParams, y as CollectRewardsParams, H as HarvestAllRewardsParams, F as ClmmRpcData, d as ComputeClmmPoolInfo, m as ReturnTypeFetchMultiplePoolTickArrays } from './type-
|
|
13
|
+
import { n as CreateConcentratedPool, O as OpenPositionFromBase, q as OpenPositionFromBaseExtInfo, r as OpenPositionFromLiquidity, s as OpenPositionFromLiquidityExtInfo, I as IncreasePositionFromLiquidity, M as ManipulateLiquidityExtInfo, o as IncreasePositionFromBase, D as DecreaseLiquidity, B as ClosePositionExtInfo, t as InitRewardParams, E as InitRewardExtInfo, u as InitRewardsParams, v as SetRewardParams, w as SetRewardsParams, x as CollectRewardParams, y as CollectRewardsParams, H as HarvestAllRewardsParams, F as ClmmRpcData, d as ComputeClmmPoolInfo, m as ReturnTypeFetchMultiplePoolTickArrays } from './type-1bf767ed.js';
|
|
14
14
|
import { ClmmPositionLayout, PositionInfoLayout, PoolInfoLayout } from './raydium/clmm/layout.js';
|
|
15
15
|
import { CpmmRpcData, CpmmComputeData, CreateCpmmPoolParam, CreateCpmmPoolAddress, AddCpmmLiquidityParams, WithdrawCpmmLiquidityParams, CpmmSwapParams, ComputePairAmountParams } from './raydium/cpmm/type.js';
|
|
16
16
|
import { ComputeAmountOutLayout, BasicPoolInfo, ReturnTypeGetAllRoute, ComputeRoutePathType, ComputePoolType, ReturnTypeFetchMultipleInfo } from './raydium/tradeV2/type.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PublicKey, Transaction, Signer, Keypair, TransactionInstruction, 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, bP as GetTransferAmountFee, bO as TransferAmountFee, ca as Price, c9 as Percent, c5 as TokenAmount, bM as ComputeBudgetConfig, c7 as Fraction, bD as TokenInfo, z as ClmmKeys } from './api-
|
|
4
|
+
import { o as ApiV3PoolInfoConcentratedItem, d as ApiClmmConfigInfo, i as ApiV3Token, bP as GetTransferAmountFee, bO as TransferAmountFee, ca as Price, c9 as Percent, c5 as TokenAmount, bM as ComputeBudgetConfig, c7 as Fraction, bD as TokenInfo, z as ClmmKeys } from './api-11ffb196.js';
|
|
5
5
|
import { TxVersion } from './common/txTool/txType.js';
|
|
6
6
|
import { ClmmPositionLayout, PoolInfoLayout } from './raydium/clmm/layout.js';
|
|
7
7
|
|
package/package.json
CHANGED
package/src/api/api.ts
CHANGED
|
@@ -173,7 +173,13 @@ export class Api {
|
|
|
173
173
|
return res.data;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
async getJupTokenList(): Promise<
|
|
176
|
+
async getJupTokenList(): Promise<
|
|
177
|
+
(ApiV3Token & {
|
|
178
|
+
daily_volume: number;
|
|
179
|
+
freeze_authority: string | null;
|
|
180
|
+
mint_authority: string | null;
|
|
181
|
+
})[]
|
|
182
|
+
> {
|
|
177
183
|
return this.api.get("", {
|
|
178
184
|
baseURL: this.urlConfigs.JUP_TOKEN_LIST || API_URLS.JUP_TOKEN_LIST,
|
|
179
185
|
});
|
package/src/api/type.ts
CHANGED
|
@@ -158,6 +158,8 @@ export type ApiV3Token = {
|
|
|
158
158
|
decimals: number;
|
|
159
159
|
tags: string[]; // "hasFreeze" | "hasTransferFee" | "token-2022" | "community" | "unknown" ..etc
|
|
160
160
|
extensions: ExtensionsItem;
|
|
161
|
+
freezeAuthority?: string;
|
|
162
|
+
mintAuthority?: string;
|
|
161
163
|
};
|
|
162
164
|
|
|
163
165
|
export type ApiV3TokenRes = {
|
package/src/api/url.ts
CHANGED
|
@@ -3,7 +3,7 @@ export const API_URLS = {
|
|
|
3
3
|
OWNER_BASE_HOST: "https://owner-v1.raydium.io",
|
|
4
4
|
SERVICE_BASE_HOST: "https://service.raydium.io",
|
|
5
5
|
MONITOR_BASE_HOST: "https://monitor.raydium.io",
|
|
6
|
-
|
|
6
|
+
SERVICE_1_BASE_HOST: "https://service-v1.raydium.io",
|
|
7
7
|
|
|
8
8
|
SEND_TRANSACTION: "/send-transaction",
|
|
9
9
|
FARM_ARP: "/main/farm/info",
|
package/src/raydium/raydium.ts
CHANGED
|
@@ -262,7 +262,11 @@ export class Raydium {
|
|
|
262
262
|
const jupList = await this.api.getJupTokenList();
|
|
263
263
|
this.apiData.jupTokenList = {
|
|
264
264
|
fetched: Date.now(),
|
|
265
|
-
data: jupList
|
|
265
|
+
data: jupList.map((t) => ({
|
|
266
|
+
...t,
|
|
267
|
+
mintAuthority: t.mint_authority || undefined,
|
|
268
|
+
freezeAuthority: t.freezeAuthority || undefined,
|
|
269
|
+
})),
|
|
266
270
|
};
|
|
267
271
|
|
|
268
272
|
return this.apiData.jupTokenList.data;
|
|
@@ -51,6 +51,7 @@ export default class TokenModule extends ModuleBase {
|
|
|
51
51
|
programId:
|
|
52
52
|
token.programId ??
|
|
53
53
|
(token.tags.includes("token-2022") ? TOKEN_2022_PROGRAM_ID.toBase58() : TOKEN_PROGRAM_ID.toBase58()),
|
|
54
|
+
tags: token.freezeAuthority ? [...(token.tags || []), "hasFreeze"] : token.tags,
|
|
54
55
|
});
|
|
55
56
|
this._mintGroup.official.add(token.address);
|
|
56
57
|
});
|
|
@@ -64,6 +65,7 @@ export default class TokenModule extends ModuleBase {
|
|
|
64
65
|
programId:
|
|
65
66
|
token.programId ??
|
|
66
67
|
(token.tags.includes("token-2022") ? TOKEN_2022_PROGRAM_ID.toBase58() : TOKEN_PROGRAM_ID.toBase58()),
|
|
68
|
+
mintAuthority: token.mintAuthority,
|
|
67
69
|
});
|
|
68
70
|
this._mintGroup.jup.add(token.address);
|
|
69
71
|
});
|