@sodax/types 2.0.0-rc.2 → 2.0.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 +4 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,13 +51,15 @@ The package currently exposes only the root export (`@sodax/types`) and the DEX
|
|
|
51
51
|
| --- | --- |
|
|
52
52
|
| Shared primitives | `Address`, `Hex`, `Hash`, `Base64String`, `HttpUrl`, `TxPollingConfig` |
|
|
53
53
|
| Common types and constants | `Result`, `PartnerFee`, `TxReturnType`, `apiConfig`, `solverConfig`, retry and timeout constants |
|
|
54
|
-
| Chains and tokens | `ChainKeys`, `SpokeChainKey`, `ChainType`, `baseChainInfo`, `spokeChainConfig
|
|
54
|
+
| Chains and tokens | `ChainKeys`, `SpokeChainKey`, `ChainType`, `baseChainInfo`, `spokeChainConfig` [^cfg], `supportedTokensByChain` |
|
|
55
55
|
| Wallet providers | `WalletAddressProvider`, `ICoreWallet`, `IWalletProvider`, `GetWalletProviderType` |
|
|
56
56
|
| Chain transaction types | `EvmRawTransaction`, `BitcoinRawTransaction`, `SolanaRawTransaction`, `StellarRawTransaction`, `SuiRawTransaction`, `IconRawTransaction`, `InjectiveRawTransaction`, `NearRawTransaction`, `StacksRawTransaction` |
|
|
57
57
|
| Backend API contracts | `IConfigApi`, `GetAllConfigApiResponse`, `SubmitSwapTxRequest`, `SubmitSwapTxResponse`, `SubmitSwapTxStatusResponse` |
|
|
58
|
-
| Product configuration | `sodaxConfig
|
|
58
|
+
| Product configuration | `sodaxConfig` [^cfg], `bridgeConfig`, `swapsConfig`, `moneyMarketConfig`, `dexConfig`, `concentratedLiquidityConfig` |
|
|
59
59
|
| Utilities | `DeepPartial`, `getChainType`, `getEvmChainKeyByChainId`, chain guard helpers, bnUSD token helpers |
|
|
60
60
|
|
|
61
|
+
[^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)` or dynamic config loaded by `sodax.config.initialize()`** — 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.
|
|
62
|
+
|
|
61
63
|
## Wallet Providers
|
|
62
64
|
|
|
63
65
|
All wallet providers extend the base wallet address contract:
|
package/dist/index.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ export * from './sui/index.js';
|
|
|
17
17
|
export * from './swap/index.js';
|
|
18
18
|
export * from './utils/index.js';
|
|
19
19
|
export * from './wallet/index.js';
|
|
20
|
-
export declare const CONFIG_VERSION =
|
|
20
|
+
export declare const CONFIG_VERSION = 201;
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -17,5 +17,5 @@ export * from './sui/index.js';
|
|
|
17
17
|
export * from './swap/index.js';
|
|
18
18
|
export * from './utils/index.js';
|
|
19
19
|
export * from './wallet/index.js';
|
|
20
|
-
export const CONFIG_VERSION =
|
|
20
|
+
export const CONFIG_VERSION = 201; // this value should be incremented (inside release/sdk branch) each time @sodax/types package is updated
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED