@sodax/sdk 1.0.1-beta → 1.0.2-beta
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.cjs +300 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +212 -12
- package/dist/index.d.ts +212 -12
- package/dist/index.mjs +300 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -8168,6 +8168,23 @@ type CreateIntentParams = {
|
|
|
8168
8168
|
solver: Address;
|
|
8169
8169
|
data: Hex$1;
|
|
8170
8170
|
};
|
|
8171
|
+
/**
|
|
8172
|
+
* Parameters for creating a limit order intent.
|
|
8173
|
+
* Similar to CreateIntentParams but without the deadline field (deadline is automatically set to 0n for limit orders).
|
|
8174
|
+
*
|
|
8175
|
+
* @property inputToken - The address of the input token on the spoke chain.
|
|
8176
|
+
* @property outputToken - The address of the output token on the spoke chain.
|
|
8177
|
+
* @property inputAmount - The amount of input tokens to provide, denominated in the input token's decimals.
|
|
8178
|
+
* @property minOutputAmount - The minimum amount of output tokens to accept, denominated in the output token's decimals.
|
|
8179
|
+
* @property allowPartialFill - Whether the intent can be partially filled.
|
|
8180
|
+
* @property srcChain - Chain ID where input tokens originate.
|
|
8181
|
+
* @property dstChain - Chain ID where output tokens should be delivered.
|
|
8182
|
+
* @property srcAddress - Sender address on source chain.
|
|
8183
|
+
* @property dstAddress - Receiver address on destination chain.
|
|
8184
|
+
* @property solver - Optional specific solver address (use address(0) for any solver).
|
|
8185
|
+
* @property data - Additional arbitrary data (opaque, for advanced integrations/fees etc).
|
|
8186
|
+
*/
|
|
8187
|
+
type CreateLimitOrderParams = Omit<CreateIntentParams, 'deadline'>;
|
|
8171
8188
|
type Intent = {
|
|
8172
8189
|
intentId: bigint;
|
|
8173
8190
|
creator: Address;
|
|
@@ -8217,8 +8234,12 @@ type IntentPostExecutionFailedErrorData = SolverErrorResponse & {
|
|
|
8217
8234
|
intent: Intent;
|
|
8218
8235
|
intentDeliveryInfo: IntentDeliveryInfo;
|
|
8219
8236
|
};
|
|
8220
|
-
type
|
|
8221
|
-
|
|
8237
|
+
type IntentCancelFailedErrorData = {
|
|
8238
|
+
payload: Intent;
|
|
8239
|
+
error: unknown;
|
|
8240
|
+
};
|
|
8241
|
+
type IntentErrorCode = RelayErrorCode | 'UNKNOWN' | 'CREATION_FAILED' | 'POST_EXECUTION_FAILED' | 'CANCEL_FAILED';
|
|
8242
|
+
type IntentErrorData<T extends IntentErrorCode> = T extends 'RELAY_TIMEOUT' ? IntentWaitUntilIntentExecutedFailedErrorData : T extends 'CREATION_FAILED' ? IntentCreationFailedErrorData : T extends 'SUBMIT_TX_FAILED' ? IntentSubmitTxFailedErrorData : T extends 'POST_EXECUTION_FAILED' ? IntentPostExecutionFailedErrorData : T extends 'UNKNOWN' ? IntentCreationFailedErrorData : T extends 'CANCEL_FAILED' ? IntentCancelFailedErrorData : never;
|
|
8222
8243
|
type IntentError<T extends IntentErrorCode = IntentErrorCode> = {
|
|
8223
8244
|
code: T;
|
|
8224
8245
|
data: IntentErrorData<T>;
|
|
@@ -8228,6 +8249,11 @@ type SwapParams<S extends SpokeProviderType> = Prettify<{
|
|
|
8228
8249
|
spokeProvider: S;
|
|
8229
8250
|
skipSimulation?: boolean;
|
|
8230
8251
|
} & OptionalFee>;
|
|
8252
|
+
type LimitOrderParams<S extends SpokeProviderType> = Prettify<{
|
|
8253
|
+
intentParams: CreateLimitOrderParams;
|
|
8254
|
+
spokeProvider: S;
|
|
8255
|
+
skipSimulation?: boolean;
|
|
8256
|
+
} & OptionalFee>;
|
|
8231
8257
|
type SwapServiceConstructorParams = {
|
|
8232
8258
|
config: SolverConfigParams | undefined;
|
|
8233
8259
|
configService: ConfigService;
|
|
@@ -8483,7 +8509,7 @@ declare class SwapService {
|
|
|
8483
8509
|
* console.log('Approval required');
|
|
8484
8510
|
* }
|
|
8485
8511
|
*/
|
|
8486
|
-
isAllowanceValid<S extends SpokeProviderType>({ intentParams: params, spokeProvider, }: SwapParams<S>): Promise<Result<boolean>>;
|
|
8512
|
+
isAllowanceValid<S extends SpokeProviderType>({ intentParams: params, spokeProvider, }: SwapParams<S> | LimitOrderParams<S>): Promise<Result<boolean>>;
|
|
8487
8513
|
/**
|
|
8488
8514
|
* Approve the Asset Manager contract to spend tokens on behalf of the user (required for EVM chains)
|
|
8489
8515
|
* @param {Prettify<SwapParams<S> & OptionalRaw<R>>} params - Object containing:
|
|
@@ -8522,7 +8548,7 @@ declare class SwapService {
|
|
|
8522
8548
|
* console.log('Approval transaction:', txHash);
|
|
8523
8549
|
* }
|
|
8524
8550
|
*/
|
|
8525
|
-
approve<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, raw, }: Prettify<SwapParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>>>;
|
|
8551
|
+
approve<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, raw, }: Prettify<(SwapParams<S> | LimitOrderParams<S>) & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>>>;
|
|
8526
8552
|
/**
|
|
8527
8553
|
* Creates an intent by handling token approval and intent creation
|
|
8528
8554
|
* NOTE: This method does not submit the intent to the Solver API
|
|
@@ -8566,7 +8592,138 @@ declare class SwapService {
|
|
|
8566
8592
|
* // handle error
|
|
8567
8593
|
* }
|
|
8568
8594
|
*/
|
|
8569
|
-
createIntent<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, fee, raw, }: Prettify<SwapParams<S> & OptionalRaw<R>>): Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex$1], IntentError<'CREATION_FAILED'>>>;
|
|
8595
|
+
createIntent<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, fee, raw, skipSimulation, }: Prettify<SwapParams<S> & OptionalRaw<R>>): Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex$1], IntentError<'CREATION_FAILED'>>>;
|
|
8596
|
+
/**
|
|
8597
|
+
* Creates a limit order intent (no deadline, must be cancelled manually by user).
|
|
8598
|
+
* Similar to swap but enforces deadline=0n (no deadline).
|
|
8599
|
+
* Limit orders remain active until manually cancelled by the user.
|
|
8600
|
+
*
|
|
8601
|
+
* @param {Prettify<LimitOrderParams<S> & OptionalTimeout>} params - Object containing:
|
|
8602
|
+
* - intentParams: The parameters for creating the limit order (deadline is automatically set to 0n, deadline field should be omitted).
|
|
8603
|
+
* - spokeProvider: The spoke provider instance.
|
|
8604
|
+
* - fee: (Optional) Partner fee configuration.
|
|
8605
|
+
* - timeout: (Optional) Timeout in milliseconds for the transaction (default: 60 seconds).
|
|
8606
|
+
* - skipSimulation: (Optional) Whether to skip transaction simulation (default: false).
|
|
8607
|
+
* @returns {Promise<Result<[SolverExecutionResponse, Intent, IntentDeliveryInfo], IntentError<IntentErrorCode>>>} A promise resolving to a Result containing a tuple of SolverExecutionResponse, Intent, and intent delivery info, or an IntentError if the operation fails.
|
|
8608
|
+
*
|
|
8609
|
+
* @example
|
|
8610
|
+
* const payload = {
|
|
8611
|
+
* "inputToken": "0x2170Ed0880ac9A755fd29B2688956BD959F933F8", // BSC ETH token address
|
|
8612
|
+
* "outputToken": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f", // ARB WBTC token address
|
|
8613
|
+
* "inputAmount": 1000000000000000n, // The amount of input tokens
|
|
8614
|
+
* "minOutputAmount": 900000000000000n, // min amount you are expecting to receive
|
|
8615
|
+
* // deadline is omitted - will be automatically set to 0n
|
|
8616
|
+
* "allowPartialFill": false, // Whether the intent can be partially filled
|
|
8617
|
+
* "srcChain": "0x38.bsc", // Chain ID where input tokens originate
|
|
8618
|
+
* "dstChain": "0xa4b1.arbitrum", // Chain ID where output tokens should be delivered
|
|
8619
|
+
* "srcAddress": "0x..", // Source address (original address on spoke chain)
|
|
8620
|
+
* "dstAddress": "0x...", // Destination address (original address on spoke chain)
|
|
8621
|
+
* "solver": "0x..", // Optional specific solver address (address(0) = any solver)
|
|
8622
|
+
* "data": "0x..", // Additional arbitrary data
|
|
8623
|
+
* } satisfies CreateLimitOrderParams;
|
|
8624
|
+
*
|
|
8625
|
+
* const createLimitOrderResult = await swapService.createLimitOrder({
|
|
8626
|
+
* intentParams: payload,
|
|
8627
|
+
* spokeProvider,
|
|
8628
|
+
* fee, // optional
|
|
8629
|
+
* timeout, // optional
|
|
8630
|
+
* });
|
|
8631
|
+
*
|
|
8632
|
+
* if (createLimitOrderResult.ok) {
|
|
8633
|
+
* const [solverExecutionResponse, intent, intentDeliveryInfo] = createLimitOrderResult.value;
|
|
8634
|
+
* console.log('Intent execution response:', solverExecutionResponse);
|
|
8635
|
+
* console.log('Intent:', intent);
|
|
8636
|
+
* console.log('Intent delivery info:', intentDeliveryInfo);
|
|
8637
|
+
* // Limit order is now active and will remain until cancelled manually
|
|
8638
|
+
* } else {
|
|
8639
|
+
* // handle error
|
|
8640
|
+
* }
|
|
8641
|
+
*/
|
|
8642
|
+
createLimitOrder<S extends SpokeProvider>({ intentParams: params, spokeProvider, fee, timeout, skipSimulation, }: Prettify<LimitOrderParams<S> & OptionalTimeout>): Promise<Result<[SolverExecutionResponse, Intent, IntentDeliveryInfo], IntentError<IntentErrorCode>>>;
|
|
8643
|
+
/**
|
|
8644
|
+
* Creates a limit order intent (no deadline, must be cancelled manually by user).
|
|
8645
|
+
* Similar to createIntent but enforces deadline=0n (no deadline) and uses LimitOrderParams.
|
|
8646
|
+
* Limit orders remain active until manually cancelled by the user.
|
|
8647
|
+
* NOTE: This method does not submit the intent to the Solver API
|
|
8648
|
+
*
|
|
8649
|
+
* @param {Prettify<LimitOrderParams<S> & OptionalRaw<R>>} params - Object containing:
|
|
8650
|
+
* - intentParams: The parameters for creating the limit order (deadline is automatically set to 0n, deadline field should be omitted).
|
|
8651
|
+
* - spokeProvider: The spoke provider instance.
|
|
8652
|
+
* - fee: (Optional) Partner fee configuration.
|
|
8653
|
+
* - raw: (Optional) Whether to return the raw transaction data instead of executing it
|
|
8654
|
+
* - skipSimulation: (Optional) Whether to skip transaction simulation (default: false).
|
|
8655
|
+
* @returns {Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex], IntentError<'CREATION_FAILED'>>>} The encoded contract call or raw transaction data, Intent and intent data as hex
|
|
8656
|
+
*
|
|
8657
|
+
* @example
|
|
8658
|
+
* const payload = {
|
|
8659
|
+
* "inputToken": "0x2170Ed0880ac9A755fd29B2688956BD959F933F8", // BSC ETH token address
|
|
8660
|
+
* "outputToken": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f", // ARB WBTC token address
|
|
8661
|
+
* "inputAmount": 1000000000000000n, // The amount of input tokens
|
|
8662
|
+
* "minOutputAmount": 900000000000000n, // min amount you are expecting to receive
|
|
8663
|
+
* // deadline is omitted - will be automatically set to 0n
|
|
8664
|
+
* "allowPartialFill": false, // Whether the intent can be partially filled
|
|
8665
|
+
* "srcChain": "0x38.bsc", // Chain ID where input tokens originate
|
|
8666
|
+
* "dstChain": "0xa4b1.arbitrum", // Chain ID where output tokens should be delivered
|
|
8667
|
+
* "srcAddress": "0x..", // Source address (original address on spoke chain)
|
|
8668
|
+
* "dstAddress": "0x...", // Destination address (original address on spoke chain)
|
|
8669
|
+
* "solver": "0x..", // Optional specific solver address (address(0) = any solver)
|
|
8670
|
+
* "data": "0x..", // Additional arbitrary data
|
|
8671
|
+
* } satisfies CreateLimitOrderParams;
|
|
8672
|
+
*
|
|
8673
|
+
* const createLimitOrderIntentResult = await swapService.createLimitOrderIntent({
|
|
8674
|
+
* intentParams: payload,
|
|
8675
|
+
* spokeProvider,
|
|
8676
|
+
* fee, // optional
|
|
8677
|
+
* raw, // optional
|
|
8678
|
+
* });
|
|
8679
|
+
*
|
|
8680
|
+
* if (createLimitOrderIntentResult.ok) {
|
|
8681
|
+
* const [txResult, intent, intentData] = createLimitOrderIntentResult.value;
|
|
8682
|
+
* console.log('Transaction result:', txResult);
|
|
8683
|
+
* console.log('Intent:', intent);
|
|
8684
|
+
* console.log('Intent data:', intentData);
|
|
8685
|
+
* } else {
|
|
8686
|
+
* // handle error
|
|
8687
|
+
* }
|
|
8688
|
+
*/
|
|
8689
|
+
createLimitOrderIntent<S extends SpokeProviderType, R extends boolean = false>({ intentParams: params, spokeProvider, fee, raw, skipSimulation, }: Prettify<LimitOrderParams<S> & OptionalRaw<R>>): Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex$1], IntentError<'CREATION_FAILED'>>>;
|
|
8690
|
+
/**
|
|
8691
|
+
* Syntactic sugar for cancelAndSubmitIntent: cancels a limit order intent and submits it to the Relayer API.
|
|
8692
|
+
* Similar to swap function that wraps createAndSubmitIntent.
|
|
8693
|
+
*
|
|
8694
|
+
* @param params - Object containing:
|
|
8695
|
+
* @param params.intent - The limit order intent to cancel.
|
|
8696
|
+
* @param params.spokeProvider - The spoke provider instance.
|
|
8697
|
+
* @param params.timeout - (Optional) Timeout in milliseconds for the transaction (default: 60 seconds).
|
|
8698
|
+
* @returns
|
|
8699
|
+
* A promise resolving to a Result containing a tuple of cancel transaction hash and destination transaction hash,
|
|
8700
|
+
* or an IntentError if the operation fails.
|
|
8701
|
+
*
|
|
8702
|
+
* @example
|
|
8703
|
+
* // Get intent first (or use intent from createLimitOrder response)
|
|
8704
|
+
* const intent: Intent = await swapService.getIntent(txHash);
|
|
8705
|
+
*
|
|
8706
|
+
* // Cancel the limit order
|
|
8707
|
+
* const result = await swapService.cancelLimitOrder({
|
|
8708
|
+
* intent,
|
|
8709
|
+
* spokeProvider,
|
|
8710
|
+
* timeout, // optional
|
|
8711
|
+
* });
|
|
8712
|
+
*
|
|
8713
|
+
* if (result.ok) {
|
|
8714
|
+
* const [cancelTxHash, dstTxHash] = result.value;
|
|
8715
|
+
* console.log('Cancel transaction hash:', cancelTxHash);
|
|
8716
|
+
* console.log('Destination transaction hash:', dstTxHash);
|
|
8717
|
+
* } else {
|
|
8718
|
+
* // handle error
|
|
8719
|
+
* console.error('[cancelLimitOrder] error:', result.error);
|
|
8720
|
+
* }
|
|
8721
|
+
*/
|
|
8722
|
+
cancelLimitOrder<S extends SpokeProvider>({ intent, spokeProvider, timeout, }: {
|
|
8723
|
+
intent: Intent;
|
|
8724
|
+
spokeProvider: S;
|
|
8725
|
+
timeout?: number;
|
|
8726
|
+
}): Promise<Result<[string, string], IntentError<IntentErrorCode>>>;
|
|
8570
8727
|
/**
|
|
8571
8728
|
* Cancels an intent
|
|
8572
8729
|
* @param {Intent} intent - The intent to cancel
|
|
@@ -8574,7 +8731,25 @@ declare class SwapService {
|
|
|
8574
8731
|
* @param {boolean} raw - Whether to return the raw transaction
|
|
8575
8732
|
* @returns {Promise<TxReturnType<S, R>>} The encoded contract call
|
|
8576
8733
|
*/
|
|
8577
|
-
cancelIntent<S extends SpokeProviderType, R extends boolean = false>(intent: Intent, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
|
|
8734
|
+
cancelIntent<S extends SpokeProviderType, R extends boolean = false>(intent: Intent, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, IntentError<'CANCEL_FAILED'>>>;
|
|
8735
|
+
/**
|
|
8736
|
+
* Cancels an intent on the spoke chain, submits the cancel intent to the relayer API,
|
|
8737
|
+
* and waits until the intent cancel is executed (on the destination/hub chain).
|
|
8738
|
+
* Follows a similar workflow to createAndSubmitIntent, but for cancelling.
|
|
8739
|
+
*
|
|
8740
|
+
* @param params - The parameters for canceling and submitting the intent.
|
|
8741
|
+
* @param params.intent - The intent to be canceled.
|
|
8742
|
+
* @param params.spokeProvider - The provider for the spoke chain.
|
|
8743
|
+
* @param params.timeout - Optional timeout in milliseconds (default: 60 seconds).
|
|
8744
|
+
* @returns
|
|
8745
|
+
* A Result containing the SolverExecutionResponse (cancel tx), intent, and relay info,
|
|
8746
|
+
* or an IntentError on failure.
|
|
8747
|
+
*/
|
|
8748
|
+
cancelAndSubmitIntent<S extends SpokeProvider>({ intent, spokeProvider, timeout, }: {
|
|
8749
|
+
intent: Intent;
|
|
8750
|
+
spokeProvider: S;
|
|
8751
|
+
timeout?: number;
|
|
8752
|
+
}): Promise<Result<[string, string], IntentError<IntentErrorCode>>>;
|
|
8578
8753
|
/**
|
|
8579
8754
|
* Gets an intent from a transaction hash (on Hub chain)
|
|
8580
8755
|
* @param {Hash} txHash - The transaction hash on Hub chain
|
|
@@ -9257,21 +9432,27 @@ interface IntentResponse {
|
|
|
9257
9432
|
intent: {
|
|
9258
9433
|
intentId: string;
|
|
9259
9434
|
creator: string;
|
|
9260
|
-
inputToken: string
|
|
9261
|
-
outputToken: string
|
|
9435
|
+
inputToken: `0x${string}`;
|
|
9436
|
+
outputToken: `0x${string}`;
|
|
9262
9437
|
inputAmount: string;
|
|
9263
9438
|
minOutputAmount: string;
|
|
9264
9439
|
deadline: string;
|
|
9265
9440
|
allowPartialFill: boolean;
|
|
9266
9441
|
srcChain: number;
|
|
9267
9442
|
dstChain: number;
|
|
9268
|
-
srcAddress: string
|
|
9269
|
-
dstAddress: string
|
|
9443
|
+
srcAddress: `0x${string}`;
|
|
9444
|
+
dstAddress: `0x${string}`;
|
|
9270
9445
|
solver: string;
|
|
9271
9446
|
data: string;
|
|
9272
9447
|
};
|
|
9273
9448
|
events: unknown[];
|
|
9274
9449
|
}
|
|
9450
|
+
interface UserIntentsResponse {
|
|
9451
|
+
total: number;
|
|
9452
|
+
offset: number;
|
|
9453
|
+
limit: number;
|
|
9454
|
+
items: IntentResponse[];
|
|
9455
|
+
}
|
|
9275
9456
|
interface OrderbookResponse {
|
|
9276
9457
|
total: number;
|
|
9277
9458
|
data: Array<{
|
|
@@ -9385,6 +9566,25 @@ declare class BackendApiService implements IConfigApi {
|
|
|
9385
9566
|
offset: string;
|
|
9386
9567
|
limit: string;
|
|
9387
9568
|
}): Promise<OrderbookResponse>;
|
|
9569
|
+
/**
|
|
9570
|
+
* Get all intents created by a specific user address with optional filters.
|
|
9571
|
+
*
|
|
9572
|
+
* @param params - Options to filter the user intents.
|
|
9573
|
+
* @param params.userAddress - The user's wallet address on the hub chain (required).
|
|
9574
|
+
* @param params.startDate - Optional. Start timestamp in milliseconds (number, required if filtering by date).
|
|
9575
|
+
* @param params.endDate - Optional. End timestamp in milliseconds (number, required if filtering by date).
|
|
9576
|
+
* @param params.limit - Optional. Max number of results (string).
|
|
9577
|
+
* @param params.offset - Optional. Pagination offset (string).
|
|
9578
|
+
*
|
|
9579
|
+
* @returns {Promise<UserIntentsResponse>} Promise resolving to an array of intent responses for the user.
|
|
9580
|
+
*/
|
|
9581
|
+
getUserIntents(params: {
|
|
9582
|
+
userAddress: Address;
|
|
9583
|
+
startDate?: number;
|
|
9584
|
+
endDate?: number;
|
|
9585
|
+
limit?: string;
|
|
9586
|
+
offset?: string;
|
|
9587
|
+
}): Promise<UserIntentsResponse>;
|
|
9388
9588
|
/**
|
|
9389
9589
|
* Get money market position for a specific user
|
|
9390
9590
|
* @param userAddress - User's wallet address
|
|
@@ -10564,7 +10764,7 @@ declare class StakingService {
|
|
|
10564
10764
|
* @param params - The unstake parameters
|
|
10565
10765
|
* @returns The encoded contract call data
|
|
10566
10766
|
*/
|
|
10567
|
-
buildUnstakeData(hubWallet: Address$1, params: UnstakeParams): Hex;
|
|
10767
|
+
buildUnstakeData(hubWallet: Address$1, params: UnstakeParams, xSoda: Address$1, underlyingSodaAmount: bigint): Hex;
|
|
10568
10768
|
/**
|
|
10569
10769
|
* Execute instant unstake transaction for instantly unstaking xSoda shares
|
|
10570
10770
|
* @param params - The instant unstaking parameters
|
|
@@ -11083,4 +11283,4 @@ declare class MigrationService {
|
|
|
11083
11283
|
createRevertSodaToIcxMigrationIntent<R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider: SonicSpokeProvider, raw?: R): Promise<Result<TxReturnType<SonicSpokeProvider, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
|
|
11084
11284
|
}
|
|
11085
11285
|
|
|
11086
|
-
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetChainConfigType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketServiceConstructorParams, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type NewbnUSDChainId, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QueryMsg, type QuoteType, RAY, RAY_DECIMALS, type RawSpokeProvider, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSonicRawSpokeProvider, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
11286
|
+
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentParams, type CreateLimitOrderParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetChainConfigType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentCancelFailedErrorData, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, type LimitOrderParams, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketServiceConstructorParams, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type NewbnUSDChainId, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QueryMsg, type QuoteType, RAY, RAY_DECIMALS, type RawSpokeProvider, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSonicRawSpokeProvider, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|