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