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

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
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';
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
  /**
@@ -7903,6 +7903,20 @@ declare class BridgeApiService implements ResultifiedBridgeApiV2 {
7903
7903
  getTimeout(): number;
7904
7904
  }
7905
7905
 
7906
+ /** An `intent-filled` entry in `IntentResponse.events`. Narrow with `isFillEvent`. */
7907
+ declare const FillEventSchema: v.ObjectSchema<{
7908
+ readonly eventType: v.LiteralSchema<"intent-filled", undefined>;
7909
+ readonly txHash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
7910
+ readonly intentState: v.ObjectSchema<{
7911
+ readonly remainingInput: v.StringSchema<undefined>;
7912
+ }, undefined>;
7913
+ }, undefined>;
7914
+ /**
7915
+ * Candle bucket sizes the oracle serves (60s / 300s / 3600s / 86400s). Runtime source of truth for
7916
+ * the public `OracleCandleInterval` union, which is derived from it in `BackendApiService.ts`.
7917
+ */
7918
+ declare const ORACLE_CANDLE_INTERVALS: readonly ["1m", "5m", "1h", "1d"];
7919
+
7906
7920
  /** Full details of a single swap intent as stored and returned by the backend. */
7907
7921
  interface IntentResponse {
7908
7922
  intentHash: string;
@@ -8022,6 +8036,45 @@ interface MoneyMarketBorrowers {
8022
8036
  offset: number;
8023
8037
  limit: number;
8024
8038
  }
8039
+ /** Interval keys accepted by the oracle candles endpoint (bucket sizes 60s / 300s / 3600s / 86400s). */
8040
+ type OracleCandleInterval = (typeof ORACLE_CANDLE_INTERVALS)[number];
8041
+ /** One selectable candle interval in the oracle markets discovery payload. */
8042
+ interface OracleMarketInterval {
8043
+ /**
8044
+ * Interval id for {@link BackendApiService.getOracleCandles}. Typed `string`, not
8045
+ * `OracleCandleInterval`: discovery must survive the backend adding an interval this SDK version
8046
+ * does not know, so membership-test against `ORACLE_CANDLE_INTERVALS` before passing it on.
8047
+ */
8048
+ key: string;
8049
+ label: string;
8050
+ seconds: number;
8051
+ }
8052
+ /** Discovery payload for the oracle candle store: quote currency, selectable intervals, and covered symbols. */
8053
+ interface OracleMarketsResponse {
8054
+ quote: string;
8055
+ intervals: OracleMarketInterval[];
8056
+ symbols: string[];
8057
+ }
8058
+ /**
8059
+ * One USD OHLC bucket. `timestamp` is the bucket START in UNIX seconds; prices are USD decimal
8060
+ * strings. Treat `final === false` as "still forming" — the backend sends it only on the current
8061
+ * bucket and omits it on closed ones, so absent (or `true`) means closed.
8062
+ */
8063
+ interface OracleCandle {
8064
+ timestamp: number;
8065
+ open: string;
8066
+ high: string;
8067
+ low: string;
8068
+ close: string;
8069
+ final?: boolean;
8070
+ }
8071
+ /** GET /oracle/candles response: the echoed query dimensions plus oldest-first candles (no volume field). */
8072
+ interface OracleCandlesResponse {
8073
+ symbol: string;
8074
+ quote: string;
8075
+ interval: OracleCandleInterval;
8076
+ candles: OracleCandle[];
8077
+ }
8025
8078
  /** Construction options for {@link BackendApiService}. */
8026
8079
  type BackendApiServiceOptions = {
8027
8080
  /**
@@ -8043,6 +8096,7 @@ type BackendApiServiceOptions = {
8043
8096
  * - **Solver orderbook** — read open intents waiting to be filled.
8044
8097
  * - **Money market** — query per-user positions, per-reserve asset stats,
8045
8098
  * and paginated borrower/supplier lists.
8099
+ * - **Oracle** — USD OHLC candle discovery and reads for charting.
8046
8100
  *
8047
8101
  * All public methods return `Promise<Result<T>>` — they never throw. On network
8048
8102
  * failure, timeout, non-2xx HTTP response, or unexpected response shape the
@@ -8219,6 +8273,39 @@ declare class BackendApiService implements IConfigApiV1 {
8219
8273
  offset: string;
8220
8274
  limit: string;
8221
8275
  }, config?: RequestOverrideConfig): Promise<Result<MoneyMarketBorrowers>>;
8276
+ /**
8277
+ * Fetch the oracle candle store's discovery payload: the quote currency (currently always
8278
+ * `"USD"`), the selectable candle intervals, and the canonical symbols that have candle data.
8279
+ *
8280
+ * Use this to populate a symbol picker and interval switcher before calling
8281
+ * {@link getOracleCandles}.
8282
+ *
8283
+ * @returns `Result<OracleMarketsResponse>` — on success, `{ quote, intervals, symbols }`.
8284
+ */
8285
+ getOracleMarkets(config?: RequestOverrideConfig): Promise<Result<OracleMarketsResponse>>;
8286
+ /**
8287
+ * Fetch USD OHLC candles for a symbol over the half-open time range `[from, to)`.
8288
+ *
8289
+ * `from` and `to` are UNIX **seconds** (integers); `to` is exclusive and must exceed `from`,
8290
+ * and the range may cover at most 5000 buckets of the requested interval (invalid or wider
8291
+ * ranges fail with HTTP 400). A valid range with no stored candles resolves `ok` with
8292
+ * `candles: []`; an unknown symbol currently does the same rather than returning 404. The last
8293
+ * candle may still be forming; re-poll while its `final === false`.
8294
+ * Responses are cached server-side for roughly 10 seconds per distinct URL.
8295
+ *
8296
+ * @param params.symbol - Canonical symbol, exact case, from {@link getOracleMarkets} (e.g. `"ETH"`).
8297
+ * @param params.interval - Candle bucket size: `'1m' | '5m' | '1h' | '1d'`.
8298
+ * @param params.from - Range start, UNIX seconds, inclusive.
8299
+ * @param params.to - Range end, UNIX seconds, exclusive.
8300
+ * @returns `Result<OracleCandlesResponse>` — on success, the echoed query dimensions and
8301
+ * oldest-first candles with USD decimal-string prices (no volume field).
8302
+ */
8303
+ getOracleCandles(params: {
8304
+ symbol: string;
8305
+ interval: OracleCandleInterval;
8306
+ from: number;
8307
+ to: number;
8308
+ }, config?: RequestOverrideConfig): Promise<Result<OracleCandlesResponse>>;
8222
8309
  /**
8223
8310
  * Fetch the complete SODAX runtime configuration in a single request.
8224
8311
  *
@@ -8868,6 +8955,50 @@ type GetDepositParams<ChainKey extends SpokeChainKey = SpokeChainKey> = {
8868
8955
  srcAddress: GetAddressType<ChainKey>;
8869
8956
  token: GetTokenAddressType<ChainKey>;
8870
8957
  };
8958
+ /**
8959
+ * Parameters for reading a user's own wallet balance of a single token on a spoke chain.
8960
+ *
8961
+ * Unlike {@link GetDepositParams} (which reads the protocol asset-manager holding and keys
8962
+ * the token by raw address), this reads the balance held by `srcAddress` itself. `token` is
8963
+ * the full {@link XToken} so the reader can detect the native coin and resolve chain-specific
8964
+ * token identifiers (EVM erc20 address, Solana mint, Sui coinType, Soroban contract, …).
8965
+ *
8966
+ * The reader picks its RPC provider from `srcChainKey` and the on-chain identifier from
8967
+ * `token.address`; it never consults `token.chainKey`. Passing a token that does not live on
8968
+ * `srcChainKey` therefore reads the wrong chain and — on an EVM target — resolves to `0n` rather
8969
+ * than an error, so keep the chain key and the token list in step. This is NOT enforced: a few
8970
+ * config entries carry a `chainKey` that disagrees with where the address actually lives, so the
8971
+ * field is not reliable enough to validate against.
8972
+ *
8973
+ * Failure contract: this single-token read REJECTS on a network, RPC, or contract-read failure, and
8974
+ * the router turns that into an unsuccessful `Result`. The batch variant is deliberately more
8975
+ * forgiving — see {@link GetBalancesParams}.
8976
+ */
8977
+ type GetBalanceParams<ChainKey extends SpokeChainKey = SpokeChainKey> = {
8978
+ srcChainKey: ChainKey;
8979
+ srcAddress: GetAddressType<ChainKey>;
8980
+ token: XToken;
8981
+ };
8982
+ /**
8983
+ * Parameters for reading a user's own wallet balances of multiple tokens on a spoke chain.
8984
+ * Per-chain implementations batch the reads where the chain supports it (EVM multicall3, ICON
8985
+ * `tryAggregate`, Injective portfolio).
8986
+ *
8987
+ * Returns `Record<tokenAddress, bigint>` in smallest units. A token that could not be read is logged
8988
+ * through the SDK logger and reported as `0n`, so one flaky token never discards the balances that
8989
+ * did resolve. Callers therefore cannot tell a failed read from an empty wallet; the direction is
8990
+ * deliberately conservative — under-reporting blocks a spend, it never permits one.
8991
+ *
8992
+ * The `Result` fails when the whole batch is unusable: an invalid chain key, a shared round-trip
8993
+ * every token depends on (ICON `tryAggregate`, Injective's portfolio fetch), or a batch in which NO
8994
+ * token could be read — a dead or rate-limited RPC would otherwise render as "this wallet is empty
8995
+ * on every asset".
8996
+ */
8997
+ type GetBalancesParams<ChainKey extends SpokeChainKey = SpokeChainKey> = {
8998
+ srcChainKey: ChainKey;
8999
+ srcAddress: GetAddressType<ChainKey>;
9000
+ tokens: readonly XToken[];
9001
+ };
8871
9002
  type DepositSimulationParams = {
8872
9003
  spokeChainID: SpokeChainKey;
8873
9004
  token: Hex;
@@ -8981,6 +9112,38 @@ type RawDestinationParams = {
8981
9112
  dstAddress: string;
8982
9113
  };
8983
9114
 
9115
+ /** A wallet balance map in smallest units, keyed by `token.address`. */
9116
+ type WalletBalanceMap = Record<string, bigint>;
9117
+ type BalanceReadContext = {
9118
+ readonly logger: SodaxLogger;
9119
+ readonly chainKey: SpokeChainKey;
9120
+ };
9121
+ /**
9122
+ * Accumulates a chain's per-token balance reads.
9123
+ *
9124
+ * A token that could not be read resolves to `0n` — the same value an empty wallet produces — so
9125
+ * every failure is logged through the SDK logger, which is where an integrator's error sink is
9126
+ * wired. That keeps one flaky token from discarding the balances that did resolve, but it means a
9127
+ * caller cannot tell the two apart; {@link BalanceCollector.finish} therefore refuses the one case
9128
+ * where the distinction is unmistakable and dangerous: an entire batch that read nothing at all
9129
+ * (a dead or rate-limited RPC) would otherwise render as "this wallet is empty on every asset".
9130
+ */
9131
+ interface BalanceCollector {
9132
+ /** Record a balance that was actually read — including a genuine on-chain zero. */
9133
+ ok(tokenAddress: string, value: bigint): void;
9134
+ /** Record a failed read: logs the cause and falls back to `0n`. */
9135
+ fail(tokenAddress: string, reason: unknown): void;
9136
+ /** Return the map, or throw when a non-empty batch produced no successful read. */
9137
+ finish(): WalletBalanceMap;
9138
+ }
9139
+ declare function createBalanceCollector({ logger, chainKey }: BalanceReadContext): BalanceCollector;
9140
+ /**
9141
+ * Read every token independently into `collector`, so one failing token never discards the rest.
9142
+ * Chains with a native batch call (EVM multicall3, ICON `tryAggregate`, Injective portfolio) feed
9143
+ * the collector directly instead of using this.
9144
+ */
9145
+ declare function settleWalletBalances(collector: BalanceCollector, tokens: readonly XToken[], read: (token: XToken) => Promise<bigint>): Promise<void>;
9146
+
8984
9147
  /**
8985
9148
  * High-level request for routing an intent's output through a deployed delivery hook. Pick a hook by
8986
9149
  * its {@link HookKind}; the SDK resolves the hook's deployed address and encodes the payload it expects
@@ -9173,6 +9336,21 @@ declare class SonicSpokeService {
9173
9336
  * @returns {Promise<bigint>} The balance of the token.
9174
9337
  */
9175
9338
  getDeposit(params: GetDepositParams<SonicChainKey>): Promise<bigint>;
9339
+ /**
9340
+ * Get the user's own wallet balance of a token on the hub (Sonic) chain, in smallest units.
9341
+ * Native coin via `eth_getBalance`; erc20 via `balanceOf`.
9342
+ * @param {GetBalanceParams<SonicChainKey>} params - The chain key, user address, and token.
9343
+ * @returns {Promise<bigint>} The token balance in smallest units.
9344
+ */
9345
+ getWalletBalance(params: GetBalanceParams<SonicChainKey>): Promise<bigint>;
9346
+ /**
9347
+ * Get the user's own wallet balances of multiple tokens on the hub (Sonic) chain, in smallest
9348
+ * units. Non-native tokens are batched via multicall3 when the chain supports it, otherwise
9349
+ * read in parallel.
9350
+ * @param {GetBalancesParams<SonicChainKey>} params - The chain key, user address, and tokens.
9351
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
9352
+ */
9353
+ getWalletBalances(params: GetBalancesParams<SonicChainKey>): Promise<WalletBalanceMap>;
9176
9354
  /**
9177
9355
  * Execute a batch of contract calls through the Sonic wallet contract.
9178
9356
  * @param {Hex} payload - The encoded payload containing the calls array
@@ -9422,6 +9600,21 @@ declare class EvmSpokeService {
9422
9600
  * @returns {Promise<bigint>} The balance of the token deposited in the spoke chain asset manager.
9423
9601
  */
9424
9602
  getDeposit(params: GetDepositParams<EvmSpokeOnlyChainKey>): Promise<bigint>;
9603
+ /**
9604
+ * Get the user's own wallet balance of a token on an EVM spoke chain, in smallest units.
9605
+ * Native coin via `eth_getBalance` (Hedera scaled to canonical decimals); erc20 via `balanceOf`.
9606
+ * @param {GetBalanceParams<EvmSpokeOnlyChainKey>} params - The chain key, user address, and token.
9607
+ * @returns {Promise<bigint>} The token balance in smallest units.
9608
+ */
9609
+ getWalletBalance(params: GetBalanceParams<EvmSpokeOnlyChainKey>): Promise<bigint>;
9610
+ /**
9611
+ * Get the user's own wallet balances of multiple tokens on an EVM spoke chain, in smallest
9612
+ * units. Non-native tokens are batched via multicall3 when the chain supports it, otherwise
9613
+ * read in parallel.
9614
+ * @param {GetBalancesParams<EvmSpokeOnlyChainKey>} params - The chain key, user address, and tokens.
9615
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
9616
+ */
9617
+ getWalletBalances(params: GetBalancesParams<EvmSpokeOnlyChainKey>): Promise<WalletBalanceMap>;
9425
9618
  /**
9426
9619
  * Sends a message to the hub chain.
9427
9620
  * @param {SendMessageParams} params - Includes dstChainKey, the chain key of the hub chain.
@@ -9460,6 +9653,21 @@ declare class StacksSpokeService {
9460
9653
  * @returns {Promise<bigint>} The balance of the token.
9461
9654
  */
9462
9655
  getDeposit(params: GetDepositParams<StacksChainKey>): Promise<bigint>;
9656
+ /**
9657
+ * Get the user's own wallet balance of a token on Stacks, in smallest units. Native STX via the
9658
+ * Hiro REST `/extended/v1/address/{addr}/balances` endpoint; SIP-010 fungible tokens via the
9659
+ * read-only `get-balance` contract call. Unlike {@link getDeposit}, this reads the holding of
9660
+ * `srcAddress` (the user), not the protocol asset manager.
9661
+ * @param {GetBalanceParams<StacksChainKey>} params - The chain key, user address, and token.
9662
+ * @returns {Promise<bigint>} The token balance in smallest units.
9663
+ */
9664
+ getWalletBalance(params: GetBalanceParams<StacksChainKey>): Promise<bigint>;
9665
+ /**
9666
+ * Get the user's own wallet balances of multiple tokens on Stacks, in smallest units.
9667
+ * @param {GetBalancesParams<StacksChainKey>} params - The chain key, user address, and tokens.
9668
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
9669
+ */
9670
+ getWalletBalances(params: GetBalancesParams<StacksChainKey>): Promise<WalletBalanceMap>;
9463
9671
  /**
9464
9672
  * Sends a message to the hub chain.
9465
9673
  */
@@ -9878,6 +10086,20 @@ declare class BitcoinSpokeService {
9878
10086
  constructor(config: ConfigService);
9879
10087
  getBtcNetwork(chainId: BitcoinChainKey): networks.Network;
9880
10088
  getBalance(tokenAddress: string, walletAddress: string): Promise<bigint>;
10089
+ /**
10090
+ * Get the user's own wallet balance of a token on Bitcoin, in satoshis. Only native BTC is
10091
+ * readable (summed from confirmed/unconfirmed UTXOs). Non-native spoke tokens are Rune ids
10092
+ * (`block:tx`), whose amounts the Esplora UTXO endpoint does not carry, so they resolve to 0n.
10093
+ * @param {GetBalanceParams<BitcoinChainKey>} params - The chain key, user address, and token.
10094
+ * @returns {Promise<bigint>} The balance in satoshis.
10095
+ */
10096
+ getWalletBalance(params: GetBalanceParams<BitcoinChainKey>): Promise<bigint>;
10097
+ /**
10098
+ * Get the user's own wallet balances of multiple tokens on Bitcoin, in satoshis.
10099
+ * @param {GetBalancesParams<BitcoinChainKey>} params - The chain key, user address, and tokens.
10100
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10101
+ */
10102
+ getWalletBalances(params: GetBalancesParams<BitcoinChainKey>): Promise<WalletBalanceMap>;
9881
10103
  fetchScriptPubKey(utxo: BitcoinUTXO): Promise<string>;
9882
10104
  /**
9883
10105
  * Get the effective wallet address for hub wallet derivation and relay submission.
@@ -10048,6 +10270,22 @@ declare class NearSpokeService {
10048
10270
  * @returns {Promise<bigint>} The balance of the token.
10049
10271
  */
10050
10272
  getDeposit(params: GetDepositParams<NearChainKey>): Promise<bigint>;
10273
+ /**
10274
+ * Get the user's own wallet balance of a token on NEAR, in smallest units (yoctoNEAR for the
10275
+ * native coin). Native NEAR via the account's `viewAccount().amount`; NEP-141 tokens via the
10276
+ * token contract's `ft_balance_of` view. Reads the balance held by `srcAddress` (the user
10277
+ * wallet), not the protocol asset manager. Uses this service's own configured RPC provider.
10278
+ * @param {GetBalanceParams<NearChainKey>} params - The chain key, user address, and token.
10279
+ * @returns {Promise<bigint>} The token balance in smallest units.
10280
+ */
10281
+ getWalletBalance(params: GetBalanceParams<NearChainKey>): Promise<bigint>;
10282
+ /**
10283
+ * Get the user's own wallet balances of multiple tokens on NEAR, in smallest units. Fans out
10284
+ * over {@link getWalletBalance}, keyed by `token.address`.
10285
+ * @param {GetBalancesParams<NearChainKey>} params - The chain key, user address, and tokens.
10286
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10287
+ */
10288
+ getWalletBalances(params: GetBalancesParams<NearChainKey>): Promise<WalletBalanceMap>;
10051
10289
  /**
10052
10290
  * Whether `accountId` is storage-registered on a NEP-141 `token` contract. NEP-141 requires an
10053
10291
  * account to pay a one-time storage bond before it can receive (hold a balance of) the token, so
@@ -10154,6 +10392,21 @@ declare class SuiSpokeService {
10154
10392
  * @returns {Promise<bigint>} The balance of the token.
10155
10393
  */
10156
10394
  getDeposit(params: GetDepositParams<SuiChainKey>): Promise<bigint>;
10395
+ /**
10396
+ * Get the user's own wallet balance of a token on Sui, in smallest units. Unlike {@link getDeposit}
10397
+ * (which reads the protocol asset manager holding), this reads the balance held by `params.srcAddress`
10398
+ * itself. Native SUI is read via its canonical `0x2::sui::SUI` coin type; other coins use the token's
10399
+ * Sui coinType (`token.address`).
10400
+ * @param {GetBalanceParams<SuiChainKey>} params - The chain key, user address, and token.
10401
+ * @returns {Promise<bigint>} The token balance in smallest units.
10402
+ */
10403
+ getWalletBalance(params: GetBalanceParams<SuiChainKey>): Promise<bigint>;
10404
+ /**
10405
+ * Get the user's own wallet balances of multiple tokens on Sui, in smallest units.
10406
+ * @param {GetBalancesParams<SuiChainKey>} params - The chain key, user address, and tokens.
10407
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10408
+ */
10409
+ getWalletBalances(params: GetBalancesParams<SuiChainKey>): Promise<WalletBalanceMap>;
10157
10410
  /**
10158
10411
  * Fetch the asset manager config from the spoke chain.
10159
10412
  * @param {SuiChainKey} chainId - The Sui chain key.
@@ -10211,6 +10464,37 @@ declare class StellarSpokeService {
10211
10464
  private readonly baseFee;
10212
10465
  constructor(config: ConfigService);
10213
10466
  getBalance(params: GetDepositParams<StellarChainKey>): Promise<number>;
10467
+ /**
10468
+ * Get the user's own wallet balance of a token on Stellar, in smallest units. Native XLM returns
10469
+ * the spendable amount (total minus the minimum reserve and selling liabilities) via Horizon;
10470
+ * other assets return the Soroban token contract's `balance` for the user.
10471
+ * @param {GetBalanceParams<StellarChainKey>} params - The chain key, user address, and token.
10472
+ * @returns {Promise<bigint>} The token balance in smallest units.
10473
+ */
10474
+ getWalletBalance(params: GetBalanceParams<StellarChainKey>): Promise<bigint>;
10475
+ /**
10476
+ * Spendable XLM in stroops: the account's native balance minus its minimum reserve and selling
10477
+ * liabilities. Reporting the raw balance would let a user try to spend reserves the network
10478
+ * refuses to release.
10479
+ */
10480
+ private static spendableXlmStroops;
10481
+ /**
10482
+ * Simulate a Soroban token `balance` call. Takes the network passphrase and source account so a
10483
+ * batch can fetch them once; `getAccountClone()` hands each builder its own `Account`, because
10484
+ * `TransactionBuilder.build()` increments the source's sequence number and concurrent builders
10485
+ * would otherwise interleave on a shared one.
10486
+ */
10487
+ private simulateTokenBalance;
10488
+ /**
10489
+ * Get the user's own wallet balances of multiple tokens on Stellar, in smallest units.
10490
+ *
10491
+ * The network passphrase and the source account are the same for every token, so they are
10492
+ * fetched once per batch instead of once per token — and only when a partition actually needs
10493
+ * them, so an all-native request issues no Soroban calls at all.
10494
+ * @param {GetBalancesParams<StellarChainKey>} params - The chain key, user address, and tokens.
10495
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10496
+ */
10497
+ getWalletBalances(params: GetBalancesParams<StellarChainKey>): Promise<WalletBalanceMap>;
10214
10498
  buildPriorityStellarTransaction(account: CustomStellarAccount, network: rpc.Api.GetNetworkResponse, operation: xdr.Operation<Operation.InvokeHostFunction>): Promise<[Transaction$1, rpc.Api.SimulateTransactionResponse]>;
10215
10499
  buildDepositCall<Raw extends boolean>(params: DepositParams<StellarChainKey, Raw>): xdr.Operation<Operation.InvokeHostFunction>;
10216
10500
  buildSendMessageCall<Raw extends boolean>(params: SendMessageParams<StellarChainKey, Raw>): xdr.Operation<Operation.InvokeHostFunction>;
@@ -10288,6 +10572,21 @@ declare class SolanaSpokeService {
10288
10572
  */
10289
10573
  deposit<R extends boolean = false>(params: DepositParams<SolanaChainKey, R>): Promise<TxReturnType<SolanaChainKey, R>>;
10290
10574
  getDeposit(params: GetDepositParams<SolanaChainKey>): Promise<bigint>;
10575
+ /**
10576
+ * Get the user's own wallet balance of a token on Solana, in smallest units. Native SOL via
10577
+ * `getBalance`; SPL via the associated token account. The mint may belong to the legacy SPL
10578
+ * Token program or Token-2022 (e.g. xStock tokens), which derive different ATAs, so both
10579
+ * candidate ATAs are read in one call and the existing one is used.
10580
+ * @param {GetBalanceParams<SolanaChainKey>} params - The chain key, user address, and token.
10581
+ * @returns {Promise<bigint>} The token balance in smallest units.
10582
+ */
10583
+ getWalletBalance(params: GetBalanceParams<SolanaChainKey>): Promise<bigint>;
10584
+ /**
10585
+ * Get the user's own wallet balances of multiple tokens on Solana, in smallest units.
10586
+ * @param {GetBalancesParams<SolanaChainKey>} params - The chain key, user address, and tokens.
10587
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10588
+ */
10589
+ getWalletBalances(params: GetBalancesParams<SolanaChainKey>): Promise<WalletBalanceMap>;
10291
10590
  /**
10292
10591
  * Sends a message to the hub chain.
10293
10592
  * @param dstChainKey - The chain key of the hub chain.
@@ -10335,6 +10634,26 @@ declare class IconSpokeService {
10335
10634
  * @returns {Promise<bigint>} The balance of the token
10336
10635
  */
10337
10636
  getDeposit(params: GetDepositParams<IconChainKey>): Promise<bigint>;
10637
+ /**
10638
+ * Read an int-returning SCORE call. `iconService.call(...)` registers no result converter, so
10639
+ * `execute()` resolves the raw JSON-RPC `result` — a bare hex string for an int, not `{ value }`.
10640
+ */
10641
+ private readIrc2Balance;
10642
+ /**
10643
+ * Get the user's own wallet balance of a token on ICON, in smallest units. Native ICX is read
10644
+ * via `iconService.getBalance`; IRC-2 tokens via a `balanceOf(_owner)` call on the token contract.
10645
+ * @param {GetBalanceParams<IconChainKey>} params - The chain key, user address, and token.
10646
+ * @returns {Promise<bigint>} The token balance in smallest units.
10647
+ */
10648
+ getWalletBalance(params: GetBalanceParams<IconChainKey>): Promise<bigint>;
10649
+ /**
10650
+ * Get the user's own wallet balances of multiple tokens on ICON, in smallest units. Native ICX
10651
+ * is read via `iconService.getBalance`; IRC-2 balances are batched into a single `tryAggregate`
10652
+ * multicall so every `balanceOf(_owner)` read shares one round-trip.
10653
+ * @param {GetBalancesParams<IconChainKey>} params - The chain key, user address, and tokens.
10654
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10655
+ */
10656
+ getWalletBalances(params: GetBalancesParams<IconChainKey>): Promise<WalletBalanceMap>;
10338
10657
  /**
10339
10658
  * Sends a message to the hub chain.
10340
10659
  * @param {SendMessageParams} params - Includes dstChainKey, the chain key of the destination chain.
@@ -10397,6 +10716,7 @@ interface State {
10397
10716
  declare class InjectiveSpokeService {
10398
10717
  private readonly config;
10399
10718
  readonly chainGrpcWasmApi: ChainGrpcWasmApi;
10719
+ readonly indexerGrpcAccountPortfolioApi: IndexerGrpcAccountPortfolioApi;
10400
10720
  readonly txClient: TxGrpcApi;
10401
10721
  readonly endpoints: NetworkEndpoints;
10402
10722
  private readonly pollingIntervalMs;
@@ -10428,6 +10748,21 @@ declare class InjectiveSpokeService {
10428
10748
  * @returns {Promise<bigint>} The balance of the token.
10429
10749
  */
10430
10750
  getDeposit(params: GetDepositParams<InjectiveChainKey>): Promise<bigint>;
10751
+ /**
10752
+ * Get the user's own wallet balance of a token on Injective, in smallest units. On Injective every
10753
+ * asset is a bank coin, so the native coin (`inj`) and factory/peggy/IBC tokens are all read from the
10754
+ * account's portfolio bank balances and matched by denom. The denom is the chain's native denom for
10755
+ * the native coin and `params.token.address` for standard tokens.
10756
+ * @param {GetBalanceParams<InjectiveChainKey>} params - The chain key, user address, and token.
10757
+ * @returns {Promise<bigint>} The token balance in smallest units, or 0n when the account holds none.
10758
+ */
10759
+ getWalletBalance(params: GetBalanceParams<InjectiveChainKey>): Promise<bigint>;
10760
+ /**
10761
+ * Get the user's own wallet balances of multiple tokens on Injective, in smallest units.
10762
+ * @param {GetBalancesParams<InjectiveChainKey>} params - The chain key, user address, and tokens.
10763
+ * @returns {Promise<WalletBalanceMap>} A map of token address to balance in smallest units.
10764
+ */
10765
+ getWalletBalances(params: GetBalancesParams<InjectiveChainKey>): Promise<WalletBalanceMap>;
10431
10766
  getRawTransaction(chainId: string, senderAddress: string, contractAddress: string, msg: JsonObject, memo?: string, funds?: InjectiveCoin[]): Promise<InjectiveRawTransaction>;
10432
10767
  getState(chainId: InjectiveChainKey): Promise<State>;
10433
10768
  /**
@@ -10576,6 +10911,26 @@ declare class SpokeService {
10576
10911
  * @returns {Promise<bigint>} The balance of the token.
10577
10912
  */
10578
10913
  getDeposit<C extends SpokeChainKey>(params: GetDepositParams<C>): Promise<Result<bigint>>;
10914
+ /**
10915
+ * Get a user's own wallet balance of a single token on a spoke chain, in smallest units.
10916
+ * Chain-agnostic: dispatches to the per-chain service, which reads the native coin or the
10917
+ * chain's token standard (EVM erc20, Solana SPL, …). Unlike {@link getDeposit}, this reads
10918
+ * `srcAddress` itself, not the protocol asset manager.
10919
+ * @param {GetBalanceParams<C>} params - The chain key, user address, and token.
10920
+ * @returns {Promise<Result<bigint>>} The token balance in smallest units.
10921
+ */
10922
+ getWalletBalance<C extends SpokeChainKey>(params: GetBalanceParams<C>): Promise<Result<bigint>>;
10923
+ /**
10924
+ * Get a user's own wallet balances of multiple tokens on a spoke chain, in smallest units.
10925
+ * Chain-agnostic sibling of {@link getWalletBalance}; per-chain services batch the reads where the
10926
+ * chain supports it (e.g. EVM multicall3, ICON aggregated call data).
10927
+ * @param {GetBalancesParams<C>} params - The chain key, user address, and tokens.
10928
+ * @returns {Promise<Result<WalletBalanceMap>>} A map of token address to balance in smallest
10929
+ * units. A token that could not be read is logged and reported as `0n`; the `Result` fails when
10930
+ * the whole batch is unusable — invalid chain, a shared round-trip every token depends on, or a
10931
+ * batch in which no token could be read at all.
10932
+ */
10933
+ getWalletBalances<C extends SpokeChainKey>(params: GetBalancesParams<C>): Promise<Result<WalletBalanceMap>>;
10579
10934
  /**
10580
10935
  * Calls the connection contract on the spoke chain to send a message to the hub wallet, which then executes the message's payload.
10581
10936
  * @param {HubAddress} from - The address of the user on the hub chain.
@@ -10616,7 +10971,7 @@ declare class SuiGrpcTransport implements SuiTransport {
10616
10971
  readonly endpoint: string;
10617
10972
  private readonly client;
10618
10973
  constructor(endpoint: string);
10619
- getCoins(owner: string, coinType: string, limit?: number): Promise<SuiPaginatedCoins>;
10974
+ getCoins(owner: string, coinType: string, limit?: number, cursor?: string | null): Promise<SuiPaginatedCoins>;
10620
10975
  simulate(tx: SuiTransaction, sender: string): Promise<SuiExecutionResult>;
10621
10976
  estimateGas(tx: SuiTransaction, sender: string): Promise<SuiGasEstimate>;
10622
10977
  fetchLatestPackageId(objectId: string): Promise<string>;
@@ -12664,18 +13019,11 @@ declare const silentLogger: SodaxLogger;
12664
13019
  */
12665
13020
  declare function resolveLogger(option: SodaxLoggerOption | undefined): SodaxLogger;
12666
13021
 
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
13022
  type FillEvent = v.InferOutput<typeof FillEventSchema>;
12677
13023
  /** Narrows an `IntentResponse.events` entry, which is typed `unknown[]`. */
12678
13024
  declare const isFillEvent: (value: unknown) => value is FillEvent;
13025
+ /** Narrows an oracle markets `intervals[].key`, which is `string` so discovery tolerates an unknown interval. */
13026
+ declare const isOracleCandleInterval: (value: string) => value is OracleCandleInterval;
12679
13027
 
12680
13028
  /**
12681
13029
  * Estimated settlement-speed bucket for a swap token pair.
@@ -18887,4 +19235,4 @@ type DexApproveErrorCode = ApproveErrorCode;
18887
19235
  type DexApproveError = SodaxError<DexApproveErrorCode>;
18888
19236
  declare const isDexApproveError: (e: unknown) => e is SodaxError<ApproveErrorCode>;
18889
19237
 
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 };
19238
+ 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, 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, clPoolAbi, clPoolManagerAbi, clPositionManagerAbi, clQuoterAbi, clRouterAbi, clTickLensAbi, classifySponsorError, connectionAbi, consoleLogger, convertTransactionInstructionToRaw, createBalanceCollector, 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, 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, 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 };