@berachain/config 0.1.14 → 0.1.15-beta.2

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 (101) hide show
  1. package/dist/bepolia.cjs +8 -1
  2. package/dist/bepolia.d.cts +2 -1
  3. package/dist/bepolia.d.ts +2 -1
  4. package/dist/bepolia.mjs +8 -1
  5. package/dist/chunk-2JZ7QJEW.cjs +84 -0
  6. package/dist/chunk-2XYRGOX3.mjs +64 -0
  7. package/dist/chunk-3K6IUX3G.mjs +25 -0
  8. package/dist/chunk-5CDP36UE.cjs +170 -0
  9. package/dist/chunk-5NCT3VFG.cjs +159 -0
  10. package/dist/chunk-6TL5ZQOM.cjs +75 -0
  11. package/dist/chunk-6WGFZPEJ.cjs +138 -0
  12. package/dist/chunk-75ZPJI57.cjs +9 -0
  13. package/dist/chunk-7P6ASYW6.mjs +9 -0
  14. package/dist/chunk-ADH7F47T.cjs +26 -0
  15. package/dist/chunk-AP2XG6GJ.mjs +84 -0
  16. package/dist/chunk-BM46XQJA.mjs +55 -0
  17. package/dist/chunk-CAOMAWN5.mjs +26 -0
  18. package/dist/chunk-CP24SAWQ.mjs +159 -0
  19. package/dist/chunk-EYYJ2UZT.cjs +10 -0
  20. package/dist/chunk-KJXYSGNH.mjs +10 -0
  21. package/dist/chunk-KKJ2Z3OM.mjs +138 -0
  22. package/dist/chunk-LALEUPWL.mjs +8 -0
  23. package/dist/chunk-NQ3UKQHW.mjs +75 -0
  24. package/dist/chunk-NX4FI7G3.cjs +64 -0
  25. package/dist/chunk-ONKAV4AG.cjs +25 -0
  26. package/dist/chunk-R7ARMQ76.mjs +170 -0
  27. package/dist/chunk-WRTYGXJM.cjs +55 -0
  28. package/dist/chunk-YT7WZDGI.cjs +8 -0
  29. package/dist/index.cjs +11 -1
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.mjs +11 -1
  33. package/dist/internal/edge-config/index.cjs +37 -1
  34. package/dist/internal/edge-config/index.d.cts +1 -1
  35. package/dist/internal/edge-config/index.d.ts +1 -1
  36. package/dist/internal/edge-config/index.mjs +37 -1
  37. package/dist/internal/flags/index.cjs +199 -1
  38. package/dist/internal/flags/index.mjs +199 -1
  39. package/dist/internal/header-sources.cjs +283 -11
  40. package/dist/internal/header-sources.mjs +283 -11
  41. package/dist/internal/index.cjs +40 -1
  42. package/dist/internal/index.d.cts +6 -2
  43. package/dist/internal/index.d.ts +6 -2
  44. package/dist/internal/index.mjs +40 -1
  45. package/dist/internal/maintenance.cjs +26 -1
  46. package/dist/internal/maintenance.mjs +26 -1
  47. package/dist/internal/nextjs/index.cjs +85 -1
  48. package/dist/internal/nextjs/index.d.cts +1 -1
  49. package/dist/internal/nextjs/index.d.ts +1 -1
  50. package/dist/internal/nextjs/index.mjs +85 -1
  51. package/dist/internal/nextjs/utils/index.cjs +39 -1
  52. package/dist/internal/nextjs/utils/index.mjs +39 -1
  53. package/dist/internal/sentry/index.cjs +11 -1
  54. package/dist/internal/sentry/index.mjs +11 -1
  55. package/dist/internal/sentry/sentry.client.config.cjs +59 -1
  56. package/dist/internal/sentry/sentry.client.config.mjs +59 -1
  57. package/dist/internal/tailwind/index.cjs +239 -1
  58. package/dist/internal/tailwind/index.mjs +239 -1
  59. package/dist/internal/tsup/index.cjs +73 -1
  60. package/dist/internal/tsup/index.mjs +73 -1
  61. package/dist/internal/wagmi/index.cjs +60 -1
  62. package/dist/internal/wagmi/index.mjs +60 -1
  63. package/dist/mainnet.cjs +10 -1
  64. package/dist/mainnet.d.cts +2 -1
  65. package/dist/mainnet.d.ts +2 -1
  66. package/dist/mainnet.mjs +10 -1
  67. package/dist/sentry.edge.config-F4334LEP.cjs +24 -0
  68. package/dist/sentry.edge.config-JU55FF2U.mjs +24 -0
  69. package/dist/sentry.server.config-KFRT37Q3.cjs +24 -0
  70. package/dist/sentry.server.config-M77KFJ6J.mjs +24 -0
  71. package/dist/{types-ClIxAUdh.d.cts → types-CiVVc4zX.d.cts} +1 -0
  72. package/dist/{types-ClIxAUdh.d.ts → types-CiVVc4zX.d.ts} +1 -0
  73. package/package.json +2 -2
  74. package/dist/chunk-276AZYTL.cjs +0 -1
  75. package/dist/chunk-2CDUNDHZ.cjs +0 -1
  76. package/dist/chunk-2OLL4MUY.cjs +0 -1
  77. package/dist/chunk-3KQLFIHT.cjs +0 -2
  78. package/dist/chunk-3L2GIQ45.mjs +0 -1
  79. package/dist/chunk-3MY6PKNR.cjs +0 -1
  80. package/dist/chunk-3WZ7JUD6.cjs +0 -1
  81. package/dist/chunk-4EBBM3AH.mjs +0 -1
  82. package/dist/chunk-4VDLQK6F.cjs +0 -1
  83. package/dist/chunk-6PCXTZ6I.mjs +0 -1
  84. package/dist/chunk-DL645PXT.mjs +0 -1
  85. package/dist/chunk-DUO7UEQD.cjs +0 -1
  86. package/dist/chunk-DVULZ7ID.cjs +0 -1
  87. package/dist/chunk-E44WM6MG.cjs +0 -1
  88. package/dist/chunk-FVNATITS.mjs +0 -1
  89. package/dist/chunk-HVJ4YIQJ.mjs +0 -1
  90. package/dist/chunk-JYSZ2GU3.cjs +0 -1
  91. package/dist/chunk-JZXLCA2E.mjs +0 -1
  92. package/dist/chunk-MS6UGFXI.mjs +0 -1
  93. package/dist/chunk-O243TIHY.mjs +0 -1
  94. package/dist/chunk-S2A3Z34I.mjs +0 -2
  95. package/dist/chunk-SU5YRBAA.mjs +0 -1
  96. package/dist/chunk-XO2H4NRK.mjs +0 -1
  97. package/dist/chunk-YQK5O5ZL.cjs +0 -1
  98. package/dist/sentry.edge.config-DS2KE3CX.cjs +0 -1
  99. package/dist/sentry.edge.config-OEQTPQ2L.mjs +0 -1
  100. package/dist/sentry.server.config-KRS7OUMO.mjs +0 -1
  101. package/dist/sentry.server.config-RNY6FTJT.cjs +0 -1
