@berachain/config 0.0.1-alpha.2 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/bepolia.cjs +1 -1
- package/dist/bepolia.d.cts +19 -14
- package/dist/bepolia.d.ts +19 -14
- package/dist/bepolia.js +1 -1
- package/dist/chunk-4VDLQK6F.cjs +1 -0
- package/dist/chunk-7P77HD6A.js +1 -0
- package/dist/chunk-AEEJBUVN.cjs +1 -0
- package/dist/chunk-C6MUJXOP.cjs +1 -0
- package/dist/chunk-DHNVZCPX.js +1 -0
- package/dist/chunk-DILGFNLD.js +1 -0
- package/dist/{chunk-XZQVP4AU.cjs → chunk-FFISDQSR.cjs} +1 -1
- package/dist/{chunk-G56N5MYU.js → chunk-KWQ2WHU4.js} +1 -1
- package/dist/{chunk-4ZIGP2PE.js → chunk-L2DF5H5Q.js} +1 -1
- package/dist/chunk-LI4NSLBM.js +1 -0
- package/dist/chunk-RJW7M2BA.cjs +1 -0
- package/dist/chunk-TB4XRJLK.js +1 -0
- package/dist/chunk-TQ3O2NSK.cjs +1 -0
- package/dist/chunk-V24JGYF7.cjs +1 -0
- package/dist/{chunk-RPCNZQO2.cjs → chunk-WCV4WTHG.cjs} +1 -1
- package/dist/chunk-WOT6VMZA.js +1 -0
- package/dist/chunk-YYLX4CBV.cjs +1 -0
- package/dist/chunk-ZBFETLTJ.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +1 -1
- package/dist/internal/edge-config/index.cjs +1 -0
- package/dist/internal/edge-config/index.d.cts +134 -0
- package/dist/internal/edge-config/index.d.ts +134 -0
- package/dist/internal/edge-config/index.js +1 -0
- package/dist/internal/flags/index.cjs +1 -0
- package/dist/internal/flags/index.d.cts +28 -0
- package/dist/internal/flags/index.d.ts +28 -0
- package/dist/internal/flags/index.js +1 -0
- package/dist/internal/header-sources.cjs +8 -8
- package/dist/internal/header-sources.d.cts +1 -0
- package/dist/internal/header-sources.d.ts +1 -0
- package/dist/internal/header-sources.js +8 -8
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +221 -171
- package/dist/internal/index.d.ts +221 -171
- package/dist/internal/index.js +1 -1
- package/dist/internal/maintenance.cjs +1 -1
- package/dist/internal/maintenance.js +1 -1
- package/dist/internal/nextjs/index.cjs +1 -1
- package/dist/internal/nextjs/index.js +1 -1
- package/dist/internal/sentry/esbuild.plugin.cjs +1 -1
- package/dist/internal/sentry/esbuild.plugin.js +1 -1
- package/dist/internal/sentry/index.cjs +1 -1
- package/dist/internal/sentry/index.js +1 -1
- package/dist/internal/sentry/sentry.client.config.cjs +1 -1
- package/dist/internal/sentry/sentry.client.config.js +1 -1
- package/dist/internal/tailwind/index.cjs +1 -0
- package/dist/internal/tailwind/index.d.cts +247 -0
- package/dist/internal/tailwind/index.d.ts +247 -0
- package/dist/internal/tailwind/index.js +1 -0
- package/dist/internal/tsup/index.cjs +1 -1
- package/dist/internal/tsup/index.js +1 -1
- package/dist/mainnet.cjs +1 -1
- package/dist/mainnet.d.cts +23 -20
- package/dist/mainnet.d.ts +23 -20
- package/dist/mainnet.js +1 -1
- package/dist/sentry.edge.config-HYRGDPSL.cjs +1 -0
- package/dist/sentry.edge.config-MSL7GELX.js +1 -0
- package/dist/sentry.server.config-JQJQDRDO.cjs +1 -0
- package/dist/sentry.server.config-MN4FIAPC.js +1 -0
- package/package.json +35 -5
- package/dist/chunk-5F62JDHS.js +0 -1
- package/dist/chunk-CJ6TCEOL.js +0 -1
- package/dist/chunk-GQ2VIAGM.cjs +0 -1
- package/dist/chunk-J5ZJIOVM.cjs +0 -1
- package/dist/chunk-LJRHN532.js +0 -1
- package/dist/chunk-PWMV5FZC.cjs +0 -1
- package/dist/chunk-QQWAFQ4G.js +0 -1
- package/dist/chunk-WW7TSLXR.cjs +0 -1
- package/dist/sentry.edge.config-HELM2ESO.js +0 -1
- package/dist/sentry.edge.config-PX7MX352.cjs +0 -1
- package/dist/sentry.server.config-SLGLNXCE.cjs +0 -1
- package/dist/sentry.server.config-Y6L22PFM.js +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ This package contains the configuration for Berachain projects, included address
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
> This package is still unstable and might include breaking changes in minor and patch
|
|
7
|
+
> This package is still unstable. It won't follow semver for now and might include breaking changes in minor and patch releases.
|
|
8
8
|
|
|
9
9
|
### Chain exports
|
|
10
10
|
|
package/dist/bepolia.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkC6MUJXOPcjs = require('./chunk-C6MUJXOP.cjs');require('./chunk-4VDLQK6F.cjs');exports.bepolia = _chunkC6MUJXOPcjs.a;
|
package/dist/bepolia.d.cts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import { Address } from './index.cjs';
|
|
2
|
+
|
|
1
3
|
declare const bepolia: {
|
|
2
4
|
readonly tokens: {
|
|
3
5
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
6
|
+
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
4
7
|
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
5
8
|
readonly wbtc: "0x";
|
|
6
9
|
readonly weth: "0x";
|
|
7
10
|
};
|
|
8
11
|
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
9
12
|
readonly pol: {
|
|
10
|
-
readonly version: "1.0.4";
|
|
11
13
|
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
12
14
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
13
15
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
14
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.
|
|
16
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.6.1/gn";
|
|
15
17
|
readonly bribeBoostApi: string;
|
|
16
18
|
readonly bribeBoostApiKey: string;
|
|
17
19
|
readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
|
|
@@ -64,17 +66,8 @@ declare const bepolia: {
|
|
|
64
66
|
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json";
|
|
65
67
|
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json";
|
|
66
68
|
};
|
|
67
|
-
readonly averageBlockTime:
|
|
68
|
-
readonly
|
|
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
|
-
};
|
|
69
|
+
readonly averageBlockTime: 2;
|
|
70
|
+
readonly beApiKey: string;
|
|
78
71
|
readonly bridge: {
|
|
79
72
|
readonly name: "BeraBridge";
|
|
80
73
|
readonly url: "https://bepolia.bridge.berachain.com";
|
|
@@ -91,7 +84,8 @@ declare const bepolia: {
|
|
|
91
84
|
};
|
|
92
85
|
readonly bend: {
|
|
93
86
|
readonly name: "Bend";
|
|
94
|
-
readonly url: "
|
|
87
|
+
readonly url: "https://bepolia.bend.berachain.com";
|
|
88
|
+
readonly supportedVaults: Address[];
|
|
95
89
|
};
|
|
96
90
|
readonly berps: {
|
|
97
91
|
readonly name: "Berps";
|
|
@@ -101,6 +95,17 @@ declare const bepolia: {
|
|
|
101
95
|
readonly name: "Faucet";
|
|
102
96
|
readonly url: "https://bepolia.faucet.berachain.com";
|
|
103
97
|
};
|
|
98
|
+
readonly explore: {
|
|
99
|
+
readonly name: "Explore";
|
|
100
|
+
readonly url: "https://explore.berachain.com";
|
|
101
|
+
};
|
|
102
|
+
readonly explorer: {
|
|
103
|
+
readonly name: "Berascan";
|
|
104
|
+
readonly url: "https://testnet.berascan.com";
|
|
105
|
+
};
|
|
106
|
+
readonly chain: {
|
|
107
|
+
readonly name: string;
|
|
108
|
+
};
|
|
104
109
|
};
|
|
105
110
|
|
|
106
111
|
export { bepolia };
|
package/dist/bepolia.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import { Address } from './index.js';
|
|
2
|
+
|
|
1
3
|
declare const bepolia: {
|
|
2
4
|
readonly tokens: {
|
|
3
5
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
6
|
+
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
4
7
|
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
5
8
|
readonly wbtc: "0x";
|
|
6
9
|
readonly weth: "0x";
|
|
7
10
|
};
|
|
8
11
|
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
9
12
|
readonly pol: {
|
|
10
|
-
readonly version: "1.0.4";
|
|
11
13
|
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
12
14
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
13
15
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
14
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.
|
|
16
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.6.1/gn";
|
|
15
17
|
readonly bribeBoostApi: string;
|
|
16
18
|
readonly bribeBoostApiKey: string;
|
|
17
19
|
readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
|
|
@@ -64,17 +66,8 @@ declare const bepolia: {
|
|
|
64
66
|
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json";
|
|
65
67
|
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json";
|
|
66
68
|
};
|
|
67
|
-
readonly averageBlockTime:
|
|
68
|
-
readonly
|
|
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
|
-
};
|
|
69
|
+
readonly averageBlockTime: 2;
|
|
70
|
+
readonly beApiKey: string;
|
|
78
71
|
readonly bridge: {
|
|
79
72
|
readonly name: "BeraBridge";
|
|
80
73
|
readonly url: "https://bepolia.bridge.berachain.com";
|
|
@@ -91,7 +84,8 @@ declare const bepolia: {
|
|
|
91
84
|
};
|
|
92
85
|
readonly bend: {
|
|
93
86
|
readonly name: "Bend";
|
|
94
|
-
readonly url: "
|
|
87
|
+
readonly url: "https://bepolia.bend.berachain.com";
|
|
88
|
+
readonly supportedVaults: Address[];
|
|
95
89
|
};
|
|
96
90
|
readonly berps: {
|
|
97
91
|
readonly name: "Berps";
|
|
@@ -101,6 +95,17 @@ declare const bepolia: {
|
|
|
101
95
|
readonly name: "Faucet";
|
|
102
96
|
readonly url: "https://bepolia.faucet.berachain.com";
|
|
103
97
|
};
|
|
98
|
+
readonly explore: {
|
|
99
|
+
readonly name: "Explore";
|
|
100
|
+
readonly url: "https://explore.berachain.com";
|
|
101
|
+
};
|
|
102
|
+
readonly explorer: {
|
|
103
|
+
readonly name: "Berascan";
|
|
104
|
+
readonly url: "https://testnet.berascan.com";
|
|
105
|
+
};
|
|
106
|
+
readonly chain: {
|
|
107
|
+
readonly name: string;
|
|
108
|
+
};
|
|
104
109
|
};
|
|
105
110
|
|
|
106
111
|
export { bepolia };
|
package/dist/bepolia.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-LI4NSLBM.js";import"./chunk-WOT6VMZA.js";export{a as bepolia};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var d=Object.defineProperty;var e=(c,a)=>{for(var b in a)d(c,b,{get:a[b],enumerable:!0})};exports.a = e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var r=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;exports.a = r;
|
|
@@ -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",swbera:"0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x",weth:"0x"},depositContract:"0x4242424242424242424242424242424242424242",pol:{beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.6.1/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(_nullishCoalesce(process.env.PRIVATE_80069_BEX_API_URL, () => (process.env.NEXT_PUBLIC_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:2,beApiKey:process.env.PRIVATE_80069_BEX_API_KEY,bridge:{name:"BeraBridge",url:"https://bepolia.bridge.berachain.com",nft:{name:"BeraBridge NFT",url:"#",eth:{subgraph:"#"},berachain:{subgraph:"#"}}},bend:{name:"Bend",url:"https://bepolia.bend.berachain.com",supportedVaults:[]},berps:{name:"Berps",url:"#"},faucet:{name:"Faucet",url:"https://bepolia.faucet.berachain.com"},explore:{name:"Explore",url:"https://explore.berachain.com"},explorer:{name:"Berascan",url:"https://testnet.berascan.com"},chain:{name:_nullishCoalesce(process.env.NEXT_PUBLIC_CHAIN_NAME, () => ("Berachain Bepolia"))}};exports.a = e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-7P77HD6A.js";function t(n,e){return typeof n=="boolean"?n:!(n.chain?.length&&(!n.chain.includes("mainnet")&&e===80094||!n.chain.includes("bepolia")&&e===80069))}function c(n,e){return typeof n=="boolean"?n:!(n.branch?.length&&(!n.branch.includes("production")&&e==="production"||!n.branch.includes("staging")&&e==="staging"||!n.branch.includes("preview")&&e==="preview"))}function s(n,{chain:e=r,environment:i=process.env.VERCEL_TARGET_ENV}={}){return n?typeof n=="boolean"?n:n.condition==="OR"?t(n,e)||c(n,i):t(n,e)&&c(n,i):!1}export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getAddress as a}from"viem";var t={tokens:{wbera:"0x6969696969696969696969696969696969696969",swbera:"0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",weth:"0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590"},depositContract:"0x4242424242424242424242424242424242424242",pol:{beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",subgraph:process.env.NEXT_PUBLIC_80094_POL_SUBGRAPH??"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/mainnet-v1.6.1/gn",bribeBoostApi:process.env.NEXT_PUBLIC_80094_INCENTIVES_API||"https://api-claim.berachain.com",bribeBoostApiKey:process.env.PRIVATE_80094_INCENTIVES_API_KEY??"",bgtIncentiveDistributor:"0x77DA09bC82652f9A14d1b170a001e759640298e6"},api:process.env.PRIVATE_80094_BEX_API_URL??"https://api.berachain.com",blocksSubgraph:process.env.NEXT_PUBLIC_80094_BLOCKS_SUBGRAPH??"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:"0x1cAF3c98cE58207D21f2090164cB56a4cEf8e487",aggregatorsRouterExecutor:"0x5699789588384DEc3662bd71BC5C6c7f7D615c66",aggregatorsProxyUrl:process.env.NEXT_PUBLIC_80094_AGGREGATORS_PROXY_URL??"https://gateway.mainnet.berachain.com/proxy"},honey:{name:"Honey",url:"https://honey.berachain.com",subgraph:process.env.NEXT_PUBLIC_80094_HONEY_SUBGRAPH??"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/mainnet-v1.1.1/gn",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythWrapper:"0x4b7cb1c197f8EE4d309866B16C2c12E3B4E7E606",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:2,beApiKey:process.env.PRIVATE_80094_BEX_API_KEY,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:"https://bend.berachain.com",supportedVaults:(process.env.NEXT_PUBLIC_80094_BEND_SUPPORTED_VAULTS??"0xdd69bF9bDe6687576f24aDFd5d7062e3B1cbe468,0x49113227c71f4E2279ad75e4d508a0f9BB6c6108").split(",").filter(Boolean).map(e=>a(e))},berps:{name:"Berps",url:"#"},faucet:{name:"Faucet",url:"#"},explore:{name:"Explore",url:"https://explore.berachain.com"},explorer:{name:"Berascan",url:"https://berascan.com"},chain:{name:process.env.NEXT_PUBLIC_CHAIN_NAME??"Berachain"}},c=t;export{t as a,c as b};
|
|
@@ -1 +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-
|
|
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-HYRGDPSL.cjs"))):process.env.NEXT_RUNTIME==="nodejs"&&await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.server.config-JQJQDRDO.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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-7P77HD6A.js";var o=e===80094?"mainnet-":"bepolia-";process.env.VERCEL_TARGET_ENV==="production"?o+="production":o+="preview";export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{withSentryConfig as r}from"@sentry/nextjs";async function i(){process.env.NEXT_RUNTIME==="edge"?await import("./sentry.edge.config-
|
|
1
|
+
import{withSentryConfig as r}from"@sentry/nextjs";async function i(){process.env.NEXT_RUNTIME==="edge"?await import("./sentry.edge.config-MSL7GELX.js"):process.env.NEXT_RUNTIME==="nodejs"&&await import("./sentry.server.config-MN4FIAPC.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
|
+
var e={tokens:{wbera:"0x6969696969696969696969696969696969696969",swbera:"0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x",weth:"0x"},depositContract:"0x4242424242424242424242424242424242424242",pol:{beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",subgraph:"https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.6.1/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??process.env.NEXT_PUBLIC_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:2,beApiKey:process.env.PRIVATE_80069_BEX_API_KEY,bridge:{name:"BeraBridge",url:"https://bepolia.bridge.berachain.com",nft:{name:"BeraBridge NFT",url:"#",eth:{subgraph:"#"},berachain:{subgraph:"#"}}},bend:{name:"Bend",url:"https://bepolia.bend.berachain.com",supportedVaults:[]},berps:{name:"Berps",url:"#"},faucet:{name:"Faucet",url:"https://bepolia.faucet.berachain.com"},explore:{name:"Explore",url:"https://explore.berachain.com"},explorer:{name:"Berascan",url:"https://testnet.berascan.com"},chain:{name:process.env.NEXT_PUBLIC_CHAIN_NAME??"Berachain Bepolia"}};export{e 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 _chunkAEEJBUVNcjs = require('./chunk-AEEJBUVN.cjs');if(_chunkAEEJBUVNcjs.a!==80094&&_chunkAEEJBUVNcjs.a!==80069)throw new Error(`Invalid chainId: ${_chunkAEEJBUVNcjs.a}`);var s=_chunkAEEJBUVNcjs.a;function n(_=s){if(_===80069&&process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL||_===80094&&process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL){let r=_===80069?process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL:process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL;return process.env.VITEST_WORKER_ID?r=`${r}/${_nullishCoalesce(process.env.VITEST_WORKER_ID, () => (1))}`:console.log("Using anvil RPC for bepolia",r),{publicJsonRpcUrl:r,jsonRpcUrl:r,alchemyJsonRpcUrl:void 0,privateRcpUrl:void 0,isAnvil:!0}}return{publicJsonRpcUrl:_===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:_===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:_===80069?process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL:process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,privateRcpUrl:_===80069?process.env.PRIVATE_80069_JSON_RPC_URL:process.env.PRIVATE_80094_JSON_RPC_URL,isAnvil:!1}}var{publicJsonRpcUrl:R,jsonRpcUrl:U,alchemyJsonRpcUrl:l,privateRcpUrl:i}=n(_chunkAEEJBUVNcjs.a);exports.a = n; exports.b = R; exports.c = U; exports.d = l; exports.e = i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-7P77HD6A.js";if(e!==80094&&e!==80069)throw new Error(`Invalid chainId: ${e}`);var s=e;function n(_=s){if(_===80069&&process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL||_===80094&&process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL){let r=_===80069?process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL:process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL;return process.env.VITEST_WORKER_ID?r=`${r}/${process.env.VITEST_WORKER_ID??1}`:console.log("Using anvil RPC for bepolia",r),{publicJsonRpcUrl:r,jsonRpcUrl:r,alchemyJsonRpcUrl:void 0,privateRcpUrl:void 0,isAnvil:!0}}return{publicJsonRpcUrl:_===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:_===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:_===80069?process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL:process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,privateRcpUrl:_===80069?process.env.PRIVATE_80069_JSON_RPC_URL:process.env.PRIVATE_80094_JSON_RPC_URL,isAnvil:!1}}var{publicJsonRpcUrl:R,jsonRpcUrl:U,alchemyJsonRpcUrl:l,privateRcpUrl:i}=n(e);export{n as a,R as b,U as c,l as d,i as e};
|
|
@@ -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 _viem = require('viem');var t={tokens:{wbera:"0x6969696969696969696969696969696969696969",swbera:"0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",weth:"0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590"},depositContract:"0x4242424242424242424242424242424242424242",pol:{beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",subgraph:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_POL_SUBGRAPH, () => ("https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/mainnet-v1.6.1/gn")),bribeBoostApi:process.env.NEXT_PUBLIC_80094_INCENTIVES_API||"https://api-claim.berachain.com",bribeBoostApiKey:_nullishCoalesce(process.env.PRIVATE_80094_INCENTIVES_API_KEY, () => ("")),bgtIncentiveDistributor:"0x77DA09bC82652f9A14d1b170a001e759640298e6"},api:_nullishCoalesce(process.env.PRIVATE_80094_BEX_API_URL, () => ("https://api.berachain.com")),blocksSubgraph:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_BLOCKS_SUBGRAPH, () => ("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:"0x1cAF3c98cE58207D21f2090164cB56a4cEf8e487",aggregatorsRouterExecutor:"0x5699789588384DEc3662bd71BC5C6c7f7D615c66",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:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_HONEY_SUBGRAPH, () => ("https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/mainnet-v1.1.1/gn")),factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythWrapper:"0x4b7cb1c197f8EE4d309866B16C2c12E3B4E7E606",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:2,beApiKey:process.env.PRIVATE_80094_BEX_API_KEY,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:"https://bend.berachain.com",supportedVaults:(_nullishCoalesce(process.env.NEXT_PUBLIC_80094_BEND_SUPPORTED_VAULTS, () => ("0xdd69bF9bDe6687576f24aDFd5d7062e3B1cbe468,0x49113227c71f4E2279ad75e4d508a0f9BB6c6108"))).split(",").filter(Boolean).map(e=>_viem.getAddress.call(void 0, e))},berps:{name:"Berps",url:"#"},faucet:{name:"Faucet",url:"#"},explore:{name:"Explore",url:"https://explore.berachain.com"},explorer:{name:"Berascan",url:"https://berascan.com"},chain:{name:_nullishCoalesce(process.env.NEXT_PUBLIC_CHAIN_NAME, () => ("Berachain"))}},c= exports.b =t;exports.a = t; exports.b = c;
|
|
@@ -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 _chunkC6MUJXOPcjs = require('./chunk-C6MUJXOP.cjs');var _chunkTQ3O2NSKcjs = require('./chunk-TQ3O2NSK.cjs');var _chunkAEEJBUVNcjs = require('./chunk-AEEJBUVN.cjs');var o=_chunkAEEJBUVNcjs.a===80094?_chunkTQ3O2NSKcjs.a:_chunkC6MUJXOPcjs.a,t={apiKeys:{public:{dynamicWallet:_nullishCoalesce(process.env.NEXT_PUBLIC_DYNAMIC_API_KEY, () => ("b8a5104d-47e0-4965-b56a-0bcc31cf56f4")),postHogProjectKey:"phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",cookie3SiteId:process.env.NEXT_PUBLIC_COOKIE3_SITE_ID},private:{oogabooga:process.env.OOGABOOGA_API_KEY,haiku:process.env.HAIKU_API_KEY,kyberswap:process.env.KYBERSWAP_CLIENT_ID,enso:_nullishCoalesce(_nullishCoalesce(process.env.ENSO_API_KEY, () => (process.env.NEXT_PUBLIC_ENSO_API_KEY)), () => ("3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f")),etherscan:process.env.ETHERSCAN_API_KEY}},addresses:{balancerDelegatedOwnership:"0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b",multicall:"0xcA11bde05977b3631167028862bE2a173976CA11"},urls:{postHogApiHost:"https://eu.i.posthog.com",homepage:_nullishCoalesce(process.env.NEXT_PUBLIC_HOMEPAGE_URL, () => ("https://www.berachain.com")),ecosystem:"https://ecosystem.berachain.com/",docs:"https://docs.berachain.com",careers:"https://careers.berachain.com/",mediaKit:"https://drive.google.com/drive/folders/1r658Px_VhjiUEC4AQAhHRCBeVKjcRWU6",blog:"https://blog.berachain.com/",twitter:"https://x.com/berachain",telegram:"https://t.me/BerachainPortal",discord:"https://discord.com/invite/berachain",github:"https://github.com/berachain"},flags:{developmentAnalyticsEnabled:process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS!=="0"&&!!process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS,disallowIndexing:_chunkAEEJBUVNcjs.a!==80094&&_chunkAEEJBUVNcjs.a!==80069,hideCurator:!1},bend:{...o.bend,liquidationWarningLtvMargin:.05,maxBorrowLtvMargin:1e-4,publicAllocatorSupplyTargetUtilizationWad:BigInt(9e17)}},p= exports.a ={...o,...t};exports.a = p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAEEJBUVNcjs = require('./chunk-AEEJBUVN.cjs');var o=_chunkAEEJBUVNcjs.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
|
+
var d=Object.defineProperty;var e=(c,a)=>{for(var b in a)d(c,b,{get:a[b],enumerable:!0})};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkAEEJBUVNcjs = require('./chunk-AEEJBUVN.cjs');function t(n,e){return typeof n=="boolean"?n:!(_optionalChain([n, 'access', _ => _.chain, 'optionalAccess', _2 => _2.length])&&(!n.chain.includes("mainnet")&&e===80094||!n.chain.includes("bepolia")&&e===80069))}function c(n,e){return typeof n=="boolean"?n:!(_optionalChain([n, 'access', _3 => _3.branch, 'optionalAccess', _4 => _4.length])&&(!n.branch.includes("production")&&e==="production"||!n.branch.includes("staging")&&e==="staging"||!n.branch.includes("preview")&&e==="preview"))}function s(n,{chain:e=_chunkAEEJBUVNcjs.a,environment:i=process.env.VERCEL_TARGET_ENV}={}){return n?typeof n=="boolean"?n:n.condition==="OR"?t(n,e)||c(n,i):t(n,e)&&c(n,i):!1}exports.a = s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-LI4NSLBM.js";import{a as s}from"./chunk-DILGFNLD.js";import{a}from"./chunk-7P77HD6A.js";var o=a===80094?s:e,t={apiKeys:{public:{dynamicWallet:process.env.NEXT_PUBLIC_DYNAMIC_API_KEY??"b8a5104d-47e0-4965-b56a-0bcc31cf56f4",postHogProjectKey:"phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",cookie3SiteId:process.env.NEXT_PUBLIC_COOKIE3_SITE_ID},private:{oogabooga:process.env.OOGABOOGA_API_KEY,haiku:process.env.HAIKU_API_KEY,kyberswap:process.env.KYBERSWAP_CLIENT_ID,enso:process.env.ENSO_API_KEY??process.env.NEXT_PUBLIC_ENSO_API_KEY??"3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f",etherscan:process.env.ETHERSCAN_API_KEY}},addresses:{balancerDelegatedOwnership:"0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b",multicall:"0xcA11bde05977b3631167028862bE2a173976CA11"},urls:{postHogApiHost:"https://eu.i.posthog.com",homepage:process.env.NEXT_PUBLIC_HOMEPAGE_URL??"https://www.berachain.com",ecosystem:"https://ecosystem.berachain.com/",docs:"https://docs.berachain.com",careers:"https://careers.berachain.com/",mediaKit:"https://drive.google.com/drive/folders/1r658Px_VhjiUEC4AQAhHRCBeVKjcRWU6",blog:"https://blog.berachain.com/",twitter:"https://x.com/berachain",telegram:"https://t.me/BerachainPortal",discord:"https://discord.com/invite/berachain",github:"https://github.com/berachain"},flags:{developmentAnalyticsEnabled:process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS!=="0"&&!!process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS,disallowIndexing:a!==80094&&a!==80069,hideCurator:!1},bend:{...o.bend,liquidationWarningLtvMargin:.05,maxBorrowLtvMargin:1e-4,publicAllocatorSupplyTargetUtilizationWad:BigInt(9e17)}},p={...o,...t};export{p as a};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3IPYHDYKcjs = require('./chunk-3IPYHDYK.cjs');exports.ChainId = _chunk3IPYHDYKcjs.a;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3IPYHDYKcjs = require('./chunk-3IPYHDYK.cjs');require('./chunk-4VDLQK6F.cjs');exports.ChainId = _chunk3IPYHDYKcjs.a;
|
package/dist/index.d.cts
CHANGED
|
@@ -18,6 +18,7 @@ interface BeraConfig {
|
|
|
18
18
|
*/
|
|
19
19
|
tokens: {
|
|
20
20
|
wbera: Address;
|
|
21
|
+
swbera: Address;
|
|
21
22
|
bgt: Address;
|
|
22
23
|
wbtc: Address;
|
|
23
24
|
weth: Address;
|
|
@@ -68,7 +69,6 @@ interface BeraConfig {
|
|
|
68
69
|
aggregatorsProxyUrl: string;
|
|
69
70
|
};
|
|
70
71
|
pol: {
|
|
71
|
-
version: "1.0.4";
|
|
72
72
|
factory: Address;
|
|
73
73
|
staker: Address;
|
|
74
74
|
beraChef: Address;
|
|
@@ -95,14 +95,6 @@ interface BeraConfig {
|
|
|
95
95
|
governor: Address;
|
|
96
96
|
subgraph: string;
|
|
97
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
98
|
bridge: Project & {
|
|
107
99
|
nft: Project & {
|
|
108
100
|
eth: {
|
|
@@ -115,10 +107,21 @@ interface BeraConfig {
|
|
|
115
107
|
};
|
|
116
108
|
foundation: Project;
|
|
117
109
|
hub: Project;
|
|
118
|
-
bend: Project
|
|
110
|
+
bend: Project & {
|
|
111
|
+
supportedVaults: Array<Address>;
|
|
112
|
+
};
|
|
119
113
|
berps: Project;
|
|
120
114
|
faucet: Project;
|
|
115
|
+
explore: Project;
|
|
116
|
+
explorer: Project;
|
|
121
117
|
averageBlockTime: number;
|
|
118
|
+
beApiKey: string;
|
|
119
|
+
chain: {
|
|
120
|
+
/**
|
|
121
|
+
* This will be used by wallet providers to display the chain name
|
|
122
|
+
*/
|
|
123
|
+
name: string;
|
|
124
|
+
};
|
|
122
125
|
}
|
|
123
126
|
declare enum ChainId {
|
|
124
127
|
MAINNET = 80094,
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ interface BeraConfig {
|
|
|
18
18
|
*/
|
|
19
19
|
tokens: {
|
|
20
20
|
wbera: Address;
|
|
21
|
+
swbera: Address;
|
|
21
22
|
bgt: Address;
|
|
22
23
|
wbtc: Address;
|
|
23
24
|
weth: Address;
|
|
@@ -68,7 +69,6 @@ interface BeraConfig {
|
|
|
68
69
|
aggregatorsProxyUrl: string;
|
|
69
70
|
};
|
|
70
71
|
pol: {
|
|
71
|
-
version: "1.0.4";
|
|
72
72
|
factory: Address;
|
|
73
73
|
staker: Address;
|
|
74
74
|
beraChef: Address;
|
|
@@ -95,14 +95,6 @@ interface BeraConfig {
|
|
|
95
95
|
governor: Address;
|
|
96
96
|
subgraph: string;
|
|
97
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
98
|
bridge: Project & {
|
|
107
99
|
nft: Project & {
|
|
108
100
|
eth: {
|
|
@@ -115,10 +107,21 @@ interface BeraConfig {
|
|
|
115
107
|
};
|
|
116
108
|
foundation: Project;
|
|
117
109
|
hub: Project;
|
|
118
|
-
bend: Project
|
|
110
|
+
bend: Project & {
|
|
111
|
+
supportedVaults: Array<Address>;
|
|
112
|
+
};
|
|
119
113
|
berps: Project;
|
|
120
114
|
faucet: Project;
|
|
115
|
+
explore: Project;
|
|
116
|
+
explorer: Project;
|
|
121
117
|
averageBlockTime: number;
|
|
118
|
+
beApiKey: string;
|
|
119
|
+
chain: {
|
|
120
|
+
/**
|
|
121
|
+
* This will be used by wallet providers to display the chain name
|
|
122
|
+
*/
|
|
123
|
+
name: string;
|
|
124
|
+
};
|
|
122
125
|
}
|
|
123
126
|
declare enum ChainId {
|
|
124
127
|
MAINNET = 80094,
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-E3O7UH5M.js";export{o as ChainId};
|
|
1
|
+
import{a as o}from"./chunk-E3O7UH5M.js";import"./chunk-WOT6VMZA.js";export{o as ChainId};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkYYLX4CBVcjs = require('../../chunk-YYLX4CBV.cjs');require('../../chunk-AEEJBUVN.cjs');require('../../chunk-3IPYHDYK.cjs');require('../../chunk-4VDLQK6F.cjs');var _edgeconfig = require('@vercel/edge-config');async function m(e,{onError:r}={}){try{return await _edgeconfig.get.call(void 0, e)}catch(o){_optionalChain([r, 'optionalCall', _ => _(o)]);return}}async function g({onError:e}={}){try{return await _edgeconfig.getAll.call(void 0, )}catch(r){_optionalChain([e, 'optionalCall', _2 => _2(r)]);return}}exports.isFlagEnabled = _chunkYYLX4CBVcjs.a; exports.safeGetAll = g; exports.safeGetConfig = m;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { ChainId } from '../../index.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
type DynamicEnabled = boolean | {
|
|
9
|
+
chain?: ("mainnet" | "bepolia")[];
|
|
10
|
+
/**
|
|
11
|
+
* If set, the flag will only be enabled on the specified branch. Otherwise, it will be enabled on all branches.
|
|
12
|
+
*
|
|
13
|
+
* @minItems 1
|
|
14
|
+
*/
|
|
15
|
+
branch?: ["production" | "staging" | "preview", ...("production" | "staging" | "preview")[]];
|
|
16
|
+
condition?: "AND" | "OR";
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
type Address = string;
|
|
20
|
+
/**
|
|
21
|
+
* Edge config schema. Please update this in the @berachain/config package first and keep it stored there.
|
|
22
|
+
*/
|
|
23
|
+
interface EdgeConfigSchema {
|
|
24
|
+
flags?: {
|
|
25
|
+
[k: string]: DynamicEnabled;
|
|
26
|
+
};
|
|
27
|
+
pol?: {
|
|
28
|
+
/**
|
|
29
|
+
* @minItems 2
|
|
30
|
+
*/
|
|
31
|
+
featured?: [VaultItem, VaultItem, ...VaultItem[]];
|
|
32
|
+
/**
|
|
33
|
+
* Vault addresses in this list won't show the stake section. This is because stake/unstake is done thought a contract that holds the whole supply.
|
|
34
|
+
*/
|
|
35
|
+
singleHolderVaults?: {
|
|
36
|
+
address: Address;
|
|
37
|
+
_name?: string;
|
|
38
|
+
}[];
|
|
39
|
+
/**
|
|
40
|
+
* The APR for the staked wBera vault. This is used to display the APR in the APR banner.
|
|
41
|
+
*/
|
|
42
|
+
swberaApr?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The version of the staked wBera vault.
|
|
45
|
+
*/
|
|
46
|
+
swberaMainnetVersion?: "V1" | "V2";
|
|
47
|
+
/**
|
|
48
|
+
* the window is DAY or WEEK, its the window for calculating the APR
|
|
49
|
+
*/
|
|
50
|
+
swberaAprWindow?: "DAY" | "WEEK";
|
|
51
|
+
};
|
|
52
|
+
dex?: {
|
|
53
|
+
/**
|
|
54
|
+
* An object of aggregators and their enabled status. The key is the aggregator name in lowercase and without spaces and must be in the Aggregators enum.
|
|
55
|
+
*/
|
|
56
|
+
aggregators?: {
|
|
57
|
+
[k: string]: DynamicEnabled;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
banners?: {
|
|
61
|
+
[k: string]: BannerItem;
|
|
62
|
+
};
|
|
63
|
+
maintenance?: {
|
|
64
|
+
/**
|
|
65
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
66
|
+
* via the `patternProperty` "^(hub|honey|bridge|boyco)$".
|
|
67
|
+
*/
|
|
68
|
+
[k: string]: {
|
|
69
|
+
enabled?: DynamicEnabled;
|
|
70
|
+
[k: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
interface VaultItem {
|
|
75
|
+
address: Address;
|
|
76
|
+
enabled: DynamicEnabled;
|
|
77
|
+
_name?: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
81
|
+
* via the `patternProperty` "^(hub|honey|bridge|boyco)$".
|
|
82
|
+
*/
|
|
83
|
+
interface BannerItem {
|
|
84
|
+
text: string;
|
|
85
|
+
className: string;
|
|
86
|
+
enabled: DynamicEnabled;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Checks if a dynamic feature flag is enabled based on the provided chain and environment.
|
|
91
|
+
*
|
|
92
|
+
* @param flag - The dynamic flag value, which can be a boolean or an object specifying conditions.
|
|
93
|
+
* @param options - Optional parameters to override the default chain and environment.
|
|
94
|
+
* @param options.chain - The chain ID to check against (defaults to current chainId).
|
|
95
|
+
* @param options.environment - The environment to check against (defaults to process.env.VERCEL_TARGET_ENV).
|
|
96
|
+
* @returns True if the flag is enabled for the given chain and environment, false otherwise.
|
|
97
|
+
*/
|
|
98
|
+
declare function isFlagEnabled(flag: DynamicEnabled, { chain, environment, }?: {
|
|
99
|
+
chain?: ChainId;
|
|
100
|
+
environment?: string;
|
|
101
|
+
}): boolean;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Safely retrieves a value from the Vercel Edge Config by key.
|
|
105
|
+
*
|
|
106
|
+
* @template T - The key of the EdgeConfigSchema to retrieve.
|
|
107
|
+
* @param flagName - The name of the config flag to retrieve.
|
|
108
|
+
* @param options - Optional parameters.
|
|
109
|
+
* @param options.chain - The chain ID to check against (not currently used).
|
|
110
|
+
* @param options.environment - The environment to check against (not currently used).
|
|
111
|
+
* @param options.onError - Optional error handler callback.
|
|
112
|
+
* @returns A promise that resolves to the value of the config flag, or undefined if retrieval fails.
|
|
113
|
+
*/
|
|
114
|
+
declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, { onError, }?: {
|
|
115
|
+
chain?: ChainId;
|
|
116
|
+
environment?: string;
|
|
117
|
+
onError?: (error: unknown) => void;
|
|
118
|
+
}): Promise<EdgeConfigSchema[T] | undefined>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Safely retrieves all values from the Vercel Edge Config.
|
|
122
|
+
*
|
|
123
|
+
* @template T - The type of the config schema to retrieve (defaults to EdgeConfigSchema).
|
|
124
|
+
* @param options - Optional parameters.
|
|
125
|
+
* @param options.chain - The chain ID to check against (not currently used).
|
|
126
|
+
* @param options.environment - The environment to check against (not currently used).
|
|
127
|
+
* @param options.onError - Optional error handler callback.
|
|
128
|
+
* @returns A promise that resolves to the config object, or undefined if retrieval fails.
|
|
129
|
+
*/
|
|
130
|
+
declare function safeGetAll<T = EdgeConfigSchema>({ onError, }?: {
|
|
131
|
+
onError?: (error: unknown) => void;
|
|
132
|
+
}): Promise<T | undefined>;
|
|
133
|
+
|
|
134
|
+
export { type Address, type BannerItem, type DynamicEnabled, type EdgeConfigSchema, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
|