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

adding replyTo field in http request body to submit RFQ #142

Merged
merged 17 commits into from
Feb 5, 2024
Merged

Conversation

jiyoonie9
Copy link
Contributor

No description provided.

…nd test vector change in tbdex repo and update the tbdex submodule
Copy link

changeset-bot bot commented Jan 18, 2024

⚠️ No Changeset found

Latest commit: 5be7dfe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@jiyoonie9 jiyoonie9 changed the title adding replyTo fields inside RfqData. adding replyTo field in http request body to submit RFQ Jan 18, 2024
Copy link
Contributor

github-actions bot commented Jan 18, 2024

TBDocs Report

🛑 Errors: 0
⚠️ Warnings: 5

@tbdex/protocol

  • Project entry file: packages/protocol/src/main.ts

@tbdex/http-client

  • Project entry file: packages/http-client/src/main.ts
📄 File: packages/http-client/src/client.ts
⚠️ docs:tsdoc-escape-right-brace: The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag #L305
⚠️ docs:tsdoc-malformed-inline-tag: Expecting a TSDoc tag starting with "{@" #L305
⚠️ docs:tsdoc-escape-right-brace: The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag #L335
⚠️ docs:tsdoc-malformed-inline-tag: Expecting a TSDoc tag starting with "{@" #L335
⚠️ extractor:ae-unresolved-link: The @link reference could not be resolved: The package "@tbdex/http-client" does not have an export "generateRequestToken" #L337

@tbdex/http-server

  • Project entry file: packages/http-server/src/main.ts

TBDocs Report Updated at 2024-02-05T18:04:40Z 5be7dfe

Copy link
Contributor

@kirahsapong kirahsapong left a comment

Choose a reason for hiding this comment

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

noice!

@@ -48,6 +48,27 @@ describe('POST /exchanges/:exchangeId/rfq', () => {
expect(error.detail).to.include('JSON')
})

it('returns a 400 if create exchange request contains a replyTo which is not a valid URL', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

would be cool to include a test that returns a 202 if all is well

Copy link

Choose a reason for hiding this comment

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

I'm working on a slight refactor of http-server which include heeeella tests. I can add that test in my upcoming PR if it's helpful for getting this one through the door.

Copy link

codecov bot commented Feb 5, 2024

Codecov Report

Merging #142 (5be7dfe) into main (53a8b5d) will increase coverage by 0.29%.
The diff coverage is 84.84%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #142      +/-   ##
==========================================
+ Coverage   78.40%   78.69%   +0.29%     
==========================================
  Files          19       19              
  Lines        1144     1169      +25     
  Branches       95       99       +4     
==========================================
+ Hits          897      920      +23     
- Misses        247      249       +2     
Components Coverage Δ
protocol ∅ <ø> (∅)
http-client 86.83% <78.57%> (-0.25%) ⬇️
http-server 70.12% <89.47%> (+0.87%) ⬆️

@jiyoonie9 jiyoonie9 merged commit 85e5841 into main Feb 5, 2024
14 of 17 checks passed
@jiyoonie9 jiyoonie9 deleted the 137-replyTo branch February 5, 2024 18:09
diehuxx pushed a commit that referenced this pull request Feb 5, 2024
* main:
  adding `replyTo` field in http request body to submit RFQ (#142)
@jiyoonie9 jiyoonie9 linked an issue Feb 6, 2024 that may be closed by this pull request
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.

Introduce Webhooks / Callbacks
4 participants