11import { UTxO } from '@meshsdk/core' ;
22import { TradingSymbol , OrderSide , OrderType } from '../models/order' ;
3- import { Asset , TransferStatus } from '../models' ;
3+ import { TransferalType } from '../models/account ' ;
44
55// SignInRequest to be refactored
66export type SignInRequest = {
@@ -16,6 +16,11 @@ export type SignInRequest = {
1616// quantity: number;
1717// };
1818
19+ export type Asset = {
20+ unit : string ;
21+ quantity : string ;
22+ } ;
23+
1924export type BuildDepositTransactionRequest = {
2025 deposit_amount : Asset [ ] ;
2126 input_utxos : UTxO [ ] ;
@@ -36,6 +41,7 @@ export type SubmitWithdrawalTransactionRequest = {
3641export type BuildTransferalTransactionRequest = {
3742 transferal_amount : Asset [ ] ;
3843 to_address : string ;
44+ transferal_type : TransferalType ;
3945} ;
4046
4147export type SubmitTransferalTransactionRequest = {
@@ -45,6 +51,7 @@ export type SubmitTransferalTransactionRequest = {
4551export type BuildTransferalRequestTransactionRequest = {
4652 transferal_amount : Asset [ ] ;
4753 from_address : string ;
54+ transferal_type : TransferalType ;
4855} ;
4956
5057export type SubmitTransferalRequestTransactionRequest = {
@@ -102,6 +109,8 @@ export type GetOrderRecordRequest = {
102109 page ?: number ; // default number is 1 while number must be between 1 and 1000
103110} ;
104111
112+ export type TransferStatus = 'pending' | 'confirmed' ;
113+
105114export type GetTransferalRecordsRequest = {
106115 status : TransferStatus ; // Must be either 'pending' | 'confirmed'
107116 limit ?: number ; // default number is 10 while number must be between 1 and 250
0 commit comments