@rabby-wallet/rabby-api 0.9.10 → 0.9.11
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 +6 -0
- package/dist/index.js +6 -0
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export declare class OpenApiService {
|
|
|
117
117
|
getAllTxHistory: (params: {
|
|
118
118
|
id: string;
|
|
119
119
|
start_time?: number;
|
|
120
|
+
page_count?: number;
|
|
120
121
|
}, options?: Parameters<typeof this.asyncJob>[1]) => Promise<TxAllHistoryResult>;
|
|
121
122
|
tokenPrice: (tokenName: string) => Promise<{
|
|
122
123
|
change_percent: number;
|
|
@@ -229,6 +230,11 @@ export declare class OpenApiService {
|
|
|
229
230
|
start: string;
|
|
230
231
|
limit: string;
|
|
231
232
|
}) => Promise<SwapTradeList>;
|
|
233
|
+
getSwapTradeListV2: (params: {
|
|
234
|
+
user_addr: string;
|
|
235
|
+
limit: number;
|
|
236
|
+
start_time?: number;
|
|
237
|
+
}) => Promise<SwapTradeList>;
|
|
232
238
|
postSwap: (params: {
|
|
233
239
|
quote: {
|
|
234
240
|
pay_token_id: string;
|
package/dist/index.js
CHANGED
|
@@ -570,6 +570,12 @@ export class OpenApiService {
|
|
|
570
570
|
});
|
|
571
571
|
return data;
|
|
572
572
|
});
|
|
573
|
+
this.getSwapTradeListV2 = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
574
|
+
const { data } = yield this.request.get('/v2/wallet/swap_trade_list', {
|
|
575
|
+
params,
|
|
576
|
+
});
|
|
577
|
+
return data;
|
|
578
|
+
});
|
|
573
579
|
this.postSwap = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
574
580
|
const { data } = yield this.request.post('/v1/wallet/swap_trade', params);
|
|
575
581
|
return data;
|
package/dist/types.d.ts
CHANGED
|
@@ -265,6 +265,8 @@ export interface NFTItem {
|
|
|
265
265
|
usd_price?: number;
|
|
266
266
|
amount: number;
|
|
267
267
|
collection_id?: string;
|
|
268
|
+
collection_name?: string;
|
|
269
|
+
is_core?: boolean;
|
|
268
270
|
pay_token?: {
|
|
269
271
|
id: string;
|
|
270
272
|
name: string;
|
|
@@ -370,6 +372,7 @@ export interface TxHistoryResult {
|
|
|
370
372
|
}
|
|
371
373
|
export interface TxAllHistoryResult extends Omit<TxHistoryResult, 'token_dict'> {
|
|
372
374
|
token_uuid_dict: Record<string, TokenItem>;
|
|
375
|
+
project_dict: TxHistoryResult['project_dict'];
|
|
373
376
|
}
|
|
374
377
|
export interface GasResult {
|
|
375
378
|
estimated_gas_cost_usd_value: number;
|