| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- // SPDX-License-Identifier: Apache 2
- pragma solidity ^0.8.0;
- library PythErrors {
- // Function arguments are invalid (e.g., the arguments lengths mismatch)
- // Signature: 0xa9cb9e0d
- error InvalidArgument();
- // Update data is coming from an invalid data source.
- // Signature: 0xe60dce71
- error InvalidUpdateDataSource();
- // Update data is invalid (e.g., deserialization error)
- // Signature: 0xe69ffece
- error InvalidUpdateData();
- // Insufficient fee is paid to the method.
- // Signature: 0x025dbdd4
- error InsufficientFee();
- // There is no fresh update, whereas expected fresh updates.
- // Signature: 0xde2c57fa
- error NoFreshUpdate();
- // There is no price feed found within the given range or it does not exists.
- // Signature: 0x45805f5d
- error PriceFeedNotFoundWithinRange();
- // Price feed not found or it is not pushed on-chain yet.
- // Signature: 0x14aebe68
- error PriceFeedNotFound();
- // Requested price is stale.
- // Signature: 0x19abf40e
- error StalePrice();
- // Given message is not a valid Wormhole VAA.
- // Signature: 0x2acbe915
- error InvalidWormholeVaa();
- // Governance message is invalid (e.g., deserialization error).
- // Signature: 0x97363b35
- error InvalidGovernanceMessage();
- // Governance message is not for this contract.
- // Signature: 0x63daeb77
- error InvalidGovernanceTarget();
- // Governance message is coming from an invalid data source.
- // Signature: 0x360f2d87
- error InvalidGovernanceDataSource();
- // Governance message is old.
- // Signature: 0x88d1b847
- error OldGovernanceMessage();
- // The wormhole address to set in SetWormholeAddress governance is invalid.
- // Signature: 0x13d3ed82
- error InvalidWormholeAddressToSet();
- // The twap update data is invalid.
- error InvalidTwapUpdateData();
- // The twap update data set is invalid.
- error InvalidTwapUpdateDataSet();
- // The Input Price is negative.
- error NegativeInputPrice();
- // The Input Exponent is invalid.
- error InvalidInputExpo();
- // The combined price is greater than int64.max.
- error CombinedPriceOverflow();
- // The exponent is greater than 77 or less than -77.
- error ExponentOverflow();
- }
|