@rabby-wallet/rabby-api 0.9.6 → 0.9.8-beat.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 +20 -1
- package/dist/index.js +10 -0
- package/dist/types.d.ts +10 -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 } 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 } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -901,9 +901,20 @@ export declare class OpenApiService {
|
|
|
901
901
|
sig: string;
|
|
902
902
|
amount: number;
|
|
903
903
|
account_id: string;
|
|
904
|
+
user_addr: string;
|
|
905
|
+
chain_id: string;
|
|
906
|
+
fee: number;
|
|
904
907
|
}) => Promise<{
|
|
905
908
|
success: boolean;
|
|
906
909
|
}>;
|
|
910
|
+
getWithdrawList: (p: {
|
|
911
|
+
sig: string;
|
|
912
|
+
amount: number;
|
|
913
|
+
account_id: string;
|
|
914
|
+
user_addr: string;
|
|
915
|
+
chain_id: string;
|
|
916
|
+
fee: number;
|
|
917
|
+
}) => Promise<WithdrawListAddressItem[]>;
|
|
907
918
|
getGasAccountHistory: (p: {
|
|
908
919
|
sig: string;
|
|
909
920
|
account_id: string;
|
|
@@ -918,6 +929,14 @@ export declare class OpenApiService {
|
|
|
918
929
|
tx_id: string;
|
|
919
930
|
user_addr: string;
|
|
920
931
|
}[];
|
|
932
|
+
withdraw_list: {
|
|
933
|
+
amount: number;
|
|
934
|
+
chain_id: string;
|
|
935
|
+
create_at: number;
|
|
936
|
+
gas_account_id: string;
|
|
937
|
+
tx_id: string;
|
|
938
|
+
user_addr: string;
|
|
939
|
+
}[];
|
|
921
940
|
history_list: {
|
|
922
941
|
id: string;
|
|
923
942
|
chain_id: string;
|
package/dist/index.js
CHANGED
|
@@ -1282,6 +1282,16 @@ export class OpenApiService {
|
|
|
1282
1282
|
});
|
|
1283
1283
|
return data;
|
|
1284
1284
|
});
|
|
1285
|
+
this.getWithdrawList = (p) => __awaiter(this, void 0, void 0, function* () {
|
|
1286
|
+
const { sig } = p, params = __rest(p, ["sig"]);
|
|
1287
|
+
const { data } = yield this.request.get('/v1/gas_account/withdraw_list', {
|
|
1288
|
+
params,
|
|
1289
|
+
headers: {
|
|
1290
|
+
sig,
|
|
1291
|
+
},
|
|
1292
|
+
});
|
|
1293
|
+
return data;
|
|
1294
|
+
});
|
|
1285
1295
|
this.getGasAccountHistory = (p) => __awaiter(this, void 0, void 0, function* () {
|
|
1286
1296
|
const { sig } = p, params = __rest(p, ["sig"]);
|
|
1287
1297
|
const { data } = yield this.request.get('/v1/gas_account/history', {
|
package/dist/types.d.ts
CHANGED
|
@@ -1381,4 +1381,14 @@ export interface ParseCommonResponse {
|
|
|
1381
1381
|
contract_call_data: ParseTxResponse['contract_call'] | null;
|
|
1382
1382
|
pre_exec?: PreExecResult['pre_exec'];
|
|
1383
1383
|
}
|
|
1384
|
+
export interface RechargeChainItem {
|
|
1385
|
+
chain_id: string;
|
|
1386
|
+
withdraw_limit: number;
|
|
1387
|
+
withdraw_fee: number;
|
|
1388
|
+
}
|
|
1389
|
+
export interface WithdrawListAddressItem {
|
|
1390
|
+
recharge_addr: string;
|
|
1391
|
+
total_withdraw_limit: number;
|
|
1392
|
+
recharge_chain_list: RechargeChainItem[];
|
|
1393
|
+
}
|
|
1384
1394
|
export {};
|