@sodax/types 2.0.0-rc.13 → 2.0.0-rc.15

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.
@@ -2,10 +2,10 @@ import type { TxPollingConfig } from '../shared/shared.js';
2
2
  import type { SodaxLoggerOption } from '../shared/logger.js';
3
3
  import type { DeepPartial } from '../utils/deep-partial.js';
4
4
  import { type ApiConfig, type SolverConfig, type RelayConfig } from '../common/constants.js';
5
- import type { MoneyMarketConfig, PartnerFee } from '../common/common.js';
6
- import { type DexConfig } from '../dex/dex.js';
7
- import { type SwapsConfig } from '../swap/swap.js';
8
- import { type LeverageYieldConfig } from '../leverageYield/leverageYield.js';
5
+ import type { MoneyMarketDefaultConfig, MoneyMarketOptions, PartnerFee, Prettify } from '../common/common.js';
6
+ import { type DexDefaultConfig } from '../dex/dex.js';
7
+ import { type SwapsDefaultConfig, type SwapsOptions } from '../swap/swap.js';
8
+ import { type LeverageYieldDefaultConfig, type LeverageYieldOptions } from '../leverageYield/leverageYield.js';
9
9
  import { type HubConfig, type SpokeChainConfig, type SpokeChainKey } from '../chains/chains.js';
