Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 0 additions & 111 deletions .github/workflows/manual-sol-artifacts.yaml

This file was deleted.

69 changes: 26 additions & 43 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@
description = "Flake for development workflows.";

inputs = {
rainix.url = "github:rainprotocol/rainix";
rainix.url = "github:rainlanguage/rainix";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = {self, flake-utils, rainix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = rainix.pkgs.${system};
in {
packages = rainix.packages.${system};
devShells = rainix.devShells.${system};
}
);

}
outputs =
{ flake-utils, rainix, ... }:
flake-utils.lib.eachDefaultSystem (system: {
packages = rainix.packages.${system};
devShells = rainix.devShells.${system};
});
}
9 changes: 5 additions & 4 deletions test/prod/PythInterfaceProd.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ contract PythInterfaceProdTest is Test {
/// @dev BTC/USD price feed ID (Pyth canonical feed).
bytes32 constant BTC_USD_FEED_ID = 0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43;

/// @dev Generous staleness window so the test is robust across pinned fork
/// blocks; the only thing under test is that the call returns plausible
/// values, not that the price is fresh.
uint256 constant STALE_AFTER = 1 hours;
/// @dev Effectively unbounded staleness window. The test pins the live
/// contract's ABI and return decoding, not price freshness — Pyth is a pull
/// oracle, so a tight window forking at latest reverts StalePrice whenever
/// BTC/USD hasn't been pushed recently.
uint256 constant STALE_AFTER = 36500 days;

/// IPyth.getPriceNoOlderThan — the only IPyth method this repo invokes,
/// via PythOracle.price().
Expand Down
Loading