Beispiel #1
0
 internal Hashgraph.ExchangeRate ToExchangeRate()
 {
     return(new Hashgraph.ExchangeRate
     {
         HBarEquivalent = HbarEquiv,
         USDCentEquivalent = CentEquiv,
         Expiration = ExpirationTime.ToDateTime()
     });
 }
Beispiel #2
0
 internal Hashgraph.TopicInfo ToTopicInfo()
 {
     return(new Hashgraph.TopicInfo
     {
         Memo = Memo,
         RunningHash = RunningHash.ToArray(),
         SequenceNumber = SequenceNumber,
         Expiration = ExpirationTime.ToDateTime(),
         Administrator = AdminKey?.ToEndorsement(),
         Participant = SubmitKey?.ToEndorsement(),
         AutoRenewPeriod = AutoRenewPeriod.ToTimeSpan(),
         RenewAccount = AutoRenewAccount?.ToAddress()
     });
 }
Beispiel #3
0
 internal Hashgraph.AccountInfo ToAccountInfo()
 {
     return(new Hashgraph.AccountInfo
     {
         Address = AccountID.ToAddress(),
         SmartContractId = ContractAccountID,
         Deleted = Deleted,
         Proxy = ProxyAccountID.ToAddress(),
         ProxiedToAccount = ProxyReceived,
         Endorsement = Key.ToEndorsement(),
         Balance = Balance,
         Tokens = TokenRelationships.ToBalances(),
         ReceiveSignatureRequired = ReceiverSigRequired,
         AutoRenewPeriod = AutoRenewPeriod.ToTimeSpan(),
         Expiration = ExpirationTime.ToDateTime()
     });
 }
Beispiel #4
0
 internal Hashgraph.ContractInfo ToContractInfo()
 {
     return(new Hashgraph.ContractInfo
     {
         Contract = ContractID.ToAddress(),
         Address = AccountID.ToAddress(),
         SmartContractId = ContractAccountID,
         Administrator = AdminKey?.ToEndorsement(),
         Expiration = ExpirationTime.ToDateTime(),
         RenewPeriod = AutoRenewPeriod.ToTimeSpan(),
         Size = Storage,
         Memo = Memo,
         Balance = Balance,
         Tokens = TokenRelationships.ToBalances(),
         Deleted = Deleted
     });
 }