@berachain/config 0.2.5 → 0.2.7

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.
Files changed (69) hide show
  1. package/dist/bepolia.cjs +1 -7
  2. package/dist/bepolia.mjs +1 -7
  3. package/dist/chunk-2GCBWNKH.mjs +1 -0
  4. package/dist/chunk-2OLL4MUY.cjs +1 -0
  5. package/dist/chunk-2RLHVELA.mjs +2 -0
  6. package/dist/chunk-5YLBFOPA.mjs +1 -0
  7. package/dist/chunk-6CZTBBJT.cjs +2 -0
  8. package/dist/chunk-DUO7UEQD.cjs +1 -0
  9. package/dist/chunk-HJ25KNL4.cjs +1 -0
  10. package/dist/chunk-HLFO7V5I.cjs +1 -0
  11. package/dist/chunk-ITASDGG4.cjs +1 -0
  12. package/dist/chunk-MS6UGFXI.mjs +1 -0
  13. package/dist/chunk-MW34QRNX.cjs +1 -0
  14. package/dist/chunk-N45AQAIZ.mjs +1 -0
  15. package/dist/chunk-O243TIHY.mjs +1 -0
  16. package/dist/chunk-QHBQ2EN5.mjs +1 -0
  17. package/dist/chunk-QYM6VRYU.mjs +1 -0
  18. package/dist/chunk-WMZLZQ6E.mjs +1 -0
  19. package/dist/chunk-X5MTSC5T.cjs +1 -0
  20. package/dist/chunk-YLWSSHG6.cjs +1 -0
  21. package/dist/index.cjs +1 -10
  22. package/dist/index.mjs +1 -10
  23. package/dist/internal/header-sources.cjs +13 -409
  24. package/dist/internal/header-sources.mjs +13 -409
  25. package/dist/internal/index.cjs +1 -37
  26. package/dist/internal/index.mjs +1 -37
  27. package/dist/internal/maintenance.cjs +1 -24
  28. package/dist/internal/maintenance.mjs +1 -24
  29. package/dist/internal/nextjs/index.cjs +1 -83
  30. package/dist/internal/nextjs/index.mjs +1 -83
  31. package/dist/internal/nextjs/utils/index.cjs +1 -40
  32. package/dist/internal/nextjs/utils/index.mjs +1 -40
  33. package/dist/internal/sentry/index.cjs +1 -10
  34. package/dist/internal/sentry/index.mjs +1 -10
  35. package/dist/internal/sentry/sentry.client.config.cjs +1 -65
  36. package/dist/internal/sentry/sentry.client.config.mjs +1 -65
  37. package/dist/internal/tailwind/index.cjs +1 -237
  38. package/dist/internal/tailwind/index.mjs +1 -237
  39. package/dist/internal/wagmi/index.cjs +1 -57
  40. package/dist/internal/wagmi/index.mjs +1 -57
  41. package/dist/mainnet.cjs +1 -8
  42. package/dist/mainnet.mjs +1 -8
  43. package/dist/sentry.edge.config-AU3IBVBN.cjs +1 -0
  44. package/dist/sentry.edge.config-PXSVFOH6.mjs +1 -0
  45. package/dist/sentry.server.config-IOCQ5KDF.cjs +1 -0
  46. package/dist/sentry.server.config-NEPRXZ2E.mjs +1 -0
  47. package/package.json +1 -1
  48. package/dist/chunk-2PVGTKBC.cjs +0 -144
  49. package/dist/chunk-4MO7T43D.mjs +0 -144
  50. package/dist/chunk-AU3LYJAB.cjs +0 -75
  51. package/dist/chunk-B2BTOQVP.cjs +0 -25
  52. package/dist/chunk-EYYJ2UZT.cjs +0 -10
  53. package/dist/chunk-F5UIDRP6.mjs +0 -77
  54. package/dist/chunk-KJXYSGNH.mjs +0 -10
  55. package/dist/chunk-KQFPH756.cjs +0 -135
  56. package/dist/chunk-LALEUPWL.mjs +0 -8
  57. package/dist/chunk-MNIORAK3.cjs +0 -148
  58. package/dist/chunk-NF5WIUL6.cjs +0 -77
  59. package/dist/chunk-OWAB24JG.mjs +0 -25
  60. package/dist/chunk-PPXWH3KC.mjs +0 -135
  61. package/dist/chunk-UKXTPLZ5.mjs +0 -148
  62. package/dist/chunk-VWRKCGMU.mjs +0 -75
  63. package/dist/chunk-XA5DMTFW.mjs +0 -75
  64. package/dist/chunk-YT7WZDGI.cjs +0 -8
  65. package/dist/chunk-ZTYHPIUW.cjs +0 -75
  66. package/dist/sentry.edge.config-3Y5ABKSB.cjs +0 -22
  67. package/dist/sentry.edge.config-SIWSKDGR.mjs +0 -22
  68. package/dist/sentry.server.config-HY6I2WQ5.mjs +0 -22
  69. package/dist/sentry.server.config-ZXGUVYT6.cjs +0 -22
