PowerEtherHelper
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
deactivate
getPendingTransactions
function getPendingTransactions(address playerAddress) public view returns (uint256)
Checks for the pending withdrawals.
- Parameters:
playerAddress
- address- Returns:
- 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