@berachain/config 0.0.3-beta.3 → 0.0.3-beta.5
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/{chunk-RJW7M2BA.cjs → chunk-53F3JXXK.cjs} +1 -1
- package/dist/chunk-5DVYYQFY.js +2 -0
- package/dist/{chunk-KWQ2WHU4.js → chunk-5SAQF6JU.js} +1 -1
- package/dist/{chunk-WCV4WTHG.cjs → chunk-6V2DUN43.cjs} +1 -1
- package/dist/{chunk-DHNVZCPX.js → chunk-CJ4YRGIP.js} +1 -1
- package/dist/{chunk-TB4XRJLK.js → chunk-DE64YNKJ.js} +1 -1
- package/dist/chunk-GID6ROYI.cjs +1 -0
- package/dist/{chunk-L2DF5H5Q.js → chunk-GIJFHJSE.js} +1 -1
- package/dist/chunk-L23DUDHG.js +1 -0
- package/dist/chunk-L72IF5MB.cjs +2 -0
- package/dist/{chunk-FFISDQSR.cjs → chunk-LBD37HXZ.cjs} +1 -1
- package/dist/{chunk-YYLX4CBV.cjs → chunk-MDBVRTXS.cjs} +1 -1
- package/dist/internal/edge-config/index.cjs +1 -1
- package/dist/internal/edge-config/index.js +1 -1
- package/dist/internal/flags/index.cjs +1 -1
- package/dist/internal/flags/index.js +1 -1
- package/dist/internal/header-sources.cjs +8 -8
- package/dist/internal/header-sources.js +8 -8
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +138 -30
- package/dist/internal/index.d.ts +138 -30
- package/dist/internal/index.js +1 -1
- package/dist/internal/nextjs/index.cjs +1 -1
- package/dist/internal/nextjs/index.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/{sentry.edge.config-HYRGDPSL.cjs → sentry.edge.config-CGRGAL2S.cjs} +1 -1
- package/dist/{sentry.edge.config-MSL7GELX.js → sentry.edge.config-DNO4WYF2.js} +1 -1
- package/dist/{sentry.server.config-JQJQDRDO.cjs → sentry.server.config-PMQVVPC4.cjs} +1 -1
- package/dist/{sentry.server.config-MN4FIAPC.js → sentry.server.config-UB2QDL2Q.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-7P77HD6A.js +0 -1
- package/dist/chunk-AEEJBUVN.cjs +0 -1
- package/dist/chunk-CPGCQL6H.cjs +0 -1
- package/dist/chunk-JTPDAOC4.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkL72IF5MBcjs = require('./chunk-L72IF5MB.cjs');if(_chunkL72IF5MBcjs.a!==80094&&_chunkL72IF5MBcjs.a!==80069)throw new Error(`Invalid chainId: ${_chunkL72IF5MBcjs.a}`);var s=_chunkL72IF5MBcjs.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(_chunkL72IF5MBcjs.a);exports.a = n; exports.b = R; exports.c = U; exports.d = l; exports.e = i;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-E3O7UH5M.js";var n=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;if(!Object.values(e).includes(n))throw new Error(`process.env.NEXT_PUBLIC_CHAIN_ID is invalid: ${n}.
|
|
2
|
+
This value must be one of the following: ${Object.values(e).join(", ")} when using @berachain/config/internal.`);export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-5DVYYQFY.js";var o=e===80094?"mainnet-":"bepolia-";process.env.VERCEL_TARGET_ENV==="production"?o+="production":o+="preview";export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL72IF5MBcjs = require('./chunk-L72IF5MB.cjs');var o=_chunkL72IF5MBcjs.a===80094?"mainnet-":"bepolia-";process.env.VERCEL_TARGET_ENV==="production"?o = exports.a+="production":o = exports.a+="preview";exports.a = o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-5DVYYQFY.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-5DVYYQFY.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 _chunkK62SDMWXcjs = require('./chunk-K62SDMWX.cjs');var _chunk6RLCJYH2cjs = require('./chunk-6RLCJYH2.cjs');var _chunkL72IF5MBcjs = require('./chunk-L72IF5MB.cjs');var s={80094:_chunk6RLCJYH2cjs.a,80069:_chunkK62SDMWXcjs.a},o=s[_chunkL72IF5MBcjs.a],i={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"},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"},urls:{postHogApiHost:"https://eu.i.posthog.com",cloudinary:"https://res.cloudinary.com/duv0g402y/image/upload/f_auto,q_auto/v1",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:_chunkL72IF5MBcjs.a!==80094&&_chunkL72IF5MBcjs.a!==80069,hideCurator:!1},bend:{...o.bend,liquidationWarningLtvMargin:.05,maxBorrowLtvMargin:1e-4,publicAllocatorSupplyTargetUtilizationWad:BigInt(9e17)}},h= exports.b ={...o,...i};exports.a = s; exports.b = h;
|
|
@@ -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-DNO4WYF2.js"):process.env.NEXT_RUNTIME==="nodejs"&&await import("./sentry.server.config-UB2QDL2Q.js")}function c(e){let o={...e,env:{...e.env,VERCEL_TARGET_ENV:process.env.VERCEL_TARGET_ENV},webpack:(t,n)=>(n.isServer&&!n.dev&&process.env.UPLOAD_SOURCEMAPS==="true"&&(t.devtool="source-map"),e.webpack?.(t,n)??t)};return r(o,{org:process.env.SENTRY_ORG,project:process.env.SENTRY_PROJECT,telemetry:!1,reactComponentAnnotation:{enabled:process.env.UPLOAD_SOURCEMAPS==="true"},widenClientFileUpload:process.env.UPLOAD_SOURCEMAPS==="true",sourcemaps:{disable:process.env.UPLOAD_SOURCEMAPS!=="true"},debug:process.env.UPLOAD_SOURCEMAPS==="true",tunnelRoute:"/monitoring-tunnel",automaticVercelMonitors:!0})}export{i as a,c as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-4ZZXDAVS.js";import{a as t}from"./chunk-BJUR72F2.js";import{a}from"./chunk-5DVYYQFY.js";var s={80094:t,80069:e},o=s[a],i={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"},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"},urls:{postHogApiHost:"https://eu.i.posthog.com",cloudinary:"https://res.cloudinary.com/duv0g402y/image/upload/f_auto,q_auto/v1",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)}},h={...o,...i};export{s as a,h as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3IPYHDYKcjs = require('./chunk-3IPYHDYK.cjs');var n=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;if(!Object.values(_chunk3IPYHDYKcjs.a).includes(n))throw new Error(`process.env.NEXT_PUBLIC_CHAIN_ID is invalid: ${n}.
|
|
2
|
+
This value must be one of the following: ${Object.values(_chunk3IPYHDYKcjs.a).join(", ")} when using @berachain/config/internal.`);exports.a = n;
|
|
@@ -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-CGRGAL2S.cjs"))):process.env.NEXT_RUNTIME==="nodejs"&&await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.server.config-PMQVVPC4.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
|
-
"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
|
|
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 _chunkL72IF5MBcjs = require('./chunk-L72IF5MB.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=_chunkL72IF5MBcjs.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;
|
|
@@ -1 +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
|
|
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 _chunkMDBVRTXScjs = require('../../chunk-MDBVRTXS.cjs');require('../../chunk-L72IF5MB.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 = _chunkMDBVRTXScjs.a; exports.safeGetAll = g; exports.safeGetConfig = m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"../../chunk-
|
|
1
|
+
import{a as i}from"../../chunk-CJ4YRGIP.js";import"../../chunk-5DVYYQFY.js";import"../../chunk-E3O7UH5M.js";import"../../chunk-WOT6VMZA.js";import{get as n}from"@vercel/edge-config";async function m(e,{onError:r}={}){try{return await n(e)}catch(o){r?.(o);return}}import{getAll as t}from"@vercel/edge-config";async function g({onError:e}={}){try{return await t()}catch(r){e?.(r);return}}export{i as isFlagEnabled,g as safeGetAll,m as safeGetConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMDBVRTXScjs = require('../../chunk-MDBVRTXS.cjs');require('../../chunk-L72IF5MB.cjs');require('../../chunk-3IPYHDYK.cjs');var _chunk4VDLQK6Fcjs = require('../../chunk-4VDLQK6F.cjs');var r={};_chunk4VDLQK6Fcjs.a.call(void 0, r,{enableEip5792:()=>c,hideStakeForSingleHolderVaults:()=>p,isBendLive:()=>b,isDefaultStakingPoolEnabled:()=>g,isGovernanceEnabled:()=>s,isRewardAllocatorRoleActive:()=>E,isVaultChartsEnabled:()=>f,proxyAggregatorsThroughVercel:()=>u});var _next = require('flags/next');var _edgeconfig = require('@flags-sdk/edge-config');function e(){let o=_edgeconfig.edgeConfigAdapter.call(void 0, );return{...o,async decide(l){let n=await o.decide(l);return _chunkMDBVRTXScjs.a.call(void 0, n)}}}var s=_next.flag.call(void 0, {key:"isGovernanceEnabled",description:"Enable Governance proposals",defaultValue:!0,adapter:e()}),p=_next.flag.call(void 0, {key:"hideStakeForSingleHolderVaults",description:"Hide stake for single holder vaults",defaultValue:!0,adapter:e()}),c=_next.flag.call(void 0, {key:"enableEip5792",description:"Enable EIP-5792 to allow batch transactions if wallet supports it",defaultValue:!0,adapter:e()}),u=_next.flag.call(void 0, {key:"proxyAggregatorsThroughVercel",description:"Proxy aggregators quotes through Vercel instead of proxy gateway",defaultValue:!1,adapter:e()}),g=_next.flag.call(void 0, {key:"isDefaultStakingPoolEnabled",description:"Enable default staking pools",defaultValue:!0,adapter:e()}),f=_next.flag.call(void 0, {key:"isVaultChartsEnabled",description:"Enable vault historical tvl and apr charts",defaultValue:!0,adapter:e()}),b=_next.flag.call(void 0, {key:"isBendLive",description:"Enable Bend live",defaultValue:!0,adapter:e()}),E=_next.flag.call(void 0, {key:"isRewardAllocatorRoleActive",description:"Reward Allocator role is active on BeraChef contract or not",defaultValue:!0,adapter:e()});exports.flags = r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"../../chunk-
|
|
1
|
+
import{a as t}from"../../chunk-CJ4YRGIP.js";import"../../chunk-5DVYYQFY.js";import"../../chunk-E3O7UH5M.js";import{a as i}from"../../chunk-WOT6VMZA.js";var r={};i(r,{enableEip5792:()=>c,hideStakeForSingleHolderVaults:()=>p,isBendLive:()=>b,isDefaultStakingPoolEnabled:()=>g,isGovernanceEnabled:()=>s,isRewardAllocatorRoleActive:()=>E,isVaultChartsEnabled:()=>f,proxyAggregatorsThroughVercel:()=>u});import{flag as a}from"flags/next";import{edgeConfigAdapter as d}from"@flags-sdk/edge-config";function e(){let o=d();return{...o,async decide(l){let n=await o.decide(l);return t(n)}}}var s=a({key:"isGovernanceEnabled",description:"Enable Governance proposals",defaultValue:!0,adapter:e()}),p=a({key:"hideStakeForSingleHolderVaults",description:"Hide stake for single holder vaults",defaultValue:!0,adapter:e()}),c=a({key:"enableEip5792",description:"Enable EIP-5792 to allow batch transactions if wallet supports it",defaultValue:!0,adapter:e()}),u=a({key:"proxyAggregatorsThroughVercel",description:"Proxy aggregators quotes through Vercel instead of proxy gateway",defaultValue:!1,adapter:e()}),g=a({key:"isDefaultStakingPoolEnabled",description:"Enable default staking pools",defaultValue:!0,adapter:e()}),f=a({key:"isVaultChartsEnabled",description:"Enable vault historical tvl and apr charts",defaultValue:!0,adapter:e()}),b=a({key:"isBendLive",description:"Enable Bend live",defaultValue:!0,adapter:e()}),E=a({key:"isRewardAllocatorRoleActive",description:"Reward Allocator role is active on BeraChef contract or not",defaultValue:!0,adapter:e()});export{r as flags};
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
|
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 _chunkGID6ROYIcjs = require('../chunk-GID6ROYI.cjs');var _chunk53F3JXXKcjs = require('../chunk-53F3JXXK.cjs');require('../chunk-K62SDMWX.cjs');require('../chunk-6RLCJYH2.cjs');require('../chunk-L72IF5MB.cjs');require('../chunk-3IPYHDYK.cjs');require('../chunk-4VDLQK6F.cjs');function b({isDevelopment:o,nonce:a,...s}){let i=["https://*.berachain.com/","https://*.berachain-staging.com/","wss://www.walletlink.org/rpc",`https://*.dynamicauth.com/api/v0/sdk/${_chunkGID6ROYIcjs.b.apiKeys.public.dynamicWallet}/`,`https://logs.dynamicauth.com/api/v1/${_chunkGID6ROYIcjs.b.apiKeys.public.dynamicWallet}`,"https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json","https://raw.githubusercontent.com/berachain/metadata/","https://*.bera-network.quiknode.pro","https://*.bepolia-network.quiknode.pro",_chunkGID6ROYIcjs.b.governance.subgraph,_chunkGID6ROYIcjs.b.honey.subgraph,_chunkGID6ROYIcjs.b.pol.subgraph,_chunkGID6ROYIcjs.b.pol.bribeBoostApi,_chunkGID6ROYIcjs.b.bex.subgraph,_chunkGID6ROYIcjs.b.api,_chunkGID6ROYIcjs.b.blocksSubgraph,_chunk53F3JXXKcjs.c,_chunk53F3JXXKcjs.b,_chunk53F3JXXKcjs.d,"https://open-api.openocean.finance/","https://api.haiku.trade/","https://api.magpiefi.xyz/",`${_chunkGID6ROYIcjs.b.bex.aggregatorsProxyUrl}/`,"wss://relay.walletconnect.com/","wss://relay.walletconnect.org/","https://api.routescan.io/v2/network/","wss://metamask-sdk.api.cx.metamask.io/socket.io/","https://*.posthog.com","https://vercel.live","wss://ws-us3.pusher.com","https://cdn.markfi.xyz/scripts/analytics/","https://a.markfi.xyz/"].concat(_nullishCoalesce(s.connectionSources, () => ([]))).filter((e,u)=>!e||e.trim()===""?(process.env.NODE_ENV==="production"&&console.warn("One of connectionSources is empty or undefined. Idx:",u),!1):!0),p=["https://res.cloudinary.com/duv0g402y/","https://raw.githubusercontent.com/berachain/default-lists/","https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://coin-images.coingecko.com/coins/images/","https://iconic.dynamic-static-assets.com/","https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/","https://icons.llama.fi/","https://icons.llamao.fi/","https://cdn.whisk.so/","https://cdn.morpho.org/","https://raw.githubusercontent.com/trustwallet/assets/","https://*.posthog.com","https://vercel.live","https://vercel.com"].concat(_nullishCoalesce(s.pictureSources, () => ([]))).filter(e=>!e||e.trim()===""?(process.env.NODE_ENV==="production"&&console.warn("One of pictureSources is empty or undefined"),!1):!0),l=["https://verify.walletconnect.com/","https://verify.walletconnect.org/","https://*.posthog.com","https://vercel.live/"].concat(_nullishCoalesce(s.frameSources, () => ([]))),h=["https://cdn.jsdelivr.net/npm/@fontsource/","https://*.posthog.com","https://vercel.live","https://assets.vercel.com"].concat(_nullishCoalesce(s.fontSources, () => ([]))),m=["https://*.posthog.com","https://vercel.live"].concat(_nullishCoalesce(s.styleSources, () => ([])));return`
|
|
2
2
|
default-src 'self';
|
|
3
3
|
base-uri 'self';
|
|
4
|
-
frame-src 'self' ${
|
|
4
|
+
frame-src 'self' ${l.join(" ")};
|
|
5
5
|
frame-ancestors 'self' https://*.posthog.com;
|
|
6
|
-
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${
|
|
6
|
+
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${a}' https://*.posthog.com 'strict-dynamic' ${o?"'unsafe-eval'":""};
|
|
7
7
|
worker-src 'self' blob: data:;
|
|
8
|
-
font-src 'self' ${
|
|
9
|
-
style-src 'self' ${
|
|
10
|
-
img-src 'self' data: ${
|
|
11
|
-
connect-src 'self' ${
|
|
8
|
+
font-src 'self' ${h.join(" ")};
|
|
9
|
+
style-src 'self' ${m.join(" ")} 'unsafe-inline';
|
|
10
|
+
img-src 'self' data: ${p.join(" ")};
|
|
11
|
+
connect-src 'self' ${i.join(" ")};
|
|
12
12
|
media-src https://*.posthog.com;
|
|
13
|
-
`.replace(/\s{2,}/g," ").trim()}var
|
|
13
|
+
`.replace(/\s{2,}/g," ").trim()}var y=[_nullishCoalesce((_optionalChain([_chunkGID6ROYIcjs.b, 'access', _ => _.urls, 'access', _2 => _2.cloudinary, 'optionalAccess', _3 => _3.split, 'call', _4 => _4("image"), 'access', _5 => _5[0]])||_optionalChain([_chunkGID6ROYIcjs.b, 'access', _6 => _6.urls, 'access', _7 => _7.cloudinary, 'optionalAccess', _8 => _8.split, 'call', _9 => _9("raw"), 'access', _10 => _10[0]])), () => ("")),"https://raw.githubusercontent.com/berachain/default-lists/","https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://iconic.dynamic-static-assets.com/","https://berachain.ghost.io/content/images/"].filter(o=>!o||o.trim()===""?(console.warn("One of pictureSources is empty or undefined"),!1):!0);exports.getContentSecurityPolicy = b; exports.staticPictureSources = y;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as t}from"../chunk-L23DUDHG.js";import{b as c,c as n,d as r}from"../chunk-DE64YNKJ.js";import"../chunk-4ZZXDAVS.js";import"../chunk-BJUR72F2.js";import"../chunk-5DVYYQFY.js";import"../chunk-E3O7UH5M.js";import"../chunk-WOT6VMZA.js";function b({isDevelopment:o,nonce:a,...s}){let i=["https://*.berachain.com/","https://*.berachain-staging.com/","wss://www.walletlink.org/rpc",`https://*.dynamicauth.com/api/v0/sdk/${t.apiKeys.public.dynamicWallet}/`,`https://logs.dynamicauth.com/api/v1/${t.apiKeys.public.dynamicWallet}`,"https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json","https://raw.githubusercontent.com/berachain/metadata/","https://*.bera-network.quiknode.pro","https://*.bepolia-network.quiknode.pro",t.governance.subgraph,t.honey.subgraph,t.pol.subgraph,t.pol.bribeBoostApi,t.bex.subgraph,t.api,t.blocksSubgraph,n,c,r,"https://open-api.openocean.finance/","https://api.haiku.trade/","https://api.magpiefi.xyz/",`${t.bex.aggregatorsProxyUrl}/`,"wss://relay.walletconnect.com/","wss://relay.walletconnect.org/","https://api.routescan.io/v2/network/","wss://metamask-sdk.api.cx.metamask.io/socket.io/","https://*.posthog.com","https://vercel.live","wss://ws-us3.pusher.com","https://cdn.markfi.xyz/scripts/analytics/","https://a.markfi.xyz/"].concat(s.connectionSources??[]).filter((e,u)=>!e||e.trim()===""?(process.env.NODE_ENV==="production"&&console.warn("One of connectionSources is empty or undefined. Idx:",u),!1):!0),p=["https://res.cloudinary.com/duv0g402y/","https://raw.githubusercontent.com/berachain/default-lists/","https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://coin-images.coingecko.com/coins/images/","https://iconic.dynamic-static-assets.com/","https://beranames-assets-berachain.s3.eu-central-003.backblazeb2.com/","https://icons.llama.fi/","https://icons.llamao.fi/","https://cdn.whisk.so/","https://cdn.morpho.org/","https://raw.githubusercontent.com/trustwallet/assets/","https://*.posthog.com","https://vercel.live","https://vercel.com"].concat(s.pictureSources??[]).filter(e=>!e||e.trim()===""?(process.env.NODE_ENV==="production"&&console.warn("One of pictureSources is empty or undefined"),!1):!0),l=["https://verify.walletconnect.com/","https://verify.walletconnect.org/","https://*.posthog.com","https://vercel.live/"].concat(s.frameSources??[]),h=["https://cdn.jsdelivr.net/npm/@fontsource/","https://*.posthog.com","https://vercel.live","https://assets.vercel.com"].concat(s.fontSources??[]),m=["https://*.posthog.com","https://vercel.live"].concat(s.styleSources??[]);return`
|
|
2
2
|
default-src 'self';
|
|
3
3
|
base-uri 'self';
|
|
4
|
-
frame-src 'self' ${
|
|
4
|
+
frame-src 'self' ${l.join(" ")};
|
|
5
5
|
frame-ancestors 'self' https://*.posthog.com;
|
|
6
|
-
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${
|
|
6
|
+
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${a}' https://*.posthog.com 'strict-dynamic' ${o?"'unsafe-eval'":""};
|
|
7
7
|
worker-src 'self' blob: data:;
|
|
8
|
-
font-src 'self' ${
|
|
9
|
-
style-src 'self' ${
|
|
10
|
-
img-src 'self' data: ${
|
|
11
|
-
connect-src 'self' ${
|
|
8
|
+
font-src 'self' ${h.join(" ")};
|
|
9
|
+
style-src 'self' ${m.join(" ")} 'unsafe-inline';
|
|
10
|
+
img-src 'self' data: ${p.join(" ")};
|
|
11
|
+
connect-src 'self' ${i.join(" ")};
|
|
12
12
|
media-src https://*.posthog.com;
|
|
13
|
-
`.replace(/\s{2,}/g," ").trim()}var
|
|
13
|
+
`.replace(/\s{2,}/g," ").trim()}var y=[(t.urls.cloudinary?.split("image")[0]||t.urls.cloudinary?.split("raw")[0])??"","https://raw.githubusercontent.com/berachain/default-lists/","https://raw.githubusercontent.com/berachain/metadata/","https://assets.coingecko.com/coins/images/","https://iconic.dynamic-static-assets.com/","https://berachain.ghost.io/content/images/"].filter(o=>!o||o.trim()===""?(console.warn("One of pictureSources is empty or undefined"),!1):!0);export{b as getContentSecurityPolicy,y as staticPictureSources};
|
package/dist/internal/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGID6ROYIcjs = require('../chunk-GID6ROYI.cjs');var _chunk53F3JXXKcjs = require('../chunk-53F3JXXK.cjs');require('../chunk-K62SDMWX.cjs');require('../chunk-6RLCJYH2.cjs');var _chunkL72IF5MBcjs = require('../chunk-L72IF5MB.cjs');var _chunk3IPYHDYKcjs = require('../chunk-3IPYHDYK.cjs');require('../chunk-4VDLQK6F.cjs');exports.ChainId = _chunk3IPYHDYKcjs.a; exports.alchemyJsonRpcUrl = _chunk53F3JXXKcjs.d; exports.chainConfigs = _chunkGID6ROYIcjs.a; exports.chainId = _chunkL72IF5MBcjs.a; exports.config = _chunkGID6ROYIcjs.b; exports.defaultChainId = _chunkL72IF5MBcjs.a; exports.getRpcUrls = _chunk53F3JXXKcjs.a; exports.jsonRpcUrl = _chunk53F3JXXKcjs.c; exports.privateRcpUrl = _chunk53F3JXXKcjs.e; exports.publicJsonRpcUrl = _chunk53F3JXXKcjs.b;
|
|
@@ -239,23 +239,12 @@ declare const chainConfigs: {
|
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
241
|
declare const config: {
|
|
242
|
-
readonly bend: {
|
|
243
|
-
readonly liquidationWarningLtvMargin: 0.05;
|
|
244
|
-
readonly maxBorrowLtvMargin: 0.0001;
|
|
245
|
-
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
246
|
-
readonly name: "Bend";
|
|
247
|
-
readonly url: "https://bend.berachain.com";
|
|
248
|
-
readonly supportedVaults: `0x${string}`[];
|
|
249
|
-
} | {
|
|
250
|
-
readonly liquidationWarningLtvMargin: 0.05;
|
|
251
|
-
readonly maxBorrowLtvMargin: 0.0001;
|
|
252
|
-
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
253
|
-
readonly name: "Bend";
|
|
254
|
-
readonly url: "https://bepolia.bend.berachain.com";
|
|
255
|
-
readonly supportedVaults: Address[];
|
|
256
|
-
};
|
|
257
242
|
readonly apiKeys: {
|
|
258
243
|
readonly public: {
|
|
244
|
+
/**
|
|
245
|
+
* This is only going to work on whitelisted domains.
|
|
246
|
+
* Please create your own API key and add it to your .env.local file
|
|
247
|
+
*/
|
|
259
248
|
readonly dynamicWallet: string;
|
|
260
249
|
readonly postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax";
|
|
261
250
|
readonly cookie3SiteId: string;
|
|
@@ -269,15 +258,38 @@ declare const config: {
|
|
|
269
258
|
};
|
|
270
259
|
};
|
|
271
260
|
readonly addresses: {
|
|
261
|
+
/**
|
|
262
|
+
* This is an hardcoded value in contracts to detected wheter governance can
|
|
263
|
+
* change pool fees and amplification parameter.
|
|
264
|
+
*
|
|
265
|
+
* @see https://docs.balancer.fi/concepts/pools/more/configuration.html#fees
|
|
266
|
+
*/
|
|
272
267
|
readonly balancerDelegatedOwnership: `0x${string}`;
|
|
268
|
+
/**
|
|
269
|
+
* This is on genesis for Berachain
|
|
270
|
+
*/
|
|
273
271
|
readonly multicall: `0x${string}`;
|
|
274
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* Public faucet configuration.
|
|
275
|
+
*
|
|
276
|
+
* Mainly used in static-monobera.
|
|
277
|
+
*/
|
|
275
278
|
readonly faucet: {
|
|
276
279
|
readonly name: "Faucet";
|
|
277
280
|
readonly url: "https://bepolia.faucet.berachain.com";
|
|
281
|
+
/**
|
|
282
|
+
* Amount of BERA the user will receive when using the faucet
|
|
283
|
+
*/
|
|
278
284
|
readonly dripAmount: 1;
|
|
285
|
+
/**
|
|
286
|
+
* Time in hours between each drip
|
|
287
|
+
*/
|
|
279
288
|
readonly timeGap: 8;
|
|
280
289
|
readonly cloudflareKey: string;
|
|
290
|
+
/**
|
|
291
|
+
* API endpoint to send the request to the faucet
|
|
292
|
+
*/
|
|
281
293
|
readonly endpoint: "https://faucet-api.testnet.berachain.com";
|
|
282
294
|
};
|
|
283
295
|
readonly urls: {
|
|
@@ -296,9 +308,51 @@ declare const config: {
|
|
|
296
308
|
};
|
|
297
309
|
readonly flags: {
|
|
298
310
|
readonly developmentAnalyticsEnabled: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* Disallow SEO indexing for non-mainnet deployments
|
|
313
|
+
*/
|
|
299
314
|
readonly disallowIndexing: boolean;
|
|
300
315
|
readonly hideCurator: false;
|
|
301
316
|
};
|
|
317
|
+
readonly bend: {
|
|
318
|
+
/**
|
|
319
|
+
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
320
|
+
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
321
|
+
*/
|
|
322
|
+
readonly liquidationWarningLtvMargin: 0.05;
|
|
323
|
+
/**
|
|
324
|
+
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
325
|
+
* e.g. if max LTV is 0.945, borrow limit will be 0.9449
|
|
326
|
+
*/
|
|
327
|
+
readonly maxBorrowLtvMargin: 0.0001;
|
|
328
|
+
/**
|
|
329
|
+
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
330
|
+
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
331
|
+
*/
|
|
332
|
+
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
333
|
+
readonly name: "Bend";
|
|
334
|
+
readonly url: "https://bend.berachain.com";
|
|
335
|
+
readonly supportedVaults: `0x${string}`[];
|
|
336
|
+
} | {
|
|
337
|
+
/**
|
|
338
|
+
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
339
|
+
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
340
|
+
*/
|
|
341
|
+
readonly liquidationWarningLtvMargin: 0.05;
|
|
342
|
+
/**
|
|
343
|
+
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
344
|
+
* e.g. if max LTV is 0.945, borrow limit will be 0.9449
|
|
345
|
+
*/
|
|
346
|
+
readonly maxBorrowLtvMargin: 0.0001;
|
|
347
|
+
/**
|
|
348
|
+
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
349
|
+
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
350
|
+
*/
|
|
351
|
+
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
352
|
+
readonly name: "Bend";
|
|
353
|
+
readonly url: "https://bepolia.bend.berachain.com";
|
|
354
|
+
readonly supportedVaults: Address[];
|
|
355
|
+
};
|
|
302
356
|
readonly tokens: {
|
|
303
357
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
304
358
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
@@ -396,23 +450,12 @@ declare const config: {
|
|
|
396
450
|
readonly name: string;
|
|
397
451
|
};
|
|
398
452
|
} | {
|
|
399
|
-
readonly bend: {
|
|
400
|
-
readonly liquidationWarningLtvMargin: 0.05;
|
|
401
|
-
readonly maxBorrowLtvMargin: 0.0001;
|
|
402
|
-
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
403
|
-
readonly name: "Bend";
|
|
404
|
-
readonly url: "https://bend.berachain.com";
|
|
405
|
-
readonly supportedVaults: `0x${string}`[];
|
|
406
|
-
} | {
|
|
407
|
-
readonly liquidationWarningLtvMargin: 0.05;
|
|
408
|
-
readonly maxBorrowLtvMargin: 0.0001;
|
|
409
|
-
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
410
|
-
readonly name: "Bend";
|
|
411
|
-
readonly url: "https://bepolia.bend.berachain.com";
|
|
412
|
-
readonly supportedVaults: Address[];
|
|
413
|
-
};
|
|
414
453
|
readonly apiKeys: {
|
|
415
454
|
readonly public: {
|
|
455
|
+
/**
|
|
456
|
+
* This is only going to work on whitelisted domains.
|
|
457
|
+
* Please create your own API key and add it to your .env.local file
|
|
458
|
+
*/
|
|
416
459
|
readonly dynamicWallet: string;
|
|
417
460
|
readonly postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax";
|
|
418
461
|
readonly cookie3SiteId: string;
|
|
@@ -426,15 +469,38 @@ declare const config: {
|
|
|
426
469
|
};
|
|
427
470
|
};
|
|
428
471
|
readonly addresses: {
|
|
472
|
+
/**
|
|
473
|
+
* This is an hardcoded value in contracts to detected wheter governance can
|
|
474
|
+
* change pool fees and amplification parameter.
|
|
475
|
+
*
|
|
476
|
+
* @see https://docs.balancer.fi/concepts/pools/more/configuration.html#fees
|
|
477
|
+
*/
|
|
429
478
|
readonly balancerDelegatedOwnership: `0x${string}`;
|
|
479
|
+
/**
|
|
480
|
+
* This is on genesis for Berachain
|
|
481
|
+
*/
|
|
430
482
|
readonly multicall: `0x${string}`;
|
|
431
483
|
};
|
|
484
|
+
/**
|
|
485
|
+
* Public faucet configuration.
|
|
486
|
+
*
|
|
487
|
+
* Mainly used in static-monobera.
|
|
488
|
+
*/
|
|
432
489
|
readonly faucet: {
|
|
433
490
|
readonly name: "Faucet";
|
|
434
491
|
readonly url: "https://bepolia.faucet.berachain.com";
|
|
492
|
+
/**
|
|
493
|
+
* Amount of BERA the user will receive when using the faucet
|
|
494
|
+
*/
|
|
435
495
|
readonly dripAmount: 1;
|
|
496
|
+
/**
|
|
497
|
+
* Time in hours between each drip
|
|
498
|
+
*/
|
|
436
499
|
readonly timeGap: 8;
|
|
437
500
|
readonly cloudflareKey: string;
|
|
501
|
+
/**
|
|
502
|
+
* API endpoint to send the request to the faucet
|
|
503
|
+
*/
|
|
438
504
|
readonly endpoint: "https://faucet-api.testnet.berachain.com";
|
|
439
505
|
};
|
|
440
506
|
readonly urls: {
|
|
@@ -453,9 +519,51 @@ declare const config: {
|
|
|
453
519
|
};
|
|
454
520
|
readonly flags: {
|
|
455
521
|
readonly developmentAnalyticsEnabled: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* Disallow SEO indexing for non-mainnet deployments
|
|
524
|
+
*/
|
|
456
525
|
readonly disallowIndexing: boolean;
|
|
457
526
|
readonly hideCurator: false;
|
|
458
527
|
};
|
|
528
|
+
readonly bend: {
|
|
529
|
+
/**
|
|
530
|
+
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
531
|
+
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
532
|
+
*/
|
|
533
|
+
readonly liquidationWarningLtvMargin: 0.05;
|
|
534
|
+
/**
|
|
535
|
+
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
536
|
+
* e.g. if max LTV is 0.945, borrow limit will be 0.9449
|
|
537
|
+
*/
|
|
538
|
+
readonly maxBorrowLtvMargin: 0.0001;
|
|
539
|
+
/**
|
|
540
|
+
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
541
|
+
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
542
|
+
*/
|
|
543
|
+
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
544
|
+
readonly name: "Bend";
|
|
545
|
+
readonly url: "https://bend.berachain.com";
|
|
546
|
+
readonly supportedVaults: `0x${string}`[];
|
|
547
|
+
} | {
|
|
548
|
+
/**
|
|
549
|
+
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
550
|
+
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
551
|
+
*/
|
|
552
|
+
readonly liquidationWarningLtvMargin: 0.05;
|
|
553
|
+
/**
|
|
554
|
+
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
555
|
+
* e.g. if max LTV is 0.945, borrow limit will be 0.9449
|
|
556
|
+
*/
|
|
557
|
+
readonly maxBorrowLtvMargin: 0.0001;
|
|
558
|
+
/**
|
|
559
|
+
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
560
|
+
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
561
|
+
*/
|
|
562
|
+
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
563
|
+
readonly name: "Bend";
|
|
564
|
+
readonly url: "https://bepolia.bend.berachain.com";
|
|
565
|
+
readonly supportedVaults: Address[];
|
|
566
|
+
};
|
|
459
567
|
readonly tokens: {
|
|
460
568
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
461
569
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -239,23 +239,12 @@ declare const chainConfigs: {
|
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
241
|
declare const config: {
|
|
242
|
-
readonly bend: {
|
|
243
|
-
readonly liquidationWarningLtvMargin: 0.05;
|
|
244
|
-
readonly maxBorrowLtvMargin: 0.0001;
|
|
245
|
-
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
246
|
-
readonly name: "Bend";
|
|
247
|
-
readonly url: "https://bend.berachain.com";
|
|
248
|
-
readonly supportedVaults: `0x${string}`[];
|
|
249
|
-
} | {
|
|
250
|
-
readonly liquidationWarningLtvMargin: 0.05;
|
|
251
|
-
readonly maxBorrowLtvMargin: 0.0001;
|
|
252
|
-
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
253
|
-
readonly name: "Bend";
|
|
254
|
-
readonly url: "https://bepolia.bend.berachain.com";
|
|
255
|
-
readonly supportedVaults: Address[];
|
|
256
|
-
};
|
|
257
242
|
readonly apiKeys: {
|
|
258
243
|
readonly public: {
|
|
244
|
+
/**
|
|
245
|
+
* This is only going to work on whitelisted domains.
|
|
246
|
+
* Please create your own API key and add it to your .env.local file
|
|
247
|
+
*/
|
|
259
248
|
readonly dynamicWallet: string;
|
|
260
249
|
readonly postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax";
|
|
261
250
|
readonly cookie3SiteId: string;
|
|
@@ -269,15 +258,38 @@ declare const config: {
|
|
|
269
258
|
};
|
|
270
259
|
};
|
|
271
260
|
readonly addresses: {
|
|
261
|
+
/**
|
|
262
|
+
* This is an hardcoded value in contracts to detected wheter governance can
|
|
263
|
+
* change pool fees and amplification parameter.
|
|
264
|
+
*
|
|
265
|
+
* @see https://docs.balancer.fi/concepts/pools/more/configuration.html#fees
|
|
266
|
+
*/
|
|
272
267
|
readonly balancerDelegatedOwnership: `0x${string}`;
|
|
268
|
+
/**
|
|
269
|
+
* This is on genesis for Berachain
|
|
270
|
+
*/
|
|
273
271
|
readonly multicall: `0x${string}`;
|
|
274
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* Public faucet configuration.
|
|
275
|
+
*
|
|
276
|
+
* Mainly used in static-monobera.
|
|
277
|
+
*/
|
|
275
278
|
readonly faucet: {
|
|
276
279
|
readonly name: "Faucet";
|
|
277
280
|
readonly url: "https://bepolia.faucet.berachain.com";
|
|
281
|
+
/**
|
|
282
|
+
* Amount of BERA the user will receive when using the faucet
|
|
283
|
+
*/
|
|
278
284
|
readonly dripAmount: 1;
|
|
285
|
+
/**
|
|
286
|
+
* Time in hours between each drip
|
|
287
|
+
*/
|
|
279
288
|
readonly timeGap: 8;
|
|
280
289
|
readonly cloudflareKey: string;
|
|
290
|
+
/**
|
|
291
|
+
* API endpoint to send the request to the faucet
|
|
292
|
+
*/
|
|
281
293
|
readonly endpoint: "https://faucet-api.testnet.berachain.com";
|
|
282
294
|
};
|
|
283
295
|
readonly urls: {
|
|
@@ -296,9 +308,51 @@ declare const config: {
|
|
|
296
308
|
};
|
|
297
309
|
readonly flags: {
|
|
298
310
|
readonly developmentAnalyticsEnabled: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* Disallow SEO indexing for non-mainnet deployments
|
|
313
|
+
*/
|
|
299
314
|
readonly disallowIndexing: boolean;
|
|
300
315
|
readonly hideCurator: false;
|
|
301
316
|
};
|
|
317
|
+
readonly bend: {
|
|
318
|
+
/**
|
|
319
|
+
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
320
|
+
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
321
|
+
*/
|
|
322
|
+
readonly liquidationWarningLtvMargin: 0.05;
|
|
323
|
+
/**
|
|
324
|
+
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
325
|
+
* e.g. if max LTV is 0.945, borrow limit will be 0.9449
|
|
326
|
+
*/
|
|
327
|
+
readonly maxBorrowLtvMargin: 0.0001;
|
|
328
|
+
/**
|
|
329
|
+
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
330
|
+
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
331
|
+
*/
|
|
332
|
+
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
333
|
+
readonly name: "Bend";
|
|
334
|
+
readonly url: "https://bend.berachain.com";
|
|
335
|
+
readonly supportedVaults: `0x${string}`[];
|
|
336
|
+
} | {
|
|
337
|
+
/**
|
|
338
|
+
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
339
|
+
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
340
|
+
*/
|
|
341
|
+
readonly liquidationWarningLtvMargin: 0.05;
|
|
342
|
+
/**
|
|
343
|
+
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
344
|
+
* e.g. if max LTV is 0.945, borrow limit will be 0.9449
|
|
345
|
+
*/
|
|
346
|
+
readonly maxBorrowLtvMargin: 0.0001;
|
|
347
|
+
/**
|
|
348
|
+
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
349
|
+
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
350
|
+
*/
|
|
351
|
+
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
352
|
+
readonly name: "Bend";
|
|
353
|
+
readonly url: "https://bepolia.bend.berachain.com";
|
|
354
|
+
readonly supportedVaults: Address[];
|
|
355
|
+
};
|
|
302
356
|
readonly tokens: {
|
|
303
357
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
304
358
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
@@ -396,23 +450,12 @@ declare const config: {
|
|
|
396
450
|
readonly name: string;
|
|
397
451
|
};
|
|
398
452
|
} | {
|
|
399
|
-
readonly bend: {
|
|
400
|
-
readonly liquidationWarningLtvMargin: 0.05;
|
|
401
|
-
readonly maxBorrowLtvMargin: 0.0001;
|
|
402
|
-
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
403
|
-
readonly name: "Bend";
|
|
404
|
-
readonly url: "https://bend.berachain.com";
|
|
405
|
-
readonly supportedVaults: `0x${string}`[];
|
|
406
|
-
} | {
|
|
407
|
-
readonly liquidationWarningLtvMargin: 0.05;
|
|
408
|
-
readonly maxBorrowLtvMargin: 0.0001;
|
|
409
|
-
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
410
|
-
readonly name: "Bend";
|
|
411
|
-
readonly url: "https://bepolia.bend.berachain.com";
|
|
412
|
-
readonly supportedVaults: Address[];
|
|
413
|
-
};
|
|
414
453
|
readonly apiKeys: {
|
|
415
454
|
readonly public: {
|
|
455
|
+
/**
|
|
456
|
+
* This is only going to work on whitelisted domains.
|
|
457
|
+
* Please create your own API key and add it to your .env.local file
|
|
458
|
+
*/
|
|
416
459
|
readonly dynamicWallet: string;
|
|
417
460
|
readonly postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax";
|
|
418
461
|
readonly cookie3SiteId: string;
|
|
@@ -426,15 +469,38 @@ declare const config: {
|
|
|
426
469
|
};
|
|
427
470
|
};
|
|
428
471
|
readonly addresses: {
|
|
472
|
+
/**
|
|
473
|
+
* This is an hardcoded value in contracts to detected wheter governance can
|
|
474
|
+
* change pool fees and amplification parameter.
|
|
475
|
+
*
|
|
476
|
+
* @see https://docs.balancer.fi/concepts/pools/more/configuration.html#fees
|
|
477
|
+
*/
|
|
429
478
|
readonly balancerDelegatedOwnership: `0x${string}`;
|
|
479
|
+
/**
|
|
480
|
+
* This is on genesis for Berachain
|
|
481
|
+
*/
|
|
430
482
|
readonly multicall: `0x${string}`;
|
|
431
483
|
};
|
|
484
|
+
/**
|
|
485
|
+
* Public faucet configuration.
|
|
486
|
+
*
|
|
487
|
+
* Mainly used in static-monobera.
|
|
488
|
+
*/
|
|
432
489
|
readonly faucet: {
|
|
433
490
|
readonly name: "Faucet";
|
|
434
491
|
readonly url: "https://bepolia.faucet.berachain.com";
|
|
492
|
+
/**
|
|
493
|
+
* Amount of BERA the user will receive when using the faucet
|
|
494
|
+
*/
|
|
435
495
|
readonly dripAmount: 1;
|
|
496
|
+
/**
|
|
497
|
+
* Time in hours between each drip
|
|
498
|
+
*/
|
|
436
499
|
readonly timeGap: 8;
|
|
437
500
|
readonly cloudflareKey: string;
|
|
501
|
+
/**
|
|
502
|
+
* API endpoint to send the request to the faucet
|
|
503
|
+
*/
|
|
438
504
|
readonly endpoint: "https://faucet-api.testnet.berachain.com";
|
|
439
505
|
};
|
|
440
506
|
readonly urls: {
|
|
@@ -453,9 +519,51 @@ declare const config: {
|
|
|
453
519
|
};
|
|
454
520
|
readonly flags: {
|
|
455
521
|
readonly developmentAnalyticsEnabled: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* Disallow SEO indexing for non-mainnet deployments
|
|
524
|
+
*/
|
|
456
525
|
readonly disallowIndexing: boolean;
|
|
457
526
|
readonly hideCurator: false;
|
|
458
527
|
};
|
|
528
|
+
readonly bend: {
|
|
529
|
+
/**
|
|
530
|
+
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
531
|
+
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
532
|
+
*/
|
|
533
|
+
readonly liquidationWarningLtvMargin: 0.05;
|
|
534
|
+
/**
|
|
535
|
+
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
536
|
+
* e.g. if max LTV is 0.945, borrow limit will be 0.9449
|
|
537
|
+
*/
|
|
538
|
+
readonly maxBorrowLtvMargin: 0.0001;
|
|
539
|
+
/**
|
|
540
|
+
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
541
|
+
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
542
|
+
*/
|
|
543
|
+
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
544
|
+
readonly name: "Bend";
|
|
545
|
+
readonly url: "https://bend.berachain.com";
|
|
546
|
+
readonly supportedVaults: `0x${string}`[];
|
|
547
|
+
} | {
|
|
548
|
+
/**
|
|
549
|
+
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
550
|
+
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
551
|
+
*/
|
|
552
|
+
readonly liquidationWarningLtvMargin: 0.05;
|
|
553
|
+
/**
|
|
554
|
+
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
555
|
+
* e.g. if max LTV is 0.945, borrow limit will be 0.9449
|
|
556
|
+
*/
|
|
557
|
+
readonly maxBorrowLtvMargin: 0.0001;
|
|
558
|
+
/**
|
|
559
|
+
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
560
|
+
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
561
|
+
*/
|
|
562
|
+
readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
|
|
563
|
+
readonly name: "Bend";
|
|
564
|
+
readonly url: "https://bepolia.bend.berachain.com";
|
|
565
|
+
readonly supportedVaults: Address[];
|
|
566
|
+
};
|
|
459
567
|
readonly tokens: {
|
|
460
568
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
461
569
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
package/dist/internal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as h,b as i}from"../chunk-L23DUDHG.js";import{a as c,b as d,c as e,d as f,e as g}from"../chunk-DE64YNKJ.js";import"../chunk-4ZZXDAVS.js";import"../chunk-BJUR72F2.js";import{a as b}from"../chunk-5DVYYQFY.js";import{a}from"../chunk-E3O7UH5M.js";import"../chunk-WOT6VMZA.js";export{a as ChainId,f as alchemyJsonRpcUrl,h as chainConfigs,b as chainId,i as config,b as defaultChainId,c as getRpcUrls,e as jsonRpcUrl,g as privateRcpUrl,d as publicJsonRpcUrl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkLBD37HXZcjs = require('../../chunk-LBD37HXZ.cjs');require('../../chunk-4VDLQK6F.cjs');var _dotenv = require('dotenv'); var _dotenv2 = _interopRequireDefault(_dotenv);_dotenv2.default.config({path:["../../.env.local","../../.env"]});function p(t,{withSentry:a=!0}={}){let o={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true"},experimental:{webpackBuildWorker:!0},eslint:{ignoreDuringBuilds:!0},typescript:{ignoreBuildErrors:!0},...t,images:{...t.images,remotePatterns:[{protocol:"https",hostname:"cdn.morpho.org",port:"",pathname:"**"},{protocol:"https",hostname:"raw.githubusercontent.com",port:"",pathname:"/trustwallet/assets/**"},{protocol:"https",hostname:"cdn.whisk.so",port:"",pathname:"**"},{protocol:"https",hostname:"res.cloudinary.com",port:"",pathname:"/duv0g402y/**"},{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:"https://icons.llama.fi",port:"",pathname:"/**"},{protocol:"https",hostname:"https://icons.llamao.fi",port:"",pathname:"/**"},{protocol:"https",hostname:"coin-images.coingecko.com",port:"",pathname:"/asset_platforms/images/**"},..._nullishCoalesce(_optionalChain([t, 'access', _ => _.images, 'optionalAccess', _2 => _2.remotePatterns]), () => ([]))]}};return a?_chunkLBD37HXZcjs.b.call(void 0, o):o}exports.withBeraConfig = p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../../chunk-
|
|
1
|
+
import{b as e}from"../../chunk-GIJFHJSE.js";import"../../chunk-WOT6VMZA.js";import r from"dotenv";r.config({path:["../../.env.local","../../.env"]});function p(t,{withSentry:a=!0}={}){let o={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true"},experimental:{webpackBuildWorker:!0},eslint:{ignoreDuringBuilds:!0},typescript:{ignoreBuildErrors:!0},...t,images:{...t.images,remotePatterns:[{protocol:"https",hostname:"cdn.morpho.org",port:"",pathname:"**"},{protocol:"https",hostname:"raw.githubusercontent.com",port:"",pathname:"/trustwallet/assets/**"},{protocol:"https",hostname:"cdn.whisk.so",port:"",pathname:"**"},{protocol:"https",hostname:"res.cloudinary.com",port:"",pathname:"/duv0g402y/**"},{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:"https://icons.llama.fi",port:"",pathname:"/**"},{protocol:"https",hostname:"https://icons.llamao.fi",port:"",pathname:"/**"},{protocol:"https",hostname:"coin-images.coingecko.com",port:"",pathname:"/asset_platforms/images/**"},...t.images?.remotePatterns??[]]}};return a?e(o):o}export{p as withBeraConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLBD37HXZcjs = require('../../chunk-LBD37HXZ.cjs');require('../../chunk-4VDLQK6F.cjs');exports.registerSentry = _chunkLBD37HXZcjs.a; exports.withSentryConfig = _chunkLBD37HXZcjs.b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-GIJFHJSE.js";import"../../chunk-WOT6VMZA.js";export{a as registerSentry,b as withSentryConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict"; 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; } }var
|
|
1
|
+
"use strict"; 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; } }var _chunk6V2DUN43cjs = require('../../chunk-6V2DUN43.cjs');require('../../chunk-53F3JXXK.cjs');require('../../chunk-L72IF5MB.cjs');require('../../chunk-3IPYHDYK.cjs');require('../../chunk-4VDLQK6F.cjs');var _nextjs = require('@sentry/nextjs'); var n = _interopRequireWildcard(_nextjs);n.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:.1,debug:!1,environment:_chunk6V2DUN43cjs.a,integrations:[],ignoreErrors:["Cannot set property ethereum of #<Window> which has only a getter","Cannot destructure property 'register' of 'undefined' as it is undefined.","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing."]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../chunk-
|
|
1
|
+
import{a as e}from"../../chunk-5SAQF6JU.js";import"../../chunk-DE64YNKJ.js";import"../../chunk-5DVYYQFY.js";import"../../chunk-E3O7UH5M.js";import"../../chunk-WOT6VMZA.js";import*as n from"@sentry/nextjs";n.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:.1,debug:!1,environment:e,integrations:[],ignoreErrors:["Cannot set property ethereum of #<Window> which has only a getter","Cannot destructure property 'register' of 'undefined' as it is undefined.","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing."]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict"; 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; } }var
|
|
1
|
+
"use strict"; 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; } }var _chunk6V2DUN43cjs = require('./chunk-6V2DUN43.cjs');require('./chunk-53F3JXXK.cjs');require('./chunk-L72IF5MB.cjs');require('./chunk-3IPYHDYK.cjs');require('./chunk-4VDLQK6F.cjs');var _nextjs = require('@sentry/nextjs'); var n = _interopRequireWildcard(_nextjs);n.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:.1,environment:_chunk6V2DUN43cjs.a,debug:!1});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-5SAQF6JU.js";import"./chunk-DE64YNKJ.js";import"./chunk-5DVYYQFY.js";import"./chunk-E3O7UH5M.js";import"./chunk-WOT6VMZA.js";import*as n from"@sentry/nextjs";n.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:.1,environment:e,debug:!1});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict"; 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; } }var
|
|
1
|
+
"use strict"; 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; } }var _chunk6V2DUN43cjs = require('./chunk-6V2DUN43.cjs');require('./chunk-53F3JXXK.cjs');require('./chunk-L72IF5MB.cjs');require('./chunk-3IPYHDYK.cjs');require('./chunk-4VDLQK6F.cjs');var _nextjs = require('@sentry/nextjs'); var n = _interopRequireWildcard(_nextjs);n.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:.1,environment:_chunk6V2DUN43cjs.a,debug:!1});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-5SAQF6JU.js";import"./chunk-DE64YNKJ.js";import"./chunk-5DVYYQFY.js";import"./chunk-E3O7UH5M.js";import"./chunk-WOT6VMZA.js";import*as n from"@sentry/nextjs";n.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:.1,environment:e,debug:!1});
|
package/package.json
CHANGED
package/dist/chunk-7P77HD6A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=process.env.NEXT_PUBLIC_CHAIN_ID?Number(process.env.NEXT_PUBLIC_CHAIN_ID):80094;export{r as a};
|
package/dist/chunk-AEEJBUVN.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;
|
package/dist/chunk-CPGCQL6H.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkK62SDMWXcjs = require('./chunk-K62SDMWX.cjs');var _chunk6RLCJYH2cjs = require('./chunk-6RLCJYH2.cjs');var _chunkAEEJBUVNcjs = require('./chunk-AEEJBUVN.cjs');var e={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"},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"},urls:{postHogApiHost:"https://eu.i.posthog.com",cloudinary:"https://res.cloudinary.com/duv0g402y/image/upload/f_auto,q_auto/v1",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:{liquidationWarningLtvMargin:.05,maxBorrowLtvMargin:1e-4,publicAllocatorSupplyTargetUtilizationWad:BigInt(9e17)}};var i={80094:_chunk6RLCJYH2cjs.a,80069:_chunkK62SDMWXcjs.a},s=i[_chunkAEEJBUVNcjs.a],g= exports.c ={...s,...e,bend:{...s.bend,...e.bend}};exports.a = e; exports.b = i; exports.c = g;
|
package/dist/chunk-JTPDAOC4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-4ZZXDAVS.js";import{a as t}from"./chunk-BJUR72F2.js";import{a}from"./chunk-7P77HD6A.js";var e={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"},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"},urls:{postHogApiHost:"https://eu.i.posthog.com",cloudinary:"https://res.cloudinary.com/duv0g402y/image/upload/f_auto,q_auto/v1",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:{liquidationWarningLtvMargin:.05,maxBorrowLtvMargin:1e-4,publicAllocatorSupplyTargetUtilizationWad:BigInt(9e17)}};var i={80094:t,80069:o},s=i[a],g={...s,...e,bend:{...s.bend,...e.bend}};export{e as a,i as b,g as c};
|