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

            return(SignTransactionAsync(externalSigner, transaction));
        }
Ejemplo n.º 2
0
        public Task <string> SignTransactionAsync(IEthExternalSigner externalSigner, string to, BigInteger amount, BigInteger nonce,
                                                  BigInteger gasPrice,
                                                  BigInteger gasLimit, string data)
        {
            var transaction = new LegacyTransaction(to, amount, nonce, gasPrice, gasLimit, data);

            return(SignTransactionAsync(externalSigner, transaction));
        }
        public Task <string> SignTransactionAsync(IEthExternalSigner externalSigner, BigInteger chainId, string to, BigInteger amount,
                                                  BigInteger nonce, BigInteger gasPrice,
                                                  BigInteger gasLimit)
        {
            var transaction = new TransactionChainId(to, amount, nonce, gasPrice, gasLimit, chainId);

            return(SignTransactionAsync(externalSigner, transaction));
        }
 public abstract Task SignExternallyAsync(IEthExternalSigner externalSigner);
Ejemplo n.º 5
0
 public ExternalAccount(string address, IEthExternalSigner externalSigner, BigInteger?chainId = null)
 {
     ChainId        = chainId;
     Address        = address;
     ExternalSigner = externalSigner;
 }
Ejemplo n.º 6
0
 public ExternalAccount(IEthExternalSigner externalSigner, BigInteger?chainId = null)
 {
     ExternalSigner = externalSigner;
     ChainId        = chainId;
 }
Ejemplo n.º 7
0
 public EthECKeyExternalSigner(IEthExternalSigner ethExternalSigner)
 {
     _ethExternalSigner = ethExternalSigner;
 }
 public override async Task SignExternallyAsync(IEthExternalSigner externalSigner)
 {
     await externalSigner.SignAsync(this).ConfigureAwait(false);
 }
Ejemplo n.º 9
0
 public Task <string> SignTransactionAsync(IEthExternalSigner 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));
 }
Ejemplo n.º 10
0
 public Task <string> SignTransactionAsync(IEthExternalSigner externalSigner, Chain chain, string to, BigInteger amount,
                                           BigInteger nonce)
 {
     return(SignTransactionAsync(externalSigner, (int)chain, to, amount, nonce));
 }
Ejemplo n.º 11
0
        private async Task <string> SignTransactionAsync(IEthExternalSigner externalSigner, LegacyTransactionChainId transaction)
        {
            await transaction.SignExternallyAsync(externalSigner).ConfigureAwait(false);

            return(transaction.GetRLPEncoded().ToHex());
        }
        public Task <string> SignTransactionAsync(IEthExternalSigner externalSigner, string to, BigInteger amount, BigInteger nonce)
        {
            var transaction = new Transaction(to, amount, nonce);

            return(SignTransactionAsync(externalSigner, transaction));
        }