Skip to content

Conversation

@Jipperism
Copy link
Contributor

No description provided.

One of the previous PRs introduced a health check endpoint which was
missing the autogenerated code updates.
Without this patch users cannot use their Safe to create marketplace
listings.

This extends the POST /marketplace/orders endpoint to accept a new
multisig payload type. This payload type carries the Safe message hash
and chain id only. Upon receiving this payload the API will get the data
from the Safe message and put it into a signature request.

This patch also adds a command that verifies pending create order
signature requests.

I'm really sorry I had to lower the coverage threshold, but since
bitbeckers big refactor is incoming anyway, it would be best to improve
coverage once the dust has settled.
We already have it, so why not use it?
Since we already have this base error we can keep it DRY.
…listings

Safe integration marketplace listings
@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 26.25% (🎯 24%) 1243 / 4735
🟢 Statements 26.25% (🎯 24%) 1243 / 4735
🟢 Functions 58.03% (🎯 58%) 65 / 112
🟢 Branches 73.14% (🎯 72%) 207 / 283
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/commands/CommandFactory.ts 0% 0% 0% 0% 1-38
src/commands/MarketplaceCreateOrderCommand.ts 0% 0% 0% 0% 1-83
src/controllers/MarketplaceController.ts 0% 0% 0% 0% 1-339
src/controllers/UserController.ts 0% 0% 0% 0% 1-101
src/lib/errors/controller.ts 68% 100% 50% 68% 37-42, 46-47
src/lib/errors/request-parsing.ts 75% 100% 50% 75% 17-18, 22-23
src/lib/marketplace/EOACreateOrderStrategy.ts 0% 0% 0% 0% 1-102
src/lib/marketplace/MarketplaceStrategy.ts 0% 0% 0% 0% 1-19
src/lib/marketplace/MarketplaceStrategyFactory.ts 0% 0% 0% 0% 1-20
src/lib/marketplace/MultisigCreateOrderStrategy.ts 0% 0% 0% 0% 1-194
src/lib/marketplace/errors.ts 0% 0% 0% 0% 1-32
src/lib/marketplace/request-parser.ts 100% 100% 100% 100%
src/lib/marketplace/schemas.ts 100% 100% 100% 100%
src/lib/safe/signature-verification/MarketplaceCreateOrderSignatureVerifier.ts 0% 0% 0% 0% 1-47
src/lib/users/MultisigUpsertStrategy.ts 0% 0% 0% 0% 1-88
src/lib/users/errors.ts 0% 0% 0% 0% 1-12
Generated in workflow #91 for commit fcf1569 by the Vitest Coverage Report Action

@pheuberger pheuberger merged commit d22dd0f into main Apr 10, 2025
3 checks passed
Copy link
Member

@pheuberger pheuberger left a comment

Choose a reason for hiding this comment

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

LFG

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.

3 participants