Repository navigation
refactor(client): stop disabling Tinyman v1 and deprecate its options - #45
Merged
Merged
Conversation
The router no longer supports Tinyman v1, and it ignores unknown names in disabledProtocols. So fetchQuote() no longer adds Tinyman to that list, and the composer's Tinyman v1 checks in addTransaction/addMethodCall are gone. _allowNonComposableSwaps and DEPRECATED_PROTOCOLS are kept, marked @deprecated, so this isn't a breaking change. The option is ignored and no longer throws. Both will be removed in the next major version.
Contributor
|
🎉 This PR is included in version 3.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
The Haystack Router no longer supports Tinyman v1 (its swapper and pools were removed router-side). The router ignores protocol names it doesn't know in
disabledProtocols, so the SDK's automatic exclusion ofTinymanalready does nothing.fetchQuoteno longer addsTinymantodisabledProtocols. By default the list is now empty.addTransactionandaddMethodCallno longer check for a Tinyman v1 route. No quote can contain one now._allowNonComposableSwapsis ignored and marked@deprecated. It no longer throws withoptIn/autoOptInor innewQuote().DEPRECATED_PROTOCOLSis kept with the same value and marked@deprecated. It is unused.Both deprecated names stay so this isn't a breaking change. They'll be removed in the next major version.
Also updates the gotcha in
.claude/CLAUDE.mdand a stale sample route in the node-cli README.