forked from openwallet-foundation/credo-ts
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(presentation-exchange): added PresentationExchangeService (openw…
…allet-foundation#1672) Signed-off-by: Berend Sliedrecht <sliedrecht@berend.io> Signed-off-by: Ariel Gentile <gentilester@gmail.com>
- Loading branch information
1 parent
16720f0
commit 4c17d8d
Showing
14 changed files
with
1,418 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/core/src/modules/presentation-exchange/PresentationExchangeError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { AriesFrameworkError } from '../../error' | ||
|
||
export class PresentationExchangeError extends AriesFrameworkError {} |
25 changes: 25 additions & 0 deletions
25
packages/core/src/modules/presentation-exchange/PresentationExchangeModule.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { DependencyManager, Module } from '../../plugins' | ||
|
||
import { AgentConfig } from '../../agent/AgentConfig' | ||
|
||
import { PresentationExchangeService } from './PresentationExchangeService' | ||
|
||
/** | ||
* @public | ||
*/ | ||
export class PresentationExchangeModule implements Module { | ||
/** | ||
* Registers the dependencies of the presentation-exchange module on the dependency manager. | ||
*/ | ||
public register(dependencyManager: DependencyManager) { | ||
// Warn about experimental module | ||
dependencyManager | ||
.resolve(AgentConfig) | ||
.logger.warn( | ||
"The 'PresentationExchangeModule' module is experimental and could have unexpected breaking changes. When using this module, make sure to use strict versions for all @aries-framework packages." | ||
) | ||
|
||
// Services | ||
dependencyManager.registerSingleton(PresentationExchangeService) | ||
} | ||
} |
Oops, something went wrong.