Smart Contracts (Testnet)

Module: voting
back to overview
voting
Methods: 3
Instances: 1
Initialization

Parameters
{
  "description": "<String>",
  "end_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "options": [
    "<String>"
  ]
}
Errors
None
Event
{
  "Enum": [
    {
      "Vote": [
        {
          "vote_index": "<UInt32>",
          "voter": "<AccountAddress>"
        }
      ]
    }
  ]
}
Methods

Parameters
{
  "vote_index": "<UInt32>"
}
Errors
{
  "Enum": [
    {
      "ParsingFailed": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "VotingFinished": []
    },
    {
      "InvalidVoteIndex": []
    },
    {
      "ContractVoter": []
    }
  ]
}
Return
None

Parameters
{
  "vote_index": "<UInt32>"
}
Errors
None
Return
"<UInt32>"

Parameters
None
Errors
None
Return
{
  "description": "<String>",
  "end_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "num_options": "<UInt32>",
  "options": [
    "<String>"
  ]
}
Address
🗎<3203,0>


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