@sodax/sdk 0.0.1-rc.37 → 0.0.1-rc.38

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/index.d.cts CHANGED
@@ -1,12 +1,11 @@
1
1
  import * as viem from 'viem';
2
- import { Address, Hex, PublicClient, HttpTransport, Hash, GetLogsReturnType, TransactionReceipt, WalletClient, CustomTransport, Chain, Account } from 'viem';
3
- import { IInjectiveWalletProvider, InjectiveExecuteResponse, SpokeChainId, Hex as Hex$1, IEvmWalletProvider, Address as Address$1, HubAddress, EvmRawTransaction, ISuiWalletProvider, Hash as Hash$1, IconEoaAddress, XToken, IIconWalletProvider, ISolanaWalletProvider, SolanaBase58PublicKey, IStellarWalletProvider, ChainType, HubChainId, Token, InjectiveNetworkEnv, StellarRawTransaction, InjectiveRawTransaction, ICON_MAINNET_CHAIN_ID, EvmRawTransactionReceipt, ChainId, OriginalAssetAddress } from '@sodax/types';
2
+ import { Address, Hex, PublicClient, HttpTransport, Hash, GetLogsReturnType, TransactionReceipt, WalletClient, CustomTransport, Chain, Account as Account$1 } from 'viem';
3
+ import { IInjectiveWalletProvider, InjectiveExecuteResponse, SpokeChainId, Hex as Hex$1, IEvmWalletProvider, Address as Address$1, HubAddress, EvmRawTransaction, IStellarWalletProvider, StellarRawTransaction, ISuiWalletProvider, Hash as Hash$1, IconEoaAddress, XToken, IIconWalletProvider, ISolanaWalletProvider, SolanaBase58PublicKey, ChainType, HubChainId, Token, InjectiveNetworkEnv, InjectiveRawTransaction, ICON_MAINNET_CHAIN_ID, EvmRawTransactionReceipt, ChainId, OriginalAssetAddress } from '@sodax/types';
4
4
  export * from '@sodax/types';
5
5
  import { TxGrpcApi } from '@injectivelabs/sdk-ts';
6
- import { Horizon, SorobanRpc, Transaction as Transaction$1, Memo, MemoType, Operation, FeeBumpTransaction } from '@stellar/stellar-sdk';
7
- import { Api } from '@stellar/stellar-sdk/rpc';
6
+ import { SorobanRpc, rpc, Transaction, Memo, MemoType, Operation, FeeBumpTransaction, Horizon, Account, xdr } from '@stellar/stellar-sdk';
8
7
  import { SuiClient } from '@mysten/sui/client';
9
- import { Transaction, TransactionResult } from '@mysten/sui/transactions';
8
+ import { Transaction as Transaction$1, TransactionResult } from '@mysten/sui/transactions';
10
9
  import { IconService } from 'icon-sdk-js';
11
10
  import BigNumber$1 from 'bignumber.js';
12
11
  import { PublicKey } from '@solana/web3.js';
@@ -6168,6 +6167,126 @@ declare class SonicSpokeService {
6168
6167
  static buildWithdrawData(from: Address, withdrawInfo: WithdrawInfo, amount: bigint, spokeProvider: SonicSpokeProvider, moneyMarketService: MoneyMarketService, userRouterAddress?: HubAddress): Promise<Hex$1>;
6169
6168
  }
6170
6169
 
