IPythEvents.sol 1006 B

1234567891011121314151617181920212223
  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. /// @dev Emitted when a batch price update is processed successfully.
  18. /// @param chainId ID of the source chain that the batch price update comes from.
  19. /// @param sequenceNumber Sequence number of the batch price update.
  20. event BatchPriceFeedUpdate(uint16 chainId, uint64 sequenceNumber);
  21. }