*/10 * * * * (export PATH="$PATH:/root/.foundry/bin"; /usr/bin/timeout 420 direnv exec /root/sec-alliance-sims sh /root/sec-alliance-sims/script/sh/marketBehavior.sh > /root/logs/`date +\%Y\%m\%d\%H\%M\%S`-cron.log 2>&1)
- Clone the repo with
git clone. Pull git submodules withgit submodule init && git submodule update. - Install Foundry if you haven't already.
curl -L https://foundry.paradigm.xyz | bash - Use Anvil to run a simulated fork of eth mainnet
- Copy
.env.exampleto.envcp .env.example .envrc - Add a value for the
PRIVATE_KEYenv var from the output of your localAnvilchain. You will also need to set an absolute path to this repo forFOUNDRY - Add the
.envvars to your$PATHor setup direnv to handle.envfiles - You should now be able to run the scripts in
script/sh