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() }); }
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 }); }