Пример #1
0
        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);
        }
Пример #2
0
 public Task <TransactionReceipt> ManagementVoteRequestAndWaitForReceiptAsync(ManagementVoteFunction managementVoteFunction, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(managementVoteFunction, cancellationToken));
 }
Пример #3
0
 public Task <string> ManagementVoteRequestAsync(ManagementVoteFunction managementVoteFunction)
 {
     return(ContractHandler.SendRequestAsync(managementVoteFunction));
 }