@berachain/config 0.1.22-beta.1 → 0.1.22

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.
Files changed (79) hide show
  1. package/dist/bepolia.d.cts +169 -0
  2. package/dist/bepolia.d.ts +5 -3
  3. package/dist/index.d.cts +6 -0
  4. package/dist/index.d.ts +6 -3
  5. package/dist/internal/edge-config/{edgeConfig.codegen.d.ts → index.d.cts} +122 -15
  6. package/dist/internal/edge-config/index.d.ts +393 -5
  7. package/dist/internal/flags/index.d.cts +60 -0
  8. package/dist/internal/flags/index.d.ts +60 -2
  9. package/dist/internal/header-sources.d.cts +22 -0
  10. package/dist/internal/header-sources.d.ts +7 -5
  11. package/dist/internal/index.d.cts +749 -0
  12. package/dist/internal/index.d.ts +173 -139
  13. package/dist/internal/maintenance.d.cts +11 -0
  14. package/dist/internal/maintenance.d.ts +7 -5
  15. package/dist/internal/nextjs/index.d.cts +34 -0
  16. package/dist/internal/nextjs/index.d.ts +6 -5
  17. package/dist/internal/nextjs/utils/index.d.cts +9 -0
  18. package/dist/internal/nextjs/utils/index.d.ts +3 -2
  19. package/dist/internal/sentry/index.d.cts +13 -0
  20. package/dist/internal/sentry/index.d.ts +8 -6
  21. package/dist/internal/sentry/sentry.client.config.d.cts +6 -0
  22. package/dist/internal/sentry/sentry.client.config.d.ts +6 -3
  23. package/dist/internal/tailwind/{config.d.ts → index.d.cts} +16 -14
  24. package/dist/internal/tailwind/index.d.ts +8 -6
  25. package/dist/internal/tsup/index.cjs +4 -30
  26. package/dist/internal/tsup/index.d.cts +6 -0
  27. package/dist/internal/tsup/index.d.ts +6 -3
  28. package/dist/internal/tsup/index.mjs +4 -30
  29. package/dist/internal/wagmi/index.d.cts +12 -0
  30. package/dist/internal/wagmi/index.d.ts +8 -6
  31. package/dist/mainnet.d.cts +154 -0
  32. package/dist/mainnet.d.ts +5 -3
  33. package/dist/{types.d.ts → types-Drv0VlAi.d.cts} +8 -8
  34. package/dist/types-Drv0VlAi.d.ts +214 -0
  35. package/package.json +1 -1
  36. package/dist/bepolia.d.ts.map +0 -1
  37. package/dist/index.d.ts.map +0 -1
  38. package/dist/internal/edge-config/edgeConfig.codegen.d.ts.map +0 -1
  39. package/dist/internal/edge-config/index.d.ts.map +0 -1
  40. package/dist/internal/edge-config/isFlagEnabled.d.ts +0 -17
  41. package/dist/internal/edge-config/isFlagEnabled.d.ts.map +0 -1
  42. package/dist/internal/edge-config/safeGetAll.d.ts +0 -15
  43. package/dist/internal/edge-config/safeGetAll.d.ts.map +0 -1
  44. package/dist/internal/edge-config/safeGetConfig.d.ts +0 -19
  45. package/dist/internal/edge-config/safeGetConfig.d.ts.map +0 -1
  46. package/dist/internal/flags/beraEdgeConfigAdapter.d.ts +0 -9
  47. package/dist/internal/flags/beraEdgeConfigAdapter.d.ts.map +0 -1
  48. package/dist/internal/flags/flags.d.ts +0 -29
  49. package/dist/internal/flags/flags.d.ts.map +0 -1
  50. package/dist/internal/flags/index.d.ts.map +0 -1
  51. package/dist/internal/header-sources.d.ts.map +0 -1
  52. package/dist/internal/index.d.ts.map +0 -1
  53. package/dist/internal/maintenance.d.ts.map +0 -1
  54. package/dist/internal/nextjs/const.d.ts +0 -3
  55. package/dist/internal/nextjs/const.d.ts.map +0 -1
  56. package/dist/internal/nextjs/index.d.ts.map +0 -1
  57. package/dist/internal/nextjs/utils/index.d.ts.map +0 -1
  58. package/dist/internal/sentry/getSentryKeys.d.ts +0 -16
  59. package/dist/internal/sentry/getSentryKeys.d.ts.map +0 -1
  60. package/dist/internal/sentry/index.d.ts.map +0 -1
  61. package/dist/internal/sentry/sentry.client.config.d.ts.map +0 -1
  62. package/dist/internal/sentry/sentry.edge.config.d.ts +0 -3
  63. package/dist/internal/sentry/sentry.edge.config.d.ts.map +0 -1
  64. package/dist/internal/sentry/sentry.server.config.d.ts +0 -3
  65. package/dist/internal/sentry/sentry.server.config.d.ts.map +0 -1
  66. package/dist/internal/sentry/sentryEnvironment.d.ts +0 -6
  67. package/dist/internal/sentry/sentryEnvironment.d.ts.map +0 -1
  68. package/dist/internal/tailwind/config.d.ts.map +0 -1
  69. package/dist/internal/tailwind/index.d.ts.map +0 -1
  70. package/dist/internal/tsup/index.d.ts.map +0 -1
  71. package/dist/internal/wagmi/index.d.ts.map +0 -1
  72. package/dist/mainnet.d.ts.map +0 -1
  73. package/dist/types.d.ts.map +0 -1
  74. package/dist/utils/dynamicEnvVariable.d.ts +0 -21
  75. package/dist/utils/dynamicEnvVariable.d.ts.map +0 -1
  76. package/dist/utils/env.d.ts +0 -29
  77. package/dist/utils/env.d.ts.map +0 -1
  78. package/dist/utils/getUriFromLink.d.ts +0 -3
  79. package/dist/utils/getUriFromLink.d.ts.map +0 -1
