Skip to content

Commit

Permalink
Cleanup forge remappings (#11301)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-chrzan authored Dec 20, 2024
1 parent dcaf00b commit 9ba5596
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
17 changes: 0 additions & 17 deletions packages/protocol/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@ src = 'contracts-0.8'
out = 'out'
test = 'test-sol'
libs = ['lib', 'node_modules']
remappings = [
'@celo-contracts/=contracts/',
'@celo-contracts-8=contracts-0.8/',
'@mento-core/=lib/mento-core',
'openzeppelin-solidity/=lib/openzeppelin-contracts/',
'@openzeppelin/contracts8/=lib/openzeppelin-contracts8/contracts/',
'celo-foundry/=lib/celo-foundry/src/',
'celo-foundry-8/=lib/celo-foundry-8/src/',
'@test-sol/=test-sol/',
'@migrations-sol/=migrations_sol/',
'forge-std/=lib/celo-foundry/lib/forge-std/src/',
'forge-std-8/=lib/celo-foundry-8/lib/forge-std/src/',
'@summa-tx/memview.sol/=lib/memview.sol',
'solidity-bytes-utils/=lib/solidity-bytes-utils/',
'solidity-bytes-utils-8/=lib/solidity-bytes-utils-8/',
'ds-test/=lib/celo-foundry/lib/forge-std/lib/ds-test/src/',
]

no_match_test = "skip"

Expand Down
15 changes: 15 additions & 0 deletions packages/protocol/remappings.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
@celo-contracts=contracts/
@celo-contracts-8=contracts-0.8/
@test-sol=test-sol
@migrations-sol/=migrations_sol/

@lib=lib

celo-foundry/=lib/celo-foundry/src/
celo-foundry-8/=lib/celo-foundry-8/src/
ds-test/=lib/celo-foundry/lib/forge-std/lib/ds-test/src/
forge-std/=lib/celo-foundry/lib/forge-std/src/
forge-std-8/=lib/celo-foundry-8/lib/forge-std/src/

@mento-core/=lib/mento-core
openzeppelin-solidity/=lib/openzeppelin-contracts/
@openzeppelin/contracts8/=lib/openzeppelin-contracts8/contracts/
@summa-tx/memview.sol/=lib/memview.sol
solidity-bytes-utils/=lib/solidity-bytes-utils/
solidity-bytes-utils-8/=lib/solidity-bytes-utils-8/
3 changes: 2 additions & 1 deletion packages/protocol/scripts/foundry/deploy_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ for LIB_PATH in "${LIBRARY_DEPENDENCIES_PATH[@]}"; do
cp $SOURCE_DIR/$LIB_PATH $DEST_DIR/$LIB_PATH
done

# Copy foundry config to the temporary directory
# Copy foundry config and remappings to the temporary directory
cp $SOURCE_DIR/foundry.toml $DEST_DIR/foundry.toml
cp $SOURCE_DIR/remappings.txt $DEST_DIR/remappings.txt

# Move into the temporary directory
pushd $TEMP_DIR
Expand Down
8 changes: 0 additions & 8 deletions remappings.txt

This file was deleted.

0 comments on commit 9ba5596

Please sign in to comment.