@rabby-wallet/rabby-api 0.9.30-beta.4 → 0.9.31-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 +0 -12
- package/dist/index.js +0 -15
- package/dist/types.d.ts +1 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -930,11 +930,6 @@ export declare class OpenApiService {
|
|
|
930
930
|
}) => Promise<{
|
|
931
931
|
account: GasAccountInfo;
|
|
932
932
|
}>;
|
|
933
|
-
checkGasAccountGiftEligibility: (params: {
|
|
934
|
-
id: string;
|
|
935
|
-
}) => Promise<{
|
|
936
|
-
has_eligibility: boolean;
|
|
937
|
-
}>;
|
|
938
933
|
confirmIapOrder: (postData: {
|
|
939
934
|
transaction_id: string;
|
|
940
935
|
device_type: 'android' | 'ios';
|
|
@@ -942,12 +937,6 @@ export declare class OpenApiService {
|
|
|
942
937
|
}) => Promise<{
|
|
943
938
|
req: TxRequest;
|
|
944
939
|
}>;
|
|
945
|
-
claimGasAccountGift: (params: {
|
|
946
|
-
sig: string;
|
|
947
|
-
id: string;
|
|
948
|
-
}) => Promise<{
|
|
949
|
-
success: boolean;
|
|
950
|
-
}>;
|
|
951
940
|
loginGasAccount: (params: {
|
|
952
941
|
sig: string;
|
|
953
942
|
account_id: string;
|
|
@@ -1018,7 +1007,6 @@ export declare class OpenApiService {
|
|
|
1018
1007
|
usd_value: number;
|
|
1019
1008
|
user_addr: string;
|
|
1020
1009
|
history_type: 'tx' | 'recharge' | 'withdraw';
|
|
1021
|
-
source: string;
|
|
1022
1010
|
}[];
|
|
1023
1011
|
pagination: {
|
|
1024
1012
|
limit: number;
|
package/dist/index.js
CHANGED
|
@@ -1297,25 +1297,10 @@ export class OpenApiService {
|
|
|
1297
1297
|
const { data } = yield this.request.post('/v2/gas_account/pay_info', postData);
|
|
1298
1298
|
return data;
|
|
1299
1299
|
});
|
|
1300
|
-
this.checkGasAccountGiftEligibility = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1301
|
-
const { data } = yield this.request.get('/v1/gas_account/check_eligibility', {
|
|
1302
|
-
params,
|
|
1303
|
-
});
|
|
1304
|
-
return data;
|
|
1305
|
-
});
|
|
1306
1300
|
this.confirmIapOrder = (postData) => __awaiter(this, void 0, void 0, function* () {
|
|
1307
1301
|
const { data } = yield this.request.post('/v1/gas_account/confirm_iap_order', postData);
|
|
1308
1302
|
return data;
|
|
1309
1303
|
});
|
|
1310
|
-
this.claimGasAccountGift = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1311
|
-
const { sig } = params, others = __rest(params, ["sig"]);
|
|
1312
|
-
const { data } = yield this.request.post('/v1/gas_account/claim', Object.assign({}, others), {
|
|
1313
|
-
headers: {
|
|
1314
|
-
sig,
|
|
1315
|
-
},
|
|
1316
|
-
});
|
|
1317
|
-
return data;
|
|
1318
|
-
});
|
|
1319
1304
|
this.loginGasAccount = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1320
1305
|
const { sig } = params, others = __rest(params, ["sig"]);
|
|
1321
1306
|
const { data } = yield this.request.post('/v1/gas_account/login', Object.assign({}, others), {
|
package/dist/types.d.ts
CHANGED
|
@@ -1503,6 +1503,7 @@ export interface GasAccountCheckResult {
|
|
|
1503
1503
|
is_gas_account: boolean;
|
|
1504
1504
|
balance_is_enough: boolean;
|
|
1505
1505
|
chain_not_support: boolean;
|
|
1506
|
+
err_msg: string;
|
|
1506
1507
|
}
|
|
1507
1508
|
export interface ParseCommonResponse {
|
|
1508
1509
|
input_type: 'typed_data' | 'text' | 'tx';
|
|
@@ -1584,8 +1585,6 @@ export interface GasAccountInfo {
|
|
|
1584
1585
|
uuid: string;
|
|
1585
1586
|
has_iap_order: boolean;
|
|
1586
1587
|
no_register: boolean;
|
|
1587
|
-
non_withdrawable_balance: number | undefined;
|
|
1588
|
-
withdrawable_balance: number | undefined;
|
|
1589
1588
|
}
|
|
1590
1589
|
export interface AppChainItem {
|
|
1591
1590
|
id: string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CHAINS } from '@debank/common';
|
|
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
export declare const getChain: (chainId?: string) => import("@debank/common").Chain | null;
|
|
4
4
|
export declare const getChainByNetwork: (network?: string | number) => import("@debank/common").Chain | null;
|
|
5
|
-
export declare const INITIAL_OPENAPI_URL = "https://gas-account.rabby-api.debank.dbkops.com/";
|
|
5
|
+
export declare const INITIAL_OPENAPI_URL = "https://gas-account-err-msg.rabby-api.debank.dbkops.com/";
|
|
6
6
|
export declare const INITIAL_TESTNET_OPENAPI_URL = "https://api.testnet.rabby.io/";
|
|
7
7
|
export { CHAINS };
|
|
8
8
|
export declare function genSignParams(config: AxiosRequestConfig): {
|
package/dist/utils.js
CHANGED
|
@@ -16,7 +16,7 @@ export const getChainByNetwork = (network) => {
|
|
|
16
16
|
network = network.toString();
|
|
17
17
|
return chainNetworkDict[network.startsWith('0x') ? +network : network];
|
|
18
18
|
};
|
|
19
|
-
export const INITIAL_OPENAPI_URL = 'https://gas-account.rabby-api.debank.dbkops.com/';
|
|
19
|
+
export const INITIAL_OPENAPI_URL = 'https://gas-account-err-msg.rabby-api.debank.dbkops.com/';
|
|
20
20
|
export const INITIAL_TESTNET_OPENAPI_URL = 'https://api.testnet.rabby.io/';
|
|
21
21
|
export { CHAINS };
|
|
22
22
|
export function genSignParams(config) {
|