@rabby-wallet/rabby-api 0.7.27 → 0.7.28
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 +20 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -872,6 +872,25 @@ export interface SwapOrderAction {
|
|
|
872
872
|
receiver: string | null;
|
|
873
873
|
expire_at: string | null;
|
|
874
874
|
}
|
|
875
|
+
export interface MaxPayTokenItem extends TokenItem {
|
|
876
|
+
max_amount: number;
|
|
877
|
+
max_raw_amount: string;
|
|
878
|
+
}
|
|
879
|
+
export interface SwapLimitPay {
|
|
880
|
+
pay_token: MaxPayTokenItem;
|
|
881
|
+
receive_token: TokenItem;
|
|
882
|
+
receiver: string;
|
|
883
|
+
}
|
|
884
|
+
export interface MultiSwapAction {
|
|
885
|
+
pay_token_list: TokenItem[];
|
|
886
|
+
receive_token_list: SwapReceiveToken[];
|
|
887
|
+
receiver: string;
|
|
888
|
+
}
|
|
889
|
+
export interface TransferOwnerAction {
|
|
890
|
+
description: string;
|
|
891
|
+
from_addr: string;
|
|
892
|
+
to_addr: string;
|
|
893
|
+
}
|
|
875
894
|
export interface SwapAction {
|
|
876
895
|
pay_token: TokenItem;
|
|
877
896
|
receive_token: SwapReceiveToken;
|
|
@@ -897,7 +916,7 @@ export declare type RevokeNFTCollectionAction = ApproveNFTCollectionAction;
|
|
|
897
916
|
export interface ParseTxResponse {
|
|
898
917
|
action: {
|
|
899
918
|
type: string;
|
|
900
|
-
data: SwapAction | ApproveAction | SendAction | SendNFTAction | ApproveNFTAction | RevokeNFTAction | ApproveNFTCollectionAction | RevokeNFTCollectionAction | RevokeTokenApproveAction | WrapTokenAction | UnWrapTokenAction | PushMultiSigAction | CrossSwapAction | CrossTokenAction | RevokePermit2Action | SwapOrderAction | null;
|
|
919
|
+
data: SwapAction | ApproveAction | SendAction | SendNFTAction | ApproveNFTAction | RevokeNFTAction | ApproveNFTCollectionAction | RevokeNFTCollectionAction | RevokeTokenApproveAction | WrapTokenAction | UnWrapTokenAction | PushMultiSigAction | CrossSwapAction | CrossTokenAction | RevokePermit2Action | SwapOrderAction | TransferOwnerAction | MultiSwapAction | SwapLimitPay | null;
|
|
901
920
|
};
|
|
902
921
|
contract_call?: {
|
|
903
922
|
func: string;
|