コード例 #1
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()
     });
 }
コード例 #2
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()
     });
 }
コード例 #3
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
     });
 }
コード例 #4
0
 internal Hashgraph.TokenInfo ToTokenInfo()
 {
     return(new Hashgraph.TokenInfo
     {
         Token = TokenId.ToAddress(),
         Symbol = Symbol,
         Name = Name,
         Treasury = Treasury.ToAddress(),
         Circulation = TotalSupply,
         Decimals = Decimals,
         Administrator = AdminKey?.ToEndorsement(),
         GrantKycEndorsement = KycKey?.ToEndorsement(),
         SuspendEndorsement = FreezeKey?.ToEndorsement(),
         ConfiscateEndorsement = WipeKey?.ToEndorsement(),
         SupplyEndorsement = SupplyKey?.ToEndorsement(),
         TradableStatus = (Hashgraph.TokenTradableStatus)DefaultFreezeStatus,
         KycStatus = (Hashgraph.TokenKycStatus)DefaultKycStatus,
         Expiration = Expiry.ToDateTime(),
         RenewPeriod = AutoRenewPeriod?.ToTimeSpan(),
         RenewAccount = AutoRenewAccount?.ToAddress(),
         Deleted = Deleted
     });
 }