Skip to content

Commit 585697e

Browse files
authored
Chore(entropy) add error page (#524)
* chore(entropy)-add-error-page * indexing * changes
1 parent 79b0864 commit 585697e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

pages/entropy/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"href": "https://fortuna.dourolabs.app/docs/",
3939
"newWindow": true
4040
},
41+
"error-codes": "Error Codes",
4142
"examples": "Example Applications",
4243

4344
"-- Understanding Entropy": {

pages/entropy/error-codes.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Error Codes
2+
3+
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).
4+
This information is derived from [EntropyErrors.sol](https://github.com/pyth-network/pyth-crosschain/blob/d290f4ec47a73636cf77711f5f68c3455bb8a8ca/target_chains/ethereum/entropy_sdk/solidity/EntropyErrors.sol)
5+
in the Pyth EntropySDK and can be used to decode error codes programmatically.
6+
7+
| Error Codes | Error | Error Description |
8+
| ----------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9+
| 0xd82dd966 | AssertionFailure() | Contract invariant failed. |
10+
| 0xda041bdf | ProviderAlreadyRegistered() | Provider already registered. |
11+
| 0xdf51c431 | NoSuchProvider() | Requested Provider does not exist. |
12+
| 0xc4237352 | NoSuchRequest() | Request does not exist or the request has been fulfilled. |
13+
| 0x3e515085 | OutOfRandomness() | Provider is out of committed random numbers. |
14+
| 0x025dbdd4 | InsufficientFee() | Request fee is insufficient. |
15+
| 0xb8be1a8d | IncorrectRevelation() | Revelation does not match commitment. |
16+
| 0xb463ce7a | InvalidUpgradeMagic() | Governance message is invalid. |
17+
| 0x82b42900 | Unauthorized() | `msg.sender` is not allowed to invoke this method. |
18+
| 0x92555c0e | BlockhashUnavailable() | Blockhash is unavailable. |
19+
| 0x50f0dc92 | InvalidRevealCall() | Invalid reveal call method. If a request was made using `requestWithCallback`, request should be fulfilled using `revealWithCallback`else if a request was made using `request`, request should be fulfilled using `reveal` |
20+
| 0xb28d9c76 | LastRevealedTooOld() | Last random number revealed is too old. |
21+
| 0x5e5b3f1b | UpdateTooOld() | More recent commitment already revealed on-chain. |

0 commit comments

Comments
 (0)