@sodax/types 2.2.0-rc.5 → 2.2.0-rc.6

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 CHANGED
@@ -12,12 +12,18 @@ pnpm add @sodax/types
12
12
 
13
13
  ## Usage
14
14
 
15
+ > SDK consumers should import these from `@sodax/sdk` (`import { ... } from '@sodax/sdk'`), which re-exports `@sodax/types`; reserve a direct `@sodax/types` install for standalone or type-only use.
16
+
15
17
  Import shared types, constants, configuration, and helpers from the root package:
16
18
 
17
19
  ```typescript
18
20
  import {
19
21
  ChainKeys,
20
22
  CONFIG_VERSION,
23
+ SDK_VERSION,
24
+ configVersionFor,
25
+ formatConfigVersion,
26
+ parseConfigVersion,
21
27
  getEvmChainKeyByChainId,
22
28
  sodaxConfig,
23
29
  supportedTokensByChain,
@@ -54,8 +60,10 @@ The package currently exposes only the root export (`@sodax/types`) and the DEX
54
60
  | Chains and tokens | `ChainKeys`, `SpokeChainKey`, `ChainType`, `baseChainInfo`, `spokeChainConfig` [^cfg], `supportedTokensByChain` |
55
61
  | Wallet providers | `WalletAddressProvider`, `ICoreWallet`, `IWalletProvider`, `GetWalletProviderType` |
56
62
  | Chain transaction types | `EvmRawTransaction`, `BitcoinRawTransaction`, `SolanaRawTransaction`, `StellarRawTransaction`, `SuiRawTransaction`, `IconRawTransaction`, `InjectiveRawTransaction`, `NearRawTransaction`, `StacksRawTransaction` |
57
- | Backend API contracts | `IConfigApi`, `GetAllConfigApiResponse`, `SubmitSwapTxRequest`, `SubmitSwapTxResponse`, `SubmitSwapTxStatusResponse` |
63
+ | Backend API contracts | `IConfigApiV1`, `IConfigApiV2`, `GetAllConfigApiResponse`, `SubmitTxRequestV2`, `SubmitTxResponseV2`, `SubmitTxStatusResponseV2`, `SubmitIntentRequestV2`, `SubmitIntentResponseV2` |
58
64
  | Product configuration | `sodaxConfig` [^cfg], `bridgeConfig`, `swapsConfig`, `moneyMarketConfig`, `dexConfig`, `concentratedLiquidityConfig` |
65
+ | Leverage yield | leverage-yield param and response types (`leverageYield`) |
66
+ | Hooks | shared hook types (`hooks`) |
59
67
  | Utilities | `DeepPartial`, `getChainType`, `getEvmChainKeyByChainId`, chain guard helpers, bnUSD token helpers |
60
68
 
61
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)` 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.
@@ -122,3 +130,43 @@ type AddressForChain<C extends SpokeChainKey> = GetAddressType<C>;
122
130
  ```
123
131
 
124
132
  `GetTokenAddressType<C>` is the token-address counterpart: `Address` for EVM chains, `string` everywhere else.
133
+
134
+ ## Config version
135
+
136
+ `CONFIG_VERSION` identifies the SDK release a SODAX config belongs to. The backend does not maintain
137
+ its own number — it serves this constant from the `@sodax/sdk` release it has installed — so comparing
138
+ it against `GetAllConfigResponseV2.version` answers *do the SDK and the API run the same release?*
139
+
140
+ It is **derived from this package's version**, never hand-edited:
141
+
142
+ ```
143
+ CONFIG_VERSION = major * 1_000_000 + minor * 10_000 + patch * 100 + (rc ?? 99)
144
+ ```
145
+
146
+ The `99` rc slot is the sentinel for a stable release, so it outranks every rc of the same triple.
147
+ Each field is capped — major `1..99`, minor and patch `0..99`, rc `0..98` — because one past any
148
+ boundary the packing would carry into the next field and collide with a different release.
149
+
150
+ | version | `CONFIG_VERSION` |
151
+ | --- | --- |
152
+ | `2.2.0-rc.6` | `2_020_006` |
153
+ | `2.2.0` | `2_020_099` |
154
+ | `2.2.1` | `2_020_199` |
155
+ | `2.10.0` | `2_100_099` |
156
+
157
+ Read it back rather than unpacking it by hand. All three helpers are total — they return `null` for
158
+ anything outside the encoding, including the small counter values an API on an older SDK still serves:
159
+
160
+ ```typescript
161
+ import { CONFIG_VERSION, SDK_VERSION, configVersionFor, formatConfigVersion, parseConfigVersion } from '@sodax/types';
162
+
163
+ SDK_VERSION; // '2.2.0-rc.6' — computed from CONFIG_VERSION, never written
164
+ formatConfigVersion(2_020_099); // '2.2.0'
165
+ parseConfigVersion(2_020_006); // { major: 2, minor: 2, patch: 0, rc: 6 }
166
+ configVersionFor('2.2.0'); // 2_020_099
167
+ configVersionFor('2.3.0-beta.1'); // null — outside the grammar
168
+ parseConfigVersion(235); // null — a legacy counter value, not a config version
169
+ ```
170
+
171
+ `rc` is `null` for a stable release; `rc: 0` is legal, so test it against `null` rather than for
172
+ truthiness.
@@ -20,9 +20,10 @@
20
20
  // - `Hex` / `Address` / `Hash` / `SpokeChainKey` are plain `string` everywhere.
21
21
  // - The unsigned `tx` is typed as the SDK domain union `RawTxReturnType`. It
22
22
  // travels as pure JSON (bigints stringified; Injective byte arrays as
23
- // `{ "0": N, … }` index objects), and the SDK client's response schema
24
- // (`@sodax/sdk` `rawTxSchemas`) rebuilds the domain shape (`bigint`,
25
- // `Uint8Array`) on parse — the inverse of the backend's `stringifyBigInts`.
23
+ // `{ "0": N, … }` index objects), and the wire clients' response schemas
24
+ // (the `rawTxSchemas` module in `@sodax/swaps-api` / `@sodax/bridge-api`)
25
+ // rebuild the domain shape (`bigint`, `Uint8Array`) on parse — the inverse
26
+ // of the backend's `stringifyBigInts`.
26
27
  // - The remaining chain-specific opaque payloads (gas estimate, raw relay
27
28
  // `result`) stay `unknown` because their shape varies by chain family.
28
29
  //
@@ -1928,6 +1928,15 @@ export declare const spokeChainConfig: {
1928
1928
  readonly hubAsset: "0x348e086ab6f424dfc575a325c28624ed23973173";
1929
1929
  readonly vault: "0x348e086ab6f424dfc575a325c28624ed23973173";
1930
1930
  };
1931
+ readonly sUSDS: {
1932
+ readonly symbol: "sUSDS";
1933
+ readonly name: "staked USDS";
1934
+ readonly decimals: 18;
1935
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
1936
+ readonly chainKey: "0x2105.base";
1937
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
1938
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1939
+ };
1931
1940
  };
1932
1941
  readonly pollingConfig: {
1933
1942
  readonly pollingIntervalMs: 1000;
@@ -2038,6 +2047,15 @@ export declare const spokeChainConfig: {
2038
2047
  readonly hubAsset: "0xd08375176410febee9cf4591532455a4cdfe4463";
2039
2048
  readonly vault: "0xd08375176410febee9cf4591532455a4cdfe4463";
2040
2049
  };
2050
+ readonly sUSDS: {
2051
+ readonly symbol: "sUSDS";
2052
+ readonly name: "staked USDS";
2053
+ readonly decimals: 18;
2054
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
2055
+ readonly chainKey: "0xa.optimism";
2056
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
2057
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
2058
+ };
2041
2059
  };
2042
2060
  readonly pollingConfig: {
2043
2061
  readonly pollingIntervalMs: 12000;
@@ -3829,6 +3847,15 @@ export declare const spokeChainConfig: {
3829
3847
  readonly hubAsset: "0x40bea4f921355a749f460760ba6f8edd78888164";
3830
3848
  readonly vault: "0x40bea4f921355a749f460760ba6f8edd78888164";
3831
3849
  };
3850
+ readonly sUSDS: {
3851
+ readonly symbol: "sUSDS";
3852
+ readonly name: "staked USDS";
3853
+ readonly decimals: 18;
3854
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
3855
+ readonly chainKey: "ethereum";
3856
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
3857
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
3858
+ };
3832
3859
  };
3833
3860
  readonly pollingConfig: {
3834
3861
  readonly pollingIntervalMs: 12000;
@@ -1668,6 +1668,15 @@ export declare const baseSupportedTokens: {
1668
1668
  readonly hubAsset: "0x348e086ab6f424dfc575a325c28624ed23973173";
1669
1669
  readonly vault: "0x348e086ab6f424dfc575a325c28624ed23973173";
1670
1670
  };
1671
+ readonly sUSDS: {
1672
+ readonly symbol: "sUSDS";
1673
+ readonly name: "staked USDS";
1674
+ readonly decimals: 18;
1675
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
1676
+ readonly chainKey: "0x2105.base";
1677
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
1678
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1679
+ };
1671
1680
  };
1672
1681
  export declare const optimismSupportedTokens: {
1673
1682
  readonly ETH: {
@@ -1751,6 +1760,15 @@ export declare const optimismSupportedTokens: {
1751
1760
  readonly hubAsset: "0xd08375176410febee9cf4591532455a4cdfe4463";
1752
1761
  readonly vault: "0xd08375176410febee9cf4591532455a4cdfe4463";
1753
1762
  };
1763
+ readonly sUSDS: {
1764
+ readonly symbol: "sUSDS";
1765
+ readonly name: "staked USDS";
1766
+ readonly decimals: 18;
1767
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
1768
+ readonly chainKey: "0xa.optimism";
1769
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
1770
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1771
+ };
1754
1772
  };
1755
1773
  export declare const bscSupportedTokens: {
1756
1774
  readonly BNB: {
@@ -3103,6 +3121,15 @@ export declare const ethereumSupportedTokens: {
3103
3121
  readonly hubAsset: "0x40bea4f921355a749f460760ba6f8edd78888164";
3104
3122
  readonly vault: "0x40bea4f921355a749f460760ba6f8edd78888164";
3105
3123
  };
3124
+ readonly sUSDS: {
3125
+ readonly symbol: "sUSDS";
3126
+ readonly name: "staked USDS";
3127
+ readonly decimals: 18;
3128
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
3129
+ readonly chainKey: "ethereum";
3130
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
3131
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
3132
+ };
3106
3133
  };
3107
3134
  export declare const kaiaSupportedTokens: {
3108
3135
  readonly KAIA: {
@@ -4812,6 +4839,15 @@ export declare const supportedTokensByChain: {
4812
4839
  readonly hubAsset: "0x348e086ab6f424dfc575a325c28624ed23973173";
4813
4840
  readonly vault: "0x348e086ab6f424dfc575a325c28624ed23973173";
4814
4841
  };
4842
+ readonly sUSDS: {
4843
+ readonly symbol: "sUSDS";
4844
+ readonly name: "staked USDS";
4845
+ readonly decimals: 18;
4846
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
4847
+ readonly chainKey: "0x2105.base";
4848
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
4849
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4850
+ };
4815
4851
  };
4816
4852
  readonly "0xa.optimism": {
4817
4853
  readonly ETH: {
@@ -4895,6 +4931,15 @@ export declare const supportedTokensByChain: {
4895
4931
  readonly hubAsset: "0xd08375176410febee9cf4591532455a4cdfe4463";
4896
4932
  readonly vault: "0xd08375176410febee9cf4591532455a4cdfe4463";
4897
4933
  };
4934
+ readonly sUSDS: {
4935
+ readonly symbol: "sUSDS";
4936
+ readonly name: "staked USDS";
4937
+ readonly decimals: 18;
4938
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
4939
+ readonly chainKey: "0xa.optimism";
4940
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
4941
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4942
+ };
4898
4943
  };
4899
4944
  readonly "0x38.bsc": {
4900
4945
  readonly BNB: {
@@ -6247,6 +6292,15 @@ export declare const supportedTokensByChain: {
6247
6292
  readonly hubAsset: "0x40bea4f921355a749f460760ba6f8edd78888164";
6248
6293
  readonly vault: "0x40bea4f921355a749f460760ba6f8edd78888164";
6249
6294
  };
6295
+ readonly sUSDS: {
6296
+ readonly symbol: "sUSDS";
6297
+ readonly name: "staked USDS";
6298
+ readonly decimals: 18;
6299
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
6300
+ readonly chainKey: "ethereum";
6301
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
6302
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
6303
+ };
6250
6304
  };
6251
6305
  readonly "0x2019.kaia": {
6252
6306
  readonly KAIA: {
@@ -1263,6 +1263,15 @@ export const baseSupportedTokens = {
1263
1263
  hubAsset: '0x348e086ab6f424dfc575a325c28624ed23973173',
1264
1264
  vault: '0x348e086ab6f424dfc575a325c28624ed23973173',
1265
1265
  },
1266
+ sUSDS: {
1267
+ symbol: 'sUSDS',
1268
+ name: 'staked USDS',
1269
+ decimals: 18,
1270
+ address: '0x5875eEE11Cf8398102FdAd704C9E96607675467a',
1271
+ chainKey: ChainKeys.BASE_MAINNET,
1272
+ hubAsset: '0x807cC73f69F1aCCC50511a0390A8544cEA71baA9',
1273
+ vault: SodaTokens.sodaSUSDS.address,
1274
+ },
1266
1275
  };
1267
1276
  export const optimismSupportedTokens = {
1268
1277
  ETH: {
@@ -1346,6 +1355,15 @@ export const optimismSupportedTokens = {
1346
1355
  hubAsset: '0xd08375176410febee9cf4591532455a4cdfe4463',
1347
1356
  vault: '0xd08375176410febee9cf4591532455a4cdfe4463',
1348
1357
  },
1358
+ sUSDS: {
1359
+ symbol: 'sUSDS',
1360
+ name: 'staked USDS',
1361
+ decimals: 18,
1362
+ address: '0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0',
1363
+ chainKey: ChainKeys.OPTIMISM_MAINNET,
1364
+ hubAsset: '0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2',
1365
+ vault: SodaTokens.sodaSUSDS.address,
1366
+ },
1349
1367
  };
1350
1368
  export const bscSupportedTokens = {
1351
1369
  BNB: {
@@ -2700,6 +2718,15 @@ export const ethereumSupportedTokens = {
2700
2718
  hubAsset: '0x40bea4f921355a749f460760ba6f8edd78888164',
2701
2719
  vault: '0x40bea4f921355a749f460760ba6f8edd78888164',
2702
2720
  },
2721
+ sUSDS: {
2722
+ symbol: 'sUSDS',
2723
+ name: 'staked USDS',
2724
+ decimals: 18,
2725
+ address: '0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD',
2726
+ chainKey: ChainKeys.ETHEREUM_MAINNET,
2727
+ hubAsset: '0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624',
2728
+ vault: SodaTokens.sodaSUSDS.address,
2729
+ },
2703
2730
  };
2704
2731
  export const kaiaSupportedTokens = {
2705
2732
  KAIA: {
package/dist/index.d.ts CHANGED
@@ -19,4 +19,40 @@ export * from './sui/index.js';
19
19
  export * from './swap/index.js';
20
20
  export * from './utils/index.js';
21
21
  export * from './wallet/index.js';
22
- export declare const CONFIG_VERSION = 235;
22
+ /**
23
+ * Identifies the SDK release a SODAX config belongs to. Derived from this package's version by
24
+ * `scripts/bump-versions.sh` — never hand-edit it. The backend serves this same constant from the SDK
25
+ * release it has installed, so comparing it against `GetAllConfigResponseV2.version` answers "do the
26
+ * SDK and the API run the same release?".
27
+ *
28
+ * Encoding: `major * 1e6 + minor * 1e4 + patch * 100 + (rc ?? 99)`, where the 99 rc slot is the
29
+ * sentinel for a stable release. Use {@link configVersionFor} and {@link formatConfigVersion} rather
30
+ * than unpacking it by hand.
31
+ */
32
+ export declare const CONFIG_VERSION = 2020006;
33
+ /** A version decoded from a config version number. `rc` is `null` for a stable release. */
34
+ export type ParsedConfigVersion = {
35
+ major: number;
36
+ minor: number;
37
+ patch: number;
38
+ rc: number | null;
39
+ };
40
+ /**
41
+ * Encodes an `X.Y.Z` / `X.Y.Z-rc.N` version as its config version number, or `null` when the version
42
+ * is outside the grammar (`2.3.0-beta.1`) or the domain (major outside 1..99, minor or patch above
43
+ * 99, rc above 98). Total by design: the release tooling throws on these, application code should not.
44
+ */
45
+ export declare function configVersionFor(version: string): number | null;
46
+ /**
47
+ * Decodes a config version number, or `null` when it is not one — which includes the small counter
48
+ * values an API running an older SDK still serves, and any non-integer or out-of-range input.
49
+ */
50
+ export declare function parseConfigVersion(value: number): ParsedConfigVersion | null;
51
+ /** Renders a config version number as its version string, or `null` when it is not one. */
52
+ export declare function formatConfigVersion(value: number): string | null;
53
+ /**
54
+ * This package's version, projected from {@link CONFIG_VERSION} rather than written separately, so the
55
+ * two cannot disagree. Always a version string: `scripts/bump-versions.sh` derives the constant, and
56
+ * `config-version.test.ts` asserts it against the manifest.
57
+ */
58
+ export declare const SDK_VERSION: string;
package/dist/index.js CHANGED
@@ -19,4 +19,70 @@ export * from './sui/index.js';
19
19
  export * from './swap/index.js';
20
20
  export * from './utils/index.js';
21
21
  export * from './wallet/index.js';
22
- export const CONFIG_VERSION = 235; // bumped once per release by scripts/bump-versions.sh, on the release branch
22
+ /**
23
+ * Identifies the SDK release a SODAX config belongs to. Derived from this package's version by
24
+ * `scripts/bump-versions.sh` — never hand-edit it. The backend serves this same constant from the SDK
25
+ * release it has installed, so comparing it against `GetAllConfigResponseV2.version` answers "do the
26
+ * SDK and the API run the same release?".
27
+ *
28
+ * Encoding: `major * 1e6 + minor * 1e4 + patch * 100 + (rc ?? 99)`, where the 99 rc slot is the
29
+ * sentinel for a stable release. Use {@link configVersionFor} and {@link formatConfigVersion} rather
30
+ * than unpacking it by hand.
31
+ */
32
+ export const CONFIG_VERSION = 2020006; // 2.2.0-rc.6
33
+ /** Highest rc slot, reserved for a stable release so it outranks every rc of the same triple. */
34
+ const RC_STABLE = 99;
35
+ const MIN_CONFIG_VERSION = 1_000_000;
36
+ const MAX_CONFIG_VERSION = 99_999_999;
37
+ const VERSION_PATTERN = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-rc\.(0|[1-9]\d*))?$/;
38
+ /**
39
+ * Encodes an `X.Y.Z` / `X.Y.Z-rc.N` version as its config version number, or `null` when the version
40
+ * is outside the grammar (`2.3.0-beta.1`) or the domain (major outside 1..99, minor or patch above
41
+ * 99, rc above 98). Total by design: the release tooling throws on these, application code should not.
42
+ */
43
+ export function configVersionFor(version) {
44
+ const match = typeof version === 'string' ? version.match(VERSION_PATTERN) : null;
45
+ if (!match)
46
+ return null;
47
+ const major = Number(match[1]);
48
+ const minor = Number(match[2]);
49
+ const patch = Number(match[3]);
50
+ const rc = match[4] === undefined ? null : Number(match[4]);
51
+ if (major < 1 || major > 99 || minor > 99 || patch > 99)
52
+ return null;
53
+ if (rc !== null && rc > 98)
54
+ return null;
55
+ return major * 1_000_000 + minor * 10_000 + patch * 100 + (rc === null ? RC_STABLE : rc);
56
+ }
57
+ // Total on purpose: the domain check lives in parseConfigVersion, so SDK_VERSION can project the
58
+ // committed constant without routing through a nullable step it would then have to narrow.
59
+ const unpack = (value) => {
60
+ const slot = value % 100;
61
+ return {
62
+ major: Math.floor(value / 1_000_000),
63
+ minor: Math.floor(value / 10_000) % 100,
64
+ patch: Math.floor(value / 100) % 100,
65
+ rc: slot === RC_STABLE ? null : slot,
66
+ };
67
+ };
68
+ const render = ({ major, minor, patch, rc }) => `${major}.${minor}.${patch}${rc === null ? '' : `-rc.${rc}`}`;
69
+ /**
70
+ * Decodes a config version number, or `null` when it is not one — which includes the small counter
71
+ * values an API running an older SDK still serves, and any non-integer or out-of-range input.
72
+ */
73
+ export function parseConfigVersion(value) {
74
+ if (!Number.isInteger(value) || value < MIN_CONFIG_VERSION || value > MAX_CONFIG_VERSION)
75
+ return null;
76
+ return unpack(value);
77
+ }
78
+ /** Renders a config version number as its version string, or `null` when it is not one. */
79
+ export function formatConfigVersion(value) {
80
+ const parsed = parseConfigVersion(value);
81
+ return parsed === null ? null : render(parsed);
82
+ }
83
+ /**
84
+ * This package's version, projected from {@link CONFIG_VERSION} rather than written separately, so the
85
+ * two cannot disagree. Always a version string: `scripts/bump-versions.sh` derives the constant, and
86
+ * `config-version.test.ts` asserts it against the manifest.
87
+ */
88
+ export const SDK_VERSION = render(unpack(CONFIG_VERSION));
@@ -120,8 +120,100 @@ export declare const leverageYieldVaults: readonly [{
120
120
  readonly label: "Sky (sUSDS)";
121
121
  };
122
122
  }];
123
+ /**
124
+ * A leverage position's operation slot.
125
+ *
126
+ * `kind` mirrors the contract's `PendingKind`: 0 none, 1 leverage, 2 deleverage, 3 debt-side open.
127
+ * The pair matters because they can disagree — see `needsSettle`.
128
+ */
129
+ export type LeveragePositionPendingState = {
130
+ kind: number;
131
+ /** The intent is still registered on `Intents`, so no second operation is permitted. */
132
+ isLive: boolean;
133
+ /**
134
+ * An operation is recorded but its intent is gone, so the position still holds an open grant and
135
+ * any debt-side contribution. Cleared by `buildSettlePosition`, which anyone may call.
136
+ */
137
+ needsSettle: boolean;
138
+ };
139
+ /**
140
+ * Static descriptor of a single leverage position — one owner-controlled AAVE account
141
+ * deployed as a clone by `LeveragePositionFactory`.
142
+ *
143
+ * Positions are the unpooled counterpart to {@link LeverageYieldVault}: instead of many
144
+ * depositors sharing one ERC-4626 vault at a single target LTV, each position is its own
145
+ * AAVE account with its own eMode category, health factor and liquidation risk. That is
146
+ * what lets one owner hold several positions at different leverage tiers at once, which a
147
+ * pooled vault cannot express because AAVE allows one eMode category per address.
148
+ *
149
+ * Unlike vaults there is no registry of these: positions are created per user at runtime
150
+ * and discovered through `LeverageYieldService.listPositions(owner)`.
151
+ */
152
+ export type LeveragePosition = {
153
+ /** Deployed `LeveragePosition` clone address on the Sonic hub. */
154
+ address: Address;
155
+ /** Address permitted to operate the position — a hub EOA, the solver, or a hub Wallet. */
156
+ owner: Address;
157
+ /** Hub-side collateral supplied to AAVE, a Sodax vault token (e.g. sodaSUSDS). */
158
+ collateral: Address;
159
+ /** Hub-side asset borrowed against the collateral, a Sodax vault token (e.g. sodaUSSD). */
160
+ borrowToken: Address;
161
+ /** AAVE eMode category, fixed at creation. `0` means no eMode. */
162
+ eModeCategory: number;
163
+ /**
164
+ * The position's own partner fee in basis points, FIXED AT CREATION.
165
+ *
166
+ * Read from the position, not from config: config can change and an open can pass a per-call
167
+ * override, so what a new position would carry is not what this one does. The fee is borrowed on
168
+ * top of what the solver is paid, so any projection of an adjust or exit has to charge it.
169
+ */
170
+ feeBps: number;
171
+ /** Who that fee is paid to. Zero address when none is charged. */
172
+ feeReceiver: Address;
173
+ };
174
+ /**
175
+ * Live AAVE account snapshot for a leverage position. Read from the pool rather than the
176
+ * position contract, which holds no accounting of its own.
177
+ *
178
+ * All base-currency figures use the pool's oracle base unit (8 decimals on the Sodax fork).
179
+ */
180
+ export type LeveragePositionAccount = {
181
+ /** Total collateral in the pool's base currency. */
182
+ totalCollateralBase: bigint;
183
+ /** Total debt in the pool's base currency. */
184
+ totalDebtBase: bigint;
185
+ /** Remaining borrowing power in the pool's base currency. */
186
+ availableBorrowsBase: bigint;
187
+ /** Liquidation threshold in basis points, reflecting the position's eMode category. */
188
+ currentLiquidationThreshold: bigint;
189
+ /** Current loan-to-value in basis points. */
190
+ ltv: bigint;
191
+ /** Health factor in WAD (1e18). Below 1e18 the position is liquidatable. */
192
+ healthFactor: bigint;
193
+ };
194
+ /**
195
+ * A position's collateral holding, read straight off the aToken.
196
+ *
197
+ * The counterpart to {@link LeveragePositionAccount}'s `totalCollateralBase`, which is an oracle
198
+ * base-currency figure at 8 decimals — right for display, useless for sizing a full exit, because
199
+ * converting it back through a price lands near the balance rather than on it.
200
+ */
201
+ export type LeveragePositionCollateral = {
202
+ /** The reserve's aToken. Holding this *is* the collateral position. */
203
+ aToken: Address;
204
+ /** Exact aToken balance, in the collateral reserve's own decimals. */
205
+ balance: bigint;
206
+ };
123
207
  export type LeverageYieldOptions = {
124
208
  partnerFee?: PartnerFee;
209
+ /**
210
+ * Overrides the deployed `LeveragePositionFactory` in {@link leverageYieldConfig}.
211
+ *
212
+ * Only needed to point at a different deployment — a fork, a staging factory, or a new
213
+ * one before the default catches up. Omitting it (or passing `undefined`) keeps the
214
+ * default: config merging skips `undefined`, so an absent override cannot blank it.
215
+ */
216
+ positionFactory?: Address;
125
217
  /**
126
218
  * Route `vaultSwap()` (and so `deposit`/`withdraw`) through the backend submit-tx flow. Default
127
219
  * `false` — the backend leverage-yield submit-tx path is opt-in while it beds in, unlike the
@@ -133,6 +225,14 @@ export type LeverageYieldOptions = {
133
225
  export type LeverageYieldConfig = Prettify<LeverageYieldDefaultConfig & LeverageYieldOptions>;
134
226
  export type LeverageYieldDefaultConfig = {
135
227
  vaults: readonly LeverageYieldVault[];
228
+ /**
229
+ * Deployed `LeveragePositionFactory` on the Sonic hub.
230
+ *
231
+ * Defaulted so the position methods work out of the box: they fail closed on a missing
232
+ * factory rather than guessing an address, which previously meant every integrator had
233
+ * to supply this before a single position call would run.
234
+ */
235
+ positionFactory: Address;
136
236
  };
137
237
  export declare const leverageYieldConfig: {
138
238
  readonly vaults: readonly [{
@@ -176,4 +276,5 @@ export declare const leverageYieldConfig: {
176
276
  readonly label: "Sky (sUSDS)";
177
277
  };
178
278
  }];
279
+ readonly positionFactory: "0xF8fB7F200B6545295e1729Cf254482d7c116031C";
179
280
  };
@@ -61,4 +61,5 @@ export const leverageYieldVaults = [
61
61
  ];
62
62
  export const leverageYieldConfig = {
63
63
  vaults: leverageYieldVaults,
64
+ positionFactory: '0xF8fB7F200B6545295e1729Cf254482d7c116031C',
64
65
  };
@@ -212,6 +212,14 @@ export declare const moneyMarketSupportedTokens: {
212
212
  readonly chainKey: "0x2105.base";
213
213
  readonly hubAsset: "0xFE9b81eF40419Ef9Ce62cCff197345D78c552945";
214
214
  readonly vault: "0xA3AeFa2BAfEAB479c4Aca6024A16906bbC75566e";
215
+ }, {
216
+ readonly symbol: "sUSDS";
217
+ readonly name: "staked USDS";
218
+ readonly decimals: 18;
219
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
220
+ readonly chainKey: "0x2105.base";
221
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
222
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
215
223
  }];
216
224
  readonly "0xa.optimism": [{
217
225
  readonly symbol: "ETH";
@@ -269,6 +277,14 @@ export declare const moneyMarketSupportedTokens: {
269
277
  readonly chainKey: "0xa.optimism";
270
278
  readonly hubAsset: "0x0eD0d274dC77ef460DC96b9fBaFF3EDB074e0471";
271
279
  readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
280
+ }, {
281
+ readonly symbol: "sUSDS";
282
+ readonly name: "staked USDS";
283
+ readonly decimals: 18;
284
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
285
+ readonly chainKey: "0xa.optimism";
286
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
287
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
272
288
  }];
273
289
  readonly "0x89.polygon": [{
274
290
  readonly symbol: "POL";
@@ -1266,6 +1282,14 @@ export declare const moneyMarketSupportedTokens: {
1266
1282
  readonly chainKey: "ethereum";
1267
1283
  readonly hubAsset: "0x31D3a9319C76EC4A474721966dA65b94e6bFc9eF";
1268
1284
  readonly vault: "0xA3AeFa2BAfEAB479c4Aca6024A16906bbC75566e";
1285
+ }, {
1286
+ readonly symbol: "sUSDS";
1287
+ readonly name: "staked USDS";
1288
+ readonly decimals: 18;
1289
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
1290
+ readonly chainKey: "ethereum";
1291
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
1292
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1269
1293
  }];
1270
1294
  readonly redbelly: [{
1271
1295
  readonly symbol: "bnUSD";
@@ -1841,6 +1865,14 @@ export declare const moneyMarketConfig: {
1841
1865
  readonly chainKey: "0x2105.base";
1842
1866
  readonly hubAsset: "0xFE9b81eF40419Ef9Ce62cCff197345D78c552945";
1843
1867
  readonly vault: "0xA3AeFa2BAfEAB479c4Aca6024A16906bbC75566e";
1868
+ }, {
1869
+ readonly symbol: "sUSDS";
1870
+ readonly name: "staked USDS";
1871
+ readonly decimals: 18;
1872
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
1873
+ readonly chainKey: "0x2105.base";
1874
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
1875
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1844
1876
  }];
1845
1877
  readonly "0xa.optimism": [{
1846
1878
  readonly symbol: "ETH";
@@ -1898,6 +1930,14 @@ export declare const moneyMarketConfig: {
1898
1930
  readonly chainKey: "0xa.optimism";
1899
1931
  readonly hubAsset: "0x0eD0d274dC77ef460DC96b9fBaFF3EDB074e0471";
1900
1932
  readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
1933
+ }, {
1934
+ readonly symbol: "sUSDS";
1935
+ readonly name: "staked USDS";
1936
+ readonly decimals: 18;
1937
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
1938
+ readonly chainKey: "0xa.optimism";
1939
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
1940
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1901
1941
  }];
1902
1942
  readonly "0x89.polygon": [{
1903
1943
  readonly symbol: "POL";
@@ -2895,6 +2935,14 @@ export declare const moneyMarketConfig: {
2895
2935
  readonly chainKey: "ethereum";
2896
2936
  readonly hubAsset: "0x31D3a9319C76EC4A474721966dA65b94e6bFc9eF";
2897
2937
  readonly vault: "0xA3AeFa2BAfEAB479c4Aca6024A16906bbC75566e";
2938
+ }, {
2939
+ readonly symbol: "sUSDS";
2940
+ readonly name: "staked USDS";
2941
+ readonly decimals: 18;
2942
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
2943
+ readonly chainKey: "ethereum";
2944
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
2945
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
2898
2946
  }];
2899
2947
  readonly redbelly: [{
2900
2948
  readonly symbol: "bnUSD";
@@ -66,6 +66,7 @@ export const moneyMarketSupportedTokens = {
66
66
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.SODA,
67
67
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.USDT,
68
68
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.USDS,
69
+ spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.sUSDS,
69
70
  ],
70
71
  [ChainKeys.OPTIMISM_MAINNET]: [
71
72
  spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.ETH,
@@ -75,6 +76,7 @@ export const moneyMarketSupportedTokens = {
75
76
  spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.weETH,
76
77
  spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.USDT,
77
78
  spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.SODA,
79
+ spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.sUSDS,
78
80
  ],
79
81
  [ChainKeys.POLYGON_MAINNET]: [
80
82
  spokeChainConfig[ChainKeys.POLYGON_MAINNET].supportedTokens.POL,
@@ -197,6 +199,7 @@ export const moneyMarketSupportedTokens = {
197
199
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.WBTC_LEGACY,
198
200
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.LL,
199
201
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDS,
202
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.sUSDS,
200
203
  ],
201
204
  [ChainKeys.REDBELLY_MAINNET]: [
202
205
  spokeChainConfig[ChainKeys.REDBELLY_MAINNET].supportedTokens.bnUSD,
@@ -1468,6 +1468,15 @@ export declare const sodaxConfig: {
1468
1468
  readonly hubAsset: "0x348e086ab6f424dfc575a325c28624ed23973173";
1469
1469
  readonly vault: "0x348e086ab6f424dfc575a325c28624ed23973173";
1470
1470
  };
1471
+ readonly sUSDS: {
1472
+ readonly symbol: "sUSDS";
1473
+ readonly name: "staked USDS";
1474
+ readonly decimals: 18;
1475
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
1476
+ readonly chainKey: "0x2105.base";
1477
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
1478
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1479
+ };
1471
1480
  };
1472
1481
  readonly pollingConfig: {
1473
1482
  readonly pollingIntervalMs: 1000;
@@ -1578,6 +1587,15 @@ export declare const sodaxConfig: {
1578
1587
  readonly hubAsset: "0xd08375176410febee9cf4591532455a4cdfe4463";
1579
1588
  readonly vault: "0xd08375176410febee9cf4591532455a4cdfe4463";
1580
1589
  };
1590
+ readonly sUSDS: {
1591
+ readonly symbol: "sUSDS";
1592
+ readonly name: "staked USDS";
1593
+ readonly decimals: 18;
1594
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
1595
+ readonly chainKey: "0xa.optimism";
1596
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
1597
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1598
+ };
1581
1599
  };
1582
1600
  readonly pollingConfig: {
1583
1601
  readonly pollingIntervalMs: 12000;
@@ -3369,6 +3387,15 @@ export declare const sodaxConfig: {
3369
3387
  readonly hubAsset: "0x40bea4f921355a749f460760ba6f8edd78888164";
3370
3388
  readonly vault: "0x40bea4f921355a749f460760ba6f8edd78888164";
3371
3389
  };
3390
+ readonly sUSDS: {
3391
+ readonly symbol: "sUSDS";
3392
+ readonly name: "staked USDS";
3393
+ readonly decimals: 18;
3394
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
3395
+ readonly chainKey: "ethereum";
3396
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
3397
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
3398
+ };
3372
3399
  };
3373
3400
  readonly pollingConfig: {
3374
3401
  readonly pollingIntervalMs: 12000;
@@ -4065,6 +4092,14 @@ export declare const sodaxConfig: {
4065
4092
  readonly chainKey: "sonic";
4066
4093
  readonly hubAsset: "0x7c7d53EEcda37a87ce0D5bf8E0b24512A48dC963";
4067
4094
  readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
4095
+ }, {
4096
+ readonly symbol: "USSD";
4097
+ readonly name: "US Sonic Dollar";
4098
+ readonly decimals: 18;
4099
+ readonly address: "0x000000000eCcFf26B795F73fb0A70d48da657fEf";
4100
+ readonly chainKey: "sonic";
4101
+ readonly hubAsset: "0x000000000eCcFf26B795F73fb0A70d48da657fEf";
4102
+ readonly vault: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
4068
4103
  }, {
4069
4104
  readonly symbol: "BNB";
4070
4105
  readonly name: "BNB";
@@ -4257,6 +4292,14 @@ export declare const sodaxConfig: {
4257
4292
  readonly chainKey: "sonic";
4258
4293
  readonly hubAsset: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483";
4259
4294
  readonly vault: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483";
4295
+ }, {
4296
+ readonly symbol: "sUSDS";
4297
+ readonly name: "Savings USDS";
4298
+ readonly decimals: 18;
4299
+ readonly address: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4300
+ readonly chainKey: "sonic";
4301
+ readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4302
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4260
4303
  }, {
4261
4304
  readonly symbol: "HBAR";
4262
4305
  readonly name: "Hedera";
@@ -4273,6 +4316,14 @@ export declare const sodaxConfig: {
4273
4316
  readonly chainKey: "sonic";
4274
4317
  readonly hubAsset: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
4275
4318
  readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
4319
+ }, {
4320
+ readonly symbol: "sodaUSSD";
4321
+ readonly name: "Soda USSD";
4322
+ readonly decimals: 18;
4323
+ readonly address: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
4324
+ readonly chainKey: "sonic";
4325
+ readonly hubAsset: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
4326
+ readonly vault: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
4276
4327
  }, ...({
4277
4328
  readonly symbol: "lsodaWEETH";
4278
4329
  readonly name: "Leveraged Soda weETH";
@@ -4537,6 +4588,14 @@ export declare const sodaxConfig: {
4537
4588
  readonly chainKey: "0xa4b1.arbitrum";
4538
4589
  readonly hubAsset: "0x3C0a80C6a1110fC80309382b3989eC626c135eE9";
4539
4590
  readonly vault: "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876";
4591
+ }, {
4592
+ readonly symbol: "sUSDS";
4593
+ readonly name: "staked USDS";
4594
+ readonly decimals: 18;
4595
+ readonly address: "0xddb46999f8891663a8f2828d25298f70416d7610";
4596
+ readonly chainKey: "0xa4b1.arbitrum";
4597
+ readonly hubAsset: "0x8794A87979efA70bBE29Ed3357e9A93932B48675";
4598
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4540
4599
  }, {
4541
4600
  readonly symbol: "ARB";
4542
4601
  readonly name: "Arbitrum";
@@ -4626,6 +4685,14 @@ export declare const sodaxConfig: {
4626
4685
  readonly chainKey: "0x2105.base";
4627
4686
  readonly hubAsset: "0x72E852545B024ddCbc5b70C1bCBDAA025164259C";
4628
4687
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
4688
+ }, {
4689
+ readonly symbol: "sUSDS";
4690
+ readonly name: "staked USDS";
4691
+ readonly decimals: 18;
4692
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
4693
+ readonly chainKey: "0x2105.base";
4694
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
4695
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4629
4696
  }, {
4630
4697
  readonly symbol: "wstETH";
4631
4698
  readonly name: "Wrapped stETH";
@@ -4684,6 +4751,14 @@ export declare const sodaxConfig: {
4684
4751
  readonly chainKey: "0xa.optimism";
4685
4752
  readonly hubAsset: "0xb7C213CbD24967dE9838fa014668FDDB338f724B";
4686
4753
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
4754
+ }, {
4755
+ readonly symbol: "sUSDS";
4756
+ readonly name: "staked USDS";
4757
+ readonly decimals: 18;
4758
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
4759
+ readonly chainKey: "0xa.optimism";
4760
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
4761
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4687
4762
  }, {
4688
4763
  readonly symbol: "wstETH";
4689
4764
  readonly name: "Wrapped stETH";
@@ -5797,6 +5872,14 @@ export declare const sodaxConfig: {
5797
5872
  readonly chainKey: "ethereum";
5798
5873
  readonly hubAsset: "0x46bd0ce9b2b455ac4377cd142ecb8b719715197d";
5799
5874
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
5875
+ }, {
5876
+ readonly symbol: "sUSDS";
5877
+ readonly name: "staked USDS";
5878
+ readonly decimals: 18;
5879
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
5880
+ readonly chainKey: "ethereum";
5881
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
5882
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
5800
5883
  }, {
5801
5884
  readonly symbol: "USDT";
5802
5885
  readonly name: "Tether USD";
@@ -6767,6 +6850,14 @@ export declare const sodaxConfig: {
6767
6850
  readonly chainKey: "0x2105.base";
6768
6851
  readonly hubAsset: "0xFE9b81eF40419Ef9Ce62cCff197345D78c552945";
6769
6852
  readonly vault: "0xA3AeFa2BAfEAB479c4Aca6024A16906bbC75566e";
6853
+ }, {
6854
+ readonly symbol: "sUSDS";
6855
+ readonly name: "staked USDS";
6856
+ readonly decimals: 18;
6857
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
6858
+ readonly chainKey: "0x2105.base";
6859
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
6860
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
6770
6861
  }];
6771
6862
  readonly "0xa.optimism": [{
6772
6863
  readonly symbol: "ETH";
@@ -6824,6 +6915,14 @@ export declare const sodaxConfig: {
6824
6915
  readonly chainKey: "0xa.optimism";
6825
6916
  readonly hubAsset: "0x0eD0d274dC77ef460DC96b9fBaFF3EDB074e0471";
6826
6917
  readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
6918
+ }, {
6919
+ readonly symbol: "sUSDS";
6920
+ readonly name: "staked USDS";
6921
+ readonly decimals: 18;
6922
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
6923
+ readonly chainKey: "0xa.optimism";
6924
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
6925
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
6827
6926
  }];
6828
6927
  readonly "0x89.polygon": [{
6829
6928
  readonly symbol: "POL";
@@ -7821,6 +7920,14 @@ export declare const sodaxConfig: {
7821
7920
  readonly chainKey: "ethereum";
7822
7921
  readonly hubAsset: "0x31D3a9319C76EC4A474721966dA65b94e6bFc9eF";
7823
7922
  readonly vault: "0xA3AeFa2BAfEAB479c4Aca6024A16906bbC75566e";
7923
+ }, {
7924
+ readonly symbol: "sUSDS";
7925
+ readonly name: "staked USDS";
7926
+ readonly decimals: 18;
7927
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
7928
+ readonly chainKey: "ethereum";
7929
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
7930
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
7824
7931
  }];
7825
7932
  readonly redbelly: [{
7826
7933
  readonly symbol: "bnUSD";
@@ -8344,6 +8451,7 @@ export declare const sodaxConfig: {
8344
8451
  readonly label: "Sky (sUSDS)";
8345
8452
  };
8346
8453
  }];
8454
+ readonly positionFactory: "0xF8fB7F200B6545295e1729Cf254482d7c116031C";
8347
8455
  };
8348
8456
  hub: {
8349
8457
  readonly chain: {
@@ -50,6 +50,14 @@ export declare const swapSupportedTokens: {
50
50
  readonly chainKey: "sonic";
51
51
  readonly hubAsset: "0x7c7d53EEcda37a87ce0D5bf8E0b24512A48dC963";
52
52
  readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
53
+ }, {
54
+ readonly symbol: "USSD";
55
+ readonly name: "US Sonic Dollar";
56
+ readonly decimals: 18;
57
+ readonly address: "0x000000000eCcFf26B795F73fb0A70d48da657fEf";
58
+ readonly chainKey: "sonic";
59
+ readonly hubAsset: "0x000000000eCcFf26B795F73fb0A70d48da657fEf";
60
+ readonly vault: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
53
61
  }, {
54
62
  readonly symbol: "BNB";
55
63
  readonly name: "BNB";
@@ -242,6 +250,14 @@ export declare const swapSupportedTokens: {
242
250
  readonly chainKey: "sonic";
243
251
  readonly hubAsset: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483";
244
252
  readonly vault: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483";
253
+ }, {
254
+ readonly symbol: "sUSDS";
255
+ readonly name: "Savings USDS";
256
+ readonly decimals: 18;
257
+ readonly address: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
258
+ readonly chainKey: "sonic";
259
+ readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
260
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
245
261
  }, {
246
262
  readonly symbol: "HBAR";
247
263
  readonly name: "Hedera";
@@ -258,6 +274,14 @@ export declare const swapSupportedTokens: {
258
274
  readonly chainKey: "sonic";
259
275
  readonly hubAsset: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
260
276
  readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
277
+ }, {
278
+ readonly symbol: "sodaUSSD";
279
+ readonly name: "Soda USSD";
280
+ readonly decimals: 18;
281
+ readonly address: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
282
+ readonly chainKey: "sonic";
283
+ readonly hubAsset: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
284
+ readonly vault: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
261
285
  }, ...({
262
286
  readonly symbol: "lsodaWEETH";
263
287
  readonly name: "Leveraged Soda weETH";
@@ -522,6 +546,14 @@ export declare const swapSupportedTokens: {
522
546
  readonly chainKey: "0xa4b1.arbitrum";
523
547
  readonly hubAsset: "0x3C0a80C6a1110fC80309382b3989eC626c135eE9";
524
548
  readonly vault: "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876";
549
+ }, {
550
+ readonly symbol: "sUSDS";
551
+ readonly name: "staked USDS";
552
+ readonly decimals: 18;
553
+ readonly address: "0xddb46999f8891663a8f2828d25298f70416d7610";
554
+ readonly chainKey: "0xa4b1.arbitrum";
555
+ readonly hubAsset: "0x8794A87979efA70bBE29Ed3357e9A93932B48675";
556
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
525
557
  }, {
526
558
  readonly symbol: "ARB";
527
559
  readonly name: "Arbitrum";
@@ -611,6 +643,14 @@ export declare const swapSupportedTokens: {
611
643
  readonly chainKey: "0x2105.base";
612
644
  readonly hubAsset: "0x72E852545B024ddCbc5b70C1bCBDAA025164259C";
613
645
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
646
+ }, {
647
+ readonly symbol: "sUSDS";
648
+ readonly name: "staked USDS";
649
+ readonly decimals: 18;
650
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
651
+ readonly chainKey: "0x2105.base";
652
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
653
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
614
654
  }, {
615
655
  readonly symbol: "wstETH";
616
656
  readonly name: "Wrapped stETH";
@@ -669,6 +709,14 @@ export declare const swapSupportedTokens: {
669
709
  readonly chainKey: "0xa.optimism";
670
710
  readonly hubAsset: "0xb7C213CbD24967dE9838fa014668FDDB338f724B";
671
711
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
712
+ }, {
713
+ readonly symbol: "sUSDS";
714
+ readonly name: "staked USDS";
715
+ readonly decimals: 18;
716
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
717
+ readonly chainKey: "0xa.optimism";
718
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
719
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
672
720
  }, {
673
721
  readonly symbol: "wstETH";
674
722
  readonly name: "Wrapped stETH";
@@ -1782,6 +1830,14 @@ export declare const swapSupportedTokens: {
1782
1830
  readonly chainKey: "ethereum";
1783
1831
  readonly hubAsset: "0x46bd0ce9b2b455ac4377cd142ecb8b719715197d";
1784
1832
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
1833
+ }, {
1834
+ readonly symbol: "sUSDS";
1835
+ readonly name: "staked USDS";
1836
+ readonly decimals: 18;
1837
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
1838
+ readonly chainKey: "ethereum";
1839
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
1840
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
1785
1841
  }, {
1786
1842
  readonly symbol: "USDT";
1787
1843
  readonly name: "Tether USD";
@@ -2530,15 +2586,7 @@ export declare const swapSupportedTokens: {
2530
2586
  }];
2531
2587
  };
2532
2588
  export declare const stagingSwapSupportedTokens: {
2533
- readonly sonic: [{
2534
- readonly symbol: "sUSDS";
2535
- readonly name: "Savings USDS";
2536
- readonly decimals: 18;
2537
- readonly address: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
2538
- readonly chainKey: "sonic";
2539
- readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
2540
- readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
2541
- }];
2589
+ readonly sonic: readonly [];
2542
2590
  readonly "0xa86a.avax": readonly [];
2543
2591
  readonly "0xa4b1.arbitrum": readonly [];
2544
2592
  readonly "0x2105.base": [{
@@ -2688,6 +2736,14 @@ export declare const swapsConfig: {
2688
2736
  readonly chainKey: "sonic";
2689
2737
  readonly hubAsset: "0x7c7d53EEcda37a87ce0D5bf8E0b24512A48dC963";
2690
2738
  readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
2739
+ }, {
2740
+ readonly symbol: "USSD";
2741
+ readonly name: "US Sonic Dollar";
2742
+ readonly decimals: 18;
2743
+ readonly address: "0x000000000eCcFf26B795F73fb0A70d48da657fEf";
2744
+ readonly chainKey: "sonic";
2745
+ readonly hubAsset: "0x000000000eCcFf26B795F73fb0A70d48da657fEf";
2746
+ readonly vault: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
2691
2747
  }, {
2692
2748
  readonly symbol: "BNB";
2693
2749
  readonly name: "BNB";
@@ -2880,6 +2936,14 @@ export declare const swapsConfig: {
2880
2936
  readonly chainKey: "sonic";
2881
2937
  readonly hubAsset: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483";
2882
2938
  readonly vault: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483";
2939
+ }, {
2940
+ readonly symbol: "sUSDS";
2941
+ readonly name: "Savings USDS";
2942
+ readonly decimals: 18;
2943
+ readonly address: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
2944
+ readonly chainKey: "sonic";
2945
+ readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
2946
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
2883
2947
  }, {
2884
2948
  readonly symbol: "HBAR";
2885
2949
  readonly name: "Hedera";
@@ -2896,6 +2960,14 @@ export declare const swapsConfig: {
2896
2960
  readonly chainKey: "sonic";
2897
2961
  readonly hubAsset: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
2898
2962
  readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
2963
+ }, {
2964
+ readonly symbol: "sodaUSSD";
2965
+ readonly name: "Soda USSD";
2966
+ readonly decimals: 18;
2967
+ readonly address: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
2968
+ readonly chainKey: "sonic";
2969
+ readonly hubAsset: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
2970
+ readonly vault: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
2899
2971
  }, ...({
2900
2972
  readonly symbol: "lsodaWEETH";
2901
2973
  readonly name: "Leveraged Soda weETH";
@@ -3160,6 +3232,14 @@ export declare const swapsConfig: {
3160
3232
  readonly chainKey: "0xa4b1.arbitrum";
3161
3233
  readonly hubAsset: "0x3C0a80C6a1110fC80309382b3989eC626c135eE9";
3162
3234
  readonly vault: "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876";
3235
+ }, {
3236
+ readonly symbol: "sUSDS";
3237
+ readonly name: "staked USDS";
3238
+ readonly decimals: 18;
3239
+ readonly address: "0xddb46999f8891663a8f2828d25298f70416d7610";
3240
+ readonly chainKey: "0xa4b1.arbitrum";
3241
+ readonly hubAsset: "0x8794A87979efA70bBE29Ed3357e9A93932B48675";
3242
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
3163
3243
  }, {
3164
3244
  readonly symbol: "ARB";
3165
3245
  readonly name: "Arbitrum";
@@ -3249,6 +3329,14 @@ export declare const swapsConfig: {
3249
3329
  readonly chainKey: "0x2105.base";
3250
3330
  readonly hubAsset: "0x72E852545B024ddCbc5b70C1bCBDAA025164259C";
3251
3331
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
3332
+ }, {
3333
+ readonly symbol: "sUSDS";
3334
+ readonly name: "staked USDS";
3335
+ readonly decimals: 18;
3336
+ readonly address: "0x5875eEE11Cf8398102FdAd704C9E96607675467a";
3337
+ readonly chainKey: "0x2105.base";
3338
+ readonly hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9";
3339
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
3252
3340
  }, {
3253
3341
  readonly symbol: "wstETH";
3254
3342
  readonly name: "Wrapped stETH";
@@ -3307,6 +3395,14 @@ export declare const swapsConfig: {
3307
3395
  readonly chainKey: "0xa.optimism";
3308
3396
  readonly hubAsset: "0xb7C213CbD24967dE9838fa014668FDDB338f724B";
3309
3397
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
3398
+ }, {
3399
+ readonly symbol: "sUSDS";
3400
+ readonly name: "staked USDS";
3401
+ readonly decimals: 18;
3402
+ readonly address: "0xb5B2dc7fd34C249F4be7fB1fCea07950784229e0";
3403
+ readonly chainKey: "0xa.optimism";
3404
+ readonly hubAsset: "0xb9a9cb8A61D30a8F6b7E24491ab83f43E817b0E2";
3405
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
3310
3406
  }, {
3311
3407
  readonly symbol: "wstETH";
3312
3408
  readonly name: "Wrapped stETH";
@@ -4420,6 +4516,14 @@ export declare const swapsConfig: {
4420
4516
  readonly chainKey: "ethereum";
4421
4517
  readonly hubAsset: "0x46bd0ce9b2b455ac4377cd142ecb8b719715197d";
4422
4518
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
4519
+ }, {
4520
+ readonly symbol: "sUSDS";
4521
+ readonly name: "staked USDS";
4522
+ readonly decimals: 18;
4523
+ readonly address: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD";
4524
+ readonly chainKey: "ethereum";
4525
+ readonly hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624";
4526
+ readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
4423
4527
  }, {
4424
4528
  readonly symbol: "USDT";
4425
4529
  readonly name: "Tether USD";
package/dist/swap/swap.js CHANGED
@@ -8,9 +8,10 @@ export const swapSupportedTokens = {
8
8
  spokeChainConfig[ChainKeys.SONIC_MAINNET].supportedTokens.USDT,
9
9
  spokeChainConfig[ChainKeys.SONIC_MAINNET].supportedTokens.wS,
10
10
  spokeChainConfig[ChainKeys.SONIC_MAINNET].supportedTokens.SODA,
11
- // spokeChainConfig[ChainKeys.SONIC_MAINNET].supportedTokens.USSD, // NOTE: Not Implemented
12
- // Swap membership is per-vault, not every SodaTokens entry: sodaSUSDS is staging-only,
13
- // and sodaUSDS / sodaUSSD are parked until the solver fills them.
11
+ spokeChainConfig[ChainKeys.SONIC_MAINNET].supportedTokens.USSD,
12
+ // Swap membership is per-vault, not every SodaTokens entry: sodaUSDS is the one wrapper the
13
+ // production solver cannot route — a `/quote` against it returns `No path was found`, where
14
+ // USSD, sodaUSSD and sodaSUSDS all return real prices — so it stays out until a path exists.
14
15
  SodaTokens.sodaBNB,
15
16
  SodaTokens.sodaAVAX,
16
17
  SodaTokens.sodaETH,
@@ -35,8 +36,10 @@ export const swapSupportedTokens = {
35
36
  SodaTokens.sodaNEAR,
36
37
  SodaTokens.sodaKAIA,
37
38
  SodaTokens.sodaSTX,
39
+ SodaTokens.sodaSUSDS,
38
40
  SodaTokens.sodaHBAR,
39
41
  SodaTokens.sodaJITOSOL,
42
+ SodaTokens.sodaUSSD,
40
43
  ...Object.values(LsodaTokens),
41
44
  // Robinhood tokenized equities — swap-only, deliberately absent from the money market.
42
45
  SodaTokens.SPCX,
@@ -70,6 +73,7 @@ export const swapSupportedTokens = {
70
73
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.tBTC,
71
74
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.USDC,
72
75
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.USDT,
76
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.sUSDS,
73
77
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.ARB,
74
78
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.AAVE,
75
79
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.LINK,
@@ -84,6 +88,7 @@ export const swapSupportedTokens = {
84
88
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.ETH,
85
89
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.weETH,
86
90
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.USDC,
91
+ spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.sUSDS,
87
92
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.wstETH,
88
93
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.cbBTC,
89
94
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.VIRTUAL,
@@ -94,6 +99,7 @@ export const swapSupportedTokens = {
94
99
  [ChainKeys.OPTIMISM_MAINNET]: [
95
100
  spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.ETH,
96
101
  spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.USDC,
102
+ spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.sUSDS,
97
103
  spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.wstETH,
98
104
  // spokeChainConfig[OPTIMISM_MAINNET_CHAIN_ID].supportedTokens.weETH, // NOTE: Not Implemented
99
105
  spokeChainConfig[ChainKeys.OPTIMISM_MAINNET].supportedTokens.USDT,
@@ -258,6 +264,7 @@ export const swapSupportedTokens = {
258
264
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.ETH,
259
265
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.bnUSD,
260
266
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDC,
267
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.sUSDS,
261
268
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDT,
262
269
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.SODA,
263
270
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.LL,
@@ -370,7 +377,7 @@ export const swapSupportedTokens = {
370
377
  // their target environment — validation accepts either (see `isSwapSupportedToken`).
371
378
  // Derived from the production solver oracle (tokens absent there).
372
379
  export const stagingSwapSupportedTokens = {
373
- [ChainKeys.SONIC_MAINNET]: [SodaTokens.sodaSUSDS],
380
+ [ChainKeys.SONIC_MAINNET]: [],
374
381
  [ChainKeys.AVALANCHE_MAINNET]: [],
375
382
  [ChainKeys.ARBITRUM_MAINNET]: [],
376
383
  [ChainKeys.BASE_MAINNET]: [
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "2.2.0-rc.5",
7
+ "version": "2.2.0-rc.6",
8
8
  "description": "Sodax Common Types",
9
9
  "main": "dist/index.js",
10
10
  "homepage": "https://github.com/icon-project/sodax-sdks/tree/main/packages/types",