@upshiftfinance/sdk 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +408 -2
- package/lib/abis/AddressResolver.d.ts +28 -0
- package/lib/abis/AddressResolver.js +23 -0
- package/lib/abis/ChainlinkV3.d.ts +87 -0
- package/lib/abis/ChainlinkV3.js +117 -0
- package/lib/abis/ERC20.d.ts +168 -0
- package/lib/abis/ERC20.js +226 -0
- package/lib/abis/ERC20_Bytes32.d.ts +139 -0
- package/lib/abis/ERC20_Bytes32.js +196 -0
- package/lib/abis/ERC4626.d.ts +364 -0
- package/lib/abis/ERC4626.js +507 -0
- package/lib/abis/ERC721.d.ts +231 -0
- package/lib/abis/ERC721.js +321 -0
- package/lib/abis/FeeOracle.d.ts +120 -0
- package/lib/abis/FeeOracle.js +162 -0
- package/lib/abis/LendingPool.d.ts +1393 -0
- package/lib/abis/LendingPool.js +1807 -0
- package/lib/abis/LendingPoolV2.d.ts +1413 -0
- package/lib/abis/LendingPoolV2.js +1833 -0
- package/lib/abis/LendingPoolV3.d.ts +1677 -0
- package/lib/abis/LendingPoolV3.js +1160 -0
- package/lib/abis/Loan.d.ts +837 -0
- package/lib/abis/Loan.js +1080 -0
- package/lib/abis/MultiAssetNativeDepositWrapper.d.ts +137 -0
- package/lib/abis/MultiAssetNativeDepositWrapper.js +125 -0
- package/lib/abis/Multicall3.d.ts +30 -0
- package/lib/abis/Multicall3.js +97 -0
- package/lib/abis/OFT.d.ts +116 -0
- package/lib/abis/OFT.js +85 -0
- package/lib/abis/PoolAdapter.d.ts +36 -0
- package/lib/abis/PoolAdapter.js +51 -0
- package/lib/abis/RewardDistributor.d.ts +267 -0
- package/lib/abis/RewardDistributor.js +352 -0
- package/lib/abis/RwaRedeemSubaccount.d.ts +747 -0
- package/lib/abis/RwaRedeemSubaccount.js +548 -0
- package/lib/abis/SmartAccount.d.ts +17 -0
- package/lib/abis/SmartAccount.js +19 -0
- package/lib/abis/SwapRouter.d.ts +953 -0
- package/lib/abis/SwapRouter.js +1228 -0
- package/lib/abis/TextResolver.d.ts +16 -0
- package/lib/abis/TextResolver.js +16 -0
- package/lib/abis/TokenizedVaultV2.d.ts +1364 -0
- package/lib/abis/TokenizedVaultV2.js +1041 -0
- package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +1456 -0
- package/lib/abis/TokenizedVaultV2DepositWithPermit.js +1878 -0
- package/lib/abis/TokenizedVaultV2Receipt.d.ts +1568 -0
- package/lib/abis/TokenizedVaultV2Receipt.js +1061 -0
- package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.d.ts +454 -0
- package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.js +327 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAllocation.d.ts +1466 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAllocation.js +1092 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +274 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.js +167 -0
- package/lib/abis/UniversalResolverResolve.d.ts +69 -0
- package/lib/abis/UniversalResolverResolve.js +35 -0
- package/lib/abis/UniversalSignatureValidator.d.ts +17 -0
- package/lib/abis/UniversalSignatureValidator.js +30 -0
- package/lib/abis/WrapperAdapter.d.ts +71 -0
- package/lib/abis/WrapperAdapter.js +77 -0
- package/lib/abis/index.d.ts +34 -0
- package/lib/abis/index.js +51 -0
- package/lib/adapters/evm/getters.d.ts +19 -0
- package/lib/adapters/evm/getters.js +249 -0
- package/lib/adapters/evm/index.d.ts +539 -0
- package/lib/adapters/evm/index.js +656 -0
- package/lib/adapters/evm/utils.d.ts +8 -0
- package/lib/adapters/evm/utils.js +51 -0
- package/lib/adapters/solana/confirm.d.ts +88 -0
- package/lib/adapters/solana/confirm.js +291 -0
- package/lib/adapters/solana/constants.d.ts +42 -0
- package/lib/adapters/solana/constants.js +59 -0
- package/lib/adapters/solana/getters.d.ts +42 -0
- package/lib/adapters/solana/getters.js +275 -0
- package/lib/adapters/solana/idl/vault-idl.d.ts +700 -0
- package/lib/adapters/solana/idl/vault-idl.js +2101 -0
- package/lib/adapters/solana/idl/withdrawal-queue-idl.d.ts +795 -0
- package/lib/adapters/solana/idl/withdrawal-queue-idl.js +1864 -0
- package/lib/adapters/solana/index.d.ts +372 -0
- package/lib/adapters/solana/index.js +459 -0
- package/lib/adapters/solana/pricing.d.ts +184 -0
- package/lib/adapters/solana/pricing.js +239 -0
- package/lib/adapters/solana/queue-hints.d.ts +29 -0
- package/lib/adapters/solana/queue-hints.js +59 -0
- package/lib/adapters/solana/queue.actions.d.ts +97 -0
- package/lib/adapters/solana/queue.actions.js +468 -0
- package/lib/adapters/solana/token-reads.d.ts +108 -0
- package/lib/adapters/solana/token-reads.js +145 -0
- package/lib/adapters/solana/types.d.ts +325 -0
- package/lib/adapters/solana/types.js +3 -0
- package/lib/adapters/solana/utils.d.ts +229 -0
- package/lib/adapters/solana/utils.js +773 -0
- package/lib/adapters/solana/vault.actions.d.ts +140 -0
- package/lib/adapters/solana/vault.actions.js +657 -0
- package/lib/adapters/solana/withdrawal-queue.d.ts +125 -0
- package/lib/adapters/solana/withdrawal-queue.js +301 -0
- package/lib/adapters/stellar/actions.d.ts +41 -0
- package/lib/adapters/stellar/actions.js +126 -0
- package/lib/adapters/stellar/constants.d.ts +43 -0
- package/lib/adapters/stellar/constants.js +53 -0
- package/lib/adapters/stellar/getters.d.ts +68 -0
- package/lib/adapters/stellar/getters.js +290 -0
- package/lib/adapters/stellar/index.d.ts +126 -0
- package/lib/adapters/stellar/index.js +187 -0
- package/lib/adapters/stellar/invocation.d.ts +55 -0
- package/lib/adapters/stellar/invocation.js +92 -0
- package/lib/adapters/stellar/soroban.d.ts +131 -0
- package/lib/adapters/stellar/soroban.js +617 -0
- package/lib/adapters/stellar/submit.d.ts +42 -0
- package/lib/adapters/stellar/submit.js +195 -0
- package/lib/adapters/stellar/types.d.ts +57 -0
- package/lib/adapters/stellar/types.js +6 -0
- package/lib/adapters/stellar/utils.d.ts +24 -0
- package/lib/adapters/stellar/utils.js +34 -0
- package/lib/adapters/sui/constants.d.ts +1 -0
- package/lib/adapters/sui/constants.js +9 -0
- package/lib/adapters/sui/getters.d.ts +24 -0
- package/lib/adapters/sui/getters.js +134 -0
- package/lib/adapters/sui/index.d.ts +53 -0
- package/lib/adapters/sui/index.js +96 -0
- package/lib/adapters/sui/transformer.d.ts +10 -0
- package/lib/adapters/sui/transformer.js +115 -0
- package/lib/adapters/sui/types.d.ts +70 -0
- package/lib/adapters/sui/types.js +3 -0
- package/lib/adapters/sui/utils.d.ts +8 -0
- package/lib/adapters/sui/utils.js +17 -0
- package/lib/core/analytics/app-name.d.ts +27 -0
- package/lib/core/analytics/app-name.js +48 -0
- package/lib/core/analytics/chain-name.d.ts +9 -0
- package/lib/core/analytics/chain-name.js +34 -0
- package/lib/core/analytics/constants.d.ts +15 -0
- package/lib/core/analytics/constants.js +28 -0
- package/lib/core/analytics/env.d.ts +46 -0
- package/lib/core/analytics/env.js +147 -0
- package/lib/core/analytics/index.d.ts +39 -0
- package/lib/core/analytics/index.js +83 -0
- package/lib/core/analytics/instrumentation.d.ts +29 -0
- package/lib/core/analytics/instrumentation.js +292 -0
- package/lib/core/analytics/method-taxonomy.d.ts +19 -0
- package/lib/core/analytics/method-taxonomy.js +156 -0
- package/lib/core/analytics/metrics.d.ts +48 -0
- package/lib/core/analytics/metrics.js +142 -0
- package/lib/core/analytics/sanitize.d.ts +57 -0
- package/lib/core/analytics/sanitize.js +272 -0
- package/lib/core/analytics/sentry-runtime.d.ts +15 -0
- package/lib/core/analytics/sentry-runtime.js +131 -0
- package/lib/core/analytics/sentry.d.ts +100 -0
- package/lib/core/analytics/sentry.js +696 -0
- package/lib/core/analytics/types.d.ts +55 -0
- package/lib/core/analytics/types.js +3 -0
- package/lib/core/analytics/user-identity.d.ts +55 -0
- package/lib/core/analytics/user-identity.js +218 -0
- package/lib/core/analytics/version.d.ts +6 -0
- package/lib/core/analytics/version.js +10 -0
- package/lib/core/attribution.d.ts +159 -0
- package/lib/core/attribution.js +194 -0
- package/lib/core/auth/index.d.ts +1 -0
- package/lib/core/auth/index.js +18 -0
- package/lib/core/auth/verify.d.ts +2 -0
- package/lib/core/auth/verify.js +35 -0
- package/lib/core/base.class.d.ts +193 -0
- package/lib/core/base.class.js +163 -0
- package/lib/core/cache.d.ts +9 -0
- package/lib/core/cache.js +31 -0
- package/lib/core/constants/adapters.d.ts +103 -0
- package/lib/core/constants/adapters.js +180 -0
- package/lib/core/constants/core.d.ts +162 -0
- package/lib/core/constants/core.js +281 -0
- package/lib/core/constants/swap-router.d.ts +180 -0
- package/lib/core/constants/swap-router.js +203 -0
- package/lib/core/constants/vaults.d.ts +93 -0
- package/lib/core/constants/vaults.js +277 -0
- package/lib/core/constants/web3.d.ts +106 -0
- package/lib/core/constants/web3.js +251 -0
- package/lib/core/errors/index.d.ts +177 -0
- package/lib/core/errors/index.js +257 -0
- package/lib/core/fetcher.d.ts +237 -0
- package/lib/core/fetcher.js +1103 -0
- package/lib/core/helpers/adapters.d.ts +13 -0
- package/lib/core/helpers/adapters.js +39 -0
- package/lib/core/helpers/chain-address.d.ts +13 -0
- package/lib/core/helpers/chain-address.js +47 -0
- package/lib/core/helpers/chain-error.d.ts +207 -0
- package/lib/core/helpers/chain-error.js +697 -0
- package/lib/core/helpers/chain-support.d.ts +98 -0
- package/lib/core/helpers/chain-support.js +139 -0
- package/lib/core/helpers/concurrency.d.ts +51 -0
- package/lib/core/helpers/concurrency.js +79 -0
- package/lib/core/helpers/core.d.ts +92 -0
- package/lib/core/helpers/core.js +368 -0
- package/lib/core/helpers/explorer-link.d.ts +16 -0
- package/lib/core/helpers/explorer-link.js +26 -0
- package/lib/core/helpers/multicall.d.ts +68 -0
- package/lib/core/helpers/multicall.js +103 -0
- package/lib/core/helpers/revert-decode.d.ts +248 -0
- package/lib/core/helpers/revert-decode.js +515 -0
- package/lib/core/helpers/signer.d.ts +61 -0
- package/lib/core/helpers/signer.js +184 -0
- package/lib/core/helpers/swap-router.d.ts +269 -0
- package/lib/core/helpers/swap-router.js +542 -0
- package/lib/core/helpers/vault-version.d.ts +24 -0
- package/lib/core/helpers/vault-version.js +83 -0
- package/lib/core/helpers/vaults.d.ts +89 -0
- package/lib/core/helpers/vaults.js +241 -0
- package/lib/core/helpers/web3.d.ts +366 -0
- package/lib/core/helpers/web3.js +1034 -0
- package/lib/core/index.d.ts +23 -0
- package/lib/core/index.js +40 -0
- package/lib/core/logger/curator-alert.d.ts +217 -0
- package/lib/core/logger/curator-alert.js +276 -0
- package/lib/core/logger/index.d.ts +99 -0
- package/lib/core/logger/index.js +163 -0
- package/lib/core/logger/slack.d.ts +49 -0
- package/lib/core/logger/slack.js +111 -0
- package/lib/core/vault-metadata.d.ts +12 -0
- package/lib/core/vault-metadata.js +42 -0
- package/lib/core/version-check.d.ts +58 -0
- package/lib/core/version-check.js +182 -0
- package/lib/evm/index.d.ts +2 -0
- package/lib/evm/index.js +19 -0
- package/lib/evm/methods/crossChainVault.d.ts +132 -0
- package/lib/evm/methods/crossChainVault.js +857 -0
- package/lib/evm/methods/crossChainVaultRegistry.d.ts +92 -0
- package/lib/evm/methods/crossChainVaultRegistry.js +239 -0
- package/lib/evm/methods/index.d.ts +2 -0
- package/lib/evm/methods/index.js +19 -0
- package/lib/evm/types/crossChain.d.ts +363 -0
- package/lib/evm/types/crossChain.js +20 -0
- package/lib/evm/types/index.d.ts +1 -0
- package/lib/evm/types/index.js +18 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.js +52 -0
- package/lib/main.d.ts +596 -0
- package/lib/main.js +681 -0
- package/lib/modules/api/fetcher.d.ts +108 -0
- package/lib/modules/api/fetcher.js +187 -0
- package/lib/modules/api/index.d.ts +1 -0
- package/lib/modules/api/index.js +6 -0
- package/lib/modules/api/main.d.ts +587 -0
- package/lib/modules/api/main.js +911 -0
- package/lib/modules/sub-accounts/fetcher.d.ts +53 -0
- package/lib/modules/sub-accounts/fetcher.js +96 -0
- package/lib/modules/sub-accounts/index.d.ts +2 -0
- package/lib/modules/sub-accounts/index.js +19 -0
- package/lib/modules/sub-accounts/main.d.ts +249 -0
- package/lib/modules/sub-accounts/main.js +211 -0
- package/lib/modules/sub-accounts/utils.d.ts +106 -0
- package/lib/modules/sub-accounts/utils.js +112 -0
- package/lib/modules/vaults/adapter.helpers.d.ts +84 -0
- package/lib/modules/vaults/adapter.helpers.js +202 -0
- package/lib/modules/vaults/fetcher.d.ts +147 -0
- package/lib/modules/vaults/fetcher.js +357 -0
- package/lib/modules/vaults/getters.d.ts +1060 -0
- package/lib/modules/vaults/getters.js +4079 -0
- package/lib/modules/vaults/index.d.ts +20 -0
- package/lib/modules/vaults/index.js +44 -0
- package/lib/modules/vaults/main.d.ts +607 -0
- package/lib/modules/vaults/main.js +1687 -0
- package/lib/modules/vaults/prefetch.d.ts +65 -0
- package/lib/modules/vaults/prefetch.js +120 -0
- package/lib/modules/vaults/read.actions.d.ts +406 -0
- package/lib/modules/vaults/read.actions.js +891 -0
- package/lib/modules/vaults/types.d.ts +149 -0
- package/lib/modules/vaults/types.js +3 -0
- package/lib/modules/vaults/utils/call-data-decoder.d.ts +61 -0
- package/lib/modules/vaults/utils/call-data-decoder.js +194 -0
- package/lib/modules/vaults/utils/date-utils.d.ts +50 -0
- package/lib/modules/vaults/utils/date-utils.js +84 -0
- package/lib/modules/vaults/utils.d.ts +153 -0
- package/lib/modules/vaults/utils.js +818 -0
- package/lib/modules/vaults/write.actions.d.ts +812 -0
- package/lib/modules/vaults/write.actions.js +2377 -0
- package/lib/polyfills.d.ts +1 -0
- package/lib/polyfills.js +12 -0
- package/lib/sdk.d.ts +30154 -0
- package/lib/services/coingecko/fetcher.d.ts +15 -0
- package/lib/services/coingecko/fetcher.js +67 -0
- package/lib/services/coingecko/index.d.ts +2 -0
- package/lib/services/coingecko/index.js +19 -0
- package/lib/services/coingecko/utils.d.ts +1 -0
- package/lib/services/coingecko/utils.js +24 -0
- package/lib/services/debank/fetcher.d.ts +126 -0
- package/lib/services/debank/fetcher.js +47 -0
- package/lib/services/debank/index.d.ts +2 -0
- package/lib/services/debank/index.js +19 -0
- package/lib/services/debank/utils.d.ts +50 -0
- package/lib/services/debank/utils.js +325 -0
- package/lib/services/layerzero/deposits.d.ts +55 -0
- package/lib/services/layerzero/deposits.js +174 -0
- package/lib/services/layerzero/redeems.d.ts +20 -0
- package/lib/services/layerzero/redeems.js +92 -0
- package/lib/services/layerzero/utils.d.ts +9 -0
- package/lib/services/layerzero/utils.js +22 -0
- package/lib/services/octavfi/fetcher.d.ts +33 -0
- package/lib/services/octavfi/fetcher.js +39 -0
- package/lib/services/octavfi/index.d.ts +3 -0
- package/lib/services/octavfi/index.js +20 -0
- package/lib/services/octavfi/types.d.ts +34 -0
- package/lib/services/octavfi/types.js +3 -0
- package/lib/services/octavfi/utils.d.ts +16 -0
- package/lib/services/octavfi/utils.js +244 -0
- package/lib/services/subgraph/fetcher.d.ts +2 -0
- package/lib/services/subgraph/fetcher.js +66 -0
- package/lib/services/subgraph/index.d.ts +2 -0
- package/lib/services/subgraph/index.js +19 -0
- package/lib/services/subgraph/schema.d.ts +48 -0
- package/lib/services/subgraph/schema.js +87 -0
- package/lib/services/subgraph/vaults.d.ts +83 -0
- package/lib/services/subgraph/vaults.js +1282 -0
- package/lib/services/swap-quotes/index.d.ts +105 -0
- package/lib/services/swap-quotes/index.js +77 -0
- package/lib/services/swap-quotes/paraswap.d.ts +51 -0
- package/lib/services/swap-quotes/paraswap.js +138 -0
- package/lib/services/untangled/fetcher.d.ts +40 -0
- package/lib/services/untangled/fetcher.js +110 -0
- package/lib/services/untangled/index.d.ts +3 -0
- package/lib/services/untangled/index.js +20 -0
- package/lib/services/untangled/types.d.ts +83 -0
- package/lib/services/untangled/types.js +10 -0
- package/lib/services/untangled/utils.d.ts +91 -0
- package/lib/services/untangled/utils.js +339 -0
- package/lib/types/api.d.ts +498 -0
- package/lib/types/api.js +3 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/index.js +28 -0
- package/lib/types/points.d.ts +28 -0
- package/lib/types/points.js +3 -0
- package/lib/types/pools.d.ts +144 -0
- package/lib/types/pools.js +3 -0
- package/lib/types/staking.d.ts +28 -0
- package/lib/types/staking.js +3 -0
- package/lib/types/sub-accounts.d.ts +150 -0
- package/lib/types/sub-accounts.js +3 -0
- package/lib/types/subgraph.d.ts +84 -0
- package/lib/types/subgraph.js +3 -0
- package/lib/types/typed-contract.d.ts +102 -0
- package/lib/types/typed-contract.js +3 -0
- package/lib/types/user.d.ts +1 -0
- package/lib/types/user.js +3 -0
- package/lib/types/vaults.d.ts +886 -0
- package/lib/types/vaults.js +30 -0
- package/lib/types/web3.d.ts +81 -0
- package/lib/types/web3.js +14 -0
- package/lib/types/webserver.d.ts +730 -0
- package/lib/types/webserver.js +3 -0
- package/package.json +78 -3
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { IAddress, IPoolFunctions } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Table of Contents
|
|
4
|
+
* - Hardcoded Addresses
|
|
5
|
+
* - Vault Functions to Call
|
|
6
|
+
* - Subgraph URLs
|
|
7
|
+
* - Vault Receipt Symbol Mapping
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Hardcoded subaccount addresses for specific vaults allocations
|
|
11
|
+
*/
|
|
12
|
+
export declare const VAULT_ALLOCATION_SUBACCOUNTS: {
|
|
13
|
+
AgoraAUSD: {
|
|
14
|
+
address: IAddress;
|
|
15
|
+
subaccount: IAddress;
|
|
16
|
+
useDebank: boolean;
|
|
17
|
+
};
|
|
18
|
+
earnAUSD: {
|
|
19
|
+
address: IAddress;
|
|
20
|
+
subaccount: IAddress;
|
|
21
|
+
useDebank: boolean;
|
|
22
|
+
};
|
|
23
|
+
MonarqXRP: {
|
|
24
|
+
address: IAddress;
|
|
25
|
+
subaccount: IAddress;
|
|
26
|
+
useDebank: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated use the backend responses /tokenized_vault internal_type field to determine if the vault is an old lending pool
|
|
31
|
+
* @todo use the backend responses /tokenized_vault internal_type field to determine if the vault is an old lending pool
|
|
32
|
+
*/
|
|
33
|
+
export declare const MULTI_ASSET_VAULTS: `0x${string}`[];
|
|
34
|
+
export declare const WRAPPER_ADAPTOR: {
|
|
35
|
+
43114: IAddress;
|
|
36
|
+
1: IAddress;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated use the backend responses /tokenized_vault internal_type field to determine if the vault is an old lending pool
|
|
40
|
+
* @todo use the backend responses /tokenized_vault internal_type field to determine if the vault is an old lending pool
|
|
41
|
+
*/
|
|
42
|
+
export declare const OLD_LENDING_POOLS: `0x${string}`[];
|
|
43
|
+
export declare const IDLE_CAPITAL_BORROWER_ADDRESS: `0x${string}`[];
|
|
44
|
+
/**
|
|
45
|
+
* Vault addresses to exclude from `getTotalDeposited` TVL aggregation.
|
|
46
|
+
* Addresses are lowercased so EVM, Solana, Sui and Stellar vaults can be
|
|
47
|
+
* checked uniformly (don't wrap them with `getAddress` — non-EVM addresses
|
|
48
|
+
* would throw). Add an address here to drop its `latest_reported_tvl` from
|
|
49
|
+
* the headline number — e.g. closed pre-deposit vaults, test vaults, or
|
|
50
|
+
* migrated v1 pools that are double-counted by a v2 successor.
|
|
51
|
+
*/
|
|
52
|
+
export declare const TVL_EXCLUDED_VAULTS: ReadonlySet<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Vault Functions to Call
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* The functions to call on the vault contract
|
|
58
|
+
* @returns The functions to call
|
|
59
|
+
*/
|
|
60
|
+
export declare const VAULT_FUNCTIONS_V1: IPoolFunctions[];
|
|
61
|
+
export declare const VAULT_FUNCTIONS_V2: IPoolFunctions[];
|
|
62
|
+
export declare const VAULT_FUNCTIONS_V2_RECEIPT: IPoolFunctions[];
|
|
63
|
+
export declare const VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS: IPoolFunctions[];
|
|
64
|
+
/**
|
|
65
|
+
* NEMO ETH Yield vault address (lowercase for comparisons)
|
|
66
|
+
*/
|
|
67
|
+
export declare const NEMO_VAULT_ADDRESS = "0xa422c3018c46ba90a14acd14f96cb60616f5c91b";
|
|
68
|
+
/**
|
|
69
|
+
* Subgraph base URL
|
|
70
|
+
* @deprecated use getVaultMetadata to fetch subgraph URLs from the backend
|
|
71
|
+
*/
|
|
72
|
+
export declare const GOLDSKY_BASE_URL = "https://api.goldsky.com/api/public/project_cm9g0xy3o4j6v01vd34r3hvv9/subgraphs";
|
|
73
|
+
/**
|
|
74
|
+
* Subgraph URLs
|
|
75
|
+
* @deprecated use getVaultMetadata to fetch subgraph URLs from the backend
|
|
76
|
+
*/
|
|
77
|
+
export declare const SUBGRAPH_VAULT_URLS: Record<VaultSymbols, string>;
|
|
78
|
+
/**
|
|
79
|
+
* Vault Receipt Symbol Mapping
|
|
80
|
+
* @deprecated use getVaultMetadata to fetch vault symbols from the backend
|
|
81
|
+
*/
|
|
82
|
+
type VaultSymbols = 'predlp' | 'sentusd' | 'pregrid' | 'repouscc' | 'earnxrp' | 'tivkbtc' | 'tivusdt0' | 'supermon' | 'earnmon' | 'k3europ' | 'wmon/ausd' | 'wbtc/ausd' | 'earnausd_monad' | 'sausd' | 'farmbold' | 'sentuscc' | 'sentbtc' | 'svusdc' | 'apusdc' | 'testwethtsa' | 'tacusr' | 'upinjusdt' | 'tac-teth' | 'upausd' | 'taccbbtc' | 'xupusdc' | 'uptbtc' | 'gteth' | 'ageth' | 'upusdc' | 'hgeth' | 'upssylva' | 'hbbtc' | 'hbhype' | 'upazt' | 'susdt' | 'upedge' | 'coreusdc' | 'upcusdo' | 'shifteth' | 'upsusde' | 'uplbtc' | 'upavax' | 'tacrseth' | 'musd' | 'earnausd' | 'alpineusdcflagship' | 'alpinecoinshiftusdc' | 'upbtc' | 'upstrbtc' | 'maxiusr' | 'upgammausdc' | 'xhype' | 'wildusd' | 'alpinebtc' | 'prenusd' | 'upyzusd' | 'upnusd' | 'hlpe' | 'nemo eth yield';
|
|
83
|
+
/**
|
|
84
|
+
* Vault Symbols Mapping
|
|
85
|
+
* @deprecated use getVaultMetadata to fetch vault symbols from the backend
|
|
86
|
+
*/
|
|
87
|
+
export declare const VAULT_SYMBOLS: Record<IAddress, string>;
|
|
88
|
+
/**
|
|
89
|
+
* Vault Symbols Reverse Mapping
|
|
90
|
+
* @deprecated use getVaultMetadata to fetch vault symbols from the backend
|
|
91
|
+
*/
|
|
92
|
+
export declare const VAULT_SYMBOLS_REVERSE: Record<VaultSymbols, IAddress>;
|
|
93
|
+
export {};
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VAULT_SYMBOLS_REVERSE = exports.VAULT_SYMBOLS = exports.SUBGRAPH_VAULT_URLS = exports.GOLDSKY_BASE_URL = exports.NEMO_VAULT_ADDRESS = exports.VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS = exports.VAULT_FUNCTIONS_V2_RECEIPT = exports.VAULT_FUNCTIONS_V2 = exports.VAULT_FUNCTIONS_V1 = exports.TVL_EXCLUDED_VAULTS = exports.IDLE_CAPITAL_BORROWER_ADDRESS = exports.OLD_LENDING_POOLS = exports.WRAPPER_ADAPTOR = exports.MULTI_ASSET_VAULTS = exports.VAULT_ALLOCATION_SUBACCOUNTS = void 0;
|
|
4
|
+
const ethers_1 = require("ethers");
|
|
5
|
+
/**
|
|
6
|
+
* Table of Contents
|
|
7
|
+
* - Hardcoded Addresses
|
|
8
|
+
* - Vault Functions to Call
|
|
9
|
+
* - Subgraph URLs
|
|
10
|
+
* - Vault Receipt Symbol Mapping
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Hardcoded subaccount addresses for specific vaults allocations
|
|
14
|
+
*/
|
|
15
|
+
exports.VAULT_ALLOCATION_SUBACCOUNTS = {
|
|
16
|
+
// For the Agora AUSD vault, fetch the vault allocations from the Caleb subaccount
|
|
17
|
+
AgoraAUSD: {
|
|
18
|
+
address: (0, ethers_1.getAddress)('0x828BC5895b78b2fb591018Ca5bDC2064742D6D0f'),
|
|
19
|
+
subaccount: (0, ethers_1.getAddress)('0xFff71B0b66f076C60Fa2f176a34a6EA709ccF21B'),
|
|
20
|
+
useDebank: false,
|
|
21
|
+
},
|
|
22
|
+
// For the Earn AUSD (Monad) vault, fetch the vault loans from the RockawayX subaccount
|
|
23
|
+
// fetch the rest of the exposures from Debank
|
|
24
|
+
earnAUSD: {
|
|
25
|
+
address: (0, ethers_1.getAddress)('0x36eDbF0C834591BFdfCaC0Ef9605528c75c406aA'),
|
|
26
|
+
subaccount: (0, ethers_1.getAddress)('0xC8c0Ffb8Ff3BDA26321224e800B3B38AEaB48799'),
|
|
27
|
+
useDebank: true,
|
|
28
|
+
},
|
|
29
|
+
// For the Monarq XRP Yield Vault (Flare), surface the borrower subaccount and
|
|
30
|
+
// keep vault-level Debank exposure (mirrors earnAUSD).
|
|
31
|
+
MonarqXRP: {
|
|
32
|
+
address: (0, ethers_1.getAddress)('0x2439D4bb753A0f3777d4C9011AFacc475ba6B951'),
|
|
33
|
+
subaccount: (0, ethers_1.getAddress)('0xF755B2244C1C1f20cA03C3Bb472175C9a4E250f2'),
|
|
34
|
+
useDebank: true,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated use the backend responses /tokenized_vault internal_type field to determine if the vault is an old lending pool
|
|
39
|
+
* @todo use the backend responses /tokenized_vault internal_type field to determine if the vault is an old lending pool
|
|
40
|
+
*/
|
|
41
|
+
exports.MULTI_ASSET_VAULTS = [
|
|
42
|
+
//Wild
|
|
43
|
+
(0, ethers_1.getAddress)('0x18EE038C114a07f4B08b420fb1E4149a4F357249'),
|
|
44
|
+
//Yuzu
|
|
45
|
+
(0, ethers_1.getAddress)('0x517677A19D8ae6FF600FB86C3C7bFCCD651e3eec'),
|
|
46
|
+
//HyENA
|
|
47
|
+
(0, ethers_1.getAddress)('0x8fFDcd8A96d293f45aA044d10b899F9D71897E8a'),
|
|
48
|
+
//SingularV
|
|
49
|
+
(0, ethers_1.getAddress)('0xd411aCaE2Bc7019322277A21ff005d94705661C5'),
|
|
50
|
+
//Neutrl
|
|
51
|
+
(0, ethers_1.getAddress)('0xAEEb2fB279a5aA837367B9D2582F898a63b06ca1'),
|
|
52
|
+
// HCL Stroom
|
|
53
|
+
(0, ethers_1.getAddress)('0x0C949AAf28bF0318bAa5f2cbF2F2D970f57879aB'),
|
|
54
|
+
//Aptos Aave
|
|
55
|
+
(0, ethers_1.getAddress)('0xA38d92eC538e9aa3edb980b89701A9d38a1FE015'),
|
|
56
|
+
// Sentora USCC
|
|
57
|
+
(0, ethers_1.getAddress)('0x63C5d615e937697a80606788965E209414738820'),
|
|
58
|
+
// Sentora wBTC
|
|
59
|
+
(0, ethers_1.getAddress)('0x3cC0D33B1AEac3d23eA89214b3AC5B4607032167'),
|
|
60
|
+
];
|
|
61
|
+
exports.WRAPPER_ADAPTOR = {
|
|
62
|
+
43114: (0, ethers_1.getAddress)('0xb2C57614B93c41A7Ec3B91980C0Bb7453904c6e8'),
|
|
63
|
+
1: (0, ethers_1.getAddress)('0x044155804b2ef8fc53C69E3661ceA9b905EDE7Bc'),
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated use the backend responses /tokenized_vault internal_type field to determine if the vault is an old lending pool
|
|
67
|
+
* @todo use the backend responses /tokenized_vault internal_type field to determine if the vault is an old lending pool
|
|
68
|
+
*/
|
|
69
|
+
exports.OLD_LENDING_POOLS = [
|
|
70
|
+
(0, ethers_1.getAddress)('0xe1B4d34E8754600962Cd944B535180Bd758E6c2e'),
|
|
71
|
+
(0, ethers_1.getAddress)('0xEBac5e50003d4B17Be422ff9775043cD61002f7f'),
|
|
72
|
+
(0, ethers_1.getAddress)('0x80E1048eDE66ec4c364b4F22C8768fc657FF6A42'),
|
|
73
|
+
];
|
|
74
|
+
exports.IDLE_CAPITAL_BORROWER_ADDRESS = [
|
|
75
|
+
(0, ethers_1.getAddress)('0x2151C90C93F52bE82186f162c86DaEABc8911188'),
|
|
76
|
+
(0, ethers_1.getAddress)('0xb74c137E5f976dbdCC638Ec9fd3e05d6D9124E55'),
|
|
77
|
+
];
|
|
78
|
+
/**
|
|
79
|
+
* Vault addresses to exclude from `getTotalDeposited` TVL aggregation.
|
|
80
|
+
* Addresses are lowercased so EVM, Solana, Sui and Stellar vaults can be
|
|
81
|
+
* checked uniformly (don't wrap them with `getAddress` — non-EVM addresses
|
|
82
|
+
* would throw). Add an address here to drop its `latest_reported_tvl` from
|
|
83
|
+
* the headline number — e.g. closed pre-deposit vaults, test vaults, or
|
|
84
|
+
* migrated v1 pools that are double-counted by a v2 successor.
|
|
85
|
+
*/
|
|
86
|
+
exports.TVL_EXCLUDED_VAULTS = new Set([
|
|
87
|
+
'0x3299A525986D2e94B3FC6c641C158f5e12dB912d', // Fluent Pre Deposit Vault (migrated to fluent mainnet)
|
|
88
|
+
// '0x866C6c6627303Be103814150fC0e886BE5D9ea83', // Neutrl Pre Deposit Vault (migrated to Neutrl mainnet)
|
|
89
|
+
].map((a) => a.toLowerCase()));
|
|
90
|
+
/**
|
|
91
|
+
* Vault Functions to Call
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* The functions to call on the vault contract
|
|
95
|
+
* @returns The functions to call
|
|
96
|
+
*/
|
|
97
|
+
exports.VAULT_FUNCTIONS_V1 = [
|
|
98
|
+
'decimals',
|
|
99
|
+
'asset',
|
|
100
|
+
'totalSupply',
|
|
101
|
+
'totalAssets',
|
|
102
|
+
'maxSupply',
|
|
103
|
+
'withdrawalFee',
|
|
104
|
+
'lagDuration',
|
|
105
|
+
'withdrawalsPaused',
|
|
106
|
+
'depositsPaused',
|
|
107
|
+
'maxDepositAmount',
|
|
108
|
+
];
|
|
109
|
+
exports.VAULT_FUNCTIONS_V2 = [
|
|
110
|
+
'assetsWhitelistAddress',
|
|
111
|
+
'getTotalAssets',
|
|
112
|
+
'asset',
|
|
113
|
+
'withdrawalFee',
|
|
114
|
+
'maxDepositAmount',
|
|
115
|
+
'lagDuration',
|
|
116
|
+
'withdrawalsPaused',
|
|
117
|
+
'depositsPaused',
|
|
118
|
+
'depositCap',
|
|
119
|
+
// MUST stay last: `getEvmVaultV2` reads the receipt token positionally as
|
|
120
|
+
// the final entry of this list.
|
|
121
|
+
'lpTokenAddress',
|
|
122
|
+
];
|
|
123
|
+
exports.VAULT_FUNCTIONS_V2_RECEIPT = [
|
|
124
|
+
'decimals',
|
|
125
|
+
'totalSupply',
|
|
126
|
+
];
|
|
127
|
+
exports.VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS = [
|
|
128
|
+
'getWhitelistedAssets',
|
|
129
|
+
];
|
|
130
|
+
/**
|
|
131
|
+
* NEMO ETH Yield vault address (lowercase for comparisons)
|
|
132
|
+
*/
|
|
133
|
+
exports.NEMO_VAULT_ADDRESS = '0xa422c3018c46ba90a14acd14f96cb60616f5c91b';
|
|
134
|
+
/**
|
|
135
|
+
* Subgraph base URL
|
|
136
|
+
* @deprecated use getVaultMetadata to fetch subgraph URLs from the backend
|
|
137
|
+
*/
|
|
138
|
+
exports.GOLDSKY_BASE_URL = 'https://api.goldsky.com/api/public/project_cm9g0xy3o4j6v01vd34r3hvv9/subgraphs';
|
|
139
|
+
/**
|
|
140
|
+
* Subgraph URLs
|
|
141
|
+
* @deprecated use getVaultMetadata to fetch subgraph URLs from the backend
|
|
142
|
+
*/
|
|
143
|
+
exports.SUBGRAPH_VAULT_URLS = {
|
|
144
|
+
testwethtsa: ``,
|
|
145
|
+
tacusr: `${exports.GOLDSKY_BASE_URL}/august-eth-tacUSR/1.0.0/gn`,
|
|
146
|
+
upinjusdt: `${exports.GOLDSKY_BASE_URL}/august-eth-upINJUSDT/1.0.0/gn`,
|
|
147
|
+
'tac-teth': `${exports.GOLDSKY_BASE_URL}/august-eth-tactETH/1.0.0/gn`,
|
|
148
|
+
upbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-upBTC/1.0.0/gn`,
|
|
149
|
+
upausd: `${exports.GOLDSKY_BASE_URL}/august-avax-upAUSD/1.0.0/gn`,
|
|
150
|
+
taccbbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-TACcbBTC/1.0.0/gn`,
|
|
151
|
+
xupusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-xUpUSDC/1.0.0/gn`,
|
|
152
|
+
uptbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-uptBTC/1.0.0/gn`,
|
|
153
|
+
gteth: `${exports.GOLDSKY_BASE_URL}/august-eth-gtETH/1.0.0/gn`,
|
|
154
|
+
ageth: `${exports.GOLDSKY_BASE_URL}/august-eth-agETH/1.0.0/gn`,
|
|
155
|
+
upusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-upUSDC/1.0.0/gn`,
|
|
156
|
+
hgeth: `${exports.GOLDSKY_BASE_URL}/august-eth-hgETH/1.0.0/gn`,
|
|
157
|
+
upssylva: `${exports.GOLDSKY_BASE_URL}/august-eth-upsSYLVA/1.0.0/gn`,
|
|
158
|
+
hbbtc: `${exports.GOLDSKY_BASE_URL}/august-hyperevm-hbBTC/1.0.0/gn`,
|
|
159
|
+
hbhype: `${exports.GOLDSKY_BASE_URL}/august-hyperevm-hyperbeat/1.0.0/gn`,
|
|
160
|
+
upazt: `${exports.GOLDSKY_BASE_URL}/august-eth-upAZT/1.0.0/gn`,
|
|
161
|
+
susdt: `${exports.GOLDSKY_BASE_URL}/august-bsc-sUSDT/1.0.0/gn`,
|
|
162
|
+
upedge: `${exports.GOLDSKY_BASE_URL}/august-eth-upEDGE/1.0.0/gn`,
|
|
163
|
+
coreusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-coreUSDC/1.0.0/gn`,
|
|
164
|
+
upcusdo: `${exports.GOLDSKY_BASE_URL}/august-eth-upcUSDO/1.0.0/gn`,
|
|
165
|
+
shifteth: `${exports.GOLDSKY_BASE_URL}/august-eth-shiftETH/1.0.0/gn`,
|
|
166
|
+
upsusde: `${exports.GOLDSKY_BASE_URL}/august-eth-upsUSDe/1.0.0/gn`,
|
|
167
|
+
uplbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-upLBTC/1.0.0/gn`,
|
|
168
|
+
upavax: `${exports.GOLDSKY_BASE_URL}/august-avax-upAVAX/1.0.0/gn`,
|
|
169
|
+
tacrseth: `${exports.GOLDSKY_BASE_URL}/august-eth-TACrsEth/1.0.0/gn`,
|
|
170
|
+
musd: `${exports.GOLDSKY_BASE_URL}/august-mezo-mUSD/1.0.0/gn`,
|
|
171
|
+
wildusd: `${exports.GOLDSKY_BASE_URL}/august-eth-wildUSD/1.0.0/gn`,
|
|
172
|
+
earnausd: `${exports.GOLDSKY_BASE_URL}/august-eth-earnAUSD/1.0.0/gn`,
|
|
173
|
+
alpinecoinshiftusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-AlpineCoinshiftUSDC/1.0.0/gn`,
|
|
174
|
+
alpineusdcflagship: `${exports.GOLDSKY_BASE_URL}/august-eth-AlpineUSDCFlagship/1.0.0/gn`,
|
|
175
|
+
upstrbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-UpStrBTC/1.0.0/gn`,
|
|
176
|
+
maxiusr: `${exports.GOLDSKY_BASE_URL}/august-eth-maxiUSR/1.0.0/gn`,
|
|
177
|
+
upgammausdc: `${exports.GOLDSKY_BASE_URL}/august-eth-upGAMMAusdc/1.0.0/gn`,
|
|
178
|
+
xhype: `${exports.GOLDSKY_BASE_URL}/august-hyperevm-xHYPE/1.0.0/gn`,
|
|
179
|
+
alpinebtc: `${exports.GOLDSKY_BASE_URL}/august-eth-AlpineBTC/1.0.0/gn`,
|
|
180
|
+
prenusd: `${exports.GOLDSKY_BASE_URL}/august-eth-preNUSD/1.0.0/gn`,
|
|
181
|
+
upyzusd: `${exports.GOLDSKY_BASE_URL}/august-plasma-upyzUSD/1.0.0/gn`,
|
|
182
|
+
hlpe: `${exports.GOLDSKY_BASE_URL}/august-hyperevm-HLPe/1.0.0/gn`,
|
|
183
|
+
svusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-svUSDC/1.0.0/gn`,
|
|
184
|
+
apusdc: `${exports.GOLDSKY_BASE_URL}/august-eth-apUSDC/1.0.0/gn`,
|
|
185
|
+
upnusd: `${exports.GOLDSKY_BASE_URL}/august-eth-upNUSD/1.0.0/gn`,
|
|
186
|
+
sentuscc: `${exports.GOLDSKY_BASE_URL}/august-eth-sentUSCC/1.0.0/gn`,
|
|
187
|
+
sentbtc: `${exports.GOLDSKY_BASE_URL}/august-eth-sentBTC/1.0.0/gn`,
|
|
188
|
+
farmbold: `${exports.GOLDSKY_BASE_URL}/august-eth-farmBOLD/1.0.0/gn`,
|
|
189
|
+
sausd: `${exports.GOLDSKY_BASE_URL}/august-monad-sAUSD/1.0.0/gn`,
|
|
190
|
+
earnausd_monad: `${exports.GOLDSKY_BASE_URL}/august-monad-earnAUSD/1.0.0/gn`,
|
|
191
|
+
'wmon/ausd': `${exports.GOLDSKY_BASE_URL}/august-monad-wMONAUSD/1.0.0/gn`,
|
|
192
|
+
'wbtc/ausd': `${exports.GOLDSKY_BASE_URL}/august-monad-wBTCAUSD/1.0.0/gn`,
|
|
193
|
+
supermon: `${exports.GOLDSKY_BASE_URL}/august-monad-superMON/1.0.0/gn`,
|
|
194
|
+
earnmon: `${exports.GOLDSKY_BASE_URL}/august-monad-earnMON/1.0.0/gn`,
|
|
195
|
+
k3europ: `${exports.GOLDSKY_BASE_URL}/august-eth-k3EUROP/1.0.0/gn`,
|
|
196
|
+
pregrid: `${exports.GOLDSKY_BASE_URL}/august-eth-preGRID/1.0.0/gn`,
|
|
197
|
+
repouscc: `${exports.GOLDSKY_BASE_URL}/august-eth-repoUSCC/1.0.0/gn`,
|
|
198
|
+
earnxrp: `${exports.GOLDSKY_BASE_URL}/august-flare-earnXRP/1.0.0/gn`,
|
|
199
|
+
tivkbtc: `${exports.GOLDSKY_BASE_URL}/august-ink-TIVKBTC/1.0.0/gn`,
|
|
200
|
+
tivusdt0: `${exports.GOLDSKY_BASE_URL}/august-ink-TIVUSDT0/1.0.0/gn`,
|
|
201
|
+
sentusd: `${exports.GOLDSKY_BASE_URL}/august-eth-sentUSD/1.0.0/gn`,
|
|
202
|
+
predlp: `${exports.GOLDSKY_BASE_URL}/august-eth-preDLP/1.0.0/gn`,
|
|
203
|
+
'nemo eth yield': `${exports.GOLDSKY_BASE_URL}/august-mainnet-nemo-eth-yield/1.0.0/gn`,
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Vault Symbols Mapping
|
|
207
|
+
* @deprecated use getVaultMetadata to fetch vault symbols from the backend
|
|
208
|
+
*/
|
|
209
|
+
exports.VAULT_SYMBOLS = {
|
|
210
|
+
'0xaBC578B79892FC0Dc2906Ab5749862622aD38695': 'preDLP',
|
|
211
|
+
'0x74aD2F789Ed583DBd141bbdafC673fE1F033718b': 'sentUSD',
|
|
212
|
+
'0x71BE0E419FbB98762C7b6D9e81EaFdA99363333c': 'TIVKBTC',
|
|
213
|
+
'0x727e37b4252B8a200D32445F2aFB741A308c55F0': 'TIVUSDT0',
|
|
214
|
+
'0x373D7d201C8134D4a2f7b5c63560da217e3dEA28': 'earnXRP',
|
|
215
|
+
'0x2Cb3b86C32e723BE255E5ec4E443a0CA90876634': 'repoUSCC',
|
|
216
|
+
'0x7b2B5B1c2710C7253ED6cbC912BB5f66B5A21649': 'preGRID',
|
|
217
|
+
'0x792C7c5fB5C996E588b9F4A5FB201C79974e267C': 'superMON',
|
|
218
|
+
'0x5E7568bf8DF8792aE467eCf5638d7c4D18A1881C': 'earnMON',
|
|
219
|
+
'0x0243755a22E37b835486fdAE9A839523ADABd336': 'k3EUROP',
|
|
220
|
+
'0xD793c04B87386A6bb84ee61D98e0065FdE7fdA5E': 'sAUSD',
|
|
221
|
+
'0x64996271ee085ef9e6E939Ab3eACd93F7d7080db': 'wMON/AUSD',
|
|
222
|
+
'0xB667D005695D7f530A5621549aE31d9409486E29': 'wBTC/AUSD',
|
|
223
|
+
'0x36eDbF0C834591BFdfCaC0Ef9605528c75c406aA': 'earnAUSD_monad',
|
|
224
|
+
'0x686c83Aa81ba206354fDcbc2cd282B4531365E29': 'tacUSR',
|
|
225
|
+
'0x02991EE6134dEE504668e2227C5879Dd78EfCDc3': 'upINJUSDT',
|
|
226
|
+
'0xf7b65fBA4d02110089fC6e2bE6d73809b45852f8': 'tac-tETH',
|
|
227
|
+
'0x3408b22d8895753C9A3e14e4222E981d4E9A599E': 'upAUSD',
|
|
228
|
+
'0xeb402fc96C7ed2f889d837C9976D6d821c1B5f01': 'TACcbBTC',
|
|
229
|
+
'0x396A3f77EE1faf5A3C46e878bA7b7a2dcbe55517': 'xUpUSDC',
|
|
230
|
+
'0x8AcA0841993ef4C87244d519166e767f49362C21': 'uptBTC',
|
|
231
|
+
'0x5Fde59415625401278c4d41C6beFCe3790eb357f': 'gtETH',
|
|
232
|
+
'0xe1B4d34E8754600962Cd944B535180Bd758E6c2e': 'agETH',
|
|
233
|
+
'0x80E1048eDE66ec4c364b4F22C8768fc657FF6A42': 'upUSDC',
|
|
234
|
+
'0xc824A08dB624942c5E5F330d56530cD1598859fD': 'hgETH',
|
|
235
|
+
'0xc428439fB7B1EFE56360Eb837Ca98F551fdD9B26': 'upsSYLVA',
|
|
236
|
+
'0xc061d38903b99aC12713B550C2CB44B221674F94': 'hbBTC',
|
|
237
|
+
'0x96C6cBB6251Ee1c257b2162ca0f39AA5Fa44B1FB': 'hbHYPE',
|
|
238
|
+
'0x69FC3f84FD837217377d9Dae0212068cEB65818e': 'upAZT',
|
|
239
|
+
'0xD0b717ef23817b1a127139830Cf0FcD449ef74F0': 'sUSDT',
|
|
240
|
+
'0xEAA3b922E9fEbCa37d1c02D2142A59595094C605': 'upEDGE',
|
|
241
|
+
'0xE9B725010A9E419412ed67d0fA5f3A5f40159D32': 'coreUSDC',
|
|
242
|
+
'0x7383c2454D23A1e34B35ba02674be0a41Bd5aa56': 'upcUSDO',
|
|
243
|
+
'0xB78dAf3fD674B81ebeaaa88d711506fa069E1C5E': 'shiftETH',
|
|
244
|
+
'0xd684AF965b1c17D628ee0d77cae94259c41260F4': 'upsUSDe',
|
|
245
|
+
'0x8EC5C8642397791cff83563C9C83b9C1409D5F48': 'testWETHTSA',
|
|
246
|
+
'0x4e2D90f0307A93b54ACA31dc606F93FE6b9132d2': 'upLBTC',
|
|
247
|
+
'0xB2bFb52cfc40584AC4e9e2B36a5B8d6554A56e0b': 'upAVAX',
|
|
248
|
+
'0x419386E3Ef42368e602720CC458e00c0B28c47A7': 'TACrsEth',
|
|
249
|
+
'0x221B2D9aD7B994861Af3f4c8A80c86C4aa86Bf53': 'mUSD',
|
|
250
|
+
'0x828BC5895b78b2fb591018Ca5bDC2064742D6D0f': 'earnAUSD',
|
|
251
|
+
'0xD066649Bcb7d8D3335fE29CaD0AED6E17D5828B5': 'AlpineUSDCFlagship',
|
|
252
|
+
'0x0985C88929A776a2E059615137a48bA5A473E25D': 'AlpineCoinshiftUSDC',
|
|
253
|
+
'0xEBac5e50003d4B17Be422ff9775043cD61002f7f': 'upBTC',
|
|
254
|
+
'0x787f5541Ee40cD0c94175251686DDBbcf69A7344': 'UpStrBTC',
|
|
255
|
+
'0xdA89af5bF2eb0B225d787aBfA9095610f2E79e7D': 'maxiUSR',
|
|
256
|
+
'0x998D7b14c123c1982404562b68edDB057b0477cB': 'upGAMMAusdc',
|
|
257
|
+
'0x3a214b33A648f17fdcb78eD895dD0579dc3cc330': 'xHYPE',
|
|
258
|
+
'0x18EE038C114a07f4B08b420fb1E4149a4F357249': 'wildUSD',
|
|
259
|
+
'0x6625bA54DC861e9f5c678983dBa5BA96d19a9224': 'AlpineBTC',
|
|
260
|
+
'0x866C6c6627303Be103814150fC0e886BE5D9ea83': 'preNUSD',
|
|
261
|
+
'0x8fFDcd8A96d293f45aA044d10b899F9D71897E8a': 'HLPe',
|
|
262
|
+
'0xd411aCaE2Bc7019322277A21ff005d94705661C5': 'svUSDC',
|
|
263
|
+
'0xA38d92eC538e9aa3edb980b89701A9d38a1FE015': 'apUSDC',
|
|
264
|
+
'0x0C949AAf28bF0318bAa5f2cbF2F2D970f57879aB': 'UpStrBTC',
|
|
265
|
+
'0x517677A19D8ae6FF600FB86C3C7bFCCD651e3eec': 'upyzUSD',
|
|
266
|
+
'0xAEEb2fB279a5aA837367B9D2582F898a63b06ca1': 'upNUSD',
|
|
267
|
+
'0x3cC0D33B1AEac3d23eA89214b3AC5B4607032167': 'sentBTC',
|
|
268
|
+
'0x63C5d615e937697a80606788965E209414738820': 'sentUSCC',
|
|
269
|
+
'0xb2FdA773822E5a04c8A70348d66257DD5Cf442DB': 'farmBOLD',
|
|
270
|
+
'0xA422C3018C46ba90a14AcD14f96CB60616F5c91B': 'NEMO ETH Yield',
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* Vault Symbols Reverse Mapping
|
|
274
|
+
* @deprecated use getVaultMetadata to fetch vault symbols from the backend
|
|
275
|
+
*/
|
|
276
|
+
exports.VAULT_SYMBOLS_REVERSE = Object.fromEntries(Object.entries(exports.VAULT_SYMBOLS).map(([key, value]) => [value, key]));
|
|
277
|
+
//# sourceMappingURL=vaults.js.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { IChainId, IChainObj } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Non-EVM chains the SDK routes to its own adapters, keyed by adapter name.
|
|
4
|
+
*
|
|
5
|
+
* Each gets a synthetic negative `chainId` so it can share numeric chain-ID
|
|
6
|
+
* parameters with EVM chains without ever colliding with a real EVM ID. The
|
|
7
|
+
* IDs match the backend's `chain` column (Solana `-1`, Sui `-2`, Stellar `-3`),
|
|
8
|
+
* so a backend vault row's `chain` can be compared to these directly.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SPECIAL_CHAINS: {
|
|
11
|
+
solana: {
|
|
12
|
+
name: string;
|
|
13
|
+
chainId: number;
|
|
14
|
+
explorer: string;
|
|
15
|
+
};
|
|
16
|
+
sui: {
|
|
17
|
+
name: string;
|
|
18
|
+
chainId: number;
|
|
19
|
+
explorer: string;
|
|
20
|
+
};
|
|
21
|
+
stellar: {
|
|
22
|
+
name: string;
|
|
23
|
+
chainId: number;
|
|
24
|
+
explorer: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Chain ID used to address Sui vaults: `-2`, the same synthetic ID the backend
|
|
29
|
+
* stores for Sui vault rows (see {@link SPECIAL_CHAINS}).
|
|
30
|
+
*
|
|
31
|
+
* Kept as its own export because callers and the Sui adapter import it by
|
|
32
|
+
* name. It lives in `core/` rather than `adapters/sui/constants.ts` so `core/`
|
|
33
|
+
* can recognise it without importing the adapter layer (which would create a
|
|
34
|
+
* `core → adapters` back-edge); the adapter re-exports it.
|
|
35
|
+
*/
|
|
36
|
+
export declare const SUI_CHAIN_ID: number;
|
|
37
|
+
/**
|
|
38
|
+
* Chain IDs the SDK understands that are **not** served by an EVM JSON-RPC
|
|
39
|
+
* provider. Callers may legitimately pass these to vault methods without a
|
|
40
|
+
* matching entry in the `providers` map — the request routes through the
|
|
41
|
+
* Solana / Stellar / Sui adapter instead.
|
|
42
|
+
*/
|
|
43
|
+
export declare const NON_EVM_CHAIN_IDS: ReadonlySet<number>;
|
|
44
|
+
export declare const NATIVE_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
45
|
+
/**
|
|
46
|
+
* Decimal precision of the native gas token on every EVM chain this SDK
|
|
47
|
+
* supports (ETH, Base, Arbitrum, Avalanche, Polygon, BNB, HyperEVM, Unichain,
|
|
48
|
+
* Mezo, Monad, Plasma, Ink, Flare, Katana, Citrea, Fluent, Tempo, X Layer —
|
|
49
|
+
* whose native OKB is also 18 decimals).
|
|
50
|
+
*
|
|
51
|
+
* All of them use 18-decimal native tokens, so this is a single constant rather
|
|
52
|
+
* than a per-chain map. It exists because the native token has no ERC-20
|
|
53
|
+
* `decimals()` to read on-chain: when a subgraph row denominates an amount in
|
|
54
|
+
* the native token it is flagged with a sentinel address ({@link NATIVE_ADDRESS}
|
|
55
|
+
* or the zero address) instead of a real contract, and callers must substitute
|
|
56
|
+
* this value rather than attempting (and failing) a `decimals()` read.
|
|
57
|
+
*
|
|
58
|
+
* Non-EVM natives differ (SOL is 9, XLM is 7) and are handled by their own
|
|
59
|
+
* adapters — those chains never flow through the EVM `decimals()` path this
|
|
60
|
+
* constant serves.
|
|
61
|
+
*/
|
|
62
|
+
export declare const EVM_NATIVE_DECIMALS = 18;
|
|
63
|
+
export declare const MIN_ABIS: {
|
|
64
|
+
name: string;
|
|
65
|
+
symbol: string;
|
|
66
|
+
decimals: string;
|
|
67
|
+
totalSupply: string;
|
|
68
|
+
approve: string;
|
|
69
|
+
allowance: string;
|
|
70
|
+
managementFeePercent: string;
|
|
71
|
+
};
|
|
72
|
+
export declare const ORACLE_CONTRACTS: {
|
|
73
|
+
1: string;
|
|
74
|
+
43114: string;
|
|
75
|
+
42161: string;
|
|
76
|
+
8453: string;
|
|
77
|
+
10: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const NETWORKS: Record<IChainId, IChainObj>;
|
|
80
|
+
export declare const AVAILABLE_CHAINS: IChainId[];
|
|
81
|
+
/**
|
|
82
|
+
* Canonical [Multicall3](https://github.com/mds1/multicall) address, deployed
|
|
83
|
+
* via the deterministic deployer to the same address on most EVM chains.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
export declare const MULTICALL3_ADDRESS = "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
87
|
+
/**
|
|
88
|
+
* Chains where the canonical Multicall3 deployment was **verified on-chain**
|
|
89
|
+
* (`eth_getCode` returned the 3808-byte runtime at {@link MULTICALL3_ADDRESS};
|
|
90
|
+
* checked per chain on 2026-07-14, Tempo checked separately on 2026-07-15,
|
|
91
|
+
* X Layer on 2026-08-11) —
|
|
92
|
+
* deterministic-deployer presence is NOT assumed. Chains outside this set
|
|
93
|
+
* keep the per-call read path.
|
|
94
|
+
*
|
|
95
|
+
* Deliberately excluded from `NETWORKS`:
|
|
96
|
+
* - 4114 (Citrea) — `eth_getCode` returned `0x` (not deployed).
|
|
97
|
+
* - -1 (Solana), -3 (Stellar) — non-EVM, no Multicall3.
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
export declare const MULTICALL3_VERIFIED_CHAINS: ReadonlySet<number>;
|
|
101
|
+
/**
|
|
102
|
+
* Fallbacks
|
|
103
|
+
*/
|
|
104
|
+
export declare const FALLBACK_DECIMALS = 18;
|
|
105
|
+
export declare const FALLBACK_CHAINID = 42161;
|
|
106
|
+
export declare const FALLBACK_RPC_URLS: Record<number, string[]>;
|