Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing ledger backend module #1524

Merged
merged 6 commits into from
Jun 5, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changing names
  • Loading branch information
gabor-aranyossy committed Jun 5, 2019
commit 1d9fdc083a9b6304b79025b705a1041768e4b627
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class SandboxIndexAndWriteService(
acceptedTransactions(begin, endAt)
.mapConcat {
case (offset, transaction) =>
TransactionConversion.acceptedToDomainTree(offset, transaction, filter).toList
TransactionConversion.ledgerEntryToDomainTree(offset, transaction, filter).toList
}

override def transactions(
Expand All @@ -112,7 +112,7 @@ class SandboxIndexAndWriteService(
acceptedTransactions(begin, endAt)
.mapConcat {
case (offset, transaction) =>
TransactionConversion.acceptedToDomainFlat(offset, transaction, filter).toList
TransactionConversion.ledgerEntryToDomainFlat(offset, transaction, filter).toList
}

private class OffsetConverter {
Expand Down Expand Up @@ -183,7 +183,7 @@ class SandboxIndexAndWriteService(
getTransactionById(transactionId.unwrap)
.map(_.flatMap {
case (offset, transaction) =>
TransactionConversion.acceptedToDomainFlat(
TransactionConversion.ledgerEntryToDomainFlat(
LedgerOffset.Absolute(LedgerString.assertFromString(offset.toString)),
transaction,
filter)
Expand All @@ -198,7 +198,7 @@ class SandboxIndexAndWriteService(
getTransactionById(transactionId.unwrap)
.map(_.flatMap {
case (offset, transaction) =>
TransactionConversion.acceptedToDomainTree(
TransactionConversion.ledgerEntryToDomainTree(
LedgerOffset.Absolute(LedgerString.assertFromString(offset.toString)),
transaction,
filter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import scala.collection.breakOut

trait TransactionConversion {

def acceptedToDomainFlat(
def ledgerEntryToDomainFlat(
offset: domain.LedgerOffset.Absolute,
trans: LedgerEntry.Transaction,
filter: domain.TransactionFilter
Expand Down Expand Up @@ -56,7 +56,7 @@ trait TransactionConversion {
} else None
}

def acceptedToDomainTree(
def ledgerEntryToDomainTree(
offset: domain.LedgerOffset.Absolute,
trans: LedgerEntry.Transaction,
filter: domain.TransactionFilter): Option[domain.TransactionTree] = {
Expand Down