pyth-crosschain/ethereum/contracts/pyth/PythState.sol

23 lines
491 B
Solidity

// contracts/State.sol
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.0;
import "./PythInternalStructs.sol";
contract PythStorage {
struct State {
address payable wormhole;
uint16 pyth2WormholeChainId;
bytes32 pyth2WormholeEmitter;
// Mapping of cached price information
// priceId => PriceInfo
mapping(bytes32 => PythInternalStructs.PriceInfo) latestPriceInfo;
}
}
contract PythState {
PythStorage.State _state;
}