@rabby-wallet/rabby-api 0.9.2 → 0.9.3-beta.2
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 +3 -0
- package/dist/index.js +8 -0
- package/dist/types.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -162,6 +162,9 @@ export declare class OpenApiService {
|
|
|
162
162
|
getGasStationChainBalance: (chain_id: string, addr: string) => Promise<{
|
|
163
163
|
usd_value: number;
|
|
164
164
|
}>;
|
|
165
|
+
getApprovalCount: (address: string) => Promise<{
|
|
166
|
+
total_asset_cnt: number;
|
|
167
|
+
}>;
|
|
165
168
|
getGasStationTokenList: () => Promise<TokenItem[]>;
|
|
166
169
|
explainTypedData: (user_addr: string, origin: string, data: any) => Promise<ExplainTypedDataResponse>;
|
|
167
170
|
checkTypedData: (user_addr: string, origin: string, data: any) => Promise<SecurityCheckResponse>;
|
package/dist/index.js
CHANGED
|
@@ -416,6 +416,14 @@ export class OpenApiService {
|
|
|
416
416
|
});
|
|
417
417
|
return data;
|
|
418
418
|
});
|
|
419
|
+
this.getApprovalCount = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
420
|
+
const { data } = yield this.request.get('/v1/user/total_approval_asset_cnt', {
|
|
421
|
+
params: {
|
|
422
|
+
id: address,
|
|
423
|
+
},
|
|
424
|
+
});
|
|
425
|
+
return data;
|
|
426
|
+
});
|
|
419
427
|
this.getGasStationTokenList = () => __awaiter(this, void 0, void 0, function* () {
|
|
420
428
|
const { data } = yield this.request.get('/v1/wallet/gas_station_token_list');
|
|
421
429
|
return data;
|
package/dist/types.d.ts
CHANGED
|
@@ -258,14 +258,14 @@ export interface NFTItem {
|
|
|
258
258
|
id: string;
|
|
259
259
|
contract_id: string;
|
|
260
260
|
inner_id: string;
|
|
261
|
-
token_id
|
|
261
|
+
token_id?: string;
|
|
262
262
|
name: string;
|
|
263
263
|
contract_name: string;
|
|
264
264
|
description: string;
|
|
265
|
-
usd_price
|
|
265
|
+
usd_price?: number;
|
|
266
266
|
amount: number;
|
|
267
267
|
collection_id?: string;
|
|
268
|
-
pay_token
|
|
268
|
+
pay_token?: {
|
|
269
269
|
id: string;
|
|
270
270
|
name: string;
|
|
271
271
|
symbol: string;
|