Smart Contract info

Smart Contract info

  • Contracts
  • TodoList
  • Help
  • Github
  • Blog

›COMPLEXGAMES

BASIC

  • A
  • Factory
  • Marriage
  • MyContract
  • BugSquash
  • HelloWorld

BASIC / ECOM

  • Customer
  • Supplier

COMPLEXGAMES

  • Ownable
  • blackJack
  • PowerEther
  • Buffer
  • CBOR
  • OraclizeAddrResolverI
  • OraclizeI
  • Ownable
  • PowerEtherBase
  • PowerEtherHelper
  • PowerFour
  • PowerOne
  • PowerTwo
  • SafeMath
  • strings
  • usingOraclize

DATASTRUCT

  • LinkedList
  • Stack

FINANCE

  • CrowdBank
  • Mortgage

GAMES

  • CasinoRoulette
  • Itontine
  • Cplayer
  • Ctontine
  • PredictionMarket
  • RNGLottery
  • RecurringLottery
  • Roulette
  • SatoshiDice
  • SimpleLottery
  • WhatDoesNadiaThink

OTHER

  • e0x

OTHER / CREDVERT

  • ApplicantFactory
  • CredentialOrgFactory
  • CredentialFactory
  • CredentialOrgFactory
  • CredentialOrgFactory
  • Ownable
  • Pausable
  • SafeMath32

OTHER / MARKETPLACE

  • DigitalLocker
  • WorkbenchBase

SCHEMES

  • Government
  • GradualPonzi
  • SimplePonzi
  • SimplePyramid

TOKENS

  • BasicToken
  • ERC20
  • TokenSale

TOKENS / ATTENDANCETOKEN

  • EIP20
  • EIP20Interface
  • Migrations
  • ApproveAndCallFallBack
  • AttendanceCoinMembers
  • ERC20Interface
  • FixedSupplyToken
  • Owned
  • SafeMath
  • ApproveAndCallFallBack
  • ERC20Interface
  • FixedSupplyToken
  • Owned
  • SafeMath

UTIL

  • MarriageInvestment
  • Stock
  • SafeMath
  • Welfare
  • PromiseBox

UNCATEGORIZED

  • Authentication
  • TodoList
  • Users

PowerEtherHelper

contract PowerEtherHelper

is PowerEtherBase

Source: contracts/complexgames/PowerEther.sol

Index

  • _checkFour
  • _checkMegaJackpotCap
  • _checkTwo
  • activate
  • collectFees
  • deactivate
  • getPendingTransactions
  • setCEO
  • setGasForOraclize
  • setMaxNumber
  • setMegaJackpotCap
  • setMegaJackpotFee
  • setMinNumber
  • setPlatformCut
  • setPowerFourBidPrice
  • setPowerFourFeePrice
  • setPowerOneBidPrice
  • setPowerOneFeePrice
  • setPowerTwoBidPrice
  • setPowerTwoFeePrice
  • updateBalance
  • updatePowerFourBalance
  • updatePowerOneBalance
  • updatePowerTwoBalance
  • withdrawPendingTransactions

Reference