10
10
  export type EvmSharedChainConfig = TxPollingConfig & {
11
11
  rpcUrl: string;
@@ -27,39 +27,50 @@ export type BitcoinSharedChainConfig = TxPollingConfig & {
27
27
  radfi: RadfiConfig;
28
28
  walletMode?: 'USER' | 'TRADING';
29
29
  };
30
- export type BridgeConfig = {
31
- partnerFee: PartnerFee | undefined;
30
+ export type BridgeConfig = Prettify<BridgeDefaultConfig & BridgeOptions>;
31
+ export type BridgeOptions = {
32
+ partnerFee?: PartnerFee;
32
33
  };
33
- export declare const bridgeConfig: {
34
- partnerFee: undefined;
34
+ export type BridgeDefaultConfig = {};
35
+ export declare const bridgeConfig: {};
36
+ export type SodaxOptionalConfig = {
37
+ logger?: SodaxLoggerOption;
38
+ fee?: PartnerFee;
39
+ swaps?: SwapsOptions;
40
+ moneyMarket?: MoneyMarketOptions;
41
+ bridge?: BridgeOptions;
42
+ leverageYield?: LeverageYieldOptions;
35
43
  };
36
- export type SodaxConfig = {
37
- fee: PartnerFee | undefined;
44
+ /**
45
+ * Options (always optional) accepted by `new Sodax(...)`. A deep-partial override of the {@link SodaxDefaultConfig} data
46
+ * contract, plus client-side runtime options and feature-specific option types that are deliberately
47
+ * kept OUT of `SodaxStaticConfig` itself.
48
+ */
49
+ export type SodaxOptions = DeepPartial<SodaxDefaultConfig> & SodaxOptionalConfig;
50
+ /**
51
+ * Consolidated config type that combines the default static config and the client provided options in Core SDK.
52
+ * Used in new Sodax constructor where clients can override static config and provide options for the services.
53
+ */
54
+ export type SodaxConfig = Prettify<SodaxDefaultConfig & SodaxOptionalConfig>;
55
+ /**
56
+ * Default static config data shape used as default config in Core SDK and also used in backend API config responses.
57
+ */
58
+ export type SodaxDefaultConfig = {
38
59
  chains: Record<SpokeChainKey, SpokeChainConfig>;
39
- swaps: SwapsConfig;
40
- moneyMarket: MoneyMarketConfig;
41
- bridge: BridgeConfig;
42
- dex: DexConfig;
43
- leverageYield: LeverageYieldConfig;
60
+ swaps: SwapsDefaultConfig;
61
+ moneyMarket: MoneyMarketDefaultConfig;
62
+ bridge: BridgeDefaultConfig;
63
+ dex: DexDefaultConfig;
64
+ leverageYield: LeverageYieldDefaultConfig;
44
65
  hub: HubConfig;
45
66
  api: ApiConfig;
46
67
  solver: SolverConfig;
47
68
  relay: RelayConfig;
48
69
  };
49
70
  /**
50
- * Options accepted by `new Sodax(...)`. A deep-partial override of the {@link SodaxConfig} data
51
- * contract, plus the client-side `logger` runtime option which is deliberately kept OUT of
52
- * `SodaxConfig` itself: `SodaxConfig` is the data shape fetched from / merged with the backend,
53
- * whereas `logger` is a local sink that is resolved once and never fetched or overwritten.
54
- *
55
- * Keeping `logger` here (rather than on `SodaxConfig`) means `DeepPartial<SodaxConfig>` no longer
56
- * makes the logger's methods optional, so the SDK can resolve `options.logger` without casting.
71
+ * Sodax default static data object which can always be overriden through Sodax instance (i.e. new Sodax(...config))
57
72
  */
58
- export type SodaxOptions = DeepPartial<SodaxConfig> & {
59
- logger?: SodaxLoggerOption;
60
- };
61
73
  export declare const sodaxConfig: {
62
- fee: undefined;
63
74
  chains: {
64
75
  readonly sonic: {
65
76
  readonly chain: {
@@ -101,6 +112,15 @@ export declare const sodaxConfig: {
101
112
  readonly hubAsset: "0x136E5D1CEC5db1829E24941Eddd9C8640E02Ce7a";
102
113
  readonly vault: "0x136E5D1CEC5db1829E24941Eddd9C8640E02Ce7a";
103
114
  };
115
+ readonly lsodaJITOSOL: {
116
+ readonly symbol: "lsodaJITOSOL";
117
+ readonly name: "Leveraged Soda JITOSOL";
118
+ readonly decimals: 18;
119
+ readonly address: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
120
+ readonly chainKey: "sonic";
121
+ readonly hubAsset: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
122
+ readonly vault: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
123
+ };
104
124
  readonly sodaBNB: {
105
125
  readonly symbol: "sodaBNB";
106
126
  readonly name: "Soda BNB";
@@ -326,6 +346,15 @@ export declare const sodaxConfig: {
326
346
  readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
327
347
  readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
328
348
  };
349
+ readonly sodaJITOSOL: {
350
+ readonly symbol: "sodaJITOSOL";
351
+ readonly name: "Soda JITOSOL";
352
+ readonly decimals: 18;
353
+ readonly address: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
354
+ readonly chainKey: "sonic";
355
+ readonly hubAsset: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
356
+ readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
357
+ };
329
358
  readonly S: {
330
359
  readonly symbol: "S";
331
360
  readonly name: "Sonic";
@@ -651,7 +680,7 @@ export declare const sodaxConfig: {
651
680
  readonly address: "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn";
652
681
  readonly chainKey: "solana";
653
682
  readonly hubAsset: "0x942f89a324d2652e447b9fcf08effc9f9776a680";
654
- readonly vault: "0x942f89a324d2652e447b9fcf08effc9f9776a680";
683
+ readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
655
684
  };
656
685
  readonly mSOL: {
657
686
  readonly symbol: "mSOL";
@@ -1166,6 +1195,15 @@ export declare const sodaxConfig: {
1166
1195
  readonly hubAsset: "0xaa81bb5ba3c972ab53605d3ba7e443a3de6d1cb9";
1167
1196
  readonly vault: "0xaa81bb5ba3c972ab53605d3ba7e443a3de6d1cb9";
1168
1197
  };
1198
+ readonly AERO: {
1199
+ readonly symbol: "AERO";
1200
+ readonly name: "Aerodrome Finance";
1201
+ readonly decimals: 18;
1202
+ readonly address: "0x940181a94A35A4569e4529A3CDfB74e38FD98631";
1203
+ readonly chainKey: "0x2105.base";
1204
+ readonly hubAsset: "0x348e086ab6f424dfc575a325c28624ed23973173";
1205
+ readonly vault: "0x348e086ab6f424dfc575a325c28624ed23973173";
1206
+ };
1169
1207
  };
1170
1208
  readonly pollingConfig: {
1171
1209
  readonly pollingIntervalMs: 1000;
@@ -2024,6 +2062,18 @@ export declare const sodaxConfig: {
2024
2062
  readonly assetCode: "SODA";
2025
2063
  readonly contractId: "CAH5LKJC2ZB4RVUVEVL2QWJWNJLHQE2UF767ILLQ5EQ4O3OURR2XIUGM";
2026
2064
  readonly assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA";
2065
+ }, {
2066
+ readonly assetCode: "sodaETH";
2067
+ readonly contractId: "CDK5EWVTZLGSLI6D5OSES7XUKWZUKBXDRNOWUVDNPP5RJRP5EYWCW7SL";
2068
+ readonly assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA";
2069
+ }, {
2070
+ readonly assetCode: "sodaBTC";
2071
+ readonly contractId: "CD6XWBW74YVFDQQYUM2GALCULMA5MAWGP6NTCWF3ZYXP4Z7MEVY4JKBX";
2072
+ readonly assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA";
2073
+ }, {
2074
+ readonly assetCode: "sodaBNB";
2075
+ readonly contractId: "CCXTXZAFLVNTMORVWYB6BGL7YEW3U3ONDAL2FGBRGDUQH7AGANVQPRS6";
2076
+ readonly assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA";
2027
2077
  }];
2028
2078
  readonly supportedTokens: {
2029
2079
  readonly bnUSD: {
@@ -2071,6 +2121,33 @@ export declare const sodaxConfig: {
2071
2121
  readonly hubAsset: "0xD749B5FfFED7cEDaa3239abDd16D677179C29AEc";
2072
2122
  readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
2073
2123
  };
2124
+ readonly sodaETH: {
2125
+ readonly symbol: "sodaETH";
2126
+ readonly name: "Soda ETH";
2127
+ readonly decimals: 7;
2128
+ readonly address: "CDK5EWVTZLGSLI6D5OSES7XUKWZUKBXDRNOWUVDNPP5RJRP5EYWCW7SL";
2129
+ readonly chainKey: "stellar";
2130
+ readonly hubAsset: "0x4985a4b72ac723723e9ae82382d12d77e9a715de";
2131
+ readonly vault: "0x4effB5813271699683C25c734F4daBc45B363709";
2132
+ };
2133
+ readonly sodaBTC: {
2134
+ readonly symbol: "sodaBTC";
2135
+ readonly name: "Soda BTC";
2136
+ readonly decimals: 7;
2137
+ readonly address: "CD6XWBW74YVFDQQYUM2GALCULMA5MAWGP6NTCWF3ZYXP4Z7MEVY4JKBX";
2138
+ readonly chainKey: "stellar";
2139
+ readonly hubAsset: "0xddee01f63c18843e2bac30cb702864d7632c83a2";
2140
+ readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
2141
+ };
2142
+ readonly sodaBNB: {
2143
+ readonly symbol: "sodaBNB";
2144
+ readonly name: "Soda BNB";
2145
+ readonly decimals: 7;
2146
+ readonly address: "CCXTXZAFLVNTMORVWYB6BGL7YEW3U3ONDAL2FGBRGDUQH7AGANVQPRS6";
2147
+ readonly chainKey: "stellar";
2148
+ readonly hubAsset: "0xa10be5f5c2dea7d272555dc73ea2a7317c3c5b63";
2149
+ readonly vault: "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b";
2150
+ };
2074
2151
  };
2075
2152
  readonly nativeToken: "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
2076
2153
  readonly bnUSD: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
@@ -2815,7 +2892,6 @@ export declare const sodaxConfig: {
2815
2892
  };
2816
2893
  };
2817
2894
  swaps: {
2818
- partnerFee: undefined;
2819
2895
  supportedTokens: {
2820
2896
  readonly sonic: [{
2821
2897
  readonly symbol: "S";
@@ -3065,6 +3141,14 @@ export declare const sodaxConfig: {
3065
3141
  readonly chainKey: "sonic";
3066
3142
  readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
3067
3143
  readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
3144
+ } | {
3145
+ readonly symbol: "sodaJITOSOL";
3146
+ readonly name: "Soda JITOSOL";
3147
+ readonly decimals: 18;
3148
+ readonly address: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
3149
+ readonly chainKey: "sonic";
3150
+ readonly hubAsset: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
3151
+ readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
3068
3152
  } | {
3069
3153
  readonly symbol: "lsodaWEETH";
3070
3154
  readonly name: "Leveraged Soda weETH";
@@ -3081,6 +3165,14 @@ export declare const sodaxConfig: {
3081
3165
  readonly chainKey: "sonic";
3082
3166
  readonly hubAsset: "0x136E5D1CEC5db1829E24941Eddd9C8640E02Ce7a";
3083
3167
  readonly vault: "0x136E5D1CEC5db1829E24941Eddd9C8640E02Ce7a";
3168
+ } | {
3169
+ readonly symbol: "lsodaJITOSOL";
3170
+ readonly name: "Leveraged Soda JITOSOL";
3171
+ readonly decimals: 18;
3172
+ readonly address: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
3173
+ readonly chainKey: "sonic";
3174
+ readonly hubAsset: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
3175
+ readonly vault: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
3084
3176
  })[]];
3085
3177
  readonly "0xa86a.avax": [{
3086
3178
  readonly symbol: "AVAX";
@@ -3196,14 +3288,6 @@ export declare const sodaxConfig: {
3196
3288
  readonly chainKey: "0xa4b1.arbitrum";
3197
3289
  readonly hubAsset: "0x3C0a80C6a1110fC80309382b3989eC626c135eE9";
3198
3290
  readonly vault: "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876";
3199
- }, {
3200
- readonly symbol: "SODA";
3201
- readonly name: "SODAX";
3202
- readonly decimals: 18;
3203
- readonly address: "0x5bda87f18109CA85fa7ADDf1D48B97734e9dc6F5";
3204
- readonly chainKey: "0xa4b1.arbitrum";
3205
- readonly hubAsset: "0x66be65dd6d2401c179a2f7ab2d5cdfb040567727";
3206
- readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
3207
3291
  }, {
3208
3292
  readonly symbol: "ARB";
3209
3293
  readonly name: "Arbitrum";
@@ -3260,6 +3344,14 @@ export declare const sodaxConfig: {
3260
3344
  readonly chainKey: "0xa4b1.arbitrum";
3261
3345
  readonly hubAsset: "0xd8270661d8bdc7c6d80c2a04f1d9775ea5db0553";
3262
3346
  readonly vault: "0xd8270661d8bdc7c6d80c2a04f1d9775ea5db0553";
3347
+ }, {
3348
+ readonly symbol: "SODA";
3349
+ readonly name: "SODAX";
3350
+ readonly decimals: 18;
3351
+ readonly address: "0x5bda87f18109CA85fa7ADDf1D48B97734e9dc6F5";
3352
+ readonly chainKey: "0xa4b1.arbitrum";
3353
+ readonly hubAsset: "0x66be65dd6d2401c179a2f7ab2d5cdfb040567727";
3354
+ readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
3263
3355
  }];
3264
3356
  readonly "0x2105.base": [{
3265
3357
  readonly symbol: "ETH";
@@ -3269,14 +3361,6 @@ export declare const sodaxConfig: {
3269
3361
  readonly chainKey: "0x2105.base";
3270
3362
  readonly hubAsset: "0x70178089842be7f8e4726b33f0d1569db8021faa";
3271
3363
  readonly vault: "0x4effB5813271699683C25c734F4daBc45B363709";
3272
- }, {
3273
- readonly symbol: "bnUSD";
3274
- readonly name: "bnUSD";
3275
- readonly decimals: 18;
3276
- readonly address: "0xAcfab3F31C0a18559D78556BBf297EC29c6cf8aa";
3277
- readonly chainKey: "0x2105.base";
3278
- readonly hubAsset: "0xDF5639D91359866f266b56D60d98edE9fEEDd100";
3279
- readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
3280
3364
  }, {
3281
3365
  readonly symbol: "weETH";
3282
3366
  readonly name: "Wrapped eETH";
@@ -3310,14 +3394,6 @@ export declare const sodaxConfig: {
3310
3394
  readonly hubAsset: "0x2803a23a3BA6b09e57D1c71deC0D9eFdBB00A27F";
3311
3395
  readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
3312
3396
  readonly access: "withdrawOnly";
3313
- }, {
3314
- readonly symbol: "SODA";
3315
- readonly name: "SODAX";
3316
- readonly decimals: 18;
3317
- readonly address: "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3";
3318
- readonly chainKey: "0x2105.base";
3319
- readonly hubAsset: "0x17fF8Ad5EBe6CA8B15751067cD0c89f0E580CD17";
3320
- readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
3321
3397
  }, {
3322
3398
  readonly symbol: "VIRTUAL";
3323
3399
  readonly name: "Virtual Protocol";
@@ -3334,6 +3410,14 @@ export declare const sodaxConfig: {
3334
3410
  readonly chainKey: "0x2105.base";
3335
3411
  readonly hubAsset: "0xaa81bb5ba3c972ab53605d3ba7e443a3de6d1cb9";
3336
3412
  readonly vault: "0xaa81bb5ba3c972ab53605d3ba7e443a3de6d1cb9";
3413
+ }, {
3414
+ readonly symbol: "SODA";
3415
+ readonly name: "SODAX";
3416
+ readonly decimals: 18;
3417
+ readonly address: "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3";
3418
+ readonly chainKey: "0x2105.base";
3419
+ readonly hubAsset: "0x17fF8Ad5EBe6CA8B15751067cD0c89f0E580CD17";
3420
+ readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
3337
3421
  }];
3338
3422
  readonly "0xa.optimism": [{
3339
3423
  readonly symbol: "ETH";
@@ -3343,14 +3427,6 @@ export declare const sodaxConfig: {
3343
3427
  readonly chainKey: "0xa.optimism";
3344
3428
  readonly hubAsset: "0xad332860dd3b6f0e63f4f66e9457900917ac78cd";
3345
3429
  readonly vault: "0x4effB5813271699683C25c734F4daBc45B363709";
3346
- }, {
3347
- readonly symbol: "bnUSD";
3348
- readonly name: "bnUSD";
3349
- readonly decimals: 18;
3350
- readonly address: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
3351
- readonly chainKey: "0xa.optimism";
3352
- readonly hubAsset: "0x238384AE2b4F0EC189ecB5031859bA306B2679c5";
3353
- readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
3354
3430
  }, {
3355
3431
  readonly symbol: "USDC";
3356
3432
  readonly name: "USD Coin";
@@ -3399,6 +3475,14 @@ export declare const sodaxConfig: {
3399
3475
  readonly chainKey: "0xa.optimism";
3400
3476
  readonly hubAsset: "0xd08375176410febee9cf4591532455a4cdfe4463";
3401
3477
  readonly vault: "0xd08375176410febee9cf4591532455a4cdfe4463";
3478
+ }, {
3479
+ readonly symbol: "bnUSD";
3480
+ readonly name: "bnUSD";
3481
+ readonly decimals: 18;
3482
+ readonly address: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
3483
+ readonly chainKey: "0xa.optimism";
3484
+ readonly hubAsset: "0x238384AE2b4F0EC189ecB5031859bA306B2679c5";
3485
+ readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
3402
3486
  }];
3403
3487
  readonly "0x89.polygon": [{
3404
3488
  readonly symbol: "POL";
@@ -3779,14 +3863,6 @@ export declare const sodaxConfig: {
3779
3863
  readonly chainKey: "lightlink";
3780
3864
  readonly hubAsset: "0x15ba35f87f259b9b50d53a2fec271bb10020b090";
3781
3865
  readonly vault: "0x208ED38f4783328aA9eBFeC360D32e7520A9B779";
3782
- }, {
3783
- readonly symbol: "HYPE.LL";
3784
- readonly name: "HyperEVM LightLink";
3785
- readonly decimals: 18;
3786
- readonly address: "0x127b64fb645279F8aca786c507b94dde81F02d16";
3787
- readonly chainKey: "lightlink";
3788
- readonly hubAsset: "0xea7e97b4597f724844426c32248ba80bd29c75f8";
3789
- readonly vault: "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411";
3790
3866
  }, {
3791
3867
  readonly symbol: "LL";
3792
3868
  readonly name: "LightLink";
@@ -3859,7 +3935,7 @@ export declare const sodaxConfig: {
3859
3935
  readonly address: "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn";
3860
3936
  readonly chainKey: "solana";
3861
3937
  readonly hubAsset: "0x942f89a324d2652e447b9fcf08effc9f9776a680";
3862
- readonly vault: "0x942f89a324d2652e447b9fcf08effc9f9776a680";
3938
+ readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
3863
3939
  }, {
3864
3940
  readonly symbol: "mSOL";
3865
3941
  readonly name: "Marinade Staked SOL";
@@ -4022,6 +4098,30 @@ export declare const sodaxConfig: {
4022
4098
  readonly chainKey: "stellar";
4023
4099
  readonly hubAsset: "0xD749B5FfFED7cEDaa3239abDd16D677179C29AEc";
4024
4100
  readonly vault: "0x21685E341DE7844135329914Be6Bd8D16982d834";
4101
+ }, {
4102
+ readonly symbol: "sodaETH";
4103
+ readonly name: "Soda ETH";
4104
+ readonly decimals: 7;
4105
+ readonly address: "CDK5EWVTZLGSLI6D5OSES7XUKWZUKBXDRNOWUVDNPP5RJRP5EYWCW7SL";
4106
+ readonly chainKey: "stellar";
4107
+ readonly hubAsset: "0x4985a4b72ac723723e9ae82382d12d77e9a715de";
4108
+ readonly vault: "0x4effB5813271699683C25c734F4daBc45B363709";
4109
+ }, {
4110
+ readonly symbol: "sodaBTC";
4111
+ readonly name: "Soda BTC";
4112
+ readonly decimals: 7;
4113
+ readonly address: "CD6XWBW74YVFDQQYUM2GALCULMA5MAWGP6NTCWF3ZYXP4Z7MEVY4JKBX";
4114
+ readonly chainKey: "stellar";
4115
+ readonly hubAsset: "0xddee01f63c18843e2bac30cb702864d7632c83a2";
4116
+ readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
4117
+ }, {
4118
+ readonly symbol: "sodaBNB";
4119
+ readonly name: "Soda BNB";
4120
+ readonly decimals: 7;
4121
+ readonly address: "CCXTXZAFLVNTMORVWYB6BGL7YEW3U3ONDAL2FGBRGDUQH7AGANVQPRS6";
4122
+ readonly chainKey: "stellar";
4123
+ readonly hubAsset: "0xa10be5f5c2dea7d272555dc73ea2a7317c3c5b63";
4124
+ readonly vault: "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b";
4025
4125
  }];
4026
4126
  readonly sui: [{
4027
4127
  readonly symbol: "SUI";
@@ -4128,31 +4228,7 @@ export declare const sodaxConfig: {
4128
4228
  readonly hubAsset: "0xb78c7c96ae996b4d479bb81b7569a5c6a79c88cb";
4129
4229
  readonly vault: "0xb78c7c96ae996b4d479bb81b7569a5c6a79c88cb";
4130
4230
  }];
4131
- readonly "injective-1": [{
4132
- readonly symbol: "INJ";
4133
- readonly name: "Injective";
4134
- readonly decimals: 18;
4135
- readonly address: "inj";
4136
- readonly chainKey: "injective-1";
4137
- readonly hubAsset: "0xd375590b4955f6ea5623f799153f9b787a3bd319";
4138
- readonly vault: "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13";
4139
- }, {
4140
- readonly symbol: "bnUSD";
4141
- readonly name: "bnUSD";
4142
- readonly decimals: 18;
4143
- readonly address: "factory/inj1d036ftaatxpkqsu9hja8r24rv3v33chz3appxp/bnUSD";
4144
- readonly chainKey: "injective-1";
4145
- readonly hubAsset: "0x69425FFb14704124A58d6F69d510f74A59D9a5bC";
4146
- readonly vault: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
4147
- }, {
4148
- readonly symbol: "USDC";
4149
- readonly name: "USD Coin";
4150
- readonly decimals: 6;
4151
- readonly address: "ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E";
4152
- readonly chainKey: "injective-1";
4153
- readonly hubAsset: "0x4bc1211faa06fb50ff61a70331f56167ae511057";
4154
- readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
4155
- }];
4231
+ readonly "injective-1": [];
4156
4232
  readonly near: [{
4157
4233
  readonly symbol: "NEAR";
4158
4234
  readonly name: "NEAR";
@@ -5165,6 +5241,14 @@ export declare const sodaxConfig: {
5165
5241
  readonly chainKey: "solana";
5166
5242
  readonly hubAsset: "0x891c7ab9047eb087b5a988a2638e7056f67adc5c";
5167
5243
  readonly vault: "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876";
5244
+ }, {
5245
+ readonly symbol: "JitoSOL";
5246
+ readonly name: "Jito Staked SOL";
5247
+ readonly decimals: 9;
5248
+ readonly address: "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn";
5249
+ readonly chainKey: "solana";
5250
+ readonly hubAsset: "0x942f89a324d2652e447b9fcf08effc9f9776a680";
5251
+ readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
5168
5252
  }];
5169
5253
  readonly "0x1.icon": [{
5170
5254
  readonly symbol: "bnUSD (legacy)";
@@ -5207,6 +5291,30 @@ export declare const sodaxConfig: {
5207
5291
  readonly chainKey: "stellar";
5208
5292
  readonly hubAsset: "0x348007B53F25A9A857aB8eA81ec9E3CCBCf440f2";
5209
5293
  readonly vault: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833";
5294
+ }, {
5295
+ readonly symbol: "sodaETH";
5296
+ readonly name: "Soda ETH";
5297
+ readonly decimals: 7;
5298
+ readonly address: "CDK5EWVTZLGSLI6D5OSES7XUKWZUKBXDRNOWUVDNPP5RJRP5EYWCW7SL";
5299
+ readonly chainKey: "stellar";
5300
+ readonly hubAsset: "0x4985a4b72ac723723e9ae82382d12d77e9a715de";
5301
+ readonly vault: "0x4effB5813271699683C25c734F4daBc45B363709";
5302
+ }, {
5303
+ readonly symbol: "sodaBTC";
5304
+ readonly name: "Soda BTC";
5305
+ readonly decimals: 7;
5306
+ readonly address: "CD6XWBW74YVFDQQYUM2GALCULMA5MAWGP6NTCWF3ZYXP4Z7MEVY4JKBX";
5307
+ readonly chainKey: "stellar";
5308
+ readonly hubAsset: "0xddee01f63c18843e2bac30cb702864d7632c83a2";
5309
+ readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
5310
+ }, {
5311
+ readonly symbol: "sodaBNB";
5312
+ readonly name: "Soda BNB";
5313
+ readonly decimals: 7;
5314
+ readonly address: "CCXTXZAFLVNTMORVWYB6BGL7YEW3U3ONDAL2FGBRGDUQH7AGANVQPRS6";
5315
+ readonly chainKey: "stellar";
5316
+ readonly hubAsset: "0xa10be5f5c2dea7d272555dc73ea2a7317c3c5b63";
5317
+ readonly vault: "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b";
5210
5318
  }];
5211
5319
  readonly sui: [{
5212
5320
  readonly symbol: "SUI";
@@ -5538,6 +5646,14 @@ export declare const sodaxConfig: {
5538
5646
  readonly chainKey: "sonic";
5539
5647
  readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
5540
5648
  readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
5649
+ } | {
5650
+ readonly symbol: "sodaJITOSOL";
5651
+ readonly name: "Soda JITOSOL";
5652
+ readonly decimals: 18;
5653
+ readonly address: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
5654
+ readonly chainKey: "sonic";
5655
+ readonly hubAsset: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
5656
+ readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
5541
5657
  })[]];
5542
5658
  readonly near: [{
5543
5659
  readonly symbol: "NEAR";
@@ -5859,11 +5975,9 @@ export declare const sodaxConfig: {
5859
5975
  readonly vault: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
5860
5976
  }];
5861
5977
  };
5862
- readonly supportedReserveAssets: [...("0x21685E341DE7844135329914Be6Bd8D16982d834" | "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d" | "0x4effB5813271699683C25c734F4daBc45B363709" | "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b" | "0x14238D267557E9d799016ad635B53CD15935d290" | "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB" | "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87" | "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B" | "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13" | "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3" | "0xE801CA34E19aBCbFeA12025378D19c4FBE250131" | "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833" | "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876" | "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e" | "0x208ED38f4783328aA9eBFeC360D32e7520A9B779" | "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411" | "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac" | "0x14C5eB2D25dFb834852dFc85744875d1eCb09748" | "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357" | "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B" | "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39" | "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891" | "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483" | "0x243b0c26c8b38793908d7C64e8510f21B19B4613")[], "0xE801CA34E19aBCbFeA12025378D19c4FBE250131"];
5863
- };
5864
- bridge: {
5865
- partnerFee: undefined;
5978
+ readonly supportedReserveAssets: [...("0x21685E341DE7844135329914Be6Bd8D16982d834" | "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d" | "0x4effB5813271699683C25c734F4daBc45B363709" | "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b" | "0x14238D267557E9d799016ad635B53CD15935d290" | "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB" | "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87" | "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B" | "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13" | "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3" | "0xE801CA34E19aBCbFeA12025378D19c4FBE250131" | "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833" | "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876" | "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e" | "0x208ED38f4783328aA9eBFeC360D32e7520A9B779" | "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411" | "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac" | "0x14C5eB2D25dFb834852dFc85744875d1eCb09748" | "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357" | "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B" | "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39" | "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891" | "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483" | "0x243b0c26c8b38793908d7C64e8510f21B19B4613" | "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0")[], "0xE801CA34E19aBCbFeA12025378D19c4FBE250131"];
5866
5979
  };
5980
+ bridge: {};
5867
5981
  dex: {
5868
5982
  readonly concentratedLiquidityConfig: {
5869
5983
  readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
@@ -6011,6 +6125,16 @@ export declare const sodaxConfig: {
6011
6125
  readonly fallbackAprPct: 2.4;
6012
6126
  readonly label: "Lido (stETH)";
6013
6127
  };
6128
+ }, {
6129
+ readonly name: "lsodaJITOSOL";
6130
+ readonly vault: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
6131
+ readonly asset: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
6132
+ readonly borrowToken: "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87";
6133
+ readonly lsdSource: {
6134
+ readonly poolId: "0e7d0722-9054-4907-8593-567b353c0900";
6135
+ readonly fallbackAprPct: 5.5;
6136
+ readonly label: "Jito (JitoSOL)";
6137
+ };
6014
6138
  }];
6015
6139
  };
6016
6140
  hub: {
@@ -6061,6 +6185,15 @@ export declare const sodaxConfig: {
6061
6185
  readonly hubAsset: "0x136E5D1CEC5db1829E24941Eddd9C8640E02Ce7a";
6062
6186
  readonly vault: "0x136E5D1CEC5db1829E24941Eddd9C8640E02Ce7a";
6063
6187
  };
6188
+ readonly lsodaJITOSOL: {
6189
+ readonly symbol: "lsodaJITOSOL";
6190
+ readonly name: "Leveraged Soda JITOSOL";
6191
+ readonly decimals: 18;
6192
+ readonly address: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
6193
+ readonly chainKey: "sonic";
6194
+ readonly hubAsset: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
6195
+ readonly vault: "0xD7Ae4853E0f93682F5DaA14734F5D18cBa09Bd78";
6196
+ };
6064
6197
  readonly sodaBNB: {
6065
6198
  readonly symbol: "sodaBNB";
6066
6199
  readonly name: "Soda BNB";
@@ -6286,6 +6419,15 @@ export declare const sodaxConfig: {
6286
6419
  readonly hubAsset: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
6287
6420
  readonly vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613";
6288
6421
  };
6422
+ readonly sodaJITOSOL: {
6423
+ readonly symbol: "sodaJITOSOL";
6424
+ readonly name: "Soda JITOSOL";
6425
+ readonly decimals: 18;
6426
+ readonly address: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
6427
+ readonly chainKey: "sonic";
6428
+ readonly hubAsset: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
6429
+ readonly vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0";
6430
+ };
6289
6431
  readonly S: {
6290
6432
  readonly symbol: "S";
6291
6433
  readonly name: "Sonic";
@@ -2,14 +2,13 @@ import { apiConfig, solverConfig, relayConfig, } from '../common/constants.js';
2
2
  import { moneyMarketConfig } from '../moneyMarket/moneyMarket.js';
3
3
  import { dexConfig } from '../dex/dex.js';
4
4
  import { swapsConfig } from '../swap/swap.js';
5
- import { leverageYieldConfig } from '../leverageYield/leverageYield.js';
5
+ import { leverageYieldConfig, } from '../leverageYield/leverageYield.js';
6
6
  import { spokeChainConfig, hubConfig, } from '../chains/chains.js';
7
- export const bridgeConfig = {
8
- partnerFee: undefined,
9
- };
10
- // default sodax config object which can always be overriden through Sodax instance (i.e. new Sodax(...config))
7
+ export const bridgeConfig = {};
8
+ /**
9
+ * Sodax default static data object which can always be overriden through Sodax instance (i.e. new Sodax(...config))
10
+ */
11
11
  export const sodaxConfig = {
12
- fee: undefined,
13
12
  chains: spokeChainConfig,
14
13
  swaps: swapsConfig,
15
14
  moneyMarket: moneyMarketConfig,