@berachain/config 0.1.22 → 0.1.23
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.d.ts +3 -5
- package/dist/bepolia.d.ts.map +1 -0
- package/dist/index.d.ts +3 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/internal/edge-config/{index.d.cts → edgeConfig.codegen.d.ts} +14 -63
- package/dist/internal/edge-config/edgeConfig.codegen.d.ts.map +1 -0
- package/dist/internal/edge-config/index.d.ts +5 -393
- package/dist/internal/edge-config/index.d.ts.map +1 -0
- package/dist/internal/edge-config/isFlagEnabled.d.ts +17 -0
- package/dist/internal/edge-config/isFlagEnabled.d.ts.map +1 -0
- package/dist/internal/edge-config/safeGetAll.d.ts +15 -0
- package/dist/internal/edge-config/safeGetAll.d.ts.map +1 -0
- package/dist/internal/edge-config/safeGetConfig.d.ts +19 -0
- package/dist/internal/edge-config/safeGetConfig.d.ts.map +1 -0
- package/dist/internal/flags/beraEdgeConfigAdapter.d.ts +9 -0
- package/dist/internal/flags/beraEdgeConfigAdapter.d.ts.map +1 -0
- package/dist/internal/flags/flags.d.ts +29 -0
- package/dist/internal/flags/flags.d.ts.map +1 -0
- package/dist/internal/flags/index.d.ts +2 -60
- package/dist/internal/flags/index.d.ts.map +1 -0
- package/dist/internal/header-sources.d.ts +5 -7
- package/dist/internal/header-sources.d.ts.map +1 -0
- package/dist/internal/index.d.ts +139 -173
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/maintenance.d.ts +5 -7
- package/dist/internal/maintenance.d.ts.map +1 -0
- package/dist/internal/nextjs/const.d.ts +3 -0
- package/dist/internal/nextjs/const.d.ts.map +1 -0
- package/dist/internal/nextjs/index.cjs +2 -2
- package/dist/internal/nextjs/index.d.ts +5 -6
- package/dist/internal/nextjs/index.d.ts.map +1 -0
- package/dist/internal/nextjs/index.mjs +1 -1
- package/dist/internal/nextjs/utils/index.cjs +3 -1
- package/dist/internal/nextjs/utils/index.d.ts +2 -3
- package/dist/internal/nextjs/utils/index.d.ts.map +1 -0
- package/dist/internal/nextjs/utils/index.mjs +3 -1
- package/dist/internal/sentry/getSentryKeys.d.ts +16 -0
- package/dist/internal/sentry/getSentryKeys.d.ts.map +1 -0
- package/dist/internal/sentry/index.cjs +2 -2
- package/dist/internal/sentry/index.d.ts +6 -8
- package/dist/internal/sentry/index.d.ts.map +1 -0
- package/dist/internal/sentry/index.mjs +1 -1
- package/dist/internal/sentry/sentry.client.config.d.ts +3 -6
- package/dist/internal/sentry/sentry.client.config.d.ts.map +1 -0
- package/dist/internal/sentry/sentry.edge.config.d.ts +3 -0
- package/dist/internal/sentry/sentry.edge.config.d.ts.map +1 -0
- package/dist/internal/sentry/sentry.server.config.d.ts +3 -0
- package/dist/internal/sentry/sentry.server.config.d.ts.map +1 -0
- package/dist/internal/sentry/sentryEnvironment.d.ts +6 -0
- package/dist/internal/sentry/sentryEnvironment.d.ts.map +1 -0
- package/dist/internal/tailwind/{index.d.cts → config.d.ts} +14 -16
- package/dist/internal/tailwind/config.d.ts.map +1 -0
- package/dist/internal/tailwind/index.d.ts +6 -8
- package/dist/internal/tailwind/index.d.ts.map +1 -0
- package/dist/internal/wagmi/index.d.ts +6 -8
- package/dist/internal/wagmi/index.d.ts.map +1 -0
- package/dist/mainnet.d.ts +3 -5
- package/dist/mainnet.d.ts.map +1 -0
- package/dist/{types-Drv0VlAi.d.cts → types.d.ts} +8 -8
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/dynamicEnvVariable.d.ts +21 -0
- package/dist/utils/dynamicEnvVariable.d.ts.map +1 -0
- package/dist/utils/env.d.ts +29 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/getUriFromLink.d.ts +3 -0
- package/dist/utils/getUriFromLink.d.ts.map +1 -0
- package/package.json +9 -8
- package/dist/bepolia.d.cts +0 -169
- package/dist/index.d.cts +0 -6
- package/dist/internal/flags/index.d.cts +0 -60
- package/dist/internal/header-sources.d.cts +0 -22
- package/dist/internal/index.d.cts +0 -749
- package/dist/internal/maintenance.d.cts +0 -11
- package/dist/internal/nextjs/index.d.cts +0 -34
- package/dist/internal/nextjs/utils/index.d.cts +0 -9
- package/dist/internal/sentry/index.d.cts +0 -13
- package/dist/internal/sentry/sentry.client.config.d.cts +0 -6
- package/dist/internal/tsup/index.cjs +0 -73
- package/dist/internal/tsup/index.d.cts +0 -6
- package/dist/internal/tsup/index.d.ts +0 -6
- package/dist/internal/tsup/index.mjs +0 -73
- package/dist/internal/wagmi/index.d.cts +0 -12
- package/dist/mainnet.d.cts +0 -154
- package/dist/types-Drv0VlAi.d.ts +0 -214
- /package/dist/{chunk-UOFOM6N7.cjs → chunk-3NQ3NFWW.cjs} +0 -0
- /package/dist/{chunk-EGAVWXNC.mjs → chunk-4UCGQIWY.mjs} +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
-
|
|
3
|
-
declare const DEFAULT_MAINTENANCE_EXEMPT_PATHS: string[];
|
|
4
|
-
interface MaintenanceConfig {
|
|
5
|
-
isMaintenance: boolean;
|
|
6
|
-
exemptPaths?: string[];
|
|
7
|
-
maintenancePath?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function checkMaintenanceMode(req: NextRequest, config: MaintenanceConfig): NextResponse | null;
|
|
10
|
-
|
|
11
|
-
export { DEFAULT_MAINTENANCE_EXEMPT_PATHS, type MaintenanceConfig, checkMaintenanceMode };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { NextConfig } from 'next';
|
|
2
|
-
import { a as AppName } from '../../types-Drv0VlAi.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The images config for Bera.
|
|
6
|
-
* It's a subset of the Next.js images config.
|
|
7
|
-
*/
|
|
8
|
-
type BeraImagesConfig = Omit<NextConfig["images"], "remotePatterns">;
|
|
9
|
-
/**
|
|
10
|
-
* The Next.js config for Bera.
|
|
11
|
-
* It's a subset of the Next.js config.
|
|
12
|
-
*/
|
|
13
|
-
type BeraNextConfig = Omit<NextConfig, "images"> & {
|
|
14
|
-
images?: BeraImagesConfig;
|
|
15
|
-
};
|
|
16
|
-
declare function withBeraConfig(config: BeraNextConfig, { withSentry, withPostHogReverseProxy, appName, }: {
|
|
17
|
-
withSentry?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* The name of the app, it'll be set as NEXT_PUBLIC_BERA_APP_NAME in the environment variables.
|
|
20
|
-
*
|
|
21
|
-
* It's used to check if the component is running in nextjs inside the package folder.
|
|
22
|
-
* Also, it's used to check if a flag is enabled for the app.
|
|
23
|
-
*/
|
|
24
|
-
appName: AppName;
|
|
25
|
-
/**
|
|
26
|
-
* Whether to use the PostHog reverse proxy.
|
|
27
|
-
*
|
|
28
|
-
* It's used to bypass the CORS policy of the PostHog API.
|
|
29
|
-
* @see {@link https://posthog.com/docs/advanced/proxy/nextjs}
|
|
30
|
-
*/
|
|
31
|
-
withPostHogReverseProxy?: boolean;
|
|
32
|
-
}): NextConfig;
|
|
33
|
-
|
|
34
|
-
export { withBeraConfig };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if a given URL is allowed according to the IMAGE_REMOTE_PATTERNS.
|
|
3
|
-
*
|
|
4
|
-
* @param urlString - The URL to check.
|
|
5
|
-
* @returns boolean indicating if the url matches one of the allowed remote patterns.
|
|
6
|
-
*/
|
|
7
|
-
declare function isAllowedImageUrl(urlString: string | undefined): boolean;
|
|
8
|
-
|
|
9
|
-
export { isAllowedImageUrl };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as Sentry from '@sentry/nextjs';
|
|
2
|
-
import { NextConfig } from 'next';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This function registers Sentry in nextjs instrumentation.
|
|
6
|
-
*
|
|
7
|
-
* @link https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#create-initialization-config-files
|
|
8
|
-
*/
|
|
9
|
-
declare function registerSentry(opt?: Parameters<typeof Sentry.init>[0]): Promise<void>;
|
|
10
|
-
declare function withSentryConfig(config: NextConfig): NextConfig;
|
|
11
|
-
declare const onRequestError: typeof Sentry.captureRequestError;
|
|
12
|
-
|
|
13
|
-
export { onRequestError, registerSentry, withSentryConfig };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as _sentry_core from '@sentry/core';
|
|
2
|
-
import * as Sentry from '@sentry/nextjs';
|
|
3
|
-
|
|
4
|
-
declare function initSentryClient(Sentry: typeof Sentry, opt?: Sentry.BrowserOptions): _sentry_core.Client<_sentry_core.ClientOptions<_sentry_core.BaseTransportOptions>> | undefined;
|
|
5
|
-
|
|
6
|
-
export { initSentryClient };
|
|
@@ -1,73 +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; }require('../../chunk-75ZPJI57.cjs');
|
|
2
|
-
|
|
3
|
-
// src/internal/tsup/index.ts
|
|
4
|
-
var _child_process = require('child_process');
|
|
5
|
-
var _tsup = require('tsup');
|
|
6
|
-
function applyDefaultConfig(userConfig, opts) {
|
|
7
|
-
if (Array.isArray(userConfig)) {
|
|
8
|
-
return userConfig.map((c) => applyDefaultConfig(c, opts));
|
|
9
|
-
}
|
|
10
|
-
const isPrepublish = process.argv.includes("--prepublish");
|
|
11
|
-
const sourcemap = process.argv.includes("--sourcemap");
|
|
12
|
-
const hasCjs = isPrepublish || process.argv.includes("--cjs");
|
|
13
|
-
const hasEsm = isPrepublish || !hasCjs || process.argv.includes("--esm");
|
|
14
|
-
const format = [];
|
|
15
|
-
if (hasEsm) {
|
|
16
|
-
format.push("esm");
|
|
17
|
-
}
|
|
18
|
-
if (hasCjs) {
|
|
19
|
-
format.push("cjs");
|
|
20
|
-
}
|
|
21
|
-
const minify = isPrepublish || process.argv.includes("--minify");
|
|
22
|
-
const isDeclarationOnly = typeof opts.dts === "object" && opts.dts.only;
|
|
23
|
-
const defaultConfig = {
|
|
24
|
-
format,
|
|
25
|
-
clean: !opts.watch && // if we're only running check-types, we won't clean dist so that running processes are not interrupted
|
|
26
|
-
!isDeclarationOnly,
|
|
27
|
-
splitting: true,
|
|
28
|
-
outExtension({ format: format2 }) {
|
|
29
|
-
return { js: format2 === "esm" ? ".mjs" : ".cjs" };
|
|
30
|
-
},
|
|
31
|
-
outDir: "dist",
|
|
32
|
-
skipNodeModulesBundle: true,
|
|
33
|
-
noExternal: ["@berachain/utils"],
|
|
34
|
-
minify,
|
|
35
|
-
// Whether to minify the output
|
|
36
|
-
sourcemap: process.env.UPLOAD_SOURCEMAPS === "true" || sourcemap,
|
|
37
|
-
// Whether to generate sourcemaps
|
|
38
|
-
// Whether to generate TypeScript declaration files.
|
|
39
|
-
// Be careful and add this to turbo.json or some builds might fail when using turbo remote cache
|
|
40
|
-
dts: process.env.VERCEL !== "1",
|
|
41
|
-
async onSuccess() {
|
|
42
|
-
_child_process.execSync.call(void 0,
|
|
43
|
-
`find dist -name "*.cjs" -exec perl -pi -e 's/return await /return await /g' {} +`
|
|
44
|
-
);
|
|
45
|
-
},
|
|
46
|
-
esbuildOptions: (esbuildOptions, o) => {
|
|
47
|
-
esbuildOptions.jsx = "automatic";
|
|
48
|
-
esbuildOptions.sourceRoot = "";
|
|
49
|
-
_optionalChain([userConfig, 'access', _ => _.esbuildOptions, 'optionalCall', _2 => _2(esbuildOptions, o)]);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
return {
|
|
53
|
-
...defaultConfig,
|
|
54
|
-
...userConfig
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
var beraTsupConfig = (config) => {
|
|
58
|
-
return _tsup.defineConfig.call(void 0, async (opts) => {
|
|
59
|
-
let userConfig;
|
|
60
|
-
if (typeof config === "function") {
|
|
61
|
-
userConfig = await config(opts);
|
|
62
|
-
} else {
|
|
63
|
-
userConfig = config;
|
|
64
|
-
}
|
|
65
|
-
if (Array.isArray(userConfig)) {
|
|
66
|
-
return userConfig.map((c) => applyDefaultConfig(c, opts));
|
|
67
|
-
}
|
|
68
|
-
return applyDefaultConfig(userConfig, opts);
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
exports.beraTsupConfig = beraTsupConfig;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Options } from 'tsup';
|
|
2
|
-
|
|
3
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
4
|
-
declare const beraTsupConfig: (config: Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>)) => Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>);
|
|
5
|
-
|
|
6
|
-
export { beraTsupConfig };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Options } from 'tsup';
|
|
2
|
-
|
|
3
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
4
|
-
declare const beraTsupConfig: (config: Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>)) => Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>);
|
|
5
|
-
|
|
6
|
-
export { beraTsupConfig };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import "../../chunk-7P6ASYW6.mjs";
|
|
2
|
-
|
|
3
|
-
// src/internal/tsup/index.ts
|
|
4
|
-
import { execSync } from "child_process";
|
|
5
|
-
import { defineConfig } from "tsup";
|
|
6
|
-
function applyDefaultConfig(userConfig, opts) {
|
|
7
|
-
if (Array.isArray(userConfig)) {
|
|
8
|
-
return userConfig.map((c) => applyDefaultConfig(c, opts));
|
|
9
|
-
}
|
|
10
|
-
const isPrepublish = process.argv.includes("--prepublish");
|
|
11
|
-
const sourcemap = process.argv.includes("--sourcemap");
|
|
12
|
-
const hasCjs = isPrepublish || process.argv.includes("--cjs");
|
|
13
|
-
const hasEsm = isPrepublish || !hasCjs || process.argv.includes("--esm");
|
|
14
|
-
const format = [];
|
|
15
|
-
if (hasEsm) {
|
|
16
|
-
format.push("esm");
|
|
17
|
-
}
|
|
18
|
-
if (hasCjs) {
|
|
19
|
-
format.push("cjs");
|
|
20
|
-
}
|
|
21
|
-
const minify = isPrepublish || process.argv.includes("--minify");
|
|
22
|
-
const isDeclarationOnly = typeof opts.dts === "object" && opts.dts.only;
|
|
23
|
-
const defaultConfig = {
|
|
24
|
-
format,
|
|
25
|
-
clean: !opts.watch && // if we're only running check-types, we won't clean dist so that running processes are not interrupted
|
|
26
|
-
!isDeclarationOnly,
|
|
27
|
-
splitting: true,
|
|
28
|
-
outExtension({ format: format2 }) {
|
|
29
|
-
return { js: format2 === "esm" ? ".mjs" : ".cjs" };
|
|
30
|
-
},
|
|
31
|
-
outDir: "dist",
|
|
32
|
-
skipNodeModulesBundle: true,
|
|
33
|
-
noExternal: ["@berachain/utils"],
|
|
34
|
-
minify,
|
|
35
|
-
// Whether to minify the output
|
|
36
|
-
sourcemap: process.env.UPLOAD_SOURCEMAPS === "true" || sourcemap,
|
|
37
|
-
// Whether to generate sourcemaps
|
|
38
|
-
// Whether to generate TypeScript declaration files.
|
|
39
|
-
// Be careful and add this to turbo.json or some builds might fail when using turbo remote cache
|
|
40
|
-
dts: process.env.VERCEL !== "1",
|
|
41
|
-
async onSuccess() {
|
|
42
|
-
execSync(
|
|
43
|
-
`find dist -name "*.cjs" -exec perl -pi -e 's/returnawait /return await /g' {} +`
|
|
44
|
-
);
|
|
45
|
-
},
|
|
46
|
-
esbuildOptions: (esbuildOptions, o) => {
|
|
47
|
-
esbuildOptions.jsx = "automatic";
|
|
48
|
-
esbuildOptions.sourceRoot = "";
|
|
49
|
-
userConfig.esbuildOptions?.(esbuildOptions, o);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
return {
|
|
53
|
-
...defaultConfig,
|
|
54
|
-
...userConfig
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
var beraTsupConfig = (config) => {
|
|
58
|
-
return defineConfig(async (opts) => {
|
|
59
|
-
let userConfig;
|
|
60
|
-
if (typeof config === "function") {
|
|
61
|
-
userConfig = await config(opts);
|
|
62
|
-
} else {
|
|
63
|
-
userConfig = config;
|
|
64
|
-
}
|
|
65
|
-
if (Array.isArray(userConfig)) {
|
|
66
|
-
return userConfig.map((c) => applyDefaultConfig(c, opts));
|
|
67
|
-
}
|
|
68
|
-
return applyDefaultConfig(userConfig, opts);
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
beraTsupConfig
|
|
73
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Chain } from 'viem/chains';
|
|
2
|
-
|
|
3
|
-
declare const defaultChain: Chain;
|
|
4
|
-
declare const urls: string[];
|
|
5
|
-
/**
|
|
6
|
-
* This are the chains that have been approved by the Bera team to be used in the BeraHub,
|
|
7
|
-
* for multi chain zapping.
|
|
8
|
-
*/
|
|
9
|
-
declare const externalChains: Chain[];
|
|
10
|
-
declare const chainIdToName: Record<Chain["id"], string>;
|
|
11
|
-
|
|
12
|
-
export { chainIdToName, defaultChain, externalChains, urls };
|
package/dist/mainnet.d.cts
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { C as ChainId } from './types-Drv0VlAi.cjs';
|
|
2
|
-
|
|
3
|
-
declare const mainnet: {
|
|
4
|
-
readonly chainId: ChainId.MAINNET;
|
|
5
|
-
readonly tokens: {
|
|
6
|
-
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
7
|
-
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
8
|
-
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
9
|
-
readonly wbtc: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c";
|
|
10
|
-
readonly weth: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590";
|
|
11
|
-
};
|
|
12
|
-
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
13
|
-
readonly pol: {
|
|
14
|
-
readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
|
|
15
|
-
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
16
|
-
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
17
|
-
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
18
|
-
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
19
|
-
readonly subgraph: {
|
|
20
|
-
readonly name: "pol-subgraph";
|
|
21
|
-
readonly uri: string;
|
|
22
|
-
readonly headers: {
|
|
23
|
-
Authorization: string;
|
|
24
|
-
} | undefined;
|
|
25
|
-
};
|
|
26
|
-
readonly bribeBoostApi: string;
|
|
27
|
-
readonly supplyMonitor: {
|
|
28
|
-
readonly name: "supply-monitor";
|
|
29
|
-
readonly uri: string;
|
|
30
|
-
};
|
|
31
|
-
readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
|
|
32
|
-
readonly lstStakerVaultFactory: "0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500";
|
|
33
|
-
};
|
|
34
|
-
readonly api: {
|
|
35
|
-
readonly name: "Berachain API";
|
|
36
|
-
readonly uri: string;
|
|
37
|
-
readonly headers: {
|
|
38
|
-
"x-api-key": string;
|
|
39
|
-
} | undefined;
|
|
40
|
-
};
|
|
41
|
-
readonly beep: {
|
|
42
|
-
readonly uri: string;
|
|
43
|
-
readonly name: "Berachain Beep";
|
|
44
|
-
};
|
|
45
|
-
readonly bex: {
|
|
46
|
-
readonly chainName: "BERACHAIN";
|
|
47
|
-
readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
|
|
48
|
-
readonly helper: "0x5083737EC75a728c265BE578C9d0d5333a2c5951";
|
|
49
|
-
readonly queries: "0x3C612e132624f4Bd500eE1495F54565F0bcc9b59";
|
|
50
|
-
readonly relayer: "0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7";
|
|
51
|
-
readonly factories: {
|
|
52
|
-
readonly composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1";
|
|
53
|
-
readonly weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409";
|
|
54
|
-
};
|
|
55
|
-
readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
|
|
56
|
-
readonly poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2";
|
|
57
|
-
readonly aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58";
|
|
58
|
-
readonly aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8";
|
|
59
|
-
readonly haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7";
|
|
60
|
-
readonly haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71";
|
|
61
|
-
readonly aggregatorsProxyUrl: string;
|
|
62
|
-
readonly recoverFundsApi: string;
|
|
63
|
-
readonly recoverFundsContract: `0x${string}`;
|
|
64
|
-
};
|
|
65
|
-
readonly honey: {
|
|
66
|
-
readonly name: "Honey";
|
|
67
|
-
readonly url: "https://honey.berachain.com";
|
|
68
|
-
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
69
|
-
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
70
|
-
readonly pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95";
|
|
71
|
-
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
72
|
-
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
73
|
-
};
|
|
74
|
-
readonly hub: {
|
|
75
|
-
readonly name: "BeraHub";
|
|
76
|
-
readonly url: "https://hub.berachain.com";
|
|
77
|
-
};
|
|
78
|
-
readonly governance: {
|
|
79
|
-
readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
|
|
80
|
-
readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
|
|
81
|
-
};
|
|
82
|
-
readonly lists: {
|
|
83
|
-
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json";
|
|
84
|
-
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/mainnet.json";
|
|
85
|
-
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/mainnet.json";
|
|
86
|
-
};
|
|
87
|
-
readonly external: {
|
|
88
|
-
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
89
|
-
};
|
|
90
|
-
readonly averageBlockTime: 2;
|
|
91
|
-
readonly bridge: {
|
|
92
|
-
readonly name: "BeraBridge";
|
|
93
|
-
readonly url: "https://bridge.berachain.com";
|
|
94
|
-
readonly nft: {
|
|
95
|
-
readonly name: "BeraBridge NFT";
|
|
96
|
-
readonly url: "https://nftbridge.berachain.com";
|
|
97
|
-
readonly eth: {
|
|
98
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/eth-v1.0.0-beta1/gn";
|
|
99
|
-
};
|
|
100
|
-
readonly berachain: {
|
|
101
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn";
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
readonly bend: {
|
|
106
|
-
readonly name: "Bend";
|
|
107
|
-
readonly url: "https://bend.berachain.com";
|
|
108
|
-
readonly whiskApi: {
|
|
109
|
-
readonly name: "Bend Whisk";
|
|
110
|
-
readonly uri: string;
|
|
111
|
-
readonly headers: {
|
|
112
|
-
Authorization: string;
|
|
113
|
-
} | undefined;
|
|
114
|
-
};
|
|
115
|
-
readonly production: {
|
|
116
|
-
readonly morpho: "0x24147243f9c08d835C218Cda1e135f8dFD0517D0";
|
|
117
|
-
readonly adaptiveCurveIrm: "0xcf247Df3A2322Dea0D408f011c194906E77a6f62";
|
|
118
|
-
readonly metaMorphoFactory: "0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616";
|
|
119
|
-
readonly publicAllocator: "0xB62F34Ab315eaDeAc698e8EaEB6Fc2650951BFe7";
|
|
120
|
-
readonly bundler3: "0xF920140A65D0f412f2AB3e76C4fEAB5Eef0657ae";
|
|
121
|
-
readonly generalAdapter1: "0xd2B9667F5214115E27937C410cAeE83E3a901Df7";
|
|
122
|
-
readonly supportedVaults: `0x${string}`[];
|
|
123
|
-
readonly curatorVaults: `0x${string}`[];
|
|
124
|
-
};
|
|
125
|
-
readonly staging: {
|
|
126
|
-
readonly morpho: "0xC5FabF3a7E98a2ed89f5d5057Ab010634Ca7e71f";
|
|
127
|
-
readonly adaptiveCurveIrm: "0x1d5376e532CcF25b740270624111D665830E5dB9";
|
|
128
|
-
readonly metaMorphoFactory: "0x524061B659380a5e4576d76F0951303B20B5932f";
|
|
129
|
-
readonly publicAllocator: "0xFD6e68bC20be2a01Ec1Df687c83f927087D52811";
|
|
130
|
-
readonly bundler3: "0x56811e1BFfF951B98c7940d3aCe0e549Ec4fDee8";
|
|
131
|
-
readonly generalAdapter1: "0x257a41E20BBfe90D750646C2e00bA700D55958C5";
|
|
132
|
-
readonly supportedVaults: `0x${string}`[];
|
|
133
|
-
readonly curatorVaults: `0x${string}`[];
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
readonly enso: {
|
|
137
|
-
readonly walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55";
|
|
138
|
-
readonly walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b";
|
|
139
|
-
};
|
|
140
|
-
readonly explore: {
|
|
141
|
-
readonly name: "Explore";
|
|
142
|
-
readonly url: "https://explore.berachain.com";
|
|
143
|
-
};
|
|
144
|
-
readonly explorer: {
|
|
145
|
-
readonly name: "Berascan";
|
|
146
|
-
readonly url: "https://berascan.com";
|
|
147
|
-
};
|
|
148
|
-
readonly chain: {
|
|
149
|
-
readonly name: string;
|
|
150
|
-
};
|
|
151
|
-
readonly faucet: null;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
export { mainnet };
|
package/dist/types-Drv0VlAi.d.ts
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
type Address = `0x${string}`;
|
|
2
|
-
/**
|
|
3
|
-
* List of app names in monobera. For a broader list of project names, see ProjectNames.
|
|
4
|
-
*
|
|
5
|
-
* All of these projects have a nextjs set up with `withBeraConfig` and have access to edge config.
|
|
6
|
-
*/
|
|
7
|
-
type AppName = "BeraHub" | "Honey" | "Bend";
|
|
8
|
-
/**
|
|
9
|
-
* List of projects.
|
|
10
|
-
*/
|
|
11
|
-
type ProjectName = AppName | "BeraBridge" | "Faucet" | "BeraBridge NFT" | "Berachain Foundation" | "Explore" | "Berascan";
|
|
12
|
-
type HttpLink = string | {
|
|
13
|
-
uri: string;
|
|
14
|
-
headers?: Record<string, string>;
|
|
15
|
-
/**
|
|
16
|
-
* The name of the graphql service. Used for monitoring only.
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* A shared interface for all projects.
|
|
22
|
-
*/
|
|
23
|
-
type Project = {
|
|
24
|
-
/**
|
|
25
|
-
* The name of the project.
|
|
26
|
-
*/
|
|
27
|
-
name: ProjectName;
|
|
28
|
-
/**
|
|
29
|
-
* The URL of the project.
|
|
30
|
-
*/
|
|
31
|
-
url: string;
|
|
32
|
-
};
|
|
33
|
-
type BendAddresses = {
|
|
34
|
-
morpho: Address | null;
|
|
35
|
-
adaptiveCurveIrm: Address | null;
|
|
36
|
-
metaMorphoFactory: Address | null;
|
|
37
|
-
publicAllocator: Address | null;
|
|
38
|
-
bundler3: Address | null;
|
|
39
|
-
generalAdapter1: Address | null;
|
|
40
|
-
supportedVaults: Array<Address>;
|
|
41
|
-
curatorVaults: Array<Address>;
|
|
42
|
-
};
|
|
43
|
-
interface BeraConfig {
|
|
44
|
-
chainId: ChainId;
|
|
45
|
-
/**
|
|
46
|
-
* Some common token addresses available on the chain.
|
|
47
|
-
*/
|
|
48
|
-
tokens: {
|
|
49
|
-
/**
|
|
50
|
-
* The address of the wbera token. Only this 0x6969... address is supported.
|
|
51
|
-
*/
|
|
52
|
-
wbera: "0x6969696969696969696969696969696969696969";
|
|
53
|
-
/**
|
|
54
|
-
* The address of the swbera token. Only this 0x118D... address is supported.
|
|
55
|
-
*/
|
|
56
|
-
swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
57
|
-
bgt: Address;
|
|
58
|
-
wbtc: Address;
|
|
59
|
-
weth: Address;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* The API endpoint for the chain. Used to fetch prices, bex, pol and validators' data.
|
|
63
|
-
*/
|
|
64
|
-
api: HttpLink;
|
|
65
|
-
/**
|
|
66
|
-
* The next-generation backend ("beep").
|
|
67
|
-
*/
|
|
68
|
-
beep: HttpLink;
|
|
69
|
-
/**
|
|
70
|
-
* The address of the deposit contract for the chain.
|
|
71
|
-
*/
|
|
72
|
-
depositContract: Address;
|
|
73
|
-
/**
|
|
74
|
-
* The addresses of the metadata lists.
|
|
75
|
-
*
|
|
76
|
-
* @see https://github.com/berachain/metadata
|
|
77
|
-
*/
|
|
78
|
-
lists: {
|
|
79
|
-
tokenList: string;
|
|
80
|
-
validatorList: string;
|
|
81
|
-
rewardVaultList: string;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Contract addresses and endpoints for the Bex protocol, part of BeraHub.
|
|
85
|
-
*/
|
|
86
|
-
bex: {
|
|
87
|
-
vault: Address;
|
|
88
|
-
helper: Address;
|
|
89
|
-
queries: Address;
|
|
90
|
-
relayer: Address;
|
|
91
|
-
factories: {
|
|
92
|
-
composableStable: Address;
|
|
93
|
-
weighted: Address;
|
|
94
|
-
};
|
|
95
|
-
poolCreationHelper: Address;
|
|
96
|
-
chainName: string;
|
|
97
|
-
aggregatorsRouter: Address;
|
|
98
|
-
aggregatorsRouterExecutor: Address;
|
|
99
|
-
/**
|
|
100
|
-
* This is an hardcoded value in contracts to detected whether governance can
|
|
101
|
-
* change pool fees and amplification parameter.
|
|
102
|
-
*
|
|
103
|
-
* @see https://docs.balancer.fi/concepts/pools/more/configuration.html#fees
|
|
104
|
-
*/
|
|
105
|
-
balancerDelegatedOwnership: Address;
|
|
106
|
-
/**
|
|
107
|
-
* Haiku router contract used to calculate agent addresses for permit2 approvals.
|
|
108
|
-
* @see https://haiku.fi
|
|
109
|
-
*/
|
|
110
|
-
haikuRouter: Address | null;
|
|
111
|
-
/**
|
|
112
|
-
* Pre-computed haiku agent address for the aggregatorsRouterExecutor.
|
|
113
|
-
* Calculated via haikuRouter.calcAgent(aggregatorsRouterExecutor).
|
|
114
|
-
* Used for permit2 spend approvals.
|
|
115
|
-
*/
|
|
116
|
-
haikuAgentAddress: Address | null;
|
|
117
|
-
/**
|
|
118
|
-
* The aggregators proxy URL for the chain. Used to proxy requests to various aggregator APIs.
|
|
119
|
-
* Added here to keep ReadmeGenerator script clean while having this endpoint in the dependency
|
|
120
|
-
*/
|
|
121
|
-
aggregatorsProxyUrl: string;
|
|
122
|
-
recoverFundsApi: string;
|
|
123
|
-
recoverFundsContract: Address;
|
|
124
|
-
};
|
|
125
|
-
pol: {
|
|
126
|
-
factory: Address;
|
|
127
|
-
staker: Address;
|
|
128
|
-
rewardAllocationFactory: Address;
|
|
129
|
-
beraChef: Address;
|
|
130
|
-
/**
|
|
131
|
-
* Upstream link (uri + name) for server Apollo and typed `/api/pol/*`
|
|
132
|
-
* endpoints. Browser data access should still use the typed same-origin
|
|
133
|
-
* endpoints.
|
|
134
|
-
*/
|
|
135
|
-
subgraph: HttpLink;
|
|
136
|
-
bribeBoostApi: string;
|
|
137
|
-
supplyMonitor: HttpLink;
|
|
138
|
-
rewardVaultHelper: Address;
|
|
139
|
-
bgtIncentiveDistributor: Address;
|
|
140
|
-
lstStakerVaultFactory: Address;
|
|
141
|
-
};
|
|
142
|
-
honey: Project & {
|
|
143
|
-
factory: Address;
|
|
144
|
-
reader: Address;
|
|
145
|
-
pythWrapper: Address;
|
|
146
|
-
/**
|
|
147
|
-
* The contract that proxies pyth prices for Honey factory.
|
|
148
|
-
*/
|
|
149
|
-
pythOracle: Address;
|
|
150
|
-
token: Address;
|
|
151
|
-
};
|
|
152
|
-
governance: {
|
|
153
|
-
timelock: Address;
|
|
154
|
-
governor: Address;
|
|
155
|
-
};
|
|
156
|
-
bridge: Project & {
|
|
157
|
-
nft: Project & {
|
|
158
|
-
eth: {
|
|
159
|
-
subgraph: HttpLink;
|
|
160
|
-
};
|
|
161
|
-
berachain: {
|
|
162
|
-
subgraph: HttpLink;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
external: {
|
|
167
|
-
pyth: Address;
|
|
168
|
-
};
|
|
169
|
-
hub: Project;
|
|
170
|
-
bend: Project & {
|
|
171
|
-
whiskApi: HttpLink | null;
|
|
172
|
-
production: BendAddresses;
|
|
173
|
-
staging: BendAddresses;
|
|
174
|
-
};
|
|
175
|
-
enso: {
|
|
176
|
-
walletV2Factory: Address | null;
|
|
177
|
-
walletFlashloanAdapter: Address | null;
|
|
178
|
-
};
|
|
179
|
-
explore: Project;
|
|
180
|
-
explorer: Project;
|
|
181
|
-
averageBlockTime: number;
|
|
182
|
-
chain: {
|
|
183
|
-
/**
|
|
184
|
-
* This will be used by wallet providers to display the chain name
|
|
185
|
-
*/
|
|
186
|
-
name: string;
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* Public faucet configuration.
|
|
190
|
-
*
|
|
191
|
-
* Mainly used in static-monobera.
|
|
192
|
-
*/
|
|
193
|
-
faucet: (Project & {
|
|
194
|
-
/**
|
|
195
|
-
* Amount of BERA the user will receive when using the faucet
|
|
196
|
-
*/
|
|
197
|
-
dripAmount: number;
|
|
198
|
-
/**
|
|
199
|
-
* Time in hours between each drip
|
|
200
|
-
*/
|
|
201
|
-
timeGap: number;
|
|
202
|
-
cloudflareKey: string;
|
|
203
|
-
/**
|
|
204
|
-
* API endpoint to send the request to the faucet
|
|
205
|
-
*/
|
|
206
|
-
endpoint: string;
|
|
207
|
-
}) | null;
|
|
208
|
-
}
|
|
209
|
-
declare enum ChainId {
|
|
210
|
-
MAINNET = 80094,
|
|
211
|
-
BEPOLIA = 80069
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export { type Address as A, type BeraConfig as B, ChainId as C, type HttpLink as H, type ProjectName as P, type AppName as a };
|
|
File without changes
|
|
File without changes
|