-
Notifications
You must be signed in to change notification settings - Fork 35
Chore(entropy) add error page #524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Error Codes | ||
|
||
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). | ||
This information is derived from [EntropyErrors.sol](https://github.com/pyth-network/pyth-crosschain/blob/d290f4ec47a73636cf77711f5f68c3455bb8a8ca/target_chains/ethereum/entropy_sdk/solidity/EntropyErrors.sol) | ||
in the Pyth EntropySDK and can be used to decode error codes programmatically. | ||
|
||
| Error Codes | Error | Error Description | | ||
| ----------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| 0xd82dd966 | AssertionFailure() | Contract invariant failed. | | ||
| 0xda041bdf | ProviderAlreadyRegistered() | Provider already registered. | | ||
| 0xdf51c431 | NoSuchProvider() | Requested Provider does not exist. | | ||
| 0xc4237352 | NoSuchRequest() | Request does not exist. | | ||
| 0x3e515085 | OutOfRandomness() | Provider is our of committed random numbers. | | ||
aditya520 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 0x025dbdd4 | InsufficientFee() | Transaction fee insufficient. | | ||
aditya520 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 0xb8be1a8d | IncorrectRevelation() | Revelation does not match commitment. | | ||
| 0xb463ce7a | InvalidUpgradeMagic() | Governance message is invalid. | | ||
| 0x82b42900 | Unauthorized() | `msg.sender` is not allowed to invoke this method. | | ||
| 0x92555c0e | BlockhashUnavailable() | Blockhash is 0. | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If entropy request was made using the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's too verbose. That should be added in a troublshooting page. |
||
| 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` | | ||
| 0xb28d9c76 | LastRevealedTooOld() | Last random number revealed is too old. | | ||
| 0x5e5b3f1b | UpdateTooOld() | More recent commitment already revealed on-chain. | |
Uh oh!
There was an error while loading. Please reload this page.