@sodax/sdk 1.3.1-beta-rc2 → 1.3.1-beta-rc3
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 +120 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -23
- package/dist/index.d.ts +43 -23
- package/dist/index.mjs +119 -47
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, NearSpokeChainConfig, CallContractParams, NearRawTransaction, TransferArgs, SendMsgArgs, FillData, INearWalletProvider, Address, Erc20Token, SpokeChainId, HttpUrl, Token, GetMoneyMarketTokensApiResponse, SolverConfig, HubAsset, OriginalAssetAddress, XToken, Hex as Hex$1, defaultSharedConfig, RadfiDepositTxResponse, BitcoinSpokeChainConfig, IBitcoinWalletProvider, AddressType, HubChainId, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, TokenInfo, HubAddress, ChainId, EvmRawTransaction, EvmRawTransactionReceipt, ChainType, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, HubAssetInfo, IconEoaAddress, HubChainConfig, BridgeLimit } from '@sodax/types';
|
|
1
|
+
import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, NearSpokeChainConfig, CallContractParams, NearRawTransaction, TransferArgs, SendMsgArgs, FillData, INearWalletProvider, Address, Erc20Token, SpokeChainId, HttpUrl, Token, GetMoneyMarketTokensApiResponse, SolverConfig, HubAsset, OriginalAssetAddress, XToken, Hex as Hex$1, defaultSharedConfig, RadfiDepositTxResponse, BitcoinSpokeChainConfig, IBitcoinWalletProvider, AddressType, HubChainId, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, TokenInfo, HubAddress, ChainId, EvmRawTransaction, EvmRawTransactionReceipt, ChainType, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, BaseSpokeChainConfig, IConfigApi, SubmitSwapTxRequest, SubmitSwapTxResponse, GetSubmitSwapTxStatusParams, SubmitSwapTxStatusResponse, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, HubAssetInfo, IconEoaAddress, HubChainConfig, BridgeLimit } from '@sodax/types';
|
|
2
2
|
export * from '@sodax/types';
|
|
3
3
|
import * as viem from 'viem';
|
|
4
4
|
import { Hex, Address as Address$1, PublicClient, HttpTransport, WalletClient, CustomTransport, Chain, Account as Account$1, Hash, GetLogsReturnType, TransactionReceipt } from 'viem';
|
|
@@ -10276,7 +10276,13 @@ interface RequestConfig {
|
|
|
10276
10276
|
headers?: Record<string, string>;
|
|
10277
10277
|
body?: string;
|
|
10278
10278
|
timeout?: number;
|
|
10279
|
+
baseURL?: string;
|
|
10279
10280
|
}
|
|
10281
|
+
type RequestOverrideConfig = {
|
|
10282
|
+
baseURL?: string;
|
|
10283
|
+
timeout?: number;
|
|
10284
|
+
headers?: Record<string, string>;
|
|
10285
|
+
};
|
|
10280
10286
|
interface IntentResponse {
|
|
10281
10287
|
intentHash: string;
|
|
10282
10288
|
txHash: string;
|
|
@@ -10405,13 +10411,25 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10405
10411
|
* @param txHash - The intent created transaction hash from the hub chain
|
|
10406
10412
|
* @returns Promise<IntentResponse>
|
|
10407
10413
|
*/
|
|
10408
|
-
getIntentByTxHash(txHash: string): Promise<IntentResponse>;
|
|
10414
|
+
getIntentByTxHash(txHash: string, config?: RequestOverrideConfig): Promise<IntentResponse>;
|
|
10409
10415
|
/**
|
|
10410
10416
|
* Get intent details by intent hash
|
|
10411
10417
|
* @param intentHash - Intent hash
|
|
10412
10418
|
* @returns Promise<IntentResponse>
|
|
10413
10419
|
*/
|
|
10414
|
-
getIntentByHash(intentHash: string): Promise<IntentResponse>;
|
|
10420
|
+
getIntentByHash(intentHash: string, config?: RequestOverrideConfig): Promise<IntentResponse>;
|
|
10421
|
+
/**
|
|
10422
|
+
* Submit a swap transaction to be processed (relay, post execution to solver, etc.)
|
|
10423
|
+
* @param params - Swap transaction submission data
|
|
10424
|
+
* @returns Promise<SubmitSwapTxResponse>
|
|
10425
|
+
*/
|
|
10426
|
+
submitSwapTx(params: SubmitSwapTxRequest, config?: RequestOverrideConfig): Promise<SubmitSwapTxResponse>;
|
|
10427
|
+
/**
|
|
10428
|
+
* Get the processing status of a submitted swap transaction
|
|
10429
|
+
* @param params - Query parameters containing txHash and optional srcChainId
|
|
10430
|
+
* @returns Promise<SubmitSwapTxStatusResponse>
|
|
10431
|
+
*/
|
|
10432
|
+
getSubmitSwapTxStatus(params: GetSubmitSwapTxStatusParams, config?: RequestOverrideConfig): Promise<SubmitSwapTxStatusResponse>;
|
|
10415
10433
|
/**
|
|
10416
10434
|
* Get the solver orderbook
|
|
10417
10435
|
* @param params - Object containing offset and limit parameters for pagination
|
|
@@ -10420,7 +10438,7 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10420
10438
|
getOrderbook(params: {
|
|
10421
10439
|
offset: string;
|
|
10422
10440
|
limit: string;
|
|
10423
|
-
}): Promise<OrderbookResponse>;
|
|
10441
|
+
}, config?: RequestOverrideConfig): Promise<OrderbookResponse>;
|
|
10424
10442
|
/**
|
|
10425
10443
|
* Get all intents created by a specific user address with optional filters.
|
|
10426
10444
|
*
|
|
@@ -10439,24 +10457,24 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10439
10457
|
endDate?: number;
|
|
10440
10458
|
limit?: string;
|
|
10441
10459
|
offset?: string;
|
|
10442
|
-
}): Promise<UserIntentsResponse>;
|
|
10460
|
+
}, config?: RequestOverrideConfig): Promise<UserIntentsResponse>;
|
|
10443
10461
|
/**
|
|
10444
10462
|
* Get money market position for a specific user
|
|
10445
10463
|
* @param userAddress - User's wallet address
|
|
10446
10464
|
* @returns Promise<MoneyMarketPosition>
|
|
10447
10465
|
*/
|
|
10448
|
-
getMoneyMarketPosition(userAddress: string): Promise<MoneyMarketPosition>;
|
|
10466
|
+
getMoneyMarketPosition(userAddress: string, config?: RequestOverrideConfig): Promise<MoneyMarketPosition>;
|
|
10449
10467
|
/**
|
|
10450
10468
|
* Get all money market assets
|
|
10451
10469
|
* @returns Promise<MoneyMarketAsset[]>
|
|
10452
10470
|
*/
|
|
10453
|
-
getAllMoneyMarketAssets(): Promise<MoneyMarketAsset[]>;
|
|
10471
|
+
getAllMoneyMarketAssets(config?: RequestOverrideConfig): Promise<MoneyMarketAsset[]>;
|
|
10454
10472
|
/**
|
|
10455
10473
|
* Get specific money market asset details
|
|
10456
10474
|
* @param reserveAddress - Reserve contract address
|
|
10457
10475
|
* @returns Promise<MoneyMarketAsset>
|
|
10458
10476
|
*/
|
|
10459
|
-
getMoneyMarketAsset(reserveAddress: string): Promise<MoneyMarketAsset>;
|
|
10477
|
+
getMoneyMarketAsset(reserveAddress: string, config?: RequestOverrideConfig): Promise<MoneyMarketAsset>;
|
|
10460
10478
|
/**
|
|
10461
10479
|
* Get borrowers for a specific money market asset
|
|
10462
10480
|
* @param reserveAddress - Reserve contract address
|
|
@@ -10466,7 +10484,7 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10466
10484
|
getMoneyMarketAssetBorrowers(reserveAddress: string, params: {
|
|
10467
10485
|
offset: string;
|
|
10468
10486
|
limit: string;
|
|
10469
|
-
}): Promise<MoneyMarketAssetBorrowers>;
|
|
10487
|
+
}, config?: RequestOverrideConfig): Promise<MoneyMarketAssetBorrowers>;
|
|
10470
10488
|
/**
|
|
10471
10489
|
* Get suppliers for a specific money market asset
|
|
10472
10490
|
* @param reserveAddress - Reserve contract address
|
|
@@ -10476,7 +10494,7 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10476
10494
|
getMoneyMarketAssetSuppliers(reserveAddress: string, params: {
|
|
10477
10495
|
offset: string;
|
|
10478
10496
|
limit: string;
|
|
10479
|
-
}): Promise<MoneyMarketAssetSuppliers>;
|
|
10497
|
+
}, config?: RequestOverrideConfig): Promise<MoneyMarketAssetSuppliers>;
|
|
10480
10498
|
/**
|
|
10481
10499
|
* Get all money market borrowers
|
|
10482
10500
|
* @param params - Object containing offset and limit parameters for pagination
|
|
@@ -10485,65 +10503,65 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10485
10503
|
getAllMoneyMarketBorrowers(params: {
|
|
10486
10504
|
offset: string;
|
|
10487
10505
|
limit: string;
|
|
10488
|
-
}): Promise<MoneyMarketBorrowers>;
|
|
10506
|
+
}, config?: RequestOverrideConfig): Promise<MoneyMarketBorrowers>;
|
|
10489
10507
|
/**
|
|
10490
10508
|
* Get all supported config
|
|
10491
10509
|
* @returns Promise<GetAllConfigApiResponse>
|
|
10492
10510
|
*/
|
|
10493
|
-
getAllConfig(): Promise<GetAllConfigApiResponse>;
|
|
10511
|
+
getAllConfig(config?: RequestOverrideConfig): Promise<GetAllConfigApiResponse>;
|
|
10494
10512
|
/**
|
|
10495
10513
|
* Get all supported spoke chains
|
|
10496
10514
|
* @returns Promise<GetChainsApiResponse>
|
|
10497
10515
|
*/
|
|
10498
|
-
getChains(): Promise<GetChainsApiResponse>;
|
|
10516
|
+
getChains(config?: RequestOverrideConfig): Promise<GetChainsApiResponse>;
|
|
10499
10517
|
/**
|
|
10500
10518
|
* Get all supported swap tokens
|
|
10501
10519
|
* @returns Promise<GetSwapTokensApiResponse>
|
|
10502
10520
|
*/
|
|
10503
|
-
getSwapTokens(): Promise<GetSwapTokensApiResponse>;
|
|
10521
|
+
getSwapTokens(config?: RequestOverrideConfig): Promise<GetSwapTokensApiResponse>;
|
|
10504
10522
|
/**
|
|
10505
10523
|
* Get supported swap tokens for a specific spoke chain
|
|
10506
10524
|
* @param chainId - Spoke chain id
|
|
10507
10525
|
* @returns Promise<GetSwapTokensByChainIdApiResponse>
|
|
10508
10526
|
*/
|
|
10509
|
-
getSwapTokensByChainId(chainId: SpokeChainId): Promise<GetSwapTokensByChainIdApiResponse>;
|
|
10527
|
+
getSwapTokensByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetSwapTokensByChainIdApiResponse>;
|
|
10510
10528
|
/**
|
|
10511
10529
|
* Get all supported money market tokens
|
|
10512
10530
|
* @returns Promise<GetMoneyMarketTokensApiResponse>
|
|
10513
10531
|
*/
|
|
10514
|
-
getMoneyMarketTokens(): Promise<GetMoneyMarketTokensApiResponse>;
|
|
10532
|
+
getMoneyMarketTokens(config?: RequestOverrideConfig): Promise<GetMoneyMarketTokensApiResponse>;
|
|
10515
10533
|
/**
|
|
10516
10534
|
* Get all supported money market tokens
|
|
10517
10535
|
* @returns Promise<GetMoneyMarketTokensApiResponse>
|
|
10518
10536
|
*/
|
|
10519
|
-
getMoneyMarketReserveAssets(): Promise<GetMoneyMarketReserveAssetsApiResponse>;
|
|
10537
|
+
getMoneyMarketReserveAssets(config?: RequestOverrideConfig): Promise<GetMoneyMarketReserveAssetsApiResponse>;
|
|
10520
10538
|
/**
|
|
10521
10539
|
* Get supported money market tokens for a specific spoke chain
|
|
10522
10540
|
* @param chainId - Spoke chain id
|
|
10523
10541
|
* @returns Promise<GetMoneyMarketTokensByChainIdApiResponse>
|
|
10524
10542
|
*/
|
|
10525
|
-
getMoneyMarketTokensByChainId(chainId: SpokeChainId): Promise<GetMoneyMarketTokensByChainIdApiResponse>;
|
|
10543
|
+
getMoneyMarketTokensByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetMoneyMarketTokensByChainIdApiResponse>;
|
|
10526
10544
|
/**
|
|
10527
10545
|
* Get all supported hub assets (assets representing spoke token deposit)
|
|
10528
10546
|
* @returns Promise<GetHubAssetsApiResponse>
|
|
10529
10547
|
*/
|
|
10530
|
-
getHubAssets(): Promise<GetHubAssetsApiResponse>;
|
|
10548
|
+
getHubAssets(config?: RequestOverrideConfig): Promise<GetHubAssetsApiResponse>;
|
|
10531
10549
|
/**
|
|
10532
10550
|
* Get supported hub assets (assets representing spoke token deposit) for a specific spoke chain
|
|
10533
10551
|
* @param chainId - Spoke chain id
|
|
10534
10552
|
* @returns Promise<GetHubAssetsByChainIdApiResponse>
|
|
10535
10553
|
*/
|
|
10536
|
-
getHubAssetsByChainId(chainId: SpokeChainId): Promise<GetHubAssetsByChainIdApiResponse>;
|
|
10554
|
+
getHubAssetsByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetHubAssetsByChainIdApiResponse>;
|
|
10537
10555
|
/**
|
|
10538
10556
|
* Get the intent relay chain id map
|
|
10539
10557
|
* @returns Promise<GetRelayChainIdMapApiResponse>
|
|
10540
10558
|
*/
|
|
10541
|
-
getRelayChainIdMap(): Promise<GetRelayChainIdMapApiResponse>;
|
|
10559
|
+
getRelayChainIdMap(config?: RequestOverrideConfig): Promise<GetRelayChainIdMapApiResponse>;
|
|
10542
10560
|
/**
|
|
10543
10561
|
* Get the spoke chain config
|
|
10544
10562
|
* @returns Promise<GetSpokeChainConfigApiResponse>
|
|
10545
10563
|
*/
|
|
10546
|
-
getSpokeChainConfig(): Promise<GetSpokeChainConfigApiResponse>;
|
|
10564
|
+
getSpokeChainConfig(config?: RequestOverrideConfig): Promise<GetSpokeChainConfigApiResponse>;
|
|
10547
10565
|
/**
|
|
10548
10566
|
* Set custom headers for API requests
|
|
10549
10567
|
* @param headers - Object containing header key-value pairs
|
|
@@ -11102,6 +11120,8 @@ declare function isSonicRawSpokeProviderConfig(value: RawSpokeProviderConfig): v
|
|
|
11102
11120
|
declare function isStellarRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is StellarRawSpokeProviderConfig;
|
|
11103
11121
|
declare function isSolanaRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is SolanaRawSpokeProviderConfig;
|
|
11104
11122
|
declare function isNearRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is NearRawSpokeProviderConfig;
|
|
11123
|
+
declare function isSubmitSwapTxResponse(value: unknown): value is SubmitSwapTxResponse;
|
|
11124
|
+
declare function isSubmitSwapTxStatusResponse(value: unknown): value is SubmitSwapTxStatusResponse;
|
|
11105
11125
|
|
|
11106
11126
|
type CreateBridgeIntentParams = {
|
|
11107
11127
|
srcChainId: SpokeChainId;
|
|
@@ -12156,4 +12176,4 @@ declare class MigrationService {
|
|
|
12156
12176
|
createRevertSodaToIcxMigrationIntent<S extends SonicSpokeProviderType = SonicSpokeProviderType, R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
|
|
12157
12177
|
}
|
|
12158
12178
|
|
|
12159
|
-
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type AssetEntry, type AutoSwapPreferences, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BitcoinBaseSpokeProvider, BitcoinRawSpokeProvider, type BitcoinSpokeDepositParams, BitcoinSpokeProvider, type BitcoinSpokeProviderType, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinTransferToHubParams, type BitcoinUTXO, 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 CallResponse, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentAutoSwapError, 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 EvmRawSpokeProviderConfig, 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 ExecuteIntentAutoSwapError, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FeeTokenApproveParams, 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 GetIntentSubmitTxExtraDataParams, 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, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawSpokeProviderConfig, 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 InjectiveRawSpokeProviderConfig, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapErrorData, type IntentAutoSwapResult, 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, NearBaseSpokeProvider, NearRawSpokeProvider, type NearRawSpokeProviderConfig, type NearReturnType, NearSpokeProvider, type NearSpokeProviderType, type NearTransactionFailure, type NearTransactionResult, type NewbnUSDChainId, type OnDemandPayload, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeClaimAssetBalance, PartnerFeeClaimService, type PartnerFeeClaimServiceConfig, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapParams, type PartnerFeeConfig, type PartnerFeePercentage, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, type Payload, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseNearRawTxReturnType, type PromiseNearTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, type QuoteType, RAY, RAY_DECIMALS, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiConfig, RadfiProvider, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawSpokeProvider, type RawSpokeProviderConfig, 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, type SetSwapPreferenceError, type SetSwapPreferenceParams, 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, type SonicAddressOrSpokeType, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicRawSpokeProviderConfig, 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 StellarRawSpokeProviderConfig, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxExtraData, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawSpokeProviderConfig, 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 UnknownIntentAutoSwapError, 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, type VerifyTxHashRawConfig, type VerifyTxHashRawConfigType, type VerifyTxHashRawEvmConfig, type VerifyTxHashRawNearConfig, type VerifyTxHashRawSolanaConfig, type VerifyTxHashRawStellarConfig, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitIntentAutoSwapError, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletMode, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, constructRawSpokeProvider, 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, isAddressString, isBalnMigrateParams, isBitcoinRawSpokeProvider, isBitcoinSpokeProvider, isBitcoinSpokeProviderType, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isCreateIntentAutoSwapError, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmRawSpokeProviderConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, 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, isNearRawSpokeProvider, isNearRawSpokeProviderConfig, isNearSpokeProvider, isNearSpokeProviderType, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSetSwapPreferenceError, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaRawSpokeProviderConfig, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSolverErrorResponse, isSonicRawSpokeProvider, isSonicRawSpokeProviderConfig, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarRawSpokeProviderConfig, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isUnknownIntentAutoSwapError, isWaitIntentAutoSwapError, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizePsbtToBase64, 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 };
|
|
12179
|
+
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type AssetEntry, type AutoSwapPreferences, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BitcoinBaseSpokeProvider, BitcoinRawSpokeProvider, type BitcoinSpokeDepositParams, BitcoinSpokeProvider, type BitcoinSpokeProviderType, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinTransferToHubParams, type BitcoinUTXO, 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 CallResponse, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentAutoSwapError, 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 EvmRawSpokeProviderConfig, 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 ExecuteIntentAutoSwapError, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FeeTokenApproveParams, 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 GetIntentSubmitTxExtraDataParams, 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, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawSpokeProviderConfig, 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 InjectiveRawSpokeProviderConfig, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapErrorData, type IntentAutoSwapResult, 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, NearBaseSpokeProvider, NearRawSpokeProvider, type NearRawSpokeProviderConfig, type NearReturnType, NearSpokeProvider, type NearSpokeProviderType, type NearTransactionFailure, type NearTransactionResult, type NewbnUSDChainId, type OnDemandPayload, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeClaimAssetBalance, PartnerFeeClaimService, type PartnerFeeClaimServiceConfig, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapParams, type PartnerFeeConfig, type PartnerFeePercentage, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, type Payload, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseNearRawTxReturnType, type PromiseNearTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, type QuoteType, RAY, RAY_DECIMALS, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiConfig, RadfiProvider, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawSpokeProvider, type RawSpokeProviderConfig, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type RequestOverrideConfig, 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, type SetSwapPreferenceError, type SetSwapPreferenceParams, 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, type SonicAddressOrSpokeType, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicRawSpokeProviderConfig, 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 StellarRawSpokeProviderConfig, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxExtraData, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawSpokeProviderConfig, 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 UnknownIntentAutoSwapError, 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, type VerifyTxHashRawConfig, type VerifyTxHashRawConfigType, type VerifyTxHashRawEvmConfig, type VerifyTxHashRawNearConfig, type VerifyTxHashRawSolanaConfig, type VerifyTxHashRawStellarConfig, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitIntentAutoSwapError, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletMode, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, constructRawSpokeProvider, 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, isAddressString, isBalnMigrateParams, isBitcoinRawSpokeProvider, isBitcoinSpokeProvider, isBitcoinSpokeProviderType, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isCreateIntentAutoSwapError, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmRawSpokeProviderConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, 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, isNearRawSpokeProvider, isNearRawSpokeProviderConfig, isNearSpokeProvider, isNearSpokeProviderType, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSetSwapPreferenceError, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaRawSpokeProviderConfig, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSolverErrorResponse, isSonicRawSpokeProvider, isSonicRawSpokeProviderConfig, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarRawSpokeProviderConfig, isStellarSpokeProvider, isStellarSpokeProviderType, isSubmitSwapTxResponse, isSubmitSwapTxStatusResponse, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isUnknownIntentAutoSwapError, isWaitIntentAutoSwapError, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizePsbtToBase64, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, NearSpokeChainConfig, CallContractParams, NearRawTransaction, TransferArgs, SendMsgArgs, FillData, INearWalletProvider, Address, Erc20Token, SpokeChainId, HttpUrl, Token, GetMoneyMarketTokensApiResponse, SolverConfig, HubAsset, OriginalAssetAddress, XToken, Hex as Hex$1, defaultSharedConfig, RadfiDepositTxResponse, BitcoinSpokeChainConfig, IBitcoinWalletProvider, AddressType, HubChainId, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, TokenInfo, HubAddress, ChainId, EvmRawTransaction, EvmRawTransactionReceipt, ChainType, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, HubAssetInfo, IconEoaAddress, HubChainConfig, BridgeLimit } from '@sodax/types';
|
|
1
|
+
import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, NearSpokeChainConfig, CallContractParams, NearRawTransaction, TransferArgs, SendMsgArgs, FillData, INearWalletProvider, Address, Erc20Token, SpokeChainId, HttpUrl, Token, GetMoneyMarketTokensApiResponse, SolverConfig, HubAsset, OriginalAssetAddress, XToken, Hex as Hex$1, defaultSharedConfig, RadfiDepositTxResponse, BitcoinSpokeChainConfig, IBitcoinWalletProvider, AddressType, HubChainId, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, TokenInfo, HubAddress, ChainId, EvmRawTransaction, EvmRawTransactionReceipt, ChainType, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, BaseSpokeChainConfig, IConfigApi, SubmitSwapTxRequest, SubmitSwapTxResponse, GetSubmitSwapTxStatusParams, SubmitSwapTxStatusResponse, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, HubAssetInfo, IconEoaAddress, HubChainConfig, BridgeLimit } from '@sodax/types';
|
|
2
2
|
export * from '@sodax/types';
|
|
3
3
|
import * as viem from 'viem';
|
|
4
4
|
import { Hex, Address as Address$1, PublicClient, HttpTransport, WalletClient, CustomTransport, Chain, Account as Account$1, Hash, GetLogsReturnType, TransactionReceipt } from 'viem';
|
|
@@ -10276,7 +10276,13 @@ interface RequestConfig {
|
|
|
10276
10276
|
headers?: Record<string, string>;
|
|
10277
10277
|
body?: string;
|
|
10278
10278
|
timeout?: number;
|
|
10279
|
+
baseURL?: string;
|
|
10279
10280
|
}
|
|
10281
|
+
type RequestOverrideConfig = {
|
|
10282
|
+
baseURL?: string;
|
|
10283
|
+
timeout?: number;
|
|
10284
|
+
headers?: Record<string, string>;
|
|
10285
|
+
};
|
|
10280
10286
|
interface IntentResponse {
|
|
10281
10287
|
intentHash: string;
|
|
10282
10288
|
txHash: string;
|
|
@@ -10405,13 +10411,25 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10405
10411
|
* @param txHash - The intent created transaction hash from the hub chain
|
|
10406
10412
|
* @returns Promise<IntentResponse>
|
|
10407
10413
|
*/
|
|
10408
|
-
getIntentByTxHash(txHash: string): Promise<IntentResponse>;
|
|
10414
|
+
getIntentByTxHash(txHash: string, config?: RequestOverrideConfig): Promise<IntentResponse>;
|
|
10409
10415
|
/**
|
|
10410
10416
|
* Get intent details by intent hash
|
|
10411
10417
|
* @param intentHash - Intent hash
|
|
10412
10418
|
* @returns Promise<IntentResponse>
|
|
10413
10419
|
*/
|
|
10414
|
-
getIntentByHash(intentHash: string): Promise<IntentResponse>;
|
|
10420
|
+
getIntentByHash(intentHash: string, config?: RequestOverrideConfig): Promise<IntentResponse>;
|
|
10421
|
+
/**
|
|
10422
|
+
* Submit a swap transaction to be processed (relay, post execution to solver, etc.)
|
|
10423
|
+
* @param params - Swap transaction submission data
|
|
10424
|
+
* @returns Promise<SubmitSwapTxResponse>
|
|
10425
|
+
*/
|
|
10426
|
+
submitSwapTx(params: SubmitSwapTxRequest, config?: RequestOverrideConfig): Promise<SubmitSwapTxResponse>;
|
|
10427
|
+
/**
|
|
10428
|
+
* Get the processing status of a submitted swap transaction
|
|
10429
|
+
* @param params - Query parameters containing txHash and optional srcChainId
|
|
10430
|
+
* @returns Promise<SubmitSwapTxStatusResponse>
|
|
10431
|
+
*/
|
|
10432
|
+
getSubmitSwapTxStatus(params: GetSubmitSwapTxStatusParams, config?: RequestOverrideConfig): Promise<SubmitSwapTxStatusResponse>;
|
|
10415
10433
|
/**
|
|
10416
10434
|
* Get the solver orderbook
|
|
10417
10435
|
* @param params - Object containing offset and limit parameters for pagination
|
|
@@ -10420,7 +10438,7 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10420
10438
|
getOrderbook(params: {
|
|
10421
10439
|
offset: string;
|
|
10422
10440
|
limit: string;
|
|
10423
|
-
}): Promise<OrderbookResponse>;
|
|
10441
|
+
}, config?: RequestOverrideConfig): Promise<OrderbookResponse>;
|
|
10424
10442
|
/**
|
|
10425
10443
|
* Get all intents created by a specific user address with optional filters.
|
|
10426
10444
|
*
|
|
@@ -10439,24 +10457,24 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10439
10457
|
endDate?: number;
|
|
10440
10458
|
limit?: string;
|
|
10441
10459
|
offset?: string;
|
|
10442
|
-
}): Promise<UserIntentsResponse>;
|
|
10460
|
+
}, config?: RequestOverrideConfig): Promise<UserIntentsResponse>;
|
|
10443
10461
|
/**
|
|
10444
10462
|
* Get money market position for a specific user
|
|
10445
10463
|
* @param userAddress - User's wallet address
|
|
10446
10464
|
* @returns Promise<MoneyMarketPosition>
|
|
10447
10465
|
*/
|
|
10448
|
-
getMoneyMarketPosition(userAddress: string): Promise<MoneyMarketPosition>;
|
|
10466
|
+
getMoneyMarketPosition(userAddress: string, config?: RequestOverrideConfig): Promise<MoneyMarketPosition>;
|
|
10449
10467
|
/**
|
|
10450
10468
|
* Get all money market assets
|
|
10451
10469
|
* @returns Promise<MoneyMarketAsset[]>
|
|
10452
10470
|
*/
|
|
10453
|
-
getAllMoneyMarketAssets(): Promise<MoneyMarketAsset[]>;
|
|
10471
|
+
getAllMoneyMarketAssets(config?: RequestOverrideConfig): Promise<MoneyMarketAsset[]>;
|
|
10454
10472
|
/**
|
|
10455
10473
|
* Get specific money market asset details
|
|
10456
10474
|
* @param reserveAddress - Reserve contract address
|
|
10457
10475
|
* @returns Promise<MoneyMarketAsset>
|
|
10458
10476
|
*/
|
|
10459
|
-
getMoneyMarketAsset(reserveAddress: string): Promise<MoneyMarketAsset>;
|
|
10477
|
+
getMoneyMarketAsset(reserveAddress: string, config?: RequestOverrideConfig): Promise<MoneyMarketAsset>;
|
|
10460
10478
|
/**
|
|
10461
10479
|
* Get borrowers for a specific money market asset
|
|
10462
10480
|
* @param reserveAddress - Reserve contract address
|
|
@@ -10466,7 +10484,7 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10466
10484
|
getMoneyMarketAssetBorrowers(reserveAddress: string, params: {
|
|
10467
10485
|
offset: string;
|
|
10468
10486
|
limit: string;
|
|
10469
|
-
}): Promise<MoneyMarketAssetBorrowers>;
|
|
10487
|
+
}, config?: RequestOverrideConfig): Promise<MoneyMarketAssetBorrowers>;
|
|
10470
10488
|
/**
|
|
10471
10489
|
* Get suppliers for a specific money market asset
|
|
10472
10490
|
* @param reserveAddress - Reserve contract address
|
|
@@ -10476,7 +10494,7 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10476
10494
|
getMoneyMarketAssetSuppliers(reserveAddress: string, params: {
|
|
10477
10495
|
offset: string;
|
|
10478
10496
|
limit: string;
|
|
10479
|
-
}): Promise<MoneyMarketAssetSuppliers>;
|
|
10497
|
+
}, config?: RequestOverrideConfig): Promise<MoneyMarketAssetSuppliers>;
|
|
10480
10498
|
/**
|
|
10481
10499
|
* Get all money market borrowers
|
|
10482
10500
|
* @param params - Object containing offset and limit parameters for pagination
|
|
@@ -10485,65 +10503,65 @@ declare class BackendApiService implements IConfigApi {
|
|
|
10485
10503
|
getAllMoneyMarketBorrowers(params: {
|
|
10486
10504
|
offset: string;
|
|
10487
10505
|
limit: string;
|
|
10488
|
-
}): Promise<MoneyMarketBorrowers>;
|
|
10506
|
+
}, config?: RequestOverrideConfig): Promise<MoneyMarketBorrowers>;
|
|
10489
10507
|
/**
|
|
10490
10508
|
* Get all supported config
|
|
10491
10509
|
* @returns Promise<GetAllConfigApiResponse>
|
|
10492
10510
|
*/
|
|
10493
|
-
getAllConfig(): Promise<GetAllConfigApiResponse>;
|
|
10511
|
+
getAllConfig(config?: RequestOverrideConfig): Promise<GetAllConfigApiResponse>;
|
|
10494
10512
|
/**
|
|
10495
10513
|
* Get all supported spoke chains
|
|
10496
10514
|
* @returns Promise<GetChainsApiResponse>
|
|
10497
10515
|
*/
|
|
10498
|
-
getChains(): Promise<GetChainsApiResponse>;
|
|
10516
|
+
getChains(config?: RequestOverrideConfig): Promise<GetChainsApiResponse>;
|
|
10499
10517
|
/**
|
|
10500
10518
|
* Get all supported swap tokens
|
|
10501
10519
|
* @returns Promise<GetSwapTokensApiResponse>
|
|
10502
10520
|
*/
|
|
10503
|
-
getSwapTokens(): Promise<GetSwapTokensApiResponse>;
|
|
10521
|
+
getSwapTokens(config?: RequestOverrideConfig): Promise<GetSwapTokensApiResponse>;
|
|
10504
10522
|
/**
|
|
10505
10523
|
* Get supported swap tokens for a specific spoke chain
|
|
10506
10524
|
* @param chainId - Spoke chain id
|
|
10507
10525
|
* @returns Promise<GetSwapTokensByChainIdApiResponse>
|
|
10508
10526
|
*/
|
|
10509
|
-
getSwapTokensByChainId(chainId: SpokeChainId): Promise<GetSwapTokensByChainIdApiResponse>;
|
|
10527
|
+
getSwapTokensByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetSwapTokensByChainIdApiResponse>;
|
|
10510
10528
|
/**
|
|
10511
10529
|
* Get all supported money market tokens
|
|
10512
10530
|
* @returns Promise<GetMoneyMarketTokensApiResponse>
|
|
10513
10531
|
*/
|
|
10514
|
-
getMoneyMarketTokens(): Promise<GetMoneyMarketTokensApiResponse>;
|
|
10532
|
+
getMoneyMarketTokens(config?: RequestOverrideConfig): Promise<GetMoneyMarketTokensApiResponse>;
|
|
10515
10533
|
/**
|
|
10516
10534
|
* Get all supported money market tokens
|
|
10517
10535
|
* @returns Promise<GetMoneyMarketTokensApiResponse>
|
|
10518
10536
|
*/
|
|
10519
|
-
getMoneyMarketReserveAssets(): Promise<GetMoneyMarketReserveAssetsApiResponse>;
|
|
10537
|
+
getMoneyMarketReserveAssets(config?: RequestOverrideConfig): Promise<GetMoneyMarketReserveAssetsApiResponse>;
|
|
10520
10538
|
/**
|
|
10521
10539
|
* Get supported money market tokens for a specific spoke chain
|
|
10522
10540
|
* @param chainId - Spoke chain id
|
|
10523
10541
|
* @returns Promise<GetMoneyMarketTokensByChainIdApiResponse>
|
|
10524
10542
|
*/
|
|
10525
|
-
getMoneyMarketTokensByChainId(chainId: SpokeChainId): Promise<GetMoneyMarketTokensByChainIdApiResponse>;
|
|
10543
|
+
getMoneyMarketTokensByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetMoneyMarketTokensByChainIdApiResponse>;
|
|
10526
10544
|
/**
|
|
10527
10545
|
* Get all supported hub assets (assets representing spoke token deposit)
|
|
10528
10546
|
* @returns Promise<GetHubAssetsApiResponse>
|
|
10529
10547
|
*/
|
|
10530
|
-
getHubAssets(): Promise<GetHubAssetsApiResponse>;
|
|
10548
|
+
getHubAssets(config?: RequestOverrideConfig): Promise<GetHubAssetsApiResponse>;
|
|
10531
10549
|
/**
|
|
10532
10550
|
* Get supported hub assets (assets representing spoke token deposit) for a specific spoke chain
|
|
10533
10551
|
* @param chainId - Spoke chain id
|
|
10534
10552
|
* @returns Promise<GetHubAssetsByChainIdApiResponse>
|
|
10535
10553
|
*/
|
|
10536
|
-
getHubAssetsByChainId(chainId: SpokeChainId): Promise<GetHubAssetsByChainIdApiResponse>;
|
|
10554
|
+
getHubAssetsByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetHubAssetsByChainIdApiResponse>;
|
|
10537
10555
|
/**
|
|
10538
10556
|
* Get the intent relay chain id map
|
|
10539
10557
|
* @returns Promise<GetRelayChainIdMapApiResponse>
|
|
10540
10558
|
*/
|
|
10541
|
-
getRelayChainIdMap(): Promise<GetRelayChainIdMapApiResponse>;
|
|
10559
|
+
getRelayChainIdMap(config?: RequestOverrideConfig): Promise<GetRelayChainIdMapApiResponse>;
|
|
10542
10560
|
/**
|
|
10543
10561
|
* Get the spoke chain config
|
|
10544
10562
|
* @returns Promise<GetSpokeChainConfigApiResponse>
|
|
10545
10563
|
*/
|
|
10546
|
-
getSpokeChainConfig(): Promise<GetSpokeChainConfigApiResponse>;
|
|
10564
|
+
getSpokeChainConfig(config?: RequestOverrideConfig): Promise<GetSpokeChainConfigApiResponse>;
|
|
10547
10565
|
/**
|
|
10548
10566
|
* Set custom headers for API requests
|
|
10549
10567
|
* @param headers - Object containing header key-value pairs
|
|
@@ -11102,6 +11120,8 @@ declare function isSonicRawSpokeProviderConfig(value: RawSpokeProviderConfig): v
|
|
|
11102
11120
|
declare function isStellarRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is StellarRawSpokeProviderConfig;
|
|
11103
11121
|
declare function isSolanaRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is SolanaRawSpokeProviderConfig;
|
|
11104
11122
|
declare function isNearRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is NearRawSpokeProviderConfig;
|
|
11123
|
+
declare function isSubmitSwapTxResponse(value: unknown): value is SubmitSwapTxResponse;
|
|
11124
|
+
declare function isSubmitSwapTxStatusResponse(value: unknown): value is SubmitSwapTxStatusResponse;
|
|
11105
11125
|
|
|
11106
11126
|
type CreateBridgeIntentParams = {
|
|
11107
11127
|
srcChainId: SpokeChainId;
|
|
@@ -12156,4 +12176,4 @@ declare class MigrationService {
|
|
|
12156
12176
|
createRevertSodaToIcxMigrationIntent<S extends SonicSpokeProviderType = SonicSpokeProviderType, R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
|
|
12157
12177
|
}
|
|
12158
12178
|
|
|
12159
|
-
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type AssetEntry, type AutoSwapPreferences, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BitcoinBaseSpokeProvider, BitcoinRawSpokeProvider, type BitcoinSpokeDepositParams, BitcoinSpokeProvider, type BitcoinSpokeProviderType, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinTransferToHubParams, type BitcoinUTXO, 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 CallResponse, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentAutoSwapError, 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 EvmRawSpokeProviderConfig, 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 ExecuteIntentAutoSwapError, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FeeTokenApproveParams, 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 GetIntentSubmitTxExtraDataParams, 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, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawSpokeProviderConfig, 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 InjectiveRawSpokeProviderConfig, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapErrorData, type IntentAutoSwapResult, 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, NearBaseSpokeProvider, NearRawSpokeProvider, type NearRawSpokeProviderConfig, type NearReturnType, NearSpokeProvider, type NearSpokeProviderType, type NearTransactionFailure, type NearTransactionResult, type NewbnUSDChainId, type OnDemandPayload, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeClaimAssetBalance, PartnerFeeClaimService, type PartnerFeeClaimServiceConfig, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapParams, type PartnerFeeConfig, type PartnerFeePercentage, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, type Payload, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseNearRawTxReturnType, type PromiseNearTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, type QuoteType, RAY, RAY_DECIMALS, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiConfig, RadfiProvider, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawSpokeProvider, type RawSpokeProviderConfig, 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, type SetSwapPreferenceError, type SetSwapPreferenceParams, 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, type SonicAddressOrSpokeType, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicRawSpokeProviderConfig, 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 StellarRawSpokeProviderConfig, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxExtraData, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawSpokeProviderConfig, 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 UnknownIntentAutoSwapError, 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, type VerifyTxHashRawConfig, type VerifyTxHashRawConfigType, type VerifyTxHashRawEvmConfig, type VerifyTxHashRawNearConfig, type VerifyTxHashRawSolanaConfig, type VerifyTxHashRawStellarConfig, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitIntentAutoSwapError, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletMode, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, constructRawSpokeProvider, 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, isAddressString, isBalnMigrateParams, isBitcoinRawSpokeProvider, isBitcoinSpokeProvider, isBitcoinSpokeProviderType, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isCreateIntentAutoSwapError, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmRawSpokeProviderConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, 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, isNearRawSpokeProvider, isNearRawSpokeProviderConfig, isNearSpokeProvider, isNearSpokeProviderType, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSetSwapPreferenceError, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaRawSpokeProviderConfig, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSolverErrorResponse, isSonicRawSpokeProvider, isSonicRawSpokeProviderConfig, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarRawSpokeProviderConfig, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isUnknownIntentAutoSwapError, isWaitIntentAutoSwapError, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizePsbtToBase64, 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 };
|
|
12179
|
+
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type AssetEntry, type AutoSwapPreferences, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BitcoinBaseSpokeProvider, BitcoinRawSpokeProvider, type BitcoinSpokeDepositParams, BitcoinSpokeProvider, type BitcoinSpokeProviderType, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinTransferToHubParams, type BitcoinUTXO, 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 CallResponse, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentAutoSwapError, 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 EvmRawSpokeProviderConfig, 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 ExecuteIntentAutoSwapError, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FeeTokenApproveParams, 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 GetIntentSubmitTxExtraDataParams, 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, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawSpokeProviderConfig, 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 InjectiveRawSpokeProviderConfig, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapErrorData, type IntentAutoSwapResult, 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, NearBaseSpokeProvider, NearRawSpokeProvider, type NearRawSpokeProviderConfig, type NearReturnType, NearSpokeProvider, type NearSpokeProviderType, type NearTransactionFailure, type NearTransactionResult, type NewbnUSDChainId, type OnDemandPayload, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeClaimAssetBalance, PartnerFeeClaimService, type PartnerFeeClaimServiceConfig, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapParams, type PartnerFeeConfig, type PartnerFeePercentage, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, type Payload, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseNearRawTxReturnType, type PromiseNearTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, type QuoteType, RAY, RAY_DECIMALS, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiConfig, RadfiProvider, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawSpokeProvider, type RawSpokeProviderConfig, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type RequestOverrideConfig, 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, type SetSwapPreferenceError, type SetSwapPreferenceParams, 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, type SonicAddressOrSpokeType, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicRawSpokeProviderConfig, 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 StellarRawSpokeProviderConfig, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxExtraData, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawSpokeProviderConfig, 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 UnknownIntentAutoSwapError, 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, type VerifyTxHashRawConfig, type VerifyTxHashRawConfigType, type VerifyTxHashRawEvmConfig, type VerifyTxHashRawNearConfig, type VerifyTxHashRawSolanaConfig, type VerifyTxHashRawStellarConfig, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitIntentAutoSwapError, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletMode, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, constructRawSpokeProvider, 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, isAddressString, isBalnMigrateParams, isBitcoinRawSpokeProvider, isBitcoinSpokeProvider, isBitcoinSpokeProviderType, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isCreateIntentAutoSwapError, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmRawSpokeProviderConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, 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, isNearRawSpokeProvider, isNearRawSpokeProviderConfig, isNearSpokeProvider, isNearSpokeProviderType, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSetSwapPreferenceError, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaRawSpokeProviderConfig, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSolverErrorResponse, isSonicRawSpokeProvider, isSonicRawSpokeProviderConfig, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarRawSpokeProviderConfig, isStellarSpokeProvider, isStellarSpokeProviderType, isSubmitSwapTxResponse, isSubmitSwapTxStatusResponse, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isUnknownIntentAutoSwapError, isWaitIntentAutoSwapError, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizePsbtToBase64, 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 };
|