internal async Task createChangeRequestAsync(string privateKey, string gitHash, string additionalInformation, uint estimation, uint costs) { CreateNewChangeRequestFunction changeRequestFunction = new CreateNewChangeRequestFunction(); changeRequestFunction.GitHash = Converter.HashStringToByteArray(gitHash); changeRequestFunction.AdditionalInformation = additionalInformation; changeRequestFunction.Estimation = estimation; changeRequestFunction.Costs = costs; Web3 web3 = new Web3(new Account(privateKey)); ChangeManagerService createService = new ChangeManagerService(web3, this.contractAddress); changeRequestFunction.Gas = 500000; await createService.CreateNewChangeRequestRequestAsync(changeRequestFunction); }
public Task <TransactionReceipt> CreateNewChangeRequestRequestAndWaitForReceiptAsync(CreateNewChangeRequestFunction createNewChangeRequestFunction, CancellationTokenSource cancellationToken = null) { return(ContractHandler.SendRequestAndWaitForReceiptAsync(createNewChangeRequestFunction, cancellationToken)); }
public Task <string> CreateNewChangeRequestRequestAsync(CreateNewChangeRequestFunction createNewChangeRequestFunction) { return(ContractHandler.SendRequestAsync(createNewChangeRequestFunction)); }