@sodax/sdk 2.2.0-rc.1 → 2.2.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
- import { SodaxFeature, ISwapsApiV2, Result, SwapsApiConfig, SodaxLogger, GetSwapTokensResponseV2, GetSwapTokensByChainResponseV2, QuoteRequestV2, QuoteQueryV2, QuoteResponseV2, DeadlineQueryV2, DeadlineResponseV2, CreateIntentParamsV2, AllowanceCheckResponseV2, ApproveResponseV2, CreateIntentResponseV2, SubmitIntentRequestV2, SubmitIntentResponseV2, StatusRequestV2, StatusResponseV2, CancelIntentRequestV2, CancelIntentResponseV2, IntentHashRequestV2, IntentHashResponseV2, IntentPacketRequestV2, IntentPacketResponseV2, IntentExtraDataRequestV2, IntentExtraDataResponseV2, IntentStateV2, GetIntentResponseV2, CreateLimitOrderParamsV2, CreateLimitOrderResponseV2, GasEstimateRequestV2, GasEstimateResponseV2, FeeQueryV2, FeeResponseV2, SubmitTxRequestV2, SubmitTxResponseV2, SubmitTxStatusQueryV2, SubmitTxStatusResponseV2, IStellarSponsoringApi, SponsoringApiConfig, StellarSponsorConfig, StellarSponsoredAccountRequest, StellarSponsoredAccountResponse, IBridgeApiV2, BaseApiConfig, GetBridgeTokensResponseV2, GetBridgeTokensByChainResponseV2, CreateBridgeIntentParamsV2, BridgeAllowanceCheckResponseV2, BridgeApproveResponseV2, CreateBridgeIntentResponseV2, BridgeSubmitTxRequestV2, BridgeSubmitTxResponseV2, BridgeSubmitTxStatusQueryV2, BridgeSubmitTxStatusResponseV2, BridgeFeeRequestV2, BridgeFeeResponseV2, BridgeQuoteRequestV2, BridgeableAmountResponseV2, BridgeableCheckResponseV2, BitcoinBoundExtrasV2, PartnerFeeV2, IConfigApiV1, ApiConfig, Address, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, SpokeChainKey, GetSwapTokensByChainIdApiResponse, GetMoneyMarketTokensApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, AnalyticsDetailLevel, AnalyticsEventPhase, AnalyticsOption, PartnerFee, RadfiSigner, SodaxConfig, SodaxOptions, XToken, OriginalAssetAddress, IntentRelayChainId, HubChainKey, HubConfig, PoolKey, SpokeChainConfig, RelayConfig, SolverConfig, SwapsConfig, BridgeConfig, MoneyMarketConfig, LeverageYieldConfig, DexConfig, GetSpokeChainConfigType, SodaxDefaultConfig, EvmContractCall, Hex, IEvmWalletProvider, EvmRawTransactionReceipt, QuoteType, EvmChainKey, DeepPartial, WalletProviderSlot, TxReturnType, ChainType, GetChainType, SolanaRawTransactionReceipt, StellarSorobanTransactionReceipt, IconTransactionResult, SuiRawTransactionReceipt, InjectiveRawTransactionReceipt, NearRawTransactionReceipt, StacksRawTransactionReceipt, BitcoinRawTransactionReceipt, GetAddressType, HubAddress, GetTokenAddressType, EvmSpokeOnlyChainKey, StellarChainKey, HookKind, SonicChainKey, AssetInfo, TokenInfo, VaultReserves, StacksChainKey, FeeEstimateTransaction, StacksTransactionParams, HttpUrl, RadfiConfig, IBitcoinWalletProvider, RadfiDepositTxResponse, BtcAddressType, BitcoinChainKey, BitcoinRawTransaction, NearChainKey, FillData, NearRawTransaction, INearWalletProvider, SuiTransport, SuiPaginatedCoins, SuiChainKey, SuiExecutionResult, SuiGasEstimate, IStellarWalletProvider, StellarGasEstimate, SolanaChainKey, SolanaGasEstimate, SolanaBase58PublicKey, SolanaRawTransactionInstruction, SolanaSerializedTransaction, SolanaRpcResponseAndContext, SolanaTokenAmount, IconChainKey, IconGasEstimate, InjectiveChainKey, InjectiveGasEstimate, JsonObject, InjectiveCoin, InjectiveRawTransaction, IInjectiveWalletProvider, InjectiveExecuteResponse, GetEstimateGasReturnType, SuiTransaction, SuiWaitForTransactionParams, IconAddress, IWalletProvider, EvmSpokeChainConfig, PartnerFeeAmount, PartnerFeePercentage, GetWalletProviderType, SodaxLoggerOption, SubmitTxStatusDataV2, SolverIntentStatusResponse, SpokeExecActionParams, FeeAmount, Hash as Hash$1, SolverIntentQuoteRequest, SolverIntentQuoteResponse, SolverErrorResponse, SolverIntentStatusRequest, SolverExecutionRequest, SolverExecutionResponse, IconEoaAddress, IcxTokenType, IconContractAddress, BridgeLimit, UserUnstakeInfo, ConcentratedLiquidityConfig, LeverageYieldVault, SponsoringApiErrorCode } from '@sodax/types';
1
+ import { SodaxFeature, ISwapsApiV2, Result, SwapsApiConfig, SodaxLogger, GetSwapTokensResponseV2, GetSwapTokensByChainResponseV2, QuoteRequestV2, QuoteQueryV2, QuoteResponseV2, DeadlineQueryV2, DeadlineResponseV2, CreateIntentParamsV2, AllowanceCheckResponseV2, ApproveResponseV2, CreateIntentResponseV2, SubmitIntentRequestV2, SubmitIntentResponseV2, StatusRequestV2, StatusResponseV2, CancelIntentRequestV2, CancelIntentResponseV2, IntentHashRequestV2, IntentHashResponseV2, IntentPacketRequestV2, IntentPacketResponseV2, IntentExtraDataRequestV2, IntentExtraDataResponseV2, IntentStateV2, GetIntentResponseV2, CreateLimitOrderParamsV2, CreateLimitOrderResponseV2, GasEstimateRequestV2, GasEstimateResponseV2, FeeQueryV2, FeeResponseV2, SubmitTxRequestV2, SubmitTxResponseV2, SubmitTxStatusQueryV2, SubmitTxStatusResponseV2, IStellarSponsoringApi, SponsoringApiConfig, StellarSponsorConfig, StellarSponsoredAccountRequest, StellarSponsoredAccountResponse, IBridgeApiV2, BaseApiConfig, GetBridgeTokensResponseV2, GetBridgeTokensByChainResponseV2, CreateBridgeIntentParamsV2, BridgeAllowanceCheckResponseV2, BridgeApproveResponseV2, CreateBridgeIntentResponseV2, BridgeSubmitTxRequestV2, BridgeSubmitTxResponseV2, BridgeSubmitTxStatusQueryV2, BridgeSubmitTxStatusResponseV2, BridgeFeeRequestV2, BridgeFeeResponseV2, BridgeQuoteRequestV2, BridgeableAmountResponseV2, BridgeableCheckResponseV2, BitcoinBoundExtrasV2, PartnerFeeV2, ILeverageYieldApiV2, GetLeverageVaultsResponseV2, GetLeverageVaultResponseV2, VaultQueryV2, VaultAssetResponseV2, LeverageYieldPositionV2, LeverageYieldAprV2, LeverageYieldEffectiveAprV2, LeverageYieldLsdAprV2, VaultTotalAssetsResponseV2, VaultAssetsQueryV2, PreviewDepositResponseV2, PreviewWithdrawResponseV2, VaultSharesQueryV2, PreviewRedeemResponseV2, VaultOwnerQueryV2, ShareBalanceResponseV2, MaxWithdrawResponseV2, LeverageYieldDepositQuoteRequestV2, LeverageYieldWithdrawQuoteRequestV2, CreateDepositIntentParamsV2, CreateWithdrawIntentParamsV2, LeverageYieldSubmitTxRequestV2, IConfigApiV1, ApiConfig, Address, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, SpokeChainKey, GetSwapTokensByChainIdApiResponse, GetMoneyMarketTokensApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, AnalyticsDetailLevel, AnalyticsEventPhase, AnalyticsOption, PartnerFee, RadfiSigner, SodaxConfig, SodaxOptions, XToken, OriginalAssetAddress, IntentRelayChainId, HubChainKey, HubConfig, PoolKey, SpokeChainConfig, RelayConfig, SolverConfig, SwapsConfig, BridgeConfig, MoneyMarketConfig, LeverageYieldConfig, DexConfig, GetSpokeChainConfigType, SodaxDefaultConfig, EvmContractCall, Hex, IEvmWalletProvider, EvmRawTransactionReceipt, QuoteType, EvmChainKey, DeepPartial, WalletProviderSlot, TxReturnType, ChainType, GetChainType, SolanaRawTransactionReceipt, StellarSorobanTransactionReceipt, IconTransactionResult, SuiRawTransactionReceipt, InjectiveRawTransactionReceipt, NearRawTransactionReceipt, StacksRawTransactionReceipt, BitcoinRawTransactionReceipt, GetAddressType, HubAddress, GetTokenAddressType, EvmSpokeOnlyChainKey, StellarChainKey, HookKind, SonicChainKey, AssetInfo, TokenInfo, VaultReserves, StacksChainKey, FeeEstimateTransaction, StacksTransactionParams, HttpUrl, RadfiConfig, IBitcoinWalletProvider, RadfiDepositTxResponse, BtcAddressType, BitcoinChainKey, BitcoinRawTransaction, NearChainKey, FillData, NearRawTransaction, INearWalletProvider, SuiTransport, SuiPaginatedCoins, SuiChainKey, SuiExecutionResult, SuiGasEstimate, IStellarWalletProvider, StellarGasEstimate, SolanaChainKey, SolanaGasEstimate, SolanaBase58PublicKey, SolanaRawTransactionInstruction, SolanaSerializedTransaction, SolanaRpcResponseAndContext, SolanaTokenAmount, IconChainKey, IconGasEstimate, InjectiveChainKey, InjectiveGasEstimate, JsonObject, InjectiveCoin, InjectiveRawTransaction, IInjectiveWalletProvider, InjectiveExecuteResponse, GetEstimateGasReturnType, SuiTransaction, SuiWaitForTransactionParams, IconAddress, IWalletProvider, EvmSpokeChainConfig, PartnerFeeAmount, PartnerFeePercentage, GetWalletProviderType, SodaxLoggerOption, SubmitTxStatusDataV2, SolverIntentStatusResponse, SpokeExecActionParams, FeeAmount, Hash as Hash$1, SolverIntentQuoteRequest, SolverIntentQuoteResponse, SolverErrorResponse, SolverIntentStatusRequest, SolverExecutionRequest, SolverExecutionResponse, IconEoaAddress, IcxTokenType, IconContractAddress, BridgeLimit, UserUnstakeInfo, ConcentratedLiquidityConfig, LeverageYieldVault, SponsoringApiErrorCode } from '@sodax/types';
2
2
  export * from '@sodax/types';
3
3
  export { SodaxFeature } from '@sodax/types';
4
+ import * as v from 'valibot';
4
5
  import * as viem from 'viem';
5
6
  import { Hex as Hex$1, Chain, Address as Address$1, PublicClient, Hash, HttpTransport, GetLogsReturnType } from 'viem';
6
7
  import { StacksNetwork, ClarityValue } from '@sodax/libs/stacks/core';
@@ -10,13 +11,12 @@ import { Transaction, TransactionResult } from '@mysten/sui/transactions';
10
11
  import { rpc, Transaction as Transaction$1, Memo, MemoType, Operation, FeeBumpTransaction, Horizon, Account, xdr } from '@stellar/stellar-sdk';
11
12
  import { Connection as Connection$1, PublicKey, TransactionInstruction } from '@solana/web3.js';
12
13
  import { IconService } from 'icon-sdk-js';
13
- import { ChainGrpcWasmApi, TxGrpcApi } from '@injectivelabs/sdk-ts';
14
+ import { ChainGrpcWasmApi, IndexerGrpcAccountPortfolioApi, TxGrpcApi } from '@injectivelabs/sdk-ts';
14
15
  import { NetworkEndpoints } from '@injectivelabs/networks';
15
16
  import * as _coral_xyz_anchor from '@coral-xyz/anchor';
16
17
  import { AnchorProvider, Program } from '@coral-xyz/anchor';
17
18
  import { Price, Token } from '@pancakeswap/swap-sdk-core';
18
19
  import BigNumber$1 from 'bignumber.js';
19
- import * as v from 'valibot';
20
20
  export { SwapsApiError, SwapsApiErrorCode, SwapsApiErrorContext } from '@sodax/swaps-api';
21
21
 
