Skip to content
Verified contractPartial

MajorityGame

Address0x592d5ffdcbdcfa4e592cdd2dfe49335cdc60fde6
Balance

0 ETH

 

Transactions

71

 

Compiler

solc 0.4.24

 

Same code

281 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
6,710,142
Creation transaction
0xec961023d5…35bfc5425c
Main copy (most transactions)
0x3c2bf95d…9787fe6f

Read5

  • getWinnerAddressList() → (address[])
  • getEndGameStatus() → (uint256,uint256,uint256,uint256,uint256)
  • getLoserAddressList() → (address[])
  • getGameData() → (uint256,uint256,uint256,uint256,uint256,string,uint256,uint256,uint256)
  • getPlayerOption() → (uint256)

Write6

  • submitChoose(uint256)
  • sendAward()
  • endGame()
  • forceEndGame()
  • setJackpot() → (bool)
  • sendAwardToLastOne()

ABI as JSON

[
  {
    "name": "submitChoose",
    "type": "function",
    "inputs": [
      {
        "name": "_chooseValue",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": true,
    "constant": false,
    "stateMutability": "payable"
  },
  {
    "name": "sendAward",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "getWinnerAddressList",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address[]"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "endGame",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "getEndGameStatus",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "getLoserAddressList",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address[]"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "forceEndGame",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "getGameData",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "string"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "setJackpot",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool"
      }
    ],
    "payable": true,
    "constant": false,
    "stateMutability": "payable"
  },
  {
    "name": "getPlayerOption",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "sendAwardToLastOne",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_gameId",
        "type": "uint256"
      },
      {
        "name": "_gameBet",
        "type": "uint256"
      },
      {
        "name": "_endTime",
        "type": "uint256"
      },
      {
        "name": "_questionText",
        "type": "string"
      },
      {
        "name": "_officialAddress",
        "type": "address"
      }
    ],
    "payable": false,
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.