| 123456789101112131415161718192021222324252627 |
- // contracts/Structs.sol
- // SPDX-License-Identifier: Apache 2
- pragma solidity ^0.8.0;
- import "../libraries/external/BytesLib.sol";
- import "@pythnetwork/pyth-sdk-solidity/PythStructs.sol";
- contract PythInternalStructs {
- using BytesLib for bytes;
- struct PriceInfo {
- // slot 1
- uint64 publishTime;
- int32 expo;
- int64 price;
- uint64 conf;
- // slot 2
- int64 emaPrice;
- uint64 emaConf;
- }
- struct DataSource {
- uint16 chainId;
- bytes32 emitterAddress;
- }
- }
|