@berachain/config 0.2.8-beta.1 → 0.2.8

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 (79) hide show
  1. package/dist/bepolia.cjs +1 -7
  2. package/dist/bepolia.d.ts +0 -4
  3. package/dist/bepolia.d.ts.map +1 -1
  4. package/dist/bepolia.mjs +1 -7
  5. package/dist/chunk-2GCBWNKH.mjs +1 -0
  6. package/dist/chunk-2OLL4MUY.cjs +1 -0
  7. package/dist/chunk-2RLHVELA.mjs +2 -0
  8. package/dist/chunk-5YLBFOPA.mjs +1 -0
  9. package/dist/chunk-6CZTBBJT.cjs +2 -0
  10. package/dist/chunk-DUO7UEQD.cjs +1 -0
  11. package/dist/chunk-HJ25KNL4.cjs +1 -0
  12. package/dist/chunk-HLFO7V5I.cjs +1 -0
  13. package/dist/chunk-ITASDGG4.cjs +1 -0
  14. package/dist/chunk-MS6UGFXI.mjs +1 -0
  15. package/dist/chunk-MW34QRNX.cjs +1 -0
  16. package/dist/chunk-N45AQAIZ.mjs +1 -0
  17. package/dist/chunk-O243TIHY.mjs +1 -0
  18. package/dist/chunk-QHBQ2EN5.mjs +1 -0
  19. package/dist/chunk-QYM6VRYU.mjs +1 -0
  20. package/dist/chunk-WMZLZQ6E.mjs +1 -0
  21. package/dist/chunk-X5MTSC5T.cjs +1 -0
  22. package/dist/chunk-YLWSSHG6.cjs +1 -0
  23. package/dist/index.cjs +1 -10
  24. package/dist/index.mjs +1 -10
  25. package/dist/internal/header-sources.cjs +13 -409
  26. package/dist/internal/header-sources.d.ts +11 -1
  27. package/dist/internal/header-sources.d.ts.map +1 -1
  28. package/dist/internal/header-sources.mjs +13 -409
  29. package/dist/internal/index.cjs +1 -37
  30. package/dist/internal/index.d.ts +0 -16
  31. package/dist/internal/index.d.ts.map +1 -1
  32. package/dist/internal/index.mjs +1 -37
  33. package/dist/internal/maintenance.cjs +1 -24
  34. package/dist/internal/maintenance.mjs +1 -24
  35. package/dist/internal/nextjs/index.cjs +1 -83
  36. package/dist/internal/nextjs/index.mjs +1 -83
  37. package/dist/internal/nextjs/utils/index.cjs +1 -40
  38. package/dist/internal/nextjs/utils/index.mjs +1 -40
  39. package/dist/internal/sentry/index.cjs +1 -10
  40. package/dist/internal/sentry/index.mjs +1 -10
  41. package/dist/internal/sentry/sentry.client.config.cjs +1 -65
  42. package/dist/internal/sentry/sentry.client.config.mjs +1 -65
  43. package/dist/internal/tailwind/index.cjs +1 -237
  44. package/dist/internal/tailwind/index.mjs +1 -237
  45. package/dist/internal/wagmi/index.cjs +1 -57
  46. package/dist/internal/wagmi/index.mjs +1 -57
  47. package/dist/mainnet.cjs +1 -8
  48. package/dist/mainnet.d.ts +0 -4
  49. package/dist/mainnet.d.ts.map +1 -1
  50. package/dist/mainnet.mjs +1 -8
  51. package/dist/sentry.edge.config-AU3IBVBN.cjs +1 -0
  52. package/dist/sentry.edge.config-PXSVFOH6.mjs +1 -0
  53. package/dist/sentry.server.config-IOCQ5KDF.cjs +1 -0
  54. package/dist/sentry.server.config-NEPRXZ2E.mjs +1 -0
  55. package/dist/types.d.ts +0 -5
  56. package/dist/types.d.ts.map +1 -1
  57. package/package.json +1 -1
  58. package/dist/chunk-6OF46MO2.mjs +0 -135
  59. package/dist/chunk-AU3LYJAB.cjs +0 -75
  60. package/dist/chunk-B2BTOQVP.cjs +0 -25
  61. package/dist/chunk-CBAAKY4N.cjs +0 -152
  62. package/dist/chunk-DEP7BIPJ.cjs +0 -151
  63. package/dist/chunk-EYYJ2UZT.cjs +0 -10
  64. package/dist/chunk-F5UIDRP6.mjs +0 -77
  65. package/dist/chunk-FEDP4MQE.cjs +0 -135
  66. package/dist/chunk-GB6ZGTAF.mjs +0 -152
  67. package/dist/chunk-KJXYSGNH.mjs +0 -10
  68. package/dist/chunk-LALEUPWL.mjs +0 -8
  69. package/dist/chunk-NF5WIUL6.cjs +0 -77
  70. package/dist/chunk-OWAB24JG.mjs +0 -25
  71. package/dist/chunk-VWRKCGMU.mjs +0 -75
  72. package/dist/chunk-XA5DMTFW.mjs +0 -75
  73. package/dist/chunk-XHPQ7VX6.mjs +0 -151
  74. package/dist/chunk-YT7WZDGI.cjs +0 -8
  75. package/dist/chunk-ZTYHPIUW.cjs +0 -75
  76. package/dist/sentry.edge.config-3Y5ABKSB.cjs +0 -22
  77. package/dist/sentry.edge.config-SIWSKDGR.mjs +0 -22
  78. package/dist/sentry.server.config-HY6I2WQ5.mjs +0 -22
  79. package/dist/sentry.server.config-ZXGUVYT6.cjs +0 -22
