Tutorials - XPredictMarket/NodePredict GitHub Wiki

X predict market DAPP Test Guideline

  1. Install the PolkadotJS and create an account. Change the Encryption type to sr25519, or change network to 【Allow use on any chain】.

    https://polkadot.js.org/extension/

    img

  2. X Predict market DAPP: https://test-app.x-predict.com/

    img

    Tip: If you need to quickly pass the verification, you can select [uat node] to create a proposal, and then you can use Alice account to operate the proposal. Please refer to the instructions below.

    img

    img

  3. Choose your account

    img

  4. Switch to wallet page and click [get test currency] to get test currency

    img

  5. Switch to [create proposal] to create a proposal

    img

  6. If it is successfully created, it will automatically jump to the details page. Please wait for node verification (if it is created by the uat node, remember the ID of the Market, and then go to PolkadotJS APP to approve the verification using Alice account).

    img

  7. [uat node] Set Types

    Copy the types and paste it to polkadotjs DAPP -> Setting ->Developer, then click [save]

    img

  8. [uat node] Methods of Auditing Market

    Switch to [developer -> Sudo -> proposals ->setStatus]

    Perform the proposal [FormalPrediction] audit operation

    https://polkadotjs.x-predict.com/?rpc=wss%3A%2F%2Ftestnet.x-predict.com#/sudo

    img

  9. Choose Alice Account

    img

  10. when submission succeeded, go back to the proposal page and choose your favorite answer to Buy or Sell

    img

  11. proposal buy

    img

  12. There are two situations with the Sell

    1. During the voting period, users can sell their chips according to their own will

    2. At the end of the proposal, those who guess the right result also redeem their prize through the Sell

    img

  13. Add liquidity

    img

    img

  14. Retrieve liquidity. Users can only retrieve liquidity at the end of the proposal

    img

  15. Result uploading

    [uat node] can upload the result through sudo authority using Alice account.

    [test node] should wait for the verification node to upload the result.

    • Step 1, find the proposal ID.

      img

    • Step 2, the option currencyId in polkadotjs.org/app

      https://polkadotjs.x-predict.com/?rpc=wss%3A%2F%2Ftestnet.x-predict.com#/chainstate

      img

      As shown below, 5 corresponds to the currencyId of the first option of the proposal, 6 corresponds to the currencyId of the second option of the proposal.

      img

    • Step 3, change the proposal status to [WaitingForResults]

      img

    • Step 4, upload the proposal result, select sudo module -> couple -> setResult then enter the proposal ID and currencyId, click submit sudo, then we can select Alice account to upload the result.

      img

      The proposal status then transforms into end

      img