@rabby-wallet/rabby-api 0.9.38-beta.2 → 0.9.39
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 +1 -20
- package/dist/index.js +0 -24
- package/dist/types.d.ts +0 -26
- 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
|
|
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 } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -1272,25 +1272,6 @@ export declare class OpenApiService {
|
|
|
1272
1272
|
}>;
|
|
1273
1273
|
getHotTokenList: () => Promise<TokenDetailWithPriceCurve[]>;
|
|
1274
1274
|
getTokensDetailByUuids: (uuids: string[]) => Promise<TokenDetailWithPriceCurve[]>;
|
|
1275
|
-
getTokenKlineData: (params: {
|
|
1276
|
-
chain_id: string;
|
|
1277
|
-
token_id: string;
|
|
1278
|
-
interval: string;
|
|
1279
|
-
}) => Promise<{
|
|
1280
|
-
data_list: KlineDataItem[];
|
|
1281
|
-
}>;
|
|
1282
|
-
getTokenMarketInfo: (params: {
|
|
1283
|
-
chain_id: string;
|
|
1284
|
-
token_id: string;
|
|
1285
|
-
}) => Promise<TokenMarketInfo>;
|
|
1286
|
-
getTokenHolderInfo: (params: {
|
|
1287
|
-
chain_id: string;
|
|
1288
|
-
token_id: string;
|
|
1289
|
-
}) => Promise<TokenHolderInfo>;
|
|
1290
|
-
getTokenSupplyInfo: (params: {
|
|
1291
|
-
chain_id: string;
|
|
1292
|
-
token_id: string;
|
|
1293
|
-
}) => Promise<TokenSupplyInfo>;
|
|
1294
1275
|
postUserFeedback: (data: {
|
|
1295
1276
|
title: string;
|
|
1296
1277
|
image_url_list: string[];
|
package/dist/index.js
CHANGED
|
@@ -1645,30 +1645,6 @@ export class OpenApiService {
|
|
|
1645
1645
|
});
|
|
1646
1646
|
return data;
|
|
1647
1647
|
});
|
|
1648
|
-
this.getTokenKlineData = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1649
|
-
const { data } = yield this.request.get('/v1/token/market/kline', {
|
|
1650
|
-
params,
|
|
1651
|
-
});
|
|
1652
|
-
return data;
|
|
1653
|
-
});
|
|
1654
|
-
this.getTokenMarketInfo = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1655
|
-
const { data } = yield this.request.get('/v1/token/market/info', {
|
|
1656
|
-
params,
|
|
1657
|
-
});
|
|
1658
|
-
return data;
|
|
1659
|
-
});
|
|
1660
|
-
this.getTokenHolderInfo = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1661
|
-
const { data } = yield this.request.get('/v1/token/market/info/holders', {
|
|
1662
|
-
params,
|
|
1663
|
-
});
|
|
1664
|
-
return data;
|
|
1665
|
-
});
|
|
1666
|
-
this.getTokenSupplyInfo = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1667
|
-
const { data } = yield this.request.get('/v1/token/market/info/supply', {
|
|
1668
|
-
params,
|
|
1669
|
-
});
|
|
1670
|
-
return data;
|
|
1671
|
-
});
|
|
1672
1648
|
this.postUserFeedback = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
1673
1649
|
const { data: response } = yield this.request.post('/v1/feedback/app', data);
|
|
1674
1650
|
return response;
|
package/dist/types.d.ts
CHANGED
|
@@ -227,7 +227,6 @@ export interface TokenItem {
|
|
|
227
227
|
low_credit_score?: boolean;
|
|
228
228
|
cex_ids?: string[];
|
|
229
229
|
fdv?: number | null;
|
|
230
|
-
support_market_data?: boolean;
|
|
231
230
|
}
|
|
232
231
|
export interface TokenItemWithEntity extends TokenItem {
|
|
233
232
|
identity?: TokenEntityDetail;
|
|
@@ -1641,31 +1640,6 @@ export declare type GiftEligibilityItem = {
|
|
|
1641
1640
|
has_eligibility: boolean;
|
|
1642
1641
|
can_claimed_usd_value: number;
|
|
1643
1642
|
};
|
|
1644
|
-
export declare type KlineDataItem = [
|
|
1645
|
-
time_at: number,
|
|
1646
|
-
open: number,
|
|
1647
|
-
high: number,
|
|
1648
|
-
low: number,
|
|
1649
|
-
close: number,
|
|
1650
|
-
volume_amount: number,
|
|
1651
|
-
volume_usd_value: number
|
|
1652
|
-
];
|
|
1653
|
-
export declare type TokenMarketInfo = {
|
|
1654
|
-
market: {
|
|
1655
|
-
volume_amount_24h: number | null;
|
|
1656
|
-
volume_usd_value_24h: number | null;
|
|
1657
|
-
txns_24h: number | null;
|
|
1658
|
-
};
|
|
1659
|
-
};
|
|
1660
|
-
export declare type TokenHolderInfo = {
|
|
1661
|
-
holder_count: number | null;
|
|
1662
|
-
};
|
|
1663
|
-
export declare type TokenSupplyInfo = {
|
|
1664
|
-
market_cap_usd_value: number | null;
|
|
1665
|
-
total_supply: number | null;
|
|
1666
|
-
circulating_supply: number | null;
|
|
1667
|
-
max_supply: number | null;
|
|
1668
|
-
};
|
|
1669
1643
|
export declare type UserFeedbackItem = {
|
|
1670
1644
|
id: string;
|
|
1671
1645
|
title: string;
|