@sodax/sdk 2.1.0-rc.9 → 2.2.0-rc.1

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
@@ -275,6 +275,7 @@ declare function mapRelayFailure(error: unknown, ctx: MapRelayFailureCtx): Sodax
275
275
  * - {@link isFeatureError} — narrows by `feature` field for cross-feature consumer code.
276
276
  * - {@link isCodeMember} — builds a per-method narrow guard from a `Set` of codes. Per-feature
277
277
  * `errors.ts` modules use this to expose `isSupplyError`, `isCreateSwapIntentError`, etc.
278
+ * - {@link isAuthStatus} / {@link isAuthFailure} — terminal API-key rejection, by status or by error.
278
279
  *
279
280
  * The base {@link isSodaxError} guard lives in `./SodaxError` so it ships next to the class.
280
281
  */
@@ -302,6 +303,22 @@ declare function isFeatureError<F extends SodaxFeature>(feature: F): (e: unknown
302
303
  * export const isSupplyError = isCodeMember<SupplyErrorCode>(SUPPLY_CODES);
303
304
  */
304
305
  declare function isCodeMember<C extends SodaxErrorCode>(codes: ReadonlySet<C>): (e: unknown) => e is SodaxError<C>;
306
+ /**
307
+ * True for an HTTP status that only a corrected API key can resolve: `401` (missing or invalid key)
308
+ * and `403` (suspended organisation, or a key lacking the route's scope). The guard's `503` is
309
+ * deliberately excluded — that one is transient and IS retried (see
310
+ * `API_KEY_VERIFICATION_UNAVAILABLE_MESSAGE` in `@sodax/swaps-api`).
311
+ */
312
+ declare function isAuthStatus(status: number | undefined): boolean;
313
+ /**
314
+ * True for a backend rejection that only a corrected API key can resolve — see {@link isAuthStatus}.
315
+ * Terminal: callers should surface it rather than retry or keep polling.
316
+ *
317
+ * Reads the status the service lifted onto `context`, so it works for any `SodaxError` carrying one.
318
+ * All `sodax.api` services lift HTTP status; the legacy solver transport retains `SolverErrorResponse`
319
+ * and is not recognized by `isAuthFailure`.
320
+ */
321
+ declare function isAuthFailure(error: unknown): boolean;
305
322
 
306
323
  /**
307
324
  * Constructor helpers for the most common {@link SodaxError} shapes.
@@ -7497,6 +7514,8 @@ interface RequestConfig {
7497
7514
  body?: string;
7498
7515
  timeout?: number;
7499
7516
  baseURL?: string;
7517
+ /** Honoured only via {@link resolveRequestConfig}; `makeRequest` expands `overrideConfig.apiKey`, not this field. */
7518
+ apiKey?: string;
7500
7519
  }
7501
7520
  /**
7502
7521
  * Per-call overrides that take precedence over the `ApiConfig` the service
@@ -7507,6 +7526,11 @@ type RequestOverrideConfig = {
7507
7526
  baseURL?: string;
7508
7527
  timeout?: number;
7509
7528
  headers?: Record<string, string>;
7529
+ /**
7530
+ * Per-call API key, sent as the `x-api-key` header. Wins over the service's configured key; an
7531
+ * explicit `headers['x-api-key']` on this same override wins over it.
7532
+ */
7533
+ apiKey?: string;
7510
7534
  };
7511
7535
  /**
7512
7536
  * Non-2xx failure with structured status and body. The legacy
@@ -7546,8 +7570,8 @@ type ResultifiedSwapsApiV2 = {
7546
7570
  * canonical `SodaxError<'EXTERNAL_API_ERROR'>` (`feature: 'backend'`, `context.api: 'swaps'`,
7547
7571
  * `context.endpoint`); the underlying `SwapsApiError` is preserved on `error.cause`.
7548
7572
  *
7549
- * Per-call request overrides (base URL, timeout, headers) can be passed as the optional last
7550
- * argument to any method via `RequestOverrideConfig`.
7573
+ * Per-call request overrides (base URL, timeout, headers, API key) can be passed as the optional
7574
+ * last argument to any method via `RequestOverrideConfig`.
7551
7575
  *
7552
7576
  * Reachable on the Sodax facade as `sodax.api.swaps`.
7553
7577
  */
@@ -7665,6 +7689,18 @@ declare class SwapsApiService implements ResultifiedSwapsApiV2 {
7665
7689
  type ResultifiedSponsoringApi = {
7666
7690
  [K in keyof IStellarSponsoringApi]: IStellarSponsoringApi[K] extends (...args: infer A) => Promise<infer R> ? (...args: [...A, config?: RequestOverrideConfig]) => Promise<Result<R, SodaxError<'EXTERNAL_API_ERROR'>>> : never;
7667
7691
  };
7692
+ /** Construction options for {@link SponsoringApiService}. */
7693
+ type SponsoringApiServiceOptions = {
7694
+ /**
7695
+ * The instance-wide `new Sodax({ apiKey })`, which sponsoring inherits only when its effective
7696
+ * target is one of `inheritedApiKeyBaseURLs`. Deliberately not baked into the headers: a per-request
7697
+ * `baseURL` retargets the call while keeping the default headers, which would carry the credential
7698
+ * off-gateway. Outranked by the configured slice key (`SponsoringApiConfig.apiKey`) and by headers.
7699
+ */
7700
+ inheritedApiKey?: string;
7701
+ /** Roots the inherited key may be sent to — the packaged sponsoring default and the shared gateway. */
7702
+ inheritedApiKeyBaseURLs?: readonly string[];
7703
+ };
7668
7704
  /**
7669
7705
  * Uncached HTTP client for the sponsoring API. Stellar orchestration and
7670
7706
  * config caching belong to `SponsoringService`.
@@ -7676,7 +7712,14 @@ declare class SponsoringApiService implements ResultifiedSponsoringApi {
7676
7712
  private readonly config;
7677
7713
  private readonly headers;
7678
7714
  private readonly logger;
7679
- constructor(config: SponsoringApiConfig, logger?: SodaxLogger);
7715
+ private readonly inheritedApiKey;
7716
+ private readonly inheritedApiKeyBaseURLs;
7717
+ constructor(config: SponsoringApiConfig, logger?: SodaxLogger, options?: SponsoringApiServiceOptions);
7718
+ /**
7719
+ * The inherited instance key, but only for a request whose effective target is an allowed root.
7720
+ * Evaluated per call because a `RequestOverrideConfig.baseURL` retargets the request.
7721
+ */
7722
+ private inheritedKeyFor;
7680
7723
  /**
7681
7724
  * Validate a response while preserving HTTP failures on `error.cause` for
7682
7725
  * sponsor-error classification.
@@ -7740,7 +7783,7 @@ declare function toCreateBridgeIntentParamsV2(params: {
7740
7783
  * `SodaxError<'EXTERNAL_API_ERROR'>` (`feature: 'backend'`, `context.api: 'bridge'`)
7741
7784
  * in the `error` field; the underlying failure is preserved on `error.cause`.
7742
7785
  *
7743
- * Per-call request overrides (base URL, timeout, headers) can be passed as the
7786
+ * Per-call request overrides (base URL, timeout, headers, API key) can be passed as the
7744
7787
  * optional last argument to any method via `RequestOverrideConfig`.
7745
7788
  *
7746
7789
  * The Bridge API hangs off the shared gateway root as `/bridge/*` — a sibling of the data API's `/be`
@@ -7979,6 +8022,14 @@ interface MoneyMarketBorrowers {
7979
8022
  offset: number;
7980
8023
  limit: number;
7981
8024
  }
8025
+ /** Construction options for {@link BackendApiService}. */
8026
+ type BackendApiServiceOptions = {
8027
+ /**
8028
+ * Config-level API key for every gateway service (`new Sodax({ apiKey })`), sent as the `x-api-key`
8029
+ * header. Sponsoring receives it only when its target is an allowed root — see the constructor.
8030
+ */
8031
+ apiKey?: string;
8032
+ };
7982
8033
  /**
7983
8034
  * HTTP client for the SODAX backend API.
7984
8035
  *
@@ -7999,7 +8050,7 @@ interface MoneyMarketBorrowers {
7999
8050
  * (`feature: 'backend'`, `context.api: 'backend'`) in the `error` field; the
8000
8051
  * underlying failure is preserved on `error.cause`.
8001
8052
  *
8002
- * Per-call request overrides (base URL, timeout, headers) can be passed as
8053
+ * Per-call request overrides (base URL, timeout, headers, API key) can be passed as
8003
8054
  * the optional last argument to any method via `RequestOverrideConfig`.
8004
8055
  */
8005
8056
  declare class BackendApiService implements IConfigApiV1 {
@@ -8022,7 +8073,7 @@ declare class BackendApiService implements IConfigApiV1 {
8022
8073
  * left exactly as given rather than having a real path segment eaten.
8023
8074
  */
8024
8075
  private readonly trimsLegacyOverrides;
8025
- constructor(config: ApiConfig, logger?: SodaxLogger);
8076
+ constructor(config: ApiConfig, logger?: SodaxLogger, options?: BackendApiServiceOptions);
8026
8077
  /**
8027
8078
  * Issue the HTTP call for a route.
8028
8079
  *
@@ -8374,6 +8425,13 @@ type ConfigServiceConstructorParams = {
8374
8425
  * never supplies it; it is purely a client-side option.
8375
8426
  */
8376
8427
  fee?: PartnerFee;
8428
+ /**
8429
+ * Global backend API key (the `apiKey` option passed to `new Sodax(...)`). Held outside the
8430
+ * swappable `SodaxConfig` — like {@link fee} — so a dynamic config fetch never replaces it. Sent as
8431
+ * the `x-api-key` header on every backend API request; read here by the swap, leverage-yield, and
8432
+ * partner solver flows, whose transport does not go through `BackendApiService`.
8433
+ */
8434
+ apiKey?: string;
8377
8435
  /**
8378
8436
  * RadFi/Bound request signer (the `radfi.signRequest` option passed to `new Sodax(...)`). Held
8379
8437
  * outside the swappable `SodaxConfig` — like {@link logger} — so a dynamic config fetch never
@@ -8403,6 +8461,13 @@ declare class ConfigService {
8403
8461
  * a client-side option set via `new Sodax({ fee })`. Per-feature overrides live on the feature config.
8404
8462
  */
8405
8463
  readonly fee: PartnerFee | undefined;
8464
+ /**
8465
+ * Global backend API key. Resolved once at construction and kept independent of {@link sodax} so
8466
+ * that {@link initialize}'s dynamic-config swap never clobbers it. The backend never supplies it —
8467
+ * it is a client-side option set via `new Sodax({ apiKey })`. Never logged; read here by the swap,
8468
+ * leverage-yield, and partner solver flows, whose transport does not go through `BackendApiService`.
8469
+ */
8470
+ readonly apiKey: string | undefined;
8406
8471
  /**
8407
8472
  * RadFi/Bound request signer. Resolved once at construction and kept independent of {@link sodax}
8408
8473
  * so that {@link initialize}'s dynamic-config swap never clobbers it. Read by `BitcoinSpokeService`
@@ -8420,7 +8485,7 @@ declare class ConfigService {
8420
8485
  private stakedATokenAddressesSet;
8421
8486
  private chainToSupportedTokenAddressMap;
8422
8487
  private hubAssetToXTokenMap;
8423
- constructor({ api, config, userConfig, logger, analytics, fee, radfiSigner }: ConfigServiceConstructorParams);
8488
+ constructor({ api, config, userConfig, logger, analytics, fee, apiKey, radfiSigner, }: ConfigServiceConstructorParams);
8424
8489
  initialize(): Promise<Result<void>>;
8425
8490
  getChains(): GetChainsApiResponse;
8426
8491
  getSwapTokens(): GetSwapTokensApiResponse;
@@ -8518,6 +8583,8 @@ declare function parseTokenArrayFromJson(input: unknown): readonly XToken[];
8518
8583
  * and held on `ConfigService.fee`, where it acts as the per-feature fee fallback (`featureFee ?? fee`, via
8519
8584
  * `ConfigService.swapPartnerFee` / `moneyMarketPartnerFee` / `bridgePartnerFee`). Config merging and
8520
8585
  * effective-fee resolution are separate concerns, so the merge layer deliberately leaves `fee` alone.
8586
+ * The global `apiKey` is likewise kept off the merged config — `Sodax` strips it at the call site so the
8587
+ * credential never lands on the publicly readable `instanceConfig`; it is held on `ConfigService.apiKey`.
8521
8588
  */
8522
8589
  declare function mergeSodaxConfig(base: SodaxDefaultConfig, override: SodaxOptions): SodaxConfig;
8523
8590
 
@@ -8985,6 +9052,11 @@ type BitcoinBoundSlot<K extends SpokeChainKey> = GetChainType<K> extends 'BITCOI
8985
9052
  type SwapExtras<K extends SpokeChainKey = SpokeChainKey> = {
8986
9053
  /** Overrides the configured swap partner fee for this action; falls back to config when omitted. */
8987
9054
  partnerFee?: PartnerFee;
9055
+ /**
9056
+ * Overrides the configured backend API key for this action's backend submit-tx leg; sent as the
9057
+ * `x-api-key` header. Falls back to config when omitted.
9058
+ */
9059
+ apiKey?: string;
8988
9060
  } & SrcPublicKeySlot<K> & BitcoinBoundSlot<K>;
8989
9061
  type Intent = {
8990
9062
  intentId: bigint;
@@ -12605,6 +12677,68 @@ type FillEvent = v.InferOutput<typeof FillEventSchema>;
12605
12677
  /** Narrows an `IntentResponse.events` entry, which is typed `unknown[]`. */
12606
12678
  declare const isFillEvent: (value: unknown) => value is FillEvent;
12607
12679
 
12680
+ /**
12681
+ * Estimated settlement-speed bucket for a swap token pair.
12682
+ *
12683
+ * TODO: confirm the label set (slow / normal / fast) against the referenced spec doc, which
12684
+ * mentions "slow, normal, fast, etc." without pinning the exact enum.
12685
+ */
12686
+ type SwapSpeedTier = 'fast' | 'normal' | 'slow';
12687
+ /**
12688
+ * Rule-based estimate of how fast a src→dst swap settles, plus the tier bucket it falls into.
12689
+ * `estimatedSeconds` is the source of truth; `tier` is derived from it.
12690
+ */
12691
+ type SwapSpeedTierResult = {
12692
+ tier: SwapSpeedTier;
12693
+ estimatedSeconds: number;
12694
+ };
12695
+ /** Token pair to estimate a settlement-speed tier for. */
12696
+ type SwapSpeedTierParams = {
12697
+ /** Source spoke token. */
12698
+ srcToken: XToken;
12699
+ /** Destination spoke token. */
12700
+ dstToken: XToken;
12701
+ };
12702
+ /**
12703
+ * Hardcoded base estimates (seconds) for the rule-based speed tier.
12704
+ *
12705
+ * These are fixed rule constants — derived once from observed solver settlement
12706
+ * behavior, NOT measured at runtime. The optional future enhancement (analyzing public intents
12707
+ * data) would refine them; for the base feature they are intentionally hardcoded.
12708
+ *
12709
+ * TODO: confirm the exact numbers against the referenced spec doc.
12710
+ */
12711
+ declare const SPEED_TIER_SECONDS: {
12712
+ /** Either token maps to a money-market-reserve (sodaAsset) hub asset. */
12713
+ readonly sodaAsset: 15;
12714
+ /** Anything else / default. */
12715
+ readonly default: 35;
12716
+ /** Added once when either src or dst is an Ethereum asset. */
12717
+ readonly ethereumPenalty: 10;
12718
+ };
12719
+ /**
12720
+ * Provisional second→tier boundaries (inclusive upper bounds).
12721
+ *
12722
+ * TODO: confirm labels and boundaries — the possible totals under the current rules are
12723
+ * 15 / 25 / 35 / 45, so these thresholds bucket them as fast(15) · normal(25) · slow(35, 45).
12724
+ */
12725
+ declare const SPEED_TIER_THRESHOLDS: {
12726
+ readonly fast: 20;
12727
+ readonly normal: 30;
12728
+ };
12729
+ /**
12730
+ * Pure, offline, rule-based estimate of how fast a src→dst swap will settle. Performs no
12731
+ * network or on-chain call — it classifies the pair from SDK config alone.
12732
+ *
12733
+ * @param params `{ srcToken, dstToken }` spoke token pair to classify
12734
+ * @param isSodaAssetRelated predicate answering "is this hub asset a money-market-reserve
12735
+ * (sodaAsset)?". In the service this is wired to `config.isMoneyMarketReserveHubAsset`; the
12736
+ * predicate is injected so this function stays pure and unit-testable without a ConfigService.
12737
+ *
12738
+ * The fast 15s base applies when either token is sodaAsset-related; otherwise the base is 35s.
12739
+ */
12740
+ declare function estimateSwapSpeedTier({ srcToken, dstToken }: SwapSpeedTierParams, isSodaAssetRelated: (hubAsset: Address) => boolean): SwapSpeedTierResult;
12741
+
12608
12742
  /** The tagged status union behind `SwapService.getDetailedStatus`. Pure — no I/O. */
12609
12743
 
12610
12744
  /** The identity a detailed status is read for — the backend submit-tx record's key. */
@@ -13206,6 +13340,17 @@ declare class SwapService {
13206
13340
  * @returns A map from each `SpokeChainKey` to its readonly array of supported `XToken` objects.
13207
13341
  */
13208
13342
  getSupportedSwapTokens(): Record<SpokeChainKey, readonly XToken[]>;
13343
+ /**
13344
+ * Offline, rule-based estimate of how fast a `srcToken`→`dstToken` swap will settle.
13345
+ *
13346
+ * Derived purely from SDK config (no network / on-chain / backend call): tokens tied to a
13347
+ * money-market-reserve sodaAsset settle faster, and an Ethereum leg adds a fixed penalty. See
13348
+ * {@link estimateSwapSpeedTier} for the rules.
13349
+ *
13350
+ * @param params `{ srcToken, dstToken }` spoke token pair to estimate
13351
+ * @returns the estimated `tier` bucket and `estimatedSeconds`
13352
+ */
13353
+ getSwapSpeedTier(params: SwapSpeedTierParams): SwapSpeedTierResult;
13209
13354
  }
13210
13355
 
13211
13356
  /**
@@ -13964,6 +14109,11 @@ type BridgeExtras<K extends SpokeChainKey = SpokeChainKey> = (GetChainType<K> ex
13964
14109
  * Omit to use the configured fee. Chain-agnostic (unlike `srcPublicKey`/`bound`).
13965
14110
  */
13966
14111
  partnerFee?: PartnerFee;
14112
+ /**
14113
+ * Overrides the configured backend API key for this action's backend submit-tx leg; sent as the
14114
+ * `x-api-key` header. Falls back to config when omitted. Chain-agnostic.
14115
+ */
14116
+ apiKey?: string;
13967
14117
  };
13968
14118
  type BridgeParams<ChainKey extends SpokeChainKey, Raw extends boolean> = SpokeExecActionParams<ChainKey, Raw, CreateBridgeIntentParams<ChainKey>, BridgeExtras<ChainKey>>;
13969
14119
  type BridgeServiceConstructorParams = {
@@ -18014,11 +18164,12 @@ declare class SponsoringService {
18014
18164
  */
18015
18165
  private resolveBaseReserveStroops;
18016
18166
  /**
18017
- * Cache key for a config request: the resolved base URL plus any per-call
18018
- * headers. Headers can select a different response from the same URL — an API
18019
- * key scoped to another deployment, or a test harness's scenario header — so
18020
- * folding them in stops one caller's override from being served to, or
18021
- * overwriting, the default path. Kept in memory as a Map key only.
18167
+ * Cache key for a config request: the resolved base URL plus the per-call headers the request will
18168
+ * actually carry, `apiKey` included. Headers can select a different response from the same URL — an
18169
+ * API key scoped to another deployment, or a test harness's scenario header — so folding them in
18170
+ * stops one caller's override from being served to, or overwriting, the default path. Names are
18171
+ * lower-cased before sorting and serialized as JSON so casing and delimiters cannot collide two
18172
+ * distinct header sets onto one key. Kept in memory as a Map key only.
18022
18173
  */
18023
18174
  private configCacheKey;
18024
18175
  /**
@@ -18471,9 +18622,11 @@ declare class SolverApiService {
18471
18622
  *
18472
18623
  * @param request - Object containing `intent_tx_hash` (the hub-chain tx hash of the created intent).
18473
18624
  * @param config - Solver endpoint configuration.
18625
+ * @param logger - Diagnostics sink; defaults to the silent logger.
18626
+ * @param apiKey - Configured backend API key (`config.apiKey`), sent as the `x-api-key` header.
18474
18627
  * @returns A `Result` containing `{ answer: 'OK', intent_hash: Hex }` on success.
18475
18628
  */
18476
- static postExecution(request: SolverExecutionRequest, config: SolverConfig, logger?: SodaxLogger): Promise<Result<SolverExecutionResponse, SolverErrorResponse>>;
18629
+ static postExecution(request: SolverExecutionRequest, config: SolverConfig, logger?: SodaxLogger, apiKey?: string): Promise<Result<SolverExecutionResponse, SolverErrorResponse>>;
18477
18630
  /**
18478
18631
  * Polls the solver API for the current execution status of an intent (`POST /status`).
18479
18632
  *
@@ -18488,11 +18641,12 @@ declare class SolverApiService {
18488
18641
  * request instantly. A non-positive one is a real budget of zero: the request aborts at once.
18489
18642
  * The relay's `getTransactionPackets` takes the same parameter but degrades a non-finite value
18490
18643
  * to its own per-request budget instead; the divergence is deliberate, and explained inline.
18644
+ * @param apiKey - Configured backend API key (`config.apiKey`), sent as the `x-api-key` header.
18491
18645
  * @returns A `Result` containing `{ status: SolverIntentStatusCode, fill_tx_hash?: string }`.
18492
18646
  * `fill_tx_hash` is set only when `status === SolverIntentStatusCode.SOLVED (3)`.
18493
18647
  * @throws Invariant error if `intent_tx_hash` is empty (thrown before the async request).
18494
18648
  */
18495
- static getStatus(request: SolverIntentStatusRequest, config: SolverConfig, logger?: SodaxLogger, timeoutMs?: number): Promise<Result<SolverIntentStatusResponse, SolverErrorResponse>>;
18649
+ static getStatus(request: SolverIntentStatusRequest, config: SolverConfig, logger?: SodaxLogger, timeoutMs?: number, apiKey?: string): Promise<Result<SolverIntentStatusResponse, SolverErrorResponse>>;
18496
18650
  }
18497
18651
 
18498
18652
  /**
@@ -18733,4 +18887,4 @@ type DexApproveErrorCode = ApproveErrorCode;
18733
18887
  type DexApproveError = SodaxError<DexApproveErrorCode>;
18734
18888
  declare const isDexApproveError: (e: unknown) => e is SodaxError<ApproveErrorCode>;
18735
18889
 
18736
- 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, 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, 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, SuiGrpcTransport, 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, isApprovalSupportedChainKeyType, 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 };
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 };