diff --git a/src/interfaces/crypto.interface.ts b/src/interfaces/crypto.interface.ts index c5327a7..1d658f3 100644 --- a/src/interfaces/crypto.interface.ts +++ b/src/interfaces/crypto.interface.ts @@ -1,5 +1,6 @@ export interface IUserWalletCryptos { - Crypto?: ICryptoInWalletInfo; + Crypto: ICryptoInWalletInfo; + amount: number; } export interface ICryptoInWalletInfo { @@ -12,6 +13,10 @@ export interface ICryptoInWalletInfo { updated_at: string; } +export interface ICryptoInUserWalletInfo extends ICryptoInWalletInfo { + owned_amount: number; +} + export type IAllTrades = ITrade[]; export interface ITrade { diff --git a/src/interfaces/userdata.interface.ts b/src/interfaces/userdata.interface.ts index a093af2..2588373 100644 --- a/src/interfaces/userdata.interface.ts +++ b/src/interfaces/userdata.interface.ts @@ -1,3 +1,9 @@ +import { + ICryptoInUserWalletInfo, + type ICryptoInWalletInfo, + IUserWalletCryptos, +} from "@/interfaces/crypto.interface"; + export interface IUserData { id: string; firstName: string; @@ -11,4 +17,12 @@ export interface IUserData { age: number; created_at: string; updated_at: string; + //TODO get on register + wallet: IUserWallet; +} + +export interface IUserWallet { + uat: number; + update_interval: number; + owned_cryptos: ICryptoInUserWalletInfo[]; }