@sodax/skills 2.2.0-rc.3 → 2.2.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -113,7 +113,7 @@ These v1 names still ship through `@sodax/sdk` (re-exported from `@sodax/types`)
|
|
|
113
113
|
|---|---|---|
|
|
114
114
|
| `moneyMarketSupportedTokens[chainId]` | Still exported (`packages/types/src/moneyMarket/moneyMarket.ts`) | `sodax.moneyMarket.getSupportedTokensByChainId(chainKey)` |
|
|
115
115
|
| `Object.entries(moneyMarketSupportedTokens)` (walk pattern) | Const still exported | `sodax.moneyMarket.getSupportedTokens()` (returns `Record<SpokeChainKey, XToken[]>`) |
|
|
116
|
-
| `SodaTokens` registry
|
|
116
|
+
| `SodaTokens` (hub-vault registry — feature-neutral, **not** the reserve list) | Still exported (`packages/types/src/chains/tokens.ts`) | `sodax.config.getMoneyMarketReserveAssets()` or `sodax.moneyMarket.getSupportedReserves()` for reserves; `sodax.config.getSupportedSwapTokensByChainId('sonic')` for swaps |
|
|
117
117
|
| `swapSupportedTokens[chainId]` (v1 had no `solverSupportedTokens`) | Still exported (`packages/types/src/swap/swap.ts`) | `sodax.config.getSupportedSwapTokensByChainId(chainKey)` |
|
|
118
118
|
| `getSupportedSolverTokens(chainId)` (free function) | Still exported (`packages/types/src/swap/swap.ts`) | `sodax.config.getSupportedSwapTokensByChainId(chainKey)` |
|
|
119
119
|
| `supportedSpokeChains` (`SpokeChainKey[]`) | Still exported (`packages/types/src/chains/chains.ts`) | `sodax.config.isValidSpokeChainKey(chainKey)` for validation, or read `sodaxConfig.chains` at module scope |
|
|
@@ -30,7 +30,7 @@ Pair: [`features/money-market.md`](../../../integration/knowledge/features/money
|
|
|
30
30
|
|
|
31
31
|
- `moneyMarketSupportedTokens` — `Record<SpokeChainKey, XToken[]>` global. Use `sodax.moneyMarket.getSupportedTokensByChainId(chainKey)` / `getSupportedTokens()`.
|
|
32
32
|
- `hubAssets` — vault address lookup global. Use `XToken.vault` / `XToken.hubAsset` directly.
|
|
33
|
-
- `SodaTokens` — vault
|
|
33
|
+
- `SodaTokens` — hub-vault registry. It is feature-neutral: a vault listed there is not necessarily a money-market reserve (the Robinhood tokenized equities are swap-only, for example). Never derive reserve support from it — use `sodax.config.getMoneyMarketReserveAssets()`.
|
|
34
34
|
- `MoneyMarketError<MoneyMarketErrorCode>` and `isMoneyMarketError` — replaced by `SodaxError<C>` + `isSodaxError(e) && e.feature === 'moneyMarket'`.
|
|
35
35
|
|
|
36
36
|
### v1 → v2 error code crosswalk (money-market-specific)
|