Functions

  • _checkFour

    function _checkFour(uint256 _resultNumberOne, uint256 _resultNumberTwo, uint256 _resultNumberThree, uint256 _resultNumberFour, uint256 _powerNumberOne, uint256 _powerNumberTwo, uint256 _powerNumberThree, uint256 _powerNumberFour) internal returns (bool)

    Internal function to check the PowerNumbers of PowerFour Game.

    Parameters:
    _resultNumberOne - uint256
    _resultNumberTwo - uint256
    _resultNumberThree - uint256
    _resultNumberFour - uint256
    _powerNumberOne - uint256
    _powerNumberTwo - uint256
    _powerNumberThree - uint256
    _powerNumberFour - uint256
    Returns:
    bool
  • _checkMegaJackpotCap

    function _checkMegaJackpotCap(address playerAddress) internal returns (bool)

    Checks whether the MegaJackpotCap has been reached. If so, transfers the MegaJackpot to the current player.

    Parameters:
    playerAddress - address
    Returns:
    bool
  • _checkTwo

    function _checkTwo(uint256 _resultNumberOne, uint256 _resultNumberTwo, uint256 _powerNumberOne, uint256 _powerNumberTwo) internal returns (bool)

    Internal function to check the PowerNumbers of PowerTwo Game.

    Parameters:
    _resultNumberOne - uint256
    _resultNumberTwo - uint256
    _powerNumberOne - uint256
    _powerNumberTwo - uint256
    Returns:
    bool
  • activate

    function activate() external

    Activates the contract.

    Modifiers:
    onlyCEO
  • collectFees

    function collectFees() external

    Collects the fees for transactions. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman
  • deactivate

    function deactivate() external

    Deactivates the contract.

    Modifiers:
    onlyCEO
  • getPendingTransactions

    function getPendingTransactions(address playerAddress) public view returns (uint256)

    Checks for the pending withdrawals.

    Parameters:
    playerAddress - address
    Returns:
    uint256
  • setCEO

    function setCEO(address _newCEO) external

    Sets the new CEO address. Only available to the current CFO.

    Modifiers:
    onlyCEO isHuman
    Parameters:
    _newCEO - address
  • setGasForOraclize

    function setGasForOraclize(uint32 _newGasLimit) external

    Sets the gas limit for Oraclize Query.

    Modifiers:
    onlyCEO isHuman
    Parameters:
    _newGasLimit - uint32
  • setMaxNumber

    function setMaxNumber(uint256 _newMaxNumber) external

    Sets the new maxNumber.

    Modifiers:
    onlyCEO isHuman
    Parameters:
    _newMaxNumber - uint256
  • setMegaJackpotCap

    function setMegaJackpotCap(uint256 _newCap) external

    Sets the new limit for the megaJackpotCap. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman
    Parameters:
    _newCap - uint256
  • setMegaJackpotFee

    function setMegaJackpotFee(uint256 _newMegaJackpotFee) external

    Sets the new MegaJackpot fee.

    Modifiers:
    onlyCEO isHuman
    Parameters:
    _newMegaJackpotFee - uint256
  • setMinNumber

    function setMinNumber(uint256 _newMinNumber) external

    Sets the new minNumber.

    Modifiers:
    onlyCEO isHuman
    Parameters:
    _newMinNumber - uint256
  • setPlatformCut

    function setPlatformCut(uint256 _newPlatformCut) external

    Sets the platform cut denumenator percentage. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman
    Parameters:
    _newPlatformCut - uint256
  • setPowerFourBidPrice

    function setPowerFourBidPrice(uint256 _newBid) external

    Sets the Bid price for the PowerFour game. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman isWithinLimits
    Parameters:
    _newBid - uint256
  • setPowerFourFeePrice

    function setPowerFourFeePrice(uint256 _newFee) external

    Sets the Fee price for the PowerFour game. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman isWithinLimits
    Parameters:
    _newFee - uint256
  • setPowerOneBidPrice

    function setPowerOneBidPrice(uint256 _newBid) external

    Sets the Bid price for the PowerOne game. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman isWithinLimits
    Parameters:
    _newBid - uint256
  • setPowerOneFeePrice

    function setPowerOneFeePrice(uint256 _newFee) external

    Sets the Fee price for the PowerOne game. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman isWithinLimits
    Parameters:
    _newFee - uint256
  • setPowerTwoBidPrice

    function setPowerTwoBidPrice(uint256 _newBid) external

    Sets the Bid price for the PowerTwo game. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman isWithinLimits
    Parameters:
    _newBid - uint256
  • setPowerTwoFeePrice

    function setPowerTwoFeePrice(uint256 _newFee) external

    Sets the Fee price for the PowerTwo game. Only available to the current CEO.

    Modifiers:
    onlyCEO isHuman isWithinLimits
    Parameters:
    _newFee - uint256
  • updateBalance

    function updateBalance(uint256 etherToAdd) public payable

    Updates the contract balance. Only available to the current CEO.

    Modifiers:
    onlyCEO
    Parameters:
    etherToAdd - uint256
  • updatePowerFourBalance

    function updatePowerFourBalance(uint256 etherToAdd) public payable

    Updates the PowerFour balance. Only available to the current CEO.

    Modifiers:
    onlyCEO
    Parameters:
    etherToAdd - uint256
  • updatePowerOneBalance

    function updatePowerOneBalance(uint256 etherToAdd) public payable

    Updates the PowerOne balance. Only available to the current CEO.

    Modifiers:
    onlyCEO
    Parameters:
    etherToAdd - uint256
  • updatePowerTwoBalance

    function updatePowerTwoBalance(uint256 etherToAdd) public payable

    Updates the PowerTwo balance. Only available to the current CEO.

    Modifiers:
    onlyCEO
    Parameters:
    etherToAdd - uint256
  • withdrawPendingTransactions

    function withdrawPendingTransactions() public returns (bool)

    Player manually withdraws funds if there was a transaction error.

    Modifiers:
    isHuman isActivated
    Returns:
    bool
← PowerEtherBasePowerFour →
Smart Contract info
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Copyright © 2019 David Li