package/dist/bepolia.cjs CHANGED
@@ -1 +1,8 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2CDUNDHZcjs = require('./chunk-2CDUNDHZ.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');exports.bepolia = _chunk2CDUNDHZcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk5CDP36UEcjs = require('./chunk-5CDP36UE.cjs');
4
+ require('./chunk-EYYJ2UZT.cjs');
5
+ require('./chunk-75ZPJI57.cjs');
6
+
7
+
8
+ exports.bepolia = _chunk5CDP36UEcjs.bepolia;
@@ -1,4 +1,4 @@
1
- import { C as ChainId, A as Address } from './types-ClIxAUdh.cjs';
1
+ import { C as ChainId, A as Address } from './types-CiVVc4zX.cjs';
2
2
 
3
3
  declare const bepolia: {
4
4
  readonly chainId: ChainId.BEPOLIA;
@@ -24,6 +24,7 @@ declare const bepolia: {
24
24
  } | undefined;
25
25
  };
26
26
  readonly bribeBoostApi: string;
27
+ readonly supplyMonitorApi: string;
27
28
  readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
28
29
  readonly lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178";
29
30
  };
package/dist/bepolia.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ChainId, A as Address } from './types-ClIxAUdh.js';
1
+ import { C as ChainId, A as Address } from './types-CiVVc4zX.js';
2
2
 
