-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of the Stake table contract (register function) #769
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General comment:
all variables/struct/event, all functions (including those defined in IStakeTable.sol
, except constructor
) should add code doc.
note that @notice
is the general doc, @dev
is dev-specific info, I noticed that sometimes we misuse the latter for the former. When in doubt, consult NatSpec.
Done in ce1ebbf .
Should not we have a different file for each important Stake table contract function like register, deposit etc ...?
Yes, added a TODO in the ticket #737. |
Done in 3c97955. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test code looks so much better and idiosyncratic! it's very easy to read them!! 👍
I left some comments to improve the quality and coverage of the logic that I believe can make our future contract auditor happier.
this depends on preferences as the best practice guides (1st point here) says:
So I guess it depends, we can split the file when it's getting big. but for now, for easier location, just keep it in |
Sounds good, let us try with a single file for now. |
Co-authored-by: tbro <[email protected]>
Part of #737.
Implements the register function of the Stake Table contract.
To test: