This checklist is seen as a guide to deploy the stack to a new chain.
- Verify that the deployers wallet has enough funds.
- Check that the subgraph hoster supports the network OSx is deployed to.
- Make sure you are using Node v16
- Bump the OSx protocol version in the
ProtocolVersion.sol
file. - Check that version tags are set correctly in the plugin repo deploy scripts
packages/contracts/deploy/new/30_plugins/10_plugin-repos
to ensure synchronized version numbers across all supported networks. - Choose an ENS domain for DAOs
- Choose an ENS domain for plugins
- Check if there is an official ENS deployment for the chosen chain and if yes:
- Check if there is already an entry for it in
packages/contracts/deploy/helpers.ts
- Check that the owner of the DAO domain is the deployer
- Check that the owner of the plugin domain is the deployer
- Check if there is already an entry for it in
- Run
yarn
in the repository root to install the dependencies - Run
yarn build
inpackages/contracts
to make sure the contracts compile- Check that the compiler version in
hardhat.config.ts
is set to at least0.8.17
and on the known solidity bugs page that no relevant vulnerabilities exist that are fixed in later versions. If the latter is not the case, consider updating the compiler pragmas to a safe version and rolling out fixes for affected contracts.
- Check that the compiler version in
- Run
yarn test
inpackages/contracts
to make sure the contract tests succeed - Run
yarn deploy --deploy-scripts deploy/new --network hardhat --reset
to make sure the deploy scripts work - Set
ETH_KEY
in.env
to the deployers private key - Set the right API key for the chains blockchain explorer in
.env
(e.g. for mainnet it isETHERSCAN_KEY
) - Set the chosen DAO ENS domain (in step 1) to
NETWORK_DAO_ENS_DOMAIN
in.env
and replaceNETWORK
with the correct network name (e.g. for mainnet it isMAINNET_DAO_ENS_DOMAIN
) - Set the chosen Plugin ENS domain (in step 2) to
NETWORK_PLUGIN_ENS_DOMAIN
in.env
and replaceNETWORK
with the correct network name (e.g. for mainnet it isMAINNET_PLUGIN_ENS_DOMAIN
) - Set the subdomain to be used of the managing DAO to
MANAGINGDAO_SUBDOMAIN
in.env
. If you want to usemanagement.dao.eth
put onlymanagement
- Set the multisig members of the managing DAO as a comma (
,
) separated list toMANAGINGDAO_MULTISIG_APPROVERS
in.env
- Set the amount of minimum approvals the managing DAO needs to
MANAGINGDAO_MULTISIG_MINAPPROVALS
in.env
To deploy run yarn deploy --network NETWORK
in packages/contracts
and replace NETWORK
with the correct network name (e.g. for mainnet it is yarn deploy --network mainnet
)
- Take the addresses from this file
packages/contracts/deployed_contracts.json
- Update
active_contracts.json
with the new deployed addresses - Update
packages/contracts/Releases.md
with the new deployed addresses - Add the managing DAOs' multisig address to
packages/contracts/.env.example
in the format{NETWORK}_MANAGINGDAO_MULTISIG
- Take the addresses from this file
packages/contracts/deployed_contracts.json
- Wait for the deployment script finishing verification
- Go to the blockchain explorer and verify that each address is verified
- If it is not try to verfiy it with
npx hardhat verify --network NETWORK ADDRESS CONTRUCTOR-ARGS
. More infos on how to use this command can be found here: https://hardhat.org/hardhat-runner/docs/guides/verifying - If it is a proxy try to activate the blockchain explorer's proxy feature
- If the proxies are not verified with the
Similar Match Source Code
feature- Verify one of the proxies
- Check if the other proxies are now verified with
Similar Match Source Code
- If it is a
PluginSetup
, check that the implementation is verified.
- If it is not try to verfiy it with
- Check that all managing DAO signers are members of the managing DAO multisig and no one else.
- Check if the managing DAO is set in the
DAO_ENSSubdomainRegistrar
- Check if the managing DAO is set in the
Plugin_ENSSubdomainRegistrar
- Check if the managing DAO is set in the
DAORegistry
- Check if the
DAO_ENSSubdomainRegistrar
is set in theDAORegistry
- Check if the managing DAO set in the
PluginRepoRegistry
- Check if the
Plugin_ENSSubdomainRegistrar
is set in thePluginRepoRegistry
- Check if the
PluginRepoRegistry
is set in thePluginRepoFactory
- Check if the
PluginRepoRegistry
is set in thePluginSetupProcessor
- Check if the
DAORegistry
is set in theDAOFactory
- Check if the
PluginSetupProcessor
is set in theDAOFactory
- Check that the versions (and eventual
PlaceholderSetup
builds) are published correctly in thetoken-voting-repo
,address-list-voting-repo
,multisig-repo
, andadmin-repo
and are synchronized across all supported networks.
- Check that the deployer has not the ROOT permission on the managing DAO
- Check if
DAO_ENSSubdomainRegistrar
is approved for all for the DAO' ENS domain. CallisApprovedForAll
on the ENS registry with the managing DAO as the owner and theDAO_ENSSubdomainRegistrar
as the operator. - Check if
Plugin_ENSSubdomainRegistrar
is approved for all for the plugin' ENS domain. CallisApprovedForAll
on the ENS registry with the managing DAO as the owner and thePlugin_ENSSubdomainRegistrar
as the operator. - Check if the
DAORegistry
hasREGISTER_ENS_SUBDOMAIN_PERMISSION
onDAO_ENSSubdomainRegistrar
- Check if the
PluginRepoRegistry
hasREGISTER_ENS_SUBDOMAIN_PERMISSION
onPlugin_ENSSubdomainRegistrar
- Check if the
DAOFactory
hasREGISTER_DAO_PERMISSION
onDAORegistry
- Check if the
PluginRepoFactory
hasREGISTER_PLUGIN_REPO_PERMISSION
onPluginRepoRegistry
- Publish a new version of
@aragon/osx-artifacts
(./packages/contracts
) to NPM - Publish a new version of
@aragon/osx
(./packages/contracts/src
) to NPM - Publish a new version of
@aragon/osx-ethers
(./packages/contracts-ethers
) to NPM - Update the changelog with the new version
- Update
packages/subgraph/manifest/data/NETWORK.json
whereNETWORK
is replaced with the deployed network with the new contract addresses. If the file doesn't exist create a new one. - Update the version in
packages/subgraph/package.json
- Update
packages/subgraph/.env
with the correct values- set
NETWORK_NAME
to the deployed network - set
SUBGRAPH_NAME
toosx
- set
GRAPH_KEY
with the value obtained from the Satsuma Dashboard - set the
SUBGRAPH_VERSION
to the same value as inpackages/subgraph/package.json
- set
- Run
yarn manifest
inpackages/subgraph
to generate the manifest - Run
yarn build
inpackages/subgraph
to build the subgraph - Run
yarn test
inpackages/subgraph
to test the subgraph - Run
yarn deploy
inpackages/subgraph
to deploy the subgraph - Test the new deployed subgraph with the frontend team
- Promote the new subgraph to live in the Satsuma Dashboard
- Changing the owner of the chosen ENS domains will also revoke the permissions of the
DAO_ENSSubdomainRegistrar
andPlugin_ENSSubdomainRegistrar
. Therefore if the ownership gets transfered, restore the approval for these 2 contracts.