internal async Task managementVoteAsync(string privateKey, bool accept, List <string> responsibleParties, string voteInfo) { ManagementVoteFunction managementFunction = new ManagementVoteFunction(); managementFunction.GitHash = gitHashByte; managementFunction.AcceptChange = accept; managementFunction.ResponsibleParties = responsibleParties; managementFunction.VoteInfo = voteInfo; Web3 web3 = new Web3(new Account(privateKey)); ChangeManagerService managementService = new ChangeManagerService(web3, this.contractAddress); await managementService.ManagementVoteRequestAsync(managementFunction); }
public Task <TransactionReceipt> ManagementVoteRequestAndWaitForReceiptAsync(ManagementVoteFunction managementVoteFunction, CancellationTokenSource cancellationToken = null) { return(ContractHandler.SendRequestAndWaitForReceiptAsync(managementVoteFunction, cancellationToken)); }
public Task <string> ManagementVoteRequestAsync(ManagementVoteFunction managementVoteFunction) { return(ContractHandler.SendRequestAsync(managementVoteFunction)); }