コード例 #1
0
        public Task <TransactionReceipt> CastVoteWithReasonRequestAndWaitForReceiptAsync(BigInteger proposalId, byte support, string reason, CancellationTokenSource cancellationToken = null)
        {
            var castVoteWithReasonFunction = new CastVoteWithReasonFunction();

            castVoteWithReasonFunction.ProposalId = proposalId;
            castVoteWithReasonFunction.Support    = support;
            castVoteWithReasonFunction.Reason     = reason;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(castVoteWithReasonFunction, cancellationToken));
        }
コード例 #2
0
        public Task <string> CastVoteWithReasonRequestAsync(BigInteger proposalId, byte support, string reason)
        {
            var castVoteWithReasonFunction = new CastVoteWithReasonFunction();

            castVoteWithReasonFunction.ProposalId = proposalId;
            castVoteWithReasonFunction.Support    = support;
            castVoteWithReasonFunction.Reason     = reason;

            return(ContractHandler.SendRequestAsync(castVoteWithReasonFunction));
        }
コード例 #3
0
 public Task <TransactionReceipt> CastVoteWithReasonRequestAndWaitForReceiptAsync(CastVoteWithReasonFunction castVoteWithReasonFunction, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(castVoteWithReasonFunction, cancellationToken));
 }
コード例 #4
0
 public Task <string> CastVoteWithReasonRequestAsync(CastVoteWithReasonFunction castVoteWithReasonFunction)
 {
     return(ContractHandler.SendRequestAsync(castVoteWithReasonFunction));
 }