Skip to content

Commit cf7c605

Browse files
committed
first commit
1 parent 288ab63 commit cf7c605

File tree

49 files changed

+69
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+69
-12
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ docs/
1414
.env
1515

1616
.DS_Store
17-
zkout/
17+
zkout/
18+
19+
broadcast/
20+
lib/

.gitmodules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[submodule "lib/foundry-devops"]
2+
path = lib/foundry-devops
3+
[submodule "lib/chainlink-brownie-contracts"]
4+
path = lib/chainlink-brownie-contracts
5+
url = https://github.com/smartcontractkit/chainlink-brownie-contracts

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.exclude": {
3+
"**/.git": false
4+
}
5+
}

foundry.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ src = "src"
33
out = "out"
44
libs = ["lib"]
55
remappings = [
6-
"@chainlink/contracts/=lib/chainlink-brownie-contracts/contracts/",
6+
'@chainlink/contracts/=lib/chainlink-brownie-contracts/contracts/src/',
77
]
88
ffi = true
99
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

lib/chainlink-brownie-contracts

lib/foundry-devops

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b2100822d3d263bb85ba6854cceddb5bdd36f245

src/FundMe.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.18;
33

4+
// /
5+
46
// Note: The AggregatorV3Interface might be at a different location than what was in the video!
5-
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
7+
import {AggregatorV3Interface} from "lib/chainlink-brownie-contracts/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
68
import {PriceConverter} from "./PriceConverter.sol";
79

810
error FundMe__NotOwner();

src/PriceConverter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pragma solidity ^0.8.18;
44

5-
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
5+
import {AggregatorV3Interface} from "lib/chainlink-brownie-contracts/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
66

77
// Why is this a library and not abstract?
88
// Why not an interface?

test/mocks/MockV3Aggregator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.0;
33

4-
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
4+
import {AggregatorV3Interface} from "lib/chainlink-brownie-contracts/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
55

66
/**
77
* @title MockV3Aggregator

test/unit/ZkSyncDevOps.t.sol

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// SPDX-License-Identifier: MIT
22

3-
pragma solidity 0.8.19;
3+
pragma solidity ^0.8.18;
44

55
import {Test, console} from "forge-std/Test.sol";
6+
67
import {ZkSyncChainChecker} from "lib/foundry-devops/src/ZkSyncChainChecker.sol";
78
import {FoundryZkSyncChecker} from "lib/foundry-devops/src/FoundryZkSyncChecker.sol";
89

910
contract ZkSyncDevOps is Test, ZkSyncChainChecker, FoundryZkSyncChecker {
1011
// Remove the `skipZkSync`, then run `forge test --mt testZkSyncChainFails --zksync` and this will fail!
11-
function testZkSyncChainFails() public skipZkSync {
12+
function testZkSyncChainFails() public skipZkSync{
1213
address ripemd = address(uint160(3));
1314

1415
bool success;
@@ -23,8 +24,8 @@ contract ZkSyncDevOps is Test, ZkSyncChainChecker, FoundryZkSyncChecker {
2324
// // Remove the `onlyVanillaFoundry`, then run `foundryup-zksync` and then
2425
// // `forge test --mt testZkSyncFoundryFails --zksync`
2526
// // and this will fail!
26-
// function testZkSyncFoundryFails() public onlyVanillaFoundry {
27-
// bool exists = vm.keyExistsJson('{"hi": "true"}', ".hi");
28-
// assert(exists);
29-
// }
30-
}
27+
//function testZkSyncFoundryFails() public onlyVanillaFoundry {
28+
//bool exists = vm.keyExistsJson('{"hi": "true"}', ".hi");
29+
//assert(exists);
30+
//}
31+
}

0 commit comments

Comments
 (0)