-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from catalystdao/docs
Update in-code documentation & new deployment
- Loading branch information
Showing
61 changed files
with
1,268 additions
and
1,152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule GeneralisedIncentives
updated
65 files
Submodule catalyst-channel-lists
updated
5 files
+1 −1 | package.json | |
+2 −1 | src/config/chainNameToId.json | |
+25 −5 | src/config/chains.json | |
+25 −5 | src/config/chainsConfig.ts | |
+4 −2 | src/config/chainsName.ts |
Submodule openzeppelin-contracts
updated
659 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.19; | ||
|
||
import "forge-std/Script.sol"; | ||
|
||
import { BaseMultiChainDeployer } from "./BaseMultiChainDeployer.s.sol"; | ||
|
||
import { TimelockController } from "openzeppelin-contracts/contracts/governance/TimelockController.sol"; | ||
|
||
contract DeployTimelock is BaseMultiChainDeployer { | ||
|
||
uint256 MIN_DELAY = 1 days; | ||
|
||
function _deployTimelockController(bytes32 salt, uint256 minDelay, address[] memory proposers, address[] memory executors, address admin) internal returns(TimelockController) { | ||
vm.broadcast(); | ||
return new TimelockController{salt: salt}(minDelay, proposers, executors, admin); | ||
} | ||
|
||
function deployTimelockController(bytes32 salt, address initalProposer) public returns(TimelockController) { | ||
address[] memory proposers = new address[](1); | ||
proposers[0] = initalProposer; | ||
address[] memory executors = new address[](1); | ||
executors[0] = address(0); // Let anyone execute. | ||
address admin = address(0); | ||
|
||
return _deployTimelockController(salt, MIN_DELAY, proposers, executors, admin); | ||
} | ||
|
||
function run() public { | ||
bytes32 salt = bytes32(0xe28b85a3a6cd3c7b941c273688ed961305638df07108218fc6e68bcc364e7f37); | ||
address initalProposer = address(0xE759cBa7dE5bF6E024BcbdD01941fc3b1713D2FC); | ||
deployTimelockController(salt, initalProposer); // 0x0000000099263f0735D03bB2787cE8FB84f6ED6E | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"contracts": { | ||
"amplified_mathlib": "0xc090dcdC90178c86CFB643f6ce64aBecD3360247", | ||
"amplified_template": "0x65E17EB8Eb46a7FA97d9E5316893C95D5e84bf35", | ||
"factory": "0x343A85b1e0383A50D65adB5ed88B06cCF4187606", | ||
"volatile_mathlib": "0x33D494F7AC4E506D31F37e3fD75CaE3ca87A3916", | ||
"volatile_template": "0x35D30159b7A9B9098C1048cbe29168EffE7d3D02" | ||
"amplified_mathlib": "0x000000575b0D9cc6ddbd8990db4d845fe480281f", | ||
"amplified_template": "0x000000004aBe0D620b25b8B06B0712BDcff21899", | ||
"factory": "0x00000000E5E81E25aeaD7fCCb4C9560C6b5b718F", | ||
"volatile_mathlib": "0x000000992f6Bd813E0De5C595099C44d67ea28eD", | ||
"volatile_template": "0x0000000003b8C9BFeB9351933CFC301Eea92073F" | ||
}, | ||
"registry": { | ||
"describer": "0x5514d9b55CdCbA70A6aF19Ca1E3443b1abEa104A", | ||
"describer_registry": "0x56dCAa213D0da8dC0eb21ac71fB63EF28D497fd8", | ||
"lens": "0x7E511493d23c0ad9dc1a6137D24BE5aa273773eE" | ||
"describer": "0x3F578971672d5469D28B39ec2b367CbeBF238a11", | ||
"describer_registry": "0x39AcfC1Edd61Eb08fB96523A3b5419B83A603820", | ||
"lens": "0x7363003E709EE4Ce16c32D2DEE8B7616d91D51d5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.