Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

DaoCasino/DCLib

Repository files navigation

Maintainability Codacy Badge JavaScript Style Guide

DCLib is javascript library for integrate dao.casino blockchain protocol. Interact with bankroller, use Signidice random algorithm, and paymentchannels.

DCLib has two part:

  • browser/frontend library
  • bankroller side API

DCLIb methods available inside bankroller application.

IMPORTANT: now lib work only in ropsten test network.

Get startted

See short video 2

Download and install last BankRollerApp

See DApp example

Usage

Include JS in your DApp

<script src="https://platform.dao.casino/api/lib/v2/DC.js"></script>

or use npm

npm install --save dclib
import 'dclib' // or require('dclib')

console.log(DCLib.version)

Open it in browser and see console.

Docs

Tutorials

More about DApps

[RU] Minimal Game

[RU] Game with PayChannels

DCLib References