public Task <TransactionReceipt> RenewRequestAndWaitForReceiptAsync(BigInteger ID, BigInteger Duration, CancellationTokenSource CancellationToken = null)
        {
            var RenewFunction = new RenewFunction {
                Id = ID, Duration = Duration
            };

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(RenewFunction, CancellationToken));
        }
        public Task <string> RenewRequestAsync(BigInteger ID, BigInteger Duration)
        {
            var RenewFunction = new RenewFunction {
                Id = ID, Duration = Duration
            };

            return(ContractHandler.SendRequestAsync(RenewFunction));
        }
        public Task <TransactionReceipt> RenewRequestAndWaitForReceiptAsync(string name, BigInteger duration, CancellationTokenSource cancellationToken = null)
        {
            var renewFunction = new RenewFunction();

            renewFunction.Name     = name;
            renewFunction.Duration = duration;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(renewFunction, cancellationToken));
        }
        public Task <string> RenewRequestAsync(string name, BigInteger duration)
        {
            var renewFunction = new RenewFunction();

            renewFunction.Name     = name;
            renewFunction.Duration = duration;

            return(ContractHandler.SendRequestAsync(renewFunction));
        }
        public Task <string> RenewRequestAsync(BigInteger id, BigInteger duration)
        {
            var renewFunction = new RenewFunction();

            renewFunction.Id       = id;
            renewFunction.Duration = duration;

            return(ContractHandler.SendRequestAsync(renewFunction));
        }
Exemple #6
0
        private RenewFunction CreateRenewFunction(string name, int durationInDays, BigInteger weiPrice)
        {
            var duration      = ConvertDurationInSecondsValidatingMinimum(durationInDays);
            var renewFunction = new RenewFunction()
            {
                AmountToSend = weiPrice,
                Duration     = duration,
                Name         = name
            };

            return(renewFunction);
        }
 public Task <TransactionReceipt> RenewRequestAndWaitForReceiptAsync(RenewFunction RenewFunction, CancellationTokenSource CancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(RenewFunction, CancellationToken));
 }
 public Task <string> RenewRequestAsync(RenewFunction RenewFunction)
 {
     return(ContractHandler.SendRequestAsync(RenewFunction));
 }