Simple shell scripts to deploy the core Rhinestone infrastructure. All deployments are permissionless so anyone can use these scripts. Available scripts include:
core-infra.sh
: deploys the core infra including Registry and Attestersafe7579.sh
: deploys the Safe7579 Adapter and Launchpadcore-modules.sh
: deploys all the core modules including smart sessionstestnets.sh
: deploys the testnet infra (note: this should only be done on testnets to avoid errors and security issues)misc.sh
: deploys various miscellaneous contracts
- Add a
.env
file based on.env.example
- Run
source .env
to set the env variables (note that theexport
command in the env is required so the env variables should beexport ENV=ENV_VALUE
) - Run
chmod +x ./core-infra.sh
or for the relevant script - Run
./core-infra.sh NETWORK
or for the relevant script, if one or multiple networks aren't supplied then this will run against all networks innetworks.txt
All our contract deployments are permissionless and can be done by anyone. However, some initialization actions need to be made and are security critical, so these need to be made by us. Our process is as follows:
- Deploy core infra
- Deploy safe7579
- On testnets only: deploy testnet contracts
- Register schema and resolver on Registry [Rhinestone-only action]
- Deploy core modules
- Attest to core modules [Rhinestone-only action]
- On testnets only: upgrade schema and resolver for mock attester [Rhinestone-only action]