web3/web/src/types.ts
2024-07-26 16:13:13 +07:00

35 lines
660 B
TypeScript

export interface Asset {
name: string;
ticker: string;
assetId: string;
decimalPoint: number;
balance: string;
unlockedBalance: string;
}
export interface Transfer {
amount: string;
assetId: string;
incoming: boolean;
}
export interface Transaction {
isConfirmed: boolean;
txHash: string;
blobSize: number;
timestamp: number;
height: number;
paymentId: string;
comment: string;
fee: string;
isInitiator: boolean;
transfers: Transfer[];
}
export interface Wallet {
address: string;
alias: string;
balance: string;
assets: Asset[];
transactions: Transaction[];
}