@daocasino/dc-configs
DAO.Casino configurations
Last updated 2 years ago by kellas .
GPL-3.0 · Original npm · Tarball · package.json
$ cnpm install @daocasino/dc-configs 
SYNC missed versions from official npm registry.

This repository stores configuration settings behind a minimum viable game. These settings are implemented as an interface that can be exported/imported to your game. This approach ensures that the code is edited at a single point and later reused whenever you may need it.

See the IConfig.ts file for the source code.

Global DAO.Casino Variables

Variable Description Type
process.env.DC_NETWORK Blockchain network, e.g. Ropsten, local. Supported networks are specified in blockchainnetworks.ts String
process.env.PLATFORM_ID Platform ID String
process.env.GAS_PRICE Numeric
process.env.GAS_LIMIT Numeric
process.env.PWD
process.env.HOST default is 0.0.0.0 (any local IP) Alphanumeric, IP
process.env.NODE_ENV Node name (Node.js) String (e.g., dev or production)
process.env.BABEL_ENV Compiler environment for React String (e.g., dev or production)
process.env.PORT, 10 default port e.g. 3000 for ppp
process.env.CI
process.env.ACCOUNT_PRIVATE_KEY Bankroller account private key
process.env.PUBLIC_URL URL for game access URL
process.env.GRAYLOG_HOST Host and port for logging Host:URL, PORT:port_number or function calling antoher variable (e.g. process.evn.HOST and a dedicated port for logging)

Current ropsten contracts

Current Tags

  • 0.2.8                                ...           latest (2 years ago)

8 Versions

  • 0.2.8                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)

Copyright 2014 - 2017 © taobao.org |