Smart Contracts (Testnet)

Module: supply_chain_tracker
back to overview
supply_chain_tracker
Methods: 11
Instances: 0
Initialization

Parameters
None
Errors
None
Event
None
Methods

Parameters
{
  "location": "<String>",
  "name": "<String>",
  "price": "<Amount in microCCD>"
}
Errors
None
Return
None

Parameters
"<UInt64>"
Errors
None
Return
None

Parameters
"<UInt64>"
Errors
None
Return
None

Parameters
"<UInt64>"
Errors
None
Return
None

Parameters
"<UInt64>"
Errors
None
Return
None

Parameters
"<UInt64>"
Errors
None
Return
{
  "approved_by": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  },
  "delivered_to": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  },
  "order_id": "<UInt64>",
  "ordered_by": "<AccountAddress>",
  "price": "<Amount in microCCD>",
  "product_location": "<String>",
  "product_name": "<String>",
  "status": {
    "Enum": [
      {
        "Available": []
      },
      {
        "Ordered": []
      },
      {
        "Shipped": []
      },
      {
        "Delivered": []
      },
      {
        "Cancelled": []
      }
    ]
  }
}

Parameters
None
Errors
None
Return
[
  {
    "approved_by": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<AccountAddress>"
          ]
        }
      ]
    },
    "delivered_to": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<AccountAddress>"
          ]
        }
      ]
    },
    "order_id": "<UInt64>",
    "ordered_by": "<AccountAddress>",
    "price": "<Amount in microCCD>",
    "product_location": "<String>",
    "product_name": "<String>",
    "status": {
      "Enum": [
        {
          "Available": []
        },
        {
          "Ordered": []
        },
        {
          "Shipped": []
        },
        {
          "Delivered": []
        },
        {
          "Cancelled": []
        }
      ]
    }
  }
]

Parameters
None
Errors
None
Return
{
  "id": "<UInt64>",
  "location": "<String>",
  "name": "<String>",
  "price": "<Amount in microCCD>",
  "status": {
    "Enum": [
      {
        "Available": []
      },
      {
        "Ordered": []
      },
      {
        "Shipped": []
      },
      {
        "Delivered": []
      },
      {
        "Cancelled": []
      }
    ]
  }
}

Parameters
None
Errors
None
Return
[
  {
    "id": "<UInt64>",
    "location": "<String>",
    "name": "<String>",
    "price": "<Amount in microCCD>",
    "status": {
      "Enum": [
        {
          "Available": []
        },
        {
          "Ordered": []
        },
        {
          "Shipped": []
        },
        {
          "Delivered": []
        },
        {
          "Cancelled": []
        }
      ]
    }
  }
]

Parameters
None
Errors
None
Return
"<UInt64>"

Parameters
None
Errors
None
Return
"<UInt64>"
Address
🗎<9961,0>


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership