@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
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { SodaTokens } from '../chains/tokens.js';
|
|
2
2
|
import { spokeChainConfig, ChainKeys, hubConfig } from '../chains/chains.js';
|
|
3
|
+
// Robinhood Stock Tokens listed as collateral on every chain that has them; the pool has borrowing disabled for them.
|
|
4
|
+
const moneyMarketEquitySymbols = [
|
|
5
|
+
'AAPL',
|
|
6
|
+
'MSFT',
|
|
7
|
+
'NVDA',
|
|
8
|
+
'GOOGL',
|
|
9
|
+
'AMZN',
|
|
10
|
+
'META',
|
|
11
|
+
'TSLA',
|
|
12
|
+
'SPCX',
|
|
13
|
+
'SPY',
|
|
14
|
+
'QQQ',
|
|
15
|
+
'GLD',
|
|
16
|
+
];
|
|
3
17
|
// Hub vaults the money market lends against, and the source of `moneyMarketReserveAssets`.
|
|
4
18
|
// Membership is an explicit opt-in: a new SodaTokens entry is not a reserve asset until listed here.
|
|
5
19
|
const moneyMarketHubVaults = [
|
|
@@ -28,10 +42,10 @@ const moneyMarketHubVaults = [
|
|
|
28
42
|
SodaTokens.sodaKAIA,
|
|
29
43
|
SodaTokens.sodaSTX,
|
|
30
44
|
SodaTokens.sodaSUSDS,
|
|
31
|
-
SodaTokens.sodaHBAR,
|
|
32
45
|
SodaTokens.sodaJITOSOL,
|
|
33
46
|
SodaTokens.sodaUSDS,
|
|
34
47
|
SodaTokens.sodaUSSD,
|
|
48
|
+
...moneyMarketEquitySymbols.map(symbol => SodaTokens[symbol]),
|
|
35
49
|
];
|
|
36
50
|
// currently supported spoke chain tokens for money market
|
|
37
51
|
export const moneyMarketSupportedTokens = {
|
|
@@ -153,8 +167,8 @@ export const moneyMarketSupportedTokens = {
|
|
|
153
167
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.POL,
|
|
154
168
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.HYPE,
|
|
155
169
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.NEAR,
|
|
156
|
-
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.HBAR,
|
|
157
170
|
spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.USDS,
|
|
171
|
+
...moneyMarketEquitySymbols.map(symbol => spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens[symbol]),
|
|
158
172
|
],
|
|
159
173
|
[ChainKeys.SUI_MAINNET]: [
|
|
160
174
|
spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.SUI,
|
|
@@ -250,12 +264,14 @@ export const moneyMarketSupportedTokens = {
|
|
|
250
264
|
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.NEAR,
|
|
251
265
|
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDS,
|
|
252
266
|
spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.XLM,
|
|
267
|
+
...moneyMarketEquitySymbols.map(symbol => spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens[symbol]),
|
|
253
268
|
],
|
|
254
269
|
[ChainKeys.ROBINHOOD_MAINNET]: [
|
|
255
270
|
spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.ETH,
|
|
256
271
|
spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.bnUSD,
|
|
257
272
|
spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SODA,
|
|
258
273
|
spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.USDG,
|
|
274
|
+
...moneyMarketEquitySymbols.map(symbol => spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens[symbol]),
|
|
259
275
|
],
|
|
260
276
|
};
|
|
261
277
|
export const moneyMarketReserveAssets = [
|