public override List <BlockchainTransaction> GetWithdrawHistory(int offset = -1, int limit = -1, string[] orderBy = null) { using (var ethereumwithdrawRepo = SmartContractRepositoryFactory.GetEthereumWithdrawTransactionRepository(DbConnection)) { Console.WriteLine("Get ETH HISTORY"); return(GetHistory <EthereumTransaction.EthereumWithdrawTransaction>(ethereumwithdrawRepo, offset, limit, orderBy)); } }
public override List <BlockchainTransaction> GetAllHistory(out int numberData, string userID, string currency, int offset = -1, int limit = -1, string[] orderBy = null, string search = null, long day = -1) { using (var depositRepo = SmartContractRepositoryFactory.GetEthereumDepositeTransactionRepository(DbConnection)) { using (var withdrawRepo = SmartContractRepositoryFactory.GetEthereumWithdrawTransactionRepository(DbConnection)) { using (var inter = SmartContractRepositoryFactory.GetInternalTransactionRepository(DbConnection)) { return(GetAllHistory <EthereumTransaction.EthereumWithdrawTransaction, EthereumTransaction.EthereumDepositTransaction>(out numberData, userID, currency, withdrawRepo, depositRepo, inter.GetTableName(), offset, limit, orderBy, search)); } } } }
public ReturnObject FakePendingTransaction(EthereumTransaction.EthereumWithdrawTransaction blockchainTransaction) { try { using (var ethereumwithdrawRepo = SmartContractRepositoryFactory.GetEthereumWithdrawTransactionRepository(DbConnection)) { blockchainTransaction.Status = Status.STATUS_PENDING; return(ethereumwithdrawRepo.Insert(blockchainTransaction)); } } catch (Exception e) { return(new ReturnObject { Status = Status.STATUS_ERROR, Message = e.Message }); } }