@berachain/config 0.1.21 → 0.1.22-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.
Files changed (79) hide show
  1. package/dist/bepolia.d.ts +3 -5
  2. package/dist/bepolia.d.ts.map +1 -0
  3. package/dist/index.d.ts +3 -6
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/internal/edge-config/{index.d.cts → edgeConfig.codegen.d.ts} +13 -62
  6. package/dist/internal/edge-config/edgeConfig.codegen.d.ts.map +1 -0
  7. package/dist/internal/edge-config/index.d.ts +5 -335
  8. package/dist/internal/edge-config/index.d.ts.map +1 -0
  9. package/dist/internal/edge-config/isFlagEnabled.d.ts +17 -0
  10. package/dist/internal/edge-config/isFlagEnabled.d.ts.map +1 -0
  11. package/dist/internal/edge-config/safeGetAll.d.ts +15 -0
  12. package/dist/internal/edge-config/safeGetAll.d.ts.map +1 -0
  13. package/dist/internal/edge-config/safeGetConfig.d.ts +19 -0
  14. package/dist/internal/edge-config/safeGetConfig.d.ts.map +1 -0
  15. package/dist/internal/flags/beraEdgeConfigAdapter.d.ts +9 -0
  16. package/dist/internal/flags/beraEdgeConfigAdapter.d.ts.map +1 -0
  17. package/dist/internal/flags/flags.d.ts +29 -0
  18. package/dist/internal/flags/flags.d.ts.map +1 -0
  19. package/dist/internal/flags/index.d.ts +2 -60
  20. package/dist/internal/flags/index.d.ts.map +1 -0
  21. package/dist/internal/header-sources.d.ts +5 -7
  22. package/dist/internal/header-sources.d.ts.map +1 -0
  23. package/dist/internal/index.d.ts +139 -173
  24. package/dist/internal/index.d.ts.map +1 -0
  25. package/dist/internal/maintenance.d.ts +5 -7
  26. package/dist/internal/maintenance.d.ts.map +1 -0
  27. package/dist/internal/nextjs/const.d.ts +3 -0
  28. package/dist/internal/nextjs/const.d.ts.map +1 -0
  29. package/dist/internal/nextjs/index.d.ts +5 -6
  30. package/dist/internal/nextjs/index.d.ts.map +1 -0
  31. package/dist/internal/nextjs/utils/index.d.ts +2 -3
  32. package/dist/internal/nextjs/utils/index.d.ts.map +1 -0
  33. package/dist/internal/sentry/getSentryKeys.d.ts +16 -0
  34. package/dist/internal/sentry/getSentryKeys.d.ts.map +1 -0
  35. package/dist/internal/sentry/index.d.ts +6 -8
  36. package/dist/internal/sentry/index.d.ts.map +1 -0
  37. package/dist/internal/sentry/sentry.client.config.d.ts +3 -6
  38. package/dist/internal/sentry/sentry.client.config.d.ts.map +1 -0
  39. package/dist/internal/sentry/sentry.edge.config.d.ts +3 -0
  40. package/dist/internal/sentry/sentry.edge.config.d.ts.map +1 -0
  41. package/dist/internal/sentry/sentry.server.config.d.ts +3 -0
  42. package/dist/internal/sentry/sentry.server.config.d.ts.map +1 -0
  43. package/dist/internal/sentry/sentryEnvironment.d.ts +6 -0
  44. package/dist/internal/sentry/sentryEnvironment.d.ts.map +1 -0
  45. package/dist/internal/tailwind/{index.d.cts → config.d.ts} +14 -16
  46. package/dist/internal/tailwind/config.d.ts.map +1 -0
  47. package/dist/internal/tailwind/index.d.ts +6 -8
  48. package/dist/internal/tailwind/index.d.ts.map +1 -0
  49. package/dist/internal/tsup/index.cjs +30 -4
  50. package/dist/internal/tsup/index.d.ts +3 -6
  51. package/dist/internal/tsup/index.d.ts.map +1 -0
  52. package/dist/internal/tsup/index.mjs +30 -4
  53. package/dist/internal/wagmi/index.d.ts +6 -8
  54. package/dist/internal/wagmi/index.d.ts.map +1 -0
  55. package/dist/mainnet.d.ts +3 -5
  56. package/dist/mainnet.d.ts.map +1 -0
  57. package/dist/{types-Drv0VlAi.d.cts → types.d.ts} +8 -8
  58. package/dist/types.d.ts.map +1 -0
  59. package/dist/utils/dynamicEnvVariable.d.ts +21 -0
  60. package/dist/utils/dynamicEnvVariable.d.ts.map +1 -0
  61. package/dist/utils/env.d.ts +29 -0
  62. package/dist/utils/env.d.ts.map +1 -0
  63. package/dist/utils/getUriFromLink.d.ts +3 -0
  64. package/dist/utils/getUriFromLink.d.ts.map +1 -0
  65. package/package.json +1 -1
  66. package/dist/bepolia.d.cts +0 -169
  67. package/dist/index.d.cts +0 -6
  68. package/dist/internal/flags/index.d.cts +0 -60
  69. package/dist/internal/header-sources.d.cts +0 -22
  70. package/dist/internal/index.d.cts +0 -749
  71. package/dist/internal/maintenance.d.cts +0 -11
  72. package/dist/internal/nextjs/index.d.cts +0 -34
  73. package/dist/internal/nextjs/utils/index.d.cts +0 -9
  74. package/dist/internal/sentry/index.d.cts +0 -13
  75. package/dist/internal/sentry/sentry.client.config.d.cts +0 -6
  76. package/dist/internal/tsup/index.d.cts +0 -6
  77. package/dist/internal/wagmi/index.d.cts +0 -12
  78. package/dist/mainnet.d.cts +0 -154
  79. package/dist/types-Drv0VlAi.d.ts +0 -214
@@ -1,749 +0,0 @@
1
- import { C as ChainId, a as AppName, A as Address } from '../types-Drv0VlAi.cjs';
2
- export { B as BeraConfig, H as HttpLink, P as ProjectName } from '../types-Drv0VlAi.cjs';
3
-
4
- declare const defaultChainId: ChainId;
5
-
6
- /**
7
- * Name of the current dapp. Available only if using `withBeraConfig` from @berachain/config/internal/nextjs.
8
- */
9
- declare const currentDapp: AppName | undefined;
10
-
11
- /**
12
- * Exporting here all variables that are used in the frontend.
13
- * Avoids circular dependency with the config object.
14
- */
15
-
16
- declare const imageBaseUrl = "https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ";
17
- declare const goldskyBaseUrl = "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/";
18
- /**
19
- * Returns the RPC URLs for the given chain ID. If anvil is set, it will just return the anvil RPC URLs.
20
- */
21
- declare function getRpcUrls(chainId?: ChainId): {
22
- publicJsonRpcUrl: string;
23
- jsonRpcUrl: string;
24
- alchemyJsonRpcUrl: string | undefined;
25
- privateRcpUrl: string | undefined;
26
- /**
27
- * Whether the RPC URLs are for anvil.
28
- */
29
- isAnvil: boolean;
30
- };
31
- declare const publicJsonRpcUrl: string;
32
- declare const jsonRpcUrl: string;
33
- declare const alchemyJsonRpcUrl: string | undefined;
34
- declare const /**
35
- * Dedicated private RPC URL for server side with higher rate limits.
36
- * Not available on client side.
37
- */
38
- privateRcpUrl: string | undefined;
39
-
40
- declare const chainConfigs: {
41
- readonly 80094: {
42
- readonly chainId: ChainId.MAINNET;
43
- readonly tokens: {
44
- readonly wbera: "0x6969696969696969696969696969696969696969";
45
- readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
46
- readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
47
- readonly wbtc: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c";
48
- readonly weth: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590";
49
- };
50
- readonly depositContract: "0x4242424242424242424242424242424242424242";
51
- readonly pol: {
52
- readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
53
- readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
54
- readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
55
- readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
56
- readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
57
- readonly subgraph: {
58
- readonly name: "pol-subgraph";
59
- readonly uri: string;
60
- readonly headers: {
61
- Authorization: string;
62
- } | undefined;
63
- };
64
- readonly bribeBoostApi: string;
65
- readonly supplyMonitor: {
66
- readonly name: "supply-monitor";
67
- readonly uri: string;
68
- };
69
- readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
70
- readonly lstStakerVaultFactory: "0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500";
71
- };
72
- readonly api: {
73
- readonly name: "Berachain API";
74
- readonly uri: string;
75
- readonly headers: {
76
- "x-api-key": string;
77
- } | undefined;
78
- };
79
- readonly beep: {
80
- readonly uri: string;
81
- readonly name: "Berachain Beep";
82
- };
83
- readonly bex: {
84
- readonly chainName: "BERACHAIN";
85
- readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
86
- readonly helper: "0x5083737EC75a728c265BE578C9d0d5333a2c5951";
87
- readonly queries: "0x3C612e132624f4Bd500eE1495F54565F0bcc9b59";
88
- readonly relayer: "0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7";
89
- readonly factories: {
90
- readonly composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1";
91
- readonly weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409";
92
- };
93
- readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
94
- readonly poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2";
95
- readonly aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58";
96
- readonly aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8";
97
- readonly haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7";
98
- readonly haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71";
99
- readonly aggregatorsProxyUrl: string;
100
- readonly recoverFundsApi: string;
101
- readonly recoverFundsContract: `0x${string}`;
102
- };
103
- readonly honey: {
104
- readonly name: "Honey";
105
- readonly url: "https://honey.berachain.com";
106
- readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
107
- readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
108
- readonly pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95";
109
- readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
110
- readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
111
- };
112
- readonly hub: {
113
- readonly name: "BeraHub";
114
- readonly url: "https://hub.berachain.com";
115
- };
116
- readonly governance: {
117
- readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
118
- readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
119
- };
120
- readonly lists: {
121
- readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json";
122
- readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/mainnet.json";
123
- readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/mainnet.json";
124
- };
125
- readonly external: {
126
- readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
127
- };
128
- readonly averageBlockTime: 2;
129
- readonly bridge: {
130
- readonly name: "BeraBridge";
131
- readonly url: "https://bridge.berachain.com";
132
- readonly nft: {
133
- readonly name: "BeraBridge NFT";
134
- readonly url: "https://nftbridge.berachain.com";
135
- readonly eth: {
136
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/eth-v1.0.0-beta1/gn";
137
- };
138
- readonly berachain: {
139
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn";
140
- };
141
- };
142
- };
143
- readonly bend: {
144
- readonly name: "Bend";
145
- readonly url: "https://bend.berachain.com";
146
- readonly whiskApi: {
147
- readonly name: "Bend Whisk";
148
- readonly uri: string;
149
- readonly headers: {
150
- Authorization: string;
151
- } | undefined;
152
- };
153
- readonly production: {
154
- readonly morpho: "0x24147243f9c08d835C218Cda1e135f8dFD0517D0";
155
- readonly adaptiveCurveIrm: "0xcf247Df3A2322Dea0D408f011c194906E77a6f62";
156
- readonly metaMorphoFactory: "0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616";
157
- readonly publicAllocator: "0xB62F34Ab315eaDeAc698e8EaEB6Fc2650951BFe7";
158
- readonly bundler3: "0xF920140A65D0f412f2AB3e76C4fEAB5Eef0657ae";
159
- readonly generalAdapter1: "0xd2B9667F5214115E27937C410cAeE83E3a901Df7";
160
- readonly supportedVaults: `0x${string}`[];
161
- readonly curatorVaults: `0x${string}`[];
162
- };
163
- readonly staging: {
164
- readonly morpho: "0xC5FabF3a7E98a2ed89f5d5057Ab010634Ca7e71f";
165
- readonly adaptiveCurveIrm: "0x1d5376e532CcF25b740270624111D665830E5dB9";
166
- readonly metaMorphoFactory: "0x524061B659380a5e4576d76F0951303B20B5932f";
167
- readonly publicAllocator: "0xFD6e68bC20be2a01Ec1Df687c83f927087D52811";
168
- readonly bundler3: "0x56811e1BFfF951B98c7940d3aCe0e549Ec4fDee8";
169
- readonly generalAdapter1: "0x257a41E20BBfe90D750646C2e00bA700D55958C5";
170
- readonly supportedVaults: `0x${string}`[];
171
- readonly curatorVaults: `0x${string}`[];
172
- };
173
- };
174
- readonly enso: {
175
- readonly walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55";
176
- readonly walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b";
177
- };
178
- readonly explore: {
179
- readonly name: "Explore";
180
- readonly url: "https://explore.berachain.com";
181
- };
182
- readonly explorer: {
183
- readonly name: "Berascan";
184
- readonly url: "https://berascan.com";
185
- };
186
- readonly chain: {
187
- readonly name: string;
188
- };
189
- readonly faucet: null;
190
- };
191
- readonly 80069: {
192
- readonly chainId: ChainId.BEPOLIA;
193
- readonly tokens: {
194
- readonly wbera: "0x6969696969696969696969696969696969696969";
195
- readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
196
- readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
197
- readonly wbtc: "0x";
198
- readonly weth: "0x";
199
- };
200
- readonly depositContract: "0x4242424242424242424242424242424242424242";
201
- readonly pol: {
202
- readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
203
- readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
204
- readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
205
- readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
206
- readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
207
- readonly subgraph: {
208
- readonly name: "pol-subgraph";
209
- readonly uri: string;
210
- readonly headers: {
211
- Authorization: string;
212
- } | undefined;
213
- };
214
- readonly bribeBoostApi: string;
215
- readonly supplyMonitor: {
216
- readonly name: "supply-monitor";
217
- readonly uri: string;
218
- };
219
- readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
220
- readonly lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178";
221
- };
222
- readonly api: {
223
- readonly name: "Berachain API";
224
- readonly uri: string;
225
- readonly headers: {
226
- "x-api-key": string;
227
- } | undefined;
228
- };
229
- readonly beep: {
230
- readonly name: "Berachain Beep";
231
- readonly uri: string;
232
- };
233
- readonly bex: {
234
- readonly chainName: "BEPOLIA";
235
- readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
236
- readonly helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f";
237
- readonly queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92";
238
- readonly relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C";
239
- readonly factories: {
240
- readonly composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1";
241
- readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
242
- };
243
- readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
244
- readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
245
- readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
246
- readonly haikuRouter: null;
247
- readonly haikuAgentAddress: null;
248
- readonly aggregatorsProxyUrl: string;
249
- readonly recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com";
250
- readonly recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a";
251
- readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
252
- };
253
- readonly honey: {
254
- readonly name: "Honey";
255
- readonly url: "https://bepolia.honey.berachain.com";
256
- readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
257
- readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
258
- readonly pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB";
259
- readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
260
- readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
261
- };
262
- readonly hub: {
263
- readonly name: "BeraHub";
264
- readonly url: "https://bepolia.hub.berachain.com";
265
- };
266
- readonly governance: {
267
- readonly governor: `0x${string}`;
268
- readonly timelock: `0x${string}`;
269
- };
270
- readonly lists: {
271
- readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json";
272
- readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json";
273
- readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json";
274
- };
275
- readonly external: {
276
- readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
277
- };
278
- readonly averageBlockTime: 2;
279
- readonly bridge: {
280
- readonly name: "BeraBridge";
281
- readonly url: "https://bepolia.bridge.berachain.com";
282
- readonly nft: {
283
- readonly name: "BeraBridge NFT";
284
- readonly url: "#";
285
- readonly eth: {
286
- readonly subgraph: "#";
287
- };
288
- readonly berachain: {
289
- readonly subgraph: "#";
290
- };
291
- };
292
- };
293
- readonly bend: {
294
- readonly name: "Bend";
295
- readonly url: "https://bepolia.bend.berachain.com";
296
- readonly whiskApi: null;
297
- readonly production: {
298
- readonly morpho: null;
299
- readonly adaptiveCurveIrm: null;
300
- readonly metaMorphoFactory: null;
301
- readonly publicAllocator: null;
302
- readonly bundler3: null;
303
- readonly generalAdapter1: null;
304
- readonly supportedVaults: Address[];
305
- readonly curatorVaults: Address[];
306
- };
307
- readonly staging: {
308
- readonly morpho: null;
309
- readonly adaptiveCurveIrm: null;
310
- readonly metaMorphoFactory: null;
311
- readonly publicAllocator: null;
312
- readonly bundler3: null;
313
- readonly generalAdapter1: null;
314
- readonly supportedVaults: Address[];
315
- readonly curatorVaults: Address[];
316
- };
317
- };
318
- readonly enso: {
319
- readonly walletV2Factory: null;
320
- readonly walletFlashloanAdapter: null;
321
- };
322
- readonly explore: {
323
- readonly name: "Explore";
324
- readonly url: "https://explore.berachain.com";
325
- };
326
- readonly explorer: {
327
- readonly name: "Berascan";
328
- readonly url: "https://testnet.berascan.com";
329
- };
330
- readonly chain: {
331
- readonly name: string;
332
- };
333
- readonly faucet: {
334
- readonly name: "Faucet";
335
- readonly url: "https://bepolia.faucet.berachain.com";
336
- readonly dripAmount: 1;
337
- readonly timeGap: 8;
338
- readonly cloudflareKey: string;
339
- readonly endpoint: "https://faucet-api.testnet.berachain.com";
340
- };
341
- };
342
- };
343
- declare const appConfig: {
344
- readonly flags: {
345
- readonly isPosthogEnabled: boolean;
346
- readonly isCookie3Enabled: boolean | "";
347
- /**
348
- * Disallow SEO indexing for non-mainnet deployments
349
- */
350
- readonly disallowIndexing: boolean;
351
- readonly hideCurator: false;
352
- };
353
- readonly apiKeys: {
354
- readonly public: {
355
- /**
356
- * This is only going to work on whitelisted domains.
357
- * Please create your own API key and add it to your .env.local file
358
- */
359
- readonly thirdweb: string;
360
- readonly postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax";
361
- readonly cookie3SiteId: string;
362
- readonly enso: string;
363
- };
364
- readonly private: {
365
- /**
366
- * This is a low-security API key that is used to access internal API endpoints that do not
367
- * expose any sensitive information. It's just used to avoid public access to these endpoints.
368
- */
369
- readonly dummyInternalApiKey: string;
370
- /**
371
- * API key for events on Luma.
372
- *
373
- * Used by ecosystem.berachain.com/events page
374
- */
375
- readonly luma: string;
376
- readonly clickup: string;
377
- /**
378
- * API key for Ghost content.
379
- *
380
- * Used by blog.berachain.com
381
- */
382
- readonly ghostContent: string;
383
- /**
384
- * API key for Ghost admin.
385
- *
386
- * Used by blog.berachain.com
387
- */
388
- readonly ghostAdmin: string;
389
- readonly oogabooga: string;
390
- readonly haiku: string;
391
- readonly kyberswap: string;
392
- readonly enso: string;
393
- readonly etherscan: string;
394
- };
395
- };
396
- readonly urls: {
397
- readonly postHog: {
398
- readonly region: "eu" | "us";
399
- readonly apiHost: string;
400
- readonly uiHost: "https://eu.posthog.com" | "https://us.posthog.com";
401
- };
402
- readonly ghost: "https://berachain.ghost.io";
403
- readonly imageDelivery: "https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ";
404
- readonly homepage: string;
405
- readonly ecosystem: "https://ecosystem.berachain.com/";
406
- readonly ecojobs: "https://ecojobs.berachain.com/";
407
- readonly docs: "https://docs.berachain.com";
408
- readonly careers: "https://careers.berachain.com/";
409
- readonly mediaKit: "https://drive.google.com/drive/folders/12t_a4Rci2txC3uVj9JyXXsSRCqWfd4GG/";
410
- readonly blog: "https://blog.berachain.com/";
411
- readonly news: "https://news.berachain.com/";
412
- readonly honeypaper: "https://honeypaper.berachain.com/";
413
- readonly airdrop: "https://airdrop.berachain.com/";
414
- readonly twitter: "https://x.com/berachain";
415
- readonly telegram: "https://t.me/BerachainPortal";
416
- readonly discord: "https://discord.com/invite/berachain";
417
- readonly github: "https://github.com/berachain";
418
- readonly buildabera: "https://buildabera.xyz/";
419
- };
420
- readonly bend: {
421
- /**
422
- * Margin from max LTV where warning will be shown about liquidation risk.
423
- * e.g. if max LTV is 0.8, warning will show at 0.75
424
- */
425
- readonly liquidationWarningLtvMargin: 0.05;
426
- /**
427
- * Safety margin subtracted from max LTV to determine borrow limit.
428
- * e.g. if max LTV is 0.945, borrow limit will be 0.895
429
- */
430
- readonly maxBorrowLtvMargin: 0.05;
431
- /**
432
- * Target utilization rate for public allocator supply in WAD format (18 decimals).
433
- * Set to 90% (0.9 * 1e18) to maintain healthy liquidity buffer.
434
- */
435
- readonly publicAllocatorSupplyTargetUtilizationWad: bigint;
436
- readonly useProductionContracts: boolean;
437
- };
438
- readonly env: {
439
- readonly isProduction: boolean;
440
- readonly isLocalHost: boolean;
441
- readonly isPreview: boolean;
442
- readonly isStaging: boolean;
443
- };
444
- };
445
- /**
446
- * @deprecated use chainConfigs and appConfig instead. chainId should always be read from the app state.
447
- */
448
- declare const config: {
449
- readonly chainId: ChainId.MAINNET;
450
- readonly tokens: {
451
- readonly wbera: "0x6969696969696969696969696969696969696969";
452
- readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
453
- readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
454
- readonly wbtc: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c";
455
- readonly weth: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590";
456
- };
457
- readonly depositContract: "0x4242424242424242424242424242424242424242";
458
- readonly pol: {
459
- readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
460
- readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
461
- readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
462
- readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
463
- readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
464
- readonly subgraph: {
465
- readonly name: "pol-subgraph";
466
- readonly uri: string;
467
- readonly headers: {
468
- Authorization: string;
469
- } | undefined;
470
- };
471
- readonly bribeBoostApi: string;
472
- readonly supplyMonitor: {
473
- readonly name: "supply-monitor";
474
- readonly uri: string;
475
- };
476
- readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
477
- readonly lstStakerVaultFactory: "0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500";
478
- };
479
- readonly api: {
480
- readonly name: "Berachain API";
481
- readonly uri: string;
482
- readonly headers: {
483
- "x-api-key": string;
484
- } | undefined;
485
- };
486
- readonly beep: {
487
- readonly uri: string;
488
- readonly name: "Berachain Beep";
489
- };
490
- readonly bex: {
491
- readonly chainName: "BERACHAIN";
492
- readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
493
- readonly helper: "0x5083737EC75a728c265BE578C9d0d5333a2c5951";
494
- readonly queries: "0x3C612e132624f4Bd500eE1495F54565F0bcc9b59";
495
- readonly relayer: "0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7";
496
- readonly factories: {
497
- readonly composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1";
498
- readonly weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409";
499
- };
500
- readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
501
- readonly poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2";
502
- readonly aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58";
503
- readonly aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8";
504
- readonly haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7";
505
- readonly haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71";
506
- readonly aggregatorsProxyUrl: string;
507
- readonly recoverFundsApi: string;
508
- readonly recoverFundsContract: `0x${string}`;
509
- };
510
- readonly honey: {
511
- readonly name: "Honey";
512
- readonly url: "https://honey.berachain.com";
513
- readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
514
- readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
515
- readonly pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95";
516
- readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
517
- readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
518
- };
519
- readonly hub: {
520
- readonly name: "BeraHub";
521
- readonly url: "https://hub.berachain.com";
522
- };
523
- readonly governance: {
524
- readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
525
- readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
526
- };
527
- readonly lists: {
528
- readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json";
529
- readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/mainnet.json";
530
- readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/mainnet.json";
531
- };
532
- readonly external: {
533
- readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
534
- };
535
- readonly averageBlockTime: 2;
536
- readonly bridge: {
537
- readonly name: "BeraBridge";
538
- readonly url: "https://bridge.berachain.com";
539
- readonly nft: {
540
- readonly name: "BeraBridge NFT";
541
- readonly url: "https://nftbridge.berachain.com";
542
- readonly eth: {
543
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/eth-v1.0.0-beta1/gn";
544
- };
545
- readonly berachain: {
546
- readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn";
547
- };
548
- };
549
- };
550
- readonly bend: {
551
- readonly name: "Bend";
552
- readonly url: "https://bend.berachain.com";
553
- readonly whiskApi: {
554
- readonly name: "Bend Whisk";
555
- readonly uri: string;
556
- readonly headers: {
557
- Authorization: string;
558
- } | undefined;
559
- };
560
- readonly production: {
561
- readonly morpho: "0x24147243f9c08d835C218Cda1e135f8dFD0517D0";
562
- readonly adaptiveCurveIrm: "0xcf247Df3A2322Dea0D408f011c194906E77a6f62";
563
- readonly metaMorphoFactory: "0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616";
564
- readonly publicAllocator: "0xB62F34Ab315eaDeAc698e8EaEB6Fc2650951BFe7";
565
- readonly bundler3: "0xF920140A65D0f412f2AB3e76C4fEAB5Eef0657ae";
566
- readonly generalAdapter1: "0xd2B9667F5214115E27937C410cAeE83E3a901Df7";
567
- readonly supportedVaults: `0x${string}`[];
568
- readonly curatorVaults: `0x${string}`[];
569
- };
570
- readonly staging: {
571
- readonly morpho: "0xC5FabF3a7E98a2ed89f5d5057Ab010634Ca7e71f";
572
- readonly adaptiveCurveIrm: "0x1d5376e532CcF25b740270624111D665830E5dB9";
573
- readonly metaMorphoFactory: "0x524061B659380a5e4576d76F0951303B20B5932f";
574
- readonly publicAllocator: "0xFD6e68bC20be2a01Ec1Df687c83f927087D52811";
575
- readonly bundler3: "0x56811e1BFfF951B98c7940d3aCe0e549Ec4fDee8";
576
- readonly generalAdapter1: "0x257a41E20BBfe90D750646C2e00bA700D55958C5";
577
- readonly supportedVaults: `0x${string}`[];
578
- readonly curatorVaults: `0x${string}`[];
579
- };
580
- };
581
- readonly enso: {
582
- readonly walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55";
583
- readonly walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b";
584
- };
585
- readonly explore: {
586
- readonly name: "Explore";
587
- readonly url: "https://explore.berachain.com";
588
- };
589
- readonly explorer: {
590
- readonly name: "Berascan";
591
- readonly url: "https://berascan.com";
592
- };
593
- readonly chain: {
594
- readonly name: string;
595
- };
596
- readonly faucet: null;
597
- } | {
598
- readonly chainId: ChainId.BEPOLIA;
599
- readonly tokens: {
600
- readonly wbera: "0x6969696969696969696969696969696969696969";
601
- readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
602
- readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
603
- readonly wbtc: "0x";
604
- readonly weth: "0x";
605
- };
606
- readonly depositContract: "0x4242424242424242424242424242424242424242";
607
- readonly pol: {
608
- readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
609
- readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
610
- readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
611
- readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
612
- readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
613
- readonly subgraph: {
614
- readonly name: "pol-subgraph";
615
- readonly uri: string;
616
- readonly headers: {
617
- Authorization: string;
618
- } | undefined;
619
- };
620
- readonly bribeBoostApi: string;
621
- readonly supplyMonitor: {
622
- readonly name: "supply-monitor";
623
- readonly uri: string;
624
- };
625
- readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
626
- readonly lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178";
627
- };
628
- readonly api: {
629
- readonly name: "Berachain API";
630
- readonly uri: string;
631
- readonly headers: {
632
- "x-api-key": string;
633
- } | undefined;
634
- };
635
- readonly beep: {
636
- readonly name: "Berachain Beep";
637
- readonly uri: string;
638
- };
639
- readonly bex: {
640
- readonly chainName: "BEPOLIA";
641
- readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
642
- readonly helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f";
643
- readonly queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92";
644
- readonly relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C";
645
- readonly factories: {
646
- readonly composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1";
647
- readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
648
- };
649
- readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
650
- readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
651
- readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
652
- readonly haikuRouter: null;
653
- readonly haikuAgentAddress: null;
654
- readonly aggregatorsProxyUrl: string;
655
- readonly recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com";
656
- readonly recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a";
657
- readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
658
- };
659
- readonly honey: {
660
- readonly name: "Honey";
661
- readonly url: "https://bepolia.honey.berachain.com";
662
- readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
663
- readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
664
- readonly pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB";
665
- readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
666
- readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
667
- };
668
- readonly hub: {
669
- readonly name: "BeraHub";
670
- readonly url: "https://bepolia.hub.berachain.com";
671
- };
672
- readonly governance: {
673
- readonly governor: `0x${string}`;
674
- readonly timelock: `0x${string}`;
675
- };
676
- readonly lists: {
677
- readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json";
678
- readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json";
679
- readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json";
680
- };
681
- readonly external: {
682
- readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
683
- };
684
- readonly averageBlockTime: 2;
685
- readonly bridge: {
686
- readonly name: "BeraBridge";
687
- readonly url: "https://bepolia.bridge.berachain.com";
688
- readonly nft: {
689
- readonly name: "BeraBridge NFT";
690
- readonly url: "#";
691
- readonly eth: {
692
- readonly subgraph: "#";
693
- };
694
- readonly berachain: {
695
- readonly subgraph: "#";
696
- };
697
- };
698
- };
699
- readonly bend: {
700
- readonly name: "Bend";
701
- readonly url: "https://bepolia.bend.berachain.com";
702
- readonly whiskApi: null;
703
- readonly production: {
704
- readonly morpho: null;
705
- readonly adaptiveCurveIrm: null;
706
- readonly metaMorphoFactory: null;
707
- readonly publicAllocator: null;
708
- readonly bundler3: null;
709
- readonly generalAdapter1: null;
710
- readonly supportedVaults: Address[];
711
- readonly curatorVaults: Address[];
712
- };
713
- readonly staging: {
714
- readonly morpho: null;
715
- readonly adaptiveCurveIrm: null;
716
- readonly metaMorphoFactory: null;
717
- readonly publicAllocator: null;
718
- readonly bundler3: null;
719
- readonly generalAdapter1: null;
720
- readonly supportedVaults: Address[];
721
- readonly curatorVaults: Address[];
722
- };
723
- };
724
- readonly enso: {
725
- readonly walletV2Factory: null;
726
- readonly walletFlashloanAdapter: null;
727
- };
728
- readonly explore: {
729
- readonly name: "Explore";
730
- readonly url: "https://explore.berachain.com";
731
- };
732
- readonly explorer: {
733
- readonly name: "Berascan";
734
- readonly url: "https://testnet.berascan.com";
735
- };
736
- readonly chain: {
737
- readonly name: string;
738
- };
739
- readonly faucet: {
740
- readonly name: "Faucet";
741
- readonly url: "https://bepolia.faucet.berachain.com";
742
- readonly dripAmount: 1;
743
- readonly timeGap: 8;
744
- readonly cloudflareKey: string;
745
- readonly endpoint: "https://faucet-api.testnet.berachain.com";
746
- };
747
- };
748
-
749
- export { Address, AppName, ChainId, alchemyJsonRpcUrl, appConfig, chainConfigs, defaultChainId as chainId, config, currentDapp, defaultChainId, getRpcUrls, goldskyBaseUrl, imageBaseUrl, jsonRpcUrl, privateRcpUrl, publicJsonRpcUrl };