@@ -1,77 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/internal/nextjs/const.ts
2
- var IMAGE_REMOTE_PATTERNS = [
3
- {
4
- protocol: "https",
5
- hostname: "cdn.morpho.org",
6
- // bend
7
- port: "",
8
- pathname: "**"
9
- },
10
- {
11
- protocol: "https",
12
- hostname: "raw.githubusercontent.com",
13
- // bend
14
- port: "",
15
- pathname: "/trustwallet/assets/**"
16
- },
17
- {
18
- protocol: "https",
19
- hostname: "static.debank.com",
20
- // enso
21
- port: "",
22
- pathname: "/image/*/logo_url/**"
23
- },
24
- {
25
- protocol: "https",
26
- hostname: "raw.githubusercontent.com",
27
- port: "",
28
- pathname: "/berachain/**"
29
- },
30
- {
31
- protocol: "https",
32
- hostname: "assets.coingecko.com",
33
- port: "",
34
- pathname: "/coins/images/**"
35
- },
36
- {
37
- protocol: "https",
38
- hostname: "coin-images.coingecko.com",
39
- port: "",
40
- pathname: "/coins/images/**"
41
- },
42
- {
43
- protocol: "https",
44
- hostname: "beranames-assets-berachain.s3.eu-central-003.backblazeb2.com",
45
- port: "",
46
- pathname: "/**"
47
- },
48
- {
49
- protocol: "https",
50
- hostname: "icons.llama.fi",
51
- port: "",
52
- pathname: "/**"
53
- },
54
- {
55
- protocol: "https",
56
- hostname: "icons.llamao.fi",
57
- port: "",
58
- pathname: "/**"
59
- },
60
- {
61
- protocol: "https",
62
- hostname: "coin-images.coingecko.com",
63
- port: "",
64
- pathname: "/asset_platforms/images/**"
65
- },
66
- // token logos on metadata repo are hosted here. We own the directory
67
- {
68
- protocol: "https",
69
- hostname: "imagedelivery.net",
70
- port: "",
71
- pathname: "/qNj7Q3MCke89zoKzav7eDQ/**"
72
- }
73
- ];
74
-
75
-
76
-
77
- exports.IMAGE_REMOTE_PATTERNS = IMAGE_REMOTE_PATTERNS;
@@ -1,25 +0,0 @@
1
- import {
2
- defaultChainId,
3
- isLocalHost,
4
- isProduction
5
- } from "./chunk-VWRKCGMU.mjs";
6
-
7
- // src/internal/sentry/sentryEnvironment.ts
8
- var sentryEnvironment = defaultChainId === 80094 /* MAINNET */ ? "mainnet-" : "bepolia-";
9
- if (isProduction) {
10
- sentryEnvironment += "production";
11
- } else if (isLocalHost) {
12
- sentryEnvironment += "development";
13
- } else {
14
- sentryEnvironment += "preview";
15
- }
16
- var tracesSampleRate = isProduction ? 0.1 : 1;
17
- var sentryRelease = process.env.VERCEL_GIT_COMMIT_SHA;
18
- var sentryDebug = process.env.NEXT_PUBLIC_SENTRY_DEBUG === "true";
19
-
20
- export {
21
- sentryEnvironment,
22
- tracesSampleRate,
23
- sentryRelease,
24
- sentryDebug
25
- };
@@ -1,135 +0,0 @@
1
- import {
2
- bepolia
3
- } from "./chunk-UKXTPLZ5.mjs";
4
- import {
5
- mainnet
6
- } from "./chunk-4MO7T43D.mjs";
7
- import {
8
- defaultChainId,
9
- isLocalHost,
10
- isPreview,
11
- isProduction,
12
- isStaging
13
- } from "./chunk-VWRKCGMU.mjs";
14
-
15
- // src/internal/index.ts
16
- var chainConfigs = {
17
- [80094 /* MAINNET */]: mainnet,
18
- [80069 /* BEPOLIA */]: bepolia
19
- };
20
- var chainConfig = chainConfigs[defaultChainId];
21
- var posthogDataRegion = process.env.NEXT_PUBLIC_PH_DATA_CENTER ?? "eu";
22
- var _appConfig = {
23
- apiKeys: {
24
- public: {
25
- /**
26
- * This is only going to work on whitelisted domains.
27
- * Please create your own API key and add it to your .env.local file
28
- */
29
- thirdweb: process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ?? "fc597da15a06f1a6b42fae42112dd770",
30
- postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",
31
- enso: process.env.NEXT_PUBLIC_ENSO_API_KEY ?? "3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f"
32
- },
33
- private: {
34
- /**
35
- * This is a low-security API key that is used to access internal API endpoints that do not
36
- * expose any sensitive information. It's just used to avoid public access to these endpoints.
37
- */
38
- dummyInternalApiKey: process.env.DUMMY_INTERNAL_API_KEY,
39
- /**
40
- * API key for events on Luma.
41
- *
42
- * Used by ecosystem.berachain.com/events page
43
- */
44
- luma: process.env.LUMA_API_KEY,
45
- clickup: process.env.CLICKUP_API_KEY,
46
- /**
47
- * API key for Ghost content.
48
- *
49
- * Used by blog.berachain.com
50
- */
51
- ghostContent: process.env.GHOST_CONTENT_API_KEY,
52
- /**
53
- * API key for Ghost admin.
54
- *
55
- * Used by blog.berachain.com
56
- */
57
- ghostAdmin: process.env.GHOST_ADMIN_API_KEY,
58
- oogabooga: process.env.OOGABOOGA_API_KEY,
59
- haiku: process.env.HAIKU_API_KEY,
60
- kyberswap: process.env.KYBERSWAP_CLIENT_ID,
61
- enso: process.env.ENSO_API_KEY,
62
- // Created with tim's email. 100rps, no CORS
63
- etherscan: process.env.ETHERSCAN_API_KEY
64
- }
65
- },
66
- urls: {
67
- postHog: {
68
- region: posthogDataRegion,
69
- apiHost: process.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH ?? `https://${posthogDataRegion}.i.posthog.com`,
70
- uiHost: `https://${posthogDataRegion}.posthog.com`
71
- },
72
- ghost: "https://berachain.ghost.io",
73
- imageDelivery: "https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ",
74
- homepage: process.env.NEXT_PUBLIC_HOMEPAGE_URL ?? "https://www.berachain.com",
75
- ecosystem: "https://ecosystem.berachain.com/",
76
- ecojobs: "https://ecojobs.berachain.com/",
77
- docs: "https://docs.berachain.com",
78
- careers: "https://careers.berachain.com/",
79
- brandKit: "https://www.berachain.com/brand",
80
- blog: "https://blog.berachain.com/",
81
- news: "https://news.berachain.com/",
82
- honeypaper: "https://honeypaper.berachain.com/",
83
- airdrop: "https://airdrop.berachain.com/",
84
- twitter: "https://x.com/berachain",
85
- telegram: "https://t.me/BerachainPortal",
86
- discord: "https://discord.com/invite/berachain",
87
- github: "https://github.com/berachain",
88
- buildabera: "https://buildabera.xyz/"
89
- },
90
- bend: {
91
- /**
92
- * Margin from max LTV where warning will be shown about liquidation risk.
93
- * e.g. if max LTV is 0.8, warning will show at 0.75
94
- */
95
- liquidationWarningLtvMargin: 0.05,
96
- /**
97
- * Safety margin subtracted from max LTV to determine borrow limit.
98
- * e.g. if max LTV is 0.945, borrow limit will be 0.895
99
- */
100
- maxBorrowLtvMargin: 0.05,
101
- /**
102
- * Target utilization rate for public allocator supply in WAD format (18 decimals).
103
- * Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
104
- */
105
- publicAllocatorSupplyTargetUtilizationWad: BigInt(9e17)
106
- },
107
- env: {
108
- isProduction,
109
- isLocalHost,
110
- isPreview,
111
- isStaging
112
- }
113
- };
114
- var isAnalyticsEnabled = process.env.NODE_ENV !== "development" || process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS !== "0" && Boolean(process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS);
115
- var flags = {
116
- isPosthogEnabled: _appConfig.apiKeys.public.postHogProjectKey && isAnalyticsEnabled,
117
- /**
118
- * Disallow SEO indexing for non-mainnet deployments
119
- */
120
- disallowIndexing: defaultChainId !== 80094 /* MAINNET */ && defaultChainId !== 80069 /* BEPOLIA */,
121
- hideCurator: false
122
- };
123
- var appConfig = {
124
- ..._appConfig,
125
- flags
126
- };
127
- var config = {
128
- ...chainConfig
129
- };
130
-
131
- export {
132
- chainConfigs,
133
- appConfig,
134
- config
135
- };
@@ -1,148 +0,0 @@
1
- // src/bepolia.ts
2
- var bepolia = {
3
- chainId: 80069 /* BEPOLIA */,
4
- tokens: {
5
- wbera: "0x6969696969696969696969696969696969696969",
6
- swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",
7
- bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",
8
- wbtc: "0x",
9
- weth: "0x"
10
- },
11
- depositContract: "0x4242424242424242424242424242424242424242",
12
- pol: {
13
- rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2",
14
- beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",
15
- factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",
16
- rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52",
17
- staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",
18
- // Shut down on bepolia — hooks gate on this being non-null.
19
- bribeBoostApi: null,
20
- bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3",
21
- lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178"
22
- },
23
- api: {
24
- name: "Berachain API",
25
- uri: process.env.PRIVATE_80069_BEX_API_URL ?? process.env.NEXT_PUBLIC_80069_BEX_API_URL ?? "https://bepolia-api.berachain.com",
26
- headers: process.env.PRIVATE_80069_BEX_API_KEY ? {
27
- "x-api-key": process.env.PRIVATE_80069_BEX_API_KEY
28
- } : void 0
29
- },
30
- beep: {
31
- name: "Berachain Beep",
32
- uri: process.env.NEXT_PUBLIC_80069_BEEP_API_URL ?? "https://beep.testnet.berachain.com"
33
- },
34
- bex: {
35
- chainName: "BEPOLIA",
36
- vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE",
37
- helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f",
38
- queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92",
39
- relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C",
40
- factories: {
41
- composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1",
42
- weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57"
43
- },
44
- poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36",
45
- aggregatorsRouter: "0x0000000000000000000000000000000000000000",
46
- aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000",
47
- haikuRouter: null,
48
- haikuAgentAddress: null,
49
- aggregatorsProxyUrl: process.env.NEXT_PUBLIC_80069_AGGREGATORS_PROXY_URL ?? "",
50
- // Shut down on bepolia — hook gates on this being non-null.
51
- recoverFundsApi: null,
52
- recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a",
53
- balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b"
54
- },
55
- honey: {
56
- name: "BUSD",
57
- url: "https://bepolia.honey.berachain.com",
58
- factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",
59
- pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",
60
- pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB",
61
- reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91",
62
- token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"
63
- },
64
- hub: {
65
- name: "BeraHub",
66
- url: "https://bepolia.hub.berachain.com"
67
- },
68
- governance: {
69
- governor: process.env.NEXT_PUBLIC_80069_GOVERNANCE_ADDRESS ?? "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",
70
- timelock: process.env.NEXT_PUBLIC_80069_GOVERNANCE_TIMELOCK ?? "0xb5f2000b5744f207c931526cAE2134cAa8b6862a"
71
- },
72
- lists: {
73
- rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json",
74
- tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json",
75
- validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json"
76
- },
77
- external: {
78
- pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43"
79
- },
80
- averageBlockTime: 2,
81
- bridge: {
82
- name: "BeraBridge",
83
- url: "https://bepolia.bridge.berachain.com",
84
- nft: {
85
- name: "BeraBridge NFT",
86
- url: "#",
87
- eth: {
88
- subgraph: "#"
89
- },
90
- berachain: {
91
- subgraph: "#"
92
- }
93
- }
94
- },
95
- bend: {
96
- name: "Bend",
97
- url: "https://bepolia.bend.berachain.com",
98
- morpho: null,
99
- adaptiveCurveIrm: null,
100
- metaMorphoFactory: null,
101
- publicAllocator: null,
102
- bundler3: null,
103
- generalAdapter1: null,
104
- supportedVaults: [],
105
- curatorVaults: []
106
- },
107
- enso: {
108
- walletV2Factory: null,
109
- walletFlashloanAdapter: null
110
- },
111
- explore: {
112
- name: "Explore",
113
- url: "https://explore.berachain.com"
114
- },
115
- explorer: {
116
- name: "Berascan",
117
- url: "https://testnet.berascan.com"
118
- },
119
- chain: {
120
- name: process.env.NEXT_PUBLIC_CHAIN_NAME ?? "Berachain Bepolia"
121
- },
122
- /**
123
- * Public faucet configuration.
124
- *
125
- * Mainly used in static-monobera.
126
- */
127
- faucet: {
128
- name: "Faucet",
129
- url: "https://bepolia.faucet.berachain.com",
130
- /**
131
- * Amount of BERA the user will receive when using the faucet
132
- */
133
- dripAmount: 1,
134
- /**
135
- * Time in hours between each drip
136
- */
137
- timeGap: 8,
138
- cloudflareKey: process.env.CLOUDFLARE_KEY || "0x4AAAAAAARdAuciFArKhVwt",
139
- /**
140
- * API endpoint to send the request to the faucet
141
- */
142
- endpoint: "https://faucet-api.testnet.berachain.com"
143
- }
144
- };
145
-
146
- export {
147
- bepolia
148
- };
@@ -1,75 +0,0 @@
1
- import {
2
- ChainId
3
- } from "./chunk-KJXYSGNH.mjs";
4
-
5
- // src/utils/dynamicEnvVariable.ts
6
- var defaultChainId = process.env.NEXT_PUBLIC_CHAIN_ID ? Number(process.env.NEXT_PUBLIC_CHAIN_ID) : 80094 /* MAINNET */;
7
- if (!Object.values(ChainId).includes(defaultChainId)) {
8
- throw new Error(
9
- `process.env.NEXT_PUBLIC_CHAIN_ID is invalid: ${defaultChainId}.
10
- This value must be one of the following: ${Object.values(ChainId).filter(Number).join(", ")} when using @berachain/config/internal.`
11
- );
12
- }
13
- var isProduction = process.env.VERCEL_TARGET_ENV === "production";
14
- var isLocalHost = process.env.NODE_ENV === "development";
15
- var isPreview = process.env.VERCEL_TARGET_ENV === "preview" || isLocalHost;
16
- var isStaging = process.env.VERCEL_TARGET_ENV === "staging";
17
- var currentDapp = process.env.NEXT_PUBLIC_BERA_APP_NAME;
18
-
19
- // src/utils/env.ts
20
- if (defaultChainId !== 80094 /* MAINNET */ && defaultChainId !== 80069 /* BEPOLIA */) {
21
- throw new Error(`Invalid chainId: ${defaultChainId}`);
22
- }
23
- var _defaultChainId = defaultChainId;
24
- var imageBaseUrl = "https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ";
25
- var goldskyBaseUrl = "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/";
26
- function getRpcUrls(chainId = _defaultChainId) {
27
- if (chainId === 80069 /* BEPOLIA */ && process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL || chainId === 80094 /* MAINNET */ && process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL) {
28
- let anvilUrl = chainId === 80069 /* BEPOLIA */ ? process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL : process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL;
29
- if (process.env.VITEST_WORKER_ID) {
30
- anvilUrl = `${anvilUrl}/${process.env.VITEST_WORKER_ID ?? 1}`;
31
- } else {
32
- console.log("Using anvil RPC for bepolia", anvilUrl);
33
- }
34
- return {
35
- publicJsonRpcUrl: anvilUrl,
36
- jsonRpcUrl: anvilUrl,
37
- alchemyJsonRpcUrl: void 0,
38
- privateRcpUrl: void 0,
39
- isAnvil: true
40
- };
41
- }
42
- return {
43
- publicJsonRpcUrl: chainId === 80069 /* BEPOLIA */ ? process.env.NEXT_PUBLIC_80069_PUBLIC_JSON_RPC_URL ?? "https://bepolia.rpc.berachain.com" : process.env.NEXT_PUBLIC_80094_PUBLIC_JSON_RPC_URL ?? "https://rpc.berachain.com",
44
- jsonRpcUrl: chainId === 80069 /* BEPOLIA */ ? process.env.NEXT_PUBLIC_80069_JSON_RPC_URL ?? "https://bepolia.rpc.berachain.com" : process.env.NEXT_PUBLIC_80094_JSON_RPC_URL ?? "https://rpc.berachain.com",
45
- alchemyJsonRpcUrl: chainId === 80069 /* BEPOLIA */ ? process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL : process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,
46
- privateRcpUrl: chainId === 80069 /* BEPOLIA */ ? process.env.PRIVATE_80069_JSON_RPC_URL : process.env.PRIVATE_80094_JSON_RPC_URL,
47
- isAnvil: false
48
- };
49
- }
50
- var {
51
- publicJsonRpcUrl,
52
- jsonRpcUrl,
53
- alchemyJsonRpcUrl,
54
- /**
55
- * Dedicated private RPC URL for server side with higher rate limits.
56
- * Not available on client side.
57
- */
58
- privateRcpUrl
59
- } = getRpcUrls(defaultChainId);
60
-
61
- export {
62
- defaultChainId,
63
- isProduction,
64
- isLocalHost,
65
- isPreview,
66
- isStaging,
67
- currentDapp,
68
- imageBaseUrl,
69
- goldskyBaseUrl,
70
- getRpcUrls,
71
- publicJsonRpcUrl,
72
- jsonRpcUrl,
73
- alchemyJsonRpcUrl,
74
- privateRcpUrl
75
- };
@@ -1,75 +0,0 @@
1
- // src/internal/sentry/index.ts
2
- import * as Sentry from "@sentry/nextjs";
3
- async function registerSentry(opt = {}) {
4
- if (process.env.NEXT_RUNTIME === "edge") {
5
- const { initSentryEdge } = await import("./sentry.edge.config-SIWSKDGR.mjs");
6
- initSentryEdge(Sentry, opt);
7
- } else if (process.env.NEXT_RUNTIME === "nodejs") {
8
- const { initSentryServer } = await import("./sentry.server.config-HY6I2WQ5.mjs");
9
- initSentryServer(Sentry, opt);
10
- } else {
11
- }
12
- }
13
- function withSentryConfig2(config) {
14
- const _config = {
15
- ...config,
16
- env: {
17
- ...config.env,
18
- // This is needed for sentry to know the environment.
19
- VERCEL_TARGET_ENV: process.env.VERCEL_TARGET_ENV
20
- },
21
- webpack: (wpConfig, args) => {
22
- if (args.isServer && !args.dev && process.env.UPLOAD_SOURCEMAPS === "true") {
23
- wpConfig.devtool = "source-map";
24
- }
25
- return config.webpack?.(wpConfig, args) ?? wpConfig;
26
- }
27
- };
28
- return Sentry.withSentryConfig(_config, {
29
- // For all available options, see:
30
- // https://github.com/getsentry/sentry-webpack-plugin#options
31
- // Suppresses source map uploading logs during build
32
- // silent: process.env.NODE_ENV === "development",
33
- org: process.env.SENTRY_ORG,
34
- project: process.env.SENTRY_PROJECT,
35
- telemetry: false,
36
- reactComponentAnnotation: {
37
- enabled: process.env.UPLOAD_SOURCEMAPS === "true"
38
- },
39
- // For all available options, see:
40
- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
41
- // Upload a larger set of source maps for prettier stack traces (increases build time)
42
- widenClientFileUpload: process.env.UPLOAD_SOURCEMAPS === "true",
43
- sourcemaps: {
44
- disable: process.env.UPLOAD_SOURCEMAPS !== "true"
45
- // deleteSourcemapsAfterUpload: true,
46
- },
47
- debug: process.env.UPLOAD_SOURCEMAPS === "true",
48
- // sourcemaps: {
49
- // disable: false,
50
- // // disable: !["production", "staging"].includes(
51
- // // process.env.VERCEL_TARGET_ENV ?? "",
52
- // // ),
53
- // assets,
54
- // // deleteSourcemapsAfterUpload: true,
55
- // },
56
- // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
57
- tunnelRoute: "/monitoring-tunnel"
58
- // Hides source maps from generated client bundles
59
- // hideSourceMaps: true,
60
- // Automatically tree-shake Sentry logger statements to reduce bundle size
61
- // disableLogger: true,
62
- // Enables automatic instrumentation of Vercel Cron Monitors.
63
- // See the following for more information:
64
- // https://docs.sentry.io/product/crons/
65
- // https://vercel.com/docs/cron-jobs
66
- // automaticVercelMonitors: true,
67
- });
68
- }
69
- var onRequestError = Sentry.captureRequestError;
70
-
71
- export {
72
- registerSentry,
73
- withSentryConfig2 as withSentryConfig,
74
- onRequestError
75
- };
@@ -1,8 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/utils/getUriFromLink.ts
2
- function getUriFromLink(link) {
3
- return typeof link === "string" ? link : link.uri;
4
- }
5
-
6
-
7
-
8
- exports.getUriFromLink = getUriFromLink;
@@ -1,75 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/internal/sentry/index.ts
2
- var _nextjs = require('@sentry/nextjs'); var Sentry = _interopRequireWildcard(_nextjs);
3
- async function registerSentry(opt = {}) {
4
- if (process.env.NEXT_RUNTIME === "edge") {
5
- const { initSentryEdge } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.edge.config-3Y5ABKSB.cjs")));
6
- initSentryEdge(Sentry, opt);
7
- } else if (process.env.NEXT_RUNTIME === "nodejs") {
8
- const { initSentryServer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.server.config-ZXGUVYT6.cjs")));
9
- initSentryServer(Sentry, opt);
10
- } else {
11
- }
12
- }
13
- function withSentryConfig2(config) {
14
- const _config = {
15
- ...config,
16
- env: {
17
- ...config.env,
18
- // This is needed for sentry to know the environment.
19
- VERCEL_TARGET_ENV: process.env.VERCEL_TARGET_ENV
20
- },
21
- webpack: (wpConfig, args) => {
22
- if (args.isServer && !args.dev && process.env.UPLOAD_SOURCEMAPS === "true") {
23
- wpConfig.devtool = "source-map";
24
- }
25
- return _nullishCoalesce(_optionalChain([config, 'access', _ => _.webpack, 'optionalCall', _2 => _2(wpConfig, args)]), () => ( wpConfig));
26
- }
27
- };
28
- return Sentry.withSentryConfig(_config, {
29
- // For all available options, see:
30
- // https://github.com/getsentry/sentry-webpack-plugin#options
31
- // Suppresses source map uploading logs during build
32
- // silent: process.env.NODE_ENV === "development",
33
- org: process.env.SENTRY_ORG,
34
- project: process.env.SENTRY_PROJECT,
35
- telemetry: false,
36
- reactComponentAnnotation: {
37
- enabled: process.env.UPLOAD_SOURCEMAPS === "true"
38
- },
39
- // For all available options, see:
40
- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
41
- // Upload a larger set of source maps for prettier stack traces (increases build time)
42
- widenClientFileUpload: process.env.UPLOAD_SOURCEMAPS === "true",
43
- sourcemaps: {
44
- disable: process.env.UPLOAD_SOURCEMAPS !== "true"
45
- // deleteSourcemapsAfterUpload: true,
46
- },
47
- debug: process.env.UPLOAD_SOURCEMAPS === "true",
48
- // sourcemaps: {
49
- // disable: false,
50
- // // disable: !["production", "staging"].includes(
51
- // // process.env.VERCEL_TARGET_ENV ?? "",
52
- // // ),
53
- // assets,
54
- // // deleteSourcemapsAfterUpload: true,
55
- // },
56
- // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
57
- tunnelRoute: "/monitoring-tunnel"
58
- // Hides source maps from generated client bundles
59
- // hideSourceMaps: true,
60
- // Automatically tree-shake Sentry logger statements to reduce bundle size
61
- // disableLogger: true,
62
- // Enables automatic instrumentation of Vercel Cron Monitors.
63
- // See the following for more information:
64
- // https://docs.sentry.io/product/crons/
65
- // https://vercel.com/docs/cron-jobs
66
- // automaticVercelMonitors: true,
67
- });
68
- }
69
- var onRequestError = Sentry.captureRequestError;
70
-
71
-
72
-
73
-
74
-
75
- exports.registerSentry = registerSentry; exports.withSentryConfig = withSentryConfig2; exports.onRequestError = onRequestError;
@@ -1,22 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkB2BTOQVPcjs = require('./chunk-B2BTOQVP.cjs');
5
- require('./chunk-AU3LYJAB.cjs');
6
- require('./chunk-EYYJ2UZT.cjs');
7
-
8
- // src/internal/sentry/sentry.edge.config.ts
9
- function initSentryEdge(Sentry, opt = {}) {
10
- return Sentry.init({
11
- dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
12
- // Adjust this value in production, or use tracesSampler for greater control
13
- tracesSampleRate: _chunkB2BTOQVPcjs.tracesSampleRate,
14
- environment: _chunkB2BTOQVPcjs.sentryEnvironment,
15
- // Setting this option to true will print useful information to the console while you're setting up Sentry.
16
- debug: false,
17
- ...opt
18
- });
19
- }
20
-
21
-
22
- exports.initSentryEdge = initSentryEdge;
@@ -1,22 +0,0 @@
1
- import {
2
- sentryEnvironment,
3
- tracesSampleRate
4
- } from "./chunk-OWAB24JG.mjs";
5
- import "./chunk-VWRKCGMU.mjs";
6
- import "./chunk-KJXYSGNH.mjs";
7
-
8
- // src/internal/sentry/sentry.edge.config.ts
9
- function initSentryEdge(Sentry, opt = {}) {
10
- return Sentry.init({
11
- dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
12
- // Adjust this value in production, or use tracesSampler for greater control
13
- tracesSampleRate,
14
- environment: sentryEnvironment,
15
- // Setting this option to true will print useful information to the console while you're setting up Sentry.
16
- debug: false,
17
- ...opt
18
- });
19
- }
20
- export {
21
- initSentryEdge
22
- };