IPythEvents.sol 701 B

123456789101112131415161718
  1. // SPDX-License-Identifier: Apache-2.0
  2. pragma solidity ^0.8.0;
  3. /// @title IPythEvents contains the events that Pyth contract emits.
  4. /// @dev This interface can be used for listening to the updates for off-chain and testing purposes.
  5. interface IPythEvents {
  6. /// @dev Emitted when the price feed with `id` has received a fresh update.
  7. /// @param id The Pyth Price Feed ID.
  8. /// @param publishTime Publish time of the given price update.
  9. /// @param price Price of the given price update.
  10. /// @param conf Confidence interval of the given price update.
  11. event PriceFeedUpdate(
  12. bytes32 indexed id,
  13. uint64 publishTime,
  14. int64 price,
  15. uint64 conf
  16. );
  17. }