Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

dimboknv/CryptoCasino333

Repository files navigation

CryptoCasino333 Smart Contracts

Coverage Status Build Status

Details

More details on 333eth.io.

Full JSON ABI

[{"constant":true,"inputs":[],"name":"slot","outputs":[{"name":"secretSigner","type":"address"},{"name":"lockedInBets","type":"uint128"},{"name":"jackpot","type":"uint128"},{"name":"maxBetAmount","type":"uint256"},{"name":"minBetAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"game","type":"uint8"},{"name":"hostSeedHash","type":"bytes32"}],"name":"refundBet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"n","type":"uint256"},{"name":"symbols","type":"bytes"},{"name":"num","type":"uint256"},{"name":"den","type":"uint256"}],"name":"slotSetPayLine","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"admins","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"n","type":"uint256"}],"name":"slotReels","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"t","type":"uint8"},{"name":"mask","type":"uint16"},{"name":"rollUnder","type":"uint8"},{"name":"referrer","type":"address"},{"name":"sigExpirationBlock","type":"uint256"},{"name":"hostSeedHash","type":"bytes32"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"rollPlaceBet","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"jackpotMagic","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"jackpot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"extraJackpot","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"game","type":"uint8"},{"name":"hostSeed","type":"bytes32"},{"name":"clientSeed","type":"bytes32"}],"name":"handleBet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"n","type":"uint256"},{"name":"symbol","type":"bytes1"},{"name":"num","type":"uint256"},{"name":"den","type":"uint256"},{"name":"indexes","type":"uint256[]"}],"name":"slotSetSpecialPayLine","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"freeFunds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"game","type":"uint8"},{"name":"secretSigner","type":"address"}],"name":"setSecretSigner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"hostSeedHash","type":"bytes32"}],"name":"slotBet","outputs":[{"name":"amount","type":"uint256"},{"name":"blockNumber","type":"uint256"},{"name":"gambler","type":"address"},{"name":"exist","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"n","type":"uint256"},{"name":"symbols","type":"bytes"}],"name":"slotSetReels","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"roll","outputs":[{"name":"secretSigner","type":"address"},{"name":"lockedInBets","type":"uint128"},{"name":"jackpot","type":"uint128"},{"name":"maxBetAmount","type":"uint256"},{"name":"minBetAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"game","type":"uint8"},{"name":"min","type":"uint256"},{"name":"max","type":"uint256"}],"name":"setMinMaxBetAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"referrer","type":"address"},{"name":"sigExpirationBlock","type":"uint256"},{"name":"hostSeedHash","type":"bytes32"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"slotPlaceBet","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"magic","type":"uint256"}],"name":"setJackpotMagic","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"increaseJackpot","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"rank","type":"uint8"}],"name":"provideAccess","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"n","type":"uint256"}],"name":"slotPayLine","outputs":[{"name":"symbols","type":"bytes"},{"name":"num","type":"uint256"},{"name":"den","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockedInBets","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"game","type":"uint8"},{"name":"hostSeed","type":"bytes32"},{"name":"canonicalBlockNumber","type":"uint256"},{"name":"uncleProof","type":"bytes"},{"name":"chainProof","type":"bytes"}],"name":"handleBetWithProof","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"hostSeedHash","type":"bytes32"}],"name":"rollBet","outputs":[{"name":"t","type":"uint8"},{"name":"amount","type":"uint256"},{"name":"mask","type":"uint256"},{"name":"rollUnder","type":"uint256"},{"name":"blockNumber","type":"uint256"},{"name":"gambler","type":"address"},{"name":"exist","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"n","type":"uint256"}],"name":"slotSpecialPayLine","outputs":[{"name":"symbol","type":"bytes1"},{"name":"num","type":"uint256"},{"name":"den","type":"uint256"},{"name":"indexes","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"},{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"addr","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogIncreaseJackpot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"addr","type":"address"},{"indexed":false,"name":"newJackpotMagic","type":"uint256"}],"name":"LogJackpotMagicChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":true,"name":"message","type":"bytes32"}],"name":"LogPayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":true,"name":"message","type":"bytes32"}],"name":"LogFailedPayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"hostSeed","type":"bytes32"},{"indexed":false,"name":"clientSeed","type":"bytes32"},{"indexed":false,"name":"jackpotMagic","type":"uint256"}],"name":"LogJactpot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hostSeedHash","type":"bytes32"},{"indexed":true,"name":"gambler","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":true,"name":"referrer","type":"address"}],"name":"LogSlotNewBet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hostSeedHash","type":"bytes32"},{"indexed":true,"name":"gambler","type":"address"},{"indexed":false,"name":"hostSeed","type":"bytes32"},{"indexed":false,"name":"clientSeed","type":"bytes32"},{"indexed":false,"name":"symbols","type":"bytes"},{"indexed":false,"name":"multiplierNum","type":"uint256"},{"indexed":false,"name":"multiplierDen","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"winnings","type":"uint256"}],"name":"LogSlotHandleBet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hostSeedHash","type":"bytes32"},{"indexed":true,"name":"gambler","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogSlotRefundBet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hostSeedHash","type":"bytes32"},{"indexed":false,"name":"t","type":"uint8"},{"indexed":true,"name":"gambler","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"mask","type":"uint256"},{"indexed":false,"name":"rollUnder","type":"uint256"},{"indexed":true,"name":"referrer","type":"address"}],"name":"LogRollNewBet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hostSeedHash","type":"bytes32"},{"indexed":false,"name":"t","type":"uint8"},{"indexed":true,"name":"gambler","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogRollRefundBet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"hostSeedHash","type":"bytes32"},{"indexed":false,"name":"t","type":"uint8"},{"indexed":true,"name":"gambler","type":"address"},{"indexed":false,"name":"hostSeed","type":"bytes32"},{"indexed":false,"name":"clientSeed","type":"bytes32"},{"indexed":false,"name":"roll","type":"uint256"},{"indexed":false,"name":"multiplierNum","type":"uint256"},{"indexed":false,"name":"multiplierDen","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"winnings","type":"uint256"}],"name":"LogRollHandleBet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"whom","type":"address"},{"indexed":false,"name":"when","type":"uint256"},{"indexed":false,"name":"rank","type":"uint8"}],"name":"LogProvideAccess","type":"event"}]

Installation

npm install

Testing

Run test:

npm run test

Run coverage:

npm run coverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published