Skip to content

Commit e026621

Browse files
committed
update
1 parent 5597909 commit e026621

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pages/entropy/whats-new-entropyv2.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# What's New in Entropy V2
22

3-
Entropy V2 is a major update to the Pyth Randomness Protocol.
3+
Entropy V2 is a major update to the Pyth Randomness Protocol.
44

5-
It introduces a series of developer experience improvements, shaped directly by the feedback of teams using it in production:
5+
It introduces a series of developer experience improvements, shaped directly by the feedback of teams using it in production:
66
configurable & customizable gas limits for callbacks, adding callback statuses, and an upcoming public Entropy Explorer.
77

88
## What's New
@@ -13,15 +13,16 @@ configurable & customizable gas limits for callbacks, adding callback statuses,
1313

1414
### Configurable Gas Limits for Callbacks
1515

16-
Entropy V2 introduces configurable gas limits for callbacks.
16+
Entropy V2 introduces configurable gas limits for callbacks.
1717
This allows teams to set the gas limit for their callbacks, which can be useful for:
18+
1819
- Computing expensive operations in the callback like minting an NFT collection.
1920
- Save money on gas fees by setting a lower gas limit.
2021

2122
```solidity copy
2223
// Calculate the fee for the custom gas limit
2324
uint256 fee = entropy.getFeeV2(customGasLimit);
24-
25+
2526
// Request random number with custom gas limit
2627
uint64 sequenceNumber = entropy.requestV2{ value: fee }(customGasLimit);
2728
```
@@ -31,7 +32,6 @@ uint64 sequenceNumber = entropy.requestV2{ value: fee }(customGasLimit);
3132
Entropy V2 introduces callback statuses, which allow teams to track the status of their callbacks.
3233
These callback statuses are emitted in the `Revealed` event.
3334

34-
3535
Previous version of Entropy use to emit the following `RevealedWithCallback` event:
3636

3737
```solidity copy
@@ -60,7 +60,8 @@ event Revealed(
6060
);
6161
```
6262

63-
This updated `Revealed` event
63+
This updated `Revealed` event
64+
6465
- abstracted away the information from `EntropyStructs.Request` to the `Revealed` event for easier consumption.
6566
- added a `callbackFailed` boolean to indicate if the callback failed.
6667

@@ -72,7 +73,6 @@ Entropy V2 introduces an upcoming public Entropy Explorer, which will allow team
7273

7374
This will help teams to easily track the status of their callbacks and re-request them if they fail on-chain.
7475

75-
7676
## Additional Resources
7777

7878
These following resources will help you get started with Entropy V2:

0 commit comments

Comments
 (0)