Skip to content

Commit

Permalink
server: Move the AddressTransactionDetails model to the persisted pac…
Browse files Browse the repository at this point in the history
…kage
  • Loading branch information
AlexITC committed Feb 17, 2019
1 parent b7f91b7 commit 38a83f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import java.sql.Connection

import anorm._
import com.xsn.explorer.data.anorm.parsers.TransactionParsers._
import com.xsn.explorer.models.persisted.Transaction
import com.xsn.explorer.models.{AddressTransactionDetails, TransactionId}
import com.xsn.explorer.models.persisted.{AddressTransactionDetails, Transaction}
import com.xsn.explorer.models.TransactionId

class AddressTransactionDetailsPostgresDAO {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.xsn.explorer.data.anorm.parsers
import anorm.SqlParser.{get, str}
import anorm.~
import com.xsn.explorer.models._
import com.xsn.explorer.models.persisted.Transaction
import com.xsn.explorer.models.persisted.{AddressTransactionDetails, Transaction}

object TransactionParsers {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.xsn.explorer.models
package com.xsn.explorer.models.persisted

import com.xsn.explorer.models.{Address, TransactionId}

case class AddressTransactionDetails(
address: Address,
txid: TransactionId,
time: Long,
received: BigDecimal = 0,
sent: BigDecimal = 0)

0 comments on commit 38a83f2

Please sign in to comment.