2023-12-15 10:09:15 +00:00
|
|
|
|
namespace BiblioTech
|
|
|
|
|
{
|
|
|
|
|
public class Transaction<T>
|
|
|
|
|
{
|
|
|
|
|
public Transaction(T tokenAmount, string transactionHash)
|
|
|
|
|
{
|
|
|
|
|
TokenAmount = tokenAmount;
|
|
|
|
|
TransactionHash = transactionHash;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public T TokenAmount { get; }
|
|
|
|
|
public string TransactionHash { get; }
|
2024-09-30 08:59:22 +00:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
if (TokenAmount == null) return "NULL";
|
|
|
|
|
return TokenAmount.ToString()!;
|
|
|
|
|
}
|
2023-12-15 10:09:15 +00:00
|
|
|
|
}
|
|
|
|
|
}
|