Skip to content

Commit d1a7386

Browse files
committed
chore(Dev-hub) Final Edits
1 parent 086475f commit d1a7386

14 files changed

+71
-23
lines changed

apps/developer-hub/content/docs/entropy/best-practices.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Best Practices
33
description: Best practices for using Pyth Entropy in your applications
4+
icon: Book
45
---
56

67
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock";

apps/developer-hub/content/docs/entropy/contract-addresses.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Contract & Provider Addresses
33
description: Pyth Entropy contract addresses on EVM networks
4+
icon: FileText
45
---
56

67
import { EntropyTable } from "../../../src/components/EntropyTable";

apps/developer-hub/content/docs/entropy/create-your-first-entropy-app.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Create your first Entropy app on EVM
33
description: Build a coin flip example using Pyth Entropy
4+
icon: RocketLaunch
45
---
56

67
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock";

apps/developer-hub/content/docs/entropy/debug-callback-failures.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Debug Callback Failures
33
description: How to identify and resolve issues with Entropy callbacks
4+
icon: Bug
45
---
56

67
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock";

apps/developer-hub/content/docs/entropy/error-codes.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Error Codes
33
description: On chain error codes from the Pyth Entropy EVM contracts
4+
icon: Bug
45
---
56

67
The following table contains the errors used in the Pyth Network's Entropy [EVM contracts](https://github.com/pyth-network/pyth-crosschain/blob/d290f4ec47a73636cf77711f5f68c3455bb8a8ca/target_chains/ethereum/contracts/contracts/entropy/Entropy.sol).

apps/developer-hub/content/docs/entropy/fees.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Fees
33
description: Understanding Pyth Entropy fee structure
4+
icon: CurrencyDollar
45
---
56

67
The Entropy protocol has been designed to charge fees on a per-request basis. The total fee is

apps/developer-hub/content/docs/entropy/generate-random-numbers-evm.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Generate Random Numbers onchain
33
description: Learn how to integrate Pyth Entropy to generate random numbers in your dapp
4+
icon: Code
45
---
56

67
import { Step, Steps } from "fumadocs-ui/components/steps";

apps/developer-hub/content/docs/entropy/index.mdx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
RocketLaunch,
1010
FileText,
1111
DiceSix,
12+
MagnifyingGlass,
1213
} from "@phosphor-icons/react/dist/ssr";
1314

1415
**Pyth Entropy** is an on-chain random number generator (RNG) designed for developers who need fair, unbiased, and cryptographically secure randomness.
@@ -24,19 +25,6 @@ Whether you're building a blockchain game, NFT mint, lottery, or simulation, Ent
2425

2526
Entropy v2 introduces several improvements and new features to make random number generation more flexible and efficient.
2627
See [What's New in Entropy v2](whats-new-entropyv2) for more details.
27-
(TODO: Add an infographic here)
28-
29-
## Getting Started
30-
31-
Using Pyth Entropy is permissionless and developers can integrate in a few minutes.
32-
Please see [How to Generate Random Numbers Using Pyth Entropy](generate-random-numbers) to start integrating Pyth Entropy into your application.
33-
34-
## Reference Material
35-
36-
- [Protocol design](protocol-design)
37-
- [Contract Addresses/Supported Networks](contract-addresses)
38-
- [Error Codes](error-codes)
39-
- [Entropy Debugger](https://entropy-debugger.pyth.network/) - Interactive tool for diagnosing callback issues
4028

4129
## Start Building
4230

@@ -57,9 +45,23 @@ Please see [How to Generate Random Numbers Using Pyth Entropy](generate-random-n
5745
/>
5846
<IntegrationCard
5947
href="/entropy/contract-addresses"
60-
title="Contracts & Providers"
48+
title="Contract Addresses"
6149
description="Find Entropy addresses, reveal delays, gas limits, and fees."
6250
icon={<FileText size={16} />}
6351
colorScheme="purple"
6452
/>
53+
<IntegrationCard
54+
href="/entropy/protocol-design"
55+
title="Protocol Design"
56+
description="Understanding how Pyth Entropy generates secure random numbers."
57+
icon={<FileText size={16} />}
58+
colorScheme="purple"
59+
/>
60+
<IntegrationCard
61+
href="https://entropy-debugger.pyth.network/"
62+
title="Entropy Explorer"
63+
description="Interactive tool to diagnose callback issues on-chain."
64+
icon={<MagnifyingGlass size={16} />}
65+
colorScheme="yellow"
66+
/>
6567
</div>

apps/developer-hub/content/docs/entropy/protocol-design.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Protocol Design
33
description: Understanding how Pyth Entropy generates secure random numbers
4+
icon: Book
45
---
56

67
The Entropy protocol implements a secure 2-party random number generation procedure. The protocol

apps/developer-hub/content/docs/entropy/request-callback-variants.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Request Callback Variants
33
description: Different ways to request random numbers with Pyth Entropy
4+
icon: Code
45
---
56

67
The [`IEntropyV2`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/entropy_sdk/solidity/IEntropyV2.sol) interface provides multiple variants of the `requestV2` function:

0 commit comments

Comments
 (0)