0xAaa9CB9f0afCc60d8fb21F82D5D47c4557924115
on Celo Mainnet (42220)
- Contract Name
- Election
- Compilation Target
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election
- Language
- Solidity
- Compiler
- solc 0.5.13+commit.5b0b510c
- EVM Version
- istanbul
- Verified At
- 2024-08-08 14:10:03 UTC
- Deployer
- 0xE1207B3e21B6f02331cB71a62167bc27Ea0408Ee
- Deployment Transaction
- 0x6b57ea611170007ad1f0dd7cbc97859cd139adaadf28de1b2cda3080e5e086e7
- Block Number
- 11711016
- Transaction Index
- 0
ABI
Source Code
- openzeppelin-solidity/contracts/math/Math.sol
- openzeppelin-solidity/contracts/GSN/Context.sol
- openzeppelin-solidity/contracts/math/SafeMath.sol
- openzeppelin-solidity/contracts/ownership/Ownable.sol
- openzeppelin-solidity/contracts/token/ERC20/IERC20.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/CalledByVm.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/FixidityLib.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/Initializable.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/UsingRegistry.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/libraries/Heap.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/UsingPrecompiles.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/IFreezer.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/IAccounts.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/IRegistry.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/identity/interfaces/IRandom.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/linkedlists/LinkedList.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/IReserve.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/IExchange.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/interfaces/IElection.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/libraries/ReentrancyGuard.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/interfaces/IGovernance.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/interfaces/ILockedGold.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/interfaces/IValidators.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/identity/interfaces/IAttestations.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/IStableToken.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/linkedlists/SortedLinkedList.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/ISortedOracles.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/IFeeCurrencyWhitelist.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/interfaces/ICeloVersionedContract.sol
- /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/linkedlists/AddressSortedLinkedList.sol
Compiler Settings
Libraries
This contract uses unverified libraries. Libraries can contain arbitrary code and should be verified before interacting with the contract.
Manually Linked Libraries
These libraries are linked manually on the bytecode after the compilation and not by the compiler. See Solidity docs
Name | Address |
---|---|
/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/linkedlists/AddressSortedLinkedList.sol:AddressSortedLinkedList | 0x4819ad0a0eb1304b1d7bc3afd7818017b52a87ab |
Contract Metadata
Creation Bytecode
CBOR Auxdata
These values are what Sourcify extracted from the recompiled bytecode. If these values are different in the on-chain bytecode, they will show up in Transformations section.
CBOR Auxdata id: 1
Runtime Bytecode
CBOR Auxdata
These values are what Sourcify extracted from the recompiled bytecode. If these values are different in the on-chain bytecode, they will show up in Transformations section.
CBOR Auxdata id: 1
Transformations
Library Transformations
Fully Qualified Name | Address | Byte Offsets |
---|---|---|
/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/common/linkedlists/AddressSortedLinkedList.sol:AddressSortedLinkedList | 0x4819ad0a0eb1304b1d7bc3afd7818017b52a87ab | 10945,14235,15791,17654,17821,18720,19304,22601,23097,23808,29010,29220,29435,32169,32384,36280,36490,36705 |
CBOR Auxdata Transformations
Byte Offsets | Length (bytes) | Values |
---|---|---|
41778 | 52 | Original (recompiled):0xa265627a7a72315820091c1543d327eaa9e7426dae6784fc02dec98e77bedbc20c69a3af3d79361f0964736f6c634300050d0032 Transformed (onchain):0xa265627a7a72315820977f5c762e9522175d246d3ebe62c7b03a5821c600045e3f64d91de56c9f6bd964736f6c634300050d0032 |
Storage Layout
Slot | Offset | Bytes | Label | Type | Contract |
---|---|---|---|---|---|
0 | 0 | 20 | _owner | address | /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election |
1 | 0 | 32 | _guardCounter | uint256 | /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election |
2 | 0 | 1 | initialized | bool | /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election |
2 | 1 | 20 | registry | contract IRegistry | /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election |
3 | 0 | 320 | votes | struct Election.Votes | /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election |
13 | 0 | 64 | electableValidators | struct Election.ElectableValidators | /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election |
15 | 0 | 32 | maxNumGroupsVotedFor | uint256 | /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election |
16 | 0 | 32 | electabilityThreshold | struct FixidityLib.Fraction | /home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/governance/Election.sol:Election |
Standard JSON Input
This isn't the original compiler JSON data. Generated for compatibility.
Standard JSON Output
This isn't the original compiler JSON data. Generated for compatibility.