dsa-governance/deployments/mainnet_1/PayloadIGP7.json

1 line
63 KiB
JSON
Raw Normal View History

2024-02-12 14:12:52 +00:00
{"metadata":"{\"defaultCompiler\":{\"version\":\"0.7.3\"},\"sources\":{\"contracts/payloads/IGP7/PayloadIGP7.sol\":{\"content\":\"pragma solidity ^0.7.0;\\npragma experimental ABIEncoderV2;\\n\\ninterface IGovernorBravo {\\n function _acceptAdmin() external;\\n function _setVotingDelay(uint newVotingDelay) external;\\n function _setVotingPeriod(uint newVotingPeriod) external;\\n function _acceptAdminOnTimelock() external;\\n function _setImplementation(address implementation_) external;\\n function propose(address[] memory targets, uint[] memory values, string[] memory signatures, bytes[] memory calldatas, string memory description) external returns (uint);\\n function admin() external view returns(address);\\n function pendingAdmin() external view returns(address);\\n function timelock() external view returns(address);\\n function votingDelay() external view returns(uint256);\\n function votingPeriod() external view returns(uint256);\\n}\\n\\ninterface ITimelock {\\n function acceptAdmin() external;\\n function setDelay(uint delay_) external;\\n function setPendingAdmin(address pendingAdmin_) external;\\n function queueTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) external returns (bytes32);\\n function executeTransaction(address target, uint value, string memory signature, bytes memory data, uint eta) external payable returns (bytes memory);\\n function pendingAdmin() external view returns(address);\\n function admin() external view returns(address);\\n function delay() external view returns(uint256);\\n}\\n\\ninterface IInstaIndex {\\n function changeMaster(address _newMaster) external;\\n function updateMaster() external;\\n function master() external view returns(address);\\n}\\n\\ninterface ILite {\\n function setAdmin(address newAdmin) external;\\n function getAdmin() external view returns(address);\\n}\\n\\ninterface IDSAV2 {\\n function cast(\\n string[] memory _targetNames,\\n bytes[] memory _datas,\\n address _origin\\n )\\n external\\n payable \\n returns (bytes32);\\n\\n function isAuth(address user) external view returns (bool);\\n}\\n\\ncontract PayloadIGP7 {\\n uint256 public constant PROPOSAL_ID = 7;\\n\\n address public constant PROPOSER = 0xA45f7bD6A5Ff45D31aaCE6bCD3d426D9328cea01;\\n\\n IGovernorBravo public constant GOVERNOR = IGovernorBravo(0x0204Cd037B2ec03605CFdFe482D8e257C765fA1B);\\n ITimelock public constant OLD_TIMELOCK = ITimelock(0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC);\\n ITimelock public immutable TIMELOCK;\\n address public immutable ADDRESS_THIS;\\n\\n IInstaIndex public constant INSTAINDEX = IInstaIndex(0x2971AdFa57b20E5a416aE5a708A8655A9c74f723);\\n ILite public constant LITE = ILite(0xA0D3707c569ff8C87FA923d3823eC5D81c98Be78);\\n IDSAV2 public constant TREASURY = IDSAV2(0x28849D2b63fA8D361e5fc15cB8aBB13019884d09);\\n\\n uint256 public constant ONE_DAY_TIME_IN_SECONDS = 1 days; // 1 day in seconds. 86400s\\n uint256 public constant ONE_DAY_TIME_IN_BLOCKS = 7_200; // 1 day in blocks. 12s per block\\n uint256 public constant TWO_DAY_TIME_IN_BLOCKS = 14_400; // 2 day in blocks. 12s per block\\n\\n address public immutable GOVERNOR_IMPLEMENTATION_ADDRESS;\\n address public constant TEAM_MULTISIG = 0x4F6F977aCDD1177DCD81aB83074855EcB9C2D49e;\\n\\n constructor (address governor_, address timelock_) {\\n TIMELOCK = ITimelock(address(timelock_)); \\n GOVERNOR_IMPLEMENTATION_ADDRESS = address(governor_);\\n ADDRESS_THIS = address(this);\\n }\\n\\n\\n function propose(string memory description) external {\\n require(msg.sender == PROPOSER, \\\"msg.sender-not-proposer\\\");\\n\\n uint256 totalActions = 8;\\n address[] memory targets = new address[](totalActions);\\n uint256[] memory values = new uint256[](totalActions);\\n string[] memory signatures = new string[](totalActions);\\n bytes[] memory calldatas = new bytes[](tot