@tokemak/constants 0.0.4 → 0.1.1
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.d.ts +36 -1
- package/dist/index.js +112 -1794
- package/dist/index.mjs +98 -1817
- package/package.json +16 -4
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,14 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as _tokemak_tokenlist from '@tokemak/tokenlist';
|
|
3
3
|
import { INetwork } from '@tokemak/tokenlist';
|
|
4
4
|
|
|
5
|
+
/** Number of days after creation during which an autopool is considered "new" */
|
|
6
|
+
declare const NEW_AUTOPOOL_THRESHOLD_DAYS = 45;
|
|
7
|
+
/** Days per year used in APR → daily earnings calculations */
|
|
8
|
+
declare const DAYS_PER_YEAR = 365;
|
|
9
|
+
/** Addresses that indicate a generic (non-specific) strategy on an autopool */
|
|
10
|
+
declare const DEAD_ADDRESS = "0x000000000000000000000000000000000000dead";
|
|
11
|
+
declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
12
|
+
|
|
5
13
|
declare const BASE_GAS_COSTS_FALLBACK: {
|
|
6
14
|
lock: bigint;
|
|
7
15
|
approve: bigint;
|
|
@@ -55,6 +63,7 @@ declare const TLDR_DASHBOARD_LINK = "https://docs.tokemak.xyz/autopilot/autopilo
|
|
|
55
63
|
declare const SPLASH_WEBSITE_LINK = "https://www.tokemak.xyz/";
|
|
56
64
|
declare const V1_SPLASH_LINK = "https://v1.tokemak.xyz/";
|
|
57
65
|
declare const V1_APP_LINK = "https://v1.tokemak.xyz/";
|
|
66
|
+
declare const LEGACY_APP_LINK = "https://legacy.auto.finance";
|
|
58
67
|
declare const V2_APP_LINK = "https://app.auto.finance/";
|
|
59
68
|
declare const V2_MARKETPLACE_LINK = "https://marketplace.tokemak.xyz/";
|
|
60
69
|
declare const BLOG_WEBSITE_LINK = "https://blog.tokemak.xyz/";
|
|
@@ -62,6 +71,7 @@ declare const TERMS_OF_SERVICE_LINK = "https://app.auto.finance/terms";
|
|
|
62
71
|
declare const TALLY_LINK = "tally.so";
|
|
63
72
|
declare const V2_ANNOUNCEMENT_ARTICLE_LINK = "https://blog.tokemak.xyz/post/autopilot-guarded-launch-announcement";
|
|
64
73
|
declare const ACCTOKE_DOCS_LINK = "https://docs.tokemak.xyz/toke/acctoke";
|
|
74
|
+
declare const SAUTO_ANNOUNCEMENT_LINK = "https://blog.tokemak.xyz/post/toke-to-auto-migration-is-now-live";
|
|
65
75
|
declare const V2_TOUR_LINK = "https://www.figma.com/proto/XXveJKkpeZSBpKwCY1yKWD/Diagrams-and-Explainers?page-id=308%3A144&type=design&node-id=310-3938&viewport=895%2C546%2C0.04&scaling=min-zoom&starting-point-node-id=310%3A2153";
|
|
66
76
|
declare const HALBORN_LINK = "https://www.halborn.com/";
|
|
67
77
|
declare const IMMUNEFI_LINK = "https://immunefi.com/";
|
|
@@ -80,6 +90,7 @@ declare const CURVE_LP_LINK = "https://curve.finance/#/ethereum/pools/factory-cr
|
|
|
80
90
|
declare const CONVEX_STAKE_LINK = "https://curve.convexfinance.com/stake/ethereum/99";
|
|
81
91
|
declare const CONVEX_CLAIM_LINK = "https://curve.convexfinance.com/claim";
|
|
82
92
|
declare const ANNOUNCEMENT_LINK = "https://blog.tokemak.xyz/post/auto-finance";
|
|
93
|
+
declare const TOKENS_BASE_LINK = "https://auto.finance/tokens";
|
|
83
94
|
|
|
84
95
|
declare const TOKEMAK_PROD_REWARDS_URL = "https://auto-rewards-prod-bucket-pool-stats-api-tokemakxyz.s3.amazonaws.com/current.json";
|
|
85
96
|
declare const TOKEMAK_ACCTOKE_SUBGRAPH_URL = "https://subgraph.satsuma-prod.com/ba2506a7b20f/tokemak/AccToke/api";
|
|
@@ -90,6 +101,7 @@ declare const TOKEMAK_PRICES_STAGING_URL = "https://swaps-pricing.tokemaklabs.co
|
|
|
90
101
|
declare const TOKEMAK_SWAP_QUOTE_URL = "https://swaps-pricing.tokemaklabs.com/swap-quote-v2";
|
|
91
102
|
declare const TOKEMAK_GENSTRAT_APRS_API_URL = "https://genstrat-aprs.tokemaklabs.com/api/aprs";
|
|
92
103
|
declare const TOKEMAK_DYNAMIC_SWAP_ROUTES_URL = "https://dynamic-swap-routes.tokemaklabs.com";
|
|
104
|
+
declare const AUTOPOOLS_APR_URL = "https://autopools-api.tokemaklabs.com/api";
|
|
93
105
|
|
|
94
106
|
declare const LOCK_FAQS: {
|
|
95
107
|
question: string;
|
|
@@ -139,4 +151,27 @@ declare const SUPPORTED_PROD_CHAINS: INetwork[];
|
|
|
139
151
|
declare const SUPPORTED_DEV_CHAINS: INetwork[];
|
|
140
152
|
declare const SUPPORTED_CHAINS: INetwork[];
|
|
141
153
|
|
|
142
|
-
|
|
154
|
+
declare const UNI_V4_POOL_ID = "0xc41ab7da3d68aee076df71ef0f7a4665abdb8d5a9bc72c17ac86b61fadb89846";
|
|
155
|
+
declare const MERKL_CREATOR_ADDRESS = "0x123cC4AFA59160C6328C0152cf333343F510e5A3";
|
|
156
|
+
declare const AUTO_UNI_V4_POOL_URL = "https://app.uniswap.org/explore/pools/ethereum/0xc41ab7da3d68aee076df71ef0f7a4665abdb8d5a9bc72c17ac86b61fadb89846";
|
|
157
|
+
declare const ETH_AUTO_FEE_TIER = 3000;
|
|
158
|
+
declare const MERKL_OPPORTUNITY_ID = "2837890339901340771";
|
|
159
|
+
declare const UNISWAP_V4_POOL_MANAGER: Record<number, `0x${string}`>;
|
|
160
|
+
declare const UNISWAP_V4_STATE_VIEW: Record<number, `0x${string}`>;
|
|
161
|
+
declare const UNISWAP_V4_POSITION_MANAGER: Record<number, `0x${string}`>;
|
|
162
|
+
declare const ETH_AUTO_V4_POOL_ID: "0xc41ab7da3d68aee076df71ef0f7a4665abdb8d5a9bc72c17ac86b61fadb89846";
|
|
163
|
+
declare const DEFILLAMA_YIELDS_API = "https://yields.llama.fi/pools";
|
|
164
|
+
declare const GRAPH_API_KEY = "fb6d69844db4795507676c9b6d495b14";
|
|
165
|
+
|
|
166
|
+
declare const SAUTO_PINNED_LOCK_CYCLE = 4241;
|
|
167
|
+
declare const SAUTO_PINNED_LOCK_CYCLE_DATE: number;
|
|
168
|
+
declare const SAUTO_LOCK_CYCLE_RENEWAL = "Tuesdays at 20:30:00 GMT";
|
|
169
|
+
|
|
170
|
+
/** Minimum token amount used when probing liquidation routes */
|
|
171
|
+
declare const LIQUIDATION_PROBE_AMOUNT = 100n;
|
|
172
|
+
/** Default slippage in basis points for dynamic swap route requests (20%) */
|
|
173
|
+
declare const DYNAMIC_SWAP_DEFAULT_SLIPPAGE_BPS = 2000;
|
|
174
|
+
/** Placeholder address used for contract simulations when no user is connected */
|
|
175
|
+
declare const SIMULATION_PLACEHOLDER_ADDRESS = "0x8b4334d4812c530574bd4f2763fcd22de94a969b";
|
|
176
|
+
|
|
177
|
+
export { ACCTOKE_DOCS_LINK, ANNOUNCEMENT_LINK, AUDITS_LINK, AUTOPOOLS_APR_URL, AUTO_UNI_V4_POOL_URL, BASESCAN_LINK, BASE_GAS_COSTS_FALLBACK, BLOG_WEBSITE_LINK, BUG_BOUNTY_LINK, CAREERS_LINK, CERTORA_LINK, COINGECKO_LINK, CONVEX_CLAIM_LINK, CONVEX_STAKE_LINK, COW_SWAP_LINK, CURVE_API_URL, CURVE_LP_LINK, CURVE_POOL_LINK, DAYS_PER_YEAR, DEAD_ADDRESS, DEFILLAMA_YIELDS_API, DISCORD_LINK, DYNAMIC_SWAP_DEFAULT_SLIPPAGE_BPS, ETHERSCAN_LINK, ETH_AUTO_FEE_TIER, ETH_AUTO_V4_POOL_ID, GITBOOK_LINK_V1, GITBOOK_LINK_V2, GITHUB_LINK, GOVERNANCE_LINK, GRAPH_API_KEY, HALBORN_LINK, HEXENS_LINK, IMMUNEFI_LINK, INCH_SWAP_LINK, LEGACY_APP_LINK, LIQUIDATION_PROBE_AMOUNT, LLAMASWAP_LINK, LOCK_FAQS, MAX_STOKE_MONTHS, MEDIUM_LINK, MERKL_CREATOR_ADDRESS, MERKL_OPPORTUNITY_ID, MIN_STOKE_MONTHS, NEW_AUTOPOOL_THRESHOLD_DAYS, RADIO_LINK, SAUTO_ANNOUNCEMENT_LINK, SAUTO_LOCK_CYCLE_RENEWAL, SAUTO_PINNED_LOCK_CYCLE, SAUTO_PINNED_LOCK_CYCLE_DATE, SHERLOCK_LINK, SIMULATION_PLACEHOLDER_ADDRESS, SPLASH_WEBSITE_LINK, SUPPORTED_CHAINS, SUPPORTED_DEV_CHAINS, SUPPORTED_PROD_CHAINS, SUPPORTED_STOKE_CHAINS, SUPPORTED_STOKE_DEV_CHAINS, SUPPORTED_STOKE_PROD_CHAINS, SUPPORTED_TOKE_CHAINS, SUSHI_LP_LINK, SUSHI_SWAP_LINK, TALLY_LINK, TERMS_OF_SERVICE_LINK, TLDR_AUTO_COMPOUNDING_LINK, TLDR_AUTO_REBALANCING_LINK, TLDR_DASHBOARD_LINK, TLDR_YIELD_OPTIMIZING_LINK, TOKEBASE_LINK, TOKEMAK_ACCTOKE_SUBGRAPH_URL, TOKEMAK_DYNAMIC_SWAP_ROUTES_URL, TOKEMAK_GENSTRAT_APRS_API_URL, TOKEMAK_LAUNCH_TIMESTAMP, TOKEMAK_LAUNCH_TIMESTAMP_1_DAY_BEFORE, TOKEMAK_PRICES_STAGING_URL, TOKEMAK_PROD_REWARDS_URL, TOKEMAK_RADIO_LINK, TOKEMAK_SWAP_PRICING_URL, TOKEMAK_SWAP_QUOTE_URL, TOKEMERCH_LINK, TOKENS_BASE_LINK, TOKE_CURVE_POOL_ID, TOOLTIPS, TWITTER_LINK, UNISWAP_V4_POOL_MANAGER, UNISWAP_V4_POSITION_MANAGER, UNISWAP_V4_STATE_VIEW, UNI_V4_POOL_ID, V1_APP_LINK, V1_SPLASH_LINK, V2_ANNOUNCEMENT_ARTICLE_LINK, V2_APP_LINK, V2_MARKETPLACE_LINK, V2_TOUR_LINK, ZERO_ADDRESS, layerzeroScan };
|