コード例 #1
0
ファイル: AccountInfo.cs プロジェクト: sannynguyen/Hashgraph
 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()
     });
 }
コード例 #2
0
ファイル: ContractInfo.cs プロジェクト: sannynguyen/Hashgraph
 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
     });
 }