-
Notifications
You must be signed in to change notification settings - Fork 327
fix(mobula-state): gracefully handle unresolvable symbols #4345
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
Merged
+197
−72
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
dad5aa9
fix(mobula-state): gracefully handle unresolvable symbols
FionnL a34f9bd
Merge branch 'main' into fix/mobula-graceful-unresolvable-symbols
FionnL f11a3d1
fix(mobula-state): add graceful error handling and case-insensitive r…
FionnL fb92605
refactor(mobula-state): simplify case-insensitive handling
FionnL 7857dc0
fix(mobula-state): address code review feedback
FionnL 2eb6146
fix(mobula-state): fix logger usage and add tests for graceful error …
FionnL 413eb4e
test(mobula-state): use EZETH and RSETH instead of BTC in tests
FionnL 9500fc0
test(mobula-state): increase beforeAll timeout to 30s for CI
FionnL 30349c0
fix(mobula-state): handle undefined string in test fixtures
FionnL f3121e2
fix(mobula-state): update includes.json with corrected asset IDs
FionnL c3c1a28
fix(mobula-state): remove WBTC/BTC from includes.json
FionnL ae7c0a6
fix(mobula-state): use GHO instead of EZETH for lowercase test to avo…
FionnL efabd8b
fix: update framework to 2.11.1 and add RSETH cache priming to preven…
FionnL 11901ca
Merge branch 'main' into fix/mobula-graceful-unresolvable-symbols
FionnL 6382f84
test: update snapshots after base branch merge
FionnL f319ee0
Merge branch 'main' into fix/mobula-graceful-unresolvable-symbols
FionnL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| '@chainlink/mobula-state-adapter': patch | ||
| --- | ||
|
|
||
| Fix: Gracefully handle unresolvable symbols and add case-insensitive request handling. | ||
|
|
||
| 1. **Graceful Error Handling**: The adapter now returns `undefined` instead of throwing errors when symbols cannot be resolved to asset IDs in `getAssetId()` and `getQuoteId()`. The subscription message builder skips subscriptions for unresolvable symbols with a warning, preventing the EA from failing to establish WebSocket connections due to background processing errors. | ||
|
|
||
| 2. **Case-Insensitive Requests**: Added `requestTransforms` to uppercase `base` and `quote` parameters and resolve them via `includes.json` before processing. This allows lowercase requests (e.g., `btc/usd`) to work seamlessly. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file removed
BIN
-9.15 MB
.yarn/cache/@chainlink-external-adapter-framework-npm-2.11.0-60f407ab19-7a892deca8.zip
Binary file not shown.
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.