-
Notifications
You must be signed in to change notification settings - Fork 495
Configuration
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: <number> # port to be used by the client
- console: <true|false> # when true it should enable the console
- mine_when_needed: <true|false> # when true it will mine only when there are pending transactions
- gas_limit: <number> # default gas value to use to deploy contracts
- gas_price: <number> # default gas price to use to deploy contracts
- account:
- address: <0xaddress> # account address to unlock
- init: <true|false> # if true it will attempt to create and use a new account
- password: <file_path> # path to a file containing the password required to unlock an account
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
To configure the development webserver.
options:
- host: ip or hostname (default: localhost)
- port: port of the server (default: 8000)
You can mention the password to unlock the account here, this file can be referred in your config/blockchain.yml
under account> password
.