Skip to content

Commit 34c997c

Browse files
committed
chore(entropy)-add-error-page
1 parent a20f549 commit 34c997c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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. |
13+
| 0x3e515085 | OutOfRandomness() | Provider is our of committed random numbers. |
14+
| 0x025dbdd4 | InsufficientFee() | Transaction fee 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 0. |
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)