Projects
Participants Table

Participants

Each participant will have one of the following roles: Seller, Buyer, and Transporter.

Each participant will have a microcontroller id mapped to it which will be used to validate the operational data received. For the Transporter participant the data will include a list of registered vehicles the transporter owns and can deploy for delivering the order. Each vehicle will have a microcontroller mapped to it, selected from the list of microcontrollers of type ‘On Vehicle’ in the database.

When the Transporter is assigning a vehicle to the order, only a vehicle that has a microcontroller with the required sensors can be assigned.

The Blockchain account address for each participant will need to be updated in the database, which will match the account set up on the Blockchain network and in the Smart Contract. This means the Blockchain network will have to be set up and Smart Contract will have to be deployed first.

Participant data will also be required to be stored/updated in the Smart Contract. This is managed by the web app.

Sample Data JSON

⚠️

While the data below is presented as an array of items, each item must be added individually to the table.

[
  {
    "id": "0xf5Ca302151Aa5FC9fcA63913505907112526b707",
    "account_address": "0xf5Ca302151Aa5FC9fcA63913505907112526b707",
    "microcontroller_id": 3,
    "name": "Buyer Cloud Devnet",
    "role": "Buyer"
  },
  {
    "id": "0xda88BFb3484C1d8C1047837F20fBc6E8B7C24D05",
    "account_address": "0xda88BFb3484C1d8C1047837F20fBc6E8B7C24D05",
    "microcontroller_id": 1,
    "name": "Seller Cloud Devnet",
    "role": "Seller"
  },
  {
    "id": "0xa6DF63597E960f48dDb956958050D34fD8816C88",
    "account_address": "0xa6DF63597E960f48dDb956958050D34fD8816C88",
    "microcontroller_id": 0,
    "name": "Transporter Cloud Devnet",
    "registered_vehicles": [
      {
      "microcontroller_id": 2,
      "regn_num": "MH02AB1111"
      }
    ],
    "role": "Transporter"
  }
]