*/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.example
to.env
cp .env.example .envrc
- Add a value for the
PRIVATE_KEY
env var from the output of your localAnvil
chain. You will also need to set an absolute path to this repo forFOUNDRY
- Add the
.env
vars to your$PATH
or setup direnv to handle.env
files - You should now be able to run the scripts in
script/sh