Hardhat script to upgrade a Gardens to a Commons DAO.
The script uses the EVMcrispr to encode an EVM script that does the following:
- Install an Agent app that will act as the ABC (Augmented Bonding Curve) reserve.
- Install the Augmented Bonding Curve app.
- Install a Migration Tools app that will be used to migrate the Hatch tokens.
- Set and configure the Migration Tools' and ABC's permissions.
- Revoke the Issuance's permissions as the ABC will be used instead.
- Add a collateral token to the ABC.
-
Set the signer account by creating a
mnemonic.txt
file on the root project directory containing the account's seed phrase. -
Configure the parameters on the
params.json
file. -
Execute the script by running one of the following commands:
yarn run commons-upgrade yarn run migration yarn run token-claiming yarn run abc-opening