@sodax/sdk 1.0.1-beta → 1.0.3-beta

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.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, Address, Erc20Token, HttpUrl, SpokeChainId, Token, GetMoneyMarketTokensApiResponse, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, Hex as Hex$1, TokenInfo, HubAddress, EvmRawTransaction, SolverConfig, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, ChainType, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, OriginalAssetAddress, HubAssetInfo, HubChainId, XToken, EvmRawTransactionReceipt, IconEoaAddress, HubChainConfig } from '@sodax/types';
1
+ import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, Address, Erc20Token, HttpUrl, SpokeChainId, Token, GetMoneyMarketTokensApiResponse, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, Hex as Hex$1, TokenInfo, HubAddress, ChainId, EvmRawTransaction, SolverConfig, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, ChainType, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, OriginalAssetAddress, HubAssetInfo, HubChainId, XToken, EvmRawTransactionReceipt, IconEoaAddress, HubChainConfig } from '@sodax/types';
2
2
  export * from '@sodax/types';
3
3
  import * as viem from 'viem';
4
4
  import { Hex, PublicClient, HttpTransport, Address as Address$1, WalletClient, CustomTransport, Chain, Account as Account$1, Hash, GetLogsReturnType, TransactionReceipt } from 'viem';
@@ -6238,6 +6238,13 @@ declare class MoneyMarketDataService {
6238
6238
  readonly hubProvider: EvmHubProvider;
6239
6239
  constructor(hubProvider: EvmHubProvider);
6240
6240
  getATokenData(aToken: Address): Promise<Erc20Token>;
6241
+ /**
6242
+ * Fetches multiple aToken balances in a single multicall for better performance
6243
+ * @param aTokens - Array of aToken addresses
6244
+ * @param userAddress - User's hub wallet address to fetch balances for
6245
+ * @returns Promise<Map<Address, bigint>> - Map of aToken address to balance
6246
+ */
6247
+ getATokensBalances(aTokens: readonly Address[], userAddress: Address): Promise<Map<Address, bigint>>;
6241
6248
  /**
6242
6249
  * LendingPool
6243
6250
  */
@@ -6399,11 +6406,17 @@ type MoneyMarketSupplyParams = {
6399
6406
  * Note: If omitted, borrowed assets are sent to the sender's default spoke account.
6400
6407
  * @property toAddress - (Optional) Target address on the taret chain to receive the borrowed assets.
6401
6408
  * Note: If omitted, borrowed assets are sent to the sender's default spoke account.
6409
+ * @property fromChainId - (Optional) Source chain ID to borrow from.
6410
+ * Note: If omitted, borrowed assets are borrowed from the sender's default spoke account.
6411
+ * @property fromAddress - (Optional) Source address on the source chain to borrow from.
6412
+ * Note: If omitted, borrowed assets are borrowed from the sender's default spoke account.
6402
6413
  */
6403
6414
  type MoneyMarketBorrowParams = {
6404
6415
  token: string;
6405
6416
  amount: bigint;
6406
6417
  action: 'borrow';
6418
+ fromChainId?: SpokeChainId;
6419
+ fromAddress?: string;
6407
6420
  toChainId?: SpokeChainId;
6408
6421
  toAddress?: string;
6409
6422
  };
@@ -6501,7 +6514,7 @@ declare class MoneyMarketService {
6501
6514
  * @param {SpokeProvider} spokeProvider - The provider for the spoke chain.
6502
6515
  * @returns {Promise<GetEstimateGasReturnType<T>>} A promise that resolves to the gas.
6503
6516
  */
6504
- static estimateGas<T extends SpokeProvider = SpokeProvider>(params: TxReturnType<T, true>, spokeProvider: T): Promise<GetEstimateGasReturnType<T>>;
6517
+ static estimateGas<T extends SpokeProviderType = SpokeProviderType>(params: TxReturnType<T, true>, spokeProvider: T): Promise<GetEstimateGasReturnType<T>>;
6505
6518
  /**
6506
6519
  * Check if allowance is sufficient for actions on the money market pool
6507
6520
  * @param {MoneyMarketParams} params - Money market params containing token address and amount
@@ -6523,7 +6536,7 @@ declare class MoneyMarketService {
6523
6536
  * // Need to approve
6524
6537
  * }
6525
6538
  */
6526
- isAllowanceValid<S extends SpokeProvider>(params: MoneyMarketParams, spokeProvider: S): Promise<Result<boolean>>;
6539
+ isAllowanceValid<S extends SpokeProviderType>(params: MoneyMarketParams, spokeProvider: S): Promise<Result<boolean>>;
6527
6540
  /**
6528
6541
  * Approve amount spending if isAllowanceValid returns false.
6529
6542
  * For evm spoke chains, the spender is the asset manager contract while
@@ -6551,7 +6564,7 @@ declare class MoneyMarketService {
6551
6564
  *
6552
6565
  * const txReceipt = approveResult.value;
6553
6566
  */
6554
- approve<S extends SpokeProvider, R extends boolean = false>(params: MoneyMarketParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
6567
+ approve<S extends SpokeProviderType, R extends boolean = false>(params: MoneyMarketParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
6555
6568
  /**
6556
6569
  * Supply tokens to the money market pool, relay the transaction to the hub and submit the intent to the Solver API
6557
6570
  * @param params - The parameters for the supply transaction.
@@ -6615,7 +6628,7 @@ declare class MoneyMarketService {
6615
6628
  * console.error('Supply failed:', result.error);
6616
6629
  * }
6617
6630
  */
6618
- createSupplyIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketSupplyParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_SUPPLY_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
6631
+ createSupplyIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: MoneyMarketSupplyParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_SUPPLY_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
6619
6632
  /**
6620
6633
  * Borrow tokens from the money market pool, relay the transaction to the hub and submit the intent to the Solver API
6621
6634
  * @param params - The parameters for the borrow transaction.
@@ -6677,7 +6690,7 @@ declare class MoneyMarketService {
6677
6690
  * console.error('Borrow failed:', result.error);
6678
6691
  * }
6679
6692
  */
6680
- createBorrowIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketBorrowParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_BORROW_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
6693
+ createBorrowIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: MoneyMarketBorrowParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_BORROW_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
6681
6694
  /**
6682
6695
  * Withdraw tokens from the money market pool, relay the transaction to the hub and submit the intent to the Solver API
6683
6696
  *
@@ -6740,7 +6753,7 @@ declare class MoneyMarketService {
6740
6753
  * console.error('Withdraw failed:', result.error);
6741
6754
  * }
6742
6755
  */
6743
- createWithdrawIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketWithdrawParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_WITHDRAW_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
6756
+ createWithdrawIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: MoneyMarketWithdrawParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_WITHDRAW_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
6744
6757
  /**
6745
6758
  * Repay tokens to the money market pool, relay the transaction to the hub and submit the intent to the Solver API
6746
6759
  *
@@ -6805,7 +6818,7 @@ declare class MoneyMarketService {
6805
6818
  * console.error('Repay failed:', result.error);
6806
6819
  * }
6807
6820
  */
6808
- createRepayIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketRepayParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_REPAY_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
6821
+ createRepayIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: MoneyMarketRepayParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_REPAY_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
6809
6822
  /**
6810
6823
  * Build transaction data for supplying to the money market pool
6811
6824
  * @param fromChainId - The chain ID of the source chain
@@ -7443,6 +7456,7 @@ declare class EvmVaultTokenService {
7443
7456
  * Service to get valid hub wallet address which may differ based on the spoke chain.
7444
7457
  */
7445
7458
  declare class WalletAbstractionService {
7459
+ private constructor();
7446
7460
  /**
7447
7461
  * Gets the hub wallet address for a user based on their spoke chain address.
7448
7462
  * @param address - The user's address on the spoke chain
@@ -7453,6 +7467,28 @@ declare class WalletAbstractionService {
7453
7467
  static getUserAbstractedWalletAddress(address: string, spokeProvider: SpokeProviderType, hubProvider: EvmHubProvider): Promise<Address>;
7454
7468
  }
7455
7469
 
7470
+ /**
7471
+ * HubService is a main class that provides functionalities for dealing with hub chains.
7472
+ */
7473
+ declare class HubService {
7474
+ private constructor();
7475
+ /**
7476
+ * Get the derived address of a contract deployed with CREATE3.
7477
+ * @param address - User's address on the specified chain as hex
7478
+ * @param hubProvider - Hub provider
7479
+ * @returns {HubAddress} The computed contract address as a EVM address (hex) string
7480
+ */
7481
+ static getUserRouter(address: Address, hubProvider: EvmHubProvider): Promise<HubAddress>;
7482
+ /**
7483
+ * Gets the hub wallet address for a user based on their spoke chain address.
7484
+ * @param address - The user's address on the spoke chain
7485
+ * @param chainId - spoke chain id
7486
+ * @param hubProvider - The provider for interacting with the hub chain
7487
+ * @returns The user's hub wallet address
7488
+ */
7489
+ static getUserHubWalletAddress(address: string, chainId: ChainId, hubProvider: EvmHubProvider): Promise<Address>;
7490
+ }
7491
+
7456
7492
  type EvmSpokeDepositParams = {
7457
7493
  from: Address$1;
7458
7494
  to?: HubAddress;
@@ -8168,6 +8204,23 @@ type CreateIntentParams = {
8168
8204
  solver: Address;
8169
8205
  data: Hex$1;
8170
8206
  };
8207
+ /**
8208
+ * Parameters for creating a limit order intent.
8209
+ * Similar to CreateIntentParams but without the deadline field (deadline is automatically set to 0n for limit orders).
8210
+ *
8211
+ * @property inputToken - The address of the input token on the spoke chain.
8212
+ * @property outputToken - The address of the output token on the spoke chain.
8213
+ * @property inputAmount - The amount of input tokens to provide, denominated in the input token's decimals.
8214
+ * @property minOutputAmount - The minimum amount of output tokens to accept, denominated in the output token's decimals.
8215
+ * @property allowPartialFill - Whether the intent can be partially filled.
8216
+ * @property srcChain - Chain ID where input tokens originate.
8217
+ * @property dstChain - Chain ID where output tokens should be delivered.
8218
+ * @property srcAddress - Sender address on source chain.
8219
+ * @property dstAddress - Receiver address on destination chain.
8220
+ * @property solver - Optional specific solver address (use address(0) for any solver).
8221
+ * @property data - Additional arbitrary data (opaque, for advanced integrations/fees etc).
8222
+ */
8223
+ type CreateLimitOrderParams = Omit<CreateIntentParams, 'deadline'>;
8171
8224
  type Intent = {
8172
8225
  intentId: bigint;
8173
8226
  creator: Address;
@@ -8217,8 +8270,12 @@ type IntentPostExecutionFailedErrorData = SolverErrorResponse & {
8217
8270
  intent: Intent;
8218
8271
  intentDeliveryInfo: IntentDeliveryInfo;
8219
8272
  };
8220
- type IntentErrorCode = RelayErrorCode | 'UNKNOWN' | 'CREATION_FAILED' | 'POST_EXECUTION_FAILED';
8221
- type IntentErrorData<T extends IntentErrorCode> = T extends 'RELAY_TIMEOUT' ? IntentWaitUntilIntentExecutedFailedErrorData : T extends 'CREATION_FAILED' ? IntentCreationFailedErrorData : T extends 'SUBMIT_TX_FAILED' ? IntentSubmitTxFailedErrorData : T extends 'POST_EXECUTION_FAILED' ? IntentPostExecutionFailedErrorData : T extends 'UNKNOWN' ? IntentCreationFailedErrorData : never;
8273
+ type IntentCancelFailedErrorData = {
8274
+ payload: Intent;
8275
+ error: unknown;
8276
+ };
8277
+ type IntentErrorCode = RelayErrorCode | 'UNKNOWN' | 'CREATION_FAILED' | 'POST_EXECUTION_FAILED' | 'CANCEL_FAILED';
8278
+ type IntentErrorData<T extends IntentErrorCode> = T extends 'RELAY_TIMEOUT' ? IntentWaitUntilIntentExecutedFailedErrorData : T extends 'CREATION_FAILED' ? IntentCreationFailedErrorData : T extends 'SUBMIT_TX_FAILED' ? IntentSubmitTxFailedErrorData : T extends 'POST_EXECUTION_FAILED' ? IntentPostExecutionFailedErrorData : T extends 'UNKNOWN' ? IntentCreationFailedErrorData : T extends 'CANCEL_FAILED' ? IntentCancelFailedErrorData : never;
8222
8279
  type IntentError<T extends IntentErrorCode = IntentErrorCode> = {
8223
8280
  code: T;
8224
8281
  data: IntentErrorData<T>;
@@ -8228,6 +8285,11 @@ type SwapParams<S extends SpokeProviderType> = Prettify<{
8228
8285
  spokeProvider: S;
8229
8286
  skipSimulation?: boolean;
8230
8287
  } & OptionalFee>;
8288
+ type LimitOrderParams<S extends SpokeProviderType> = Prettify<{
8289
+ intentParams: CreateLimitOrderParams;
8290
+ spokeProvider: S;
8291
+ skipSimulation?: boolean;
8292
+ } & OptionalFee>;
8231
8293
  type SwapServiceConstructorParams = {
8232
8294
  config: SolverConfigParams | undefined;
8233
8295
  configService: ConfigService;
@@ -8483,7 +8545,7 @@ declare class SwapService {
8483
8545
  * console.log('Approval required');
8484
8546
  * }
8485
8547
  */
8486
- isAllowanceValid<S extends SpokeProviderType>({ intentParams: params, spokeProvider, }: SwapParams<S>): Promise<Result<boolean>>;
8548
+ isAllowanceValid<S extends SpokeProviderType>({ intentParams: params, spokeProvider, }: SwapParams<S> | LimitOrderParams<S>): Promise<Result<boolean>>;
8487
8549
  /**
8488
8550
  * Approve the Asset Manager contract to spend tokens on behalf of the user (required for EVM chains)
8489
8551
  * @param {Prettify<SwapParams<S> & OptionalRaw<R>>} params - Object containing:
@@ -8522,7 +8584,7 @@ declare class SwapService {
8522
8584
  * console.log('Approval transaction:', txHash);
8523
8585
  * }
8524
8586
  */
8525
- approve<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, raw, }: Prettify<SwapParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>>>;
8587
+ approve<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, raw, }: Prettify<(SwapParams<S> | LimitOrderParams<S>) & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>>>;
8526
8588
  /**
8527
8589
  * Creates an intent by handling token approval and intent creation
8528
8590
  * NOTE: This method does not submit the intent to the Solver API
@@ -8566,7 +8628,138 @@ declare class SwapService {
8566
8628
  * // handle error
8567
8629
  * }
8568
8630
  */
8569
- createIntent<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, fee, raw, }: Prettify<SwapParams<S> & OptionalRaw<R>>): Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex$1], IntentError<'CREATION_FAILED'>>>;
8631
+ createIntent<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, fee, raw, skipSimulation, }: Prettify<SwapParams<S> & OptionalRaw<R>>): Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex$1], IntentError<'CREATION_FAILED'>>>;
8632
+ /**
8633
+ * Creates a limit order intent (no deadline, must be cancelled manually by user).
8634
+ * Similar to swap but enforces deadline=0n (no deadline).
8635
+ * Limit orders remain active until manually cancelled by the user.
8636
+ *
8637
+ * @param {Prettify<LimitOrderParams<S> & OptionalTimeout>} params - Object containing:
8638
+ * - intentParams: The parameters for creating the limit order (deadline is automatically set to 0n, deadline field should be omitted).
8639
+ * - spokeProvider: The spoke provider instance.
8640
+ * - fee: (Optional) Partner fee configuration.
8641
+ * - timeout: (Optional) Timeout in milliseconds for the transaction (default: 60 seconds).
8642
+ * - skipSimulation: (Optional) Whether to skip transaction simulation (default: false).
8643
+ * @returns {Promise<Result<[SolverExecutionResponse, Intent, IntentDeliveryInfo], IntentError<IntentErrorCode>>>} A promise resolving to a Result containing a tuple of SolverExecutionResponse, Intent, and intent delivery info, or an IntentError if the operation fails.
8644
+ *
8645
+ * @example
8646
+ * const payload = {
8647
+ * "inputToken": "0x2170Ed0880ac9A755fd29B2688956BD959F933F8", // BSC ETH token address
8648
+ * "outputToken": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f", // ARB WBTC token address
8649
+ * "inputAmount": 1000000000000000n, // The amount of input tokens
8650
+ * "minOutputAmount": 900000000000000n, // min amount you are expecting to receive
8651
+ * // deadline is omitted - will be automatically set to 0n
8652
+ * "allowPartialFill": false, // Whether the intent can be partially filled
8653
+ * "srcChain": "0x38.bsc", // Chain ID where input tokens originate
8654
+ * "dstChain": "0xa4b1.arbitrum", // Chain ID where output tokens should be delivered
8655
+ * "srcAddress": "0x..", // Source address (original address on spoke chain)
8656
+ * "dstAddress": "0x...", // Destination address (original address on spoke chain)
8657
+ * "solver": "0x..", // Optional specific solver address (address(0) = any solver)
8658
+ * "data": "0x..", // Additional arbitrary data
8659
+ * } satisfies CreateLimitOrderParams;
8660
+ *
8661
+ * const createLimitOrderResult = await swapService.createLimitOrder({
8662
+ * intentParams: payload,
8663
+ * spokeProvider,
8664
+ * fee, // optional
8665
+ * timeout, // optional
8666
+ * });
8667
+ *
8668
+ * if (createLimitOrderResult.ok) {
8669
+ * const [solverExecutionResponse, intent, intentDeliveryInfo] = createLimitOrderResult.value;
8670
+ * console.log('Intent execution response:', solverExecutionResponse);
8671
+ * console.log('Intent:', intent);
8672
+ * console.log('Intent delivery info:', intentDeliveryInfo);
8673
+ * // Limit order is now active and will remain until cancelled manually
8674
+ * } else {
8675
+ * // handle error
8676
+ * }
8677
+ */
8678
+ createLimitOrder<S extends SpokeProvider>({ intentParams: params, spokeProvider, fee, timeout, skipSimulation, }: Prettify<LimitOrderParams<S> & OptionalTimeout>): Promise<Result<[SolverExecutionResponse, Intent, IntentDeliveryInfo], IntentError<IntentErrorCode>>>;
8679
+ /**
8680
+ * Creates a limit order intent (no deadline, must be cancelled manually by user).
8681
+ * Similar to createIntent but enforces deadline=0n (no deadline) and uses LimitOrderParams.
8682
+ * Limit orders remain active until manually cancelled by the user.
8683
+ * NOTE: This method does not submit the intent to the Solver API
8684
+ *
8685
+ * @param {Prettify<LimitOrderParams<S> & OptionalRaw<R>>} params - Object containing:
8686
+ * - intentParams: The parameters for creating the limit order (deadline is automatically set to 0n, deadline field should be omitted).
8687
+ * - spokeProvider: The spoke provider instance.
8688
+ * - fee: (Optional) Partner fee configuration.
8689
+ * - raw: (Optional) Whether to return the raw transaction data instead of executing it
8690
+ * - skipSimulation: (Optional) Whether to skip transaction simulation (default: false).
8691
+ * @returns {Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex], IntentError<'CREATION_FAILED'>>>} The encoded contract call or raw transaction data, Intent and intent data as hex
8692
+ *
8693
+ * @example
8694
+ * const payload = {
8695
+ * "inputToken": "0x2170Ed0880ac9A755fd29B2688956BD959F933F8", // BSC ETH token address
8696
+ * "outputToken": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f", // ARB WBTC token address
8697
+ * "inputAmount": 1000000000000000n, // The amount of input tokens
8698
+ * "minOutputAmount": 900000000000000n, // min amount you are expecting to receive
8699
+ * // deadline is omitted - will be automatically set to 0n
8700
+ * "allowPartialFill": false, // Whether the intent can be partially filled
8701
+ * "srcChain": "0x38.bsc", // Chain ID where input tokens originate
8702
+ * "dstChain": "0xa4b1.arbitrum", // Chain ID where output tokens should be delivered
8703
+ * "srcAddress": "0x..", // Source address (original address on spoke chain)
8704
+ * "dstAddress": "0x...", // Destination address (original address on spoke chain)
8705
+ * "solver": "0x..", // Optional specific solver address (address(0) = any solver)
8706
+ * "data": "0x..", // Additional arbitrary data
8707
+ * } satisfies CreateLimitOrderParams;
8708
+ *
8709
+ * const createLimitOrderIntentResult = await swapService.createLimitOrderIntent({
8710
+ * intentParams: payload,
8711
+ * spokeProvider,
8712
+ * fee, // optional
8713
+ * raw, // optional
8714
+ * });
8715
+ *
8716
+ * if (createLimitOrderIntentResult.ok) {
8717
+ * const [txResult, intent, intentData] = createLimitOrderIntentResult.value;
8718
+ * console.log('Transaction result:', txResult);
8719
+ * console.log('Intent:', intent);
8720
+ * console.log('Intent data:', intentData);
8721
+ * } else {
8722
+ * // handle error
8723
+ * }
8724
+ */
8725
+ createLimitOrderIntent<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, fee, raw, skipSimulation, }: Prettify<LimitOrderParams<S> & OptionalRaw<R>>): Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex$1], IntentError<'CREATION_FAILED'>>>;
8726
+ /**
8727
+ * Syntactic sugar for cancelAndSubmitIntent: cancels a limit order intent and submits it to the Relayer API.
8728
+ * Similar to swap function that wraps createAndSubmitIntent.
8729
+ *
8730
+ * @param params - Object containing:
8731
+ * @param params.intent - The limit order intent to cancel.
8732
+ * @param params.spokeProvider - The spoke provider instance.
8733
+ * @param params.timeout - (Optional) Timeout in milliseconds for the transaction (default: 60 seconds).
8734
+ * @returns
8735
+ * A promise resolving to a Result containing a tuple of cancel transaction hash and destination transaction hash,
8736
+ * or an IntentError if the operation fails.
8737
+ *
8738
+ * @example
8739
+ * // Get intent first (or use intent from createLimitOrder response)
8740
+ * const intent: Intent = await swapService.getIntent(txHash);
8741
+ *
8742
+ * // Cancel the limit order
8743
+ * const result = await swapService.cancelLimitOrder({
8744
+ * intent,
8745
+ * spokeProvider,
8746
+ * timeout, // optional
8747
+ * });
8748
+ *
8749
+ * if (result.ok) {
8750
+ * const [cancelTxHash, dstTxHash] = result.value;
8751
+ * console.log('Cancel transaction hash:', cancelTxHash);
8752
+ * console.log('Destination transaction hash:', dstTxHash);
8753
+ * } else {
8754
+ * // handle error
8755
+ * console.error('[cancelLimitOrder] error:', result.error);
8756
+ * }
8757
+ */
8758
+ cancelLimitOrder<S extends SpokeProvider>({ intent, spokeProvider, timeout, }: {
8759
+ intent: Intent;
8760
+ spokeProvider: S;
8761
+ timeout?: number;
8762
+ }): Promise<Result<[string, string], IntentError<IntentErrorCode>>>;
8570
8763
  /**
8571
8764
  * Cancels an intent
8572
8765
  * @param {Intent} intent - The intent to cancel
@@ -8574,7 +8767,25 @@ declare class SwapService {
8574
8767
  * @param {boolean} raw - Whether to return the raw transaction
8575
8768
  * @returns {Promise<TxReturnType<S, R>>} The encoded contract call
8576
8769
  */
8577
- cancelIntent<S extends SpokeProviderType, R extends boolean = false>(intent: Intent, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
8770
+ cancelIntent<S extends SpokeProviderType, R extends boolean = false>(intent: Intent, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, IntentError<'CANCEL_FAILED'>>>;
8771
+ /**
8772
+ * Cancels an intent on the spoke chain, submits the cancel intent to the relayer API,
8773
+ * and waits until the intent cancel is executed (on the destination/hub chain).
8774
+ * Follows a similar workflow to createAndSubmitIntent, but for cancelling.
8775
+ *
8776
+ * @param params - The parameters for canceling and submitting the intent.
8777
+ * @param params.intent - The intent to be canceled.
8778
+ * @param params.spokeProvider - The provider for the spoke chain.
8779
+ * @param params.timeout - Optional timeout in milliseconds (default: 60 seconds).
8780
+ * @returns
8781
+ * A Result containing the SolverExecutionResponse (cancel tx), intent, and relay info,
8782
+ * or an IntentError on failure.
8783
+ */
8784
+ cancelAndSubmitIntent<S extends SpokeProvider>({ intent, spokeProvider, timeout, }: {
8785
+ intent: Intent;
8786
+ spokeProvider: S;
8787
+ timeout?: number;
8788
+ }): Promise<Result<[string, string], IntentError<IntentErrorCode>>>;
8578
8789
  /**
8579
8790
  * Gets an intent from a transaction hash (on Hub chain)
8580
8791
  * @param {Hash} txHash - The transaction hash on Hub chain
@@ -9257,21 +9468,27 @@ interface IntentResponse {
9257
9468
  intent: {
9258
9469
  intentId: string;
9259
9470
  creator: string;
9260
- inputToken: string;
9261
- outputToken: string;
9471
+ inputToken: `0x${string}`;
9472
+ outputToken: `0x${string}`;
9262
9473
  inputAmount: string;
9263
9474
  minOutputAmount: string;
9264
9475
  deadline: string;
9265
9476
  allowPartialFill: boolean;
9266
9477
  srcChain: number;
9267
9478
  dstChain: number;
9268
- srcAddress: string;
9269
- dstAddress: string;
9479
+ srcAddress: `0x${string}`;
9480
+ dstAddress: `0x${string}`;
9270
9481
  solver: string;
9271
9482
  data: string;
9272
9483
  };
9273
9484
  events: unknown[];
9274
9485
  }
9486
+ interface UserIntentsResponse {
9487
+ total: number;
9488
+ offset: number;
9489
+ limit: number;
9490
+ items: IntentResponse[];
9491
+ }
9275
9492
  interface OrderbookResponse {
9276
9493
  total: number;
9277
9494
  data: Array<{
@@ -9385,6 +9602,25 @@ declare class BackendApiService implements IConfigApi {
9385
9602
  offset: string;
9386
9603
  limit: string;
9387
9604
  }): Promise<OrderbookResponse>;
9605
+ /**
9606
+ * Get all intents created by a specific user address with optional filters.
9607
+ *
9608
+ * @param params - Options to filter the user intents.
9609
+ * @param params.userAddress - The user's wallet address on the hub chain (required).
9610
+ * @param params.startDate - Optional. Start timestamp in milliseconds (number, required if filtering by date).
9611
+ * @param params.endDate - Optional. End timestamp in milliseconds (number, required if filtering by date).
9612
+ * @param params.limit - Optional. Max number of results (string).
9613
+ * @param params.offset - Optional. Pagination offset (string).
9614
+ *
9615
+ * @returns {Promise<UserIntentsResponse>} Promise resolving to an array of intent responses for the user.
9616
+ */
9617
+ getUserIntents(params: {
9618
+ userAddress: Address;
9619
+ startDate?: number;
9620
+ endDate?: number;
9621
+ limit?: string;
9622
+ offset?: string;
9623
+ }): Promise<UserIntentsResponse>;
9388
9624
  /**
9389
9625
  * Get money market position for a specific user
9390
9626
  * @param userAddress - User's wallet address
@@ -9631,6 +9867,7 @@ declare function hexToBigInt(hex: string): bigint;
9631
9867
  declare function deriveUserWalletAddress(hubProvider: EvmHubProvider, spokeChainId: SpokeChainId, spokeAddress: string): Promise<Address>;
9632
9868
  declare function parseToStroops(amount: string): bigint;
9633
9869
  declare function sleep(ms: number): Promise<void>;
9870
+ declare function isHubSpokeProvider(spokeProvider: SpokeProviderType, hubProvider: EvmHubProvider): boolean;
9634
9871
 
9635
9872
  type IcxMigrateParams = {
9636
9873
  address: IcxTokenType;
@@ -10039,7 +10276,7 @@ type CreateBridgeIntentParams = {
10039
10276
  dstAsset: string;
10040
10277
  recipient: string;
10041
10278
  };
10042
- type BridgeParams<S extends SpokeProvider> = Prettify<{
10279
+ type BridgeParams<S extends SpokeProviderType> = Prettify<{
10043
10280
  params: CreateBridgeIntentParams;
10044
10281
  spokeProvider: S;
10045
10282
  skipSimulation?: boolean;
@@ -10091,7 +10328,7 @@ declare class BridgeService {
10091
10328
  * @param spokeProvider - The spoke provider
10092
10329
  * @returns {Promise<Result<boolean, BridgeError<'ALLOWANCE_CHECK_FAILED'>>>}
10093
10330
  */
10094
- isAllowanceValid<S extends SpokeProvider>({ params, spokeProvider, }: BridgeParams<S>): Promise<Result<boolean, BridgeError<'ALLOWANCE_CHECK_FAILED'>>>;
10331
+ isAllowanceValid<S extends SpokeProviderType>({ params, spokeProvider, }: BridgeParams<S>): Promise<Result<boolean, BridgeError<'ALLOWANCE_CHECK_FAILED'>>>;
10095
10332
  /**
10096
10333
  * Approve token spending for the bridge transaction
10097
10334
  * @param params - The bridge parameters
@@ -10099,7 +10336,7 @@ declare class BridgeService {
10099
10336
  * @param raw - Whether to return raw transaction data
10100
10337
  * @returns Promise<Result<TxReturnType<S, R>, BridgeError<'APPROVAL_FAILED'>>>
10101
10338
  */
10102
- approve<S extends SpokeProvider, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<BridgeParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, BridgeError<'APPROVAL_FAILED'>>>;
10339
+ approve<S extends SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<BridgeParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, BridgeError<'APPROVAL_FAILED'>>>;
10103
10340
  /**
10104
10341
  * Execute a bridge transaction to transfer tokens from one chain to another
10105
10342
  * @param params - The bridge parameters including source/destination chains, assets, and recipient
@@ -10169,7 +10406,7 @@ declare class BridgeService {
10169
10406
  * console.error('Bridge intent creation failed:', result.error);
10170
10407
  * }
10171
10408
  */
10172
- createBridgeIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>({ params, spokeProvider, fee, raw, }: Prettify<BridgeParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, BridgeError<'CREATE_BRIDGE_INTENT_FAILED'>> & BridgeOptionalExtraData>;
10409
+ createBridgeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, fee, raw, }: Prettify<BridgeParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, BridgeError<'CREATE_BRIDGE_INTENT_FAILED'>> & BridgeOptionalExtraData>;
10173
10410
  /**
10174
10411
  * Build the bridge transaction data for executing the bridge operation on the hub
10175
10412
  * @param params - The create bridge intent parameters
@@ -10469,7 +10706,7 @@ declare class StakingService {
10469
10706
  * @param spokeProvider - The spoke provider
10470
10707
  * @returns {Promise<Result<boolean, StakingError<'ALLOWANCE_CHECK_FAILED'>>>}
10471
10708
  */
10472
- isAllowanceValid<S extends SpokeProvider>({ params, spokeProvider, }: Prettify<{
10709
+ isAllowanceValid<S extends SpokeProviderType>({ params, spokeProvider, }: Prettify<{
10473
10710
  params: StakingParams;
10474
10711
  spokeProvider: S;
10475
10712
  }>): Promise<Result<boolean, StakingError<'ALLOWANCE_CHECK_FAILED'>>>;
@@ -10480,7 +10717,7 @@ declare class StakingService {
10480
10717
  * @param raw - Whether to return raw transaction data
10481
10718
  * @returns Promise<Result<TxReturnType<S, R>, StakingError<'APPROVAL_FAILED'>>>
10482
10719
  */
10483
- approve<S extends SpokeProvider, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10720
+ approve<S extends SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10484
10721
  params: StakingParams;
10485
10722
  spokeProvider: S;
10486
10723
  raw?: R;
@@ -10508,7 +10745,7 @@ declare class StakingService {
10508
10745
  * @param raw - Whether to return the raw transaction data (default: false)
10509
10746
  * @returns Promise<Result<TxReturnType<S, R>, StakingError<'STAKE_FAILED'>> & { data?: { address: string; payload: Hex } }>
10510
10747
  */
10511
- createStakeIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10748
+ createStakeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10512
10749
  params: StakeParams;
10513
10750
  spokeProvider: S;
10514
10751
  raw?: R;
@@ -10548,7 +10785,7 @@ declare class StakingService {
10548
10785
  * @param raw - Whether to return the raw transaction data (default: false)
10549
10786
  * @returns Promise<Result<TxReturnType<S, R>, StakingError<'UNSTAKE_FAILED'>> & { data?: { address: string; payload: Hex } }>
10550
10787
  */
10551
- createUnstakeIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10788
+ createUnstakeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10552
10789
  params: UnstakeParams;
10553
10790
  spokeProvider: S;
10554
10791
  raw?: R;
@@ -10564,7 +10801,7 @@ declare class StakingService {
10564
10801
  * @param params - The unstake parameters
10565
10802
  * @returns The encoded contract call data
10566
10803
  */
10567
- buildUnstakeData(hubWallet: Address$1, params: UnstakeParams): Hex;
10804
+ buildUnstakeData(hubWallet: Address$1, params: UnstakeParams, xSoda: Address$1, underlyingSodaAmount: bigint): Hex;
10568
10805
  /**
10569
10806
  * Execute instant unstake transaction for instantly unstaking xSoda shares
10570
10807
  * @param params - The instant unstaking parameters
@@ -10585,7 +10822,7 @@ declare class StakingService {
10585
10822
  * @param raw - Whether to return the raw transaction data (default: false)
10586
10823
  * @returns Promise<Result<TxReturnType<S, R>, StakingError<'INSTANT_UNSTAKE_FAILED'>> & { data?: { address: string; payload: Hex } }>
10587
10824
  */
10588
- createInstantUnstakeIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10825
+ createInstantUnstakeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10589
10826
  params: InstantUnstakeParams;
10590
10827
  spokeProvider: S;
10591
10828
  raw?: R;
@@ -10624,7 +10861,7 @@ declare class StakingService {
10624
10861
  * @param raw - Whether to return the raw transaction data (default: false)
10625
10862
  * @returns Promise<Result<TxReturnType<S, R>, StakingError<'CLAIM_FAILED'>> & { data?: { address: string; payload: Hex } }>
10626
10863
  */
10627
- createClaimIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10864
+ createClaimIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10628
10865
  params: ClaimParams;
10629
10866
  spokeProvider: S;
10630
10867
  raw?: R;
@@ -10663,7 +10900,7 @@ declare class StakingService {
10663
10900
  * @param raw - Whether to return the raw transaction data (default: false)
10664
10901
  * @returns Promise<Result<TxReturnType<S, R>, StakingError<'CANCEL_UNSTAKE_FAILED'>> & { data?: { address: string; payload: Hex } }>
10665
10902
  */
10666
- createCancelUnstakeIntent<S extends SpokeProvider = SpokeProvider, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10903
+ createCancelUnstakeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
10667
10904
  params: CancelUnstakeParams;
10668
10905
  spokeProvider: S;
10669
10906
  raw?: R;
@@ -10685,7 +10922,7 @@ declare class StakingService {
10685
10922
  * @param spokeProvider - The spoke provider
10686
10923
  * @returns Promise<Result<StakingInfo, StakingError<'INFO_FETCH_FAILED'>>>
10687
10924
  */
10688
- getStakingInfoFromSpoke(spokeProvider: SpokeProvider): Promise<Result<StakingInfo, StakingError<'INFO_FETCH_FAILED'>>>;
10925
+ getStakingInfoFromSpoke(spokeProvider: SpokeProviderType): Promise<Result<StakingInfo, StakingError<'INFO_FETCH_FAILED'>>>;
10689
10926
  /**
10690
10927
  * Get comprehensive staking information for a user
10691
10928
  * @param userAddress - The user's address
@@ -10697,7 +10934,7 @@ declare class StakingService {
10697
10934
  * @param param - The user's address or spoke provider
10698
10935
  * @returns Promise<Result<UnstakingInfo, StakingError<'INFO_FETCH_FAILED'>>>
10699
10936
  */
10700
- getUnstakingInfo(param: SpokeProvider | Address$1): Promise<Result<UnstakingInfo, StakingError<'INFO_FETCH_FAILED'>>>;
10937
+ getUnstakingInfo(param: SpokeProviderType | Address$1): Promise<Result<UnstakingInfo, StakingError<'INFO_FETCH_FAILED'>>>;
10701
10938
  /**
10702
10939
  * Get staking configuration from the stakedSoda contract
10703
10940
  * @returns Promise<Result<StakingConfig, StakingError<'INFO_FETCH_FAILED'>>>
@@ -10715,7 +10952,7 @@ declare class StakingService {
10715
10952
  * @param param - The user's address or spoke provider
10716
10953
  * @returns Promise<Result<UnstakingInfo & { requestsWithPenalty: UnstakeRequestWithPenalty[] }, StakingError<'INFO_FETCH_FAILED'>>>
10717
10954
  */
10718
- getUnstakingInfoWithPenalty(param: SpokeProvider | Address$1): Promise<Result<UnstakingInfo & {
10955
+ getUnstakingInfoWithPenalty(param: SpokeProviderType | Address$1): Promise<Result<UnstakingInfo & {
10719
10956
  requestsWithPenalty: UnstakeRequestWithPenalty[];
10720
10957
  }, StakingError<'INFO_FETCH_FAILED'>>>;
10721
10958
  /**
@@ -10793,7 +11030,7 @@ declare class MigrationService {
10793
11030
  * );
10794
11031
  *
10795
11032
  */
10796
- isAllowanceValid<S extends SpokeProvider>(params: MigrationParams | MigrationRevertParams, action: MigrationAction, spokeProvider: S): Promise<Result<boolean>>;
11033
+ isAllowanceValid<S extends SpokeProviderType>(params: MigrationParams | MigrationRevertParams, action: MigrationAction, spokeProvider: S): Promise<Result<boolean>>;
10797
11034
  /**
10798
11035
  * Approves the amount spending for the revert migration transaction.
10799
11036
  * @param params - The parameters for the revert migration transaction.
@@ -10813,7 +11050,7 @@ declare class MigrationService {
10813
11050
  * );
10814
11051
  *
10815
11052
  */
10816
- approve<S extends SpokeProvider, R extends boolean = false>(params: IcxCreateRevertMigrationParams | UnifiedBnUSDMigrateParams, action: MigrationAction, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
11053
+ approve<S extends SpokeProviderType, R extends boolean = false>(params: IcxCreateRevertMigrationParams | UnifiedBnUSDMigrateParams, action: MigrationAction, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
10817
11054
  /**
10818
11055
  * Migrates bnUSD tokens between legacy and new formats across supported spoke chains via the hub chain (sonic).
10819
11056
  * Handles both legacy-to-new and new-to-legacy bnUSD migrations, enforcing validation and relaying the transaction.
@@ -10989,7 +11226,7 @@ declare class MigrationService {
10989
11226
  * );
10990
11227
  *
10991
11228
  */
10992
- createMigrateBalnIntent<R extends boolean = false>(params: BalnMigrateParams, spokeProvider: IconSpokeProvider, raw?: R): Promise<Result<TxReturnType<IconSpokeProvider, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
11229
+ createMigrateBalnIntent<S extends IconSpokeProviderType = IconSpokeProvider, R extends boolean = false>(params: BalnMigrateParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
10993
11230
  /**
10994
11231
  * Creates a bnUSD migration or reverse migration (legacy bnUSD to new bnUSD or vice versa) intent on a spoke chain.
10995
11232
  *
@@ -11033,7 +11270,7 @@ declare class MigrationService {
11033
11270
  * spokeProvider
11034
11271
  * );
11035
11272
  */
11036
- createMigratebnUSDIntent<S extends SpokeProvider, R extends boolean = false>(params: UnifiedBnUSDMigrateParams, spokeProvider: S, unchecked?: boolean, raw?: R): Promise<Result<[TxReturnType<S, R>, RelayExtraData], MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
11273
+ createMigratebnUSDIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: UnifiedBnUSDMigrateParams, spokeProvider: S, unchecked?: boolean, raw?: R): Promise<Result<[TxReturnType<S, R>, RelayExtraData], MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
11037
11274
  /**
11038
11275
  * Creates a migration of ICX to SODA intent on spoke chain (icon).
11039
11276
  * This function handles the migration of ICX or wICX tokens to SODA tokens on the hub chain.
@@ -11061,7 +11298,7 @@ declare class MigrationService {
11061
11298
  * // Handle error
11062
11299
  * }
11063
11300
  */
11064
- createMigrateIcxToSodaIntent<R extends boolean = false>(params: IcxMigrateParams, spokeProvider: IconSpokeProvider, raw?: R): Promise<Result<TxReturnType<IconSpokeProvider, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
11301
+ createMigrateIcxToSodaIntent<S extends IconSpokeProviderType = IconSpokeProviderType, R extends boolean = false>(params: IcxMigrateParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
11065
11302
  /**
11066
11303
  * Creates a revert migration intent transaction on the hub chain.
11067
11304
  * Note: This function does not relay the transaction to the spoke chain.
@@ -11080,7 +11317,7 @@ declare class MigrationService {
11080
11317
  * action: 'revert',
11081
11318
  * },
11082
11319
  */
11083
- createRevertSodaToIcxMigrationIntent<R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider: SonicSpokeProvider, raw?: R): Promise<Result<TxReturnType<SonicSpokeProvider, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
11320
+ createRevertSodaToIcxMigrationIntent<S extends SonicSpokeProviderType = SonicSpokeProviderType, R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
11084
11321
  }
11085
11322
 
11086
- export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, 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, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteMsg, 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 GetChainConfigType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, 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 MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, 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 MoneyMarketServiceConstructorParams, 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 QueryMsg, type QuoteType, RAY, RAY_DECIMALS, type RawSpokeProvider, 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, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, 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, connectionAbi, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSonicRawSpokeProvider, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
11323
+ export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentParams, type CreateLimitOrderParams, 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, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteMsg, 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 GetChainConfigType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentCancelFailedErrorData, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, type LimitOrderParams, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, 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 MoneyMarketServiceConstructorParams, 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 QueryMsg, type QuoteType, RAY, RAY_DECIMALS, type RawSpokeProvider, 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, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, 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, connectionAbi, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSonicRawSpokeProvider, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };