Fix/issue 284 299 - #361
Merged
james2177 merged 4 commits intoSep 2, 2026
Merged
Conversation
|
@CHEF-SAVY Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR closes the validation gaps called out in issues #284, #287, #297, and #299 with minimal, focused changes:
srcTokenAddress === dstTokenContractbuild*Messagehelpers remain canonical and verifiableONCHAIN_INTENTS_ENABLED,WS_MAX_CONNECTIONS, andSOROBAN_FEE_PERCENTILE@MaxLength()hardening to signature and other free-form DTO fields with Swagger metadata updatesChanges
1) Same-asset intent guard
srcChain === "stellar"plus identical source/destination contract values2) Canonical signed-message contract harness
build*Messagehelpers3) Env validation coverage
ONCHAIN_INTENTS_ENABLEDas a booleanWS_MAX_CONNECTIONSas a non-negative integerSOROBAN_FEE_PERCENTILEagainst the realFeePercentileunion4) DTO length hardening
@MaxLength()constraints to signature fields and other bounded string inputs88chars base64, with padding accounted for)maxLengthmetadata and documented the DTO rule inCONTRIBUTING.mdValidation
Ran the focused unit coverage for the changed behavior:
npm test -- --runInBand --runTestsByPath src/config/env.validation.spec.ts src/common/stellar-signature.contract.spec.ts src/intents/dto/create-intent.dto.spec.ts src/intents/dto/signature-length.spec.tsThis is a minimal fixset aimed at the requested issues only; broader unrelated repo issues were left alone as requested.
Closes #284
Closes #287
Closes #297
Closes #299