public ContractTransaction(string bindingId, string name, Profile businessContract, TransactionConfirmation transactionConfirmation) { InitObject(businessContract); TransactionConfirmation = transactionConfirmation; BindingId = bindingId; Name = name; }
private Models.ContractTransaction prepareTxObject(string bindingid, BC.Offchain.Repository.Models.Profile CitizenProfile) { var _dto = CitizenProfile; _dto.TransactedTime = DateTime.Now; _dto.TransactionID = Guid.NewGuid().ToString(); Models.TransactionConfirmation _transactionConfirmation = new Models.TransactionConfirmation() { BlockHash = "0xfa4e2a31506c1f930efc7701ff6ddc1451d08a38a7a9267fe263766b4c7ea2d0", BlockNumber = "1", TransactionHash = "", Name = "Fake Contract", ProxyId = "Fake Contract_Proxy ID", TransactionIndex = "1" }; Models.ContractTransaction _txInformation = new Models.ContractTransaction(bindingid, " Enterprise Smart Contract transacted.....", _dto, _transactionConfirmation); return(_txInformation); }
public TransactionConfirmation(TransactionConfirmation other) { }