Smart Contracts (Testnet)

Module: voting
back to overview
voting
Methods: 6
Instances: 7
Initialization

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

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None

Parameters
{
  "index": "<UInt64>",
  "subindex": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParsingFailed": []
    },
    {
      "CallFailed": []
    }
  ]
}
Return
None

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

Parameters
None
Errors
None
Return
{
  "description": {
    "description_text": "<String>",
    "options": [
      "<String>"
    ]
  },
  "end_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "tally": {
    "result": [
      [
        "<String>",
        "<UInt32>"
      ]
    ],
    "total_votes": "<UInt32>"
  }
}

Parameters
None
Errors
None
Return
None


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