22
22
  /**
@@ -111,7 +111,7 @@ type SodaxErrorContext = {
111
111
  srcChainKey?: string;
112
112
  dstChainKey?: string;
113
113
  relayCode?: RelayCode;
114
- api?: 'solver' | 'backend' | 'swaps' | 'sponsoring' | 'bridge';
114
+ api?: 'solver' | 'backend' | 'swaps' | 'leverageYield' | 'sponsoring' | 'bridge';
115
115
  method?: string;
116
116
  status?: number;
117
117
  nextAction?: string;
@@ -7903,6 +7903,314 @@ declare class BridgeApiService implements ResultifiedBridgeApiV2 {
7903
7903
  getTimeout(): number;
7904
7904
  }
7905
7905
 
7906
+ /**
7907
+ * {@link ILeverageYieldApiV2} with every method's return wrapped in `Result<T>` and an
7908
+ * optional trailing `RequestOverrideConfig`. `LeverageYieldApiService` implements this
7909
+ * (rather than `ILeverageYieldApiV2` directly) because it never throws — it returns
7910
+ * `{ ok: false }` on failure instead of `Promise<T>` rejection. Mirrors
7911
+ * `ResultifiedSwapsApiV2`; keeps the class in lockstep with the canonical interface.
7912
+ */
7913
+ type ResultifiedLeverageYieldApiV2 = {
7914
+ [K in keyof ILeverageYieldApiV2]: ILeverageYieldApiV2[K] extends (...args: infer A) => Promise<infer R> ? (...args: [...A, config?: RequestOverrideConfig]) => Promise<Result<R>> : never;
7915
+ };
7916
+ /**
7917
+ * HTTP client for the backend **Leverage Yield API v2** (`/leverage-yield/*`).
7918
+ *
7919
+ * The leverage-yield counterpart to {@link import('./SwapsApiService.js').SwapsApiService}:
7920
+ * one method per route of {@link ILeverageYieldApiV2}, each response validated at runtime
7921
+ * with a valibot schema (see `leverageYieldApiSchemas.ts`). A leverage-yield deposit/withdraw
7922
+ * IS an intent-based swap, so the intent-relay/gas/fee/submit-tx methods share the swaps wire
7923
+ * shapes and schemas; the vault registry, vault reads, and separate deposit/withdraw
7924
+ * create-intent (and quote) endpoints are leverage-yield-specific.
7925
+ *
7926
+ * All public methods return `Promise<Result<T>>` — they never throw. On network failure,
7927
+ * timeout, non-2xx HTTP response, or response-shape validation failure, the returned Result
7928
+ * has `ok: false` with a canonical `SodaxError<'EXTERNAL_API_ERROR'>` (`feature: 'backend'`,
7929
+ * `context.api: 'leverageYield'`); the underlying failure is preserved on `error.cause`.
7930
+ *
7931
+ * Per-call request overrides (base URL, timeout, headers, API key) can be passed as the optional
7932
+ * last argument to any method via `RequestOverrideConfig`.
7933
+ *
7934
+ * The Leverage Yield API hangs off the shared gateway root as `/leverage-yield/*` — a sibling of the
7935
+ * data API's `/be` mount, not a child of it, so `resolveLeverageYieldApiConfig` returns a flat
7936
+ * {@link BaseApiConfig} with no `basePath`. There is deliberately no `leverageYieldApiConfig` slice:
7937
+ * retarget it via `baseURL` / `baseApiConfig`, or per call.
7938
+ *
7939
+ * Reachable on the Sodax facade as `sodax.api.leverageYield`.
7940
+ */
7941
+ /** Construction options for {@link LeverageYieldApiService}. */
7942
+ type LeverageYieldApiServiceOptions = {
7943
+ /**
7944
+ * Whether a legacy `/be` suffix is trimmed off a per-call `baseURL` override. Defaults to `true`, the
7945
+ * migration behaviour. `BackendApiService` passes `false` when the `ApiConfig` states a `basePath`
7946
+ * explicitly: that marks a config written against the current contract, whose base URLs are deliberate
7947
+ * roots, so a trailing `/be` is a real path segment rather than the data API's mount.
7948
+ */
7949
+ trimLegacyOverrides?: boolean;
7950
+ };
7951
+ declare class LeverageYieldApiService implements ResultifiedLeverageYieldApiV2 {
7952
+ private readonly config;
7953
+ private readonly headers;
7954
+ private readonly logger;
7955
+ /** See {@link LeverageYieldApiServiceOptions.trimLegacyOverrides}. */
7956
+ private readonly trimsLegacyOverrides;
7957
+ constructor(config: BaseApiConfig, logger?: SodaxLogger, options?: LeverageYieldApiServiceOptions);
7958
+ /**
7959
+ * Issues a single HTTP request, validates the JSON body against `schema`, and wraps the
7960
+ * result in `Result<T>`. Mirrors `SwapsApiService.request`; every public method delegates here.
7961
+ */
7962
+ private request;
7963
+ /**
7964
+ * Drop the SDK-only display field `feeAmount` before an intent reaches the strict wire serializer.
7965
+ * `sodax.leverageYield.createVaultIntent` returns `Intent & FeeAmount`, which is structurally
7966
+ * assignable to the wire `IntentRequestV2` and so gets passed straight into the intent-carrying
7967
+ * endpoints; the lenient JSON serializer would send the extra bigint wholesale. Mirrors
7968
+ * `SwapsApiService.toWireIntent`; a no-op for an already-clean `IntentRequestV2`.
7969
+ */
7970
+ private static toWireIntent;
7971
+ /** Append `params` to `base` as a query string, returning `base` unchanged when `params` is empty. */
7972
+ private withQuery;
7973
+ /**
7974
+ * Fetch the registry of deployed leverage-yield vaults.
7975
+ *
7976
+ * @returns `Result<GetLeverageVaultsResponseV2>` — array of vault descriptors.
7977
+ */
7978
+ getVaults(config?: RequestOverrideConfig): Promise<Result<GetLeverageVaultsResponseV2>>;
7979
+ /**
7980
+ * Fetch a single vault descriptor by its lsoda* share-token name (e.g. `lsodaWEETH`).
7981
+ *
7982
+ * @returns `Result<GetLeverageVaultResponseV2>` — the vault descriptor.
7983
+ */
7984
+ getVault(name: string, config?: RequestOverrideConfig): Promise<Result<GetLeverageVaultResponseV2>>;
7985
+ /**
7986
+ * Get the vault's underlying hub asset (Sodax vault-token wrapper).
7987
+ *
7988
+ * @returns `Result<VaultAssetResponseV2>` — `{ asset }`.
7989
+ */
7990
+ getAsset(query: VaultQueryV2, config?: RequestOverrideConfig): Promise<Result<VaultAssetResponseV2>>;
7991
+ /**
7992
+ * Get a leveraged-position snapshot for the vault.
7993
+ *
7994
+ * @returns `Result<LeverageYieldPositionV2>` — `{ collateral, debt, ltv, healthFactor, idleAsset }` (decimal strings).
7995
+ */
7996
+ getPosition(query: VaultQueryV2, config?: RequestOverrideConfig): Promise<Result<LeverageYieldPositionV2>>;
7997
+ /**
7998
+ * Get the AAVE-only steady-state APR for the vault (goes negative when the LSD yield is the alpha).
7999
+ *
8000
+ * @returns `Result<LeverageYieldAprV2>` — RAY-denominated rates as decimal strings.
8001
+ */
8002
+ getApr(query: VaultQueryV2, config?: RequestOverrideConfig): Promise<Result<LeverageYieldAprV2>>;
8003
+ /**
8004
+ * Get the honest combined AAVE + LSD effective APR for the vault.
8005
+ *
8006
+ * @returns `Result<LeverageYieldEffectiveAprV2>` — includes `effectiveNetAprRay` (the headline number).
8007
+ */
8008
+ getEffectiveApr(query: VaultQueryV2, config?: RequestOverrideConfig): Promise<Result<LeverageYieldEffectiveAprV2>>;
8009
+ /**
8010
+ * Get the off-chain LSD staking-APR snapshot for the vault's underlying asset.
8011
+ *
8012
+ * @returns `Result<LeverageYieldLsdAprV2>` — `{ aprRay, label, stale }`.
8013
+ */
8014
+ getLsdApr(query: VaultQueryV2, config?: RequestOverrideConfig): Promise<Result<LeverageYieldLsdAprV2>>;
8015
+ /**
8016
+ * Get the total assets managed by the vault.
8017
+ *
8018
+ * @returns `Result<VaultTotalAssetsResponseV2>` — `{ totalAssets }` (decimal string).
8019
+ */
8020
+ getTotalAssets(query: VaultQueryV2, config?: RequestOverrideConfig): Promise<Result<VaultTotalAssetsResponseV2>>;
8021
+ /**
8022
+ * Preview the shares minted for depositing `assets` into the vault (ERC-4626 `previewDeposit`).
8023
+ *
8024
+ * @returns `Result<PreviewDepositResponseV2>` — `{ shares }` (decimal string).
8025
+ */
8026
+ previewDeposit(query: VaultAssetsQueryV2, config?: RequestOverrideConfig): Promise<Result<PreviewDepositResponseV2>>;
8027
+ /**
8028
+ * Preview the shares burned to withdraw `assets` from the vault (ERC-4626 `previewWithdraw`).
8029
+ *
8030
+ * @returns `Result<PreviewWithdrawResponseV2>` — `{ shares }` (decimal string).
8031
+ */
8032
+ previewWithdraw(query: VaultAssetsQueryV2, config?: RequestOverrideConfig): Promise<Result<PreviewWithdrawResponseV2>>;
8033
+ /**
8034
+ * Preview the assets returned for redeeming `shares` from the vault (ERC-4626 `previewRedeem`).
8035
+ *
8036
+ * @returns `Result<PreviewRedeemResponseV2>` — `{ assets }` (decimal string).
8037
+ */
8038
+ previewRedeem(query: VaultSharesQueryV2, config?: RequestOverrideConfig): Promise<Result<PreviewRedeemResponseV2>>;
8039
+ /**
8040
+ * Get an owner's vault share (lsoda*) balance.
8041
+ *
8042
+ * @returns `Result<ShareBalanceResponseV2>` — `{ balance }` (decimal string).
8043
+ */
8044
+ getShareBalance(query: VaultOwnerQueryV2, config?: RequestOverrideConfig): Promise<Result<ShareBalanceResponseV2>>;
8045
+ /**
8046
+ * Get an owner's RAW ERC-4626 `maxWithdraw` — NOT dust-trimmed, unlike the SDK-local
8047
+ * `sodax.leverageYield.getMaxWithdrawForUser`. Apply a margin before using it as a withdraw amount.
8048
+ *
8049
+ * @returns `Result<MaxWithdrawResponseV2>` — `{ maxWithdraw }` (decimal string).
8050
+ */
8051
+ getMaxWithdraw(query: VaultOwnerQueryV2, config?: RequestOverrideConfig): Promise<Result<MaxWithdrawResponseV2>>;
8052
+ /**
8053
+ * Quote a swap-style deposit: any solver-supported `tokenSrc` → the vault's lsoda* shares.
8054
+ * Pass `query.includeTxData = true` to also build the unsigned create-intent tx (`srcAddress`
8055
+ * required in the body then).
8056
+ *
8057
+ * @returns `Result<QuoteResponseV2>` — `quotedAmount` (shares) and optional `txData`.
8058
+ */
8059
+ getDepositQuote(body: LeverageYieldDepositQuoteRequestV2, query?: QuoteQueryV2, config?: RequestOverrideConfig): Promise<Result<QuoteResponseV2>>;
8060
+ /**
8061
+ * Quote a swap-style withdraw: the vault's lsoda* shares → any solver-supported `tokenDst`.
8062
+ * Pass `query.includeTxData = true` to also build the unsigned tx (signed on `srcChainKey`;
8063
+ * `srcAddress`/`dstAddress` required in the body then).
8064
+ *
8065
+ * @returns `Result<QuoteResponseV2>` — `quotedAmount` (output token) and optional `txData`.
8066
+ */
8067
+ getWithdrawQuote(body: LeverageYieldWithdrawQuoteRequestV2, query?: QuoteQueryV2, config?: RequestOverrideConfig): Promise<Result<QuoteResponseV2>>;
8068
+ /**
8069
+ * Compute a deposit/withdraw deadline (hub timestamp + `offsetSeconds`, default 300s).
8070
+ *
8071
+ * @returns `Result<DeadlineResponseV2>` — unix-seconds deadline (decimal string).
8072
+ */
8073
+ getDeadline(query?: DeadlineQueryV2, config?: RequestOverrideConfig): Promise<Result<DeadlineResponseV2>>;
8074
+ /**
8075
+ * Check whether the deposit input-token allowance is already sufficient for the intent.
8076
+ * (Withdraw needs no spoke allowance — it spends lsoda* from the hub wallet.)
8077
+ *
8078
+ * @returns `Result<AllowanceCheckResponseV2>` — `{ valid }`.
8079
+ */
8080
+ checkAllowance(body: CreateDepositIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<AllowanceCheckResponseV2>>;
8081
+ /**
8082
+ * Build an unsigned token-approval transaction for the deposit input token.
8083
+ *
8084
+ * @returns `Result<ApproveResponseV2>` — `{ tx }` (chain-specific unsigned tx).
8085
+ */
8086
+ approve(body: CreateDepositIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<ApproveResponseV2>>;
8087
+ /**
8088
+ * Build an unsigned deposit create-intent transaction (any token → lsoda* shares).
8089
+ *
8090
+ * @returns `Result<CreateIntentResponseV2>` — `{ tx, intent, relayData }`.
8091
+ */
8092
+ createDepositIntent(body: CreateDepositIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<CreateIntentResponseV2>>;
8093
+ /**
8094
+ * Build an unsigned withdraw create-intent transaction (lsoda* shares → any token). The backend
8095
+ * sets `hubWalletSwap` internally so the swap spends the lsoda* held in the user's hub wallet.
8096
+ *
8097
+ * @returns `Result<CreateIntentResponseV2>` — `{ tx, intent, relayData }`.
8098
+ */
8099
+ createWithdrawIntent(body: CreateWithdrawIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<CreateIntentResponseV2>>;
8100
+ /**
8101
+ * Submit the broadcast intent tx to the relay.
8102
+ *
8103
+ * @returns `Result<SubmitIntentResponseV2>` — `{ result }` (opaque relay response).
8104
+ */
8105
+ submitIntent(body: SubmitIntentRequestV2, config?: RequestOverrideConfig): Promise<Result<SubmitIntentResponseV2>>;
8106
+ /**
8107
+ * Poll the solver for intent execution status.
8108
+ *
8109
+ * @returns `Result<StatusResponseV2>` — `{ status, fillTxHash? }`.
8110
+ */
8111
+ getStatus(body: StatusRequestV2, config?: RequestOverrideConfig): Promise<Result<StatusResponseV2>>;
8112
+ /**
8113
+ * Build an unsigned cancel-intent transaction. The `intent` field carries `bigint` numerics —
8114
+ * {@link toJsonBody} serializes them to decimal strings.
8115
+ *
8116
+ * @returns `Result<CancelIntentResponseV2>` — `{ tx }`.
8117
+ */
8118
+ cancelIntent(body: CancelIntentRequestV2, config?: RequestOverrideConfig): Promise<Result<CancelIntentResponseV2>>;
8119
+ /**
8120
+ * Compute the keccak256 hash of an Intent struct. The `intent` field carries `bigint` numerics.
8121
+ *
8122
+ * @returns `Result<IntentHashResponseV2>` — `{ hash }`.
8123
+ */
8124
+ getIntentHash(body: IntentHashRequestV2, config?: RequestOverrideConfig): Promise<Result<IntentHashResponseV2>>;
8125
+ /**
8126
+ * Long-poll the relayer until the fill packet lands on the destination chain.
8127
+ *
8128
+ * @returns `Result<IntentPacketResponseV2>` — delivered packet data.
8129
+ */
8130
+ getSolvedIntentPacket(body: IntentPacketRequestV2, config?: RequestOverrideConfig): Promise<Result<IntentPacketResponseV2>>;
8131
+ /**
8132
+ * Recover the relay extra data needed by `/leverage-yield/intents/submit`. Provide EITHER
8133
+ * `txHash` OR `intent` (whose `bigint` numerics {@link toJsonBody} serializes).
8134
+ *
8135
+ * @returns `Result<IntentExtraDataResponseV2>` — `{ address, payload }`.
8136
+ */
8137
+ getIntentSubmitTxExtraData(body: IntentExtraDataRequestV2, config?: RequestOverrideConfig): Promise<Result<IntentExtraDataResponseV2>>;
8138
+ /**
8139
+ * Get the on-chain fill state for an intent by its hub-chain tx hash.
8140
+ *
8141
+ * @returns `Result<IntentStateV2>` — `{ exists, remainingInput, receivedOutput, pendingPayment }`.
8142
+ */
8143
+ getFilledIntent(txHash: string, config?: RequestOverrideConfig): Promise<Result<IntentStateV2>>;
8144
+ /**
8145
+ * Look up an Intent struct by its hub-chain creation tx hash.
8146
+ *
8147
+ * @returns `Result<GetIntentResponseV2>` — the decoded intent (bigint fields as decimal strings).
8148
+ */
8149
+ getIntent(txHash: string, config?: RequestOverrideConfig): Promise<Result<GetIntentResponseV2>>;
8150
+ /**
8151
+ * Estimate gas for a raw transaction on a spoke chain.
8152
+ *
8153
+ * @returns `Result<GasEstimateResponseV2>` — `{ gas }` (chain-specific shape).
8154
+ */
8155
+ estimateGas(body: GasEstimateRequestV2, config?: RequestOverrideConfig): Promise<Result<GasEstimateResponseV2>>;
8156
+ /**
8157
+ * Compute the partner fee for a given input amount.
8158
+ *
8159
+ * @returns `Result<FeeResponseV2>` — `{ fee }` (decimal string).
8160
+ */
8161
+ getPartnerFee(query: FeeQueryV2, config?: RequestOverrideConfig): Promise<Result<FeeResponseV2>>;
8162
+ /**
8163
+ * Compute the protocol (solver) fee for a given input amount.
8164
+ *
8165
+ * @returns `Result<FeeResponseV2>` — `{ fee }` (decimal string).
8166
+ */
8167
+ getSolverFee(query: FeeQueryV2, config?: RequestOverrideConfig): Promise<Result<FeeResponseV2>>;
8168
+ /**
8169
+ * Submit a vault-swap transaction to be processed (relay, post-execution, etc.). The `intent`
8170
+ * field carries `bigint` numerics — {@link toJsonBody} serializes them. Idempotent on
8171
+ * `(txHash, srcChainKey)`.
8172
+ *
8173
+ * @returns `Result<SubmitTxResponseV2>` — `{ success, data: { status, message } }`.
8174
+ */
8175
+ submitTx(body: LeverageYieldSubmitTxRequestV2, config?: RequestOverrideConfig): Promise<Result<SubmitTxResponseV2>>;
8176
+ /**
8177
+ * Get the processing status of a submitted vault-swap transaction by `(txHash, srcChainKey)`.
8178
+ *
8179
+ * @returns `Result<SubmitTxStatusResponseV2>` — `{ success, data }` (processing state).
8180
+ */
8181
+ getSubmitTxStatus(query: SubmitTxStatusQueryV2, config?: RequestOverrideConfig): Promise<Result<SubmitTxStatusResponseV2>>;
8182
+ /**
8183
+ * Merge additional headers into the service's default header set. Existing keys are
8184
+ * overwritten; keys absent from `headers` are preserved.
8185
+ */
8186
+ setHeaders(headers: Record<string, string>): void;
8187
+ /** Return the base URL the service is currently pointing at. */
8188
+ getBaseURL(): string;
8189
+ /**
8190
+ * Return the effective per-request timeout (ms).
8191
+ *
8192
+ * Callers bounding a request tighter than this need it as the CEILING, because a
8193
+ * `RequestOverrideConfig.timeout` REPLACES the service value rather than lowering it: an override
8194
+ * derived from a caller budget alone would raise the bound whenever that budget is the larger of the
8195
+ * two. `SubmitTxAttempt.requestTimeout` clamps against both (`min(budget left in the attempt, this)`).
8196
+ */
8197
+ getTimeout(): number;
8198
+ }
8199
+
8200
+ /** An `intent-filled` entry in `IntentResponse.events`. Narrow with `isFillEvent`. */
8201
+ declare const FillEventSchema: v.ObjectSchema<{
8202
+ readonly eventType: v.LiteralSchema<"intent-filled", undefined>;
8203
+ readonly txHash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
8204
+ readonly intentState: v.ObjectSchema<{
8205
+ readonly remainingInput: v.StringSchema<undefined>;
8206
+ }, undefined>;
8207
+ }, undefined>;
8208
+ /**
8209
+ * Candle bucket sizes the oracle serves (60s / 300s / 3600s / 86400s). Runtime source of truth for
8210
+ * the public `OracleCandleInterval` union, which is derived from it in `BackendApiService.ts`.
8211
+ */
8212
+ declare const ORACLE_CANDLE_INTERVALS: readonly ["1m", "5m", "1h", "1d"];
8213
+
7906
8214
  /** Full details of a single swap intent as stored and returned by the backend. */
7907
8215
  interface IntentResponse {
7908
8216
  intentHash: string;
@@ -8022,6 +8330,45 @@ interface MoneyMarketBorrowers {
8022
8330
  offset: number;
8023
8331
  limit: number;
8024
8332
  }
8333
+ /** Interval keys accepted by the oracle candles endpoint (bucket sizes 60s / 300s / 3600s / 86400s). */
8334
+ type OracleCandleInterval = (typeof ORACLE_CANDLE_INTERVALS)[number];
8335
+ /** One selectable candle interval in the oracle markets discovery payload. */
8336
+ interface OracleMarketInterval {
8337
+ /**
8338
+ * Interval id for {@link BackendApiService.getOracleCandles}. Typed `string`, not
8339
+ * `OracleCandleInterval`: discovery must survive the backend adding an interval this SDK version
8340
+ * does not know, so membership-test against `ORACLE_CANDLE_INTERVALS` before passing it on.
8341
+ */
8342
+ key: string;
8343
+ label: string;
8344
+ seconds: number;
8345
+ }
8346
+ /** Discovery payload for the oracle candle store: quote currency, selectable intervals, and covered symbols. */
8347
+ interface OracleMarketsResponse {
8348
+ quote: string;
8349
+ intervals: OracleMarketInterval[];
8350
+ symbols: string[];
8351
+ }
8352
+ /**
8353
+ * One USD OHLC bucket. `timestamp` is the bucket START in UNIX seconds; prices are USD decimal
8354
+ * strings. Treat `final === false` as "still forming" — the backend sends it only on the current
8355
+ * bucket and omits it on closed ones, so absent (or `true`) means closed.
8356
+ */
8357
+ interface OracleCandle {
8358
+ timestamp: number;
8359
+ open: string;
8360
+ high: string;
8361
+ low: string;
8362
+ close: string;
8363
+ final?: boolean;
8364
+ }
8365
+ /** GET /oracle/candles response: the echoed query dimensions plus oldest-first candles (no volume field). */
8366
+ interface OracleCandlesResponse {
8367
+ symbol: string;
8368
+ quote: string;
8369
+ interval: OracleCandleInterval;
8370
+ candles: OracleCandle[];
8371
+ }
8025
8372
  /** Construction options for {@link BackendApiService}. */
8026
8373
  type BackendApiServiceOptions = {
8027
8374
  /**
@@ -8043,6 +8390,7 @@ type BackendApiServiceOptions = {
8043
8390
  * - **Solver orderbook** — read open intents waiting to be filled.
8044
8391
  * - **Money market** — query per-user positions, per-reserve asset stats,
8045
8392
  * and paginated borrower/supplier lists.
8393
+ * - **Oracle** — USD OHLC candle discovery and reads for charting.
8046
8394
  *
8047
8395
  * All public methods return `Promise<Result<T>>` — they never throw. On network
8048
8396
  * failure, timeout, non-2xx HTTP response, or unexpected response shape the
@@ -8057,6 +8405,7 @@ declare class BackendApiService implements IConfigApiV1 {
8057
8405
  readonly swaps: SwapsApiService;
8058
8406
  readonly sponsoring: SponsoringApiService;
8059
8407
  readonly bridge: BridgeApiService;
8408
+ readonly leverageYield: LeverageYieldApiService;
8060
8409
  private readonly config;
8061
8410
  private readonly headers;
8062
8411
  private readonly logger;
@@ -8219,6 +8568,39 @@ declare class BackendApiService implements IConfigApiV1 {
8219
8568
  offset: string;
8220
8569
  limit: string;
8221
8570
  }, config?: RequestOverrideConfig): Promise<Result<MoneyMarketBorrowers>>;
8571
+ /**
8572
+ * Fetch the oracle candle store's discovery payload: the quote currency (currently always
8573
+ * `"USD"`), the selectable candle intervals, and the canonical symbols that have candle data.
8574
+ *
8575
+ * Use this to populate a symbol picker and interval switcher before calling
8576
+ * {@link getOracleCandles}.
8577
+ *
8578
+ * @returns `Result<OracleMarketsResponse>` — on success, `{ quote, intervals, symbols }`.
8579
+ */
8580
+ getOracleMarkets(config?: RequestOverrideConfig): Promise<Result<OracleMarketsResponse>>;
8581
+ /**
8582
+ * Fetch USD OHLC candles for a symbol over the half-open time range `[from, to)`.
8583
+ *
8584
+ * `from` and `to` are UNIX **seconds** (integers); `to` is exclusive and must exceed `from`,
8585
+ * and the range may cover at most 5000 buckets of the requested interval (invalid or wider
8586
+ * ranges fail with HTTP 400). A valid range with no stored candles resolves `ok` with
8587
+ * `candles: []`; an unknown symbol currently does the same rather than returning 404. The last
8588
+ * candle may still be forming; re-poll while its `final === false`.
8589
+ * Responses are cached server-side for roughly 10 seconds per distinct URL.
8590
+ *
8591
+ * @param params.symbol - Canonical symbol, exact case, from {@link getOracleMarkets} (e.g. `"ETH"`).
8592
+ * @param params.interval - Candle bucket size: `'1m' | '5m' | '1h' | '1d'`.
8593
+ * @param params.from - Range start, UNIX seconds, inclusive.
8594
+ * @param params.to - Range end, UNIX seconds, exclusive.
8595
+ * @returns `Result<OracleCandlesResponse>` — on success, the echoed query dimensions and
8596
+ * oldest-first candles with USD decimal-string prices (no volume field).
8597
+ */
8598
+ getOracleCandles(params: {
8599
+ symbol: string;
8600
+ interval: OracleCandleInterval;
8601
+ from: number;
8602
+ to: number;
8603
+ }, config?: RequestOverrideConfig): Promise<Result<OracleCandlesResponse>>;
8222
8604
  /**
8223
8605
  * Fetch the complete SODAX runtime configuration in a single request.
8224
8606
  *
@@ -8325,9 +8707,10 @@ declare class BackendApiService implements IConfigApiV1 {
8325
8707
  * without constructing a new service instance. Existing header keys are
8326
8708
  * overwritten; keys absent from `headers` are preserved.
8327
8709
  *
8328
- * Headers also reach `swaps` and `bridge`, but never `sponsoring`: it is configured independently, so
8329
- * base-API credentials must not be forwarded to whatever origin it points at. Note `swaps` can also be
8330
- * retargeted to another origin via `swapsApiConfig`, in which case a header set here follows it.
8710
+ * Headers also reach `swaps`, `bridge` and `leverageYield`, but never `sponsoring`: it is configured
8711
+ * independently, so base-API credentials must not be forwarded to whatever origin it points at. Note
8712
+ * `swaps` can also be retargeted to another origin via `swapsApiConfig`, in which case a header set
8713
+ * here follows it.
8331
8714
  *
8332
8715
  * @param headers - Key-value pairs to add or overwrite in the default headers.
8333
8716
  */
@@ -8553,6 +8936,7 @@ declare class ConfigService {
8553
8936
  get leverageYieldPartnerFee(): PartnerFee | undefined;
8554
8937
  get swapUseBackendSubmitTx(): boolean;
8555
8938
  get bridgeUseBackendSubmitTx(): boolean;
8939
+ get leverageYieldUseBackendSubmitTx(): boolean;
8556
8940
  get dex(): DexConfig;
8557
8941
  getChainConfig<K extends SpokeChainKey>(key: K): GetSpokeChainConfigType<K>;
8558
8942
  get sodaxConfig(): SodaxConfig;
@@ -8629,6 +9013,13 @@ declare function calculateFeeAmount(inputAmount: bigint, fee: PartnerFee | undef
8629
9013
  declare function adjustAmountByFee(amount: bigint, fee: PartnerFee | undefined, quoteType: QuoteType): bigint;
8630
9014
  declare function BigIntToHex(value: bigint): Hex;
8631
9015
  declare function encodeAddress(spokeChainId: SpokeChainKey, address: string): Hex;
9016
+ /**
9017
+ * Encode a chain-native TOKEN IDENTIFIER for hub-side encoding. On BITCOIN/NEAR/INJECTIVE these are
9018
+ * not addresses ('0:0', '897442:43', 'inj', 'factory/…', 'NEAR') — utf-8 identifier semantics, so
9019
+ * they must not hit {@link encodeAddress}'s recipient validators. Every other family's token IS an
9020
+ * address and keeps the validated path.
9021
+ */
9022
+ declare function encodeTokenIdentifier(spokeChainId: SpokeChainKey, token: string): Hex;
8632
9023
  /**
8633
9024
  * Decode a hub-style hex address produced by {@link encodeAddress} back to the chain-native string form.
8634
9025
  */
@@ -8732,6 +9123,7 @@ type Erc20ApproveParams<Raw extends boolean> = {
8732
9123
  amount: bigint;
8733
9124
  from: Address$1;
8734
9125
  spender: Address$1;
9126
+ expectedChainId?: number;
8735
9127
  } & WalletProviderSlot<EvmChainKey, Raw>;
8736
9128
  type Erc20IsAllowanceParams<ChainKey extends EvmChainKey> = {
8737
9129
  token: Address$1;
@@ -8868,6 +9260,50 @@ type GetDepositParams<ChainKey extends SpokeChainKey = SpokeChainKey> = {
8868
9260
  srcAddress: GetAddressType<ChainKey>;
8869
9261
  token: GetTokenAddressType<ChainKey>;
8870
9262
  };
9263
+ /**
9264
+ * Parameters for reading a user's own wallet balance of a single token on a spoke chain.
9265
+ *
9266
+ * Unlike {@link GetDepositParams} (which reads the protocol asset-manager holding and keys
9267
+ * the token by raw address), this reads the balance held by `srcAddress` itself. `token` is
9268
+ * the full {@link XToken} so the reader can detect the native coin and resolve chain-specific
9269
+ * token identifiers (EVM erc20 address, Solana mint, Sui coinType, Soroban contract, …).
9270
+ *
9271
+ * The reader picks its RPC provider from `srcChainKey` and the on-chain identifier from
9272
+ * `token.address`; it never consults `token.chainKey`. Passing a token that does not live on
9273
+ * `srcChainKey` therefore reads the wrong chain and — on an EVM target — resolves to `0n` rather
9274
+ * than an error, so keep the chain key and the token list in step. This is NOT enforced: a few
9275
+ * config entries carry a `chainKey` that disagrees with where the address actually lives, so the
9276
+ * field is not reliable enough to validate against.
9277
+ *
9278
+ * Failure contract: this single-token read REJECTS on a network, RPC, or contract-read failure, and
9279
+ * the router turns that into an unsuccessful `Result`. The batch variant is deliberately more
9280
+ * forgiving — see {@link GetBalancesParams}.
9281
+ */
9282
+ type GetBalanceParams<ChainKey extends SpokeChainKey = SpokeChainKey> = {
9283
+ srcChainKey: ChainKey;
9284
+ srcAddress: GetAddressType<ChainKey>;
9285
+ token: XToken;
9286
+ };
9287
+ /**
9288
+ * Parameters for reading a user's own wallet balances of multiple tokens on a spoke chain.
9289
+ * Per-chain implementations batch the reads where the chain supports it (EVM multicall3, ICON
9290
+ * `tryAggregate`, Injective portfolio).
9291
+ *
9292
+ * Returns `Record<tokenAddress, bigint>` in smallest units. A token that could not be read is logged
9293
+ * through the SDK logger and reported as `0n`, so one flaky token never discards the balances that
9294
+ * did resolve. Callers therefore cannot tell a failed read from an empty wallet; the direction is
9295
+ * deliberately conservative — under-reporting blocks a spend, it never permits one.
9296
+ *
9297
+ * The `Result` fails when the whole batch is unusable: an invalid chain key, a shared round-trip
9298
+ * every token depends on (ICON `tryAggregate`, Injective's portfolio fetch), or a batch in which NO
9299
+ * token could be read — a dead or rate-limited RPC would otherwise render as "this wallet is empty
9300
+ * on every asset".
9301
+ */
9302
+ type GetBalancesParams<ChainKey extends SpokeChainKey = SpokeChainKey> = {
9303
+ srcChainKey: ChainKey;
9304
+ srcAddress: GetAddressType<ChainKey>;
9305
+ tokens: readonly XToken[];
9306
+ };
8871
9307
  type DepositSimulationParams = {
8872
9308
  spokeChainID: SpokeChainKey;
8873
9309
  token: Hex;
@@ -8981,6 +9417,38 @@ type RawDestinationParams = {
8981
9417
  dstAddress: string;
8982
9418
  };
8983
9419
 
9420
+ /** A wallet balance map in smallest units, keyed by `token.address`. */
9421
+ type WalletBalanceMap = Record<string, bigint>;
9422
+ type BalanceReadContext = {
9423
+ readonly logger: SodaxLogger;
9424
+ readonly chainKey: SpokeChainKey;
9425
+ };
9426
+ /**
9427
+ * Accumulates a chain's per-token balance reads.
9428
+ *
9429
+ * A token that could not be read resolves to `0n` — the same value an empty wallet produces — so
9430
+ * every failure is logged through the SDK logger, which is where an integrator's error sink is
9431
+ * wired. That keeps one flaky token from discarding the balances that did resolve, but it means a
9432
+ * caller cannot tell the two apart; {@link BalanceCollector.finish} therefore refuses the one case
9433
+ * where the distinction is unmistakable and dangerous: an entire batch that read nothing at all
9434
+ * (a dead or rate-limited RPC) would otherwise render as "this wallet is empty on every asset".
9435
+ */
9436
+ interface BalanceCollector {
9437
+ /** Record a balance that was actually read — including a genuine on-chain zero. */
9438
+ ok(tokenAddress: string, value: bigint): void;
9439
+ /** Record a failed read: logs the cause and falls back to `0n`. */
9440
+ fail(tokenAddress: string, reason: unknown): void;
9441
+ /** Return the map, or throw when a non-empty batch produced no successful read. */
9442
+ finish(): WalletBalanceMap;
9443
+ }
9444
+ declare function createBalanceCollector({ logger, chainKey }: BalanceReadContext): BalanceCollector;
9445
+ /**
9446
+ * Read every token independently into `collector`, so one failing token never discards the rest.
9447
+ * Chains with a native batch call (EVM multicall3, ICON `tryAggregate`, Injective portfolio) feed
9448
+ * the collector directly instead of using this.
9449
+ */
9450
+ declare function settleWalletBalances(collector: BalanceCollector, tokens: readonly XToken[], read: (token: XToken) => Promise<bigint>): Promise<void>;
9451
+
8984
9452
  /**
8985
9453
  * High-level request for routing an intent's output through a deployed delivery hook. Pick a hook by
8986
9454
  * its {@link HookKind}; the SDK resolves the hook's deployed address and encodes the payload it expects
@@ -9173,6 +9641,21 @@ declare class SonicSpokeService {
9173
9641
  * @returns {Promise<bigint>} The balance of the token.
9174
9642
  */
9175
9643
  getDeposit(params: GetDepositParams<SonicChainKey>): Promise<bigint>;
9644
+ /**
9645
+ * Get the user's own wallet balance of a token on the hub (Sonic) chain, in smallest units.
9646
+ * Native coin via `eth_getBalance`; erc20 via `balanceOf`.
9647
+ * @param {GetBalanceParams<SonicChainKey>} params - The chain key, user address, and token.
9648
+ * @returns {Promise<bigint>} The token balance in smallest units.
9649
+ */
9650
+ getWalletBalance(params: GetBalanceParams<SonicChainKey>): Promise<bigint>;
9651
+ /**
9652
+ * Get the user's own wallet balances of multiple tokens on the hub (Sonic) chain, in smallest
9653
+ * units. Non-native tokens are batched via multicall3 when the chain supports it, otherwise
9654
+ * read in parallel.
9655
+ * @param {GetBalancesParams<SonicChainKey>} params - The chain key, user address, and tokens.
9656
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
9657
+ */
9658
+ getWalletBalances(params: GetBalancesParams<SonicChainKey>): Promise<WalletBalanceMap>;
9176
9659
  /**
9177
9660
  * Execute a batch of contract calls through the Sonic wallet contract.
9178
9661
  * @param {Hex} payload - The encoded payload containing the calls array
@@ -9422,6 +9905,21 @@ declare class EvmSpokeService {
9422
9905
  * @returns {Promise<bigint>} The balance of the token deposited in the spoke chain asset manager.
9423
9906
  */
9424
9907
  getDeposit(params: GetDepositParams<EvmSpokeOnlyChainKey>): Promise<bigint>;
9908
+ /**
9909
+ * Get the user's own wallet balance of a token on an EVM spoke chain, in smallest units.
9910
+ * Native coin via `eth_getBalance` (Hedera scaled to canonical decimals); erc20 via `balanceOf`.
9911
+ * @param {GetBalanceParams<EvmSpokeOnlyChainKey>} params - The chain key, user address, and token.
9912
+ * @returns {Promise<bigint>} The token balance in smallest units.
9913
+ */
9914
+ getWalletBalance(params: GetBalanceParams<EvmSpokeOnlyChainKey>): Promise<bigint>;
9915
+ /**
9916
+ * Get the user's own wallet balances of multiple tokens on an EVM spoke chain, in smallest
9917
+ * units. Non-native tokens are batched via multicall3 when the chain supports it, otherwise
9918
+ * read in parallel.
9919
+ * @param {GetBalancesParams<EvmSpokeOnlyChainKey>} params - The chain key, user address, and tokens.
9920
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
9921
+ */
9922
+ getWalletBalances(params: GetBalancesParams<EvmSpokeOnlyChainKey>): Promise<WalletBalanceMap>;
9425
9923
  /**
9426
9924
  * Sends a message to the hub chain.
9427
9925
  * @param {SendMessageParams} params - Includes dstChainKey, the chain key of the hub chain.
@@ -9445,6 +9943,9 @@ declare class StacksSpokeService {
9445
9943
  readContract(sender: string, txParams: StacksTransactionParams): Promise<ClarityValue>;
9446
9944
  getSTXBalance(address: string): Promise<bigint>;
9447
9945
  readTokenBalance(token: string, address: string): Promise<bigint>;
9946
+ private readonly ftAssetNames;
9947
+ /** Post-conditions need the on-chain `define-fungible-token` names; SIP-10 exposes no read for them. */
9948
+ private getFtAssetNames;
9448
9949
  getImplContractAddress(stateContract: string): Promise<string>;
9449
9950
  /**
9450
9951
  * Deposit tokens to the spoke chain.
@@ -9454,12 +9955,33 @@ declare class StacksSpokeService {
9454
9955
  * @returns {Promise<Hash>} A promise that resolves to the transaction hash.
9455
9956
  */
9456
9957
  deposit<R extends boolean = false>(params: DepositParams<StacksChainKey, R>): Promise<TxReturnType<StacksChainKey, R>>;
9958
+ /**
9959
+ * Caps for a Deny-mode deposit: asset-manager-state.deposit moves exactly `amount` from the
9960
+ * caller, so cap the sender at `amount` — one cap per FT the token contract defines (sBTC has
9961
+ * two; the unmoved ones pass at 0 trivially), or uSTX for native.
9962
+ */
9963
+ private depositPostConditions;
9457
9964
  /**
9458
9965
  * Get the balance of the token deposited in the spoke chain asset manager.
9459
9966
  * @param {GetDepositParams<StacksChainKey>} params - The parameters for the deposit, including the user's address, token address, and chain id.
9460
9967
  * @returns {Promise<bigint>} The balance of the token.
9461
9968
  */
9462
9969
  getDeposit(params: GetDepositParams<StacksChainKey>): Promise<bigint>;
9970
+ /**
9971
+ * Get the user's own wallet balance of a token on Stacks, in smallest units. Native STX via the
9972
+ * Hiro REST `/extended/v1/address/{addr}/balances` endpoint; SIP-010 fungible tokens via the
9973
+ * read-only `get-balance` contract call. Unlike {@link getDeposit}, this reads the holding of
9974
+ * `srcAddress` (the user), not the protocol asset manager.
9975
+ * @param {GetBalanceParams<StacksChainKey>} params - The chain key, user address, and token.
9976
+ * @returns {Promise<bigint>} The token balance in smallest units.
9977
+ */
9978
+ getWalletBalance(params: GetBalanceParams<StacksChainKey>): Promise<bigint>;
9979
+ /**
9980
+ * Get the user's own wallet balances of multiple tokens on Stacks, in smallest units.
9981
+ * @param {GetBalancesParams<StacksChainKey>} params - The chain key, user address, and tokens.
9982
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
9983
+ */
9984
+ getWalletBalances(params: GetBalancesParams<StacksChainKey>): Promise<WalletBalanceMap>;
9463
9985
  /**
9464
9986
  * Sends a message to the hub chain.
9465
9987
  */
@@ -9833,6 +10355,19 @@ declare function calcOpReturnOutputVbytes(payloadByteLength: number): number;
9833
10355
  */
9834
10356
  declare function estimateBitcoinTxSize(inputCount: number, outputCount: number, addressType?: BtcAddressType, opReturnOutputVbytes?: number): number;
9835
10357
  declare function encodeBtcPayloadToBytes(payload: BtcPayload): string;
10358
+ /**
10359
+ * Checksum-validate a Bitcoin destination address (every spendable type). Testnet forms are
10360
+ * accepted deliberately: the network is config-driven under the single BITCOIN_MAINNET chain key
10361
+ * (BitcoinSpokeService.getBtcNetwork), and this pure utility cannot see that config.
10362
+ * Decodes via fromBech32/fromBase58Check — payments.p2tr would require initEccLib, which a pure
10363
+ * utility must not depend on. Prefix/version checks keep other bech32 chains (e.g. inj1…) out.
10364
+ */
10365
+ declare function isValidBitcoinAddress(address: string): boolean;
10366
+ /**
10367
+ * Canonical byte form of a validated Bitcoin address. bech32 is case-insensitive (BIP-173), so the
10368
+ * two cases of one address would otherwise encode to different bytes; Base58Check is case-sensitive.
10369
+ */
10370
+ declare function canonicalizeBitcoinAddress(address: string): string;
9836
10371
  /**
9837
10372
  * Normalize a signed PSBT to base64 format.
9838
10373
  * Unisat/OKX wallets return hex, Xverse returns base64.
@@ -9878,6 +10413,20 @@ declare class BitcoinSpokeService {
9878
10413
  constructor(config: ConfigService);
9879
10414
  getBtcNetwork(chainId: BitcoinChainKey): networks.Network;
9880
10415
  getBalance(tokenAddress: string, walletAddress: string): Promise<bigint>;
10416
+ /**
10417
+ * Get the user's own wallet balance of a token on Bitcoin, in satoshis. Only native BTC is
10418
+ * readable (summed from confirmed/unconfirmed UTXOs). Non-native spoke tokens are Rune ids
10419
+ * (`block:tx`), whose amounts the Esplora UTXO endpoint does not carry, so they resolve to 0n.
10420
+ * @param {GetBalanceParams<BitcoinChainKey>} params - The chain key, user address, and token.
10421
+ * @returns {Promise<bigint>} The balance in satoshis.
10422
+ */
10423
+ getWalletBalance(params: GetBalanceParams<BitcoinChainKey>): Promise<bigint>;
10424
+ /**
10425
+ * Get the user's own wallet balances of multiple tokens on Bitcoin, in satoshis.
10426
+ * @param {GetBalancesParams<BitcoinChainKey>} params - The chain key, user address, and tokens.
10427
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10428
+ */
10429
+ getWalletBalances(params: GetBalancesParams<BitcoinChainKey>): Promise<WalletBalanceMap>;
9881
10430
  fetchScriptPubKey(utxo: BitcoinUTXO): Promise<string>;
9882
10431
  /**
9883
10432
  * Get the effective wallet address for hub wallet derivation and relay submission.
@@ -10048,6 +10597,22 @@ declare class NearSpokeService {
10048
10597
  * @returns {Promise<bigint>} The balance of the token.
10049
10598
  */
10050
10599
  getDeposit(params: GetDepositParams<NearChainKey>): Promise<bigint>;
10600
+ /**
10601
+ * Get the user's own wallet balance of a token on NEAR, in smallest units (yoctoNEAR for the
10602
+ * native coin). Native NEAR via the account's `viewAccount().amount`; NEP-141 tokens via the
10603
+ * token contract's `ft_balance_of` view. Reads the balance held by `srcAddress` (the user
10604
+ * wallet), not the protocol asset manager. Uses this service's own configured RPC provider.
10605
+ * @param {GetBalanceParams<NearChainKey>} params - The chain key, user address, and token.
10606
+ * @returns {Promise<bigint>} The token balance in smallest units.
10607
+ */
10608
+ getWalletBalance(params: GetBalanceParams<NearChainKey>): Promise<bigint>;
10609
+ /**
10610
+ * Get the user's own wallet balances of multiple tokens on NEAR, in smallest units. Fans out
10611
+ * over {@link getWalletBalance}, keyed by `token.address`.
10612
+ * @param {GetBalancesParams<NearChainKey>} params - The chain key, user address, and tokens.
10613
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10614
+ */
10615
+ getWalletBalances(params: GetBalancesParams<NearChainKey>): Promise<WalletBalanceMap>;
10051
10616
  /**
10052
10617
  * Whether `accountId` is storage-registered on a NEP-141 `token` contract. NEP-141 requires an
10053
10618
  * account to pay a one-time storage bond before it can receive (hold a balance of) the token, so
@@ -10154,6 +10719,21 @@ declare class SuiSpokeService {
10154
10719
  * @returns {Promise<bigint>} The balance of the token.
10155
10720
  */
10156
10721
  getDeposit(params: GetDepositParams<SuiChainKey>): Promise<bigint>;
10722
+ /**
10723
+ * Get the user's own wallet balance of a token on Sui, in smallest units. Unlike {@link getDeposit}
10724
+ * (which reads the protocol asset manager holding), this reads the balance held by `params.srcAddress`
10725
+ * itself. Native SUI is read via its canonical `0x2::sui::SUI` coin type; other coins use the token's
10726
+ * Sui coinType (`token.address`).
10727
+ * @param {GetBalanceParams<SuiChainKey>} params - The chain key, user address, and token.
10728
+ * @returns {Promise<bigint>} The token balance in smallest units.
10729
+ */
10730
+ getWalletBalance(params: GetBalanceParams<SuiChainKey>): Promise<bigint>;
10731
+ /**
10732
+ * Get the user's own wallet balances of multiple tokens on Sui, in smallest units.
10733
+ * @param {GetBalancesParams<SuiChainKey>} params - The chain key, user address, and tokens.
10734
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10735
+ */
10736
+ getWalletBalances(params: GetBalancesParams<SuiChainKey>): Promise<WalletBalanceMap>;
10157
10737
  /**
10158
10738
  * Fetch the asset manager config from the spoke chain.
10159
10739
  * @param {SuiChainKey} chainId - The Sui chain key.
@@ -10211,6 +10791,37 @@ declare class StellarSpokeService {
10211
10791
  private readonly baseFee;
10212
10792
  constructor(config: ConfigService);
10213
10793
  getBalance(params: GetDepositParams<StellarChainKey>): Promise<number>;
10794
+ /**
10795
+ * Get the user's own wallet balance of a token on Stellar, in smallest units. Native XLM returns
10796
+ * the spendable amount (total minus the minimum reserve and selling liabilities) via Horizon;
10797
+ * other assets return the Soroban token contract's `balance` for the user.
10798
+ * @param {GetBalanceParams<StellarChainKey>} params - The chain key, user address, and token.
10799
+ * @returns {Promise<bigint>} The token balance in smallest units.
10800
+ */
10801
+ getWalletBalance(params: GetBalanceParams<StellarChainKey>): Promise<bigint>;
10802
+ /**
10803
+ * Spendable XLM in stroops: the account's native balance minus its minimum reserve and selling
10804
+ * liabilities. Reporting the raw balance would let a user try to spend reserves the network
10805
+ * refuses to release.
10806
+ */
10807
+ private static spendableXlmStroops;
10808
+ /**
10809
+ * Simulate a Soroban token `balance` call. Takes the network passphrase and source account so a
10810
+ * batch can fetch them once; `getAccountClone()` hands each builder its own `Account`, because
10811
+ * `TransactionBuilder.build()` increments the source's sequence number and concurrent builders
10812
+ * would otherwise interleave on a shared one.
10813
+ */
10814
+ private simulateTokenBalance;
10815
+ /**
10816
+ * Get the user's own wallet balances of multiple tokens on Stellar, in smallest units.
10817
+ *
10818
+ * The network passphrase and the source account are the same for every token, so they are
10819
+ * fetched once per batch instead of once per token — and only when a partition actually needs
10820
+ * them, so an all-native request issues no Soroban calls at all.
10821
+ * @param {GetBalancesParams<StellarChainKey>} params - The chain key, user address, and tokens.
10822
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10823
+ */
10824
+ getWalletBalances(params: GetBalancesParams<StellarChainKey>): Promise<WalletBalanceMap>;
10214
10825
  buildPriorityStellarTransaction(account: CustomStellarAccount, network: rpc.Api.GetNetworkResponse, operation: xdr.Operation<Operation.InvokeHostFunction>): Promise<[Transaction$1, rpc.Api.SimulateTransactionResponse]>;
10215
10826
  buildDepositCall<Raw extends boolean>(params: DepositParams<StellarChainKey, Raw>): xdr.Operation<Operation.InvokeHostFunction>;
10216
10827
  buildSendMessageCall<Raw extends boolean>(params: SendMessageParams<StellarChainKey, Raw>): xdr.Operation<Operation.InvokeHostFunction>;
@@ -10288,6 +10899,21 @@ declare class SolanaSpokeService {
10288
10899
  */
10289
10900
  deposit<R extends boolean = false>(params: DepositParams<SolanaChainKey, R>): Promise<TxReturnType<SolanaChainKey, R>>;
10290
10901
  getDeposit(params: GetDepositParams<SolanaChainKey>): Promise<bigint>;
10902
+ /**
10903
+ * Get the user's own wallet balance of a token on Solana, in smallest units. Native SOL via
10904
+ * `getBalance`; SPL via the associated token account. The mint may belong to the legacy SPL
10905
+ * Token program or Token-2022 (e.g. xStock tokens), which derive different ATAs, so both
10906
+ * candidate ATAs are read in one call and the existing one is used.
10907
+ * @param {GetBalanceParams<SolanaChainKey>} params - The chain key, user address, and token.
10908
+ * @returns {Promise<bigint>} The token balance in smallest units.
10909
+ */
10910
+ getWalletBalance(params: GetBalanceParams<SolanaChainKey>): Promise<bigint>;
10911
+ /**
10912
+ * Get the user's own wallet balances of multiple tokens on Solana, in smallest units.
10913
+ * @param {GetBalancesParams<SolanaChainKey>} params - The chain key, user address, and tokens.
10914
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10915
+ */
10916
+ getWalletBalances(params: GetBalancesParams<SolanaChainKey>): Promise<WalletBalanceMap>;
10291
10917
  /**
10292
10918
  * Sends a message to the hub chain.
10293
10919
  * @param dstChainKey - The chain key of the hub chain.
@@ -10335,6 +10961,26 @@ declare class IconSpokeService {
10335
10961
  * @returns {Promise<bigint>} The balance of the token
10336
10962
  */
10337
10963
  getDeposit(params: GetDepositParams<IconChainKey>): Promise<bigint>;
10964
+ /**
10965
+ * Read an int-returning SCORE call. `iconService.call(...)` registers no result converter, so
10966
+ * `execute()` resolves the raw JSON-RPC `result` — a bare hex string for an int, not `{ value }`.
10967
+ */
10968
+ private readIrc2Balance;
10969
+ /**
10970
+ * Get the user's own wallet balance of a token on ICON, in smallest units. Native ICX is read
10971
+ * via `iconService.getBalance`; IRC-2 tokens via a `balanceOf(_owner)` call on the token contract.
10972
+ * @param {GetBalanceParams<IconChainKey>} params - The chain key, user address, and token.
10973
+ * @returns {Promise<bigint>} The token balance in smallest units.
10974
+ */
10975
+ getWalletBalance(params: GetBalanceParams<IconChainKey>): Promise<bigint>;
10976
+ /**
10977
+ * Get the user's own wallet balances of multiple tokens on ICON, in smallest units. Native ICX
10978
+ * is read via `iconService.getBalance`; IRC-2 balances are batched into a single `tryAggregate`
10979
+ * multicall so every `balanceOf(_owner)` read shares one round-trip.
10980
+ * @param {GetBalancesParams<IconChainKey>} params - The chain key, user address, and tokens.
10981
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10982
+ */
10983
+ getWalletBalances(params: GetBalancesParams<IconChainKey>): Promise<WalletBalanceMap>;
10338
10984
  /**
10339
10985
  * Sends a message to the hub chain.
10340
10986
  * @param {SendMessageParams} params - Includes dstChainKey, the chain key of the destination chain.
@@ -10397,6 +11043,7 @@ interface State {
10397
11043
  declare class InjectiveSpokeService {
10398
11044
  private readonly config;
10399
11045
  readonly chainGrpcWasmApi: ChainGrpcWasmApi;
11046
+ readonly indexerGrpcAccountPortfolioApi: IndexerGrpcAccountPortfolioApi;
10400
11047
  readonly txClient: TxGrpcApi;
10401
11048
  readonly endpoints: NetworkEndpoints;
10402
11049
  private readonly pollingIntervalMs;
@@ -10428,6 +11075,21 @@ declare class InjectiveSpokeService {
10428
11075
  * @returns {Promise<bigint>} The balance of the token.
10429
11076
  */
10430
11077
  getDeposit(params: GetDepositParams<InjectiveChainKey>): Promise<bigint>;
11078
+ /**
11079
+ * Get the user's own wallet balance of a token on Injective, in smallest units. On Injective every
11080
+ * asset is a bank coin, so the native coin (`inj`) and factory/peggy/IBC tokens are all read from the
11081
+ * account's portfolio bank balances and matched by denom. The denom is the chain's native denom for
11082
+ * the native coin and `params.token.address` for standard tokens.
11083
+ * @param {GetBalanceParams<InjectiveChainKey>} params - The chain key, user address, and token.
11084
+ * @returns {Promise<bigint>} The token balance in smallest units, or 0n when the account holds none.
11085
+ */
11086
+ getWalletBalance(params: GetBalanceParams<InjectiveChainKey>): Promise<bigint>;
11087
+ /**
11088
+ * Get the user's own wallet balances of multiple tokens on Injective, in smallest units.
11089
+ * @param {GetBalancesParams<InjectiveChainKey>} params - The chain key, user address, and tokens.
11090
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
11091
+ */
11092
+ getWalletBalances(params: GetBalancesParams<InjectiveChainKey>): Promise<WalletBalanceMap>;
10431
11093
  getRawTransaction(chainId: string, senderAddress: string, contractAddress: string, msg: JsonObject, memo?: string, funds?: InjectiveCoin[]): Promise<InjectiveRawTransaction>;
10432
11094
  getState(chainId: InjectiveChainKey): Promise<State>;
10433
11095
  /**
@@ -10576,6 +11238,26 @@ declare class SpokeService {
10576
11238
  * @returns {Promise<bigint>} The balance of the token.
10577
11239
  */
10578
11240
  getDeposit<C extends SpokeChainKey>(params: GetDepositParams<C>): Promise<Result<bigint>>;
11241
+ /**
11242
+ * Get a user's own wallet balance of a single token on a spoke chain, in smallest units.
11243
+ * Chain-agnostic: dispatches to the per-chain service, which reads the native coin or the
11244
+ * chain's token standard (EVM erc20, Solana SPL, …). Unlike {@link getDeposit}, this reads
11245
+ * `srcAddress` itself, not the protocol asset manager.
11246
+ * @param {GetBalanceParams<C>} params - The chain key, user address, and token.
11247
+ * @returns {Promise<Result<bigint>>} The token balance in smallest units.
11248
+ */
11249
+ getWalletBalance<C extends SpokeChainKey>(params: GetBalanceParams<C>): Promise<Result<bigint>>;
11250
+ /**
11251
+ * Get a user's own wallet balances of multiple tokens on a spoke chain, in smallest units.
11252
+ * Chain-agnostic sibling of {@link getWalletBalance}; per-chain services batch the reads where the
11253
+ * chain supports it (e.g. EVM multicall3, ICON aggregated call data).
11254
+ * @param {GetBalancesParams<C>} params - The chain key, user address, and tokens.
11255
+ * @returns {Promise<Result<WalletBalanceMap>>} A map of token address to balance in smallest
11256
+ * units. A token that could not be read is logged and reported as `0n`; the `Result` fails when
11257
+ * the whole batch is unusable — invalid chain, a shared round-trip every token depends on, or a
11258
+ * batch in which no token could be read at all.
11259
+ */
11260
+ getWalletBalances<C extends SpokeChainKey>(params: GetBalancesParams<C>): Promise<Result<WalletBalanceMap>>;
10579
11261
  /**
10580
11262
  * Calls the connection contract on the spoke chain to send a message to the hub wallet, which then executes the message's payload.
10581
11263
  * @param {HubAddress} from - The address of the user on the hub chain.
@@ -10616,7 +11298,7 @@ declare class SuiGrpcTransport implements SuiTransport {
10616
11298
  readonly endpoint: string;
10617
11299
  private readonly client;
10618
11300
  constructor(endpoint: string);
10619
- getCoins(owner: string, coinType: string, limit?: number): Promise<SuiPaginatedCoins>;
11301
+ getCoins(owner: string, coinType: string, limit?: number, cursor?: string | null): Promise<SuiPaginatedCoins>;
10620
11302
  simulate(tx: SuiTransaction, sender: string): Promise<SuiExecutionResult>;
10621
11303
  estimateGas(tx: SuiTransaction, sender: string): Promise<SuiGasEstimate>;
10622
11304
  fetchLatestPackageId(objectId: string): Promise<string>;
@@ -12600,6 +13282,8 @@ declare function convertTransactionInstructionToRaw(instruction: TransactionInst
12600
13282
 
12601
13283
  declare function isEvmSpokeChainConfig(value: SpokeChainConfig): value is EvmSpokeChainConfig;
12602
13284
  declare function isIconAddress(value: unknown): value is IconAddress;
13285
+ declare function isValidNearAccountId(accountId: string): boolean;
13286
+ declare function isValidInjectiveAddress(address: string): boolean;
12603
13287
  declare function isResponseAddressType(value: unknown): value is ResponseAddressType;
12604
13288
  declare function isResponseSigningType(value: unknown): value is ResponseSigningType;
12605
13289
  declare function isJsonRpcPayloadResponse(value: unknown): value is JsonRpcPayloadResponse;
@@ -12664,18 +13348,11 @@ declare const silentLogger: SodaxLogger;
12664
13348
  */
12665
13349
  declare function resolveLogger(option: SodaxLoggerOption | undefined): SodaxLogger;
12666
13350
 
12667
- /** An `intent-filled` entry in `IntentResponse.events`. Narrow with `isFillEvent`. */
12668
- declare const FillEventSchema: v.ObjectSchema<{
12669
- readonly eventType: v.LiteralSchema<"intent-filled", undefined>;
12670
- readonly txHash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
12671
- readonly intentState: v.ObjectSchema<{
12672
- readonly remainingInput: v.StringSchema<undefined>;
12673
- }, undefined>;
12674
- }, undefined>;
12675
-
12676
13351
  type FillEvent = v.InferOutput<typeof FillEventSchema>;
12677
13352
  /** Narrows an `IntentResponse.events` entry, which is typed `unknown[]`. */
12678
13353
  declare const isFillEvent: (value: unknown) => value is FillEvent;
13354
+ /** Narrows an oracle markets `intervals[].key`, which is `string` so discovery tolerates an unknown interval. */
13355
+ declare const isOracleCandleInterval: (value: string) => value is OracleCandleInterval;
12679
13356
 
12680
13357
  /**
12681
13358
  * Estimated settlement-speed bucket for a swap token pair.
@@ -17759,6 +18436,7 @@ type LeverageYieldServiceConstructorParams = {
17759
18436
  hubProvider: HubProvider;
17760
18437
  config: ConfigService;
17761
18438
  spoke: SpokeService;
18439
+ backendApi: BackendApiService;
17762
18440
  };
17763
18441
  /**
17764
18442
  * Treats leverage-yield ERC-4626 vault shares (lsoda* tokens) as solver-tradeable tokens:
@@ -17792,7 +18470,14 @@ declare class LeverageYieldService {
17792
18470
  private readonly hubProvider;
17793
18471
  private readonly config;
17794
18472
  private readonly spoke;
17795
- constructor({ hubProvider, config, spoke }: LeverageYieldServiceConstructorParams);
18473
+ private readonly backendApi;
18474
+ /**
18475
+ * Effective backend submit-tx flow (`leverageYield.useBackendSubmitTx`, default off). Read live off
18476
+ * `ConfigService`, like `config.leverageYieldPartnerFee`, so the config object and the behavior can
18477
+ * never disagree.
18478
+ */
18479
+ get useBackendSubmitTx(): boolean;
18480
+ constructor({ hubProvider, config, spoke, backendApi }: LeverageYieldServiceConstructorParams);
17796
18481
  /** Returns the static registry of known leverage-yield vaults. */
17797
18482
  listVaults(): readonly LeverageYieldVault[];
17798
18483
  /** Looks up a vault by its `name` field. Returns `undefined` when not registered. */
@@ -17916,6 +18601,36 @@ declare class LeverageYieldService {
17916
18601
  * `EXECUTION_FAILED`, `EXTERNAL_API_ERROR` or `UNKNOWN`.
17917
18602
  */
17918
18603
  vaultSwap<K extends SpokeChainKey>(_params: VaultSwapActionParams<K, false>): Promise<Result<VaultSwapResponse, LeverageYieldSwapError>>;
18604
+ /**
18605
+ * Client-side vault-swap completion (the default path): verify the broadcast intent tx landed,
18606
+ * relay it to the hub (Sonic) — or use it directly when the source IS the hub — then notify the
18607
+ * solver via {@link LeverageYieldService.notifySolver} and build the {@link VaultSwapResponse}.
18608
+ * Extracted from `vaultSwap()` so the opt-in backend 2-step path ({@link LeverageYieldService.submitTx})
18609
+ * can fall back to it on any non-success. Leverage-yield copy of `SwapService.fallbackSwapSteps`.
18610
+ */
18611
+ private fallbackVaultSwapSteps;
18612
+ /**
18613
+ * Backend 2-step vault-swap path (opt-in via `leverageYield.useBackendSubmitTx`): hand the
18614
+ * broadcast intent tx to the leverage-yield API (`POST /leverage-yield/submit-tx`); the backend
18615
+ * relays + post-executes server-side. Polls `getSubmitTxStatus` until `solved`, then reconstructs
18616
+ * the same {@link VaultSwapResponse} the client-side path returns.
18617
+ *
18618
+ * Never throws — returns `{ ok: false }` on any non-success (submit `!ok`, a 200 the backend did not
18619
+ * accept, terminal `failed` / abandoned, or poll timeout) so `vaultSwap()` falls back to
18620
+ * {@link LeverageYieldService.fallbackVaultSwapSteps}. Falling back is safe: re-relaying / re-posting
18621
+ * an already-processed vault swap is idempotent (the relay dedups the `executed` packet and the solver
18622
+ * re-affirms the intent — no double-fill), and load-bearing rather than belt-and-braces: the backend
18623
+ * keeps processing after this attempt gives up, so the fallback's relay can race the backend's own.
18624
+ *
18625
+ * The attempt itself — POST, budget clamps, status poll — is {@link runBackendSubmitTx}, shared with
18626
+ * swaps and bridge. What is leverage-yield-specific and lives here: the request body (including the
18627
+ * `operation` discriminator), the `solved` terminal status, the mapping to a
18628
+ * {@link VaultSwapResponse}, and the leverage-yield error taxonomy.
18629
+ *
18630
+ * `attempt` bounds this attempt alone — the POST and every status request draw on it, and the
18631
+ * client-side fallback holds a separate fresh `timeout`.
18632
+ */
18633
+ private submitTx;
17919
18634
  /**
17920
18635
  * Notifies the solver that the vault intent landed on the hub, triggering it to fill.
17921
18636
  * Leverage-yield copy of the swap domain's `postExecution` — emits only
@@ -18887,4 +19602,4 @@ type DexApproveErrorCode = ApproveErrorCode;
18887
19602
  type DexApproveError = SodaxError<DexApproveErrorCode>;
18888
19603
  declare const isDexApproveError: (e: unknown) => e is SodaxError<ApproveErrorCode>;
18889
19604
 
18890
- export { ALLOWANCE_CHECK_CODES, APPROVE_CODES, type ActivateStellarAccountParams, type ActivateStellarAccountResult, type AggregatedReserveData, type AllowanceCheckErrorCode, type AllowanceInfo, type AllowanceResponse, type AllowanceTransferDetails, type AnalyticsActionData, type ApiResponse, type ApprovalTxs, type ApproveErrorCode, type ApyRange, type AssetDepositAction, type AssetEntry, AssetService, type AssetServiceConstructorParams, type AssetWithdrawAction, type AutoSwapPreferences, BackendApiService, type BackendApiServiceOptions, BackendHttpError, type BalnLockParams, type BalnMigrateAction, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, type BitcoinBoundExtras, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinUTXO, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeAction, type BridgeAllowanceCheckError, type BridgeAllowanceCheckErrorCode, BridgeApiService, type BridgeApiServiceOptions, type BridgeApproveError, type BridgeApproveErrorCode, type BridgeCreateIntentError, type BridgeCreateIntentErrorCode, type BridgeError, type BridgeErrorCode, type BridgeExtras, type BridgeLookupError, type BridgeLookupErrorCode, type BridgeOrchestrationError, type BridgeOrchestrationErrorCode, type BridgeParams, BridgeService, type BridgeServiceConstructorParams, type BtcPayload, CREATE_INTENT_CODES, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CallResponse, type CancelIntentActionParams, type CancelIntentParams, type CancelUnstakeAction, type CancelUnstakeParams, type ClClaimRewardsParams, type ClDecreaseLiquidityParams, type ClGetPoolDataParams, type ClIncreaseLiquidityParams, type ClLiquidityClaimRewardsAction, type ClLiquidityDecreaseLiquidityAction, type ClLiquidityIncreaseLiquidityAction, type ClLiquidityWithdrawAction, type ClMintPositionEventLog, type ClPositionInfo, ClService, type ClServiceConstructorParams, type ClSupplyAction, type ClSupplyParams, type ClWithdrawParams, type ClaimAction, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, type ConcentratedLiquidityParams, type ConcentratedLiquidityTokenInfo, ConfigService, type ConfigServiceConstructorParams, type ConnMsg, type CreateAssetDepositParams, type CreateAssetWithdrawParams, type CreateBridgeIntentParams, type CreateIntentErrorCode, type CreateIntentParams, type CreateIntentResult, type CreateLimitOrderParams, type CreateSonicSwapIntentParams, type CreateVaultIntentResult, type CreateViemPublicClientParams, CustomSorobanServer, CustomStellarAccount, DETAILED_STATUS_NOT_DELIVERED, type DepositParams, type DepositSimulationParams, type DestinationParamsType, type DetailedLock, type DetailedStatusError, type DetailedStatusErrorCode, type DetailedSwapStatus, type DetailedSwapStatusKey, type DexApproveError, type DexApproveErrorCode, type DexCreateIntentError, type DexCreateIntentErrorCode, type DexError, type DexErrorCode, DexService, type DexServiceConstructorParams, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, type EnrichedToken, type Erc20ApprovalPlan, type Erc20ApprovalPlanReason, type Erc20ApproveParams, type Erc20GetAllowanceParams, type Erc20IsAllowanceParams, type Erc20PlanApprovalParams, Erc20Service, type Erc20Token, Erc4626Service, type EstimateGasParams, EvmAssetManagerService, type EvmDepositToDataParams, EvmHubProvider, type EvmHubProviderConstructorParams, EvmSolverService, EvmSpokeService, EvmVaultTokenService, type EvmWithdrawAssetDataParams, type ExecuteMsg, type FeatureInvariant, type FeeData, type FeeTokenApproveAction, type FeeTokenApproveParams, type FetchHubAssetBalancesParams, type FillEvent, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, GAS_ESTIMATION_CODES, type GasEstimationErrorCode, type GetDepositParams, type GetIntentSubmitTxExtraDataParams, type GetPacketParams, type GetPacketResponse, type GetQuoteParams, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeServiceType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, type GetTxReceiptType, type GetUserIntentParams, type GetUserRouterParams, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HookRequest, HookService, HttpRelayError, type HubAssetBalance, type HubProvider, type IconJsonRpcVersion, IconSpokeService, type IcxCreateRevertMigrationParams, type IcxMigrateAction, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRevertMigrationAction, type IcxRevertMigrationParams, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, type InjectiveBalance, InjectiveSpokeService, type InstantUnstakeAction, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapResult, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentData, IntentDataService, IntentDataType, type IntentDeliveryInfo, IntentFilledEventAbi, type IntentFilledEventLog, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentTxResult, IntentsAbi, type JsonRpcPayloadResponse, LOOKUP_CODES, LTV_PRECISION, LendingPoolService, type LendingPoolServiceConstructorParams, type LeverageYieldAction, type LeverageYieldAllowanceCheckError, type LeverageYieldAllowanceCheckErrorCode, type LeverageYieldAllowanceParams, type LeverageYieldApproveError, type LeverageYieldApproveErrorCode, type LeverageYieldApproveParams, type LeverageYieldApr, type LeverageYieldCreateIntentError, type LeverageYieldCreateIntentErrorCode, type LeverageYieldEffectiveApr, type LeverageYieldError, type LeverageYieldErrorCode, type LeverageYieldLookupError, type LeverageYieldLookupErrorCode, type LeverageYieldLsdApr, type LeverageYieldPosition, type LeverageYieldPostExecutionError, type LeverageYieldPostExecutionErrorCode, type LeverageYieldQuoteParams, LeverageYieldService, type LeverageYieldServiceConstructorParams, type LeverageYieldSwapDepositParams, type LeverageYieldSwapError, type LeverageYieldSwapErrorCode, type LeverageYieldSwapPayload, type LeverageYieldSwapWithdrawParams, type LimitOrderActionParams, LockupMultiplier, LockupPeriod, type LookupErrorCode, type MapRelayFailureCtx, type MigrateOrchestrationError, type MigrateOrchestrationErrorCode, type MigrationAction, type MigrationAllowanceCheckError, type MigrationAllowanceCheckErrorCode, type MigrationApproveError, type MigrationApproveErrorCode, type MigrationCreateIntentError, type MigrationCreateIntentErrorCode, type MigrationDirection, type MigrationError, type MigrationErrorCode, type MigrationLookupError, type MigrationLookupErrorCode, type MigrationOp, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConstructorParams, type MigrationTokens, MintPositionEventAbi, type MintPositionEventLog, type MoneyMarketAction, type MoneyMarketAllowanceCheckError, type MoneyMarketAllowanceCheckErrorCode, type MoneyMarketAllowanceParams, type MoneyMarketApproveActionParams, type MoneyMarketApproveError, type MoneyMarketApproveErrorCode, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowActionParams, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketCreateIntentError, type MoneyMarketCreateIntentErrorCode, MoneyMarketDataService, type MoneyMarketDataServiceConstructorParams, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketGasEstimationError, type MoneyMarketGasEstimationErrorCode, type MoneyMarketOrchestrationError, type MoneyMarketOrchestrationErrorCode, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayActionParams, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConstructorParams, type MoneyMarketSupplyActionParams, type MoneyMarketSupplyParams, type MoneyMarketWithdrawActionParams, type MoneyMarketWithdrawParams, NEAR_DEFAULT_GAS, NEAR_STORAGE_DEPOSIT, NearSpokeService, type OnDemandBtcPayload, type OnDemandRelayData, type OptionalRaw, type OptionalSkipSimulation, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerAction, type PartnerError, type PartnerErrorCode, type PartnerFeeClaimAssetBalance, type PartnerFeeClaimCancelAction, type PartnerFeeClaimCancelParams, PartnerFeeClaimService, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapAction, type PartnerFeeClaimSwapParams, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, Permit2Service, type PermitBatch, type PermitDetails, type PermitSingle, type PoolBaseCurrencyHumanized, type PoolData, type PoolRewardConfig, type PoolSpokeAssets, type PostExecutionError, type PostExecutionErrorCode, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, RAY, RAY_DECIMALS, RELAY_ERROR_CODES, RELAY_FALLBACK_FLOOR_MS, RELAY_REQUEST_TIMEOUT_MS, RadfiApiError, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiErrorBody, type RadfiMaxSpentResponse, RadfiProvider, type RadfiProviderOptions, type RadfiResponseEnvelope, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawDestinationParams, type RecoveryAction, type RecoveryError, type RecoveryErrorCode, RecoveryService, type RecoveryServiceConstructorParams, type RelayAction, type RelayAndWaitParams, type RelayCode, type RelayErrorCode, type RelayExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayWrappedErrorCode, type RequestConfig, type RequestOverrideConfig, type RequestTrustlineParams, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResolvedAnalytics, type ResponseAddressType, type ResponseSigningType, type RevertMigrationOrchestrationError, type RevertMigrationOrchestrationErrorCode, type RewardInfoHumanized, SECONDS_PER_YEAR, SODAX_ERROR_CODES, SODAX_FEATURES, SPEED_TIER_SECONDS, SPEED_TIER_THRESHOLDS, SPONSOR_CONFIG_TTL_MS, STELLAR_BASE_RESERVE_TTL_MS, STELLAR_TRUSTLINE_MIN_XLM_STROOPS, type SendMessageParams, type SetSwapPreferenceAction, type SetSwapPreferenceParams, Sodax, SodaxError, type SodaxErrorCode, type SodaxErrorContext, type SodaxErrorJSON, type SodaxPhase, SolanaSpokeService, SolverApiService, SonicSpokeService, type SpokeApproveParams, type SpokeApproveParamsEvmSpoke, type SpokeApproveParamsHub, type SpokeApproveParamsStellar, type SpokeIsAllowanceValidParams, type SpokeIsAllowanceValidParamsEvmSpoke, type SpokeIsAllowanceValidParamsHub, type SpokeIsAllowanceValidParamsOther, type SpokeIsAllowanceValidParamsStellar, SpokeService, type SpokeServiceConstructorParams, type SpokeServiceType, type SponsorFailureAction, type SponsorFailureClass, type SponsoringAction, SponsoringApiService, type SponsoringApiServiceOptions, type SponsoringConfigError, type SponsoringConfigErrorCode, type SponsoringLookupError, type SponsoringLookupErrorCode, type SponsoringOrchestrationError, type SponsoringOrchestrationErrorCode, SponsoringService, StacksSpokeService, type StakeAction, type StakeOrchestrationError, type StakeOrchestrationErrorCode, type StakeParams, type StakingActionType, type StakingActionUnion, type StakingAllowanceCheckError, type StakingAllowanceCheckErrorCode, type StakingApproveError, type StakingApproveErrorCode, type StakingConfig, type StakingCreateIntentError, type StakingCreateIntentErrorCode, type StakingError, type StakingErrorCode, type StakingInfo, type StakingInfoFetchError, type StakingInfoFetchErrorCode, StakingLogic, type StakingOrchestrationError, type StakingOrchestrationErrorCode, type StakingParamsUnion, StakingService, type StakingServiceConstructorParams, type State, type StellarAccountStatus, StellarSpokeService, type SubmitTxParams, type SubmitTxResponse, SuiGrpcTransport, SuiSpokeService, SupportedMigrationTokens, type SwapAction, type SwapActionParams, type SwapCreateIntentError, type SwapCreateIntentErrorCode, type SwapError, type SwapErrorCode, type SwapExtras, type SwapResponse, SwapService, type SwapServiceConstructorParams, type SwapSpeedTier, type SwapSpeedTierParams, type SwapSpeedTierResult, SwapsApiService, type SwapsApiServiceOptions, type TokenSpenderPair, type TokenWithConversion, type TxHashPair, type TxStatus, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UiPoolDataProviderServiceConstructorParams, type UnifiedBnUSDMigrateAction, type UnifiedBnUSDMigrateParams, type UnstakeAction, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type VaultSwapActionParams, type VaultSwapResponse, type VerifySimulationParams, type VerifyTxHashParams, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitForTxReceiptParams, type WaitForTxReceiptReturnType, type WaitUntilIntentExecutedPayload, type WalletMode, type WalletSimulationParams, type WithdrawHubAssetAction, type WithdrawHubAssetParams, type WithdrawInfo, adjustAmountByFee, allowanceCheckFailed, approveFailed, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bridgeInvariant, calcOpReturnOutputVbytes, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, clPoolAbi, clPoolManagerAbi, clPositionManagerAbi, clQuoterAbi, clRouterAbi, clTickLensAbi, classifySponsorError, connectionAbi, consoleLogger, convertTransactionInstructionToRaw, createInvariant, deepMerge, defaultHookAbi, dexInvariant, encodeAddress, encodeBtcPayloadToBytes, encodeContractCalls, erc20Abi, erc4626Abi, estimateBitcoinTxSize, estimateSwapSpeedTier, executionFailed, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, gasEstimationFailed, getAndFormatReserveEModes, getAssetManagerIdl, getAssetManagerProgram, getCompoundedBalance, getConnectionIdl, getConnectionProgram, getEvmViemChain, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getProvider, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, intentCreationFailed, isApprovalSupportedChainKeyType, isAuthFailure, isAuthStatus, isBackendHttpError, isBalnMigrateParams, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, isDexApproveError, isDexCreateIntentError, isDexError, isEvmChainKeyType, isEvmSpokeChainConfig, isEvmSpokeOnlyChainKeyType, isEvmWalletProviderType, isFeatureError, isFillEvent, isHubChainKeyType, isIconAddress, isIconChainKeyType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveChainKeyType, isJsonRpcPayloadResponse, isLeverageYieldAllowanceCheckError, isLeverageYieldApproveError, isLeverageYieldCreateIntentError, isLeverageYieldError, isLeverageYieldLookupError, isLeverageYieldPostExecutionError, isLeverageYieldSwapError, isMigrateOrchestrationError, isMigrationAllowanceCheckError, isMigrationApproveError, isMigrationCreateIntentError, isMigrationError, isMigrationLookupError, isMoneyMarketAllowanceCheckError, isMoneyMarketApproveError, isMoneyMarketCreateIntentError, isMoneyMarketError, isMoneyMarketGasEstimationError, isMoneyMarketOrchestrationError, isNativeBitcoinTransfer, isNearChainKeyType, isOptionalBitcoinWalletProviderType, isOptionalEvmWalletProviderType, isOptionalStellarWalletProviderType, isPartnerError, isPartnerFeeAmount, isPartnerFeePercentage, isPostExecutionError, isRawDestinationParams, isRecoveryError, isResponseAddressType, isResponseSigningType, isRevertMigrationOrchestrationError, isSodaxError, isSolanaChainKeyType, isSolanaNativeToken, isSonicChainKeyType, isSpokeApproveParamsEvmSpoke, isSpokeApproveParamsHub, isSpokeApproveParamsStellar, isSpokeIsAllowanceValidParamsEvmSpoke, isSpokeIsAllowanceValidParamsHub, isSpokeIsAllowanceValidParamsStellar, isSponsoringConfigError, isSponsoringLookupError, isSponsoringOrchestrationError, isStacksChainKeyType, isStakeOrchestrationError, isStakingAllowanceCheckError, isStakingApproveError, isStakingCreateIntentError, isStakingError, isStakingInfoFetchError, isStakingOrchestrationError, isStellarChainKeyType, isStellarWalletProviderType, isSuiChainKeyType, isSwapCreateIntentError, isSwapError, isUndefinedOrValidWalletProviderForChainKey, isUnifiedBnUSDMigrateParams, leverageYieldInvariant, lookupFailed, mapRelayFailure, mergeSodaxConfig, messageOf, migrationInvariant, mintPositionParamsAbi, mmInvariant, modifyLiquidityParamsAbi, nativeToUSD, noopAnalytics, normalize, normalizeBN, normalizePsbtToBase64, normalizeSignatureToBase64, normalizedToUsd, pancakeSwapInfinityDefaultHookAbi, pancakeSwapInfinityPoolManagerAbi, pancakeSwapInfinityPositionManagerAbi, parseToStroops, parseTokenArrayFromJson, partnerInvariant, permit2Abi, poolAbi, poolKeyAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, recoveryInvariant, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, resolveAnalytics, resolveLogger, retry, reverseEncodeAddress, robinhoodChain, serializeAddressData, silentLogger, sleep, sodaxInvariant, sonicWalletFactoryAbi, spokeAssetManagerAbi, sponsoringInvariant, stakedSodaAbi, stakingInvariant, stakingRouterAbi, stataTokenFactoryAbi, submitTransaction, swapExactInSingleParamsAbi, swapInvariant, toCreateBridgeIntentParamsV2, uiPoolDataAbi, universalRouterAbi, unknownFailed, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
19605
+ export { ALLOWANCE_CHECK_CODES, APPROVE_CODES, type ActivateStellarAccountParams, type ActivateStellarAccountResult, type AggregatedReserveData, type AllowanceCheckErrorCode, type AllowanceInfo, type AllowanceResponse, type AllowanceTransferDetails, type AnalyticsActionData, type ApiResponse, type ApprovalTxs, type ApproveErrorCode, type ApyRange, type AssetDepositAction, type AssetEntry, AssetService, type AssetServiceConstructorParams, type AssetWithdrawAction, type AutoSwapPreferences, BackendApiService, type BackendApiServiceOptions, BackendHttpError, type BalanceCollector, type BalanceReadContext, type BalnLockParams, type BalnMigrateAction, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, type BitcoinBoundExtras, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinUTXO, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeAction, type BridgeAllowanceCheckError, type BridgeAllowanceCheckErrorCode, BridgeApiService, type BridgeApiServiceOptions, type BridgeApproveError, type BridgeApproveErrorCode, type BridgeCreateIntentError, type BridgeCreateIntentErrorCode, type BridgeError, type BridgeErrorCode, type BridgeExtras, type BridgeLookupError, type BridgeLookupErrorCode, type BridgeOrchestrationError, type BridgeOrchestrationErrorCode, type BridgeParams, BridgeService, type BridgeServiceConstructorParams, type BtcPayload, CREATE_INTENT_CODES, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CallResponse, type CancelIntentActionParams, type CancelIntentParams, type CancelUnstakeAction, type CancelUnstakeParams, type ClClaimRewardsParams, type ClDecreaseLiquidityParams, type ClGetPoolDataParams, type ClIncreaseLiquidityParams, type ClLiquidityClaimRewardsAction, type ClLiquidityDecreaseLiquidityAction, type ClLiquidityIncreaseLiquidityAction, type ClLiquidityWithdrawAction, type ClMintPositionEventLog, type ClPositionInfo, ClService, type ClServiceConstructorParams, type ClSupplyAction, type ClSupplyParams, type ClWithdrawParams, type ClaimAction, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, type ConcentratedLiquidityParams, type ConcentratedLiquidityTokenInfo, ConfigService, type ConfigServiceConstructorParams, type ConnMsg, type CreateAssetDepositParams, type CreateAssetWithdrawParams, type CreateBridgeIntentParams, type CreateIntentErrorCode, type CreateIntentParams, type CreateIntentResult, type CreateLimitOrderParams, type CreateSonicSwapIntentParams, type CreateVaultIntentResult, type CreateViemPublicClientParams, CustomSorobanServer, CustomStellarAccount, DETAILED_STATUS_NOT_DELIVERED, type DepositParams, type DepositSimulationParams, type DestinationParamsType, type DetailedLock, type DetailedStatusError, type DetailedStatusErrorCode, type DetailedSwapStatus, type DetailedSwapStatusKey, type DexApproveError, type DexApproveErrorCode, type DexCreateIntentError, type DexCreateIntentErrorCode, type DexError, type DexErrorCode, DexService, type DexServiceConstructorParams, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, type EnrichedToken, type Erc20ApprovalPlan, type Erc20ApprovalPlanReason, type Erc20ApproveParams, type Erc20GetAllowanceParams, type Erc20IsAllowanceParams, type Erc20PlanApprovalParams, Erc20Service, type Erc20Token, Erc4626Service, type EstimateGasParams, EvmAssetManagerService, type EvmDepositToDataParams, EvmHubProvider, type EvmHubProviderConstructorParams, EvmSolverService, EvmSpokeService, EvmVaultTokenService, type EvmWithdrawAssetDataParams, type ExecuteMsg, type FeatureInvariant, type FeeData, type FeeTokenApproveAction, type FeeTokenApproveParams, type FetchHubAssetBalancesParams, type FillEvent, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, GAS_ESTIMATION_CODES, type GasEstimationErrorCode, type GetBalanceParams, type GetBalancesParams, type GetDepositParams, type GetIntentSubmitTxExtraDataParams, type GetPacketParams, type GetPacketResponse, type GetQuoteParams, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeServiceType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, type GetTxReceiptType, type GetUserIntentParams, type GetUserRouterParams, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HookRequest, HookService, HttpRelayError, type HubAssetBalance, type HubProvider, type IconJsonRpcVersion, IconSpokeService, type IcxCreateRevertMigrationParams, type IcxMigrateAction, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRevertMigrationAction, type IcxRevertMigrationParams, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, type InjectiveBalance, InjectiveSpokeService, type InstantUnstakeAction, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapResult, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentData, IntentDataService, IntentDataType, type IntentDeliveryInfo, IntentFilledEventAbi, type IntentFilledEventLog, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentTxResult, IntentsAbi, type JsonRpcPayloadResponse, LOOKUP_CODES, LTV_PRECISION, LendingPoolService, type LendingPoolServiceConstructorParams, type LeverageYieldAction, type LeverageYieldAllowanceCheckError, type LeverageYieldAllowanceCheckErrorCode, type LeverageYieldAllowanceParams, LeverageYieldApiService, type LeverageYieldApiServiceOptions, type LeverageYieldApproveError, type LeverageYieldApproveErrorCode, type LeverageYieldApproveParams, type LeverageYieldApr, type LeverageYieldCreateIntentError, type LeverageYieldCreateIntentErrorCode, type LeverageYieldEffectiveApr, type LeverageYieldError, type LeverageYieldErrorCode, type LeverageYieldLookupError, type LeverageYieldLookupErrorCode, type LeverageYieldLsdApr, type LeverageYieldPosition, type LeverageYieldPostExecutionError, type LeverageYieldPostExecutionErrorCode, type LeverageYieldQuoteParams, LeverageYieldService, type LeverageYieldServiceConstructorParams, type LeverageYieldSwapDepositParams, type LeverageYieldSwapError, type LeverageYieldSwapErrorCode, type LeverageYieldSwapPayload, type LeverageYieldSwapWithdrawParams, type LimitOrderActionParams, LockupMultiplier, LockupPeriod, type LookupErrorCode, type MapRelayFailureCtx, type MigrateOrchestrationError, type MigrateOrchestrationErrorCode, type MigrationAction, type MigrationAllowanceCheckError, type MigrationAllowanceCheckErrorCode, type MigrationApproveError, type MigrationApproveErrorCode, type MigrationCreateIntentError, type MigrationCreateIntentErrorCode, type MigrationDirection, type MigrationError, type MigrationErrorCode, type MigrationLookupError, type MigrationLookupErrorCode, type MigrationOp, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConstructorParams, type MigrationTokens, MintPositionEventAbi, type MintPositionEventLog, type MoneyMarketAction, type MoneyMarketAllowanceCheckError, type MoneyMarketAllowanceCheckErrorCode, type MoneyMarketAllowanceParams, type MoneyMarketApproveActionParams, type MoneyMarketApproveError, type MoneyMarketApproveErrorCode, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowActionParams, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketCreateIntentError, type MoneyMarketCreateIntentErrorCode, MoneyMarketDataService, type MoneyMarketDataServiceConstructorParams, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketGasEstimationError, type MoneyMarketGasEstimationErrorCode, type MoneyMarketOrchestrationError, type MoneyMarketOrchestrationErrorCode, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayActionParams, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConstructorParams, type MoneyMarketSupplyActionParams, type MoneyMarketSupplyParams, type MoneyMarketWithdrawActionParams, type MoneyMarketWithdrawParams, NEAR_DEFAULT_GAS, NEAR_STORAGE_DEPOSIT, NearSpokeService, ORACLE_CANDLE_INTERVALS, type OnDemandBtcPayload, type OnDemandRelayData, type OptionalRaw, type OptionalSkipSimulation, type OptionalTimeout, type OracleCandle, type OracleCandleInterval, type OracleCandlesResponse, type OracleMarketInterval, type OracleMarketsResponse, type OrderbookResponse, type PacketData, type PartnerAction, type PartnerError, type PartnerErrorCode, type PartnerFeeClaimAssetBalance, type PartnerFeeClaimCancelAction, type PartnerFeeClaimCancelParams, PartnerFeeClaimService, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapAction, type PartnerFeeClaimSwapParams, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, Permit2Service, type PermitBatch, type PermitDetails, type PermitSingle, type PoolBaseCurrencyHumanized, type PoolData, type PoolRewardConfig, type PoolSpokeAssets, type PostExecutionError, type PostExecutionErrorCode, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, RAY, RAY_DECIMALS, RELAY_ERROR_CODES, RELAY_FALLBACK_FLOOR_MS, RELAY_REQUEST_TIMEOUT_MS, RadfiApiError, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiErrorBody, type RadfiMaxSpentResponse, RadfiProvider, type RadfiProviderOptions, type RadfiResponseEnvelope, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawDestinationParams, type RecoveryAction, type RecoveryError, type RecoveryErrorCode, RecoveryService, type RecoveryServiceConstructorParams, type RelayAction, type RelayAndWaitParams, type RelayCode, type RelayErrorCode, type RelayExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayWrappedErrorCode, type RequestConfig, type RequestOverrideConfig, type RequestTrustlineParams, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResolvedAnalytics, type ResponseAddressType, type ResponseSigningType, type RevertMigrationOrchestrationError, type RevertMigrationOrchestrationErrorCode, type RewardInfoHumanized, SECONDS_PER_YEAR, SODAX_ERROR_CODES, SODAX_FEATURES, SPEED_TIER_SECONDS, SPEED_TIER_THRESHOLDS, SPONSOR_CONFIG_TTL_MS, STELLAR_BASE_RESERVE_TTL_MS, STELLAR_TRUSTLINE_MIN_XLM_STROOPS, type SendMessageParams, type SetSwapPreferenceAction, type SetSwapPreferenceParams, Sodax, SodaxError, type SodaxErrorCode, type SodaxErrorContext, type SodaxErrorJSON, type SodaxPhase, SolanaSpokeService, SolverApiService, SonicSpokeService, type SpokeApproveParams, type SpokeApproveParamsEvmSpoke, type SpokeApproveParamsHub, type SpokeApproveParamsStellar, type SpokeIsAllowanceValidParams, type SpokeIsAllowanceValidParamsEvmSpoke, type SpokeIsAllowanceValidParamsHub, type SpokeIsAllowanceValidParamsOther, type SpokeIsAllowanceValidParamsStellar, SpokeService, type SpokeServiceConstructorParams, type SpokeServiceType, type SponsorFailureAction, type SponsorFailureClass, type SponsoringAction, SponsoringApiService, type SponsoringApiServiceOptions, type SponsoringConfigError, type SponsoringConfigErrorCode, type SponsoringLookupError, type SponsoringLookupErrorCode, type SponsoringOrchestrationError, type SponsoringOrchestrationErrorCode, SponsoringService, StacksSpokeService, type StakeAction, type StakeOrchestrationError, type StakeOrchestrationErrorCode, type StakeParams, type StakingActionType, type StakingActionUnion, type StakingAllowanceCheckError, type StakingAllowanceCheckErrorCode, type StakingApproveError, type StakingApproveErrorCode, type StakingConfig, type StakingCreateIntentError, type StakingCreateIntentErrorCode, type StakingError, type StakingErrorCode, type StakingInfo, type StakingInfoFetchError, type StakingInfoFetchErrorCode, StakingLogic, type StakingOrchestrationError, type StakingOrchestrationErrorCode, type StakingParamsUnion, StakingService, type StakingServiceConstructorParams, type State, type StellarAccountStatus, StellarSpokeService, type SubmitTxParams, type SubmitTxResponse, SuiGrpcTransport, SuiSpokeService, SupportedMigrationTokens, type SwapAction, type SwapActionParams, type SwapCreateIntentError, type SwapCreateIntentErrorCode, type SwapError, type SwapErrorCode, type SwapExtras, type SwapResponse, SwapService, type SwapServiceConstructorParams, type SwapSpeedTier, type SwapSpeedTierParams, type SwapSpeedTierResult, SwapsApiService, type SwapsApiServiceOptions, type TokenSpenderPair, type TokenWithConversion, type TxHashPair, type TxStatus, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UiPoolDataProviderServiceConstructorParams, type UnifiedBnUSDMigrateAction, type UnifiedBnUSDMigrateParams, type UnstakeAction, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type VaultSwapActionParams, type VaultSwapResponse, type VerifySimulationParams, type VerifyTxHashParams, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitForTxReceiptParams, type WaitForTxReceiptReturnType, type WaitUntilIntentExecutedPayload, type WalletBalanceMap, type WalletMode, type WalletSimulationParams, type WithdrawHubAssetAction, type WithdrawHubAssetParams, type WithdrawInfo, adjustAmountByFee, allowanceCheckFailed, approveFailed, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bridgeInvariant, calcOpReturnOutputVbytes, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, canonicalizeBitcoinAddress, clPoolAbi, clPoolManagerAbi, clPositionManagerAbi, clQuoterAbi, clRouterAbi, clTickLensAbi, classifySponsorError, connectionAbi, consoleLogger, convertTransactionInstructionToRaw, createBalanceCollector, createInvariant, deepMerge, defaultHookAbi, dexInvariant, encodeAddress, encodeBtcPayloadToBytes, encodeContractCalls, encodeTokenIdentifier, erc20Abi, erc4626Abi, estimateBitcoinTxSize, estimateSwapSpeedTier, executionFailed, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, gasEstimationFailed, getAndFormatReserveEModes, getAssetManagerIdl, getAssetManagerProgram, getCompoundedBalance, getConnectionIdl, getConnectionProgram, getEvmViemChain, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getProvider, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, intentCreationFailed, isApprovalSupportedChainKeyType, isAuthFailure, isAuthStatus, isBackendHttpError, isBalnMigrateParams, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, isDexApproveError, isDexCreateIntentError, isDexError, isEvmChainKeyType, isEvmSpokeChainConfig, isEvmSpokeOnlyChainKeyType, isEvmWalletProviderType, isFeatureError, isFillEvent, isHubChainKeyType, isIconAddress, isIconChainKeyType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveChainKeyType, isJsonRpcPayloadResponse, isLeverageYieldAllowanceCheckError, isLeverageYieldApproveError, isLeverageYieldCreateIntentError, isLeverageYieldError, isLeverageYieldLookupError, isLeverageYieldPostExecutionError, isLeverageYieldSwapError, isMigrateOrchestrationError, isMigrationAllowanceCheckError, isMigrationApproveError, isMigrationCreateIntentError, isMigrationError, isMigrationLookupError, isMoneyMarketAllowanceCheckError, isMoneyMarketApproveError, isMoneyMarketCreateIntentError, isMoneyMarketError, isMoneyMarketGasEstimationError, isMoneyMarketOrchestrationError, isNativeBitcoinTransfer, isNearChainKeyType, isOptionalBitcoinWalletProviderType, isOptionalEvmWalletProviderType, isOptionalStellarWalletProviderType, isOracleCandleInterval, isPartnerError, isPartnerFeeAmount, isPartnerFeePercentage, isPostExecutionError, isRawDestinationParams, isRecoveryError, isResponseAddressType, isResponseSigningType, isRevertMigrationOrchestrationError, isSodaxError, isSolanaChainKeyType, isSolanaNativeToken, isSonicChainKeyType, isSpokeApproveParamsEvmSpoke, isSpokeApproveParamsHub, isSpokeApproveParamsStellar, isSpokeIsAllowanceValidParamsEvmSpoke, isSpokeIsAllowanceValidParamsHub, isSpokeIsAllowanceValidParamsStellar, isSponsoringConfigError, isSponsoringLookupError, isSponsoringOrchestrationError, isStacksChainKeyType, isStakeOrchestrationError, isStakingAllowanceCheckError, isStakingApproveError, isStakingCreateIntentError, isStakingError, isStakingInfoFetchError, isStakingOrchestrationError, isStellarChainKeyType, isStellarWalletProviderType, isSuiChainKeyType, isSwapCreateIntentError, isSwapError, isUndefinedOrValidWalletProviderForChainKey, isUnifiedBnUSDMigrateParams, isValidBitcoinAddress, isValidInjectiveAddress, isValidNearAccountId, leverageYieldInvariant, lookupFailed, mapRelayFailure, mergeSodaxConfig, messageOf, migrationInvariant, mintPositionParamsAbi, mmInvariant, modifyLiquidityParamsAbi, nativeToUSD, noopAnalytics, normalize, normalizeBN, normalizePsbtToBase64, normalizeSignatureToBase64, normalizedToUsd, pancakeSwapInfinityDefaultHookAbi, pancakeSwapInfinityPoolManagerAbi, pancakeSwapInfinityPositionManagerAbi, parseToStroops, parseTokenArrayFromJson, partnerInvariant, permit2Abi, poolAbi, poolKeyAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, recoveryInvariant, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, resolveAnalytics, resolveLogger, retry, reverseEncodeAddress, robinhoodChain, serializeAddressData, settleWalletBalances, silentLogger, sleep, sodaxInvariant, sonicWalletFactoryAbi, spokeAssetManagerAbi, sponsoringInvariant, stakedSodaAbi, stakingInvariant, stakingRouterAbi, stataTokenFactoryAbi, submitTransaction, swapExactInSingleParamsAbi, swapInvariant, toCreateBridgeIntentParamsV2, uiPoolDataAbi, universalRouterAbi, unknownFailed, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };