#!/usr/bin/env bash

# omarchy:summary=Install Foundry, the Solidity toolchain
# omarchy:requires-sudo=true

# Based: forge, cast, anvil and chisel through asdf's foundry plugin.

set -eo pipefail

asdf_data=${ASDF_DATA_DIR:-$HOME/.asdf}
omarchy-pkg-add asdf
export PATH="$asdf_data/shims:$PATH"

echo -e "Installing Foundry...\n"
omarchy-dev-env-tool foundry
