@rabby-wallet/rabby-api 0.9.30-beta.2 → 0.9.30-beta.4
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 -1
- package/dist/types.d.ts +2 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1018,6 +1018,7 @@ export declare class OpenApiService {
|
|
|
1018
1018
|
usd_value: number;
|
|
1019
1019
|
user_addr: string;
|
|
1020
1020
|
history_type: 'tx' | 'recharge' | 'withdraw';
|
|
1021
|
+
source: string;
|
|
1021
1022
|
}[];
|
|
1022
1023
|
pagination: {
|
|
1023
1024
|
limit: number;
|
|
@@ -1058,7 +1059,6 @@ export declare class OpenApiService {
|
|
|
1058
1059
|
to_chain_id: string;
|
|
1059
1060
|
from_token_id?: string;
|
|
1060
1061
|
q?: string;
|
|
1061
|
-
user_addr?: string;
|
|
1062
1062
|
}) => Promise<{
|
|
1063
1063
|
token_list: (TokenItem & {
|
|
1064
1064
|
trade_volume_24h: 'low' | 'middle' | 'high';
|
package/dist/types.d.ts
CHANGED
|
@@ -1584,6 +1584,8 @@ export interface GasAccountInfo {
|
|
|
1584
1584
|
uuid: string;
|
|
1585
1585
|
has_iap_order: boolean;
|
|
1586
1586
|
no_register: boolean;
|
|
1587
|
+
non_withdrawable_balance: number | undefined;
|
|
1588
|
+
withdrawable_balance: number | undefined;
|
|
1587
1589
|
}
|
|
1588
1590
|
export interface AppChainItem {
|
|
1589
1591
|
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://
|
|
5
|
+
export declare const INITIAL_OPENAPI_URL = "https://gas-account.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://
|
|
19
|
+
export const INITIAL_OPENAPI_URL = 'https://gas-account.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) {
|