Skip to content

Commit

Permalink
add foundry to dev/up (#638)
Browse files Browse the repository at this point in the history
* add foundry to dev/up

* fix: installs foundry at the system level

* README.md and dev/up

* Update dev/up

Co-authored-by: tuddman <[email protected]>

---------

Co-authored-by: tuddman <[email protected]>
  • Loading branch information
37ng and tuddman authored Apr 8, 2024
1 parent 1d9e322 commit 4326e61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LibXMTP is a shared library encapsulating the core functionality of the XMTP mes

- Install [Rustup](https://rustup.rs/)
- Install [Docker](https://www.docker.com/get-started/)
- Install [Foundry](https://book.getfoundry.sh/getting-started/installation#using-foundryup)

## Development

Expand Down
7 changes: 7 additions & 0 deletions dev/up
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ if [[ "${OSTYPE}" == "darwin"* ]]; then
fi
if ! kotlinc -version &>/dev/null; then brew install kotlin; fi
if ! swiftformat -version &>/dev/null; then brew install swiftformat; fi
if ! foundryup -version &>/dev/null; then
# install foundry for tests that require mocking blockchain
curl -L https://foundry.paradigm.xyz | bash
# you may need to adjust this depending on which $SHELL you use
source $HOME/.zshenv
foundryup
fi
fi

rustup update
Expand Down

0 comments on commit 4326e61

Please sign in to comment.