Skip to content

Commit

Permalink
updating deps
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Oct 15, 2024
1 parent c4ccef0 commit 9948072
Show file tree
Hide file tree
Showing 9 changed files with 477 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "lib/rain.math.fixedpoint"]
path = lib/rain.math.fixedpoint
url = https://github.com/rainprotocol/rain.math.fixedpoint
[submodule "lib/chainlink"]
path = lib/chainlink
url = https://github.com/smartcontractkit/chainlink
1 change: 1 addition & 0 deletions LICENSE
189 changes: 189 additions & 0 deletions LICENSES/LicenseRef-DCL-1.0.txt

Large diffs are not rendered by default.

279 changes: 279 additions & 0 deletions flake.lock

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

1 change: 1 addition & 0 deletions lib/chainlink
Submodule chainlink added at 5ebb63
23 changes: 0 additions & 23 deletions src/interface/AggregatorV3Interface.sol

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/LibChainlink.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.18;

import {LibFixedPointDecimalScale} from "rain.math.fixedpoint/lib/LibFixedPointDecimalScale.sol";
import {AggregatorV3Interface} from "../interface/AggregatorV3Interface.sol";
import {AggregatorV3Interface} from "chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";

/// Thrown if a price is zero or negative as this is probably not anticipated or
/// useful for most users of a price feed. Of course there are use cases where
Expand Down
4 changes: 2 additions & 2 deletions test/lib/LibChainlink.price.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Test} from "forge-std/Test.sol";
import {LibWillOverflow} from "rain.math.fixedpoint/lib/LibWillOverflow.sol";

import {LibChainlink} from "src/lib/LibChainlink.sol";
import {AggregatorV3Interface} from "src/interface/AggregatorV3Interface.sol";
import {AggregatorV3Interface} from "chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";

/// @title LibChainlinkPriceTest
/// Test that the `price` function matches the `roundDataToPrice` function.
Expand All @@ -31,7 +31,7 @@ contract LibChainlinkPriceTest is Test {
vm.etch(feed, hex"00");

answer = bound(answer, 1, type(int256).max);
vm.assume(updatedAt <= block.timestamp);
updatedAt = bound(updatedAt, 0, block.timestamp);
staleAfter = bound(staleAfter, block.timestamp - updatedAt, type(uint256).max);
vm.assume(!LibWillOverflow.scale18WillOverflow(uint256(answer), decimals, scalingFlags));
uint256 price =
Expand Down

0 comments on commit 9948072

Please sign in to comment.