@@ -0,0 +1,6 @@
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,3 +1,6 @@
1
- import type * as SentryType from "@sentry/nextjs";
2
- export declare function initSentryClient(Sentry: typeof SentryType, opt?: SentryType.BrowserOptions): import("@sentry/core").Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>> | undefined;
3
- //# sourceMappingURL=sentry.client.config.d.ts.map
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,13 +1,17 @@
1
- /**
2
- * This is the tailwind config without any use of require().
3
- * This makes it easier to import it in storybook. It should not be imported
4
- * by projects. It still can have plugin configs though as long as `require` is not used.
5
- */
6
- export declare const configWithNoPlugins: {
7
- readonly darkMode: ["class"];
8
- readonly safelist: ["dark", "light"];
9
- readonly content: ["src/**/*.{js,ts,jsx,tsx,mdx}", "../../packages/ui/src/*.{ts,tsx}", "../../packages/ui/src/**/*.{ts,tsx}", "../../packages/shared-ui/src/*.{ts,tsx}", "../../packages/shared-ui/src/**/*.{ts,tsx}"];
10
- readonly theme: {
1
+ import * as tailwindcss_types_config from 'tailwindcss/types/config';
2
+ import typography from '@tailwindcss/typography';
3
+
4
+ declare const config: {
5
+ plugins: ({
6
+ handler: tailwindcss_types_config.PluginCreator;
7
+ config?: Partial<tailwindcss_types_config.Config> | undefined;
8
+ } | typeof typography | {
9
+ handler: () => void;
10
+ })[];
11
+ darkMode: ["class"];
12
+ safelist: ["dark", "light"];
13
+ content: ["src/**/*.{js,ts,jsx,tsx,mdx}", "../../packages/ui/src/*.{ts,tsx}", "../../packages/ui/src/**/*.{ts,tsx}", "../../packages/shared-ui/src/*.{ts,tsx}", "../../packages/shared-ui/src/**/*.{ts,tsx}"];
14
+ theme: {
11
15
  readonly fontSize: {
12
16
  readonly xs: ["0.75rem", {
13
17
  readonly lineHeight: "1rem";
@@ -49,9 +53,6 @@ export declare const configWithNoPlugins: {
49
53
  readonly "9xl": ["8rem", {
50
54
  readonly lineHeight: "1";
51
55
  }];
52
- /**
53
- * Typography sizes
54
- */
55
56
  readonly h1: ["3rem", {
56
57
  readonly lineHeight: "3.5rem";
57
58
  readonly fontWeight: "700";
@@ -252,4 +253,5 @@ export declare const configWithNoPlugins: {
252
253
  };
253
254
  };
254
255
  };
255
- //# sourceMappingURL=config.d.ts.map
256
+
257
+ export { config, config as default };
@@ -1,8 +1,10 @@
1
- import typography from "@tailwindcss/typography";
2
- export declare const config: {
1
+ import * as tailwindcss_types_config from 'tailwindcss/types/config';
2
+ import typography from '@tailwindcss/typography';
3
+
4
+ declare const config: {
3
5
  plugins: ({
4
- handler: import("tailwindcss/types/config").PluginCreator;
5
- config?: Partial<import("tailwindcss/types/config").Config> | undefined;
6
+ handler: tailwindcss_types_config.PluginCreator;
7
+ config?: Partial<tailwindcss_types_config.Config> | undefined;
6
8
  } | typeof typography | {
7
9
  handler: () => void;
8
10
  })[];
@@ -251,5 +253,5 @@ export declare const config: {
251
253
  };
252
254
  };
253
255
  };
254
- export default config;
255
- //# sourceMappingURL=index.d.ts.map
256
+
257
+ export { config, config as default };
@@ -2,7 +2,6 @@
2
2
 
3
3
  // src/internal/tsup/index.ts
4
4
  var _child_process = require('child_process');
5
- var _fs = require('fs');
6
5
  var _tsup = require('tsup');
7
6
  function applyDefaultConfig(userConfig, opts) {
8
7
  if (Array.isArray(userConfig)) {
@@ -36,32 +35,13 @@ function applyDefaultConfig(userConfig, opts) {
36
35
  // Whether to minify the output
37
36
  sourcemap: process.env.UPLOAD_SOURCEMAPS === "true" || sourcemap,
38
37
  // Whether to generate sourcemaps
39
- // During normal builds, disable tsup's built-in dts and use tsc in
40
- // onSuccess to generate declaration files with declarationMap so that
41
- // IDE "Go to Source" points to the real .ts source.
42
- // When --dtsOnly is passed (check-types), let tsup handle it.
43
- // Be careful and add this to turbo.json or some builds might fail when using turbo remote cache.
44
- dts: isDeclarationOnly ? opts.dts : false,
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",
45
41
  async onSuccess() {
46
- if (isDeclarationOnly) return;
47
42
  _child_process.execSync.call(void 0,
48
43
  `find dist -name "*.cjs" -exec perl -pi -e 's/return await /return await /g' {} +`
49
44
  );
50
- if (process.env.VERCEL === "1") return;
51
- try {
52
- const project = _fs.existsSync.call(void 0, "tsconfig.build.json") ? "tsconfig.build.json" : "tsconfig.json";
53
- _child_process.execSync.call(void 0, "rm -f tsconfig.tsbuildinfo", { stdio: "inherit" });
54
- _child_process.execSync.call(void 0,
55
- `tsc --project ${project} --emitDeclarationOnly --declarationMap`,
56
- { stdio: "inherit" }
57
- );
58
- _child_process.execSync.call(void 0,
59
- "rsync -a --include='*/' --include='*.d.ts' --exclude='*' src/ dist/ 2>/dev/null || true",
60
- { stdio: "inherit" }
61
- );
62
- } catch (error) {
63
- console.error("Declaration map generation failed:", error);
64
- }
65
45
  },
66
46
  esbuildOptions: (esbuildOptions, o) => {
67
47
  esbuildOptions.jsx = "automatic";
@@ -71,13 +51,7 @@ function applyDefaultConfig(userConfig, opts) {
71
51
  };
72
52
  return {
73
53
  ...defaultConfig,
74
- ...userConfig,
75
- onSuccess: async () => {
76
- await _optionalChain([defaultConfig, 'access', _3 => _3.onSuccess, 'optionalCall', _4 => _4()]);
77
- if (typeof userConfig.onSuccess === "function") {
78
- await userConfig.onSuccess();
79
- }
80
- }
54
+ ...userConfig
81
55
  };
82
56
  }
83
57
  var beraTsupConfig = (config) => {
@@ -0,0 +1,6 @@
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,3 +1,6 @@
1
- import { defineConfig } from "tsup";
2
- export declare const beraTsupConfig: typeof defineConfig;
3
- //# sourceMappingURL=index.d.ts.map
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 };
@@ -2,7 +2,6 @@ import "../../chunk-7P6ASYW6.mjs";
2
2
 
3
3
  // src/internal/tsup/index.ts
4
4
  import { execSync } from "child_process";
5
- import { existsSync } from "fs";
6
5
  import { defineConfig } from "tsup";
7
6
  function applyDefaultConfig(userConfig, opts) {
8
7
  if (Array.isArray(userConfig)) {
@@ -36,32 +35,13 @@ function applyDefaultConfig(userConfig, opts) {
36
35
  // Whether to minify the output
37
36
  sourcemap: process.env.UPLOAD_SOURCEMAPS === "true" || sourcemap,
38
37
  // Whether to generate sourcemaps
39
- // During normal builds, disable tsup's built-in dts and use tsc in
40
- // onSuccess to generate declaration files with declarationMap so that
41
- // IDE "Go to Source" points to the real .ts source.
42
- // When --dtsOnly is passed (check-types), let tsup handle it.
43
- // Be careful and add this to turbo.json or some builds might fail when using turbo remote cache.
44
- dts: isDeclarationOnly ? opts.dts : false,
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",
45
41
  async onSuccess() {
46
- if (isDeclarationOnly) return;
47
42
  execSync(
48
43
  `find dist -name "*.cjs" -exec perl -pi -e 's/returnawait /return await /g' {} +`
49
44
  );
50
- if (process.env.VERCEL === "1") return;
51
- try {
52
- const project = existsSync("tsconfig.build.json") ? "tsconfig.build.json" : "tsconfig.json";
53
- execSync("rm -f tsconfig.tsbuildinfo", { stdio: "inherit" });
54
- execSync(
55
- `tsc --project ${project} --emitDeclarationOnly --declarationMap`,
56
- { stdio: "inherit" }
57
- );
58
- execSync(
59
- "rsync -a --include='*/' --include='*.d.ts' --exclude='*' src/ dist/ 2>/dev/null || true",
60
- { stdio: "inherit" }
61
- );
62
- } catch (error) {
63
- console.error("Declaration map generation failed:", error);
64
- }
65
45
  },
66
46
  esbuildOptions: (esbuildOptions, o) => {
67
47
  esbuildOptions.jsx = "automatic";
@@ -71,13 +51,7 @@ function applyDefaultConfig(userConfig, opts) {
71
51
  };
72
52
  return {
73
53
  ...defaultConfig,
74
- ...userConfig,
75
- onSuccess: async () => {
76
- await defaultConfig.onSuccess?.();
77
- if (typeof userConfig.onSuccess === "function") {
78
- await userConfig.onSuccess();
79
- }
80
- }
54
+ ...userConfig
81
55
  };
82
56
  }
83
57
  var beraTsupConfig = (config) => {
@@ -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 };
@@ -1,10 +1,12 @@
1
- import { type Chain } from "viem/chains";
2
- export declare const defaultChain: Chain;
3
- export declare const urls: string[];
1
+ import { Chain } from 'viem/chains';
2
+
3
+ declare const defaultChain: Chain;
4
+ declare const urls: string[];
4
5
  /**
5
6
  * This are the chains that have been approved by the Bera team to be used in the BeraHub,
6
7
  * for multi chain zapping.
7
8
  */
8
- export declare const externalChains: Chain[];
9
- export declare const chainIdToName: Record<Chain["id"], string>;
10
- //# sourceMappingURL=index.d.ts.map
9
+ declare const externalChains: Chain[];
10
+ declare const chainIdToName: Record<Chain["id"], string>;
11
+
12
+ export { chainIdToName, defaultChain, externalChains, urls };
@@ -0,0 +1,154 @@
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/mainnet.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { ChainId } from "./types";
2
- export declare const mainnet: {
1
+ import { C as ChainId } from './types-Drv0VlAi.js';
2
+
3
+ declare const mainnet: {
3
4
  readonly chainId: ChainId.MAINNET;
4
5
  readonly tokens: {
5
6
  readonly wbera: "0x6969696969696969696969696969696969696969";
@@ -149,4 +150,5 @@ export declare const mainnet: {
149
150
  };
150
151
  readonly faucet: null;
151
152
  };
152
- //# sourceMappingURL=mainnet.d.ts.map
153
+
154
+ export { mainnet };
@@ -1,15 +1,15 @@
1
- export type Address = `0x${string}`;
1
+ type Address = `0x${string}`;
2
2
  /**
3
3
  * List of app names in monobera. For a broader list of project names, see ProjectNames.
4
4
  *
5
5
  * All of these projects have a nextjs set up with `withBeraConfig` and have access to edge config.
6
6
  */
7
- export type AppName = "BeraHub" | "Honey" | "Bend";
7
+ type AppName = "BeraHub" | "Honey" | "Bend";
8
8
  /**
9
9
  * List of projects.
10
10
  */
11
- export type ProjectName = AppName | "BeraBridge" | "Faucet" | "BeraBridge NFT" | "Berachain Foundation" | "Explore" | "Berascan";
12
- export type HttpLink = string | {
11
+ type ProjectName = AppName | "BeraBridge" | "Faucet" | "BeraBridge NFT" | "Berachain Foundation" | "Explore" | "Berascan";
12
+ type HttpLink = string | {
13
13
  uri: string;
14
14
  headers?: Record<string, string>;
15
15
  /**
@@ -40,7 +40,7 @@ type BendAddresses = {
40
40
  supportedVaults: Array<Address>;
41
41
  curatorVaults: Array<Address>;
42
42
  };
43
- export interface BeraConfig {
43
+ interface BeraConfig {
44
44
  chainId: ChainId;
45
45
  /**
46
46
  * Some common token addresses available on the chain.
@@ -206,9 +206,9 @@ export interface BeraConfig {
206
206
  endpoint: string;
207
207
  }) | null;
208
208
  }
209
- export declare enum ChainId {
209
+ declare enum ChainId {
210
210
  MAINNET = 80094,
211
211
  BEPOLIA = 80069
212
212
  }
213
- export {};
214
- //# sourceMappingURL=types.d.ts.map
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 };