Back to Home

Ballot

Utility
0xe2d52dd53f9a...05900f246398
FrontierContract #1,576Exact Bytecode MatchEdit this contract
Deployed September 25, 2015 (10 years ago)Block 287,900

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

Frontier EraVerified Source

Context

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

Key Facts
Deployment Block
287,900
Deployment Date
Sep 25, 2015, 11:08 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 Opcodes98
Jump Instructions62
Storage Operations44

External Links

Related contracts