Smart Contracts

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

Parameters
{
  "inventory": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "tax_percent": "<UInt64>"
}
Errors
None
Event
None
Methods

Parameters
{
  "inventory": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "tax_percent": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "amount": "<Amount in microCCD>",
  "recipient": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "royalty_percent": "<UInt64>",
  "token_id": "<UInt64>",
  "url": "<String>",
  "value": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>",
  "price": "<Amount in microCCD>",
  "token_id": "<UInt64>",
  "value": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>",
  "price": "<Amount in microCCD>",
  "royalty_percent": "<UInt64>",
  "token_id": "<UInt64>",
  "url": "<String>",
  "value": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>",
  "quantity": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>",
  "quantity": "<UInt64>",
  "receiver": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
Address
🗎<9375,0>


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