You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developer understands Unstaking and Unbonding rules enough to test the features
Inform E2E automated testing
User Story & BDD
As an Application, I can unstake any positive remaining POKT balance which will be returned (i.e. unlocked) to me after the unbonding period so I can leave the pocket network.
Feature: Unstaking POKT Tokens from the Pocket NetworkScenario: Application Unstakes POKT Tokens and Leaves the NetworkGiven the Application has the pocketd binary installed
And the Applications has a balance greater than "0" uPOKT
And the Application has waited "n" seconds during the unbonding period
And the Application is not part of an active session
When the Application initiates the unstaking process
Then the remaining POKT balance is returned (unlocked) to the Application
And the Application successfully leaves the Pocket Network
Constraints
Unstaking/Unbonding is not possible to initiate while the application is part of an active session
Unstaking/Unbonding is not possible to initiate until the last active session payment has been made (part or all of the current application stake is burned post-session)
Deliverables / Acceptance Criteria
1. A test that proves an application can successfully unstake from the network
2. A test that proves an application cannot initiate unstaking during an active session or before the last active session has been settled (POKT spent during the last active session has been burned)
3. A test that proves an application positive POKT balance is returned in full if all qualifying conditions are met and after an unbonding period (as a configurable param)
Non-goals / Non-deliverables
Exhaustively covering all edge cases
Establishing param default values
General deliverables
Comments: Add/update TODOs and comments alongside the source code so it is easier to follow.
Testing: Add new tests (unit and/or E2E) to the test suite.
Makefile: Add new targets to the Makefile to make the new functionality easier to use.
Documentation: Update architectural or development READMEs; use mermaid diagrams where appropriate.
@RossiNYC Reviewed this issue and overall LGTM regarding the contest, deliverables, goals, etc! left a few edits w.r.t to the formatting so PTAL by reviewing the deltas (see screenshot below) and apply it elsewhere. Let's also start using the e2e_story label. Otherwise, 👌
@Olshansk - yeah, I'll clean everything up in the next 24-48 hours, once I figured out you could /templates I started using that, but already had a few of these framed out
Objective
Unstaking
&Unbonding
(return of any existing POKT stake) rules for ShannonOrigin Document
Goals
Unstaking
andUnbonding
rules enough to test the featuresUser Story & BDD
As an Application, I can unstake any positive remaining POKT balance which will be returned (i.e. unlocked) to me after the unbonding period so I can leave the pocket network.
Constraints
Unstaking/Unbonding
is not possible to initiate while the application is part of an active sessionUnstaking/Unbonding
is not possible to initiate until the last active session payment has been made (part or all of the current application stake is burned post-session)Deliverables / Acceptance Criteria
Non-goals / Non-deliverables
General deliverables
Creator: @RossiNYC
Co-Owners: @Olshansk
The text was updated successfully, but these errors were encountered: