@berachain/config 0.0.1-alpha.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.
- package/LICENSE +21 -0
- package/README.md +20 -0
- package/dist/bepolia.cjs +1 -0
- package/dist/bepolia.d.cts +106 -0
- package/dist/bepolia.d.ts +106 -0
- package/dist/bepolia.js +1 -0
- package/dist/chunk-3IPYHDYK.cjs +1 -0
- package/dist/chunk-4ZIGP2PE.js +1 -0
- package/dist/chunk-5F62JDHS.js +1 -0
- package/dist/chunk-CJ6TCEOL.js +1 -0
- package/dist/chunk-E3O7UH5M.js +1 -0
- package/dist/chunk-G56N5MYU.js +1 -0
- package/dist/chunk-GQ2VIAGM.cjs +1 -0
- package/dist/chunk-J5ZJIOVM.cjs +1 -0
- package/dist/chunk-LJRHN532.js +1 -0
- package/dist/chunk-PWMV5FZC.cjs +1 -0
- package/dist/chunk-QQWAFQ4G.js +1 -0
- package/dist/chunk-RPCNZQO2.cjs +1 -0
- package/dist/chunk-WW7TSLXR.cjs +1 -0
- package/dist/chunk-XZQVP4AU.cjs +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +128 -0
- package/dist/index.d.ts +128 -0
- package/dist/index.js +1 -0
- package/dist/internal/header-sources.cjs +11 -0
- package/dist/internal/header-sources.d.cts +10 -0
- package/dist/internal/header-sources.d.ts +10 -0
- package/dist/internal/header-sources.js +11 -0
- package/dist/internal/index.cjs +1 -0
- package/dist/internal/index.d.cts +369 -0
- package/dist/internal/index.d.ts +369 -0
- package/dist/internal/index.js +1 -0
- package/dist/internal/maintenance.cjs +1 -0
- package/dist/internal/maintenance.d.cts +11 -0
- package/dist/internal/maintenance.d.ts +11 -0
- package/dist/internal/maintenance.js +1 -0
- package/dist/internal/nextjs/index.cjs +1 -0
- package/dist/internal/nextjs/index.d.cts +7 -0
- package/dist/internal/nextjs/index.d.ts +7 -0
- package/dist/internal/nextjs/index.js +1 -0
- package/dist/internal/sentry/esbuild.plugin.cjs +1 -0
- package/dist/internal/sentry/esbuild.plugin.d.cts +3 -0
- package/dist/internal/sentry/esbuild.plugin.d.ts +3 -0
- package/dist/internal/sentry/esbuild.plugin.js +1 -0
- package/dist/internal/sentry/index.cjs +1 -0
- package/dist/internal/sentry/index.d.cts +11 -0
- package/dist/internal/sentry/index.d.ts +11 -0
- package/dist/internal/sentry/index.js +1 -0
- package/dist/internal/sentry/sentry.client.config.cjs +1 -0
- package/dist/internal/sentry/sentry.client.config.d.cts +2 -0
- package/dist/internal/sentry/sentry.client.config.d.ts +2 -0
- package/dist/internal/sentry/sentry.client.config.js +1 -0
- package/dist/internal/tsup/index.cjs +1 -0
- package/dist/internal/tsup/index.d.cts +5 -0
- package/dist/internal/tsup/index.d.ts +5 -0
- package/dist/internal/tsup/index.js +1 -0
- package/dist/mainnet.cjs +1 -0
- package/dist/mainnet.d.cts +106 -0
- package/dist/mainnet.d.ts +106 -0
- package/dist/mainnet.js +1 -0
- package/dist/sentry.edge.config-HELM2ESO.js +1 -0
- package/dist/sentry.edge.config-PX7MX352.cjs +1 -0
- package/dist/sentry.server.config-SLGLNXCE.cjs +1 -0
- package/dist/sentry.server.config-Y6L22PFM.js +1 -0
- package/package.json +90 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Berachain Foundation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @berachain/config
|
|
2
|
+
|
|
3
|
+
This package contains the configuration for Berachain projects, included addresses and endpoints.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
> This package is still unstable and might include breaking changes in minor and patch release.
|
|
8
|
+
|
|
9
|
+
### Chain exports
|
|
10
|
+
|
|
11
|
+
The following exports are available:
|
|
12
|
+
|
|
13
|
+
- `mainnet` from `@berachain/config/mainnet`
|
|
14
|
+
- `bepolia` from `@berachain/config/bepolia`
|
|
15
|
+
|
|
16
|
+
### BeraDapps config
|
|
17
|
+
|
|
18
|
+
`@berachain/config/internal` exports variable used by the monobera dapps. Unless you're a member of the Berachain Foundation, you should not be using these exports.
|
|
19
|
+
|
|
20
|
+
We won't provide support for any code that affects `/internal` exports and any release might include breaking changes in these exports.
|
package/dist/bepolia.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPWMV5FZCcjs = require('./chunk-PWMV5FZC.cjs');exports.bepolia = _chunkPWMV5FZCcjs.a;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
declare const bepolia: {
|
|
2
|
+
readonly tokens: {
|
|
3
|
+
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
4
|
+
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
5
|
+
readonly wbtc: "0x";
|
|
6
|
+
readonly weth: "0x";
|
|
7
|
+
};
|
|
8
|
+
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
9
|
+
readonly pol: {
|
|
10
|
+
readonly version: "1.0.4";
|
|
11
|
+
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
12
|
+
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
13
|
+
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
14
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.5.2/gn";
|
|
15
|
+
readonly bribeBoostApi: string;
|
|
16
|
+
readonly bribeBoostApiKey: string;
|
|
17
|
+
readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
|
|
18
|
+
};
|
|
19
|
+
readonly api: string;
|
|
20
|
+
readonly blocksSubgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/blocks-subgraph/bepolia-v1.1.0/gn";
|
|
21
|
+
readonly bex: {
|
|
22
|
+
readonly chainName: "BEPOLIA";
|
|
23
|
+
readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
|
|
24
|
+
readonly helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f";
|
|
25
|
+
readonly queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92";
|
|
26
|
+
readonly relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C";
|
|
27
|
+
readonly factories: {
|
|
28
|
+
readonly composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1";
|
|
29
|
+
readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
|
|
30
|
+
};
|
|
31
|
+
readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
|
|
32
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/bepolia-v1.0.2-rc1/gn";
|
|
33
|
+
readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
|
|
34
|
+
readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
|
|
35
|
+
readonly aggregatorsProxyUrl: string;
|
|
36
|
+
};
|
|
37
|
+
readonly honey: {
|
|
38
|
+
readonly name: "Honey";
|
|
39
|
+
readonly url: "https://bepolia.honey.berachain.com";
|
|
40
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/bepolia-v1.1.1/gn";
|
|
41
|
+
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
42
|
+
readonly pythWrapper: "0x4b7cb1c197f8EE4d309866B16C2c12E3B4E7E606";
|
|
43
|
+
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
44
|
+
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
45
|
+
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
46
|
+
readonly isPythWrapperEnabled: boolean;
|
|
47
|
+
readonly isCustodyEnabled: boolean;
|
|
48
|
+
};
|
|
49
|
+
readonly hub: {
|
|
50
|
+
readonly name: "BeraHub";
|
|
51
|
+
readonly url: "https://bepolia.hub.berachain.com";
|
|
52
|
+
};
|
|
53
|
+
readonly foundation: {
|
|
54
|
+
readonly name: "Berachain Foundation";
|
|
55
|
+
readonly url: "https://www.berachain.com";
|
|
56
|
+
};
|
|
57
|
+
readonly governance: {
|
|
58
|
+
readonly governor: `0x${string}`;
|
|
59
|
+
readonly timelock: `0x${string}`;
|
|
60
|
+
readonly subgraph: string;
|
|
61
|
+
};
|
|
62
|
+
readonly lists: {
|
|
63
|
+
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json";
|
|
64
|
+
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json";
|
|
65
|
+
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json";
|
|
66
|
+
};
|
|
67
|
+
readonly averageBlockTime: 1.9;
|
|
68
|
+
readonly boyco: {
|
|
69
|
+
readonly name: "Boyco";
|
|
70
|
+
readonly url: "https://bepolia.boyco.berachain.com";
|
|
71
|
+
readonly originUrl: string;
|
|
72
|
+
readonly originKey: string;
|
|
73
|
+
readonly originId: string;
|
|
74
|
+
readonly airdropApi: string;
|
|
75
|
+
readonly merkleId: `0x${string}`;
|
|
76
|
+
readonly airdropAddress: `0x${string}`;
|
|
77
|
+
};
|
|
78
|
+
readonly bridge: {
|
|
79
|
+
readonly name: "BeraBridge";
|
|
80
|
+
readonly url: "https://bepolia.bridge.berachain.com";
|
|
81
|
+
readonly nft: {
|
|
82
|
+
readonly name: "BeraBridge NFT";
|
|
83
|
+
readonly url: "#";
|
|
84
|
+
readonly eth: {
|
|
85
|
+
readonly subgraph: "#";
|
|
86
|
+
};
|
|
87
|
+
readonly berachain: {
|
|
88
|
+
readonly subgraph: "#";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly bend: {
|
|
93
|
+
readonly name: "Bend";
|
|
94
|
+
readonly url: "#";
|
|
95
|
+
};
|
|
96
|
+
readonly berps: {
|
|
97
|
+
readonly name: "Berps";
|
|
98
|
+
readonly url: "#";
|
|
99
|
+
};
|
|
100
|
+
readonly faucet: {
|
|
101
|
+
readonly name: "Faucet";
|
|
102
|
+
readonly url: "https://bepolia.faucet.berachain.com";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export { bepolia };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
declare const bepolia: {
|
|
2
|
+
readonly tokens: {
|
|
3
|
+
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
4
|
+
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
5
|
+
readonly wbtc: "0x";
|
|
6
|
+
readonly weth: "0x";
|
|
7
|
+
};
|
|
8
|
+
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
9
|
+
readonly pol: {
|
|
10
|
+
readonly version: "1.0.4";
|
|
11
|
+
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
12
|
+
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
13
|
+
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
14
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.5.2/gn";
|
|
15
|
+
readonly bribeBoostApi: string;
|
|
16
|
+
readonly bribeBoostApiKey: string;
|
|
17
|
+
readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
|
|
18
|
+
};
|
|
19
|
+
readonly api: string;
|
|
20
|
+
readonly blocksSubgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/blocks-subgraph/bepolia-v1.1.0/gn";
|
|
21
|
+
readonly bex: {
|
|
22
|
+
readonly chainName: "BEPOLIA";
|
|
23
|
+
readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
|
|
24
|
+
readonly helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f";
|
|
25
|
+
readonly queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92";
|
|
26
|
+
readonly relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C";
|
|
27
|
+
readonly factories: {
|
|
28
|
+
readonly composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1";
|
|
29
|
+
readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
|
|
30
|
+
};
|
|
31
|
+
readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
|
|
32
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/bepolia-v1.0.2-rc1/gn";
|
|
33
|
+
readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
|
|
34
|
+
readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
|
|
35
|
+
readonly aggregatorsProxyUrl: string;
|
|
36
|
+
};
|
|
37
|
+
readonly honey: {
|
|
38
|
+
readonly name: "Honey";
|
|
39
|
+
readonly url: "https://bepolia.honey.berachain.com";
|
|
40
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/bepolia-v1.1.1/gn";
|
|
41
|
+
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
42
|
+
readonly pythWrapper: "0x4b7cb1c197f8EE4d309866B16C2c12E3B4E7E606";
|
|
43
|
+
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
44
|
+
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
45
|
+
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
46
|
+
readonly isPythWrapperEnabled: boolean;
|
|
47
|
+
readonly isCustodyEnabled: boolean;
|
|
48
|
+
};
|
|
49
|
+
readonly hub: {
|
|
50
|
+
readonly name: "BeraHub";
|
|
51
|
+
readonly url: "https://bepolia.hub.berachain.com";
|
|
52
|
+
};
|
|
53
|
+
readonly foundation: {
|
|
54
|
+
readonly name: "Berachain Foundation";
|
|
55
|
+
readonly url: "https://www.berachain.com";
|
|
56
|
+
};
|
|
57
|
+
readonly governance: {
|
|
58
|
+
readonly governor: `0x${string}`;
|
|
59
|
+
readonly timelock: `0x${string}`;
|
|
60
|
+
readonly subgraph: string;
|
|
61
|
+
};
|
|
62
|
+
readonly lists: {
|
|
63
|
+
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json";
|
|
64
|
+
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json";
|
|
65
|
+
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json";
|
|
66
|
+
};
|
|
67
|
+
readonly averageBlockTime: 1.9;
|
|
68
|
+
readonly boyco: {
|
|
69
|
+
readonly name: "Boyco";
|
|
70
|
+
readonly url: "https://bepolia.boyco.berachain.com";
|
|
71
|
+
readonly originUrl: string;
|
|
72
|
+
readonly originKey: string;
|
|
73
|
+
readonly originId: string;
|
|
74
|
+
readonly airdropApi: string;
|
|
75
|
+
readonly merkleId: `0x${string}`;
|
|
76
|
+
readonly airdropAddress: `0x${string}`;
|
|
77
|
+
};
|
|
78
|
+
readonly bridge: {
|
|
79
|
+
readonly name: "BeraBridge";
|
|
80
|
+
readonly url: "https://bepolia.bridge.berachain.com";
|
|
81
|
+
readonly nft: {
|
|
82
|
+
readonly name: "BeraBridge NFT";
|
|
83
|
+
readonly url: "#";
|
|
84
|
+
readonly eth: {
|
|
85
|
+
readonly subgraph: "#";
|
|
86
|
+
};
|
|
87
|
+
readonly berachain: {
|
|
88
|
+
readonly subgraph: "#";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly bend: {
|
|
93
|
+
readonly name: "Bend";
|
|
94
|
+
readonly url: "#";
|
|
95
|
+
};
|
|
96
|
+
readonly berps: {
|
|
97
|
+
readonly name: "Berps";
|
|
98
|
+
readonly url: "#";
|
|
99
|
+
};
|
|
100
|
+
readonly faucet: {
|
|
101
|
+
readonly name: "Faucet";
|
|
102
|
+
readonly url: "https://bepolia.faucet.berachain.com";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export { bepolia };
|
package/dist/bepolia.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-CJ6TCEOL.js";export{a as bepolia};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var e=(r=>(r[r.MAINNET=80094]="MAINNET",r[r.BEPOLIA=80069]="BEPOLIA",r))(e||{});exports.a = e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{withSentryConfig as r}from"@sentry/nextjs";async function i(){process.env.NEXT_RUNTIME==="edge"?await import("./sentry.edge.config-HELM2ESO.js"):process.env.NEXT_RUNTIME==="nodejs"&&await import("./sentry.server.config-Y6L22PFM.js")}function c(e){let o={...e,env:{...e.env,VERCEL_TARGET_ENV:process.env.VERCEL_TARGET_ENV},webpack:(t,n)=>(n.isServer&&!n.dev&&process.env.UPLOAD_SOURCEMAPS==="true"&&(t.devtool="source-map"),e.webpack?.(t,n)??t)};return r(o,{org:process.env.SENTRY_ORG,project:process.env.SENTRY_PROJECT,telemetry:!1,reactComponentAnnotation:{enabled:process.env.UPLOAD_SOURCEMAPS==="true"},widenClientFileUpload:process.env.UPLOAD_SOURCEMAPS==="true",sourcemaps:{disable:process.env.UPLOAD_SOURCEMAPS!=="true"},debug:process.env.UPLOAD_SOURCEMAPS==="true",tunnelRoute:"/monitoring-tunnel",automaticVercelMonitors:!0})}export{i as a,c as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-QQWAFQ4G.js";import{a as t}from"./chunk-CJ6TCEOL.js";import{a as r}from"./chunk-LJRHN532.js";var e=o===80094?r:t,l=process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS!=="0"&&!!process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS,x="phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",b="https://eu.i.posthog.com",A=o!==80094&&o!==80069,h=process.env.OPENSEA_API_KEY,E="https://api.enso.finance/api",s=process.env.NEXT_PUBLIC_ENSO_API_KEY??"3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f",d=process.env.ENSO_API_KEY??s,m=process.env.OOGABOOGA_API_KEY,_=process.env.NEXT_PUBLIC_USE_VERCEL_PROXY==="true",g=process.env.HAIKU_API_KEY,N=process.env.KYBERSWAP_CLIENT_ID,u=process.env.NEXT_PUBLIC_HOMEPAGE_URL??"https://www.berachain.com",I="https://ecosystem.berachain.com/",U="https://docs.berachain.com",B="https://careers.berachain.com/",P="https://medium.com/berachain-foundation/the-bera-era-has-begun-49a18c6d77c0",L="https://drive.google.com/drive/folders/1r658Px_VhjiUEC4AQAhHRCBeVKjcRWU6",T="https://blog.berachain.com/",C=process.env.NODE_ENV==="production"&&process.env.NEXT_PUBLIC_ENABLE_GOVERNANCE!=="true",f=!1,v=process.env.NEXT_PUBLIC_REWARD_VAULT_DURATION!=="true",K="https://res.cloudinary.com/duv0g402y/image/upload/v1738720154/brand/berachain-chain-logo.png.png",O="BERA",y="Bera",w=18,k="https://x.com/berachain",R="https://t.me/BerachainPortal",M="https://discord.com/invite/berachain",V="https://github.com/berachain",D="0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b",X="0xcA11bde05977b3631167028862bE2a173976CA11",S=Number(process.env.NEXT_PUBLIC_MULTICALL_CREATION_BLOCK??0),Y=process.env.NEXT_PUBLIC_CHAIN_NAME??(o===80069?"Berachain Bepolia":"Berachain"),H=e.lists.tokenList,G=e.lists.rewardVaultList,W=o===80094?"https://www.berascan.com":"https://bepolia.beratrail.io",j="Berascan",F="Berachain Foundation",z=e.honey.url,Q=e.honey.name,$=e.hub.url,q=e.hub.name,J=e.faucet.name,Z=e.faucet.url,ee=e.bridge.nft.url,oe=e.bridge.url,te=e.averageBlockTime,re=process.env.NEXT_PUBLIC_PYTH_CONTRACT_ADDRESS??"0x",se="0x0000000000000000000000000000000000000000",ne=e.tokens.wbera;export{e as a,l as b,x as c,b as d,A as e,h as f,E as g,s as h,d as i,m as j,_ as k,g as l,N as m,u as n,I as o,U as p,B as q,P as r,L as s,T as t,C as u,f as v,v as w,K as x,O as y,y as z,w as A,k as B,R as C,M as D,V as E,D as F,X as G,S as H,Y as I,H as J,G as K,W as L,j as M,F as N,z as O,Q as P,$ as Q,q as R,J as S,Z as T,ee as U,oe as V,te as W,re as X,se as Y,ne as Z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={tokens:{wbera:"0x6969696969696969696969696969696969696969",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x",weth:"0x"},depositContract:"0x4242424242424242424242424242424242424242",pol:{version:"1.0.4",beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.5.2/gn",bribeBoostApi:process.env.NEXT_PUBLIC_80069_INCENTIVES_API||"https://bepolia.api-claim.berachain.com",bribeBoostApiKey:process.env.PRIVATE_80069_INCENTIVES_API_KEY??"",bgtIncentiveDistributor:"0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3"},api:process.env.PRIVATE_80069_BEX_API_URL??"https://bepolia-api.berachain.com",blocksSubgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/blocks-subgraph/bepolia-v1.1.0/gn",bex:{chainName:"BEPOLIA",vault:"0x708cA656b68A6b7384a488A36aD33505a77241FE",helper:"0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f",queries:"0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92",relayer:"0x343215E156Ff586711a5B8C49Fe3099BAF22624C",factories:{composableStable:"0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1",weighted:"0xf1d23276C7b271B2aC595C78977b2312E9954D57"},poolCreationHelper:"0x0dC9964F6CA33d9EF38DEB4925234766127C6B36",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/bepolia-v1.0.2-rc1/gn",aggregatorsRouter:"0x0000000000000000000000000000000000000000",aggregatorsRouterExecutor:"0x0000000000000000000000000000000000000000",aggregatorsProxyUrl:process.env.NEXT_PUBLIC_80069_AGGREGATORS_PROXY_URL??""},honey:{name:"Honey",url:"https://bepolia.honey.berachain.com",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/bepolia-v1.1.1/gn",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythWrapper:"0x4b7cb1c197f8EE4d309866B16C2c12E3B4E7E606",pyth:"0x2880aB155794e7179c9eE2e38200202908C17B43",reader:"0x285e147060CDc5ba902786d3A471224ee6cE0F91",token:"0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce",isPythWrapperEnabled:process.env.NEXT_PUBLIC_80069_HONEY_PYTH_STATUS==="active",isCustodyEnabled:process.env.NEXT_PUBLIC_80069_HONEY_COINBASE_CUSTODY_ENABLED==="true"||process.env.NEXT_PUBLIC_80069_HONEY_COINBASE_CUSTODY_ENABLED===void 0},hub:{name:"BeraHub",url:"https://bepolia.hub.berachain.com"},foundation:{name:"Berachain Foundation",url:"https://www.berachain.com"},governance:{governor:process.env.NEXT_PUBLIC_80069_GOVERNANCE_ADDRESS??"0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",timelock:process.env.NEXT_PUBLIC_80069_GOVERNANCE_TIMELOCK??"0xb5f2000b5744f207c931526cAE2134cAa8b6862a",subgraph:process.env.NEXT_PUBLIC_80069_GOVERNANCE_SUBGRAPH??"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/governance-subgraph/bepolia-v1.1.1/gn"},lists:{rewardVaultList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json",tokenList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json",validatorList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json"},averageBlockTime:1.9,boyco:{name:"Boyco",url:"https://bepolia.boyco.berachain.com",originUrl:process.env.NEXT_PUBLIC_ROYCO_ORIGIN_URL??"https://istbjtfzjcnstpzunkje-all.supabase.co",originKey:process.env.NEXT_PUBLIC_ROYCO_ORIGIN_KEY??"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlzdGJqdGZ6amNuc3RwenVua2plIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzgxODc3NDUsImV4cCI6MjA1Mzc2Mzc0NX0.p74w0fxcivBLkn_P82XlRG8upTCaKQDP69YsV7Ap5t0",originId:process.env.NEXT_PUBLIC_ROYCO_ORIGIN_ID??"57dc9dc3-45e7-4d0c-bc97-4f33ec31c690",airdropApi:process.env.NEXT_PUBLIC_BOYCO_80069_AIRDROP_API??"https://royco-airdrop.testnet.berachain.com",merkleId:process.env.NEXT_PUBLIC_80069_BOYCO_CLAIM_MERKLE_ID??"0xd9ae3eef22a09e7feebc98c0c66d57db42562a50a02cc69f8700ce3b444dd7a4",airdropAddress:process.env.NEXT_PUBLIC_80069_BOYCO_CLAIM_CONTRACT_ADDRESS??"0x39782FD6c2fb27599965f5CEdEaA0D87Df433C45"},bridge:{name:"BeraBridge",url:"https://bepolia.bridge.berachain.com",nft:{name:"BeraBridge NFT",url:"#",eth:{subgraph:"#"},berachain:{subgraph:"#"}}},bend:{name:"Bend",url:"#"},berps:{name:"Berps",url:"#"},faucet:{name:"Faucet",url:"https://bepolia.faucet.berachain.com"}};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(r=>(r[r.MAINNET=80094]="MAINNET",r[r.BEPOLIA=80069]="BEPOLIA",r))(e||{});export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-QQWAFQ4G.js";var o=e===80094?"mainnet-":"bepolia-";process.env.VERCEL_TARGET_ENV==="production"?o+="production":o+="preview";export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;if(_!==80094&&_!==80069)throw new Error(`Invalid chainId: ${_}`);var t=process.env.NEXT_PUBLIC_HOST==="ipfs",R= exports.c =process.env.ETHERSCAN_API_KEY,E= exports.d =process.env.NEXT_PUBLIC_COOKIE3_SITE_ID,P= exports.e =_nullishCoalesce(process.env.NEXT_PUBLIC_DYNAMIC_API_KEY, () => ("b8a5104d-47e0-4965-b56a-0bcc31cf56f4")),U= exports.f =_===80069?process.env.PRIVATE_80069_BEX_API_KEY:process.env.PRIVATE_80094_BEX_API_KEY,n=_;function o(e=n){if(e===80069&&process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL||e===80094&&process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL){let s=e===80069?process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL:process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL;return process.env.VITEST_WORKER_ID?s=`${s}/${_nullishCoalesce(process.env.VITEST_WORKER_ID, () => (1))}`:console.log("Using anvil RPC for bepolia",s),{publicJsonRpcUrl:s,jsonRpcUrl:s,alchemyJsonRpcUrl:void 0,privateRcpUrl:void 0,isAnvil:!0}}return{publicJsonRpcUrl:e===80069?_nullishCoalesce(process.env.NEXT_PUBLIC_80069_PUBLIC_JSON_RPC_URL, () => ("https://bepolia.rpc.berachain.com")):_nullishCoalesce(process.env.NEXT_PUBLIC_80094_PUBLIC_JSON_RPC_URL, () => ("https://rpc.berachain.com")),jsonRpcUrl:e===80069?_nullishCoalesce(process.env.NEXT_PUBLIC_80069_JSON_RPC_URL, () => ("https://bepolia.rpc.berachain.com")):_nullishCoalesce(process.env.NEXT_PUBLIC_80094_JSON_RPC_URL, () => ("https://rpc.berachain.com")),alchemyJsonRpcUrl:e===80069?process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL:process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,privateRcpUrl:e===80069?process.env.PRIVATE_80069_JSON_RPC_URL:process.env.PRIVATE_80094_JSON_RPC_URL,isAnvil:!1}}var{publicJsonRpcUrl:l,jsonRpcUrl:a,alchemyJsonRpcUrl:C,privateRcpUrl:L}=o(_);exports.a = _; exports.b = t; exports.c = R; exports.d = E; exports.e = P; exports.f = U; exports.g = o; exports.h = l; exports.i = a; exports.j = C; exports.k = L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var e={tokens:{wbera:"0x6969696969696969696969696969696969696969",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",weth:"0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590"},depositContract:"0x4242424242424242424242424242424242424242",pol:{version:"1.0.4",beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/mainnet-v1.5.2/gn",bribeBoostApi:process.env.NEXT_PUBLIC_80094_INCENTIVES_API||"https://api-claim.berachain.com",bribeBoostApiKey:_nullishCoalesce(process.env.PRIVATE_80094_INCENTIVES_API_KEY, () => ("")),bgtIncentiveDistributor:"0xBDDba144482049382eC79CadfA02f0fa0F462dE3"},api:_nullishCoalesce(process.env.PRIVATE_80094_BEX_API_URL, () => ("https://api.berachain.com")),blocksSubgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/blocks-subgraph/mainnet-v1.1.0/gn",bex:{chainName:"BERACHAIN",vault:"0x4Be03f781C497A489E3cB0287833452cA9B9E80B",helper:"0x5083737EC75a728c265BE578C9d0d5333a2c5951",queries:"0x3C612e132624f4Bd500eE1495F54565F0bcc9b59",relayer:"0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7",factories:{composableStable:"0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1",weighted:"0xa966fA8F2d5B087FFFA499C0C1240589371Af409"},poolCreationHelper:"0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/mainnet-v1.0.2/gn",aggregatorsRouter:"0xa83739c179e639442A3a4f830745de2824d28153",aggregatorsRouterExecutor:"0xb9c391f4BAaC4244f482020eaB434048882bFBA2",aggregatorsProxyUrl:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_AGGREGATORS_PROXY_URL, () => ("https://gateway.mainnet.berachain.com/proxy"))},honey:{name:"Honey",url:"https://honey.berachain.com",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/mainnet-v1.1.1/gn",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythWrapper:"0x0000000000000000000000000000000000000000",pyth:"0x2880aB155794e7179c9eE2e38200202908C17B43",reader:"0x285e147060CDc5ba902786d3A471224ee6cE0F91",token:"0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce",isPythWrapperEnabled:process.env.NEXT_PUBLIC_80094_HONEY_PYTH_STATUS==="active",isCustodyEnabled:process.env.NEXT_PUBLIC_80094_HONEY_COINBASE_CUSTODY_ENABLED==="true"||process.env.NEXT_PUBLIC_80094_HONEY_COINBASE_CUSTODY_ENABLED===void 0},hub:{name:"BeraHub",url:"https://hub.berachain.com"},foundation:{name:"Berachain Foundation",url:"https://www.berachain.com"},governance:{governor:"0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",timelock:"0xb5f2000b5744f207c931526cAE2134cAa8b6862a",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/governance-subgraph/mainnet-v1.1.1/gn"},lists:{rewardVaultList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json",tokenList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/mainnet.json",validatorList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/mainnet.json"},averageBlockTime:1.9,boyco:{name:"Boyco",url:"https://boyco.berachain.com",originUrl:_nullishCoalesce(process.env.NEXT_PUBLIC_ROYCO_ORIGIN_URL, () => ("https://istbjtfzjcnstpzunkje-all.supabase.co")),originKey:_nullishCoalesce(process.env.NEXT_PUBLIC_ROYCO_ORIGIN_KEY, () => ("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlzdGJqdGZ6amNuc3RwenVua2plIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzgxODc3NDUsImV4cCI6MjA1Mzc2Mzc0NX0.p74w0fxcivBLkn_P82XlRG8upTCaKQDP69YsV7Ap5t0")),originId:_nullishCoalesce(process.env.NEXT_PUBLIC_ROYCO_ORIGIN_ID, () => ("57dc9dc3-45e7-4d0c-bc97-4f33ec31c690")),airdropApi:_nullishCoalesce(process.env.NEXT_PUBLIC_BOYCO_80094_AIRDROP_API, () => ("https://123747hbcg2cg72.mainnet.berachain.com")),merkleId:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_BOYCO_CLAIM_MERKLE_ID, () => ("0xdb33ba4d84222b42f42649bcaabea3c077a7eef23c89a4aec1e32e2f2cfb0e4c")),airdropAddress:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_BOYCO_CLAIM_CONTRACT_ADDRESS, () => ("0xe62987D430030C0A65BcE3C3cEE0F6F282ee4908"))},bridge:{name:"BeraBridge",url:"https://bridge.berachain.com",nft:{name:"BeraBridge NFT",url:"https://nftbridge.berachain.com",eth:{subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/eth-v1.0.0-beta1/gn"},berachain:{subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn"}}},bend:{name:"Bend",url:"#"},berps:{name:"Berps",url:"#"},faucet:{name:"Faucet",url:"#"}},a= exports.b =e;exports.a = e; exports.b = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={tokens:{wbera:"0x6969696969696969696969696969696969696969",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",weth:"0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590"},depositContract:"0x4242424242424242424242424242424242424242",pol:{version:"1.0.4",beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/mainnet-v1.5.2/gn",bribeBoostApi:process.env.NEXT_PUBLIC_80094_INCENTIVES_API||"https://api-claim.berachain.com",bribeBoostApiKey:process.env.PRIVATE_80094_INCENTIVES_API_KEY??"",bgtIncentiveDistributor:"0xBDDba144482049382eC79CadfA02f0fa0F462dE3"},api:process.env.PRIVATE_80094_BEX_API_URL??"https://api.berachain.com",blocksSubgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/blocks-subgraph/mainnet-v1.1.0/gn",bex:{chainName:"BERACHAIN",vault:"0x4Be03f781C497A489E3cB0287833452cA9B9E80B",helper:"0x5083737EC75a728c265BE578C9d0d5333a2c5951",queries:"0x3C612e132624f4Bd500eE1495F54565F0bcc9b59",relayer:"0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7",factories:{composableStable:"0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1",weighted:"0xa966fA8F2d5B087FFFA499C0C1240589371Af409"},poolCreationHelper:"0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/mainnet-v1.0.2/gn",aggregatorsRouter:"0xa83739c179e639442A3a4f830745de2824d28153",aggregatorsRouterExecutor:"0xb9c391f4BAaC4244f482020eaB434048882bFBA2",aggregatorsProxyUrl:process.env.NEXT_PUBLIC_80094_AGGREGATORS_PROXY_URL??"https://gateway.mainnet.berachain.com/proxy"},honey:{name:"Honey",url:"https://honey.berachain.com",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/mainnet-v1.1.1/gn",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythWrapper:"0x0000000000000000000000000000000000000000",pyth:"0x2880aB155794e7179c9eE2e38200202908C17B43",reader:"0x285e147060CDc5ba902786d3A471224ee6cE0F91",token:"0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce",isPythWrapperEnabled:process.env.NEXT_PUBLIC_80094_HONEY_PYTH_STATUS==="active",isCustodyEnabled:process.env.NEXT_PUBLIC_80094_HONEY_COINBASE_CUSTODY_ENABLED==="true"||process.env.NEXT_PUBLIC_80094_HONEY_COINBASE_CUSTODY_ENABLED===void 0},hub:{name:"BeraHub",url:"https://hub.berachain.com"},foundation:{name:"Berachain Foundation",url:"https://www.berachain.com"},governance:{governor:"0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",timelock:"0xb5f2000b5744f207c931526cAE2134cAa8b6862a",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/governance-subgraph/mainnet-v1.1.1/gn"},lists:{rewardVaultList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json",tokenList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/mainnet.json",validatorList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/mainnet.json"},averageBlockTime:1.9,boyco:{name:"Boyco",url:"https://boyco.berachain.com",originUrl:process.env.NEXT_PUBLIC_ROYCO_ORIGIN_URL??"https://istbjtfzjcnstpzunkje-all.supabase.co",originKey:process.env.NEXT_PUBLIC_ROYCO_ORIGIN_KEY??"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlzdGJqdGZ6amNuc3RwenVua2plIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzgxODc3NDUsImV4cCI6MjA1Mzc2Mzc0NX0.p74w0fxcivBLkn_P82XlRG8upTCaKQDP69YsV7Ap5t0",originId:process.env.NEXT_PUBLIC_ROYCO_ORIGIN_ID??"57dc9dc3-45e7-4d0c-bc97-4f33ec31c690",airdropApi:process.env.NEXT_PUBLIC_BOYCO_80094_AIRDROP_API??"https://123747hbcg2cg72.mainnet.berachain.com",merkleId:process.env.NEXT_PUBLIC_80094_BOYCO_CLAIM_MERKLE_ID??"0xdb33ba4d84222b42f42649bcaabea3c077a7eef23c89a4aec1e32e2f2cfb0e4c",airdropAddress:process.env.NEXT_PUBLIC_80094_BOYCO_CLAIM_CONTRACT_ADDRESS??"0xe62987D430030C0A65BcE3C3cEE0F6F282ee4908"},bridge:{name:"BeraBridge",url:"https://bridge.berachain.com",nft:{name:"BeraBridge NFT",url:"https://nftbridge.berachain.com",eth:{subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/eth-v1.0.0-beta1/gn"},berachain:{subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn"}}},bend:{name:"Bend",url:"#"},berps:{name:"Berps",url:"#"},faucet:{name:"Faucet",url:"#"}},a=e;export{e as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var e={tokens:{wbera:"0x6969696969696969696969696969696969696969",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x",weth:"0x"},depositContract:"0x4242424242424242424242424242424242424242",pol:{version:"1.0.4",beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.5.2/gn",bribeBoostApi:process.env.NEXT_PUBLIC_80069_INCENTIVES_API||"https://bepolia.api-claim.berachain.com",bribeBoostApiKey:_nullishCoalesce(process.env.PRIVATE_80069_INCENTIVES_API_KEY, () => ("")),bgtIncentiveDistributor:"0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3"},api:_nullishCoalesce(process.env.PRIVATE_80069_BEX_API_URL, () => ("https://bepolia-api.berachain.com")),blocksSubgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/blocks-subgraph/bepolia-v1.1.0/gn",bex:{chainName:"BEPOLIA",vault:"0x708cA656b68A6b7384a488A36aD33505a77241FE",helper:"0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f",queries:"0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92",relayer:"0x343215E156Ff586711a5B8C49Fe3099BAF22624C",factories:{composableStable:"0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1",weighted:"0xf1d23276C7b271B2aC595C78977b2312E9954D57"},poolCreationHelper:"0x0dC9964F6CA33d9EF38DEB4925234766127C6B36",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/bepolia-v1.0.2-rc1/gn",aggregatorsRouter:"0x0000000000000000000000000000000000000000",aggregatorsRouterExecutor:"0x0000000000000000000000000000000000000000",aggregatorsProxyUrl:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_AGGREGATORS_PROXY_URL, () => (""))},honey:{name:"Honey",url:"https://bepolia.honey.berachain.com",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/bepolia-v1.1.1/gn",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythWrapper:"0x4b7cb1c197f8EE4d309866B16C2c12E3B4E7E606",pyth:"0x2880aB155794e7179c9eE2e38200202908C17B43",reader:"0x285e147060CDc5ba902786d3A471224ee6cE0F91",token:"0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce",isPythWrapperEnabled:process.env.NEXT_PUBLIC_80069_HONEY_PYTH_STATUS==="active",isCustodyEnabled:process.env.NEXT_PUBLIC_80069_HONEY_COINBASE_CUSTODY_ENABLED==="true"||process.env.NEXT_PUBLIC_80069_HONEY_COINBASE_CUSTODY_ENABLED===void 0},hub:{name:"BeraHub",url:"https://bepolia.hub.berachain.com"},foundation:{name:"Berachain Foundation",url:"https://www.berachain.com"},governance:{governor:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_ADDRESS, () => ("0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5")),timelock:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_TIMELOCK, () => ("0xb5f2000b5744f207c931526cAE2134cAa8b6862a")),subgraph:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_SUBGRAPH, () => ("https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/governance-subgraph/bepolia-v1.1.1/gn"))},lists:{rewardVaultList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json",tokenList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json",validatorList:"https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json"},averageBlockTime:1.9,boyco:{name:"Boyco",url:"https://bepolia.boyco.berachain.com",originUrl:_nullishCoalesce(process.env.NEXT_PUBLIC_ROYCO_ORIGIN_URL, () => ("https://istbjtfzjcnstpzunkje-all.supabase.co")),originKey:_nullishCoalesce(process.env.NEXT_PUBLIC_ROYCO_ORIGIN_KEY, () => ("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlzdGJqdGZ6amNuc3RwenVua2plIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzgxODc3NDUsImV4cCI6MjA1Mzc2Mzc0NX0.p74w0fxcivBLkn_P82XlRG8upTCaKQDP69YsV7Ap5t0")),originId:_nullishCoalesce(process.env.NEXT_PUBLIC_ROYCO_ORIGIN_ID, () => ("57dc9dc3-45e7-4d0c-bc97-4f33ec31c690")),airdropApi:_nullishCoalesce(process.env.NEXT_PUBLIC_BOYCO_80069_AIRDROP_API, () => ("https://royco-airdrop.testnet.berachain.com")),merkleId:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_BOYCO_CLAIM_MERKLE_ID, () => ("0xd9ae3eef22a09e7feebc98c0c66d57db42562a50a02cc69f8700ce3b444dd7a4")),airdropAddress:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_BOYCO_CLAIM_CONTRACT_ADDRESS, () => ("0x39782FD6c2fb27599965f5CEdEaA0D87Df433C45"))},bridge:{name:"BeraBridge",url:"https://bepolia.bridge.berachain.com",nft:{name:"BeraBridge NFT",url:"#",eth:{subgraph:"#"},berachain:{subgraph:"#"}}},bend:{name:"Bend",url:"#"},berps:{name:"Berps",url:"#"},faucet:{name:"Faucet",url:"https://bepolia.faucet.berachain.com"}};exports.a = e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;if(_!==80094&&_!==80069)throw new Error(`Invalid chainId: ${_}`);var t=process.env.NEXT_PUBLIC_HOST==="ipfs",R=process.env.ETHERSCAN_API_KEY,E=process.env.NEXT_PUBLIC_COOKIE3_SITE_ID,P=process.env.NEXT_PUBLIC_DYNAMIC_API_KEY??"b8a5104d-47e0-4965-b56a-0bcc31cf56f4",U=_===80069?process.env.PRIVATE_80069_BEX_API_KEY:process.env.PRIVATE_80094_BEX_API_KEY,n=_;function o(e=n){if(e===80069&&process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL||e===80094&&process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL){let s=e===80069?process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL:process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL;return process.env.VITEST_WORKER_ID?s=`${s}/${process.env.VITEST_WORKER_ID??1}`:console.log("Using anvil RPC for bepolia",s),{publicJsonRpcUrl:s,jsonRpcUrl:s,alchemyJsonRpcUrl:void 0,privateRcpUrl:void 0,isAnvil:!0}}return{publicJsonRpcUrl:e===80069?process.env.NEXT_PUBLIC_80069_PUBLIC_JSON_RPC_URL??"https://bepolia.rpc.berachain.com":process.env.NEXT_PUBLIC_80094_PUBLIC_JSON_RPC_URL??"https://rpc.berachain.com",jsonRpcUrl:e===80069?process.env.NEXT_PUBLIC_80069_JSON_RPC_URL??"https://bepolia.rpc.berachain.com":process.env.NEXT_PUBLIC_80094_JSON_RPC_URL??"https://rpc.berachain.com",alchemyJsonRpcUrl:e===80069?process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL:process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,privateRcpUrl:e===80069?process.env.PRIVATE_80069_JSON_RPC_URL:process.env.PRIVATE_80094_JSON_RPC_URL,isAnvil:!1}}var{publicJsonRpcUrl:l,jsonRpcUrl:a,alchemyJsonRpcUrl:C,privateRcpUrl:L}=o(_);export{_ as a,t as b,R as c,E as d,P as e,U as f,o as g,l as h,a as i,C as j,L as k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGQ2VIAGMcjs = require('./chunk-GQ2VIAGM.cjs');var o=_chunkGQ2VIAGMcjs.a===80094?"mainnet-":"bepolia-";process.env.VERCEL_TARGET_ENV==="production"?o = exports.a+="production":o = exports.a+="preview";exports.a = o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkGQ2VIAGMcjs = require('./chunk-GQ2VIAGM.cjs');var _chunkPWMV5FZCcjs = require('./chunk-PWMV5FZC.cjs');var _chunkJ5ZJIOVMcjs = require('./chunk-J5ZJIOVM.cjs');var e=_chunkGQ2VIAGMcjs.a===80094?_chunkJ5ZJIOVMcjs.a:_chunkPWMV5FZCcjs.a,l= exports.b =process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS!=="0"&&!!process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS,x= exports.c ="phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",b= exports.d ="https://eu.i.posthog.com",A= exports.e =_chunkGQ2VIAGMcjs.a!==80094&&_chunkGQ2VIAGMcjs.a!==80069,h= exports.f =process.env.OPENSEA_API_KEY,E= exports.g ="https://api.enso.finance/api",s= exports.h =_nullishCoalesce(process.env.NEXT_PUBLIC_ENSO_API_KEY, () => ("3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f")),d= exports.i =_nullishCoalesce(process.env.ENSO_API_KEY, () => (s)),m= exports.j =process.env.OOGABOOGA_API_KEY,_= exports.k =process.env.NEXT_PUBLIC_USE_VERCEL_PROXY==="true",g= exports.l =process.env.HAIKU_API_KEY,N= exports.m =process.env.KYBERSWAP_CLIENT_ID,u= exports.n =_nullishCoalesce(process.env.NEXT_PUBLIC_HOMEPAGE_URL, () => ("https://www.berachain.com")),I= exports.o ="https://ecosystem.berachain.com/",U= exports.p ="https://docs.berachain.com",B= exports.q ="https://careers.berachain.com/",P= exports.r ="https://medium.com/berachain-foundation/the-bera-era-has-begun-49a18c6d77c0",L= exports.s ="https://drive.google.com/drive/folders/1r658Px_VhjiUEC4AQAhHRCBeVKjcRWU6",T= exports.t ="https://blog.berachain.com/",C= exports.u =process.env.NODE_ENV==="production"&&process.env.NEXT_PUBLIC_ENABLE_GOVERNANCE!=="true",f= exports.v =!1,v= exports.w =process.env.NEXT_PUBLIC_REWARD_VAULT_DURATION!=="true",K= exports.x ="https://res.cloudinary.com/duv0g402y/image/upload/v1738720154/brand/berachain-chain-logo.png.png",O= exports.y ="BERA",y= exports.z ="Bera",w= exports.A =18,k= exports.B ="https://x.com/berachain",R= exports.C ="https://t.me/BerachainPortal",M= exports.D ="https://discord.com/invite/berachain",V= exports.E ="https://github.com/berachain",D= exports.F ="0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b",X= exports.G ="0xcA11bde05977b3631167028862bE2a173976CA11",S= exports.H =Number(_nullishCoalesce(process.env.NEXT_PUBLIC_MULTICALL_CREATION_BLOCK, () => (0))),Y= exports.I =_nullishCoalesce(process.env.NEXT_PUBLIC_CHAIN_NAME, () => ((_chunkGQ2VIAGMcjs.a===80069?"Berachain Bepolia":"Berachain"))),H= exports.J =e.lists.tokenList,G= exports.K =e.lists.rewardVaultList,W= exports.L =_chunkGQ2VIAGMcjs.a===80094?"https://www.berascan.com":"https://bepolia.beratrail.io",j= exports.M ="Berascan",F= exports.N ="Berachain Foundation",z= exports.O =e.honey.url,Q= exports.P =e.honey.name,$= exports.Q =e.hub.url,q= exports.R =e.hub.name,J= exports.S =e.faucet.name,Z= exports.T =e.faucet.url,ee= exports.U =e.bridge.nft.url,oe= exports.V =e.bridge.url,te= exports.W =e.averageBlockTime,re= exports.X =_nullishCoalesce(process.env.NEXT_PUBLIC_PYTH_CONTRACT_ADDRESS, () => ("0x")),se= exports.Y ="0x0000000000000000000000000000000000000000",ne= exports.Z =e.tokens.wbera;exports.a = e; exports.b = l; exports.c = x; exports.d = b; exports.e = A; exports.f = h; exports.g = E; exports.h = s; exports.i = d; exports.j = m; exports.k = _; exports.l = g; exports.m = N; exports.n = u; exports.o = I; exports.p = U; exports.q = B; exports.r = P; exports.s = L; exports.t = T; exports.u = C; exports.v = f; exports.w = v; exports.x = K; exports.y = O; exports.z = y; exports.A = w; exports.B = k; exports.C = R; exports.D = M; exports.E = V; exports.F = D; exports.G = X; exports.H = S; exports.I = Y; exports.J = H; exports.K = G; exports.L = W; exports.M = j; exports.N = F; exports.O = z; exports.P = Q; exports.Q = $; exports.R = q; exports.S = J; exports.T = Z; exports.U = ee; exports.V = oe; exports.W = te; exports.X = re; exports.Y = se; exports.Z = ne;
|
|
@@ -0,0 +1 @@
|
|
|
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; }var _nextjs = require('@sentry/nextjs');async function i(){process.env.NEXT_RUNTIME==="edge"?await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.edge.config-PX7MX352.cjs"))):process.env.NEXT_RUNTIME==="nodejs"&&await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.server.config-SLGLNXCE.cjs")))}function c(e){let o={...e,env:{...e.env,VERCEL_TARGET_ENV:process.env.VERCEL_TARGET_ENV},webpack:(t,n)=>(n.isServer&&!n.dev&&process.env.UPLOAD_SOURCEMAPS==="true"&&(t.devtool="source-map"),_nullishCoalesce(_optionalChain([e, 'access', _ => _.webpack, 'optionalCall', _2 => _2(t,n)]), () => (t)))};return _nextjs.withSentryConfig.call(void 0, o,{org:process.env.SENTRY_ORG,project:process.env.SENTRY_PROJECT,telemetry:!1,reactComponentAnnotation:{enabled:process.env.UPLOAD_SOURCEMAPS==="true"},widenClientFileUpload:process.env.UPLOAD_SOURCEMAPS==="true",sourcemaps:{disable:process.env.UPLOAD_SOURCEMAPS!=="true"},debug:process.env.UPLOAD_SOURCEMAPS==="true",tunnelRoute:"/monitoring-tunnel",automaticVercelMonitors:!0})}exports.a = i; exports.b = c;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3IPYHDYKcjs = require('./chunk-3IPYHDYK.cjs');exports.ChainId = _chunk3IPYHDYKcjs.a;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
type Address = `0x${string}`;
|
|
2
|
+
/**
|
|
3
|
+
* A shared interface for all projects.
|
|
4
|
+
*/
|
|
5
|
+
type Project = {
|
|
6
|
+
/**
|
|
7
|
+
* The name of the project.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The URL of the project.
|
|
12
|
+
*/
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
interface BeraConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Some common token addresses available on the chain.
|
|
18
|
+
*/
|
|
19
|
+
tokens: {
|
|
20
|
+
wbera: Address;
|
|
21
|
+
bgt: Address;
|
|
22
|
+
wbtc: Address;
|
|
23
|
+
weth: Address;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The API endpoint for the chain. Used to fetch prices, bex, pol and validators' data.
|
|
27
|
+
*/
|
|
28
|
+
api: string;
|
|
29
|
+
/**
|
|
30
|
+
* The subgraph endpoint for the chain. Mainly used to fetch last 24h average block time.
|
|
31
|
+
*/
|
|
32
|
+
blocksSubgraph: string;
|
|
33
|
+
/**
|
|
34
|
+
* The address of the deposit contract for the chain.
|
|
35
|
+
*/
|
|
36
|
+
depositContract: Address;
|
|
37
|
+
/**
|
|
38
|
+
* The addresses of the metadata lists.
|
|
39
|
+
*
|
|
40
|
+
* @see https://github.com/berachain/metadata
|
|
41
|
+
*/
|
|
42
|
+
lists: {
|
|
43
|
+
tokenList: string;
|
|
44
|
+
validatorList: string;
|
|
45
|
+
rewardVaultList: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Contract addresses and endpoints for the Bex protocol, part of BeraHub.
|
|
49
|
+
*/
|
|
50
|
+
bex: {
|
|
51
|
+
vault: Address;
|
|
52
|
+
helper: Address;
|
|
53
|
+
queries: Address;
|
|
54
|
+
relayer: Address;
|
|
55
|
+
factories: {
|
|
56
|
+
composableStable: Address;
|
|
57
|
+
weighted: Address;
|
|
58
|
+
};
|
|
59
|
+
poolCreationHelper: Address;
|
|
60
|
+
subgraph: string;
|
|
61
|
+
chainName: string;
|
|
62
|
+
aggregatorsRouter: Address;
|
|
63
|
+
aggregatorsRouterExecutor: Address;
|
|
64
|
+
/**
|
|
65
|
+
* The aggregators proxy URL for the chain. Used to proxy requests to various aggregator APIs.
|
|
66
|
+
* Added here to keep ReadmeGenerator script clean while having this endpoint in the dependency
|
|
67
|
+
*/
|
|
68
|
+
aggregatorsProxyUrl: string;
|
|
69
|
+
};
|
|
70
|
+
pol: {
|
|
71
|
+
version: "1.0.4";
|
|
72
|
+
factory: Address;
|
|
73
|
+
staker: Address;
|
|
74
|
+
beraChef: Address;
|
|
75
|
+
subgraph: string;
|
|
76
|
+
bribeBoostApi: string;
|
|
77
|
+
/**
|
|
78
|
+
* If an API key is provided, no rate limit will be applied to requests.
|
|
79
|
+
*/
|
|
80
|
+
bribeBoostApiKey?: string;
|
|
81
|
+
bgtIncentiveDistributor: Address;
|
|
82
|
+
};
|
|
83
|
+
honey: Project & {
|
|
84
|
+
factory: Address;
|
|
85
|
+
reader: Address;
|
|
86
|
+
pythWrapper: Address;
|
|
87
|
+
pyth: Address;
|
|
88
|
+
token: Address;
|
|
89
|
+
subgraph: string;
|
|
90
|
+
isPythWrapperEnabled: boolean;
|
|
91
|
+
isCustodyEnabled: boolean;
|
|
92
|
+
};
|
|
93
|
+
governance: {
|
|
94
|
+
timelock: Address;
|
|
95
|
+
governor: Address;
|
|
96
|
+
subgraph: string;
|
|
97
|
+
};
|
|
98
|
+
boyco: Project & {
|
|
99
|
+
originUrl: string;
|
|
100
|
+
originKey: string;
|
|
101
|
+
originId: string;
|
|
102
|
+
airdropApi: string;
|
|
103
|
+
merkleId: `0x${string}`;
|
|
104
|
+
airdropAddress: Address;
|
|
105
|
+
};
|
|
106
|
+
bridge: Project & {
|
|
107
|
+
nft: Project & {
|
|
108
|
+
eth: {
|
|
109
|
+
subgraph: string;
|
|
110
|
+
};
|
|
111
|
+
berachain: {
|
|
112
|
+
subgraph: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
foundation: Project;
|
|
117
|
+
hub: Project;
|
|
118
|
+
bend: Project;
|
|
119
|
+
berps: Project;
|
|
120
|
+
faucet: Project;
|
|
121
|
+
averageBlockTime: number;
|
|
122
|
+
}
|
|
123
|
+
declare enum ChainId {
|
|
124
|
+
MAINNET = 80094,
|
|
125
|
+
BEPOLIA = 80069
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { type Address, type BeraConfig, ChainId };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
type Address = `0x${string}`;
|
|
2
|
+
/**
|
|
3
|
+
* A shared interface for all projects.
|
|
4
|
+
*/
|
|
5
|
+
type Project = {
|
|
6
|
+
/**
|
|
7
|
+
* The name of the project.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The URL of the project.
|
|
12
|
+
*/
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
interface BeraConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Some common token addresses available on the chain.
|
|
18
|
+
*/
|
|
19
|
+
tokens: {
|
|
20
|
+
wbera: Address;
|
|
21
|
+
bgt: Address;
|
|
22
|
+
wbtc: Address;
|
|
23
|
+
weth: Address;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The API endpoint for the chain. Used to fetch prices, bex, pol and validators' data.
|
|
27
|
+
*/
|
|
28
|
+
api: string;
|
|
29
|
+
/**
|
|
30
|
+
* The subgraph endpoint for the chain. Mainly used to fetch last 24h average block time.
|
|
31
|
+
*/
|
|
32
|
+
blocksSubgraph: string;
|
|
33
|
+
/**
|
|
34
|
+
* The address of the deposit contract for the chain.
|
|
35
|
+
*/
|
|
36
|
+
depositContract: Address;
|
|
37
|
+
/**
|
|
38
|
+
* The addresses of the metadata lists.
|
|
39
|
+
*
|
|
40
|
+
* @see https://github.com/berachain/metadata
|
|
41
|
+
*/
|
|
42
|
+
lists: {
|
|
43
|
+
tokenList: string;
|
|
44
|
+
validatorList: string;
|
|
45
|
+
rewardVaultList: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Contract addresses and endpoints for the Bex protocol, part of BeraHub.
|
|
49
|
+
*/
|
|
50
|
+
bex: {
|
|
51
|
+
vault: Address;
|
|
52
|
+
helper: Address;
|
|
53
|
+
queries: Address;
|
|
54
|
+
relayer: Address;
|
|
55
|
+
factories: {
|
|
56
|
+
composableStable: Address;
|
|
57
|
+
weighted: Address;
|
|
58
|
+
};
|
|
59
|
+
poolCreationHelper: Address;
|
|
60
|
+
subgraph: string;
|
|
61
|
+
chainName: string;
|
|
62
|
+
aggregatorsRouter: Address;
|
|
63
|
+
aggregatorsRouterExecutor: Address;
|
|
64
|
+
/**
|
|
65
|
+
* The aggregators proxy URL for the chain. Used to proxy requests to various aggregator APIs.
|
|
66
|
+
* Added here to keep ReadmeGenerator script clean while having this endpoint in the dependency
|
|
67
|
+
*/
|
|
68
|
+
aggregatorsProxyUrl: string;
|
|
69
|
+
};
|
|
70
|
+
pol: {
|
|
71
|
+
version: "1.0.4";
|
|
72
|
+
factory: Address;
|
|
73
|
+
staker: Address;
|
|
74
|
+
beraChef: Address;
|
|
75
|
+
subgraph: string;
|
|
76
|
+
bribeBoostApi: string;
|
|
77
|
+
/**
|
|
78
|
+
* If an API key is provided, no rate limit will be applied to requests.
|
|
79
|
+
*/
|
|
80
|
+
bribeBoostApiKey?: string;
|
|
81
|
+
bgtIncentiveDistributor: Address;
|
|
82
|
+
};
|
|
83
|
+
honey: Project & {
|
|
84
|
+
factory: Address;
|
|
85
|
+
reader: Address;
|
|
86
|
+
pythWrapper: Address;
|
|
87
|
+
pyth: Address;
|
|
88
|
+
token: Address;
|
|
89
|
+
subgraph: string;
|
|
90
|
+
isPythWrapperEnabled: boolean;
|
|
91
|
+
isCustodyEnabled: boolean;
|
|
92
|
+
};
|
|
93
|
+
governance: {
|
|
94
|
+
timelock: Address;
|
|
95
|
+
governor: Address;
|
|
96
|
+
subgraph: string;
|
|
97
|
+
};
|
|
98
|
+
boyco: Project & {
|
|
99
|
+
originUrl: string;
|
|
100
|
+
originKey: string;
|
|
101
|
+
originId: string;
|
|
102
|
+
airdropApi: string;
|
|
103
|
+
merkleId: `0x${string}`;
|
|
104
|
+
airdropAddress: Address;
|
|
105
|
+
};
|
|
106
|
+
bridge: Project & {
|
|
107
|
+
nft: Project & {
|
|
108
|
+
eth: {
|
|
109
|
+
subgraph: string;
|
|
110
|
+
};
|
|
111
|
+
berachain: {
|
|
112
|
+
subgraph: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
foundation: Project;
|
|
117
|
+
hub: Project;
|
|
118
|
+
bend: Project;
|
|
119
|
+
berps: Project;
|
|
120
|
+
faucet: Project;
|
|
121
|
+
averageBlockTime: number;
|
|
122
|
+
}
|
|
123
|
+
declare enum ChainId {
|
|
124
|
+
MAINNET = 80094,
|
|
125
|
+
BEPOLIA = 80069
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { type Address, type BeraConfig, ChainId };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-E3O7UH5M.js";export{o as ChainId};
|