Skip to content
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

Add staking functions and tests #26

Merged
merged 21 commits into from
Jun 20, 2024

Conversation

marc-aurele-besner
Copy link
Member

Add staking functions and tests

This PR adds staking functionality to the SDK + tests for them

unlockFunds tests are missing as currently the 2 days lock make testing impossible

Copy link
Contributor

@abhi3700 abhi3700 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for the commented tests which can be pushed in a separate PR or that's completed in this PR.

@marc-aurele-besner
Copy link
Member Author

LGTM except for the commented tests which can be pushed in a separate PR or that's completed in this PR.

Yes so like I mention in the PR, atm these functions are not really testable due to the lock time hardcoded.
So I wonder if it's better to simply remove the tests, or if there is plan to make it a value that can be control via sudo, then the test could be used...

@abhi3700
Copy link
Contributor

LGTM except for the commented tests which can be pushed in a separate PR or that's completed in this PR.

Yes so like I mention in the PR, atm these functions are not really testable due to the lock time hardcoded. So I wonder if it's better to simply remove the tests, or if there is plan to make it a value that can be control via sudo, then the test could be used...

IMO, let's remove this then & add to a new PR.

@marc-aurele-besner marc-aurele-besner added auto-consensus Anything related to Auto-Consensus enhancement New feature or request labels Jun 19, 2024
@marc-aurele-besner marc-aurele-besner merged commit 2a66934 into main Jun 20, 2024
3 checks passed
@marc-aurele-besner marc-aurele-besner deleted the feat/add-staking-functions-and-tests branch June 20, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-consensus Anything related to Auto-Consensus enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants