The fees for mainnet are dynamically set. Always use the on-chain method
`entropy.getFeeV2()` to get the current fee.
-
+
The following tables shows the total fees payable when using the **default provider**.
Note that the fees shown below will vary over time with prevailing gas prices on each chain.
@@ -32,12 +32,12 @@ Entropy callbacks the consumer as part of this transaction.
## Testnets
-
+
The fees for testnets are kept deliberately low and different from the
mainnet fees.
-
+
The Entropy contract is deployed on the following testnet chains:
diff --git a/apps/developer-hub/content/docs/entropy/fees.mdx b/apps/developer-hub/content/docs/entropy/fees.mdx
index 347ef78fd6..eb7cec9e08 100644
--- a/apps/developer-hub/content/docs/entropy/fees.mdx
+++ b/apps/developer-hub/content/docs/entropy/fees.mdx
@@ -17,4 +17,4 @@ Note that protocols integrating with Entropy can pass these fees along to their
submits a transaction that requests a random number, the user can directly pay the entropy fees required
with the native blockchain token. There are no fees for revealing the random numbers.
-You can check the current fees in the [chainlist and fee details](./entropy/chainlist) page for each blockchain.
+You can check the current fees in the [chainlist and fee details](./chainlist) page for each blockchain.
diff --git a/apps/developer-hub/content/docs/entropy/generate-random-numbers-evm.mdx b/apps/developer-hub/content/docs/entropy/generate-random-numbers-evm.mdx
index 1db75566d4..4a0a096a38 100644
--- a/apps/developer-hub/content/docs/entropy/generate-random-numbers-evm.mdx
+++ b/apps/developer-hub/content/docs/entropy/generate-random-numbers-evm.mdx
@@ -147,7 +147,7 @@ IEntropyV2 entropy;
When the final random number is ready to use, the entropyCallback function will be called by the Entropy contract. This will happen in a separate transaction submitted by the requested provider.
-
+
The `entropyCallback` function on your contract should **never** return an
error. If it returns an error, the keeper will not be able to invoke the
callback. If you are having problems receiving the callback, please see
diff --git a/apps/developer-hub/content/docs/entropy/set-custom-gas-limits.mdx b/apps/developer-hub/content/docs/entropy/set-custom-gas-limits.mdx
index bfaa8c7f82..3c61ef7f05 100644
--- a/apps/developer-hub/content/docs/entropy/set-custom-gas-limits.mdx
+++ b/apps/developer-hub/content/docs/entropy/set-custom-gas-limits.mdx
@@ -127,7 +127,7 @@ mapping(uint64 => bool) public processedRequests;
When setting custom gas limits, be aware of these constraints:
-
+
Gas limits are automatically rounded up to the nearest multiple of **10,000**.
Example: 19,000 becomes 20,000 25,500 becomes 30,000. The minimum gas limit is
the provider's configured default limit. The maximum gas limit is 655,350,000
@@ -169,7 +169,7 @@ uint32 customGasLimit = estimatedGas + safetyBuffer;
Be prepared to handle cases where your gas limit is insufficient:
-
+
If your callback **runs out of gas**, the entropy provider will **not** be
able to complete the callback. Always test your gas limits thoroughly and
include adequate safety margins.
diff --git a/apps/developer-hub/content/docs/entropy/whats-new-entropyv2.mdx b/apps/developer-hub/content/docs/entropy/whats-new-entropyv2.mdx
index 44b09268e3..b52c82d900 100644
--- a/apps/developer-hub/content/docs/entropy/whats-new-entropyv2.mdx
+++ b/apps/developer-hub/content/docs/entropy/whats-new-entropyv2.mdx
@@ -22,7 +22,6 @@ Each of these request types is described in more detail with examples in [Reques
### 2. Enhanced Callback Status
Entropy V2 introduces callback statuses, which allow users to track the status of their callbacks.
-
[Pyth Dev-Forum Announcement](https://dev-forum.pyth.network/t/announcing-entropy-v2/324#p-649-enhanced-callback-statuses-2) provides more details on enhanced callback statuses.
### 3. Entropy Explorer
diff --git a/apps/developer-hub/content/docs/express-relay/contract-addresses.mdx b/apps/developer-hub/content/docs/express-relay/contract-addresses.mdx
index fa1b39ccda..9b4474b916 100644
--- a/apps/developer-hub/content/docs/express-relay/contract-addresses.mdx
+++ b/apps/developer-hub/content/docs/express-relay/contract-addresses.mdx
@@ -22,7 +22,7 @@ description: >-
-
+
To simulate real performance conditions and activity, the staging/testing
environment for Solana is on the mainnet-beta network. This environment is not
for production use and should only be used for testing.
diff --git a/apps/developer-hub/content/docs/metrics/kpi.mdx b/apps/developer-hub/content/docs/metrics/kpi.mdx
index 18a951daaa..08d24c70b4 100644
--- a/apps/developer-hub/content/docs/metrics/kpi.mdx
+++ b/apps/developer-hub/content/docs/metrics/kpi.mdx
@@ -3,14 +3,14 @@ title: Pyth Network KPI
description: Monthly informative data points on the Pyth network, its growth, and performance metrics.
---
-
+
For the latest KPI dashboard, please visit
[https://kpi.pyth.network/](https://kpi.pyth.network/).
Every month, the Pyth contributors collect informative data points on the
network, its growth, as well as its performance.
-
+
All figures mentioned are just rough estimations. Due to Pyth's permissionless
nature, any apps can use the Pyth price feeds without talking to the Pyth
contributors. This will exclude them from the calculations.
diff --git a/apps/developer-hub/src/app/(docs)/[section]/layout.tsx b/apps/developer-hub/src/app/(docs)/[section]/layout.tsx
index 8a258e1fe6..7738bd74d5 100644
--- a/apps/developer-hub/src/app/(docs)/[section]/layout.tsx
+++ b/apps/developer-hub/src/app/(docs)/[section]/layout.tsx
@@ -1,9 +1,42 @@
+import { Banner } from "fumadocs-ui/components/banner";
import { DocsLayout } from "fumadocs-ui/layouts/docs";
+import Link from "next/link";
import type { ReactNode } from "react";
import { docsOptions } from "../../../config/layout.config";
-export default function Layout({ children }: { children: ReactNode }) {
- const options = { ...docsOptions };
- return {children};
+export default async function Layout({
+ children,
+ params,
+}: {
+ children: ReactNode;
+ params: Promise<{ section: string }>;
+}) {
+ const { section } = await params;
+
+ return (
+ <>
+ {section === "entropy" && (
+
+
+
+ Try the{" "}
+
+ Entropy Explorer
+
+ {" "}
+ to track and debug callback issues. |
+
+ Learn what's new in Entropy v2.
+
+
+
+ )}
+ {children}
+ >
+ );
}
diff --git a/apps/developer-hub/src/mdx-components.tsx b/apps/developer-hub/src/mdx-components.tsx
index 0d1308841a..20240cb85e 100644
--- a/apps/developer-hub/src/mdx-components.tsx
+++ b/apps/developer-hub/src/mdx-components.tsx
@@ -17,7 +17,5 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents {
Tab,
...components,
InfoBox: InfoBox,
- // Fuma has a Callout component in `defaultMdxComponents` which we still want to overwrite
- Callout: InfoBox,
};
}