@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.
- package/dist/bepolia.d.cts +169 -0
- package/dist/bepolia.d.ts +5 -3
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -3
- package/dist/internal/edge-config/{edgeConfig.codegen.d.ts → index.d.cts} +122 -15
- package/dist/internal/edge-config/index.d.ts +393 -5
- package/dist/internal/flags/index.d.cts +60 -0
- package/dist/internal/flags/index.d.ts +60 -2
- package/dist/internal/header-sources.d.cts +22 -0
- package/dist/internal/header-sources.d.ts +7 -5
- package/dist/internal/index.d.cts +749 -0
- package/dist/internal/index.d.ts +173 -139
- package/dist/internal/maintenance.d.cts +11 -0
- package/dist/internal/maintenance.d.ts +7 -5
- package/dist/internal/nextjs/index.d.cts +34 -0
- package/dist/internal/nextjs/index.d.ts +6 -5
- package/dist/internal/nextjs/utils/index.d.cts +9 -0
- package/dist/internal/nextjs/utils/index.d.ts +3 -2
- package/dist/internal/sentry/index.d.cts +13 -0
- package/dist/internal/sentry/index.d.ts +8 -6
- package/dist/internal/sentry/sentry.client.config.d.cts +6 -0
- package/dist/internal/sentry/sentry.client.config.d.ts +6 -3
- package/dist/internal/tailwind/{config.d.ts → index.d.cts} +16 -14
- package/dist/internal/tailwind/index.d.ts +8 -6
- package/dist/internal/tsup/index.cjs +4 -30
- package/dist/internal/tsup/index.d.cts +6 -0
- package/dist/internal/tsup/index.d.ts +6 -3
- package/dist/internal/tsup/index.mjs +4 -30
- package/dist/internal/wagmi/index.d.cts +12 -0
- package/dist/internal/wagmi/index.d.ts +8 -6
- package/dist/mainnet.d.cts +154 -0
- package/dist/mainnet.d.ts +5 -3
- package/dist/{types.d.ts → types-Drv0VlAi.d.cts} +8 -8
- package/dist/types-Drv0VlAi.d.ts +214 -0
- package/package.json +1 -1
- package/dist/bepolia.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/internal/edge-config/edgeConfig.codegen.d.ts.map +0 -1
- package/dist/internal/edge-config/index.d.ts.map +0 -1
- package/dist/internal/edge-config/isFlagEnabled.d.ts +0 -17
- package/dist/internal/edge-config/isFlagEnabled.d.ts.map +0 -1
- package/dist/internal/edge-config/safeGetAll.d.ts +0 -15
- package/dist/internal/edge-config/safeGetAll.d.ts.map +0 -1
- package/dist/internal/edge-config/safeGetConfig.d.ts +0 -19
- package/dist/internal/edge-config/safeGetConfig.d.ts.map +0 -1
- package/dist/internal/flags/beraEdgeConfigAdapter.d.ts +0 -9
- package/dist/internal/flags/beraEdgeConfigAdapter.d.ts.map +0 -1
- package/dist/internal/flags/flags.d.ts +0 -29
- package/dist/internal/flags/flags.d.ts.map +0 -1
- package/dist/internal/flags/index.d.ts.map +0 -1
- package/dist/internal/header-sources.d.ts.map +0 -1
- package/dist/internal/index.d.ts.map +0 -1
- package/dist/internal/maintenance.d.ts.map +0 -1
- package/dist/internal/nextjs/const.d.ts +0 -3
- package/dist/internal/nextjs/const.d.ts.map +0 -1
- package/dist/internal/nextjs/index.d.ts.map +0 -1
- package/dist/internal/nextjs/utils/index.d.ts.map +0 -1
- package/dist/internal/sentry/getSentryKeys.d.ts +0 -16
- package/dist/internal/sentry/getSentryKeys.d.ts.map +0 -1
- package/dist/internal/sentry/index.d.ts.map +0 -1
- package/dist/internal/sentry/sentry.client.config.d.ts.map +0 -1
- package/dist/internal/sentry/sentry.edge.config.d.ts +0 -3
- package/dist/internal/sentry/sentry.edge.config.d.ts.map +0 -1
- package/dist/internal/sentry/sentry.server.config.d.ts +0 -3
- package/dist/internal/sentry/sentry.server.config.d.ts.map +0 -1
- package/dist/internal/sentry/sentryEnvironment.d.ts +0 -6
- package/dist/internal/sentry/sentryEnvironment.d.ts.map +0 -1
- package/dist/internal/tailwind/config.d.ts.map +0 -1
- package/dist/internal/tailwind/index.d.ts.map +0 -1
- package/dist/internal/tsup/index.d.ts.map +0 -1
- package/dist/internal/wagmi/index.d.ts.map +0 -1
- package/dist/mainnet.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils/dynamicEnvVariable.d.ts +0 -21
- package/dist/utils/dynamicEnvVariable.d.ts.map +0 -1
- package/dist/utils/env.d.ts +0 -29
- package/dist/utils/env.d.ts.map +0 -1
- package/dist/utils/getUriFromLink.d.ts +0 -3
- package/dist/utils/getUriFromLink.d.ts.map +0 -1
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,10 +1,43 @@
|
|
|
1
|
-
import { ChainId } from
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { C as ChainId, a as AppName, A as Address } from '../types-Drv0VlAi.js';
|
|
2
|
+
export { B as BeraConfig, H as HttpLink, P as ProjectName } from '../types-Drv0VlAi.js';
|
|
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: {
|
|
8
41
|
readonly 80094: {
|
|
9
42
|
readonly chainId: ChainId.MAINNET;
|
|
10
43
|
readonly tokens: {
|
|
@@ -268,8 +301,8 @@ export declare const chainConfigs: {
|
|
|
268
301
|
readonly publicAllocator: null;
|
|
269
302
|
readonly bundler3: null;
|
|
270
303
|
readonly generalAdapter1: null;
|
|
271
|
-
readonly supportedVaults:
|
|
272
|
-
readonly curatorVaults:
|
|
304
|
+
readonly supportedVaults: Address[];
|
|
305
|
+
readonly curatorVaults: Address[];
|
|
273
306
|
};
|
|
274
307
|
readonly staging: {
|
|
275
308
|
readonly morpho: null;
|
|
@@ -278,8 +311,8 @@ export declare const chainConfigs: {
|
|
|
278
311
|
readonly publicAllocator: null;
|
|
279
312
|
readonly bundler3: null;
|
|
280
313
|
readonly generalAdapter1: null;
|
|
281
|
-
readonly supportedVaults:
|
|
282
|
-
readonly curatorVaults:
|
|
314
|
+
readonly supportedVaults: Address[];
|
|
315
|
+
readonly curatorVaults: Address[];
|
|
283
316
|
};
|
|
284
317
|
};
|
|
285
318
|
readonly enso: {
|
|
@@ -307,7 +340,7 @@ export declare const chainConfigs: {
|
|
|
307
340
|
};
|
|
308
341
|
};
|
|
309
342
|
};
|
|
310
|
-
|
|
343
|
+
declare const appConfig: {
|
|
311
344
|
readonly flags: {
|
|
312
345
|
readonly isPosthogEnabled: boolean;
|
|
313
346
|
readonly isCookie3Enabled: boolean | "";
|
|
@@ -412,21 +445,21 @@ export declare const appConfig: {
|
|
|
412
445
|
/**
|
|
413
446
|
* @deprecated use chainConfigs and appConfig instead. chainId should always be read from the app state.
|
|
414
447
|
*/
|
|
415
|
-
|
|
416
|
-
readonly chainId: ChainId.
|
|
448
|
+
declare const config: {
|
|
449
|
+
readonly chainId: ChainId.MAINNET;
|
|
417
450
|
readonly tokens: {
|
|
418
451
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
419
452
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
420
453
|
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
421
|
-
readonly wbtc: "
|
|
422
|
-
readonly weth: "
|
|
454
|
+
readonly wbtc: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c";
|
|
455
|
+
readonly weth: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590";
|
|
423
456
|
};
|
|
424
457
|
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
425
458
|
readonly pol: {
|
|
426
459
|
readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
|
|
427
460
|
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
461
|
+
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
428
462
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
429
|
-
readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
|
|
430
463
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
431
464
|
readonly subgraph: {
|
|
432
465
|
readonly name: "pol-subgraph";
|
|
@@ -440,8 +473,8 @@ export declare const config: {
|
|
|
440
473
|
readonly name: "supply-monitor";
|
|
441
474
|
readonly uri: string;
|
|
442
475
|
};
|
|
443
|
-
readonly bgtIncentiveDistributor: "
|
|
444
|
-
readonly lstStakerVaultFactory: "
|
|
476
|
+
readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
|
|
477
|
+
readonly lstStakerVaultFactory: "0xc41bbD6695AB6bdc6D04701b15f4CE5EbA2e2500";
|
|
445
478
|
};
|
|
446
479
|
readonly api: {
|
|
447
480
|
readonly name: "Berachain API";
|
|
@@ -451,50 +484,50 @@ export declare const config: {
|
|
|
451
484
|
} | undefined;
|
|
452
485
|
};
|
|
453
486
|
readonly beep: {
|
|
454
|
-
readonly name: "Berachain Beep";
|
|
455
487
|
readonly uri: string;
|
|
488
|
+
readonly name: "Berachain Beep";
|
|
456
489
|
};
|
|
457
490
|
readonly bex: {
|
|
458
|
-
readonly chainName: "
|
|
459
|
-
readonly vault: "
|
|
460
|
-
readonly helper: "
|
|
461
|
-
readonly queries: "
|
|
462
|
-
readonly relayer: "
|
|
491
|
+
readonly chainName: "BERACHAIN";
|
|
492
|
+
readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
|
|
493
|
+
readonly helper: "0x5083737EC75a728c265BE578C9d0d5333a2c5951";
|
|
494
|
+
readonly queries: "0x3C612e132624f4Bd500eE1495F54565F0bcc9b59";
|
|
495
|
+
readonly relayer: "0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7";
|
|
463
496
|
readonly factories: {
|
|
464
|
-
readonly composableStable: "
|
|
465
|
-
readonly weighted: "
|
|
497
|
+
readonly composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1";
|
|
498
|
+
readonly weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409";
|
|
466
499
|
};
|
|
467
|
-
readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
|
|
468
|
-
readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
|
|
469
|
-
readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
|
|
470
|
-
readonly haikuRouter: null;
|
|
471
|
-
readonly haikuAgentAddress: null;
|
|
472
|
-
readonly aggregatorsProxyUrl: string;
|
|
473
|
-
readonly recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com";
|
|
474
|
-
readonly recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a";
|
|
475
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}`;
|
|
476
509
|
};
|
|
477
510
|
readonly honey: {
|
|
478
511
|
readonly name: "Honey";
|
|
479
|
-
readonly url: "https://
|
|
512
|
+
readonly url: "https://honey.berachain.com";
|
|
480
513
|
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
481
514
|
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
482
|
-
readonly pythWrapper: "
|
|
515
|
+
readonly pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95";
|
|
483
516
|
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
484
517
|
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
485
518
|
};
|
|
486
519
|
readonly hub: {
|
|
487
520
|
readonly name: "BeraHub";
|
|
488
|
-
readonly url: "https://
|
|
521
|
+
readonly url: "https://hub.berachain.com";
|
|
489
522
|
};
|
|
490
523
|
readonly governance: {
|
|
491
|
-
readonly governor:
|
|
492
|
-
readonly timelock:
|
|
524
|
+
readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
|
|
525
|
+
readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
|
|
493
526
|
};
|
|
494
527
|
readonly lists: {
|
|
495
|
-
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/
|
|
496
|
-
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/
|
|
497
|
-
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/
|
|
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";
|
|
498
531
|
};
|
|
499
532
|
readonly external: {
|
|
500
533
|
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
@@ -502,46 +535,52 @@ export declare const config: {
|
|
|
502
535
|
readonly averageBlockTime: 2;
|
|
503
536
|
readonly bridge: {
|
|
504
537
|
readonly name: "BeraBridge";
|
|
505
|
-
readonly url: "https://
|
|
538
|
+
readonly url: "https://bridge.berachain.com";
|
|
506
539
|
readonly nft: {
|
|
507
540
|
readonly name: "BeraBridge NFT";
|
|
508
|
-
readonly url: "
|
|
541
|
+
readonly url: "https://nftbridge.berachain.com";
|
|
509
542
|
readonly eth: {
|
|
510
|
-
readonly subgraph: "
|
|
543
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/eth-v1.0.0-beta1/gn";
|
|
511
544
|
};
|
|
512
545
|
readonly berachain: {
|
|
513
|
-
readonly subgraph: "
|
|
546
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn";
|
|
514
547
|
};
|
|
515
548
|
};
|
|
516
549
|
};
|
|
517
550
|
readonly bend: {
|
|
518
551
|
readonly name: "Bend";
|
|
519
|
-
readonly url: "https://
|
|
520
|
-
readonly whiskApi:
|
|
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
|
+
};
|
|
521
560
|
readonly production: {
|
|
522
|
-
readonly morpho:
|
|
523
|
-
readonly adaptiveCurveIrm:
|
|
524
|
-
readonly metaMorphoFactory:
|
|
525
|
-
readonly publicAllocator:
|
|
526
|
-
readonly bundler3:
|
|
527
|
-
readonly generalAdapter1:
|
|
528
|
-
readonly supportedVaults:
|
|
529
|
-
readonly curatorVaults:
|
|
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}`[];
|
|
530
569
|
};
|
|
531
570
|
readonly staging: {
|
|
532
|
-
readonly morpho:
|
|
533
|
-
readonly adaptiveCurveIrm:
|
|
534
|
-
readonly metaMorphoFactory:
|
|
535
|
-
readonly publicAllocator:
|
|
536
|
-
readonly bundler3:
|
|
537
|
-
readonly generalAdapter1:
|
|
538
|
-
readonly supportedVaults:
|
|
539
|
-
readonly curatorVaults:
|
|
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}`[];
|
|
540
579
|
};
|
|
541
580
|
};
|
|
542
581
|
readonly enso: {
|
|
543
|
-
readonly walletV2Factory:
|
|
544
|
-
readonly walletFlashloanAdapter:
|
|
582
|
+
readonly walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55";
|
|
583
|
+
readonly walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b";
|
|
545
584
|
};
|
|
546
585
|
readonly explore: {
|
|
547
586
|
readonly name: "Explore";
|
|
@@ -549,34 +588,27 @@ export declare const config: {
|
|
|
549
588
|
};
|
|
550
589
|
readonly explorer: {
|
|
551
590
|
readonly name: "Berascan";
|
|
552
|
-
readonly url: "https://
|
|
591
|
+
readonly url: "https://berascan.com";
|
|
553
592
|
};
|
|
554
593
|
readonly chain: {
|
|
555
594
|
readonly name: string;
|
|
556
595
|
};
|
|
557
|
-
readonly faucet:
|
|
558
|
-
readonly name: "Faucet";
|
|
559
|
-
readonly url: "https://bepolia.faucet.berachain.com";
|
|
560
|
-
readonly dripAmount: 1;
|
|
561
|
-
readonly timeGap: 8;
|
|
562
|
-
readonly cloudflareKey: string;
|
|
563
|
-
readonly endpoint: "https://faucet-api.testnet.berachain.com";
|
|
564
|
-
};
|
|
596
|
+
readonly faucet: null;
|
|
565
597
|
} | {
|
|
566
|
-
readonly chainId: ChainId.
|
|
598
|
+
readonly chainId: ChainId.BEPOLIA;
|
|
567
599
|
readonly tokens: {
|
|
568
600
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
569
601
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
570
602
|
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
571
|
-
readonly wbtc: "
|
|
572
|
-
readonly weth: "
|
|
603
|
+
readonly wbtc: "0x";
|
|
604
|
+
readonly weth: "0x";
|
|
573
605
|
};
|
|
574
606
|
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
575
607
|
readonly pol: {
|
|
576
608
|
readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
|
|
577
609
|
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
578
|
-
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
579
610
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
611
|
+
readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
|
|
580
612
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
581
613
|
readonly subgraph: {
|
|
582
614
|
readonly name: "pol-subgraph";
|
|
@@ -590,8 +622,8 @@ export declare const config: {
|
|
|
590
622
|
readonly name: "supply-monitor";
|
|
591
623
|
readonly uri: string;
|
|
592
624
|
};
|
|
593
|
-
readonly bgtIncentiveDistributor: "
|
|
594
|
-
readonly lstStakerVaultFactory: "
|
|
625
|
+
readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
|
|
626
|
+
readonly lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178";
|
|
595
627
|
};
|
|
596
628
|
readonly api: {
|
|
597
629
|
readonly name: "Berachain API";
|
|
@@ -601,50 +633,50 @@ export declare const config: {
|
|
|
601
633
|
} | undefined;
|
|
602
634
|
};
|
|
603
635
|
readonly beep: {
|
|
604
|
-
readonly uri: string;
|
|
605
636
|
readonly name: "Berachain Beep";
|
|
637
|
+
readonly uri: string;
|
|
606
638
|
};
|
|
607
639
|
readonly bex: {
|
|
608
|
-
readonly chainName: "
|
|
609
|
-
readonly vault: "
|
|
610
|
-
readonly helper: "
|
|
611
|
-
readonly queries: "
|
|
612
|
-
readonly relayer: "
|
|
640
|
+
readonly chainName: "BEPOLIA";
|
|
641
|
+
readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
|
|
642
|
+
readonly helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f";
|
|
643
|
+
readonly queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92";
|
|
644
|
+
readonly relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C";
|
|
613
645
|
readonly factories: {
|
|
614
|
-
readonly composableStable: "
|
|
615
|
-
readonly weighted: "
|
|
646
|
+
readonly composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1";
|
|
647
|
+
readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
|
|
616
648
|
};
|
|
617
|
-
readonly
|
|
618
|
-
readonly
|
|
619
|
-
readonly
|
|
620
|
-
readonly
|
|
621
|
-
readonly
|
|
622
|
-
readonly haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71";
|
|
649
|
+
readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
|
|
650
|
+
readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
|
|
651
|
+
readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
|
|
652
|
+
readonly haikuRouter: null;
|
|
653
|
+
readonly haikuAgentAddress: null;
|
|
623
654
|
readonly aggregatorsProxyUrl: string;
|
|
624
|
-
readonly recoverFundsApi:
|
|
625
|
-
readonly recoverFundsContract:
|
|
655
|
+
readonly recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com";
|
|
656
|
+
readonly recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a";
|
|
657
|
+
readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
|
|
626
658
|
};
|
|
627
659
|
readonly honey: {
|
|
628
660
|
readonly name: "Honey";
|
|
629
|
-
readonly url: "https://honey.berachain.com";
|
|
661
|
+
readonly url: "https://bepolia.honey.berachain.com";
|
|
630
662
|
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
631
663
|
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
632
|
-
readonly pythWrapper: "
|
|
664
|
+
readonly pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB";
|
|
633
665
|
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
634
666
|
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
635
667
|
};
|
|
636
668
|
readonly hub: {
|
|
637
669
|
readonly name: "BeraHub";
|
|
638
|
-
readonly url: "https://hub.berachain.com";
|
|
670
|
+
readonly url: "https://bepolia.hub.berachain.com";
|
|
639
671
|
};
|
|
640
672
|
readonly governance: {
|
|
641
|
-
readonly governor:
|
|
642
|
-
readonly timelock:
|
|
673
|
+
readonly governor: `0x${string}`;
|
|
674
|
+
readonly timelock: `0x${string}`;
|
|
643
675
|
};
|
|
644
676
|
readonly lists: {
|
|
645
|
-
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/
|
|
646
|
-
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/
|
|
647
|
-
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/
|
|
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";
|
|
648
680
|
};
|
|
649
681
|
readonly external: {
|
|
650
682
|
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
@@ -652,52 +684,46 @@ export declare const config: {
|
|
|
652
684
|
readonly averageBlockTime: 2;
|
|
653
685
|
readonly bridge: {
|
|
654
686
|
readonly name: "BeraBridge";
|
|
655
|
-
readonly url: "https://bridge.berachain.com";
|
|
687
|
+
readonly url: "https://bepolia.bridge.berachain.com";
|
|
656
688
|
readonly nft: {
|
|
657
689
|
readonly name: "BeraBridge NFT";
|
|
658
|
-
readonly url: "
|
|
690
|
+
readonly url: "#";
|
|
659
691
|
readonly eth: {
|
|
660
|
-
readonly subgraph: "
|
|
692
|
+
readonly subgraph: "#";
|
|
661
693
|
};
|
|
662
694
|
readonly berachain: {
|
|
663
|
-
readonly subgraph: "
|
|
695
|
+
readonly subgraph: "#";
|
|
664
696
|
};
|
|
665
697
|
};
|
|
666
698
|
};
|
|
667
699
|
readonly bend: {
|
|
668
700
|
readonly name: "Bend";
|
|
669
|
-
readonly url: "https://bend.berachain.com";
|
|
670
|
-
readonly whiskApi:
|
|
671
|
-
readonly name: "Bend Whisk";
|
|
672
|
-
readonly uri: string;
|
|
673
|
-
readonly headers: {
|
|
674
|
-
Authorization: string;
|
|
675
|
-
} | undefined;
|
|
676
|
-
};
|
|
701
|
+
readonly url: "https://bepolia.bend.berachain.com";
|
|
702
|
+
readonly whiskApi: null;
|
|
677
703
|
readonly production: {
|
|
678
|
-
readonly morpho:
|
|
679
|
-
readonly adaptiveCurveIrm:
|
|
680
|
-
readonly metaMorphoFactory:
|
|
681
|
-
readonly publicAllocator:
|
|
682
|
-
readonly bundler3:
|
|
683
|
-
readonly generalAdapter1:
|
|
684
|
-
readonly supportedVaults:
|
|
685
|
-
readonly curatorVaults:
|
|
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[];
|
|
686
712
|
};
|
|
687
713
|
readonly staging: {
|
|
688
|
-
readonly morpho:
|
|
689
|
-
readonly adaptiveCurveIrm:
|
|
690
|
-
readonly metaMorphoFactory:
|
|
691
|
-
readonly publicAllocator:
|
|
692
|
-
readonly bundler3:
|
|
693
|
-
readonly generalAdapter1:
|
|
694
|
-
readonly supportedVaults:
|
|
695
|
-
readonly curatorVaults:
|
|
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[];
|
|
696
722
|
};
|
|
697
723
|
};
|
|
698
724
|
readonly enso: {
|
|
699
|
-
readonly walletV2Factory:
|
|
700
|
-
readonly walletFlashloanAdapter:
|
|
725
|
+
readonly walletV2Factory: null;
|
|
726
|
+
readonly walletFlashloanAdapter: null;
|
|
701
727
|
};
|
|
702
728
|
readonly explore: {
|
|
703
729
|
readonly name: "Explore";
|
|
@@ -705,11 +731,19 @@ export declare const config: {
|
|
|
705
731
|
};
|
|
706
732
|
readonly explorer: {
|
|
707
733
|
readonly name: "Berascan";
|
|
708
|
-
readonly url: "https://berascan.com";
|
|
734
|
+
readonly url: "https://testnet.berascan.com";
|
|
709
735
|
};
|
|
710
736
|
readonly chain: {
|
|
711
737
|
readonly name: string;
|
|
712
738
|
};
|
|
713
|
-
readonly faucet:
|
|
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
|
+
};
|
|
714
747
|
};
|
|
715
|
-
|
|
748
|
+
|
|
749
|
+
export { Address, AppName, ChainId, alchemyJsonRpcUrl, appConfig, chainConfigs, defaultChainId as chainId, config, currentDapp, defaultChainId, getRpcUrls, goldskyBaseUrl, imageBaseUrl, jsonRpcUrl, privateRcpUrl, publicJsonRpcUrl };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
+
|
|
3
|
+
declare const DEFAULT_MAINTENANCE_EXEMPT_PATHS: string[];
|
|
4
|
+
interface MaintenanceConfig {
|
|
5
|
+
isMaintenance: boolean;
|
|
6
|
+
exemptPaths?: string[];
|
|
7
|
+
maintenancePath?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function checkMaintenanceMode(req: NextRequest, config: MaintenanceConfig): NextResponse | null;
|
|
10
|
+
|
|
11
|
+
export { DEFAULT_MAINTENANCE_EXEMPT_PATHS, type MaintenanceConfig, checkMaintenanceMode };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
+
|
|
3
|
+
declare const DEFAULT_MAINTENANCE_EXEMPT_PATHS: string[];
|
|
4
|
+
interface MaintenanceConfig {
|
|
4
5
|
isMaintenance: boolean;
|
|
5
6
|
exemptPaths?: string[];
|
|
6
7
|
maintenancePath?: string;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
declare function checkMaintenanceMode(req: NextRequest, config: MaintenanceConfig): NextResponse | null;
|
|
10
|
+
|
|
11
|
+
export { DEFAULT_MAINTENANCE_EXEMPT_PATHS, type MaintenanceConfig, checkMaintenanceMode };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { NextConfig } from 'next';
|
|
2
|
+
import { a as AppName } from '../../types-Drv0VlAi.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The images config for Bera.
|
|
6
|
+
* It's a subset of the Next.js images config.
|
|
7
|
+
*/
|
|
8
|
+
type BeraImagesConfig = Omit<NextConfig["images"], "remotePatterns">;
|
|
9
|
+
/**
|
|
10
|
+
* The Next.js config for Bera.
|
|
11
|
+
* It's a subset of the Next.js config.
|
|
12
|
+
*/
|
|
13
|
+
type BeraNextConfig = Omit<NextConfig, "images"> & {
|
|
14
|
+
images?: BeraImagesConfig;
|
|
15
|
+
};
|
|
16
|
+
declare function withBeraConfig(config: BeraNextConfig, { withSentry, withPostHogReverseProxy, appName, }: {
|
|
17
|
+
withSentry?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the app, it'll be set as NEXT_PUBLIC_BERA_APP_NAME in the environment variables.
|
|
20
|
+
*
|
|
21
|
+
* It's used to check if the component is running in nextjs inside the package folder.
|
|
22
|
+
* Also, it's used to check if a flag is enabled for the app.
|
|
23
|
+
*/
|
|
24
|
+
appName: AppName;
|
|
25
|
+
/**
|
|
26
|
+
* Whether to use the PostHog reverse proxy.
|
|
27
|
+
*
|
|
28
|
+
* It's used to bypass the CORS policy of the PostHog API.
|
|
29
|
+
* @see {@link https://posthog.com/docs/advanced/proxy/nextjs}
|
|
30
|
+
*/
|
|
31
|
+
withPostHogReverseProxy?: boolean;
|
|
32
|
+
}): NextConfig;
|
|
33
|
+
|
|
34
|
+
export { withBeraConfig };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { NextConfig } from 'next';
|
|
2
|
+
import { a as AppName } from '../../types-Drv0VlAi.js';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* The images config for Bera.
|
|
5
6
|
* It's a subset of the Next.js images config.
|
|
@@ -12,7 +13,7 @@ type BeraImagesConfig = Omit<NextConfig["images"], "remotePatterns">;
|
|
|
12
13
|
type BeraNextConfig = Omit<NextConfig, "images"> & {
|
|
13
14
|
images?: BeraImagesConfig;
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
declare function withBeraConfig(config: BeraNextConfig, { withSentry, withPostHogReverseProxy, appName, }: {
|
|
16
17
|
withSentry?: boolean;
|
|
17
18
|
/**
|
|
18
19
|
* The name of the app, it'll be set as NEXT_PUBLIC_BERA_APP_NAME in the environment variables.
|
|
@@ -29,5 +30,5 @@ export declare function withBeraConfig(config: BeraNextConfig, { withSentry, wit
|
|
|
29
30
|
*/
|
|
30
31
|
withPostHogReverseProxy?: boolean;
|
|
31
32
|
}): NextConfig;
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
export { withBeraConfig };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a given URL is allowed according to the IMAGE_REMOTE_PATTERNS.
|
|
3
|
+
*
|
|
4
|
+
* @param urlString - The URL to check.
|
|
5
|
+
* @returns boolean indicating if the url matches one of the allowed remote patterns.
|
|
6
|
+
*/
|
|
7
|
+
declare function isAllowedImageUrl(urlString: string | undefined): boolean;
|
|
8
|
+
|
|
9
|
+
export { isAllowedImageUrl };
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* @param urlString - The URL to check.
|
|
5
5
|
* @returns boolean indicating if the url matches one of the allowed remote patterns.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
declare function isAllowedImageUrl(urlString: string | undefined): boolean;
|
|
8
|
+
|
|
9
|
+
export { isAllowedImageUrl };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Sentry from '@sentry/nextjs';
|
|
2
|
+
import { NextConfig } from 'next';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This function registers Sentry in nextjs instrumentation.
|
|
6
|
+
*
|
|
7
|
+
* @link https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#create-initialization-config-files
|
|
8
|
+
*/
|
|
9
|
+
declare function registerSentry(opt?: Parameters<typeof Sentry.init>[0]): Promise<void>;
|
|
10
|
+
declare function withSentryConfig(config: NextConfig): NextConfig;
|
|
11
|
+
declare const onRequestError: typeof Sentry.captureRequestError;
|
|
12
|
+
|
|
13
|
+
export { onRequestError, registerSentry, withSentryConfig };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import * as Sentry from
|
|
2
|
-
import
|
|
1
|
+
import * as Sentry from '@sentry/nextjs';
|
|
2
|
+
import { NextConfig } from 'next';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* This function registers Sentry in nextjs instrumentation.
|
|
5
6
|
*
|
|
6
7
|
* @link https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#create-initialization-config-files
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
declare function registerSentry(opt?: Parameters<typeof Sentry.init>[0]): Promise<void>;
|
|
10
|
+
declare function withSentryConfig(config: NextConfig): NextConfig;
|
|
11
|
+
declare const onRequestError: typeof Sentry.captureRequestError;
|
|
12
|
+
|
|
13
|
+
export { onRequestError, registerSentry, withSentryConfig };
|