PythState.sol 491 B

12345678910111213141516171819202122
  1. // contracts/State.sol
  2. // SPDX-License-Identifier: Apache 2
  3. pragma solidity ^0.8.0;
  4. import "./PythInternalStructs.sol";
  5. contract PythStorage {
  6. struct State {
  7. address payable wormhole;
  8. uint16 pyth2WormholeChainId;
  9. bytes32 pyth2WormholeEmitter;
  10. // Mapping of cached price information
  11. // priceId => PriceInfo
  12. mapping(bytes32 => PythInternalStructs.PriceInfo) latestPriceInfo;
  13. }
  14. }
  15. contract PythState {
  16. PythStorage.State _state;
  17. }