@sodax/types 2.3.0-rc.1 → 2.3.0-rc.3
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/README.md +1 -1
- package/dist/chains/chains.d.ts +1188 -0
- package/dist/chains/chains.js +110 -0
- package/dist/chains/tokens.d.ts +2122 -142
- package/dist/chains/tokens.js +903 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/moneyMarket/moneyMarket.d.ts +802 -42
- package/dist/moneyMarket/moneyMarket.js +18 -2
- package/dist/sodax-config/sodax-config.d.ts +2916 -169
- package/dist/swap/swap.d.ts +2556 -585
- package/dist/swap/swap.js +145 -59
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ The package currently exposes only the root export (`@sodax/types`) and the DEX
|
|
|
66
66
|
| Hooks | shared hook types (`hooks`) |
|
|
67
67
|
| Utilities | `DeepPartial`, `getChainType`, `getEvmChainKeyByChainId`, chain guard helpers, bnUSD token helpers |
|
|
68
68
|
|
|
69
|
-
[^cfg]: `spokeChainConfig` and `sodaxConfig` (and the related `hubConfig`, etc.) are **packaged-default snapshots** frozen at SDK release time. They are safe to import at module scope, but **direct imports do NOT reflect overrides passed to `new Sodax(config)
|
|
69
|
+
[^cfg]: `spokeChainConfig` and `sodaxConfig` (and the related `hubConfig`, etc.) are **packaged-default snapshots** frozen at SDK release time. They are safe to import at module scope, but **direct imports do NOT reflect overrides passed to `new Sodax(config)`** — those flow into the `ConfigService` only. Once a `Sodax` instance exists, prefer the instance-scope readers: `sodax.config.spokeChainConfig`, `sodax.config.getChainConfig(chainKey)`, `sodax.config.sodaxConfig`, `sodax.config.getHubChainConfig()`, etc. Mixing a static import with a custom-configured `Sodax` instance will silently fall back to defaults for any chain you customized.
|
|
70
70
|
|
|
71
71
|
## Wallet Providers
|
|
72
72
|
|