Smart Contracts (Testnet)

Module: shopwell
back to overview
shopwell
Methods: 9
Instances: 0
Initialization

Parameters
None
Errors
None
Event
None
Methods

Parameters
[
  "<AccountAddress>"
]
Errors
{
  "Enum": [
    {
      "ProductNotFound": []
    },
    {
      "OrderNotFound": []
    },
    {
      "OrderAlreadyExists": []
    },
    {
      "InvalidProductState": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "InvalidPrice": []
    },
    {
      "ParseParams": []
    },
    {
      "TransferError": []
    },
    {
      "NonceAlreadyUsed": []
    },
    {
      "WrongContract": []
    },
    {
      "Expired": []
    },
    {
      "WrongFunctionCall": []
    },
    {
      "WrongSignature": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "keys": [
              [
                "<UInt8>",
                {
                  "keys": [
                    [
                      "<UInt8>",
                      {
                        "Enum": [
                          {
                            "Ed25519": [
                              "<String of size 64 containing lowercase hex characters.>"
                            ]
                          }
                        ]
                      }
                    ]
                  ],
                  "threshold": "<UInt8>"
                }
              ]
            ],
            "threshold": "<UInt8>"
          }
        ]
      }
    ]
  }
]

Parameters
[
  "<AccountAddress>"
]
Errors
{
  "Enum": [
    {
      "ProductNotFound": []
    },
    {
      "OrderNotFound": []
    },
    {
      "OrderAlreadyExists": []
    },
    {
      "InvalidProductState": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "InvalidPrice": []
    },
    {
      "ParseParams": []
    },
    {
      "TransferError": []
    },
    {
      "NonceAlreadyUsed": []
    },
    {
      "WrongContract": []
    },
    {
      "Expired": []
    },
    {
      "WrongFunctionCall": []
    },
    {
      "WrongSignature": []
    }
  ]
}
Return
[
  "<UInt64>"
]

Parameters
{
  "message": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "entry_point": "<String>",
    "nonce": "<UInt64>",
    "payload": [
      "<UInt8>"
    ],
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  },
  "signature": [
    [
      "<UInt8>",
      [
        [
          "<UInt8>",
          {
            "Enum": [
              {
                "Ed25519": [
                  "<String of size 128 containing lowercase hex characters.>"
                ]
              }
            ]
          }
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
None
Return
[
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>"
]

Parameters
{
  "message": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "entry_point": "<String>",
    "nonce": "<UInt64>",
    "payload": [
      "<UInt8>"
    ],
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  },
  "signature": [
    [
      "<UInt8>",
      [
        [
          "<UInt8>",
          {
            "Enum": [
              {
                "Ed25519": [
                  "<String of size 128 containing lowercase hex characters.>"
                ]
              }
            ]
          }
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
None
Return
None

Parameters
{
  "age_restriction": "<UInt8>",
  "description": "<String>",
  "id": "<String>",
  "image": "<String>",
  "merchant_id": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "name": "<String>",
  "price": "<Amount in microCCD>",
  "state": {
    "Enum": [
      {
        "Listed": []
      },
      {
        "Sold": []
      },
      {
        "UnListed": []
      }
    ]
  },
  "wallet": "<AccountAddress>"
}
Errors
None
Return
None

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

Parameters
None
Errors
None
Return
[
  {
    "age_restriction": "<UInt8>",
    "description": "<String>",
    "id": "<String>",
    "image": "<String>",
    "merchant_id": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "name": "<String>",
    "price": "<Amount in microCCD>",
    "state": {
      "Enum": [
        {
          "Listed": []
        },
        {
          "Sold": []
        },
        {
          "UnListed": []
        }
      ]
    },
    "wallet": "<AccountAddress>"
  }
]

Parameters
{
  "Enum": [
    {
      "Account": [
        "<AccountAddress>"
      ]
    },
    {
      "Contract": [
        {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        }
      ]
    }
  ]
}
Errors
None
Return
[
  {
    "age_restriction": "<UInt8>",
    "description": "<String>",
    "id": "<String>",
    "image": "<String>",
    "merchant_id": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "name": "<String>",
    "price": "<Amount in microCCD>",
    "state": {
      "Enum": [
        {
          "Listed": []
        },
        {
          "Sold": []
        },
        {
          "UnListed": []
        }
      ]
    },
    "wallet": "<AccountAddress>"
  }
]

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
None
Return
None
Address
🗎<9571,0>


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