public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string address, string error = null, string newContractAddress = null) { var tx = transactionReceiptVO.MapToStorageEntityForUpsert <MongoDbAddressTransaction>(address); tx.UpdateRowDates(); await UpsertDocumentAsync(tx).ConfigureAwait(false); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string address, string error = null, string newContractAddress = null) { var entity = await FindAsync(address, transactionReceiptVO.Transaction.BlockNumber, transactionReceiptVO.TransactionHash).ConfigureAwait(false); if (entity != null) { Records.Remove(entity); } Records.Add(transactionReceiptVO.MapToStorageEntityForUpsert(address)); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO) { var record = await FindByBlockNumberAndHashAsync(transactionReceiptVO.BlockNumber, transactionReceiptVO.TransactionHash); if (record != null) { Records.Remove(record); } Records.Add(transactionReceiptVO.MapToStorageEntityForUpsert()); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string code, bool failedCreatingContract) { var record = await FindByBlockNumberAndHashAsync(transactionReceiptVO.BlockNumber, transactionReceiptVO.TransactionHash); if (record != null) { Records.Remove(record); } Records.Add(transactionReceiptVO.MapToStorageEntityForUpsert(code, failedCreatingContract)); }
public static Transaction MapToStorageEntityForUpsert(this TransactionReceiptVO transactionReceiptVO, string code, bool failedCreatingContract) { return(transactionReceiptVO.MapToStorageEntityForUpsert <Transaction>(code, failedCreatingContract)); }
public static Transaction MapToStorageEntityForUpsert(this TransactionReceiptVO transactionReceiptVO) { return(transactionReceiptVO.MapToStorageEntityForUpsert <Transaction>()); }
public Task UpsertAsync(TransactionReceiptVO transactionReceiptVO) { return(UpsertDocumentAsync(transactionReceiptVO.MapToStorageEntityForUpsert <CinderTransaction>())); }
public Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string code, bool failedCreatingContract) { return(UpsertDocumentAsync( transactionReceiptVO.MapToStorageEntityForUpsert <CinderTransaction>(code, failedCreatingContract))); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO) { var tx = transactionReceiptVO.MapToStorageEntityForUpsert <CosmosTransaction>(); await UpsertDocumentAsync(tx).ConfigureAwait(false); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string code, bool failedCreatingContract) { var tx = transactionReceiptVO.MapToStorageEntityForUpsert <CosmosTransaction>(code, failedCreatingContract); await UpsertDocumentAsync(tx).ConfigureAwait(false); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string address, string error = null, string newContractAddress = null) { var txEntity = transactionReceiptVO.MapToStorageEntityForUpsert(address); await Write(txEntity); }
public Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string address, string error = null, string newContractAddress = null) { return(UpsertDocumentAsync(transactionReceiptVO.MapToStorageEntityForUpsert <CinderAddressTransaction>(address))); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO) { var txEntity = transactionReceiptVO.MapToStorageEntityForUpsert(); await Write(txEntity).ConfigureAwait(false); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string code, bool failedCreatingContract) { var txEntity = transactionReceiptVO.MapToStorageEntityForUpsert(code, failedCreatingContract); await Write(txEntity).ConfigureAwait(false); }
public async Task UpsertAsync(TransactionReceiptVO transactionReceiptVO, string address, string error = null, string newContractAddress = null) { var tx = transactionReceiptVO.MapToStorageEntityForUpsert <CosmosAddressTransaction>(address); await UpsertDocumentAsync(tx); }