Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Nov 7, 2024
1 parent 3c545a9 commit 16ee710
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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=
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,3 +486,16 @@ y: burnedToken
<div style="text-align: center;">
<img src="./images/phaseOneImage.png" alt="フェーズ1" width="80%"/>
</div>

### 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.
2 changes: 1 addition & 1 deletion script/DeployContracts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion script/DeployNft.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 16ee710

Please sign in to comment.