@sodax/sdk 2.0.0-rc.19 → 2.0.0-rc.20
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/README.md +4 -4
- package/dist/index.cjs +544 -762
- package/dist/index.d.cts +124 -175
- package/dist/index.d.ts +124 -175
- package/dist/index.mjs +540 -764
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SodaxFeature, ISwapsApiV2, Result, SwapsApiConfig, SodaxLogger, GetSwap
|
|
|
2
2
|
export * from '@sodax/types';
|
|
3
3
|
export { SodaxFeature } from '@sodax/types';
|
|
4
4
|
import * as viem from 'viem';
|
|
5
|
-
import { Hex as Hex$1, Chain, Address as Address$1, PublicClient,
|
|
5
|
+
import { Hex as Hex$1, Chain, Address as Address$1, PublicClient, Hash, HttpTransport, GetLogsReturnType } from 'viem';
|
|
6
6
|
import { StacksNetwork, ClarityValue } from '@sodax/libs/stacks/core';
|
|
7
7
|
import { networks, Psbt } from 'bitcoinjs-lib';
|
|
8
8
|
import { JsonRpcProvider } from 'near-api-js';
|
|
@@ -17,6 +17,7 @@ import * as _coral_xyz_anchor from '@coral-xyz/anchor';
|
|
|
17
17
|
import { AnchorProvider, Program } from '@coral-xyz/anchor';
|
|
18
18
|
import { Price, Token } from '@pancakeswap/swap-sdk-core';
|
|
19
19
|
import BigNumber$1 from 'bignumber.js';
|
|
20
|
+
export { SwapsApiError, SwapsApiErrorCode, SwapsApiErrorContext } from '@sodax/swaps-api';
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* Unified error vocabulary for the SODAX SDK.
|
|
@@ -36,6 +37,9 @@ import BigNumber$1 from 'bignumber.js';
|
|
|
36
37
|
* Reason-only error codes. Each code answers "what kind of failure was this?", not
|
|
37
38
|
* "which feature?".
|
|
38
39
|
*
|
|
40
|
+
* - `USER_REJECTED` — the connected wallet reported a user-initiated rejection of the
|
|
41
|
+
* signing / connection / approval prompt. Cancellation is a normal flow, not a failure per
|
|
42
|
+
* se — consumers branch on this code to render a "Cancelled" UI.
|
|
39
43
|
* - `VALIDATION_FAILED` — a precondition / invariant tripped before any external call.
|
|
40
44
|
* - `INTENT_CREATION_FAILED` — building the intent / calldata / payload failed (typically
|
|
41
45
|
* in a `create*Intent` method).
|
|
@@ -59,7 +63,7 @@ import BigNumber$1 from 'bignumber.js';
|
|
|
59
63
|
* identifies which service.
|
|
60
64
|
* - `UNKNOWN` — last-resort catch in an outer `try`. Should be extremely rare in production.
|
|
61
65
|
*/
|
|
62
|
-
type SodaxErrorCode = 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'EXECUTION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'APPROVE_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'GAS_ESTIMATION_FAILED' | 'LOOKUP_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN';
|
|
66
|
+
type SodaxErrorCode = 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'EXECUTION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'APPROVE_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'GAS_ESTIMATION_FAILED' | 'LOOKUP_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN';
|
|
63
67
|
|
|
64
68
|
/**
|
|
65
69
|
* Orchestration phase tag attached via `context.phase`. Canonical superset across all
|
|
@@ -113,8 +117,8 @@ type SodaxErrorContext = {
|
|
|
113
117
|
reason?: string;
|
|
114
118
|
[key: string]: unknown;
|
|
115
119
|
};
|
|
116
|
-
type CreateIntentErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'UNKNOWN'>;
|
|
117
|
-
type ApproveErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'APPROVE_FAILED' | 'UNKNOWN'>;
|
|
120
|
+
type CreateIntentErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'UNKNOWN'>;
|
|
121
|
+
type ApproveErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'APPROVE_FAILED' | 'UNKNOWN'>;
|
|
118
122
|
type AllowanceCheckErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'UNKNOWN'>;
|
|
119
123
|
type GasEstimationErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'GAS_ESTIMATION_FAILED' | 'UNKNOWN'>;
|
|
120
124
|
type LookupErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'LOOKUP_FAILED' | 'UNKNOWN'>;
|
|
@@ -129,7 +133,7 @@ declare const GAS_ESTIMATION_CODES: ReadonlySet<GasEstimationErrorCode>;
|
|
|
129
133
|
/** Codes any read-only lookup method can return. */
|
|
130
134
|
declare const LOOKUP_CODES: ReadonlySet<LookupErrorCode>;
|
|
131
135
|
/** Runtime list of all valid error codes — useful for membership checks and exhaustive switches. */
|
|
132
|
-
declare const SODAX_ERROR_CODES: readonly ["VALIDATION_FAILED", "INTENT_CREATION_FAILED", "EXECUTION_FAILED", "TX_VERIFICATION_FAILED", "TX_SUBMIT_FAILED", "RELAY_TIMEOUT", "RELAY_FAILED", "APPROVE_FAILED", "ALLOWANCE_CHECK_FAILED", "GAS_ESTIMATION_FAILED", "LOOKUP_FAILED", "EXTERNAL_API_ERROR", "UNKNOWN"];
|
|
136
|
+
declare const SODAX_ERROR_CODES: readonly ["USER_REJECTED", "VALIDATION_FAILED", "INTENT_CREATION_FAILED", "EXECUTION_FAILED", "TX_VERIFICATION_FAILED", "TX_SUBMIT_FAILED", "RELAY_TIMEOUT", "RELAY_FAILED", "APPROVE_FAILED", "ALLOWANCE_CHECK_FAILED", "GAS_ESTIMATION_FAILED", "LOOKUP_FAILED", "EXTERNAL_API_ERROR", "UNKNOWN"];
|
|
133
137
|
/** Runtime list of all valid feature tags. */
|
|
134
138
|
declare const SODAX_FEATURES: readonly ["swap", "moneyMarket", "bridge", "staking", "migration", "dex", "partner", "recovery", "backend", "leverageYield"];
|
|
135
139
|
|
|
@@ -308,12 +312,22 @@ type Ctx = Partial<SodaxErrorContext>;
|
|
|
308
312
|
declare function lookupFailed(feature: SodaxFeature, method: string, cause: unknown, context?: Ctx): SodaxError<'LOOKUP_FAILED'>;
|
|
309
313
|
/** `TX_VERIFICATION_FAILED` — spoke `verifyTxHash` returned false / threw. */
|
|
310
314
|
declare function verifyFailed(feature: SodaxFeature, cause: unknown, context?: Ctx): SodaxError<'TX_VERIFICATION_FAILED'>;
|
|
311
|
-
/**
|
|
312
|
-
|
|
315
|
+
/**
|
|
316
|
+
* `INTENT_CREATION_FAILED` — spoke deposit / sendMessage / intent build failed.
|
|
317
|
+
*
|
|
318
|
+
* Wraps the wallet-sign step. If the cause matches a wallet rejection shape, classifies as
|
|
319
|
+
* `USER_REJECTED` instead so consumers can branch on a single canonical "cancelled" code.
|
|
320
|
+
*/
|
|
321
|
+
declare function intentCreationFailed(feature: SodaxFeature, cause: unknown, context?: Ctx): SodaxError<'USER_REJECTED' | 'INTENT_CREATION_FAILED'>;
|
|
313
322
|
/** `EXECUTION_FAILED` — orchestrator-level catch-all. `context.action` discriminates the op. */
|
|
314
323
|
declare function executionFailed(feature: SodaxFeature, cause: unknown, context?: Ctx): SodaxError<'EXECUTION_FAILED'>;
|
|
315
|
-
/**
|
|
316
|
-
|
|
324
|
+
/**
|
|
325
|
+
* `APPROVE_FAILED` — token approval call failed.
|
|
326
|
+
*
|
|
327
|
+
* Wraps the wallet-sign step. If the cause matches a wallet rejection shape, classifies as
|
|
328
|
+
* `USER_REJECTED` instead.
|
|
329
|
+
*/
|
|
330
|
+
declare function approveFailed(feature: SodaxFeature, cause: unknown, context?: Ctx): SodaxError<'USER_REJECTED' | 'APPROVE_FAILED'>;
|
|
317
331
|
/** `ALLOWANCE_CHECK_FAILED` — reading on-chain allowance failed. */
|
|
318
332
|
declare function allowanceCheckFailed(feature: SodaxFeature, cause: unknown, context?: Ctx): SodaxError<'ALLOWANCE_CHECK_FAILED'>;
|
|
319
333
|
/** `GAS_ESTIMATION_FAILED` — gas estimation call failed. */
|
|
@@ -7503,19 +7517,18 @@ type ResultifiedSwapsApiV2 = {
|
|
|
7503
7517
|
/**
|
|
7504
7518
|
* HTTP client for the backend **Swaps API v2** (`/swaps/*`).
|
|
7505
7519
|
*
|
|
7506
|
-
*
|
|
7507
|
-
*
|
|
7508
|
-
*
|
|
7509
|
-
* `
|
|
7520
|
+
* A thin adapter over the standalone `@sodax/swaps-api` package (the single source of the wire
|
|
7521
|
+
* client — request building, per-chain `tx` validation/transform, response schemas, HTTP + retry).
|
|
7522
|
+
* This service adds the SDK conventions on top: `Result<T>` (it never throws), a `SodaxLogger`,
|
|
7523
|
+
* `SwapsApiConfig`/`ApiConfig` resolution, and per-call `RequestOverrideConfig`.
|
|
7510
7524
|
*
|
|
7511
|
-
* All public methods return `Promise<Result<T
|
|
7512
|
-
*
|
|
7513
|
-
*
|
|
7514
|
-
* `
|
|
7515
|
-
* in the `error` field; the underlying failure is preserved on `error.cause`.
|
|
7525
|
+
* All public methods return `Promise<Result<T>>`. On network failure, timeout, non-2xx HTTP
|
|
7526
|
+
* response, or response-shape validation failure, the returned Result has `ok: false` with a
|
|
7527
|
+
* canonical `SodaxError<'EXTERNAL_API_ERROR'>` (`feature: 'backend'`, `context.api: 'swaps'`,
|
|
7528
|
+
* `context.endpoint`); the underlying `SwapsApiError` is preserved on `error.cause`.
|
|
7516
7529
|
*
|
|
7517
|
-
* Per-call request overrides (base URL, timeout, headers) can be passed as the
|
|
7518
|
-
*
|
|
7530
|
+
* Per-call request overrides (base URL, timeout, headers) can be passed as the optional last
|
|
7531
|
+
* argument to any method via `RequestOverrideConfig`.
|
|
7519
7532
|
*
|
|
7520
7533
|
* Reachable on the Sodax facade as `sodax.api.swaps`.
|
|
7521
7534
|
*/
|
|
@@ -7525,152 +7538,80 @@ declare class SwapsApiService implements ResultifiedSwapsApiV2 {
|
|
|
7525
7538
|
private readonly logger;
|
|
7526
7539
|
constructor(config: SwapsApiConfig, logger?: SodaxLogger);
|
|
7527
7540
|
/**
|
|
7528
|
-
*
|
|
7529
|
-
*
|
|
7530
|
-
*
|
|
7531
|
-
*
|
|
7541
|
+
* Build a `@sodax/swaps-api` client for a single call. Maps the SDK's `SwapsApiConfig`
|
|
7542
|
+
* (`baseURL`/`timeout`/`headers`) to the package's config (`baseUrl`/`timeout`/`headers`), layering
|
|
7543
|
+
* the optional per-call `RequestOverrideConfig` on top (override wins per field; headers merge).
|
|
7544
|
+
* `timeout` falls back to the backend-API default so a config that omits it still gets a ceiling
|
|
7545
|
+
* rather than an unbounded request. Constructed per call so `setHeaders` mutations and per-call
|
|
7546
|
+
* overrides both take effect without caching stale state.
|
|
7532
7547
|
*/
|
|
7533
|
-
private
|
|
7548
|
+
private buildClient;
|
|
7534
7549
|
/**
|
|
7535
|
-
*
|
|
7536
|
-
*
|
|
7537
|
-
*
|
|
7550
|
+
* Run one delegated `SwapsApi` call and wrap it in `Result<T>`. A thrown `SwapsApiError`
|
|
7551
|
+
* (network/timeout/HTTP/parse/validation) becomes `{ ok: false }` with a canonical
|
|
7552
|
+
* `SodaxError<'EXTERNAL_API_ERROR'>`; the original error is kept as `cause`, and its
|
|
7553
|
+
* `code`/`status`/`issues` are projected into `context` so consumers can discriminate failure
|
|
7554
|
+
* kinds without unwrapping `cause`. Only a RESPONSE-shape validation failure is tagged
|
|
7555
|
+
* `reason: 'invalid_response_shape'` — a request-side validation error is a caller bug, not a
|
|
7556
|
+
* backend fault.
|
|
7538
7557
|
*/
|
|
7539
|
-
|
|
7558
|
+
private toResult;
|
|
7540
7559
|
/**
|
|
7541
|
-
*
|
|
7542
|
-
*
|
|
7543
|
-
*
|
|
7544
|
-
*
|
|
7560
|
+
* Drop the SDK-only display field `feeAmount` before an intent reaches the strict wire serializer.
|
|
7561
|
+
* `sodax.swaps.createIntent` returns `Intent & FeeAmount`, which is structurally assignable to the
|
|
7562
|
+
* wire `IntentRequestV2` and so gets passed straight into the intent-carrying endpoints; the extra
|
|
7563
|
+
* bigint would trip `serializeIntentRequest`. This is a no-op for an already-clean `IntentRequestV2`.
|
|
7545
7564
|
*/
|
|
7565
|
+
private static toWireIntent;
|
|
7566
|
+
/** Fetch all supported swap tokens grouped by SpokeChainKey. */
|
|
7567
|
+
getTokens(config?: RequestOverrideConfig): Promise<Result<GetSwapTokensResponseV2>>;
|
|
7568
|
+
/** Fetch supported swap tokens for a single SpokeChainKey. */
|
|
7546
7569
|
getTokensByChain(chainKey: string, config?: RequestOverrideConfig): Promise<Result<GetSwapTokensByChainResponseV2>>;
|
|
7547
7570
|
/**
|
|
7548
|
-
* Get a solver quote for a cross-chain swap.
|
|
7549
|
-
*
|
|
7550
|
-
* Pass `query.includeTxData = true` to also build an unsigned create-intent
|
|
7551
|
-
* transaction (`txData`) using the quoted amount as `minOutputAmount`; in that
|
|
7552
|
-
* case `srcAddress`/`dstAddress` are required in the body.
|
|
7553
|
-
*
|
|
7554
|
-
* @returns `Result<QuoteResponseV2>` — `quotedAmount` (decimal string) and optional `txData`.
|
|
7571
|
+
* Get a solver quote for a cross-chain swap. Pass `query.includeTxData = true` to also build an
|
|
7572
|
+
* unsigned create-intent transaction (`txData`); in that case `srcAddress`/`dstAddress` are required.
|
|
7555
7573
|
*/
|
|
7556
7574
|
getQuote(body: QuoteRequestV2, query?: QuoteQueryV2, config?: RequestOverrideConfig): Promise<Result<QuoteResponseV2>>;
|
|
7557
|
-
/**
|
|
7558
|
-
* Compute a swap deadline (hub timestamp + `offsetSeconds`, default 300s).
|
|
7559
|
-
*
|
|
7560
|
-
* @returns `Result<DeadlineResponseV2>` — unix-seconds deadline (decimal string).
|
|
7561
|
-
*/
|
|
7575
|
+
/** Compute a swap deadline (hub timestamp + `offsetSeconds`, default 300s). */
|
|
7562
7576
|
getDeadline(query?: DeadlineQueryV2, config?: RequestOverrideConfig): Promise<Result<DeadlineResponseV2>>;
|
|
7563
|
-
/**
|
|
7564
|
-
* Check whether the source token allowance is already sufficient for the intent.
|
|
7565
|
-
*
|
|
7566
|
-
* @returns `Result<AllowanceCheckResponseV2>` — `{ valid }`.
|
|
7567
|
-
*/
|
|
7577
|
+
/** Check whether the source token allowance is already sufficient for the intent. */
|
|
7568
7578
|
checkAllowance(body: CreateIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<AllowanceCheckResponseV2>>;
|
|
7569
|
-
/**
|
|
7570
|
-
* Build an unsigned token-approval transaction for the source token.
|
|
7571
|
-
*
|
|
7572
|
-
* @returns `Result<ApproveResponseV2>` — `{ tx }` (chain-specific unsigned tx).
|
|
7573
|
-
*/
|
|
7579
|
+
/** Build an unsigned token-approval transaction for the source token. */
|
|
7574
7580
|
approve(body: CreateIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<ApproveResponseV2>>;
|
|
7575
|
-
/**
|
|
7576
|
-
* Build an unsigned create-intent transaction.
|
|
7577
|
-
*
|
|
7578
|
-
* @returns `Result<CreateIntentResponseV2>` — `{ tx, intent, relayData }`.
|
|
7579
|
-
*/
|
|
7581
|
+
/** Build an unsigned create-intent transaction. */
|
|
7580
7582
|
createIntent(body: CreateIntentParamsV2, config?: RequestOverrideConfig): Promise<Result<CreateIntentResponseV2>>;
|
|
7581
|
-
/**
|
|
7582
|
-
* Submit the broadcast intent tx to the relay.
|
|
7583
|
-
*
|
|
7584
|
-
* @returns `Result<SubmitIntentResponseV2>` — `{ result }` (opaque relay response).
|
|
7585
|
-
*/
|
|
7583
|
+
/** Submit the broadcast intent tx to the relay. */
|
|
7586
7584
|
submitIntent(body: SubmitIntentRequestV2, config?: RequestOverrideConfig): Promise<Result<SubmitIntentResponseV2>>;
|
|
7587
|
-
/**
|
|
7588
|
-
* Poll the solver for intent execution status.
|
|
7589
|
-
*
|
|
7590
|
-
* @returns `Result<StatusResponseV2>` — `{ status, fillTxHash? }` (`fillTxHash` set when `status === 3`).
|
|
7591
|
-
*/
|
|
7585
|
+
/** Poll the solver for intent execution status. */
|
|
7592
7586
|
getStatus(body: StatusRequestV2, config?: RequestOverrideConfig): Promise<Result<StatusResponseV2>>;
|
|
7593
|
-
/**
|
|
7594
|
-
* Build an unsigned cancel-intent transaction. The `intent` field carries
|
|
7595
|
-
* `bigint` numerics — {@link toJsonBody} serializes them to decimal strings.
|
|
7596
|
-
*
|
|
7597
|
-
* @returns `Result<CancelIntentResponseV2>` — `{ tx }`.
|
|
7598
|
-
*/
|
|
7587
|
+
/** Build an unsigned cancel-intent transaction (the `intent` bigint numerics serialize to strings). */
|
|
7599
7588
|
cancelIntent(body: CancelIntentRequestV2, config?: RequestOverrideConfig): Promise<Result<CancelIntentResponseV2>>;
|
|
7600
|
-
/**
|
|
7601
|
-
* Compute the keccak256 hash of an Intent struct. The `intent` field carries
|
|
7602
|
-
* `bigint` numerics — {@link toJsonBody} serializes them to decimal strings.
|
|
7603
|
-
*
|
|
7604
|
-
* @returns `Result<IntentHashResponseV2>` — `{ hash }`.
|
|
7605
|
-
*/
|
|
7589
|
+
/** Compute the keccak256 hash of an Intent struct (bigint numerics serialize to strings). */
|
|
7606
7590
|
getIntentHash(body: IntentHashRequestV2, config?: RequestOverrideConfig): Promise<Result<IntentHashResponseV2>>;
|
|
7607
|
-
/**
|
|
7608
|
-
* Long-poll the relayer until the fill packet lands on the destination chain.
|
|
7609
|
-
*
|
|
7610
|
-
* @returns `Result<IntentPacketResponseV2>` — delivered packet data.
|
|
7611
|
-
*/
|
|
7591
|
+
/** Long-poll the relayer until the fill packet lands on the destination chain. */
|
|
7612
7592
|
getSolvedIntentPacket(body: IntentPacketRequestV2, config?: RequestOverrideConfig): Promise<Result<IntentPacketResponseV2>>;
|
|
7613
|
-
/**
|
|
7614
|
-
* Recover the relay extra data needed by `/swaps/intents/submit`. Provide
|
|
7615
|
-
* EITHER `txHash` OR `intent` (whose `bigint` numerics {@link toJsonBody} serializes).
|
|
7616
|
-
*
|
|
7617
|
-
* @returns `Result<IntentExtraDataResponseV2>` — `{ address, payload }`.
|
|
7618
|
-
*/
|
|
7593
|
+
/** Recover the relay extra data needed by `/swaps/intents/submit` (provide EITHER `txHash` OR `intent`). */
|
|
7619
7594
|
getIntentSubmitTxExtraData(body: IntentExtraDataRequestV2, config?: RequestOverrideConfig): Promise<Result<IntentExtraDataResponseV2>>;
|
|
7620
|
-
/**
|
|
7621
|
-
* Get the on-chain fill state for an intent by its hub-chain tx hash.
|
|
7622
|
-
*
|
|
7623
|
-
* @returns `Result<IntentStateV2>` — `{ exists, remainingInput, receivedOutput, pendingPayment }`.
|
|
7624
|
-
*/
|
|
7595
|
+
/** Get the on-chain fill state for an intent by its hub-chain tx hash. */
|
|
7625
7596
|
getFilledIntent(txHash: string, config?: RequestOverrideConfig): Promise<Result<IntentStateV2>>;
|
|
7626
|
-
/**
|
|
7627
|
-
* Look up an Intent struct by its hub-chain creation tx hash.
|
|
7628
|
-
*
|
|
7629
|
-
* @returns `Result<GetIntentResponseV2>` — the decoded intent (bigint fields as decimal strings).
|
|
7630
|
-
*/
|
|
7597
|
+
/** Look up an Intent struct by its hub-chain creation tx hash. */
|
|
7631
7598
|
getIntent(txHash: string, config?: RequestOverrideConfig): Promise<Result<GetIntentResponseV2>>;
|
|
7632
|
-
/**
|
|
7633
|
-
* Build an unsigned create-limit-order-intent transaction (same as create-intent
|
|
7634
|
-
* but `deadline` is optional).
|
|
7635
|
-
*
|
|
7636
|
-
* @returns `Result<CreateLimitOrderResponseV2>` — `{ tx, intent, relayData }`.
|
|
7637
|
-
*/
|
|
7599
|
+
/** Build an unsigned create-limit-order-intent transaction (create-intent with optional `deadline`). */
|
|
7638
7600
|
createLimitOrderIntent(body: CreateLimitOrderParamsV2, config?: RequestOverrideConfig): Promise<Result<CreateLimitOrderResponseV2>>;
|
|
7639
|
-
/**
|
|
7640
|
-
* Estimate gas for a raw transaction on a spoke chain.
|
|
7641
|
-
*
|
|
7642
|
-
* @returns `Result<GasEstimateResponseV2>` — `{ gas }` (chain-specific shape).
|
|
7643
|
-
*/
|
|
7601
|
+
/** Estimate gas for a raw transaction on a spoke chain (bigint `tx` numerics serialize to strings). */
|
|
7644
7602
|
estimateGas(body: GasEstimateRequestV2, config?: RequestOverrideConfig): Promise<Result<GasEstimateResponseV2>>;
|
|
7645
|
-
/**
|
|
7646
|
-
* Compute the partner fee for a given input amount.
|
|
7647
|
-
*
|
|
7648
|
-
* @returns `Result<FeeResponseV2>` — `{ fee }` (decimal string).
|
|
7649
|
-
*/
|
|
7603
|
+
/** Compute the partner fee for a given input amount. */
|
|
7650
7604
|
getPartnerFee(query: FeeQueryV2, config?: RequestOverrideConfig): Promise<Result<FeeResponseV2>>;
|
|
7651
|
-
/**
|
|
7652
|
-
* Compute the protocol (solver) fee for a given input amount.
|
|
7653
|
-
*
|
|
7654
|
-
* @returns `Result<FeeResponseV2>` — `{ fee }` (decimal string).
|
|
7655
|
-
*/
|
|
7605
|
+
/** Compute the protocol (solver) fee for a given input amount. */
|
|
7656
7606
|
getSolverFee(query: FeeQueryV2, config?: RequestOverrideConfig): Promise<Result<FeeResponseV2>>;
|
|
7657
|
-
/**
|
|
7658
|
-
* Submit a swap transaction to be processed (relay, post-execution, etc.). The
|
|
7659
|
-
* `intent` field carries `bigint` numerics — {@link toJsonBody} serializes them.
|
|
7660
|
-
* Idempotent on `(txHash, srcChainKey)`.
|
|
7661
|
-
*
|
|
7662
|
-
* @returns `Result<SubmitTxResponseV2>` — `{ success, data: { status, message } }`.
|
|
7663
|
-
*/
|
|
7607
|
+
/** Submit a swap transaction to be processed (relay, post-execution, etc.). Idempotent on `(txHash, srcChainKey)`. */
|
|
7664
7608
|
submitTx(body: SubmitTxRequestV2, config?: RequestOverrideConfig): Promise<Result<SubmitTxResponseV2>>;
|
|
7665
|
-
/**
|
|
7666
|
-
* Get the processing status of a submitted swap transaction by `(txHash, srcChainKey)`.
|
|
7667
|
-
*
|
|
7668
|
-
* @returns `Result<SubmitTxStatusResponseV2>` — `{ success, data }` (processing state).
|
|
7669
|
-
*/
|
|
7609
|
+
/** Get the processing status of a submitted swap transaction by `(txHash, srcChainKey)`. */
|
|
7670
7610
|
getSubmitTxStatus(query: SubmitTxStatusQueryV2, config?: RequestOverrideConfig): Promise<Result<SubmitTxStatusResponseV2>>;
|
|
7671
7611
|
/**
|
|
7672
7612
|
* Merge additional headers into the service's default header set. Existing
|
|
7673
|
-
* keys are overwritten; keys absent from `headers` are preserved.
|
|
7613
|
+
* keys are overwritten; keys absent from `headers` are preserved. Applied to
|
|
7614
|
+
* every subsequent call (the delegated client is rebuilt per call).
|
|
7674
7615
|
*/
|
|
7675
7616
|
setHeaders(headers: Record<string, string>): void;
|
|
7676
7617
|
/** Return the base URL the service is currently pointing at. */
|
|
@@ -8720,7 +8661,7 @@ type CreateSonicSwapIntentParams<Raw extends boolean> = {
|
|
|
8720
8661
|
} & WalletProviderSlot<SonicChainKey, Raw>;
|
|
8721
8662
|
declare class SonicSpokeService {
|
|
8722
8663
|
private readonly config;
|
|
8723
|
-
readonly publicClient: PublicClient
|
|
8664
|
+
readonly publicClient: PublicClient;
|
|
8724
8665
|
private readonly pollingIntervalMs;
|
|
8725
8666
|
private readonly maxTimeoutMs;
|
|
8726
8667
|
constructor(config: ConfigService);
|
|
@@ -8785,11 +8726,11 @@ type EvmHubProviderConstructorParams = {
|
|
|
8785
8726
|
config: ConfigService;
|
|
8786
8727
|
};
|
|
8787
8728
|
declare class EvmHubProvider {
|
|
8788
|
-
readonly publicClient: PublicClient
|
|
8729
|
+
readonly publicClient: PublicClient;
|
|
8789
8730
|
readonly chainConfig: HubConfig;
|
|
8790
8731
|
readonly config: ConfigService;
|
|
8791
8732
|
readonly service: SonicSpokeService;
|
|
8792
|
-
readonly hubAddressMap: Map<`${string}:0xa86a.avax` | `${string}:0xa4b1.arbitrum` | `${string}:0x2105.base` | `${string}:0x38.bsc` | `${string}:injective-1` | `${string}:sonic` | `${string}:0x1.icon` | `${string}:sui` | `${string}:0xa.optimism` | `${string}:0x89.polygon` | `${string}:solana` | `${string}:stellar` | `${string}:hyper` | `${string}:lightlink` | `${string}:near` | `${string}:ethereum` | `${string}:bitcoin` | `${string}:redbelly` | `${string}:0x2019.kaia` | `${string}:stacks`, `0x${string}`>;
|
|
8733
|
+
readonly hubAddressMap: Map<`${string}:0xa86a.avax` | `${string}:0xa4b1.arbitrum` | `${string}:0x2105.base` | `${string}:0x38.bsc` | `${string}:injective-1` | `${string}:sonic` | `${string}:0x1.icon` | `${string}:sui` | `${string}:0xa.optimism` | `${string}:0x89.polygon` | `${string}:solana` | `${string}:stellar` | `${string}:hyper` | `${string}:lightlink` | `${string}:near` | `${string}:ethereum` | `${string}:bitcoin` | `${string}:redbelly` | `${string}:0x2019.kaia` | `${string}:stacks` | `${string}:hedera`, `0x${string}`>;
|
|
8793
8734
|
constructor({ config }: EvmHubProviderConstructorParams);
|
|
8794
8735
|
/**
|
|
8795
8736
|
* Gets the cached user's hub wallet address for a spoke chain address.
|
|
@@ -8879,10 +8820,10 @@ declare class EvmVaultTokenService {
|
|
|
8879
8820
|
* Fetches token information for a specific token in the vault.
|
|
8880
8821
|
* @param vault - The address of the vault.
|
|
8881
8822
|
* @param token - The address of the token.
|
|
8882
|
-
* @param publicClient - PublicClient
|
|
8823
|
+
* @param publicClient - PublicClient
|
|
8883
8824
|
* @returns Token information as a TokenInfo object.
|
|
8884
8825
|
*/
|
|
8885
|
-
static getTokenInfo(vault: Address$1, token: Address$1, publicClient: PublicClient
|
|
8826
|
+
static getTokenInfo(vault: Address$1, token: Address$1, publicClient: PublicClient): Promise<TokenInfo>;
|
|
8886
8827
|
/**
|
|
8887
8828
|
* Fetches token information for a list of tokens in a vault using a multicall.
|
|
8888
8829
|
* @param vault - The address of the vault contract.
|
|
@@ -8890,21 +8831,21 @@ declare class EvmVaultTokenService {
|
|
|
8890
8831
|
* @param publicClient - The Viem PublicClient instance used to interact with the blockchain.
|
|
8891
8832
|
* @returns A promise that resolves to an array of TokenInfo objects, one for each provided token.
|
|
8892
8833
|
*/
|
|
8893
|
-
static getTokenInfos(vault: Address$1, tokens: Address$1[], publicClient: PublicClient
|
|
8834
|
+
static getTokenInfos(vault: Address$1, tokens: Address$1[], publicClient: PublicClient): Promise<TokenInfo[]>;
|
|
8894
8835
|
/**
|
|
8895
8836
|
* Retrieves the reserves of the vault.
|
|
8896
8837
|
* @param vault - The address of the vault.
|
|
8897
|
-
* @param publicClient - PublicClient
|
|
8838
|
+
* @param publicClient - PublicClient
|
|
8898
8839
|
* @returns An object containing tokens and their balances.
|
|
8899
8840
|
*/
|
|
8900
|
-
static getVaultReserves(vault: Address$1, publicClient: PublicClient
|
|
8841
|
+
static getVaultReserves(vault: Address$1, publicClient: PublicClient): Promise<VaultReserves>;
|
|
8901
8842
|
/**
|
|
8902
8843
|
* Retrieves all token information for the vault.
|
|
8903
8844
|
* @param vault - The address of the vault.
|
|
8904
|
-
* @param publicClient - PublicClient
|
|
8845
|
+
* @param publicClient - PublicClient
|
|
8905
8846
|
* @returns A promise that resolves to an object containing tokens, their infos, and reserves.
|
|
8906
8847
|
*/
|
|
8907
|
-
static getAllTokenInfo(vault: Address$1, publicClient: PublicClient
|
|
8848
|
+
static getAllTokenInfo(vault: Address$1, publicClient: PublicClient): Promise<{
|
|
8908
8849
|
tokens: readonly Address$1[];
|
|
8909
8850
|
infos: readonly TokenInfo[];
|
|
8910
8851
|
reserves: readonly bigint[];
|
|
@@ -12149,7 +12090,7 @@ type SwapCreateIntentErrorCode = CreateIntentErrorCode;
|
|
|
12149
12090
|
* that handles both `postExecution` and `swap` errors expecting the same union.
|
|
12150
12091
|
*/
|
|
12151
12092
|
type PostExecutionErrorCode = Extract<SodaxErrorCode, 'EXECUTION_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN'>;
|
|
12152
|
-
type SwapErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN'>;
|
|
12093
|
+
type SwapErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN'>;
|
|
12153
12094
|
type SwapCreateIntentError = SodaxError<SwapCreateIntentErrorCode>;
|
|
12154
12095
|
type PostExecutionError = SodaxError<PostExecutionErrorCode>;
|
|
12155
12096
|
type SwapError = SodaxError<SwapErrorCode>;
|
|
@@ -12364,7 +12305,7 @@ declare class SwapService {
|
|
|
12364
12305
|
/**
|
|
12365
12306
|
* Backend 2-step swap path (opt-in via `swapsOptions.useBackendSubmitTx`): hand the broadcast
|
|
12366
12307
|
* intent tx to the swaps API (`POST /swaps/submit-tx`); the backend relays + post-executes
|
|
12367
|
-
* server-side. Polls `getSubmitTxStatus` until `
|
|
12308
|
+
* server-side. Polls `getSubmitTxStatus` until `solved`, then reconstructs the same
|
|
12368
12309
|
* {@link SwapResponse} the client-side path returns (`result.dstIntentTxHash` → delivery info,
|
|
12369
12310
|
* `result.intent_hash` → solver response).
|
|
12370
12311
|
*
|
|
@@ -12629,13 +12570,13 @@ declare class SwapService {
|
|
|
12629
12570
|
declare const migrationInvariant: FeatureInvariant;
|
|
12630
12571
|
type MigrationOp = 'migratebnUSD' | 'migrateIcxToSoda' | 'revertMigrateSodaToIcx' | 'migrateBaln';
|
|
12631
12572
|
type MigrationDirection = 'forward' | 'reverse';
|
|
12632
|
-
type MigrateOrchestrationErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
12573
|
+
type MigrateOrchestrationErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
12633
12574
|
type RevertMigrationOrchestrationErrorCode = Exclude<MigrateOrchestrationErrorCode, 'TX_VERIFICATION_FAILED'>;
|
|
12634
12575
|
type MigrationCreateIntentErrorCode = CreateIntentErrorCode;
|
|
12635
12576
|
type MigrationApproveErrorCode = ApproveErrorCode;
|
|
12636
12577
|
type MigrationAllowanceCheckErrorCode = AllowanceCheckErrorCode;
|
|
12637
12578
|
type MigrationLookupErrorCode = LookupErrorCode;
|
|
12638
|
-
type MigrationErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'APPROVE_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'LOOKUP_FAILED' | 'UNKNOWN'>;
|
|
12579
|
+
type MigrationErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'APPROVE_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'LOOKUP_FAILED' | 'UNKNOWN'>;
|
|
12639
12580
|
type MigrateOrchestrationError = SodaxError<MigrateOrchestrationErrorCode>;
|
|
12640
12581
|
type RevertMigrationOrchestrationError = SodaxError<RevertMigrationOrchestrationErrorCode>;
|
|
12641
12582
|
type MigrationCreateIntentError = SodaxError<MigrationCreateIntentErrorCode>;
|
|
@@ -13036,7 +12977,7 @@ declare class BalnSwapService {
|
|
|
13036
12977
|
* @param user - The EVM address of the user to query locks for.
|
|
13037
12978
|
* @returns An immutable array of `DetailedLock` objects, one per active lock.
|
|
13038
12979
|
*/
|
|
13039
|
-
getDetailedUserLocks(publicClient: PublicClient
|
|
12980
|
+
getDetailedUserLocks(publicClient: PublicClient, user: Address$1): Promise<readonly DetailedLock[]>;
|
|
13040
12981
|
/**
|
|
13041
12982
|
* Encodes a single `swap` call on the BALN swap contract.
|
|
13042
12983
|
*
|
|
@@ -13321,12 +13262,12 @@ declare class MigrationService {
|
|
|
13321
13262
|
|
|
13322
13263
|
declare const bridgeInvariant: FeatureInvariant;
|
|
13323
13264
|
type BridgeAction = 'bridge';
|
|
13324
|
-
type BridgeOrchestrationErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
13265
|
+
type BridgeOrchestrationErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
13325
13266
|
type BridgeCreateIntentErrorCode = CreateIntentErrorCode;
|
|
13326
13267
|
type BridgeApproveErrorCode = ApproveErrorCode;
|
|
13327
13268
|
type BridgeAllowanceCheckErrorCode = AllowanceCheckErrorCode;
|
|
13328
13269
|
type BridgeLookupErrorCode = LookupErrorCode;
|
|
13329
|
-
type BridgeErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'APPROVE_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'LOOKUP_FAILED' | 'UNKNOWN'>;
|
|
13270
|
+
type BridgeErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'APPROVE_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'LOOKUP_FAILED' | 'UNKNOWN'>;
|
|
13330
13271
|
type BridgeOrchestrationError = SodaxError<BridgeOrchestrationErrorCode>;
|
|
13331
13272
|
type BridgeCreateIntentError = SodaxError<BridgeCreateIntentErrorCode>;
|
|
13332
13273
|
type BridgeApproveError = SodaxError<BridgeApproveErrorCode>;
|
|
@@ -13599,7 +13540,7 @@ declare const stakingInvariant: FeatureInvariant;
|
|
|
13599
13540
|
/** The 5 user-facing staking operations. Carried on `context.action`. */
|
|
13600
13541
|
type StakingActionType = 'stake' | 'unstake' | 'instantUnstake' | 'claim' | 'cancelUnstake';
|
|
13601
13542
|
/** Codes the `stake` orchestrator can return — only one that calls `verifyTxHash`. */
|
|
13602
|
-
type StakeOrchestrationErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
13543
|
+
type StakeOrchestrationErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
13603
13544
|
/** Codes the 4 non-stake orchestrators (`unstake`/`instantUnstake`/`claim`/`cancelUnstake`) share. */
|
|
13604
13545
|
type StakingOrchestrationErrorCode = Exclude<StakeOrchestrationErrorCode, 'TX_VERIFICATION_FAILED'>;
|
|
13605
13546
|
type StakingCreateIntentErrorCode = CreateIntentErrorCode;
|
|
@@ -14599,7 +14540,7 @@ declare class ClService {
|
|
|
14599
14540
|
* @returns `Result<PoolRewardConfig>` — on success, contains the reward token address,
|
|
14600
14541
|
* reward rate per second, and the timestamp of the last position-affecting action.
|
|
14601
14542
|
*/
|
|
14602
|
-
getPoolRewardConfig(poolKey: PoolKey, publicClient: PublicClient
|
|
14543
|
+
getPoolRewardConfig(poolKey: PoolKey, publicClient: PublicClient): Promise<Result<PoolRewardConfig>>;
|
|
14603
14544
|
/**
|
|
14604
14545
|
* Build and submit the spoke-side transaction that harvests hook rewards for a position.
|
|
14605
14546
|
*
|
|
@@ -14668,7 +14609,7 @@ declare class ClService {
|
|
|
14668
14609
|
* fee tiers, token metadata with optional StatAToken enrichment, and optional
|
|
14669
14610
|
* reward configuration. `isActive` is `true` when `sqrtPriceX96 > 0`.
|
|
14670
14611
|
*/
|
|
14671
|
-
getPoolData(poolKey: PoolKey<'CL'>, publicClient: PublicClient
|
|
14612
|
+
getPoolData(poolKey: PoolKey<'CL'>, publicClient: PublicClient): Promise<Result<PoolData>>;
|
|
14672
14613
|
/**
|
|
14673
14614
|
* Fetch full details for a concentrated-liquidity position NFT.
|
|
14674
14615
|
*
|
|
@@ -14685,7 +14626,7 @@ declare class ClService {
|
|
|
14685
14626
|
* current token amounts, tick-boundary prices, unclaimed fees, and optional
|
|
14686
14627
|
* underlying amounts for StatAToken pools.
|
|
14687
14628
|
*/
|
|
14688
|
-
getPositionInfo(tokenId: bigint, publicClient: PublicClient
|
|
14629
|
+
getPositionInfo(tokenId: bigint, publicClient: PublicClient): Promise<Result<ClPositionInfo>>;
|
|
14689
14630
|
/**
|
|
14690
14631
|
* Compute the maximum liquidity achievable given both token input amounts.
|
|
14691
14632
|
*
|
|
@@ -14816,7 +14757,7 @@ declare const mmInvariant: FeatureInvariant;
|
|
|
14816
14757
|
type MoneyMarketAction = 'supply' | 'borrow' | 'withdraw' | 'repay';
|
|
14817
14758
|
type MoneyMarketCreateIntentErrorCode = CreateIntentErrorCode;
|
|
14818
14759
|
/** Codes any of the 4 orchestrators (`supply`/`borrow`/`withdraw`/`repay`) can return. */
|
|
14819
|
-
type MoneyMarketOrchestrationErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
14760
|
+
type MoneyMarketOrchestrationErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
14820
14761
|
type MoneyMarketApproveErrorCode = ApproveErrorCode;
|
|
14821
14762
|
type MoneyMarketAllowanceCheckErrorCode = AllowanceCheckErrorCode;
|
|
14822
14763
|
type MoneyMarketGasEstimationErrorCode = GasEstimationErrorCode;
|
|
@@ -16650,8 +16591,8 @@ type LeverageYieldPostExecutionErrorCode = Extract<SodaxErrorCode, 'EXECUTION_FA
|
|
|
16650
16591
|
* Codes returnable by the end-to-end `vaultSwap` orchestrator: the create-intent subset
|
|
16651
16592
|
* plus verify, relay and solver-notify codes. Mirrors the swap domain's `SwapErrorCode`.
|
|
16652
16593
|
*/
|
|
16653
|
-
type LeverageYieldSwapErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN'>;
|
|
16654
|
-
type LeverageYieldErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'APPROVE_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'LOOKUP_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN'>;
|
|
16594
|
+
type LeverageYieldSwapErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN'>;
|
|
16595
|
+
type LeverageYieldErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'INTENT_CREATION_FAILED' | 'APPROVE_FAILED' | 'ALLOWANCE_CHECK_FAILED' | 'LOOKUP_FAILED' | 'TX_VERIFICATION_FAILED' | 'TX_SUBMIT_FAILED' | 'RELAY_TIMEOUT' | 'RELAY_FAILED' | 'EXECUTION_FAILED' | 'EXTERNAL_API_ERROR' | 'UNKNOWN'>;
|
|
16655
16596
|
type LeverageYieldCreateIntentError = SodaxError<LeverageYieldCreateIntentErrorCode>;
|
|
16656
16597
|
type LeverageYieldApproveError = SodaxError<LeverageYieldApproveErrorCode>;
|
|
16657
16598
|
type LeverageYieldAllowanceCheckError = SodaxError<LeverageYieldAllowanceCheckErrorCode>;
|
|
@@ -17348,7 +17289,7 @@ declare class EvmSolverService {
|
|
|
17348
17289
|
* @throws If the transaction contains no matching `IntentCreated` event, or if the
|
|
17349
17290
|
* intent's chain IDs are not recognized.
|
|
17350
17291
|
*/
|
|
17351
|
-
static getIntent(txHash: Hash$1, config: ConfigService, publicClient: PublicClient
|
|
17292
|
+
static getIntent(txHash: Hash$1, config: ConfigService, publicClient: PublicClient): Promise<Intent>;
|
|
17352
17293
|
/**
|
|
17353
17294
|
* Reads an `IntentState` struct from a hub-chain fill transaction receipt.
|
|
17354
17295
|
*
|
|
@@ -17361,7 +17302,7 @@ declare class EvmSolverService {
|
|
|
17361
17302
|
* @returns `IntentState`: `{ exists, remainingInput, receivedOutput, pendingPayment }`.
|
|
17362
17303
|
* @throws If the transaction contains no matching `IntentFilled` event.
|
|
17363
17304
|
*/
|
|
17364
|
-
static getFilledIntent(txHash: Hash$1, solverConfig: SolverConfig, publicClient: PublicClient
|
|
17305
|
+
static getFilledIntent(txHash: Hash$1, solverConfig: SolverConfig, publicClient: PublicClient): Promise<IntentState>;
|
|
17365
17306
|
/**
|
|
17366
17307
|
* Computes the keccak256 hash of an intent struct, which serves as its unique ID on the hub chain.
|
|
17367
17308
|
*
|
|
@@ -17546,7 +17487,7 @@ declare class StakingLogic {
|
|
|
17546
17487
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17547
17488
|
* @returns Array of `UserUnstakeInfo` records for all active unstake requests.
|
|
17548
17489
|
*/
|
|
17549
|
-
static getUnstakeSodaRequests(stakedSoda: Address$1, user: Address$1, publicClient: PublicClient
|
|
17490
|
+
static getUnstakeSodaRequests(stakedSoda: Address$1, user: Address$1, publicClient: PublicClient): Promise<readonly UserUnstakeInfo[]>;
|
|
17550
17491
|
/**
|
|
17551
17492
|
* Encodes the depositFor transaction data.
|
|
17552
17493
|
* @param stakedSoda - The address of the StakedSoda contract.
|
|
@@ -17598,7 +17539,7 @@ declare class StakingLogic {
|
|
|
17598
17539
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17599
17540
|
* @returns Total SODA deposited across all stakers.
|
|
17600
17541
|
*/
|
|
17601
|
-
static getXSodaTotalAssets(xSoda: Address$1, publicClient: PublicClient
|
|
17542
|
+
static getXSodaTotalAssets(xSoda: Address$1, publicClient: PublicClient): Promise<bigint>;
|
|
17602
17543
|
/**
|
|
17603
17544
|
* Calculates the number of xSoda shares equivalent to a given amount of SODA assets (`convertToShares`).
|
|
17604
17545
|
* @param xSoda - The address of the xSoda ERC-4626 vault contract.
|
|
@@ -17606,7 +17547,7 @@ declare class StakingLogic {
|
|
|
17606
17547
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17607
17548
|
* @returns The xSoda share count equivalent to `assets` at the current exchange rate.
|
|
17608
17549
|
*/
|
|
17609
|
-
static convertSodaToXSodaShares(xSoda: Address$1, assets: bigint, publicClient: PublicClient
|
|
17550
|
+
static convertSodaToXSodaShares(xSoda: Address$1, assets: bigint, publicClient: PublicClient): Promise<bigint>;
|
|
17610
17551
|
/**
|
|
17611
17552
|
* Calculates the SODA asset amount corresponding to a given number of xSoda shares (`convertToAssets`).
|
|
17612
17553
|
* @param xSoda - The address of the xSoda ERC-4626 vault contract.
|
|
@@ -17614,7 +17555,7 @@ declare class StakingLogic {
|
|
|
17614
17555
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17615
17556
|
* @returns The SODA asset amount equivalent to `shares` at the current exchange rate.
|
|
17616
17557
|
*/
|
|
17617
|
-
static convertXSodaSharesToSoda(xSoda: Address$1, shares: bigint, publicClient: PublicClient
|
|
17558
|
+
static convertXSodaSharesToSoda(xSoda: Address$1, shares: bigint, publicClient: PublicClient): Promise<bigint>;
|
|
17618
17559
|
/**
|
|
17619
17560
|
* Simulates a SODA deposit into the xSoda vault (`previewDeposit`) without executing it.
|
|
17620
17561
|
* @param xSoda - The address of the xSoda ERC-4626 vault contract.
|
|
@@ -17622,7 +17563,7 @@ declare class StakingLogic {
|
|
|
17622
17563
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17623
17564
|
* @returns The xSoda shares that would be minted for `assets`.
|
|
17624
17565
|
*/
|
|
17625
|
-
static previewXSodaDeposit(xSoda: Address$1, assets: bigint, publicClient: PublicClient
|
|
17566
|
+
static previewXSodaDeposit(xSoda: Address$1, assets: bigint, publicClient: PublicClient): Promise<bigint>;
|
|
17626
17567
|
/**
|
|
17627
17568
|
* Simulates minting a specific number of xSoda shares (`previewMint`) without executing it.
|
|
17628
17569
|
* @param xSoda - The address of the xSoda ERC-4626 vault contract.
|
|
@@ -17630,7 +17571,7 @@ declare class StakingLogic {
|
|
|
17630
17571
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17631
17572
|
* @returns The SODA assets that would need to be deposited to mint `shares`.
|
|
17632
17573
|
*/
|
|
17633
|
-
static previewXSodaMint(xSoda: Address$1, shares: bigint, publicClient: PublicClient
|
|
17574
|
+
static previewXSodaMint(xSoda: Address$1, shares: bigint, publicClient: PublicClient): Promise<bigint>;
|
|
17634
17575
|
/**
|
|
17635
17576
|
* Simulates withdrawing a specific SODA amount from the xSoda vault (`previewWithdraw`) without executing it.
|
|
17636
17577
|
* @param xSoda - The address of the xSoda ERC-4626 vault contract.
|
|
@@ -17638,7 +17579,7 @@ declare class StakingLogic {
|
|
|
17638
17579
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17639
17580
|
* @returns The xSoda shares that would be burned to withdraw `assets`.
|
|
17640
17581
|
*/
|
|
17641
|
-
static previewXSodaWithdraw(xSoda: Address$1, assets: bigint, publicClient: PublicClient
|
|
17582
|
+
static previewXSodaWithdraw(xSoda: Address$1, assets: bigint, publicClient: PublicClient): Promise<bigint>;
|
|
17642
17583
|
/**
|
|
17643
17584
|
* Simulates redeeming a specific number of xSoda shares (`previewRedeem`) without executing it.
|
|
17644
17585
|
* @param xSoda - The address of the xSoda ERC-4626 vault contract.
|
|
@@ -17646,7 +17587,7 @@ declare class StakingLogic {
|
|
|
17646
17587
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17647
17588
|
* @returns The SODA assets that would be withdrawn for `shares`.
|
|
17648
17589
|
*/
|
|
17649
|
-
static previewXSodaRedeem(xSoda: Address$1, shares: bigint, publicClient: PublicClient
|
|
17590
|
+
static previewXSodaRedeem(xSoda: Address$1, shares: bigint, publicClient: PublicClient): Promise<bigint>;
|
|
17650
17591
|
/**
|
|
17651
17592
|
* Encodes the xSoda deposit transaction data (deposit SODA to get xSoda shares).
|
|
17652
17593
|
* @param xSoda - The address of the xSoda token contract.
|
|
@@ -17712,7 +17653,7 @@ declare class StakingLogic {
|
|
|
17712
17653
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17713
17654
|
* @returns Tuple `[xSodaAmount, previewDepositAmount]` — estimated shares and vault preview figure.
|
|
17714
17655
|
*/
|
|
17715
|
-
static estimateXSodaAmount(stakingRouter: Address$1, amount: bigint, publicClient: PublicClient
|
|
17656
|
+
static estimateXSodaAmount(stakingRouter: Address$1, amount: bigint, publicClient: PublicClient): Promise<readonly [bigint, bigint]>;
|
|
17716
17657
|
/**
|
|
17717
17658
|
* Estimates the SODA output for instantly unstaking a given xSoda amount.
|
|
17718
17659
|
*
|
|
@@ -17725,7 +17666,7 @@ declare class StakingLogic {
|
|
|
17725
17666
|
* @param publicClient - Viem public client connected to the hub chain.
|
|
17726
17667
|
* @returns The estimated SODA output for the instant unstake.
|
|
17727
17668
|
*/
|
|
17728
|
-
static estimateInstantUnstake(stakingRouter: Address$1, amount: bigint, publicClient: PublicClient
|
|
17669
|
+
static estimateInstantUnstake(stakingRouter: Address$1, amount: bigint, publicClient: PublicClient): Promise<bigint>;
|
|
17729
17670
|
}
|
|
17730
17671
|
|
|
17731
17672
|
declare function isIcxMigrateParams(value: unknown): value is IcxMigrateParams;
|
|
@@ -17737,7 +17678,7 @@ declare function isIcxCreateRevertMigrationParams(value: unknown): value is IcxC
|
|
|
17737
17678
|
|
|
17738
17679
|
declare const partnerInvariant: FeatureInvariant;
|
|
17739
17680
|
type PartnerAction = 'waitAutoSwap';
|
|
17740
|
-
type PartnerErrorCode = Extract<SodaxErrorCode, 'VALIDATION_FAILED' | 'LOOKUP_FAILED' | 'APPROVE_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
17681
|
+
type PartnerErrorCode = Extract<SodaxErrorCode, 'USER_REJECTED' | 'VALIDATION_FAILED' | 'LOOKUP_FAILED' | 'APPROVE_FAILED' | 'EXECUTION_FAILED' | 'UNKNOWN'>;
|
|
17741
17682
|
type PartnerError = SodaxError<PartnerErrorCode>;
|
|
17742
17683
|
declare const isPartnerError: (e: unknown) => e is SodaxError<PartnerErrorCode>;
|
|
17743
17684
|
|
|
@@ -17755,5 +17696,13 @@ declare const dexInvariant: FeatureInvariant;
|
|
|
17755
17696
|
type DexErrorCode = LookupErrorCode;
|
|
17756
17697
|
type DexError = SodaxError<DexErrorCode>;
|
|
17757
17698
|
declare const isDexError: (e: unknown) => e is SodaxError<LookupErrorCode>;
|
|
17699
|
+
/** Codes any DEX `executeXxx` / intent-creation method can return. */
|
|
17700
|
+
type DexCreateIntentErrorCode = CreateIntentErrorCode;
|
|
17701
|
+
type DexCreateIntentError = SodaxError<DexCreateIntentErrorCode>;
|
|
17702
|
+
declare const isDexCreateIntentError: (e: unknown) => e is SodaxError<CreateIntentErrorCode>;
|
|
17703
|
+
/** Codes the DEX `approve` method can return. */
|
|
17704
|
+
type DexApproveErrorCode = ApproveErrorCode;
|
|
17705
|
+
type DexApproveError = SodaxError<DexApproveErrorCode>;
|
|
17706
|
+
declare const isDexApproveError: (e: unknown) => e is SodaxError<ApproveErrorCode>;
|
|
17758
17707
|
|
|
17759
|
-
export { ALLOWANCE_CHECK_CODES, APPROVE_CODES, type AggregatedReserveData, type AllowanceCheckErrorCode, type AllowanceInfo, type AllowanceResponse, type AllowanceTransferDetails, type AnalyticsActionData, type ApiResponse, type ApproveErrorCode, type ApyRange, type AssetDepositAction, type AssetEntry, AssetService, type AssetServiceConstructorParams, type AssetWithdrawAction, type AutoSwapPreferences, BackendApiService, 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, type BridgeApproveError, type BridgeApproveErrorCode, type BridgeCreateIntentError, type BridgeCreateIntentErrorCode, type BridgeError, type BridgeErrorCode, 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 DexError, type DexErrorCode, DexService, type DexServiceConstructorParams, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, type EnrichedToken, type Erc20ApproveParams, type Erc20IsAllowanceParams, 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, RadfiApiError, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiErrorBody, type RadfiMaxSpentResponse, RadfiProvider, 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, 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, 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, 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, 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, isBalnMigrateParams, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, 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, isNearChainKeyType, isOptionalBitcoinWalletProviderType, isOptionalEvmWalletProviderType, isOptionalStellarWalletProviderType, isPartnerError, isPartnerFeeAmount, isPartnerFeePercentage, isPostExecutionError, isRawDestinationParams, isRecoveryError, isResponseAddressType, isResponseSigningType, isRevertMigrationOrchestrationError, isSodaxError, isSolanaChainKeyType, isSolanaNativeToken, isSonicChainKeyType, isSpokeApproveParamsEvmSpoke, isSpokeApproveParamsHub, isSpokeApproveParamsStellar, isSpokeIsAllowanceValidParamsEvmSpoke, isSpokeIsAllowanceValidParamsHub, isSpokeIsAllowanceValidParamsStellar, 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, stakedSodaAbi, stakingInvariant, stakingRouterAbi, stataTokenFactoryAbi, submitTransaction, swapExactInSingleParamsAbi, swapInvariant, uiPoolDataAbi, universalRouterAbi, unknownFailed, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
17708
|
+
export { ALLOWANCE_CHECK_CODES, APPROVE_CODES, type AggregatedReserveData, type AllowanceCheckErrorCode, type AllowanceInfo, type AllowanceResponse, type AllowanceTransferDetails, type AnalyticsActionData, type ApiResponse, type ApproveErrorCode, type ApyRange, type AssetDepositAction, type AssetEntry, AssetService, type AssetServiceConstructorParams, type AssetWithdrawAction, type AutoSwapPreferences, BackendApiService, 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, type BridgeApproveError, type BridgeApproveErrorCode, type BridgeCreateIntentError, type BridgeCreateIntentErrorCode, type BridgeError, type BridgeErrorCode, 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 Erc20ApproveParams, type Erc20IsAllowanceParams, 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, RadfiApiError, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiErrorBody, type RadfiMaxSpentResponse, RadfiProvider, 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, 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, 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, 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, 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, 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, isNearChainKeyType, isOptionalBitcoinWalletProviderType, isOptionalEvmWalletProviderType, isOptionalStellarWalletProviderType, isPartnerError, isPartnerFeeAmount, isPartnerFeePercentage, isPostExecutionError, isRawDestinationParams, isRecoveryError, isResponseAddressType, isResponseSigningType, isRevertMigrationOrchestrationError, isSodaxError, isSolanaChainKeyType, isSolanaNativeToken, isSonicChainKeyType, isSpokeApproveParamsEvmSpoke, isSpokeApproveParamsHub, isSpokeApproveParamsStellar, isSpokeIsAllowanceValidParamsEvmSpoke, isSpokeIsAllowanceValidParamsHub, isSpokeIsAllowanceValidParamsStellar, 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, stakedSodaAbi, stakingInvariant, stakingRouterAbi, stataTokenFactoryAbi, submitTransaction, swapExactInSingleParamsAbi, swapInvariant, uiPoolDataAbi, universalRouterAbi, unknownFailed, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|