LasticXYZ / LasticXYZ/LasticUI

Action - Buy instantaneous core

Open
#34 0 comments 0 reactions 1 assignee View on GitHub

@poppyseedDev is already working on this.

Since Dec 20, 2023.

lasticUI p4
Dominant language
TypeScript
Stars
14
Forks
21
PR merge metrics
No merged PRs in 30d

Description

With connected accountID, buy button gets activated.

When user clicks "Buy instantaneous core", a dialogue pops up.

This dialogue shows the price in DOT and USD in parentheses. It also shows the requirements listed, with green check boxes for completed ones, red if not. Requirements are as follows:

  • paraID
  • registered wasm blob
  • genesis head
  • running collators (unsure if we can check)

If any of the above requirements are not met, then guide the user to paraID registration. If paraID is registered but no wasm blob is registered, go to next, and so on.

If user has all of these requirements, they are shown with green checkboxes and the following extrinsic is required:

  • OnDemandAssignmentProvider > PlaceOrderKeepAlive
    • maxAmount (maximum willing to pay)
    • paraID

Included somewhere is the minimum expected payment, which I believe is set somewhere but I dont know where. These values are in plankDOT, the smallest unit of measurement of DOT.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.