@berachain/config 0.0.7 → 0.1.1-5.beta-1
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 +8 -1
- package/dist/bepolia.d.cts +26 -7
- package/dist/bepolia.d.ts +26 -7
- package/dist/bepolia.mjs +8 -1
- package/dist/chunk-2JZ7QJEW.cjs +84 -0
- package/dist/chunk-2XYRGOX3.mjs +64 -0
- package/dist/chunk-3K6IUX3G.mjs +25 -0
- package/dist/chunk-3XMRQ4AF.cjs +169 -0
- package/dist/chunk-6TL5ZQOM.cjs +75 -0
- package/dist/chunk-75ZPJI57.cjs +9 -0
- package/dist/chunk-7P6ASYW6.mjs +9 -0
- package/dist/chunk-ADH7F47T.cjs +26 -0
- package/dist/chunk-AMUU2OH4.cjs +158 -0
- package/dist/chunk-AP2XG6GJ.mjs +84 -0
- package/dist/chunk-BM46XQJA.mjs +55 -0
- package/dist/chunk-CAOMAWN5.mjs +26 -0
- package/dist/chunk-EYYJ2UZT.cjs +10 -0
- package/dist/chunk-JHPXZOPW.mjs +158 -0
- package/dist/chunk-JZA34W4G.cjs +138 -0
- package/dist/chunk-KJXYSGNH.mjs +10 -0
- package/dist/chunk-KYJQS3T5.mjs +138 -0
- package/dist/chunk-LALEUPWL.mjs +8 -0
- package/dist/chunk-NQ3UKQHW.mjs +75 -0
- package/dist/chunk-NX4FI7G3.cjs +64 -0
- package/dist/chunk-ONKAV4AG.cjs +25 -0
- package/dist/chunk-SWEAJ6OD.mjs +169 -0
- package/dist/chunk-WRTYGXJM.cjs +55 -0
- package/dist/chunk-YT7WZDGI.cjs +8 -0
- package/dist/index.cjs +11 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +11 -1
- package/dist/internal/edge-config/index.cjs +37 -1
- package/dist/internal/edge-config/index.d.cts +19 -2
- package/dist/internal/edge-config/index.d.ts +19 -2
- package/dist/internal/edge-config/index.mjs +37 -1
- package/dist/internal/flags/index.cjs +206 -1
- package/dist/internal/flags/index.d.cts +13 -1
- package/dist/internal/flags/index.d.ts +13 -1
- package/dist/internal/flags/index.mjs +206 -1
- package/dist/internal/header-sources.cjs +283 -11
- package/dist/internal/header-sources.mjs +283 -11
- package/dist/internal/index.cjs +40 -1
- package/dist/internal/index.d.cts +222 -140
- package/dist/internal/index.d.ts +222 -140
- package/dist/internal/index.mjs +40 -1
- package/dist/internal/maintenance.cjs +26 -1
- package/dist/internal/maintenance.mjs +26 -1
- package/dist/internal/nextjs/index.cjs +85 -1
- package/dist/internal/nextjs/index.d.cts +9 -2
- package/dist/internal/nextjs/index.d.ts +9 -2
- package/dist/internal/nextjs/index.mjs +85 -1
- package/dist/internal/nextjs/utils/index.cjs +39 -1
- package/dist/internal/nextjs/utils/index.mjs +39 -1
- package/dist/internal/sentry/index.cjs +11 -1
- package/dist/internal/sentry/index.mjs +11 -1
- package/dist/internal/sentry/sentry.client.config.cjs +59 -1
- package/dist/internal/sentry/sentry.client.config.mjs +59 -1
- package/dist/internal/tailwind/index.cjs +239 -1
- package/dist/internal/tailwind/index.d.cts +21 -11
- package/dist/internal/tailwind/index.d.ts +21 -11
- package/dist/internal/tailwind/index.mjs +239 -1
- package/dist/internal/tsup/index.cjs +73 -1
- package/dist/internal/tsup/index.d.cts +1 -1
- package/dist/internal/tsup/index.d.ts +1 -1
- package/dist/internal/tsup/index.mjs +73 -1
- package/dist/internal/wagmi/index.cjs +60 -0
- package/dist/internal/wagmi/index.d.cts +12 -0
- package/dist/internal/wagmi/index.d.ts +12 -0
- package/dist/internal/wagmi/index.mjs +60 -0
- package/dist/mainnet.cjs +10 -1
- package/dist/mainnet.d.cts +28 -8
- package/dist/mainnet.d.ts +28 -8
- package/dist/mainnet.mjs +10 -1
- package/dist/sentry.edge.config-F4334LEP.cjs +24 -0
- package/dist/sentry.edge.config-JU55FF2U.mjs +24 -0
- package/dist/sentry.server.config-KFRT37Q3.cjs +24 -0
- package/dist/sentry.server.config-M77KFJ6J.mjs +24 -0
- package/dist/{types-ChwOSOu9.d.cts → types-ClIxAUdh.d.cts} +25 -5
- package/dist/{types-ChwOSOu9.d.ts → types-ClIxAUdh.d.ts} +25 -5
- package/package.json +45 -38
- package/postcss.json +6 -0
- package/LICENSE +0 -21
- package/dist/chunk-2OLL4MUY.cjs +0 -1
- package/dist/chunk-3KQLFIHT.cjs +0 -2
- package/dist/chunk-4VDLQK6F.cjs +0 -1
- package/dist/chunk-DFPDQR4M.cjs +0 -1
- package/dist/chunk-DL645PXT.mjs +0 -1
- package/dist/chunk-DTPRW4VP.mjs +0 -1
- package/dist/chunk-DUO7UEQD.cjs +0 -1
- package/dist/chunk-DVULZ7ID.cjs +0 -1
- package/dist/chunk-EJBC2CPD.cjs +0 -1
- package/dist/chunk-FVNATITS.mjs +0 -1
- package/dist/chunk-GAUBQIRH.cjs +0 -1
- package/dist/chunk-JVJKB7V7.mjs +0 -1
- package/dist/chunk-JYSZ2GU3.cjs +0 -1
- package/dist/chunk-JZXLCA2E.mjs +0 -1
- package/dist/chunk-KB66GOT2.cjs +0 -1
- package/dist/chunk-MS6UGFXI.mjs +0 -1
- package/dist/chunk-O243TIHY.mjs +0 -1
- package/dist/chunk-O5LUKC6Z.mjs +0 -1
- package/dist/chunk-OQFLFE3X.cjs +0 -1
- package/dist/chunk-PGBQCBTM.mjs +0 -1
- package/dist/chunk-S2A3Z34I.mjs +0 -2
- package/dist/chunk-TLFLY32O.mjs +0 -1
- package/dist/chunk-V2GJ33GF.mjs +0 -1
- package/dist/chunk-ZJDKWYPH.cjs +0 -1
- package/dist/sentry.edge.config-34TBZ2J6.cjs +0 -1
- package/dist/sentry.edge.config-3QO3DLYV.mjs +0 -1
- package/dist/sentry.server.config-S53O6JTA.mjs +0 -1
- package/dist/sentry.server.config-WQX4KCNG.cjs +0 -1
|
@@ -1 +1,73 @@
|
|
|
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-
|
|
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;
|
|
@@ -3,4 +3,4 @@ import { Options } from 'tsup';
|
|
|
3
3
|
type MaybePromise<T> = T | Promise<T>;
|
|
4
4
|
declare const beraTsupConfig: (config: Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>)) => Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>);
|
|
5
5
|
|
|
6
|
-
export { beraTsupConfig
|
|
6
|
+
export { beraTsupConfig };
|
|
@@ -3,4 +3,4 @@ import { Options } from 'tsup';
|
|
|
3
3
|
type MaybePromise<T> = T | Promise<T>;
|
|
4
4
|
declare const beraTsupConfig: (config: Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>)) => Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>);
|
|
5
5
|
|
|
6
|
-
export { beraTsupConfig
|
|
6
|
+
export { beraTsupConfig };
|
|
@@ -1 +1,73 @@
|
|
|
1
|
-
import"../../chunk-
|
|
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
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-JZA34W4G.cjs');
|
|
2
|
+
require('../../chunk-3XMRQ4AF.cjs');
|
|
3
|
+
require('../../chunk-AMUU2OH4.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkWRTYGXJMcjs = require('../../chunk-WRTYGXJM.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkADH7F47Tcjs = require('../../chunk-ADH7F47T.cjs');
|
|
13
|
+
require('../../chunk-EYYJ2UZT.cjs');
|
|
14
|
+
require('../../chunk-75ZPJI57.cjs');
|
|
15
|
+
|
|
16
|
+
// src/internal/wagmi/index.ts
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
var _chains = require('viem/chains');
|
|
28
|
+
var defaultChain = _chunkADH7F47Tcjs.defaultChainId === _chains.berachain.id ? _chains.berachain : _chains.berachainBepolia;
|
|
29
|
+
var urls = [
|
|
30
|
+
_chunkWRTYGXJMcjs.privateRcpUrl,
|
|
31
|
+
_chunkWRTYGXJMcjs.jsonRpcUrl,
|
|
32
|
+
_chunkWRTYGXJMcjs.alchemyJsonRpcUrl,
|
|
33
|
+
_chunkWRTYGXJMcjs.publicJsonRpcUrl
|
|
34
|
+
].filter(Boolean);
|
|
35
|
+
var externalChains = [
|
|
36
|
+
_chains.mainnet,
|
|
37
|
+
_chains.polygon,
|
|
38
|
+
_chains.optimism,
|
|
39
|
+
_chains.base,
|
|
40
|
+
_chains.bsc,
|
|
41
|
+
_chains.avalanche,
|
|
42
|
+
_chains.arbitrum
|
|
43
|
+
];
|
|
44
|
+
var chainIdToName = [
|
|
45
|
+
...externalChains,
|
|
46
|
+
_chains.berachain,
|
|
47
|
+
_chains.berachainBepolia
|
|
48
|
+
].reduce(
|
|
49
|
+
(acc, chain) => {
|
|
50
|
+
acc[chain.id] = chain.name;
|
|
51
|
+
return acc;
|
|
52
|
+
},
|
|
53
|
+
{}
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
exports.chainIdToName = chainIdToName; exports.defaultChain = defaultChain; exports.externalChains = externalChains; exports.urls = urls;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import "../../chunk-KYJQS3T5.mjs";
|
|
2
|
+
import "../../chunk-SWEAJ6OD.mjs";
|
|
3
|
+
import "../../chunk-JHPXZOPW.mjs";
|
|
4
|
+
import {
|
|
5
|
+
alchemyJsonRpcUrl,
|
|
6
|
+
jsonRpcUrl,
|
|
7
|
+
privateRcpUrl,
|
|
8
|
+
publicJsonRpcUrl
|
|
9
|
+
} from "../../chunk-BM46XQJA.mjs";
|
|
10
|
+
import {
|
|
11
|
+
defaultChainId
|
|
12
|
+
} from "../../chunk-CAOMAWN5.mjs";
|
|
13
|
+
import "../../chunk-KJXYSGNH.mjs";
|
|
14
|
+
import "../../chunk-7P6ASYW6.mjs";
|
|
15
|
+
|
|
16
|
+
// src/internal/wagmi/index.ts
|
|
17
|
+
import {
|
|
18
|
+
arbitrum,
|
|
19
|
+
avalanche,
|
|
20
|
+
base,
|
|
21
|
+
berachain,
|
|
22
|
+
berachainBepolia,
|
|
23
|
+
bsc,
|
|
24
|
+
mainnet,
|
|
25
|
+
optimism,
|
|
26
|
+
polygon
|
|
27
|
+
} from "viem/chains";
|
|
28
|
+
var defaultChain = defaultChainId === berachain.id ? berachain : berachainBepolia;
|
|
29
|
+
var urls = [
|
|
30
|
+
privateRcpUrl,
|
|
31
|
+
jsonRpcUrl,
|
|
32
|
+
alchemyJsonRpcUrl,
|
|
33
|
+
publicJsonRpcUrl
|
|
34
|
+
].filter(Boolean);
|
|
35
|
+
var externalChains = [
|
|
36
|
+
mainnet,
|
|
37
|
+
polygon,
|
|
38
|
+
optimism,
|
|
39
|
+
base,
|
|
40
|
+
bsc,
|
|
41
|
+
avalanche,
|
|
42
|
+
arbitrum
|
|
43
|
+
];
|
|
44
|
+
var chainIdToName = [
|
|
45
|
+
...externalChains,
|
|
46
|
+
berachain,
|
|
47
|
+
berachainBepolia
|
|
48
|
+
].reduce(
|
|
49
|
+
(acc, chain) => {
|
|
50
|
+
acc[chain.id] = chain.name;
|
|
51
|
+
return acc;
|
|
52
|
+
},
|
|
53
|
+
{}
|
|
54
|
+
);
|
|
55
|
+
export {
|
|
56
|
+
chainIdToName,
|
|
57
|
+
defaultChain,
|
|
58
|
+
externalChains,
|
|
59
|
+
urls
|
|
60
|
+
};
|
package/dist/mainnet.cjs
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkAMUU2OH4cjs = require('./chunk-AMUU2OH4.cjs');
|
|
4
|
+
require('./chunk-WRTYGXJM.cjs');
|
|
5
|
+
require('./chunk-ADH7F47T.cjs');
|
|
6
|
+
require('./chunk-EYYJ2UZT.cjs');
|
|
7
|
+
require('./chunk-75ZPJI57.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.mainnet = _chunkAMUU2OH4cjs.mainnet;
|
package/dist/mainnet.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ChainId } from './types-
|
|
1
|
+
import { C as ChainId } from './types-ClIxAUdh.cjs';
|
|
2
2
|
|
|
3
3
|
declare const mainnet: {
|
|
4
4
|
readonly chainId: ChainId.MAINNET;
|
|
@@ -16,17 +16,28 @@ declare const mainnet: {
|
|
|
16
16
|
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
17
17
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
18
18
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
19
|
-
readonly subgraph:
|
|
19
|
+
readonly subgraph: {
|
|
20
|
+
readonly name: "pol-subgraph";
|
|
21
|
+
readonly uri: string;
|
|
22
|
+
readonly headers: {
|
|
23
|
+
Authorization: string;
|
|
24
|
+
} | undefined;
|
|
25
|
+
};
|
|
20
26
|
readonly bribeBoostApi: string;
|
|
21
27
|
readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
|
|
28
|
+
readonly lstStakerVaultFactory: "0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500";
|
|
22
29
|
};
|
|
23
30
|
readonly api: {
|
|
31
|
+
readonly name: "Berachain API";
|
|
24
32
|
readonly uri: string;
|
|
25
33
|
readonly headers: {
|
|
26
34
|
"x-api-key": string;
|
|
27
35
|
} | undefined;
|
|
28
36
|
};
|
|
29
|
-
readonly
|
|
37
|
+
readonly backend: {
|
|
38
|
+
readonly name: "Berachain Backend";
|
|
39
|
+
readonly uri: string;
|
|
40
|
+
};
|
|
30
41
|
readonly bex: {
|
|
31
42
|
readonly chainName: "BERACHAIN";
|
|
32
43
|
readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
|
|
@@ -39,7 +50,6 @@ declare const mainnet: {
|
|
|
39
50
|
};
|
|
40
51
|
readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
|
|
41
52
|
readonly poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2";
|
|
42
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/mainnet-1.0.3/gn";
|
|
43
53
|
readonly aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58";
|
|
44
54
|
readonly aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8";
|
|
45
55
|
readonly haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7";
|
|
@@ -51,10 +61,16 @@ declare const mainnet: {
|
|
|
51
61
|
readonly honey: {
|
|
52
62
|
readonly name: "Honey";
|
|
53
63
|
readonly url: "https://honey.berachain.com";
|
|
54
|
-
readonly subgraph:
|
|
64
|
+
readonly subgraph: {
|
|
65
|
+
readonly name: "honey-subgraph";
|
|
66
|
+
readonly uri: string;
|
|
67
|
+
readonly headers: {
|
|
68
|
+
Authorization: string;
|
|
69
|
+
} | undefined;
|
|
70
|
+
};
|
|
55
71
|
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
56
72
|
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
57
|
-
readonly pythWrapper: "
|
|
73
|
+
readonly pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95";
|
|
58
74
|
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
59
75
|
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
60
76
|
};
|
|
@@ -65,7 +81,6 @@ declare const mainnet: {
|
|
|
65
81
|
readonly governance: {
|
|
66
82
|
readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
|
|
67
83
|
readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
|
|
68
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/governance-subgraph/mainnet-v1.1.1/gn";
|
|
69
84
|
};
|
|
70
85
|
readonly lists: {
|
|
71
86
|
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json";
|
|
@@ -94,6 +109,7 @@ declare const mainnet: {
|
|
|
94
109
|
readonly name: "Bend";
|
|
95
110
|
readonly url: "https://bend.berachain.com";
|
|
96
111
|
readonly whiskApi: {
|
|
112
|
+
readonly name: "Bend Whisk";
|
|
97
113
|
readonly uri: string;
|
|
98
114
|
readonly headers: {
|
|
99
115
|
Authorization: string;
|
|
@@ -118,6 +134,10 @@ declare const mainnet: {
|
|
|
118
134
|
readonly supportedVaults: `0x${string}`[];
|
|
119
135
|
};
|
|
120
136
|
};
|
|
137
|
+
readonly enso: {
|
|
138
|
+
readonly walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55";
|
|
139
|
+
readonly walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b";
|
|
140
|
+
};
|
|
121
141
|
readonly explore: {
|
|
122
142
|
readonly name: "Explore";
|
|
123
143
|
readonly url: "https://explore.berachain.com";
|
|
@@ -132,4 +152,4 @@ declare const mainnet: {
|
|
|
132
152
|
readonly faucet: null;
|
|
133
153
|
};
|
|
134
154
|
|
|
135
|
-
export { mainnet
|
|
155
|
+
export { mainnet };
|
package/dist/mainnet.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ChainId } from './types-
|
|
1
|
+
import { C as ChainId } from './types-ClIxAUdh.js';
|
|
2
2
|
|
|
3
3
|
declare const mainnet: {
|
|
4
4
|
readonly chainId: ChainId.MAINNET;
|
|
@@ -16,17 +16,28 @@ declare const mainnet: {
|
|
|
16
16
|
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
17
17
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
18
18
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
19
|
-
readonly subgraph:
|
|
19
|
+
readonly subgraph: {
|
|
20
|
+
readonly name: "pol-subgraph";
|
|
21
|
+
readonly uri: string;
|
|
22
|
+
readonly headers: {
|
|
23
|
+
Authorization: string;
|
|
24
|
+
} | undefined;
|
|
25
|
+
};
|
|
20
26
|
readonly bribeBoostApi: string;
|
|
21
27
|
readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
|
|
28
|
+
readonly lstStakerVaultFactory: "0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500";
|
|
22
29
|
};
|
|
23
30
|
readonly api: {
|
|
31
|
+
readonly name: "Berachain API";
|
|
24
32
|
readonly uri: string;
|
|
25
33
|
readonly headers: {
|
|
26
34
|
"x-api-key": string;
|
|
27
35
|
} | undefined;
|
|
28
36
|
};
|
|
29
|
-
readonly
|
|
37
|
+
readonly backend: {
|
|
38
|
+
readonly name: "Berachain Backend";
|
|
39
|
+
readonly uri: string;
|
|
40
|
+
};
|
|
30
41
|
readonly bex: {
|
|
31
42
|
readonly chainName: "BERACHAIN";
|
|
32
43
|
readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
|
|
@@ -39,7 +50,6 @@ declare const mainnet: {
|
|
|
39
50
|
};
|
|
40
51
|
readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
|
|
41
52
|
readonly poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2";
|
|
42
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/mainnet-1.0.3/gn";
|
|
43
53
|
readonly aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58";
|
|
44
54
|
readonly aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8";
|
|
45
55
|
readonly haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7";
|
|
@@ -51,10 +61,16 @@ declare const mainnet: {
|
|
|
51
61
|
readonly honey: {
|
|
52
62
|
readonly name: "Honey";
|
|
53
63
|
readonly url: "https://honey.berachain.com";
|
|
54
|
-
readonly subgraph:
|
|
64
|
+
readonly subgraph: {
|
|
65
|
+
readonly name: "honey-subgraph";
|
|
66
|
+
readonly uri: string;
|
|
67
|
+
readonly headers: {
|
|
68
|
+
Authorization: string;
|
|
69
|
+
} | undefined;
|
|
70
|
+
};
|
|
55
71
|
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
56
72
|
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
57
|
-
readonly pythWrapper: "
|
|
73
|
+
readonly pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95";
|
|
58
74
|
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
59
75
|
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
60
76
|
};
|
|
@@ -65,7 +81,6 @@ declare const mainnet: {
|
|
|
65
81
|
readonly governance: {
|
|
66
82
|
readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
|
|
67
83
|
readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
|
|
68
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/governance-subgraph/mainnet-v1.1.1/gn";
|
|
69
84
|
};
|
|
70
85
|
readonly lists: {
|
|
71
86
|
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json";
|
|
@@ -94,6 +109,7 @@ declare const mainnet: {
|
|
|
94
109
|
readonly name: "Bend";
|
|
95
110
|
readonly url: "https://bend.berachain.com";
|
|
96
111
|
readonly whiskApi: {
|
|
112
|
+
readonly name: "Bend Whisk";
|
|
97
113
|
readonly uri: string;
|
|
98
114
|
readonly headers: {
|
|
99
115
|
Authorization: string;
|
|
@@ -118,6 +134,10 @@ declare const mainnet: {
|
|
|
118
134
|
readonly supportedVaults: `0x${string}`[];
|
|
119
135
|
};
|
|
120
136
|
};
|
|
137
|
+
readonly enso: {
|
|
138
|
+
readonly walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55";
|
|
139
|
+
readonly walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b";
|
|
140
|
+
};
|
|
121
141
|
readonly explore: {
|
|
122
142
|
readonly name: "Explore";
|
|
123
143
|
readonly url: "https://explore.berachain.com";
|
|
@@ -132,4 +152,4 @@ declare const mainnet: {
|
|
|
132
152
|
readonly faucet: null;
|
|
133
153
|
};
|
|
134
154
|
|
|
135
|
-
export { mainnet
|
|
155
|
+
export { mainnet };
|
package/dist/mainnet.mjs
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import {
|
|
2
|
+
mainnet
|
|
3
|
+
} from "./chunk-JHPXZOPW.mjs";
|
|
4
|
+
import "./chunk-BM46XQJA.mjs";
|
|
5
|
+
import "./chunk-CAOMAWN5.mjs";
|
|
6
|
+
import "./chunk-KJXYSGNH.mjs";
|
|
7
|
+
import "./chunk-7P6ASYW6.mjs";
|
|
8
|
+
export {
|
|
9
|
+
mainnet
|
|
10
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
};
|