source <(curl -s https://raw.githubusercontent.com/validexisinfra/Agoric/main/upgrademain.sh)
cd $HOME
rm -rf agoric-upgrade-19
git clone https://github.com/Agoric/agoric-sdk.git agoric-upgrade-20
cd agoric-upgrade-20
git checkout agoric-upgrade-20
# Install and build Agoric Javascript packages
yarn install && yarn build
# Install and build Agoric Cosmos SDK support
(cd packages/cosmic-swingset && make)
sudo systemctl restart agoricd && sudo journalctl -fu agoricd -o cat