Smart Contracts (Testnet)

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

Parameters
{
  "admin_account": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  },
  "candidates": [
    {
      "name": "<String>"
    }
  ],
  "election_description": "<String>",
  "election_end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "election_start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "eligible_voters": {
    "hash": "<String of size 64 containing lowercase hex characters.>",
    "url": "<String>"
  },
  "guardians": [
    "<AccountAddress>"
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "DuplicateCandidate": []
    },
    {
      "Unauthorized": []
    },
    {
      "MalformedElectionResult": []
    },
    {
      "Inconclusive": []
    }
  ]
}
Event
None
Methods

Parameters
[
  "<UInt64>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "DuplicateCandidate": []
    },
    {
      "Unauthorized": []
    },
    {
      "MalformedElectionResult": []
    },
    {
      "Inconclusive": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
{
  "admin_account": "<AccountAddress>",
  "candidates": [
    {
      "name": "<String>"
    }
  ],
  "election_description": "<String>",
  "election_end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "election_result": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<UInt64>"
          ]
        ]
      }
    ]
  },
  "election_start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "eligible_voters": {
    "hash": "<String of size 64 containing lowercase hex characters.>",
    "url": "<String>"
  },
  "guardians": [
    "<AccountAddress>"
  ]
}

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "DuplicateCandidate": []
    },
    {
      "Unauthorized": []
    },
    {
      "MalformedElectionResult": []
    },
    {
      "Inconclusive": []
    }
  ]
}
Return
[
  {
    "candidate": {
      "name": "<String>"
    },
    "cummulative_votes": "<UInt64>"
  }
]
Address
🗎<7231,0>


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