@@ -1,151 +0,0 @@
1
- import {
2
- goldskyBaseUrl
3
- } from "./chunk-VWRKCGMU.mjs";
4
-
5
- // src/mainnet.ts
6
- function addressList(value) {
7
- return [
8
- ...new Set(
9
- value.split(",").filter(Boolean).map((address) => address.toLowerCase())
10
- )
11
- ];
12
- }
13
- var mainnet = {
14
- chainId: 80094 /* MAINNET */,
15
- tokens: {
16
- wbera: "0x6969696969696969696969696969696969696969",
17
- swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",
18
- bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",
19
- wbtc: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
20
- weth: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590"
21
- },
22
- depositContract: "0x4242424242424242424242424242424242424242",
23
- pol: {
24
- rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2",
25
- beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",
26
- rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791",
27
- factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",
28
- staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",
29
- bribeBoostApi: process.env.NEXT_PUBLIC_80094_INCENTIVES_API || "https://api-claim.berachain.com",
30
- bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6",
31
- lstStakerVaultFactory: "0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500"
32
- },
33
- api: {
34
- name: "Berachain API",
35
- uri: process.env.PRIVATE_80094_BEX_API_URL ?? process.env.NEXT_PUBLIC_80094_BEX_API_URL ?? "https://api.berachain.com",
36
- headers: process.env.PRIVATE_80094_BEX_API_KEY ? {
37
- "x-api-key": process.env.PRIVATE_80094_BEX_API_KEY
38
- } : void 0
39
- },
40
- beep: {
41
- uri: process.env.NEXT_PUBLIC_80094_BEEP_API_URL || "https://beep.berachain.com",
42
- name: "Berachain Beep"
43
- },
44
- // No production onramp-api deployment yet, so no default — deliberately
45
- // `null` rather than falling back to staging, which would send real orders
46
- // to a test backend.
47
- onramp: process.env.NEXT_PUBLIC_80094_ONRAMP_API_URL ? {
48
- uri: process.env.NEXT_PUBLIC_80094_ONRAMP_API_URL,
49
- name: "Berachain Onramp"
50
- } : null,
51
- bex: {
52
- chainName: "BERACHAIN",
53
- vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B",
54
- helper: "0x5083737EC75a728c265BE578C9d0d5333a2c5951",
55
- queries: "0x3C612e132624f4Bd500eE1495F54565F0bcc9b59",
56
- relayer: "0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7",
57
- factories: {
58
- composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1",
59
- weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409"
60
- },
61
- balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b",
62
- poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2",
63
- aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58",
64
- aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8",
65
- haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7",
66
- haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71",
67
- aggregatorsProxyUrl: process.env.NEXT_PUBLIC_80094_AGGREGATORS_PROXY_URL ?? "https://gateway.mainnet.berachain.com/proxy",
68
- recoverFundsApi: process.env.NEXT_PUBLIC_80094_RECOVER_FUNDS_API ?? "https://be4i5d40pr3f00n4c441n.mainnet.berachain.com",
69
- recoverFundsContract: process.env.NEXT_PUBLIC_80094_RECOVER_FUNDS_CONTRACT ?? "0xB5787B8f7b07a00229b617c4B7a616185857C147"
70
- },
71
- honey: {
72
- /**
73
- * Display name of the honey app, and the app identity exposed as
74
- * `NEXT_PUBLIC_BERA_APP_NAME` by `withBeraConfig`.
75
- */
76
- name: "BUSD",
77
- url: "https://busd.berachain.com",
78
- factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",
79
- pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",
80
- pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95",
81
- reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91",
82
- token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"
83
- },
84
- hub: {
85
- name: "BeraHub",
86
- url: "https://hub.berachain.com"
87
- },
88
- governance: {
89
- governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",
90
- timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a"
91
- },
92
- lists: {
93
- rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json",
94
- tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/mainnet.json",
95
- validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/mainnet.json"
96
- },
97
- external: {
98
- pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43"
99
- },
100
- averageBlockTime: 2,
101
- bridge: {
102
- name: "BeraBridge",
103
- url: "https://bridge.berachain.com",
104
- nft: {
105
- name: "BeraBridge NFT",
106
- url: "https://nftbridge.berachain.com",
107
- eth: {
108
- subgraph: `${goldskyBaseUrl}nft-bridge-subgraph/eth-v1.0.0-beta1/gn`
109
- },
110
- berachain: {
111
- subgraph: `${goldskyBaseUrl}nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn`
112
- }
113
- }
114
- },
115
- bend: {
116
- name: "Bend",
117
- url: "https://bend.berachain.com",
118
- morpho: "0x24147243f9c08d835C218Cda1e135f8dFD0517D0",
119
- adaptiveCurveIrm: "0xcf247Df3A2322Dea0D408f011c194906E77a6f62",
120
- metaMorphoFactory: "0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616",
121
- publicAllocator: "0xB62F34Ab315eaDeAc698e8EaEB6Fc2650951BFe7",
122
- bundler3: "0xF920140A65D0f412f2AB3e76C4fEAB5Eef0657ae",
123
- generalAdapter1: "0xd2B9667F5214115E27937C410cAeE83E3a901Df7",
124
- supportedVaults: addressList(
125
- process.env.NEXT_PUBLIC_80094_BEND_SUPPORTED_VAULTS ?? "0x30BbA9CD9Eb8c95824aa42Faa1Bb397b07545bc1,0xB5f473c4b7F402d8f7bED42b6D516f5ff3306B01"
126
- ),
127
- curatorVaults: addressList(
128
- process.env.NEXT_PUBLIC_80094_BEND_CURATOR_VAULTS ?? "0x30BbA9CD9Eb8c95824aa42Faa1Bb397b07545bc1,0xB5f473c4b7F402d8f7bED42b6D516f5ff3306B01"
129
- )
130
- },
131
- enso: {
132
- walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55",
133
- walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b"
134
- },
135
- explore: {
136
- name: "Explore",
137
- url: "https://explore.berachain.com"
138
- },
139
- explorer: {
140
- name: "Berascan",
141
- url: "https://berascan.com"
142
- },
143
- chain: {
144
- name: process.env.NEXT_PUBLIC_CHAIN_NAME ?? "Berachain"
145
- },
146
- faucet: null
147
- };
148
-
149
- export {
150
- mainnet
151
- };
@@ -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
- };
@@ -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.server.config.ts
9
- function initSentryServer(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
- initSentryServer
22
- };
@@ -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.server.config.ts
9
- function initSentryServer(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.initSentryServer = initSentryServer;