@sodax/sdk 2.1.0-rc.3 → 2.1.0-rc.5

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
@@ -7551,11 +7551,23 @@ type ResultifiedSwapsApiV2 = {
7551
7551
  *
7552
7552
  * Reachable on the Sodax facade as `sodax.api.swaps`.
7553
7553
  */
7554
+ /** Construction options for {@link SwapsApiService}. */
7555
+ type SwapsApiServiceOptions = {
7556
+ /**
7557
+ * Whether a legacy `/be` suffix is trimmed off a per-call `baseURL` override. Defaults to `true`, the
7558
+ * migration behaviour. `BackendApiService` passes `false` when the `ApiConfig` states a `basePath`
7559
+ * explicitly: that marks a config written against the current contract, whose base URLs are deliberate
7560
+ * roots, so a trailing `/be` is a real path segment rather than the data API's mount.
7561
+ */
7562
+ trimLegacyOverrides?: boolean;
7563
+ };
7554
7564
  declare class SwapsApiService implements ResultifiedSwapsApiV2 {
7555
7565
  private readonly config;
7556
7566
  private readonly headers;
7557
7567
  private readonly logger;
7558
- constructor(config: SwapsApiConfig, logger?: SodaxLogger);
7568
+ /** See {@link SwapsApiServiceOptions.trimLegacyOverrides}. */
7569
+ private readonly trimsLegacyOverrides;
7570
+ constructor(config: SwapsApiConfig, logger?: SodaxLogger, options?: SwapsApiServiceOptions);
7559
7571
  /**
7560
7572
  * Build a `@sodax/swaps-api` client for a single call. Maps the SDK's `SwapsApiConfig`
7561
7573
  * (`baseURL`/`timeout`/`headers`) to the package's config (`baseUrl`/`timeout`/`headers`), layering
@@ -7623,7 +7635,9 @@ declare class SwapsApiService implements ResultifiedSwapsApiV2 {
7623
7635
  getPartnerFee(query: FeeQueryV2, config?: RequestOverrideConfig): Promise<Result<FeeResponseV2>>;
7624
7636
  /** Compute the protocol (solver) fee for a given input amount. */
7625
7637
  getSolverFee(query: FeeQueryV2, config?: RequestOverrideConfig): Promise<Result<FeeResponseV2>>;
7626
- /** Submit a swap transaction to be processed (relay, post-execution, etc.). Idempotent on `(txHash, srcChainKey)`. */
7638
+ /** Submit a swap transaction to be processed (relay, post-execution, etc.). Idempotent on `(txHash, srcChainKey)`.
7639
+ * Response is immediate after successful submission. Use getSubmitTxStatus to poll the status of the submission.
7640
+ */
7627
7641
  submitTx(body: SubmitTxRequestV2, config?: RequestOverrideConfig): Promise<Result<SubmitTxResponseV2>>;
7628
7642
  /** Get the processing status of a submitted swap transaction by `(txHash, srcChainKey)`. */
7629
7643
  getSubmitTxStatus(query: SubmitTxStatusQueryV2, config?: RequestOverrideConfig): Promise<Result<SubmitTxStatusResponseV2>>;
@@ -7635,6 +7649,16 @@ declare class SwapsApiService implements ResultifiedSwapsApiV2 {
7635
7649
  setHeaders(headers: Record<string, string>): void;
7636
7650
  /** Return the base URL the service is currently pointing at. */
7637
7651
  getBaseURL(): string;
7652
+ /**
7653
+ * Return the effective per-request timeout (ms) — the same value {@link buildClient} resolves, so
7654
+ * `SwapsApiConfig.timeout` being optional never leaks an `undefined` ceiling.
7655
+ *
7656
+ * Callers bounding a request tighter than this need it as the CEILING, because a
7657
+ * `RequestOverrideConfig.timeout` REPLACES the service value rather than lowering it: an override
7658
+ * derived from a caller budget alone would raise the bound whenever that budget is the larger of the
7659
+ * two. `SubmitTxAttempt.requestTimeout` clamps against both (`min(budget left in the attempt, this)`).
7660
+ */
7661
+ getTimeout(): number;
7638
7662
  }
7639
7663
 
7640
7664
  /** Result-wrapped {@link IStellarSponsoringApi} with per-request overrides. */
@@ -7719,18 +7743,30 @@ declare function toCreateBridgeIntentParamsV2(params: {
7719
7743
  * Per-call request overrides (base URL, timeout, headers) can be passed as the
7720
7744
  * optional last argument to any method via `RequestOverrideConfig`.
7721
7745
  *
7722
- * The Bridge API is served on the base backend host (`/bridge/*` sub-paths) — its config is resolved by
7723
- * `resolveBridgeApiConfig` (an alias of `resolveBaseApiConfig`), so it is typed as a flat
7724
- * {@link BaseApiConfig}. It defaults to the same host as the swaps client but is not configured with it:
7746
+ * The Bridge API hangs off the shared gateway root as `/bridge/*` — a sibling of the data API's `/be`
7747
+ * mount, not a child of it, so `resolveBridgeApiConfig` returns a flat {@link BaseApiConfig} with no
7748
+ * `basePath`. It defaults to the same host as the swaps client but is not configured with it:
7725
7749
  * a `swapsApiConfig` slice does not move the bridge routes; set `baseURL` / `baseApiConfig` instead.
7726
7750
  *
7727
7751
  * Reachable on the Sodax facade as `sodax.api.bridge`.
7728
7752
  */
7753
+ /** Construction options for {@link BridgeApiService}. */
7754
+ type BridgeApiServiceOptions = {
7755
+ /**
7756
+ * Whether a legacy `/be` suffix is trimmed off a per-call `baseURL` override. Defaults to `true`, the
7757
+ * migration behaviour. `BackendApiService` passes `false` when the `ApiConfig` states a `basePath`
7758
+ * explicitly: that marks a config written against the current contract, whose base URLs are deliberate
7759
+ * roots, so a trailing `/be` is a real path segment rather than the data API's mount.
7760
+ */
7761
+ trimLegacyOverrides?: boolean;
7762
+ };
7729
7763
  declare class BridgeApiService implements ResultifiedBridgeApiV2 {
7730
7764
  private readonly config;
7731
7765
  private readonly headers;
7732
7766
  private readonly logger;
7733
- constructor(config: BaseApiConfig, logger?: SodaxLogger);
7767
+ /** See {@link BridgeApiServiceOptions.trimLegacyOverrides}. */
7768
+ private readonly trimsLegacyOverrides;
7769
+ constructor(config: BaseApiConfig, logger?: SodaxLogger, options?: BridgeApiServiceOptions);
7734
7770
  /**
7735
7771
  * Issues a single HTTP request, validates the JSON body against `schema`, and
7736
7772
  * wraps the result in `Result<T>`. The service-level `baseURL`/`timeout`/
@@ -7813,9 +7849,12 @@ declare class BridgeApiService implements ResultifiedBridgeApiV2 {
7813
7849
  /** Return the base URL the service is currently pointing at. */
7814
7850
  getBaseURL(): string;
7815
7851
  /**
7816
- * Return the effective per-request timeout (ms). Callers that bound a request tighter than the
7817
- * service default (e.g. `pollBackendSubmitTx` clamping to its poll cutoff) need this as the ceiling,
7818
- * because a `RequestOverrideConfig.timeout` REPLACES the service value rather than lowering it.
7852
+ * Return the effective per-request timeout (ms).
7853
+ *
7854
+ * Callers bounding a request tighter than this need it as the CEILING, because a
7855
+ * `RequestOverrideConfig.timeout` REPLACES the service value rather than lowering it: an override
7856
+ * derived from a caller budget alone would raise the bound whenever that budget is the larger of the
7857
+ * two. `SubmitTxAttempt.requestTimeout` clamps against both (`min(budget left in the attempt, this)`).
7819
7858
  */
7820
7859
  getTimeout(): number;
7821
7860
  }
@@ -7969,7 +8008,25 @@ declare class BackendApiService implements IConfigApiV1 {
7969
8008
  private readonly config;
7970
8009
  private readonly headers;
7971
8010
  private readonly logger;
8011
+ /**
8012
+ * Whether a legacy `/be` suffix is trimmed off a per-call `baseURL` override. Mirrors the config-level
8013
+ * decision: an explicit `basePath` means the consumer writes complete roots, so their per-call value is
8014
+ * left exactly as given rather than having a real path segment eaten.
8015
+ */
8016
+ private readonly trimsLegacyOverrides;
7972
8017
  constructor(config: ApiConfig, logger?: SodaxLogger);
8018
+ /**
8019
+ * Issue the HTTP call for a route.
8020
+ *
8021
+ * The mount is applied here rather than at each route literal, so `error.context.endpoint` stays
8022
+ * route-relative and the mount survives a per-call `baseURL` override — that retargets the gateway
8023
+ * root, not which service the route belongs to. For the same reason an override is put through the
8024
+ * legacy-mount trim: without it, passing the old `…/v1/be` value per call would yield `/be/be/…`.
8025
+ *
8026
+ * Defaults are listed field by field so `basePath` cannot cross into `RequestConfig`, where it has no
8027
+ * meaning — a spread would pass it silently, since TypeScript skips excess-property checks on spreads.
8028
+ */
8029
+ private send;
7973
8030
  /**
7974
8031
  * Issue a request and validate the JSON body against `schema`, wrapping the result in `Result<T>`.
7975
8032
  * Mirrors {@link SwapsApiService}: a 2xx body that fails the schema is surfaced as
@@ -8209,18 +8266,26 @@ declare class BackendApiService implements IConfigApiV1 {
8209
8266
  * without constructing a new service instance. Existing header keys are
8210
8267
  * overwritten; keys absent from `headers` are preserved.
8211
8268
  *
8212
- * Headers also reach `swaps`, which shares this origin, but never `sponsoring`,
8213
- * whose separate origin must not receive base-API credentials.
8269
+ * Headers also reach `swaps` and `bridge`, but never `sponsoring`: it is configured independently, so
8270
+ * base-API credentials must not be forwarded to whatever origin it points at. Note `swaps` can also be
8271
+ * retargeted to another origin via `swapsApiConfig`, in which case a header set here follows it.
8214
8272
  *
8215
8273
  * @param headers - Key-value pairs to add or overwrite in the default headers.
8216
8274
  */
8217
8275
  setHeaders(headers: Record<string, string>): void;
8218
8276
  /**
8219
- * Return the base URL the service is currently pointing at.
8277
+ * Return the gateway root the service is currently pointing at — WITHOUT this service's own mount.
8278
+ * Requests go to `getBaseURL() + getBasePath() + <route>`.
8220
8279
  *
8221
- * @returns The `baseURL` from the `ApiConfig` this instance was constructed with.
8280
+ * @returns The resolved gateway root, i.e. the `baseURL` from the `ApiConfig` this instance was
8281
+ * constructed with, minus a legacy `/be` suffix if one was supplied.
8222
8282
  */
8223
8283
  getBaseURL(): string;
8284
+ /**
8285
+ * Return the backend data API's mount below {@link getBaseURL} — `/be` by default, or whatever
8286
+ * `basePath` the `ApiConfig` supplied (`''` for a service addressed directly at its origin).
8287
+ */
8288
+ getBasePath(): string;
8224
8289
  }
8225
8290
 
8226
8291
  /**
@@ -8413,6 +8478,8 @@ declare class ConfigService {
8413
8478
  get moneyMarketPartnerFee(): PartnerFee | undefined;
8414
8479
  get bridgePartnerFee(): PartnerFee | undefined;
8415
8480
  get leverageYieldPartnerFee(): PartnerFee | undefined;
8481
+ get swapUseBackendSubmitTx(): boolean;
8482
+ get bridgeUseBackendSubmitTx(): boolean;
8416
8483
  get dex(): DexConfig;
8417
8484
  getChainConfig<K extends SpokeChainKey>(key: K): GetSpokeChainConfigType<K>;
8418
8485
  get sodaxConfig(): SodaxConfig;
@@ -10503,11 +10570,20 @@ type RelayAndWaitParams = {
10503
10570
  pollTxHash?: string;
10504
10571
  };
10505
10572
  /**
10506
- * Minimum `timeout` a feature's client-side relay fallback passes to {@link relayTxAndWaitPacket} when
10507
- * its shared budget is spent. `relayTxAndWaitPacket` submits the tx to the relay BEFORE `timeout`
10508
- * bounds anything (only the packet wait is bounded), so a zero/negative remainder must never skip the
10509
- * call: the spoke deposit has already landed on chain and would otherwise sit unrelayed. Re-relay is
10510
- * idempotent, so spending this floor is always safe.
10573
+ * Minimum `timeout` a feature's client-side relay path passes to {@link relayTxAndWaitPacket}, applied
10574
+ * as `Math.max(timeout, RELAY_FALLBACK_FLOOR_MS)` over the caller's own `timeout` — NOT over a remainder.
10575
+ * The relay wait is a per-attempt budget that starts when this call does; nothing the caller spent
10576
+ * earlier (a backend submit-tx attempt, an on-chain verification) is subtracted from it.
10577
+ *
10578
+ * The floor exists because `relayTxAndWaitPacket` submits the tx to the relay BEFORE `timeout` bounds
10579
+ * anything (only the packet wait is bounded), so a caller passing 0 or a negative `timeout` must not
10580
+ * cause the call to be skipped: the spoke tx has already landed on chain and would otherwise sit
10581
+ * unrelayed. Re-relay is idempotent, so spending this floor is always safe.
10582
+ *
10583
+ * Do not reintroduce a `deadline - Date.now()` form here. Deriving the relay budget from elapsed time is
10584
+ * what let a stalled backend attempt or a slow source-chain confirmation shrink the wait to this floor
10585
+ * and fail chains whose relay legitimately needs longer — see `docs/SWAPS.md` § How `timeout` bounds
10586
+ * each attempt.
10511
10587
  */
10512
10588
  declare const RELAY_FALLBACK_FLOOR_MS = 5000;
10513
10589
  /**
@@ -12484,8 +12560,6 @@ type SwapServiceConstructorParams = {
12484
12560
  spoke: SpokeService;
12485
12561
  hubProvider: HubProvider;
12486
12562
  backendApi: BackendApiService;
12487
- /** Opt-in backend submit-tx 2-step flow (from `SodaxOptions.swapsOptions.useBackendSubmitTx`). Default off. */
12488
- useBackendSubmitTx?: boolean;
12489
12563
  };
12490
12564
  /**
12491
12565
  * Main entry point for the SODAX swap feature.
@@ -12508,11 +12582,22 @@ declare class SwapService {
12508
12582
  readonly config: ConfigService;
12509
12583
  readonly spoke: SpokeService;
12510
12584
  readonly solver: SolverConfig;
12511
- readonly partnerFee: PartnerFee | undefined;
12512
12585
  readonly relayerApiEndpoint: HttpUrl;
12513
12586
  readonly backendApi: BackendApiService;
12514
- readonly useBackendSubmitTx: boolean;
12515
- constructor({ config, hubProvider, spoke, backendApi, useBackendSubmitTx }: SwapServiceConstructorParams);
12587
+ /**
12588
+ * Effective 2-step submit-tx flow (`swaps.useBackendSubmitTx`, default on). Read live off
12589
+ * `ConfigService`, like {@link SwapService.partnerFee}, so the config object and the behavior can
12590
+ * never disagree.
12591
+ */
12592
+ get useBackendSubmitTx(): boolean;
12593
+ /**
12594
+ * Effective swap partner fee (`swaps.partnerFee`, else the global `fee`). Read live off
12595
+ * `ConfigService` rather than snapshotted in the constructor, so it cannot diverge from
12596
+ * `config.swapPartnerFee` if the config object is ever replaced (see `ConfigService.initialize`).
12597
+ * `BridgeService` and `LeverageYieldService` resolve their fees the same way.
12598
+ */
12599
+ get partnerFee(): PartnerFee | undefined;
12600
+ constructor({ config, hubProvider, spoke, backendApi }: SwapServiceConstructorParams);
12516
12601
  /**
12517
12602
  * Estimates the gas cost for a raw (unsigned) transaction on a spoke chain.
12518
12603
  *
@@ -12607,21 +12692,26 @@ declare class SwapService {
12607
12692
  * Executes a full end-to-end cross-chain swap.
12608
12693
  *
12609
12694
  * Orchestrates the complete swap lifecycle. `createIntent` first submits the intent transaction on
12610
- * the source spoke chain; completion then runs via one of two paths, both bounded by a single
12611
- * shared `timeout` budget:
12612
- *
12613
- * - **Client-side (default), {@link fallbackSwapSteps}:** verifies the spoke tx landed on-chain,
12614
- * relays it to the hub (Sonic) and waits for the packet — skipped when `srcChainKey` is the hub,
12615
- * where the spoke tx already is the hub tx — then calls `postExecution` to notify the solver,
12616
- * triggering it to fill the intent.
12617
- * - **Backend 2-step (opt-in via `swapsOptions.useBackendSubmitTx`), {@link submitTx}:** hands the
12695
+ * the source spoke chain; completion then runs via one of two paths, each bounded by its own `timeout`
12696
+ * budget:
12697
+ *
12698
+ * - **Client-side (opt-out via `swaps.useBackendSubmitTx: false`), {@link fallbackSwapSteps}:** verifies
12699
+ * the spoke tx landed on-chain, relays it to the hub (Sonic) and waits for the packet — skipped when
12700
+ * `srcChainKey` is the hub, where the spoke tx already is the hub tx — then calls `postExecution` to
12701
+ * notify the solver, triggering it to fill the intent.
12702
+ * - **Backend 2-step (default via `swaps.useBackendSubmitTx`), {@link submitTx}:** hands the
12618
12703
  * broadcast tx to the swaps API, which verifies, relays and post-executes server-side, then polls
12619
12704
  * for completion. On ANY non-success it transparently falls back to the client-side path above —
12620
12705
  * safe because re-relaying / re-posting an already-processed swap is idempotent (no double-fill).
12621
12706
  *
12622
12707
  * @param _params - Swap action params including intent parameters, wallet provider, and an optional
12623
- * `timeout` — the single shared budget for the whole completion flow (relay/poll plus any
12624
- * fallback), so total wall-clock never exceeds it.
12708
+ * `timeout` — a PER-ATTEMPT budget, not an end-to-end one. The backend attempt (submit POST + status
12709
+ * poll) gets it, and if that attempt does not complete the client-side relay wait gets a fresh one
12710
+ * starting after verification, so neither a stalled backend nor a slow source-chain confirmation can
12711
+ * shorten it. Worst-case wall-clock is `createIntent + timeout + verification +
12712
+ * max(timeout, RELAY_FALLBACK_FLOOR_MS) + postExecution`, where verification is bounded by the source
12713
+ * chain's `pollingConfig.maxTimeoutMs` and the first and last terms are not bounded by `timeout` at
12714
+ * all. See `docs/SWAPS.md` § How `timeout` bounds each attempt.
12625
12715
  * @returns A `Result<SwapResponse, SwapError>`. On success:
12626
12716
  * - `solverExecutionResponse` — solver acknowledgement (`{ answer: 'OK', intent_hash }`).
12627
12717
  * - `intent` — the on-chain intent object that was created.
@@ -12643,14 +12733,18 @@ declare class SwapService {
12643
12733
  */
12644
12734
  swap<K extends SpokeChainKey>(_params: SwapActionParams<K, false>): Promise<Result<SwapResponse, SwapError>>;
12645
12735
  /**
12646
- * Client-side swap completion (the default path): relay the broadcast intent tx to the hub — or
12647
- * use it directly when the source IS the hub — then notify the solver via post-execution and
12648
- * build the {@link SwapResponse}. Extracted verbatim from `swap()` so the opt-in backend 2-step
12649
- * path ({@link submitTx}) can fall back to it on any non-success.
12736
+ * Client-side swap completion (opt-out via `swaps.useBackendSubmitTx: false`): verify the broadcast intent
12737
+ * tx landed, then relay it to the hub — or use it directly when the source IS the hub — then notify the
12738
+ * solver via post-execution and build the {@link SwapResponse}. Extracted verbatim from `swap()` so the
12739
+ * backend 2-step path ({@link submitTx}) can fall back to it on any non-success.
12740
+ *
12741
+ * Verification belongs to THIS path only: the backend runs its own, so verifying before handing over
12742
+ * would delay every backend success by the source chain's confirmation wait and could fail a swap the
12743
+ * backend would have completed.
12650
12744
  */
12651
12745
  private fallbackSwapSteps;
12652
12746
  /**
12653
- * Backend 2-step swap path (opt-in via `swapsOptions.useBackendSubmitTx`): hand the broadcast
12747
+ * Backend 2-step swap path (default via `swaps.useBackendSubmitTx`): hand the broadcast
12654
12748
  * intent tx to the swaps API (`POST /swaps/submit-tx`); the backend relays + post-executes
12655
12749
  * server-side. Polls `getSubmitTxStatus` until `solved`, then reconstructs the same
12656
12750
  * {@link SwapResponse} the client-side path returns (`result.dstIntentTxHash` → delivery info,
@@ -12661,8 +12755,16 @@ declare class SwapService {
12661
12755
  *
12662
12756
  * Falling back is safe: re-relaying / re-posting an already-processed swap is idempotent — the
12663
12757
  * relay dedups and returns the existing `executed` packet, and the solver re-affirms the intent
12664
- * (no double-fill). Verified live by `e2e-tests/e2e-relay.test.ts`. Polling stops at
12665
- * `deadline - reserve` so the fallback keeps a guaranteed slice of the shared `swap` budget.
12758
+ * (no double-fill). Verified live by `e2e-tests/e2e-relay.test.ts`. It is also load-bearing rather
12759
+ * than belt-and-braces: the backend keeps processing after this attempt gives up, so the fallback's
12760
+ * relay can race the backend's own.
12761
+ *
12762
+ * The attempt itself — POST, budget clamps, status poll — is {@link runBackendSubmitTx}, shared with
12763
+ * bridge. What is swap-specific and lives here: the request body, the `solved` terminal status, the
12764
+ * mapping from a terminal result to a {@link SwapResponse}, and the swap error taxonomy.
12765
+ *
12766
+ * `attempt` bounds this attempt alone — the POST and every status request draw on it, and the
12767
+ * client-side fallback holds a separate fresh `timeout`.
12666
12768
  */
12667
12769
  private submitTx;
12668
12770
  /**
@@ -13684,8 +13786,6 @@ type BridgeServiceConstructorParams = {
13684
13786
  config: ConfigService;
13685
13787
  spoke: SpokeService;
13686
13788
  backendApi: BackendApiService;
13687
- /** Opt-in backend submit-tx flow (from `SodaxOptions.bridgeOptions.useBackendSubmitTx`). Default off. */
13688
- useBackendSubmitTx?: boolean;
13689
13789
  };
13690
13790
  /**
13691
13791
  * Orchestrates cross-chain token transfers within the SODAX hub-and-spoke architecture.
@@ -13707,8 +13807,12 @@ declare class BridgeService {
13707
13807
  readonly config: ConfigService;
13708
13808
  readonly spoke: SpokeService;
13709
13809
  readonly backendApi: BackendApiService;
13710
- readonly useBackendSubmitTx: boolean;
13711
- constructor({ hubProvider, config, spoke, backendApi, useBackendSubmitTx }: BridgeServiceConstructorParams);
13810
+ /**
13811
+ * Effective backend submit-tx flow (`bridge.useBackendSubmitTx`, default on). Read live off
13812
+ * `ConfigService` like `bridgePartnerFee`, so the config object and the behavior can never disagree.
13813
+ */
13814
+ get useBackendSubmitTx(): boolean;
13815
+ constructor({ hubProvider, config, spoke, backendApi }: BridgeServiceConstructorParams);
13712
13816
  /**
13713
13817
  * Calculates the partner fee deducted from a given bridge input amount.
13714
13818
  *
@@ -13753,15 +13857,27 @@ declare class BridgeService {
13753
13857
  /**
13754
13858
  * Executes a full end-to-end bridge transfer: spoke deposit → relay → hub settlement.
13755
13859
  *
13756
- * Internally calls `createBridgeIntent()` to submit the spoke-side deposit transaction,
13757
- * then waits for the cross-chain relay packet to be confirmed on the hub (Sonic).
13758
- * Use this method for the typical "fire and wait" bridge UX.
13860
+ * Internally calls `createBridgeIntent()` to submit the spoke-side deposit transaction, then
13861
+ * completes the transfer via one of two paths. Use this method for the typical "fire and wait" UX.
13862
+ *
13863
+ * - **Backend submit-tx (default, `bridge.useBackendSubmitTx`), {@link submitTx}:** hands the deposit
13864
+ * to the bridge API, which relays server-side, and polls until `executed`. On ANY non-success it
13865
+ * falls back to the path below — safe because re-relaying is idempotent.
13866
+ * - **Client-side (opt-out with `useBackendSubmitTx: false`), {@link fallbackBridgeSteps}:** verifies
13867
+ * the deposit landed on-chain, then relays it and waits for the settlement packet. `verifyTxHash`
13868
+ * runs on this path only; the backend runs its own.
13759
13869
  *
13760
13870
  * For manual relay control (e.g. monitoring or batching), use `createBridgeIntent()` directly
13761
13871
  * and handle the relay step yourself.
13762
13872
  *
13763
13873
  * @param _params - Bridge parameters including source/destination chain keys, token addresses,
13764
- * amount, recipient address, wallet provider, and optional timeout.
13874
+ * amount, recipient address, wallet provider, and an optional `timeout` — a PER-ATTEMPT budget,
13875
+ * not an end-to-end one. The backend attempt gets it, and if that attempt does not complete the
13876
+ * client-side relay wait gets a fresh one starting after verification, so neither a stalled backend
13877
+ * nor a slow source-chain confirmation can shorten it. Worst-case wall-clock is
13878
+ * `createBridgeIntent + timeout + verification + max(timeout, RELAY_FALLBACK_FLOOR_MS)`, where
13879
+ * verification is bounded by the source chain's `pollingConfig.maxTimeoutMs` and intent creation is
13880
+ * not bounded by `timeout` at all. See `docs/BRIDGE.md` § Completion paths and `timeout`.
13765
13881
  * @returns `Result<TxHashPair>` — `{ srcChainTxHash, dstChainTxHash }` on success,
13766
13882
  * where `srcChainTxHash` is the spoke deposit tx and `dstChainTxHash` is the hub settlement tx.
13767
13883
  *
@@ -13787,14 +13903,18 @@ declare class BridgeService {
13787
13903
  */
13788
13904
  bridge<K extends SpokeChainKey>(_params: BridgeParams<K, false>): Promise<Result<TxHashPair, BridgeOrchestrationError>>;
13789
13905
  /**
13790
- * Client-side bridge completion (the default path): verify the broadcast spoke-deposit tx, then
13791
- * relay it to the hub and wait for the settlement packet. Extracted verbatim from `bridge()` so the
13792
- * opt-in backend submit-tx path ({@link submitTx}) can fall back to it on any non-success. Bridge
13793
- * always relays — there is no hub-source short-circuit.
13906
+ * Client-side bridge completion (opt-out via `bridge.useBackendSubmitTx: false`): verify the broadcast
13907
+ * spoke-deposit tx, then relay it to the hub and wait for the settlement packet. Extracted verbatim from
13908
+ * `bridge()` so the backend submit-tx path ({@link submitTx}) can fall back to it on any non-success.
13909
+ * Bridge always relays — there is no hub-source short-circuit.
13910
+ *
13911
+ * Verification belongs to THIS path only: the backend runs its own, so verifying before handing over
13912
+ * would delay every backend success by the source chain's confirmation wait and could fail a bridge the
13913
+ * backend would have completed.
13794
13914
  */
13795
13915
  private fallbackBridgeSteps;
13796
13916
  /**
13797
- * Backend bridge path (opt-in via `bridgeOptions.useBackendSubmitTx`): hand the broadcast
13917
+ * Backend bridge path (default via `bridge.useBackendSubmitTx`): hand the broadcast
13798
13918
  * spoke-deposit tx to the bridge API (`POST /bridge/submit-tx`) with the FULL `relayData`
13799
13919
  * envelope; the backend relays server-side. Polls `getSubmitTxStatus` until `executed`, then
13800
13920
  * returns the same {@link TxHashPair} the client-side path returns (`result.dstIntentTxHash` →
@@ -13803,8 +13923,15 @@ declare class BridgeService {
13803
13923
  * Never throws — returns `{ ok: false }` on any non-success (submit `!ok`, terminal `failed` /
13804
13924
  * abandoned, or poll timeout) so `bridge()` falls back to {@link fallbackBridgeSteps}. Falling back
13805
13925
  * is safe: re-relaying an already-relayed bridge tx is idempotent — the relay dedups and returns the
13806
- * existing `executed` packet. Polling stops at `deadline - reserve` so the fallback keeps a
13807
- * guaranteed slice of the shared `bridge` budget.
13926
+ * existing `executed` packet. It is also load-bearing rather than belt-and-braces: the backend keeps
13927
+ * processing after this attempt gives up, so the fallback's relay can race the backend's own.
13928
+ *
13929
+ * The attempt itself — POST, budget clamps, status poll — is {@link runBackendSubmitTx}, shared with
13930
+ * swaps. What is bridge-specific and lives here: the request body (the FULL `relayData` envelope), the
13931
+ * `executed` terminal status, the mapping to a {@link TxHashPair}, and the bridge error taxonomy.
13932
+ *
13933
+ * `attempt` bounds this attempt alone — the POST and every status request draw on it, and the
13934
+ * client-side fallback holds a separate fresh `timeout`.
13808
13935
  */
13809
13936
  private submitTx;
13810
13937
  /**
@@ -16267,9 +16394,18 @@ declare class MoneyMarketService {
16267
16394
  readonly hubProvider: HubProvider;
16268
16395
  readonly config: ConfigService;
16269
16396
  readonly spoke: SpokeService;
16270
- readonly partnerFee: PartnerFee | undefined;
16271
16397
  readonly relayerApiEndpoint: HttpUrl;
16272
16398
  readonly data: MoneyMarketDataService;
16399
+ /**
16400
+ * Effective money-market partner fee (`moneyMarket.partnerFee`, else the global `fee`). Read live
16401
+ * off `ConfigService` rather than snapshotted in the constructor, so it cannot diverge from
16402
+ * `config.moneyMarketPartnerFee` if the config object is ever replaced. Mirrors
16403
+ * {@link SwapService.partnerFee}.
16404
+ *
16405
+ * Money market has no per-action override: unlike swap / bridge / leverage-yield, every flow here
16406
+ * charges this configured fee.
16407
+ */
16408
+ get partnerFee(): PartnerFee | undefined;
16273
16409
  constructor({ config, hubProvider, spoke }: MoneyMarketServiceConstructorParams);
16274
16410
  /**
16275
16411
  * Estimate the gas cost of an already-encoded transaction on the given spoke chain.
@@ -17148,9 +17284,9 @@ type LeverageYieldSwapDepositParams = {
17148
17284
  /** Optional specific solver. `0x0` = any solver. */
17149
17285
  solver?: Address;
17150
17286
  /**
17151
- * Partner fee for this deposit, carried on the payload as the swap layer's per-intent
17152
- * fee override. Defaults to the effective swap fee (`config.swapPartnerFee` = the `swaps`
17153
- * override if set, else the global `fee`).
17287
+ * Partner fee for this deposit, carried on the payload as the per-intent fee override.
17288
+ * Defaults to the effective leverage-yield fee (`config.leverageYieldPartnerFee` = the
17289
+ * `leverageYield` override if set, else the global `fee`).
17154
17290
  */
17155
17291
  partnerFee?: PartnerFee;
17156
17292
  };
@@ -17181,6 +17317,28 @@ type LeverageYieldSwapWithdrawParams = {
17181
17317
  deadline?: bigint;
17182
17318
  /** Optional specific solver. `0x0` = any solver. */
17183
17319
  solver?: Address;
17320
+ /**
17321
+ * Partner fee for this withdraw, carried on the payload as the per-intent fee override.
17322
+ * Defaults to the effective leverage-yield fee (`config.leverageYieldPartnerFee` = the
17323
+ * `leverageYield` override if set, else the global `fee`).
17324
+ *
17325
+ * A withdraw's input token is the vault itself, so the fee is deducted from `inputAmount`
17326
+ * in **lsoda\* shares** — the fee receiver accrues vault shares, not the output token.
17327
+ */
17328
+ partnerFee?: PartnerFee;
17329
+ };
17330
+ /**
17331
+ * Params for {@link LeverageYieldService.getQuote}. Superset of `SolverIntentQuoteRequest`
17332
+ * with the same per-call fee override the vault intent builders take, so a quote and the
17333
+ * intent it sizes can be driven by one value.
17334
+ */
17335
+ type LeverageYieldQuoteParams = SolverIntentQuoteRequest & {
17336
+ /**
17337
+ * Per-call fee override. Omit to use the effective leverage-yield fee
17338
+ * (`config.leverageYieldPartnerFee`); pass the same value you pass to
17339
+ * {@link LeverageYieldService.vaultSwap} when overriding per intent.
17340
+ */
17341
+ partnerFee?: PartnerFee;
17184
17342
  };
17185
17343
  /**
17186
17344
  * Action-shaped swap payload built by {@link LeverageYieldService.deposit} /
@@ -17193,7 +17351,11 @@ type LeverageYieldSwapWithdrawParams = {
17193
17351
  type LeverageYieldSwapPayload = {
17194
17352
  params: CreateIntentParams;
17195
17353
  hubWalletSwap?: true;
17196
- /** Per-intent partner-fee override (deposit only). */
17354
+ /**
17355
+ * Per-intent partner-fee override, set by `deposit` / `withdraw` when the caller supplies one.
17356
+ * Absent means the effective leverage-yield fee applies — **both directions are charged**;
17357
+ * this key only controls whether that configured fee is overridden for this intent.
17358
+ */
17197
17359
  partnerFee?: PartnerFee;
17198
17360
  };
