@berachain/config 0.0.7 → 0.1.1-5.beta-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.
Files changed (111) hide show
  1. package/dist/bepolia.cjs +8 -1
  2. package/dist/bepolia.d.cts +26 -7
  3. package/dist/bepolia.d.ts +26 -7
  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-3XMRQ4AF.cjs +169 -0
  9. package/dist/chunk-6TL5ZQOM.cjs +75 -0
  10. package/dist/chunk-75ZPJI57.cjs +9 -0
  11. package/dist/chunk-7P6ASYW6.mjs +9 -0
  12. package/dist/chunk-ADH7F47T.cjs +26 -0
  13. package/dist/chunk-AMUU2OH4.cjs +158 -0
  14. package/dist/chunk-AP2XG6GJ.mjs +84 -0
  15. package/dist/chunk-BM46XQJA.mjs +55 -0
  16. package/dist/chunk-CAOMAWN5.mjs +26 -0
  17. package/dist/chunk-EYYJ2UZT.cjs +10 -0
  18. package/dist/chunk-JHPXZOPW.mjs +158 -0
  19. package/dist/chunk-JZA34W4G.cjs +138 -0
  20. package/dist/chunk-KJXYSGNH.mjs +10 -0
  21. package/dist/chunk-KYJQS3T5.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-SWEAJ6OD.mjs +169 -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 +19 -2
  35. package/dist/internal/edge-config/index.d.ts +19 -2
  36. package/dist/internal/edge-config/index.mjs +37 -1
  37. package/dist/internal/flags/index.cjs +206 -1
  38. package/dist/internal/flags/index.d.cts +13 -1
  39. package/dist/internal/flags/index.d.ts +13 -1
  40. package/dist/internal/flags/index.mjs +206 -1
  41. package/dist/internal/header-sources.cjs +283 -11
  42. package/dist/internal/header-sources.mjs +283 -11
  43. package/dist/internal/index.cjs +40 -1
  44. package/dist/internal/index.d.cts +222 -140
  45. package/dist/internal/index.d.ts +222 -140
  46. package/dist/internal/index.mjs +40 -1
  47. package/dist/internal/maintenance.cjs +26 -1
  48. package/dist/internal/maintenance.mjs +26 -1
  49. package/dist/internal/nextjs/index.cjs +85 -1
  50. package/dist/internal/nextjs/index.d.cts +9 -2
  51. package/dist/internal/nextjs/index.d.ts +9 -2
  52. package/dist/internal/nextjs/index.mjs +85 -1
  53. package/dist/internal/nextjs/utils/index.cjs +39 -1
  54. package/dist/internal/nextjs/utils/index.mjs +39 -1
  55. package/dist/internal/sentry/index.cjs +11 -1
  56. package/dist/internal/sentry/index.mjs +11 -1
  57. package/dist/internal/sentry/sentry.client.config.cjs +59 -1
  58. package/dist/internal/sentry/sentry.client.config.mjs +59 -1
  59. package/dist/internal/tailwind/index.cjs +239 -1
  60. package/dist/internal/tailwind/index.d.cts +21 -11
  61. package/dist/internal/tailwind/index.d.ts +21 -11
  62. package/dist/internal/tailwind/index.mjs +239 -1
  63. package/dist/internal/tsup/index.cjs +73 -1
  64. package/dist/internal/tsup/index.d.cts +1 -1
  65. package/dist/internal/tsup/index.d.ts +1 -1
  66. package/dist/internal/tsup/index.mjs +73 -1
  67. package/dist/internal/wagmi/index.cjs +60 -0
  68. package/dist/internal/wagmi/index.d.cts +12 -0
  69. package/dist/internal/wagmi/index.d.ts +12 -0
  70. package/dist/internal/wagmi/index.mjs +60 -0
  71. package/dist/mainnet.cjs +10 -1
  72. package/dist/mainnet.d.cts +28 -8
  73. package/dist/mainnet.d.ts +28 -8
  74. package/dist/mainnet.mjs +10 -1
  75. package/dist/sentry.edge.config-F4334LEP.cjs +24 -0
  76. package/dist/sentry.edge.config-JU55FF2U.mjs +24 -0
  77. package/dist/sentry.server.config-KFRT37Q3.cjs +24 -0
  78. package/dist/sentry.server.config-M77KFJ6J.mjs +24 -0
  79. package/dist/{types-ChwOSOu9.d.cts → types-ClIxAUdh.d.cts} +25 -5
  80. package/dist/{types-ChwOSOu9.d.ts → types-ClIxAUdh.d.ts} +25 -5
  81. package/package.json +45 -38
  82. package/postcss.json +6 -0
  83. package/LICENSE +0 -21
  84. package/dist/chunk-2OLL4MUY.cjs +0 -1
  85. package/dist/chunk-3KQLFIHT.cjs +0 -2
  86. package/dist/chunk-4VDLQK6F.cjs +0 -1
  87. package/dist/chunk-DFPDQR4M.cjs +0 -1
  88. package/dist/chunk-DL645PXT.mjs +0 -1
  89. package/dist/chunk-DTPRW4VP.mjs +0 -1
  90. package/dist/chunk-DUO7UEQD.cjs +0 -1
  91. package/dist/chunk-DVULZ7ID.cjs +0 -1
  92. package/dist/chunk-EJBC2CPD.cjs +0 -1
  93. package/dist/chunk-FVNATITS.mjs +0 -1
  94. package/dist/chunk-GAUBQIRH.cjs +0 -1
  95. package/dist/chunk-JVJKB7V7.mjs +0 -1
  96. package/dist/chunk-JYSZ2GU3.cjs +0 -1
  97. package/dist/chunk-JZXLCA2E.mjs +0 -1
  98. package/dist/chunk-KB66GOT2.cjs +0 -1
  99. package/dist/chunk-MS6UGFXI.mjs +0 -1
  100. package/dist/chunk-O243TIHY.mjs +0 -1
  101. package/dist/chunk-O5LUKC6Z.mjs +0 -1
  102. package/dist/chunk-OQFLFE3X.cjs +0 -1
  103. package/dist/chunk-PGBQCBTM.mjs +0 -1
  104. package/dist/chunk-S2A3Z34I.mjs +0 -2
  105. package/dist/chunk-TLFLY32O.mjs +0 -1
  106. package/dist/chunk-V2GJ33GF.mjs +0 -1
  107. package/dist/chunk-ZJDKWYPH.cjs +0 -1
  108. package/dist/sentry.edge.config-34TBZ2J6.cjs +0 -1
  109. package/dist/sentry.edge.config-3QO3DLYV.mjs +0 -1
  110. package/dist/sentry.server.config-S53O6JTA.mjs +0 -1
  111. package/dist/sentry.server.config-WQX4KCNG.cjs +0 -1
package/dist/bepolia.cjs CHANGED
@@ -1 +1,8 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKB66GOT2cjs = require('./chunk-KB66GOT2.cjs');require('./chunk-DFPDQR4M.cjs');require('./chunk-3KQLFIHT.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');exports.bepolia = _chunkKB66GOT2cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk3XMRQ4AFcjs = require('./chunk-3XMRQ4AF.cjs');
4
+ require('./chunk-EYYJ2UZT.cjs');
5
+ require('./chunk-75ZPJI57.cjs');
6
+
7
+
8
+ exports.bepolia = _chunk3XMRQ4AFcjs.bepolia;
@@ -1,4 +1,4 @@
1
- import { C as ChainId, A as Address } from './types-ChwOSOu9.cjs';
1
+ import { C as ChainId, A as Address } from './types-ClIxAUdh.cjs';
2
2
 
3
3
  declare const bepolia: {
4
4
  readonly chainId: ChainId.BEPOLIA;
@@ -16,17 +16,28 @@ declare const bepolia: {
16
16
  readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
17
17
  readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
18
18
  readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
19
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-1.7.0/gn";
19
+ readonly subgraph: {
20
+ readonly name: "pol-subgraph";
21
+ readonly uri: string;
22
+ readonly headers: {
23
+ Authorization: string;
24
+ } | undefined;
25
+ };
20
26
  readonly bribeBoostApi: string;
21
27
  readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
28
+ readonly lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178";
22
29
  };
23
30
  readonly api: {
31
+ readonly name: "Berachain API";
24
32
  readonly uri: string;
25
33
  readonly headers: {
26
34
  "x-api-key": string;
27
35
  } | undefined;
28
36
  };
29
- readonly blocksSubgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/blocks-subgraph/bepolia-v1.1.0/gn";
37
+ readonly backend: {
38
+ readonly name: "Berachain Backend";
39
+ readonly uri: string;
40
+ };
30
41
  readonly bex: {
31
42
  readonly chainName: "BEPOLIA";
32
43
  readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
@@ -38,7 +49,6 @@ declare const bepolia: {
38
49
  readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
39
50
  };
40
51
  readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
41
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/bepolia-1.0.3/gn";
42
52
  readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
43
53
  readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
44
54
  readonly haikuRouter: null;
@@ -51,10 +61,16 @@ declare const bepolia: {
51
61
  readonly honey: {
52
62
  readonly name: "Honey";
53
63
  readonly url: "https://bepolia.honey.berachain.com";
54
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/bepolia-v1.2.1/gn";
64
+ readonly subgraph: {
65
+ readonly name: "honey-subgraph";
66
+ readonly uri: string;
67
+ readonly headers: {
68
+ Authorization: string;
69
+ } | undefined;
70
+ };
55
71
  readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
56
72
  readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
57
- readonly pythWrapper: "0x4b7cb1c197f8EE4d309866B16C2c12E3B4E7E606";
73
+ readonly pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB";
58
74
  readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
59
75
  readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
60
76
  };
@@ -65,7 +81,6 @@ declare const bepolia: {
65
81
  readonly governance: {
66
82
  readonly governor: `0x${string}`;
67
83
  readonly timelock: `0x${string}`;
68
- readonly subgraph: string;
69
84
  };
70
85
  readonly lists: {
71
86
  readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json";
@@ -113,6 +128,10 @@ declare const bepolia: {
113
128
  readonly supportedVaults: Address[];
114
129
  };
115
130
  };
131
+ readonly enso: {
132
+ readonly walletV2Factory: null;
133
+ readonly walletFlashloanAdapter: null;
134
+ };
116
135
  readonly explore: {
117
136
  readonly name: "Explore";
118
137
  readonly url: "https://explore.berachain.com";
package/dist/bepolia.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ChainId, A as Address } from './types-ChwOSOu9.js';
1
+ import { C as ChainId, A as Address } from './types-ClIxAUdh.js';
2
2
 
3
3
  declare const bepolia: {
4
4
  readonly chainId: ChainId.BEPOLIA;
@@ -16,17 +16,28 @@ declare const bepolia: {
16
16
  readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
17
17
  readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
18
18
  readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
19
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-1.7.0/gn";
19
+ readonly subgraph: {
20
+ readonly name: "pol-subgraph";
21
+ readonly uri: string;
22
+ readonly headers: {
23
+ Authorization: string;
24
+ } | undefined;
25
+ };
20
26
  readonly bribeBoostApi: string;
21
27
  readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
28
+ readonly lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178";
22
29
  };
23
30
  readonly api: {
31
+ readonly name: "Berachain API";
24
32
  readonly uri: string;
25
33
  readonly headers: {
26
34
  "x-api-key": string;
27
35
  } | undefined;
28
36
  };
29
- readonly blocksSubgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/blocks-subgraph/bepolia-v1.1.0/gn";
37
+ readonly backend: {
38
+ readonly name: "Berachain Backend";
39
+ readonly uri: string;
40
+ };
30
41
  readonly bex: {
31
42
  readonly chainName: "BEPOLIA";
32
43
  readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
@@ -38,7 +49,6 @@ declare const bepolia: {
38
49
  readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
39
50
  };
40
51
  readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
41
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/bepolia-1.0.3/gn";
42
52
  readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
43
53
  readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
44
54
  readonly haikuRouter: null;
@@ -51,10 +61,16 @@ declare const bepolia: {
51
61
  readonly honey: {
52
62
  readonly name: "Honey";
53
63
  readonly url: "https://bepolia.honey.berachain.com";
54
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/bepolia-v1.2.1/gn";
64
+ readonly subgraph: {
65
+ readonly name: "honey-subgraph";
66
+ readonly uri: string;
67
+ readonly headers: {
68
+ Authorization: string;
69
+ } | undefined;
70
+ };
55
71
  readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
56
72
  readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
57
- readonly pythWrapper: "0x4b7cb1c197f8EE4d309866B16C2c12E3B4E7E606";
73
+ readonly pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB";
58
74
  readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
59
75
  readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
60
76
  };
@@ -65,7 +81,6 @@ declare const bepolia: {
65
81
  readonly governance: {
66
82
  readonly governor: `0x${string}`;
67
83
  readonly timelock: `0x${string}`;
68
- readonly subgraph: string;
69
84
  };
70
85
  readonly lists: {
71
86
  readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json";
@@ -113,6 +128,10 @@ declare const bepolia: {
113
128
  readonly supportedVaults: Address[];
114
129
  };
115
130
  };
131
+ readonly enso: {
132
+ readonly walletV2Factory: null;
133
+ readonly walletFlashloanAdapter: null;
134
+ };
116
135
  readonly explore: {
117
136
  readonly name: "Explore";
118
137
  readonly url: "https://explore.berachain.com";
package/dist/bepolia.mjs CHANGED
@@ -1 +1,8 @@
1
- import{a}from"./chunk-V2GJ33GF.mjs";import"./chunk-O5LUKC6Z.mjs";import"./chunk-S2A3Z34I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";export{a as bepolia};
1
+ import {
2
+ bepolia
3
+ } from "./chunk-SWEAJ6OD.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,169 @@
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
+ bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3",
26
+ lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178"
27
+ },
28
+ api: {
29
+ name: "Berachain API",
30
+ uri: _nullishCoalesce(_nullishCoalesce(process.env.PRIVATE_80069_BEX_API_URL, () => ( process.env.NEXT_PUBLIC_80069_BEX_API_URL)), () => ( "https://bepolia-api.berachain.com")),
31
+ headers: process.env.PRIVATE_80069_BEX_API_KEY ? {
32
+ "x-api-key": process.env.PRIVATE_80069_BEX_API_KEY
33
+ } : void 0
34
+ },
35
+ backend: {
36
+ name: "Berachain Backend",
37
+ uri: _nullishCoalesce(process.env.NEXT_PUBLIC_80069_BACKEND_API_URL, () => ( "https://backend-production-351b.up.railway.app"))
38
+ },
39
+ bex: {
40
+ chainName: "BEPOLIA",
41
+ vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE",
42
+ helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f",
43
+ queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92",
44
+ relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C",
45
+ factories: {
46
+ composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1",
47
+ weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57"
48
+ },
49
+ poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36",
50
+ aggregatorsRouter: "0x0000000000000000000000000000000000000000",
51
+ aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000",
52
+ haikuRouter: null,
53
+ haikuAgentAddress: null,
54
+ aggregatorsProxyUrl: _nullishCoalesce(process.env.NEXT_PUBLIC_80069_AGGREGATORS_PROXY_URL, () => ( "")),
55
+ recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com",
56
+ recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a",
57
+ balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b"
58
+ },
59
+ honey: {
60
+ name: "Honey",
61
+ url: "https://bepolia.honey.berachain.com",
62
+ // Same pattern as bend.whiskApi: non-public env values are only available server-side.
63
+ subgraph: {
64
+ name: "honey-subgraph",
65
+ 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")),
66
+ headers: process.env.ORMI_API_KEY ? { Authorization: `Bearer ${process.env.ORMI_API_KEY}` } : void 0
67
+ },
68
+ factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",
69
+ pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",
70
+ pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB",
71
+ reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91",
72
+ token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"
73
+ },
74
+ hub: {
75
+ name: "BeraHub",
76
+ url: "https://bepolia.hub.berachain.com"
77
+ },
78
+ governance: {
79
+ governor: _nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_ADDRESS, () => ( "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5")),
80
+ timelock: _nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_TIMELOCK, () => ( "0xb5f2000b5744f207c931526cAE2134cAa8b6862a"))
81
+ },
82
+ lists: {
83
+ rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json",
84
+ tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json",
85
+ validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json"
86
+ },
87
+ external: {
88
+ pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43"
89
+ },
90
+ averageBlockTime: 2,
91
+ bridge: {
92
+ name: "BeraBridge",
93
+ url: "https://bepolia.bridge.berachain.com",
94
+ nft: {
95
+ name: "BeraBridge NFT",
96
+ url: "#",
97
+ eth: {
98
+ subgraph: "#"
99
+ },
100
+ berachain: {
101
+ subgraph: "#"
102
+ }
103
+ }
104
+ },
105
+ bend: {
106
+ name: "Bend",
107
+ url: "https://bepolia.bend.berachain.com",
108
+ whiskApi: null,
109
+ production: {
110
+ morpho: null,
111
+ adaptiveCurveIrm: null,
112
+ metaMorphoFactory: null,
113
+ publicAllocator: null,
114
+ bundler3: null,
115
+ generalAdapter1: null,
116
+ supportedVaults: []
117
+ },
118
+ staging: {
119
+ morpho: null,
120
+ adaptiveCurveIrm: null,
121
+ metaMorphoFactory: null,
122
+ publicAllocator: null,
123
+ bundler3: null,
124
+ generalAdapter1: null,
125
+ supportedVaults: []
126
+ }
127
+ },
128
+ enso: {
129
+ walletV2Factory: null,
130
+ walletFlashloanAdapter: null
131
+ },
132
+ explore: {
133
+ name: "Explore",
134
+ url: "https://explore.berachain.com"
135
+ },
136
+ explorer: {
137
+ name: "Berascan",
138
+ url: "https://testnet.berascan.com"
139
+ },
140
+ chain: {
141
+ name: _nullishCoalesce(process.env.NEXT_PUBLIC_CHAIN_NAME, () => ( "Berachain Bepolia"))
142
+ },
143
+ /**
144
+ * Public faucet configuration.
145
+ *
146
+ * Mainly used in static-monobera.
147
+ */
148
+ faucet: {
149
+ name: "Faucet",
150
+ url: "https://bepolia.faucet.berachain.com",
151
+ /**
152
+ * Amount of BERA the user will receive when using the faucet
153
+ */
154
+ dripAmount: 1,
155
+ /**
156
+ * Time in hours between each drip
157
+ */
158
+ timeGap: 8,
159
+ cloudflareKey: process.env.CLOUDFLARE_KEY || "0x4AAAAAAARdAuciFArKhVwt",
160
+ /**
161
+ * API endpoint to send the request to the faucet
162
+ */
163
+ endpoint: "https://faucet-api.testnet.berachain.com"
164
+ }
165
+ };
166
+
167
+
168
+
169
+ exports.bepolia = bepolia;
@@ -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;
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+
8
+
9
+ exports.__export = __export;
@@ -0,0 +1,9 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ export {
8
+ __export
9
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkEYYJ2UZTcjs = require('./chunk-EYYJ2UZT.cjs');
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(_chunkEYYJ2UZTcjs.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(_chunkEYYJ2UZTcjs.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
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+ exports.defaultChainId = defaultChainId; exports.isProduction = isProduction; exports.isLocalHost = isLocalHost; exports.isPreview = isPreview; exports.isStaging = isStaging; exports.currentDapp = currentDapp;