Skip to content

Commit

Permalink
feat(prism-agent): bump dependencies version
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Losoponkul committed Dec 9, 2022
1 parent d2af7f9 commit d168c8e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
10 changes: 5 additions & 5 deletions prism-agent/service/project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ object Dependencies {
val zio = "2.0.4"
val zioConfig = "3.0.2"
val zioHttp = "2.0.0-RC11"
val zioInteropCats = "22.0.0.0"
val zioInteropCats = "3.3.0" // scala-steward:off
val akka = "2.6.20"
val akkaHttp = "10.2.9"
val castor = "0.4.0"
val pollux = "0.6.0"
val connect = "0.3.0"
val castor = "0.4.1"
val pollux = "0.7.0"
val connect = "0.3.1"
val bouncyCastle = "1.70"
val logback = "1.4.5"
val mercury = "0.8.0"
val mercury = "0.10.1"
val zioJson = "0.3.0"
val tapir = "1.2.3"
}
Expand Down
2 changes: 1 addition & 1 deletion prism-agent/service/project/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.9")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addDependencyTreePlugin
//addDependencyTreePlugin

libraryDependencies ++= Seq("org.openapitools" % "openapi-generator" % "6.0.1")
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object BackgroundJobs {
_ <- ZIO.logDebug(s"Running action with records => $record")
_ <- record match {
// Offer should be sent from Issuer to Holder
case IssueCredentialRecord(id, _, _, _, _, Role.Issuer, _, _, _, _, OfferPending, _, Some(offer), _, _) =>
case IssueCredentialRecord(id, _, _, _, _, Role.Issuer, _, _, _, _, OfferPending, _, Some(offer), _, _, _) =>
(for {
_ <- ZIO.log(s"IssueCredentialRecord: OfferPending (START)")
didComm <- ZIO.service[DidComm]
Expand All @@ -56,15 +56,32 @@ object BackgroundJobs {
} yield ()): ZIO[DidComm & CredentialService, CredentialServiceError | MercuryException, Unit]

// Request should be sent from Holder to Issuer
case IssueCredentialRecord(id, _, _, _, _, Role.Holder, _, _, _, _, RequestPending, _, _, Some(request), _) =>
case IssueCredentialRecord(
id,
_,
_,
_,
_,
Role.Holder,
_,
_,
_,
_,
RequestPending,
_,
_,
Some(request),
_,
_
) =>
(for {
_ <- sendMessage(request.makeMessage)
credentialService <- ZIO.service[CredentialService]
_ <- credentialService.markRequestSent(id)
} yield ()): ZIO[DidComm & CredentialService, CredentialServiceError | MercuryException, Unit]

// 'automaticIssuance' is TRUE. Issuer automatically accepts the Request
case IssueCredentialRecord(id, _, _, _, _, Role.Issuer, _, _, Some(true), _, RequestReceived, _, _, _, _) =>
case IssueCredentialRecord(id, _, _, _, _, Role.Issuer, _, _, Some(true), _, RequestReceived, _, _, _, _, _) =>
for {
credentialService <- ZIO.service[CredentialService]
_ <- credentialService.acceptCredentialRequest(id)
Expand All @@ -86,7 +103,8 @@ object BackgroundJobs {
_,
_,
_,
Some(issue)
Some(issue),
_
) =>
// Generate the JWT Credential and store it in DB as an attacment to IssueCredentialData
// Set ProtocolState to CredentialGenerated
Expand Down Expand Up @@ -125,7 +143,8 @@ object BackgroundJobs {
None,
_,
_,
Some(issue)
Some(issue),
_
) =>
(for {
_ <- sendMessage(issue.makeMessage)
Expand All @@ -149,16 +168,17 @@ object BackgroundJobs {
Some(Published),
_,
_,
Some(issue)
Some(issue),
_
) =>
(for {
_ <- sendMessage(issue.makeMessage)
credentialService <- ZIO.service[CredentialService]
_ <- credentialService.markCredentialSent(id)
} yield ()): ZIO[DidComm & CredentialService, CredentialServiceError | MercuryException, Unit]

case IssueCredentialRecord(id, _, _, _, _, _, _, _, _, _, ProblemReportPending, _, _, _, _) => ???
case IssueCredentialRecord(id, _, _, _, _, _, _, _, _, _, _, _, _, _, _) => ZIO.unit
case IssueCredentialRecord(id, _, _, _, _, _, _, _, _, _, ProblemReportPending, _, _, _, _, _) => ???
case IssueCredentialRecord(id, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _) => ZIO.unit
}
} yield ()

Expand Down

0 comments on commit d168c8e

Please sign in to comment.