@rabby-wallet/rabby-api 0.7.6 → 0.7.7
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 +13 -0
- package/dist/index.js +12 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -516,5 +516,18 @@ export declare class OpenApiService {
|
|
|
516
516
|
getHistoryCurveSupportedList: () => Promise<{
|
|
517
517
|
supported_chains: string[];
|
|
518
518
|
}>;
|
|
519
|
+
getHistoryCurveStatus: (params: {
|
|
520
|
+
id: string;
|
|
521
|
+
}) => Promise<{
|
|
522
|
+
failed_msg: Record<string, string>;
|
|
523
|
+
id: string;
|
|
524
|
+
status: 'pending' | 'running' | 'finished' | 'failed';
|
|
525
|
+
update_at: number;
|
|
526
|
+
}>;
|
|
527
|
+
initHistoryCurve: (params: {
|
|
528
|
+
id: string;
|
|
529
|
+
}) => Promise<{
|
|
530
|
+
success: boolean;
|
|
531
|
+
}>;
|
|
519
532
|
}
|
|
520
533
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -895,13 +895,23 @@ export class OpenApiService {
|
|
|
895
895
|
return data;
|
|
896
896
|
});
|
|
897
897
|
this.getHistoryCurve = (addr) => __awaiter(this, void 0, void 0, function* () {
|
|
898
|
-
const { data } = yield this.request.get('v1/user/history_curve', {
|
|
898
|
+
const { data } = yield this.request.get('/v1/user/history_curve', {
|
|
899
899
|
params: { id: addr },
|
|
900
900
|
});
|
|
901
901
|
return data;
|
|
902
902
|
});
|
|
903
903
|
this.getHistoryCurveSupportedList = () => __awaiter(this, void 0, void 0, function* () {
|
|
904
|
-
const { data } = yield this.request.get('v1/chain/classify_supported_list');
|
|
904
|
+
const { data } = yield this.request.get('/v1/chain/classify_supported_list');
|
|
905
|
+
return data;
|
|
906
|
+
});
|
|
907
|
+
this.getHistoryCurveStatus = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
908
|
+
const { data } = yield this.request.get('/v1/user/history_curve/status', {
|
|
909
|
+
params,
|
|
910
|
+
});
|
|
911
|
+
return data;
|
|
912
|
+
});
|
|
913
|
+
this.initHistoryCurve = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
914
|
+
const { data } = yield this.request.post('/v1/user/history_curve/init', params);
|
|
905
915
|
return data;
|
|
906
916
|
});
|
|
907
917
|
if (store instanceof Promise) {
|
package/dist/types.d.ts
CHANGED
|
@@ -899,7 +899,7 @@ export interface CollectionWithFloorPrice {
|
|
|
899
899
|
name: string;
|
|
900
900
|
floor_price: number;
|
|
901
901
|
}
|
|
902
|
-
export declare type TypedDataActionName = 'permit1_approve_token' | 'swap_token_order' | 'permit2_approve_token' | 'sell_nft_order' | 'sign_multisig' | 'buy_nft_order' | 'create_key' | 'verify_address' | 'sell_nft_list_order' | 'permit2_approve_token_list' | 'create_cobo_safe' | 'submit_safe_role_modification' | 'submit_delegated_address_modification' | 'submit_token_approval_modification';
|
|
902
|
+
export declare type TypedDataActionName = 'permit1_approve_token' | 'swap_token_order' | 'permit2_approve_token' | 'sell_nft_order' | 'sign_multisig' | 'buy_nft_order' | 'create_key' | 'verify_address' | 'sell_nft_list_order' | 'permit2_approve_token_list' | 'create_cobo_safe' | 'submit_safe_role_modification' | 'submit_delegated_address_modification' | 'submit_token_approval_modification' | 'send_token';
|
|
903
903
|
export interface BuyNFTOrderAction {
|
|
904
904
|
expire_at: string;
|
|
905
905
|
pay_token: TokenItem;
|
|
@@ -987,7 +987,7 @@ export interface ParseTypedDataResponse {
|
|
|
987
987
|
action: {
|
|
988
988
|
type: TypedDataActionName;
|
|
989
989
|
expire_at?: number;
|
|
990
|
-
data: SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction;
|
|
990
|
+
data: SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction | SendAction;
|
|
991
991
|
} | null;
|
|
992
992
|
}
|
|
993
993
|
export declare type TextActionName = 'create_key' | 'verify_address';
|