PythInternalStructs.sol 545 B

123456789101112131415161718192021222324252627
  1. // contracts/Structs.sol
  2. // SPDX-License-Identifier: Apache 2
  3. pragma solidity ^0.8.0;
  4. import "../libraries/external/BytesLib.sol";
  5. import "@pythnetwork/pyth-sdk-solidity/PythStructs.sol";
  6. contract PythInternalStructs {
  7. using BytesLib for bytes;
  8. struct PriceInfo {
  9. // slot 1
  10. uint64 publishTime;
  11. int32 expo;
  12. int64 price;
  13. uint64 conf;
  14. // slot 2
  15. int64 emaPrice;
  16. uint64 emaConf;
  17. }
  18. struct DataSource {
  19. uint16 chainId;
  20. bytes32 emitterAddress;
  21. }
  22. }