@sodax/sdk 0.0.1-rc.16 → 0.0.1-rc.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -10
- package/dist/index.cjs +499 -388
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1422 -1364
- package/dist/index.d.ts +1422 -1364
- package/dist/index.mjs +487 -389
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -9
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Address, Hex, PublicClient, HttpTransport, Hash, GetLogsReturnType,
|
|
2
|
-
import { IInjectiveWalletProvider, InjectiveExecuteResponse, SpokeChainId, Hex as Hex$1, IEvmWalletProvider, Address as Address$1, Token, HubAddress, EvmRawTransaction, Hash as Hash$1, IconEoaAddress,
|
|
1
|
+
import { Address, Hex, PublicClient, HttpTransport, Hash, GetLogsReturnType, TransactionReceipt, WalletClient, CustomTransport, Chain, Account } from 'viem';
|
|
2
|
+
import { IInjectiveWalletProvider, InjectiveExecuteResponse, SpokeChainId, Hex as Hex$1, IEvmWalletProvider, Address as Address$1, Token, HubAddress, EvmRawTransaction, Hash as Hash$1, IconEoaAddress, IIconWalletProvider, ISolanaWalletProvider, SolanaBase58PublicKey, IStellarWalletProvider, ISuiWalletProvider, ChainType, InjectiveNetworkEnv, StellarRawTransaction, InjectiveRawTransaction, HubChainId, ICON_MAINNET_CHAIN_ID, EvmRawTransactionReceipt, ChainId, OriginalAssetAddress } from '@sodax/types';
|
|
3
3
|
export * from '@sodax/types';
|
|
4
4
|
import { TxGrpcApi } from '@injectivelabs/sdk-ts';
|
|
5
5
|
import { Horizon, SorobanRpc, Transaction, Memo, MemoType, Operation, FeeBumpTransaction } from '@stellar/stellar-sdk';
|
|
@@ -5065,7 +5065,14 @@ declare class EvmVaultTokenService {
|
|
|
5065
5065
|
*/
|
|
5066
5066
|
declare class WalletAbstractionService {
|
|
5067
5067
|
private constructor();
|
|
5068
|
-
|
|
5068
|
+
/**
|
|
5069
|
+
* Gets the hub wallet address for a user based on their spoke chain address.
|
|
5070
|
+
* @param address - The user's address on the spoke chain
|
|
5071
|
+
* @param spokeProvider - The provider for interacting with the spoke chain
|
|
5072
|
+
* @param hubProvider - The provider for interacting with the hub chain
|
|
5073
|
+
* @returns The user's hub wallet address
|
|
5074
|
+
*/
|
|
5075
|
+
static getUserHubWalletAddress(address: string, spokeProvider: SpokeProvider, hubProvider: EvmHubProvider): Promise<Address$1>;
|
|
5069
5076
|
}
|
|
5070
5077
|
|
|
5071
5078
|
type AggregatedReserveData = {
|
|
@@ -6045,8 +6052,8 @@ type IntentError<T extends IntentErrorCode = IntentErrorCode> = {
|
|
|
6045
6052
|
data: IntentErrorData<T>;
|
|
6046
6053
|
};
|
|
6047
6054
|
declare class SolverService {
|
|
6048
|
-
|
|
6049
|
-
|
|
6055
|
+
readonly config: SolverServiceConfig;
|
|
6056
|
+
readonly hubProvider: EvmHubProvider;
|
|
6050
6057
|
constructor(config: SolverConfigParams | undefined, hubProvider: EvmHubProvider, relayerApiEndpoint?: HttpUrl);
|
|
6051
6058
|
/**
|
|
6052
6059
|
* Estimate the gas for a raw transaction.
|
|
@@ -6192,13 +6199,13 @@ declare class SolverService {
|
|
|
6192
6199
|
* // handle error
|
|
6193
6200
|
* }
|
|
6194
6201
|
*/
|
|
6195
|
-
swap<S extends SpokeProvider>(payload: CreateIntentParams, spokeProvider: S,
|
|
6202
|
+
swap<S extends SpokeProvider>(payload: CreateIntentParams, spokeProvider: S, timeout?: number): Promise<Result<[SolverExecutionResponse, Intent, Hex$1], IntentError<IntentErrorCode>>>;
|
|
6196
6203
|
/**
|
|
6197
6204
|
* Creates an intent and submits it to the Solver API and Relayer API
|
|
6198
6205
|
* @param {CreateIntentParams} payload - The intent to create
|
|
6199
6206
|
* @param {ISpokeProvider} spokeProvider - The spoke provider
|
|
6200
6207
|
* @param {number} timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
|
|
6201
|
-
* @returns {Promise<Result<[SolverExecutionResponse, Intent,
|
|
6208
|
+
* @returns {Promise<Result<[SolverExecutionResponse, Intent, Hex], IntentError<IntentErrorCode>>>} The solver execution response, intent, and packet data
|
|
6202
6209
|
*
|
|
6203
6210
|
* @example
|
|
6204
6211
|
* const payload = {
|
|
@@ -6227,7 +6234,7 @@ declare class SolverService {
|
|
|
6227
6234
|
* // handle error
|
|
6228
6235
|
* }
|
|
6229
6236
|
*/
|
|
6230
|
-
createAndSubmitIntent<S extends SpokeProvider>(payload: CreateIntentParams, spokeProvider: S, fee?: PartnerFee, timeout?: number): Promise<Result<[SolverExecutionResponse, Intent,
|
|
6237
|
+
createAndSubmitIntent<S extends SpokeProvider>(payload: CreateIntentParams, spokeProvider: S, fee?: PartnerFee | undefined, timeout?: number): Promise<Result<[SolverExecutionResponse, Intent, Hex$1], IntentError<IntentErrorCode>>>;
|
|
6231
6238
|
/**
|
|
6232
6239
|
* Check whether assetManager contract is allowed to move the given payload amount
|
|
6233
6240
|
* @param {CreateIntentParams} params - The intent to create
|
|
@@ -6648,7 +6655,7 @@ declare class IcxMigrationService {
|
|
|
6648
6655
|
encodeRevertMigration(amount: bigint, to: Address): EvmContractCall;
|
|
6649
6656
|
}
|
|
6650
6657
|
|
|
6651
|
-
type GetMigrationFailedPayload<T extends MigrationErrorCode> = T extends 'CREATE_MIGRATION_INTENT_FAILED' ? IcxMigrateParams |
|
|
6658
|
+
type GetMigrationFailedPayload<T extends MigrationErrorCode> = T extends 'CREATE_MIGRATION_INTENT_FAILED' ? IcxMigrateParams | UnifiedBnUSDMigrateParams | BalnMigrateParams : T extends 'CREATE_REVERT_MIGRATION_INTENT_FAILED' ? IcxCreateRevertMigrationParams : T extends 'REVERT_MIGRATION_FAILED' ? IcxCreateRevertMigrationParams | UnifiedBnUSDMigrateParams : T extends 'MIGRATION_FAILED' ? IcxMigrateParams | UnifiedBnUSDMigrateParams | BalnMigrateParams : never;
|
|
6652
6659
|
type MigrationFailedErrorData<T extends MigrationErrorCode> = {
|
|
6653
6660
|
payload: GetMigrationFailedPayload<T>;
|
|
6654
6661
|
error: unknown;
|
|
@@ -6660,16 +6667,16 @@ type MigrationError<T extends MigrationErrorCode> = {
|
|
|
6660
6667
|
data: MigrationErrorData<T>;
|
|
6661
6668
|
};
|
|
6662
6669
|
type MigrationAction = 'migrate' | 'revert';
|
|
6663
|
-
type MigrationParams = IcxMigrateParams |
|
|
6664
|
-
type MigrationRevertParams = IcxCreateRevertMigrationParams |
|
|
6670
|
+
type MigrationParams = IcxMigrateParams | UnifiedBnUSDMigrateParams | BalnMigrateParams;
|
|
6671
|
+
type MigrationRevertParams = IcxCreateRevertMigrationParams | UnifiedBnUSDMigrateParams;
|
|
6665
6672
|
declare const SupportedMigrationTokens: readonly ["ICX", "bnUSD", "BALN"];
|
|
6666
6673
|
type MigrationTokens = (typeof SupportedMigrationTokens)[number];
|
|
6667
6674
|
declare class MigrationService {
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6675
|
+
readonly icxMigration: IcxMigrationService;
|
|
6676
|
+
readonly bnUSDMigrationService: BnUSDMigrationService;
|
|
6677
|
+
readonly balnSwapService: BalnSwapService;
|
|
6678
|
+
readonly hubProvider: EvmHubProvider;
|
|
6679
|
+
readonly config: MigrationServiceConfig;
|
|
6673
6680
|
constructor(hubProvider: EvmHubProvider, config?: MigrationServiceConfig);
|
|
6674
6681
|
/**
|
|
6675
6682
|
* Checks if the allowance is valid for the migration transaction.
|
|
@@ -6710,29 +6717,39 @@ declare class MigrationService {
|
|
|
6710
6717
|
* );
|
|
6711
6718
|
*
|
|
6712
6719
|
*/
|
|
6713
|
-
approve<S extends SpokeProvider, R extends boolean = false>(params: IcxCreateRevertMigrationParams |
|
|
6720
|
+
approve<S extends SpokeProvider, R extends boolean = false>(params: IcxCreateRevertMigrationParams | UnifiedBnUSDMigrateParams, action: MigrationAction, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>>>;
|
|
6714
6721
|
/**
|
|
6715
|
-
* Migrates
|
|
6716
|
-
*
|
|
6722
|
+
* Migrates bnUSD tokens between legacy and new formats across supported spoke chains via the hub chain (sonic).
|
|
6723
|
+
* Handles both legacy-to-new and new-to-legacy bnUSD migrations, enforcing validation and relaying the transaction.
|
|
6717
6724
|
*
|
|
6718
|
-
* @param params -
|
|
6719
|
-
* @param spokeProvider - The
|
|
6720
|
-
* @param timeout -
|
|
6725
|
+
* @param params - Migration parameters, including source/destination chain IDs, token addresses, amount, and recipient.
|
|
6726
|
+
* @param spokeProvider - The SpokeProvider instance for the source chain.
|
|
6727
|
+
* @param timeout - Optional timeout in milliseconds for the relay operation (default: 60 seconds).
|
|
6728
|
+
* @param unchecked - Optional flag to skip validation checks (default: false).
|
|
6721
6729
|
* @returns {Promise<Result<[string, Hex], MigrationError<'MIGRATION_FAILED'> | MigrationError<'CREATE_MIGRATION_INTENT_FAILED'> | RelayError>>}
|
|
6722
|
-
*
|
|
6723
|
-
* or an error describing why the migration or relay failed.
|
|
6724
|
-
*
|
|
6730
|
+
* Result containing a tuple: [spokeTxHash, hubTxHash] if successful, or an error describing the failure.
|
|
6725
6731
|
*
|
|
6726
6732
|
* @example
|
|
6727
|
-
* //
|
|
6733
|
+
* // Migrate legacy bnUSD to new bnUSD
|
|
6728
6734
|
* const result = await sodax.migration.migratebnUSD({
|
|
6729
|
-
*
|
|
6730
|
-
*
|
|
6731
|
-
*
|
|
6732
|
-
*
|
|
6733
|
-
*
|
|
6735
|
+
* srcChainId: '0x1.icon', // Source chain ID (legacy)
|
|
6736
|
+
* dstChainId: 'sonic', // Destination chain ID (new)
|
|
6737
|
+
* srcbnUSD: 'cx...', // Legacy bnUSD token address
|
|
6738
|
+
* dstbnUSD: '0x...', // New bnUSD token address
|
|
6739
|
+
* amount: 1000n, // Amount to migrate
|
|
6740
|
+
* to: '0x...', // Recipient address on destination chain
|
|
6734
6741
|
* }, iconSpokeProvider);
|
|
6735
6742
|
*
|
|
6743
|
+
* // Reverse migration: new bnUSD to legacy bnUSD
|
|
6744
|
+
* const result = await sodax.migration.migratebnUSD({
|
|
6745
|
+
* srcChainId: 'sonic', // Source chain ID (new)
|
|
6746
|
+
* dstChainId: '0x1.icon', // Destination chain ID (legacy)
|
|
6747
|
+
* srcbnUSD: '0x...', // New bnUSD token address
|
|
6748
|
+
* dstbnUSD: 'cx...', // Legacy bnUSD token address
|
|
6749
|
+
* amount: 1000n, // Amount to migrate
|
|
6750
|
+
* to: 'hx...', // Recipient address on destination chain
|
|
6751
|
+
* }, sonicSpokeProvider);
|
|
6752
|
+
*
|
|
6736
6753
|
* if (result.ok) {
|
|
6737
6754
|
* // result.value is a tuple: [spokeTxHash, hubTxHash]
|
|
6738
6755
|
* const [spokeTxHash, hubTxHash] = result.value;
|
|
@@ -6743,45 +6760,10 @@ declare class MigrationService {
|
|
|
6743
6760
|
* console.error('[migrateBnUSD] error', result.error);
|
|
6744
6761
|
* }
|
|
6745
6762
|
*/
|
|
6746
|
-
migratebnUSD(params:
|
|
6763
|
+
migratebnUSD(params: UnifiedBnUSDMigrateParams, spokeProvider: SpokeProvider, timeout?: number, unchecked?: boolean): Promise<Result<[
|
|
6747
6764
|
string,
|
|
6748
6765
|
Hex$1
|
|
6749
6766
|
], MigrationError<'MIGRATION_FAILED'> | MigrationError<'CREATE_MIGRATION_INTENT_FAILED'> | RelayError>>;
|
|
6750
|
-
/**
|
|
6751
|
-
* Reverses the migration of legacy bnUSD tokens to new bnUSD tokens on the hub chain (sonic).
|
|
6752
|
-
* This function handles the reversal of the migration of legacy bnUSD tokens to new bnUSD tokens.
|
|
6753
|
-
*
|
|
6754
|
-
* @param params - The parameters for the migration transaction.
|
|
6755
|
-
* @param spokeProvider - The spoke provider.
|
|
6756
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
|
|
6757
|
-
* @returns {Promise<Result<[string, Hex], MigrationError<'REVERT_MIGRATION_FAILED'> | MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'> | RelayError>>}
|
|
6758
|
-
* Returns a Result containing a tuple of [spokeTxHash, hubTxHash] if successful,
|
|
6759
|
-
* or an error describing why the revert migration or relay failed.
|
|
6760
|
-
*
|
|
6761
|
-
*
|
|
6762
|
-
* @example
|
|
6763
|
-
* // Example: Reverse the migration of legacy bnUSD tokens to new bnUSD tokens on the hub chain (sonic)
|
|
6764
|
-
* const result = await sodax.migration.reverseMigratebnUSD({
|
|
6765
|
-
* srcChainID: 'sonic', // source chain ID (e.g., SONIC_MAINNET_CHAIN_ID)
|
|
6766
|
-
* amount: 1000000000000000000n,
|
|
6767
|
-
* to: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd', // The spoke chain address that will receive the migrated legacy bnUSD tokens
|
|
6768
|
-
* dstChainID: '0x1.icon', // destination chain ID of type bnUSDLegacySpokeChainId (e.g., ICON_MAINNET_CHAIN_ID)
|
|
6769
|
-
* }, iconSpokeProvider);
|
|
6770
|
-
*
|
|
6771
|
-
* if (result.ok) {
|
|
6772
|
-
* // result.value is a tuple: [spokeTxHash, hubTxHash]
|
|
6773
|
-
* const [spokeTxHash, hubTxHash] = result.value;
|
|
6774
|
-
* console.log('[reverseMigrateBnUSD] hubTxHash', hubTxHash);
|
|
6775
|
-
* console.log('[reverseMigrateBnUSD] spokeTxHash', spokeTxHash);
|
|
6776
|
-
* } else {
|
|
6777
|
-
* // Handle revert migration error
|
|
6778
|
-
* console.error('[reverseMigrateBnUSD] error', result.error);
|
|
6779
|
-
* }
|
|
6780
|
-
*/
|
|
6781
|
-
reverseMigratebnUSD(params: BnUSDRevertMigrationParams, spokeProvider: SonicSpokeProvider, timeout?: number): Promise<Result<[
|
|
6782
|
-
string,
|
|
6783
|
-
Hex$1
|
|
6784
|
-
], MigrationError<'REVERT_MIGRATION_FAILED'> | MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'> | RelayError>>;
|
|
6785
6767
|
/**
|
|
6786
6768
|
* Migrates ICX tokens to SODA tokens on the hub chain (sonic).
|
|
6787
6769
|
* This function handles the migration of ICX tokens to SODA tokens.
|
|
@@ -6890,27 +6872,6 @@ declare class MigrationService {
|
|
|
6890
6872
|
Hex$1,
|
|
6891
6873
|
Hex$1
|
|
6892
6874
|
], MigrationError<'MIGRATION_FAILED'> | MigrationError<'CREATE_MIGRATION_INTENT_FAILED'> | RelayError>>;
|
|
6893
|
-
/**
|
|
6894
|
-
* Creates a revert migration intent and submits (relays) it to the spoke chain.
|
|
6895
|
-
* @param params - The parameters for the revert migration transaction.
|
|
6896
|
-
* @param spokeProvider - The spoke provider.
|
|
6897
|
-
* @param raw - Whether to return the raw transaction hash instead of the transaction receipt
|
|
6898
|
-
* @returns {Promise<Result<TxReturnType<bnUSDLegacyMigrationProviders, R>>>} - Returns the raw transaction payload or transaction hash
|
|
6899
|
-
*
|
|
6900
|
-
* @example
|
|
6901
|
-
* const result = await migrationService.createRevertMigratebnUSDIntent(
|
|
6902
|
-
* {
|
|
6903
|
-
* srcChainID: 'sonic', // The source chain ID where the new bnUSD token exists (hub chain)
|
|
6904
|
-
* amount: 1000n, // The amount of new bnUSD tokens to migrate back
|
|
6905
|
-
* to: '0x...', // The spoke chain address that will receive the migrated legacy bnUSD tokens
|
|
6906
|
-
* dstChainID: '0x1.icon', // The destination chain ID for the migration (spoke chain)
|
|
6907
|
-
* },
|
|
6908
|
-
* spokeProvider, // IconSpokeProvider instance
|
|
6909
|
-
* true // Optional raw flag to return the raw transaction hash instead of the transaction receipt
|
|
6910
|
-
* );
|
|
6911
|
-
*
|
|
6912
|
-
*/
|
|
6913
|
-
createRevertMigratebnUSDIntent<R extends boolean = false>(params: BnUSDRevertMigrationParams, spokeProvider: SonicSpokeProvider, raw?: R): Promise<Result<TxReturnType<SonicSpokeProvider, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
|
|
6914
6875
|
/**
|
|
6915
6876
|
* Creates a BALN migration intent on spoke chain (icon).
|
|
6916
6877
|
*
|
|
@@ -6934,27 +6895,49 @@ declare class MigrationService {
|
|
|
6934
6895
|
*/
|
|
6935
6896
|
createMigrateBalnIntent<R extends boolean = false>(params: BalnMigrateParams, spokeProvider: IconSpokeProvider, raw?: R): Promise<Result<TxReturnType<IconSpokeProvider, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
|
|
6936
6897
|
/**
|
|
6937
|
-
* Creates a bnUSD migration intent on spoke chain
|
|
6898
|
+
* Creates a bnUSD migration or reverse migration (legacy bnUSD to new bnUSD or vice versa) intent on a spoke chain.
|
|
6938
6899
|
*
|
|
6939
|
-
*
|
|
6940
|
-
*
|
|
6941
|
-
*
|
|
6942
|
-
*
|
|
6900
|
+
* This function prepares the transaction data for migrating legacy bnUSD to new bnUSD,
|
|
6901
|
+
* or for reverting (migrating new bnUSD back to legacy bnUSD), depending on the provided parameters.
|
|
6902
|
+
* It performs validation on chain IDs and token addresses unless `unchecked` is set to true.
|
|
6903
|
+
*
|
|
6904
|
+
* @param params - The parameters for the bnUSD migration or reverse migration transaction.
|
|
6905
|
+
* @param spokeProvider - The spoke provider instance for the source chain.
|
|
6906
|
+
* @param unchecked - If true, skips input validation (use with caution).
|
|
6907
|
+
* @param raw - If true, returns the raw transaction hash instead of the transaction receipt.
|
|
6908
|
+
* @returns {Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>}
|
|
6909
|
+
* Returns a Result containing the transaction payload or hash, or an error if creation failed.
|
|
6943
6910
|
*
|
|
6944
6911
|
* @example
|
|
6912
|
+
* // Migrate legacy bnUSD to new bnUSD
|
|
6945
6913
|
* const result = await migrationService.createMigratebnUSDIntent(
|
|
6946
6914
|
* {
|
|
6947
|
-
*
|
|
6948
|
-
*
|
|
6949
|
-
*
|
|
6950
|
-
*
|
|
6951
|
-
*
|
|
6952
|
-
*
|
|
6953
|
-
*
|
|
6915
|
+
* srcChainId: '0x1.icon', // Source chain ID (legacy bnUSD chain)
|
|
6916
|
+
* dstChainId: 'sonic', // Destination chain ID (new bnUSD chain)
|
|
6917
|
+
* srcbnUSD: 'cx...', // Legacy bnUSD token address
|
|
6918
|
+
* dstbnUSD: '0x...', // New bnUSD token address
|
|
6919
|
+
* amount: 1000n, // Amount to migrate
|
|
6920
|
+
* to: '0x...', // Recipient address on destination chain
|
|
6921
|
+
* } satisfies UnifiedBnUSDMigrateParams,
|
|
6922
|
+
* spokeProvider, // SpokeProvider instance
|
|
6923
|
+
* false, // Optional unchecked flag (validation is skipped)
|
|
6924
|
+
* true // Optional raw flag
|
|
6954
6925
|
* );
|
|
6955
6926
|
*
|
|
6927
|
+
* // Reverse migration: new bnUSD to legacy bnUSD
|
|
6928
|
+
* const result = await migrationService.createMigratebnUSDIntent(
|
|
6929
|
+
* {
|
|
6930
|
+
* srcChainId: 'sonic', // Source chain ID (new bnUSD chain)
|
|
6931
|
+
* dstChainId: '0x1.icon', // Destination chain ID (legacy bnUSD chain)
|
|
6932
|
+
* srcbnUSD: '0x...', // New bnUSD token address
|
|
6933
|
+
* dstbnUSD: 'cx...', // Legacy bnUSD token address
|
|
6934
|
+
* amount: 1000n, // Amount to migrate
|
|
6935
|
+
* to: 'hx...', // Recipient address on destination chain
|
|
6936
|
+
* } satisfies UnifiedBnUSDMigrateParams,
|
|
6937
|
+
* spokeProvider
|
|
6938
|
+
* );
|
|
6956
6939
|
*/
|
|
6957
|
-
createMigratebnUSDIntent<R extends boolean = false>(params:
|
|
6940
|
+
createMigratebnUSDIntent<S extends SpokeProvider, R extends boolean = false>(params: UnifiedBnUSDMigrateParams, spokeProvider: S, unchecked?: boolean, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_MIGRATION_INTENT_FAILED'>>>;
|
|
6958
6941
|
/**
|
|
6959
6942
|
* Creates a migration of ICX to SODA intent on spoke chain (icon).
|
|
6960
6943
|
* This function handles the migration of ICX or wICX tokens to SODA tokens on the hub chain.
|
|
@@ -7004,16 +6987,29 @@ declare class MigrationService {
|
|
|
7004
6987
|
createRevertSodaToIcxMigrationIntent<R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider: SonicSpokeProvider, raw?: R): Promise<Result<TxReturnType<SonicSpokeProvider, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
|
|
7005
6988
|
}
|
|
7006
6989
|
|
|
7007
|
-
type
|
|
7008
|
-
|
|
6990
|
+
type UnifiedBnUSDMigrateParams = {
|
|
6991
|
+
srcChainId: SpokeChainId;
|
|
6992
|
+
srcbnUSD: string;
|
|
6993
|
+
dstChainId: SpokeChainId;
|
|
6994
|
+
dstbnUSD: string;
|
|
7009
6995
|
amount: bigint;
|
|
7010
|
-
to:
|
|
6996
|
+
to: string;
|
|
6997
|
+
};
|
|
6998
|
+
type FormattedBnUSDMigrateParams = {
|
|
6999
|
+
srcChainId: SpokeChainId;
|
|
7000
|
+
legacybnUSD: string;
|
|
7001
|
+
newbnUSD: string;
|
|
7002
|
+
amount: bigint;
|
|
7003
|
+
to: Hex;
|
|
7004
|
+
dstChainId: SpokeChainId;
|
|
7011
7005
|
};
|
|
7012
7006
|
type BnUSDRevertMigrationParams = {
|
|
7013
|
-
|
|
7007
|
+
srcChainId: SpokeChainId;
|
|
7008
|
+
legacybnUSD: string;
|
|
7009
|
+
newbnUSD: string;
|
|
7014
7010
|
amount: bigint;
|
|
7015
7011
|
to: Hex;
|
|
7016
|
-
|
|
7012
|
+
dstChainId: SpokeChainId;
|
|
7017
7013
|
};
|
|
7018
7014
|
/**
|
|
7019
7015
|
* Service for handling bnUSD migration operations on the hub chain.
|
|
@@ -7033,10 +7029,7 @@ declare class BnUSDMigrationService {
|
|
|
7033
7029
|
* @returns Encoded transaction data for the migration operation
|
|
7034
7030
|
* @throws Will throw an error if the hub asset configuration is not found
|
|
7035
7031
|
*/
|
|
7036
|
-
migrateData(params:
|
|
7037
|
-
legacybnUSD: string;
|
|
7038
|
-
newbnUSD: string;
|
|
7039
|
-
}): Hex;
|
|
7032
|
+
migrateData(params: FormattedBnUSDMigrateParams): Hex;
|
|
7040
7033
|
/**
|
|
7041
7034
|
* Generates transaction data for migrating new bnUSD tokens back to legacy bnUSD tokens.
|
|
7042
7035
|
* This method creates the necessary contract calls to:
|
|
@@ -7048,10 +7041,7 @@ declare class BnUSDMigrationService {
|
|
|
7048
7041
|
* @returns Encoded transaction data for the migration operation
|
|
7049
7042
|
* @throws Will throw an error if the hub asset configuration is not found
|
|
7050
7043
|
*/
|
|
7051
|
-
revertMigrationData(params: BnUSDRevertMigrationParams
|
|
7052
|
-
legacybnUSD: string;
|
|
7053
|
-
newbnUSD: string;
|
|
7054
|
-
}): Hex;
|
|
7044
|
+
revertMigrationData(params: BnUSDRevertMigrationParams): Hex;
|
|
7055
7045
|
}
|
|
7056
7046
|
|
|
7057
7047
|
/**
|
|
@@ -7362,1270 +7352,265 @@ type InjectiveSpokeDepositParams = {
|
|
|
7362
7352
|
data: Hex;
|
|
7363
7353
|
};
|
|
7364
7354
|
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
readonly SUI: 21n;
|
|
7377
|
-
readonly SONIC: 146n;
|
|
7378
|
-
readonly STELLAR: 27n;
|
|
7379
|
-
readonly INJ: 19n;
|
|
7380
|
-
readonly SOL: 1n;
|
|
7381
|
-
readonly ICON: 1768124270n;
|
|
7382
|
-
readonly BASE: 30n;
|
|
7383
|
-
readonly BINANCE: 4n;
|
|
7384
|
-
readonly OPTIMISM: 24n;
|
|
7385
|
-
readonly POLYGON: 5n;
|
|
7386
|
-
readonly ARBITRUM: 23n;
|
|
7387
|
-
readonly NIBIRU: 7235938n;
|
|
7355
|
+
type LegacybnUSDChainId = (typeof bnUSDLegacySpokeChainIds)[number];
|
|
7356
|
+
type LegacybnUSDTokenAddress = (typeof bnUSDLegacyTokens)[number]['address'];
|
|
7357
|
+
type LegacybnUSDToken = (typeof bnUSDLegacyTokens)[number];
|
|
7358
|
+
type NewbnUSDChainId = (typeof newbnUSDSpokeChainIds)[number];
|
|
7359
|
+
type IntentRelayChainId = (typeof INTENT_RELAY_CHAIN_IDS)[keyof typeof INTENT_RELAY_CHAIN_IDS];
|
|
7360
|
+
type EvmChainId = (typeof EVM_CHAIN_IDS)[number];
|
|
7361
|
+
type EvmSpokeChainId = (typeof EVM_SPOKE_CHAIN_IDS)[number];
|
|
7362
|
+
type BaseSpokeChainInfo<T extends ChainType> = {
|
|
7363
|
+
name: string;
|
|
7364
|
+
id: GetSpokeChainIdType<T>;
|
|
7365
|
+
type: T;
|
|
7388
7366
|
};
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
readonly symbol: "Sonic";
|
|
7410
|
-
readonly name: "Sonic";
|
|
7411
|
-
readonly decimals: 18;
|
|
7412
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
7413
|
-
};
|
|
7414
|
-
readonly WETH: {
|
|
7415
|
-
readonly symbol: "WETH";
|
|
7416
|
-
readonly name: "Wrapped Ether";
|
|
7417
|
-
readonly decimals: 18;
|
|
7418
|
-
readonly address: "0x50c42dEAcD8Fc9773493ED674b675bE577f2634b";
|
|
7419
|
-
};
|
|
7420
|
-
readonly USDC: {
|
|
7421
|
-
readonly symbol: "USDC";
|
|
7422
|
-
readonly name: "USD Coin";
|
|
7423
|
-
readonly decimals: 6;
|
|
7424
|
-
readonly address: "0x29219dd400f2Bf60E5a23d13Be72B486D4038894";
|
|
7425
|
-
};
|
|
7426
|
-
readonly USDT: {
|
|
7427
|
-
readonly symbol: "USDT";
|
|
7428
|
-
readonly name: "Tether USD";
|
|
7429
|
-
readonly decimals: 6;
|
|
7430
|
-
readonly address: "0x6047828dc181963ba44974801FF68e538dA5eaF9";
|
|
7431
|
-
};
|
|
7432
|
-
readonly wSonic: {
|
|
7433
|
-
readonly symbol: "wSonic";
|
|
7434
|
-
readonly name: "Wrapped Sonic";
|
|
7435
|
-
readonly decimals: 18;
|
|
7436
|
-
readonly address: "0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38";
|
|
7437
|
-
};
|
|
7438
|
-
readonly SODA: {
|
|
7439
|
-
readonly symbol: "SODA";
|
|
7440
|
-
readonly name: "SODAX";
|
|
7441
|
-
readonly decimals: 18;
|
|
7442
|
-
readonly address: "0x7c7d53EEcda37a87ce0D5bf8E0b24512A48dC963";
|
|
7443
|
-
};
|
|
7444
|
-
};
|
|
7445
|
-
};
|
|
7446
|
-
readonly solana: {
|
|
7447
|
-
readonly addresses: {
|
|
7448
|
-
readonly assetManager: "AnCCJjheynmGqPp6Vgat9DTirGKD4CtQzP8cwTYV8qKH";
|
|
7449
|
-
readonly connection: "GxS8i6D9qQjbSeniD487CnomUxU2pXt6V8P96T6MkUXB";
|
|
7450
|
-
readonly rateLimit: "2Vyy3A3Teju2EMCkdnappEeWqBXyAaF5V2WsrU4hDtsk";
|
|
7451
|
-
readonly testToken: "3Q2HS3png7fLaYerqCun3zw8rnBZo2Ksvdg6RHTyM4Ns";
|
|
7452
|
-
readonly xTokenManager: "";
|
|
7453
|
-
};
|
|
7454
|
-
readonly chain: {
|
|
7455
|
-
readonly id: "solana";
|
|
7456
|
-
readonly name: "Solana";
|
|
7457
|
-
readonly type: "SOLANA";
|
|
7458
|
-
};
|
|
7459
|
-
readonly nativeToken: "11111111111111111111111111111111";
|
|
7460
|
-
readonly bnUSD: "3rSPCLNEF7Quw4wX8S1NyKivELoyij8eYA2gJwBgt4V5";
|
|
7461
|
-
readonly supportedTokens: {
|
|
7462
|
-
readonly SOL: {
|
|
7463
|
-
readonly symbol: "SOL";
|
|
7464
|
-
readonly name: "Solana";
|
|
7465
|
-
readonly decimals: 9;
|
|
7466
|
-
readonly address: "11111111111111111111111111111111";
|
|
7467
|
-
};
|
|
7468
|
-
readonly bnUSD: {
|
|
7469
|
-
readonly symbol: "bnUSD";
|
|
7470
|
-
readonly name: "bnUSD";
|
|
7471
|
-
readonly decimals: 9;
|
|
7472
|
-
readonly address: "3rSPCLNEF7Quw4wX8S1NyKivELoyij8eYA2gJwBgt4V5";
|
|
7473
|
-
};
|
|
7474
|
-
readonly USDC: {
|
|
7475
|
-
readonly symbol: "USDC";
|
|
7476
|
-
readonly name: "USD Coin";
|
|
7477
|
-
readonly decimals: 6;
|
|
7478
|
-
readonly address: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
7479
|
-
};
|
|
7480
|
-
};
|
|
7481
|
-
readonly gasPrice: "500000";
|
|
7482
|
-
readonly rpcUrl: "https://api.mainnet-beta.solana.com";
|
|
7483
|
-
readonly walletAddress: "";
|
|
7367
|
+
type SpokeChainInfo<T extends ChainType> = BaseSpokeChainInfo<T>;
|
|
7368
|
+
type HubChainInfo<T extends ChainType> = {
|
|
7369
|
+
name: string;
|
|
7370
|
+
id: HubChainId;
|
|
7371
|
+
type: T;
|
|
7372
|
+
};
|
|
7373
|
+
type GetSpokeChainIdType<T extends ChainType> = T extends 'EVM' ? EvmSpokeChainId : SpokeChainId;
|
|
7374
|
+
type AssetInfo = {
|
|
7375
|
+
chainId: bigint;
|
|
7376
|
+
spokeAddress: `0x${string}`;
|
|
7377
|
+
};
|
|
7378
|
+
type HubAssetInfo = {
|
|
7379
|
+
asset: Address$1;
|
|
7380
|
+
decimal: number;
|
|
7381
|
+
vault: Address$1;
|
|
7382
|
+
};
|
|
7383
|
+
type BaseSpokeChainConfig<T extends ChainType> = {
|
|
7384
|
+
chain: SpokeChainInfo<T>;
|
|
7385
|
+
addresses: {
|
|
7386
|
+
[key: string]: Address$1 | string | Uint8Array;
|
|
7484
7387
|
};
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
7494
|
-
};
|
|
7495
|
-
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
7496
|
-
readonly bnUSD: "0x6958a4CBFe11406E2a1c1d3a71A1971aD8B3b92F";
|
|
7497
|
-
readonly supportedTokens: {
|
|
7498
|
-
readonly AVAX: {
|
|
7499
|
-
readonly symbol: "AVAX";
|
|
7500
|
-
readonly name: "Avalanche";
|
|
7501
|
-
readonly decimals: 18;
|
|
7502
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
7503
|
-
};
|
|
7504
|
-
readonly bnUSD: {
|
|
7505
|
-
readonly symbol: "bnUSD";
|
|
7506
|
-
readonly name: "bnUSD";
|
|
7507
|
-
readonly decimals: 18;
|
|
7508
|
-
readonly address: "0x6958a4CBFe11406E2a1c1d3a71A1971aD8B3b92F";
|
|
7509
|
-
};
|
|
7510
|
-
readonly USDT: {
|
|
7511
|
-
readonly symbol: "USDT";
|
|
7512
|
-
readonly name: "Tether USD";
|
|
7513
|
-
readonly decimals: 6;
|
|
7514
|
-
readonly address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7";
|
|
7515
|
-
};
|
|
7516
|
-
readonly USDC: {
|
|
7517
|
-
readonly symbol: "USDC";
|
|
7518
|
-
readonly name: "USD Coin";
|
|
7519
|
-
readonly decimals: 6;
|
|
7520
|
-
readonly address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
|
|
7521
|
-
};
|
|
7522
|
-
};
|
|
7388
|
+
supportedTokens: Record<string, Token>;
|
|
7389
|
+
nativeToken: Address$1 | string;
|
|
7390
|
+
bnUSD: Address$1 | string;
|
|
7391
|
+
};
|
|
7392
|
+
type BaseHubChainConfig<T extends ChainType> = {
|
|
7393
|
+
chain: HubChainInfo<T>;
|
|
7394
|
+
addresses: {
|
|
7395
|
+
[key: string]: Address$1 | string | Uint8Array;
|
|
7523
7396
|
};
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
readonly bnUSD: "0x043fb7e23350Dd5b77dE5E228B528763DEcb9131";
|
|
7536
|
-
readonly supportedTokens: {
|
|
7537
|
-
readonly NIBI: {
|
|
7538
|
-
readonly symbol: "NIBI";
|
|
7539
|
-
readonly name: "Nibiru";
|
|
7540
|
-
readonly decimals: 6;
|
|
7541
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
7542
|
-
};
|
|
7543
|
-
readonly bnUSD: {
|
|
7544
|
-
readonly symbol: "bnUSD";
|
|
7545
|
-
readonly name: "bnUSD";
|
|
7546
|
-
readonly decimals: 18;
|
|
7547
|
-
readonly address: "0x043fb7e23350Dd5b77dE5E228B528763DEcb9131";
|
|
7548
|
-
};
|
|
7549
|
-
};
|
|
7397
|
+
supportedTokens: Token[];
|
|
7398
|
+
nativeToken: Address$1 | string;
|
|
7399
|
+
};
|
|
7400
|
+
type EvmHubChainConfig = BaseHubChainConfig<'EVM'> & {
|
|
7401
|
+
addresses: {
|
|
7402
|
+
assetManager: Address$1;
|
|
7403
|
+
hubWallet: Address$1;
|
|
7404
|
+
xTokenManager: Address$1;
|
|
7405
|
+
icxMigration: Address$1;
|
|
7406
|
+
balnSwap: Address$1;
|
|
7407
|
+
sodaToken: Address$1;
|
|
7550
7408
|
};
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
readonly address: "0xA256dd181C3f6E5eC68C6869f5D50a712d47212e";
|
|
7575
|
-
};
|
|
7576
|
-
readonly wstETH: {
|
|
7577
|
-
readonly symbol: "wstETH";
|
|
7578
|
-
readonly name: "Wrapped stETH";
|
|
7579
|
-
readonly decimals: 18;
|
|
7580
|
-
readonly address: "0x5979D7b546E38E414F7E9822514be443A4800529";
|
|
7581
|
-
};
|
|
7582
|
-
readonly weETH: {
|
|
7583
|
-
readonly symbol: "weETH";
|
|
7584
|
-
readonly name: "Wrapped eETH";
|
|
7585
|
-
readonly decimals: 18;
|
|
7586
|
-
readonly address: "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe";
|
|
7587
|
-
};
|
|
7588
|
-
readonly tBTC: {
|
|
7589
|
-
readonly symbol: "tBTC";
|
|
7590
|
-
readonly name: "Arbitrum tBTC v2";
|
|
7591
|
-
readonly decimals: 18;
|
|
7592
|
-
readonly address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40";
|
|
7593
|
-
};
|
|
7594
|
-
readonly WBTC: {
|
|
7595
|
-
readonly symbol: "WBTC";
|
|
7596
|
-
readonly name: "Wrapped BTC";
|
|
7597
|
-
readonly decimals: 8;
|
|
7598
|
-
readonly address: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f";
|
|
7599
|
-
};
|
|
7600
|
-
readonly USDC: {
|
|
7601
|
-
readonly symbol: "USDC";
|
|
7602
|
-
readonly name: "USD Coin (USDC)";
|
|
7603
|
-
readonly decimals: 6;
|
|
7604
|
-
readonly address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
7605
|
-
};
|
|
7606
|
-
readonly USDT: {
|
|
7607
|
-
readonly symbol: "USDT";
|
|
7608
|
-
readonly name: "TetherToken";
|
|
7609
|
-
readonly decimals: 6;
|
|
7610
|
-
readonly address: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9";
|
|
7611
|
-
};
|
|
7612
|
-
};
|
|
7409
|
+
nativeToken: Address$1;
|
|
7410
|
+
};
|
|
7411
|
+
type RelayerApiConfig = {
|
|
7412
|
+
relayerApiEndpoint: HttpUrl;
|
|
7413
|
+
};
|
|
7414
|
+
type MoneyMarketConfig = {
|
|
7415
|
+
uiPoolDataProvider: Address$1;
|
|
7416
|
+
lendingPool: Address$1;
|
|
7417
|
+
poolAddressesProvider: Address$1;
|
|
7418
|
+
bnUSD: Address$1;
|
|
7419
|
+
bnUSDVault: Address$1;
|
|
7420
|
+
};
|
|
7421
|
+
type MoneyMarketServiceConfig = Prettify<MoneyMarketConfig & PartnerFeeConfig & RelayerApiConfig>;
|
|
7422
|
+
type SolverServiceConfig = Prettify<SolverConfig & PartnerFeeConfig & RelayerApiConfig>;
|
|
7423
|
+
type MigrationServiceConfig = Prettify<RelayerApiConfig>;
|
|
7424
|
+
type MoneyMarketConfigParams = Prettify<MoneyMarketConfig & Optional<PartnerFeeConfig, 'partnerFee'>> | Optional<PartnerFeeConfig, 'partnerFee'>;
|
|
7425
|
+
type Default = {
|
|
7426
|
+
default: boolean;
|
|
7427
|
+
};
|
|
7428
|
+
type EvmSpokeChainConfig = BaseSpokeChainConfig<'EVM'> & {
|
|
7429
|
+
addresses: {
|
|
7430
|
+
assetManager: Address$1;
|
|
7431
|
+
connection: Address$1;
|
|
7613
7432
|
};
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
readonly addresses: {
|
|
7621
|
-
readonly assetManager: "0x348BE44F63A458be9C1b13D6fD8e99048F297Bc3";
|
|
7622
|
-
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
7623
|
-
};
|
|
7624
|
-
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
7625
|
-
readonly bnUSD: "0xAcfab3F31C0a18559D78556BBf297EC29c6cf8aa";
|
|
7626
|
-
readonly supportedTokens: {
|
|
7627
|
-
readonly ETH: {
|
|
7628
|
-
readonly symbol: "ETH";
|
|
7629
|
-
readonly name: "Ethereum";
|
|
7630
|
-
readonly decimals: 18;
|
|
7631
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
7632
|
-
};
|
|
7633
|
-
readonly bnUSD: {
|
|
7634
|
-
readonly symbol: "bnUSD";
|
|
7635
|
-
readonly name: "bnUSD";
|
|
7636
|
-
readonly decimals: 18;
|
|
7637
|
-
readonly address: "0xAcfab3F31C0a18559D78556BBf297EC29c6cf8aa";
|
|
7638
|
-
};
|
|
7639
|
-
readonly weETH: {
|
|
7640
|
-
readonly symbol: "weETH";
|
|
7641
|
-
readonly name: "Wrapped eETH";
|
|
7642
|
-
readonly decimals: 18;
|
|
7643
|
-
readonly address: "0x04c0599ae5a44757c0af6f9ec3b93da8976c150a";
|
|
7644
|
-
};
|
|
7645
|
-
readonly USDC: {
|
|
7646
|
-
readonly symbol: "USDC";
|
|
7647
|
-
readonly name: "USD Coin";
|
|
7648
|
-
readonly decimals: 6;
|
|
7649
|
-
readonly address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
7650
|
-
};
|
|
7651
|
-
readonly wstETH: {
|
|
7652
|
-
readonly symbol: "wstETH";
|
|
7653
|
-
readonly name: "Wrapped stETH";
|
|
7654
|
-
readonly decimals: 18;
|
|
7655
|
-
readonly address: "0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452";
|
|
7656
|
-
};
|
|
7657
|
-
readonly cbBTC: {
|
|
7658
|
-
readonly symbol: "cbBTC";
|
|
7659
|
-
readonly name: "Coinbase Wrapped BTC";
|
|
7660
|
-
readonly decimals: 8;
|
|
7661
|
-
readonly address: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
|
|
7662
|
-
};
|
|
7663
|
-
};
|
|
7433
|
+
nativeToken: Address$1 | string;
|
|
7434
|
+
};
|
|
7435
|
+
type SonicSpokeChainConfig = BaseSpokeChainConfig<'EVM'> & {
|
|
7436
|
+
addresses: {
|
|
7437
|
+
walletRouter: Address$1;
|
|
7438
|
+
wrappedSonic: Address$1;
|
|
7664
7439
|
};
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
};
|
|
7675
|
-
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
7676
|
-
readonly bnUSD: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
|
|
7677
|
-
readonly supportedTokens: {
|
|
7678
|
-
readonly ETH: {
|
|
7679
|
-
readonly symbol: "ETH";
|
|
7680
|
-
readonly name: "Ethereum";
|
|
7681
|
-
readonly decimals: 18;
|
|
7682
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
7683
|
-
};
|
|
7684
|
-
readonly bnUSD: {
|
|
7685
|
-
readonly symbol: "bnUSD";
|
|
7686
|
-
readonly name: "bnUSD";
|
|
7687
|
-
readonly decimals: 18;
|
|
7688
|
-
readonly address: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
|
|
7689
|
-
};
|
|
7690
|
-
readonly USDC: {
|
|
7691
|
-
readonly symbol: "USDC";
|
|
7692
|
-
readonly name: "USD Coin";
|
|
7693
|
-
readonly decimals: 6;
|
|
7694
|
-
readonly address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
|
|
7695
|
-
};
|
|
7696
|
-
readonly wstETH: {
|
|
7697
|
-
readonly symbol: "wstETH";
|
|
7698
|
-
readonly name: "Wrapped stETH";
|
|
7699
|
-
readonly decimals: 18;
|
|
7700
|
-
readonly address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb";
|
|
7701
|
-
};
|
|
7702
|
-
readonly weETH: {
|
|
7703
|
-
readonly symbol: "weETH";
|
|
7704
|
-
readonly name: "Wrapped eETH";
|
|
7705
|
-
readonly decimals: 18;
|
|
7706
|
-
readonly address: "0x5A7fACB970D094B6C7FF1df0eA68D99E6e73CBFF";
|
|
7707
|
-
};
|
|
7708
|
-
readonly USDT: {
|
|
7709
|
-
readonly symbol: "USDT";
|
|
7710
|
-
readonly name: "Tether USD";
|
|
7711
|
-
readonly decimals: 6;
|
|
7712
|
-
readonly address: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58";
|
|
7713
|
-
};
|
|
7714
|
-
};
|
|
7440
|
+
nativeToken: Address$1;
|
|
7441
|
+
};
|
|
7442
|
+
type SuiSpokeChainConfig = BaseSpokeChainConfig<'SUI'> & {
|
|
7443
|
+
addresses: {
|
|
7444
|
+
assetManager: string;
|
|
7445
|
+
connection: string;
|
|
7446
|
+
xTokenManager: string;
|
|
7447
|
+
rateLimit: string;
|
|
7448
|
+
testToken: string;
|
|
7715
7449
|
};
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
readonly bnUSD: "0x8428FedC020737a5A2291F46cB1B80613eD71638";
|
|
7728
|
-
readonly supportedTokens: {
|
|
7729
|
-
readonly BNB: {
|
|
7730
|
-
readonly symbol: "BNB";
|
|
7731
|
-
readonly name: "BNB";
|
|
7732
|
-
readonly decimals: 18;
|
|
7733
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
7734
|
-
};
|
|
7735
|
-
readonly bnUSD: {
|
|
7736
|
-
readonly symbol: "bnUSD";
|
|
7737
|
-
readonly name: "bnUSD";
|
|
7738
|
-
readonly decimals: 18;
|
|
7739
|
-
readonly address: "0x8428FedC020737a5A2291F46cB1B80613eD71638";
|
|
7740
|
-
};
|
|
7741
|
-
readonly ETHB: {
|
|
7742
|
-
readonly symbol: "ETHB";
|
|
7743
|
-
readonly name: "Ethereum BSC";
|
|
7744
|
-
readonly decimals: 18;
|
|
7745
|
-
readonly address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8";
|
|
7746
|
-
};
|
|
7747
|
-
readonly BTCB: {
|
|
7748
|
-
readonly symbol: "BTCB";
|
|
7749
|
-
readonly name: "Bitcoin BSC";
|
|
7750
|
-
readonly decimals: 18;
|
|
7751
|
-
readonly address: "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c";
|
|
7752
|
-
};
|
|
7753
|
-
readonly USDC: {
|
|
7754
|
-
readonly symbol: "USDC";
|
|
7755
|
-
readonly name: "USD Coin";
|
|
7756
|
-
readonly decimals: 18;
|
|
7757
|
-
readonly address: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d";
|
|
7758
|
-
};
|
|
7759
|
-
};
|
|
7450
|
+
rpc_url: string;
|
|
7451
|
+
};
|
|
7452
|
+
type InjectiveSpokeChainConfig = BaseSpokeChainConfig<'INJECTIVE'> & {
|
|
7453
|
+
rpcUrl: string;
|
|
7454
|
+
walletAddress: string;
|
|
7455
|
+
addresses: {
|
|
7456
|
+
assetManager: string;
|
|
7457
|
+
connection: string;
|
|
7458
|
+
xTokenManager: string;
|
|
7459
|
+
rateLimit: string;
|
|
7460
|
+
testToken: string;
|
|
7760
7461
|
};
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
readonly symbol: "POL";
|
|
7776
|
-
readonly name: "Polygon";
|
|
7777
|
-
readonly decimals: 18;
|
|
7778
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
7779
|
-
};
|
|
7780
|
-
readonly bnUSD: {
|
|
7781
|
-
readonly symbol: "bnUSD";
|
|
7782
|
-
readonly name: "bnUSD";
|
|
7783
|
-
readonly decimals: 18;
|
|
7784
|
-
readonly address: "0x39E77f86C1B1f3fbAb362A82b49D2E86C09659B4";
|
|
7785
|
-
};
|
|
7786
|
-
readonly USDC: {
|
|
7787
|
-
readonly symbol: "USDC";
|
|
7788
|
-
readonly name: "USD Coin";
|
|
7789
|
-
readonly decimals: 6;
|
|
7790
|
-
readonly address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
|
|
7791
|
-
};
|
|
7792
|
-
};
|
|
7462
|
+
nativeToken: string;
|
|
7463
|
+
prefix: string;
|
|
7464
|
+
gasPrice: string;
|
|
7465
|
+
isBrowser: boolean;
|
|
7466
|
+
networkId: string;
|
|
7467
|
+
network: InjectiveNetworkEnv;
|
|
7468
|
+
};
|
|
7469
|
+
type StellarSpokeChainConfig = BaseSpokeChainConfig<'STELLAR'> & {
|
|
7470
|
+
addresses: {
|
|
7471
|
+
assetManager: string;
|
|
7472
|
+
connection: string;
|
|
7473
|
+
xTokenManager: string;
|
|
7474
|
+
rateLimit: string;
|
|
7475
|
+
testToken: string;
|
|
7793
7476
|
};
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
readonly id: "injective-1";
|
|
7804
|
-
readonly name: "Injective";
|
|
7805
|
-
readonly type: "INJECTIVE";
|
|
7806
|
-
};
|
|
7807
|
-
readonly nativeToken: "inj";
|
|
7808
|
-
readonly bnUSD: "factory/inj1d036ftaatxpkqsu9hja8r24rv3v33chz3appxp/bnUSD";
|
|
7809
|
-
readonly networkId: "injective-1";
|
|
7810
|
-
readonly supportedTokens: {
|
|
7811
|
-
readonly INJ: {
|
|
7812
|
-
readonly symbol: "INJ";
|
|
7813
|
-
readonly name: "Injective";
|
|
7814
|
-
readonly decimals: 18;
|
|
7815
|
-
readonly address: "inj";
|
|
7816
|
-
};
|
|
7817
|
-
readonly bnUSD: {
|
|
7818
|
-
readonly symbol: "bnUSD";
|
|
7819
|
-
readonly name: "bnUSD";
|
|
7820
|
-
readonly decimals: 18;
|
|
7821
|
-
readonly address: "factory/inj1d036ftaatxpkqsu9hja8r24rv3v33chz3appxp/bnUSD";
|
|
7822
|
-
};
|
|
7823
|
-
readonly USDC: {
|
|
7824
|
-
readonly symbol: "USDC";
|
|
7825
|
-
readonly name: "USD Coin";
|
|
7826
|
-
readonly decimals: 6;
|
|
7827
|
-
readonly address: "ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E";
|
|
7828
|
-
};
|
|
7829
|
-
};
|
|
7830
|
-
readonly gasPrice: "500000000inj";
|
|
7831
|
-
readonly network: "Mainnet";
|
|
7832
|
-
readonly prefix: "inj";
|
|
7833
|
-
readonly isBrowser: false;
|
|
7834
|
-
readonly rpcUrl: "https://injective-rpc.publicnode.com:443";
|
|
7835
|
-
readonly walletAddress: "";
|
|
7477
|
+
horizonRpcUrl: HttpUrl;
|
|
7478
|
+
sorobanRpcUrl: HttpUrl;
|
|
7479
|
+
};
|
|
7480
|
+
type IconSpokeChainConfig = BaseSpokeChainConfig<'ICON'> & {
|
|
7481
|
+
addresses: {
|
|
7482
|
+
assetManager: IconAddress;
|
|
7483
|
+
connection: IconAddress;
|
|
7484
|
+
rateLimit: IconAddress;
|
|
7485
|
+
wICX: `cx${string}`;
|
|
7836
7486
|
};
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
readonly bnUSD: {
|
|
7847
|
-
readonly symbol: "bnUSD";
|
|
7848
|
-
readonly name: "bnUSD";
|
|
7849
|
-
readonly decimals: 7;
|
|
7850
|
-
readonly address: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
|
|
7851
|
-
};
|
|
7852
|
-
readonly XLM: {
|
|
7853
|
-
readonly symbol: "XLM";
|
|
7854
|
-
readonly name: "Stellar Lumens";
|
|
7855
|
-
readonly decimals: 7;
|
|
7856
|
-
readonly address: "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
|
|
7857
|
-
};
|
|
7858
|
-
readonly USDC: {
|
|
7859
|
-
readonly symbol: "USDC";
|
|
7860
|
-
readonly name: "USD Coin";
|
|
7861
|
-
readonly decimals: 7;
|
|
7862
|
-
readonly address: "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75";
|
|
7863
|
-
};
|
|
7864
|
-
readonly legacybnUSD: {
|
|
7865
|
-
readonly symbol: "bnUSD";
|
|
7866
|
-
readonly name: "legacybnUSD";
|
|
7867
|
-
readonly decimals: 18;
|
|
7868
|
-
readonly address: "CCT4ZYIYZ3TUO2AWQFEOFGBZ6HQP3GW5TA37CK7CRZVFRDXYTHTYX7KP";
|
|
7869
|
-
};
|
|
7870
|
-
};
|
|
7871
|
-
readonly nativeToken: "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
|
|
7872
|
-
readonly bnUSD: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
|
|
7873
|
-
readonly horizonRpcUrl: "https://horizon.stellar.org";
|
|
7874
|
-
readonly sorobanRpcUrl: "https://rpc.ankr.com/stellar_soroban";
|
|
7875
|
-
readonly chain: {
|
|
7876
|
-
readonly name: "Stellar";
|
|
7877
|
-
readonly id: "stellar";
|
|
7878
|
-
readonly type: "STELLAR";
|
|
7879
|
-
};
|
|
7880
|
-
};
|
|
7881
|
-
readonly sui: {
|
|
7882
|
-
readonly addresses: {
|
|
7883
|
-
readonly connection: "0xf3b1e696a66d02cb776dc15aae73c68bc8f03adcb6ba0ec7f6332d9d90a6a3d2::connectionv3::0x3ee76d13909ac58ae13baab4c9be5a5142818d9a387aed641825e5d4356969bf";
|
|
7884
|
-
readonly assetManager: "0x897f911a4b7691870a1a2513af7e85fdee8de275615c77068fd8b90b8e78c678::asset_manager::0xcb7346339340b7f8dea40fcafb70721dc2fcfa7e8626a89fd954d46c1f928b61";
|
|
7885
|
-
readonly xTokenManager: "";
|
|
7886
|
-
readonly rateLimit: "";
|
|
7887
|
-
readonly testToken: "";
|
|
7888
|
-
};
|
|
7889
|
-
readonly supportedTokens: {
|
|
7890
|
-
readonly SUI: {
|
|
7891
|
-
readonly symbol: "SUI";
|
|
7892
|
-
readonly name: "SUI";
|
|
7893
|
-
readonly decimals: 9;
|
|
7894
|
-
readonly address: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI";
|
|
7895
|
-
};
|
|
7896
|
-
readonly bnUSD: {
|
|
7897
|
-
readonly symbol: "bnUSD";
|
|
7898
|
-
readonly name: "bnUSD";
|
|
7899
|
-
readonly decimals: 9;
|
|
7900
|
-
readonly address: "0xff4de2b2b57dd7611d2812d231a467d007b702a101fd5c7ad3b278257cddb507::bnusd::BNUSD";
|
|
7901
|
-
};
|
|
7902
|
-
readonly USDC: {
|
|
7903
|
-
readonly symbol: "USDC";
|
|
7904
|
-
readonly name: "USD Coin";
|
|
7905
|
-
readonly decimals: 6;
|
|
7906
|
-
readonly address: "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC";
|
|
7907
|
-
};
|
|
7908
|
-
readonly legacybnUSD: {
|
|
7909
|
-
readonly symbol: "bnUSD";
|
|
7910
|
-
readonly name: "legacybnUSD";
|
|
7911
|
-
readonly decimals: 9;
|
|
7912
|
-
readonly address: "0x03917a812fe4a6d6bc779c5ab53f8a80ba741f8af04121193fc44e0f662e2ceb::balanced_dollar::BALANCED_DOLLAR";
|
|
7913
|
-
};
|
|
7914
|
-
readonly afSUI: {
|
|
7915
|
-
readonly symbol: "afSUI";
|
|
7916
|
-
readonly name: "Aftermath Staked Sui";
|
|
7917
|
-
readonly decimals: 9;
|
|
7918
|
-
readonly address: "0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::AFSUI";
|
|
7919
|
-
};
|
|
7920
|
-
readonly mSUI: {
|
|
7921
|
-
readonly symbol: "mSUI";
|
|
7922
|
-
readonly name: "Mirai Staked SUI";
|
|
7923
|
-
readonly decimals: 9;
|
|
7924
|
-
readonly address: "0x922d15d7f55c13fd790f6e54397470ec592caa2b508df292a2e8553f3d3b274f::msui::MSUI";
|
|
7925
|
-
};
|
|
7926
|
-
readonly haSUI: {
|
|
7927
|
-
readonly symbol: "haSUI";
|
|
7928
|
-
readonly name: "haSUI";
|
|
7929
|
-
readonly decimals: 9;
|
|
7930
|
-
readonly address: "0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::hasui::HASUI";
|
|
7931
|
-
};
|
|
7932
|
-
readonly vSUI: {
|
|
7933
|
-
readonly symbol: "vSUI";
|
|
7934
|
-
readonly name: "Volo Staked SUI";
|
|
7935
|
-
readonly decimals: 9;
|
|
7936
|
-
readonly address: "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT";
|
|
7937
|
-
};
|
|
7938
|
-
readonly yapSUI: {
|
|
7939
|
-
readonly symbol: "yapSUI";
|
|
7940
|
-
readonly name: "Yap Staked SUI";
|
|
7941
|
-
readonly decimals: 9;
|
|
7942
|
-
readonly address: "0x83f1bb8c91ecd1fd313344058b0eed94d63c54e41d8d1ae5bff1353443517d65::yap_sui::YAP_SUI";
|
|
7943
|
-
};
|
|
7944
|
-
readonly trevinSUI: {
|
|
7945
|
-
readonly symbol: "trevinSUI";
|
|
7946
|
-
readonly name: "Trevin Staked SUI";
|
|
7947
|
-
readonly decimals: 9;
|
|
7948
|
-
readonly address: "0x502867b177303bf1bf226245fcdd3403c177e78d175a55a56c0602c7ff51c7fa::trevin_sui::TREVIN_SUI";
|
|
7949
|
-
};
|
|
7950
|
-
};
|
|
7951
|
-
readonly nativeToken: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI";
|
|
7952
|
-
readonly bnUSD: "0xff4de2b2b57dd7611d2812d231a467d007b702a101fd5c7ad3b278257cddb507::bnusd::BNUSD";
|
|
7953
|
-
readonly rpc_url: "https://fullnode.mainnet.sui.io:443";
|
|
7954
|
-
readonly chain: {
|
|
7955
|
-
readonly name: "Sui";
|
|
7956
|
-
readonly id: "sui";
|
|
7957
|
-
readonly type: "SUI";
|
|
7958
|
-
};
|
|
7959
|
-
};
|
|
7960
|
-
readonly "0x1.icon": {
|
|
7961
|
-
readonly addresses: {
|
|
7962
|
-
readonly assetManager: "cx1be33c283c7dc7617181d1b21a6a2309e71b1ee7";
|
|
7963
|
-
readonly connection: "cxe5cdf3b0f26967b0efc72d470d57bbf534268f94";
|
|
7964
|
-
readonly rateLimit: "cxbbdcea9e6757023a046067ba8daa3c4c50304358";
|
|
7965
|
-
readonly wICX: "cx3975b43d260fb8ec802cef6e60c2f4d07486f11d";
|
|
7966
|
-
};
|
|
7967
|
-
readonly chain: {
|
|
7968
|
-
readonly id: "0x1.icon";
|
|
7969
|
-
readonly name: "ICON Mainnet";
|
|
7970
|
-
readonly type: "ICON";
|
|
7971
|
-
};
|
|
7972
|
-
readonly supportedTokens: {
|
|
7973
|
-
readonly ICX: {
|
|
7974
|
-
readonly symbol: "ICX";
|
|
7975
|
-
readonly name: "ICON";
|
|
7976
|
-
readonly decimals: 18;
|
|
7977
|
-
readonly address: "cx0000000000000000000000000000000000000000";
|
|
7978
|
-
};
|
|
7979
|
-
readonly wICX: {
|
|
7980
|
-
readonly symbol: "wICX";
|
|
7981
|
-
readonly name: "Wrapped ICX";
|
|
7982
|
-
readonly decimals: 18;
|
|
7983
|
-
readonly address: "cx3975b43d260fb8ec802cef6e60c2f4d07486f11d";
|
|
7984
|
-
};
|
|
7985
|
-
readonly bnUSD: {
|
|
7986
|
-
readonly symbol: "bnUSD";
|
|
7987
|
-
readonly name: "bnUSD";
|
|
7988
|
-
readonly decimals: 18;
|
|
7989
|
-
readonly address: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
7990
|
-
};
|
|
7991
|
-
readonly BALN: {
|
|
7992
|
-
readonly symbol: "BALN";
|
|
7993
|
-
readonly name: "BALN";
|
|
7994
|
-
readonly decimals: 18;
|
|
7995
|
-
readonly address: "cxf61cd5a45dc9f91c15aa65831a30a90d59a09619";
|
|
7996
|
-
};
|
|
7997
|
-
};
|
|
7998
|
-
readonly nativeToken: "cx0000000000000000000000000000000000000000";
|
|
7999
|
-
readonly bnUSD: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
8000
|
-
readonly nid: "0x1";
|
|
7487
|
+
nid: Hex$1;
|
|
7488
|
+
};
|
|
7489
|
+
type SolanaChainConfig = BaseSpokeChainConfig<'SOLANA'> & {
|
|
7490
|
+
addresses: {
|
|
7491
|
+
assetManager: string;
|
|
7492
|
+
connection: string;
|
|
7493
|
+
xTokenManager: string;
|
|
7494
|
+
rateLimit: string;
|
|
7495
|
+
testToken: string;
|
|
8001
7496
|
};
|
|
7497
|
+
chain: SpokeChainInfo<'SOLANA'>;
|
|
7498
|
+
rpcUrl: string;
|
|
7499
|
+
walletAddress: string;
|
|
7500
|
+
nativeToken: string;
|
|
7501
|
+
gasPrice: string;
|
|
8002
7502
|
};
|
|
8003
|
-
|
|
8004
|
-
type
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
7503
|
+
type HubChainConfig = EvmHubChainConfig;
|
|
7504
|
+
type SpokeChainConfig = EvmSpokeChainConfig | SonicSpokeChainConfig | InjectiveSpokeChainConfig | IconSpokeChainConfig | SuiSpokeChainConfig | StellarSpokeChainConfig | SolanaChainConfig;
|
|
7505
|
+
type EvmContractCall = {
|
|
7506
|
+
address: Address$1;
|
|
7507
|
+
value: bigint;
|
|
7508
|
+
data: Hex$1;
|
|
7509
|
+
};
|
|
7510
|
+
type EvmTransferToHubParams = {
|
|
7511
|
+
token: Address$1;
|
|
7512
|
+
recipient: Address$1;
|
|
7513
|
+
amount: bigint;
|
|
7514
|
+
data: Hex$1;
|
|
7515
|
+
};
|
|
7516
|
+
type EvmTransferParams = {
|
|
7517
|
+
fromToken: Address$1;
|
|
7518
|
+
dstChainId: SpokeChainId;
|
|
7519
|
+
toToken: Hex$1;
|
|
7520
|
+
to: Hex$1;
|
|
7521
|
+
amount: bigint;
|
|
7522
|
+
data: Hex$1;
|
|
7523
|
+
};
|
|
7524
|
+
type TokenInfo = {
|
|
7525
|
+
decimals: number;
|
|
7526
|
+
depositFee: bigint;
|
|
7527
|
+
withdrawalFee: bigint;
|
|
7528
|
+
maxDeposit: bigint;
|
|
7529
|
+
isSupported: boolean;
|
|
7530
|
+
};
|
|
7531
|
+
type VaultReserves = {
|
|
7532
|
+
tokens: readonly Address$1[];
|
|
7533
|
+
balances: readonly bigint[];
|
|
7534
|
+
};
|
|
7535
|
+
/**
|
|
7536
|
+
* Fee type for transaction fees.
|
|
7537
|
+
* @property address - The address to which the fee is sent.
|
|
7538
|
+
* @property amount - Optional fixed fee amount in wei.
|
|
7539
|
+
*/
|
|
7540
|
+
type PartnerFeeAmount = {
|
|
7541
|
+
address: Address$1;
|
|
7542
|
+
amount: bigint;
|
|
7543
|
+
};
|
|
7544
|
+
/**
|
|
7545
|
+
* Fee type for transaction fees.
|
|
7546
|
+
* @property address - The address to which the fee is sent.
|
|
7547
|
+
* @property percentage - Optional fee percentage in basis points (e.g., 100 = 1%). Maximum allowed is 100 (1%).
|
|
7548
|
+
*/
|
|
7549
|
+
type PartnerFeePercentage = {
|
|
7550
|
+
address: Address$1;
|
|
7551
|
+
percentage: number;
|
|
7552
|
+
};
|
|
7553
|
+
/**
|
|
7554
|
+
* Fee type for transaction fees.
|
|
7555
|
+
* @property address - The address to which the fee is sent.
|
|
7556
|
+
* @property percentage - Optional fee percentage in basis points (e.g., 100 = 1%). Maximum allowed is 100 (1%).
|
|
7557
|
+
* @property amount - Optional fixed fee amount in wei. If both percentage and amount are provided, amount will be used.
|
|
7558
|
+
*/
|
|
7559
|
+
type PartnerFee = PartnerFeeAmount | PartnerFeePercentage;
|
|
7560
|
+
type PartnerFeeConfig = {
|
|
7561
|
+
partnerFee: PartnerFee | undefined;
|
|
7562
|
+
};
|
|
7563
|
+
type FeeAmount = {
|
|
7564
|
+
feeAmount: bigint;
|
|
7565
|
+
};
|
|
7566
|
+
type EvmTxReturnType<T extends boolean> = T extends true ? TransactionReceipt : Hex$1;
|
|
7567
|
+
type IconAddress = `hx${string}` | `cx${string}`;
|
|
7568
|
+
type IconContractAddress = `cx${string}`;
|
|
7569
|
+
type IcxTokenType = (typeof spokeChainConfig)[typeof ICON_MAINNET_CHAIN_ID]['addresses']['wICX'] | (typeof spokeChainConfig)[typeof ICON_MAINNET_CHAIN_ID]['nativeToken'];
|
|
7570
|
+
type Result<T, E = Error | unknown> = {
|
|
7571
|
+
ok: true;
|
|
7572
|
+
value: T;
|
|
7573
|
+
} | {
|
|
7574
|
+
ok: false;
|
|
7575
|
+
error: E;
|
|
7576
|
+
};
|
|
7577
|
+
type HttpPrefixedUrl = `http${string}`;
|
|
7578
|
+
type SpokeDepositParams = EvmSpokeDepositParams | InjectiveSpokeDepositParams | IconSpokeDepositParams;
|
|
7579
|
+
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;
|
|
7580
|
+
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;
|
|
7581
|
+
type HttpUrl = `http://${string}` | `https://${string}`;
|
|
7582
|
+
type SolverConfig = {
|
|
7583
|
+
intentsContract: Address$1;
|
|
7584
|
+
solverApiEndpoint: HttpUrl;
|
|
7585
|
+
};
|
|
7586
|
+
type SolverConfigParams = Prettify<SolverConfig & Optional<PartnerFeeConfig, 'partnerFee'>> | Optional<PartnerFeeConfig, 'partnerFee'>;
|
|
7587
|
+
type QuoteType = 'exact_input' | 'exact_output';
|
|
7588
|
+
type SolverIntentQuoteRequest = {
|
|
7589
|
+
token_src: string;
|
|
7590
|
+
token_src_blockchain_id: SpokeChainId;
|
|
7591
|
+
token_dst: string;
|
|
7592
|
+
token_dst_blockchain_id: SpokeChainId;
|
|
7593
|
+
amount: bigint;
|
|
7594
|
+
quote_type: QuoteType;
|
|
7595
|
+
};
|
|
7596
|
+
type SolverIntentQuoteResponseRaw = {
|
|
7597
|
+
quoted_amount: string;
|
|
7598
|
+
};
|
|
7599
|
+
type SolverIntentQuoteResponse = {
|
|
7600
|
+
quoted_amount: bigint;
|
|
7601
|
+
};
|
|
7602
|
+
type SolverErrorResponse = {
|
|
7603
|
+
detail: {
|
|
7604
|
+
code: SolverIntentErrorCode;
|
|
7605
|
+
message: string;
|
|
8069
7606
|
};
|
|
8070
7607
|
};
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
decimal: number;
|
|
8074
|
-
vault: Address;
|
|
8075
|
-
symbol: string;
|
|
8076
|
-
name: string;
|
|
8077
|
-
}>>;
|
|
8078
|
-
declare const DEFAULT_RELAYER_API_ENDPOINT = "https://xcall-relay.nw.iconblockchain.xyz";
|
|
8079
|
-
declare const getSolverConfig: (chainId: HubChainId) => SolverConfig;
|
|
8080
|
-
declare const getSupportedSolverTokens: (chainId: SpokeChainId) => readonly Token[];
|
|
8081
|
-
declare const isSolverSupportedToken: (chainId: SpokeChainId, token: string) => boolean;
|
|
8082
|
-
declare const getMoneyMarketConfig: (chainId: HubChainId) => MoneyMarketConfig;
|
|
8083
|
-
declare const moneyMarketSupportedTokens: {
|
|
8084
|
-
readonly "0xa86a.avax": readonly [{
|
|
8085
|
-
readonly symbol: "AVAX";
|
|
8086
|
-
readonly name: "Avalanche";
|
|
8087
|
-
readonly decimals: 18;
|
|
8088
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8089
|
-
}, {
|
|
8090
|
-
readonly symbol: "USDT";
|
|
8091
|
-
readonly name: "Tether USD";
|
|
8092
|
-
readonly decimals: 6;
|
|
8093
|
-
readonly address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7";
|
|
8094
|
-
}, {
|
|
8095
|
-
readonly symbol: "USDC";
|
|
8096
|
-
readonly name: "USD Coin";
|
|
8097
|
-
readonly decimals: 6;
|
|
8098
|
-
readonly address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
|
|
8099
|
-
}, {
|
|
8100
|
-
readonly symbol: "bnUSD";
|
|
8101
|
-
readonly name: "bnUSD";
|
|
8102
|
-
readonly decimals: 18;
|
|
8103
|
-
readonly address: "0x6958a4CBFe11406E2a1c1d3a71A1971aD8B3b92F";
|
|
8104
|
-
}];
|
|
8105
|
-
readonly "0xa4b1.arbitrum": readonly [{
|
|
8106
|
-
readonly symbol: "ETH";
|
|
8107
|
-
readonly name: "Ethereum";
|
|
8108
|
-
readonly decimals: 18;
|
|
8109
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8110
|
-
}, {
|
|
8111
|
-
readonly symbol: "bnUSD";
|
|
8112
|
-
readonly name: "bnUSD";
|
|
8113
|
-
readonly decimals: 18;
|
|
8114
|
-
readonly address: "0xA256dd181C3f6E5eC68C6869f5D50a712d47212e";
|
|
8115
|
-
}, {
|
|
8116
|
-
readonly symbol: "WBTC";
|
|
8117
|
-
readonly name: "Wrapped BTC";
|
|
8118
|
-
readonly decimals: 8;
|
|
8119
|
-
readonly address: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f";
|
|
8120
|
-
}, {
|
|
8121
|
-
readonly symbol: "tBTC";
|
|
8122
|
-
readonly name: "Arbitrum tBTC v2";
|
|
8123
|
-
readonly decimals: 18;
|
|
8124
|
-
readonly address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40";
|
|
8125
|
-
}, {
|
|
8126
|
-
readonly symbol: "USDT";
|
|
8127
|
-
readonly name: "TetherToken";
|
|
8128
|
-
readonly decimals: 6;
|
|
8129
|
-
readonly address: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9";
|
|
8130
|
-
}, {
|
|
8131
|
-
readonly symbol: "USDC";
|
|
8132
|
-
readonly name: "USD Coin (USDC)";
|
|
8133
|
-
readonly decimals: 6;
|
|
8134
|
-
readonly address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
8135
|
-
}];
|
|
8136
|
-
readonly "0x2105.base": readonly [{
|
|
8137
|
-
readonly symbol: "ETH";
|
|
8138
|
-
readonly name: "Ethereum";
|
|
8139
|
-
readonly decimals: 18;
|
|
8140
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8141
|
-
}, {
|
|
8142
|
-
readonly symbol: "bnUSD";
|
|
8143
|
-
readonly name: "bnUSD";
|
|
8144
|
-
readonly decimals: 18;
|
|
8145
|
-
readonly address: "0xAcfab3F31C0a18559D78556BBf297EC29c6cf8aa";
|
|
8146
|
-
}, {
|
|
8147
|
-
readonly symbol: "USDC";
|
|
8148
|
-
readonly name: "USD Coin";
|
|
8149
|
-
readonly decimals: 6;
|
|
8150
|
-
readonly address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
8151
|
-
}, {
|
|
8152
|
-
readonly symbol: "cbBTC";
|
|
8153
|
-
readonly name: "Coinbase Wrapped BTC";
|
|
8154
|
-
readonly decimals: 8;
|
|
8155
|
-
readonly address: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
|
|
8156
|
-
}];
|
|
8157
|
-
readonly "0xa.optimism": readonly [{
|
|
8158
|
-
readonly symbol: "ETH";
|
|
8159
|
-
readonly name: "Ethereum";
|
|
8160
|
-
readonly decimals: 18;
|
|
8161
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8162
|
-
}, {
|
|
8163
|
-
readonly symbol: "bnUSD";
|
|
8164
|
-
readonly name: "bnUSD";
|
|
8165
|
-
readonly decimals: 18;
|
|
8166
|
-
readonly address: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
|
|
8167
|
-
}, {
|
|
8168
|
-
readonly symbol: "USDC";
|
|
8169
|
-
readonly name: "USD Coin";
|
|
8170
|
-
readonly decimals: 6;
|
|
8171
|
-
readonly address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
|
|
8172
|
-
}, {
|
|
8173
|
-
readonly symbol: "USDT";
|
|
8174
|
-
readonly name: "Tether USD";
|
|
8175
|
-
readonly decimals: 6;
|
|
8176
|
-
readonly address: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58";
|
|
8177
|
-
}];
|
|
8178
|
-
readonly "0x89.polygon": readonly [{
|
|
8179
|
-
readonly symbol: "POL";
|
|
8180
|
-
readonly name: "Polygon";
|
|
8181
|
-
readonly decimals: 18;
|
|
8182
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8183
|
-
}, {
|
|
8184
|
-
readonly symbol: "bnUSD";
|
|
8185
|
-
readonly name: "bnUSD";
|
|
8186
|
-
readonly decimals: 18;
|
|
8187
|
-
readonly address: "0x39E77f86C1B1f3fbAb362A82b49D2E86C09659B4";
|
|
8188
|
-
}, {
|
|
8189
|
-
readonly symbol: "USDC";
|
|
8190
|
-
readonly name: "USD Coin";
|
|
8191
|
-
readonly decimals: 6;
|
|
8192
|
-
readonly address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
|
|
8193
|
-
}];
|
|
8194
|
-
readonly "0x38.bsc": readonly [{
|
|
8195
|
-
readonly symbol: "BNB";
|
|
8196
|
-
readonly name: "BNB";
|
|
8197
|
-
readonly decimals: 18;
|
|
8198
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8199
|
-
}, {
|
|
8200
|
-
readonly symbol: "ETHB";
|
|
8201
|
-
readonly name: "Ethereum BSC";
|
|
8202
|
-
readonly decimals: 18;
|
|
8203
|
-
readonly address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8";
|
|
8204
|
-
}, {
|
|
8205
|
-
readonly symbol: "BTCB";
|
|
8206
|
-
readonly name: "Bitcoin BSC";
|
|
8207
|
-
readonly decimals: 18;
|
|
8208
|
-
readonly address: "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c";
|
|
8209
|
-
}, {
|
|
8210
|
-
readonly symbol: "bnUSD";
|
|
8211
|
-
readonly name: "bnUSD";
|
|
8212
|
-
readonly decimals: 18;
|
|
8213
|
-
readonly address: "0x8428FedC020737a5A2291F46cB1B80613eD71638";
|
|
8214
|
-
}];
|
|
8215
|
-
readonly solana: readonly [{
|
|
8216
|
-
readonly symbol: "SOL";
|
|
8217
|
-
readonly name: "Solana";
|
|
8218
|
-
readonly decimals: 9;
|
|
8219
|
-
readonly address: "11111111111111111111111111111111";
|
|
8220
|
-
}, {
|
|
8221
|
-
readonly symbol: "bnUSD";
|
|
8222
|
-
readonly name: "bnUSD";
|
|
8223
|
-
readonly decimals: 9;
|
|
8224
|
-
readonly address: "3rSPCLNEF7Quw4wX8S1NyKivELoyij8eYA2gJwBgt4V5";
|
|
8225
|
-
}, {
|
|
8226
|
-
readonly symbol: "USDC";
|
|
8227
|
-
readonly name: "USD Coin";
|
|
8228
|
-
readonly decimals: 6;
|
|
8229
|
-
readonly address: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
8230
|
-
}];
|
|
8231
|
-
readonly "0x1.icon": readonly [{
|
|
8232
|
-
readonly symbol: "bnUSD";
|
|
8233
|
-
readonly name: "bnUSD";
|
|
8234
|
-
readonly decimals: 18;
|
|
8235
|
-
readonly address: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
8236
|
-
}];
|
|
8237
|
-
readonly stellar: readonly [{
|
|
8238
|
-
readonly symbol: "XLM";
|
|
8239
|
-
readonly name: "Stellar Lumens";
|
|
8240
|
-
readonly decimals: 7;
|
|
8241
|
-
readonly address: "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
|
|
8242
|
-
}, {
|
|
8243
|
-
readonly symbol: "bnUSD";
|
|
8244
|
-
readonly name: "bnUSD";
|
|
8245
|
-
readonly decimals: 7;
|
|
8246
|
-
readonly address: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
|
|
8247
|
-
}];
|
|
8248
|
-
readonly sui: readonly [{
|
|
8249
|
-
readonly symbol: "SUI";
|
|
8250
|
-
readonly name: "SUI";
|
|
8251
|
-
readonly decimals: 9;
|
|
8252
|
-
readonly address: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI";
|
|
8253
|
-
}, {
|
|
8254
|
-
readonly symbol: "bnUSD";
|
|
8255
|
-
readonly name: "bnUSD";
|
|
8256
|
-
readonly decimals: 9;
|
|
8257
|
-
readonly address: "0xff4de2b2b57dd7611d2812d231a467d007b702a101fd5c7ad3b278257cddb507::bnusd::BNUSD";
|
|
8258
|
-
}, {
|
|
8259
|
-
readonly symbol: "USDC";
|
|
8260
|
-
readonly name: "USD Coin";
|
|
8261
|
-
readonly decimals: 6;
|
|
8262
|
-
readonly address: "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC";
|
|
8263
|
-
}];
|
|
8264
|
-
readonly "injective-1": readonly [{
|
|
8265
|
-
readonly symbol: "INJ";
|
|
8266
|
-
readonly name: "Injective";
|
|
8267
|
-
readonly decimals: 18;
|
|
8268
|
-
readonly address: "inj";
|
|
8269
|
-
}, {
|
|
8270
|
-
readonly symbol: "bnUSD";
|
|
8271
|
-
readonly name: "bnUSD";
|
|
8272
|
-
readonly decimals: 18;
|
|
8273
|
-
readonly address: "factory/inj1d036ftaatxpkqsu9hja8r24rv3v33chz3appxp/bnUSD";
|
|
8274
|
-
}, {
|
|
8275
|
-
readonly symbol: "USDC";
|
|
8276
|
-
readonly name: "USD Coin";
|
|
8277
|
-
readonly decimals: 6;
|
|
8278
|
-
readonly address: "ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E";
|
|
8279
|
-
}];
|
|
8280
|
-
readonly nibiru: readonly [];
|
|
8281
|
-
readonly sonic: readonly [{
|
|
8282
|
-
readonly symbol: "Sonic";
|
|
8283
|
-
readonly name: "Sonic";
|
|
8284
|
-
readonly decimals: 18;
|
|
8285
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8286
|
-
}, {
|
|
8287
|
-
readonly symbol: "WETH";
|
|
8288
|
-
readonly name: "Wrapped Ether";
|
|
8289
|
-
readonly decimals: 18;
|
|
8290
|
-
readonly address: "0x50c42dEAcD8Fc9773493ED674b675bE577f2634b";
|
|
8291
|
-
}, {
|
|
8292
|
-
readonly symbol: "USDC";
|
|
8293
|
-
readonly name: "USD Coin";
|
|
8294
|
-
readonly decimals: 6;
|
|
8295
|
-
readonly address: "0x29219dd400f2Bf60E5a23d13Be72B486D4038894";
|
|
8296
|
-
}, {
|
|
8297
|
-
readonly symbol: "USDT";
|
|
8298
|
-
readonly name: "Tether USD";
|
|
8299
|
-
readonly decimals: 6;
|
|
8300
|
-
readonly address: "0x6047828dc181963ba44974801FF68e538dA5eaF9";
|
|
8301
|
-
}, {
|
|
8302
|
-
readonly symbol: "wSonic";
|
|
8303
|
-
readonly name: "Wrapped Sonic";
|
|
8304
|
-
readonly decimals: 18;
|
|
8305
|
-
readonly address: "0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38";
|
|
8306
|
-
}];
|
|
7608
|
+
type SolverExecutionRequest = {
|
|
7609
|
+
intent_tx_hash: Hex$1;
|
|
8307
7610
|
};
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
readonly legacybnUSD: {
|
|
8312
|
-
readonly symbol: "bnUSD";
|
|
8313
|
-
readonly name: "bnUSD";
|
|
8314
|
-
readonly decimals: 18;
|
|
8315
|
-
readonly address: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
8316
|
-
};
|
|
8317
|
-
readonly newbnUSD: "0xe801ca34e19abcbfea12025378d19c4fbe250131";
|
|
8318
|
-
};
|
|
8319
|
-
readonly sui: {
|
|
8320
|
-
readonly legacybnUSD: {
|
|
8321
|
-
readonly symbol: "bnUSD";
|
|
8322
|
-
readonly name: "legacybnUSD";
|
|
8323
|
-
readonly decimals: 9;
|
|
8324
|
-
readonly address: "0x03917a812fe4a6d6bc779c5ab53f8a80ba741f8af04121193fc44e0f662e2ceb::balanced_dollar::BALANCED_DOLLAR";
|
|
8325
|
-
};
|
|
8326
|
-
readonly newbnUSD: "0xe801ca34e19abcbfea12025378d19c4fbe250131";
|
|
8327
|
-
};
|
|
8328
|
-
readonly stellar: {
|
|
8329
|
-
readonly legacybnUSD: {
|
|
8330
|
-
readonly symbol: "bnUSD";
|
|
8331
|
-
readonly name: "legacybnUSD";
|
|
8332
|
-
readonly decimals: 18;
|
|
8333
|
-
readonly address: "CCT4ZYIYZ3TUO2AWQFEOFGBZ6HQP3GW5TA37CK7CRZVFRDXYTHTYX7KP";
|
|
8334
|
-
};
|
|
8335
|
-
readonly newbnUSD: "0xe801ca34e19abcbfea12025378d19c4fbe250131";
|
|
8336
|
-
};
|
|
8337
|
-
};
|
|
8338
|
-
readonly ICX: {
|
|
8339
|
-
readonly "0x1.icon": {
|
|
8340
|
-
readonly icx: "cx0000000000000000000000000000000000000000";
|
|
8341
|
-
readonly wICX: "cx3975b43d260fb8ec802cef6e60c2f4d07486f11d";
|
|
8342
|
-
};
|
|
8343
|
-
};
|
|
8344
|
-
};
|
|
8345
|
-
declare const isMoneyMarketSupportedToken: (chainId: SpokeChainId, token: string) => boolean;
|
|
8346
|
-
declare const getSupportedMoneyMarketTokens: (chainId: SpokeChainId) => readonly Token[];
|
|
8347
|
-
declare const hubVaultsAddressSet: Set<`0x${string}`>;
|
|
8348
|
-
declare const moneyMarketReserveHubAssetsSet: Set<`0x${string}`>;
|
|
8349
|
-
declare const isMoneyMarketReserveHubAsset: (hubAsset: Address) => boolean;
|
|
8350
|
-
declare const moneyMarketReserveAssets: readonly [...("0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3eeb80a162c57624b3ff80313fe69f5203e" | "0xc6c85287a8b173a509c2f198bb719a8a5a2d0c68" | "0x208ed38f4783328aa9ebfec360d32e7520a9b779" | "0xe801ca34e19abcbfea12025378d19c4fbe250131" | "0xabbb91c0617090f0028bdc27597cd0d038f3a833" | "0xbdf1f453fcb61424011bbddcb96cfdb30f3fe876" | "0x21685e341de7844135329914be6bd8d16982d834" | "0x14238d267557e9d799016ad635b53cd15935d290" | "0x40cd41b35db9e5109ae7e54b44de8625db320e6b" | "0x4effb5813271699683c25c734f4dabc45b363709" | "0x7a1a5555842ad2d0ed274d09b5c4406a95799d5d" | "0xdc5b4b00f98347e95b9f94911213dab4c687e1e3" | "0x1f22279c89b213944b7ea41dacb0a868ddcdfd13" | "0x6bc8c37cba91f76e68c9e6d689a9c21e4d32079b" | "0xdea692287e2ce8cb08fa52917be0f16b1dacdc87")[], `0x${string}`];
|
|
8351
|
-
declare const isMoneyMarketReserveAsset: (asset: Address) => boolean;
|
|
8352
|
-
declare const originalAssetTohubAssetMap: Map<SpokeChainId, Map<OriginalAssetAddress, HubAssetInfo>>;
|
|
8353
|
-
declare const hubAssetToOriginalAssetMap: Map<SpokeChainId, Map<Address, OriginalAssetAddress>>;
|
|
8354
|
-
declare const chainIdToHubAssetsMap: Map<SpokeChainId, Map<Address, HubAssetInfo>>;
|
|
8355
|
-
declare const supportedHubAssets: Set<Address>;
|
|
8356
|
-
declare const spokeChainIdsSet: Set<"0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "injective-1" | "sui" | "solana" | "0x1.icon" | "stellar">;
|
|
8357
|
-
declare const getHubAssetInfo: (chainId: SpokeChainId, asset: OriginalAssetAddress) => HubAssetInfo | undefined;
|
|
8358
|
-
declare const isValidOriginalAssetAddress: (chainId: SpokeChainId, asset: OriginalAssetAddress) => boolean;
|
|
8359
|
-
declare const getOriginalAssetAddress: (chainId: SpokeChainId, hubAsset: Address) => OriginalAssetAddress | undefined;
|
|
8360
|
-
declare const isValidHubAsset: (hubAsset: Address) => boolean;
|
|
8361
|
-
declare const isValidChainHubAsset: (chainId: SpokeChainId, hubAsset: Address) => boolean;
|
|
8362
|
-
declare const isValidSpokeChainId: (chainId: SpokeChainId) => boolean;
|
|
8363
|
-
declare const isValidIntentRelayChainId: (chainId: bigint) => boolean;
|
|
8364
|
-
declare const supportedHubChains: HubChainId[];
|
|
8365
|
-
declare const supportedSpokeChains: SpokeChainId[];
|
|
8366
|
-
declare const intentRelayChainIdToSpokeChainIdMap: Map<IntentRelayChainId, SpokeChainId>;
|
|
8367
|
-
declare const supportedTokensPerChain: Map<SpokeChainId, readonly Token[]>;
|
|
8368
|
-
declare const getSpokeChainIdFromIntentRelayChainId: (intentRelayChainId: IntentRelayChainId) => SpokeChainId;
|
|
8369
|
-
declare const isNativeToken: (chainId: SpokeChainId, token: Token | string) => boolean;
|
|
8370
|
-
|
|
8371
|
-
type bnUSDLegacySpokeChainId = typeof ICON_MAINNET_CHAIN_ID | typeof SUI_MAINNET_CHAIN_ID | typeof STELLAR_MAINNET_CHAIN_ID;
|
|
8372
|
-
type bnUSDLegacyMigrationProviders = IconSpokeProvider | SuiSpokeProvider | StellarSpokeProvider;
|
|
8373
|
-
type bnUSDLegacyAddress = (typeof migrationConfig)['bnUSD'][typeof ICON_MAINNET_CHAIN_ID]['legacybnUSD']['address'] | (typeof migrationConfig)['bnUSD'][typeof SUI_MAINNET_CHAIN_ID]['legacybnUSD']['address'] | (typeof migrationConfig)['bnUSD'][typeof STELLAR_MAINNET_CHAIN_ID]['legacybnUSD']['address'];
|
|
8374
|
-
type IntentRelayChainId = (typeof INTENT_RELAY_CHAIN_IDS)[keyof typeof INTENT_RELAY_CHAIN_IDS];
|
|
8375
|
-
type EvmChainId = (typeof EVM_CHAIN_IDS)[number];
|
|
8376
|
-
type EvmSpokeChainId = (typeof EVM_SPOKE_CHAIN_IDS)[number];
|
|
8377
|
-
type BaseSpokeChainInfo<T extends ChainType> = {
|
|
8378
|
-
name: string;
|
|
8379
|
-
id: GetSpokeChainIdType<T>;
|
|
8380
|
-
type: T;
|
|
8381
|
-
};
|
|
8382
|
-
type SpokeChainInfo<T extends ChainType> = BaseSpokeChainInfo<T>;
|
|
8383
|
-
type HubChainInfo<T extends ChainType> = {
|
|
8384
|
-
name: string;
|
|
8385
|
-
id: HubChainId;
|
|
8386
|
-
type: T;
|
|
8387
|
-
};
|
|
8388
|
-
type GetSpokeChainIdType<T extends ChainType> = T extends 'EVM' ? EvmSpokeChainId : SpokeChainId;
|
|
8389
|
-
type AssetInfo = {
|
|
8390
|
-
chainId: bigint;
|
|
8391
|
-
spokeAddress: `0x${string}`;
|
|
8392
|
-
};
|
|
8393
|
-
type HubAssetInfo = {
|
|
8394
|
-
asset: Address$1;
|
|
8395
|
-
decimal: number;
|
|
8396
|
-
vault: Address$1;
|
|
8397
|
-
};
|
|
8398
|
-
type BaseSpokeChainConfig<T extends ChainType> = {
|
|
8399
|
-
chain: SpokeChainInfo<T>;
|
|
8400
|
-
addresses: {
|
|
8401
|
-
[key: string]: Address$1 | string | Uint8Array;
|
|
8402
|
-
};
|
|
8403
|
-
supportedTokens: Record<string, Token>;
|
|
8404
|
-
nativeToken: Address$1 | string;
|
|
8405
|
-
bnUSD: Address$1 | string;
|
|
8406
|
-
};
|
|
8407
|
-
type BaseHubChainConfig<T extends ChainType> = {
|
|
8408
|
-
chain: HubChainInfo<T>;
|
|
8409
|
-
addresses: {
|
|
8410
|
-
[key: string]: Address$1 | string | Uint8Array;
|
|
8411
|
-
};
|
|
8412
|
-
supportedTokens: Token[];
|
|
8413
|
-
nativeToken: Address$1 | string;
|
|
8414
|
-
};
|
|
8415
|
-
type EvmHubChainConfig = BaseHubChainConfig<'EVM'> & {
|
|
8416
|
-
addresses: {
|
|
8417
|
-
assetManager: Address$1;
|
|
8418
|
-
hubWallet: Address$1;
|
|
8419
|
-
xTokenManager: Address$1;
|
|
8420
|
-
icxMigration: Address$1;
|
|
8421
|
-
balnSwap: Address$1;
|
|
8422
|
-
sodaToken: Address$1;
|
|
8423
|
-
};
|
|
8424
|
-
nativeToken: Address$1;
|
|
8425
|
-
};
|
|
8426
|
-
type RelayerApiConfig = {
|
|
8427
|
-
relayerApiEndpoint: HttpUrl;
|
|
8428
|
-
};
|
|
8429
|
-
type MoneyMarketConfig = {
|
|
8430
|
-
uiPoolDataProvider: Address$1;
|
|
8431
|
-
lendingPool: Address$1;
|
|
8432
|
-
poolAddressesProvider: Address$1;
|
|
8433
|
-
bnUSD: Address$1;
|
|
8434
|
-
bnUSDVault: Address$1;
|
|
8435
|
-
};
|
|
8436
|
-
type MoneyMarketServiceConfig = Prettify<MoneyMarketConfig & PartnerFeeConfig & RelayerApiConfig>;
|
|
8437
|
-
type SolverServiceConfig = Prettify<SolverConfig & PartnerFeeConfig & RelayerApiConfig>;
|
|
8438
|
-
type MigrationServiceConfig = Prettify<RelayerApiConfig>;
|
|
8439
|
-
type MoneyMarketConfigParams = Prettify<MoneyMarketConfig & Optional<PartnerFeeConfig, 'partnerFee'>> | Optional<PartnerFeeConfig, 'partnerFee'>;
|
|
8440
|
-
type Default = {
|
|
8441
|
-
default: boolean;
|
|
8442
|
-
};
|
|
8443
|
-
type EvmSpokeChainConfig = BaseSpokeChainConfig<'EVM'> & {
|
|
8444
|
-
addresses: {
|
|
8445
|
-
assetManager: Address$1;
|
|
8446
|
-
connection: Address$1;
|
|
8447
|
-
};
|
|
8448
|
-
nativeToken: Address$1 | string;
|
|
8449
|
-
};
|
|
8450
|
-
type SonicSpokeChainConfig = BaseSpokeChainConfig<'EVM'> & {
|
|
8451
|
-
addresses: {
|
|
8452
|
-
walletRouter: Address$1;
|
|
8453
|
-
wrappedSonic: Address$1;
|
|
8454
|
-
};
|
|
8455
|
-
nativeToken: Address$1;
|
|
8456
|
-
};
|
|
8457
|
-
type SuiSpokeChainConfig = BaseSpokeChainConfig<'SUI'> & {
|
|
8458
|
-
addresses: {
|
|
8459
|
-
assetManager: string;
|
|
8460
|
-
connection: string;
|
|
8461
|
-
xTokenManager: string;
|
|
8462
|
-
rateLimit: string;
|
|
8463
|
-
testToken: string;
|
|
8464
|
-
};
|
|
8465
|
-
rpc_url: string;
|
|
8466
|
-
};
|
|
8467
|
-
type InjectiveSpokeChainConfig = BaseSpokeChainConfig<'INJECTIVE'> & {
|
|
8468
|
-
rpcUrl: string;
|
|
8469
|
-
walletAddress: string;
|
|
8470
|
-
addresses: {
|
|
8471
|
-
assetManager: string;
|
|
8472
|
-
connection: string;
|
|
8473
|
-
xTokenManager: string;
|
|
8474
|
-
rateLimit: string;
|
|
8475
|
-
testToken: string;
|
|
8476
|
-
};
|
|
8477
|
-
nativeToken: string;
|
|
8478
|
-
prefix: string;
|
|
8479
|
-
gasPrice: string;
|
|
8480
|
-
isBrowser: boolean;
|
|
8481
|
-
networkId: string;
|
|
8482
|
-
network: InjectiveNetworkEnv;
|
|
8483
|
-
};
|
|
8484
|
-
type StellarSpokeChainConfig = BaseSpokeChainConfig<'STELLAR'> & {
|
|
8485
|
-
addresses: {
|
|
8486
|
-
assetManager: string;
|
|
8487
|
-
connection: string;
|
|
8488
|
-
xTokenManager: string;
|
|
8489
|
-
rateLimit: string;
|
|
8490
|
-
testToken: string;
|
|
8491
|
-
};
|
|
8492
|
-
horizonRpcUrl: HttpUrl;
|
|
8493
|
-
sorobanRpcUrl: HttpUrl;
|
|
8494
|
-
};
|
|
8495
|
-
type IconSpokeChainConfig = BaseSpokeChainConfig<'ICON'> & {
|
|
8496
|
-
addresses: {
|
|
8497
|
-
assetManager: IconAddress;
|
|
8498
|
-
connection: IconAddress;
|
|
8499
|
-
rateLimit: IconAddress;
|
|
8500
|
-
wICX: `cx${string}`;
|
|
8501
|
-
};
|
|
8502
|
-
nid: Hex$1;
|
|
8503
|
-
};
|
|
8504
|
-
type SolanaChainConfig = BaseSpokeChainConfig<'SOLANA'> & {
|
|
8505
|
-
addresses: {
|
|
8506
|
-
assetManager: string;
|
|
8507
|
-
connection: string;
|
|
8508
|
-
xTokenManager: string;
|
|
8509
|
-
rateLimit: string;
|
|
8510
|
-
testToken: string;
|
|
8511
|
-
};
|
|
8512
|
-
chain: SpokeChainInfo<'SOLANA'>;
|
|
8513
|
-
rpcUrl: string;
|
|
8514
|
-
walletAddress: string;
|
|
8515
|
-
nativeToken: string;
|
|
8516
|
-
gasPrice: string;
|
|
8517
|
-
};
|
|
8518
|
-
type HubChainConfig = EvmHubChainConfig;
|
|
8519
|
-
type SpokeChainConfig = EvmSpokeChainConfig | SonicSpokeChainConfig | InjectiveSpokeChainConfig | IconSpokeChainConfig | SuiSpokeChainConfig | StellarSpokeChainConfig | SolanaChainConfig;
|
|
8520
|
-
type EvmContractCall = {
|
|
8521
|
-
address: Address$1;
|
|
8522
|
-
value: bigint;
|
|
8523
|
-
data: Hex$1;
|
|
8524
|
-
};
|
|
8525
|
-
type EvmTransferToHubParams = {
|
|
8526
|
-
token: Address$1;
|
|
8527
|
-
recipient: Address$1;
|
|
8528
|
-
amount: bigint;
|
|
8529
|
-
data: Hex$1;
|
|
8530
|
-
};
|
|
8531
|
-
type EvmTransferParams = {
|
|
8532
|
-
fromToken: Address$1;
|
|
8533
|
-
dstChainId: SpokeChainId;
|
|
8534
|
-
toToken: Hex$1;
|
|
8535
|
-
to: Hex$1;
|
|
8536
|
-
amount: bigint;
|
|
8537
|
-
data: Hex$1;
|
|
8538
|
-
};
|
|
8539
|
-
type TokenInfo = {
|
|
8540
|
-
decimals: number;
|
|
8541
|
-
depositFee: bigint;
|
|
8542
|
-
withdrawalFee: bigint;
|
|
8543
|
-
maxDeposit: bigint;
|
|
8544
|
-
isSupported: boolean;
|
|
8545
|
-
};
|
|
8546
|
-
type VaultReserves = {
|
|
8547
|
-
tokens: readonly Address$1[];
|
|
8548
|
-
balances: readonly bigint[];
|
|
8549
|
-
};
|
|
8550
|
-
/**
|
|
8551
|
-
* Fee type for transaction fees.
|
|
8552
|
-
* @property address - The address to which the fee is sent.
|
|
8553
|
-
* @property amount - Optional fixed fee amount in wei.
|
|
8554
|
-
*/
|
|
8555
|
-
type PartnerFeeAmount = {
|
|
8556
|
-
address: Address$1;
|
|
8557
|
-
amount: bigint;
|
|
8558
|
-
};
|
|
8559
|
-
/**
|
|
8560
|
-
* Fee type for transaction fees.
|
|
8561
|
-
* @property address - The address to which the fee is sent.
|
|
8562
|
-
* @property percentage - Optional fee percentage in basis points (e.g., 100 = 1%). Maximum allowed is 100 (1%).
|
|
8563
|
-
*/
|
|
8564
|
-
type PartnerFeePercentage = {
|
|
8565
|
-
address: Address$1;
|
|
8566
|
-
percentage: number;
|
|
8567
|
-
};
|
|
8568
|
-
/**
|
|
8569
|
-
* Fee type for transaction fees.
|
|
8570
|
-
* @property address - The address to which the fee is sent.
|
|
8571
|
-
* @property percentage - Optional fee percentage in basis points (e.g., 100 = 1%). Maximum allowed is 100 (1%).
|
|
8572
|
-
* @property amount - Optional fixed fee amount in wei. If both percentage and amount are provided, amount will be used.
|
|
8573
|
-
*/
|
|
8574
|
-
type PartnerFee = PartnerFeeAmount | PartnerFeePercentage;
|
|
8575
|
-
type PartnerFeeConfig = {
|
|
8576
|
-
partnerFee: PartnerFee | undefined;
|
|
8577
|
-
};
|
|
8578
|
-
type FeeAmount = {
|
|
8579
|
-
feeAmount: bigint;
|
|
8580
|
-
};
|
|
8581
|
-
type EvmTxReturnType<T extends boolean> = T extends true ? TransactionReceipt : Hex$1;
|
|
8582
|
-
type IconAddress = `hx${string}` | `cx${string}`;
|
|
8583
|
-
type IconContractAddress = `cx${string}`;
|
|
8584
|
-
type IcxTokenType = (typeof spokeChainConfig)[typeof ICON_MAINNET_CHAIN_ID]['addresses']['wICX'] | (typeof spokeChainConfig)[typeof ICON_MAINNET_CHAIN_ID]['nativeToken'];
|
|
8585
|
-
type Result<T, E = Error | unknown> = {
|
|
8586
|
-
ok: true;
|
|
8587
|
-
value: T;
|
|
8588
|
-
} | {
|
|
8589
|
-
ok: false;
|
|
8590
|
-
error: E;
|
|
8591
|
-
};
|
|
8592
|
-
type HttpPrefixedUrl = `http${string}`;
|
|
8593
|
-
type SpokeDepositParams = EvmSpokeDepositParams | InjectiveSpokeDepositParams | IconSpokeDepositParams;
|
|
8594
|
-
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;
|
|
8595
|
-
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;
|
|
8596
|
-
type HttpUrl = `http://${string}` | `https://${string}`;
|
|
8597
|
-
type SolverConfig = {
|
|
8598
|
-
intentsContract: Address$1;
|
|
8599
|
-
solverApiEndpoint: HttpUrl;
|
|
8600
|
-
};
|
|
8601
|
-
type SolverConfigParams = Prettify<SolverConfig & Optional<PartnerFeeConfig, 'partnerFee'>> | Optional<PartnerFeeConfig, 'partnerFee'>;
|
|
8602
|
-
type QuoteType = 'exact_input' | 'exact_output';
|
|
8603
|
-
type SolverIntentQuoteRequest = {
|
|
8604
|
-
token_src: string;
|
|
8605
|
-
token_src_blockchain_id: SpokeChainId;
|
|
8606
|
-
token_dst: string;
|
|
8607
|
-
token_dst_blockchain_id: SpokeChainId;
|
|
8608
|
-
amount: bigint;
|
|
8609
|
-
quote_type: QuoteType;
|
|
8610
|
-
};
|
|
8611
|
-
type SolverIntentQuoteResponseRaw = {
|
|
8612
|
-
quoted_amount: string;
|
|
8613
|
-
};
|
|
8614
|
-
type SolverIntentQuoteResponse = {
|
|
8615
|
-
quoted_amount: bigint;
|
|
8616
|
-
};
|
|
8617
|
-
type SolverErrorResponse = {
|
|
8618
|
-
detail: {
|
|
8619
|
-
code: SolverIntentErrorCode;
|
|
8620
|
-
message: string;
|
|
8621
|
-
};
|
|
8622
|
-
};
|
|
8623
|
-
type SolverExecutionRequest = {
|
|
8624
|
-
intent_tx_hash: Hex$1;
|
|
8625
|
-
};
|
|
8626
|
-
type SolverExecutionResponse = {
|
|
8627
|
-
answer: 'OK';
|
|
8628
|
-
intent_hash: Hex$1;
|
|
7611
|
+
type SolverExecutionResponse = {
|
|
7612
|
+
answer: 'OK';
|
|
7613
|
+
intent_hash: Hex$1;
|
|
8629
7614
|
};
|
|
8630
7615
|
type SolverIntentStatusRequest = {
|
|
8631
7616
|
intent_tx_hash: Hex$1;
|
|
@@ -8874,6 +7859,1075 @@ declare function encodeAddress(spokeChainId: SpokeChainId, address: string): Hex
|
|
|
8874
7859
|
*/
|
|
8875
7860
|
declare function hexToBigInt(hex: string): bigint;
|
|
8876
7861
|
|
|
7862
|
+
declare const DEFAULT_MAX_RETRY = 3;
|
|
7863
|
+
declare const DEFAULT_RELAY_TX_TIMEOUT = 60000;
|
|
7864
|
+
declare const DEFAULT_RETRY_DELAY_MS = 2000;
|
|
7865
|
+
declare const ICON_TX_RESULT_WAIT_MAX_RETRY = 10;
|
|
7866
|
+
declare const MAX_UINT256: bigint;
|
|
7867
|
+
declare const FEE_PERCENTAGE_SCALE = 10000n;
|
|
7868
|
+
declare const STELLAR_PRIORITY_FEE = "10000";
|
|
7869
|
+
declare const STELLAR_DEFAULT_TX_TIMEOUT_SECONDS = 100;
|
|
7870
|
+
declare const VAULT_TOKEN_DECIMALS = 18;
|
|
7871
|
+
declare const INTENT_RELAY_CHAIN_IDS: {
|
|
7872
|
+
readonly AVAX: 6n;
|
|
7873
|
+
readonly SUI: 21n;
|
|
7874
|
+
readonly SONIC: 146n;
|
|
7875
|
+
readonly STELLAR: 27n;
|
|
7876
|
+
readonly INJ: 19n;
|
|
7877
|
+
readonly SOL: 1n;
|
|
7878
|
+
readonly ICON: 1768124270n;
|
|
7879
|
+
readonly BASE: 30n;
|
|
7880
|
+
readonly BINANCE: 4n;
|
|
7881
|
+
readonly OPTIMISM: 24n;
|
|
7882
|
+
readonly POLYGON: 5n;
|
|
7883
|
+
readonly ARBITRUM: 23n;
|
|
7884
|
+
readonly NIBIRU: 7235938n;
|
|
7885
|
+
};
|
|
7886
|
+
declare const EVM_CHAIN_IDS: readonly ["0xa86a.avax", "0xa4b1.arbitrum", "0x2105.base", "0x38.bsc", "sonic", "0xa.optimism", "0x89.polygon", "nibiru"];
|
|
7887
|
+
declare const EVM_SPOKE_CHAIN_IDS: readonly ["0xa86a.avax", "0xa4b1.arbitrum", "0x2105.base", "0x38.bsc", "0xa.optimism", "0x89.polygon", "nibiru", "sonic"];
|
|
7888
|
+
declare const ChainIdToIntentRelayChainId: Record<ChainId, IntentRelayChainId>;
|
|
7889
|
+
declare const getIntentRelayChainId: (chainId: ChainId) => IntentRelayChainId;
|
|
7890
|
+
declare function getEvmViemChain(id: EvmChainId): Chain;
|
|
7891
|
+
declare const getHubChainConfig: (chainId: HubChainId) => EvmHubChainConfig;
|
|
7892
|
+
declare const spokeChainConfig: {
|
|
7893
|
+
readonly sonic: {
|
|
7894
|
+
readonly chain: {
|
|
7895
|
+
readonly name: "Sonic";
|
|
7896
|
+
readonly id: "sonic";
|
|
7897
|
+
readonly type: "EVM";
|
|
7898
|
+
};
|
|
7899
|
+
readonly addresses: {
|
|
7900
|
+
readonly walletRouter: "0xC67C3e55c665E78b25dc9829B3Aa5af47d914733";
|
|
7901
|
+
readonly wrappedSonic: "0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38";
|
|
7902
|
+
};
|
|
7903
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
7904
|
+
readonly bnUSD: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
7905
|
+
readonly supportedTokens: {
|
|
7906
|
+
readonly S: {
|
|
7907
|
+
readonly symbol: "S";
|
|
7908
|
+
readonly name: "Sonic";
|
|
7909
|
+
readonly decimals: 18;
|
|
7910
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
7911
|
+
};
|
|
7912
|
+
readonly bnUSD: {
|
|
7913
|
+
readonly symbol: "bnUSD";
|
|
7914
|
+
readonly name: "bnUSD";
|
|
7915
|
+
readonly decimals: 18;
|
|
7916
|
+
readonly address: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
7917
|
+
};
|
|
7918
|
+
readonly WETH: {
|
|
7919
|
+
readonly symbol: "WETH";
|
|
7920
|
+
readonly name: "Wrapped Ether";
|
|
7921
|
+
readonly decimals: 18;
|
|
7922
|
+
readonly address: "0x50c42dEAcD8Fc9773493ED674b675bE577f2634b";
|
|
7923
|
+
};
|
|
7924
|
+
readonly USDC: {
|
|
7925
|
+
readonly symbol: "USDC";
|
|
7926
|
+
readonly name: "USD Coin";
|
|
7927
|
+
readonly decimals: 6;
|
|
7928
|
+
readonly address: "0x29219dd400f2Bf60E5a23d13Be72B486D4038894";
|
|
7929
|
+
};
|
|
7930
|
+
readonly USDT: {
|
|
7931
|
+
readonly symbol: "USDT";
|
|
7932
|
+
readonly name: "Tether USD";
|
|
7933
|
+
readonly decimals: 6;
|
|
7934
|
+
readonly address: "0x6047828dc181963ba44974801FF68e538dA5eaF9";
|
|
7935
|
+
};
|
|
7936
|
+
readonly wS: {
|
|
7937
|
+
readonly symbol: "wS";
|
|
7938
|
+
readonly name: "Wrapped Sonic";
|
|
7939
|
+
readonly decimals: 18;
|
|
7940
|
+
readonly address: "0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38";
|
|
7941
|
+
};
|
|
7942
|
+
readonly SODA: {
|
|
7943
|
+
readonly symbol: "SODA";
|
|
7944
|
+
readonly name: "SODAX";
|
|
7945
|
+
readonly decimals: 18;
|
|
7946
|
+
readonly address: "0x7c7d53EEcda37a87ce0D5bf8E0b24512A48dC963";
|
|
7947
|
+
};
|
|
7948
|
+
};
|
|
7949
|
+
};
|
|
7950
|
+
readonly solana: {
|
|
7951
|
+
readonly addresses: {
|
|
7952
|
+
readonly assetManager: "AnCCJjheynmGqPp6Vgat9DTirGKD4CtQzP8cwTYV8qKH";
|
|
7953
|
+
readonly connection: "GxS8i6D9qQjbSeniD487CnomUxU2pXt6V8P96T6MkUXB";
|
|
7954
|
+
readonly rateLimit: "2Vyy3A3Teju2EMCkdnappEeWqBXyAaF5V2WsrU4hDtsk";
|
|
7955
|
+
readonly testToken: "3Q2HS3png7fLaYerqCun3zw8rnBZo2Ksvdg6RHTyM4Ns";
|
|
7956
|
+
readonly xTokenManager: "";
|
|
7957
|
+
};
|
|
7958
|
+
readonly chain: {
|
|
7959
|
+
readonly id: "solana";
|
|
7960
|
+
readonly name: "Solana";
|
|
7961
|
+
readonly type: "SOLANA";
|
|
7962
|
+
};
|
|
7963
|
+
readonly nativeToken: "11111111111111111111111111111111";
|
|
7964
|
+
readonly bnUSD: "3rSPCLNEF7Quw4wX8S1NyKivELoyij8eYA2gJwBgt4V5";
|
|
7965
|
+
readonly supportedTokens: {
|
|
7966
|
+
readonly SOL: {
|
|
7967
|
+
readonly symbol: "SOL";
|
|
7968
|
+
readonly name: "Solana";
|
|
7969
|
+
readonly decimals: 9;
|
|
7970
|
+
readonly address: "11111111111111111111111111111111";
|
|
7971
|
+
};
|
|
7972
|
+
readonly bnUSD: {
|
|
7973
|
+
readonly symbol: "bnUSD";
|
|
7974
|
+
readonly name: "bnUSD";
|
|
7975
|
+
readonly decimals: 9;
|
|
7976
|
+
readonly address: "3rSPCLNEF7Quw4wX8S1NyKivELoyij8eYA2gJwBgt4V5";
|
|
7977
|
+
};
|
|
7978
|
+
readonly USDC: {
|
|
7979
|
+
readonly symbol: "USDC";
|
|
7980
|
+
readonly name: "USD Coin";
|
|
7981
|
+
readonly decimals: 6;
|
|
7982
|
+
readonly address: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
7983
|
+
};
|
|
7984
|
+
};
|
|
7985
|
+
readonly gasPrice: "500000";
|
|
7986
|
+
readonly rpcUrl: "https://api.mainnet-beta.solana.com";
|
|
7987
|
+
readonly walletAddress: "";
|
|
7988
|
+
};
|
|
7989
|
+
readonly "0xa86a.avax": {
|
|
7990
|
+
readonly chain: {
|
|
7991
|
+
readonly name: "Avalanche";
|
|
7992
|
+
readonly id: "0xa86a.avax";
|
|
7993
|
+
readonly type: "EVM";
|
|
7994
|
+
};
|
|
7995
|
+
readonly addresses: {
|
|
7996
|
+
readonly assetManager: "0x5bDD1E1C5173F4c912cC919742FB94A55ECfaf86";
|
|
7997
|
+
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
7998
|
+
};
|
|
7999
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
8000
|
+
readonly bnUSD: "0x6958a4CBFe11406E2a1c1d3a71A1971aD8B3b92F";
|
|
8001
|
+
readonly supportedTokens: {
|
|
8002
|
+
readonly AVAX: {
|
|
8003
|
+
readonly symbol: "AVAX";
|
|
8004
|
+
readonly name: "Avalanche";
|
|
8005
|
+
readonly decimals: 18;
|
|
8006
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8007
|
+
};
|
|
8008
|
+
readonly bnUSD: {
|
|
8009
|
+
readonly symbol: "bnUSD";
|
|
8010
|
+
readonly name: "bnUSD";
|
|
8011
|
+
readonly decimals: 18;
|
|
8012
|
+
readonly address: "0x6958a4CBFe11406E2a1c1d3a71A1971aD8B3b92F";
|
|
8013
|
+
};
|
|
8014
|
+
readonly USDT: {
|
|
8015
|
+
readonly symbol: "USDT";
|
|
8016
|
+
readonly name: "Tether USD";
|
|
8017
|
+
readonly decimals: 6;
|
|
8018
|
+
readonly address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7";
|
|
8019
|
+
};
|
|
8020
|
+
readonly USDC: {
|
|
8021
|
+
readonly symbol: "USDC";
|
|
8022
|
+
readonly name: "USD Coin";
|
|
8023
|
+
readonly decimals: 6;
|
|
8024
|
+
readonly address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
|
|
8025
|
+
};
|
|
8026
|
+
};
|
|
8027
|
+
};
|
|
8028
|
+
readonly nibiru: {
|
|
8029
|
+
readonly chain: {
|
|
8030
|
+
readonly name: "Nibiru";
|
|
8031
|
+
readonly id: "nibiru";
|
|
8032
|
+
readonly type: "EVM";
|
|
8033
|
+
};
|
|
8034
|
+
readonly addresses: {
|
|
8035
|
+
readonly assetManager: "0x6958a4CBFe11406E2a1c1d3a71A1971aD8B3b92F";
|
|
8036
|
+
readonly connection: "0x772FFE538E45b2cDdFB5823041EC26C44815B9AB";
|
|
8037
|
+
};
|
|
8038
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
8039
|
+
readonly bnUSD: "0x043fb7e23350Dd5b77dE5E228B528763DEcb9131";
|
|
8040
|
+
readonly supportedTokens: {
|
|
8041
|
+
readonly NIBI: {
|
|
8042
|
+
readonly symbol: "NIBI";
|
|
8043
|
+
readonly name: "Nibiru";
|
|
8044
|
+
readonly decimals: 6;
|
|
8045
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8046
|
+
};
|
|
8047
|
+
readonly bnUSD: {
|
|
8048
|
+
readonly symbol: "bnUSD";
|
|
8049
|
+
readonly name: "bnUSD";
|
|
8050
|
+
readonly decimals: 18;
|
|
8051
|
+
readonly address: "0x043fb7e23350Dd5b77dE5E228B528763DEcb9131";
|
|
8052
|
+
};
|
|
8053
|
+
};
|
|
8054
|
+
};
|
|
8055
|
+
readonly "0xa4b1.arbitrum": {
|
|
8056
|
+
readonly chain: {
|
|
8057
|
+
readonly name: "Arbitrum";
|
|
8058
|
+
readonly id: "0xa4b1.arbitrum";
|
|
8059
|
+
readonly type: "EVM";
|
|
8060
|
+
};
|
|
8061
|
+
readonly addresses: {
|
|
8062
|
+
readonly assetManager: "0x348BE44F63A458be9C1b13D6fD8e99048F297Bc3";
|
|
8063
|
+
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
8064
|
+
};
|
|
8065
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
8066
|
+
readonly bnUSD: "0xA256dd181C3f6E5eC68C6869f5D50a712d47212e";
|
|
8067
|
+
readonly supportedTokens: {
|
|
8068
|
+
readonly ETH: {
|
|
8069
|
+
readonly symbol: "ETH";
|
|
8070
|
+
readonly name: "Ethereum";
|
|
8071
|
+
readonly decimals: 18;
|
|
8072
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8073
|
+
};
|
|
8074
|
+
readonly bnUSD: {
|
|
8075
|
+
readonly symbol: "bnUSD";
|
|
8076
|
+
readonly name: "bnUSD";
|
|
8077
|
+
readonly decimals: 18;
|
|
8078
|
+
readonly address: "0xA256dd181C3f6E5eC68C6869f5D50a712d47212e";
|
|
8079
|
+
};
|
|
8080
|
+
readonly wstETH: {
|
|
8081
|
+
readonly symbol: "wstETH";
|
|
8082
|
+
readonly name: "Wrapped stETH";
|
|
8083
|
+
readonly decimals: 18;
|
|
8084
|
+
readonly address: "0x5979D7b546E38E414F7E9822514be443A4800529";
|
|
8085
|
+
};
|
|
8086
|
+
readonly weETH: {
|
|
8087
|
+
readonly symbol: "weETH";
|
|
8088
|
+
readonly name: "Wrapped eETH";
|
|
8089
|
+
readonly decimals: 18;
|
|
8090
|
+
readonly address: "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe";
|
|
8091
|
+
};
|
|
8092
|
+
readonly tBTC: {
|
|
8093
|
+
readonly symbol: "tBTC";
|
|
8094
|
+
readonly name: "Arbitrum tBTC v2";
|
|
8095
|
+
readonly decimals: 18;
|
|
8096
|
+
readonly address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40";
|
|
8097
|
+
};
|
|
8098
|
+
readonly WBTC: {
|
|
8099
|
+
readonly symbol: "WBTC";
|
|
8100
|
+
readonly name: "Wrapped BTC";
|
|
8101
|
+
readonly decimals: 8;
|
|
8102
|
+
readonly address: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f";
|
|
8103
|
+
};
|
|
8104
|
+
readonly USDC: {
|
|
8105
|
+
readonly symbol: "USDC";
|
|
8106
|
+
readonly name: "USD Coin (USDC)";
|
|
8107
|
+
readonly decimals: 6;
|
|
8108
|
+
readonly address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
8109
|
+
};
|
|
8110
|
+
readonly USDT: {
|
|
8111
|
+
readonly symbol: "USDT";
|
|
8112
|
+
readonly name: "TetherToken";
|
|
8113
|
+
readonly decimals: 6;
|
|
8114
|
+
readonly address: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9";
|
|
8115
|
+
};
|
|
8116
|
+
};
|
|
8117
|
+
};
|
|
8118
|
+
readonly "0x2105.base": {
|
|
8119
|
+
readonly chain: {
|
|
8120
|
+
readonly name: "BASE";
|
|
8121
|
+
readonly id: "0x2105.base";
|
|
8122
|
+
readonly type: "EVM";
|
|
8123
|
+
};
|
|
8124
|
+
readonly addresses: {
|
|
8125
|
+
readonly assetManager: "0x348BE44F63A458be9C1b13D6fD8e99048F297Bc3";
|
|
8126
|
+
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
8127
|
+
};
|
|
8128
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
8129
|
+
readonly bnUSD: "0xAcfab3F31C0a18559D78556BBf297EC29c6cf8aa";
|
|
8130
|
+
readonly supportedTokens: {
|
|
8131
|
+
readonly ETH: {
|
|
8132
|
+
readonly symbol: "ETH";
|
|
8133
|
+
readonly name: "Ethereum";
|
|
8134
|
+
readonly decimals: 18;
|
|
8135
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8136
|
+
};
|
|
8137
|
+
readonly bnUSD: {
|
|
8138
|
+
readonly symbol: "bnUSD";
|
|
8139
|
+
readonly name: "bnUSD";
|
|
8140
|
+
readonly decimals: 18;
|
|
8141
|
+
readonly address: "0xAcfab3F31C0a18559D78556BBf297EC29c6cf8aa";
|
|
8142
|
+
};
|
|
8143
|
+
readonly weETH: {
|
|
8144
|
+
readonly symbol: "weETH";
|
|
8145
|
+
readonly name: "Wrapped eETH";
|
|
8146
|
+
readonly decimals: 18;
|
|
8147
|
+
readonly address: "0x04c0599ae5a44757c0af6f9ec3b93da8976c150a";
|
|
8148
|
+
};
|
|
8149
|
+
readonly USDC: {
|
|
8150
|
+
readonly symbol: "USDC";
|
|
8151
|
+
readonly name: "USD Coin";
|
|
8152
|
+
readonly decimals: 6;
|
|
8153
|
+
readonly address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
8154
|
+
};
|
|
8155
|
+
readonly wstETH: {
|
|
8156
|
+
readonly symbol: "wstETH";
|
|
8157
|
+
readonly name: "Wrapped stETH";
|
|
8158
|
+
readonly decimals: 18;
|
|
8159
|
+
readonly address: "0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452";
|
|
8160
|
+
};
|
|
8161
|
+
readonly cbBTC: {
|
|
8162
|
+
readonly symbol: "cbBTC";
|
|
8163
|
+
readonly name: "Coinbase Wrapped BTC";
|
|
8164
|
+
readonly decimals: 8;
|
|
8165
|
+
readonly address: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
|
|
8166
|
+
};
|
|
8167
|
+
};
|
|
8168
|
+
};
|
|
8169
|
+
readonly "0xa.optimism": {
|
|
8170
|
+
readonly chain: {
|
|
8171
|
+
readonly name: "Optimism";
|
|
8172
|
+
readonly id: "0xa.optimism";
|
|
8173
|
+
readonly type: "EVM";
|
|
8174
|
+
};
|
|
8175
|
+
readonly addresses: {
|
|
8176
|
+
readonly assetManager: "0x348BE44F63A458be9C1b13D6fD8e99048F297Bc3";
|
|
8177
|
+
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
8178
|
+
};
|
|
8179
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
8180
|
+
readonly bnUSD: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
|
|
8181
|
+
readonly supportedTokens: {
|
|
8182
|
+
readonly ETH: {
|
|
8183
|
+
readonly symbol: "ETH";
|
|
8184
|
+
readonly name: "Ethereum";
|
|
8185
|
+
readonly decimals: 18;
|
|
8186
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8187
|
+
};
|
|
8188
|
+
readonly bnUSD: {
|
|
8189
|
+
readonly symbol: "bnUSD";
|
|
8190
|
+
readonly name: "bnUSD";
|
|
8191
|
+
readonly decimals: 18;
|
|
8192
|
+
readonly address: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
|
|
8193
|
+
};
|
|
8194
|
+
readonly USDC: {
|
|
8195
|
+
readonly symbol: "USDC";
|
|
8196
|
+
readonly name: "USD Coin";
|
|
8197
|
+
readonly decimals: 6;
|
|
8198
|
+
readonly address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
|
|
8199
|
+
};
|
|
8200
|
+
readonly wstETH: {
|
|
8201
|
+
readonly symbol: "wstETH";
|
|
8202
|
+
readonly name: "Wrapped stETH";
|
|
8203
|
+
readonly decimals: 18;
|
|
8204
|
+
readonly address: "0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb";
|
|
8205
|
+
};
|
|
8206
|
+
readonly weETH: {
|
|
8207
|
+
readonly symbol: "weETH";
|
|
8208
|
+
readonly name: "Wrapped eETH";
|
|
8209
|
+
readonly decimals: 18;
|
|
8210
|
+
readonly address: "0x5A7fACB970D094B6C7FF1df0eA68D99E6e73CBFF";
|
|
8211
|
+
};
|
|
8212
|
+
readonly USDT: {
|
|
8213
|
+
readonly symbol: "USDT";
|
|
8214
|
+
readonly name: "Tether USD";
|
|
8215
|
+
readonly decimals: 6;
|
|
8216
|
+
readonly address: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58";
|
|
8217
|
+
};
|
|
8218
|
+
};
|
|
8219
|
+
};
|
|
8220
|
+
readonly "0x38.bsc": {
|
|
8221
|
+
readonly chain: {
|
|
8222
|
+
readonly name: "BSC";
|
|
8223
|
+
readonly id: "0x38.bsc";
|
|
8224
|
+
readonly type: "EVM";
|
|
8225
|
+
};
|
|
8226
|
+
readonly addresses: {
|
|
8227
|
+
readonly assetManager: "0x348BE44F63A458be9C1b13D6fD8e99048F297Bc3";
|
|
8228
|
+
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
8229
|
+
};
|
|
8230
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
8231
|
+
readonly bnUSD: "0x8428FedC020737a5A2291F46cB1B80613eD71638";
|
|
8232
|
+
readonly supportedTokens: {
|
|
8233
|
+
readonly BNB: {
|
|
8234
|
+
readonly symbol: "BNB";
|
|
8235
|
+
readonly name: "BNB";
|
|
8236
|
+
readonly decimals: 18;
|
|
8237
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8238
|
+
};
|
|
8239
|
+
readonly bnUSD: {
|
|
8240
|
+
readonly symbol: "bnUSD";
|
|
8241
|
+
readonly name: "bnUSD";
|
|
8242
|
+
readonly decimals: 18;
|
|
8243
|
+
readonly address: "0x8428FedC020737a5A2291F46cB1B80613eD71638";
|
|
8244
|
+
};
|
|
8245
|
+
readonly ETHB: {
|
|
8246
|
+
readonly symbol: "ETHB";
|
|
8247
|
+
readonly name: "Ethereum BSC";
|
|
8248
|
+
readonly decimals: 18;
|
|
8249
|
+
readonly address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8";
|
|
8250
|
+
};
|
|
8251
|
+
readonly BTCB: {
|
|
8252
|
+
readonly symbol: "BTCB";
|
|
8253
|
+
readonly name: "Bitcoin BSC";
|
|
8254
|
+
readonly decimals: 18;
|
|
8255
|
+
readonly address: "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c";
|
|
8256
|
+
};
|
|
8257
|
+
readonly USDC: {
|
|
8258
|
+
readonly symbol: "USDC";
|
|
8259
|
+
readonly name: "USD Coin";
|
|
8260
|
+
readonly decimals: 18;
|
|
8261
|
+
readonly address: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d";
|
|
8262
|
+
};
|
|
8263
|
+
};
|
|
8264
|
+
};
|
|
8265
|
+
readonly "0x89.polygon": {
|
|
8266
|
+
readonly chain: {
|
|
8267
|
+
readonly name: "Polygon";
|
|
8268
|
+
readonly id: "0x89.polygon";
|
|
8269
|
+
readonly type: "EVM";
|
|
8270
|
+
};
|
|
8271
|
+
readonly addresses: {
|
|
8272
|
+
readonly assetManager: "0x348BE44F63A458be9C1b13D6fD8e99048F297Bc3";
|
|
8273
|
+
readonly connection: "0x4555aC13D7338D9E671584C1D118c06B2a3C88eD";
|
|
8274
|
+
};
|
|
8275
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000";
|
|
8276
|
+
readonly bnUSD: "0x39E77f86C1B1f3fbAb362A82b49D2E86C09659B4";
|
|
8277
|
+
readonly supportedTokens: {
|
|
8278
|
+
readonly POL: {
|
|
8279
|
+
readonly symbol: "POL";
|
|
8280
|
+
readonly name: "Polygon";
|
|
8281
|
+
readonly decimals: 18;
|
|
8282
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8283
|
+
};
|
|
8284
|
+
readonly bnUSD: {
|
|
8285
|
+
readonly symbol: "bnUSD";
|
|
8286
|
+
readonly name: "bnUSD";
|
|
8287
|
+
readonly decimals: 18;
|
|
8288
|
+
readonly address: "0x39E77f86C1B1f3fbAb362A82b49D2E86C09659B4";
|
|
8289
|
+
};
|
|
8290
|
+
readonly USDC: {
|
|
8291
|
+
readonly symbol: "USDC";
|
|
8292
|
+
readonly name: "USD Coin";
|
|
8293
|
+
readonly decimals: 6;
|
|
8294
|
+
readonly address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
|
|
8295
|
+
};
|
|
8296
|
+
};
|
|
8297
|
+
};
|
|
8298
|
+
readonly "injective-1": {
|
|
8299
|
+
readonly addresses: {
|
|
8300
|
+
readonly assetManager: "inj1dg6tm62uup53wn2kn97caeqfwt0sukx3qjk8rw";
|
|
8301
|
+
readonly connection: "inj1eexvfglsptxwfj9hft96xcnsdrvr7d7dalcm8w";
|
|
8302
|
+
readonly rateLimit: "inj1x8p2h56edcdrm9tzx7a7zkwe0l334klgrxpqyk";
|
|
8303
|
+
readonly testToken: "";
|
|
8304
|
+
readonly xTokenManager: "";
|
|
8305
|
+
};
|
|
8306
|
+
readonly chain: {
|
|
8307
|
+
readonly id: "injective-1";
|
|
8308
|
+
readonly name: "Injective";
|
|
8309
|
+
readonly type: "INJECTIVE";
|
|
8310
|
+
};
|
|
8311
|
+
readonly nativeToken: "inj";
|
|
8312
|
+
readonly bnUSD: "factory/inj1d036ftaatxpkqsu9hja8r24rv3v33chz3appxp/bnUSD";
|
|
8313
|
+
readonly networkId: "injective-1";
|
|
8314
|
+
readonly supportedTokens: {
|
|
8315
|
+
readonly INJ: {
|
|
8316
|
+
readonly symbol: "INJ";
|
|
8317
|
+
readonly name: "Injective";
|
|
8318
|
+
readonly decimals: 18;
|
|
8319
|
+
readonly address: "inj";
|
|
8320
|
+
};
|
|
8321
|
+
readonly bnUSD: {
|
|
8322
|
+
readonly symbol: "bnUSD";
|
|
8323
|
+
readonly name: "bnUSD";
|
|
8324
|
+
readonly decimals: 18;
|
|
8325
|
+
readonly address: "factory/inj1d036ftaatxpkqsu9hja8r24rv3v33chz3appxp/bnUSD";
|
|
8326
|
+
};
|
|
8327
|
+
readonly USDC: {
|
|
8328
|
+
readonly symbol: "USDC";
|
|
8329
|
+
readonly name: "USD Coin";
|
|
8330
|
+
readonly decimals: 6;
|
|
8331
|
+
readonly address: "ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E";
|
|
8332
|
+
};
|
|
8333
|
+
};
|
|
8334
|
+
readonly gasPrice: "500000000inj";
|
|
8335
|
+
readonly network: "Mainnet";
|
|
8336
|
+
readonly prefix: "inj";
|
|
8337
|
+
readonly isBrowser: false;
|
|
8338
|
+
readonly rpcUrl: "https://injective-rpc.publicnode.com:443";
|
|
8339
|
+
readonly walletAddress: "";
|
|
8340
|
+
};
|
|
8341
|
+
readonly stellar: {
|
|
8342
|
+
readonly addresses: {
|
|
8343
|
+
readonly connection: "CDFQDDPUPAM3XPGORHDOEFRNLMKOH3N3X6XTXNLSXJQXIU3RVCM3OPEP";
|
|
8344
|
+
readonly assetManager: "CCGF33A4CO6D3BXFEKPXVCFCZBK76I3AQOZK6KIKRPAWAZR3632WHCJ3";
|
|
8345
|
+
readonly xTokenManager: "";
|
|
8346
|
+
readonly rateLimit: "CB6G3ULISTTBPXUN3BI6ADHQGWJEN7BPQINHL45TCB6TDFM5QWU24HAY";
|
|
8347
|
+
readonly testToken: "";
|
|
8348
|
+
};
|
|
8349
|
+
readonly supportedTokens: {
|
|
8350
|
+
readonly bnUSD: {
|
|
8351
|
+
readonly symbol: "bnUSD";
|
|
8352
|
+
readonly name: "bnUSD";
|
|
8353
|
+
readonly decimals: 7;
|
|
8354
|
+
readonly address: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
|
|
8355
|
+
};
|
|
8356
|
+
readonly XLM: {
|
|
8357
|
+
readonly symbol: "XLM";
|
|
8358
|
+
readonly name: "Stellar Lumens";
|
|
8359
|
+
readonly decimals: 7;
|
|
8360
|
+
readonly address: "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
|
|
8361
|
+
};
|
|
8362
|
+
readonly USDC: {
|
|
8363
|
+
readonly symbol: "USDC";
|
|
8364
|
+
readonly name: "USD Coin";
|
|
8365
|
+
readonly decimals: 7;
|
|
8366
|
+
readonly address: "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75";
|
|
8367
|
+
};
|
|
8368
|
+
readonly legacybnUSD: {
|
|
8369
|
+
readonly symbol: "bnUSD";
|
|
8370
|
+
readonly name: "legacybnUSD";
|
|
8371
|
+
readonly decimals: 18;
|
|
8372
|
+
readonly address: "CCT4ZYIYZ3TUO2AWQFEOFGBZ6HQP3GW5TA37CK7CRZVFRDXYTHTYX7KP";
|
|
8373
|
+
};
|
|
8374
|
+
};
|
|
8375
|
+
readonly nativeToken: "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
|
|
8376
|
+
readonly bnUSD: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
|
|
8377
|
+
readonly horizonRpcUrl: "https://horizon.stellar.org";
|
|
8378
|
+
readonly sorobanRpcUrl: "https://rpc.ankr.com/stellar_soroban";
|
|
8379
|
+
readonly chain: {
|
|
8380
|
+
readonly name: "Stellar";
|
|
8381
|
+
readonly id: "stellar";
|
|
8382
|
+
readonly type: "STELLAR";
|
|
8383
|
+
};
|
|
8384
|
+
};
|
|
8385
|
+
readonly sui: {
|
|
8386
|
+
readonly addresses: {
|
|
8387
|
+
readonly connection: "0xf3b1e696a66d02cb776dc15aae73c68bc8f03adcb6ba0ec7f6332d9d90a6a3d2::connectionv3::0x3ee76d13909ac58ae13baab4c9be5a5142818d9a387aed641825e5d4356969bf";
|
|
8388
|
+
readonly assetManager: "0x897f911a4b7691870a1a2513af7e85fdee8de275615c77068fd8b90b8e78c678::asset_manager::0xcb7346339340b7f8dea40fcafb70721dc2fcfa7e8626a89fd954d46c1f928b61";
|
|
8389
|
+
readonly xTokenManager: "";
|
|
8390
|
+
readonly rateLimit: "";
|
|
8391
|
+
readonly testToken: "";
|
|
8392
|
+
};
|
|
8393
|
+
readonly supportedTokens: {
|
|
8394
|
+
readonly SUI: {
|
|
8395
|
+
readonly symbol: "SUI";
|
|
8396
|
+
readonly name: "SUI";
|
|
8397
|
+
readonly decimals: 9;
|
|
8398
|
+
readonly address: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI";
|
|
8399
|
+
};
|
|
8400
|
+
readonly bnUSD: {
|
|
8401
|
+
readonly symbol: "bnUSD";
|
|
8402
|
+
readonly name: "bnUSD";
|
|
8403
|
+
readonly decimals: 9;
|
|
8404
|
+
readonly address: "0xff4de2b2b57dd7611d2812d231a467d007b702a101fd5c7ad3b278257cddb507::bnusd::BNUSD";
|
|
8405
|
+
};
|
|
8406
|
+
readonly USDC: {
|
|
8407
|
+
readonly symbol: "USDC";
|
|
8408
|
+
readonly name: "USD Coin";
|
|
8409
|
+
readonly decimals: 6;
|
|
8410
|
+
readonly address: "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC";
|
|
8411
|
+
};
|
|
8412
|
+
readonly legacybnUSD: {
|
|
8413
|
+
readonly symbol: "bnUSD";
|
|
8414
|
+
readonly name: "legacybnUSD";
|
|
8415
|
+
readonly decimals: 9;
|
|
8416
|
+
readonly address: "0x03917a812fe4a6d6bc779c5ab53f8a80ba741f8af04121193fc44e0f662e2ceb::balanced_dollar::BALANCED_DOLLAR";
|
|
8417
|
+
};
|
|
8418
|
+
readonly afSUI: {
|
|
8419
|
+
readonly symbol: "afSUI";
|
|
8420
|
+
readonly name: "Aftermath Staked Sui";
|
|
8421
|
+
readonly decimals: 9;
|
|
8422
|
+
readonly address: "0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::AFSUI";
|
|
8423
|
+
};
|
|
8424
|
+
readonly mSUI: {
|
|
8425
|
+
readonly symbol: "mSUI";
|
|
8426
|
+
readonly name: "Mirai Staked SUI";
|
|
8427
|
+
readonly decimals: 9;
|
|
8428
|
+
readonly address: "0x922d15d7f55c13fd790f6e54397470ec592caa2b508df292a2e8553f3d3b274f::msui::MSUI";
|
|
8429
|
+
};
|
|
8430
|
+
readonly haSUI: {
|
|
8431
|
+
readonly symbol: "haSUI";
|
|
8432
|
+
readonly name: "haSUI";
|
|
8433
|
+
readonly decimals: 9;
|
|
8434
|
+
readonly address: "0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::hasui::HASUI";
|
|
8435
|
+
};
|
|
8436
|
+
readonly vSUI: {
|
|
8437
|
+
readonly symbol: "vSUI";
|
|
8438
|
+
readonly name: "Volo Staked SUI";
|
|
8439
|
+
readonly decimals: 9;
|
|
8440
|
+
readonly address: "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT";
|
|
8441
|
+
};
|
|
8442
|
+
readonly yapSUI: {
|
|
8443
|
+
readonly symbol: "yapSUI";
|
|
8444
|
+
readonly name: "Yap Staked SUI";
|
|
8445
|
+
readonly decimals: 9;
|
|
8446
|
+
readonly address: "0x83f1bb8c91ecd1fd313344058b0eed94d63c54e41d8d1ae5bff1353443517d65::yap_sui::YAP_SUI";
|
|
8447
|
+
};
|
|
8448
|
+
readonly trevinSUI: {
|
|
8449
|
+
readonly symbol: "trevinSUI";
|
|
8450
|
+
readonly name: "Trevin Staked SUI";
|
|
8451
|
+
readonly decimals: 9;
|
|
8452
|
+
readonly address: "0x502867b177303bf1bf226245fcdd3403c177e78d175a55a56c0602c7ff51c7fa::trevin_sui::TREVIN_SUI";
|
|
8453
|
+
};
|
|
8454
|
+
};
|
|
8455
|
+
readonly nativeToken: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI";
|
|
8456
|
+
readonly bnUSD: "0xff4de2b2b57dd7611d2812d231a467d007b702a101fd5c7ad3b278257cddb507::bnusd::BNUSD";
|
|
8457
|
+
readonly rpc_url: "https://fullnode.mainnet.sui.io:443";
|
|
8458
|
+
readonly chain: {
|
|
8459
|
+
readonly name: "Sui";
|
|
8460
|
+
readonly id: "sui";
|
|
8461
|
+
readonly type: "SUI";
|
|
8462
|
+
};
|
|
8463
|
+
};
|
|
8464
|
+
readonly "0x1.icon": {
|
|
8465
|
+
readonly addresses: {
|
|
8466
|
+
readonly assetManager: "cx1be33c283c7dc7617181d1b21a6a2309e71b1ee7";
|
|
8467
|
+
readonly connection: "cxe5cdf3b0f26967b0efc72d470d57bbf534268f94";
|
|
8468
|
+
readonly rateLimit: "cxbbdcea9e6757023a046067ba8daa3c4c50304358";
|
|
8469
|
+
readonly wICX: "cx3975b43d260fb8ec802cef6e60c2f4d07486f11d";
|
|
8470
|
+
};
|
|
8471
|
+
readonly chain: {
|
|
8472
|
+
readonly id: "0x1.icon";
|
|
8473
|
+
readonly name: "ICON Mainnet";
|
|
8474
|
+
readonly type: "ICON";
|
|
8475
|
+
};
|
|
8476
|
+
readonly supportedTokens: {
|
|
8477
|
+
readonly ICX: {
|
|
8478
|
+
readonly symbol: "ICX";
|
|
8479
|
+
readonly name: "ICON";
|
|
8480
|
+
readonly decimals: 18;
|
|
8481
|
+
readonly address: "cx0000000000000000000000000000000000000000";
|
|
8482
|
+
};
|
|
8483
|
+
readonly wICX: {
|
|
8484
|
+
readonly symbol: "wICX";
|
|
8485
|
+
readonly name: "Wrapped ICX";
|
|
8486
|
+
readonly decimals: 18;
|
|
8487
|
+
readonly address: "cx3975b43d260fb8ec802cef6e60c2f4d07486f11d";
|
|
8488
|
+
};
|
|
8489
|
+
readonly bnUSD: {
|
|
8490
|
+
readonly symbol: "bnUSD";
|
|
8491
|
+
readonly name: "bnUSD";
|
|
8492
|
+
readonly decimals: 18;
|
|
8493
|
+
readonly address: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
8494
|
+
};
|
|
8495
|
+
readonly legacybnUSD: {
|
|
8496
|
+
readonly symbol: "bnUSD";
|
|
8497
|
+
readonly name: "bnUSD";
|
|
8498
|
+
readonly decimals: 18;
|
|
8499
|
+
readonly address: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
8500
|
+
};
|
|
8501
|
+
readonly BALN: {
|
|
8502
|
+
readonly symbol: "BALN";
|
|
8503
|
+
readonly name: "BALN";
|
|
8504
|
+
readonly decimals: 18;
|
|
8505
|
+
readonly address: "cxf61cd5a45dc9f91c15aa65831a30a90d59a09619";
|
|
8506
|
+
};
|
|
8507
|
+
};
|
|
8508
|
+
readonly nativeToken: "cx0000000000000000000000000000000000000000";
|
|
8509
|
+
readonly bnUSD: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
8510
|
+
readonly nid: "0x1";
|
|
8511
|
+
};
|
|
8512
|
+
};
|
|
8513
|
+
declare const HubVaultSymbols: readonly ["sodaAVAX", "sodaBNB", "sodaETH", "sodaBTC", "sodaSUI", "sodaINJ", "sodaXLM", "sodaSOL", "sodaSODA", "sodaUSDT", "sodaUSDC", "bnUSD", "sodaPOL", "sodaNIBI", "sodaS", "IbnUSD"];
|
|
8514
|
+
type HubVaultSymbol = (typeof HubVaultSymbols)[number];
|
|
8515
|
+
declare const hubVaults: {
|
|
8516
|
+
readonly IbnUSD: {
|
|
8517
|
+
readonly address: "0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51";
|
|
8518
|
+
readonly reserves: ["0x654DdDf32a9a2aC53f5FB54bf1e93F66791f8047", "0xddf6AD38F9C9451C1F4cDf369040F6869e37393e", "0x1559B52d2e165da1505a542EA37C543c9137f52a"];
|
|
8519
|
+
};
|
|
8520
|
+
readonly sodaS: {
|
|
8521
|
+
readonly address: "0x62ecc3eeb80a162c57624b3ff80313fe69f5203e";
|
|
8522
|
+
readonly reserves: ["0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38"];
|
|
8523
|
+
};
|
|
8524
|
+
readonly sodaNIBI: {
|
|
8525
|
+
readonly address: "0xc6c85287a8b173a509c2f198bb719a8a5a2d0c68";
|
|
8526
|
+
readonly reserves: ["0xe0064414c2c1a636a9424c7a17d86fbf7fd3f190"];
|
|
8527
|
+
};
|
|
8528
|
+
readonly sodaPOL: {
|
|
8529
|
+
readonly address: "0x208ed38f4783328aa9ebfec360d32e7520a9b779";
|
|
8530
|
+
readonly reserves: ["0x9ee17486571917837210824b0d4cadfe3b324d12"];
|
|
8531
|
+
};
|
|
8532
|
+
readonly bnUSD: {
|
|
8533
|
+
readonly address: "0xe801ca34e19abcbfea12025378d19c4fbe250131";
|
|
8534
|
+
readonly reserves: ["0xabbb91c0617090f0028bdc27597cd0d038f3a833", "0xbdf1f453fcb61424011bbddcb96cfdb30f3fe876", "0x94dc79ce9c515ba4ae4d195da8e6ab86c69bfc38", "0x5ce6c1c51ff762cf3acd21396257046f694168b6", "0xdf5639d91359866f266b56d60d98ede9feedd100", "0x238384ae2b4f0ec189ecb5031859ba306b2679c5", "0x419ca9054e44e94ceab52846ecdc3997439bbca6", "0x18f85f9e80ff9496eebd5979a051af16ce751567", "0x289cda1043b4ce26bdca3c12e534f56b24308a5b", "0x23225ab8e63fca4070296678cb46566d57e1bbe3", "0x14c65b1cdc0b821569081b1f77342da0d0cbf439", "0xdf23097b9aeb917bf8fb70e99b6c528fffa35364", "0x11b93c162aabffd026539bb3b9f9ec22c8b7ef8a", "0x69425ffb14704124a58d6f69d510f74a59d9a5bc", "0x9d4b663eb075d2a1c7b8eaefb9eccc0510388b51"];
|
|
8535
|
+
};
|
|
8536
|
+
readonly sodaSODA: {
|
|
8537
|
+
readonly address: "0x21685e341de7844135329914be6bd8d16982d834";
|
|
8538
|
+
readonly reserves: ["0x7c7d53eecda37a87ce0d5bf8e0b24512a48dc963"];
|
|
8539
|
+
};
|
|
8540
|
+
readonly sodaAVAX: {
|
|
8541
|
+
readonly address: "0x14238d267557e9d799016ad635b53cd15935d290";
|
|
8542
|
+
readonly reserves: ["0xc9e4f0b6195f389d9d2b639f2878b7674eb9d8cd"];
|
|
8543
|
+
};
|
|
8544
|
+
readonly sodaBNB: {
|
|
8545
|
+
readonly address: "0x40cd41b35db9e5109ae7e54b44de8625db320e6b";
|
|
8546
|
+
readonly reserves: ["0x13b70564b1ec12876b20fab5d1bb630311312f4f"];
|
|
8547
|
+
};
|
|
8548
|
+
readonly sodaETH: {
|
|
8549
|
+
readonly address: "0x4effb5813271699683c25c734f4dabc45b363709";
|
|
8550
|
+
readonly reserves: ["0x70178089842be7f8e4726b33f0d1569db8021faa", "0xad332860dd3b6f0e63f4f66e9457900917ac78cd", "0xdcd9578b51ef55239b6e68629d822a8d97c95b86", "0x57fc2ac5701e463ae261adbd6c99fbeb48ce5293", "0x50c42deacd8fc9773493ed674b675be577f2634b"];
|
|
8551
|
+
};
|
|
8552
|
+
readonly sodaBTC: {
|
|
8553
|
+
readonly address: "0x7a1a5555842ad2d0ed274d09b5c4406a95799d5d";
|
|
8554
|
+
readonly reserves: ["0x2803a23a3ba6b09e57d1c71dec0d9efdbb00a27f", "0xfb0acb1b2720b620935f50a6dd3f7fea52b2fcbe", "0x96fc8540736f1598b7e235e6de8814062b3b5d3b", "0xd8a24c71fea5bb81c66c01e532de7d9b11e13905"];
|
|
8555
|
+
};
|
|
8556
|
+
readonly sodaSUI: {
|
|
8557
|
+
readonly address: "0xdc5b4b00f98347e95b9f94911213dab4c687e1e3";
|
|
8558
|
+
readonly reserves: ["0x4676b2a551b25c04e235553c1c81019337384673"];
|
|
8559
|
+
};
|
|
8560
|
+
readonly sodaINJ: {
|
|
8561
|
+
readonly address: "0x1f22279c89b213944b7ea41dacb0a868ddcdfd13";
|
|
8562
|
+
readonly reserves: ["0xd375590b4955f6ea5623f799153f9b787a3bd319"];
|
|
8563
|
+
};
|
|
8564
|
+
readonly sodaXLM: {
|
|
8565
|
+
readonly address: "0x6bc8c37cba91f76e68c9e6d689a9c21e4d32079b";
|
|
8566
|
+
readonly reserves: ["0x8ac68af223907fb1b893086601a3d99e00f2fa9d"];
|
|
8567
|
+
};
|
|
8568
|
+
readonly sodaSOL: {
|
|
8569
|
+
readonly address: "0xdea692287e2ce8cb08fa52917be0f16b1dacdc87";
|
|
8570
|
+
readonly reserves: ["0x0c09e69a4528945de6d16c7e469dea6996fdf636"];
|
|
8571
|
+
};
|
|
8572
|
+
readonly sodaUSDT: {
|
|
8573
|
+
readonly address: "0xbdf1f453fcb61424011bbddcb96cfdb30f3fe876";
|
|
8574
|
+
readonly reserves: ["0x41fd5c169e014e2a657b9de3553f7a7b735fe47a", "0xc168067d95109003805ac865ae556e8476dc69bc", "0x3c0a80c6a1110fc80309382b3989ec626c135ee9", "0x6047828dc181963ba44974801ff68e538da5eaf9"];
|
|
8575
|
+
};
|
|
8576
|
+
readonly sodaUSDC: {
|
|
8577
|
+
readonly address: "0xabbb91c0617090f0028bdc27597cd0d038f3a833";
|
|
8578
|
+
readonly reserves: ["0x41abf4b1559ff709ef8150079bcb26db1fffd117", "0x72e852545b024ddcbc5b70c1bcbdaa025164259c", "0xb7c213cbd24967de9838fa014668fddb338f724b", "0xdb7bda65c3a1c51d64dc4444e418684677334109", "0xa36893ba308b332fdebfa95916d1df3a2e3cf8b3", "0x29219dd400f2bf60e5a23d13be72b486d4038894", "0x5635369c8a29a081d26c2e9e28012fca548ba0cb", "0x3d73437dd81b3f9ec82752beb1752f03a8531710", "0x4bc1211faa06fb50ff61a70331f56167ae511057", "0x348007b53f25a9a857ab8ea81ec9e3ccbcf440f2", "0xc3f020057510ffe10ceb882e1b48238b43d78a5e", "0x9d58508ad10d34048a11640735ca5075bba07b35"];
|
|
8579
|
+
};
|
|
8580
|
+
};
|
|
8581
|
+
declare const bnUSDLegacySpokeChainIds: readonly ["0x1.icon", "sui", "stellar"];
|
|
8582
|
+
declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "injective-1" | "sui" | "solana" | "stellar")[];
|
|
8583
|
+
declare const bnUSDLegacyTokens: readonly [{
|
|
8584
|
+
readonly symbol: "bnUSD";
|
|
8585
|
+
readonly name: "bnUSD";
|
|
8586
|
+
readonly decimals: 18;
|
|
8587
|
+
readonly address: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
8588
|
+
}, {
|
|
8589
|
+
readonly symbol: "bnUSD";
|
|
8590
|
+
readonly name: "legacybnUSD";
|
|
8591
|
+
readonly decimals: 9;
|
|
8592
|
+
readonly address: "0x03917a812fe4a6d6bc779c5ab53f8a80ba741f8af04121193fc44e0f662e2ceb::balanced_dollar::BALANCED_DOLLAR";
|
|
8593
|
+
}, {
|
|
8594
|
+
readonly symbol: "bnUSD";
|
|
8595
|
+
readonly name: "legacybnUSD";
|
|
8596
|
+
readonly decimals: 18;
|
|
8597
|
+
readonly address: "CCT4ZYIYZ3TUO2AWQFEOFGBZ6HQP3GW5TA37CK7CRZVFRDXYTHTYX7KP";
|
|
8598
|
+
}];
|
|
8599
|
+
declare const bnUSDNewTokens: ({
|
|
8600
|
+
readonly symbol: "bnUSD";
|
|
8601
|
+
readonly name: "bnUSD";
|
|
8602
|
+
readonly decimals: 18;
|
|
8603
|
+
readonly address: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
|
|
8604
|
+
} | {
|
|
8605
|
+
readonly symbol: "bnUSD";
|
|
8606
|
+
readonly name: "bnUSD";
|
|
8607
|
+
readonly decimals: 9;
|
|
8608
|
+
readonly address: "3rSPCLNEF7Quw4wX8S1NyKivELoyij8eYA2gJwBgt4V5";
|
|
8609
|
+
} | {
|
|
8610
|
+
readonly symbol: "bnUSD";
|
|
8611
|
+
readonly name: "bnUSD";
|
|
8612
|
+
readonly decimals: 18;
|
|
8613
|
+
readonly address: "0x6958a4CBFe11406E2a1c1d3a71A1971aD8B3b92F";
|
|
8614
|
+
} | {
|
|
8615
|
+
readonly symbol: "bnUSD";
|
|
8616
|
+
readonly name: "bnUSD";
|
|
8617
|
+
readonly decimals: 18;
|
|
8618
|
+
readonly address: "0x043fb7e23350Dd5b77dE5E228B528763DEcb9131";
|
|
8619
|
+
} | {
|
|
8620
|
+
readonly symbol: "bnUSD";
|
|
8621
|
+
readonly name: "bnUSD";
|
|
8622
|
+
readonly decimals: 18;
|
|
8623
|
+
readonly address: "0xA256dd181C3f6E5eC68C6869f5D50a712d47212e";
|
|
8624
|
+
} | {
|
|
8625
|
+
readonly symbol: "bnUSD";
|
|
8626
|
+
readonly name: "bnUSD";
|
|
8627
|
+
readonly decimals: 18;
|
|
8628
|
+
readonly address: "0xAcfab3F31C0a18559D78556BBf297EC29c6cf8aa";
|
|
8629
|
+
} | {
|
|
8630
|
+
readonly symbol: "bnUSD";
|
|
8631
|
+
readonly name: "bnUSD";
|
|
8632
|
+
readonly decimals: 18;
|
|
8633
|
+
readonly address: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
|
|
8634
|
+
} | {
|
|
8635
|
+
readonly symbol: "bnUSD";
|
|
8636
|
+
readonly name: "bnUSD";
|
|
8637
|
+
readonly decimals: 18;
|
|
8638
|
+
readonly address: "0x8428FedC020737a5A2291F46cB1B80613eD71638";
|
|
8639
|
+
} | {
|
|
8640
|
+
readonly symbol: "bnUSD";
|
|
8641
|
+
readonly name: "bnUSD";
|
|
8642
|
+
readonly decimals: 18;
|
|
8643
|
+
readonly address: "0x39E77f86C1B1f3fbAb362A82b49D2E86C09659B4";
|
|
8644
|
+
} | {
|
|
8645
|
+
readonly symbol: "bnUSD";
|
|
8646
|
+
readonly name: "bnUSD";
|
|
8647
|
+
readonly decimals: 18;
|
|
8648
|
+
readonly address: "factory/inj1d036ftaatxpkqsu9hja8r24rv3v33chz3appxp/bnUSD";
|
|
8649
|
+
} | {
|
|
8650
|
+
readonly symbol: "bnUSD";
|
|
8651
|
+
readonly name: "bnUSD";
|
|
8652
|
+
readonly decimals: 7;
|
|
8653
|
+
readonly address: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
|
|
8654
|
+
} | {
|
|
8655
|
+
readonly symbol: "bnUSD";
|
|
8656
|
+
readonly name: "bnUSD";
|
|
8657
|
+
readonly decimals: 9;
|
|
8658
|
+
readonly address: "0xff4de2b2b57dd7611d2812d231a467d007b702a101fd5c7ad3b278257cddb507::bnusd::BNUSD";
|
|
8659
|
+
})[];
|
|
8660
|
+
declare const isLegacybnUSDChainId: (chainId: SpokeChainId) => boolean;
|
|
8661
|
+
declare const isNewbnUSDChainId: (chainId: SpokeChainId) => boolean;
|
|
8662
|
+
declare const isLegacybnUSDToken: (token: Token | string) => boolean;
|
|
8663
|
+
declare const isNewbnUSDToken: (token: Token | string) => boolean;
|
|
8664
|
+
declare const getAllLegacybnUSDTokens: () => {
|
|
8665
|
+
token: LegacybnUSDToken;
|
|
8666
|
+
chainId: LegacybnUSDChainId;
|
|
8667
|
+
}[];
|
|
8668
|
+
declare const hubAssets: Record<SpokeChainId, Record<Address | string, {
|
|
8669
|
+
asset: Address;
|
|
8670
|
+
decimal: number;
|
|
8671
|
+
vault: Address;
|
|
8672
|
+
symbol: string;
|
|
8673
|
+
name: string;
|
|
8674
|
+
}>>;
|
|
8675
|
+
declare const DEFAULT_RELAYER_API_ENDPOINT = "https://xcall-relay.nw.iconblockchain.xyz";
|
|
8676
|
+
declare const getSolverConfig: (chainId: HubChainId) => SolverConfig;
|
|
8677
|
+
declare const getSupportedSolverTokens: (chainId: SpokeChainId) => readonly Token[];
|
|
8678
|
+
declare const isSolverSupportedToken: (chainId: SpokeChainId, token: string) => boolean;
|
|
8679
|
+
declare const getMoneyMarketConfig: (chainId: HubChainId) => MoneyMarketConfig;
|
|
8680
|
+
declare const moneyMarketSupportedTokens: {
|
|
8681
|
+
readonly "0xa86a.avax": readonly [{
|
|
8682
|
+
readonly symbol: "AVAX";
|
|
8683
|
+
readonly name: "Avalanche";
|
|
8684
|
+
readonly decimals: 18;
|
|
8685
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8686
|
+
}, {
|
|
8687
|
+
readonly symbol: "USDT";
|
|
8688
|
+
readonly name: "Tether USD";
|
|
8689
|
+
readonly decimals: 6;
|
|
8690
|
+
readonly address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7";
|
|
8691
|
+
}, {
|
|
8692
|
+
readonly symbol: "USDC";
|
|
8693
|
+
readonly name: "USD Coin";
|
|
8694
|
+
readonly decimals: 6;
|
|
8695
|
+
readonly address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
|
|
8696
|
+
}, {
|
|
8697
|
+
readonly symbol: "bnUSD";
|
|
8698
|
+
readonly name: "bnUSD";
|
|
8699
|
+
readonly decimals: 18;
|
|
8700
|
+
readonly address: "0x6958a4CBFe11406E2a1c1d3a71A1971aD8B3b92F";
|
|
8701
|
+
}];
|
|
8702
|
+
readonly "0xa4b1.arbitrum": readonly [{
|
|
8703
|
+
readonly symbol: "ETH";
|
|
8704
|
+
readonly name: "Ethereum";
|
|
8705
|
+
readonly decimals: 18;
|
|
8706
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8707
|
+
}, {
|
|
8708
|
+
readonly symbol: "bnUSD";
|
|
8709
|
+
readonly name: "bnUSD";
|
|
8710
|
+
readonly decimals: 18;
|
|
8711
|
+
readonly address: "0xA256dd181C3f6E5eC68C6869f5D50a712d47212e";
|
|
8712
|
+
}, {
|
|
8713
|
+
readonly symbol: "WBTC";
|
|
8714
|
+
readonly name: "Wrapped BTC";
|
|
8715
|
+
readonly decimals: 8;
|
|
8716
|
+
readonly address: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f";
|
|
8717
|
+
}, {
|
|
8718
|
+
readonly symbol: "tBTC";
|
|
8719
|
+
readonly name: "Arbitrum tBTC v2";
|
|
8720
|
+
readonly decimals: 18;
|
|
8721
|
+
readonly address: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40";
|
|
8722
|
+
}, {
|
|
8723
|
+
readonly symbol: "USDT";
|
|
8724
|
+
readonly name: "TetherToken";
|
|
8725
|
+
readonly decimals: 6;
|
|
8726
|
+
readonly address: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9";
|
|
8727
|
+
}, {
|
|
8728
|
+
readonly symbol: "USDC";
|
|
8729
|
+
readonly name: "USD Coin (USDC)";
|
|
8730
|
+
readonly decimals: 6;
|
|
8731
|
+
readonly address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
8732
|
+
}];
|
|
8733
|
+
readonly "0x2105.base": readonly [{
|
|
8734
|
+
readonly symbol: "ETH";
|
|
8735
|
+
readonly name: "Ethereum";
|
|
8736
|
+
readonly decimals: 18;
|
|
8737
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8738
|
+
}, {
|
|
8739
|
+
readonly symbol: "bnUSD";
|
|
8740
|
+
readonly name: "bnUSD";
|
|
8741
|
+
readonly decimals: 18;
|
|
8742
|
+
readonly address: "0xAcfab3F31C0a18559D78556BBf297EC29c6cf8aa";
|
|
8743
|
+
}, {
|
|
8744
|
+
readonly symbol: "USDC";
|
|
8745
|
+
readonly name: "USD Coin";
|
|
8746
|
+
readonly decimals: 6;
|
|
8747
|
+
readonly address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
8748
|
+
}, {
|
|
8749
|
+
readonly symbol: "cbBTC";
|
|
8750
|
+
readonly name: "Coinbase Wrapped BTC";
|
|
8751
|
+
readonly decimals: 8;
|
|
8752
|
+
readonly address: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
|
|
8753
|
+
}];
|
|
8754
|
+
readonly "0xa.optimism": readonly [{
|
|
8755
|
+
readonly symbol: "ETH";
|
|
8756
|
+
readonly name: "Ethereum";
|
|
8757
|
+
readonly decimals: 18;
|
|
8758
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8759
|
+
}, {
|
|
8760
|
+
readonly symbol: "bnUSD";
|
|
8761
|
+
readonly name: "bnUSD";
|
|
8762
|
+
readonly decimals: 18;
|
|
8763
|
+
readonly address: "0xF4f7dC27c17470a26d0de9039Cf0EA5045F100E8";
|
|
8764
|
+
}, {
|
|
8765
|
+
readonly symbol: "USDC";
|
|
8766
|
+
readonly name: "USD Coin";
|
|
8767
|
+
readonly decimals: 6;
|
|
8768
|
+
readonly address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
|
|
8769
|
+
}, {
|
|
8770
|
+
readonly symbol: "USDT";
|
|
8771
|
+
readonly name: "Tether USD";
|
|
8772
|
+
readonly decimals: 6;
|
|
8773
|
+
readonly address: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58";
|
|
8774
|
+
}];
|
|
8775
|
+
readonly "0x89.polygon": readonly [{
|
|
8776
|
+
readonly symbol: "POL";
|
|
8777
|
+
readonly name: "Polygon";
|
|
8778
|
+
readonly decimals: 18;
|
|
8779
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8780
|
+
}, {
|
|
8781
|
+
readonly symbol: "bnUSD";
|
|
8782
|
+
readonly name: "bnUSD";
|
|
8783
|
+
readonly decimals: 18;
|
|
8784
|
+
readonly address: "0x39E77f86C1B1f3fbAb362A82b49D2E86C09659B4";
|
|
8785
|
+
}, {
|
|
8786
|
+
readonly symbol: "USDC";
|
|
8787
|
+
readonly name: "USD Coin";
|
|
8788
|
+
readonly decimals: 6;
|
|
8789
|
+
readonly address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
|
|
8790
|
+
}];
|
|
8791
|
+
readonly "0x38.bsc": readonly [{
|
|
8792
|
+
readonly symbol: "BNB";
|
|
8793
|
+
readonly name: "BNB";
|
|
8794
|
+
readonly decimals: 18;
|
|
8795
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8796
|
+
}, {
|
|
8797
|
+
readonly symbol: "ETHB";
|
|
8798
|
+
readonly name: "Ethereum BSC";
|
|
8799
|
+
readonly decimals: 18;
|
|
8800
|
+
readonly address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8";
|
|
8801
|
+
}, {
|
|
8802
|
+
readonly symbol: "BTCB";
|
|
8803
|
+
readonly name: "Bitcoin BSC";
|
|
8804
|
+
readonly decimals: 18;
|
|
8805
|
+
readonly address: "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c";
|
|
8806
|
+
}, {
|
|
8807
|
+
readonly symbol: "bnUSD";
|
|
8808
|
+
readonly name: "bnUSD";
|
|
8809
|
+
readonly decimals: 18;
|
|
8810
|
+
readonly address: "0x8428FedC020737a5A2291F46cB1B80613eD71638";
|
|
8811
|
+
}];
|
|
8812
|
+
readonly solana: readonly [{
|
|
8813
|
+
readonly symbol: "SOL";
|
|
8814
|
+
readonly name: "Solana";
|
|
8815
|
+
readonly decimals: 9;
|
|
8816
|
+
readonly address: "11111111111111111111111111111111";
|
|
8817
|
+
}, {
|
|
8818
|
+
readonly symbol: "bnUSD";
|
|
8819
|
+
readonly name: "bnUSD";
|
|
8820
|
+
readonly decimals: 9;
|
|
8821
|
+
readonly address: "3rSPCLNEF7Quw4wX8S1NyKivELoyij8eYA2gJwBgt4V5";
|
|
8822
|
+
}, {
|
|
8823
|
+
readonly symbol: "USDC";
|
|
8824
|
+
readonly name: "USD Coin";
|
|
8825
|
+
readonly decimals: 6;
|
|
8826
|
+
readonly address: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
8827
|
+
}];
|
|
8828
|
+
readonly "0x1.icon": readonly [{
|
|
8829
|
+
readonly symbol: "bnUSD";
|
|
8830
|
+
readonly name: "bnUSD";
|
|
8831
|
+
readonly decimals: 18;
|
|
8832
|
+
readonly address: "cx88fd7df7ddff82f7cc735c871dc519838cb235bb";
|
|
8833
|
+
}];
|
|
8834
|
+
readonly stellar: readonly [{
|
|
8835
|
+
readonly symbol: "XLM";
|
|
8836
|
+
readonly name: "Stellar Lumens";
|
|
8837
|
+
readonly decimals: 7;
|
|
8838
|
+
readonly address: "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA";
|
|
8839
|
+
}, {
|
|
8840
|
+
readonly symbol: "bnUSD";
|
|
8841
|
+
readonly name: "bnUSD";
|
|
8842
|
+
readonly decimals: 7;
|
|
8843
|
+
readonly address: "CD6YBFFWMU2UJHX2NGRJ7RN76IJVTCC7MRA46DUBXNB7E6W7H7JRJ2CX";
|
|
8844
|
+
}];
|
|
8845
|
+
readonly sui: readonly [{
|
|
8846
|
+
readonly symbol: "SUI";
|
|
8847
|
+
readonly name: "SUI";
|
|
8848
|
+
readonly decimals: 9;
|
|
8849
|
+
readonly address: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI";
|
|
8850
|
+
}, {
|
|
8851
|
+
readonly symbol: "bnUSD";
|
|
8852
|
+
readonly name: "bnUSD";
|
|
8853
|
+
readonly decimals: 9;
|
|
8854
|
+
readonly address: "0xff4de2b2b57dd7611d2812d231a467d007b702a101fd5c7ad3b278257cddb507::bnusd::BNUSD";
|
|
8855
|
+
}, {
|
|
8856
|
+
readonly symbol: "USDC";
|
|
8857
|
+
readonly name: "USD Coin";
|
|
8858
|
+
readonly decimals: 6;
|
|
8859
|
+
readonly address: "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC";
|
|
8860
|
+
}];
|
|
8861
|
+
readonly "injective-1": readonly [{
|
|
8862
|
+
readonly symbol: "INJ";
|
|
8863
|
+
readonly name: "Injective";
|
|
8864
|
+
readonly decimals: 18;
|
|
8865
|
+
readonly address: "inj";
|
|
8866
|
+
}, {
|
|
8867
|
+
readonly symbol: "bnUSD";
|
|
8868
|
+
readonly name: "bnUSD";
|
|
8869
|
+
readonly decimals: 18;
|
|
8870
|
+
readonly address: "factory/inj1d036ftaatxpkqsu9hja8r24rv3v33chz3appxp/bnUSD";
|
|
8871
|
+
}, {
|
|
8872
|
+
readonly symbol: "USDC";
|
|
8873
|
+
readonly name: "USD Coin";
|
|
8874
|
+
readonly decimals: 6;
|
|
8875
|
+
readonly address: "ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E";
|
|
8876
|
+
}];
|
|
8877
|
+
readonly nibiru: readonly [];
|
|
8878
|
+
readonly sonic: readonly [{
|
|
8879
|
+
readonly symbol: "S";
|
|
8880
|
+
readonly name: "Sonic";
|
|
8881
|
+
readonly decimals: 18;
|
|
8882
|
+
readonly address: "0x0000000000000000000000000000000000000000";
|
|
8883
|
+
}, {
|
|
8884
|
+
readonly symbol: "WETH";
|
|
8885
|
+
readonly name: "Wrapped Ether";
|
|
8886
|
+
readonly decimals: 18;
|
|
8887
|
+
readonly address: "0x50c42dEAcD8Fc9773493ED674b675bE577f2634b";
|
|
8888
|
+
}, {
|
|
8889
|
+
readonly symbol: "USDC";
|
|
8890
|
+
readonly name: "USD Coin";
|
|
8891
|
+
readonly decimals: 6;
|
|
8892
|
+
readonly address: "0x29219dd400f2Bf60E5a23d13Be72B486D4038894";
|
|
8893
|
+
}, {
|
|
8894
|
+
readonly symbol: "USDT";
|
|
8895
|
+
readonly name: "Tether USD";
|
|
8896
|
+
readonly decimals: 6;
|
|
8897
|
+
readonly address: "0x6047828dc181963ba44974801FF68e538dA5eaF9";
|
|
8898
|
+
}, {
|
|
8899
|
+
readonly symbol: "wS";
|
|
8900
|
+
readonly name: "Wrapped Sonic";
|
|
8901
|
+
readonly decimals: 18;
|
|
8902
|
+
readonly address: "0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38";
|
|
8903
|
+
}];
|
|
8904
|
+
};
|
|
8905
|
+
declare const isMoneyMarketSupportedToken: (chainId: SpokeChainId, token: string) => boolean;
|
|
8906
|
+
declare const getSupportedMoneyMarketTokens: (chainId: SpokeChainId) => readonly Token[];
|
|
8907
|
+
declare const hubVaultsAddressSet: Set<`0x${string}`>;
|
|
8908
|
+
declare const moneyMarketReserveHubAssetsSet: Set<`0x${string}`>;
|
|
8909
|
+
declare const isMoneyMarketReserveHubAsset: (hubAsset: Address) => boolean;
|
|
8910
|
+
declare const moneyMarketReserveAssets: readonly [...("0x9D4b663Eb075d2a1C7B8eaEFB9eCCC0510388B51" | "0x62ecc3eeb80a162c57624b3ff80313fe69f5203e" | "0xc6c85287a8b173a509c2f198bb719a8a5a2d0c68" | "0x208ed38f4783328aa9ebfec360d32e7520a9b779" | "0xe801ca34e19abcbfea12025378d19c4fbe250131" | "0xabbb91c0617090f0028bdc27597cd0d038f3a833" | "0xbdf1f453fcb61424011bbddcb96cfdb30f3fe876" | "0x21685e341de7844135329914be6bd8d16982d834" | "0x14238d267557e9d799016ad635b53cd15935d290" | "0x40cd41b35db9e5109ae7e54b44de8625db320e6b" | "0x4effb5813271699683c25c734f4dabc45b363709" | "0x7a1a5555842ad2d0ed274d09b5c4406a95799d5d" | "0xdc5b4b00f98347e95b9f94911213dab4c687e1e3" | "0x1f22279c89b213944b7ea41dacb0a868ddcdfd13" | "0x6bc8c37cba91f76e68c9e6d689a9c21e4d32079b" | "0xdea692287e2ce8cb08fa52917be0f16b1dacdc87")[], `0x${string}`];
|
|
8911
|
+
declare const isMoneyMarketReserveAsset: (asset: Address) => boolean;
|
|
8912
|
+
declare const originalAssetTohubAssetMap: Map<SpokeChainId, Map<OriginalAssetAddress, HubAssetInfo>>;
|
|
8913
|
+
declare const hubAssetToOriginalAssetMap: Map<SpokeChainId, Map<Address, OriginalAssetAddress>>;
|
|
8914
|
+
declare const chainIdToHubAssetsMap: Map<SpokeChainId, Map<Address, HubAssetInfo>>;
|
|
8915
|
+
declare const supportedHubAssets: Set<Address>;
|
|
8916
|
+
declare const spokeChainIdsSet: Set<"0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "nibiru" | "injective-1" | "sui" | "solana" | "0x1.icon" | "stellar">;
|
|
8917
|
+
declare const getHubAssetInfo: (chainId: SpokeChainId, asset: OriginalAssetAddress) => HubAssetInfo | undefined;
|
|
8918
|
+
declare const isValidOriginalAssetAddress: (chainId: SpokeChainId, asset: OriginalAssetAddress) => boolean;
|
|
8919
|
+
declare const getOriginalAssetAddress: (chainId: SpokeChainId, hubAsset: Address) => OriginalAssetAddress | undefined;
|
|
8920
|
+
declare const isValidHubAsset: (hubAsset: Address) => boolean;
|
|
8921
|
+
declare const isValidChainHubAsset: (chainId: SpokeChainId, hubAsset: Address) => boolean;
|
|
8922
|
+
declare const isValidSpokeChainId: (chainId: SpokeChainId) => boolean;
|
|
8923
|
+
declare const isValidIntentRelayChainId: (chainId: bigint) => boolean;
|
|
8924
|
+
declare const supportedHubChains: HubChainId[];
|
|
8925
|
+
declare const supportedSpokeChains: SpokeChainId[];
|
|
8926
|
+
declare const intentRelayChainIdToSpokeChainIdMap: Map<IntentRelayChainId, SpokeChainId>;
|
|
8927
|
+
declare const supportedTokensPerChain: Map<SpokeChainId, readonly Token[]>;
|
|
8928
|
+
declare const getSpokeChainIdFromIntentRelayChainId: (intentRelayChainId: IntentRelayChainId) => SpokeChainId;
|
|
8929
|
+
declare const isNativeToken: (chainId: SpokeChainId, token: Token | string) => boolean;
|
|
8930
|
+
|
|
8877
8931
|
declare function isEvmHubChainConfig(value: HubChainConfig): value is EvmHubChainConfig;
|
|
8878
8932
|
declare function isEvmSpokeChainConfig(value: SpokeChainConfig): value is EvmSpokeChainConfig;
|
|
8879
8933
|
declare function isEvmUninitializedConfig(value: EvmUninitializedConfig | EvmInitializedConfig): value is EvmUninitializedConfig;
|
|
@@ -8911,5 +8965,9 @@ declare function isMoneyMarketSupplyUnknownError(error: unknown): error is Money
|
|
|
8911
8965
|
declare function isMoneyMarketBorrowUnknownError(error: unknown): error is MoneyMarketUnknownError<'BORROW_UNKNOWN_ERROR'>;
|
|
8912
8966
|
declare function isMoneyMarketWithdrawUnknownError(error: unknown): error is MoneyMarketUnknownError<'WITHDRAW_UNKNOWN_ERROR'>;
|
|
8913
8967
|
declare function isMoneyMarketRepayUnknownError(error: unknown): error is MoneyMarketUnknownError<'REPAY_UNKNOWN_ERROR'>;
|
|
8968
|
+
declare function isIcxMigrateParams(value: unknown): value is IcxMigrateParams;
|
|
8969
|
+
declare function isUnifiedBnUSDMigrateParams(value: unknown): value is UnifiedBnUSDMigrateParams;
|
|
8970
|
+
declare function isBalnMigrateParams(value: unknown): value is BalnMigrateParams;
|
|
8971
|
+
declare function isIcxCreateRevertMigrationParams(value: unknown): value is IcxCreateRevertMigrationParams;
|
|
8914
8972
|
|
|
8915
|
-
export { type AggregatedReserveData, type AssetInfo, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex,
|
|
8973
|
+
export { type AggregatedReserveData, type AssetInfo, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, BnUSDMigrationService, type BnUSDRevertMigrationParams, type BorrowInfo, ChainIdToIntentRelayChainId, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DetailedLock, EVM_CHAIN_IDS, EVM_SPOKE_CHAIN_IDS, Erc20Service, EvmAssetManagerService, type EvmChainId, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, 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 GasEstimateType, type GetAddressType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeChainIdType, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, 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 IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, type IconRawTransaction, type IconReturnType, type IconSpokeChainConfig, IconSpokeProvider, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type InjectiveGasEstimate, 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, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, 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 NewbnUSDChainId, 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 SolanaGasEstimate, 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 StellarGasEstimate, type StellarReturnType, type StellarRpcConfig, type StellarSpokeChainConfig, StellarSpokeProvider, type SubmitTxParams, type SubmitTxResponse, type SuiGasEstimate, type SuiRawTransaction, type SuiReturnType, type SuiSpokeChainConfig, SuiSpokeProvider, SupportedMigrationTokens, type TokenInfo, type TxReturnType, type UnifiedBnUSDMigrateParams, type UnstakeRequest, type UserReserveData, VAULT_TOKEN_DECIMALS, type VaultReserves, type VaultType, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WithdrawInfo, assetManagerAbi, balnSwapAbi, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateFeeAmount, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, getAllLegacybnUSDTokens, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, intentRelayChainIdToSpokeChainIdMap, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconSpokeProvider, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveSpokeProvider, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketReserveAsset, isMoneyMarketReserveHubAsset, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketSupportedToken, isMoneyMarketWithdrawUnknownError, isNativeToken, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isResponseAddressType, isResponseSigningType, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, newbnUSDSpokeChainIds, originalAssetTohubAssetMap, poolAbi, randomUint256, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, submitTransaction, supportedHubAssets, supportedHubChains, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, variableDebtTokenAbi, vaultTokenAbi, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|