-
Notifications
You must be signed in to change notification settings - Fork 18
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
System tests for KEEP<>T staking contracts interactions #33
Merged
Commits on Nov 17, 2021
-
KEEP<>T delegate stake system tests
The following scenarios are tested: 1. Given I am KEEP network managed grant staker and I have not undelegated my stake, when I authorize T staking contract, I can copy my delegation to T staking contract. 2. Given I am KEEP network managed grant staker and I have undelegated my stake, when I authorize T staking contract, I can not copy my delegation to T staking contract. 3. Given I am KEEP network non-managed grant staker and I have not undelegated my stake, when I authorize T staking contract, I can copy my delegation to T staking contract. 4. Given I am KEEP network non-managed grant staker and I have undelegated my stake, when I authorize T staking contract, I can not copy my delegation to T staking contract. 5. Given I am KEEP network liquid token staker and I have not undelegated my stake, when I authorize T staking contract, I can copy my delegation to T staking contract. 6. Given I am KEEP network liquid token staker and I have undelegated my stake, when I authorize T staking contract, I can not copy my delegation to T staking contract.
Configuration menu - View commit details
-
Copy full SHA for 3a79bad - Browse repository at this point
Copy the full SHA 3a79badView commit details -
KEEP<>T top-up stake system tests
The following scenarios are tested: 1. Given I am KEEP network liquid token staker and I copied my stake to T staking contract, when I executed top-up of my legacy stake, `topUpKeep` should top-up my stake in T staking contract. 2. Given I am KEEP network non-managed grant staker and I copied my stake to T staking contract, when I executed top-up of my legacy stake, `topUpKeep` should top-up my stake in T staking contract. 3. Given I am KEEP network managed grant staker and I copied my stake to T staking contract, when I executed top-up of my legacy stake, `topUpKeep` should top-up my stake in T staking contract.
Configuration menu - View commit details
-
Copy full SHA for 7e80a1b - Browse repository at this point
Copy the full SHA 7e80a1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8504713 - Browse repository at this point
Copy the full SHA 8504713View commit details -
KEEP<>T undelegate system tests
The following scenarios are tested: 1. Given I am KEEP network liquid token staker, when I copied my stake to T staking contract, when I authorized and deauthorized application, `unstakeKeep` should release and let me undelegate my KEEP stake. 2. Given I am KEEP network managed grant staker, when I copied my stake to T staking contract, when I authorized and deauthorized application, `unstakeKeep` should release and let me undelegate my KEEP stake. 3. Given I am KEEP network non-managed grant staker, when I copied my stake to T staking contract, when I authorized and deauthorized application, `unstakeKeep` should release and let me undelegate my KEEP stake.
Configuration menu - View commit details
-
Copy full SHA for 5bd37e6 - Browse repository at this point
Copy the full SHA 5bd37e6View commit details -
KEEP<>T slashing/seizing system tests
The following scenarios are tested: 1. Given I am KEEP network liquid token staker, when I copied my stake to T staking contract, when I authorized application, when I got slashed by the application, `processSlashing` should slash my KEEP stake. 2. Given I am KEEP network liquid token staker, when I copied my stake to T staking contract, when I authorized application, when I got slashed by the application, `notifyKeepStakeDiscrepancy` should revert. 3. Given I am KEEP network liquid token staker, when I copied my stake to T staking contract, when I authorized application, when the application seized my stake, `processSlashing` should seize my KEEP stake. 4. Given I am KEEP network liquid token staker, when I copied my stake to T staking contract, when I authorized application, when the application seized my stake, `notifyKeepStakeDiscrepancy` should revert. 5. Given I am KEEP network managed grant staker, when I copied my stake to T staking contract, when I authorized application, when I got slashed by the application, `processSlashing` should slash my KEEP stake. 6. Given I am KEEP network managed grant staker, when I copied my stake to T staking contract, when I authorized application, when I got slashed by the application, `notifyKeepStakeDiscrepancy` should revert. 7. Given I am KEEP network managed grant staker, when I copied my stake to T staking contract, when I authorized application, when the application seized my stake, `processSlashing` should seize my KEEP stake. 8. Given I am KEEP network managed grant staker, when I copied my stake to T staking contract, when I authorized application, when the application seized my stake, `notifyKeepStakeDiscrepancy` should revert. 9. Given I am KEEP network non-managed grant staker, when I copied my stake to T staking contract, when I authorized application, when I got slashed by the application, `processSlashing` should slash my KEEP stake. 10. Given I am KEEP network non-managed grant staker, when I copied my stake to T staking contract, when I authorized application, when I got slashed by the application, `notifyKeepStakeDiscrepancy` should revert. 11. Given I am KEEP network non-managed grant staker, when I copied my stake to T staking contract, when I authorized application, when the application seized my stake, `processSlashing` should seize my KEEP stake. 12. Given I am KEEP network non-managed grant staker, when I copied my stake to T staking contract, when I authorized application, when the application seized my stake, `notifyKeepStakeDiscrepancy` should revert.
Configuration menu - View commit details
-
Copy full SHA for 965140e - Browse repository at this point
Copy the full SHA 965140eView commit details
Commits on Dec 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 89099e0 - Browse repository at this point
Copy the full SHA 89099e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb5e4a3 - Browse repository at this point
Copy the full SHA bb5e4a3View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.