@rabby-wallet/rabby-api 0.9.23 → 0.9.24-alpha.0

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +15 -10
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -948,11 +948,14 @@ export interface PushMultiSigAction {
948
948
  multisig_id: string;
949
949
  }
950
950
  export declare type RevokeNFTCollectionAction = ApproveNFTCollectionAction;
951
+ export declare type MultiAction = TransactionAction[];
952
+ export declare type TransactionActionDataItem = SwapAction | ApproveAction | SendAction | SendNFTAction | ApproveNFTAction | RevokeNFTAction | ApproveNFTCollectionAction | RevokeNFTCollectionAction | RevokeTokenApproveAction | WrapTokenAction | UnWrapTokenAction | PushMultiSigAction | CrossSwapAction | CrossTokenAction | RevokePermit2Action | SwapOrderAction | TransferOwnerAction | MultiSwapAction | SwapLimitPay | MultiAction | null;
953
+ export interface TransactionAction {
954
+ type: string;
955
+ data: TransactionActionDataItem;
956
+ }
951
957
  export interface ParseTxResponse {
952
- action: {
953
- type: string;
954
- data: SwapAction | ApproveAction | SendAction | SendNFTAction | ApproveNFTAction | RevokeNFTAction | ApproveNFTCollectionAction | RevokeNFTCollectionAction | RevokeTokenApproveAction | WrapTokenAction | UnWrapTokenAction | PushMultiSigAction | CrossSwapAction | CrossTokenAction | RevokePermit2Action | SwapOrderAction | TransferOwnerAction | MultiSwapAction | SwapLimitPay | null;
955
- };
958
+ action: TransactionAction;
956
959
  contract_call?: {
957
960
  func: string;
958
961
  contract: {
@@ -970,7 +973,7 @@ export interface CollectionWithFloorPrice {
970
973
  name: string;
971
974
  floor_price: number;
972
975
  }
973
- 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' | 'permit1_revoke_token' | 'swap_order' | 'approve_nft';
976
+ 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' | 'permit1_revoke_token' | 'swap_order' | 'approve_nft' | 'multi_actions';
974
977
  export interface BuyNFTOrderAction {
975
978
  expire_at: string;
976
979
  pay_token: TokenItem;
@@ -1054,12 +1057,14 @@ export interface SubmitTokenApprovalModificationAction {
1054
1057
  logo_url: string;
1055
1058
  };
1056
1059
  }
1060
+ export declare type TypeDataActionDataItem = SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction | SendAction | SwapOrderAction | RevokeTokenApproveAction | ApproveNFTAction | MultiAction;
1061
+ export interface TypeDataActionItem {
1062
+ type: TypedDataActionName;
1063
+ expire_at?: number;
1064
+ data: TypeDataActionDataItem;
1065
+ }
1057
1066
  export interface ParseTypedDataResponse {
1058
- action: {
1059
- type: TypedDataActionName;
1060
- expire_at?: number;
1061
- data: SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction | SendAction | SwapOrderAction | RevokeTokenApproveAction | ApproveNFTAction;
1062
- } | null;
1067
+ action: TypeDataActionItem | null;
1063
1068
  log_id: string;
1064
1069
  }
1065
1070
  export declare type TextActionName = 'create_key' | 'verify_address';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.23",
3
+ "version": "0.9.24-alpha.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [