Skip to content
Iuri Matias edited this page Jun 21, 2015 · 7 revisions

config/blockchain.yml

In this file you can configure different environments for different purposes. By default the environments included are development meant to be used for development and testing, and staging meant to be used for the testnet. You can add & configure your additional environments for whatever purpose you have in mind (e.g setting a private testnet). See also Deploying to the testnet

options:

  • rpc_host: <ip|hostname>> # Listening address for the JSON-RPC server
  • rpc_port: <number> # Port on which the JSON-RPC server should listen
  • rpc_whitelist: <hostname|*> # hosts allowed access
  • minerthreads: <number> # Number of miner threads
  • datadir: <dir|default> # Data directory to be used
  • network_id: <number> # 0 for the testnet, 'random' or any other number for dev purposes
  • port:
  • console:
  • mine_when_needed:
  • gas_limit:
  • gas_price:
  • account:
    • address:
    • init:
    • password:

config/contracts.yml

Allows you define gas costs and constructor arguments for each contract, and per environment. When a contract has no gas costs defined here, it will use the defaults set at config/blockchain.yml

options:

  • ContractName
    • args: list of arguments for the contract constructor
    • gas_limit: gas to be used by the contract
    • gas_price: gas price to be used by the contract

config/server.yml

To configure the development webserver.

options:

  • host: ip or hostname (default: localhost)
  • port: port of the server (default: 8000)
Clone this wiki locally