Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(foundry): 100% migration from dapptools #311

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sambacha
Copy link

@sambacha sambacha commented May 7, 2022

prereqs

Foundry - foundry.toml is configured to use the existing structure for tests/etc
Justfile - this replaces Makefile, dotenv and bash scripts for test running/etc

updated

ds-test/test.sol git submodule was removed (redundant as their is a copy in test/dapp_test/lib/ds-test)

note you may have to manually update your .git/modules dir

usage

run the just command and you see recipes

$ just
just --list
Available recipes:
    build                     # Build Output
    build-mainnet             # [TEST] mainnet test
    forge-gas-snapshot        # [GAS] get gas snapshot timer
    forge-gas-snapshot-diff
    gas-snapshot              # [GAS] default gas snapshot script
    gas-snapshot-local        # [GAS] get gas snapshot from local tests and save it to file
    size                      # Contract Size
    test                      # [TEST] default test scripts
    test-debug *commands=""   # [TEST] run mainnet fork forge debug tests (all files with the extension .t.sol)
    test-local *commands=""   # [TEST] run local forge test using --match-path <PATTERN>
    test-mainnet *commands="" # [TEST] run mainnet fork forge tests (all files with the extension .t.sol)

@sambacha sambacha mentioned this pull request May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant