public async Task UpsertAsync(string contractAddress, string code, Nethereum.RPC.Eth.DTOs.Transaction transaction, TransactionReceipt transactionReceipt, bool failedCreatingContract, HexBigInteger blockTimestamp) { var transactionEntity = Nethereum.BlockchainStore.SQL.Transaction.CreateTransaction( transaction, transactionReceipt, failedCreatingContract, blockTimestamp, contractAddress); try { TransactionList.Add(transactionEntity); } catch (System.Exception e) { throw e; } //await InsertOrUpdate(transactionEntity); }
public async Task UpsertAsync(Nethereum.RPC.Eth.DTOs.Transaction transaction, TransactionReceipt transactionReceipt, bool failed, HexBigInteger timeStamp, bool hasVmStack = false, string error = null) { var transactionEntity = Nethereum.BlockchainStore.SQL.Transaction.CreateTransaction(transaction, transactionReceipt, failed, timeStamp, hasVmStack, error); try { TransactionList.Add(transactionEntity); } catch (System.Exception e) { throw e; } //await InsertOrUpdate(transactionEntity); }
public async Task UpsertAsync(string contractAddress, string code, Nethereum.RPC.Eth.DTOs.Transaction transaction) { var contract = Contract.CreateContract(contractAddress, code, transaction); //await InsertOrUpdate(contract); }