PythState.sol 499 B

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