@berachain/config 0.0.7 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bepolia.cjs +1 -1
- package/dist/bepolia.d.cts +9 -4
- package/dist/bepolia.d.ts +9 -4
- package/dist/bepolia.mjs +1 -1
- package/dist/chunk-276AZYTL.cjs +1 -0
- package/dist/{chunk-EJBC2CPD.cjs → chunk-3WZ7JUD6.cjs} +1 -1
- package/dist/chunk-4EBBM3AH.mjs +1 -0
- package/dist/chunk-GMCXYF2Y.cjs +1 -0
- package/dist/chunk-RMPYYDGQ.mjs +1 -0
- package/dist/chunk-SU5YRBAA.mjs +1 -0
- package/dist/chunk-VKKV5GF6.mjs +1 -0
- package/dist/chunk-WOMXQLBK.cjs +1 -0
- package/dist/{chunk-TLFLY32O.mjs → chunk-XO2H4NRK.mjs} +1 -1
- package/dist/chunk-YFRDKFCV.cjs +1 -0
- package/dist/chunk-YQK5O5ZL.cjs +1 -0
- package/dist/chunk-ZKMVPHR5.mjs +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/internal/edge-config/index.d.cts +19 -2
- package/dist/internal/edge-config/index.d.ts +19 -2
- package/dist/internal/flags/index.cjs +1 -1
- package/dist/internal/flags/index.d.cts +11 -1
- package/dist/internal/flags/index.d.ts +11 -1
- package/dist/internal/flags/index.mjs +1 -1
- package/dist/internal/header-sources.cjs +4 -4
- package/dist/internal/header-sources.mjs +4 -4
- package/dist/internal/index.cjs +1 -1
- package/dist/internal/index.d.cts +157 -133
- package/dist/internal/index.d.ts +157 -133
- package/dist/internal/index.mjs +1 -1
- package/dist/internal/nextjs/index.cjs +1 -1
- package/dist/internal/nextjs/index.d.cts +9 -2
- package/dist/internal/nextjs/index.d.ts +9 -2
- package/dist/internal/nextjs/index.mjs +1 -1
- package/dist/internal/nextjs/utils/index.cjs +1 -1
- package/dist/internal/nextjs/utils/index.mjs +1 -1
- package/dist/internal/sentry/index.cjs +1 -1
- package/dist/internal/sentry/index.mjs +1 -1
- package/dist/internal/sentry/sentry.client.config.cjs +1 -1
- package/dist/internal/sentry/sentry.client.config.mjs +1 -1
- package/dist/internal/tailwind/index.cjs +1 -1
- package/dist/internal/tailwind/index.d.cts +21 -11
- package/dist/internal/tailwind/index.d.ts +21 -11
- package/dist/internal/tailwind/index.mjs +1 -1
- package/dist/internal/tsup/index.cjs +1 -1
- package/dist/internal/tsup/index.d.cts +1 -1
- package/dist/internal/tsup/index.d.ts +1 -1
- package/dist/internal/tsup/index.mjs +1 -1
- package/dist/internal/wagmi/index.cjs +1 -0
- package/dist/internal/wagmi/index.d.cts +29 -0
- package/dist/internal/wagmi/index.d.ts +29 -0
- package/dist/internal/wagmi/index.mjs +1 -0
- package/dist/mainnet.cjs +1 -1
- package/dist/mainnet.d.cts +9 -4
- package/dist/mainnet.d.ts +9 -4
- package/dist/mainnet.mjs +1 -1
- package/dist/{sentry.edge.config-34TBZ2J6.cjs → sentry.edge.config-DS2KE3CX.cjs} +1 -1
- package/dist/{sentry.edge.config-3QO3DLYV.mjs → sentry.edge.config-OEQTPQ2L.mjs} +1 -1
- package/dist/{sentry.server.config-S53O6JTA.mjs → sentry.server.config-KRS7OUMO.mjs} +1 -1
- package/dist/{sentry.server.config-WQX4KCNG.cjs → sentry.server.config-RNY6FTJT.cjs} +1 -1
- package/dist/{types-ChwOSOu9.d.cts → types-CpAPoaiH.d.cts} +11 -3
- package/dist/{types-ChwOSOu9.d.ts → types-CpAPoaiH.d.ts} +11 -3
- package/package.json +15 -6
- package/dist/chunk-DFPDQR4M.cjs +0 -1
- package/dist/chunk-DTPRW4VP.mjs +0 -1
- package/dist/chunk-GAUBQIRH.cjs +0 -1
- package/dist/chunk-JVJKB7V7.mjs +0 -1
- package/dist/chunk-KB66GOT2.cjs +0 -1
- package/dist/chunk-O5LUKC6Z.mjs +0 -1
- package/dist/chunk-OQFLFE3X.cjs +0 -1
- package/dist/chunk-PGBQCBTM.mjs +0 -1
- package/dist/chunk-V2GJ33GF.mjs +0 -1
- package/dist/chunk-ZJDKWYPH.cjs +0 -1
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ChainId, a as AppName, A as Address } from '../types-
|
|
2
|
-
export { B as BeraConfig, H as HttpLink, P as ProjectName } from '../types-
|
|
1
|
+
import { C as ChainId, a as AppName, A as Address } from '../types-CpAPoaiH.js';
|
|
2
|
+
export { B as BeraConfig, H as HttpLink, P as ProjectName } from '../types-CpAPoaiH.js';
|
|
3
3
|
|
|
4
4
|
declare const defaultChainId: ChainId;
|
|
5
5
|
|
|
@@ -13,7 +13,7 @@ declare const currentDapp: AppName | undefined;
|
|
|
13
13
|
* Avoids circular dependency with the config object.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
declare const
|
|
16
|
+
declare const imageBaseUrl = "https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ";
|
|
17
17
|
declare const goldskyBaseUrl = "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/";
|
|
18
18
|
/**
|
|
19
19
|
* Returns the RPC URLs for the given chain ID. If anvil is set, it will just return the anvil RPC URLs.
|
|
@@ -55,6 +55,7 @@ declare const chainConfigs: {
|
|
|
55
55
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
56
56
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
57
57
|
readonly subgraph: string;
|
|
58
|
+
readonly feesSubgraph: string;
|
|
58
59
|
readonly bribeBoostApi: string;
|
|
59
60
|
readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
|
|
60
61
|
};
|
|
@@ -64,7 +65,7 @@ declare const chainConfigs: {
|
|
|
64
65
|
"x-api-key": string;
|
|
65
66
|
} | undefined;
|
|
66
67
|
};
|
|
67
|
-
readonly
|
|
68
|
+
readonly staking: "https://backend-production-351b.up.railway.app";
|
|
68
69
|
readonly bex: {
|
|
69
70
|
readonly chainName: "BERACHAIN";
|
|
70
71
|
readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
|
|
@@ -92,7 +93,7 @@ declare const chainConfigs: {
|
|
|
92
93
|
readonly subgraph: string;
|
|
93
94
|
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
94
95
|
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
95
|
-
readonly pythWrapper: "
|
|
96
|
+
readonly pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95";
|
|
96
97
|
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
97
98
|
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
98
99
|
};
|
|
@@ -156,6 +157,10 @@ declare const chainConfigs: {
|
|
|
156
157
|
readonly supportedVaults: `0x${string}`[];
|
|
157
158
|
};
|
|
158
159
|
};
|
|
160
|
+
readonly enso: {
|
|
161
|
+
readonly walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55";
|
|
162
|
+
readonly walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b";
|
|
163
|
+
};
|
|
159
164
|
readonly explore: {
|
|
160
165
|
readonly name: "Explore";
|
|
161
166
|
readonly url: "https://explore.berachain.com";
|
|
@@ -185,7 +190,8 @@ declare const chainConfigs: {
|
|
|
185
190
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
186
191
|
readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
|
|
187
192
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
188
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-
|
|
193
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.7.2/gn";
|
|
194
|
+
readonly feesSubgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-fees-subgraph/bepolia-v1.0.0/gn";
|
|
189
195
|
readonly bribeBoostApi: string;
|
|
190
196
|
readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
|
|
191
197
|
};
|
|
@@ -195,7 +201,7 @@ declare const chainConfigs: {
|
|
|
195
201
|
"x-api-key": string;
|
|
196
202
|
} | undefined;
|
|
197
203
|
};
|
|
198
|
-
readonly
|
|
204
|
+
readonly staking: "https://backend-production-351b.up.railway.app";
|
|
199
205
|
readonly bex: {
|
|
200
206
|
readonly chainName: "BEPOLIA";
|
|
201
207
|
readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
|
|
@@ -223,7 +229,7 @@ declare const chainConfigs: {
|
|
|
223
229
|
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/bepolia-v1.2.1/gn";
|
|
224
230
|
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
225
231
|
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
226
|
-
readonly pythWrapper: "
|
|
232
|
+
readonly pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB";
|
|
227
233
|
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
228
234
|
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
229
235
|
};
|
|
@@ -282,6 +288,10 @@ declare const chainConfigs: {
|
|
|
282
288
|
readonly supportedVaults: Address[];
|
|
283
289
|
};
|
|
284
290
|
};
|
|
291
|
+
readonly enso: {
|
|
292
|
+
readonly walletV2Factory: null;
|
|
293
|
+
readonly walletFlashloanAdapter: null;
|
|
294
|
+
};
|
|
285
295
|
readonly explore: {
|
|
286
296
|
readonly name: "Explore";
|
|
287
297
|
readonly url: "https://explore.berachain.com";
|
|
@@ -357,9 +367,13 @@ declare const appConfig: {
|
|
|
357
367
|
};
|
|
358
368
|
};
|
|
359
369
|
readonly urls: {
|
|
360
|
-
readonly
|
|
370
|
+
readonly postHog: {
|
|
371
|
+
readonly region: "eu" | "us";
|
|
372
|
+
readonly apiHost: string;
|
|
373
|
+
readonly uiHost: "https://eu.posthog.com" | "https://us.posthog.com";
|
|
374
|
+
};
|
|
361
375
|
readonly ghost: "https://berachain.ghost.io";
|
|
362
|
-
readonly
|
|
376
|
+
readonly imageDelivery: "https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ";
|
|
363
377
|
readonly homepage: string;
|
|
364
378
|
readonly ecosystem: "https://ecosystem.berachain.com/";
|
|
365
379
|
readonly ecojobs: "https://ecojobs.berachain.com/";
|
|
@@ -405,24 +419,25 @@ declare const appConfig: {
|
|
|
405
419
|
* @deprecated use chainConfigs and appConfig instead. chainId should always be read from the app state.
|
|
406
420
|
*/
|
|
407
421
|
declare const config: {
|
|
408
|
-
readonly chainId: ChainId.
|
|
422
|
+
readonly chainId: ChainId.MAINNET;
|
|
409
423
|
readonly tokens: {
|
|
410
424
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
411
425
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
412
426
|
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
413
|
-
readonly wbtc: "
|
|
414
|
-
readonly weth: "
|
|
427
|
+
readonly wbtc: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c";
|
|
428
|
+
readonly weth: "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590";
|
|
415
429
|
};
|
|
416
430
|
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
417
431
|
readonly pol: {
|
|
418
432
|
readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
|
|
419
433
|
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
434
|
+
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
420
435
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
421
|
-
readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
|
|
422
436
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
423
|
-
readonly subgraph:
|
|
437
|
+
readonly subgraph: string;
|
|
438
|
+
readonly feesSubgraph: string;
|
|
424
439
|
readonly bribeBoostApi: string;
|
|
425
|
-
readonly bgtIncentiveDistributor: "
|
|
440
|
+
readonly bgtIncentiveDistributor: "0x77DA09bC82652f9A14d1b170a001e759640298e6";
|
|
426
441
|
};
|
|
427
442
|
readonly api: {
|
|
428
443
|
readonly uri: string;
|
|
@@ -430,51 +445,51 @@ declare const config: {
|
|
|
430
445
|
"x-api-key": string;
|
|
431
446
|
} | undefined;
|
|
432
447
|
};
|
|
433
|
-
readonly
|
|
448
|
+
readonly staking: "https://backend-production-351b.up.railway.app";
|
|
434
449
|
readonly bex: {
|
|
435
|
-
readonly chainName: "
|
|
436
|
-
readonly vault: "
|
|
437
|
-
readonly helper: "
|
|
438
|
-
readonly queries: "
|
|
439
|
-
readonly relayer: "
|
|
450
|
+
readonly chainName: "BERACHAIN";
|
|
451
|
+
readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
|
|
452
|
+
readonly helper: "0x5083737EC75a728c265BE578C9d0d5333a2c5951";
|
|
453
|
+
readonly queries: "0x3C612e132624f4Bd500eE1495F54565F0bcc9b59";
|
|
454
|
+
readonly relayer: "0x6044f181aB5E9C05A4ed9Ce295f3B178d2492EE7";
|
|
440
455
|
readonly factories: {
|
|
441
|
-
readonly composableStable: "
|
|
442
|
-
readonly weighted: "
|
|
456
|
+
readonly composableStable: "0xDfA30BDa0375d4763711AB0CC8D91B20bfCC87E1";
|
|
457
|
+
readonly weighted: "0xa966fA8F2d5B087FFFA499C0C1240589371Af409";
|
|
443
458
|
};
|
|
444
|
-
readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
|
|
445
|
-
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/bepolia-1.0.3/gn";
|
|
446
|
-
readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
|
|
447
|
-
readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
|
|
448
|
-
readonly haikuRouter: null;
|
|
449
|
-
readonly haikuAgentAddress: null;
|
|
450
|
-
readonly aggregatorsProxyUrl: string;
|
|
451
|
-
readonly recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com";
|
|
452
|
-
readonly recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a";
|
|
453
459
|
readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
|
|
460
|
+
readonly poolCreationHelper: "0x55dccE8165C88aAd4403a15A9cE3A8E244657dD2";
|
|
461
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/mainnet-1.0.3/gn";
|
|
462
|
+
readonly aggregatorsRouter: "0x1BDB1cf792419d2eaB5aBa8076B8f4257744fA58";
|
|
463
|
+
readonly aggregatorsRouterExecutor: "0x4AD3c5A427Af60F8Dd982023aE012233A66CA1f8";
|
|
464
|
+
readonly haikuRouter: "0x24aC999FF132B32c5b3956973b6213B0d07eB2C7";
|
|
465
|
+
readonly haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71";
|
|
466
|
+
readonly aggregatorsProxyUrl: string;
|
|
467
|
+
readonly recoverFundsApi: string;
|
|
468
|
+
readonly recoverFundsContract: `0x${string}`;
|
|
454
469
|
};
|
|
455
470
|
readonly honey: {
|
|
456
471
|
readonly name: "Honey";
|
|
457
|
-
readonly url: "https://
|
|
458
|
-
readonly subgraph:
|
|
472
|
+
readonly url: "https://honey.berachain.com";
|
|
473
|
+
readonly subgraph: string;
|
|
459
474
|
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
460
475
|
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
461
|
-
readonly pythWrapper: "
|
|
476
|
+
readonly pythWrapper: "0xF5686e448BE103beA465105bEb9d284a34ae7e95";
|
|
462
477
|
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
463
478
|
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
464
479
|
};
|
|
465
480
|
readonly hub: {
|
|
466
481
|
readonly name: "BeraHub";
|
|
467
|
-
readonly url: "https://
|
|
482
|
+
readonly url: "https://hub.berachain.com";
|
|
468
483
|
};
|
|
469
484
|
readonly governance: {
|
|
470
|
-
readonly governor:
|
|
471
|
-
readonly timelock:
|
|
472
|
-
readonly subgraph:
|
|
485
|
+
readonly governor: "0x4f4A5c2194B8e856b7a05B348F6ba3978FB6f6D5";
|
|
486
|
+
readonly timelock: "0xb5f2000b5744f207c931526cAE2134cAa8b6862a";
|
|
487
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/governance-subgraph/mainnet-v1.1.1/gn";
|
|
473
488
|
};
|
|
474
489
|
readonly lists: {
|
|
475
|
-
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/
|
|
476
|
-
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/
|
|
477
|
-
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/
|
|
490
|
+
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/mainnet.json";
|
|
491
|
+
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/mainnet.json";
|
|
492
|
+
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/mainnet.json";
|
|
478
493
|
};
|
|
479
494
|
readonly external: {
|
|
480
495
|
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
@@ -482,79 +497,82 @@ declare const config: {
|
|
|
482
497
|
readonly averageBlockTime: 2;
|
|
483
498
|
readonly bridge: {
|
|
484
499
|
readonly name: "BeraBridge";
|
|
485
|
-
readonly url: "https://
|
|
500
|
+
readonly url: "https://bridge.berachain.com";
|
|
486
501
|
readonly nft: {
|
|
487
502
|
readonly name: "BeraBridge NFT";
|
|
488
|
-
readonly url: "
|
|
503
|
+
readonly url: "https://nftbridge.berachain.com";
|
|
489
504
|
readonly eth: {
|
|
490
|
-
readonly subgraph: "
|
|
505
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/eth-v1.0.0-beta1/gn";
|
|
491
506
|
};
|
|
492
507
|
readonly berachain: {
|
|
493
|
-
readonly subgraph: "
|
|
508
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/nft-bridge-subgraph/mainnet-v1.0.0-beta1/gn";
|
|
494
509
|
};
|
|
495
510
|
};
|
|
496
511
|
};
|
|
497
512
|
readonly bend: {
|
|
498
513
|
readonly name: "Bend";
|
|
499
|
-
readonly url: "https://
|
|
500
|
-
readonly whiskApi:
|
|
514
|
+
readonly url: "https://bend.berachain.com";
|
|
515
|
+
readonly whiskApi: {
|
|
516
|
+
readonly uri: string;
|
|
517
|
+
readonly headers: {
|
|
518
|
+
Authorization: string;
|
|
519
|
+
} | undefined;
|
|
520
|
+
};
|
|
501
521
|
readonly production: {
|
|
502
|
-
readonly morpho:
|
|
503
|
-
readonly adaptiveCurveIrm:
|
|
504
|
-
readonly metaMorphoFactory:
|
|
505
|
-
readonly publicAllocator:
|
|
506
|
-
readonly bundler3:
|
|
507
|
-
readonly generalAdapter1:
|
|
508
|
-
readonly supportedVaults:
|
|
522
|
+
readonly morpho: "0x24147243f9c08d835C218Cda1e135f8dFD0517D0";
|
|
523
|
+
readonly adaptiveCurveIrm: "0xcf247Df3A2322Dea0D408f011c194906E77a6f62";
|
|
524
|
+
readonly metaMorphoFactory: "0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616";
|
|
525
|
+
readonly publicAllocator: "0xB62F34Ab315eaDeAc698e8EaEB6Fc2650951BFe7";
|
|
526
|
+
readonly bundler3: "0xF920140A65D0f412f2AB3e76C4fEAB5Eef0657ae";
|
|
527
|
+
readonly generalAdapter1: "0xd2B9667F5214115E27937C410cAeE83E3a901Df7";
|
|
528
|
+
readonly supportedVaults: `0x${string}`[];
|
|
509
529
|
};
|
|
510
530
|
readonly staging: {
|
|
511
|
-
readonly morpho:
|
|
512
|
-
readonly adaptiveCurveIrm:
|
|
513
|
-
readonly metaMorphoFactory:
|
|
514
|
-
readonly publicAllocator:
|
|
515
|
-
readonly bundler3:
|
|
516
|
-
readonly generalAdapter1:
|
|
517
|
-
readonly supportedVaults:
|
|
531
|
+
readonly morpho: "0xC5FabF3a7E98a2ed89f5d5057Ab010634Ca7e71f";
|
|
532
|
+
readonly adaptiveCurveIrm: "0x1d5376e532CcF25b740270624111D665830E5dB9";
|
|
533
|
+
readonly metaMorphoFactory: "0x524061B659380a5e4576d76F0951303B20B5932f";
|
|
534
|
+
readonly publicAllocator: "0xFD6e68bC20be2a01Ec1Df687c83f927087D52811";
|
|
535
|
+
readonly bundler3: "0x56811e1BFfF951B98c7940d3aCe0e549Ec4fDee8";
|
|
536
|
+
readonly generalAdapter1: "0x257a41E20BBfe90D750646C2e00bA700D55958C5";
|
|
537
|
+
readonly supportedVaults: `0x${string}`[];
|
|
518
538
|
};
|
|
519
539
|
};
|
|
540
|
+
readonly enso: {
|
|
541
|
+
readonly walletV2Factory: "0xc914a663837eb21c5a650716e015659686597e55";
|
|
542
|
+
readonly walletFlashloanAdapter: "0x5dE09823D9143886896507107590d9859F3E390b";
|
|
543
|
+
};
|
|
520
544
|
readonly explore: {
|
|
521
545
|
readonly name: "Explore";
|
|
522
546
|
readonly url: "https://explore.berachain.com";
|
|
523
547
|
};
|
|
524
548
|
readonly explorer: {
|
|
525
549
|
readonly name: "Berascan";
|
|
526
|
-
readonly url: "https://
|
|
550
|
+
readonly url: "https://berascan.com";
|
|
527
551
|
};
|
|
528
552
|
readonly chain: {
|
|
529
553
|
readonly name: string;
|
|
530
554
|
};
|
|
531
|
-
readonly faucet:
|
|
532
|
-
readonly name: "Faucet";
|
|
533
|
-
readonly url: "https://bepolia.faucet.berachain.com";
|
|
534
|
-
readonly dripAmount: 1;
|
|
535
|
-
readonly timeGap: 8;
|
|
536
|
-
readonly cloudflareKey: string;
|
|
537
|
-
readonly endpoint: "https://faucet-api.testnet.berachain.com";
|
|
538
|
-
};
|
|
555
|
+
readonly faucet: null;
|
|
539
556
|
} | {
|
|
540
|
-
readonly chainId: ChainId.
|
|
557
|
+
readonly chainId: ChainId.BEPOLIA;
|
|
541
558
|
readonly tokens: {
|
|
542
559
|
readonly wbera: "0x6969696969696969696969696969696969696969";
|
|
543
560
|
readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
|
|
544
561
|
readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
|
|
545
|
-
readonly wbtc: "
|
|
546
|
-
readonly weth: "
|
|
562
|
+
readonly wbtc: "0x";
|
|
563
|
+
readonly weth: "0x";
|
|
547
564
|
};
|
|
548
565
|
readonly depositContract: "0x4242424242424242424242424242424242424242";
|
|
549
566
|
readonly pol: {
|
|
550
567
|
readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
|
|
551
568
|
readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
|
|
552
|
-
readonly rewardAllocationFactory: "0xc8FD9a3fB3Dad4C22c9F8Cfa7cecC318A667A791";
|
|
553
569
|
readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
|
|
570
|
+
readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
|
|
554
571
|
readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
|
|
555
|
-
readonly subgraph:
|
|
572
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-subgraph/bepolia-v1.7.2/gn";
|
|
573
|
+
readonly feesSubgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/pol-fees-subgraph/bepolia-v1.0.0/gn";
|
|
556
574
|
readonly bribeBoostApi: string;
|
|
557
|
-
readonly bgtIncentiveDistributor: "
|
|
575
|
+
readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
|
|
558
576
|
};
|
|
559
577
|
readonly api: {
|
|
560
578
|
readonly uri: string;
|
|
@@ -562,51 +580,51 @@ declare const config: {
|
|
|
562
580
|
"x-api-key": string;
|
|
563
581
|
} | undefined;
|
|
564
582
|
};
|
|
565
|
-
readonly
|
|
583
|
+
readonly staking: "https://backend-production-351b.up.railway.app";
|
|
566
584
|
readonly bex: {
|
|
567
|
-
readonly chainName: "
|
|
568
|
-
readonly vault: "
|
|
569
|
-
readonly helper: "
|
|
570
|
-
readonly queries: "
|
|
571
|
-
readonly relayer: "
|
|
585
|
+
readonly chainName: "BEPOLIA";
|
|
586
|
+
readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
|
|
587
|
+
readonly helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f";
|
|
588
|
+
readonly queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92";
|
|
589
|
+
readonly relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C";
|
|
572
590
|
readonly factories: {
|
|
573
|
-
readonly composableStable: "
|
|
574
|
-
readonly weighted: "
|
|
591
|
+
readonly composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1";
|
|
592
|
+
readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
|
|
575
593
|
};
|
|
576
|
-
readonly
|
|
577
|
-
readonly
|
|
578
|
-
readonly
|
|
579
|
-
readonly
|
|
580
|
-
readonly
|
|
581
|
-
readonly
|
|
582
|
-
readonly haikuAgentAddress: "0x69495273D6Dc572A830A4D6e00400a1e9d5B8f71";
|
|
594
|
+
readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
|
|
595
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/bex-subgraph/bepolia-1.0.3/gn";
|
|
596
|
+
readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
|
|
597
|
+
readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
|
|
598
|
+
readonly haikuRouter: null;
|
|
599
|
+
readonly haikuAgentAddress: null;
|
|
583
600
|
readonly aggregatorsProxyUrl: string;
|
|
584
|
-
readonly recoverFundsApi:
|
|
585
|
-
readonly recoverFundsContract:
|
|
601
|
+
readonly recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com";
|
|
602
|
+
readonly recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a";
|
|
603
|
+
readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
|
|
586
604
|
};
|
|
587
605
|
readonly honey: {
|
|
588
606
|
readonly name: "Honey";
|
|
589
|
-
readonly url: "https://honey.berachain.com";
|
|
590
|
-
readonly subgraph:
|
|
607
|
+
readonly url: "https://bepolia.honey.berachain.com";
|
|
608
|
+
readonly subgraph: "https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/honey-subgraph/bepolia-v1.2.1/gn";
|
|
591
609
|
readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
|
|
592
610
|
readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
|
|
593
|
-
readonly pythWrapper: "
|
|
611
|
+
readonly pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB";
|
|
594
612
|
readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
|
|
595
613
|
readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
|
|
596
614
|
};
|
|
597
615
|
readonly hub: {
|
|
598
616
|
readonly name: "BeraHub";
|
|
599
|
-
readonly url: "https://hub.berachain.com";
|
|
617
|
+
readonly url: "https://bepolia.hub.berachain.com";
|
|
600
618
|
};
|
|
601
619
|
readonly governance: {
|
|
602
|
-
readonly governor:
|
|
603
|
-
readonly timelock:
|
|
604
|
-
readonly subgraph:
|
|
620
|
+
readonly governor: `0x${string}`;
|
|
621
|
+
readonly timelock: `0x${string}`;
|
|
622
|
+
readonly subgraph: string;
|
|
605
623
|
};
|
|
606
624
|
readonly lists: {
|
|
607
|
-
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/
|
|
608
|
-
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/
|
|
609
|
-
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/
|
|
625
|
+
readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json";
|
|
626
|
+
readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json";
|
|
627
|
+
readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json";
|
|
610
628
|
};
|
|
611
629
|
readonly external: {
|
|
612
630
|
readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
|
|
@@ -614,58 +632,64 @@ declare const config: {
|
|
|
614
632
|
readonly averageBlockTime: 2;
|
|
615
633
|
readonly bridge: {
|
|
616
634
|
readonly name: "BeraBridge";
|
|
617
|
-
readonly url: "https://bridge.berachain.com";
|
|
635
|
+
readonly url: "https://bepolia.bridge.berachain.com";
|
|
618
636
|
readonly nft: {
|
|
619
637
|
readonly name: "BeraBridge NFT";
|
|
620
|
-
readonly url: "
|
|
638
|
+
readonly url: "#";
|
|
621
639
|
readonly eth: {
|
|
622
|
-
readonly subgraph: "
|
|
640
|
+
readonly subgraph: "#";
|
|
623
641
|
};
|
|
624
642
|
readonly berachain: {
|
|
625
|
-
readonly subgraph: "
|
|
643
|
+
readonly subgraph: "#";
|
|
626
644
|
};
|
|
627
645
|
};
|
|
628
646
|
};
|
|
629
647
|
readonly bend: {
|
|
630
648
|
readonly name: "Bend";
|
|
631
|
-
readonly url: "https://bend.berachain.com";
|
|
632
|
-
readonly whiskApi:
|
|
633
|
-
readonly uri: string;
|
|
634
|
-
readonly headers: {
|
|
635
|
-
Authorization: string;
|
|
636
|
-
} | undefined;
|
|
637
|
-
};
|
|
649
|
+
readonly url: "https://bepolia.bend.berachain.com";
|
|
650
|
+
readonly whiskApi: null;
|
|
638
651
|
readonly production: {
|
|
639
|
-
readonly morpho:
|
|
640
|
-
readonly adaptiveCurveIrm:
|
|
641
|
-
readonly metaMorphoFactory:
|
|
642
|
-
readonly publicAllocator:
|
|
643
|
-
readonly bundler3:
|
|
644
|
-
readonly generalAdapter1:
|
|
645
|
-
readonly supportedVaults:
|
|
652
|
+
readonly morpho: null;
|
|
653
|
+
readonly adaptiveCurveIrm: null;
|
|
654
|
+
readonly metaMorphoFactory: null;
|
|
655
|
+
readonly publicAllocator: null;
|
|
656
|
+
readonly bundler3: null;
|
|
657
|
+
readonly generalAdapter1: null;
|
|
658
|
+
readonly supportedVaults: Address[];
|
|
646
659
|
};
|
|
647
660
|
readonly staging: {
|
|
648
|
-
readonly morpho:
|
|
649
|
-
readonly adaptiveCurveIrm:
|
|
650
|
-
readonly metaMorphoFactory:
|
|
651
|
-
readonly publicAllocator:
|
|
652
|
-
readonly bundler3:
|
|
653
|
-
readonly generalAdapter1:
|
|
654
|
-
readonly supportedVaults:
|
|
661
|
+
readonly morpho: null;
|
|
662
|
+
readonly adaptiveCurveIrm: null;
|
|
663
|
+
readonly metaMorphoFactory: null;
|
|
664
|
+
readonly publicAllocator: null;
|
|
665
|
+
readonly bundler3: null;
|
|
666
|
+
readonly generalAdapter1: null;
|
|
667
|
+
readonly supportedVaults: Address[];
|
|
655
668
|
};
|
|
656
669
|
};
|
|
670
|
+
readonly enso: {
|
|
671
|
+
readonly walletV2Factory: null;
|
|
672
|
+
readonly walletFlashloanAdapter: null;
|
|
673
|
+
};
|
|
657
674
|
readonly explore: {
|
|
658
675
|
readonly name: "Explore";
|
|
659
676
|
readonly url: "https://explore.berachain.com";
|
|
660
677
|
};
|
|
661
678
|
readonly explorer: {
|
|
662
679
|
readonly name: "Berascan";
|
|
663
|
-
readonly url: "https://berascan.com";
|
|
680
|
+
readonly url: "https://testnet.berascan.com";
|
|
664
681
|
};
|
|
665
682
|
readonly chain: {
|
|
666
683
|
readonly name: string;
|
|
667
684
|
};
|
|
668
|
-
readonly faucet:
|
|
685
|
+
readonly faucet: {
|
|
686
|
+
readonly name: "Faucet";
|
|
687
|
+
readonly url: "https://bepolia.faucet.berachain.com";
|
|
688
|
+
readonly dripAmount: 1;
|
|
689
|
+
readonly timeGap: 8;
|
|
690
|
+
readonly cloudflareKey: string;
|
|
691
|
+
readonly endpoint: "https://faucet-api.testnet.berachain.com";
|
|
692
|
+
};
|
|
669
693
|
};
|
|
670
694
|
|
|
671
|
-
export { Address, AppName, ChainId, alchemyJsonRpcUrl, appConfig, chainConfigs, defaultChainId as chainId,
|
|
695
|
+
export { Address, AppName, ChainId, alchemyJsonRpcUrl, appConfig, chainConfigs, defaultChainId as chainId, config, currentDapp, defaultChainId, getRpcUrls, goldskyBaseUrl, imageBaseUrl, jsonRpcUrl, privateRcpUrl, publicJsonRpcUrl };
|
package/dist/internal/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k,b as l,c as m}from"../chunk-
|
|
1
|
+
import{a as k,b as l,c as m}from"../chunk-VKKV5GF6.mjs";import"../chunk-ZKMVPHR5.mjs";import"../chunk-RMPYYDGQ.mjs";import{a as d,b as e,c as f,d as g,e as h,f as i,g as j}from"../chunk-4EBBM3AH.mjs";import{a as b,f as c}from"../chunk-S2A3Z34I.mjs";import{a}from"../chunk-MS6UGFXI.mjs";import"../chunk-JZXLCA2E.mjs";export{a as ChainId,i as alchemyJsonRpcUrl,l as appConfig,k as chainConfigs,b as chainId,m as config,c as currentDapp,b as defaultChainId,f as getRpcUrls,e as goldskyBaseUrl,d as imageBaseUrl,h as jsonRpcUrl,j as privateRcpUrl,g as publicJsonRpcUrl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk3WZ7JUD6cjs = require('../../chunk-3WZ7JUD6.cjs');var _chunkYQK5O5ZLcjs = require('../../chunk-YQK5O5ZL.cjs');var _chunkWOMXQLBKcjs = require('../../chunk-WOMXQLBK.cjs');require('../../chunk-YFRDKFCV.cjs');require('../../chunk-GMCXYF2Y.cjs');require('../../chunk-276AZYTL.cjs');require('../../chunk-3KQLFIHT.cjs');require('../../chunk-2OLL4MUY.cjs');require('../../chunk-4VDLQK6F.cjs');var _dotenv = require('dotenv'); var _dotenv2 = _interopRequireDefault(_dotenv);_dotenv2.default.config({path:["../../.env.local","../../.env"]});function c(r,{withSentry:a=!0,withPostHogReverseProxy:o=!0,appName:s}){let t={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true",NEXT_PUBLIC_BERA_APP_NAME:s},turbopack:{rules:{"*.svg":{as:"*.js",loaders:["@svgr/webpack"]}}},experimental:{webpackBuildWorker:!0},typescript:{ignoreBuildErrors:!0},...r,images:{...r.images,remotePatterns:[..._chunkYQK5O5ZLcjs.a]},async rewrites(){return o?[{source:"/ph/static/:path*",destination:`https://${_chunkWOMXQLBKcjs.b.urls.postHog.region}-assets.i.posthog.com/static/:path*`},{source:"/ph/:path*",destination:`https://${_chunkWOMXQLBKcjs.b.urls.postHog.region}.i.posthog.com/:path*`}]:[]}};return o&&(t.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH="/ph",t.skipTrailingSlashRedirect=!0),a?_chunk3WZ7JUD6cjs.b.call(void 0, t):t}exports.withBeraConfig = c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextConfig } from 'next';
|
|
2
|
-
import { a as AppName } from '../../types-
|
|
2
|
+
import { a as AppName } from '../../types-CpAPoaiH.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The images config for Bera.
|
|
@@ -13,7 +13,7 @@ type BeraImagesConfig = Omit<NextConfig["images"], "remotePatterns">;
|
|
|
13
13
|
type BeraNextConfig = Omit<NextConfig, "images"> & {
|
|
14
14
|
images?: BeraImagesConfig;
|
|
15
15
|
};
|
|
16
|
-
declare function withBeraConfig(config: BeraNextConfig, { withSentry, appName, }: {
|
|
16
|
+
declare function withBeraConfig(config: BeraNextConfig, { withSentry, withPostHogReverseProxy, appName, }: {
|
|
17
17
|
withSentry?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* The name of the app, it'll be set as NEXT_PUBLIC_BERA_APP_NAME in the environment variables.
|
|
@@ -22,6 +22,13 @@ declare function withBeraConfig(config: BeraNextConfig, { withSentry, appName, }
|
|
|
22
22
|
* Also, it's used to check if a flag is enabled for the app.
|
|
23
23
|
*/
|
|
24
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;
|
|
25
32
|
}): NextConfig;
|
|
26
33
|
|
|
27
34
|
export { withBeraConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextConfig } from 'next';
|
|
2
|
-
import { a as AppName } from '../../types-
|
|
2
|
+
import { a as AppName } from '../../types-CpAPoaiH.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The images config for Bera.
|
|
@@ -13,7 +13,7 @@ type BeraImagesConfig = Omit<NextConfig["images"], "remotePatterns">;
|
|
|
13
13
|
type BeraNextConfig = Omit<NextConfig, "images"> & {
|
|
14
14
|
images?: BeraImagesConfig;
|
|
15
15
|
};
|
|
16
|
-
declare function withBeraConfig(config: BeraNextConfig, { withSentry, appName, }: {
|
|
16
|
+
declare function withBeraConfig(config: BeraNextConfig, { withSentry, withPostHogReverseProxy, appName, }: {
|
|
17
17
|
withSentry?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* The name of the app, it'll be set as NEXT_PUBLIC_BERA_APP_NAME in the environment variables.
|
|
@@ -22,6 +22,13 @@ declare function withBeraConfig(config: BeraNextConfig, { withSentry, appName, }
|
|
|
22
22
|
* Also, it's used to check if a flag is enabled for the app.
|
|
23
23
|
*/
|
|
24
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;
|
|
25
32
|
}): NextConfig;
|
|
26
33
|
|
|
27
34
|
export { withBeraConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as
|
|
1
|
+
import{b as i}from"../../chunk-XO2H4NRK.mjs";import{a as n}from"../../chunk-SU5YRBAA.mjs";import{b as e}from"../../chunk-VKKV5GF6.mjs";import"../../chunk-ZKMVPHR5.mjs";import"../../chunk-RMPYYDGQ.mjs";import"../../chunk-4EBBM3AH.mjs";import"../../chunk-S2A3Z34I.mjs";import"../../chunk-MS6UGFXI.mjs";import"../../chunk-JZXLCA2E.mjs";import p from"dotenv";p.config({path:["../../.env.local","../../.env"]});function c(r,{withSentry:a=!0,withPostHogReverseProxy:o=!0,appName:s}){let t={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true",NEXT_PUBLIC_BERA_APP_NAME:s},turbopack:{rules:{"*.svg":{as:"*.js",loaders:["@svgr/webpack"]}}},experimental:{webpackBuildWorker:!0},typescript:{ignoreBuildErrors:!0},...r,images:{...r.images,remotePatterns:[...n]},async rewrites(){return o?[{source:"/ph/static/:path*",destination:`https://${e.urls.postHog.region}-assets.i.posthog.com/static/:path*`},{source:"/ph/:path*",destination:`https://${e.urls.postHog.region}.i.posthog.com/:path*`}]:[]}};return o&&(t.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH="/ph",t.skipTrailingSlashRedirect=!0),a?i(t):t}export{c as withBeraConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYQK5O5ZLcjs = require('../../../chunk-YQK5O5ZL.cjs');require('../../../chunk-4VDLQK6F.cjs');function a(t){let e=t.replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1");return e=e.replace(/\*\*/g,"___DOUBLE_STAR___"),e=e.replace(/\*/g,"[^/]+"),e=e.replace(/___DOUBLE_STAR___/g,".*"),e.startsWith("^")||(e=`^${e}`),e.endsWith("$")||(e=`${e}$`),new RegExp(e)}var o=t=>t.replace(/^https?:\/\//,"");function i(t){try{if(!t)return!1;let e=new URL(t);for(let n of _chunkYQK5O5ZLcjs.a){if(n.protocol&&e.protocol.replace(":","")!==n.protocol||o(e.hostname)!==o(n.hostname))continue;if(!n.pathname||a(n.pathname).test(e.pathname))return!0}return!1}catch (e2){return!1}}exports.isAllowedImageUrl = i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../../chunk-
|
|
1
|
+
import{a as r}from"../../../chunk-SU5YRBAA.mjs";import"../../../chunk-JZXLCA2E.mjs";function a(t){let e=t.replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1");return e=e.replace(/\*\*/g,"___DOUBLE_STAR___"),e=e.replace(/\*/g,"[^/]+"),e=e.replace(/___DOUBLE_STAR___/g,".*"),e.startsWith("^")||(e=`^${e}`),e.endsWith("$")||(e=`${e}$`),new RegExp(e)}var o=t=>t.replace(/^https?:\/\//,"");function i(t){try{if(!t)return!1;let e=new URL(t);for(let n of r){if(n.protocol&&e.protocol.replace(":","")!==n.protocol||o(e.hostname)!==o(n.hostname))continue;if(!n.pathname||a(n.pathname).test(e.pathname))return!0}return!1}catch{return!1}}export{i as isAllowedImageUrl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3WZ7JUD6cjs = require('../../chunk-3WZ7JUD6.cjs');require('../../chunk-4VDLQK6F.cjs');exports.onRequestError = _chunk3WZ7JUD6cjs.c; exports.registerSentry = _chunk3WZ7JUD6cjs.a; exports.withSentryConfig = _chunk3WZ7JUD6cjs.b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-XO2H4NRK.mjs";import"../../chunk-JZXLCA2E.mjs";export{c as onRequestError,a as registerSentry,b as withSentryConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkJYSZ2GU3cjs = require('../../chunk-JYSZ2GU3.cjs');require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkJYSZ2GU3cjs = require('../../chunk-JYSZ2GU3.cjs');require('../../chunk-276AZYTL.cjs');require('../../chunk-3KQLFIHT.cjs');require('../../chunk-2OLL4MUY.cjs');require('../../chunk-4VDLQK6F.cjs');_chunkJYSZ2GU3cjs.d&&console.log("[@berachain/config] sentryDebug init",process.env.NEXT_PUBLIC_SENTRY_DSN);function s(r,n={}){return r.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tunnel:"/monitoring-tunnel",tracesSampleRate:_chunkJYSZ2GU3cjs.b,debug:_chunkJYSZ2GU3cjs.d,environment:_chunkJYSZ2GU3cjs.a,...n,ignoreErrors:[..._nullishCoalesce(n.ignoreErrors, () => ([])),/Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,/'set' on proxy: trap returned falsish for property/,/Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,/chrome\.runtime\.sendMessage\(\) called from a webpage/,"Could not establish connection. Receiving end does not exist.","Attempting to use a disconnected port object",/The source .+ has not been authorized yet/,/No matching key\. session topic doesn't exist/,/Failed to connect to MetaMask/,"not found rainbowkit","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.","The provider is disconnected from all chains.","Cannot destructure property 'register' of 'undefined' as it is undefined."]})}exports.initSentryClient = s;
|