@rabby-wallet/rabby-api 0.9.26 → 0.9.27
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 +7 -0
- package/dist/index.js +4 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1223,5 +1223,12 @@ export declare class OpenApiService {
|
|
|
1223
1223
|
}>;
|
|
1224
1224
|
getCexSupportList: () => Promise<ProjectItem[]>;
|
|
1225
1225
|
getAppChainList: (id: string) => Promise<AppChainListResponse>;
|
|
1226
|
+
checkCex: (postData: {
|
|
1227
|
+
chain_id: string;
|
|
1228
|
+
id: string;
|
|
1229
|
+
cex_id: string;
|
|
1230
|
+
}) => Promise<{
|
|
1231
|
+
success: boolean;
|
|
1232
|
+
}>;
|
|
1226
1233
|
}
|
|
1227
1234
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1589,6 +1589,10 @@ export class OpenApiService {
|
|
|
1589
1589
|
});
|
|
1590
1590
|
return data;
|
|
1591
1591
|
});
|
|
1592
|
+
this.checkCex = (postData) => __awaiter(this, void 0, void 0, function* () {
|
|
1593
|
+
const { data } = yield this.request.post('/v1/token/check_cex', postData);
|
|
1594
|
+
return data;
|
|
1595
|
+
});
|
|
1592
1596
|
if (store instanceof Promise) {
|
|
1593
1597
|
store.then((resolvedStore) => {
|
|
1594
1598
|
this.store = resolvedStore;
|
package/dist/types.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export interface CopyTradeTokenItemV2 extends CopyTradeTokenItem {
|
|
|
93
93
|
buy_amount: number;
|
|
94
94
|
buy_usd_value: number;
|
|
95
95
|
pnl_usd_value: number;
|
|
96
|
+
price_change: number;
|
|
96
97
|
}
|
|
97
98
|
export interface CopyTradeTokenListV2Response {
|
|
98
99
|
token_list: CopyTradeTokenItemV2[];
|
|
@@ -939,6 +940,7 @@ export interface AddrDescResponse {
|
|
|
939
940
|
is_spam: boolean | null;
|
|
940
941
|
is_scam: boolean | null;
|
|
941
942
|
name: string;
|
|
943
|
+
id: string;
|
|
942
944
|
};
|
|
943
945
|
}
|
|
944
946
|
export interface SendAction {
|