Browse Source

server: Move TransactionVIN model to rpc package

scalafmt-draft
Alexis Hernandez 7 years ago
parent
commit
a8e161045f
  1. 3
      server/app/com/xsn/explorer/models/rpc/TransactionVIN.scala
  2. 4
      server/app/com/xsn/explorer/services/logic/TransactionLogic.scala
  3. 2
      server/test/controllers/BlocksControllerSpec.scala
  4. 2
      server/test/controllers/TransactionsControllerSpec.scala

3
server/app/com/xsn/explorer/models/TransactionVIN.scala → server/app/com/xsn/explorer/models/rpc/TransactionVIN.scala

@ -1,5 +1,6 @@
package com.xsn.explorer.models
package com.xsn.explorer.models.rpc
import com.xsn.explorer.models.TransactionId
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
import com.xsn.explorer.models.{Address, TransactionVIN, TransactionVOUT}
import com.xsn.explorer.models.rpc.{Transaction, TransactionVIN}
import com.xsn.explorer.models.{Address, TransactionVOUT}
import org.scalactic.{One, Or}
class TransactionLogic {

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}
import com.xsn.explorer.models.rpc.{Block, Transaction, TransactionVIN}
import com.xsn.explorer.services.XSNService
import controllers.common.MyAPISpec
import org.scalactic.{Bad, Good}

2
server/test/controllers/TransactionsControllerSpec.scala

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

Loading…
Cancel
Save