@sodax/types 2.2.0-rc.3 → 2.2.0-rc.5
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/dist/chains/chains.d.ts +843 -93
- package/dist/chains/chains.js +85 -1
- package/dist/chains/tokens.d.ts +1368 -140
- package/dist/chains/tokens.js +619 -47
- package/dist/common/common.d.ts +0 -2
- package/dist/common/constants.d.ts +2 -2
- package/dist/common/constants.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/leverageYield/leverageYield.d.ts +20 -0
- package/dist/leverageYield/leverageYield.js +13 -0
- package/dist/moneyMarket/moneyMarket.d.ts +152 -152
- package/dist/moneyMarket/moneyMarket.js +35 -2
- package/dist/sodax-config/sodax-config.d.ts +1475 -266
- package/dist/swap/swap.d.ts +1143 -219
- package/dist/swap/swap.js +83 -2
- package/package.json +1 -1
package/dist/common/common.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const DEFAULT_BACKEND_API_HEADERS: {
|
|
|
25
25
|
'Content-Type': string;
|
|
26
26
|
Accept: string;
|
|
27
27
|
};
|
|
28
|
-
export declare const DEFAULT_RELAYER_API_ENDPOINT = "https://
|
|
28
|
+
export declare const DEFAULT_RELAYER_API_ENDPOINT = "https://api.sodax.com/v1/relay";
|
|
29
29
|
export declare const VAULT_TOKEN_DECIMALS = 18;
|
|
30
30
|
/**
|
|
31
31
|
* Sponsoring gateway base URL. Deliberately a standalone literal, not an alias of
|
|
@@ -101,7 +101,7 @@ export type RelayConfig = {
|
|
|
101
101
|
relayChainIdMap: Record<SpokeChainKey, IntentChainId>;
|
|
102
102
|
};
|
|
103
103
|
export declare const relayConfig: {
|
|
104
|
-
relayerApiEndpoint: "https://
|
|
104
|
+
relayerApiEndpoint: "https://api.sodax.com/v1/relay";
|
|
105
105
|
relayChainIdMap: {
|
|
106
106
|
readonly "0xa86a.avax": 6n;
|
|
107
107
|
readonly "0xa4b1.arbitrum": 23n;
|
package/dist/common/constants.js
CHANGED
|
@@ -24,7 +24,7 @@ export const DEFAULT_BACKEND_API_HEADERS = {
|
|
|
24
24
|
'Content-Type': 'application/json',
|
|
25
25
|
Accept: 'application/json',
|
|
26
26
|
};
|
|
27
|
-
export const DEFAULT_RELAYER_API_ENDPOINT = 'https://
|
|
27
|
+
export const DEFAULT_RELAYER_API_ENDPOINT = 'https://api.sodax.com/v1/relay';
|
|
28
28
|
export const VAULT_TOKEN_DECIMALS = 18;
|
|
29
29
|
/**
|
|
30
30
|
* Sponsoring gateway base URL. Deliberately a standalone literal, not an alias of
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -19,4 +19,4 @@ 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 =
|
|
22
|
+
export const CONFIG_VERSION = 235; // bumped once per release by scripts/bump-versions.sh, on the release branch
|
|
@@ -109,6 +109,16 @@ export declare const leverageYieldVaults: readonly [{
|
|
|
109
109
|
readonly fallbackAprPct: 5.5;
|
|
110
110
|
readonly label: "Jito (JitoSOL)";
|
|
111
111
|
};
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "lsodaSUSDS";
|
|
114
|
+
readonly vault: "0x758532F160D9D338bf662A4a59BA31a5B918A7cb";
|
|
115
|
+
readonly asset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
116
|
+
readonly borrowToken: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
|
|
117
|
+
readonly lsdSource: {
|
|
118
|
+
readonly poolId: "d8c4eff5-c8a9-46fc-a888-057c4c668e72";
|
|
119
|
+
readonly fallbackAprPct: 3.5;
|
|
120
|
+
readonly label: "Sky (sUSDS)";
|
|
121
|
+
};
|
|
112
122
|
}];
|
|
113
123
|
export type LeverageYieldOptions = {
|
|
114
124
|
partnerFee?: PartnerFee;
|
|
@@ -155,5 +165,15 @@ export declare const leverageYieldConfig: {
|
|
|
155
165
|
readonly fallbackAprPct: 5.5;
|
|
156
166
|
readonly label: "Jito (JitoSOL)";
|
|
157
167
|
};
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "lsodaSUSDS";
|
|
170
|
+
readonly vault: "0x758532F160D9D338bf662A4a59BA31a5B918A7cb";
|
|
171
|
+
readonly asset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
|
|
172
|
+
readonly borrowToken: "0xb780e09576C2667ba9F5B80FbAb2e6b8A0a21e37";
|
|
173
|
+
readonly lsdSource: {
|
|
174
|
+
readonly poolId: "d8c4eff5-c8a9-46fc-a888-057c4c668e72";
|
|
175
|
+
readonly fallbackAprPct: 3.5;
|
|
176
|
+
readonly label: "Sky (sUSDS)";
|
|
177
|
+
};
|
|
158
178
|
}];
|
|
159
179
|
};
|
|
@@ -45,6 +45,19 @@ export const leverageYieldVaults = [
|
|
|
45
45
|
label: 'Jito (JitoSOL)',
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
|
+
{
|
|
49
|
+
name: LsodaTokens.lsodaSUSDS.symbol,
|
|
50
|
+
vault: LsodaTokens.lsodaSUSDS.vault,
|
|
51
|
+
asset: SodaTokens.sodaSUSDS.address, // sodaSUSDS (sUSDS) on Sonic — eMode-3 collateral
|
|
52
|
+
borrowToken: SodaTokens.sodaUSSD.address, // sodaUSSD (USSD) on Sonic — eMode-3 borrowable
|
|
53
|
+
lsdSource: {
|
|
54
|
+
// DefiLlama pool for the Sky Savings Rate on sUSDS (project: 'sky-lending', Ethereum).
|
|
55
|
+
// sUSDS appreciates against USDS at the SSR — yield AAVE's currentLiquidityRate omits.
|
|
56
|
+
poolId: 'd8c4eff5-c8a9-46fc-a888-057c4c668e72',
|
|
57
|
+
fallbackAprPct: 3.5,
|
|
58
|
+
label: 'Sky (sUSDS)',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
48
61
|
];
|
|
49
62
|
export const leverageYieldConfig = {
|
|
50
63
|
vaults: leverageYieldVaults,
|