Skip to content

Commit 36c67ce

Browse files
committed
feat: Final release with TransactionManager, PoS and StakingManager.
1 parent c57c456 commit 36c67ce

File tree

11 files changed

+1689
-935
lines changed

11 files changed

+1689
-935
lines changed

README.md

Lines changed: 284 additions & 540 deletions
Large diffs are not rendered by default.

src/TransactionManager.sol

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ contract TransactionManager is ReentrancyGuard {
9393
return proposalId;
9494
}
9595

96-
function updateProposalStatus(
97-
bytes32 proposalId,
98-
IConsensus.ProposalStatus newStatus
99-
) external onlyConsensus {
96+
function updateProposalStatus(bytes32 proposalId, IConsensus.ProposalStatus newStatus) external onlyConsensus {
10097
Proposal storage proposal = proposals[proposalId];
10198
if (bytes(proposal.transaction).length == 0) revert ProposalNotFound();
10299
proposal.status = newStatus;
@@ -118,22 +115,11 @@ contract TransactionManager is ReentrancyGuard {
118115
)
119116
external
120117
view
121-
returns (
122-
string memory transaction,
123-
address proposer,
124-
uint256 blockNumber,
125-
IConsensus.ProposalStatus status
126-
)
118+
returns (string memory transaction, address proposer, uint256 blockNumber, IConsensus.ProposalStatus status)
127119
{
128120
Proposal storage proposal = proposals[proposalId];
129121

130-
131-
return (
132-
proposal.transaction,
133-
proposal.proposer,
134-
proposal.blockNumber,
135-
proposal.status
136-
);
122+
return (proposal.transaction, proposal.proposer, proposal.blockNumber, proposal.status);
137123
}
138124

139125
/**
@@ -215,7 +201,7 @@ contract TransactionManager is ReentrancyGuard {
215201
Proposal storage proposal = proposals[proposalId];
216202
if (bytes(proposal.transaction).length == 0) revert ProposalNotFound();
217203

218-
return proposal.status;
204+
return proposal.status;
219205
}
220206

221207
/**
@@ -227,7 +213,7 @@ contract TransactionManager is ReentrancyGuard {
227213
}
228214

229215
/**
230-
* @dev Get proposal block number
216+
* @dev Get proposal block number
231217
* @param proposalId Proposal identifier
232218
* @return blockNumber Block number when proposal was submitted
233219
*/

0 commit comments

Comments
 (0)