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

Aborting a distribution #44

Open
latenssi opened this issue Sep 24, 2021 · 0 comments
Open

Aborting a distribution #44

latenssi opened this issue Sep 24, 2021 · 0 comments
Assignees

Comments

@latenssi
Copy link
Member

latenssi commented Sep 24, 2021

During the creation period (from the moment the Issuer requests Pack creation, and until all Packs are successfully created), any errors or failed transactions (such as a failure to withdraw a Collectible from the Issuer’s NFT Provider) will cause the PDS to put the Distribution into the Invalid state. Additionally, the Issuer will have a mechanism to forcibly abort the process, which will also put the Distribution into the Invalid state.

Any Collectibles that were put into escrow in a Distribution that becomes Invalid are available to be removed via the Distribution Capability provided to the Issuer. Any Packs created by a Distribution that becomes Invalid are themselves Invalid and should be destroyed by the Issuer. There is no way to “fix” an Invalid Distribution, instead, the Issuer must remove any transferred Collectibles from an Invalid Distribution back into their own account and begin a new Distribution.

  • Allow the backend to put a distribution in "Invalid" state if such an error occurs during the process
  • Allow issuer to put a distribution in "Invalid" state
  • Write necessary cadence transactions
@latenssi latenssi added the help wanted Extra attention is needed label Oct 4, 2021
@latenssi latenssi removed the help wanted Extra attention is needed label Oct 4, 2021
@latenssi latenssi changed the title Cancelling a distribution Aborting a distribution Oct 4, 2021
@latenssi latenssi self-assigned this Oct 5, 2021
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

No branches or pull requests

1 participant