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

feat: implemente Msgs for SP exit #533

Closed
wants to merge 3 commits into from

Conversation

alexgao001
Copy link
Collaborator

Description

This PR adds required msg for SP exit.

A SP exit process is outlined below:

  1. The SP which wants to exit to send a tx with MsgStorageProviderExit, it is status will become STATUS_GRACEFUL_EXITING.
  2. All other SPs are encouraged to be the successors of the exiting SP's Global Virtual Group family(GVGF) as primary SP, or Global Virtual group(GVG) as secondary. They can send a tx with MsgReserveSwapIn to reserve the position.
  3. Once successor got all data stored properly. They will send a tx with MsgCompleteSwapIn to ack the success, within GVGF/GVG, SP replacement will take place.
  4. If the SP has no more GVGF/GVG related, it can send a tx with MsgCompleteStorageProviderExit to complete the exit, deposit onto Greenfield will be refund.

Rationale

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

Potential Impacts

  • add potential impacts for other components here
  • ...

@alexgao001 alexgao001 added the wip label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant