@sodax/sdk 0.0.1-rc.12 → 0.0.1-rc.13
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 +44 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -36
- package/dist/index.d.ts +36 -36
- package/dist/index.mjs +43 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, Hex, PublicClient, HttpTransport, Hash, GetLogsReturnType, TransactionReceipt, WalletClient, CustomTransport, Chain, Account } from 'viem';
|
|
2
|
-
import {
|
|
2
|
+
import { IInjectiveWalletProvider, InjectiveExecuteResponse, SpokeChainId, Hex as Hex$1, IEvmWalletProvider, Address as Address$1, Token, HubAddress, Hash as Hash$1, IconEoaAddress, IIconWalletProvider, ISolanaWalletProvider, SolanaBase58PublicKey, IStellarWalletProvider, ISuiWalletProvider, ChainType, InjectiveNetworkEnv, InjectiveRawTransaction, EvmRawTransaction, StellarRawTransaction, HubChainId, ICON_MAINNET_CHAIN_ID, EvmRawTransactionReceipt, ChainId, OriginalAssetAddress } from '@sodax/types';
|
|
3
3
|
export * from '@sodax/types';
|
|
4
4
|
import { Transaction, TransactionResult } from '@mysten/sui/transactions';
|
|
5
5
|
import { IconService } from 'icon-sdk-js';
|
|
@@ -4099,22 +4099,22 @@ interface State {
|
|
|
4099
4099
|
hub_chain_id: string;
|
|
4100
4100
|
owner: string;
|
|
4101
4101
|
}
|
|
4102
|
-
declare class
|
|
4103
|
-
readonly walletProvider:
|
|
4104
|
-
chainConfig:
|
|
4105
|
-
constructor(conf:
|
|
4102
|
+
declare class InjectiveSpokeProvider implements ISpokeProvider {
|
|
4103
|
+
readonly walletProvider: IInjectiveWalletProvider;
|
|
4104
|
+
chainConfig: InjectiveSpokeChainConfig;
|
|
4105
|
+
constructor(conf: InjectiveSpokeChainConfig, walletProvider: IInjectiveWalletProvider);
|
|
4106
4106
|
getState(): Promise<State>;
|
|
4107
4107
|
getBalance(token: String): Promise<number>;
|
|
4108
4108
|
private transfer;
|
|
4109
|
-
depositToken<R extends boolean = false>(sender: string, tokenAddress: string, to: Uint8Array, amount: string, data?: Uint8Array, raw?: R): Promise<
|
|
4110
|
-
static deposit<R extends boolean = false>(sender: string, token_address: string, to: Address, amount: string, data: Hex | undefined, provider:
|
|
4111
|
-
depositNative<R extends boolean = false>(sender: string, token: string, to: Uint8Array, amount: string, data?: Uint8Array, raw?: R): Promise<
|
|
4109
|
+
depositToken<R extends boolean = false>(sender: string, tokenAddress: string, to: Uint8Array, amount: string, data?: Uint8Array, raw?: R): Promise<InjectiveReturnType<R>>;
|
|
4110
|
+
static deposit<R extends boolean = false>(sender: string, token_address: string, to: Address, amount: string, data: Hex | undefined, provider: InjectiveSpokeProvider, raw?: R): PromiseInjectiveTxReturnType<R>;
|
|
4111
|
+
depositNative<R extends boolean = false>(sender: string, token: string, to: Uint8Array, amount: string, data?: Uint8Array, raw?: R): Promise<InjectiveReturnType<R>>;
|
|
4112
4112
|
isNative(token: string): Promise<boolean>;
|
|
4113
|
-
receiveMessage(senderAddress: string, srcChainId: string, srcAddress: Uint8Array, connSn: string, payload: Uint8Array, signatures: Uint8Array[]): Promise<
|
|
4114
|
-
setRateLimit(senderAddress: string, rateLimit: string): Promise<
|
|
4115
|
-
setConnection(senderAddress: string, connection: string): Promise<
|
|
4116
|
-
setOwner(senderAddress: string, owner: string): Promise<
|
|
4117
|
-
send_message<R extends boolean = false>(sender: string, dst_chain_id: string, dst_address: Hex, payload: Hex, raw?: R):
|
|
4113
|
+
receiveMessage(senderAddress: string, srcChainId: string, srcAddress: Uint8Array, connSn: string, payload: Uint8Array, signatures: Uint8Array[]): Promise<InjectiveExecuteResponse>;
|
|
4114
|
+
setRateLimit(senderAddress: string, rateLimit: string): Promise<InjectiveExecuteResponse>;
|
|
4115
|
+
setConnection(senderAddress: string, connection: string): Promise<InjectiveExecuteResponse>;
|
|
4116
|
+
setOwner(senderAddress: string, owner: string): Promise<InjectiveExecuteResponse>;
|
|
4117
|
+
send_message<R extends boolean = false>(sender: string, dst_chain_id: string, dst_address: Hex, payload: Hex, raw?: R): PromiseInjectiveTxReturnType<R>;
|
|
4118
4118
|
static stringToUint8Array(str: string): Uint8Array;
|
|
4119
4119
|
static uint8ArrayToString(arr: Uint8Array): string;
|
|
4120
4120
|
static toBigIntString(num: number | bigint): string;
|
|
@@ -5972,14 +5972,6 @@ declare class MigrationService {
|
|
|
5972
5972
|
createRevertMigrationIntent<R extends boolean = false>(params: IcxCreateRevertMigrationParams, spokeProvider: SonicSpokeProvider, raw?: R): Promise<Result<TxReturnType<SonicSpokeProvider, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
|
|
5973
5973
|
}
|
|
5974
5974
|
|
|
5975
|
-
type CWSpokeDepositParams = {
|
|
5976
|
-
from: string;
|
|
5977
|
-
to?: HubAddress;
|
|
5978
|
-
token: string;
|
|
5979
|
-
amount: bigint;
|
|
5980
|
-
data: Hex;
|
|
5981
|
-
};
|
|
5982
|
-
|
|
5983
5975
|
declare class IconSpokeProvider {
|
|
5984
5976
|
readonly walletProvider: IIconWalletProvider;
|
|
5985
5977
|
readonly chainConfig: IconSpokeChainConfig;
|
|
@@ -6080,6 +6072,14 @@ type SuiSpokeDepositParams = {
|
|
|
6080
6072
|
data: Hex;
|
|
6081
6073
|
};
|
|
6082
6074
|
|
|
6075
|
+
type InjectiveSpokeDepositParams = {
|
|
6076
|
+
from: string;
|
|
6077
|
+
to?: HubAddress;
|
|
6078
|
+
token: string;
|
|
6079
|
+
amount: bigint;
|
|
6080
|
+
data: Hex;
|
|
6081
|
+
};
|
|
6082
|
+
|
|
6083
6083
|
type IntentRelayChainId = (typeof INTENT_RELAY_CHAIN_IDS)[keyof typeof INTENT_RELAY_CHAIN_IDS];
|
|
6084
6084
|
type EvmChainId = (typeof EVM_CHAIN_IDS)[number];
|
|
6085
6085
|
type EvmSpokeChainId = (typeof EVM_SPOKE_CHAIN_IDS)[number];
|
|
@@ -6172,7 +6172,7 @@ type SuiSpokeChainConfig = BaseSpokeChainConfig<'SUI'> & {
|
|
|
6172
6172
|
};
|
|
6173
6173
|
rpc_url: string;
|
|
6174
6174
|
};
|
|
6175
|
-
type
|
|
6175
|
+
type InjectiveSpokeChainConfig = BaseSpokeChainConfig<'INJECTIVE'> & {
|
|
6176
6176
|
rpcUrl: string;
|
|
6177
6177
|
walletAddress: string;
|
|
6178
6178
|
addresses: {
|
|
@@ -6187,7 +6187,7 @@ type CosmosSpokeChainConfig = BaseSpokeChainConfig<'INJECTIVE'> & {
|
|
|
6187
6187
|
gasPrice: string;
|
|
6188
6188
|
isBrowser: boolean;
|
|
6189
6189
|
networkId: string;
|
|
6190
|
-
network:
|
|
6190
|
+
network: InjectiveNetworkEnv;
|
|
6191
6191
|
};
|
|
6192
6192
|
type StellarSpokeChainConfig = BaseSpokeChainConfig<'STELLAR'> & {
|
|
6193
6193
|
addresses: {
|
|
@@ -6225,7 +6225,7 @@ type SolanaChainConfig = BaseSpokeChainConfig<'SOLANA'> & {
|
|
|
6225
6225
|
gasPrice: string;
|
|
6226
6226
|
};
|
|
6227
6227
|
type HubChainConfig = EvmHubChainConfig;
|
|
6228
|
-
type SpokeChainConfig = EvmSpokeChainConfig | SonicSpokeChainConfig |
|
|
6228
|
+
type SpokeChainConfig = EvmSpokeChainConfig | SonicSpokeChainConfig | InjectiveSpokeChainConfig | IconSpokeChainConfig | SuiSpokeChainConfig | StellarSpokeChainConfig | SolanaChainConfig;
|
|
6229
6229
|
type EvmContractCall = {
|
|
6230
6230
|
address: Address$1;
|
|
6231
6231
|
value: bigint;
|
|
@@ -6298,9 +6298,9 @@ type Result<T, E = Error | unknown> = {
|
|
|
6298
6298
|
error: E;
|
|
6299
6299
|
};
|
|
6300
6300
|
type HttpPrefixedUrl = `http${string}`;
|
|
6301
|
-
type SpokeDepositParams = EvmSpokeDepositParams |
|
|
6302
|
-
type GetSpokeDepositParamsType<T extends SpokeProvider> = T extends EvmSpokeProvider ? EvmSpokeDepositParams : T extends
|
|
6303
|
-
type GetAddressType<T extends SpokeProvider> = T extends EvmSpokeProvider ? Address$1 : T extends
|
|
6301
|
+
type SpokeDepositParams = EvmSpokeDepositParams | InjectiveSpokeDepositParams | IconSpokeDepositParams;
|
|
6302
|
+
type GetSpokeDepositParamsType<T extends SpokeProvider> = T extends EvmSpokeProvider ? EvmSpokeDepositParams : T extends InjectiveSpokeProvider ? InjectiveSpokeDepositParams : T extends SuiSpokeProvider ? SuiSpokeDepositParams : T extends IconSpokeProvider ? IconSpokeDepositParams : T extends StellarSpokeProvider ? StellarSpokeDepositParams : T extends SolanaSpokeProvider ? SolanaSpokeDepositParams : T extends SonicSpokeProvider ? SonicSpokeDepositParams : never;
|
|
6303
|
+
type GetAddressType<T extends SpokeProvider> = T extends EvmSpokeProvider ? Address$1 : T extends InjectiveSpokeProvider ? string : T extends StellarSpokeProvider ? Hex$1 : T extends IconSpokeProvider ? IconAddress : T extends SuiSpokeProvider ? Hex$1 : T extends SolanaSpokeProvider ? Hex$1 : T extends SonicSpokeProvider ? Address$1 : never;
|
|
6304
6304
|
type HttpUrl = `http://${string}` | `https://${string}`;
|
|
6305
6305
|
type SolverConfig = {
|
|
6306
6306
|
intentsContract: Address$1;
|
|
@@ -6401,17 +6401,17 @@ type SolanaReturnType<Raw extends boolean> = Raw extends true ? SolanaRawTransac
|
|
|
6401
6401
|
type StellarReturnType<Raw extends boolean> = Raw extends true ? StellarRawTransaction : string;
|
|
6402
6402
|
type IconReturnType<Raw extends boolean> = Raw extends true ? IconRawTransaction : Hex$1;
|
|
6403
6403
|
type SuiReturnType<Raw extends boolean> = Raw extends true ? SuiRawTransaction : Hex$1;
|
|
6404
|
-
type
|
|
6405
|
-
type TxReturnType<T extends SpokeProvider, Raw extends boolean> = T['chainConfig']['chain']['type'] extends 'EVM' ? EvmReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SOLANA' ? SolanaReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'STELLAR' ? StellarReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'ICON' ? IconReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SUI' ? SuiReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ?
|
|
6404
|
+
type InjectiveReturnType<Raw extends boolean> = Raw extends true ? InjectiveRawTransaction : Hex$1;
|
|
6405
|
+
type TxReturnType<T extends SpokeProvider, Raw extends boolean> = T['chainConfig']['chain']['type'] extends 'EVM' ? EvmReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SOLANA' ? SolanaReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'STELLAR' ? StellarReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'ICON' ? IconReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SUI' ? SuiReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ? InjectiveReturnType<Raw> : never;
|
|
6406
6406
|
type PromiseEvmTxReturnType<Raw extends boolean> = Promise<TxReturnType<EvmSpokeProvider, Raw>>;
|
|
6407
6407
|
type PromiseSolanaTxReturnType<Raw extends boolean> = Promise<TxReturnType<SolanaSpokeProvider, Raw>>;
|
|
6408
6408
|
type PromiseStellarTxReturnType<Raw extends boolean> = Promise<TxReturnType<StellarSpokeProvider, Raw>>;
|
|
6409
6409
|
type PromiseIconTxReturnType<Raw extends boolean> = Promise<TxReturnType<IconSpokeProvider, Raw>>;
|
|
6410
6410
|
type PromiseSuiTxReturnType<Raw extends boolean> = Promise<TxReturnType<SuiSpokeProvider, Raw>>;
|
|
6411
|
-
type
|
|
6412
|
-
type RawTxReturnType = EvmRawTransaction | SolanaRawTransaction |
|
|
6411
|
+
type PromiseInjectiveTxReturnType<Raw extends boolean> = Promise<TxReturnType<InjectiveSpokeProvider, Raw>>;
|
|
6412
|
+
type RawTxReturnType = EvmRawTransaction | SolanaRawTransaction | InjectiveRawTransaction | IconRawTransaction | SuiRawTransaction;
|
|
6413
6413
|
type GetRawTxReturnType<T extends ChainType> = T extends 'EVM' ? PromiseEvmTxReturnType<boolean> : never;
|
|
6414
|
-
type PromiseTxReturnType<T extends ISpokeProvider, Raw extends boolean> = T['chainConfig']['chain']['type'] extends 'EVM' ? PromiseEvmTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SOLANA' ? PromiseSolanaTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'STELLAR' ? PromiseStellarTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'ICON' ? PromiseIconTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SUI' ? PromiseSuiTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ?
|
|
6414
|
+
type PromiseTxReturnType<T extends ISpokeProvider, Raw extends boolean> = T['chainConfig']['chain']['type'] extends 'EVM' ? PromiseEvmTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SOLANA' ? PromiseSolanaTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'STELLAR' ? PromiseStellarTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'ICON' ? PromiseIconTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SUI' ? PromiseSuiTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ? PromiseInjectiveTxReturnType<Raw> : never;
|
|
6415
6415
|
type VaultType = {
|
|
6416
6416
|
address: Address$1;
|
|
6417
6417
|
reserves: Address$1[];
|
|
@@ -6471,8 +6471,8 @@ declare class EvmSpokeProvider implements ISpokeProvider {
|
|
|
6471
6471
|
constructor(walletProvider: IEvmWalletProvider, chainConfig: EvmSpokeChainConfig, rpcUrl?: string);
|
|
6472
6472
|
}
|
|
6473
6473
|
|
|
6474
|
-
type IWalletProvider = IEvmWalletProvider |
|
|
6475
|
-
type SpokeProvider = (EvmSpokeProvider |
|
|
6474
|
+
type IWalletProvider = IEvmWalletProvider | IInjectiveWalletProvider | IStellarWalletProvider | ISuiWalletProvider | IIconWalletProvider | IInjectiveWalletProvider | ISolanaWalletProvider;
|
|
6475
|
+
type SpokeProvider = (EvmSpokeProvider | InjectiveSpokeProvider | IconSpokeProvider | SuiSpokeProvider | StellarSpokeProvider | SolanaSpokeProvider | SonicSpokeProvider) & ISpokeProvider;
|
|
6476
6476
|
|
|
6477
6477
|
declare function getSolanaAddressBytes(address: PublicKey): Hex;
|
|
6478
6478
|
|
|
@@ -7530,7 +7530,7 @@ declare function isEvmSpokeProvider(value: SpokeProvider): value is EvmSpokeProv
|
|
|
7530
7530
|
declare function isSonicSpokeProvider(value: SpokeProvider): value is SonicSpokeProvider;
|
|
7531
7531
|
declare function isSolanaSpokeProvider(value: SpokeProvider): value is SolanaSpokeProvider;
|
|
7532
7532
|
declare function isStellarSpokeProvider(value: SpokeProvider): value is StellarSpokeProvider;
|
|
7533
|
-
declare function
|
|
7533
|
+
declare function isInjectiveSpokeProvider(value: SpokeProvider): value is InjectiveSpokeProvider;
|
|
7534
7534
|
declare function isIconSpokeProvider(value: SpokeProvider): value is IconSpokeProvider;
|
|
7535
7535
|
declare function isSuiSpokeProvider(value: SpokeProvider): value is SuiSpokeProvider;
|
|
7536
7536
|
declare function isConfiguredSolverConfig(value: SolverConfigParams): value is Prettify<SolverConfig & Optional<PartnerFeeConfig, 'partnerFee'>>;
|
|
@@ -7551,4 +7551,4 @@ declare function isMoneyMarketBorrowUnknownError(error: unknown): error is Money
|
|
|
7551
7551
|
declare function isMoneyMarketWithdrawUnknownError(error: unknown): error is MoneyMarketUnknownError<'WITHDRAW_UNKNOWN_ERROR'>;
|
|
7552
7552
|
declare function isMoneyMarketRepayUnknownError(error: unknown): error is MoneyMarketUnknownError<'REPAY_UNKNOWN_ERROR'>;
|
|
7553
7553
|
|
|
7554
|
-
export { type AggregatedReserveData, type AssetInfo, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, type BorrowInfo, type
|
|
7554
|
+
export { type AggregatedReserveData, type AssetInfo, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, type BorrowInfo, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, EVM_CHAIN_IDS, EVM_SPOKE_CHAIN_IDS, Erc20Service, EvmAssetManagerService, type EvmChainId, type EvmContractCall, type EvmDepositToDataParams, type EvmHubChainConfig, EvmHubProvider, type EvmHubProviderConfig, type EvmInitializedConfig, type EvmReturnType, EvmSolverService, type EvmSpokeChainConfig, type EvmSpokeChainId, type EvmSpokeDepositParams, EvmSpokeProvider, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type GetAddressType, type GetMigrateParams, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRawTxReturnType, type GetRelayRequestParamType, type GetRelayResponse, type GetRevertMigrationParams, type GetSpokeChainIdType, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HttpPrefixedUrl, type HttpUrl, type HubAssetInfo, type HubChainConfig, type HubChainInfo, type HubTxHash, type HubVaultSymbol, HubVaultSymbols, ICON_TX_RESULT_WAIT_MAX_RETRY, INTENT_RELAY_CHAIN_IDS, type ISpokeProvider, type IWalletProvider, type IconAddress, type IconJsonRpcVersion, type IconRawTransaction, type IconReturnType, type IconSpokeChainConfig, IconSpokeProvider, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type InjectiveReturnType, type InjectiveSpokeChainConfig, InjectiveSpokeProvider, type Intent, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentError, type IntentErrorCode, type IntentErrorData, type IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, MigrationService, type MigrationServiceConfig, type MigrationTokens, type MoneyMarketAction, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketConfig, type MoneyMarketConfigParams, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type Optional, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QuoteType, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type ReserveDataLegacy, type ResponseAddressType, type ResponseSigningType, type Result, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, Sodax, type SodaxConfig, type SolanaChainConfig, type SolanaRawTransaction, type SolanaReturnType, SolanaSpokeProvider, type SolverConfig, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SolverService, type SolverServiceConfig, type SonicSpokeChainConfig, type SonicSpokeDepositParams, SonicSpokeProvider, SonicSpokeService, type SpokeChainConfig, type SpokeChainInfo, type SpokeDepositParams, type SpokeProvider, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StellarReturnType, type StellarRpcConfig, type StellarSpokeChainConfig, StellarSpokeProvider, type SubmitTxParams, type SubmitTxResponse, type SuiRawTransaction, type SuiReturnType, type SuiSpokeChainConfig, SuiSpokeProvider, type TokenInfo, type TxReturnType, type UserReserveData, VAULT_TOKEN_DECIMALS, type VaultReserves, type VaultType, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WithdrawInfo, assetManagerAbi, calculateFeeAmount, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, intentRelayChainIdToSpokeChainIdMap, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconSpokeProvider, isInjectiveSpokeProvider, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketReserveAsset, isMoneyMarketReserveHubAsset, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketSupportedToken, isMoneyMarketWithdrawUnknownError, isNativeToken, isPartnerFeeAmount, isPartnerFeePercentage, isResponseAddressType, isResponseSigningType, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, originalAssetTohubAssetMap, poolAbi, randomUint256, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, submitTransaction, supportedHubAssets, supportedHubChains, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, variableDebtTokenAbi, vaultTokenAbi, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address, Hex, PublicClient, HttpTransport, Hash, GetLogsReturnType, TransactionReceipt, WalletClient, CustomTransport, Chain, Account } from 'viem';
|
|
2
|
-
import {
|
|
2
|
+
import { IInjectiveWalletProvider, InjectiveExecuteResponse, SpokeChainId, Hex as Hex$1, IEvmWalletProvider, Address as Address$1, Token, HubAddress, Hash as Hash$1, IconEoaAddress, IIconWalletProvider, ISolanaWalletProvider, SolanaBase58PublicKey, IStellarWalletProvider, ISuiWalletProvider, ChainType, InjectiveNetworkEnv, InjectiveRawTransaction, EvmRawTransaction, StellarRawTransaction, HubChainId, ICON_MAINNET_CHAIN_ID, EvmRawTransactionReceipt, ChainId, OriginalAssetAddress } from '@sodax/types';
|
|
3
3
|
export * from '@sodax/types';
|
|
4
4
|
import { Transaction, TransactionResult } from '@mysten/sui/transactions';
|
|
5
5
|
import { IconService } from 'icon-sdk-js';
|
|
@@ -4099,22 +4099,22 @@ interface State {
|
|
|
4099
4099
|
hub_chain_id: string;
|
|
4100
4100
|
owner: string;
|
|
4101
4101
|
}
|
|
4102
|
-
declare class
|
|
4103
|
-
readonly walletProvider:
|
|
4104
|
-
chainConfig:
|
|
4105
|
-
constructor(conf:
|
|
4102
|
+
declare class InjectiveSpokeProvider implements ISpokeProvider {
|
|
4103
|
+
readonly walletProvider: IInjectiveWalletProvider;
|
|
4104
|
+
chainConfig: InjectiveSpokeChainConfig;
|
|
4105
|
+
constructor(conf: InjectiveSpokeChainConfig, walletProvider: IInjectiveWalletProvider);
|
|
4106
4106
|
getState(): Promise<State>;
|
|
4107
4107
|
getBalance(token: String): Promise<number>;
|
|
4108
4108
|
private transfer;
|
|
4109
|
-
depositToken<R extends boolean = false>(sender: string, tokenAddress: string, to: Uint8Array, amount: string, data?: Uint8Array, raw?: R): Promise<
|
|
4110
|
-
static deposit<R extends boolean = false>(sender: string, token_address: string, to: Address, amount: string, data: Hex | undefined, provider:
|
|
4111
|
-
depositNative<R extends boolean = false>(sender: string, token: string, to: Uint8Array, amount: string, data?: Uint8Array, raw?: R): Promise<
|
|
4109
|
+
depositToken<R extends boolean = false>(sender: string, tokenAddress: string, to: Uint8Array, amount: string, data?: Uint8Array, raw?: R): Promise<InjectiveReturnType<R>>;
|
|
4110
|
+
static deposit<R extends boolean = false>(sender: string, token_address: string, to: Address, amount: string, data: Hex | undefined, provider: InjectiveSpokeProvider, raw?: R): PromiseInjectiveTxReturnType<R>;
|
|
4111
|
+
depositNative<R extends boolean = false>(sender: string, token: string, to: Uint8Array, amount: string, data?: Uint8Array, raw?: R): Promise<InjectiveReturnType<R>>;
|
|
4112
4112
|
isNative(token: string): Promise<boolean>;
|
|
4113
|
-
receiveMessage(senderAddress: string, srcChainId: string, srcAddress: Uint8Array, connSn: string, payload: Uint8Array, signatures: Uint8Array[]): Promise<
|
|
4114
|
-
setRateLimit(senderAddress: string, rateLimit: string): Promise<
|
|
4115
|
-
setConnection(senderAddress: string, connection: string): Promise<
|
|
4116
|
-
setOwner(senderAddress: string, owner: string): Promise<
|
|
4117
|
-
send_message<R extends boolean = false>(sender: string, dst_chain_id: string, dst_address: Hex, payload: Hex, raw?: R):
|
|
4113
|
+
receiveMessage(senderAddress: string, srcChainId: string, srcAddress: Uint8Array, connSn: string, payload: Uint8Array, signatures: Uint8Array[]): Promise<InjectiveExecuteResponse>;
|
|
4114
|
+
setRateLimit(senderAddress: string, rateLimit: string): Promise<InjectiveExecuteResponse>;
|
|
4115
|
+
setConnection(senderAddress: string, connection: string): Promise<InjectiveExecuteResponse>;
|
|
4116
|
+
setOwner(senderAddress: string, owner: string): Promise<InjectiveExecuteResponse>;
|
|
4117
|
+
send_message<R extends boolean = false>(sender: string, dst_chain_id: string, dst_address: Hex, payload: Hex, raw?: R): PromiseInjectiveTxReturnType<R>;
|
|
4118
4118
|
static stringToUint8Array(str: string): Uint8Array;
|
|
4119
4119
|
static uint8ArrayToString(arr: Uint8Array): string;
|
|
4120
4120
|
static toBigIntString(num: number | bigint): string;
|
|
@@ -5972,14 +5972,6 @@ declare class MigrationService {
|
|
|
5972
5972
|
createRevertMigrationIntent<R extends boolean = false>(params: IcxCreateRevertMigrationParams, spokeProvider: SonicSpokeProvider, raw?: R): Promise<Result<TxReturnType<SonicSpokeProvider, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
|
|
5973
5973
|
}
|
|
5974
5974
|
|
|
5975
|
-
type CWSpokeDepositParams = {
|
|
5976
|
-
from: string;
|
|
5977
|
-
to?: HubAddress;
|
|
5978
|
-
token: string;
|
|
5979
|
-
amount: bigint;
|
|
5980
|
-
data: Hex;
|
|
5981
|
-
};
|
|
5982
|
-
|
|
5983
5975
|
declare class IconSpokeProvider {
|
|
5984
5976
|
readonly walletProvider: IIconWalletProvider;
|
|
5985
5977
|
readonly chainConfig: IconSpokeChainConfig;
|
|
@@ -6080,6 +6072,14 @@ type SuiSpokeDepositParams = {
|
|
|
6080
6072
|
data: Hex;
|
|
6081
6073
|
};
|
|
6082
6074
|
|
|
6075
|
+
type InjectiveSpokeDepositParams = {
|
|
6076
|
+
from: string;
|
|
6077
|
+
to?: HubAddress;
|
|
6078
|
+
token: string;
|
|
6079
|
+
amount: bigint;
|
|
6080
|
+
data: Hex;
|
|
6081
|
+
};
|
|
6082
|
+
|
|
6083
6083
|
type IntentRelayChainId = (typeof INTENT_RELAY_CHAIN_IDS)[keyof typeof INTENT_RELAY_CHAIN_IDS];
|
|
6084
6084
|
type EvmChainId = (typeof EVM_CHAIN_IDS)[number];
|
|
6085
6085
|
type EvmSpokeChainId = (typeof EVM_SPOKE_CHAIN_IDS)[number];
|
|
@@ -6172,7 +6172,7 @@ type SuiSpokeChainConfig = BaseSpokeChainConfig<'SUI'> & {
|
|
|
6172
6172
|
};
|
|
6173
6173
|
rpc_url: string;
|
|
6174
6174
|
};
|
|
6175
|
-
type
|
|
6175
|
+
type InjectiveSpokeChainConfig = BaseSpokeChainConfig<'INJECTIVE'> & {
|
|
6176
6176
|
rpcUrl: string;
|
|
6177
6177
|
walletAddress: string;
|
|
6178
6178
|
addresses: {
|
|
@@ -6187,7 +6187,7 @@ type CosmosSpokeChainConfig = BaseSpokeChainConfig<'INJECTIVE'> & {
|
|
|
6187
6187
|
gasPrice: string;
|
|
6188
6188
|
isBrowser: boolean;
|
|
6189
6189
|
networkId: string;
|
|
6190
|
-
network:
|
|
6190
|
+
network: InjectiveNetworkEnv;
|
|
6191
6191
|
};
|
|
6192
6192
|
type StellarSpokeChainConfig = BaseSpokeChainConfig<'STELLAR'> & {
|
|
6193
6193
|
addresses: {
|
|
@@ -6225,7 +6225,7 @@ type SolanaChainConfig = BaseSpokeChainConfig<'SOLANA'> & {
|
|
|
6225
6225
|
gasPrice: string;
|
|
6226
6226
|
};
|
|
6227
6227
|
type HubChainConfig = EvmHubChainConfig;
|
|
6228
|
-
type SpokeChainConfig = EvmSpokeChainConfig | SonicSpokeChainConfig |
|
|
6228
|
+
type SpokeChainConfig = EvmSpokeChainConfig | SonicSpokeChainConfig | InjectiveSpokeChainConfig | IconSpokeChainConfig | SuiSpokeChainConfig | StellarSpokeChainConfig | SolanaChainConfig;
|
|
6229
6229
|
type EvmContractCall = {
|
|
6230
6230
|
address: Address$1;
|
|
6231
6231
|
value: bigint;
|
|
@@ -6298,9 +6298,9 @@ type Result<T, E = Error | unknown> = {
|
|
|
6298
6298
|
error: E;
|
|
6299
6299
|
};
|
|
6300
6300
|
type HttpPrefixedUrl = `http${string}`;
|
|
6301
|
-
type SpokeDepositParams = EvmSpokeDepositParams |
|
|
6302
|
-
type GetSpokeDepositParamsType<T extends SpokeProvider> = T extends EvmSpokeProvider ? EvmSpokeDepositParams : T extends
|
|
6303
|
-
type GetAddressType<T extends SpokeProvider> = T extends EvmSpokeProvider ? Address$1 : T extends
|
|
6301
|
+
type SpokeDepositParams = EvmSpokeDepositParams | InjectiveSpokeDepositParams | IconSpokeDepositParams;
|
|
6302
|
+
type GetSpokeDepositParamsType<T extends SpokeProvider> = T extends EvmSpokeProvider ? EvmSpokeDepositParams : T extends InjectiveSpokeProvider ? InjectiveSpokeDepositParams : T extends SuiSpokeProvider ? SuiSpokeDepositParams : T extends IconSpokeProvider ? IconSpokeDepositParams : T extends StellarSpokeProvider ? StellarSpokeDepositParams : T extends SolanaSpokeProvider ? SolanaSpokeDepositParams : T extends SonicSpokeProvider ? SonicSpokeDepositParams : never;
|
|
6303
|
+
type GetAddressType<T extends SpokeProvider> = T extends EvmSpokeProvider ? Address$1 : T extends InjectiveSpokeProvider ? string : T extends StellarSpokeProvider ? Hex$1 : T extends IconSpokeProvider ? IconAddress : T extends SuiSpokeProvider ? Hex$1 : T extends SolanaSpokeProvider ? Hex$1 : T extends SonicSpokeProvider ? Address$1 : never;
|
|
6304
6304
|
type HttpUrl = `http://${string}` | `https://${string}`;
|
|
6305
6305
|
type SolverConfig = {
|
|
6306
6306
|
intentsContract: Address$1;
|
|
@@ -6401,17 +6401,17 @@ type SolanaReturnType<Raw extends boolean> = Raw extends true ? SolanaRawTransac
|
|
|
6401
6401
|
type StellarReturnType<Raw extends boolean> = Raw extends true ? StellarRawTransaction : string;
|
|
6402
6402
|
type IconReturnType<Raw extends boolean> = Raw extends true ? IconRawTransaction : Hex$1;
|
|
6403
6403
|
type SuiReturnType<Raw extends boolean> = Raw extends true ? SuiRawTransaction : Hex$1;
|
|
6404
|
-
type
|
|
6405
|
-
type TxReturnType<T extends SpokeProvider, Raw extends boolean> = T['chainConfig']['chain']['type'] extends 'EVM' ? EvmReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SOLANA' ? SolanaReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'STELLAR' ? StellarReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'ICON' ? IconReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SUI' ? SuiReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ?
|
|
6404
|
+
type InjectiveReturnType<Raw extends boolean> = Raw extends true ? InjectiveRawTransaction : Hex$1;
|
|
6405
|
+
type TxReturnType<T extends SpokeProvider, Raw extends boolean> = T['chainConfig']['chain']['type'] extends 'EVM' ? EvmReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SOLANA' ? SolanaReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'STELLAR' ? StellarReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'ICON' ? IconReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SUI' ? SuiReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ? InjectiveReturnType<Raw> : never;
|
|
6406
6406
|
type PromiseEvmTxReturnType<Raw extends boolean> = Promise<TxReturnType<EvmSpokeProvider, Raw>>;
|
|
6407
6407
|
type PromiseSolanaTxReturnType<Raw extends boolean> = Promise<TxReturnType<SolanaSpokeProvider, Raw>>;
|
|
6408
6408
|
type PromiseStellarTxReturnType<Raw extends boolean> = Promise<TxReturnType<StellarSpokeProvider, Raw>>;
|
|
6409
6409
|
type PromiseIconTxReturnType<Raw extends boolean> = Promise<TxReturnType<IconSpokeProvider, Raw>>;
|
|
6410
6410
|
type PromiseSuiTxReturnType<Raw extends boolean> = Promise<TxReturnType<SuiSpokeProvider, Raw>>;
|
|
6411
|
-
type
|
|
6412
|
-
type RawTxReturnType = EvmRawTransaction | SolanaRawTransaction |
|
|
6411
|
+
type PromiseInjectiveTxReturnType<Raw extends boolean> = Promise<TxReturnType<InjectiveSpokeProvider, Raw>>;
|
|
6412
|
+
type RawTxReturnType = EvmRawTransaction | SolanaRawTransaction | InjectiveRawTransaction | IconRawTransaction | SuiRawTransaction;
|
|
6413
6413
|
type GetRawTxReturnType<T extends ChainType> = T extends 'EVM' ? PromiseEvmTxReturnType<boolean> : never;
|
|
6414
|
-
type PromiseTxReturnType<T extends ISpokeProvider, Raw extends boolean> = T['chainConfig']['chain']['type'] extends 'EVM' ? PromiseEvmTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SOLANA' ? PromiseSolanaTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'STELLAR' ? PromiseStellarTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'ICON' ? PromiseIconTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SUI' ? PromiseSuiTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ?
|
|
6414
|
+
type PromiseTxReturnType<T extends ISpokeProvider, Raw extends boolean> = T['chainConfig']['chain']['type'] extends 'EVM' ? PromiseEvmTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SOLANA' ? PromiseSolanaTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'STELLAR' ? PromiseStellarTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'ICON' ? PromiseIconTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'SUI' ? PromiseSuiTxReturnType<Raw> : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ? PromiseInjectiveTxReturnType<Raw> : never;
|
|
6415
6415
|
type VaultType = {
|
|
6416
6416
|
address: Address$1;
|
|
6417
6417
|
reserves: Address$1[];
|
|
@@ -6471,8 +6471,8 @@ declare class EvmSpokeProvider implements ISpokeProvider {
|
|
|
6471
6471
|
constructor(walletProvider: IEvmWalletProvider, chainConfig: EvmSpokeChainConfig, rpcUrl?: string);
|
|
6472
6472
|
}
|
|
6473
6473
|
|
|
6474
|
-
type IWalletProvider = IEvmWalletProvider |
|
|
6475
|
-
type SpokeProvider = (EvmSpokeProvider |
|
|
6474
|
+
type IWalletProvider = IEvmWalletProvider | IInjectiveWalletProvider | IStellarWalletProvider | ISuiWalletProvider | IIconWalletProvider | IInjectiveWalletProvider | ISolanaWalletProvider;
|
|
6475
|
+
type SpokeProvider = (EvmSpokeProvider | InjectiveSpokeProvider | IconSpokeProvider | SuiSpokeProvider | StellarSpokeProvider | SolanaSpokeProvider | SonicSpokeProvider) & ISpokeProvider;
|
|
6476
6476
|
|
|
6477
6477
|
declare function getSolanaAddressBytes(address: PublicKey): Hex;
|
|
6478
6478
|
|
|
@@ -7530,7 +7530,7 @@ declare function isEvmSpokeProvider(value: SpokeProvider): value is EvmSpokeProv
|
|
|
7530
7530
|
declare function isSonicSpokeProvider(value: SpokeProvider): value is SonicSpokeProvider;
|
|
7531
7531
|
declare function isSolanaSpokeProvider(value: SpokeProvider): value is SolanaSpokeProvider;
|
|
7532
7532
|
declare function isStellarSpokeProvider(value: SpokeProvider): value is StellarSpokeProvider;
|
|
7533
|
-
declare function
|
|
7533
|
+
declare function isInjectiveSpokeProvider(value: SpokeProvider): value is InjectiveSpokeProvider;
|
|
7534
7534
|
declare function isIconSpokeProvider(value: SpokeProvider): value is IconSpokeProvider;
|
|
7535
7535
|
declare function isSuiSpokeProvider(value: SpokeProvider): value is SuiSpokeProvider;
|
|
7536
7536
|
declare function isConfiguredSolverConfig(value: SolverConfigParams): value is Prettify<SolverConfig & Optional<PartnerFeeConfig, 'partnerFee'>>;
|
|
@@ -7551,4 +7551,4 @@ declare function isMoneyMarketBorrowUnknownError(error: unknown): error is Money
|
|
|
7551
7551
|
declare function isMoneyMarketWithdrawUnknownError(error: unknown): error is MoneyMarketUnknownError<'WITHDRAW_UNKNOWN_ERROR'>;
|
|
7552
7552
|
declare function isMoneyMarketRepayUnknownError(error: unknown): error is MoneyMarketUnknownError<'REPAY_UNKNOWN_ERROR'>;
|
|
7553
7553
|
|
|
7554
|
-
export { type AggregatedReserveData, type AssetInfo, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, type BorrowInfo, type
|
|
7554
|
+
export { type AggregatedReserveData, type AssetInfo, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, type BorrowInfo, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, EVM_CHAIN_IDS, EVM_SPOKE_CHAIN_IDS, Erc20Service, EvmAssetManagerService, type EvmChainId, type EvmContractCall, type EvmDepositToDataParams, type EvmHubChainConfig, EvmHubProvider, type EvmHubProviderConfig, type EvmInitializedConfig, type EvmReturnType, EvmSolverService, type EvmSpokeChainConfig, type EvmSpokeChainId, type EvmSpokeDepositParams, EvmSpokeProvider, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type GetAddressType, type GetMigrateParams, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRawTxReturnType, type GetRelayRequestParamType, type GetRelayResponse, type GetRevertMigrationParams, type GetSpokeChainIdType, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HttpPrefixedUrl, type HttpUrl, type HubAssetInfo, type HubChainConfig, type HubChainInfo, type HubTxHash, type HubVaultSymbol, HubVaultSymbols, ICON_TX_RESULT_WAIT_MAX_RETRY, INTENT_RELAY_CHAIN_IDS, type ISpokeProvider, type IWalletProvider, type IconAddress, type IconJsonRpcVersion, type IconRawTransaction, type IconReturnType, type IconSpokeChainConfig, IconSpokeProvider, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type InjectiveReturnType, type InjectiveSpokeChainConfig, InjectiveSpokeProvider, type Intent, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentError, type IntentErrorCode, type IntentErrorData, type IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, MigrationService, type MigrationServiceConfig, type MigrationTokens, type MoneyMarketAction, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketConfig, type MoneyMarketConfigParams, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type Optional, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QuoteType, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type ReserveDataLegacy, type ResponseAddressType, type ResponseSigningType, type Result, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, Sodax, type SodaxConfig, type SolanaChainConfig, type SolanaRawTransaction, type SolanaReturnType, SolanaSpokeProvider, type SolverConfig, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SolverService, type SolverServiceConfig, type SonicSpokeChainConfig, type SonicSpokeDepositParams, SonicSpokeProvider, SonicSpokeService, type SpokeChainConfig, type SpokeChainInfo, type SpokeDepositParams, type SpokeProvider, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StellarReturnType, type StellarRpcConfig, type StellarSpokeChainConfig, StellarSpokeProvider, type SubmitTxParams, type SubmitTxResponse, type SuiRawTransaction, type SuiReturnType, type SuiSpokeChainConfig, SuiSpokeProvider, type TokenInfo, type TxReturnType, type UserReserveData, VAULT_TOKEN_DECIMALS, type VaultReserves, type VaultType, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WithdrawInfo, assetManagerAbi, calculateFeeAmount, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, intentRelayChainIdToSpokeChainIdMap, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconSpokeProvider, isInjectiveSpokeProvider, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketReserveAsset, isMoneyMarketReserveHubAsset, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketSupportedToken, isMoneyMarketWithdrawUnknownError, isNativeToken, isPartnerFeeAmount, isPartnerFeePercentage, isResponseAddressType, isResponseSigningType, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, originalAssetTohubAssetMap, poolAbi, randomUint256, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, submitTransaction, supportedHubAssets, supportedHubChains, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, variableDebtTokenAbi, vaultTokenAbi, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|