Smart Contracts (Testnet)

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

Parameters
{
  "admin_account": "<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": []
    },
    {
      "MalformedConfig": []
    },
    {
      "MalformedElectionResult": []
    },
    {
      "ElectionClosed": []
    },
    {
      "Inconclusive": []
    }
  ]
}
Event
None
Methods

Parameters
[
  {
    "candidate_index": "<UInt8>",
    "has_vote": "<Bool>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "DuplicateCandidate": []
    },
    {
      "Unauthorized": []
    },
    {
      "MalformedConfig": []
    },
    {
      "MalformedElectionResult": []
    },
    {
      "ElectionClosed": []
    },
    {
      "Inconclusive": []
    }
  ]
}
Return
None

Parameters
[
  "<UInt64>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "DuplicateCandidate": []
    },
    {
      "Unauthorized": []
    },
    {
      "MalformedConfig": []
    },
    {
      "MalformedElectionResult": []
    },
    {
      "ElectionClosed": []
    },
    {
      "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_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": []
    },
    {
      "MalformedConfig": []
    },
    {
      "MalformedElectionResult": []
    },
    {
      "ElectionClosed": []
    },
    {
      "Inconclusive": []
    }
  ]
}
Return
{
  "Enum": [
    {
      "None": []
    },
    {
      "Some": [
        [
          {
            "candidate": {
              "name": "<String>"
            },
            "cummulative_votes": "<UInt64>"
          }
        ]
      ]
    }
  ]
}
Address
🗎<7286,0>


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