3
3
  declare const bepolia: {
4
4
  readonly chainId: ChainId.BEPOLIA;
@@ -24,6 +24,7 @@ declare const bepolia: {
24
24
  } | undefined;
25
25
  };
26
26
  readonly bribeBoostApi: string;
27
+ readonly supplyMonitorApi: string;
27
28
  readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
28
29
  readonly lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178";
29
30
  };
package/dist/bepolia.mjs CHANGED
@@ -1 +1,8 @@
1
- import{a}from"./chunk-6PCXTZ6I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";export{a as bepolia};
1
+ import {
2
+ bepolia
3
+ } from "./chunk-R7ARMQ76.mjs";
4
+ import "./chunk-KJXYSGNH.mjs";
5
+ import "./chunk-7P6ASYW6.mjs";
6
+ export {
7
+ bepolia
8
+ };
@@ -0,0 +1,84 @@
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: "cdn.whisk.so",
27
+ // bend
28
+ port: "",
29
+ pathname: "**"
30
+ },
31
+ {
32
+ protocol: "https",
33
+ hostname: "raw.githubusercontent.com",
34
+ port: "",
35
+ pathname: "/berachain/**"
36
+ },
37
+ {
38
+ protocol: "https",
39
+ hostname: "assets.coingecko.com",
40
+ port: "",
41
+ pathname: "/coins/images/**"
42
+ },
43
+ {
44
+ protocol: "https",
45
+ hostname: "coin-images.coingecko.com",
46
+ port: "",
47
+ pathname: "/coins/images/**"
48
+ },
49
+ {
50
+ protocol: "https",
51
+ hostname: "beranames-assets-berachain.s3.eu-central-003.backblazeb2.com",
52
+ port: "",
53
+ pathname: "/**"
54
+ },
55
+ {
56
+ protocol: "https",
57
+ hostname: "icons.llama.fi",
58
+ port: "",
59
+ pathname: "/**"
60
+ },
61
+ {
62
+ protocol: "https",
63
+ hostname: "icons.llamao.fi",
64
+ port: "",
65
+ pathname: "/**"
66
+ },
67
+ {
68
+ protocol: "https",
69
+ hostname: "coin-images.coingecko.com",
70
+ port: "",
71
+ pathname: "/asset_platforms/images/**"
72
+ },
73
+ // token logos on metadata repo are hosted here. We own the directory
74
+ {
75
+ protocol: "https",
76
+ hostname: "imagedelivery.net",
77
+ port: "",
78
+ pathname: "/qNj7Q3MCke89zoKzav7eDQ/**"
79
+ }
80
+ ];
81
+
82
+
83
+
84
+ exports.IMAGE_REMOTE_PATTERNS = IMAGE_REMOTE_PATTERNS;
@@ -0,0 +1,64 @@
1
+ import {
2
+ currentDapp,
3
+ defaultChainId
4
+ } from "./chunk-CAOMAWN5.mjs";
5
+
6
+ // src/internal/edge-config/isFlagEnabled.ts
7
+ function _checkChain(flag, chain, defaultReturn) {
8
+ if (flag.chain?.length) {
9
+ return flag.chain.includes(
10
+ chain === 80094 /* MAINNET */ ? "mainnet" : "bepolia"
11
+ );
12
+ }
13
+ return defaultReturn;
14
+ }
15
+ function _checkBranch(flag, _environment, defaultReturn) {
16
+ if (!_environment) {
17
+ return defaultReturn;
18
+ }
19
+ const environment = _environment === "development" ? "preview" : _environment;
20
+ if (flag.branch?.length) {
21
+ return flag.branch.includes(
22
+ environment
23
+ );
24
+ }
25
+ return defaultReturn;
26
+ }
27
+ function _checkAppName(flag, app, defaultReturn) {
28
+ if (flag.app?.length && app) {
29
+ return flag.app.includes(app);
30
+ }
31
+ return defaultReturn;
32
+ }
33
+ function _checkTime(flag, key, defaultReturn) {
34
+ const time = flag[key];
35
+ if (!time) {
36
+ return defaultReturn;
37
+ }
38
+ if (key === "startAt") {
39
+ return time ? new Date(time) <= /* @__PURE__ */ new Date() : defaultReturn;
40
+ } else {
41
+ return time ? new Date(time) >= /* @__PURE__ */ new Date() : defaultReturn;
42
+ }
43
+ }
44
+ function isFlagEnabled(flag, {
45
+ chain = defaultChainId,
46
+ environment = process.env.VERCEL_TARGET_ENV,
47
+ app = currentDapp
48
+ } = {}) {
49
+ if (!flag) return false;
50
+ if (typeof flag === "boolean") {
51
+ return flag;
52
+ }
53
+ if (flag.condition === "OR") {
54
+ return _checkChain(flag, chain, false) || _checkBranch(flag, environment, false) || _checkAppName(flag, app, false) || // this condition is weird but it's consistent with the logic in the AND condition
55
+ // this means that if startAt is false, but endAt is true, the flag is enabled anyway
56
+ // we should prob consider a cleaner way to handle the OR condition in the future
57
+ _checkTime(flag, "startAt", false) || _checkTime(flag, "endAt", false);
58
+ }
59
+ return _checkChain(flag, chain, true) && _checkBranch(flag, environment, true) && _checkAppName(flag, app, true) && _checkTime(flag, "startAt", true) && _checkTime(flag, "endAt", true);
60
+ }
61
+
62
+ export {
63
+ isFlagEnabled
64
+ };
@@ -0,0 +1,25 @@
1
+ import {
2
+ defaultChainId,
3
+ isLocalHost,
4
+ isProduction
5
+ } from "./chunk-CAOMAWN5.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
+ };
@@ -0,0 +1,170 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// 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
+ // Same pattern as bend.whiskApi: non-public env values are only available server-side.
19
+ subgraph: {
20
+ name: "pol-subgraph",
21
+ uri: _nullishCoalesce(process.env.PRIVATE_80069_POL_SUBGRAPH_UPSTREAM, () => ( "https://api.subgraph.ormilabs.com/api/private/948207bc-bbb5-47e7-969a-06f9a6f35af3/subgraphs/pol-subgraph/bepolia-v1.7.3/gn")),
22
+ headers: process.env.ORMI_API_KEY ? { Authorization: `Bearer ${process.env.ORMI_API_KEY}` } : void 0
23
+ },
24
+ bribeBoostApi: process.env.NEXT_PUBLIC_80069_INCENTIVES_API || "https://bepolia.api-claim.berachain.com",
25
+ supplyMonitorApi: process.env.NEXT_PUBLIC_80069_SUPPLY_MONITOR_API || "https://supply-monitor-9pvdr6qas.berachain-staging.com",
26
+ bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3",
27
+ lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178"
28
+ },
29
+ api: {
30
+ name: "Berachain API",
31
+ uri: _nullishCoalesce(_nullishCoalesce(process.env.PRIVATE_80069_BEX_API_URL, () => ( process.env.NEXT_PUBLIC_80069_BEX_API_URL)), () => ( "https://bepolia-api.berachain.com")),
32
+ headers: process.env.PRIVATE_80069_BEX_API_KEY ? {
33
+ "x-api-key": process.env.PRIVATE_80069_BEX_API_KEY
34
+ } : void 0
35
+ },
36
+ backend: {
37
+ name: "Berachain Backend",
38
+ uri: _nullishCoalesce(process.env.NEXT_PUBLIC_80069_BACKEND_API_URL, () => ( "https://backend-production-351b.up.railway.app"))
39
+ },
40
+ bex: {
41
+ chainName: "BEPOLIA",
42
+ vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE",
43
+ helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f",
44
+ queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92",
45
+ relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C",
46
+ factories: {
47
+ composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1",
48
+ weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57"
49
+ },
50
+ poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36",
51
+ aggregatorsRouter: "0x0000000000000000000000000000000000000000",
52
+ aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000",
53
+ haikuRouter: null,
54
+ haikuAgentAddress: null,
55
+ aggregatorsProxyUrl: _nullishCoalesce(process.env.NEXT_PUBLIC_80069_AGGREGATORS_PROXY_URL, () => ( "")),
56
+ recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com",
57
+ recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a",
58
+ balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b"
59
+ },
60
+ honey: {
61
+ name: "Honey",
62
+ url: "https://bepolia.honey.berachain.com",
63
+ // Same pattern as bend.whiskApi: non-public env values are only available server-side.
64
+ subgraph: {
65
+ name: "honey-subgraph",
66
+ uri: _nullishCoalesce(process.env.PRIVATE_80069_HONEY_SUBGRAPH_UPSTREAM, () => ( "https://api.subgraph.ormilabs.com/api/private/948207bc-bbb5-47e7-969a-06f9a6f35af3/subgraphs/honey-subgraph/bepolia-v1.2.1/gn")),
67
+ headers: process.env.ORMI_API_KEY ? { Authorization: `Bearer ${process.env.ORMI_API_KEY}` } : void 0
68
+ },
69
+ factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",
70
+ pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",
71
+ pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB",
72
+ reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91",
73
+ token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"
74
+ },
75
+ hub: {
76
+ name: "BeraHub",
77
+ url: "https://bepolia.hub.berachain.com"
78
+ },
79
+ governance: {
80
+ governor: _nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_ADDRESS, () => ( "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5")),
81
+ timelock: _nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_TIMELOCK, () => ( "0xb5f2000b5744f207c931526cAE2134cAa8b6862a"))
82
+ },
83
+ lists: {
84
+ rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json",
85
+ tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json",
86
+ validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json"
87
+ },
88
+ external: {
89
+ pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43"
90
+ },
91
+ averageBlockTime: 2,
92
+ bridge: {
93
+ name: "BeraBridge",
94
+ url: "https://bepolia.bridge.berachain.com",
95
+ nft: {
96
+ name: "BeraBridge NFT",
97
+ url: "#",
98
+ eth: {
99
+ subgraph: "#"
100
+ },
101
+ berachain: {
102
+ subgraph: "#"
103
+ }
104
+ }
105
+ },
106
+ bend: {
107
+ name: "Bend",
108
+ url: "https://bepolia.bend.berachain.com",
109
+ whiskApi: null,
110
+ production: {
111
+ morpho: null,
112
+ adaptiveCurveIrm: null,
113
+ metaMorphoFactory: null,
114
+ publicAllocator: null,
115
+ bundler3: null,
116
+ generalAdapter1: null,
117
+ supportedVaults: []
118
+ },
119
+ staging: {
120
+ morpho: null,
121
+ adaptiveCurveIrm: null,
122
+ metaMorphoFactory: null,
123
+ publicAllocator: null,
124
+ bundler3: null,
125
+ generalAdapter1: null,
126
+ supportedVaults: []
127
+ }
128
+ },
129
+ enso: {
130
+ walletV2Factory: null,
131
+ walletFlashloanAdapter: null
132
+ },
133
+ explore: {
134
+ name: "Explore",
135
+ url: "https://explore.berachain.com"
136
+ },
137
+ explorer: {
138
+ name: "Berascan",
139
+ url: "https://testnet.berascan.com"
140
+ },
141
+ chain: {
142
+ name: _nullishCoalesce(process.env.NEXT_PUBLIC_CHAIN_NAME, () => ( "Berachain Bepolia"))
143
+ },
144
+ /**
145
+ * Public faucet configuration.
146
+ *
147
+ * Mainly used in static-monobera.
148
+ */
149
+ faucet: {
150
+ name: "Faucet",
151
+ url: "https://bepolia.faucet.berachain.com",
152
+ /**
153
+ * Amount of BERA the user will receive when using the faucet
154
+ */
155
+ dripAmount: 1,
156
+ /**
157
+ * Time in hours between each drip
158
+ */
159
+ timeGap: 8,
160
+ cloudflareKey: process.env.CLOUDFLARE_KEY || "0x4AAAAAAARdAuciFArKhVwt",
161
+ /**
162
+ * API endpoint to send the request to the faucet
163
+ */
164
+ endpoint: "https://faucet-api.testnet.berachain.com"
165
+ }
166
+ };
167
+
168
+
169
+
170
+ exports.bepolia = bepolia;
@@ -0,0 +1,159 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+ var _chunkWRTYGXJMcjs = require('./chunk-WRTYGXJM.cjs');
4
+
5
+ // src/mainnet.ts
6
+ var mainnet = {
7
+ chainId: 80094 /* MAINNET */,
8
+ tokens: {
9
+ wbera: "0x6969696969696969696969696969696969696969",
10
+ swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",
11
+ bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",
12
+ wbtc: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
13
+ weth: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590"
14
+ },
15
+ depositContract: "0x4242424242424242424242424242424242424242",
16
+ pol: {
17
+ rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2",
18
+ beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",
19
+ rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791",
20
+ factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",
21
+ staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",
22
+ // Same pattern as bend.whiskApi: non-public env values are only available server-side.
23
+ subgraph: {
24
+ name: "pol-subgraph",
25
+ uri: _nullishCoalesce(process.env.PRIVATE_80094_POL_SUBGRAPH_UPSTREAM, () => ( "https://api.subgraph.ormilabs.com/api/private/948207bc-bbb5-47e7-969a-06f9a6f35af3/subgraphs/pol-subgraph/mainnet-v1.7.3/gn")),
26
+ headers: process.env.ORMI_API_KEY ? { Authorization: `Bearer ${process.env.ORMI_API_KEY}` } : void 0
27
+ },
28
+ bribeBoostApi: process.env.NEXT_PUBLIC_80094_INCENTIVES_API || "https://api-claim.berachain.com",
29
+ supplyMonitorApi: process.env.NEXT_PUBLIC_80094_SUPPLY_MONITOR_API || "https://supply-monitor-9pvdr6qas.berachain-staging.com",
30
+ bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6",
31
+ lstStakerVaultFactory: "0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500"
32
+ },
33
+ api: {
34
+ name: "Berachain API",
35
+ uri: _nullishCoalesce(_nullishCoalesce(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
+ backend: {
41
+ name: "Berachain Backend",
42
+ uri: _nullishCoalesce(process.env.NEXT_PUBLIC_80094_BACKEND_API_URL, () => ( "https://api-prod-ff16.up.railway.app"))
43
+ },
44
+ bex: {
45
+ chainName: "BERACHAIN",
46
+ vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B",
47
+ helper: "0x5083737EC75a728c265BE578C9d0d5333a2c5951",
48
+ queries: "0x3C612e132624f4Bd500eE1495F54565F0bcc9b59",
49
+ relayer: "0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7",
50
+ factories: {
51
+ composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1",
52
+ weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409"
53
+ },
54
+ balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b",
55
+ poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2",
56
+ aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58",
57
+ aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8",
58
+ haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7",
59
+ haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71",
60
+ aggregatorsProxyUrl: _nullishCoalesce(process.env.NEXT_PUBLIC_80094_AGGREGATORS_PROXY_URL, () => ( "https://gateway.mainnet.berachain.com/proxy")),
61
+ recoverFundsApi: _nullishCoalesce(process.env.NEXT_PUBLIC_80094_RECOVER_FUNDS_API, () => ( "https://be4i5d40pr3f00n4c441n.mainnet.berachain.com")),
62
+ recoverFundsContract: _nullishCoalesce(process.env.NEXT_PUBLIC_80094_RECOVER_FUNDS_CONTRACT, () => ( "0xB5787B8f7b07a00229b617c4B7a616185857C147"))
63
+ },
64
+ honey: {
65
+ name: "Honey",
66
+ url: "https://honey.berachain.com",
67
+ // Same pattern as bend.whiskApi: non-public env values are only available server-side.
68
+ subgraph: {
69
+ name: "honey-subgraph",
70
+ uri: _nullishCoalesce(process.env.PRIVATE_80094_HONEY_SUBGRAPH_UPSTREAM, () => ( "https://api.subgraph.ormilabs.com/api/private/948207bc-bbb5-47e7-969a-06f9a6f35af3/subgraphs/honey-subgraph/mainnet-v1.2.1/gn")),
71
+ headers: process.env.ORMI_API_KEY ? { Authorization: `Bearer ${process.env.ORMI_API_KEY}` } : void 0
72
+ },
73
+ factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",
74
+ pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",
75
+ pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95",
76
+ reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91",
77
+ token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"
78
+ },
79
+ hub: {
80
+ name: "BeraHub",
81
+ url: "https://hub.berachain.com"
82
+ },
83
+ governance: {
84
+ governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",
85
+ timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a"
86
+ },
87
+ lists: {
88
+ rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json",
89
+ tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/mainnet.json",
90
+ validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/mainnet.json"
91
+ },
92
+ external: {
93
+ pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43"
94
+ },
95
+ averageBlockTime: 2,
96
+ bridge: {
97
+ name: "BeraBridge",
98
+ url: "https://bridge.berachain.com",
99
+ nft: {
100
+ name: "BeraBridge NFT",
101
+ url: "https://nftbridge.berachain.com",
102
+ eth: {
103
+ subgraph: `${_chunkWRTYGXJMcjs.goldskyBaseUrl}nft-bridge-subgraph/eth-v1.0.0-beta1/gn`
104
+ },
105
+ berachain: {
106
+ subgraph: `${_chunkWRTYGXJMcjs.goldskyBaseUrl}nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn`
107
+ }
108
+ }
109
+ },
110
+ bend: {
111
+ name: "Bend",
112
+ url: "https://bend.berachain.com",
113
+ whiskApi: {
114
+ name: "Bend Whisk",
115
+ uri: _nullishCoalesce(process.env.WHISK_API_URL, () => ( "https://berachain.whisk.so/graphql")),
116
+ headers: process.env.WHISK_API_KEY ? {
117
+ Authorization: `Bearer ${process.env.WHISK_API_KEY}`
118
+ } : void 0
119
+ },
120
+ production: {
121
+ morpho: "0x24147243f9c08d835C218Cda1e135f8dFD0517D0",
122
+ adaptiveCurveIrm: "0xcf247Df3A2322Dea0D408f011c194906E77a6f62",
123
+ metaMorphoFactory: "0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616",
124
+ publicAllocator: "0xB62F34Ab315eaDeAc698e8EaEB6Fc2650951BFe7",
125
+ bundler3: "0xF920140A65D0f412f2AB3e76C4fEAB5Eef0657ae",
126
+ generalAdapter1: "0xd2B9667F5214115E27937C410cAeE83E3a901Df7",
127
+ supportedVaults: (_nullishCoalesce(process.env.NEXT_PUBLIC_80094_BEND_PRODUCTION_SUPPORTED_VAULTS, () => ( "0x30BbA9CD9Eb8c95824aa42Faa1Bb397b07545bc1"))).split(",").filter(Boolean)
128
+ },
129
+ staging: {
130
+ morpho: "0xC5FabF3a7E98a2ed89f5d5057Ab010634Ca7e71f",
131
+ adaptiveCurveIrm: "0x1d5376e532CcF25b740270624111D665830E5dB9",
132
+ metaMorphoFactory: "0x524061B659380a5e4576d76F0951303B20B5932f",
133
+ publicAllocator: "0xFD6e68bC20be2a01Ec1Df687c83f927087D52811",
134
+ bundler3: "0x56811e1BFfF951B98c7940d3aCe0e549Ec4fDee8",
135
+ generalAdapter1: "0x257a41E20BBfe90D750646C2e00bA700D55958C5",
136
+ supportedVaults: (_nullishCoalesce(process.env.NEXT_PUBLIC_80094_BEND_STAGING_SUPPORTED_VAULTS, () => ( "0x19DcFf4e8Ff0B554D8a1f22d289A449fd4FbddBa,0xC0808A144CE2ea85bF84EBD1dDF5D59429f59dDE"))).split(",").filter(Boolean)
137
+ }
138
+ },
139
+ enso: {
140
+ walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55",
141
+ walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b"
142
+ },
143
+ explore: {
144
+ name: "Explore",
145
+ url: "https://explore.berachain.com"
146
+ },
147
+ explorer: {
148
+ name: "Berascan",
149
+ url: "https://berascan.com"
150
+ },
151
+ chain: {
152
+ name: _nullishCoalesce(process.env.NEXT_PUBLIC_CHAIN_NAME, () => ( "Berachain"))
153
+ },
154
+ faucet: null
155
+ };
156
+
157
+
158
+
159
+ exports.mainnet = mainnet;
@@ -0,0 +1,75 @@
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-F4334LEP.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-KFRT37Q3.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;