示例#1
0
 public PoolInfo(TestApi.Pool pool)
 {
     Time    = ConvUtils.UnixTimeStampToDateTime(pool.Time);
     Hash    = ConvUtils.ConvertHash(pool.Hash);
     TxCount = pool.TransactionsCount;
     Number  = pool.PoolNumber;
 }
示例#2
0
 public TokenTransfer(Release.TokenTransfer t)
 {
     Initiator   = Base58Encoding.Encode(t.Initiator);
     Amount      = t.Amount;
     Time        = ConvUtils.UnixTimeStampToDateTime(t.Time);
     Transaction = ConvUtils.GetTxId(t.Transaction);
 }
示例#3
0
 public AccountData(Release.WalletInfo info)
 {
     Address         = Base58Encoding.Encode(info.Address);
     Balance         = ConvUtils.FormatAmount(info.Balance);
     TxCount         = (int)info.TransactionsNumber;
     FirstTxDateTime = ConvUtils.UnixTimeStampToDateTime(info.FirstTransactionTime);
 }
示例#4
0
 public TokenTransaction(Release.TokenTransaction t, int index)
 {
     Index     = index;
     Id        = ConvUtils.GetTxId(t.Transaction);
     Time      = ConvUtils.UnixTimeStampToDateTime(t.Time);
     Initiator = Base58Encoding.Encode(t.Initiator);
     Method    = t.Method;
     Params    = string.Join(", ", t.Params);
 }
示例#5
0
 public BlockInfo(Release.Pool pool)
 {
     Time    = ConvUtils.UnixTimeStampToDateTime(pool.Time);
     Hash    = ConvUtils.ConvertHash(pool.Hash);
     TxCount = pool.TransactionsCount;
     Number  = pool.PoolNumber;
     Fee     = ConvUtils.FormatAmount(pool.TotalFee);
     Writer  = Base58Encoding.Encode(pool.Writer);
 }
示例#6
0
 public PoolInfo(NodeApi.Pool pool)
 {
     Age     = ConvUtils.GetAge(pool.Time);
     Time    = ConvUtils.UnixTimeStampToDateTime(pool.Time);
     Hash    = ConvUtils.ConvertHashAscii(pool.Hash);
     TxCount = pool.TransactionsCount;
     Status  = true;
     Number  = pool.PoolNumber;
 }