From 16ee71048d4543f314484e42167f39ac7a0e9e3f Mon Sep 17 00:00:00 2001 From: thurendous Date: Thu, 7 Nov 2024 21:07:29 +0900 Subject: [PATCH] minor change --- .env.example | 3 ++- README.md | 13 +++++++++++++ script/DeployContracts.s.sol | 2 +- script/DeployNft.s.sol | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index f7a1a26..093b9f7 100644 --- a/.env.example +++ b/.env.example @@ -6,4 +6,5 @@ BASE_SEPOLIA_RPC_URL= BASE_MAINNET_RPC_URL= SEPOLIA_RPC_URL= -OPENZEPPELIN_DEFENDER_ADDR= +TESTNET_OPENZEPPELIN_DEFENDER_ADDR= +MAINNET_OPENZEPPELIN_DEFENDER_ADDR= diff --git a/README.md b/README.md index 085b762..7e434ca 100644 --- a/README.md +++ b/README.md @@ -486,3 +486,16 @@ y: burnedToken
フェーズ1
+ +### Some more notes for the deployment + +- When setting up the system, we need to: + + - Deploy the contracts. + - Set up the defender. + - Mint enough token for defender. The default minting amount is 0 after the deployment. + - Make the defender approve the amount needed for the contracts to use. + +- When doing the deployment, we need to set the name and symbol of the utility token. +- The name and symbol of the gov token is fixed. +- The default admin of the contracts is the deployer himself. diff --git a/script/DeployContracts.s.sol b/script/DeployContracts.s.sol index b39c6ae..d8397bd 100644 --- a/script/DeployContracts.s.sol +++ b/script/DeployContracts.s.sol @@ -149,7 +149,7 @@ contract DeployContracts is Script { manager = deployer; exchanger = deployer; upgrader = deployer; - defender = vm.envAddress("OPENZEPPELIN_DEFENDER_ADDR"); + defender = vm.envAddress("TESTNET_OPENZEPPELIN_DEFENDER_ADDR"); vm.startBroadcast(privateKey); // deploy the utility token using the OpenZeppelin Upgrades library diff --git a/script/DeployNft.s.sol b/script/DeployNft.s.sol index 6892959..62d579f 100644 --- a/script/DeployNft.s.sol +++ b/script/DeployNft.s.sol @@ -7,7 +7,7 @@ import {AmbassadorNft} from "src/AmbassadorNft.sol"; contract DeployNft is Script { function run() public { - address defender = vm.envAddress("OPENZEPPELIN_DEFENDER_ADDR"); + address defender = vm.envAddress("TESTNET_OPENZEPPELIN_DEFENDER_ADDR"); uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY_DEPLOYER"); address deployer = vm.addr(deployerPrivateKey); address admin = deployer;