@rabby-wallet/rabby-api 0.9.31 → 0.9.33-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 +2 -0
- 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
|
@@ -934,6 +934,7 @@ export declare class OpenApiService {
|
|
|
934
934
|
id: string;
|
|
935
935
|
}) => Promise<{
|
|
936
936
|
has_eligibility: boolean;
|
|
937
|
+
can_claimed_usd_value: number;
|
|
937
938
|
}>;
|
|
938
939
|
confirmIapOrder: (postData: {
|
|
939
940
|
transaction_id: string;
|
|
@@ -1059,6 +1060,7 @@ export declare class OpenApiService {
|
|
|
1059
1060
|
to_chain_id: string;
|
|
1060
1061
|
from_token_id?: string;
|
|
1061
1062
|
q?: string;
|
|
1063
|
+
user_addr?: string;
|
|
1062
1064
|
}) => Promise<{
|
|
1063
1065
|
token_list: (TokenItem & {
|
|
1064
1066
|
trade_volume_24h: 'low' | 'middle' | 'high';
|
package/dist/types.d.ts
CHANGED
|
@@ -226,6 +226,7 @@ export interface TokenItem {
|
|
|
226
226
|
price_24h_change?: number | null;
|
|
227
227
|
low_credit_score?: boolean;
|
|
228
228
|
cex_ids?: string[];
|
|
229
|
+
fdv?: number | null;
|
|
229
230
|
}
|
|
230
231
|
export interface TokenItemWithEntity extends TokenItem {
|
|
231
232
|
identity?: TokenEntityDetail;
|
|
@@ -1503,6 +1504,7 @@ export interface GasAccountCheckResult {
|
|
|
1503
1504
|
is_gas_account: boolean;
|
|
1504
1505
|
balance_is_enough: boolean;
|
|
1505
1506
|
chain_not_support: boolean;
|
|
1507
|
+
err_msg: string;
|
|
1506
1508
|
}
|
|
1507
1509
|
export interface ParseCommonResponse {
|
|
1508
1510
|
input_type: 'typed_data' | 'text' | 'tx';
|
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://api.rabby.io";
|
|
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://api.rabby.io';
|
|
20
20
|
export const INITIAL_TESTNET_OPENAPI_URL = 'https://api.testnet.rabby.io/';
|
|
21
21
|
export { CHAINS };
|
|
22
22
|
export function genSignParams(config) {
|