From 7055fcc3db7aa2aa137969cf78f0d2fc610351ee Mon Sep 17 00:00:00 2001 From: Fabio Pinheiro Date: Tue, 17 Jan 2023 13:34:30 +0000 Subject: [PATCH] refactor(mercury): Sort imports (#305) --- mercury/mercury-library/.scalafmt.conf | 2 +- .../src/main/scala/io/iohk/atala/AgentClientAlice.scala | 2 +- .../src/main/scala/io/iohk/atala/mercury/AgentCli.scala | 2 +- .../src/main/scala/io/iohk/atala/mercury/AgentHardCode.scala | 2 +- .../src/main/scala/io/iohk/atala/mercury/AgentService.scala | 2 +- .../agent/src/main/scala/io/iohk/atala/AgentPrograms.scala | 2 +- .../io/iohk/atala/mercury/CoordinateMediationPrograms.scala | 2 +- .../iohk/atala/mercury/protocol/invitation/v2/Invitation.scala | 2 +- .../atala/mercury/protocol/issuecredential/Credential.scala | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mercury/mercury-library/.scalafmt.conf b/mercury/mercury-library/.scalafmt.conf index 2918a90638..8ff98163c6 100644 --- a/mercury/mercury-library/.scalafmt.conf +++ b/mercury/mercury-library/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.5.9 +version = 3.6.1 runner.dialect = scala3 maxColumn = 120 diff --git a/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/AgentClientAlice.scala b/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/AgentClientAlice.scala index d61e7ee6fd..eb252f5574 100644 --- a/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/AgentClientAlice.scala +++ b/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/AgentClientAlice.scala @@ -3,7 +3,7 @@ package io.iohk.atala import zio._ import io.iohk.atala.mercury._ -import io.iohk.atala.mercury.{given} +import io.iohk.atala.mercury.given import io.circe.Printer import io.circe.syntax._ import io.circe.Json._ diff --git a/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/mercury/AgentCli.scala b/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/mercury/AgentCli.scala index cb0e5a4691..47419fa7db 100644 --- a/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/mercury/AgentCli.scala +++ b/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/mercury/AgentCli.scala @@ -10,7 +10,7 @@ import zio.http.service._ import java.io.IOException import org.didcommx.didcomm.DIDComm import io.iohk.atala.QRcode -import io.iohk.atala.mercury.model.{_, given} +import io.iohk.atala.mercury.model.{given, _} import io.iohk.atala.mercury.model.error._ import io.iohk.atala.mercury.protocol.outofbandlogin._ import io.iohk.atala.mercury.protocol.issuecredential._ diff --git a/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/mercury/AgentHardCode.scala b/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/mercury/AgentHardCode.scala index dafc0ecb08..f585daf440 100644 --- a/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/mercury/AgentHardCode.scala +++ b/mercury/mercury-library/agent-cli-didcommx/src/main/scala/io/iohk/atala/mercury/AgentHardCode.scala @@ -4,7 +4,7 @@ import zio._ import io.circe._ import io.circe.syntax._ -import io.iohk.atala.mercury.model.{_, given} +import io.iohk.atala.mercury.model.{given, _} import io.iohk.atala.mercury.protocol.issuecredential._ import java.io.IOException diff --git a/mercury/mercury-library/agent-didcommx/src/main/scala/io/iohk/atala/mercury/AgentService.scala b/mercury/mercury-library/agent-didcommx/src/main/scala/io/iohk/atala/mercury/AgentService.scala index 2406da040f..83af4b1fe2 100644 --- a/mercury/mercury-library/agent-didcommx/src/main/scala/io/iohk/atala/mercury/AgentService.scala +++ b/mercury/mercury-library/agent-didcommx/src/main/scala/io/iohk/atala/mercury/AgentService.scala @@ -6,7 +6,7 @@ import zio._ import org.didcommx.didcomm.model._ import io.iohk.atala.resolvers._ -import io.iohk.atala.mercury.model.{_, given} +import io.iohk.atala.mercury.model.{given, _} import java.util.Base64 import io.iohk.atala.mercury.DidComm diff --git a/mercury/mercury-library/agent/src/main/scala/io/iohk/atala/AgentPrograms.scala b/mercury/mercury-library/agent/src/main/scala/io/iohk/atala/AgentPrograms.scala index 278386363c..8c8fc19792 100644 --- a/mercury/mercury-library/agent/src/main/scala/io/iohk/atala/AgentPrograms.scala +++ b/mercury/mercury-library/agent/src/main/scala/io/iohk/atala/AgentPrograms.scala @@ -6,7 +6,7 @@ import io.circe._ import io.circe.Json._ import io.circe.parser._ import io.circe.JsonObject -import io.iohk.atala.mercury.{_, given} +import io.iohk.atala.mercury.{given, _} import io.iohk.atala.mercury.model._ import io.iohk.atala.mercury.protocol.mailbox.Mailbox.ReadMessage import io.iohk.atala.mercury.protocol.routing._ diff --git a/mercury/mercury-library/agent/src/main/scala/io/iohk/atala/mercury/CoordinateMediationPrograms.scala b/mercury/mercury-library/agent/src/main/scala/io/iohk/atala/mercury/CoordinateMediationPrograms.scala index afbad3ab3e..37aa3fe93d 100644 --- a/mercury/mercury-library/agent/src/main/scala/io/iohk/atala/mercury/CoordinateMediationPrograms.scala +++ b/mercury/mercury-library/agent/src/main/scala/io/iohk/atala/mercury/CoordinateMediationPrograms.scala @@ -7,7 +7,7 @@ import io.circe.syntax._ import io.circe.parser._ import io.circe.JsonObject -import io.iohk.atala.mercury.{_, given} +import io.iohk.atala.mercury.{given, _} import io.iohk.atala.mercury.model._ import io.iohk.atala.mercury.protocol.coordinatemediation._ import io.iohk.atala.mercury.protocol.invitation.v2.Invitation diff --git a/mercury/mercury-library/protocol-invitation/src/main/scala/io/iohk/atala/mercury/protocol/invitation/v2/Invitation.scala b/mercury/mercury-library/protocol-invitation/src/main/scala/io/iohk/atala/mercury/protocol/invitation/v2/Invitation.scala index af3a36adf7..bf0b026e03 100644 --- a/mercury/mercury-library/protocol-invitation/src/main/scala/io/iohk/atala/mercury/protocol/invitation/v2/Invitation.scala +++ b/mercury/mercury-library/protocol-invitation/src/main/scala/io/iohk/atala/mercury/protocol/invitation/v2/Invitation.scala @@ -1,7 +1,7 @@ package io.iohk.atala.mercury.protocol.invitation.v2 import cats.implicits.* import io.circe.syntax.* -import io.circe.{Encoder, Decoder, Json} +import io.circe.{Decoder, Encoder, Json} import io.iohk.atala.mercury.model.* import AttachmentDescriptor.attachmentDescriptorEncoderV2 import io.circe.generic.semiauto._ diff --git a/mercury/mercury-library/protocol-issue-credential/src/main/scala/io/iohk/atala/mercury/protocol/issuecredential/Credential.scala b/mercury/mercury-library/protocol-issue-credential/src/main/scala/io/iohk/atala/mercury/protocol/issuecredential/Credential.scala index 487fc176d7..92351f1164 100644 --- a/mercury/mercury-library/protocol-issue-credential/src/main/scala/io/iohk/atala/mercury/protocol/issuecredential/Credential.scala +++ b/mercury/mercury-library/protocol-issue-credential/src/main/scala/io/iohk/atala/mercury/protocol/issuecredential/Credential.scala @@ -1,5 +1,5 @@ package io.iohk.atala.mercury.protocol.issuecredential -import io.circe.{Encoder, Decoder} +import io.circe.{Decoder, Encoder} import io.circe.generic.semiauto._ import io.iohk.atala.mercury.model.AttachmentDescriptor.attachmentDescriptorEncoderV2 final case class Attribute(name: String, value: String, mimeType: Option[String] = None)