diff --git a/server/app/com/xsn/explorer/models/AddressDetails.scala b/server/app/com/xsn/explorer/models/AddressDetails.scala index b034cce..1b50fbe 100644 --- a/server/app/com/xsn/explorer/models/AddressDetails.scala +++ b/server/app/com/xsn/explorer/models/AddressDetails.scala @@ -1,5 +1,6 @@ package com.xsn.explorer.models +import com.xsn.explorer.models.rpc.AddressBalance import play.api.libs.json._ case class AddressDetails(balance: AddressBalance, transactionCount: Int) diff --git a/server/app/com/xsn/explorer/models/AddressBalance.scala b/server/app/com/xsn/explorer/models/rpc/AddressBalance.scala similarity index 95% rename from server/app/com/xsn/explorer/models/AddressBalance.scala rename to server/app/com/xsn/explorer/models/rpc/AddressBalance.scala index 5e38750..38759d9 100644 --- a/server/app/com/xsn/explorer/models/AddressBalance.scala +++ b/server/app/com/xsn/explorer/models/rpc/AddressBalance.scala @@ -1,4 +1,4 @@ -package com.xsn.explorer.models +package com.xsn.explorer.models.rpc import com.xsn.explorer.util.Extensions.BigDecimalExt import play.api.libs.functional.syntax._ diff --git a/server/app/com/xsn/explorer/services/XSNService.scala b/server/app/com/xsn/explorer/services/XSNService.scala index 049c048..e80c1a0 100644 --- a/server/app/com/xsn/explorer/services/XSNService.scala +++ b/server/app/com/xsn/explorer/services/XSNService.scala @@ -8,7 +8,7 @@ import com.xsn.explorer.config.RPCConfig import com.xsn.explorer.errors._ import com.xsn.explorer.executors.ExternalServiceExecutionContext import com.xsn.explorer.models._ -import com.xsn.explorer.models.rpc.{Block, Transaction} +import com.xsn.explorer.models.rpc.{AddressBalance, Block, Transaction} import org.scalactic.{Bad, Good} import org.slf4j.LoggerFactory import play.api.libs.json.{JsNull, JsValue, Reads} diff --git a/server/test/com/xsn/explorer/helpers/DummyXSNService.scala b/server/test/com/xsn/explorer/helpers/DummyXSNService.scala index b53e689..3539fe1 100644 --- a/server/test/com/xsn/explorer/helpers/DummyXSNService.scala +++ b/server/test/com/xsn/explorer/helpers/DummyXSNService.scala @@ -2,7 +2,7 @@ package com.xsn.explorer.helpers import com.alexitc.playsonify.core.FutureApplicationResult import com.xsn.explorer.models._ -import com.xsn.explorer.models.rpc.{Block, Transaction} +import com.xsn.explorer.models.rpc.{AddressBalance, Block, Transaction} import com.xsn.explorer.services.XSNService class DummyXSNService extends XSNService { diff --git a/server/test/controllers/AddressesControllerSpec.scala b/server/test/controllers/AddressesControllerSpec.scala index 439ac29..dab25b3 100644 --- a/server/test/controllers/AddressesControllerSpec.scala +++ b/server/test/controllers/AddressesControllerSpec.scala @@ -5,6 +5,7 @@ import com.alexitc.playsonify.core.FutureApplicationResult import com.xsn.explorer.errors.AddressFormatError import com.xsn.explorer.helpers.DummyXSNService import com.xsn.explorer.models._ +import com.xsn.explorer.models.rpc.AddressBalance import com.xsn.explorer.services.XSNService import controllers.common.MyAPISpec import org.scalactic.{One, Or}