From 3c5d00e1a7d5b84a1a1689b736a9e8af88ef6f61 Mon Sep 17 00:00:00 2001 From: yoduyodu Date: Mon, 8 Apr 2024 13:18:40 -0700 Subject: [PATCH 1/4] add foundry to dev/up --- dev/up | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev/up b/dev/up index 217727f0f..ad0e3881d 100755 --- a/dev/up +++ b/dev/up @@ -16,5 +16,11 @@ fi rustup update +# install foundry for tests that require mocking blockchain +curl -L https://foundry.paradigm.xyz | bash +source ~/.zshenv +source ~/.bashrc +foundryup + dev/build_validation_service_local dev/docker/up From 87d29d51c83f61ac89e79603bfda00b300a085d4 Mon Sep 17 00:00:00 2001 From: tuddman Date: Mon, 8 Apr 2024 22:47:10 +0200 Subject: [PATCH 2/4] fix: installs foundry at the system level --- dev/up | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dev/up b/dev/up index ad0e3881d..9e52c1637 100755 --- a/dev/up +++ b/dev/up @@ -12,15 +12,18 @@ 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 made need to adjust this depending on which $SHELL you use + source $HOME/.zshenv + foundryup + fi fi rustup update -# install foundry for tests that require mocking blockchain -curl -L https://foundry.paradigm.xyz | bash -source ~/.zshenv -source ~/.bashrc -foundryup + dev/build_validation_service_local dev/docker/up From 4b8ea61e90203d5cef0b19ac061d03f0d102053a Mon Sep 17 00:00:00 2001 From: yoduyodu Date: Mon, 8 Apr 2024 14:13:43 -0700 Subject: [PATCH 3/4] README.md and dev/up --- README.md | 1 + dev/up | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5450e9623..eaf3fc032 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/dev/up b/dev/up index 9e52c1637..ba0a42c6c 100755 --- a/dev/up +++ b/dev/up @@ -23,7 +23,5 @@ fi rustup update - - dev/build_validation_service_local dev/docker/up From a4f0431c8d44f32f033a16234a2c0a6f9546c97e Mon Sep 17 00:00:00 2001 From: 37ng Date: Mon, 8 Apr 2024 14:14:31 -0700 Subject: [PATCH 4/4] Update dev/up Co-authored-by: tuddman --- dev/up | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/up b/dev/up index ba0a42c6c..7af7bf3d7 100755 --- a/dev/up +++ b/dev/up @@ -15,7 +15,7 @@ if [[ "${OSTYPE}" == "darwin"* ]]; then if ! foundryup -version &>/dev/null; then # install foundry for tests that require mocking blockchain curl -L https://foundry.paradigm.xyz | bash - # you made need to adjust this depending on which $SHELL you use + # you may need to adjust this depending on which $SHELL you use source $HOME/.zshenv foundryup fi