Exemplo n.º 1
0
        public Task <string> SignTransactionAsync(ICeloEthExternalSigner externalSigner, BigInteger chainId, string to, BigInteger amount,
                                                  BigInteger nonce, string data)
        {
            var transaction = new CeloTransactionChainId(to, amount, nonce, data, chainId);

            return(SignTransactionAsync(externalSigner, transaction));
        }
Exemplo n.º 2
0
        public Task <string> SignTransactionAsync(ICeloEthExternalSigner externalSigner, BigInteger chainId, string to, BigInteger amount, string feeCurrency, string gatewayFeeRecipient, BigInteger gatewayFee,
                                                  BigInteger nonce, string data)
        {
            var transaction = new CeloTransactionChainId(to, amount, nonce, feeCurrency, gatewayFeeRecipient, gatewayFee, data, chainId);

            return(SignTransactionAsync(externalSigner, transaction));
        }
 public CeloExternalAccount(ICeloEthExternalSigner externalSigner, BigInteger?chainId = null, string feeCurrency = null, string gatewayFeeRecipient = null, BigInteger?gatewayFee = null)
 {
     ExternalSigner      = externalSigner;
     ChainId             = chainId;
     FeeCurrency         = feeCurrency;
     GatewayFeeRecipient = gatewayFeeRecipient;
     GatewayFee          = gatewayFee;
 }
 public CeloExternalAccount(string address, ICeloEthExternalSigner externalSigner, BigInteger?chainId = null, string feeCurrency = null, string gatewayFeeRecipient = null, BigInteger?gatewayFee = null)
 {
     ChainId             = chainId;
     Address             = address;
     FeeCurrency         = feeCurrency;
     GatewayFeeRecipient = gatewayFeeRecipient;
     GatewayFee          = gatewayFee;
     ExternalSigner      = externalSigner;
 }
Exemplo n.º 5
0
 public Task <string> SignTransactionAsync(ICeloEthExternalSigner externalSigner, Chain chain, string to, BigInteger amount, string feeCurrency, string gatewayFeeRecipient, BigInteger gatewayFee,
                                           BigInteger nonce, BigInteger gasPrice,
                                           BigInteger gasLimit, string data)
 {
     return(SignTransactionAsync(externalSigner, (int)chain, to, amount, feeCurrency, gatewayFeeRecipient, gatewayFee, nonce, gasPrice, gasLimit, data));
 }
Exemplo n.º 6
0
 public Task <string> SignTransactionAsync(ICeloEthExternalSigner externalSigner, Chain chain, string to, BigInteger amount,
                                           BigInteger nonce, BigInteger gasPrice,
                                           BigInteger gasLimit, string data)
 {
     return(SignTransactionAsync(externalSigner, (int)chain, to, amount, nonce, gasPrice, gasLimit, data));
 }
Exemplo n.º 7
0
 public Task <string> SignTransactionAsync(ICeloEthExternalSigner externalSigner, Chain chain, string to, BigInteger amount,
                                           BigInteger nonce)
 {
     return(SignTransactionAsync(externalSigner, (int)chain, to, amount, nonce));
 }
Exemplo n.º 8
0
        private async Task <string> SignTransactionAsync(ICeloEthExternalSigner externalSigner, CeloTransactionChainId transaction)
        {
            await transaction.SignExternallyAsync(externalSigner).ConfigureAwait(false);

            return(transaction.GetRLPEncoded().ToHex());
        }
Exemplo n.º 9
0
 public abstract Task SignExternallyAsync(ICeloEthExternalSigner externalSigner);
 public override async Task SignExternallyAsync(ICeloEthExternalSigner externalSigner)
 {
     await externalSigner.SignAsync(this).ConfigureAwait(false);
 }