Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This demo explains the workflows discussed in Chaincode Frontend Design using screenshots.

Step 1: Upload chaincode

  1. Once entering the chaincode page, you will see a table of all chaincode information. The table includes available chaincodes from current or other organizations.
  2. You can check chaincode's name, description, version, language, MD5 value and use corresponding operations.

Image Added

    3. You can use the Upload Chain Code button to upload a new chain code by entering the information and uploading the chaincode file in a pop-up window.

Image Added

    4. You will see the new chain code in the table if uploading succeeded.

Image Added


Step 2: Install chaincode

  1. Each organizational user installs the chain code on their respective nodes.
  2. To install any available chaincode onto your nodes, click the "Install" button. A pop-up window will appear, allowing you to select the desired nodes within your organization for installation.
  3. By default, the nodes you have already installed will be automatically selected, and cannot be unchecked.

Image Added


Step 3: Approve chaincode

  1. Each organization performs licensing operations on the chaincode.
  2. Click the approve button to approve chaincode and check other organizations' approvement status.
  3. You can check the organizations that have already approved the current chaincode and perform licensing operations if desired.

Pop-up window can be refined since the SimpleTable component is directly used for approvement table right now.

Image Added


Step 4: Commit chaincode(optional: We can combine commit functionality with the approve button for a better UX?)

More operations(optional):

  • Delete: Delete chaincode from database if it is not used.
  • Update: Go through all steps above using updated information.