@rabby-wallet/rabby-api 0.8.4 → 0.8.5
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/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare class OpenApiService {
|
|
|
43
43
|
}) => Promise<T>;
|
|
44
44
|
private _mountMethods;
|
|
45
45
|
getRecommendChains: (address: string, origin: string) => Promise<ServerChain[]>;
|
|
46
|
-
getTotalBalance: (address: string) => Promise<TotalBalanceResponse>;
|
|
46
|
+
getTotalBalance: (address: string, isCore?: boolean) => Promise<TotalBalanceResponse>;
|
|
47
47
|
getPendingCount: (address: string) => Promise<{
|
|
48
48
|
total_count: number;
|
|
49
49
|
chains: ChainWithPendingCount[];
|
package/dist/index.js
CHANGED
|
@@ -114,10 +114,11 @@ export class OpenApiService {
|
|
|
114
114
|
});
|
|
115
115
|
return data;
|
|
116
116
|
});
|
|
117
|
-
this.getTotalBalance = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
this.getTotalBalance = (address, isCore = false) => __awaiter(this, void 0, void 0, function* () {
|
|
118
118
|
const { data } = yield this.request.get('/v1/user/total_balance', {
|
|
119
119
|
params: {
|
|
120
120
|
id: address,
|
|
121
|
+
is_core: isCore,
|
|
121
122
|
},
|
|
122
123
|
});
|
|
123
124
|
return data;
|