diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-17 14:38:42 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-17 15:16:33 +0800 |
commit | b16d53c29a118a3a68a973f4d0cf47dd209e179a (patch) | |
tree | b5557369b89452326536abd16ab651ccfe24a70e | |
parent | 3d70a27f19664113f8c3c7f8cd1cdceac9b22f18 (diff) | |
download | tangerine-governance-abi-b16d53c29a118a3a68a973f4d0cf47dd209e179a.tar tangerine-governance-abi-b16d53c29a118a3a68a973f4d0cf47dd209e179a.tar.gz tangerine-governance-abi-b16d53c29a118a3a68a973f4d0cf47dd209e179a.tar.bz2 tangerine-governance-abi-b16d53c29a118a3a68a973f4d0cf47dd209e179a.tar.lz tangerine-governance-abi-b16d53c29a118a3a68a973f4d0cf47dd209e179a.tar.xz tangerine-governance-abi-b16d53c29a118a3a68a973f4d0cf47dd209e179a.tar.zst tangerine-governance-abi-b16d53c29a118a3a68a973f4d0cf47dd209e179a.zip |
contracts: group methods by functions
-rw-r--r-- | contracts/Governance.sol | 75 |
1 files changed, 42 insertions, 33 deletions
diff --git a/contracts/Governance.sol b/contracts/Governance.sol index 0639077..d33dd64 100644 --- a/contracts/Governance.sol +++ b/contracts/Governance.sol @@ -164,6 +164,10 @@ contract Governance { event FinePaid(address indexed NodeAddress, uint256 Amount); event DKGReset(uint256 indexed Round, uint256 BlockHeight); + // --------- + // Protocol. + // --------- + // transferOwnership(newOwner) function transferOwnership(address NewOwner) public onlyOwner { } @@ -184,22 +188,6 @@ contract Governance { public onlyOwner { } - // transferNodeOwnership(newOwner) - function transferNodeOwnership(address NewOwner) public { - } - - // transferNodeOwnershipByFoundation(oldOwner, newOwner) - function transferNodeOwnershipByFoundation(address OldOwner, address NewOwner) public { - } - - // Return number of nodes. - function nodesLength() view public returns (uint256) { - } - - // ProposeCRS(round, signedCRS) - function proposeCRS(uint256 Round, bytes memory SignedCRS) public { - } - // AddDKGComplaint(complaint) function addDKGComplaint(bytes memory Complaint) public { } @@ -220,6 +208,31 @@ contract Governance { function addDKGSuccess(bytes memory Success) public { } + // PayFine(node) + function payFine(address NodeAddress) public payable { + } + + // Return number of nodes. + function nodesLength() view public returns (uint256) { + } + + // ProposeCRS(round, signedCRS) + function proposeCRS(uint256 Round, bytes memory SignedCRS) public { + } + + // Report(enum type, bytes[] payloads) + function report(uint256 Type, bytes memory Arg1, bytes memory Arg2) public { + } + + // ResetDKG(newSignedCRS) + function resetDKG(bytes memory NewSignedCRS) public { + } + + + // ------------------------ + // Node Related operations. + // ------------------------ + // Register(public_key, name, email, location, url) function register(bytes memory PublicKey, string memory Name, string memory Email, string memory Location, @@ -230,36 +243,32 @@ contract Governance { function replaceNodePublicKey(bytes memory NewPublicKey) public { } - // UpdateNodeInfo(name, email, location, url) - function updateNodeInfo(string memory Name, string memory Email, - string memory Location, string memory Url) public { - } - // Stake() function stake() public payable { } - // Unstake() - function unstake(uint256 Amount) public { + // transferNodeOwnership(newOwner) + function transferNodeOwnership(address NewOwner) public { } - // Withdraw() - function withdraw() public { + // transferNodeOwnershipByFoundation(oldOwner, newOwner) + function transferNodeOwnershipByFoundation(address OldOwner, address NewOwner) public { } - // Withdrawable() - function withdrawable() public view returns (bool) { + // Unstake() + function unstake(uint256 Amount) public { } - // PayFine(node) - function payFine(address NodeAddress) public payable { + // UpdateNodeInfo(name, email, location, url) + function updateNodeInfo(string memory Name, string memory Email, + string memory Location, string memory Url) public { } - // Report(enum type, bytes[] payloads) - function report(uint256 Type, bytes memory Arg1, bytes memory Arg2) public { + // Withdraw() + function withdraw() public { } - // ResetDKG(newSignedCRS) - function resetDKG(bytes memory NewSignedCRS) public { + // Withdrawable() + function withdrawable() public view returns (bool) { } } |