@tokemak/constants 0.0.3 → 0.0.4

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.
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -8,10 +7,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
7
  var __commonJS = (cb, mod) => function __require() {
9
8
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
9
  };
11
- var __export = (target, all) => {
12
- for (var name in all)
13
- __defProp(target, name, { get: all[name], enumerable: true });
14
- };
15
10
  var __copyProps = (to, from, except, desc) => {
16
11
  if (from && typeof from === "object" || typeof from === "function") {
17
12
  for (let key of __getOwnPropNames(from))
@@ -28,7 +23,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
23
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
24
  mod
30
25
  ));
31
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
26
 
33
27
  // ../../node_modules/react/cjs/react-jsx-runtime.production.js
34
28
  var require_react_jsx_runtime_production = __commonJS({
@@ -517,7 +511,7 @@ var require_react_production = __commonJS({
517
511
 
518
512
  // ../../node_modules/react/cjs/react.development.js
519
513
  var require_react_development = __commonJS({
520
- "../../node_modules/react/cjs/react.development.js"(exports, module2) {
514
+ "../../node_modules/react/cjs/react.development.js"(exports, module) {
521
515
  "use strict";
522
516
  "production" !== process.env.NODE_ENV && function() {
523
517
  function defineDeprecationWarning(methodName, info) {
@@ -901,8 +895,8 @@ var require_react_development = __commonJS({
901
895
  if (null === enqueueTaskImpl)
902
896
  try {
903
897
  var requireString = ("require" + Math.random()).slice(0, 7);
904
- enqueueTaskImpl = (module2 && module2[requireString]).call(
905
- module2,
898
+ enqueueTaskImpl = (module && module[requireString]).call(
899
+ module,
906
900
  "timers"
907
901
  ).setImmediate;
908
902
  } catch (_err) {
@@ -1470,12 +1464,12 @@ var require_react_development = __commonJS({
1470
1464
 
1471
1465
  // ../../node_modules/react/index.js
1472
1466
  var require_react = __commonJS({
1473
- "../../node_modules/react/index.js"(exports, module2) {
1467
+ "../../node_modules/react/index.js"(exports, module) {
1474
1468
  "use strict";
1475
1469
  if (process.env.NODE_ENV === "production") {
1476
- module2.exports = require_react_production();
1470
+ module.exports = require_react_production();
1477
1471
  } else {
1478
- module2.exports = require_react_development();
1472
+ module.exports = require_react_development();
1479
1473
  }
1480
1474
  }
1481
1475
  });
@@ -1750,93 +1744,16 @@ var require_react_jsx_runtime_development = __commonJS({
1750
1744
 
1751
1745
  // ../../node_modules/react/jsx-runtime.js
1752
1746
  var require_jsx_runtime = __commonJS({
1753
- "../../node_modules/react/jsx-runtime.js"(exports, module2) {
1747
+ "../../node_modules/react/jsx-runtime.js"(exports, module) {
1754
1748
  "use strict";
1755
1749
  if (process.env.NODE_ENV === "production") {
1756
- module2.exports = require_react_jsx_runtime_production();
1750
+ module.exports = require_react_jsx_runtime_production();
1757
1751
  } else {
1758
- module2.exports = require_react_jsx_runtime_development();
1752
+ module.exports = require_react_jsx_runtime_development();
1759
1753
  }
1760
1754
  }
1761
1755
  });
1762
1756
 
1763
- // src/index.ts
1764
- var src_exports = {};
1765
- __export(src_exports, {
1766
- ACCTOKE_DOCS_LINK: () => ACCTOKE_DOCS_LINK,
1767
- ANNOUNCEMENT_LINK: () => ANNOUNCEMENT_LINK,
1768
- AUDITS_LINK: () => AUDITS_LINK,
1769
- BASESCAN_LINK: () => BASESCAN_LINK,
1770
- BASE_GAS_COSTS_FALLBACK: () => BASE_GAS_COSTS_FALLBACK,
1771
- BLOG_WEBSITE_LINK: () => BLOG_WEBSITE_LINK,
1772
- BUG_BOUNTY_LINK: () => BUG_BOUNTY_LINK,
1773
- CAREERS_LINK: () => CAREERS_LINK,
1774
- CERTORA_LINK: () => CERTORA_LINK,
1775
- COINGECKO_LINK: () => COINGECKO_LINK,
1776
- CONVEX_CLAIM_LINK: () => CONVEX_CLAIM_LINK,
1777
- CONVEX_STAKE_LINK: () => CONVEX_STAKE_LINK,
1778
- COW_SWAP_LINK: () => COW_SWAP_LINK,
1779
- CURVE_API_URL: () => CURVE_API_URL,
1780
- CURVE_LP_LINK: () => CURVE_LP_LINK,
1781
- CURVE_POOL_LINK: () => CURVE_POOL_LINK,
1782
- DISCORD_LINK: () => DISCORD_LINK,
1783
- ETHERSCAN_LINK: () => ETHERSCAN_LINK,
1784
- GITBOOK_LINK_V1: () => GITBOOK_LINK_V1,
1785
- GITBOOK_LINK_V2: () => GITBOOK_LINK_V2,
1786
- GITHUB_LINK: () => GITHUB_LINK,
1787
- GOVERNANCE_LINK: () => GOVERNANCE_LINK,
1788
- HALBORN_LINK: () => HALBORN_LINK,
1789
- HEXENS_LINK: () => HEXENS_LINK,
1790
- IMMUNEFI_LINK: () => IMMUNEFI_LINK,
1791
- INCH_SWAP_LINK: () => INCH_SWAP_LINK,
1792
- LLAMASWAP_LINK: () => LLAMASWAP_LINK,
1793
- LOCK_FAQS: () => LOCK_FAQS,
1794
- MAX_STOKE_MONTHS: () => MAX_STOKE_MONTHS,
1795
- MEDIUM_LINK: () => MEDIUM_LINK,
1796
- MIN_STOKE_MONTHS: () => MIN_STOKE_MONTHS,
1797
- RADIO_LINK: () => RADIO_LINK,
1798
- SHERLOCK_LINK: () => SHERLOCK_LINK,
1799
- SPLASH_WEBSITE_LINK: () => SPLASH_WEBSITE_LINK,
1800
- SUPPORTED_CHAINS: () => SUPPORTED_CHAINS,
1801
- SUPPORTED_DEV_CHAINS: () => SUPPORTED_DEV_CHAINS,
1802
- SUPPORTED_PROD_CHAINS: () => SUPPORTED_PROD_CHAINS,
1803
- SUPPORTED_STOKE_CHAINS: () => SUPPORTED_STOKE_CHAINS,
1804
- SUPPORTED_STOKE_DEV_CHAINS: () => SUPPORTED_STOKE_DEV_CHAINS,
1805
- SUPPORTED_STOKE_PROD_CHAINS: () => SUPPORTED_STOKE_PROD_CHAINS,
1806
- SUPPORTED_TOKE_CHAINS: () => SUPPORTED_TOKE_CHAINS,
1807
- SUSHI_LP_LINK: () => SUSHI_LP_LINK,
1808
- SUSHI_SWAP_LINK: () => SUSHI_SWAP_LINK,
1809
- TALLY_LINK: () => TALLY_LINK,
1810
- TERMS_OF_SERVICE_LINK: () => TERMS_OF_SERVICE_LINK,
1811
- TLDR_AUTO_COMPOUNDING_LINK: () => TLDR_AUTO_COMPOUNDING_LINK,
1812
- TLDR_AUTO_REBALANCING_LINK: () => TLDR_AUTO_REBALANCING_LINK,
1813
- TLDR_DASHBOARD_LINK: () => TLDR_DASHBOARD_LINK,
1814
- TLDR_YIELD_OPTIMIZING_LINK: () => TLDR_YIELD_OPTIMIZING_LINK,
1815
- TOKEBASE_LINK: () => TOKEBASE_LINK,
1816
- TOKEMAK_ACCTOKE_SUBGRAPH_URL: () => TOKEMAK_ACCTOKE_SUBGRAPH_URL,
1817
- TOKEMAK_DYNAMIC_SWAP_ROUTES_URL: () => TOKEMAK_DYNAMIC_SWAP_ROUTES_URL,
1818
- TOKEMAK_GENSTRAT_APRS_API_URL: () => TOKEMAK_GENSTRAT_APRS_API_URL,
1819
- TOKEMAK_LAUNCH_TIMESTAMP: () => TOKEMAK_LAUNCH_TIMESTAMP,
1820
- TOKEMAK_LAUNCH_TIMESTAMP_1_DAY_BEFORE: () => TOKEMAK_LAUNCH_TIMESTAMP_1_DAY_BEFORE,
1821
- TOKEMAK_PRICES_STAGING_URL: () => TOKEMAK_PRICES_STAGING_URL,
1822
- TOKEMAK_PROD_REWARDS_URL: () => TOKEMAK_PROD_REWARDS_URL,
1823
- TOKEMAK_RADIO_LINK: () => TOKEMAK_RADIO_LINK,
1824
- TOKEMAK_SWAP_PRICING_URL: () => TOKEMAK_SWAP_PRICING_URL,
1825
- TOKEMAK_SWAP_QUOTE_URL: () => TOKEMAK_SWAP_QUOTE_URL,
1826
- TOKEMERCH_LINK: () => TOKEMERCH_LINK,
1827
- TOKE_CURVE_POOL_ID: () => TOKE_CURVE_POOL_ID,
1828
- TOOLTIPS: () => TOOLTIPS,
1829
- TWITTER_LINK: () => TWITTER_LINK,
1830
- V1_APP_LINK: () => V1_APP_LINK,
1831
- V1_SPLASH_LINK: () => V1_SPLASH_LINK,
1832
- V2_ANNOUNCEMENT_ARTICLE_LINK: () => V2_ANNOUNCEMENT_ARTICLE_LINK,
1833
- V2_APP_LINK: () => V2_APP_LINK,
1834
- V2_MARKETPLACE_LINK: () => V2_MARKETPLACE_LINK,
1835
- V2_TOUR_LINK: () => V2_TOUR_LINK,
1836
- layerzeroScan: () => layerzeroScan
1837
- });
1838
- module.exports = __toCommonJS(src_exports);
1839
-
1840
1757
  // src/baseGasCosts.ts
1841
1758
  var BASE_GAS_COSTS_FALLBACK = {
1842
1759
  lock: 123638n,
@@ -1933,7 +1850,7 @@ var TOKEMAK_GENSTRAT_APRS_API_URL = "https://genstrat-aprs.tokemaklabs.com/api/a
1933
1850
  var TOKEMAK_DYNAMIC_SWAP_ROUTES_URL = "https://dynamic-swap-routes.tokemaklabs.com";
1934
1851
 
1935
1852
  // src/faqs.tsx
1936
- var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
1853
+ var import_jsx_runtime = __toESM(require_jsx_runtime());
1937
1854
  var LOCK_FAQS = [
1938
1855
  {
1939
1856
  question: "What is autoETH?",
@@ -2014,39 +1931,48 @@ var TOOLTIPS = {
2014
1931
  };
2015
1932
 
2016
1933
  // src/multichain.ts
2017
- var import_tokenlist = require("@tokemak/tokenlist");
1934
+ import {
1935
+ BASE_NETWORK,
1936
+ ETHEREUM_NETWORK,
1937
+ SONIC_NETWORK,
1938
+ ARBITRUM_NETWORK,
1939
+ PLASMA_NETWORK
1940
+ } from "@tokemak/tokenlist";
2018
1941
  var layerzeroScan = "https://layerzeroscan.com/";
2019
1942
  var SUPPORTED_TOKE_CHAINS = [
2020
- import_tokenlist.ETHEREUM_NETWORK,
2021
- import_tokenlist.BASE_NETWORK,
2022
- import_tokenlist.SONIC_NETWORK,
2023
- import_tokenlist.ARBITRUM_NETWORK,
2024
- import_tokenlist.PLASMA_NETWORK
1943
+ ETHEREUM_NETWORK,
1944
+ BASE_NETWORK,
1945
+ SONIC_NETWORK,
1946
+ ARBITRUM_NETWORK,
1947
+ PLASMA_NETWORK
2025
1948
  ];
2026
1949
 
2027
1950
  // src/stoke.ts
2028
- var import_tokenlist2 = require("@tokemak/tokenlist");
1951
+ import { BASE_NETWORK as BASE_NETWORK2, ETHEREUM_NETWORK as ETHEREUM_NETWORK2 } from "@tokemak/tokenlist";
2029
1952
  var MIN_STOKE_MONTHS = 1;
2030
1953
  var MAX_STOKE_MONTHS = 4;
2031
- var SUPPORTED_STOKE_PROD_CHAINS = [import_tokenlist2.ETHEREUM_NETWORK];
2032
- var SUPPORTED_STOKE_DEV_CHAINS = [import_tokenlist2.ETHEREUM_NETWORK, import_tokenlist2.BASE_NETWORK];
1954
+ var SUPPORTED_STOKE_PROD_CHAINS = [ETHEREUM_NETWORK2];
1955
+ var SUPPORTED_STOKE_DEV_CHAINS = [ETHEREUM_NETWORK2, BASE_NETWORK2];
2033
1956
  var SUPPORTED_STOKE_CHAINS = Array.from(
2034
1957
  /* @__PURE__ */ new Set([...SUPPORTED_STOKE_PROD_CHAINS, ...SUPPORTED_STOKE_DEV_CHAINS])
2035
1958
  );
2036
1959
 
2037
1960
  // src/chains.ts
2038
- var import_tokenlist3 = require("@tokemak/tokenlist");
2039
- var import_config = require("@tokemak/config");
2040
- var SUPPORTED_PROD_CHAINS = import_config.SUPPORTED_PROD_NETWORKS_IDS.map((chainId) => {
2041
- const network = import_tokenlist3.ALL_NETWORKS.find((network2) => network2.chainId === chainId);
1961
+ import { ALL_NETWORKS } from "@tokemak/tokenlist";
1962
+ import {
1963
+ SUPPORTED_DEV_NETWORKS_IDS,
1964
+ SUPPORTED_PROD_NETWORKS_IDS
1965
+ } from "@tokemak/config";
1966
+ var SUPPORTED_PROD_CHAINS = SUPPORTED_PROD_NETWORKS_IDS.map((chainId) => {
1967
+ const network = ALL_NETWORKS.find((network2) => network2.chainId === chainId);
2042
1968
  return {
2043
1969
  ...network,
2044
1970
  chainId
2045
1971
  };
2046
1972
  });
2047
- var SUPPORTED_DEV_CHAINS = import_config.SUPPORTED_DEV_NETWORKS_IDS.map(
1973
+ var SUPPORTED_DEV_CHAINS = SUPPORTED_DEV_NETWORKS_IDS.map(
2048
1974
  (chainId) => {
2049
- const network = import_tokenlist3.ALL_NETWORKS.find((network2) => network2.chainId === chainId);
1975
+ const network = ALL_NETWORKS.find((network2) => network2.chainId === chainId);
2050
1976
  return {
2051
1977
  ...network,
2052
1978
  chainId
@@ -2056,8 +1982,7 @@ var SUPPORTED_DEV_CHAINS = import_config.SUPPORTED_DEV_NETWORKS_IDS.map(
2056
1982
  var SUPPORTED_CHAINS = Array.from(
2057
1983
  /* @__PURE__ */ new Set([...SUPPORTED_PROD_CHAINS, ...SUPPORTED_DEV_CHAINS])
2058
1984
  );
2059
- // Annotate the CommonJS export names for ESM import in node:
2060
- 0 && (module.exports = {
1985
+ export {
2061
1986
  ACCTOKE_DOCS_LINK,
2062
1987
  ANNOUNCEMENT_LINK,
2063
1988
  AUDITS_LINK,
@@ -2129,7 +2054,7 @@ var SUPPORTED_CHAINS = Array.from(
2129
2054
  V2_MARKETPLACE_LINK,
2130
2055
  V2_TOUR_LINK,
2131
2056
  layerzeroScan
2132
- });
2057
+ };
2133
2058
  /*! Bundled license information:
2134
2059
 
2135
2060
  react/cjs/react-jsx-runtime.production.js:
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@tokemak/constants",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "main": "./dist/index.js",
5
+ "module": "./dist/index.js",
5
6
  "types": "./dist/index.d.ts",
6
7
  "sideEffects": false,
7
8
  "license": "MIT",
@@ -11,13 +12,12 @@
11
12
  "publishConfig": {
12
13
  "access": "public"
13
14
  },
14
- "type": "module",
15
15
  "dependencies": {
16
- "@tokemak/config": "0.0.3",
17
- "@tokemak/tokenlist": "0.0.2"
16
+ "@tokemak/config": "0.0.4",
17
+ "@tokemak/tokenlist": "0.0.3"
18
18
  },
19
19
  "scripts": {
20
- "build": "tsup src/index.ts --dts",
20
+ "build": "tsup",
21
21
  "lint": "eslint \"src/**/*.ts*\"",
22
22
  "clean": "rimraf .turbo node_modules dist"
23
23
  }