Skip to content

Commit

Permalink
Better deployent info
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Jul 4, 2024
1 parent cd1f8a9 commit a5e15a4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
27 changes: 27 additions & 0 deletions DEPLOYMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@

## Holesly

### July 4th 2024
Used for internal development, using a different Taiko Bridge address.

```
Chain ID: 17000
Deploying from: 0x424797Ed6d902E17b9180BFcEF452658e148e0Ab
Minting test tokens for the multisig members and the bridge
Factory contract: 0x57B11BfBEEc6935b307abF8a9c8Ce0DE8DB1868C
DAO contract: 0xfCb5AC35C8Ab27c8f6B277a2963e7352f71ca993
Voting token: 0xD2275fEdcE5defbCccA4C29EE058455288248F84
Taiko Bridge: 0x0000000000000000000000000000001234567890
- Multisig plugin: 0x9cBDcae87CBE9bdbb9A882A551F4A3F20D007033
- Emergency multisig plugin: 0x456349f1F6621604536E99dB591EBD94e00d94F6
- Optimistic token voting plugin: 0xF9b68bD4a57281f3Ae8FE9A4600BD516fc7938c5
- Multisig plugin repository: 0xF5625F767D06814Becd2e4d224629dBA589c905E
- Emergency multisig plugin repository: 0x920adce1a42A07E6A167A39a94194739e7602e55
- Optimistic token voting plugin repository: 0xd26d960b2BbfD0efcC16659f804A636c6B46bBce
Helpers:
- Public key registry 0x71D886c82694828f223136d6db18A3603ed8110e
- Delegation wall 0xdeb0377b711DbA11d4f6B90EC2153256B8E17fd8
```

### July 3rd 2024
Used for internal development.

Expand Down
20 changes: 12 additions & 8 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ contract Deploy is Script {
);

console.log("Chain ID:", block.chainid);
console.log("");
console.log("Deploying from:", vm.addr(vm.envUint("DEPLOYMENT_PRIVATE_KEY")));

TaikoDaoFactory.DeploymentSettings memory settings;
Expand All @@ -50,30 +49,37 @@ contract Deploy is Script {
settings = getTestnetSettings();
}

console.log("");

TaikoDaoFactory factory = new TaikoDaoFactory(settings);
factory.deployOnce();
TaikoDaoFactory.Deployment memory deployment = factory.getDeployment();

vm.stopBroadcast();

// Print summary
console.log("Factory contract:", address(factory));
console.log("Factory:", address(factory));
console.log("");
console.log("DAO contract:", address(deployment.dao));
console.log("DAO:", address(deployment.dao));
console.log("Voting token:", address(settings.tokenAddress));
console.log("Taiko Bridge:", settings.taikoBridgeAddress);
console.log("");

console.log("Plugins");
console.log("- Multisig plugin:", address(deployment.multisigPlugin));
console.log("- Emergency multisig plugin:", address(deployment.emergencyMultisigPlugin));
console.log("- Optimistic token voting plugin:", address(deployment.optimisticTokenVotingPlugin));
console.log("");

console.log("Plugin repositories");
console.log("- Multisig plugin repository:", address(deployment.multisigPluginRepo));
console.log("- Emergency multisig plugin repository:", address(deployment.emergencyMultisigPluginRepo));
console.log("- Optimistic token voting plugin repository:", address(deployment.optimisticTokenVotingPluginRepo));
console.log("");

console.log("Public key registry", address(deployment.publicKeyRegistry));
console.log("Delegation wall", address(deployment.delegationWall));
console.log("Helpers");
console.log("- Public key registry", address(deployment.publicKeyRegistry));
console.log("- Delegation wall", address(deployment.delegationWall));
}

function getMainnetSettings() internal view returns (TaikoDaoFactory.DeploymentSettings memory settings) {
Expand Down Expand Up @@ -107,12 +113,10 @@ contract Deploy is Script {
}

function getTestnetSettings() internal returns (TaikoDaoFactory.DeploymentSettings memory settings) {
address taikoBridgeAddress = vm.addr(vm.envUint("DEPLOYMENT_PRIVATE_KEY")); // Using the deployment wallet for test
address taikoBridgeAddress = address(0x1234567890);
address[] memory multisigMembers = readMultisigMembers();
address votingToken = createTestToken(multisigMembers, taikoBridgeAddress);

console.log("Test voting token:", votingToken);

settings = TaikoDaoFactory.DeploymentSettings({
// Taiko contract settings
tokenAddress: IVotesUpgradeable(votingToken),
Expand Down

0 comments on commit a5e15a4

Please sign in to comment.