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

Slot reservations implementation #117

Closed
6 tasks
emizzle opened this issue Jun 4, 2024 · 1 comment
Closed
6 tasks

Slot reservations implementation #117

emizzle opened this issue Jun 4, 2024 · 1 comment
Labels
Marketplace See https://miro.com/app/board/uXjVNZ03E-c=/ for details

Comments

@emizzle
Copy link
Collaborator

emizzle commented Jun 4, 2024

Defined in the slot reservations codex-research PR codex-storage/codex-research#190

Subtasks:

  • Contracts
    - Allow 3(?) slots to be reserved, reserveSlot (returning bool if successful), return true for now
    stub for canReserveSlot(address, SlotId), return true for now, call from reserveSlot
    Client
    - Wire up reserveSlot and canReserveSlot contract calls, but don't call them
  • Contracts
    - Add disperal parameter #115 (add to StorageRequest struct only)
    Client
    - Support dispersal parameter (API, API spec, StorageRequest object, etc)
  • Client
    - Add SaleReserving state -- SalePreparing -> SaleReserving
    - Refactor slotqueue's seen flags (seen > seenNoAvailability, add seenNotEligible, pause on seenNoAvailability, but don't pause on seenNotEligible)?
  • Contracts
    - Third reservation emits SlotFullyReserved event
    Client
    - Slot queue listens for SlotFullyReserved and removes slot from queue
  • Contracts
    - Add calculation for expanding window (Expanding window mechanism implementation #116) (use blockhash at time of createStorageRequest for random base SlotID?
  • Contracts
    - Disallow fillSlot if slot was not reserved (return false)
@emizzle emizzle added the Marketplace See https://miro.com/app/board/uXjVNZ03E-c=/ for details label Jun 4, 2024
@emizzle
Copy link
Collaborator Author

emizzle commented Sep 18, 2024

No longer using this task as a parent task, using the epic codex-storage/codex-pm#45 instead.

@emizzle emizzle closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Marketplace See https://miro.com/app/board/uXjVNZ03E-c=/ for details
Projects
None yet
Development

No branches or pull requests

1 participant