@rabby-wallet/rabby-api 0.9.33 → 0.9.34
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 +4 -1
- package/dist/index.js +4 -0
- package/dist/types.d.ts +15 -1
- 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 } 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 } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -936,6 +936,9 @@ 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[]>;
|
|
939
942
|
confirmIapOrder: (postData: {
|
|
940
943
|
transaction_id: string;
|
|
941
944
|
device_type: 'android' | 'ios';
|
package/dist/index.js
CHANGED
|
@@ -1303,6 +1303,10 @@ 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
|
+
});
|
|
1306
1310
|
this.confirmIapOrder = (postData) => __awaiter(this, void 0, void 0, function* () {
|
|
1307
1311
|
const { data } = yield this.request.post('/v1/gas_account/confirm_iap_order', postData);
|
|
1308
1312
|
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,4 +1627,9 @@ export interface TokenDetailWithPriceCurve extends TokenItemWithEntity {
|
|
|
1618
1627
|
price: number;
|
|
1619
1628
|
}[];
|
|
1620
1629
|
}
|
|
1630
|
+
export declare type GiftEligibilityItem = {
|
|
1631
|
+
id?: string;
|
|
1632
|
+
has_eligibility: boolean;
|
|
1633
|
+
can_claimed_usd_value: number;
|
|
1634
|
+
};
|
|
1621
1635
|
export {};
|