Skip to content
Verified contractPartial

SVLightBallotBox

Address0xc54f7ab2ba0408fd1b02f6742e251126966f8564
Balance

0 ETH

 

Transactions

35

 

Compiler

solc 0.4.24

 

Same code

13 more contracts

 

Details

Compiler
solc 0.4.24+commit.e67f0147
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
9,115,121
Creation transaction
0x739dc64af8…b5954e1455
Main copy (most transactions)
0x926eae6c…80b29e26

Read15

  • nVotesCast() → (uint256)
  • deprecated() → (bool)
  • creationBlock() → (uint64)
  • ballotEncryptionSeckey() → (bytes32)
  • endTime() → (uint64)
  • startingBlockAround() → (uint64)
  • getEncSeckey() → (bytes32)
  • voterToBallotID(address) → (uint256)
  • useEncryption() → (bool)
  • startTime() → (uint64)
  • specHash() → (bytes32)
  • owner() → (address)
  • ballotMap(uint256) → (bytes32,address,uint32)
  • associatedPubkeys(uint256) → (bytes32)
  • testMode() → (bool)

Write6

  • setOwner(address)
  • setDeprecated()
  • submitBallotWithPk(bytes32,bytes32)
  • revealSeckey(bytes32)
  • submitBallotNoPk(bytes32)
  • setEndTime(uint64)

Events8

  • CreatedBallot(address,uint64[2],bool,bytes32)
  • SuccessfulPkVote(address,bytes32,bytes32)
  • SuccessfulVote(address,bytes32)
  • SeckeyRevealed(bytes32)
  • TestingEnabled()
  • Error(string)
  • DeprecatedContract()
  • SetOwner(address)

ABI as JSON

[
  {
    "name": "nVotesCast",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "deprecated",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "setOwner",
    "type": "function",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "creationBlock",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint64"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "ballotEncryptionSeckey",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "endTime",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint64"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "startingBlockAround",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint64"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "getEncSeckey",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "voterToBallotID",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "useEncryption",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "startTime",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint64"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "specHash",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "setDeprecated",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "ballotMap",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "ballotData",
        "type": "bytes32"
      },
      {
        "name": "sender",
        "type": "address"
      },
      {
        "name": "blockN",
        "type": "uint32"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "associatedPubkeys",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes32"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "submitBallotWithPk",
    "type": "function",
    "inputs": [
      {
        "name": "encryptedBallot",
        "type": "bytes32"
      },
      {
        "name": "senderPubkey",
        "type": "bytes32"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "revealSeckey",
    "type": "function",
    "inputs": [
      {
        "name": "_secKey",
        "type": "bytes32"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "testMode",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "submitBallotNoPk",
    "type": "function",
    "inputs": [
      {
        "name": "ballot",
        "type": "bytes32"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "setEndTime",
    "type": "function",
    "inputs": [
      {
        "name": "newEndTime",
        "type": "uint64"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_specHash",
        "type": "bytes32"
      },
      {
        "name": "openPeriod",
        "type": "uint64[2]"
      },
      {
        "name": "flags",
        "type": "bool[2]"
      }
    ],
    "payable": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "CreatedBallot",
    "type": "event",
    "inputs": [
      {
        "name": "_creator",
        "type": "address",
        "indexed": false
      },
      {
        "name": "_openPeriod",
        "type": "uint64[2]",
        "indexed": false
      },
      {
        "name": "_useEncryption",
        "type": "bool",
        "indexed": false
      },
      {
        "name": "_specHash",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "SuccessfulPkVote",
    "type": "event",
    "inputs": [
      {
        "name": "voter",
        "type": "address",
        "indexed": false
      },
      {
        "name": "ballot",
        "type": "bytes32",
        "indexed": false
      },
      {
        "name": "pubkey",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "SuccessfulVote",
    "type": "event",
    "inputs": [
      {
        "name": "voter",
        "type": "address",
        "indexed": false
      },
      {
        "name": "ballot",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "SeckeyRevealed",
    "type": "event",
    "inputs": [
      {
        "name": "secretKey",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "TestingEnabled",
    "type": "event",
    "inputs": [],
    "anonymous": false
  },
  {
    "name": "Error",
    "type": "event",
    "inputs": [
      {
        "name": "error",
        "type": "string",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "DeprecatedContract",
    "type": "event",
    "inputs": [],
    "anonymous": false
  },
  {
    "name": "SetOwner",
    "type": "event",
    "inputs": [
      {
        "name": "_owner",
        "type": "address",
        "indexed": false
      }
    ],
    "anonymous": false
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.