@berachain/config 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bepolia.cjs +1 -7
- package/dist/bepolia.mjs +1 -7
- package/dist/chunk-2GCBWNKH.mjs +1 -0
- package/dist/chunk-2OLL4MUY.cjs +1 -0
- package/dist/chunk-2RLHVELA.mjs +2 -0
- package/dist/chunk-5YLBFOPA.mjs +1 -0
- package/dist/chunk-6CZTBBJT.cjs +2 -0
- package/dist/chunk-DUO7UEQD.cjs +1 -0
- package/dist/chunk-HJ25KNL4.cjs +1 -0
- package/dist/chunk-HLFO7V5I.cjs +1 -0
- package/dist/chunk-ITASDGG4.cjs +1 -0
- package/dist/chunk-MS6UGFXI.mjs +1 -0
- package/dist/chunk-MW34QRNX.cjs +1 -0
- package/dist/chunk-N45AQAIZ.mjs +1 -0
- package/dist/chunk-O243TIHY.mjs +1 -0
- package/dist/chunk-QHBQ2EN5.mjs +1 -0
- package/dist/chunk-QYM6VRYU.mjs +1 -0
- package/dist/chunk-WMZLZQ6E.mjs +1 -0
- package/dist/chunk-X5MTSC5T.cjs +1 -0
- package/dist/chunk-YLWSSHG6.cjs +1 -0
- package/dist/index.cjs +1 -10
- package/dist/index.mjs +1 -10
- package/dist/internal/header-sources.cjs +13 -409
- package/dist/internal/header-sources.mjs +13 -409
- package/dist/internal/index.cjs +1 -37
- package/dist/internal/index.mjs +1 -37
- package/dist/internal/maintenance.cjs +1 -24
- package/dist/internal/maintenance.mjs +1 -24
- package/dist/internal/nextjs/index.cjs +1 -83
- package/dist/internal/nextjs/index.mjs +1 -83
- package/dist/internal/nextjs/utils/index.cjs +1 -40
- package/dist/internal/nextjs/utils/index.mjs +1 -40
- package/dist/internal/sentry/index.cjs +1 -10
- package/dist/internal/sentry/index.mjs +1 -10
- package/dist/internal/sentry/sentry.client.config.cjs +1 -65
- package/dist/internal/sentry/sentry.client.config.mjs +1 -65
- package/dist/internal/tailwind/index.cjs +1 -237
- package/dist/internal/tailwind/index.mjs +1 -237
- package/dist/internal/wagmi/index.cjs +1 -57
- package/dist/internal/wagmi/index.mjs +1 -57
- package/dist/mainnet.cjs +1 -8
- package/dist/mainnet.mjs +1 -8
- package/dist/sentry.edge.config-AU3IBVBN.cjs +1 -0
- package/dist/sentry.edge.config-PXSVFOH6.mjs +1 -0
- package/dist/sentry.server.config-IOCQ5KDF.cjs +1 -0
- package/dist/sentry.server.config-NEPRXZ2E.mjs +1 -0
- package/package.json +1 -1
- package/dist/chunk-2PVGTKBC.cjs +0 -144
- package/dist/chunk-4MO7T43D.mjs +0 -144
- package/dist/chunk-AU3LYJAB.cjs +0 -75
- package/dist/chunk-B2BTOQVP.cjs +0 -25
- package/dist/chunk-EYYJ2UZT.cjs +0 -10
- package/dist/chunk-F5UIDRP6.mjs +0 -77
- package/dist/chunk-KJXYSGNH.mjs +0 -10
- package/dist/chunk-KQFPH756.cjs +0 -135
- package/dist/chunk-LALEUPWL.mjs +0 -8
- package/dist/chunk-MNIORAK3.cjs +0 -148
- package/dist/chunk-NF5WIUL6.cjs +0 -77
- package/dist/chunk-OWAB24JG.mjs +0 -25
- package/dist/chunk-PPXWH3KC.mjs +0 -135
- package/dist/chunk-UKXTPLZ5.mjs +0 -148
- package/dist/chunk-VWRKCGMU.mjs +0 -75
- package/dist/chunk-XA5DMTFW.mjs +0 -75
- package/dist/chunk-YT7WZDGI.cjs +0 -8
- package/dist/chunk-ZTYHPIUW.cjs +0 -75
- package/dist/sentry.edge.config-3Y5ABKSB.cjs +0 -22
- package/dist/sentry.edge.config-SIWSKDGR.mjs +0 -22
- package/dist/sentry.server.config-HY6I2WQ5.mjs +0 -22
- package/dist/sentry.server.config-ZXGUVYT6.cjs +0 -22
package/dist/bepolia.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkMNIORAK3cjs = require('./chunk-MNIORAK3.cjs');
|
|
4
|
-
require('./chunk-EYYJ2UZT.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.bepolia = _chunkMNIORAK3cjs.bepolia;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMW34QRNXcjs = require('./chunk-MW34QRNX.cjs');require('./chunk-2OLL4MUY.cjs');exports.bepolia = _chunkMW34QRNXcjs.a;
|
package/dist/bepolia.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./chunk-2RLHVELA.mjs";function a(r){return[...new Set(r.split(",").filter(Boolean).map(t=>t.toLowerCase()))]}var s={chainId:80094,tokens:{wbera:"0x6969696969696969696969696969696969696969",swbera:"0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",weth:"0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590"},depositContract:"0x4242424242424242424242424242424242424242",pol:{rewardVaultHelper:"0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2",beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",rewardAllocationFactory:"0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",bribeBoostApi:process.env.NEXT_PUBLIC_80094_INCENTIVES_API||"https://api-claim.berachain.com",bgtIncentiveDistributor:"0x77DA09bC82652f9A14d1b170a001e759640298e6",lstStakerVaultFactory:"0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500"},api:{name:"Berachain API",uri:process.env.PRIVATE_80094_BEX_API_URL??process.env.NEXT_PUBLIC_80094_BEX_API_URL??"https://api.berachain.com",headers:process.env.PRIVATE_80094_BEX_API_KEY?{"x-api-key":process.env.PRIVATE_80094_BEX_API_KEY}:void 0},beep:{uri:process.env.NEXT_PUBLIC_80094_BEEP_API_URL||"https://beep.berachain.com",name:"Berachain Beep"},bex:{chainName:"BERACHAIN",vault:"0x4Be03f781C497A489E3cB0287833452cA9B9E80B",helper:"0x5083737EC75a728c265BE578C9d0d5333a2c5951",queries:"0x3C612e132624f4Bd500eE1495F54565F0bcc9b59",relayer:"0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7",factories:{composableStable:"0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1",weighted:"0xa966fA8F2d5B087FFFA499C0C1240589371Af409"},balancerDelegatedOwnership:"0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b",poolCreationHelper:"0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2",aggregatorsRouter:"0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58",aggregatorsRouterExecutor:"0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8",haikuRouter:"0x24aC999FF132B32c5b3956973b6213B0d07eB2C7",haikuAgentAddress:"0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71",aggregatorsProxyUrl:process.env.NEXT_PUBLIC_80094_AGGREGATORS_PROXY_URL??"https://gateway.mainnet.berachain.com/proxy",recoverFundsApi:process.env.NEXT_PUBLIC_80094_RECOVER_FUNDS_API??"https://be4i5d40pr3f00n4c441n.mainnet.berachain.com",recoverFundsContract:process.env.NEXT_PUBLIC_80094_RECOVER_FUNDS_CONTRACT??"0xB5787B8f7b07a00229b617c4B7a616185857C147"},honey:{name:"BUSD",url:"https://busd.berachain.com",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythOracle:"0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",pythWrapper:"0xF5686e448BE103beA465105bEb9d284a34ae7e95",reader:"0x285e147060CDc5ba902786d3A471224ee6cE0F91",token:"0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"},hub:{name:"BeraHub",url:"https://hub.berachain.com"},governance:{governor:"0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",timelock:"0xb5f2000b5744f207c931526cAE2134cAa8b6862a"},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"},external:{pyth:"0x2880aB155794e7179c9eE2e38200202908C17B43"},averageBlockTime:2,bridge:{name:"BeraBridge",url:"https://bridge.berachain.com",nft:{name:"BeraBridge NFT",url:"https://nftbridge.berachain.com",eth:{subgraph:`${e}nft-bridge-subgraph/eth-v1.0.0-beta1/gn`},berachain:{subgraph:`${e}nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn`}}},bend:{name:"Bend",url:"https://bend.berachain.com",morpho:"0x24147243f9c08d835C218Cda1e135f8dFD0517D0",adaptiveCurveIrm:"0xcf247Df3A2322Dea0D408f011c194906E77a6f62",metaMorphoFactory:"0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616",publicAllocator:"0xB62F34Ab315eaDeAc698e8EaEB6Fc2650951BFe7",bundler3:"0xF920140A65D0f412f2AB3e76C4fEAB5Eef0657ae",generalAdapter1:"0xd2B9667F5214115E27937C410cAeE83E3a901Df7",supportedVaults:a(process.env.NEXT_PUBLIC_80094_BEND_SUPPORTED_VAULTS??"0x30BbA9CD9Eb8c95824aa42Faa1Bb397b07545bc1,0xB5f473c4b7F402d8f7bED42b6D516f5ff3306B01"),curatorVaults:a(process.env.NEXT_PUBLIC_80094_BEND_CURATOR_VAULTS??"0x30BbA9CD9Eb8c95824aa42Faa1Bb397b07545bc1,0xB5f473c4b7F402d8f7bED42b6D516f5ff3306B01")},enso:{walletV2Factory:"0xc914a663837eb21c5a650716e015659686597e55",walletFlashloanAdapter:"0x5dE09823D9143886896507107590d9859F3E390b"},explore:{name:"Explore",url:"https://explore.berachain.com"},explorer:{name:"Berascan",url:"https://berascan.com"},chain:{name:process.env.NEXT_PUBLIC_CHAIN_NAME??"Berachain"},faucet:null};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var r=(e=>(e[e.MAINNET=80094]="MAINNET",e[e.BEPOLIA=80069]="BEPOLIA",e))(r||{});exports.a = r;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-MS6UGFXI.mjs";var e=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;if(!Object.values(n).includes(e))throw new Error(`process.env.NEXT_PUBLIC_CHAIN_ID is invalid: ${e}.
|
|
2
|
+
This value must be one of the following: ${Object.values(n).filter(Number).join(", ")} when using @berachain/config/internal.`);var t=process.env.VERCEL_TARGET_ENV==="production",o=process.env.NODE_ENV==="development",i=process.env.VERCEL_TARGET_ENV==="preview"||o,l=process.env.VERCEL_TARGET_ENV==="staging",a=process.env.NEXT_PUBLIC_BERA_APP_NAME;if(e!==80094&&e!==80069)throw new Error(`Invalid chainId: ${e}`);var p=e,I="https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ",N="https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/";function _(s=p){if(s===80069&&process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL||s===80094&&process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL){let r=s===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:s===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:s===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:s===80069?process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL:process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,privateRcpUrl:s===80069?process.env.PRIVATE_80069_JSON_RPC_URL:process.env.PRIVATE_80094_JSON_RPC_URL,isAnvil:!1}}var{publicJsonRpcUrl:L,jsonRpcUrl:C,alchemyJsonRpcUrl:v,privateRcpUrl:P}=_(e);export{e as a,t as b,o as c,i as d,l as e,a as f,I as g,N as h,_ as i,L as j,C as k,v as l,P as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as t from"@sentry/nextjs";async function s(e={}){if(process.env.NEXT_RUNTIME==="edge"){let{initSentryEdge:r}=await import("./sentry.edge.config-PXSVFOH6.mjs");r(t,e)}else if(process.env.NEXT_RUNTIME==="nodejs"){let{initSentryServer:r}=await import("./sentry.server.config-NEPRXZ2E.mjs");r(t,e)}}function i(e){let r={...e,env:{...e.env,VERCEL_TARGET_ENV:process.env.VERCEL_TARGET_ENV},webpack:(n,o)=>(o.isServer&&!o.dev&&process.env.UPLOAD_SOURCEMAPS==="true"&&(n.devtool="source-map"),e.webpack?.(n,o)??n)};return t.withSentryConfig(r,{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"})}var p=t.captureRequestError;export{s as a,i as b,p as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunk2OLL4MUYcjs = require('./chunk-2OLL4MUY.cjs');var e=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;if(!Object.values(_chunk2OLL4MUYcjs.a).includes(e))throw new Error(`process.env.NEXT_PUBLIC_CHAIN_ID is invalid: ${e}.
|
|
2
|
+
This value must be one of the following: ${Object.values(_chunk2OLL4MUYcjs.a).filter(Number).join(", ")} when using @berachain/config/internal.`);var t=process.env.VERCEL_TARGET_ENV==="production",o= exports.c =process.env.NODE_ENV==="development",i= exports.d =process.env.VERCEL_TARGET_ENV==="preview"||o,l= exports.e =process.env.VERCEL_TARGET_ENV==="staging",a= exports.f =process.env.NEXT_PUBLIC_BERA_APP_NAME;if(e!==80094&&e!==80069)throw new Error(`Invalid chainId: ${e}`);var p=e,I= exports.g ="https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ",N= exports.h ="https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/";function _(s=p){if(s===80069&&process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL||s===80094&&process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL){let r=s===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:s===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:s===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:s===80069?process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL:process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,privateRcpUrl:s===80069?process.env.PRIVATE_80069_JSON_RPC_URL:process.env.PRIVATE_80094_JSON_RPC_URL,isAnvil:!1}}var{publicJsonRpcUrl:L,jsonRpcUrl:C,alchemyJsonRpcUrl:v,privateRcpUrl:P}=_(e);exports.a = e; exports.b = t; exports.c = o; exports.d = i; exports.e = l; exports.f = a; exports.g = I; exports.h = N; exports.i = _; exports.j = L; exports.k = C; exports.l = v; exports.m = P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});function r(t){return typeof t=="string"?t:t.uri}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 _chunk6CZTBBJTcjs = require('./chunk-6CZTBBJT.cjs');function a(r){return[...new Set(r.split(",").filter(Boolean).map(t=>t.toLowerCase()))]}var s={chainId:80094,tokens:{wbera:"0x6969696969696969696969696969696969696969",swbera:"0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",weth:"0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590"},depositContract:"0x4242424242424242424242424242424242424242",pol:{rewardVaultHelper:"0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2",beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",rewardAllocationFactory:"0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",bribeBoostApi:process.env.NEXT_PUBLIC_80094_INCENTIVES_API||"https://api-claim.berachain.com",bgtIncentiveDistributor:"0x77DA09bC82652f9A14d1b170a001e759640298e6",lstStakerVaultFactory:"0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500"},api:{name:"Berachain API",uri:_nullishCoalesce(_nullishCoalesce(process.env.PRIVATE_80094_BEX_API_URL, () => (process.env.NEXT_PUBLIC_80094_BEX_API_URL)), () => ("https://api.berachain.com")),headers:process.env.PRIVATE_80094_BEX_API_KEY?{"x-api-key":process.env.PRIVATE_80094_BEX_API_KEY}:void 0},beep:{uri:process.env.NEXT_PUBLIC_80094_BEEP_API_URL||"https://beep.berachain.com",name:"Berachain Beep"},bex:{chainName:"BERACHAIN",vault:"0x4Be03f781C497A489E3cB0287833452cA9B9E80B",helper:"0x5083737EC75a728c265BE578C9d0d5333a2c5951",queries:"0x3C612e132624f4Bd500eE1495F54565F0bcc9b59",relayer:"0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7",factories:{composableStable:"0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1",weighted:"0xa966fA8F2d5B087FFFA499C0C1240589371Af409"},balancerDelegatedOwnership:"0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b",poolCreationHelper:"0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2",aggregatorsRouter:"0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58",aggregatorsRouterExecutor:"0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8",haikuRouter:"0x24aC999FF132B32c5b3956973b6213B0d07eB2C7",haikuAgentAddress:"0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71",aggregatorsProxyUrl:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_AGGREGATORS_PROXY_URL, () => ("https://gateway.mainnet.berachain.com/proxy")),recoverFundsApi:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_RECOVER_FUNDS_API, () => ("https://be4i5d40pr3f00n4c441n.mainnet.berachain.com")),recoverFundsContract:_nullishCoalesce(process.env.NEXT_PUBLIC_80094_RECOVER_FUNDS_CONTRACT, () => ("0xB5787B8f7b07a00229b617c4B7a616185857C147"))},honey:{name:"BUSD",url:"https://busd.berachain.com",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythOracle:"0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",pythWrapper:"0xF5686e448BE103beA465105bEb9d284a34ae7e95",reader:"0x285e147060CDc5ba902786d3A471224ee6cE0F91",token:"0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"},hub:{name:"BeraHub",url:"https://hub.berachain.com"},governance:{governor:"0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",timelock:"0xb5f2000b5744f207c931526cAE2134cAa8b6862a"},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"},external:{pyth:"0x2880aB155794e7179c9eE2e38200202908C17B43"},averageBlockTime:2,bridge:{name:"BeraBridge",url:"https://bridge.berachain.com",nft:{name:"BeraBridge NFT",url:"https://nftbridge.berachain.com",eth:{subgraph:`${_chunk6CZTBBJTcjs.h}nft-bridge-subgraph/eth-v1.0.0-beta1/gn`},berachain:{subgraph:`${_chunk6CZTBBJTcjs.h}nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn`}}},bend:{name:"Bend",url:"https://bend.berachain.com",morpho:"0x24147243f9c08d835C218Cda1e135f8dFD0517D0",adaptiveCurveIrm:"0xcf247Df3A2322Dea0D408f011c194906E77a6f62",metaMorphoFactory:"0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616",publicAllocator:"0xB62F34Ab315eaDeAc698e8EaEB6Fc2650951BFe7",bundler3:"0xF920140A65D0f412f2AB3e76C4fEAB5Eef0657ae",generalAdapter1:"0xd2B9667F5214115E27937C410cAeE83E3a901Df7",supportedVaults:a(_nullishCoalesce(process.env.NEXT_PUBLIC_80094_BEND_SUPPORTED_VAULTS, () => ("0x30BbA9CD9Eb8c95824aa42Faa1Bb397b07545bc1,0xB5f473c4b7F402d8f7bED42b6D516f5ff3306B01"))),curatorVaults:a(_nullishCoalesce(process.env.NEXT_PUBLIC_80094_BEND_CURATOR_VAULTS, () => ("0x30BbA9CD9Eb8c95824aa42Faa1Bb397b07545bc1,0xB5f473c4b7F402d8f7bED42b6D516f5ff3306B01")))},enso:{walletV2Factory:"0xc914a663837eb21c5a650716e015659686597e55",walletFlashloanAdapter:"0x5dE09823D9143886896507107590d9859F3E390b"},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"))},faucet:null};exports.a = s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6CZTBBJTcjs = require('./chunk-6CZTBBJT.cjs');var o=_chunk6CZTBBJTcjs.a===80094?"mainnet-":"bepolia-";_chunk6CZTBBJTcjs.b?o = exports.a+="production":_chunk6CZTBBJTcjs.c?o = exports.a+="development":o = exports.a+="preview";var c=_chunk6CZTBBJTcjs.b?.1:1,m= exports.c =process.env.VERCEL_GIT_COMMIT_SHA,a= exports.d =process.env.NEXT_PUBLIC_SENTRY_DEBUG==="true";exports.a = o; exports.b = c; exports.c = m; exports.d = a;
|
|
@@ -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'); var t = _interopRequireWildcard(_nextjs);async function s(e={}){if(process.env.NEXT_RUNTIME==="edge"){let{initSentryEdge:r}=await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.edge.config-AU3IBVBN.cjs")));r(t,e)}else if(process.env.NEXT_RUNTIME==="nodejs"){let{initSentryServer:r}=await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.server.config-IOCQ5KDF.cjs")));r(t,e)}}function i(e){let r={...e,env:{...e.env,VERCEL_TARGET_ENV:process.env.VERCEL_TARGET_ENV},webpack:(n,o)=>(o.isServer&&!o.dev&&process.env.UPLOAD_SOURCEMAPS==="true"&&(n.devtool="source-map"),_nullishCoalesce(_optionalChain([e, 'access', _ => _.webpack, 'optionalCall', _2 => _2(n,o)]), () => (n)))};return t.withSentryConfig(r,{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"})}var p=t.captureRequestError;exports.a = s; exports.b = i; exports.c = p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=(e=>(e[e.MAINNET=80094]="MAINNET",e[e.BEPOLIA=80069]="BEPOLIA",e))(r||{});export{r 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 r={chainId:80069,tokens:{wbera:"0x6969696969696969696969696969696969696969",swbera:"0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x",weth:"0x"},depositContract:"0x4242424242424242424242424242424242424242",pol:{rewardVaultHelper:"0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2",beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",rewardAllocationFactory:"0x7f09Cf6958631513aF0400488F65c7B5c0313F52",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",bribeBoostApi:null,bgtIncentiveDistributor:"0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3",lstStakerVaultFactory:"0xAf10B532cCC25B26a8e28913D5C4056a77e7a178"},api:{name:"Berachain API",uri:_nullishCoalesce(_nullishCoalesce(process.env.PRIVATE_80069_BEX_API_URL, () => (process.env.NEXT_PUBLIC_80069_BEX_API_URL)), () => ("https://bepolia-api.berachain.com")),headers:process.env.PRIVATE_80069_BEX_API_KEY?{"x-api-key":process.env.PRIVATE_80069_BEX_API_KEY}:void 0},beep:{name:"Berachain Beep",uri:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_BEEP_API_URL, () => ("https://beep.testnet.berachain.com"))},bex:{chainName:"BEPOLIA",vault:"0x708cA656b68A6b7384a488A36aD33505a77241FE",helper:"0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f",queries:"0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92",relayer:"0x343215E156Ff586711a5B8C49Fe3099BAF22624C",factories:{composableStable:"0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1",weighted:"0xf1d23276C7b271B2aC595C78977b2312E9954D57"},poolCreationHelper:"0x0dC9964F6CA33d9EF38DEB4925234766127C6B36",aggregatorsRouter:"0x0000000000000000000000000000000000000000",aggregatorsRouterExecutor:"0x0000000000000000000000000000000000000000",haikuRouter:null,haikuAgentAddress:null,aggregatorsProxyUrl:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_AGGREGATORS_PROXY_URL, () => ("")),recoverFundsApi:null,recoverFundsContract:"0x0eFeC4379805fAFA7269Ec599a6921f388C8841a",balancerDelegatedOwnership:"0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b"},honey:{name:"BUSD",url:"https://bepolia.honey.berachain.com",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythOracle:"0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",pythWrapper:"0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB",reader:"0x285e147060CDc5ba902786d3A471224ee6cE0F91",token:"0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"},hub:{name:"BeraHub",url:"https://bepolia.hub.berachain.com"},governance:{governor:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_ADDRESS, () => ("0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5")),timelock:_nullishCoalesce(process.env.NEXT_PUBLIC_80069_GOVERNANCE_TIMELOCK, () => ("0xb5f2000b5744f207c931526cAE2134cAa8b6862a"))},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"},external:{pyth:"0x2880aB155794e7179c9eE2e38200202908C17B43"},averageBlockTime:2,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",morpho:null,adaptiveCurveIrm:null,metaMorphoFactory:null,publicAllocator:null,bundler3:null,generalAdapter1:null,supportedVaults:[],curatorVaults:[]},enso:{walletV2Factory:null,walletFlashloanAdapter:null},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"))},faucet:{name:"Faucet",url:"https://bepolia.faucet.berachain.com",dripAmount:1,timeGap:8,cloudflareKey:process.env.CLOUDFLARE_KEY||"0x4AAAAAAARdAuciFArKhVwt",endpoint:"https://faucet-api.testnet.berachain.com"}};exports.a = r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t,b as e,c as r}from"./chunk-2RLHVELA.mjs";var o=t===80094?"mainnet-":"bepolia-";e?o+="production":r?o+="development":o+="preview";var c=e?.1:1,m=process.env.VERCEL_GIT_COMMIT_SHA,a=process.env.NEXT_PUBLIC_SENTRY_DEBUG==="true";export{o as a,c as b,m as c,a as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(t){return typeof t=="string"?t:t.uri}export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-QYM6VRYU.mjs";import{a as i}from"./chunk-2GCBWNKH.mjs";import{a as s,b as t,c as a,d as n,e as r}from"./chunk-2RLHVELA.mjs";var p={80094:i,80069:e},h=p[s],o=process.env.NEXT_PUBLIC_PH_DATA_CENTER??"eu",c={apiKeys:{public:{thirdweb:process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID??"fc597da15a06f1a6b42fae42112dd770",postHogProjectKey:"phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",enso:process.env.NEXT_PUBLIC_ENSO_API_KEY??"3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f"},private:{dummyInternalApiKey:process.env.DUMMY_INTERNAL_API_KEY,luma:process.env.LUMA_API_KEY,clickup:process.env.CLICKUP_API_KEY,ghostContent:process.env.GHOST_CONTENT_API_KEY,ghostAdmin:process.env.GHOST_ADMIN_API_KEY,oogabooga:process.env.OOGABOOGA_API_KEY,haiku:process.env.HAIKU_API_KEY,kyberswap:process.env.KYBERSWAP_CLIENT_ID,enso:process.env.ENSO_API_KEY,etherscan:process.env.ETHERSCAN_API_KEY}},urls:{postHog:{region:o,apiHost:process.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH??`https://${o}.i.posthog.com`,uiHost:`https://${o}.posthog.com`},ghost:"https://berachain.ghost.io",imageDelivery:"https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ",homepage:process.env.NEXT_PUBLIC_HOMEPAGE_URL??"https://www.berachain.com",ecosystem:"https://ecosystem.berachain.com/",ecojobs:"https://ecojobs.berachain.com/",docs:"https://docs.berachain.com",careers:"https://careers.berachain.com/",brandKit:"https://www.berachain.com/brand",blog:"https://blog.berachain.com/",news:"https://news.berachain.com/",honeypaper:"https://honeypaper.berachain.com/",airdrop:"https://airdrop.berachain.com/",twitter:"https://x.com/berachain",telegram:"https://t.me/BerachainPortal",discord:"https://discord.com/invite/berachain",github:"https://github.com/berachain",buildabera:"https://buildabera.xyz/"},bend:{liquidationWarningLtvMargin:.05,maxBorrowLtvMargin:.05,publicAllocatorSupplyTargetUtilizationWad:BigInt(9e17)},env:{isProduction:t,isLocalHost:a,isPreview:n,isStaging:r}},_=process.env.NODE_ENV!=="development"||process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS!=="0"&&!!process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS,g={isPosthogEnabled:c.apiKeys.public.postHogProjectKey&&_,disallowIndexing:s!==80094&&s!==80069,hideCurator:!1},l={...c,flags:g},N={...h};export{p as a,l as b,N as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={chainId:80069,tokens:{wbera:"0x6969696969696969696969696969696969696969",swbera:"0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a",bgt:"0x656b95E550C07a9ffe548bd4085c72418Ceb1dba",wbtc:"0x",weth:"0x"},depositContract:"0x4242424242424242424242424242424242424242",pol:{rewardVaultHelper:"0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2",beraChef:"0xdf960E8F3F19C481dDE769edEDD439ea1a63426a",factory:"0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8",rewardAllocationFactory:"0x7f09Cf6958631513aF0400488F65c7B5c0313F52",staker:"0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6",bribeBoostApi:null,bgtIncentiveDistributor:"0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3",lstStakerVaultFactory:"0xAf10B532cCC25B26a8e28913D5C4056a77e7a178"},api:{name:"Berachain API",uri:process.env.PRIVATE_80069_BEX_API_URL??process.env.NEXT_PUBLIC_80069_BEX_API_URL??"https://bepolia-api.berachain.com",headers:process.env.PRIVATE_80069_BEX_API_KEY?{"x-api-key":process.env.PRIVATE_80069_BEX_API_KEY}:void 0},beep:{name:"Berachain Beep",uri:process.env.NEXT_PUBLIC_80069_BEEP_API_URL??"https://beep.testnet.berachain.com"},bex:{chainName:"BEPOLIA",vault:"0x708cA656b68A6b7384a488A36aD33505a77241FE",helper:"0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f",queries:"0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92",relayer:"0x343215E156Ff586711a5B8C49Fe3099BAF22624C",factories:{composableStable:"0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1",weighted:"0xf1d23276C7b271B2aC595C78977b2312E9954D57"},poolCreationHelper:"0x0dC9964F6CA33d9EF38DEB4925234766127C6B36",aggregatorsRouter:"0x0000000000000000000000000000000000000000",aggregatorsRouterExecutor:"0x0000000000000000000000000000000000000000",haikuRouter:null,haikuAgentAddress:null,aggregatorsProxyUrl:process.env.NEXT_PUBLIC_80069_AGGREGATORS_PROXY_URL??"",recoverFundsApi:null,recoverFundsContract:"0x0eFeC4379805fAFA7269Ec599a6921f388C8841a",balancerDelegatedOwnership:"0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b"},honey:{name:"BUSD",url:"https://bepolia.honey.berachain.com",factory:"0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401",pythOracle:"0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943",pythWrapper:"0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB",reader:"0x285e147060CDc5ba902786d3A471224ee6cE0F91",token:"0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce"},hub:{name:"BeraHub",url:"https://bepolia.hub.berachain.com"},governance:{governor:process.env.NEXT_PUBLIC_80069_GOVERNANCE_ADDRESS??"0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5",timelock:process.env.NEXT_PUBLIC_80069_GOVERNANCE_TIMELOCK??"0xb5f2000b5744f207c931526cAE2134cAa8b6862a"},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"},external:{pyth:"0x2880aB155794e7179c9eE2e38200202908C17B43"},averageBlockTime:2,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",morpho:null,adaptiveCurveIrm:null,metaMorphoFactory:null,publicAllocator:null,bundler3:null,generalAdapter1:null,supportedVaults:[],curatorVaults:[]},enso:{walletV2Factory:null,walletFlashloanAdapter:null},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"},faucet:{name:"Faucet",url:"https://bepolia.faucet.berachain.com",dripAmount:1,timeGap:8,cloudflareKey:process.env.CLOUDFLARE_KEY||"0x4AAAAAAARdAuciFArKhVwt",endpoint:"https://faucet-api.testnet.berachain.com"}};export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=[{protocol:"https",hostname:"cdn.morpho.org",port:"",pathname:"**"},{protocol:"https",hostname:"raw.githubusercontent.com",port:"",pathname:"/trustwallet/assets/**"},{protocol:"https",hostname:"static.debank.com",port:"",pathname:"/image/*/logo_url/**"},{protocol:"https",hostname:"raw.githubusercontent.com",port:"",pathname:"/berachain/**"},{protocol:"https",hostname:"assets.coingecko.com",port:"",pathname:"/coins/images/**"},{protocol:"https",hostname:"coin-images.coingecko.com",port:"",pathname:"/coins/images/**"},{protocol:"https",hostname:"beranames-assets-berachain.s3.eu-central-003.backblazeb2.com",port:"",pathname:"/**"},{protocol:"https",hostname:"icons.llama.fi",port:"",pathname:"/**"},{protocol:"https",hostname:"icons.llamao.fi",port:"",pathname:"/**"},{protocol:"https",hostname:"coin-images.coingecko.com",port:"",pathname:"/asset_platforms/images/**"},{protocol:"https",hostname:"imagedelivery.net",port:"",pathname:"/qNj7Q3MCke89zoKzav7eDQ/**"}];export{t 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 _chunkMW34QRNXcjs = require('./chunk-MW34QRNX.cjs');var _chunkHJ25KNL4cjs = require('./chunk-HJ25KNL4.cjs');var _chunk6CZTBBJTcjs = require('./chunk-6CZTBBJT.cjs');var p={80094:_chunkHJ25KNL4cjs.a,80069:_chunkMW34QRNXcjs.a},h=p[_chunk6CZTBBJTcjs.a],o=_nullishCoalesce(process.env.NEXT_PUBLIC_PH_DATA_CENTER, () => ("eu")),c={apiKeys:{public:{thirdweb:_nullishCoalesce(process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID, () => ("fc597da15a06f1a6b42fae42112dd770")),postHogProjectKey:"phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",enso:_nullishCoalesce(process.env.NEXT_PUBLIC_ENSO_API_KEY, () => ("3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f"))},private:{dummyInternalApiKey:process.env.DUMMY_INTERNAL_API_KEY,luma:process.env.LUMA_API_KEY,clickup:process.env.CLICKUP_API_KEY,ghostContent:process.env.GHOST_CONTENT_API_KEY,ghostAdmin:process.env.GHOST_ADMIN_API_KEY,oogabooga:process.env.OOGABOOGA_API_KEY,haiku:process.env.HAIKU_API_KEY,kyberswap:process.env.KYBERSWAP_CLIENT_ID,enso:process.env.ENSO_API_KEY,etherscan:process.env.ETHERSCAN_API_KEY}},urls:{postHog:{region:o,apiHost:_nullishCoalesce(process.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH, () => (`https://${o}.i.posthog.com`)),uiHost:`https://${o}.posthog.com`},ghost:"https://berachain.ghost.io",imageDelivery:"https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ",homepage:_nullishCoalesce(process.env.NEXT_PUBLIC_HOMEPAGE_URL, () => ("https://www.berachain.com")),ecosystem:"https://ecosystem.berachain.com/",ecojobs:"https://ecojobs.berachain.com/",docs:"https://docs.berachain.com",careers:"https://careers.berachain.com/",brandKit:"https://www.berachain.com/brand",blog:"https://blog.berachain.com/",news:"https://news.berachain.com/",honeypaper:"https://honeypaper.berachain.com/",airdrop:"https://airdrop.berachain.com/",twitter:"https://x.com/berachain",telegram:"https://t.me/BerachainPortal",discord:"https://discord.com/invite/berachain",github:"https://github.com/berachain",buildabera:"https://buildabera.xyz/"},bend:{liquidationWarningLtvMargin:.05,maxBorrowLtvMargin:.05,publicAllocatorSupplyTargetUtilizationWad:BigInt(9e17)},env:{isProduction:_chunk6CZTBBJTcjs.b,isLocalHost:_chunk6CZTBBJTcjs.c,isPreview:_chunk6CZTBBJTcjs.d,isStaging:_chunk6CZTBBJTcjs.e}},_=process.env.NODE_ENV!=="development"||process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS!=="0"&&!!process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS,g={isPosthogEnabled:c.apiKeys.public.postHogProjectKey&&_,disallowIndexing:_chunk6CZTBBJTcjs.a!==80094&&_chunk6CZTBBJTcjs.a!==80069,hideCurator:!1},l= exports.b ={...c,flags:g},N= exports.c ={...h};exports.a = p; exports.b = l; exports.c = N;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var t=[{protocol:"https",hostname:"cdn.morpho.org",port:"",pathname:"**"},{protocol:"https",hostname:"raw.githubusercontent.com",port:"",pathname:"/trustwallet/assets/**"},{protocol:"https",hostname:"static.debank.com",port:"",pathname:"/image/*/logo_url/**"},{protocol:"https",hostname:"raw.githubusercontent.com",port:"",pathname:"/berachain/**"},{protocol:"https",hostname:"assets.coingecko.com",port:"",pathname:"/coins/images/**"},{protocol:"https",hostname:"coin-images.coingecko.com",port:"",pathname:"/coins/images/**"},{protocol:"https",hostname:"beranames-assets-berachain.s3.eu-central-003.backblazeb2.com",port:"",pathname:"/**"},{protocol:"https",hostname:"icons.llama.fi",port:"",pathname:"/**"},{protocol:"https",hostname:"icons.llamao.fi",port:"",pathname:"/**"},{protocol:"https",hostname:"coin-images.coingecko.com",port:"",pathname:"/asset_platforms/images/**"},{protocol:"https",hostname:"imagedelivery.net",port:"",pathname:"/qNj7Q3MCke89zoKzav7eDQ/**"}];exports.a = t;
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkYT7WZDGIcjs = require('./chunk-YT7WZDGI.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkEYYJ2UZTcjs = require('./chunk-EYYJ2UZT.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.ChainId = _chunkEYYJ2UZTcjs.ChainId; exports.getUriFromLink = _chunkYT7WZDGIcjs.getUriFromLink;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDUO7UEQDcjs = require('./chunk-DUO7UEQD.cjs');var _chunk2OLL4MUYcjs = require('./chunk-2OLL4MUY.cjs');exports.ChainId = _chunk2OLL4MUYcjs.a; exports.getUriFromLink = _chunkDUO7UEQDcjs.a;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getUriFromLink
|
|
3
|
-
} from "./chunk-LALEUPWL.mjs";
|
|
4
|
-
import {
|
|
5
|
-
ChainId
|
|
6
|
-
} from "./chunk-KJXYSGNH.mjs";
|
|
7
|
-
export {
|
|
8
|
-
ChainId,
|
|
9
|
-
getUriFromLink
|
|
10
|
-
};
|
|
1
|
+
import{a as r}from"./chunk-O243TIHY.mjs";import{a as o}from"./chunk-MS6UGFXI.mjs";export{o as ChainId,r as getUriFromLink};
|
|
@@ -1,412 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkB2BTOQVPcjs = require('../chunk-B2BTOQVP.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkYT7WZDGIcjs = require('../chunk-YT7WZDGI.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _chunkKQFPH756cjs = require('../chunk-KQFPH756.cjs');
|
|
11
|
-
require('../chunk-MNIORAK3.cjs');
|
|
12
|
-
require('../chunk-2PVGTKBC.cjs');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _chunkAU3LYJABcjs = require('../chunk-AU3LYJAB.cjs');
|
|
22
|
-
require('../chunk-EYYJ2UZT.cjs');
|
|
23
|
-
|
|
24
|
-
// src/internal/dedupeCspSources.ts
|
|
25
|
-
function parseSource(raw) {
|
|
26
|
-
const schemeSplit = raw.indexOf("://");
|
|
27
|
-
if (schemeSplit === -1) {
|
|
28
|
-
return void 0;
|
|
29
|
-
}
|
|
30
|
-
const scheme = raw.slice(0, schemeSplit).toLowerCase();
|
|
31
|
-
const rest = raw.slice(schemeSplit + 3);
|
|
32
|
-
const pathStart = rest.indexOf("/");
|
|
33
|
-
const host = (pathStart === -1 ? rest : rest.slice(0, pathStart)).toLowerCase();
|
|
34
|
-
const path = pathStart === -1 ? "/" : rest.slice(pathStart);
|
|
35
|
-
if (!host) {
|
|
36
|
-
return void 0;
|
|
37
|
-
}
|
|
38
|
-
return { raw, scheme, host, path };
|
|
39
|
-
}
|
|
40
|
-
function hostMatches(patternHost, targetHost) {
|
|
41
|
-
if (!patternHost.startsWith("*.")) {
|
|
42
|
-
return patternHost === targetHost;
|
|
43
|
-
}
|
|
44
|
-
const suffix = patternHost.slice(1);
|
|
45
|
-
return targetHost.endsWith(suffix) && targetHost.length > suffix.length;
|
|
46
|
-
}
|
|
47
|
-
function covers(pattern, target) {
|
|
48
|
-
if (pattern.scheme !== target.scheme) {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
if (!hostMatches(pattern.host, target.host)) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
if (pattern.path.endsWith("/")) {
|
|
55
|
-
return target.path.startsWith(pattern.path);
|
|
56
|
-
}
|
|
57
|
-
return target.path === pattern.path;
|
|
58
|
-
}
|
|
59
|
-
function dedupeCspSources(sources) {
|
|
60
|
-
const parsed = sources.map((raw) => ({ raw, parsed: parseSource(raw) }));
|
|
61
|
-
return parsed.filter(({ parsed: target }, i) => {
|
|
62
|
-
if (!target) {
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
return !parsed.some(({ parsed: pattern }, j) => {
|
|
66
|
-
if (i === j || !pattern) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
if (!covers(pattern, target)) {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
if (covers(target, pattern)) {
|
|
73
|
-
return j < i;
|
|
74
|
-
}
|
|
75
|
-
return true;
|
|
76
|
-
});
|
|
77
|
-
}).map(({ raw }) => raw);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// src/internal/sentry/getSentryKeys.ts
|
|
81
|
-
function getSentryKeys({
|
|
82
|
-
dsn = process.env.NEXT_PUBLIC_SENTRY_DSN
|
|
83
|
-
} = {}) {
|
|
84
|
-
if (!dsn) {
|
|
85
|
-
return void 0;
|
|
86
|
-
}
|
|
87
|
-
const re = /^(?:https:\/\/)([A-z0-9]{32})(?::{0,1})([A-z0-9]*)(?:@)(o[a-z0-9]+)(?:\.ingest\.us\.sentry\.io)\/([0-9]{16})/i;
|
|
88
|
-
const match = _optionalChain([dsn, 'optionalAccess', _ => _.match, 'call', _2 => _2(re)]);
|
|
89
|
-
if (!match) {
|
|
90
|
-
return void 0;
|
|
91
|
-
}
|
|
92
|
-
const [
|
|
93
|
-
,
|
|
94
|
-
key,
|
|
95
|
-
// this is a secret stored in a deprecated dns format
|
|
96
|
-
deprecatedSecret,
|
|
97
|
-
org,
|
|
98
|
-
projectId
|
|
99
|
-
] = match;
|
|
100
|
-
const cspEndpoint = new URL(
|
|
101
|
-
`https://${org}.ingest.us.sentry.io/api/${projectId}/security/?sentry_key=${key}`
|
|
102
|
-
);
|
|
103
|
-
cspEndpoint.searchParams.set("sentry_key", key);
|
|
104
|
-
cspEndpoint.searchParams.set("sentry_env", _chunkB2BTOQVPcjs.sentryEnvironment);
|
|
105
|
-
cspEndpoint.searchParams.set("sentry_release", _chunkB2BTOQVPcjs.sentryRelease);
|
|
106
|
-
return {
|
|
107
|
-
dsn: match[0],
|
|
108
|
-
projectId,
|
|
109
|
-
deprecatedSecret: deprecatedSecret || void 0,
|
|
110
|
-
cspEndpoint,
|
|
111
|
-
org,
|
|
112
|
-
publicKey: match[1]
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// src/internal/header-sources.ts
|
|
117
|
-
var config = _chunkKQFPH756cjs.chainConfigs[_chunkAU3LYJABcjs.defaultChainId];
|
|
118
|
-
var modules = {
|
|
119
|
-
berachain: {
|
|
120
|
-
connect: [
|
|
121
|
-
"https://*.berachain.com/",
|
|
122
|
-
// staging hosts are only reachable outside production
|
|
123
|
-
_chunkAU3LYJABcjs.isProduction ? null : "https://*.berachain-staging.com/",
|
|
124
|
-
"https://raw.githubusercontent.com/berachain/metadata/",
|
|
125
|
-
`${_chunkAU3LYJABcjs.imageBaseUrl}/`,
|
|
126
|
-
"https://*.quiknode.pro",
|
|
127
|
-
// Subgraph queries are served by same-origin typed REST endpoints under
|
|
128
|
-
// /api/honey/* and /api/pol/* (covered by 'self'), not direct browser
|
|
129
|
-
// requests to the upstream URLs.
|
|
130
|
-
config.pol.bribeBoostApi,
|
|
131
|
-
_chunkYT7WZDGIcjs.getUriFromLink.call(void 0, config.beep),
|
|
132
|
-
_chunkYT7WZDGIcjs.getUriFromLink.call(void 0, config.api),
|
|
133
|
-
_chunkAU3LYJABcjs.jsonRpcUrl,
|
|
134
|
-
_chunkAU3LYJABcjs.publicJsonRpcUrl,
|
|
135
|
-
_chunkAU3LYJABcjs.alchemyJsonRpcUrl,
|
|
136
|
-
"https://api.routescan.io/v2/network/"
|
|
137
|
-
],
|
|
138
|
-
img: [
|
|
139
|
-
// trailing slash so sub-paths (e.g. /bend-curators/x.png/public) match;
|
|
140
|
-
// CSP path-matches exactly without it
|
|
141
|
-
`${_chunkAU3LYJABcjs.imageBaseUrl}/`,
|
|
142
|
-
"https://raw.githubusercontent.com/berachain/metadata/"
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
beranames: {
|
|
146
|
-
connect: [
|
|
147
|
-
// avatars
|
|
148
|
-
"https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/"
|
|
149
|
-
],
|
|
150
|
-
img: [
|
|
151
|
-
"https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/"
|
|
152
|
-
]
|
|
153
|
-
},
|
|
154
|
-
swapAggregators: {
|
|
155
|
-
connect: [
|
|
156
|
-
// empty on chains without a proxy — omit rather than emit a bare "/"
|
|
157
|
-
config.bex.aggregatorsProxyUrl ? `${config.bex.aggregatorsProxyUrl}/` : null,
|
|
158
|
-
"https://open-api.openocean.finance/",
|
|
159
|
-
"https://api.haiku.trade/",
|
|
160
|
-
"https://api.fly.trade/",
|
|
161
|
-
"https://api.enso.finance/",
|
|
162
|
-
"https://api.enso.build/",
|
|
163
|
-
// zaps
|
|
164
|
-
"https://api.relay.link/"
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
walletConnect: {
|
|
168
|
-
connect: [
|
|
169
|
-
"wss://relay.walletconnect.com/",
|
|
170
|
-
"wss://relay.walletconnect.org/",
|
|
171
|
-
"https://verify.walletconnect.org/v3/public-key"
|
|
172
|
-
],
|
|
173
|
-
frame: [
|
|
174
|
-
"https://verify.walletconnect.com/",
|
|
175
|
-
"https://verify.walletconnect.org/"
|
|
176
|
-
]
|
|
177
|
-
},
|
|
178
|
-
coinbaseWallet: {
|
|
179
|
-
connect: [
|
|
180
|
-
"wss://www.walletlink.org/rpc",
|
|
181
|
-
"https://www.walletlink.org/events",
|
|
182
|
-
"https://chain-proxy.wallet.coinbase.com/"
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
metamask: {
|
|
186
|
-
connect: [
|
|
187
|
-
"wss://metamask-sdk.api.cx.metamask.io/socket.io/",
|
|
188
|
-
"https://metamask-sdk.api.cx.metamask.io"
|
|
189
|
-
]
|
|
190
|
-
},
|
|
191
|
-
thirdweb: {
|
|
192
|
-
connect: ["https://*.thirdweb.com/"],
|
|
193
|
-
// export pk iframe
|
|
194
|
-
frame: ["https://embedded-wallet.thirdweb.com/"]
|
|
195
|
-
},
|
|
196
|
-
dynamic: {
|
|
197
|
-
connect: ["https://app.dynamicauth.com/api"]
|
|
198
|
-
},
|
|
199
|
-
binance: {
|
|
200
|
-
connect: ["https://wallet.binance.com/tonbridge/"]
|
|
201
|
-
},
|
|
202
|
-
tron: {
|
|
203
|
-
connect: ["https://api.trongrid.io/"]
|
|
204
|
-
},
|
|
205
|
-
layerZero: {
|
|
206
|
-
connect: [
|
|
207
|
-
"https://*.layerzero-scan.com/",
|
|
208
|
-
"https://scan.layerzero-api.com/"
|
|
209
|
-
]
|
|
210
|
-
},
|
|
211
|
-
pelagus: {
|
|
212
|
-
img: ["https://pelaguswallet.io/docs/img"]
|
|
213
|
-
},
|
|
214
|
-
externalRpcs: {
|
|
215
|
-
// non-Berachain chains read by wallets/bridges
|
|
216
|
-
connect: [
|
|
217
|
-
"https://api.avax.network/ext/bc/C/rpc",
|
|
218
|
-
"https://polygon-rpc.com",
|
|
219
|
-
"https://mainnet.optimism.io/",
|
|
220
|
-
"https://arb1.arbitrum.io/rpc",
|
|
221
|
-
"https://mainnet.base.org/",
|
|
222
|
-
"https://eth.merkle.io"
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
tokenIcons: {
|
|
226
|
-
img: [
|
|
227
|
-
"https://assets.coingecko.com/coins/images/",
|
|
228
|
-
"https://coin-images.coingecko.com/coins/images/",
|
|
229
|
-
"https://icons.llama.fi/",
|
|
230
|
-
"https://icons.llamao.fi/",
|
|
231
|
-
"https://static.debank.com/",
|
|
232
|
-
"https://raw.githubusercontent.com/trustwallet/assets/"
|
|
233
|
-
]
|
|
234
|
-
},
|
|
235
|
-
bend: {
|
|
236
|
-
img: ["https://cdn.morpho.org/"]
|
|
237
|
-
},
|
|
238
|
-
pyth: {
|
|
239
|
-
connect: ["https://hermes.pyth.network/v2/"]
|
|
240
|
-
},
|
|
241
|
-
fonts: {
|
|
242
|
-
font: [
|
|
243
|
-
"https://cdn.jsdelivr.net/npm/@fontsource/",
|
|
244
|
-
// collected by sentry (needed by browser extensions)
|
|
245
|
-
"https://fonts.gstatic.com",
|
|
246
|
-
"https://use.typekit.net/"
|
|
247
|
-
]
|
|
248
|
-
},
|
|
249
|
-
sentry: {
|
|
250
|
-
// csp reporting
|
|
251
|
-
connect: ["https://*.sentry.io/"]
|
|
252
|
-
},
|
|
253
|
-
posthog: {
|
|
254
|
-
// toolbar + heatmaps
|
|
255
|
-
connect: ["https://*.posthog.com"],
|
|
256
|
-
img: ["https://*.posthog.com"],
|
|
257
|
-
frame: ["https://*.posthog.com"],
|
|
258
|
-
font: ["https://*.posthog.com"],
|
|
259
|
-
style: ["https://*.posthog.com"],
|
|
260
|
-
media: ["https://*.posthog.com"]
|
|
261
|
-
},
|
|
262
|
-
vercel: {
|
|
263
|
-
// toolbar + live comments
|
|
264
|
-
connect: ["https://vercel.live", "wss://ws-us3.pusher.com"],
|
|
265
|
-
img: ["https://vercel.live", "https://vercel.com"],
|
|
266
|
-
frame: ["https://vercel.live/"],
|
|
267
|
-
font: ["https://vercel.live", "https://assets.vercel.com"],
|
|
268
|
-
style: ["https://vercel.live"]
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
var headerSourceModules = modules;
|
|
272
|
-
function getContentSecurityPolicy({
|
|
273
|
-
isDevelopment,
|
|
274
|
-
cspReporting,
|
|
275
|
-
dynamicScriptCsp = {},
|
|
276
|
-
modules: enabledModules = {},
|
|
277
|
-
...args
|
|
278
|
-
}) {
|
|
279
|
-
const defaultSrc = [];
|
|
280
|
-
function collect(directive) {
|
|
281
|
-
return Object.entries(headerSourceModules).filter(
|
|
282
|
-
([module]) => enabledModules[module] !== false
|
|
283
|
-
).flatMap(([, sources]) => _nullishCoalesce(sources[directive], () => ( []))).filter((url) => Boolean(_optionalChain([url, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()])));
|
|
284
|
-
}
|
|
285
|
-
const connectionSources = dedupeCspSources(
|
|
286
|
-
collect("connect").concat(_nullishCoalesce(args.connectionSources, () => ( []))).filter((link) => {
|
|
287
|
-
const url = _chunkYT7WZDGIcjs.getUriFromLink.call(void 0, link);
|
|
288
|
-
if (!url || url.trim() === "") {
|
|
289
|
-
return false;
|
|
290
|
-
}
|
|
291
|
-
if (url.startsWith(_chunkAU3LYJABcjs.goldskyBaseUrl) && url !== _chunkAU3LYJABcjs.goldskyBaseUrl) {
|
|
292
|
-
return false;
|
|
293
|
-
}
|
|
294
|
-
return true;
|
|
295
|
-
})
|
|
296
|
-
);
|
|
297
|
-
const pictureSources = dedupeCspSources(
|
|
298
|
-
collect("img").concat(_nullishCoalesce(args.pictureSources, () => ( [])))
|
|
299
|
-
);
|
|
300
|
-
const frameSources = dedupeCspSources(
|
|
301
|
-
collect("frame").concat(_nullishCoalesce(args.frameSources, () => ( [])))
|
|
302
|
-
);
|
|
303
|
-
const fontSources = dedupeCspSources(
|
|
304
|
-
collect("font").concat(_nullishCoalesce(args.fontSources, () => ( [])))
|
|
305
|
-
);
|
|
306
|
-
const styleSources = dedupeCspSources(
|
|
307
|
-
collect("style").concat(_nullishCoalesce(args.styleSources, () => ( [])))
|
|
308
|
-
);
|
|
309
|
-
const workerSources = dedupeCspSources(
|
|
310
|
-
collect("worker").concat(_nullishCoalesce(args.workerSources, () => ( [])))
|
|
311
|
-
);
|
|
312
|
-
const mediaSources = dedupeCspSources(
|
|
313
|
-
collect("media").concat(_nullishCoalesce(args.mediaSources, () => ( [])))
|
|
314
|
-
);
|
|
315
|
-
const scriptSources = dynamicScriptCsp === "disabled" ? dedupeCspSources(collect("script").concat(_nullishCoalesce(args.scriptSources, () => ( [])))) : dedupeCspSources(
|
|
316
|
-
[
|
|
317
|
-
dynamicScriptCsp.nonce ? `'nonce-${dynamicScriptCsp.nonce}'` : "",
|
|
318
|
-
"'strict-dynamic'",
|
|
319
|
-
"'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o='",
|
|
320
|
-
..._nullishCoalesce(dynamicScriptCsp.sha, () => ( []))
|
|
321
|
-
].filter((source) => source !== "")
|
|
322
|
-
);
|
|
323
|
-
let cspHeader = `
|
|
324
|
-
default-src 'self' ${defaultSrc.join(" ")};
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkHLFO7V5Icjs = require('../chunk-HLFO7V5I.cjs');var _chunkDUO7UEQDcjs = require('../chunk-DUO7UEQD.cjs');var _chunkX5MTSC5Tcjs = require('../chunk-X5MTSC5T.cjs');require('../chunk-MW34QRNX.cjs');require('../chunk-HJ25KNL4.cjs');var _chunk6CZTBBJTcjs = require('../chunk-6CZTBBJT.cjs');require('../chunk-2OLL4MUY.cjs');function _(t){let s=t.indexOf("://");if(s===-1)return;let e=t.slice(0,s).toLowerCase(),r=t.slice(s+3),n=r.indexOf("/"),c=(n===-1?r:r.slice(0,n)).toLowerCase(),o=n===-1?"/":r.slice(n);if(c)return{raw:t,scheme:e,host:c,path:o}}function M(t,s){if(!t.startsWith("*."))return t===s;let e=t.slice(1);return s.endsWith(e)&&s.length>e.length}function C(t,s){return t.scheme!==s.scheme||!M(t.host,s.host)?!1:t.path.endsWith("/")?s.path.startsWith(t.path):s.path===t.path}function a(t){let s=t.map(e=>({raw:e,parsed:_(e)}));return s.filter(({parsed:e},r)=>e?!s.some(({parsed:n},c)=>r===c||!n||!C(n,e)?!1:C(e,n)?c<r:!0):!0).map(({raw:e})=>e)}function $({dsn:t=process.env.NEXT_PUBLIC_SENTRY_DSN}={}){if(!t)return;let s=/^(?:https:\/\/)([A-z0-9]{32})(?::{0,1})([A-z0-9]*)(?:@)(o[a-z0-9]+)(?:\.ingest\.us\.sentry\.io)\/([0-9]{16})/i,e=_optionalChain([t, 'optionalAccess', _2 => _2.match, 'call', _3 => _3(s)]);if(!e)return;let[,r,n,c,o]=e,p=new URL(`https://${c}.ingest.us.sentry.io/api/${o}/security/?sentry_key=${r}`);return p.searchParams.set("sentry_key",r),p.searchParams.set("sentry_env",_chunkHLFO7V5Icjs.a),p.searchParams.set("sentry_release",_chunkHLFO7V5Icjs.c),{dsn:e[0],projectId:o,deprecatedSecret:n||void 0,cspEndpoint:p,org:c,publicKey:e[1]}}var u=_chunkX5MTSC5Tcjs.a[_chunk6CZTBBJTcjs.a],z={berachain:{connect:["https://*.berachain.com/",_chunk6CZTBBJTcjs.b?null:"https://*.berachain-staging.com/","https://raw.githubusercontent.com/berachain/metadata/",`${_chunk6CZTBBJTcjs.g}/`,"https://*.quiknode.pro",u.pol.bribeBoostApi,_chunkDUO7UEQDcjs.a.call(void 0, u.beep),_chunkDUO7UEQDcjs.a.call(void 0, u.api),_chunk6CZTBBJTcjs.k,_chunk6CZTBBJTcjs.j,_chunk6CZTBBJTcjs.l,"https://api.routescan.io/v2/network/"],img:[`${_chunk6CZTBBJTcjs.g}/`,"https://raw.githubusercontent.com/berachain/metadata/"]},beranames:{connect:["https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/"],img:["https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/"]},swapAggregators:{connect:[u.bex.aggregatorsProxyUrl?`${u.bex.aggregatorsProxyUrl}/`:null,"https://open-api.openocean.finance/","https://api.haiku.trade/","https://api.fly.trade/","https://api.enso.finance/","https://api.enso.build/","https://api.relay.link/"]},walletConnect:{connect:["wss://relay.walletconnect.com/","wss://relay.walletconnect.org/","https://verify.walletconnect.org/v3/public-key"],frame:["https://verify.walletconnect.com/","https://verify.walletconnect.org/"]},coinbaseWallet:{connect:["wss://www.walletlink.org/rpc","https://www.walletlink.org/events","https://chain-proxy.wallet.coinbase.com/"]},metamask:{connect:["wss://metamask-sdk.api.cx.metamask.io/socket.io/","https://metamask-sdk.api.cx.metamask.io"]},thirdweb:{connect:["https://*.thirdweb.com/"],frame:["https://embedded-wallet.thirdweb.com/"]},dynamic:{connect:["https://app.dynamicauth.com/api"]},binance:{connect:["https://wallet.binance.com/tonbridge/"]},tron:{connect:["https://api.trongrid.io/"]},layerZero:{connect:["https://*.layerzero-scan.com/","https://scan.layerzero-api.com/"]},pelagus:{img:["https://pelaguswallet.io/docs/img"]},externalRpcs:{connect:["https://api.avax.network/ext/bc/C/rpc","https://polygon-rpc.com","https://mainnet.optimism.io/","https://arb1.arbitrum.io/rpc","https://mainnet.base.org/","https://eth.merkle.io"]},tokenIcons:{img:["https://assets.coingecko.com/coins/images/","https://coin-images.coingecko.com/coins/images/","https://icons.llama.fi/","https://icons.llamao.fi/","https://static.debank.com/","https://raw.githubusercontent.com/trustwallet/assets/"]},bend:{img:["https://cdn.morpho.org/"]},pyth:{connect:["https://hermes.pyth.network/v2/"]},fonts:{font:["https://cdn.jsdelivr.net/npm/@fontsource/","https://fonts.gstatic.com","https://use.typekit.net/"]},sentry:{connect:["https://*.sentry.io/"]},posthog:{connect:["https://*.posthog.com"],img:["https://*.posthog.com"],frame:["https://*.posthog.com"],font:["https://*.posthog.com"],style:["https://*.posthog.com"],media:["https://*.posthog.com"]},vercel:{connect:["https://vercel.live","wss://ws-us3.pusher.com"],img:["https://vercel.live","https://vercel.com"],frame:["https://vercel.live/"],font:["https://vercel.live","https://assets.vercel.com"],style:["https://vercel.live"]}},D= exports.headerSourceModules =z;function B({isDevelopment:t,cspReporting:s,dynamicScriptCsp:e={},modules:r={},...n}){let c=[];function o(l){return Object.entries(D).filter(([i])=>r[i]!==!1).flatMap(([,i])=>_nullishCoalesce(i[l], () => ([]))).filter(i=>!!_optionalChain([i, 'optionalAccess', _4 => _4.trim, 'call', _5 => _5()]))}let p=a(o("connect").concat(_nullishCoalesce(n.connectionSources, () => ([]))).filter(l=>{let i=_chunkDUO7UEQDcjs.a.call(void 0, l);return!(!i||i.trim()===""||i.startsWith(_chunk6CZTBBJTcjs.h)&&i!==_chunk6CZTBBJTcjs.h)})),R=a(o("img").concat(_nullishCoalesce(n.pictureSources, () => ([])))),P=a(o("frame").concat(_nullishCoalesce(n.frameSources, () => ([])))),E=a(o("font").concat(_nullishCoalesce(n.fontSources, () => ([])))),j=a(o("style").concat(_nullishCoalesce(n.styleSources, () => ([])))),N=a(o("worker").concat(_nullishCoalesce(n.workerSources, () => ([])))),U=a(o("media").concat(_nullishCoalesce(n.mediaSources, () => ([])))),O=e==="disabled"?a(o("script").concat(_nullishCoalesce(n.scriptSources, () => ([])))):a([e.nonce?`'nonce-${e.nonce}'`:"","'strict-dynamic'","'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o='",..._nullishCoalesce(e.sha, () => ([]))].filter(l=>l!=="")),f=`
|
|
2
|
+
default-src 'self' ${c.join(" ")};
|
|
325
3
|
base-uri 'self';
|
|
326
|
-
frame-src 'self' ${
|
|
4
|
+
frame-src 'self' ${P.join(" ")};
|
|
327
5
|
frame-ancestors 'self' https://*.posthog.com;
|
|
328
|
-
script-src 'self' ${
|
|
329
|
-
worker-src 'self' blob: data: ${
|
|
330
|
-
font-src 'self' ${
|
|
331
|
-
style-src 'self' ${
|
|
332
|
-
img-src 'self' data: ${
|
|
333
|
-
connect-src 'self' ${
|
|
334
|
-
media-src 'self' ${
|
|
335
|
-
`;
|
|
336
|
-
|
|
337
|
-
cspHeader += `
|
|
338
|
-
report-uri ${cspReporting};
|
|
6
|
+
script-src 'self' ${O.concat([t?"'unsafe-eval'":""]).join(" ")};
|
|
7
|
+
worker-src 'self' blob: data: ${N.join(" ")};
|
|
8
|
+
font-src 'self' ${E.join(" ")};
|
|
9
|
+
style-src 'self' ${j.join(" ")} 'unsafe-inline';
|
|
10
|
+
img-src 'self' data: ${R.join(" ")};
|
|
11
|
+
connect-src 'self' ${p.join(" ")};
|
|
12
|
+
media-src 'self' ${U.join(" ")};
|
|
13
|
+
`;return s&&(f+=`
|
|
14
|
+
report-uri ${s};
|
|
339
15
|
report-to csp-endpoint;
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
return cspHeader.replace(/\s{2,}/g, " ").trim();
|
|
343
|
-
}
|
|
344
|
-
var staticPictureSources = [
|
|
345
|
-
// Only add image delivery URL if it exists and can be processed
|
|
346
|
-
`${_chunkAU3LYJABcjs.imageBaseUrl}/`,
|
|
347
|
-
"https://raw.githubusercontent.com/berachain/metadata/",
|
|
348
|
-
"https://assets.coingecko.com/coins/images/",
|
|
349
|
-
"https://berachain.ghost.io/content/images/"
|
|
350
|
-
].filter((url) => {
|
|
351
|
-
if (!url || url.trim() === "") {
|
|
352
|
-
return false;
|
|
353
|
-
}
|
|
354
|
-
return true;
|
|
355
|
-
});
|
|
356
|
-
function cspMiddleware({
|
|
357
|
-
response,
|
|
358
|
-
csp
|
|
359
|
-
}) {
|
|
360
|
-
const sentryCspEndpoint = _optionalChain([getSentryKeys, 'call', _5 => _5(), 'optionalAccess', _6 => _6.cspEndpoint]);
|
|
361
|
-
const nonce = _optionalChain([csp, 'optionalAccess', _7 => _7.dynamicScriptCsp]) !== "disabled" ? _nullishCoalesce(_optionalChain([csp, 'optionalAccess', _8 => _8.dynamicScriptCsp, 'optionalAccess', _9 => _9.nonce]), () => ( Buffer.from(crypto.randomUUID()).toString("base64"))) : void 0;
|
|
362
|
-
const isDevelopment = process.env.NODE_ENV === "development";
|
|
363
|
-
const headers = [
|
|
364
|
-
{
|
|
365
|
-
key: "Content-Security-Policy",
|
|
366
|
-
value: getContentSecurityPolicy({
|
|
367
|
-
...csp,
|
|
368
|
-
dynamicScriptCsp: _optionalChain([csp, 'optionalAccess', _10 => _10.dynamicScriptCsp]) === "disabled" ? csp.dynamicScriptCsp : {
|
|
369
|
-
..._optionalChain([csp, 'optionalAccess', _11 => _11.dynamicScriptCsp]),
|
|
370
|
-
nonce
|
|
371
|
-
},
|
|
372
|
-
isDevelopment,
|
|
373
|
-
cspReporting: _optionalChain([sentryCspEndpoint, 'optionalAccess', _12 => _12.toString, 'call', _13 => _13()])
|
|
374
|
-
})
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
key: "X-Frame-Options",
|
|
378
|
-
value: "DENY"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
key: "X-Content-Type-Options",
|
|
382
|
-
value: "nosniff"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
key: "X-Nonce",
|
|
386
|
-
value: nonce
|
|
387
|
-
}
|
|
388
|
-
];
|
|
389
|
-
if (sentryCspEndpoint) {
|
|
390
|
-
headers.push({
|
|
391
|
-
key: "Reporting-To",
|
|
392
|
-
value: `{"group":"csp-endpoint","max_age":10886400,"endpoints":[{"url":"${sentryCspEndpoint}"}],"include_subdomains":true}"`
|
|
393
|
-
});
|
|
394
|
-
headers.push({
|
|
395
|
-
key: "Reporting-Endpoints",
|
|
396
|
-
value: `csp-endpoint="${sentryCspEndpoint}"`
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
for (const header of headers) {
|
|
400
|
-
if (!header.value) {
|
|
401
|
-
continue;
|
|
402
|
-
}
|
|
403
|
-
response.headers.set(header.key, header.value);
|
|
404
|
-
}
|
|
405
|
-
return response;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
exports.cspMiddleware = cspMiddleware; exports.getContentSecurityPolicy = getContentSecurityPolicy; exports.headerSourceModules = headerSourceModules; exports.staticPictureSources = staticPictureSources;
|
|
16
|
+
`),f.replace(/\s{2,}/g," ").trim()}var Y=[`${_chunk6CZTBBJTcjs.g}/`,"https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://berachain.ghost.io/content/images/"].filter(t=>!(!t||t.trim()===""));function Z({response:t,csp:s}){let e=_optionalChain([$, 'call', _6 => _6(), 'optionalAccess', _7 => _7.cspEndpoint]),r=_optionalChain([s, 'optionalAccess', _8 => _8.dynamicScriptCsp])!=="disabled"?_nullishCoalesce(_optionalChain([s, 'optionalAccess', _9 => _9.dynamicScriptCsp, 'optionalAccess', _10 => _10.nonce]), () => (Buffer.from(crypto.randomUUID()).toString("base64"))):void 0,n=process.env.NODE_ENV==="development",c=[{key:"Content-Security-Policy",value:B({...s,dynamicScriptCsp:_optionalChain([s, 'optionalAccess', _11 => _11.dynamicScriptCsp])==="disabled"?s.dynamicScriptCsp:{..._optionalChain([s, 'optionalAccess', _12 => _12.dynamicScriptCsp]),nonce:r},isDevelopment:n,cspReporting:_optionalChain([e, 'optionalAccess', _13 => _13.toString, 'call', _14 => _14()])})},{key:"X-Frame-Options",value:"DENY"},{key:"X-Content-Type-Options",value:"nosniff"},{key:"X-Nonce",value:r}];e&&(c.push({key:"Reporting-To",value:`{"group":"csp-endpoint","max_age":10886400,"endpoints":[{"url":"${e}"}],"include_subdomains":true}"`}),c.push({key:"Reporting-Endpoints",value:`csp-endpoint="${e}"`}));for(let o of c)o.value&&t.headers.set(o.key,o.value);return t}exports.cspMiddleware = Z; exports.getContentSecurityPolicy = B; exports.headerSourceModules = D; exports.staticPictureSources = Y;
|