Browse Source

server: Move TransactionVOUT to rpc package

scalafmt-draft
Alexis Hernandez 7 years ago
parent
commit
636c2b509e
  1. 1
      server/app/com/xsn/explorer/models/TransactionValue.scala
  2. 4
      server/app/com/xsn/explorer/models/rpc/TransactionVOUT.scala
  3. 4
      server/app/com/xsn/explorer/services/logic/TransactionLogic.scala
  4. 4
      server/test/com/xsn/explorer/helpers/DataHelper.scala
  5. 2
      server/test/controllers/BlocksControllerSpec.scala

1
server/app/com/xsn/explorer/models/TransactionValue.scala

@ -1,5 +1,6 @@
package com.xsn.explorer.models
import com.xsn.explorer.models.rpc.TransactionVOUT
import play.api.libs.json.{Json, Writes}
case class TransactionValue(address: Address, value: BigDecimal)

4
server/app/com/xsn/explorer/models/TransactionVOUT.scala → server/app/com/xsn/explorer/models/rpc/TransactionVOUT.scala

@ -1,6 +1,6 @@
package com.xsn.explorer.models
package com.xsn.explorer.models.rpc
import com.xsn.explorer.models.rpc.ScriptPubKey
import com.xsn.explorer.models.Address
import play.api.libs.functional.syntax._
import play.api.libs.json.{Reads, __}

4
server/app/com/xsn/explorer/services/logic/TransactionLogic.scala

@ -2,8 +2,8 @@ package com.xsn.explorer.services.logic
import com.alexitc.playsonify.core.ApplicationResult
import com.alexitc.playsonify.models.ApplicationError
import com.xsn.explorer.models.rpc.{Transaction, TransactionVIN}
import com.xsn.explorer.models.{Address, TransactionVOUT}
import com.xsn.explorer.models.Address
import com.xsn.explorer.models.rpc.{Transaction, TransactionVIN, TransactionVOUT}
import org.scalactic.{One, Or}
class TransactionLogic {

4
server/test/com/xsn/explorer/helpers/DataHelper.scala

@ -1,7 +1,7 @@
package com.xsn.explorer.helpers
import com.xsn.explorer.models.rpc.ScriptPubKey
import com.xsn.explorer.models.{Address, TransactionId, TransactionVOUT}
import com.xsn.explorer.models.rpc.{ScriptPubKey, TransactionVOUT}
import com.xsn.explorer.models.{Address, TransactionId}
object DataHelper {

2
server/test/controllers/BlocksControllerSpec.scala

@ -5,7 +5,7 @@ import com.alexitc.playsonify.core.FutureApplicationResult
import com.xsn.explorer.errors.{BlockNotFoundError, TransactionNotFoundError}
import com.xsn.explorer.helpers.{DataHelper, DummyXSNService}
import com.xsn.explorer.models._
import com.xsn.explorer.models.rpc.{Block, Transaction, TransactionVIN}
import com.xsn.explorer.models.rpc.{Block, Transaction, TransactionVIN, TransactionVOUT}
import com.xsn.explorer.services.XSNService
import controllers.common.MyAPISpec
import org.scalactic.{Bad, Good}

Loading…
Cancel
Save