Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yanheChen committed Oct 20, 2024
2 parents dcd513d + 8a35918 commit c172bc1
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Compiler files
cache/
out/
contracts-out/

# Ignores development broadcast logs
!/broadcast
Expand All @@ -12,3 +12,6 @@ docs/

# Dotenv file
.env

node_modules

6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/layerzero-v2"]
path = lib/layerzero-v2
url = https://github.com/LayerZero-Labs/layerzero-v2
File renamed without changes.
14 changes: 10 additions & 4 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
src = "contracts"
out = "contracts-out"
libs = [
"lib"
]

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
remappings = [
'@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/',
'@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/',
'@layerzerolabs/lz-evm-protocol-v2/=lib/layerzero-v2/packages/layerzero-v2/evm/protocol',
]
1 change: 1 addition & 0 deletions lib/layerzero-v2
Submodule layerzero-v2 added at 7bcfb4
1 change: 1 addition & 0 deletions lib/openzeppelin-contracts
Submodule openzeppelin-contracts added at 329125
10 changes: 10 additions & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/
@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/
@layerzerolabs/lz-evm-protocol-v2/=lib/layerzero-v2/packages/layerzero-v2/evm/protocol/
@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/
ds-test/=lib/layerzero-v2/lib/forge-std/lib/ds-test/src/
erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/
forge-std/=lib/forge-std/src/
halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/
layerzero-v2/=lib/layerzero-v2/
openzeppelin-contracts/=lib/openzeppelin-contracts/
2 changes: 1 addition & 1 deletion script/Counter.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.13;

import {Script, console} from "forge-std/Script.sol";
import {Counter} from "../src/Counter.sol";
import {Counter} from "contracts/Counter.sol";

contract CounterScript is Script {
Counter public counter;
Expand Down
2 changes: 1 addition & 1 deletion test/Counter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.13;

import {Test, console} from "forge-std/Test.sol";
import {Counter} from "../src/Counter.sol";
import {Counter} from "contracts/Counter.sol";

contract CounterTest is Test {
Counter public counter;
Expand Down

0 comments on commit c172bc1

Please sign in to comment.