@rabby-wallet/rabby-api 0.9.24-alpha.0 → 0.9.24-beta.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.
- package/dist/types.d.ts +11 -15
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ export interface TokenItem {
|
|
|
145
145
|
raw_amount_hex_str?: string;
|
|
146
146
|
price_24h_change?: number | null;
|
|
147
147
|
low_credit_score?: boolean;
|
|
148
|
+
cex_ids?: string[];
|
|
148
149
|
}
|
|
149
150
|
export interface TokenItemWithEntity extends TokenItem {
|
|
150
151
|
identity?: TokenEntityDetail;
|
|
@@ -948,14 +949,11 @@ export interface PushMultiSigAction {
|
|
|
948
949
|
multisig_id: string;
|
|
949
950
|
}
|
|
950
951
|
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
|
-
}
|
|
957
952
|
export interface ParseTxResponse {
|
|
958
|
-
action:
|
|
953
|
+
action: {
|
|
954
|
+
type: string;
|
|
955
|
+
data: SwapAction | ApproveAction | SendAction | SendNFTAction | ApproveNFTAction | RevokeNFTAction | ApproveNFTCollectionAction | RevokeNFTCollectionAction | RevokeTokenApproveAction | WrapTokenAction | UnWrapTokenAction | PushMultiSigAction | CrossSwapAction | CrossTokenAction | RevokePermit2Action | SwapOrderAction | TransferOwnerAction | MultiSwapAction | SwapLimitPay | null;
|
|
956
|
+
};
|
|
959
957
|
contract_call?: {
|
|
960
958
|
func: string;
|
|
961
959
|
contract: {
|
|
@@ -973,7 +971,7 @@ export interface CollectionWithFloorPrice {
|
|
|
973
971
|
name: string;
|
|
974
972
|
floor_price: number;
|
|
975
973
|
}
|
|
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'
|
|
974
|
+
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';
|
|
977
975
|
export interface BuyNFTOrderAction {
|
|
978
976
|
expire_at: string;
|
|
979
977
|
pay_token: TokenItem;
|
|
@@ -1057,14 +1055,12 @@ export interface SubmitTokenApprovalModificationAction {
|
|
|
1057
1055
|
logo_url: string;
|
|
1058
1056
|
};
|
|
1059
1057
|
}
|
|
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
|
-
}
|
|
1066
1058
|
export interface ParseTypedDataResponse {
|
|
1067
|
-
action:
|
|
1059
|
+
action: {
|
|
1060
|
+
type: TypedDataActionName;
|
|
1061
|
+
expire_at?: number;
|
|
1062
|
+
data: SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction | SendAction | SwapOrderAction | RevokeTokenApproveAction | ApproveNFTAction;
|
|
1063
|
+
} | null;
|
|
1068
1064
|
log_id: string;
|
|
1069
1065
|
}
|
|
1070
1066
|
export declare type TextActionName = 'create_key' | 'verify_address';
|