diff --git a/.changeset/graceful-unresolvable-symbols.md b/.changeset/graceful-unresolvable-symbols.md deleted file mode 100644 index 7cd5fa01ff..0000000000 --- a/.changeset/graceful-unresolvable-symbols.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@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. diff --git a/MASTERLIST.md b/MASTERLIST.md index d7072aa930..1ef2698a28 100644 --- a/MASTERLIST.md +++ b/MASTERLIST.md @@ -1,4 +1,4 @@ -## Release 1.237.0 +## Release 1.238.0 This document was generated automatically. Please see [Master List Generator](./packages/scripts#master-list-generator) for more info. @@ -143,7 +143,7 @@ This document was generated automatically. Please see [Master List Generator](./ | [market-status](packages/composites/market-status/README.md) | `1.6.1` | `composite` | v3 | Unknown | `external-adapter-framework` | `BACKGROUND_EXECUTE_MS`, `FINNHUB_SECONDARY_ADAPTER_URL (✅)`, `NCFX_ADAPTER_URL (✅)`, `TRADINGHOURS_ADAPTER_URL (✅)` | `market-status`, `multi-market-status` | `market-status` | | | [✅](packages/composites/market-status/test/integration) | | | [medianizer](packages/composites/medianizer/README.md) | `1.2.44` | `composite` | v2 | Unknown | | | `medianizer` | `medianizer` | | [✅](packages/composites/medianizer/test/unit) | [✅](packages/composites/medianizer/test/integration) | | | [messari](packages/sources/messari/README.md) | `1.2.47` | `source` | v2 | `https://data.messari.io/api/v1/` | | `API_ENDPOINT`, `API_KEY` | `assets`, `dominance` | `assets` | | [✅](packages/sources/messari/test/unit) | | | -| [mobula-state](packages/sources/mobula-state/README.md) | `2.0.0` | `source` | v3 | Unknown | `external-adapter-framework` | `API_KEY (✅)`, `WS_API_ENDPOINT`, `WS_FUNDING_RATE_API_ENDPOINT` | `crypto`, `funding-rate`, `price`, `state` | `price` | | | [✅](packages/sources/mobula-state/test/integration) | | +| [mobula-state](packages/sources/mobula-state/README.md) | `2.0.1` | `source` | v3 | Unknown | `external-adapter-framework` | `API_KEY (✅)`, `WS_API_ENDPOINT`, `WS_FUNDING_RATE_API_ENDPOINT` | `crypto`, `funding-rate`, `price`, `state` | `price` | | | [✅](packages/sources/mobula-state/test/integration) | | | [mock-ea](packages/sources/mock-ea/README.md) | `2.2.0` | `source` | v2 | Unknown | | `DEVIATION_AMOUNT (✅)`, `MIN_RESULT (✅)`, `UPDATE_INTERVAL_IN_MS (✅)` | `price` | `price` | | | [✅](packages/sources/mock-ea/test/integration) | | | [moonbeam-address-list](packages/sources/moonbeam-address-list/README.md) | `1.1.51` | `source` | v3 | Unknown | `external-adapter-framework` | `CHAIN_ID`, `RPC_URL (✅)` | Unknown | `address` | | | [✅](packages/sources/moonbeam-address-list/test/integration) | [✅](packages/sources/moonbeam-address-list/test/e2e) | | [moore-hk](packages/sources/moore-hk/README.md) | `1.0.28` | `source` | v3 | `https://api.real-time-reserves.verinumus.io/v1/` | `external-adapter-framework` | `API_ENDPOINT` | `trueusd` | `trueusd` | | | [✅](packages/sources/moore-hk/test/integration) | | diff --git a/package.json b/package.json index d333f78f02..24c134bbeb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chainlink/external-adapters-js", - "version": "1.237.0", + "version": "1.238.0", "license": "MIT", "private": true, "workspaces": [ diff --git a/packages/sources/mobula-state/CHANGELOG.md b/packages/sources/mobula-state/CHANGELOG.md index ce21c0ff1f..3894b4c660 100644 --- a/packages/sources/mobula-state/CHANGELOG.md +++ b/packages/sources/mobula-state/CHANGELOG.md @@ -1,5 +1,15 @@ # @chainlink/mobula-state-adapter +## 2.0.1 + +### Patch Changes + +- [#4345](https://github.com/smartcontractkit/external-adapters-js/pull/4345) [`7bbaacf`](https://github.com/smartcontractkit/external-adapters-js/commit/7bbaacf568527e0fe19e354b8e1c46214c511999) Thanks [@FionnL](https://github.com/FionnL)! - 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. + ## 2.0.0 ### Major Changes diff --git a/packages/sources/mobula-state/README.md b/packages/sources/mobula-state/README.md index 0342e28074..a1ba9cd4c2 100644 --- a/packages/sources/mobula-state/README.md +++ b/packages/sources/mobula-state/README.md @@ -1,6 +1,6 @@ # MOBULA_STATE -![2.0.0](https://img.shields.io/github/package-json/v/smartcontractkit/external-adapters-js?filename=packages/sources/mobula-state/package.json) ![v3](https://img.shields.io/badge/framework%20version-v3-blueviolet) +![2.0.1](https://img.shields.io/github/package-json/v/smartcontractkit/external-adapters-js?filename=packages/sources/mobula-state/package.json) ![v3](https://img.shields.io/badge/framework%20version-v3-blueviolet) This document was generated automatically. Please see [README Generator](../../scripts#readme-generator) for more info. diff --git a/packages/sources/mobula-state/package.json b/packages/sources/mobula-state/package.json index 7ade109073..61a368b025 100644 --- a/packages/sources/mobula-state/package.json +++ b/packages/sources/mobula-state/package.json @@ -1,6 +1,6 @@ { "name": "@chainlink/mobula-state-adapter", - "version": "2.0.0", + "version": "2.0.1", "description": "Chainlink mobula-state adapter.", "keywords": [ "Chainlink",