@rabby-wallet/rabby-api 0.9.23 → 0.9.24-alpha
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/types.d.ts +16 -10
- 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 TransactionMultiAction = 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 | TransactionMultiAction | 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,15 @@ export interface SubmitTokenApprovalModificationAction {
|
|
|
1054
1057
|
logo_url: string;
|
|
1055
1058
|
};
|
|
1056
1059
|
}
|
|
1060
|
+
export declare type MultiAction = TypeDataActionItem[];
|
|
1061
|
+
export declare type TypeDataActionDataItem = SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction | SendAction | SwapOrderAction | RevokeTokenApproveAction | ApproveNFTAction | MultiAction;
|
|
1062
|
+
export interface TypeDataActionItem {
|
|
1063
|
+
type: TypedDataActionName;
|
|
1064
|
+
expire_at?: number;
|
|
1065
|
+
data: TypeDataActionDataItem;
|
|
1066
|
+
}
|
|
1057
1067
|
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;
|
|
1068
|
+
action: TypeDataActionItem | null;
|
|
1063
1069
|
log_id: string;
|
|
1064
1070
|
}
|
|
1065
1071
|
export declare type TextActionName = 'create_key' | 'verify_address';
|