17199
17361
  /**
@@ -17206,8 +17368,8 @@ type LeverageYieldSwapPayload = {
17206
17368
  * user's hub wallet — `srcChainKey` is then the chain the user *signs* on, and the
17207
17369
  * intent is created by authorising the hub wallet via a `Connection.sendMessage`
17208
17370
  * instead of a spoke-side AssetManager deposit.
17209
- * - `partnerFee` overrides the effective swap fee (`config.swapPartnerFee`) for this
17210
- * intent only.
17371
+ * - `partnerFee` overrides the effective leverage-yield fee
17372
+ * (`config.leverageYieldPartnerFee`) for this intent only.
17211
17373
  */
17212
17374
  type VaultSwapActionParams<K extends SpokeChainKey, Raw extends boolean = false> = SpokeExecActionParams<K, Raw, CreateIntentParams<K>> & {
17213
17375
  hubWalletSwap?: boolean;
@@ -17255,6 +17417,8 @@ type LeverageYieldServiceConstructorParams = {
17255
17417
  * `vaultSwap()` — the generic swap surface stays untouched by vault concerns.
17256
17418
  *
17257
17419
  * Methods:
17420
+ * - `getQuote` — solver quote for a vault deposit/withdraw, sized with the effective
17421
+ * leverage-yield fee so the quote matches what the vault intent will charge.
17258
17422
  * - `deposit` / `withdraw` — build a {@link LeverageYieldSwapPayload} for a swap-style deposit
17259
17423
  * (any token → lsoda*) and withdraw (lsoda* → any token); spread the result into
17260
17424
  * `vaultSwap()`. `withdraw` sets `hubWalletSwap: true` so the vault swap spends the lsoda*
@@ -17301,6 +17465,32 @@ declare class LeverageYieldService {
17301
17465
  * failure. The `deposit` / `withdraw` callers forward it verbatim.
17302
17466
  */
17303
17467
  private resolveDeadline;
17468
+ /**
17469
+ * Quotes a vault deposit or withdraw. Vault shares are solver-tradeable, so this is the
17470
+ * generic solver quote with one difference that matters: the fee deducted before quoting is
17471
+ * the effective **leverage-yield** fee, matching what {@link LeverageYieldService.createVaultIntent}
17472
+ * will charge. `sodax.swaps.getQuote` deducts the effective *swap* fee instead, so quoting a
17473
+ * vault flow through it makes the quote and the intent disagree whenever the two feature fees
17474
+ * differ. Quoting a vault flow through the swap service can be made to agree — pass the same fee
17475
+ * explicitly, using a zero fee (`{ address, percentage: 0 }`) where the effective leverage-yield
17476
+ * fee is `undefined`, since an explicit `undefined` there falls back to the swap fee — but this
17477
+ * method resolves it for you and is the canonical way to quote a vault flow.
17478
+ *
17479
+ * Pass the vault address as `token_dst` to quote a deposit, or as `token_src` to quote a
17480
+ * withdraw; subtract your slippage tolerance from `quoted_amount` to get `minOutputAmount`.
17481
+ * When overriding the fee per intent, pass the same `partnerFee` here and to whichever builder
17482
+ * you use ({@link LeverageYieldService.deposit}, {@link LeverageYieldService.withdraw}) or
17483
+ * directly to {@link LeverageYieldService.vaultSwap} — omitting it everywhere is equally safe,
17484
+ * since each side then resolves the same effective leverage-yield fee. Both directions are
17485
+ * charged, so this applies to withdrawals as much as deposits.
17486
+ *
17487
+ * @returns `SolverIntentQuoteResponse` on success. On failure `result.error` is either the
17488
+ * solver's own `SolverErrorResponse` (no path, insufficient liquidity, …) or a SodaxError
17489
+ * with `VALIDATION_FAILED` (bad `amount`, or a partner fee that leaves nothing to quote),
17490
+ * `LOOKUP_FAILED` (unsupported token — the solver payload could not be assembled) or
17491
+ * `UNKNOWN`. Discriminate with `isSodaxError(error)`.
17492
+ */
17493
+ getQuote(payload: LeverageYieldQuoteParams): Promise<Result<SolverIntentQuoteResponse, SolverErrorResponse | LeverageYieldLookupError>>;
17304
17494
  /**
17305
17495
  * Builds the {@link LeverageYieldSwapPayload} for a leverage-yield deposit (any token → lsoda*).
17306
17496
  * The lsoda* output is delivered to the user's hub wallet on Sonic so a later
@@ -17308,9 +17498,8 @@ declare class LeverageYieldService {
17308
17498
  * {@link LeverageYieldService.vaultSwap}: `vaultSwap({ ...payload, walletProvider })`.
17309
17499
  * An optional `partnerFee` is forwarded on the payload as the per-intent fee override.
17310
17500
  *
17311
- * For `minOutputAmount`, quote via `sodax.swaps.getQuote` with the vault address as the
17312
- * destination token (`token_dst`) — vault shares are solver-tradeable, so the generic swap
17313
- * quote applies; then subtract your slippage tolerance.
17501
+ * For `minOutputAmount`, quote via {@link LeverageYieldService.getQuote} with the vault
17502
+ * address as the destination token (`token_dst`), then subtract your slippage tolerance.
17314
17503
  */
17315
17504
  deposit(params: LeverageYieldSwapDepositParams): Promise<Result<LeverageYieldSwapPayload, LeverageYieldCreateIntentError | LeverageYieldLookupError>>;
17316
17505
  /**
@@ -17321,9 +17510,13 @@ declare class LeverageYieldService {
17321
17510
  * a call shape uniform with {@link LeverageYieldService.deposit}; async because the default
17322
17511
  * `deadline` is read from the hub block timestamp.
17323
17512
  *
17324
- * For `minOutputAmount`, quote via `sodax.swaps.getQuote` with the vault address as the
17325
- * source token (`token_src`) — vault shares are solver-tradeable, so the generic swap quote
17326
- * applies; then subtract your slippage tolerance.
17513
+ * An optional `partnerFee` is forwarded on the payload as the per-intent fee override; omit it
17514
+ * and the configured leverage-yield fee applies. Withdrawals **are** charged — the fee comes out
17515
+ * of `inputAmount`, which for a withdraw is the vault's own shares, so the receiver accrues
17516
+ * lsoda\* rather than the output token.
17517
+ *
17518
+ * For `minOutputAmount`, quote via {@link LeverageYieldService.getQuote} with the vault
17519
+ * address as the source token (`token_src`), then subtract your slippage tolerance.
17327
17520
  */
17328
17521
  withdraw(params: LeverageYieldSwapWithdrawParams): Promise<Result<LeverageYieldSwapPayload, LeverageYieldCreateIntentError | LeverageYieldLookupError>>;
17329
17522
  /**
@@ -18332,4 +18525,4 @@ type DexApproveErrorCode = ApproveErrorCode;
18332
18525
  type DexApproveError = SodaxError<DexApproveErrorCode>;
18333
18526
  declare const isDexApproveError: (e: unknown) => e is SodaxError<ApproveErrorCode>;
18334
18527
 
18335
- 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, 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 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, type DepositParams, type DepositSimulationParams, type DestinationParamsType, type DetailedLock, 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 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, 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, 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, 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 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, SuiSpokeService, SupportedMigrationTokens, type SwapAction, type SwapActionParams, type SwapCreateIntentError, type SwapCreateIntentErrorCode, type SwapError, type SwapErrorCode, type SwapExtras, type SwapResponse, SwapService, type SwapServiceConstructorParams, SwapsApiService, 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, 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, isBackendHttpError, isBalnMigrateParams, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, isDexApproveError, isDexCreateIntentError, isDexError, isEvmChainKeyType, isEvmSpokeChainConfig, isEvmSpokeOnlyChainKeyType, isEvmWalletProviderType, isFeatureError, 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, 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 };
18528
+ 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, 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, type DepositParams, type DepositSimulationParams, type DestinationParamsType, type DetailedLock, 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 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, 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, 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 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, SuiSpokeService, SupportedMigrationTokens, type SwapAction, type SwapActionParams, type SwapCreateIntentError, type SwapCreateIntentErrorCode, type SwapError, type SwapErrorCode, type SwapExtras, type SwapResponse, SwapService, type SwapServiceConstructorParams, 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, 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, isBackendHttpError, isBalnMigrateParams, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, isDexApproveError, isDexCreateIntentError, isDexError, isEvmChainKeyType, isEvmSpokeChainConfig, isEvmSpokeOnlyChainKeyType, isEvmWalletProviderType, isFeatureError, 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, 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 };