@rabby-wallet/rabby-api 0.9.45-beta.1 → 0.9.45
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 +9 -0
- package/dist/index.js +17 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,9 @@ export declare class OpenApiService {
|
|
|
52
52
|
excluded_protocol_ids: string[];
|
|
53
53
|
excluded_chain_ids: string[];
|
|
54
54
|
}) => Promise<TotalBalanceResponse>;
|
|
55
|
+
get24hTotalBalance: (address: string) => Promise<{
|
|
56
|
+
total_usd_value: number;
|
|
57
|
+
}>;
|
|
55
58
|
getPendingCount: (address: string) => Promise<{
|
|
56
59
|
total_count: number;
|
|
57
60
|
chains: ChainWithPendingCount[];
|
|
@@ -108,6 +111,12 @@ export declare class OpenApiService {
|
|
|
108
111
|
listCollection: (params: {
|
|
109
112
|
collection_ids: string;
|
|
110
113
|
}) => Promise<Collection[]>;
|
|
114
|
+
hasNewTxFrom: (params: {
|
|
115
|
+
address: string;
|
|
116
|
+
startTime: number;
|
|
117
|
+
}) => Promise<{
|
|
118
|
+
has_new_tx: boolean;
|
|
119
|
+
}>;
|
|
111
120
|
listTxHisotry: (params: {
|
|
112
121
|
id?: string;
|
|
113
122
|
chain_id?: string;
|
package/dist/index.js
CHANGED
|
@@ -134,6 +134,14 @@ export class OpenApiService {
|
|
|
134
134
|
});
|
|
135
135
|
return data;
|
|
136
136
|
});
|
|
137
|
+
this.get24hTotalBalance = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const { data } = yield this.request.get('/v1/user/total_balance_24h', {
|
|
139
|
+
params: {
|
|
140
|
+
id: address,
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
return data;
|
|
144
|
+
});
|
|
137
145
|
this.getPendingCount = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
138
146
|
const { data } = yield this.request.get('/v1/wallet/pending_tx_count', {
|
|
139
147
|
params: {
|
|
@@ -356,6 +364,15 @@ export class OpenApiService {
|
|
|
356
364
|
});
|
|
357
365
|
return data;
|
|
358
366
|
});
|
|
367
|
+
this.hasNewTxFrom = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
const { data } = yield this.request.get('/v1/user/has_new_tx', {
|
|
369
|
+
params: {
|
|
370
|
+
id: params.address,
|
|
371
|
+
start_time: params.startTime,
|
|
372
|
+
},
|
|
373
|
+
});
|
|
374
|
+
return data;
|
|
375
|
+
});
|
|
359
376
|
this.listTxHisotry = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
360
377
|
const { data } = yield this.request.get('/v1/user/history_list', {
|
|
361
378
|
params,
|