@berachain/config 0.1.18-beta.1 → 0.1.18
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 -8
- package/dist/bepolia.mjs +1 -8
- package/dist/chunk-276AZYTL.cjs +1 -0
- package/dist/chunk-2HIIMZE4.cjs +1 -0
- package/dist/chunk-2OLL4MUY.cjs +1 -0
- package/dist/chunk-3KQLFIHT.cjs +2 -0
- package/dist/chunk-3WZ7JUD6.cjs +1 -0
- package/dist/chunk-4EBBM3AH.mjs +1 -0
- package/dist/chunk-4EBC3WWP.mjs +1 -0
- package/dist/chunk-4VDLQK6F.cjs +1 -0
- package/dist/chunk-BWV5APOW.cjs +1 -0
- package/dist/chunk-DL645PXT.mjs +1 -0
- package/dist/chunk-DUO7UEQD.cjs +1 -0
- package/dist/chunk-DVULZ7ID.cjs +1 -0
- package/dist/chunk-FVNATITS.mjs +1 -0
- package/dist/chunk-FZ23S6ID.mjs +1 -0
- package/dist/chunk-JYSZ2GU3.cjs +1 -0
- package/dist/chunk-JZXLCA2E.mjs +1 -0
- package/dist/chunk-LCQFSMRO.mjs +1 -0
- package/dist/chunk-MB5HZZ3S.mjs +1 -0
- package/dist/chunk-MS6UGFXI.mjs +1 -0
- package/dist/chunk-O243TIHY.mjs +1 -0
- package/dist/chunk-S2A3Z34I.mjs +2 -0
- package/dist/chunk-S5CMEFTY.cjs +1 -0
- package/dist/chunk-VPOS7FPU.cjs +1 -0
- package/dist/chunk-XO2H4NRK.mjs +1 -0
- package/dist/index.cjs +1 -11
- package/dist/index.mjs +1 -11
- package/dist/internal/edge-config/index.cjs +1 -37
- package/dist/internal/edge-config/index.d.cts +0 -30
- package/dist/internal/edge-config/index.d.ts +0 -30
- package/dist/internal/edge-config/index.mjs +1 -37
- package/dist/internal/flags/index.cjs +1 -199
- package/dist/internal/flags/index.mjs +1 -199
- package/dist/internal/header-sources.cjs +11 -283
- package/dist/internal/header-sources.mjs +11 -283
- package/dist/internal/index.cjs +1 -40
- package/dist/internal/index.d.cts +8 -2
- package/dist/internal/index.d.ts +8 -2
- package/dist/internal/index.mjs +1 -40
- package/dist/internal/maintenance.cjs +1 -26
- package/dist/internal/maintenance.mjs +1 -26
- package/dist/internal/nextjs/index.cjs +1 -85
- package/dist/internal/nextjs/index.mjs +1 -85
- package/dist/internal/nextjs/utils/index.cjs +1 -39
- package/dist/internal/nextjs/utils/index.mjs +1 -39
- package/dist/internal/sentry/index.cjs +1 -11
- package/dist/internal/sentry/index.mjs +1 -11
- package/dist/internal/sentry/sentry.client.config.cjs +1 -67
- package/dist/internal/sentry/sentry.client.config.mjs +1 -67
- package/dist/internal/tailwind/index.cjs +1 -239
- package/dist/internal/tailwind/index.mjs +1 -239
- package/dist/internal/tsup/index.cjs +1 -73
- package/dist/internal/tsup/index.mjs +1 -73
- package/dist/internal/wagmi/index.cjs +1 -60
- package/dist/internal/wagmi/index.mjs +1 -60
- package/dist/mainnet.cjs +1 -10
- package/dist/mainnet.d.cts +4 -1
- package/dist/mainnet.d.ts +4 -1
- package/dist/mainnet.mjs +1 -10
- package/dist/sentry.edge.config-DS2KE3CX.cjs +1 -0
- package/dist/sentry.edge.config-OEQTPQ2L.mjs +1 -0
- package/dist/sentry.server.config-KRS7OUMO.mjs +1 -0
- package/dist/sentry.server.config-RNY6FTJT.cjs +1 -0
- package/package.json +1 -1
- package/dist/chunk-2BJ55Y5U.cjs +0 -166
- package/dist/chunk-2JZ7QJEW.cjs +0 -84
- package/dist/chunk-2XYRGOX3.mjs +0 -64
- package/dist/chunk-3K6IUX3G.mjs +0 -25
- package/dist/chunk-4H4HDUCC.mjs +0 -179
- package/dist/chunk-6TL5ZQOM.cjs +0 -75
- package/dist/chunk-75ZPJI57.cjs +0 -9
- package/dist/chunk-7P6ASYW6.mjs +0 -9
- package/dist/chunk-ADH7F47T.cjs +0 -26
- package/dist/chunk-AP2XG6GJ.mjs +0 -84
- package/dist/chunk-BM46XQJA.mjs +0 -55
- package/dist/chunk-CAOMAWN5.mjs +0 -26
- package/dist/chunk-EYYJ2UZT.cjs +0 -10
- package/dist/chunk-FNTZIXS7.cjs +0 -179
- package/dist/chunk-FOUI63VD.mjs +0 -138
- package/dist/chunk-HJXRHQST.mjs +0 -166
- package/dist/chunk-KJXYSGNH.mjs +0 -10
- package/dist/chunk-LALEUPWL.mjs +0 -8
- package/dist/chunk-NQ3UKQHW.mjs +0 -75
- package/dist/chunk-NX4FI7G3.cjs +0 -64
- package/dist/chunk-ONKAV4AG.cjs +0 -25
- package/dist/chunk-REBIMTSJ.cjs +0 -138
- package/dist/chunk-WRTYGXJM.cjs +0 -55
- package/dist/chunk-YT7WZDGI.cjs +0 -8
- package/dist/sentry.edge.config-F4334LEP.cjs +0 -24
- package/dist/sentry.edge.config-JU55FF2U.mjs +0 -24
- package/dist/sentry.server.config-KFRT37Q3.cjs +0 -24
- package/dist/sentry.server.config-M77KFJ6J.mjs +0 -24
package/dist/chunk-NQ3UKQHW.mjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
// src/internal/sentry/index.ts
|
|
2
|
-
import * as Sentry from "@sentry/nextjs";
|
|
3
|
-
async function registerSentry(opt = {}) {
|
|
4
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
5
|
-
const { initSentryEdge } = await import("./sentry.edge.config-JU55FF2U.mjs");
|
|
6
|
-
initSentryEdge(Sentry, opt);
|
|
7
|
-
} else if (process.env.NEXT_RUNTIME === "nodejs") {
|
|
8
|
-
const { initSentryServer } = await import("./sentry.server.config-M77KFJ6J.mjs");
|
|
9
|
-
initSentryServer(Sentry, opt);
|
|
10
|
-
} else {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function withSentryConfig2(config) {
|
|
14
|
-
const _config = {
|
|
15
|
-
...config,
|
|
16
|
-
env: {
|
|
17
|
-
...config.env,
|
|
18
|
-
// This is needed for sentry to know the environment.
|
|
19
|
-
VERCEL_TARGET_ENV: process.env.VERCEL_TARGET_ENV
|
|
20
|
-
},
|
|
21
|
-
webpack: (wpConfig, args) => {
|
|
22
|
-
if (args.isServer && !args.dev && process.env.UPLOAD_SOURCEMAPS === "true") {
|
|
23
|
-
wpConfig.devtool = "source-map";
|
|
24
|
-
}
|
|
25
|
-
return config.webpack?.(wpConfig, args) ?? wpConfig;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
return Sentry.withSentryConfig(_config, {
|
|
29
|
-
// For all available options, see:
|
|
30
|
-
// https://github.com/getsentry/sentry-webpack-plugin#options
|
|
31
|
-
// Suppresses source map uploading logs during build
|
|
32
|
-
// silent: process.env.NODE_ENV === "development",
|
|
33
|
-
org: process.env.SENTRY_ORG,
|
|
34
|
-
project: process.env.SENTRY_PROJECT,
|
|
35
|
-
telemetry: false,
|
|
36
|
-
reactComponentAnnotation: {
|
|
37
|
-
enabled: process.env.UPLOAD_SOURCEMAPS === "true"
|
|
38
|
-
},
|
|
39
|
-
// For all available options, see:
|
|
40
|
-
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
|
41
|
-
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
|
42
|
-
widenClientFileUpload: process.env.UPLOAD_SOURCEMAPS === "true",
|
|
43
|
-
sourcemaps: {
|
|
44
|
-
disable: process.env.UPLOAD_SOURCEMAPS !== "true"
|
|
45
|
-
// deleteSourcemapsAfterUpload: true,
|
|
46
|
-
},
|
|
47
|
-
debug: process.env.UPLOAD_SOURCEMAPS === "true",
|
|
48
|
-
// sourcemaps: {
|
|
49
|
-
// disable: false,
|
|
50
|
-
// // disable: !["production", "staging"].includes(
|
|
51
|
-
// // process.env.VERCEL_TARGET_ENV ?? "",
|
|
52
|
-
// // ),
|
|
53
|
-
// assets,
|
|
54
|
-
// // deleteSourcemapsAfterUpload: true,
|
|
55
|
-
// },
|
|
56
|
-
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
|
|
57
|
-
tunnelRoute: "/monitoring-tunnel",
|
|
58
|
-
// Hides source maps from generated client bundles
|
|
59
|
-
// hideSourceMaps: true,
|
|
60
|
-
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
|
61
|
-
// disableLogger: true,
|
|
62
|
-
// Enables automatic instrumentation of Vercel Cron Monitors.
|
|
63
|
-
// See the following for more information:
|
|
64
|
-
// https://docs.sentry.io/product/crons/
|
|
65
|
-
// https://vercel.com/docs/cron-jobs
|
|
66
|
-
automaticVercelMonitors: true
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
var onRequestError = Sentry.captureRequestError;
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
registerSentry,
|
|
73
|
-
withSentryConfig2 as withSentryConfig,
|
|
74
|
-
onRequestError
|
|
75
|
-
};
|
package/dist/chunk-NX4FI7G3.cjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
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; }
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkADH7F47Tcjs = require('./chunk-ADH7F47T.cjs');
|
|
5
|
-
|
|
6
|
-
// src/internal/edge-config/isFlagEnabled.ts
|
|
7
|
-
function _checkChain(flag, chain, defaultReturn) {
|
|
8
|
-
if (_optionalChain([flag, 'access', _ => _.chain, 'optionalAccess', _2 => _2.length])) {
|
|
9
|
-
return flag.chain.includes(
|
|
10
|
-
chain === 80094 /* MAINNET */ ? "mainnet" : "bepolia"
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
return defaultReturn;
|
|
14
|
-
}
|
|
15
|
-
function _checkBranch(flag, _environment, defaultReturn) {
|
|
16
|
-
if (!_environment) {
|
|
17
|
-
return defaultReturn;
|
|
18
|
-
}
|
|
19
|
-
const environment = _environment === "development" ? "preview" : _environment;
|
|
20
|
-
if (_optionalChain([flag, 'access', _3 => _3.branch, 'optionalAccess', _4 => _4.length])) {
|
|
21
|
-
return flag.branch.includes(
|
|
22
|
-
environment
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
return defaultReturn;
|
|
26
|
-
}
|
|
27
|
-
function _checkAppName(flag, app, defaultReturn) {
|
|
28
|
-
if (_optionalChain([flag, 'access', _5 => _5.app, 'optionalAccess', _6 => _6.length]) && app) {
|
|
29
|
-
return flag.app.includes(app);
|
|
30
|
-
}
|
|
31
|
-
return defaultReturn;
|
|
32
|
-
}
|
|
33
|
-
function _checkTime(flag, key, defaultReturn) {
|
|
34
|
-
const time = flag[key];
|
|
35
|
-
if (!time) {
|
|
36
|
-
return defaultReturn;
|
|
37
|
-
}
|
|
38
|
-
if (key === "startAt") {
|
|
39
|
-
return time ? new Date(time) <= /* @__PURE__ */ new Date() : defaultReturn;
|
|
40
|
-
} else {
|
|
41
|
-
return time ? new Date(time) >= /* @__PURE__ */ new Date() : defaultReturn;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function isFlagEnabled(flag, {
|
|
45
|
-
chain = _chunkADH7F47Tcjs.defaultChainId,
|
|
46
|
-
environment = process.env.VERCEL_TARGET_ENV,
|
|
47
|
-
app = _chunkADH7F47Tcjs.currentDapp
|
|
48
|
-
} = {}) {
|
|
49
|
-
if (!flag) return false;
|
|
50
|
-
if (typeof flag === "boolean") {
|
|
51
|
-
return flag;
|
|
52
|
-
}
|
|
53
|
-
if (flag.condition === "OR") {
|
|
54
|
-
return _checkChain(flag, chain, false) || _checkBranch(flag, environment, false) || _checkAppName(flag, app, false) || // this condition is weird but it's consistent with the logic in the AND condition
|
|
55
|
-
// this means that if startAt is false, but endAt is true, the flag is enabled anyway
|
|
56
|
-
// we should prob consider a cleaner way to handle the OR condition in the future
|
|
57
|
-
_checkTime(flag, "startAt", false) || _checkTime(flag, "endAt", false);
|
|
58
|
-
}
|
|
59
|
-
return _checkChain(flag, chain, true) && _checkBranch(flag, environment, true) && _checkAppName(flag, app, true) && _checkTime(flag, "startAt", true) && _checkTime(flag, "endAt", true);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
exports.isFlagEnabled = isFlagEnabled;
|
package/dist/chunk-ONKAV4AG.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _chunkADH7F47Tcjs = require('./chunk-ADH7F47T.cjs');
|
|
6
|
-
|
|
7
|
-
// src/internal/sentry/sentryEnvironment.ts
|
|
8
|
-
var sentryEnvironment = _chunkADH7F47Tcjs.defaultChainId === 80094 /* MAINNET */ ? "mainnet-" : "bepolia-";
|
|
9
|
-
if (_chunkADH7F47Tcjs.isProduction) {
|
|
10
|
-
sentryEnvironment = exports.sentryEnvironment += "production";
|
|
11
|
-
} else if (_chunkADH7F47Tcjs.isLocalHost) {
|
|
12
|
-
sentryEnvironment = exports.sentryEnvironment += "development";
|
|
13
|
-
} else {
|
|
14
|
-
sentryEnvironment = exports.sentryEnvironment += "preview";
|
|
15
|
-
}
|
|
16
|
-
var tracesSampleRate = _chunkADH7F47Tcjs.isProduction ? 0.1 : 1;
|
|
17
|
-
var sentryRelease = process.env.VERCEL_GIT_COMMIT_SHA;
|
|
18
|
-
var sentryDebug = process.env.NEXT_PUBLIC_SENTRY_DEBUG === "true";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
exports.sentryEnvironment = sentryEnvironment; exports.tracesSampleRate = tracesSampleRate; exports.sentryRelease = sentryRelease; exports.sentryDebug = sentryDebug;
|
package/dist/chunk-REBIMTSJ.cjs
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
-
|
|
3
|
-
var _chunkFNTZIXS7cjs = require('./chunk-FNTZIXS7.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk2BJ55Y5Ucjs = require('./chunk-2BJ55Y5U.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _chunkADH7F47Tcjs = require('./chunk-ADH7F47T.cjs');
|
|
14
|
-
|
|
15
|
-
// src/internal/index.ts
|
|
16
|
-
var chainConfigs = {
|
|
17
|
-
[80094 /* MAINNET */]: _chunk2BJ55Y5Ucjs.mainnet,
|
|
18
|
-
[80069 /* BEPOLIA */]: _chunkFNTZIXS7cjs.bepolia
|
|
19
|
-
};
|
|
20
|
-
var chainConfig = chainConfigs[_chunkADH7F47Tcjs.defaultChainId];
|
|
21
|
-
var posthogDataRegion = _nullishCoalesce(process.env.NEXT_PUBLIC_PH_DATA_CENTER, () => ( "eu"));
|
|
22
|
-
var _appConfig = {
|
|
23
|
-
apiKeys: {
|
|
24
|
-
public: {
|
|
25
|
-
/**
|
|
26
|
-
* This is only going to work on whitelisted domains.
|
|
27
|
-
* Please create your own API key and add it to your .env.local file
|
|
28
|
-
*/
|
|
29
|
-
thirdweb: _nullishCoalesce(process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID, () => ( "fc597da15a06f1a6b42fae42112dd770")),
|
|
30
|
-
postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",
|
|
31
|
-
cookie3SiteId: process.env.NEXT_PUBLIC_COOKIE3_SITE_ID,
|
|
32
|
-
enso: _nullishCoalesce(process.env.NEXT_PUBLIC_ENSO_API_KEY, () => ( "3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f"))
|
|
33
|
-
},
|
|
34
|
-
private: {
|
|
35
|
-
/**
|
|
36
|
-
* This is a low-security API key that is used to access internal API endpoints that do not
|
|
37
|
-
* expose any sensitive information. It's just used to avoid public access to these endpoints.
|
|
38
|
-
*/
|
|
39
|
-
dummyInternalApiKey: process.env.DUMMY_INTERNAL_API_KEY,
|
|
40
|
-
/**
|
|
41
|
-
* API key for events on Luma.
|
|
42
|
-
*
|
|
43
|
-
* Used by ecosystem.berachain.com/events page
|
|
44
|
-
*/
|
|
45
|
-
luma: process.env.LUMA_API_KEY,
|
|
46
|
-
clickup: process.env.CLICKUP_API_KEY,
|
|
47
|
-
/**
|
|
48
|
-
* API key for Ghost content.
|
|
49
|
-
*
|
|
50
|
-
* Used by blog.berachain.com
|
|
51
|
-
*/
|
|
52
|
-
ghostContent: process.env.GHOST_CONTENT_API_KEY,
|
|
53
|
-
/**
|
|
54
|
-
* API key for Ghost admin.
|
|
55
|
-
*
|
|
56
|
-
* Used by blog.berachain.com
|
|
57
|
-
*/
|
|
58
|
-
ghostAdmin: process.env.GHOST_ADMIN_API_KEY,
|
|
59
|
-
oogabooga: process.env.OOGABOOGA_API_KEY,
|
|
60
|
-
haiku: process.env.HAIKU_API_KEY,
|
|
61
|
-
kyberswap: process.env.KYBERSWAP_CLIENT_ID,
|
|
62
|
-
enso: process.env.ENSO_API_KEY,
|
|
63
|
-
// Created with tim's email. 100rps, no CORS
|
|
64
|
-
etherscan: process.env.ETHERSCAN_API_KEY
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
urls: {
|
|
68
|
-
postHog: {
|
|
69
|
-
region: posthogDataRegion,
|
|
70
|
-
apiHost: _nullishCoalesce(process.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH, () => ( `https://${posthogDataRegion}.i.posthog.com`)),
|
|
71
|
-
uiHost: `https://${posthogDataRegion}.posthog.com`
|
|
72
|
-
},
|
|
73
|
-
ghost: "https://berachain.ghost.io",
|
|
74
|
-
imageDelivery: "https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ",
|
|
75
|
-
homepage: _nullishCoalesce(process.env.NEXT_PUBLIC_HOMEPAGE_URL, () => ( "https://www.berachain.com")),
|
|
76
|
-
ecosystem: "https://ecosystem.berachain.com/",
|
|
77
|
-
ecojobs: "https://ecojobs.berachain.com/",
|
|
78
|
-
docs: "https://docs.berachain.com",
|
|
79
|
-
careers: "https://careers.berachain.com/",
|
|
80
|
-
mediaKit: "https://drive.google.com/drive/folders/12t_a4Rci2txC3uVj9JyXXsSRCqWfd4GG/",
|
|
81
|
-
blog: "https://blog.berachain.com/",
|
|
82
|
-
news: "https://news.berachain.com/",
|
|
83
|
-
honeypaper: "https://honeypaper.berachain.com/",
|
|
84
|
-
airdrop: "https://airdrop.berachain.com/",
|
|
85
|
-
twitter: "https://x.com/berachain",
|
|
86
|
-
telegram: "https://t.me/BerachainPortal",
|
|
87
|
-
discord: "https://discord.com/invite/berachain",
|
|
88
|
-
github: "https://github.com/berachain",
|
|
89
|
-
buildabera: "https://buildabera.xyz/"
|
|
90
|
-
},
|
|
91
|
-
bend: {
|
|
92
|
-
/**
|
|
93
|
-
* Margin from max LTV where warning will be shown about liquidation risk.
|
|
94
|
-
* e.g. if max LTV is 0.8, warning will show at 0.75
|
|
95
|
-
*/
|
|
96
|
-
liquidationWarningLtvMargin: 0.05,
|
|
97
|
-
/**
|
|
98
|
-
* Safety margin subtracted from max LTV to determine borrow limit.
|
|
99
|
-
* e.g. if max LTV is 0.945, borrow limit will be 0.895
|
|
100
|
-
*/
|
|
101
|
-
maxBorrowLtvMargin: 0.05,
|
|
102
|
-
/**
|
|
103
|
-
* Target utilization rate for public allocator supply in WAD format (18 decimals).
|
|
104
|
-
* Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
|
|
105
|
-
*/
|
|
106
|
-
publicAllocatorSupplyTargetUtilizationWad: BigInt(9e17),
|
|
107
|
-
useProductionContracts: _chunkADH7F47Tcjs.isProduction || process.env.NEXT_PUBLIC_BEND_USE_PRODUCTION_CONTRACTS === "true" || process.env.NODE_ENV === "test"
|
|
108
|
-
},
|
|
109
|
-
env: {
|
|
110
|
-
isProduction: _chunkADH7F47Tcjs.isProduction,
|
|
111
|
-
isLocalHost: _chunkADH7F47Tcjs.isLocalHost,
|
|
112
|
-
isPreview: _chunkADH7F47Tcjs.isPreview,
|
|
113
|
-
isStaging: _chunkADH7F47Tcjs.isStaging
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
var isAnalyticsEnabled = process.env.NODE_ENV !== "development" || process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS !== "0" && Boolean(process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS);
|
|
117
|
-
var flags = {
|
|
118
|
-
isPosthogEnabled: _appConfig.apiKeys.public.postHogProjectKey && isAnalyticsEnabled,
|
|
119
|
-
isCookie3Enabled: _appConfig.apiKeys.public.cookie3SiteId && isAnalyticsEnabled,
|
|
120
|
-
/**
|
|
121
|
-
* Disallow SEO indexing for non-mainnet deployments
|
|
122
|
-
*/
|
|
123
|
-
disallowIndexing: _chunkADH7F47Tcjs.defaultChainId !== 80094 /* MAINNET */ && _chunkADH7F47Tcjs.defaultChainId !== 80069 /* BEPOLIA */,
|
|
124
|
-
hideCurator: false
|
|
125
|
-
};
|
|
126
|
-
var appConfig = {
|
|
127
|
-
..._appConfig,
|
|
128
|
-
flags
|
|
129
|
-
};
|
|
130
|
-
var config = {
|
|
131
|
-
...chainConfig
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
exports.chainConfigs = chainConfigs; exports.appConfig = appConfig; exports.config = config;
|
package/dist/chunk-WRTYGXJM.cjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
-
|
|
3
|
-
var _chunkADH7F47Tcjs = require('./chunk-ADH7F47T.cjs');
|
|
4
|
-
|
|
5
|
-
// src/utils/env.ts
|
|
6
|
-
if (_chunkADH7F47Tcjs.defaultChainId !== 80094 /* MAINNET */ && _chunkADH7F47Tcjs.defaultChainId !== 80069 /* BEPOLIA */) {
|
|
7
|
-
throw new Error(`Invalid chainId: ${_chunkADH7F47Tcjs.defaultChainId}`);
|
|
8
|
-
}
|
|
9
|
-
var _defaultChainId = _chunkADH7F47Tcjs.defaultChainId;
|
|
10
|
-
var imageBaseUrl = "https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ";
|
|
11
|
-
var goldskyBaseUrl = "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/";
|
|
12
|
-
function getRpcUrls(chainId = _defaultChainId) {
|
|
13
|
-
if (chainId === 80069 /* BEPOLIA */ && process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL || chainId === 80094 /* MAINNET */ && process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL) {
|
|
14
|
-
let anvilUrl = chainId === 80069 /* BEPOLIA */ ? process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL : process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL;
|
|
15
|
-
if (process.env.VITEST_WORKER_ID) {
|
|
16
|
-
anvilUrl = `${anvilUrl}/${_nullishCoalesce(process.env.VITEST_WORKER_ID, () => ( 1))}`;
|
|
17
|
-
} else {
|
|
18
|
-
console.log("Using anvil RPC for bepolia", anvilUrl);
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
publicJsonRpcUrl: anvilUrl,
|
|
22
|
-
jsonRpcUrl: anvilUrl,
|
|
23
|
-
alchemyJsonRpcUrl: void 0,
|
|
24
|
-
privateRcpUrl: void 0,
|
|
25
|
-
isAnvil: true
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
publicJsonRpcUrl: chainId === 80069 /* BEPOLIA */ ? _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")),
|
|
30
|
-
jsonRpcUrl: chainId === 80069 /* BEPOLIA */ ? _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")),
|
|
31
|
-
alchemyJsonRpcUrl: chainId === 80069 /* BEPOLIA */ ? process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL : process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,
|
|
32
|
-
privateRcpUrl: chainId === 80069 /* BEPOLIA */ ? process.env.PRIVATE_80069_JSON_RPC_URL : process.env.PRIVATE_80094_JSON_RPC_URL,
|
|
33
|
-
isAnvil: false
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
var {
|
|
37
|
-
publicJsonRpcUrl,
|
|
38
|
-
jsonRpcUrl,
|
|
39
|
-
alchemyJsonRpcUrl,
|
|
40
|
-
/**
|
|
41
|
-
* Dedicated private RPC URL for server side with higher rate limits.
|
|
42
|
-
* Not available on client side.
|
|
43
|
-
*/
|
|
44
|
-
privateRcpUrl
|
|
45
|
-
} = getRpcUrls(_chunkADH7F47Tcjs.defaultChainId);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
exports.imageBaseUrl = imageBaseUrl; exports.goldskyBaseUrl = goldskyBaseUrl; exports.getRpcUrls = getRpcUrls; exports.publicJsonRpcUrl = publicJsonRpcUrl; exports.jsonRpcUrl = jsonRpcUrl; exports.alchemyJsonRpcUrl = alchemyJsonRpcUrl; exports.privateRcpUrl = privateRcpUrl;
|
package/dist/chunk-YT7WZDGI.cjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkONKAV4AGcjs = require('./chunk-ONKAV4AG.cjs');
|
|
5
|
-
require('./chunk-WRTYGXJM.cjs');
|
|
6
|
-
require('./chunk-ADH7F47T.cjs');
|
|
7
|
-
require('./chunk-EYYJ2UZT.cjs');
|
|
8
|
-
require('./chunk-75ZPJI57.cjs');
|
|
9
|
-
|
|
10
|
-
// src/internal/sentry/sentry.edge.config.ts
|
|
11
|
-
function initSentryEdge(Sentry, opt = {}) {
|
|
12
|
-
return Sentry.init({
|
|
13
|
-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
14
|
-
// Adjust this value in production, or use tracesSampler for greater control
|
|
15
|
-
tracesSampleRate: _chunkONKAV4AGcjs.tracesSampleRate,
|
|
16
|
-
environment: _chunkONKAV4AGcjs.sentryEnvironment,
|
|
17
|
-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
18
|
-
debug: false,
|
|
19
|
-
...opt
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.initSentryEdge = initSentryEdge;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sentryEnvironment,
|
|
3
|
-
tracesSampleRate
|
|
4
|
-
} from "./chunk-3K6IUX3G.mjs";
|
|
5
|
-
import "./chunk-BM46XQJA.mjs";
|
|
6
|
-
import "./chunk-CAOMAWN5.mjs";
|
|
7
|
-
import "./chunk-KJXYSGNH.mjs";
|
|
8
|
-
import "./chunk-7P6ASYW6.mjs";
|
|
9
|
-
|
|
10
|
-
// src/internal/sentry/sentry.edge.config.ts
|
|
11
|
-
function initSentryEdge(Sentry, opt = {}) {
|
|
12
|
-
return Sentry.init({
|
|
13
|
-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
14
|
-
// Adjust this value in production, or use tracesSampler for greater control
|
|
15
|
-
tracesSampleRate,
|
|
16
|
-
environment: sentryEnvironment,
|
|
17
|
-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
18
|
-
debug: false,
|
|
19
|
-
...opt
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
initSentryEdge
|
|
24
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkONKAV4AGcjs = require('./chunk-ONKAV4AG.cjs');
|
|
5
|
-
require('./chunk-WRTYGXJM.cjs');
|
|
6
|
-
require('./chunk-ADH7F47T.cjs');
|
|
7
|
-
require('./chunk-EYYJ2UZT.cjs');
|
|
8
|
-
require('./chunk-75ZPJI57.cjs');
|
|
9
|
-
|
|
10
|
-
// src/internal/sentry/sentry.server.config.ts
|
|
11
|
-
function initSentryServer(Sentry, opt = {}) {
|
|
12
|
-
return Sentry.init({
|
|
13
|
-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
14
|
-
// Adjust this value in production, or use tracesSampler for greater control
|
|
15
|
-
tracesSampleRate: _chunkONKAV4AGcjs.tracesSampleRate,
|
|
16
|
-
environment: _chunkONKAV4AGcjs.sentryEnvironment,
|
|
17
|
-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
18
|
-
debug: false,
|
|
19
|
-
...opt
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.initSentryServer = initSentryServer;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sentryEnvironment,
|
|
3
|
-
tracesSampleRate
|
|
4
|
-
} from "./chunk-3K6IUX3G.mjs";
|
|
5
|
-
import "./chunk-BM46XQJA.mjs";
|
|
6
|
-
import "./chunk-CAOMAWN5.mjs";
|
|
7
|
-
import "./chunk-KJXYSGNH.mjs";
|
|
8
|
-
import "./chunk-7P6ASYW6.mjs";
|
|
9
|
-
|
|
10
|
-
// src/internal/sentry/sentry.server.config.ts
|
|
11
|
-
function initSentryServer(Sentry, opt = {}) {
|
|
12
|
-
return Sentry.init({
|
|
13
|
-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
14
|
-
// Adjust this value in production, or use tracesSampler for greater control
|
|
15
|
-
tracesSampleRate,
|
|
16
|
-
environment: sentryEnvironment,
|
|
17
|
-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
18
|
-
debug: false,
|
|
19
|
-
...opt
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
initSentryServer
|
|
24
|
-
};
|