Back to Home

Ballot

Utility
0x39d8543909ba...a65681d2e2f7
FrontierContract #1,887Exact Bytecode MatchEdit this contract
Deployed October 12, 2015 (10 years ago)Block 370,339

Delegated voting with a proposal count fixed at deployment

Frontier EraVerified Source

Context

Deployed in October 2015 on the Frontier chain, compiled with solc v0.1.5.

Key Facts
Deployment Block
370,339
Deployment Date
Oct 12, 2015, 02:51 AM
Code Size
1.8 KB
Gas at Deploy
491,244
Transactions by Year
20152

Description

The struct form of the Solidity Ballot example. Each address maps to a Voter record holding a weight, a voted flag, the chosen proposal and a delegate, and the proposals array is sized by the constructor argument. The deployer becomes chairperson, is given a weight of one, and is the only account that may call giveRightToVote. A voter either votes directly or delegates, and delegate walks the delegation chain to its end before moving the weight. winningProposal scans the tallies for the leader, but its loop advances the counter twice per iteration, once in the for header and once in the body, so it inspects only every second proposal.

Source Verified

Exact bytecode match(1,859 bytes)
Compiler: v0.1.5+
Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes1,859
Unique Opcodes86
Jump Instructions59
Storage Operations44

External Links

Related contracts