示例#1
0
        public Task <TransactionReceipt> DepositERC20RequestAndWaitForReceiptAsync(string l1Token, string l2Token, BigInteger amount, uint l2Gas, byte[] data, CancellationTokenSource cancellationToken = null)
        {
            var depositERC20Function = new DepositERC20Function();

            depositERC20Function.L1Token = l1Token;
            depositERC20Function.L2Token = l2Token;
            depositERC20Function.Amount  = amount;
            depositERC20Function.L2Gas   = l2Gas;
            depositERC20Function.Data    = data;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(depositERC20Function, cancellationToken));
        }
示例#2
0
        public Task <string> DepositERC20RequestAsync(string l1Token, string l2Token, BigInteger amount, uint l2Gas, byte[] data)
        {
            var depositERC20Function = new DepositERC20Function();

            depositERC20Function.L1Token = l1Token;
            depositERC20Function.L2Token = l2Token;
            depositERC20Function.Amount  = amount;
            depositERC20Function.L2Gas   = l2Gas;
            depositERC20Function.Data    = data;

            return(ContractHandler.SendRequestAsync(depositERC20Function));
        }
示例#3
0
 public Task <TransactionReceipt> DepositERC20RequestAndWaitForReceiptAsync(DepositERC20Function depositERC20Function, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(depositERC20Function, cancellationToken));
 }
示例#4
0
 public Task <string> DepositERC20RequestAsync(DepositERC20Function depositERC20Function)
 {
     return(ContractHandler.SendRequestAsync(depositERC20Function));
 }