@sodax/sdk 0.0.1-rc.43 → 0.0.1-rc.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +42 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +42 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -6650,7 +6650,7 @@ declare class SonicSpokeService {
|
|
|
6650
6650
|
*/
|
|
6651
6651
|
static isBorrowApproved(from: Address, borrowInfo: BorrowInfo, spokeProvider: SonicSpokeProvider, spender?: HubAddress): Promise<Result<boolean>>;
|
|
6652
6652
|
static approveBorrow<R extends boolean = false>(from: Address, borrowInfo: BorrowInfo, spokeProvider: SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
|
|
6653
|
-
static buildWithdrawData(from: Address, withdrawInfo: WithdrawInfo, amount: bigint, spokeProvider: SonicSpokeProvider, moneyMarketService: MoneyMarketService
|
|
6653
|
+
static buildWithdrawData(from: Address, withdrawInfo: WithdrawInfo, amount: bigint, spokeProvider: SonicSpokeProvider, moneyMarketService: MoneyMarketService): Promise<Hex$1>;
|
|
6654
6654
|
}
|
|
6655
6655
|
|
|
6656
6656
|
declare class CustomSorobanServer extends SorobanRpc.Server {
|
|
@@ -11094,6 +11094,13 @@ declare const spokeChainConfig: {
|
|
|
11094
11094
|
readonly address: "0xA28C70F92a1B2513edCdDD29c2E5195a4B785aB2";
|
|
11095
11095
|
readonly xChainId: "hyper";
|
|
11096
11096
|
};
|
|
11097
|
+
readonly USDC: {
|
|
11098
|
+
readonly symbol: "USDC";
|
|
11099
|
+
readonly name: "USD Coin";
|
|
11100
|
+
readonly decimals: 6;
|
|
11101
|
+
readonly address: "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
11102
|
+
readonly xChainId: "hyper";
|
|
11103
|
+
};
|
|
11097
11104
|
};
|
|
11098
11105
|
};
|
|
11099
11106
|
readonly lightlink: {
|
package/dist/index.d.ts
CHANGED
|
@@ -6650,7 +6650,7 @@ declare class SonicSpokeService {
|
|
|
6650
6650
|
*/
|
|
6651
6651
|
static isBorrowApproved(from: Address, borrowInfo: BorrowInfo, spokeProvider: SonicSpokeProvider, spender?: HubAddress): Promise<Result<boolean>>;
|
|
6652
6652
|
static approveBorrow<R extends boolean = false>(from: Address, borrowInfo: BorrowInfo, spokeProvider: SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
|
|
6653
|
-
static buildWithdrawData(from: Address, withdrawInfo: WithdrawInfo, amount: bigint, spokeProvider: SonicSpokeProvider, moneyMarketService: MoneyMarketService
|
|
6653
|
+
static buildWithdrawData(from: Address, withdrawInfo: WithdrawInfo, amount: bigint, spokeProvider: SonicSpokeProvider, moneyMarketService: MoneyMarketService): Promise<Hex$1>;
|
|
6654
6654
|
}
|
|
6655
6655
|
|
|
6656
6656
|
declare class CustomSorobanServer extends SorobanRpc.Server {
|
|
@@ -11094,6 +11094,13 @@ declare const spokeChainConfig: {
|
|
|
11094
11094
|
readonly address: "0xA28C70F92a1B2513edCdDD29c2E5195a4B785aB2";
|
|
11095
11095
|
readonly xChainId: "hyper";
|
|
11096
11096
|
};
|
|
11097
|
+
readonly USDC: {
|
|
11098
|
+
readonly symbol: "USDC";
|
|
11099
|
+
readonly name: "USD Coin";
|
|
11100
|
+
readonly decimals: 6;
|
|
11101
|
+
readonly address: "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
11102
|
+
readonly xChainId: "hyper";
|
|
11103
|
+
};
|
|
11097
11104
|
};
|
|
11098
11105
|
};
|
|
11099
11106
|
readonly lightlink: {
|
package/dist/index.mjs
CHANGED
|
@@ -7502,6 +7502,13 @@ var spokeChainConfig = {
|
|
|
7502
7502
|
decimals: 18,
|
|
7503
7503
|
address: "0xA28C70F92a1B2513edCdDD29c2E5195a4B785aB2",
|
|
7504
7504
|
xChainId: HYPEREVM_MAINNET_CHAIN_ID
|
|
7505
|
+
},
|
|
7506
|
+
USDC: {
|
|
7507
|
+
symbol: "USDC",
|
|
7508
|
+
name: "USD Coin",
|
|
7509
|
+
decimals: 6,
|
|
7510
|
+
address: "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
|
|
7511
|
+
xChainId: HYPEREVM_MAINNET_CHAIN_ID
|
|
7505
7512
|
}
|
|
7506
7513
|
}
|
|
7507
7514
|
},
|
|
@@ -8511,6 +8518,13 @@ var hubAssets = {
|
|
|
8511
8518
|
symbol: "SODA",
|
|
8512
8519
|
name: "SODAX",
|
|
8513
8520
|
vault: hubVaults.sodaSODA.address
|
|
8521
|
+
},
|
|
8522
|
+
[spokeChainConfig[HYPEREVM_MAINNET_CHAIN_ID].supportedTokens.USDC.address]: {
|
|
8523
|
+
asset: "0x0f78b995d113712deeb17d96638e9d7525d409c6",
|
|
8524
|
+
decimal: 6,
|
|
8525
|
+
symbol: "USDC",
|
|
8526
|
+
name: "USD Coin",
|
|
8527
|
+
vault: hubVaults.sodaUSDC.address
|
|
8514
8528
|
}
|
|
8515
8529
|
},
|
|
8516
8530
|
[LIGHTLINK_MAINNET_CHAIN_ID]: {
|
|
@@ -8889,7 +8903,12 @@ var solverSupportedTokens = {
|
|
|
8889
8903
|
spokeChainConfig[BSC_MAINNET_CHAIN_ID].supportedTokens.bnUSD,
|
|
8890
8904
|
spokeChainConfig[BSC_MAINNET_CHAIN_ID].supportedTokens.USDC
|
|
8891
8905
|
],
|
|
8892
|
-
[HYPEREVM_MAINNET_CHAIN_ID]: [
|
|
8906
|
+
[HYPEREVM_MAINNET_CHAIN_ID]: [
|
|
8907
|
+
spokeChainConfig[HYPEREVM_MAINNET_CHAIN_ID].supportedTokens.HYPE,
|
|
8908
|
+
spokeChainConfig[HYPEREVM_MAINNET_CHAIN_ID].supportedTokens.bnUSD,
|
|
8909
|
+
spokeChainConfig[HYPEREVM_MAINNET_CHAIN_ID].supportedTokens.SODA,
|
|
8910
|
+
spokeChainConfig[HYPEREVM_MAINNET_CHAIN_ID].supportedTokens.USDC
|
|
8911
|
+
],
|
|
8893
8912
|
[LIGHTLINK_MAINNET_CHAIN_ID]: [
|
|
8894
8913
|
spokeChainConfig[LIGHTLINK_MAINNET_CHAIN_ID].supportedTokens.ETH,
|
|
8895
8914
|
spokeChainConfig[LIGHTLINK_MAINNET_CHAIN_ID].supportedTokens.bnUSD,
|
|
@@ -11790,15 +11809,10 @@ var SonicSpokeService = class _SonicSpokeService {
|
|
|
11790
11809
|
throw new Error("[SonicSpokeService.getWithdrawInfo] Hub asset not found");
|
|
11791
11810
|
}
|
|
11792
11811
|
const vaultAddress = assetConfig.vault;
|
|
11793
|
-
const
|
|
11794
|
-
dataService.getReserveNormalizedIncome(vaultAddress),
|
|
11795
|
-
dataService.getReserveData(vaultAddress)
|
|
11796
|
-
]);
|
|
11797
|
-
const aTokenAddress = reserveData.aTokenAddress;
|
|
11798
|
-
const aTokenAmount = MoneyMarketService.calculateATokenAmount(amount, normalizedIncome);
|
|
11812
|
+
const aTokenAddress = (await dataService.getReserveData(vaultAddress)).aTokenAddress;
|
|
11799
11813
|
return {
|
|
11800
11814
|
aTokenAddress,
|
|
11801
|
-
aTokenAmount,
|
|
11815
|
+
aTokenAmount: amount,
|
|
11802
11816
|
token
|
|
11803
11817
|
};
|
|
11804
11818
|
}
|
|
@@ -11836,7 +11850,7 @@ var SonicSpokeService = class _SonicSpokeService {
|
|
|
11836
11850
|
try {
|
|
11837
11851
|
const spenderAddress = spender ?? await _SonicSpokeService.getUserRouter(from, spokeProvider);
|
|
11838
11852
|
return Erc20Service.isAllowanceValid(
|
|
11839
|
-
withdrawInfo.
|
|
11853
|
+
withdrawInfo.aTokenAddress,
|
|
11840
11854
|
withdrawInfo.aTokenAmount,
|
|
11841
11855
|
from,
|
|
11842
11856
|
spenderAddress,
|
|
@@ -11927,16 +11941,12 @@ var SonicSpokeService = class _SonicSpokeService {
|
|
|
11927
11941
|
}
|
|
11928
11942
|
return spokeProvider.walletProvider.sendTransaction(rawTx);
|
|
11929
11943
|
}
|
|
11930
|
-
static async buildWithdrawData(from, withdrawInfo, amount, spokeProvider, moneyMarketService
|
|
11931
|
-
const userRouter =
|
|
11932
|
-
let token = withdrawInfo.token;
|
|
11933
|
-
if (withdrawInfo.token.toLowerCase() === spokeProvider.chainConfig.nativeToken.toLowerCase()) {
|
|
11934
|
-
token = spokeProvider.chainConfig.addresses.wrappedSonic;
|
|
11935
|
-
}
|
|
11944
|
+
static async buildWithdrawData(from, withdrawInfo, amount, spokeProvider, moneyMarketService) {
|
|
11945
|
+
const userRouter = await _SonicSpokeService.getUserRouter(from, spokeProvider);
|
|
11936
11946
|
const withdrawCall = moneyMarketService.buildWithdrawData(
|
|
11937
11947
|
userRouter,
|
|
11938
11948
|
from,
|
|
11939
|
-
token,
|
|
11949
|
+
withdrawInfo.token,
|
|
11940
11950
|
amount,
|
|
11941
11951
|
spokeProvider.chainConfig.chain.id
|
|
11942
11952
|
);
|
|
@@ -11954,6 +11964,18 @@ var SonicSpokeService = class _SonicSpokeService {
|
|
|
11954
11964
|
],
|
|
11955
11965
|
withdrawCall
|
|
11956
11966
|
)[0];
|
|
11967
|
+
const transferFromCall = Erc20Service.encodeTransferFrom(
|
|
11968
|
+
withdrawInfo.aTokenAddress,
|
|
11969
|
+
from,
|
|
11970
|
+
userRouter,
|
|
11971
|
+
withdrawInfo.aTokenAmount
|
|
11972
|
+
);
|
|
11973
|
+
calls.unshift({
|
|
11974
|
+
address: transferFromCall.address,
|
|
11975
|
+
value: transferFromCall.value,
|
|
11976
|
+
data: transferFromCall.data
|
|
11977
|
+
});
|
|
11978
|
+
console.log("calls", calls);
|
|
11957
11979
|
return encodeContractCalls(calls);
|
|
11958
11980
|
}
|
|
11959
11981
|
};
|
|
@@ -17783,7 +17805,7 @@ var Sodax = class {
|
|
|
17783
17805
|
this.relayerApiEndpoint = config?.relayerApiEndpoint ?? DEFAULT_RELAYER_API_ENDPOINT;
|
|
17784
17806
|
this.hubProvider = new EvmHubProvider(config?.hubProviderConfig);
|
|
17785
17807
|
this.solver = config && config.solver ? new SolverService(config.solver, this.hubProvider, this.relayerApiEndpoint) : new SolverService(void 0, this.hubProvider, this.relayerApiEndpoint);
|
|
17786
|
-
this.moneyMarket = config && config.moneyMarket ? new
|
|
17808
|
+
this.moneyMarket = config && config.moneyMarket ? new MoneyMarketService2(config.moneyMarket, this.hubProvider, this.relayerApiEndpoint) : new MoneyMarketService2(void 0, this.hubProvider, this.relayerApiEndpoint);
|
|
17787
17809
|
this.migration = config && config.migration ? new MigrationService(this.hubProvider, config.migration) : new MigrationService(this.hubProvider);
|
|
17788
17810
|
this.bridge = config && config.bridge ? new BridgeService(this.hubProvider, this.relayerApiEndpoint, config.bridge) : new BridgeService(this.hubProvider, this.relayerApiEndpoint);
|
|
17789
17811
|
this.backendApiService = new BackendApiService(config?.backendApiConfig);
|
|
@@ -19393,7 +19415,7 @@ function formatBasisPoints(value) {
|
|
|
19393
19415
|
}
|
|
19394
19416
|
|
|
19395
19417
|
// src/moneyMarket/MoneyMarketService.ts
|
|
19396
|
-
var
|
|
19418
|
+
var MoneyMarketService2 = class _MoneyMarketService {
|
|
19397
19419
|
config;
|
|
19398
19420
|
hubProvider;
|
|
19399
19421
|
data;
|
|
@@ -20133,8 +20155,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
20133
20155
|
withdrawInfo,
|
|
20134
20156
|
params.amount,
|
|
20135
20157
|
spokeProvider,
|
|
20136
|
-
this
|
|
20137
|
-
hubWallet
|
|
20158
|
+
this
|
|
20138
20159
|
);
|
|
20139
20160
|
} else {
|
|
20140
20161
|
data = this.buildWithdrawData(
|
|
@@ -20676,6 +20697,6 @@ var SolverIntentErrorCode = /* @__PURE__ */ ((SolverIntentErrorCode2) => {
|
|
|
20676
20697
|
return SolverIntentErrorCode2;
|
|
20677
20698
|
})(SolverIntentErrorCode || {});
|
|
20678
20699
|
|
|
20679
|
-
export { BackendApiService, BalnSwapService, BigIntToHex, BigNumberZeroDecimal, BnUSDMigrationService, BridgeService, ChainIdToIntentRelayChainId, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, Erc20Service, EvmAssetManagerService, EvmHubProvider, EvmSolverService, EvmSpokeProvider, EvmSpokeService, EvmVaultTokenService, EvmWalletAbstraction, FEE_PERCENTAGE_SCALE, HALF_RAY, HALF_WAD, HubVaultSymbols, ICON_TX_RESULT_WAIT_MAX_RETRY, IconSpokeProvider, IcxMigrationService, InjectiveSpokeProvider, IntentCreatedEventAbi, IntentDataType, IntentsAbi, LTV_PRECISION, LendingPoolService, LockupMultiplier, LockupPeriod, MAX_UINT256, MigrationService, MoneyMarketDataService, MoneyMarketService, RAY, RAY_DECIMALS, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, SodaTokens, SodaTokensAsHubAssets, SodaVaultTokensSet, Sodax, SolanaSpokeProvider, SolverIntentErrorCode, SolverIntentStatusCode, SolverService, SonicSpokeProvider, SonicSpokeService, SpokeService, StakingLogic, StakingService, StellarSpokeProvider, StellarSpokeService, SuiSpokeProvider, SuiSpokeService, SupportedMigrationTokens, USD_DECIMALS, UiPoolDataProviderService, VAULT_TOKEN_DECIMALS, WAD, WAD_RAY_RATIO, WEI_DECIMALS, WalletAbstractionService, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, findSupportedTokenBySymbol, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getHubVaultTokenByAddress, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getMoneyMarketConfig, getOriginalAssetAddress, getOriginalAssetInfoFromVault, getOriginalTokenFromOriginalAssetAddress, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaultTokensMap, hubVaults, hubVaultsAddressSet, hyper, 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, isSodaVaultToken, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isValidVault, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, originalAssetTohubAssetMap, parseToStroops, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, stakedSodaAbi, stakingRouterAbi, submitTransaction, supportedHubAssets, supportedHubChains, supportedSodaAssets, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
20700
|
+
export { BackendApiService, BalnSwapService, BigIntToHex, BigNumberZeroDecimal, BnUSDMigrationService, BridgeService, ChainIdToIntentRelayChainId, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, Erc20Service, EvmAssetManagerService, EvmHubProvider, EvmSolverService, EvmSpokeProvider, EvmSpokeService, EvmVaultTokenService, EvmWalletAbstraction, FEE_PERCENTAGE_SCALE, HALF_RAY, HALF_WAD, HubVaultSymbols, ICON_TX_RESULT_WAIT_MAX_RETRY, IconSpokeProvider, IcxMigrationService, InjectiveSpokeProvider, IntentCreatedEventAbi, IntentDataType, IntentsAbi, LTV_PRECISION, LendingPoolService, LockupMultiplier, LockupPeriod, MAX_UINT256, MigrationService, MoneyMarketDataService, MoneyMarketService2 as MoneyMarketService, RAY, RAY_DECIMALS, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, SodaTokens, SodaTokensAsHubAssets, SodaVaultTokensSet, Sodax, SolanaSpokeProvider, SolverIntentErrorCode, SolverIntentStatusCode, SolverService, SonicSpokeProvider, SonicSpokeService, SpokeService, StakingLogic, StakingService, StellarSpokeProvider, StellarSpokeService, SuiSpokeProvider, SuiSpokeService, SupportedMigrationTokens, USD_DECIMALS, UiPoolDataProviderService, VAULT_TOKEN_DECIMALS, WAD, WAD_RAY_RATIO, WEI_DECIMALS, WalletAbstractionService, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, findSupportedTokenBySymbol, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getHubVaultTokenByAddress, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getMoneyMarketConfig, getOriginalAssetAddress, getOriginalAssetInfoFromVault, getOriginalTokenFromOriginalAssetAddress, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaultTokensMap, hubVaults, hubVaultsAddressSet, hyper, 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, isSodaVaultToken, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isValidVault, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, originalAssetTohubAssetMap, parseToStroops, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, stakedSodaAbi, stakingRouterAbi, submitTransaction, supportedHubAssets, supportedHubChains, supportedSodaAssets, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
20680
20701
|
//# sourceMappingURL=index.mjs.map
|
|
20681
20702
|
//# sourceMappingURL=index.mjs.map
|