@rabby-wallet/rabby-api 0.9.18 → 0.9.20-beta.0
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 +2 -1
- package/dist/index.js +6 -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 } 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 } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -1135,5 +1135,6 @@ export declare class OpenApiService {
|
|
|
1135
1135
|
gas_used?: number;
|
|
1136
1136
|
safe_gas_used?: number;
|
|
1137
1137
|
}>;
|
|
1138
|
+
getCexSupportList: () => Promise<ProjectItem[]>;
|
|
1138
1139
|
}
|
|
1139
1140
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -758,6 +758,7 @@ export class OpenApiService {
|
|
|
758
758
|
from_addr: from,
|
|
759
759
|
to_addr: to,
|
|
760
760
|
},
|
|
761
|
+
timeout: 2000,
|
|
761
762
|
});
|
|
762
763
|
return data;
|
|
763
764
|
});
|
|
@@ -768,6 +769,7 @@ export class OpenApiService {
|
|
|
768
769
|
from_addr: from,
|
|
769
770
|
to_addr: to,
|
|
770
771
|
},
|
|
772
|
+
timeout: 2000,
|
|
771
773
|
});
|
|
772
774
|
return data;
|
|
773
775
|
});
|
|
@@ -1509,6 +1511,10 @@ export class OpenApiService {
|
|
|
1509
1511
|
});
|
|
1510
1512
|
return data;
|
|
1511
1513
|
});
|
|
1514
|
+
this.getCexSupportList = () => __awaiter(this, void 0, void 0, function* () {
|
|
1515
|
+
const { data } = yield this.request.get('/v1/cex/supported_list');
|
|
1516
|
+
return data;
|
|
1517
|
+
});
|
|
1512
1518
|
if (store instanceof Promise) {
|
|
1513
1519
|
store.then((resolvedStore) => {
|
|
1514
1520
|
this.store = resolvedStore;
|