Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): add discover features protocol #390

Merged

Conversation

TimoGlastra
Copy link
Contributor

Add discover features protocol.

Currently working on aries-toolbox integration where this is required for.

@TimoGlastra TimoGlastra requested a review from a team as a code owner July 16, 2021 22:06
@@ -49,5 +49,8 @@
"rimraf": "~3.0.2",
"tslog": "^3.2.0",
"typescript": "~4.3.0"
},
"resolutions": {
"@types/node": "^15.14.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@types/node v16 was released recently which causes errors with some the types. I'm not sure if it is an error in the types (the error seems weird), so for now we can stick to types of node 15

@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2021

Codecov Report

Merging #390 (b65293c) into main (3331a3c) will decrease coverage by 0.00%.
The diff coverage is 86.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #390      +/-   ##
==========================================
- Coverage   86.42%   86.41%   -0.01%     
==========================================
  Files         234      244      +10     
  Lines        4803     4918     +115     
  Branches      750      763      +13     
==========================================
+ Hits         4151     4250      +99     
- Misses        652      668      +16     
Impacted Files Coverage Δ
packages/core/src/agent/Dispatcher.ts 85.29% <55.55%> (-11.14%) ⬇️
...scover-features/handlers/DiscloseMessageHandler.ts 60.00% <60.00%> (ø)
.../discover-features/handlers/QueryMessageHandler.ts 60.00% <60.00%> (ø)
...odules/discover-features/DiscoverFeaturesModule.ts 79.16% <79.16%> (ø)
...atures/messages/DiscoverFeaturesDiscloseMessage.ts 95.23% <95.23%> (ø)
packages/core/src/agent/Agent.ts 96.87% <100.00%> (+0.06%) ⬆️
packages/core/src/agent/Events.ts 100.00% <100.00%> (ø)
...re/src/modules/discover-features/handlers/index.ts 100.00% <100.00%> (ø)
...ckages/core/src/modules/discover-features/index.ts 100.00% <100.00%> (ø)
...-features/messages/DiscoverFeaturesQueryMessage.ts 100.00% <100.00%> (ø)
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3331a3c...b65293c. Read the comment docs.

Copy link
Contributor

@JamesKEbert JamesKEbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM--I have not tested

@@ -34,6 +36,15 @@ class Dispatcher {

const outboundMessage = await handler.handle(messageContext)

// Emit event that allows to hook into received messages
this.eventEmitter.emit<AgentMessageProcessedEvent>({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really like this addition

@TimoGlastra TimoGlastra merged commit 3347424 into openwallet-foundation:main Jul 20, 2021
@TimoGlastra TimoGlastra deleted the feature/discover-features branch July 20, 2021 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants