@sodax/sdk 1.0.2-beta → 1.0.4-beta-rc1
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 +171 -221
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -29
- package/dist/index.d.ts +66 -29
- package/dist/index.mjs +170 -222
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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, Address, Erc20Token, HttpUrl, SpokeChainId, Token, GetMoneyMarketTokensApiResponse, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, Hex as Hex$1, TokenInfo, HubAddress, EvmRawTransaction, SolverConfig, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, ChainType, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, OriginalAssetAddress, HubAssetInfo, HubChainId, XToken, EvmRawTransactionReceipt, IconEoaAddress, HubChainConfig } from '@sodax/types';
|
|
1
|
+
import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, Address, Erc20Token, HttpUrl, SpokeChainId, Token, GetMoneyMarketTokensApiResponse, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, Hex as Hex$1, TokenInfo, HubAddress, ChainId, EvmRawTransaction, SolverConfig, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, ChainType, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, OriginalAssetAddress, HubAssetInfo, HubChainId, XToken, EvmRawTransactionReceipt, IconEoaAddress, HubChainConfig } from '@sodax/types';
|
|
2
2
|
export * from '@sodax/types';
|
|
3
3
|
import * as viem from 'viem';
|
|
4
4
|
import { Hex, PublicClient, HttpTransport, Address as Address$1, WalletClient, CustomTransport, Chain, Account as Account$1, Hash, GetLogsReturnType, TransactionReceipt } from 'viem';
|
|
@@ -6238,6 +6238,13 @@ declare class MoneyMarketDataService {
|
|
|
6238
6238
|
readonly hubProvider: EvmHubProvider;
|
|
6239
6239
|
constructor(hubProvider: EvmHubProvider);
|
|
6240
6240
|
getATokenData(aToken: Address): Promise<Erc20Token>;
|
|
6241
|
+
/**
|
|
6242
|
+
* Fetches multiple aToken balances in a single multicall for better performance
|
|
6243
|
+
* @param aTokens - Array of aToken addresses
|
|
6244
|
+
* @param userAddress - User's hub wallet address to fetch balances for
|
|
6245
|
+
* @returns Promise<Map<Address, bigint>> - Map of aToken address to balance
|
|
6246
|
+
*/
|
|
6247
|
+
getATokensBalances(aTokens: readonly Address[], userAddress: Address): Promise<Map<Address, bigint>>;
|
|
6241
6248
|
/**
|
|
6242
6249
|
* LendingPool
|
|
6243
6250
|
*/
|
|
@@ -6399,11 +6406,17 @@ type MoneyMarketSupplyParams = {
|
|
|
6399
6406
|
* Note: If omitted, borrowed assets are sent to the sender's default spoke account.
|
|
6400
6407
|
* @property toAddress - (Optional) Target address on the taret chain to receive the borrowed assets.
|
|
6401
6408
|
* Note: If omitted, borrowed assets are sent to the sender's default spoke account.
|
|
6409
|
+
* @property fromChainId - (Optional) Source chain ID to borrow from.
|
|
6410
|
+
* Note: If omitted, borrowed assets are borrowed from the sender's default spoke account.
|
|
6411
|
+
* @property fromAddress - (Optional) Source address on the source chain to borrow from.
|
|
6412
|
+
* Note: If omitted, borrowed assets are borrowed from the sender's default spoke account.
|
|
6402
6413
|
*/
|
|
6403
6414
|
type MoneyMarketBorrowParams = {
|
|
6404
6415
|
token: string;
|
|
6405
6416
|
amount: bigint;
|
|
6406
6417
|
action: 'borrow';
|
|
6418
|
+
fromChainId?: SpokeChainId;
|
|
6419
|
+
fromAddress?: string;
|
|
6407
6420
|
toChainId?: SpokeChainId;
|
|
6408
6421
|
toAddress?: string;
|
|
6409
6422
|
};
|
|
@@ -6501,7 +6514,7 @@ declare class MoneyMarketService {
|
|
|
6501
6514
|
* @param {SpokeProvider} spokeProvider - The provider for the spoke chain.
|
|
6502
6515
|
* @returns {Promise<GetEstimateGasReturnType<T>>} A promise that resolves to the gas.
|
|
6503
6516
|
*/
|
|
6504
|
-
static estimateGas<T extends
|
|
6517
|
+
static estimateGas<T extends SpokeProviderType = SpokeProviderType>(params: TxReturnType<T, true>, spokeProvider: T): Promise<GetEstimateGasReturnType<T>>;
|
|
6505
6518
|
/**
|
|
6506
6519
|
* Check if allowance is sufficient for actions on the money market pool
|
|
6507
6520
|
* @param {MoneyMarketParams} params - Money market params containing token address and amount
|
|
@@ -6523,7 +6536,7 @@ declare class MoneyMarketService {
|
|
|
6523
6536
|
* // Need to approve
|
|
6524
6537
|
* }
|
|
6525
6538
|
*/
|
|
6526
|
-
isAllowanceValid<S extends
|
|
6539
|
+
isAllowanceValid<S extends SpokeProviderType>(params: MoneyMarketParams, spokeProvider: S): Promise<Result<boolean>>;
|
|
6527
6540
|
/**
|
|
6528
6541
|
* Approve amount spending if isAllowanceValid returns false.
|
|
6529
6542
|
* For evm spoke chains, the spender is the asset manager contract while
|
|
@@ -6551,7 +6564,7 @@ declare class MoneyMarketService {
|
|
|
6551
6564
|
*
|
|
6552
6565
|
* const txReceipt = approveResult.value;
|
|
6553
6566
|
*/
|
|
6554
|
-
approve<S extends
|
|
6567
|
+
approve<S extends SpokeProviderType, R extends boolean = false>(params: MoneyMarketParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
|
|
6555
6568
|
/**
|
|
6556
6569
|
* Supply tokens to the money market pool, relay the transaction to the hub and submit the intent to the Solver API
|
|
6557
6570
|
* @param params - The parameters for the supply transaction.
|
|
@@ -6615,7 +6628,7 @@ declare class MoneyMarketService {
|
|
|
6615
6628
|
* console.error('Supply failed:', result.error);
|
|
6616
6629
|
* }
|
|
6617
6630
|
*/
|
|
6618
|
-
createSupplyIntent<S extends
|
|
6631
|
+
createSupplyIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: MoneyMarketSupplyParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_SUPPLY_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
|
|
6619
6632
|
/**
|
|
6620
6633
|
* Borrow tokens from the money market pool, relay the transaction to the hub and submit the intent to the Solver API
|
|
6621
6634
|
* @param params - The parameters for the borrow transaction.
|
|
@@ -6677,7 +6690,7 @@ declare class MoneyMarketService {
|
|
|
6677
6690
|
* console.error('Borrow failed:', result.error);
|
|
6678
6691
|
* }
|
|
6679
6692
|
*/
|
|
6680
|
-
createBorrowIntent<S extends
|
|
6693
|
+
createBorrowIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: MoneyMarketBorrowParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_BORROW_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
|
|
6681
6694
|
/**
|
|
6682
6695
|
* Withdraw tokens from the money market pool, relay the transaction to the hub and submit the intent to the Solver API
|
|
6683
6696
|
*
|
|
@@ -6740,7 +6753,7 @@ declare class MoneyMarketService {
|
|
|
6740
6753
|
* console.error('Withdraw failed:', result.error);
|
|
6741
6754
|
* }
|
|
6742
6755
|
*/
|
|
6743
|
-
createWithdrawIntent<S extends
|
|
6756
|
+
createWithdrawIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: MoneyMarketWithdrawParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_WITHDRAW_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
|
|
6744
6757
|
/**
|
|
6745
6758
|
* Repay tokens to the money market pool, relay the transaction to the hub and submit the intent to the Solver API
|
|
6746
6759
|
*
|
|
@@ -6805,7 +6818,7 @@ declare class MoneyMarketService {
|
|
|
6805
6818
|
* console.error('Repay failed:', result.error);
|
|
6806
6819
|
* }
|
|
6807
6820
|
*/
|
|
6808
|
-
createRepayIntent<S extends
|
|
6821
|
+
createRepayIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: MoneyMarketRepayParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError<'CREATE_REPAY_INTENT_FAILED'>> & MoneyMarketOptionalExtraData>;
|
|
6809
6822
|
/**
|
|
6810
6823
|
* Build transaction data for supplying to the money market pool
|
|
6811
6824
|
* @param fromChainId - The chain ID of the source chain
|
|
@@ -7443,6 +7456,7 @@ declare class EvmVaultTokenService {
|
|
|
7443
7456
|
* Service to get valid hub wallet address which may differ based on the spoke chain.
|
|
7444
7457
|
*/
|
|
7445
7458
|
declare class WalletAbstractionService {
|
|
7459
|
+
private constructor();
|
|
7446
7460
|
/**
|
|
7447
7461
|
* Gets the hub wallet address for a user based on their spoke chain address.
|
|
7448
7462
|
* @param address - The user's address on the spoke chain
|
|
@@ -7453,6 +7467,28 @@ declare class WalletAbstractionService {
|
|
|
7453
7467
|
static getUserAbstractedWalletAddress(address: string, spokeProvider: SpokeProviderType, hubProvider: EvmHubProvider): Promise<Address>;
|
|
7454
7468
|
}
|
|
7455
7469
|
|
|
7470
|
+
/**
|
|
7471
|
+
* HubService is a main class that provides functionalities for dealing with hub chains.
|
|
7472
|
+
*/
|
|
7473
|
+
declare class HubService {
|
|
7474
|
+
private constructor();
|
|
7475
|
+
/**
|
|
7476
|
+
* Get the derived address of a contract deployed with CREATE3.
|
|
7477
|
+
* @param address - User's address on the specified chain as hex
|
|
7478
|
+
* @param hubProvider - Hub provider
|
|
7479
|
+
* @returns {HubAddress} The computed contract address as a EVM address (hex) string
|
|
7480
|
+
*/
|
|
7481
|
+
static getUserRouter(address: Address, hubProvider: EvmHubProvider): Promise<HubAddress>;
|
|
7482
|
+
/**
|
|
7483
|
+
* Gets the hub wallet address for a user based on their spoke chain address.
|
|
7484
|
+
* @param address - The user's address on the spoke chain
|
|
7485
|
+
* @param chainId - spoke chain id
|
|
7486
|
+
* @param hubProvider - The provider for interacting with the hub chain
|
|
7487
|
+
* @returns The user's hub wallet address
|
|
7488
|
+
*/
|
|
7489
|
+
static getUserHubWalletAddress(address: string, chainId: ChainId, hubProvider: EvmHubProvider): Promise<Address>;
|
|
7490
|
+
}
|
|
7491
|
+
|
|
7456
7492
|
type EvmSpokeDepositParams = {
|
|
7457
7493
|
from: Address$1;
|
|
7458
7494
|
to?: HubAddress;
|
|
@@ -9831,6 +9867,7 @@ declare function hexToBigInt(hex: string): bigint;
|
|
|
9831
9867
|
declare function deriveUserWalletAddress(hubProvider: EvmHubProvider, spokeChainId: SpokeChainId, spokeAddress: string): Promise<Address>;
|
|
9832
9868
|
declare function parseToStroops(amount: string): bigint;
|
|
9833
9869
|
declare function sleep(ms: number): Promise<void>;
|
|
9870
|
+
declare function isHubSpokeProvider(spokeProvider: SpokeProviderType, hubProvider: EvmHubProvider): boolean;
|
|
9834
9871
|
|
|
9835
9872
|
type IcxMigrateParams = {
|
|
9836
9873
|
address: IcxTokenType;
|
|
@@ -10239,7 +10276,7 @@ type CreateBridgeIntentParams = {
|
|
|
10239
10276
|
dstAsset: string;
|
|
10240
10277
|
recipient: string;
|
|
10241
10278
|
};
|
|
10242
|
-
type BridgeParams<S extends
|
|
10279
|
+
type BridgeParams<S extends SpokeProviderType> = Prettify<{
|
|
10243
10280
|
params: CreateBridgeIntentParams;
|
|
10244
10281
|
spokeProvider: S;
|
|
10245
10282
|
skipSimulation?: boolean;
|
|
@@ -10291,7 +10328,7 @@ declare class BridgeService {
|
|
|
10291
10328
|
* @param spokeProvider - The spoke provider
|
|
10292
10329
|
* @returns {Promise<Result<boolean, BridgeError<'ALLOWANCE_CHECK_FAILED'>>>}
|
|
10293
10330
|
*/
|
|
10294
|
-
isAllowanceValid<S extends
|
|
10331
|
+
isAllowanceValid<S extends SpokeProviderType>({ params, spokeProvider, }: BridgeParams<S>): Promise<Result<boolean, BridgeError<'ALLOWANCE_CHECK_FAILED'>>>;
|
|
10295
10332
|
/**
|
|
10296
10333
|
* Approve token spending for the bridge transaction
|
|
10297
10334
|
* @param params - The bridge parameters
|
|
@@ -10299,7 +10336,7 @@ declare class BridgeService {
|
|
|
10299
10336
|
* @param raw - Whether to return raw transaction data
|
|
10300
10337
|
* @returns Promise<Result<TxReturnType<S, R>, BridgeError<'APPROVAL_FAILED'>>>
|
|
10301
10338
|
*/
|
|
10302
|
-
approve<S extends
|
|
10339
|
+
approve<S extends SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<BridgeParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, BridgeError<'APPROVAL_FAILED'>>>;
|
|
10303
10340
|
/**
|
|
10304
10341
|
* Execute a bridge transaction to transfer tokens from one chain to another
|
|
10305
10342
|
* @param params - The bridge parameters including source/destination chains, assets, and recipient
|
|
@@ -10369,7 +10406,7 @@ declare class BridgeService {
|
|
|
10369
10406
|
* console.error('Bridge intent creation failed:', result.error);
|
|
10370
10407
|
* }
|
|
10371
10408
|
*/
|
|
10372
|
-
createBridgeIntent<S extends
|
|
10409
|
+
createBridgeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, fee, raw, }: Prettify<BridgeParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, BridgeError<'CREATE_BRIDGE_INTENT_FAILED'>> & BridgeOptionalExtraData>;
|
|
10373
10410
|
/**
|
|
10374
10411
|
* Build the bridge transaction data for executing the bridge operation on the hub
|
|
10375
10412
|
* @param params - The create bridge intent parameters
|
|
@@ -10669,7 +10706,7 @@ declare class StakingService {
|
|
|
10669
10706
|
* @param spokeProvider - The spoke provider
|
|
10670
10707
|
* @returns {Promise<Result<boolean, StakingError<'ALLOWANCE_CHECK_FAILED'>>>}
|
|
10671
10708
|
*/
|
|
10672
|
-
isAllowanceValid<S extends
|
|
10709
|
+
isAllowanceValid<S extends SpokeProviderType>({ params, spokeProvider, }: Prettify<{
|
|
10673
10710
|
params: StakingParams;
|
|
10674
10711
|
spokeProvider: S;
|
|
10675
10712
|
}>): Promise<Result<boolean, StakingError<'ALLOWANCE_CHECK_FAILED'>>>;
|
|
@@ -10680,7 +10717,7 @@ declare class StakingService {
|
|
|
10680
10717
|
* @param raw - Whether to return raw transaction data
|
|
10681
10718
|
* @returns Promise<Result<TxReturnType<S, R>, StakingError<'APPROVAL_FAILED'>>>
|
|
10682
10719
|
*/
|
|
10683
|
-
approve<S extends
|
|
10720
|
+
approve<S extends SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
|
|
10684
10721
|
params: StakingParams;
|
|
10685
10722
|
spokeProvider: S;
|
|
10686
10723
|
raw?: R;
|
|
@@ -10708,7 +10745,7 @@ declare class StakingService {
|
|
|
10708
10745
|
* @param raw - Whether to return the raw transaction data (default: false)
|
|
10709
10746
|
* @returns Promise<Result<TxReturnType<S, R>, StakingError<'STAKE_FAILED'>> & { data?: { address: string; payload: Hex } }>
|
|
10710
10747
|
*/
|
|
10711
|
-
createStakeIntent<S extends
|
|
10748
|
+
createStakeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
|
|
10712
10749
|
params: StakeParams;
|
|
10713
10750
|
spokeProvider: S;
|
|
10714
10751
|
raw?: R;
|
|
@@ -10748,7 +10785,7 @@ declare class StakingService {
|
|
|
10748
10785
|
* @param raw - Whether to return the raw transaction data (default: false)
|
|
10749
10786
|
* @returns Promise<Result<TxReturnType<S, R>, StakingError<'UNSTAKE_FAILED'>> & { data?: { address: string; payload: Hex } }>
|
|
10750
10787
|
*/
|
|
10751
|
-
createUnstakeIntent<S extends
|
|
10788
|
+
createUnstakeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
|
|
10752
10789
|
params: UnstakeParams;
|
|
10753
10790
|
spokeProvider: S;
|
|
10754
10791
|
raw?: R;
|
|
@@ -10785,7 +10822,7 @@ declare class StakingService {
|
|
|
10785
10822
|
* @param raw - Whether to return the raw transaction data (default: false)
|
|
10786
10823
|
* @returns Promise<Result<TxReturnType<S, R>, StakingError<'INSTANT_UNSTAKE_FAILED'>> & { data?: { address: string; payload: Hex } }>
|
|
10787
10824
|
*/
|
|
10788
|
-
createInstantUnstakeIntent<S extends
|
|
10825
|
+
createInstantUnstakeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
|
|
10789
10826
|
params: InstantUnstakeParams;
|
|
10790
10827
|
spokeProvider: S;
|
|
10791
10828
|
raw?: R;
|
|
@@ -10824,7 +10861,7 @@ declare class StakingService {
|
|
|
10824
10861
|
* @param raw - Whether to return the raw transaction data (default: false)
|
|
10825
10862
|
* @returns Promise<Result<TxReturnType<S, R>, StakingError<'CLAIM_FAILED'>> & { data?: { address: string; payload: Hex } }>
|
|
10826
10863
|
*/
|
|
10827
|
-
createClaimIntent<S extends
|
|
10864
|
+
createClaimIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
|
|
10828
10865
|
params: ClaimParams;
|
|
10829
10866
|
spokeProvider: S;
|
|
10830
10867
|
raw?: R;
|
|
@@ -10863,7 +10900,7 @@ declare class StakingService {
|
|
|
10863
10900
|
* @param raw - Whether to return the raw transaction data (default: false)
|
|
10864
10901
|
* @returns Promise<Result<TxReturnType<S, R>, StakingError<'CANCEL_UNSTAKE_FAILED'>> & { data?: { address: string; payload: Hex } }>
|
|
10865
10902
|
*/
|
|
10866
|
-
createCancelUnstakeIntent<S extends
|
|
10903
|
+
createCancelUnstakeIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<{
|
|
10867
10904
|
params: CancelUnstakeParams;
|
|
10868
10905
|
spokeProvider: S;
|
|
10869
10906
|
raw?: R;
|
|
@@ -10885,7 +10922,7 @@ declare class StakingService {
|
|
|
10885
10922
|
* @param spokeProvider - The spoke provider
|
|
10886
10923
|
* @returns Promise<Result<StakingInfo, StakingError<'INFO_FETCH_FAILED'>>>
|
|
10887
10924
|
*/
|
|
10888
|
-
getStakingInfoFromSpoke(spokeProvider:
|
|
10925
|
+
getStakingInfoFromSpoke(spokeProvider: SpokeProviderType): Promise<Result<StakingInfo, StakingError<'INFO_FETCH_FAILED'>>>;
|
|
10889
10926
|
/**
|
|
10890
10927
|
* Get comprehensive staking information for a user
|
|
10891
10928
|
* @param userAddress - The user's address
|
|
@@ -10897,7 +10934,7 @@ declare class StakingService {
|
|
|
10897
10934
|
* @param param - The user's address or spoke provider
|
|
10898
10935
|
* @returns Promise<Result<UnstakingInfo, StakingError<'INFO_FETCH_FAILED'>>>
|
|
10899
10936
|
*/
|
|
10900
|
-
getUnstakingInfo(param:
|
|
10937
|
+
getUnstakingInfo(param: SpokeProviderType | Address$1): Promise<Result<UnstakingInfo, StakingError<'INFO_FETCH_FAILED'>>>;
|
|
10901
10938
|
/**
|
|
10902
10939
|
* Get staking configuration from the stakedSoda contract
|
|
10903
10940
|
* @returns Promise<Result<StakingConfig, StakingError<'INFO_FETCH_FAILED'>>>
|
|
@@ -10915,7 +10952,7 @@ declare class StakingService {
|
|
|
10915
10952
|
* @param param - The user's address or spoke provider
|
|
10916
10953
|
* @returns Promise<Result<UnstakingInfo & { requestsWithPenalty: UnstakeRequestWithPenalty[] }, StakingError<'INFO_FETCH_FAILED'>>>
|
|
10917
10954
|
*/
|
|
10918
|
-
getUnstakingInfoWithPenalty(param:
|
|
10955
|
+
getUnstakingInfoWithPenalty(param: SpokeProviderType | Address$1): Promise<Result<UnstakingInfo & {
|
|
10919
10956
|
requestsWithPenalty: UnstakeRequestWithPenalty[];
|
|
10920
10957
|
}, StakingError<'INFO_FETCH_FAILED'>>>;
|
|
10921
10958
|
/**
|
|
@@ -10993,7 +11030,7 @@ declare class MigrationService {
|
|
|
10993
11030
|
* );
|
|
10994
11031
|
*
|
|
10995
11032
|
*/
|
|
10996
|
-
isAllowanceValid<S extends
|
|
11033
|
+
isAllowanceValid<S extends SpokeProviderType>(params: MigrationParams | MigrationRevertParams, action: MigrationAction, spokeProvider: S): Promise<Result<boolean>>;
|
|
10997
11034
|
/**
|
|
10998
11035
|
* Approves the amount spending for the revert migration transaction.
|
|
10999
11036
|
* @param params - The parameters for the revert migration transaction.
|
|
@@ -11013,7 +11050,7 @@ declare class MigrationService {
|
|
|
11013
11050
|
* );
|
|
11014
11051
|
*
|
|
11015
11052
|
*/
|
|
11016
|
-
approve<S extends
|
|
11053
|
+
approve<S extends SpokeProviderType, R extends boolean = false>(params: IcxCreateRevertMigrationParams | UnifiedBnUSDMigrateParams, action: MigrationAction, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
|
|
11017
11054
|
/**
|
|
11018
11055
|
* Migrates bnUSD tokens between legacy and new formats across supported spoke chains via the hub chain (sonic).
|
|
11019
11056
|
* Handles both legacy-to-new and new-to-legacy bnUSD migrations, enforcing validation and relaying the transaction.
|
|
@@ -11189,7 +11226,7 @@ declare class MigrationService {
|
|
|
11189
11226
|
* );
|
|
11190
11227
|
*
|
|
11191
11228
|
*/
|
|
11192
|
-
createMigrateBalnIntent<R extends boolean = false>(params: BalnMigrateParams, spokeProvider:
|
|
11229
|
+
createMigrateBalnIntent<S extends IconSpokeProviderType = IconSpokeProvider, R extends boolean = false>(params: BalnMigrateParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
|
|
11193
11230
|
/**
|
|
11194
11231
|
* Creates a bnUSD migration or reverse migration (legacy bnUSD to new bnUSD or vice versa) intent on a spoke chain.
|
|
11195
11232
|
*
|
|
@@ -11233,7 +11270,7 @@ declare class MigrationService {
|
|
|
11233
11270
|
* spokeProvider
|
|
11234
11271
|
* );
|
|
11235
11272
|
*/
|
|
11236
|
-
createMigratebnUSDIntent<S extends
|
|
11273
|
+
createMigratebnUSDIntent<S extends SpokeProviderType = SpokeProviderType, R extends boolean = false>(params: UnifiedBnUSDMigrateParams, spokeProvider: S, unchecked?: boolean, raw?: R): Promise<Result<[TxReturnType<S, R>, RelayExtraData], MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
|
|
11237
11274
|
/**
|
|
11238
11275
|
* Creates a migration of ICX to SODA intent on spoke chain (icon).
|
|
11239
11276
|
* This function handles the migration of ICX or wICX tokens to SODA tokens on the hub chain.
|
|
@@ -11261,7 +11298,7 @@ declare class MigrationService {
|
|
|
11261
11298
|
* // Handle error
|
|
11262
11299
|
* }
|
|
11263
11300
|
*/
|
|
11264
|
-
createMigrateIcxToSodaIntent<R extends boolean = false>(params: IcxMigrateParams, spokeProvider:
|
|
11301
|
+
createMigrateIcxToSodaIntent<S extends IconSpokeProviderType = IconSpokeProviderType, R extends boolean = false>(params: IcxMigrateParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
|
|
11265
11302
|
/**
|
|
11266
11303
|
* Creates a revert migration intent transaction on the hub chain.
|
|
11267
11304
|
* Note: This function does not relay the transaction to the spoke chain.
|
|
@@ -11280,7 +11317,7 @@ declare class MigrationService {
|
|
|
11280
11317
|
* action: 'revert',
|
|
11281
11318
|
* },
|
|
11282
11319
|
*/
|
|
11283
|
-
createRevertSodaToIcxMigrationIntent<R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider:
|
|
11320
|
+
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'>>>;
|
|
11284
11321
|
}
|
|
11285
11322
|
|
|
11286
|
-
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentParams, type CreateLimitOrderParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetChainConfigType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentCancelFailedErrorData, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, type LimitOrderParams, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketServiceConstructorParams, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type NewbnUSDChainId, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QueryMsg, type QuoteType, RAY, RAY_DECIMALS, type RawSpokeProvider, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSonicRawSpokeProvider, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
11323
|
+
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentParams, type CreateLimitOrderParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetChainConfigType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentCancelFailedErrorData, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, type LimitOrderParams, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketServiceConstructorParams, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type NewbnUSDChainId, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QueryMsg, type QuoteType, RAY, RAY_DECIMALS, type RawSpokeProvider, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, 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, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSonicRawSpokeProvider, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|