6170
+ declare class CustomSorobanServer extends SorobanRpc.Server {
6171
+ private customHeaders;
6172
+ constructor(serverUrl: string, customHeaders: Record<string, string>);
6173
+ getNetwork(): Promise<rpc.Api.GetNetworkResponse>;
6174
+ simulateTransaction(tx: Transaction<Memo<MemoType>, Operation[]>): Promise<SorobanRpc.Api.SimulateTransactionResponse>;
6175
+ sendTransaction(tx: Transaction | FeeBumpTransaction): Promise<SorobanRpc.Api.SendTransactionResponse>;
6176
+ getTransaction(hash: string): Promise<SorobanRpc.Api.GetTransactionResponse>;
6177
+ }
6178
+
6179
+ declare class CustomStellarAccount {
6180
+ private readonly accountId;
6181
+ private sequenceNumber;
6182
+ private readonly startingSequenceNumber;
6183
+ constructor({ account_id, sequence }: {
6184
+ account_id: string;
6185
+ sequence: string;
6186
+ });
6187
+ getSequenceNumber(): bigint;
6188
+ getStartingSequenceNumber(): bigint;
6189
+ getAccountId(): string;
6190
+ getAccountClone(): Account;
6191
+ incrementSequenceNumber(): void;
6192
+ decrementSequenceNumber(): void;
6193
+ resetSequenceNumber(): void;
6194
+ }
6195
+ type StellarRpcConfig = {
6196
+ horizonRpcUrl?: HttpUrl;
6197
+ sorobanRpcUrl?: HttpUrl;
6198
+ };
6199
+ declare class StellarSpokeProvider implements ISpokeProvider {
6200
+ readonly server: Horizon.Server;
6201
+ readonly sorobanServer: CustomSorobanServer;
6202
+ private readonly contract;
6203
+ readonly chainConfig: StellarSpokeChainConfig;
6204
+ readonly walletProvider: IStellarWalletProvider;
6205
+ constructor(walletProvider: IStellarWalletProvider, config: StellarSpokeChainConfig, rpcConfig?: StellarRpcConfig);
6206
+ getBalance(tokenAddress: string): Promise<number>;
6207
+ buildPriorityStellarTransaction(account: CustomStellarAccount, network: rpc.Api.GetNetworkResponse, operation: xdr.Operation<Operation.InvokeHostFunction>): Promise<[Transaction, rpc.Api.SimulateTransactionResponse]>;
6208
+ private handleSendTransactionError;
6209
+ signAndSendTransaction(tx: Transaction | FeeBumpTransaction, waitForTransaction?: boolean): Promise<string>;
6210
+ private waitForTransaction;
6211
+ submitOrRestoreAndRetry(account: CustomStellarAccount, network: rpc.Api.GetNetworkResponse, tx: Transaction, operation: xdr.Operation<Operation.InvokeHostFunction>, simulation?: rpc.Api.SimulateTransactionResponse): Promise<string>;
6212
+ private handleSimulationRestore;
6213
+ deposit<R extends boolean = false>(token: string, amount: string, recipient: Uint8Array, data: Uint8Array, raw?: R): PromiseStellarTxReturnType<R>;
6214
+ sendMessage<R extends boolean = false>(dst_chain_id: string, dst_address: Uint8Array, payload: Uint8Array, raw?: R): PromiseStellarTxReturnType<R>;
6215
+ private buildDepositCall;
6216
+ private buildSendMessageCall;
6217
+ static getAddressBCSBytes(stellaraddress: string): Hex;
6218
+ static getTsWalletBytes(stellaraddress: string): Hex;
6219
+ }
6220
+
6221
+ type StellarSpokeDepositParams = {
6222
+ from: Hex;
6223
+ to?: HubAddress;
6224
+ token: string;
6225
+ amount: bigint;
6226
+ data: Hex;
6227
+ };
6228
+ type TransferToHubParams = {
6229
+ token: string;
6230
+ recipient: Address;
6231
+ amount: bigint;
6232
+ data: Hex;
6233
+ };
6234
+ declare class StellarSpokeService {
6235
+ private constructor();
6236
+ /**
6237
+ * Check if the user has sufficent trustline established for the token.
6238
+ * @param token - The token address to check the trustline for.
6239
+ * @param amount - The amount of tokens to check the trustline for.
6240
+ * @param spokeProvider - The Stellar spoke provider.
6241
+ * @returns True if the user has sufficent trustline established for the token, false otherwise.
6242
+ */
6243
+ static hasSufficientTrustline(token: string, amount: bigint, spokeProvider: StellarSpokeProvider): Promise<boolean>;
6244
+ /**
6245
+ * Request a trustline for a given token and amount.
6246
+ * @param token - The token address to request the trustline for.
6247
+ * @param amount - The amount of tokens to request the trustline for.
6248
+ * @param spokeProvider - The spoke provider.
6249
+ * @param raw - Whether to return the raw transaction data.
6250
+ * @returns The transaction result.
6251
+ */
6252
+ static requestTrustline<R extends boolean = false>(token: string, amount: bigint, spokeProvider: StellarSpokeProvider, raw?: R): PromiseStellarTxReturnType<R>;
6253
+ /**
6254
+ * Estimate the gas for a transaction.
6255
+ * @param rawTx - The raw transaction to estimate the gas for.
6256
+ * @param spokeProvider - The spoke provider.
6257
+ * @returns The estimated gas (minResourceFee) for the transaction.
6258
+ */
6259
+ static estimateGas(rawTx: StellarRawTransaction, spokeProvider: StellarSpokeProvider): Promise<StellarGasEstimate>;
6260
+ static deposit<R extends boolean = false>(params: StellarSpokeDepositParams, spokeProvider: StellarSpokeProvider, hubProvider: EvmHubProvider, raw?: R): PromiseStellarTxReturnType<R>;
6261
+ /**
6262
+ * Get the balance of the token in the spoke chain asset manager.
6263
+ * @param token - The address of the token to get the balance of.
6264
+ * @param spokeProvider - The spoke provider.
6265
+ * @returns The balance of the token.
6266
+ */
6267
+ static getDeposit(token: string, spokeProvider: StellarSpokeProvider): Promise<bigint>;
6268
+ /**
6269
+ * Generate simulation parameters for deposit from StellarSpokeDepositParams.
6270
+ * @param {StellarSpokeDepositParams} params - The deposit parameters.
6271
+ * @param {StellarSpokeProvider} spokeProvider - The provider for the spoke chain.
6272
+ * @param {EvmHubProvider} hubProvider - The provider for the hub chain.
6273
+ * @returns {Promise<DepositSimulationParams>} The simulation parameters.
6274
+ */
6275
+ static getSimulateDepositParams(params: StellarSpokeDepositParams, spokeProvider: StellarSpokeProvider, hubProvider: EvmHubProvider): Promise<DepositSimulationParams>;
6276
+ /**
6277
+ * Calls a contract on the spoke chain using the user's wallet.
6278
+ * @param from - The address of the user on the hub chain.
6279
+ * @param payload - The payload to send to the contract.
6280
+ * @param spokeProvider - The spoke provider.
6281
+ * @param hubProvider - The hub provider.
6282
+ * @param raw - Whether to return the raw transaction data.
6283
+ * @returns The transaction result.
6284
+ */
6285
+ static callWallet<R extends boolean = false>(from: HubAddress, payload: Hex, spokeProvider: StellarSpokeProvider, hubProvider: EvmHubProvider, raw?: R): PromiseStellarTxReturnType<R>;
6286
+ private static transfer;
6287
+ private static call;
6288
+ }
6289
+
6171
6290
  type SuiNativeCoinResult = {
6172
6291
  $kind: 'NestedResult';
6173
6292
  NestedResult: [number, number];
@@ -6185,8 +6304,8 @@ declare class SuiSpokeProvider implements ISpokeProvider {
6185
6304
  constructor(config: SuiSpokeChainConfig, wallet_provider: ISuiWalletProvider);
6186
6305
  getBalance(token: string): Promise<bigint>;
6187
6306
  transfer<R extends boolean = false>(token: string, amount: bigint, to: Uint8Array, data: Uint8Array, raw?: R): PromiseSuiTxReturnType<R>;
6188
- getNativeCoin(tx: Transaction, amount: bigint): Promise<SuiNativeCoinResult>;
6189
- getCoin(tx: Transaction, coin: string, amount: bigint, address: string): Promise<TransactionResult | SuiTxObject>;
6307
+ getNativeCoin(tx: Transaction$1, amount: bigint): Promise<SuiNativeCoinResult>;
6308
+ getCoin(tx: Transaction$1, coin: string, amount: bigint, address: string): Promise<TransactionResult | SuiTxObject>;
6190
6309
  splitAddress(address: string): {
6191
6310
  packageId: string;
6192
6311
  moduleId: string;
@@ -8021,48 +8140,6 @@ type SolanaSpokeDepositParams = {
8021
8140
  data: Hex;
8022
8141
  };
8023
8142
 
8024
- declare class CustomSorobanServer extends SorobanRpc.Server {
8025
- private customHeaders;
8026
- constructor(serverUrl: string, customHeaders: Record<string, string>);
8027
- getNetwork(): Promise<Api.GetNetworkResponse>;
8028
- simulateTransaction(tx: Transaction$1<Memo<MemoType>, Operation[]>): Promise<SorobanRpc.Api.SimulateTransactionResponse>;
8029
- sendTransaction(tx: Transaction$1 | FeeBumpTransaction): Promise<SorobanRpc.Api.SendTransactionResponse>;
8030
- getTransaction(hash: string): Promise<SorobanRpc.Api.GetTransactionResponse>;
8031
- }
8032
- type StellarRpcConfig = {
8033
- horizonRpcUrl?: HttpUrl;
8034
- sorobanRpcUrl?: HttpUrl;
8035
- };
8036
- declare class StellarSpokeProvider implements ISpokeProvider {
8037
- readonly server: Horizon.Server;
8038
- readonly sorobanServer: CustomSorobanServer;
8039
- private readonly contract;
8040
- readonly chainConfig: StellarSpokeChainConfig;
8041
- readonly walletProvider: IStellarWalletProvider;
8042
- constructor(walletProvider: IStellarWalletProvider, config: StellarSpokeChainConfig, rpcConfig?: StellarRpcConfig);
8043
- getBalance(tokenAddress: string): Promise<number>;
8044
- private buildPriorityStellarTransaction;
8045
- private handleSendTransactionError;
8046
- private signAndSendTransaction;
8047
- private waitForTransaction;
8048
- private submitOrRestoreAndRetry;
8049
- private handleSimulationRestore;
8050
- deposit<R extends boolean = false>(token: string, amount: string, recipient: Uint8Array, data: Uint8Array, raw?: R): PromiseStellarTxReturnType<R>;
8051
- sendMessage<R extends boolean = false>(dst_chain_id: string, dst_address: Uint8Array, payload: Uint8Array, raw?: R): PromiseStellarTxReturnType<R>;
8052
- private buildDepositCall;
8053
- private buildSendMessageCall;
8054
- static getAddressBCSBytes(stellaraddress: string): Hex;
8055
- static getTsWalletBytes(stellaraddress: string): Hex;
8056
- }
8057
-
8058
- type StellarSpokeDepositParams = {
8059
- from: Hex;
8060
- to?: HubAddress;
8061
- token: string;
8062
- amount: bigint;
8063
- data: Hex;
8064
- };
8065
-
8066
8143
  type InjectiveSpokeDepositParams = {
8067
8144
  from: string;
8068
8145
  to?: HubAddress;
@@ -8075,9 +8152,9 @@ type LegacybnUSDChainId = (typeof bnUSDLegacySpokeChainIds)[number];
8075
8152
  type LegacybnUSDTokenAddress = (typeof bnUSDLegacyTokens)[number]['address'];
8076
8153
  type LegacybnUSDToken = (typeof bnUSDLegacyTokens)[number];
8077
8154
  type NewbnUSDChainId = (typeof newbnUSDSpokeChainIds)[number];
8078
- type IntentRelayChainId = (typeof INTENT_RELAY_CHAIN_IDS)[keyof typeof INTENT_RELAY_CHAIN_IDS];
8155
+ type IntentRelayChainId = (typeof ChainIdToIntentRelayChainId)[keyof typeof ChainIdToIntentRelayChainId];
8079
8156
  type EvmChainId = (typeof EVM_CHAIN_IDS)[number];
8080
- type EvmSpokeChainId = (typeof EVM_SPOKE_CHAIN_IDS)[number];
8157
+ type EvmSpokeChainId = (typeof EVM_CHAIN_IDS)[number];
8081
8158
  type BaseSpokeChainInfo<T extends ChainType> = {
8082
8159
  name: string;
8083
8160
  id: GetSpokeChainIdType<T>;
@@ -8193,6 +8270,11 @@ type InjectiveSpokeChainConfig = BaseSpokeChainConfig<'INJECTIVE'> & {
8193
8270
  networkId: string;
8194
8271
  network: InjectiveNetworkEnv;
8195
8272
  };
8273
+ type StellarAssetTrustline = {
8274
+ assetCode: string;
8275
+ contractId: string;
8276
+ assetIssuer: string;
8277
+ };
8196
8278
  type StellarSpokeChainConfig = BaseSpokeChainConfig<'STELLAR'> & {
8197
8279
  addresses: {
8198
8280
  assetManager: string;
@@ -8203,6 +8285,7 @@ type StellarSpokeChainConfig = BaseSpokeChainConfig<'STELLAR'> & {
8203
8285
  };
8204
8286
  horizonRpcUrl: HttpUrl;
8205
8287
  sorobanRpcUrl: HttpUrl;
8288
+ trustlineConfigs: StellarAssetTrustline[];
8206
8289
  };
8207
8290
  type IconSpokeChainConfig = BaseSpokeChainConfig<'ICON'> & {
8208
8291
  addresses: {
@@ -8497,7 +8580,7 @@ type EvmUninitializedPrivateKeyConfig = {
8497
8580
  };
8498
8581
  type EvmUninitializedConfig = EvmUninitializedBrowserConfig | EvmUninitializedPrivateKeyConfig;
8499
8582
  type EvmInitializedConfig = {
8500
- walletClient: WalletClient<CustomTransport | HttpTransport, Chain, Account>;
8583
+ walletClient: WalletClient<CustomTransport | HttpTransport, Chain, Account$1>;
8501
8584
  publicClient: PublicClient<CustomTransport | HttpTransport>;
8502
8585
  };
8503
8586
  type EvmHubProviderConfig = {
@@ -9151,6 +9234,7 @@ declare function hexToBigInt(hex: string): bigint;
9151
9234
  * @returns Abstracted user wallet address for spoke chains with different chain id than hub or original
9152
9235
  */
9153
9236
  declare function deriveUserWalletAddress(spokeProvider: SpokeProvider, hubProvider: EvmHubProvider, walletAddress?: string): Promise<Address$1>;
9237
+ declare function parseToStroops(amount: string): bigint;
9154
9238
 
9155
9239
  declare const DEFAULT_MAX_RETRY = 3;
9156
9240
  declare const DEFAULT_RELAY_TX_TIMEOUT = 120000;
@@ -9168,25 +9252,24 @@ declare const DEFAULT_BACKEND_API_HEADERS: {
9168
9252
  Accept: string;
9169
9253
  };
9170
9254
  declare const VAULT_TOKEN_DECIMALS = 18;
9171
- declare const INTENT_RELAY_CHAIN_IDS: {
9172
- readonly AVAX: 6n;
9173
- readonly SUI: 21n;
9174
- readonly SONIC: 146n;
9175
- readonly STELLAR: 27n;
9176
- readonly INJ: 19n;
9177
- readonly SOL: 1n;
9178
- readonly ICON: 1768124270n;
9179
- readonly BASE: 30n;
9180
- readonly BINANCE: 4n;
9181
- readonly OPTIMISM: 24n;
9182
- readonly POLYGON: 5n;
9183
- readonly ARBITRUM: 23n;
9184
- readonly NIBIRU: 7235938n;
9185
- readonly HYPER: 26745n;
9186
- };
9187
- declare const EVM_CHAIN_IDS: readonly ["0xa86a.avax", "0xa4b1.arbitrum", "0x2105.base", "0x38.bsc", "sonic", "0xa.optimism", "0x89.polygon", "nibiru", "hyper"];
9188
- declare const EVM_SPOKE_CHAIN_IDS: readonly ["0xa86a.avax", "0xa4b1.arbitrum", "0x2105.base", "0x38.bsc", "0xa.optimism", "0x89.polygon", "nibiru", "sonic", "hyper"];
9189
- declare const ChainIdToIntentRelayChainId: Record<ChainId, IntentRelayChainId>;
9255
+ declare const EVM_CHAIN_IDS: readonly ["0xa86a.avax", "0xa4b1.arbitrum", "0x2105.base", "0x38.bsc", "sonic", "0xa.optimism", "0x89.polygon", "nibiru", "hyper", "lightlink"];
9256
+ declare const ChainIdToIntentRelayChainId: {
9257
+ readonly "0xa86a.avax": 6n;
9258
+ readonly "0xa4b1.arbitrum": 23n;
9259
+ readonly "0x2105.base": 30n;
9260
+ readonly "0x38.bsc": 4n;
9261
+ readonly "injective-1": 19n;
9262
+ readonly sonic: 146n;
9263
+ readonly "0xa.optimism": 24n;
9264
+ readonly "0x89.polygon": 5n;
9265
+ readonly solana: 1n;
9266
+ readonly sui: 21n;
9267
+ readonly stellar: 27n;
9268
+ readonly "0x1.icon": 1768124270n;
9269
+ readonly nibiru: 7235938n;
9270
+ readonly hyper: 26745n;
9271
+ readonly lightlink: 27756n;
9272
+ };
9190
9273
  declare const getIntentRelayChainId: (chainId: ChainId) => IntentRelayChainId;
9191
9274
  declare const hyper: {
9192
9275
  blockExplorers: {
@@ -10009,6 +10092,119 @@ declare const spokeChainConfig: {
10009
10092
  };
10010
10093
  };
10011
10094
  };
10095
+ readonly lightlink: {
10096
+ readonly chain: {
10097
+ readonly name: "lightlink phoenix";
10098
+ readonly id: "lightlink";
10099
+ readonly type: "EVM";
10100
+ };
10101
+ readonly addresses: {
10102
+ readonly assetManager: "0x4A1C82744cDDeE675A255fB289Cb0917A482e7C7";
10103
+ readonly connection: "0x6D2126DB97dd88AfA85127253807D04A066b6746";
10104
+ };
10105
+ readonly nativeToken: "0x0000000000000000000000000000000000000000";
10106
+ readonly bnUSD: "0x36134A03dcD03Bbe858B8F7ED28a71AAC608F9E7";
10107
+ readonly supportedTokens: {
10108
+ readonly ETH: {
10109
+ readonly symbol: "ETH";
10110
+ readonly name: "ETH";
10111
+ readonly decimals: 18;
10112
+ readonly address: "0x0000000000000000000000000000000000000000";
10113
+ readonly xChainId: "lightlink";
10114
+ };
10115
+ readonly bnUSD: {
10116
+ readonly symbol: "bnUSD";
10117
+ readonly name: "bnUSD";
10118
+ readonly decimals: 18;
10119
+ readonly address: "0x36134A03dcD03Bbe858B8F7ED28a71AAC608F9E7";
10120
+ readonly xChainId: "lightlink";
10121
+ };
10122
+ readonly SODA: {
10123
+ readonly symbol: "SODA";
10124
+ readonly name: "SODAX";
10125
+ readonly decimals: 18;
10126
+ readonly address: "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B";
10127
+ readonly xChainId: "lightlink";
10128
+ };
10129
+ readonly USDC: {
10130
+ readonly symbol: "USDC";
10131
+ readonly name: "USD Coin";
10132
+ readonly decimals: 6;
10133
+ readonly address: "0xbCF8C1B03bBDDA88D579330BDF236B58F8bb2cFd";
10134
+ readonly xChainId: "lightlink";
10135
+ };
10136
+ readonly 'BTC.LL': {
10137
+ readonly symbol: "BTC.LL";
10138
+ readonly name: "Bitcoin LightLINK";
10139
+ readonly decimals: 18;
10140
+ readonly address: "0x5E921D8B7709b409132628258A53449D1fD82341";
10141
+ readonly xChainId: "lightlink";
10142
+ };
10143
+ readonly 'AVAX.LL': {
10144
+ readonly symbol: "AVAX.LL";
10145
+ readonly name: "Avalanche LightLINK";
10146
+ readonly decimals: 18;
10147
+ readonly address: "0x373d9c5390535e9e30185E52826d45b76df09aBb";
10148
+ readonly xChainId: "lightlink";
10149
+ };
10150
+ readonly 'BNB.LL': {
10151
+ readonly symbol: "BNB.LL";
10152
+ readonly name: "BNB LightLINK";
10153
+ readonly decimals: 18;
10154
+ readonly address: "0xe80c2B7674dCdF47b199697E2c61730231b8da89";
10155
+ readonly xChainId: "lightlink";
10156
+ };
10157
+ readonly 'SOL.LL': {
10158
+ readonly symbol: "SOL.LL";
10159
+ readonly name: "Solana LightLINK";
10160
+ readonly decimals: 18;
10161
+ readonly address: "0xba9af7029Ae5c1054Fc367d5D6a47Dc3D5c0D6bA";
10162
+ readonly xChainId: "lightlink";
10163
+ };
10164
+ readonly 'XLM.LL': {
10165
+ readonly symbol: "XLM.LL";
10166
+ readonly name: "Stellar LightLINK";
10167
+ readonly decimals: 18;
10168
+ readonly address: "0x03beDD719b6d8de11f5B2671b2f30085a626F8Da";
10169
+ readonly xChainId: "lightlink";
10170
+ };
10171
+ readonly 'INJ.LL': {
10172
+ readonly symbol: "INJ.LL";
10173
+ readonly name: "Injective LightLINK";
10174
+ readonly decimals: 18;
10175
+ readonly address: "0x8a4C8B1A899Fa9D9246a112E8D43EC0C97b77B8C";
10176
+ readonly xChainId: "lightlink";
10177
+ };
10178
+ readonly 'SUI.LL': {
10179
+ readonly symbol: "SUI.LL";
10180
+ readonly name: "Sui LightLINK";
10181
+ readonly decimals: 18;
10182
+ readonly address: "0x59e68e2F5147F74F27FD173397a7419C1e5d9999";
10183
+ readonly xChainId: "lightlink";
10184
+ };
10185
+ readonly 'S.LL': {
10186
+ readonly symbol: "S.LL";
10187
+ readonly name: "Sonic LightLINK";
10188
+ readonly decimals: 18;
10189
+ readonly address: "0xb3A47798CB6585Ea0d31a7986f2a04b25C60247f";
10190
+ readonly xChainId: "lightlink";
10191
+ };
10192
+ readonly 'POL.LL': {
10193
+ readonly symbol: "POL.LL";
10194
+ readonly name: "Polygon LightLINK";
10195
+ readonly decimals: 18;
10196
+ readonly address: "0xE963bfb4757fC8Ae66BC68E11e636f8fbafAfCb4";
10197
+ readonly xChainId: "lightlink";
10198
+ };
10199
+ readonly 'HYPE.LL': {
10200
+ readonly symbol: "HYPE.LL";
10201
+ readonly name: "HyperEVM LightLINK";
10202
+ readonly decimals: 18;
10203
+ readonly address: "0x127b64fb645279F8aca786c507b94dde81F02d16";
10204
+ readonly xChainId: "lightlink";
10205
+ };
10206
+ };
10207
+ };
10012
10208
  readonly "injective-1": {
10013
10209
  readonly addresses: {
10014
10210
  readonly assetManager: "inj1dg6tm62uup53wn2kn97caeqfwt0sukx3qjk8rw";
@@ -10070,6 +10266,19 @@ declare const spokeChainConfig: {
10070
10266
  readonly rateLimit: "CB6G3ULISTTBPXUN3BI6ADHQGWJEN7BPQINHL45TCB6TDFM5QWU24HAY";
10071
10267
  readonly testToken: "";
10072
10268
  };
10269
+ readonly trustlineConfigs: [{
10270
+ readonly assetCode: "USDC";
10271
+ readonly contractId: "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75";
10272
+ readonly assetIssuer: "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN";
10273
+ }, {
10274
+ readonly assetCode: "bnUSD";
10275
+ readonly contractId: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
10276
+ readonly assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA";
10277
+ }, {
10278
+ readonly assetCode: "SODA";
10279
+ readonly contractId: "CAH5LKJC2ZB4RVUVEVL2QWJWNJLHQE2UF767ILLQ5EQ4O3OURR2XIUGM";
10280
+ readonly assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA";
10281
+ }];
10073
10282
  readonly supportedTokens: {
10074
10283
  readonly bnUSD: {
10075
10284
  readonly symbol: "bnUSD";
@@ -10275,7 +10484,7 @@ declare const hubVaults: {
10275
10484
  };
10276
10485
  readonly sodaS: {
10277
10486
  readonly address: "0x62ecc3eeb80a162c57624b3ff80313fe69f5203e";
10278
- readonly reserves: ["0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38"];
10487
+ readonly reserves: ["0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38", "0xb592d2631ccf245119532e025d11188cfadb6777"];
10279
10488
  };
10280
10489
  readonly sodaNIBI: {
10281
10490
  readonly address: "0xc6c85287a8b173a509c2f198bb719a8a5a2d0c68";
@@ -10303,7 +10512,7 @@ declare const hubVaults: {
10303
10512
  };
10304
10513
  readonly sodaETH: {
10305
10514
  readonly address: "0x4effb5813271699683c25c734f4dabc45b363709";
10306
- readonly reserves: ["0x70178089842be7f8e4726b33f0d1569db8021faa", "0xad332860dd3b6f0e63f4f66e9457900917ac78cd", "0xdcd9578b51ef55239b6e68629d822a8d97c95b86", "0x57fc2ac5701e463ae261adbd6c99fbeb48ce5293", "0x50c42deacd8fc9773493ed674b675be577f2634b"];
10515
+ readonly reserves: ["0x70178089842be7f8e4726b33f0d1569db8021faa", "0xad332860dd3b6f0e63f4f66e9457900917ac78cd", "0xdcd9578b51ef55239b6e68629d822a8d97c95b86", "0x57fc2ac5701e463ae261adbd6c99fbeb48ce5293", "0x50c42deacd8fc9773493ed674b675be577f2634b", "0x19920ef8fe1a9d51fdb0914abbb2f970c74dca68"];
10307
10516
  };
10308
10517
  readonly sodaBTC: {
10309
10518
  readonly address: "0x7a1a5555842ad2d0ed274d09b5c4406a95799d5d";
@@ -10341,7 +10550,7 @@ declare const hubVaults: {
10341
10550
  declare const hubVaultTokensMap: Map<string, Token>;
10342
10551
  declare const getHubVaultTokenByAddress: (address: string) => Token | undefined;
10343
10552
  declare const bnUSDLegacySpokeChainIds: readonly ["0x1.icon", "sui", "stellar"];
10344
- declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "hyper" | "injective-1" | "sui" | "solana" | "stellar")[];
10553
+ declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "hyper" | "lightlink" | "injective-1" | "solana" | "sui" | "stellar")[];
10345
10554
  declare const bnUSDLegacyTokens: readonly [{
10346
10555
  readonly symbol: "bnUSD (legacy)";
10347
10556
  readonly name: "bnUSD";
@@ -10421,6 +10630,12 @@ declare const bnUSDNewTokens: ({
10421
10630
  readonly decimals: 18;
10422
10631
  readonly address: "0x506Ba7C8d91dAdf7a91eE677a205D9687b751579";
10423
10632
  readonly xChainId: "hyper";
10633
+ } | {
10634
+ readonly symbol: "bnUSD";
10635
+ readonly name: "bnUSD";
10636
+ readonly decimals: 18;
10637
+ readonly address: "0x36134A03dcD03Bbe858B8F7ED28a71AAC608F9E7";
10638
+ readonly xChainId: "lightlink";
10424
10639
  } | {
10425
10640
  readonly symbol: "bnUSD";
10426
10641
  readonly name: "bnUSD";
@@ -10672,6 +10887,85 @@ declare const moneyMarketSupportedTokens: {
10672
10887
  readonly address: "0xA28C70F92a1B2513edCdDD29c2E5195a4B785aB2";
10673
10888
  readonly xChainId: "hyper";
10674
10889
  }];
10890
+ readonly lightlink: readonly [{
10891
+ readonly symbol: "ETH";
10892
+ readonly name: "ETH";
10893
+ readonly decimals: 18;
10894
+ readonly address: "0x0000000000000000000000000000000000000000";
10895
+ readonly xChainId: "lightlink";
10896
+ }, {
10897
+ readonly symbol: "bnUSD";
10898
+ readonly name: "bnUSD";
10899
+ readonly decimals: 18;
10900
+ readonly address: "0x36134A03dcD03Bbe858B8F7ED28a71AAC608F9E7";
10901
+ readonly xChainId: "lightlink";
10902
+ }, {
10903
+ readonly symbol: "USDC";
10904
+ readonly name: "USD Coin";
10905
+ readonly decimals: 6;
10906
+ readonly address: "0xbCF8C1B03bBDDA88D579330BDF236B58F8bb2cFd";
10907
+ readonly xChainId: "lightlink";
10908
+ }, {
10909
+ readonly symbol: "AVAX.LL";
10910
+ readonly name: "Avalanche LightLINK";
10911
+ readonly decimals: 18;
10912
+ readonly address: "0x373d9c5390535e9e30185E52826d45b76df09aBb";
10913
+ readonly xChainId: "lightlink";
10914
+ }, {
10915
+ readonly symbol: "BNB.LL";
10916
+ readonly name: "BNB LightLINK";
10917
+ readonly decimals: 18;
10918
+ readonly address: "0xe80c2B7674dCdF47b199697E2c61730231b8da89";
10919
+ readonly xChainId: "lightlink";
10920
+ }, {
10921
+ readonly symbol: "SOL.LL";
10922
+ readonly name: "Solana LightLINK";
10923
+ readonly decimals: 18;
10924
+ readonly address: "0xba9af7029Ae5c1054Fc367d5D6a47Dc3D5c0D6bA";
10925
+ readonly xChainId: "lightlink";
10926
+ }, {
10927
+ readonly symbol: "XLM.LL";
10928
+ readonly name: "Stellar LightLINK";
10929
+ readonly decimals: 18;
10930
+ readonly address: "0x03beDD719b6d8de11f5B2671b2f30085a626F8Da";
10931
+ readonly xChainId: "lightlink";
10932
+ }, {
10933
+ readonly symbol: "INJ.LL";
10934
+ readonly name: "Injective LightLINK";
10935
+ readonly decimals: 18;
10936
+ readonly address: "0x8a4C8B1A899Fa9D9246a112E8D43EC0C97b77B8C";
10937
+ readonly xChainId: "lightlink";
10938
+ }, {
10939
+ readonly symbol: "SUI.LL";
10940
+ readonly name: "Sui LightLINK";
10941
+ readonly decimals: 18;
10942
+ readonly address: "0x59e68e2F5147F74F27FD173397a7419C1e5d9999";
10943
+ readonly xChainId: "lightlink";
10944
+ }, {
10945
+ readonly symbol: "S.LL";
10946
+ readonly name: "Sonic LightLINK";
10947
+ readonly decimals: 18;
10948
+ readonly address: "0xb3A47798CB6585Ea0d31a7986f2a04b25C60247f";
10949
+ readonly xChainId: "lightlink";
10950
+ }, {
10951
+ readonly symbol: "POL.LL";
10952
+ readonly name: "Polygon LightLINK";
10953
+ readonly decimals: 18;
10954
+ readonly address: "0xE963bfb4757fC8Ae66BC68E11e636f8fbafAfCb4";
10955
+ readonly xChainId: "lightlink";
10956
+ }, {
10957
+ readonly symbol: "HYPE.LL";
10958
+ readonly name: "HyperEVM LightLINK";
10959
+ readonly decimals: 18;
10960
+ readonly address: "0x127b64fb645279F8aca786c507b94dde81F02d16";
10961
+ readonly xChainId: "lightlink";
10962
+ }, {
10963
+ readonly symbol: "SODA";
10964
+ readonly name: "SODAX";
10965
+ readonly decimals: 18;
10966
+ readonly address: "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B";
10967
+ readonly xChainId: "lightlink";
10968
+ }];
10675
10969
  readonly solana: readonly [{
10676
10970
  readonly symbol: "SOL";
10677
10971
  readonly name: "Solana";
@@ -10824,7 +11118,7 @@ declare const hubAssetToOriginalAssetMap: Map<SpokeChainId, Map<Address, Origina
10824
11118
  declare const chainIdToHubAssetsMap: Map<SpokeChainId, Map<Address, HubAssetInfo>>;
10825
11119
  declare const supportedHubAssets: Set<Address>;
10826
11120
  declare const supportedSodaAssets: Set<Address>;
10827
- declare const spokeChainIdsSet: Set<"0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "hyper" | "injective-1" | "sui" | "solana" | "0x1.icon" | "stellar">;
11121
+ declare const spokeChainIdsSet: Set<"0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "hyper" | "lightlink" | "injective-1" | "solana" | "sui" | "stellar" | "0x1.icon">;
10828
11122
  declare const getOriginalAssetInfoFromVault: (chainId: SpokeChainId, vault: Address) => OriginalAssetAddress[];
10829
11123
  declare const getHubAssetInfo: (chainId: SpokeChainId, asset: OriginalAssetAddress) => HubAssetInfo | undefined;
10830
11124
  declare const isValidOriginalAssetAddress: (chainId: SpokeChainId, asset: OriginalAssetAddress) => boolean;
@@ -10884,4 +11178,4 @@ declare function isUnifiedBnUSDMigrateParams(value: unknown): value is UnifiedBn
10884
11178
  declare function isBalnMigrateParams(value: unknown): value is BalnMigrateParams;
10885
11179
  declare function isIcxCreateRevertMigrationParams(value: unknown): value is IcxCreateRevertMigrationParams;
10886
11180
 
10887
- export { type AggregatedReserveData, type ApiResponse, type AssetInfo, type BackendApiConfig, BackendApiService, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, ChainIdToIntentRelayChainId, type CombinedReserveData, type ComputedUserReserve, type CreateBridgeIntentParams, type CreateIntentParams, type CustomProvider, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, EVM_CHAIN_IDS, EVM_SPOKE_CHAIN_IDS, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, type EvmChainId, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, type EvmHubChainConfig, EvmHubProvider, type EvmHubProviderConfig, type EvmInitializedConfig, type EvmReturnType, EvmSolverService, type EvmSpokeChainConfig, type EvmSpokeChainId, type EvmSpokeDepositParams, EvmSpokeProvider, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeChainIdType, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, type HttpPrefixedUrl, type HttpUrl, type HubAssetInfo, type HubChainConfig, type HubChainInfo, type HubTxHash, type HubVaultSymbol, HubVaultSymbols, ICON_TX_RESULT_WAIT_MAX_RETRY, INTENT_RELAY_CHAIN_IDS, type ISpokeProvider, type IWalletProvider, type IconAddress, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, type IconRawTransaction, type IconReturnType, type IconSpokeChainConfig, IconSpokeProvider, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjectiveGasEstimate, type InjectiveReturnType, type InjectiveSpokeChainConfig, InjectiveSpokeProvider, type Intent, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, type IntentPostExecutionFailedErrorData, type IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfig, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type NewbnUSDChainId, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QuoteType, RAY, RAY_DECIMALS, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, SodaTokens, SodaTokensAsHubAssets, SodaVaultTokensSet, Sodax, type SodaxConfig, type SolanaChainConfig, type SolanaGasEstimate, type SolanaRawTransaction, type SolanaReturnType, SolanaSpokeProvider, type SolverConfig, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SolverService, type SolverServiceConfig, type SonicSpokeChainConfig, type SonicSpokeDepositParams, SonicSpokeProvider, SonicSpokeService, type SpokeChainConfig, type SpokeChainInfo, type SpokeDepositParams, type SpokeProvider, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StellarGasEstimate, type StellarReturnType, type StellarRpcConfig, type StellarSpokeChainConfig, StellarSpokeProvider, type SubmitTxParams, type SubmitTxResponse, type SuiGasEstimate, type SuiRawTransaction, type SuiReturnType, type SuiSpokeChainConfig, type SuiSpokeDepositParams, SuiSpokeProvider, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, type TokenInfo, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnstakeRequest, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, VAULT_TOKEN_DECIMALS, type VaultReserves, type VaultType, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getHubVaultTokenByAddress, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getMoneyMarketConfig, getOriginalAssetAddress, getOriginalAssetInfoFromVault, getOriginalTokenFromOriginalAssetAddress, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaultTokensMap, hubVaults, hubVaultsAddressSet, hyper, intentRelayChainIdToSpokeChainIdMap, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconSpokeProvider, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveSpokeProvider, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketReserveAsset, isMoneyMarketReserveHubAsset, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketSupportedToken, isMoneyMarketWithdrawUnknownError, isNativeToken, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isResponseAddressType, isResponseSigningType, isSodaVaultToken, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isValidVault, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, originalAssetTohubAssetMap, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, submitTransaction, supportedHubAssets, supportedHubChains, supportedSodaAssets, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
11181
+ export { type AggregatedReserveData, type ApiResponse, type AssetInfo, type BackendApiConfig, BackendApiService, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, ChainIdToIntentRelayChainId, type CombinedReserveData, type ComputedUserReserve, type CreateBridgeIntentParams, type CreateIntentParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, EVM_CHAIN_IDS, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, type EvmChainId, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, type EvmHubChainConfig, EvmHubProvider, type EvmHubProviderConfig, type EvmInitializedConfig, type EvmReturnType, EvmSolverService, type EvmSpokeChainConfig, type EvmSpokeChainId, type EvmSpokeDepositParams, EvmSpokeProvider, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeChainIdType, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, type HttpPrefixedUrl, type HttpUrl, type HubAssetInfo, type HubChainConfig, type HubChainInfo, type HubTxHash, type HubVaultSymbol, HubVaultSymbols, ICON_TX_RESULT_WAIT_MAX_RETRY, type ISpokeProvider, type IWalletProvider, type IconAddress, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, type IconRawTransaction, type IconReturnType, type IconSpokeChainConfig, IconSpokeProvider, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjectiveGasEstimate, type InjectiveReturnType, type InjectiveSpokeChainConfig, InjectiveSpokeProvider, type Intent, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, type IntentPostExecutionFailedErrorData, type IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfig, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type NewbnUSDChainId, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QuoteType, RAY, RAY_DECIMALS, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, SodaTokens, SodaTokensAsHubAssets, SodaVaultTokensSet, Sodax, type SodaxConfig, type SolanaChainConfig, type SolanaGasEstimate, type SolanaRawTransaction, type SolanaReturnType, SolanaSpokeProvider, type SolverConfig, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SolverService, type SolverServiceConfig, type SonicSpokeChainConfig, type SonicSpokeDepositParams, SonicSpokeProvider, SonicSpokeService, type SpokeChainConfig, type SpokeChainInfo, type SpokeDepositParams, type SpokeProvider, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StellarAssetTrustline, type StellarGasEstimate, type StellarReturnType, type StellarRpcConfig, type StellarSpokeChainConfig, type StellarSpokeDepositParams, StellarSpokeProvider, StellarSpokeService, type SubmitTxParams, type SubmitTxResponse, type SuiGasEstimate, type SuiRawTransaction, type SuiReturnType, type SuiSpokeChainConfig, type SuiSpokeDepositParams, SuiSpokeProvider, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, type TokenInfo, type TransferToHubParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnstakeRequest, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, VAULT_TOKEN_DECIMALS, type VaultReserves, type VaultType, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getHubVaultTokenByAddress, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getMoneyMarketConfig, getOriginalAssetAddress, getOriginalAssetInfoFromVault, getOriginalTokenFromOriginalAssetAddress, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaultTokensMap, hubVaults, hubVaultsAddressSet, hyper, intentRelayChainIdToSpokeChainIdMap, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconSpokeProvider, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveSpokeProvider, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketReserveAsset, isMoneyMarketReserveHubAsset, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketSupportedToken, isMoneyMarketWithdrawUnknownError, isNativeToken, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isResponseAddressType, isResponseSigningType, isSodaVaultToken, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isValidVault, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, originalAssetTohubAssetMap, parseToStroops, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, submitTransaction, supportedHubAssets, supportedHubChains, supportedSodaAssets, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };