@sodax/sdk 0.0.1-rc.21 → 0.0.1-rc.23

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
@@ -5827,25 +5827,135 @@ interface FormatUserSummaryAndIncentivesResponse<T extends FormatReserveUSDRespo
5827
5827
  declare function formatUserSummary<T extends FormatReserveUSDResponse = FormatReserveUSDResponse>({ currentTimestamp, marketReferencePriceInUsd, marketReferenceCurrencyDecimals, userReserves, formattedReserves, userEmodeCategoryId, }: FormatUserSummaryRequest<T>): FormatUserSummaryResponse<T>;
5828
5828
  declare function formatUserSummaryAndIncentives<T extends FormatReserveUSDResponse = FormatReserveUSDResponse>({ currentTimestamp, marketReferencePriceInUsd, marketReferenceCurrencyDecimals, userReserves, formattedReserves, userEmodeCategoryId, reserveIncentives, userIncentives, }: FormatUserSummaryAndIncentivesRequest<T>): FormatUserSummaryAndIncentivesResponse<T>;
5829
5829
 
5830
+ declare class UiPoolDataProviderService implements UiPoolDataProviderInterface {
5831
+ private readonly hubProvider;
5832
+ private readonly uiPoolDataProvider;
5833
+ private readonly poolAddressesProvider;
5834
+ constructor(hubProvider: EvmHubProvider);
5835
+ getUserReservesHumanized(userAddress: Address$1): Promise<{
5836
+ userReserves: UserReserveDataHumanized[];
5837
+ userEmodeCategoryId: number;
5838
+ }>;
5839
+ /**
5840
+ * Get the list of all eModes in the pool humanized
5841
+ * @returns {Promise<EmodeDataHumanized[]>} - Array of eMode data humanized
5842
+ */
5843
+ getEModesHumanized(): Promise<EmodeDataHumanized[]>;
5844
+ /**
5845
+ * Get the list of all eModes in the pool
5846
+ * @returns {Promise<readonly EModeData[]>} - Array of eMode data
5847
+ */
5848
+ getEModes(): Promise<readonly EModeData[]>;
5849
+ /**
5850
+ * Get the list of all reserves in the pool
5851
+ * @param uiPoolDataProvider - The address of the UI Pool Data Provider
5852
+ * @param poolAddressesProvider - The address of the Pool Addresses Provider
5853
+ * @returns {Promise<readonly Address[]>} - Array of reserve addresses
5854
+ */
5855
+ getReservesList(): Promise<readonly Address$1[]>;
5856
+ /**
5857
+ * Get detailed data for all reserves in the pool
5858
+ * @returns {Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>} - Tuple containing array of reserve data and base currency info
5859
+ */
5860
+ getReservesData(): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
5861
+ /**
5862
+ * Get user-specific reserve data
5863
+ * @param userAddress Address of the user
5864
+ * @param uiPoolDataProvider - The address of the UI Pool Data Provider
5865
+ * @param poolAddressesProvider - The address of the Pool Addresses Provider
5866
+ * @returns {Promise<readonly [readonly UserReserveData[], number]>} - Tuple containing array of user reserve data and eMode category ID
5867
+ */
5868
+ getUserReservesData(userAddress: Address$1): Promise<readonly [readonly UserReserveData[], number]>;
5869
+ /**
5870
+ * Get the reserves data humanized
5871
+ * @returns {Promise<ReservesDataHumanized>} - The reserves data humanized
5872
+ */
5873
+ getReservesHumanized(): Promise<ReservesDataHumanized>;
5874
+ }
5875
+
5876
+ declare class LendingPoolService {
5877
+ private readonly hubProvider;
5878
+ private readonly lendingPool;
5879
+ constructor(hubProvider: EvmHubProvider);
5880
+ /**
5881
+ * Get the list of all reserves in the lending pool
5882
+ * @returns {Promise<readonly Address[]>} - Array of reserve addresses
5883
+ */
5884
+ getReservesList(): Promise<readonly Address$1[]>;
5885
+ /**
5886
+ * Get detailed data for a reserve in the pool
5887
+ * @param assetAddress - The address of the asset
5888
+ * @returns {Promise<ReserveDataLegacy>} - Reserve data
5889
+ */
5890
+ getReserveData(assetAddress: Address$1): Promise<ReserveDataLegacy>;
5891
+ /**
5892
+ * Get the normalized income for a reserve
5893
+ * @param asset - The address of the asset
5894
+ * @returns {Promise<bigint>} - Normalized income
5895
+ */
5896
+ getReserveNormalizedIncome(asset: Address$1): Promise<bigint>;
5897
+ }
5898
+
5830
5899
  declare class MoneyMarketDataService {
5831
- private readonly uiPoolDataProviderService;
5832
- private readonly lendingPoolService;
5900
+ readonly uiPoolDataProviderService: UiPoolDataProviderService;
5901
+ readonly lendingPoolService: LendingPoolService;
5902
+ readonly hubProvider: EvmHubProvider;
5833
5903
  constructor(hubProvider: EvmHubProvider);
5834
5904
  /**
5835
5905
  * LendingPool
5836
5906
  */
5907
+ /**
5908
+ * Get the normalized income for a reserve
5909
+ * @param asset - The address of the asset
5910
+ * @returns {Promise<bigint>} - Normalized income
5911
+ */
5837
5912
  getReserveNormalizedIncome(asset: Address$1): Promise<bigint>;
5913
+ /**
5914
+ * Get the reserve data for an asset
5915
+ * @param asset - The address of the asset
5916
+ * @returns {Promise<ReserveDataLegacy>} - The reserve data
5917
+ */
5838
5918
  getReserveData(asset: Address$1): Promise<ReserveDataLegacy>;
5839
5919
  /**
5840
5920
  * UiPoolDataProvider
5841
5921
  */
5922
+ /**
5923
+ * Get the reserves list
5924
+ * @returns {Promise<readonly Address[]>} - List of reserve asset addresses
5925
+ */
5842
5926
  getReservesList(): Promise<readonly Address$1[]>;
5927
+ /**
5928
+ * Get the reserves data
5929
+ * @returns {Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>} - The reserves data
5930
+ */
5843
5931
  getReservesData(): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
5844
- getUserReservesData(userAddress: Address$1): Promise<readonly [readonly UserReserveData[], number]>;
5932
+ /**
5933
+ * Get the user reserves data
5934
+ * @param spokeProvider - The spoke provider
5935
+ * @returns {Promise<readonly [readonly UserReserveData[], number]>} - The user reserves data
5936
+ */
5937
+ getUserReservesData(spokeProvider: SpokeProvider): Promise<readonly [readonly UserReserveData[], number]>;
5938
+ /**
5939
+ * Get the list of all eModes in the pool
5940
+ * @returns {Promise<readonly EModeData[]>} - Array of eMode data
5941
+ */
5845
5942
  getEModes(): Promise<readonly EModeData[]>;
5943
+ /**
5944
+ * Get the list of all eModes in the pool humanized
5945
+ * @returns {Promise<EmodeDataHumanized[]>} - Array of eMode data humanized
5946
+ */
5846
5947
  getEModesHumanized(): Promise<EmodeDataHumanized[]>;
5948
+ /**
5949
+ * Get the reserves data humanized
5950
+ * @returns {Promise<ReservesDataHumanized>} - The reserves data humanized
5951
+ */
5847
5952
  getReservesHumanized(): Promise<ReservesDataHumanized>;
5848
- getUserReservesHumanized(userAddress: Address$1): Promise<{
5953
+ /**
5954
+ * Get the user reserves humanized
5955
+ * @param spokeProvider - The spoke provider
5956
+ * @returns {Promise<{userReserves: UserReserveDataHumanized[], userEmodeCategoryId: number}>} - The user reserves humanized
5957
+ */
5958
+ getUserReservesHumanized(spokeProvider: SpokeProvider): Promise<{
5849
5959
  userReserves: UserReserveDataHumanized[];
5850
5960
  userEmodeCategoryId: number;
5851
5961
  }>;
@@ -5853,11 +5963,11 @@ declare class MoneyMarketDataService {
5853
5963
  * Utils for building requests
5854
5964
  */
5855
5965
  /**
5856
- * @description builds the request for the formatReserves function
5966
+ * @description Util function to build the request for the formatReserves function
5857
5967
  */
5858
5968
  buildReserveDataWithPrice(reserves: ReservesDataHumanized): FormatReservesUSDRequest<ReserveDataWithPrice>;
5859
5969
  /**
5860
- * @description builds the request for the formatReserves function
5970
+ * @description Util function to build the request for the formatReserves function
5861
5971
  */
5862
5972
  buildUserSummaryRequest(reserves: ReservesDataHumanized, formattedReserves: (ReserveData & {
5863
5973
  priceInMarketReferenceCurrency: string;
@@ -8436,71 +8546,6 @@ declare class MoneyMarketService {
8436
8546
  getSupportedReserves(): readonly Address$1[];
8437
8547
  }
8438
8548
 
8439
- declare class LendingPoolService {
8440
- private readonly hubProvider;
8441
- private readonly lendingPool;
8442
- constructor(hubProvider: EvmHubProvider);
8443
- /**
8444
- * Get the list of all reserves in the lending pool
8445
- * @returns {Promise<readonly Address[]>} - Array of reserve addresses
8446
- */
8447
- getReservesList(): Promise<readonly Address$1[]>;
8448
- /**
8449
- * Get detailed data for a reserve in the pool
8450
- * @param assetAddress - The address of the asset
8451
- * @returns {Promise<ReserveDataLegacy>} - Reserve data
8452
- */
8453
- getReserveData(assetAddress: Address$1): Promise<ReserveDataLegacy>;
8454
- /**
8455
- * Get the normalized income for a reserve
8456
- * @param asset The address of the asset
8457
- * @returns {Promise<bigint>} - Normalized income
8458
- */
8459
- getReserveNormalizedIncome(asset: Address$1): Promise<bigint>;
8460
- }
8461
-
8462
- declare class UiPoolDataProviderService implements UiPoolDataProviderInterface {
8463
- private readonly hubProvider;
8464
- private readonly uiPoolDataProvider;
8465
- private readonly poolAddressesProvider;
8466
- constructor(hubProvider: EvmHubProvider);
8467
- getUserReservesHumanized(userAddress: Address$1): Promise<{
8468
- userReserves: UserReserveDataHumanized[];
8469
- userEmodeCategoryId: number;
8470
- }>;
8471
- /**
8472
- * Get the list of all eModes in the pool humanized
8473
- * @returns {Promise<EmodeDataHumanized[]>} - Array of eMode data humanized
8474
- */
8475
- getEModesHumanized(): Promise<EmodeDataHumanized[]>;
8476
- /**
8477
- * Get the list of all eModes in the pool
8478
- * @returns {Promise<readonly EModeData[]>} - Array of eMode data
8479
- */
8480
- getEModes(): Promise<readonly EModeData[]>;
8481
- /**
8482
- * Get the list of all reserves in the pool
8483
- * @param uiPoolDataProvider - The address of the UI Pool Data Provider
8484
- * @param poolAddressesProvider - The address of the Pool Addresses Provider
8485
- * @returns {Promise<readonly Address[]>} - Array of reserve addresses
8486
- */
8487
- getReservesList(): Promise<readonly Address$1[]>;
8488
- /**
8489
- * Get detailed data for all reserves in the pool
8490
- * @returns {Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>} - Tuple containing array of reserve data and base currency info
8491
- */
8492
- getReservesData(): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
8493
- /**
8494
- * Get user-specific reserve data
8495
- * @param userAddress Address of the user
8496
- * @param uiPoolDataProvider - The address of the UI Pool Data Provider
8497
- * @param poolAddressesProvider - The address of the Pool Addresses Provider
8498
- * @returns {Promise<readonly [readonly UserReserveData[], number]>} - Tuple containing array of user reserve data and eMode category ID
8499
- */
8500
- getUserReservesData(userAddress: Address$1): Promise<readonly [readonly UserReserveData[], number]>;
8501
- getReservesHumanized(): Promise<ReservesDataHumanized>;
8502
- }
8503
-
8504
8549
  /**
8505
8550
  * ABI-encode an array of ContractCall objects.
8506
8551
  * @param calls An array of ContractCall objects.
@@ -8526,6 +8571,14 @@ declare function calculatePercentageFeeAmount(amount: bigint, percentage: number
8526
8571
  * @returns {bigint} The fee amount
8527
8572
  */
8528
8573
  declare function calculateFeeAmount(inputAmount: bigint, fee: PartnerFee | undefined): bigint;
8574
+ /**
8575
+ * Adjust the amount by the fee amount based on the quote type
8576
+ * @param {bigint} amount - The amount to adjust
8577
+ * @param {PartnerFee | undefined} fee - The fee to adjust
8578
+ * @param {QuoteType} quoteType - The quote type
8579
+ * @returns {bigint} The adjusted amount
8580
+ */
8581
+ declare function adjustAmountByFee(amount: bigint, fee: PartnerFee | undefined, quoteType: QuoteType): bigint;
8529
8582
  declare function BigIntToHex(value: bigint): Hex$1;
8530
8583
  declare function encodeAddress(spokeChainId: SpokeChainId, address: string): Hex$1;
8531
8584
  /**
@@ -9645,4 +9698,4 @@ declare function isUnifiedBnUSDMigrateParams(value: unknown): value is UnifiedBn
9645
9698
  declare function isBalnMigrateParams(value: unknown): value is BalnMigrateParams;
9646
9699
  declare function isIcxCreateRevertMigrationParams(value: unknown): value is IcxCreateRevertMigrationParams;
9647
9700
 
9648
- export { type AggregatedReserveData, type AssetInfo, 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 CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, ChainIdToIntentRelayChainId, type CombinedReserveData, type ComputedUserReserve, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, 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 IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, 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 MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, 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 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 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 RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, 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, 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, SuiSpokeProvider, 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 WithdrawInfo, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, 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, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, 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, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
9701
+ export { type AggregatedReserveData, type AssetInfo, 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 CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, ChainIdToIntentRelayChainId, type CombinedReserveData, type ComputedUserReserve, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, 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 IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, 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 MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, 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 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 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 RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, 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, 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, SuiSpokeProvider, 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 WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, 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, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, 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, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
package/dist/index.d.ts CHANGED
@@ -5827,25 +5827,135 @@ interface FormatUserSummaryAndIncentivesResponse<T extends FormatReserveUSDRespo
5827
5827
  declare function formatUserSummary<T extends FormatReserveUSDResponse = FormatReserveUSDResponse>({ currentTimestamp, marketReferencePriceInUsd, marketReferenceCurrencyDecimals, userReserves, formattedReserves, userEmodeCategoryId, }: FormatUserSummaryRequest<T>): FormatUserSummaryResponse<T>;
5828
5828
  declare function formatUserSummaryAndIncentives<T extends FormatReserveUSDResponse = FormatReserveUSDResponse>({ currentTimestamp, marketReferencePriceInUsd, marketReferenceCurrencyDecimals, userReserves, formattedReserves, userEmodeCategoryId, reserveIncentives, userIncentives, }: FormatUserSummaryAndIncentivesRequest<T>): FormatUserSummaryAndIncentivesResponse<T>;
5829
5829
 
5830
+ declare class UiPoolDataProviderService implements UiPoolDataProviderInterface {
5831
+ private readonly hubProvider;
5832
+ private readonly uiPoolDataProvider;
5833
+ private readonly poolAddressesProvider;
5834
+ constructor(hubProvider: EvmHubProvider);
5835
+ getUserReservesHumanized(userAddress: Address$1): Promise<{
5836
+ userReserves: UserReserveDataHumanized[];
5837
+ userEmodeCategoryId: number;
5838
+ }>;
5839
+ /**
5840
+ * Get the list of all eModes in the pool humanized
5841
+ * @returns {Promise<EmodeDataHumanized[]>} - Array of eMode data humanized
5842
+ */
5843
+ getEModesHumanized(): Promise<EmodeDataHumanized[]>;
5844
+ /**
5845
+ * Get the list of all eModes in the pool
5846
+ * @returns {Promise<readonly EModeData[]>} - Array of eMode data
5847
+ */
5848
+ getEModes(): Promise<readonly EModeData[]>;
5849
+ /**
5850
+ * Get the list of all reserves in the pool
5851
+ * @param uiPoolDataProvider - The address of the UI Pool Data Provider
5852
+ * @param poolAddressesProvider - The address of the Pool Addresses Provider
5853
+ * @returns {Promise<readonly Address[]>} - Array of reserve addresses
5854
+ */
5855
+ getReservesList(): Promise<readonly Address$1[]>;
5856
+ /**
5857
+ * Get detailed data for all reserves in the pool
5858
+ * @returns {Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>} - Tuple containing array of reserve data and base currency info
5859
+ */
5860
+ getReservesData(): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
5861
+ /**
5862
+ * Get user-specific reserve data
5863
+ * @param userAddress Address of the user
5864
+ * @param uiPoolDataProvider - The address of the UI Pool Data Provider
5865
+ * @param poolAddressesProvider - The address of the Pool Addresses Provider
5866
+ * @returns {Promise<readonly [readonly UserReserveData[], number]>} - Tuple containing array of user reserve data and eMode category ID
5867
+ */
5868
+ getUserReservesData(userAddress: Address$1): Promise<readonly [readonly UserReserveData[], number]>;
5869
+ /**
5870
+ * Get the reserves data humanized
5871
+ * @returns {Promise<ReservesDataHumanized>} - The reserves data humanized
5872
+ */
5873
+ getReservesHumanized(): Promise<ReservesDataHumanized>;
5874
+ }
5875
+
5876
+ declare class LendingPoolService {
5877
+ private readonly hubProvider;
5878
+ private readonly lendingPool;
5879
+ constructor(hubProvider: EvmHubProvider);
5880
+ /**
5881
+ * Get the list of all reserves in the lending pool
5882
+ * @returns {Promise<readonly Address[]>} - Array of reserve addresses
5883
+ */
5884
+ getReservesList(): Promise<readonly Address$1[]>;
5885
+ /**
5886
+ * Get detailed data for a reserve in the pool
5887
+ * @param assetAddress - The address of the asset
5888
+ * @returns {Promise<ReserveDataLegacy>} - Reserve data
5889
+ */
5890
+ getReserveData(assetAddress: Address$1): Promise<ReserveDataLegacy>;
5891
+ /**
5892
+ * Get the normalized income for a reserve
5893
+ * @param asset - The address of the asset
5894
+ * @returns {Promise<bigint>} - Normalized income
5895
+ */
5896
+ getReserveNormalizedIncome(asset: Address$1): Promise<bigint>;
5897
+ }
5898
+
5830
5899
  declare class MoneyMarketDataService {
5831
- private readonly uiPoolDataProviderService;
5832
- private readonly lendingPoolService;
5900
+ readonly uiPoolDataProviderService: UiPoolDataProviderService;
5901
+ readonly lendingPoolService: LendingPoolService;
5902
+ readonly hubProvider: EvmHubProvider;
5833
5903
  constructor(hubProvider: EvmHubProvider);
5834
5904
  /**
5835
5905
  * LendingPool
5836
5906
  */
5907
+ /**
5908
+ * Get the normalized income for a reserve
5909
+ * @param asset - The address of the asset
5910
+ * @returns {Promise<bigint>} - Normalized income
5911
+ */
5837
5912
  getReserveNormalizedIncome(asset: Address$1): Promise<bigint>;
5913
+ /**
5914
+ * Get the reserve data for an asset
5915
+ * @param asset - The address of the asset
5916
+ * @returns {Promise<ReserveDataLegacy>} - The reserve data
5917
+ */
5838
5918
  getReserveData(asset: Address$1): Promise<ReserveDataLegacy>;
5839
5919
  /**
5840
5920
  * UiPoolDataProvider
5841
5921
  */
5922
+ /**
5923
+ * Get the reserves list
5924
+ * @returns {Promise<readonly Address[]>} - List of reserve asset addresses
5925
+ */
5842
5926
  getReservesList(): Promise<readonly Address$1[]>;
5927
+ /**
5928
+ * Get the reserves data
5929
+ * @returns {Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>} - The reserves data
5930
+ */
5843
5931
  getReservesData(): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
5844
- getUserReservesData(userAddress: Address$1): Promise<readonly [readonly UserReserveData[], number]>;
5932
+ /**
5933
+ * Get the user reserves data
5934
+ * @param spokeProvider - The spoke provider
5935
+ * @returns {Promise<readonly [readonly UserReserveData[], number]>} - The user reserves data
5936
+ */
5937
+ getUserReservesData(spokeProvider: SpokeProvider): Promise<readonly [readonly UserReserveData[], number]>;
5938
+ /**
5939
+ * Get the list of all eModes in the pool
5940
+ * @returns {Promise<readonly EModeData[]>} - Array of eMode data
5941
+ */
5845
5942
  getEModes(): Promise<readonly EModeData[]>;
5943
+ /**
5944
+ * Get the list of all eModes in the pool humanized
5945
+ * @returns {Promise<EmodeDataHumanized[]>} - Array of eMode data humanized
5946
+ */
5846
5947
  getEModesHumanized(): Promise<EmodeDataHumanized[]>;
5948
+ /**
5949
+ * Get the reserves data humanized
5950
+ * @returns {Promise<ReservesDataHumanized>} - The reserves data humanized
5951
+ */
5847
5952
  getReservesHumanized(): Promise<ReservesDataHumanized>;
5848
- getUserReservesHumanized(userAddress: Address$1): Promise<{
5953
+ /**
5954
+ * Get the user reserves humanized
5955
+ * @param spokeProvider - The spoke provider
5956
+ * @returns {Promise<{userReserves: UserReserveDataHumanized[], userEmodeCategoryId: number}>} - The user reserves humanized
5957
+ */
5958
+ getUserReservesHumanized(spokeProvider: SpokeProvider): Promise<{
5849
5959
  userReserves: UserReserveDataHumanized[];
5850
5960
  userEmodeCategoryId: number;
5851
5961
  }>;
@@ -5853,11 +5963,11 @@ declare class MoneyMarketDataService {
5853
5963
  * Utils for building requests
5854
5964
  */
5855
5965
  /**
5856
- * @description builds the request for the formatReserves function
5966
+ * @description Util function to build the request for the formatReserves function
5857
5967
  */
5858
5968
  buildReserveDataWithPrice(reserves: ReservesDataHumanized): FormatReservesUSDRequest<ReserveDataWithPrice>;
5859
5969
  /**
5860
- * @description builds the request for the formatReserves function
5970
+ * @description Util function to build the request for the formatReserves function
5861
5971
  */
5862
5972
  buildUserSummaryRequest(reserves: ReservesDataHumanized, formattedReserves: (ReserveData & {
5863
5973
  priceInMarketReferenceCurrency: string;
@@ -8436,71 +8546,6 @@ declare class MoneyMarketService {
8436
8546
  getSupportedReserves(): readonly Address$1[];
8437
8547
  }
8438
8548
 
8439
- declare class LendingPoolService {
8440
- private readonly hubProvider;
8441
- private readonly lendingPool;
8442
- constructor(hubProvider: EvmHubProvider);
8443
- /**
8444
- * Get the list of all reserves in the lending pool
8445
- * @returns {Promise<readonly Address[]>} - Array of reserve addresses
8446
- */
8447
- getReservesList(): Promise<readonly Address$1[]>;
8448
- /**
8449
- * Get detailed data for a reserve in the pool
8450
- * @param assetAddress - The address of the asset
8451
- * @returns {Promise<ReserveDataLegacy>} - Reserve data
8452
- */
8453
- getReserveData(assetAddress: Address$1): Promise<ReserveDataLegacy>;
8454
- /**
8455
- * Get the normalized income for a reserve
8456
- * @param asset The address of the asset
8457
- * @returns {Promise<bigint>} - Normalized income
8458
- */
8459
- getReserveNormalizedIncome(asset: Address$1): Promise<bigint>;
8460
- }
8461
-
8462
- declare class UiPoolDataProviderService implements UiPoolDataProviderInterface {
8463
- private readonly hubProvider;
8464
- private readonly uiPoolDataProvider;
8465
- private readonly poolAddressesProvider;
8466
- constructor(hubProvider: EvmHubProvider);
8467
- getUserReservesHumanized(userAddress: Address$1): Promise<{
8468
- userReserves: UserReserveDataHumanized[];
8469
- userEmodeCategoryId: number;
8470
- }>;
8471
- /**
8472
- * Get the list of all eModes in the pool humanized
8473
- * @returns {Promise<EmodeDataHumanized[]>} - Array of eMode data humanized
8474
- */
8475
- getEModesHumanized(): Promise<EmodeDataHumanized[]>;
8476
- /**
8477
- * Get the list of all eModes in the pool
8478
- * @returns {Promise<readonly EModeData[]>} - Array of eMode data
8479
- */
8480
- getEModes(): Promise<readonly EModeData[]>;
8481
- /**
8482
- * Get the list of all reserves in the pool
8483
- * @param uiPoolDataProvider - The address of the UI Pool Data Provider
8484
- * @param poolAddressesProvider - The address of the Pool Addresses Provider
8485
- * @returns {Promise<readonly Address[]>} - Array of reserve addresses
8486
- */
8487
- getReservesList(): Promise<readonly Address$1[]>;
8488
- /**
8489
- * Get detailed data for all reserves in the pool
8490
- * @returns {Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>} - Tuple containing array of reserve data and base currency info
8491
- */
8492
- getReservesData(): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
8493
- /**
8494
- * Get user-specific reserve data
8495
- * @param userAddress Address of the user
8496
- * @param uiPoolDataProvider - The address of the UI Pool Data Provider
8497
- * @param poolAddressesProvider - The address of the Pool Addresses Provider
8498
- * @returns {Promise<readonly [readonly UserReserveData[], number]>} - Tuple containing array of user reserve data and eMode category ID
8499
- */
8500
- getUserReservesData(userAddress: Address$1): Promise<readonly [readonly UserReserveData[], number]>;
8501
- getReservesHumanized(): Promise<ReservesDataHumanized>;
8502
- }
8503
-
8504
8549
  /**
8505
8550
  * ABI-encode an array of ContractCall objects.
8506
8551
  * @param calls An array of ContractCall objects.
@@ -8526,6 +8571,14 @@ declare function calculatePercentageFeeAmount(amount: bigint, percentage: number
8526
8571
  * @returns {bigint} The fee amount
8527
8572
  */
8528
8573
  declare function calculateFeeAmount(inputAmount: bigint, fee: PartnerFee | undefined): bigint;
8574
+ /**
8575
+ * Adjust the amount by the fee amount based on the quote type
8576
+ * @param {bigint} amount - The amount to adjust
8577
+ * @param {PartnerFee | undefined} fee - The fee to adjust
8578
+ * @param {QuoteType} quoteType - The quote type
8579
+ * @returns {bigint} The adjusted amount
8580
+ */
8581
+ declare function adjustAmountByFee(amount: bigint, fee: PartnerFee | undefined, quoteType: QuoteType): bigint;
8529
8582
  declare function BigIntToHex(value: bigint): Hex$1;
8530
8583
  declare function encodeAddress(spokeChainId: SpokeChainId, address: string): Hex$1;
8531
8584
  /**
@@ -9645,4 +9698,4 @@ declare function isUnifiedBnUSDMigrateParams(value: unknown): value is UnifiedBn
9645
9698
  declare function isBalnMigrateParams(value: unknown): value is BalnMigrateParams;
9646
9699
  declare function isIcxCreateRevertMigrationParams(value: unknown): value is IcxCreateRevertMigrationParams;
9647
9700
 
9648
- export { type AggregatedReserveData, type AssetInfo, 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 CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, ChainIdToIntentRelayChainId, type CombinedReserveData, type ComputedUserReserve, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, 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 IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, 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 MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, 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 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 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 RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, 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, 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, SuiSpokeProvider, 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 WithdrawInfo, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, 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, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, 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, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
9701
+ export { type AggregatedReserveData, type AssetInfo, 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 CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, ChainIdToIntentRelayChainId, type CombinedReserveData, type ComputedUserReserve, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, 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 IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, 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 MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, 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 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 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 RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, 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, 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, SuiSpokeProvider, 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 WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, 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, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, 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, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };