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

[UNTRACKED] upgrade foundry version #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions setup-evm-contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

source versions.sh
echo "Deploying evm-cctp-contracts contracts"

FOUNDRY_SHORT_VERSION=$(echo ${FOUNDRY_VERSION} | cut -d '-' -f2 | cut -c1-7)

# Check if foundry is installed
if ! ~/.foundry/bin/forge -V; then
curl -L https://foundry.paradigm.xyz | bash
# 07-14-2023 - The version following this version breaks our build, so setting to this version for now.
~/.foundry/bin/foundryup --version nightly-d369d2486f85576eec4ca41d277391dfdae21ba7
if [ ! -x ~/.foundry/bin/forge ] || ! ~/.foundry/bin/forge --version | grep ${FOUNDRY_SHORT_VERSION} ; then
curl -L https://foundry.paradigm.xyz | bash
~/.foundry/bin/foundryup --install ${FOUNDRY_VERSION}
fi

cd evm-cctp-contracts
Expand All @@ -33,7 +35,7 @@ git submodule update --init --recursive
yarn install

# Build the anvil image
docker build --no-cache -f Dockerfile -t foundry .
docker build --no-cache --platform linux/amd64 --file Dockerfile --tag foundry --build-arg FOUNDRY_VERSION=${FOUNDRY_VERSION} .

# Create the anvil container
docker rm -f anvil || true
Expand Down Expand Up @@ -77,8 +79,7 @@ export DOMAIN=0
~/.foundry/bin/forge script ../scripts/evm-scripts/cctp_deploy.s.sol:DeployScript --rpc-url $RPC_URL_ETH --sender $SENDER --broadcast
mkdir cctp-interfaces
cp -R ./out/* ./cctp-interfaces
~/.foundry/bin/forge script ../scripts/evm-scripts/usdc_deploy.s.sol:USDCDeployScript --rpc-url $RPC_URL_ETH --sender $SENDER --broadcast --force --use 0.6.12
~/.foundry/bin/forge script ../scripts/evm-scripts/usdc_deploy.s.sol:USDCDeployScript --rpc-url $RPC_URL_ETH --sender $SENDER --broadcast
mkdir usdc-interfaces
cp -R ./out/* ./usdc-interfaces

cd ..
5 changes: 3 additions & 2 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

export SUI_VERSION=mainnet-v1.30.1
export SUI_VERSION_NUM=1.30.1
export SUI_VERSION=mainnet-v1.37.3
export FOUNDRY_VERSION=nightly-5a8bd893eeeeb9489ea66dd52a02eeaa580e3af0