@rabby-wallet/rabby-api 0.9.56 → 0.9.57
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/dist/index.d.ts +10 -1
- package/dist/index.js +10 -0
- package/dist/types.d.ts +40 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosAdapter, AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { RateLimitedAxiosInstance } from 'axios-rate-limit';
|
|
3
3
|
import { InitOptions, RabbyApiPlugin } from './plugins/intf';
|
|
4
|
-
import { AddrDescResponse, BridgeAggregator, ApprovalStatus, AssetItem, BasicDappInfo, CEXQuote, Cex, ChainListItem, ChainWithPendingCount, Collection, CollectionList, CollectionWithFloorPrice, ComplexProtocol, ContractCredit, DbkBridgeHistoryItem, ExplainTxResponse, ExplainTypedDataResponse, GasLevel, GetTxResponse, HistoryCurve, LatestExplainTxResponse, MempoolCheckDetail, NFTApprovalResponse, NFTItem, NodeStatus, NodeStatusDetail, ParseTextResponse, ParseTxResponse, ParseTypedDataResponse, PendingTxItem, Protocol, SecurityCheckResponse, ServerChain, SlippageStatus, Summary, SupportedChain, SwapTradeList, TokenApproval, TokenItem, TotalBalanceResponse, Tx, TxAllHistoryResult, TxHistoryResult, TxPushType, TxRequest, UsedChain, BridgeTokenPair, BridgeQuote, BridgeHistory, ContractInfo, GasAccountCheckResult, ParseCommonResponse, WithdrawListAddressItem, BuyCountryItem, BuyQuoteItem, BuyHistoryList, BuyPaymentMethod, GasAccountInfo, TokenEntityDetail, TokenItemWithEntity, ProjectItem, CopyTradeTokenListResponse, CopyTradeRecentBuyListResponse, CopyTradePnlListResponse, AppChainListResponse, CopyTradeTokenListV2Response, CopyTradeRecentBuyListV2Response, CopyTradeTokenItemV2, CopyTradeSameToken, DefaultRPCRes, TokenDetailWithPriceCurve, GiftEligibilityItem, UserFeedbackItem, PerpTopToken, KlineDataItem, TokenMarketInfo, TokenHolderInfo, TokenSupplyInfo, MarketSummary, MarketTradingHistoryItem, TokenHolderSummary, TokenHolderItem, CurrencyItem, PerpBridgeQuote, LiquidityPoolItem, LiquidityPoolHistoryItem, NFTDetail, NFTTradingConfig, PrepareAcceptNFTOfferResponse, PrepareListingNFTResponse, CreateListingNFTOfferResponse, NFTListingResponse, MemeListResponse } from './types';
|
|
4
|
+
import { AddrDescResponse, BridgeAggregator, ApprovalStatus, AssetItem, BasicDappInfo, CEXQuote, Cex, ChainListItem, ChainWithPendingCount, Collection, CollectionList, CollectionWithFloorPrice, ComplexProtocol, ContractCredit, DbkBridgeHistoryItem, ExplainTxResponse, ExplainTypedDataResponse, GasLevel, GetTxResponse, HistoryCurve, LatestExplainTxResponse, MempoolCheckDetail, NFTApprovalResponse, NFTItem, NodeStatus, NodeStatusDetail, ParseTextResponse, ParseTxResponse, ParseTypedDataResponse, PendingTxItem, Protocol, SecurityCheckResponse, ServerChain, SlippageStatus, Summary, SupportedChain, SwapTradeList, TokenApproval, TokenItem, TotalBalanceResponse, Tx, TxAllHistoryResult, TxHistoryResult, TxPushType, TxRequest, UsedChain, BridgeTokenPair, BridgeQuote, BridgeHistory, ContractInfo, GasAccountCheckResult, ParseCommonResponse, WithdrawListAddressItem, BuyCountryItem, BuyQuoteItem, BuyHistoryList, BuyPaymentMethod, GasAccountInfo, TokenEntityDetail, TokenItemWithEntity, ProjectItem, CopyTradeTokenListResponse, CopyTradeRecentBuyListResponse, CopyTradePnlListResponse, AppChainListResponse, CopyTradeTokenListV2Response, CopyTradeRecentBuyListV2Response, CopyTradeTokenItemV2, CopyTradeSameToken, DefaultRPCRes, TokenDetailWithPriceCurve, GiftEligibilityItem, UserFeedbackItem, PerpTopToken, KlineDataItem, TokenMarketInfo, TokenHolderInfo, TokenSupplyInfo, MarketSummary, MarketTradingHistoryItem, TokenHolderSummary, TokenHolderItem, CurrencyItem, PerpBridgeQuote, LiquidityPoolItem, LiquidityPoolHistoryItem, NFTDetail, NFTTradingConfig, PrepareAcceptNFTOfferResponse, PrepareListingNFTResponse, CreateListingNFTOfferResponse, NFTListingResponse, MemeListResponse, TokenMarketCategoryListResponse, TokenMarketTokenListResponse } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -1391,6 +1391,7 @@ export declare class OpenApiService {
|
|
|
1391
1391
|
};
|
|
1392
1392
|
data_list: LiquidityPoolHistoryItem[];
|
|
1393
1393
|
}>;
|
|
1394
|
+
getTokenMarketCategoryList: () => Promise<TokenMarketCategoryListResponse>;
|
|
1394
1395
|
getNFTTradingConfig: () => Promise<NFTTradingConfig>;
|
|
1395
1396
|
getNFTDetail: (params: {
|
|
1396
1397
|
chain_id: string;
|
|
@@ -1487,5 +1488,13 @@ export declare class OpenApiService {
|
|
|
1487
1488
|
limit?: number;
|
|
1488
1489
|
cursor?: string;
|
|
1489
1490
|
}) => Promise<MemeListResponse>;
|
|
1491
|
+
getTokenMarketTokenList: (params: {
|
|
1492
|
+
category_id: string;
|
|
1493
|
+
order_by?: string;
|
|
1494
|
+
order?: 'asc' | 'desc';
|
|
1495
|
+
limit?: number;
|
|
1496
|
+
cursor?: string;
|
|
1497
|
+
version?: string;
|
|
1498
|
+
}) => Promise<TokenMarketTokenListResponse>;
|
|
1490
1499
|
}
|
|
1491
1500
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1786,6 +1786,10 @@ export class OpenApiService {
|
|
|
1786
1786
|
});
|
|
1787
1787
|
return data;
|
|
1788
1788
|
});
|
|
1789
|
+
this.getTokenMarketCategoryList = () => __awaiter(this, void 0, void 0, function* () {
|
|
1790
|
+
const { data } = yield this.request.get('/v1/token/market/category_list');
|
|
1791
|
+
return data;
|
|
1792
|
+
});
|
|
1789
1793
|
this.getNFTTradingConfig = () => __awaiter(this, void 0, void 0, function* () {
|
|
1790
1794
|
const { data } = yield this.request.get('/v1/nft/trading_config');
|
|
1791
1795
|
return data;
|
|
@@ -1848,6 +1852,12 @@ export class OpenApiService {
|
|
|
1848
1852
|
});
|
|
1849
1853
|
return data;
|
|
1850
1854
|
});
|
|
1855
|
+
this.getTokenMarketTokenList = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1856
|
+
const { data } = yield this.request.get('/v1/token/market/token_list', {
|
|
1857
|
+
params,
|
|
1858
|
+
});
|
|
1859
|
+
return data;
|
|
1860
|
+
});
|
|
1851
1861
|
if (store instanceof Promise) {
|
|
1852
1862
|
store.then((resolvedStore) => {
|
|
1853
1863
|
this.store = resolvedStore;
|
package/dist/types.d.ts
CHANGED
|
@@ -2607,4 +2607,44 @@ export interface MemeListResponse {
|
|
|
2607
2607
|
next_cursor: string;
|
|
2608
2608
|
};
|
|
2609
2609
|
}
|
|
2610
|
+
export interface TokenMarketCategoryItem {
|
|
2611
|
+
id: string;
|
|
2612
|
+
name: string;
|
|
2613
|
+
sort_fields: string[];
|
|
2614
|
+
default_sort_by: string;
|
|
2615
|
+
display_order: number;
|
|
2616
|
+
}
|
|
2617
|
+
export interface TokenMarketCategoryListResponse {
|
|
2618
|
+
categories: TokenMarketCategoryItem[];
|
|
2619
|
+
}
|
|
2620
|
+
export interface TokenMarketTokenRelatedItem {
|
|
2621
|
+
id: string;
|
|
2622
|
+
name: string;
|
|
2623
|
+
logo: string;
|
|
2624
|
+
}
|
|
2625
|
+
export interface TokenMarketTokenItem {
|
|
2626
|
+
id: string;
|
|
2627
|
+
chain: string;
|
|
2628
|
+
name: string;
|
|
2629
|
+
symbol: string;
|
|
2630
|
+
display_symbol: string;
|
|
2631
|
+
logo_url: string;
|
|
2632
|
+
is_verified: boolean;
|
|
2633
|
+
is_core: boolean;
|
|
2634
|
+
credit_score: number;
|
|
2635
|
+
price: number;
|
|
2636
|
+
price_24h_change: number;
|
|
2637
|
+
volume_24h: number;
|
|
2638
|
+
fdv: number;
|
|
2639
|
+
launchpad: TokenMarketTokenRelatedItem | null;
|
|
2640
|
+
asset: TokenMarketTokenRelatedItem | null;
|
|
2641
|
+
}
|
|
2642
|
+
export interface TokenMarketTokenListResponse {
|
|
2643
|
+
data_list: TokenMarketTokenItem[];
|
|
2644
|
+
pagination: {
|
|
2645
|
+
limit: number;
|
|
2646
|
+
has_next: boolean;
|
|
2647
|
+
next_cursor: string;
|
|
2648
|
+
};
|
|
2649
|
+
}
|
|
2610
2650
|
export {};
|