From 1fe4936be2732198bea093d89b390362da4ff274 Mon Sep 17 00:00:00 2001 From: Benjamin Bollen Date: Sat, 12 Oct 2024 17:23:17 +0100 Subject: [PATCH] (version): rc-v1.0.0-beta, and update deployment instructions in Readme --- README.md | 94 +++++++++++++++++++++++++++++++-- script/deployments/package.json | 2 +- 2 files changed, 90 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7ef7387..e2c9aff 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ For more details on Circles and details of the implementation please refer to [h ## Getting Started -🐲 **Beta Status**: This repository is in beta and actively developed in the open. While initial reviews are on-going, we welcome community engagement for wider testing and integration. As AGPL-licensed software, it's provided as-is. We encourage thorough review and testing before any production use. +🐲 **Beta Status**: This repository is in beta and actively developed in the open. Initial reviews have been completed, we welcome community engagement for wider testing and integration. As AGPL-licensed software, it's provided as-is. We encourage thorough review and testing before any production use. ### Prerequisites @@ -56,16 +56,91 @@ For more details on Circles and details of the implementation please refer to [h ```bash forge test --gas-report ``` + ### Deployment -To deploy to the Chiado testnet: +#### To deploy to the Chiado testnet: -1. Copy `.env.example` to `.env` and set your private key and API keys. +1. Copy `.env.example` to `.env` and set your (Chiado) private key and (Blockscout) API keys. 2. Run the deployment script: ```bash ./script/deployments/chiadoDeploy.sh ``` +#### To deploy to Gnosis Chain mainnet: + +1. **Checkout out the release candidate `rc-v1.0.0-beta`** + ``` + git checkout rc-v1.0.0-beta + ``` +2. Copy `.env.example` to `.env` and set your private key; in particular for deployment the script only requires a private key for a deployer address on Gnosis Chain (with minimal funding, deployment costs are far less than 1 XDAI): + ``` + PRIVATE_KEY_GNOSIS='YOUR_PRIVATE_KEY' + ``` +3. Run the mainnet deployment script: + ``` + cd script/deployments + ./gnosisChainDeploy.sh + ``` + Forge SHOULD auto-configure the build parameters from the foundry.toml file, + but for clarity on a deterministic build, we require the following build parameters: + - solc compiler version: v0.8.24+commit.e11b9ed9 + - optimization enabled: Yes + - Optimizer runs: 200 + - EVM version: cancun + - License: GNU AGPLv3 + + Note that the production deployment script waits 20 seconds between each deployment, + so feel free to go stretch your legs. + +4. The deploy script will create a folder locally on your machine: + ``` + /script/deployments/gnosischain-rc-1.0.0-beta---