Smart Contract Overview

The Standard SDK contains several .sol files (smart contracts); the code is stored in our github dc-contracts package.

GameChannel.sol

This is the game contract that applies your game logic to the standard session life-cycle (state change). It interacts with other auxiliary contracts (in particularly, with GameObject.sol) and game logic.

All amounts are defined in DAO.Casino BET Token (the coefficient is 

Image

).

Numeric values are uint265.

SafeMath.sol

Implements safe math methods to protect from the risk of overflow.

Interfaces.sol

Contains methods for interaction with other contracts.

GameObject.sol

This contract brings game data to the core game contract.

BlockMinder.sol & Migrations.sol

Used for environment testing.

Эта статья помогла вам?

Сервис поддержки клиентов работает на платформе UserEcho