Back to Home

Ballot

Utility
0x812e8a238229...5b69608a4d91
FrontierContract #5,538Exact Bytecode MatchEdit this contract
Deployed December 22, 2015 (10 years ago)Block 729,811

Delegated voting over five proposals, with the chairperson handing out voting rights

Frontier EraVerified Source

Context

Deployed in December 2015 on the Frontier chain, compiled with solc v0.1.1 and the optimiser enabled.

Key Facts
Deployment Block
729,811
Deployment Date
Dec 22, 2015, 08:28 AM
Code Size
1.3 KB
Gas at Deploy
364,813

Description

A voting contract in the pre-struct form of the Solidity Ballot example, where each part of a voter's record lives in its own mapping: voterWeight, voted, votes and delegations. The account that deploys it becomes the chairperson and is the only one who may call giveRightToVote. A voter may either vote for one of five proposals or delegate to another address, in which case the contract follows the delegation chain to its end before transferring the weight. winningProposal scans the tallies and returns the leader. The proposal count is fixed at five in the constructor.

Source Verified

Exact bytecode match(1,281 bytes)
Compiler: v0.1.1+
Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Utility

Bytecode Overview

Opcodes1,281
Unique Opcodes102
Jump Instructions62
Storage Operations44

External Links

Related contracts