@berachain/config 0.0.5 → 0.0.6
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.
- package/dist/bepolia.cjs +1 -1
- package/dist/bepolia.d.cts +35 -10
- package/dist/bepolia.d.ts +35 -10
- package/dist/bepolia.mjs +1 -1
- package/dist/{chunk-5Q5FZIMO.cjs → chunk-3KQLFIHT.cjs} +1 -1
- package/dist/{chunk-ZYHYMHGN.cjs → chunk-DFPDQR4M.cjs} +1 -1
- package/dist/chunk-DL645PXT.mjs +1 -0
- package/dist/chunk-DTPRW4VP.mjs +1 -0
- package/dist/chunk-DUO7UEQD.cjs +1 -0
- package/dist/chunk-DVULZ7ID.cjs +1 -0
- package/dist/{chunk-LJCOMNTL.cjs → chunk-EJBC2CPD.cjs} +1 -1
- package/dist/chunk-FVNATITS.mjs +1 -0
- package/dist/chunk-GAUBQIRH.cjs +1 -0
- package/dist/chunk-JYSZ2GU3.cjs +1 -0
- package/dist/chunk-KB66GOT2.cjs +1 -0
- package/dist/chunk-O243TIHY.mjs +1 -0
- package/dist/{chunk-YUUHPTW6.mjs → chunk-O5LUKC6Z.mjs} +1 -1
- package/dist/chunk-PGBQCBTM.mjs +1 -0
- package/dist/{chunk-CM7FGHYU.mjs → chunk-S2A3Z34I.mjs} +1 -1
- package/dist/{chunk-CENF5RZA.mjs → chunk-TLFLY32O.mjs} +1 -1
- package/dist/chunk-V2GJ33GF.mjs +1 -0
- package/dist/chunk-ZJDKWYPH.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -157
- package/dist/index.d.ts +5 -157
- package/dist/index.mjs +1 -1
- package/dist/internal/edge-config/index.cjs +1 -1
- package/dist/internal/edge-config/index.d.cts +5 -1
- package/dist/internal/edge-config/index.d.ts +5 -1
- package/dist/internal/edge-config/index.mjs +1 -1
- package/dist/internal/flags/index.cjs +1 -1
- package/dist/internal/flags/index.d.cts +9 -1
- package/dist/internal/flags/index.d.ts +9 -1
- package/dist/internal/flags/index.mjs +1 -1
- package/dist/internal/header-sources.cjs +9 -9
- package/dist/internal/header-sources.mjs +9 -9
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +126 -317
- package/dist/internal/index.d.ts +126 -317
- package/dist/internal/index.mjs +1 -1
- package/dist/internal/nextjs/index.cjs +1 -1
- package/dist/internal/nextjs/index.d.cts +1 -1
- package/dist/internal/nextjs/index.d.ts +1 -1
- package/dist/internal/nextjs/index.mjs +1 -1
- package/dist/internal/sentry/index.cjs +1 -1
- package/dist/internal/sentry/index.mjs +1 -1
- package/dist/internal/sentry/sentry.client.config.cjs +1 -1
- package/dist/internal/sentry/sentry.client.config.mjs +1 -1
- package/dist/mainnet.cjs +1 -1
- package/dist/mainnet.d.cts +20 -9
- package/dist/mainnet.d.ts +20 -9
- package/dist/mainnet.mjs +1 -1
- package/dist/sentry.edge.config-34TBZ2J6.cjs +1 -0
- package/dist/{sentry.edge.config-XKXCGZO7.mjs → sentry.edge.config-3QO3DLYV.mjs} +1 -1
- package/dist/{sentry.server.config-HGGCJWT2.mjs → sentry.server.config-S53O6JTA.mjs} +1 -1
- package/dist/sentry.server.config-WQX4KCNG.cjs +1 -0
- package/dist/types-ChwOSOu9.d.cts +198 -0
- package/dist/types-ChwOSOu9.d.ts +198 -0
- package/package.json +2 -2
- package/dist/chunk-2X5W4YR4.mjs +0 -1
- package/dist/chunk-32CWUFQY.cjs +0 -1
- package/dist/chunk-3LFM4QG6.cjs +0 -1
- package/dist/chunk-D2FG64PF.mjs +0 -1
- package/dist/chunk-DMFHUBNY.cjs +0 -1
- package/dist/chunk-MHNEK2A2.cjs +0 -1
- package/dist/chunk-TSH4FNVH.mjs +0 -1
- package/dist/chunk-WKOAF2ML.mjs +0 -1
- package/dist/chunk-WNGB3G3V.cjs +0 -1
- package/dist/chunk-XTBMK2TL.mjs +0 -1
- package/dist/sentry.edge.config-M3L3XSD6.cjs +0 -1
- package/dist/sentry.server.config-535N36OR.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkEJBC2CPDcjs = require('../../chunk-EJBC2CPD.cjs');var _chunkOQFLFE3Xcjs = require('../../chunk-OQFLFE3X.cjs');require('../../chunk-4VDLQK6F.cjs');var _dotenv = require('dotenv'); var _dotenv2 = _interopRequireDefault(_dotenv);_dotenv2.default.config({path:["../../.env.local","../../.env"]});function p(e,{withSentry:o=!0,appName:n}){let t={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true",NEXT_PUBLIC_BERA_APP_NAME:n},turbopack:{rules:{"*.svg":{as:"*.js",loaders:["@svgr/webpack"]}}},experimental:{webpackBuildWorker:!0},eslint:{ignoreDuringBuilds:!0},typescript:{ignoreBuildErrors:!0},...e,images:{...e.images,remotePatterns:[..._chunkOQFLFE3Xcjs.a]}};return o?_chunkEJBC2CPDcjs.b.call(void 0, t):t}exports.withBeraConfig = p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r}from"../../chunk-
|
|
1
|
+
import{b as r}from"../../chunk-TLFLY32O.mjs";import{a as i}from"../../chunk-JVJKB7V7.mjs";import"../../chunk-JZXLCA2E.mjs";import a from"dotenv";a.config({path:["../../.env.local","../../.env"]});function p(e,{withSentry:o=!0,appName:n}){let t={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true",NEXT_PUBLIC_BERA_APP_NAME:n},turbopack:{rules:{"*.svg":{as:"*.js",loaders:["@svgr/webpack"]}}},experimental:{webpackBuildWorker:!0},eslint:{ignoreDuringBuilds:!0},typescript:{ignoreBuildErrors:!0},...e,images:{...e.images,remotePatterns:[...i]}};return o?r(t):t}export{p as withBeraConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEJBC2CPDcjs = require('../../chunk-EJBC2CPD.cjs');require('../../chunk-4VDLQK6F.cjs');exports.onRequestError = _chunkEJBC2CPDcjs.c; exports.registerSentry = _chunkEJBC2CPDcjs.a; exports.withSentryConfig = _chunkEJBC2CPDcjs.b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-TLFLY32O.mjs";import"../../chunk-JZXLCA2E.mjs";export{c as onRequestError,a as registerSentry,b as withSentryConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkJYSZ2GU3cjs = require('../../chunk-JYSZ2GU3.cjs');require('../../chunk-DFPDQR4M.cjs');require('../../chunk-3KQLFIHT.cjs');require('../../chunk-2OLL4MUY.cjs');require('../../chunk-4VDLQK6F.cjs');_chunkJYSZ2GU3cjs.d&&console.log("[@berachain/config] sentryDebug init",process.env.NEXT_PUBLIC_SENTRY_DSN);function s(o,n={}){return o.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tunnel:"/monitoring-tunnel",tracesSampleRate:_chunkJYSZ2GU3cjs.b,debug:_chunkJYSZ2GU3cjs.d,environment:_chunkJYSZ2GU3cjs.a,...n,ignoreErrors:[..._nullishCoalesce(n.ignoreErrors, () => ([])),"Cannot set property ethereum of #<Window> which has only a getter","Cannot destructure property 'register' of 'undefined' as it is undefined.","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing."]})}exports.initSentryClient = s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,b as r,d as e}from"../../chunk-
|
|
1
|
+
import{a as t,b as r,d as e}from"../../chunk-DL645PXT.mjs";import"../../chunk-O5LUKC6Z.mjs";import"../../chunk-S2A3Z34I.mjs";import"../../chunk-MS6UGFXI.mjs";import"../../chunk-JZXLCA2E.mjs";e&&console.log("[@berachain/config] sentryDebug init",process.env.NEXT_PUBLIC_SENTRY_DSN);function s(o,n={}){return o.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tunnel:"/monitoring-tunnel",tracesSampleRate:r,debug:e,environment:t,...n,ignoreErrors:[...n.ignoreErrors??[],"Cannot set property ethereum of #<Window> which has only a getter","Cannot destructure property 'register' of 'undefined' as it is undefined.","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing."]})}export{s as initSentryClient};
|
package/dist/mainnet.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGAUBQIRHcjs = require('./chunk-GAUBQIRH.cjs');require('./chunk-DFPDQR4M.cjs');require('./chunk-3KQLFIHT.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');exports.default = _chunkGAUBQIRHcjs.b; exports.mainnet = _chunkGAUBQIRHcjs.a;
|
package/dist/mainnet.d.cts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { C as ChainId } from './types-ChwOSOu9.cjs';
|
|
2
|
+
|
|
1
3
|
declare const mainnet: {
|
|
4
|
+
readonly chainId: ChainId.MAINNET;
|
|
2
5
|
readonly tokens: {
|
|
3
6
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
4
7
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
@@ -10,14 +13,19 @@ declare const mainnet: {
|
|
|
10
13
|
readonly pol: {
|
|
11
14
|
readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
|
|
12
15
|
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
16
|
+
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
13
17
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
14
18
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
15
19
|
readonly subgraph: string;
|
|
16
20
|
readonly bribeBoostApi: string;
|
|
17
|
-
readonly bribeBoostApiKey: string;
|
|
18
21
|
readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
|
|
19
22
|
};
|
|
20
|
-
readonly api:
|
|
23
|
+
readonly api: {
|
|
24
|
+
readonly uri: string;
|
|
25
|
+
readonly headers: {
|
|
26
|
+
"x-api-key": string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
21
29
|
readonly blocksSubgraph: string;
|
|
22
30
|
readonly bex: {
|
|
23
31
|
readonly chainName: "BERACHAIN";
|
|
@@ -29,10 +37,13 @@ declare const mainnet: {
|
|
|
29
37
|
readonly composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1";
|
|
30
38
|
readonly weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409";
|
|
31
39
|
};
|
|
40
|
+
readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
|
|
32
41
|
readonly poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2";
|
|
33
42
|
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/mainnet-1.0.3/gn";
|
|
34
43
|
readonly aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58";
|
|
35
44
|
readonly aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8";
|
|
45
|
+
readonly haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7";
|
|
46
|
+
readonly haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71";
|
|
36
47
|
readonly aggregatorsProxyUrl: string;
|
|
37
48
|
readonly recoverFundsApi: string;
|
|
38
49
|
readonly recoverFundsContract: `0x${string}`;
|
|
@@ -51,10 +62,6 @@ declare const mainnet: {
|
|
|
51
62
|
readonly name: "BeraHub";
|
|
52
63
|
readonly url: "https://hub.berachain.com";
|
|
53
64
|
};
|
|
54
|
-
readonly foundation: {
|
|
55
|
-
readonly name: "Berachain Foundation";
|
|
56
|
-
readonly url: "https://www.berachain.com";
|
|
57
|
-
};
|
|
58
65
|
readonly governance: {
|
|
59
66
|
readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
|
|
60
67
|
readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
|
|
@@ -69,7 +76,6 @@ declare const mainnet: {
|
|
|
69
76
|
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
70
77
|
};
|
|
71
78
|
readonly averageBlockTime: 2;
|
|
72
|
-
readonly beApiKey: string;
|
|
73
79
|
readonly bridge: {
|
|
74
80
|
readonly name: "BeraBridge";
|
|
75
81
|
readonly url: "https://bridge.berachain.com";
|
|
@@ -87,8 +93,12 @@ declare const mainnet: {
|
|
|
87
93
|
readonly bend: {
|
|
88
94
|
readonly name: "Bend";
|
|
89
95
|
readonly url: "https://bend.berachain.com";
|
|
90
|
-
readonly
|
|
91
|
-
|
|
96
|
+
readonly whiskApi: {
|
|
97
|
+
readonly uri: string;
|
|
98
|
+
readonly headers: {
|
|
99
|
+
Authorization: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
92
102
|
readonly production: {
|
|
93
103
|
readonly morpho: "0x24147243f9c08d835C218Cda1e135f8dFD0517D0";
|
|
94
104
|
readonly adaptiveCurveIrm: "0xcf247Df3A2322Dea0D408f011c194906E77a6f62";
|
|
@@ -119,6 +129,7 @@ declare const mainnet: {
|
|
|
119
129
|
readonly chain: {
|
|
120
130
|
readonly name: string;
|
|
121
131
|
};
|
|
132
|
+
readonly faucet: null;
|
|
122
133
|
};
|
|
123
134
|
|
|
124
135
|
export { mainnet as default, mainnet };
|
package/dist/mainnet.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { C as ChainId } from './types-ChwOSOu9.js';
|
|
2
|
+
|
|
1
3
|
declare const mainnet: {
|
|
4
|
+
readonly chainId: ChainId.MAINNET;
|
|
2
5
|
readonly tokens: {
|
|
3
6
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
4
7
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
@@ -10,14 +13,19 @@ declare const mainnet: {
|
|
|
10
13
|
readonly pol: {
|
|
11
14
|
readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
|
|
12
15
|
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
16
|
+
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
13
17
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
14
18
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
15
19
|
readonly subgraph: string;
|
|
16
20
|
readonly bribeBoostApi: string;
|
|
17
|
-
readonly bribeBoostApiKey: string;
|
|
18
21
|
readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
|
|
19
22
|
};
|
|
20
|
-
readonly api:
|
|
23
|
+
readonly api: {
|
|
24
|
+
readonly uri: string;
|
|
25
|
+
readonly headers: {
|
|
26
|
+
"x-api-key": string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
21
29
|
readonly blocksSubgraph: string;
|
|
22
30
|
readonly bex: {
|
|
23
31
|
readonly chainName: "BERACHAIN";
|
|
@@ -29,10 +37,13 @@ declare const mainnet: {
|
|
|
29
37
|
readonly composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1";
|
|
30
38
|
readonly weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409";
|
|
31
39
|
};
|
|
40
|
+
readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
|
|
32
41
|
readonly poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2";
|
|
33
42
|
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/mainnet-1.0.3/gn";
|
|
34
43
|
readonly aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58";
|
|
35
44
|
readonly aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8";
|
|
45
|
+
readonly haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7";
|
|
46
|
+
readonly haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71";
|
|
36
47
|
readonly aggregatorsProxyUrl: string;
|
|
37
48
|
readonly recoverFundsApi: string;
|
|
38
49
|
readonly recoverFundsContract: `0x${string}`;
|
|
@@ -51,10 +62,6 @@ declare const mainnet: {
|
|
|
51
62
|
readonly name: "BeraHub";
|
|
52
63
|
readonly url: "https://hub.berachain.com";
|
|
53
64
|
};
|
|
54
|
-
readonly foundation: {
|
|
55
|
-
readonly name: "Berachain Foundation";
|
|
56
|
-
readonly url: "https://www.berachain.com";
|
|
57
|
-
};
|
|
58
65
|
readonly governance: {
|
|
59
66
|
readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
|
|
60
67
|
readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
|
|
@@ -69,7 +76,6 @@ declare const mainnet: {
|
|
|
69
76
|
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
70
77
|
};
|
|
71
78
|
readonly averageBlockTime: 2;
|
|
72
|
-
readonly beApiKey: string;
|
|
73
79
|
readonly bridge: {
|
|
74
80
|
readonly name: "BeraBridge";
|
|
75
81
|
readonly url: "https://bridge.berachain.com";
|
|
@@ -87,8 +93,12 @@ declare const mainnet: {
|
|
|
87
93
|
readonly bend: {
|
|
88
94
|
readonly name: "Bend";
|
|
89
95
|
readonly url: "https://bend.berachain.com";
|
|
90
|
-
readonly
|
|
91
|
-
|
|
96
|
+
readonly whiskApi: {
|
|
97
|
+
readonly uri: string;
|
|
98
|
+
readonly headers: {
|
|
99
|
+
Authorization: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
};
|
|
92
102
|
readonly production: {
|
|
93
103
|
readonly morpho: "0x24147243f9c08d835C218Cda1e135f8dFD0517D0";
|
|
94
104
|
readonly adaptiveCurveIrm: "0xcf247Df3A2322Dea0D408f011c194906E77a6f62";
|
|
@@ -119,6 +129,7 @@ declare const mainnet: {
|
|
|
119
129
|
readonly chain: {
|
|
120
130
|
readonly name: string;
|
|
121
131
|
};
|
|
132
|
+
readonly faucet: null;
|
|
122
133
|
};
|
|
123
134
|
|
|
124
135
|
export { mainnet as default, mainnet };
|
package/dist/mainnet.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-PGBQCBTM.mjs";import"./chunk-O5LUKC6Z.mjs";import"./chunk-S2A3Z34I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";export{b as default,a as mainnet};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJYSZ2GU3cjs = require('./chunk-JYSZ2GU3.cjs');require('./chunk-DFPDQR4M.cjs');require('./chunk-3KQLFIHT.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');function p(t,r={}){return t.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:_chunkJYSZ2GU3cjs.b,environment:_chunkJYSZ2GU3cjs.a,debug:!1,...r})}exports.initSentryEdge = p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as n}from"./chunk-
|
|
1
|
+
import{a as e,b as n}from"./chunk-DL645PXT.mjs";import"./chunk-O5LUKC6Z.mjs";import"./chunk-S2A3Z34I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";function p(t,r={}){return t.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:n,environment:e,debug:!1,...r})}export{p as initSentryEdge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as n}from"./chunk-
|
|
1
|
+
import{a as e,b as n}from"./chunk-DL645PXT.mjs";import"./chunk-O5LUKC6Z.mjs";import"./chunk-S2A3Z34I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";function p(t,r={}){return t.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:n,environment:e,debug:!1,...r})}export{p as initSentryServer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJYSZ2GU3cjs = require('./chunk-JYSZ2GU3.cjs');require('./chunk-DFPDQR4M.cjs');require('./chunk-3KQLFIHT.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');function p(t,r={}){return t.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:_chunkJYSZ2GU3cjs.b,environment:_chunkJYSZ2GU3cjs.a,debug:!1,...r})}exports.initSentryServer = p;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
type Address = `0x${string}`;
|
|
2
|
+
/**
|
|
3
|
+
* List of app names in monobera. For a broader list of project names, see ProjectNames.
|
|
4
|
+
*
|
|
5
|
+
* All of these projects have a nextjs set up with `withBeraConfig` and have access to edge config.
|
|
6
|
+
*/
|
|
7
|
+
type AppName = "BeraHub" | "Honey" | "Bend";
|
|
8
|
+
/**
|
|
9
|
+
* List of projects.
|
|
10
|
+
*/
|
|
11
|
+
type ProjectName = AppName | "BeraBridge" | "Faucet" | "BeraBridge NFT" | "Berachain Foundation" | "Explore" | "Berascan";
|
|
12
|
+
type HttpLink = string | {
|
|
13
|
+
uri: string;
|
|
14
|
+
headers?: Record<string, string>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A shared interface for all projects.
|
|
18
|
+
*/
|
|
19
|
+
type Project = {
|
|
20
|
+
/**
|
|
21
|
+
* The name of the project.
|
|
22
|
+
*/
|
|
23
|
+
name: ProjectName;
|
|
24
|
+
/**
|
|
25
|
+
* The URL of the project.
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
type BendAddresses = {
|
|
30
|
+
morpho: Address | null;
|
|
31
|
+
adaptiveCurveIrm: Address | null;
|
|
32
|
+
metaMorphoFactory: Address | null;
|
|
33
|
+
publicAllocator: Address | null;
|
|
34
|
+
bundler3: Address | null;
|
|
35
|
+
generalAdapter1: Address | null;
|
|
36
|
+
supportedVaults: Array<Address>;
|
|
37
|
+
};
|
|
38
|
+
interface BeraConfig {
|
|
39
|
+
chainId: ChainId;
|
|
40
|
+
/**
|
|
41
|
+
* Some common token addresses available on the chain.
|
|
42
|
+
*/
|
|
43
|
+
tokens: {
|
|
44
|
+
/**
|
|
45
|
+
* The address of the wbera token. Only this 0x6969... address is supported.
|
|
46
|
+
*/
|
|
47
|
+
wbera: "0x6969696969696969696969696969696969696969";
|
|
48
|
+
swbera: Address;
|
|
49
|
+
bgt: Address;
|
|
50
|
+
wbtc: Address;
|
|
51
|
+
weth: Address;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The API endpoint for the chain. Used to fetch prices, bex, pol and validators' data.
|
|
55
|
+
*/
|
|
56
|
+
api: HttpLink;
|
|
57
|
+
/**
|
|
58
|
+
* The subgraph endpoint for the chain. Mainly used to fetch last 24h average block time.
|
|
59
|
+
*/
|
|
60
|
+
blocksSubgraph: HttpLink;
|
|
61
|
+
/**
|
|
62
|
+
* The address of the deposit contract for the chain.
|
|
63
|
+
*/
|
|
64
|
+
depositContract: Address;
|
|
65
|
+
/**
|
|
66
|
+
* The addresses of the metadata lists.
|
|
67
|
+
*
|
|
68
|
+
* @see https://github.com/berachain/metadata
|
|
69
|
+
*/
|
|
70
|
+
lists: {
|
|
71
|
+
tokenList: string;
|
|
72
|
+
validatorList: string;
|
|
73
|
+
rewardVaultList: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Contract addresses and endpoints for the Bex protocol, part of BeraHub.
|
|
77
|
+
*/
|
|
78
|
+
bex: {
|
|
79
|
+
vault: Address;
|
|
80
|
+
helper: Address;
|
|
81
|
+
queries: Address;
|
|
82
|
+
relayer: Address;
|
|
83
|
+
factories: {
|
|
84
|
+
composableStable: Address;
|
|
85
|
+
weighted: Address;
|
|
86
|
+
};
|
|
87
|
+
poolCreationHelper: Address;
|
|
88
|
+
subgraph: HttpLink;
|
|
89
|
+
chainName: string;
|
|
90
|
+
aggregatorsRouter: Address;
|
|
91
|
+
aggregatorsRouterExecutor: Address;
|
|
92
|
+
/**
|
|
93
|
+
* This is an hardcoded value in contracts to detected whether governance can
|
|
94
|
+
* change pool fees and amplification parameter.
|
|
95
|
+
*
|
|
96
|
+
* @see https://docs.balancer.fi/concepts/pools/more/configuration.html#fees
|
|
97
|
+
*/
|
|
98
|
+
balancerDelegatedOwnership: Address;
|
|
99
|
+
/**
|
|
100
|
+
* Haiku router contract used to calculate agent addresses for permit2 approvals.
|
|
101
|
+
* @see https://haiku.fi
|
|
102
|
+
*/
|
|
103
|
+
haikuRouter: Address | null;
|
|
104
|
+
/**
|
|
105
|
+
* Pre-computed haiku agent address for the aggregatorsRouterExecutor.
|
|
106
|
+
* Calculated via haikuRouter.calcAgent(aggregatorsRouterExecutor).
|
|
107
|
+
* Used for permit2 spend approvals.
|
|
108
|
+
*/
|
|
109
|
+
haikuAgentAddress: Address | null;
|
|
110
|
+
/**
|
|
111
|
+
* The aggregators proxy URL for the chain. Used to proxy requests to various aggregator APIs.
|
|
112
|
+
* Added here to keep ReadmeGenerator script clean while having this endpoint in the dependency
|
|
113
|
+
*/
|
|
114
|
+
aggregatorsProxyUrl: string;
|
|
115
|
+
recoverFundsApi: string;
|
|
116
|
+
recoverFundsContract: Address;
|
|
117
|
+
};
|
|
118
|
+
pol: {
|
|
119
|
+
factory: Address;
|
|
120
|
+
staker: Address;
|
|
121
|
+
rewardAllocationFactory: Address;
|
|
122
|
+
beraChef: Address;
|
|
123
|
+
subgraph: HttpLink;
|
|
124
|
+
bribeBoostApi: string;
|
|
125
|
+
rewardVaultHelper: Address;
|
|
126
|
+
bgtIncentiveDistributor: Address;
|
|
127
|
+
};
|
|
128
|
+
honey: Project & {
|
|
129
|
+
factory: Address;
|
|
130
|
+
reader: Address;
|
|
131
|
+
pythWrapper: Address;
|
|
132
|
+
/**
|
|
133
|
+
* The contract that proxies pyth prices for Honey factory.
|
|
134
|
+
*/
|
|
135
|
+
pythOracle: Address;
|
|
136
|
+
token: Address;
|
|
137
|
+
subgraph: HttpLink;
|
|
138
|
+
};
|
|
139
|
+
governance: {
|
|
140
|
+
timelock: Address;
|
|
141
|
+
governor: Address;
|
|
142
|
+
subgraph: HttpLink;
|
|
143
|
+
};
|
|
144
|
+
bridge: Project & {
|
|
145
|
+
nft: Project & {
|
|
146
|
+
eth: {
|
|
147
|
+
subgraph: HttpLink;
|
|
148
|
+
};
|
|
149
|
+
berachain: {
|
|
150
|
+
subgraph: HttpLink;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
external: {
|
|
155
|
+
pyth: Address;
|
|
156
|
+
};
|
|
157
|
+
hub: Project;
|
|
158
|
+
bend: Project & {
|
|
159
|
+
whiskApi: HttpLink | null;
|
|
160
|
+
production: BendAddresses;
|
|
161
|
+
staging: BendAddresses;
|
|
162
|
+
};
|
|
163
|
+
explore: Project;
|
|
164
|
+
explorer: Project;
|
|
165
|
+
averageBlockTime: number;
|
|
166
|
+
chain: {
|
|
167
|
+
/**
|
|
168
|
+
* This will be used by wallet providers to display the chain name
|
|
169
|
+
*/
|
|
170
|
+
name: string;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Public faucet configuration.
|
|
174
|
+
*
|
|
175
|
+
* Mainly used in static-monobera.
|
|
176
|
+
*/
|
|
177
|
+
faucet: (Project & {
|
|
178
|
+
/**
|
|
179
|
+
* Amount of BERA the user will receive when using the faucet
|
|
180
|
+
*/
|
|
181
|
+
dripAmount: number;
|
|
182
|
+
/**
|
|
183
|
+
* Time in hours between each drip
|
|
184
|
+
*/
|
|
185
|
+
timeGap: number;
|
|
186
|
+
cloudflareKey: string;
|
|
187
|
+
/**
|
|
188
|
+
* API endpoint to send the request to the faucet
|
|
189
|
+
*/
|
|
190
|
+
endpoint: string;
|
|
191
|
+
}) | null;
|
|
192
|
+
}
|
|
193
|
+
declare enum ChainId {
|
|
194
|
+
MAINNET = 80094,
|
|
195
|
+
BEPOLIA = 80069
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export { type Address as A, type BeraConfig as B, ChainId as C, type HttpLink as H, type ProjectName as P, type AppName as a };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
type Address = `0x${string}`;
|
|
2
|
+
/**
|
|
3
|
+
* List of app names in monobera. For a broader list of project names, see ProjectNames.
|
|
4
|
+
*
|
|
5
|
+
* All of these projects have a nextjs set up with `withBeraConfig` and have access to edge config.
|
|
6
|
+
*/
|
|
7
|
+
type AppName = "BeraHub" | "Honey" | "Bend";
|
|
8
|
+
/**
|
|
9
|
+
* List of projects.
|
|
10
|
+
*/
|
|
11
|
+
type ProjectName = AppName | "BeraBridge" | "Faucet" | "BeraBridge NFT" | "Berachain Foundation" | "Explore" | "Berascan";
|
|
12
|
+
type HttpLink = string | {
|
|
13
|
+
uri: string;
|
|
14
|
+
headers?: Record<string, string>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A shared interface for all projects.
|
|
18
|
+
*/
|
|
19
|
+
type Project = {
|
|
20
|
+
/**
|
|
21
|
+
* The name of the project.
|
|
22
|
+
*/
|
|
23
|
+
name: ProjectName;
|
|
24
|
+
/**
|
|
25
|
+
* The URL of the project.
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
type BendAddresses = {
|
|
30
|
+
morpho: Address | null;
|
|
31
|
+
adaptiveCurveIrm: Address | null;
|
|
32
|
+
metaMorphoFactory: Address | null;
|
|
33
|
+
publicAllocator: Address | null;
|
|
34
|
+
bundler3: Address | null;
|
|
35
|
+
generalAdapter1: Address | null;
|
|
36
|
+
supportedVaults: Array<Address>;
|
|
37
|
+
};
|
|
38
|
+
interface BeraConfig {
|
|
39
|
+
chainId: ChainId;
|
|
40
|
+
/**
|
|
41
|
+
* Some common token addresses available on the chain.
|
|
42
|
+
*/
|
|
43
|
+
tokens: {
|
|
44
|
+
/**
|
|
45
|
+
* The address of the wbera token. Only this 0x6969... address is supported.
|
|
46
|
+
*/
|
|
47
|
+
wbera: "0x6969696969696969696969696969696969696969";
|
|
48
|
+
swbera: Address;
|
|
49
|
+
bgt: Address;
|
|
50
|
+
wbtc: Address;
|
|
51
|
+
weth: Address;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The API endpoint for the chain. Used to fetch prices, bex, pol and validators' data.
|
|
55
|
+
*/
|
|
56
|
+
api: HttpLink;
|
|
57
|
+
/**
|
|
58
|
+
* The subgraph endpoint for the chain. Mainly used to fetch last 24h average block time.
|
|
59
|
+
*/
|
|
60
|
+
blocksSubgraph: HttpLink;
|
|
61
|
+
/**
|
|
62
|
+
* The address of the deposit contract for the chain.
|
|
63
|
+
*/
|
|
64
|
+
depositContract: Address;
|
|
65
|
+
/**
|
|
66
|
+
* The addresses of the metadata lists.
|
|
67
|
+
*
|
|
68
|
+
* @see https://github.com/berachain/metadata
|
|
69
|
+
*/
|
|
70
|
+
lists: {
|
|
71
|
+
tokenList: string;
|
|
72
|
+
validatorList: string;
|
|
73
|
+
rewardVaultList: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Contract addresses and endpoints for the Bex protocol, part of BeraHub.
|
|
77
|
+
*/
|
|
78
|
+
bex: {
|
|
79
|
+
vault: Address;
|
|
80
|
+
helper: Address;
|
|
81
|
+
queries: Address;
|
|
82
|
+
relayer: Address;
|
|
83
|
+
factories: {
|
|
84
|
+
composableStable: Address;
|
|
85
|
+
weighted: Address;
|
|
86
|
+
};
|
|
87
|
+
poolCreationHelper: Address;
|
|
88
|
+
subgraph: HttpLink;
|
|
89
|
+
chainName: string;
|
|
90
|
+
aggregatorsRouter: Address;
|
|
91
|
+
aggregatorsRouterExecutor: Address;
|
|
92
|
+
/**
|
|
93
|
+
* This is an hardcoded value in contracts to detected whether governance can
|
|
94
|
+
* change pool fees and amplification parameter.
|
|
95
|
+
*
|
|
96
|
+
* @see https://docs.balancer.fi/concepts/pools/more/configuration.html#fees
|
|
97
|
+
*/
|
|
98
|
+
balancerDelegatedOwnership: Address;
|
|
99
|
+
/**
|
|
100
|
+
* Haiku router contract used to calculate agent addresses for permit2 approvals.
|
|
101
|
+
* @see https://haiku.fi
|
|
102
|
+
*/
|
|
103
|
+
haikuRouter: Address | null;
|
|
104
|
+
/**
|
|
105
|
+
* Pre-computed haiku agent address for the aggregatorsRouterExecutor.
|
|
106
|
+
* Calculated via haikuRouter.calcAgent(aggregatorsRouterExecutor).
|
|
107
|
+
* Used for permit2 spend approvals.
|
|
108
|
+
*/
|
|
109
|
+
haikuAgentAddress: Address | null;
|
|
110
|
+
/**
|
|
111
|
+
* The aggregators proxy URL for the chain. Used to proxy requests to various aggregator APIs.
|
|
112
|
+
* Added here to keep ReadmeGenerator script clean while having this endpoint in the dependency
|
|
113
|
+
*/
|
|
114
|
+
aggregatorsProxyUrl: string;
|
|
115
|
+
recoverFundsApi: string;
|
|
116
|
+
recoverFundsContract: Address;
|
|
117
|
+
};
|
|
118
|
+
pol: {
|
|
119
|
+
factory: Address;
|
|
120
|
+
staker: Address;
|
|
121
|
+
rewardAllocationFactory: Address;
|
|
122
|
+
beraChef: Address;
|
|
123
|
+
subgraph: HttpLink;
|
|
124
|
+
bribeBoostApi: string;
|
|
125
|
+
rewardVaultHelper: Address;
|
|
126
|
+
bgtIncentiveDistributor: Address;
|
|
127
|
+
};
|
|
128
|
+
honey: Project & {
|
|
129
|
+
factory: Address;
|
|
130
|
+
reader: Address;
|
|
131
|
+
pythWrapper: Address;
|
|
132
|
+
/**
|
|
133
|
+
* The contract that proxies pyth prices for Honey factory.
|
|
134
|
+
*/
|
|
135
|
+
pythOracle: Address;
|
|
136
|
+
token: Address;
|
|
137
|
+
subgraph: HttpLink;
|
|
138
|
+
};
|
|
139
|
+
governance: {
|
|
140
|
+
timelock: Address;
|
|
141
|
+
governor: Address;
|
|
142
|
+
subgraph: HttpLink;
|
|
143
|
+
};
|
|
144
|
+
bridge: Project & {
|
|
145
|
+
nft: Project & {
|
|
146
|
+
eth: {
|
|
147
|
+
subgraph: HttpLink;
|
|
148
|
+
};
|
|
149
|
+
berachain: {
|
|
150
|
+
subgraph: HttpLink;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
external: {
|
|
155
|
+
pyth: Address;
|
|
156
|
+
};
|
|
157
|
+
hub: Project;
|
|
158
|
+
bend: Project & {
|
|
159
|
+
whiskApi: HttpLink | null;
|
|
160
|
+
production: BendAddresses;
|
|
161
|
+
staging: BendAddresses;
|
|
162
|
+
};
|
|
163
|
+
explore: Project;
|
|
164
|
+
explorer: Project;
|
|
165
|
+
averageBlockTime: number;
|
|
166
|
+
chain: {
|
|
167
|
+
/**
|
|
168
|
+
* This will be used by wallet providers to display the chain name
|
|
169
|
+
*/
|
|
170
|
+
name: string;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Public faucet configuration.
|
|
174
|
+
*
|
|
175
|
+
* Mainly used in static-monobera.
|
|
176
|
+
*/
|
|
177
|
+
faucet: (Project & {
|
|
178
|
+
/**
|
|
179
|
+
* Amount of BERA the user will receive when using the faucet
|
|
180
|
+
*/
|
|
181
|
+
dripAmount: number;
|
|
182
|
+
/**
|
|
183
|
+
* Time in hours between each drip
|
|
184
|
+
*/
|
|
185
|
+
timeGap: number;
|
|
186
|
+
cloudflareKey: string;
|
|
187
|
+
/**
|
|
188
|
+
* API endpoint to send the request to the faucet
|
|
189
|
+
*/
|
|
190
|
+
endpoint: string;
|
|
191
|
+
}) | null;
|
|
192
|
+
}
|
|
193
|
+
declare enum ChainId {
|
|
194
|
+
MAINNET = 80094,
|
|
195
|
+
BEPOLIA = 80069
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export { type Address as A, type BeraConfig as B, ChainId as C, type HttpLink as H, type ProjectName as P, type AppName as a };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@tailwindcss/container-queries": "0.1.1",
|
|
15
15
|
"@tailwindcss/typography": "0.5.16",
|
|
16
16
|
"@types/node": "22.12.0",
|
|
17
|
-
"next": "15.5.
|
|
17
|
+
"next": "15.5.9",
|
|
18
18
|
"json-schema-to-typescript": "15.0.4",
|
|
19
19
|
"tailwindcss": "3.4.17",
|
|
20
20
|
"tailwindcss-animate": "1.0.7",
|