瀏覽代碼

Define internal PythStructs.PriceInfo struct

Tom Pointon 3 年之前
父節點
當前提交
9e3b944bc1
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      ethereum/contracts/pyth/PythStructs.sol

+ 8 - 0
ethereum/contracts/pyth/PythStructs.sol

@@ -4,6 +4,7 @@
 pragma solidity ^0.8.0;
 
 import "../libraries/external/BytesLib.sol";
+import "./PythSDK.sol";
 
 contract PythStructs {
     using BytesLib for bytes;
@@ -56,4 +57,11 @@ contract PythStructs {
 
         address newContract;
     }
+
+    struct PriceInfo {
+        PythSDK.Price price;
+        uint256 attestation_time;
+        uint256 arrival_time;
+        uint256 arrival_block;
+    }
 }