Back to Home

Ballot

DAO / Governance
0x5c143348295c...74d1c3207f84
FrontierContract #5,186Exact Bytecode MatchEdit this contract
Deployed December 15, 2015 (10 years ago)Block 694,303

The Voting with delegation example from the Solidity documentation, opened over three proposals named A, B and C.

Frontier EraVerified Source

Context

Deployed 15 December 2015, during the Frontier era.

Key Facts
Deployment Block
694,303
Deployment Date
Dec 15, 2015, 06:29 AM
Code Size
1.6 KB
Gas at Deploy
486,728

Description

The Ballot contract from the Voting with delegation example in the Solidity documentation. The constructor takes the proposal names, makes the deployer chairperson and gives that address one unit of voting weight. giveRightToVote, which throws unless the caller is the chairperson and the target has not already voted, sets an address to weight one. delegate hands a voter's weight to another address, following any chain of delegations already in place and throwing if the chain leads back to the caller; if the final delegate has already voted the weight is added straight to the proposal they chose, otherwise it is added to their own weight. vote adds the caller's weight to a proposal and throws if the index is out of range. winningProposal walks the proposals and returns the index with the highest count, without breaking a tie. This deployment was created with the proposal names A, B and C.

Source Verified

Exact bytecode match(1,596 bytes)
Compiler: v0.1.6-
Heuristic Analysis

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

Detected Type: DAO / Governance

Bytecode Overview

Opcodes1,596
Unique Opcodes114
Jump Instructions73
Storage Operations56

External Links

Related contracts