29 lines
893 B
C#
29 lines
893 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WpfApp1TRC20.Data
|
|
{
|
|
public class TokenInfo
|
|
{
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public string Name { get; set; }
|
|
[Required]
|
|
public string Symbol { get; set; }
|
|
public int Decimals { get; set; }
|
|
public decimal TotalSupply { get; set; }
|
|
public string ContractAddress { get; set; }
|
|
public string OwnerAddress { get; set; }
|
|
public DateTime CreationDate { get; set; }
|
|
public DateTime ExpiryDate { get; set; }
|
|
public int ExpiryDays { get; set; }
|
|
public bool IsExpired => DateTime.UtcNow > ExpiryDate;
|
|
public string TransactionHash { get; set; }
|
|
public TokenStatus Status { get; set; }
|
|
}
|
|
}
|