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

Sync up DealState to match spec #50

Merged
merged 2 commits into from
Jan 21, 2020
Merged

Conversation

ingar
Copy link
Contributor

@ingar ingar commented Jan 21, 2020

Summary

Rename DealState to StorageDealStatus, add the states from the spec, and map them as closely as possible to the old DealState enum.

Notes

There are some unused states, and the provider and client states are not broken up according to the states in the spec (leaving some unused states). This will be addressed when we figure out what is going on with the state machines for the client and provider deals.

Resolves https://github.com/filecoin-project/go-storage-market/issues/21

Copy link
Collaborator

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

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

LGTM

StorageDealFailing
StorageDealRecovering
StorageDealExpired
StorageDealNotFound

// Internal
Copy link
Collaborator

Choose a reason for hiding this comment

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

^^ NB: These are all "internal" in the sense that they are not actually states that exist outside these markets. In any case, I don't see much difference.

@ingar ingar merged commit 98dd064 into master Jan 21, 2020
@ingar ingar deleted the chore/sync-up-storagedealstatus branch January 21, 2020 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants