Explorar el Código

Define internal PythStructs.PriceInfo struct

Tom Pointon hace 3 años
padre
commit
9e3b944bc1
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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;
+    }
 }