@rabby-wallet/rabby-api 0.9.33-beta.2 → 0.9.34-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 +1 -4
- package/dist/index.js +0 -4
- package/dist/types.d.ts +10 -6
- 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
|
|
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 } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -936,9 +936,6 @@ export declare class OpenApiService {
|
|
|
936
936
|
has_eligibility: boolean;
|
|
937
937
|
can_claimed_usd_value: number;
|
|
938
938
|
}>;
|
|
939
|
-
checkGasAccountGiftEligibilityBatch: (params: {
|
|
940
|
-
ids: string[];
|
|
941
|
-
}) => Promise<GiftEligibilityItem[]>;
|
|
942
939
|
confirmIapOrder: (postData: {
|
|
943
940
|
transaction_id: string;
|
|
944
941
|
device_type: 'android' | 'ios';
|
package/dist/index.js
CHANGED
|
@@ -1303,10 +1303,6 @@ export class OpenApiService {
|
|
|
1303
1303
|
});
|
|
1304
1304
|
return data;
|
|
1305
1305
|
});
|
|
1306
|
-
this.checkGasAccountGiftEligibilityBatch = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1307
|
-
const { data } = yield this.request.post('/v1/gas_account/check_eligibility/batch', params);
|
|
1308
|
-
return data;
|
|
1309
|
-
});
|
|
1310
1306
|
this.confirmIapOrder = (postData) => __awaiter(this, void 0, void 0, function* () {
|
|
1311
1307
|
const { data } = yield this.request.post('/v1/gas_account/confirm_iap_order', postData);
|
|
1312
1308
|
return data;
|
package/dist/types.d.ts
CHANGED
|
@@ -1600,7 +1600,16 @@ export interface AppChainItem {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
export interface AppChainListResponse {
|
|
1602
1602
|
apps: AppChainItem[];
|
|
1603
|
-
|
|
1603
|
+
error_apps: {
|
|
1604
|
+
create_at: number;
|
|
1605
|
+
id: string;
|
|
1606
|
+
is_support_portfolio: boolean;
|
|
1607
|
+
is_visible: boolean;
|
|
1608
|
+
logo_url: string;
|
|
1609
|
+
name: string;
|
|
1610
|
+
site_url: string;
|
|
1611
|
+
update_at: number;
|
|
1612
|
+
}[];
|
|
1604
1613
|
}
|
|
1605
1614
|
export declare type DefaultRPCRes = {
|
|
1606
1615
|
message: string;
|
|
@@ -1618,9 +1627,4 @@ export interface TokenDetailWithPriceCurve extends TokenItemWithEntity {
|
|
|
1618
1627
|
price: number;
|
|
1619
1628
|
}[];
|
|
1620
1629
|
}
|
|
1621
|
-
export declare type GiftEligibilityItem = {
|
|
1622
|
-
id?: string;
|
|
1623
|
-
has_eligibility: boolean;
|
|
1624
|
-
can_claimed_usd_value: number;
|
|
1625
|
-
};
|
|
1626
1630
|
export {};
|