Skip to content

Commit

Permalink
chore: clean imports warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoKnightIOG committed Jul 14, 2023
1 parent 47b273a commit c8ec3df
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.iohk.atala.event.notification
import java.time.Instant
import java.util.UUID
import zio.IO

case class Event[A](`type`: String, id: UUID, ts: Instant, data: A)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package io.iohk.atala.pollux.sql.repository
import cats.data.NonEmptyList
import doobie.*
import doobie.implicits.*
import doobie.postgres._
import doobie.postgres.implicits._
import io.circe._
import io.circe.parser._
import io.circe.syntax._
import io.iohk.atala.mercury.protocol.presentproof._
import io.iohk.atala.pollux.core.model.PresentationRecord.ProtocolState
import doobie.postgres.*
import doobie.postgres.implicits.*
import io.circe.*
import io.circe.parser.*
import io.circe.syntax.*
import io.iohk.atala.mercury.protocol.presentproof.*
import io.iohk.atala.pollux.core.model.*
import io.iohk.atala.pollux.core.model.PresentationRecord.ProtocolState
import io.iohk.atala.pollux.core.repository.PresentationRepository
import io.iohk.atala.prism.crypto.MerkleInclusionProof
import io.iohk.atala.shared.utils.BytesOps
Expand Down Expand Up @@ -59,7 +59,7 @@ class JdbcPresentationRepository(
// Uncomment to have Doobie LogHandler in scope and automatically output SQL statements in logs
// given logHandler: LogHandler = LogHandler.jdkLogHandler

import PresentationRecord._
import PresentationRecord.*

given didCommIDGet: Get[DidCommID] = Get[String].map(DidCommID(_))
given didCommIDPut: Put[DidCommID] = Put[String].contramap(_.value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ import io.iohk.atala.agent.walletapi.model.ManagedDIDDetail
import io.iohk.atala.castor.controller.http.ManagedDID
import io.iohk.atala.castor.controller.http.ManagedDID.*
import io.iohk.atala.connect.controller.http.Connection
import io.iohk.atala.connect.controller.http.Connection.*
import io.iohk.atala.connect.core.model.ConnectionRecord
import io.iohk.atala.event.notification.{Event, EventNotificationServiceError}
import io.iohk.atala.event.notification.Event
import io.iohk.atala.issue.controller.http.IssueCredentialRecord
import io.iohk.atala.issue.controller.http.IssueCredentialRecord.*
import io.iohk.atala.pollux.core.model.{
IssueCredentialRecord as PolluxIssueCredentialRecord,
PresentationRecord as PolluxPresentationRecord
}
import io.iohk.atala.pollux.core.model.{IssueCredentialRecord as PolluxIssueCredentialRecord, PresentationRecord as PolluxPresentationRecord}
import io.iohk.atala.presentproof.controller.http.PresentationStatus
import zio.*
import zio.json.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.iohk.atala.agent.server

import io.circe.DecodingFailure
import io.circe.ParsingFailure
import io.circe.*
import io.circe.parser.*
import io.iohk.atala.agent.walletapi.model.error.DIDSecretStorageError
import io.iohk.atala.agent.walletapi.service.ManagedDIDService
import io.iohk.atala.connect.core.model.error.ConnectionServiceError
Expand All @@ -14,17 +14,14 @@ import io.iohk.atala.mercury.protocol.connection.{ConnectionRequest, ConnectionR
import io.iohk.atala.mercury.protocol.issuecredential.*
import io.iohk.atala.mercury.protocol.presentproof.*
import io.iohk.atala.mercury.protocol.trustping.TrustPing
import io.iohk.atala.pollux.core.model.error.CredentialServiceError
import io.iohk.atala.pollux.core.model.error.PresentationError
import io.iohk.atala.pollux.core.service.CredentialService
import io.iohk.atala.pollux.core.service.PresentationService
import io.iohk.atala.pollux.core.model.error.{CredentialServiceError, PresentationError}
import io.iohk.atala.pollux.core.service.{CredentialService, PresentationService}
import io.iohk.atala.resolvers.DIDResolver
import java.io.IOException
import zio.*
import zio.http.*
import zio.http.model.*
import io.circe.*
import io.circe.parser.*

import java.io.IOException

object DidCommHttpServer {
def run(didCommServicePort: Int) = {
Expand Down Expand Up @@ -85,7 +82,6 @@ object DidCommHttpServer {
jsonString: String
): ZIO[DidOps & ManagedDIDService, ParseResponse | DIDSecretStorageError, Message] = {
// Needed for implicit conversion from didcommx UnpackResuilt to mercury UnpackMessage
import io.iohk.atala.mercury.model.given
for {
recipientDid <- extractFirstRecipientDid(jsonString).mapError(err => ParseResponse(err))
_ <- ZIO.logInfo(s"Extracted recipient Did => $recipientDid")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ package io.iohk.atala.agent.server
import com.nimbusds.jose.crypto.bc.BouncyCastleProviderSingleton
import io.iohk.atala.agent.server.http.ZioHttpClient
import io.iohk.atala.agent.server.sql.Migrations as AgentMigrations
import io.iohk.atala.agent.walletapi.service.{
ManagedDIDService,
ManagedDIDServiceImpl,
ManagedDIDServiceWithEventNotificationImpl
}
import io.iohk.atala.agent.walletapi.service.{ManagedDIDService, ManagedDIDServiceWithEventNotificationImpl}
import io.iohk.atala.agent.walletapi.sql.JdbcDIDNonSecretStorage
import io.iohk.atala.castor.controller.{DIDControllerImpl, DIDRegistrarControllerImpl}
import io.iohk.atala.castor.core.service.DIDServiceImpl
Expand All @@ -19,18 +15,8 @@ import io.iohk.atala.event.notification.EventNotificationServiceImpl
import io.iohk.atala.issue.controller.IssueControllerImpl
import io.iohk.atala.mercury.*
import io.iohk.atala.pollux.core.service.*
import io.iohk.atala.pollux.credentialschema.controller.{
CredentialSchemaController,
CredentialSchemaControllerImpl,
VerificationPolicyControllerImpl
}
import io.iohk.atala.pollux.sql.repository.{
JdbcCredentialRepository,
JdbcCredentialSchemaRepository,
JdbcPresentationRepository,
JdbcVerificationPolicyRepository,
Migrations as PolluxMigrations
}
import io.iohk.atala.pollux.credentialschema.controller.{CredentialSchemaController, CredentialSchemaControllerImpl, VerificationPolicyControllerImpl}
import io.iohk.atala.pollux.sql.repository.{JdbcCredentialRepository, JdbcCredentialSchemaRepository, JdbcPresentationRepository, JdbcVerificationPolicyRepository, Migrations as PolluxMigrations}
import io.iohk.atala.presentproof.controller.PresentProofControllerImpl
import io.iohk.atala.resolvers.DIDResolver
import io.iohk.atala.system.controller.SystemControllerImpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import zio.json.ast.Json

import java.nio.charset.StandardCharsets
import java.time.{OffsetDateTime, ZoneOffset}
import java.util.UUID

/** A class to represent an an outgoing response for a created credential offer.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.iohk.atala.agent.walletapi.service

import io.iohk.atala.agent.walletapi.crypto.Apollo
import io.iohk.atala.agent.walletapi.model.{ManagedDIDState, ManagedDIDDetail}
import io.iohk.atala.agent.walletapi.model.ManagedDIDDetail
import io.iohk.atala.agent.walletapi.model.error.CommonWalletStorageError
import io.iohk.atala.agent.walletapi.storage.{DIDNonSecretStorage, DIDSecretStorage}
import io.iohk.atala.agent.walletapi.util.SeedResolver
Expand Down

0 comments on commit c8ec3df

Please sign in to comment.