There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Now, let's create a simple wallet app in react.js to manage tokens."
A block of code is set as follows:
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Capped.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
const HDWalletProvider = require('truffle-hdwallet-provider');
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
}
prod: {
host: "<Live geth host IP>",
port: 8545,
network_id: "1",
}
},
compilers: {
solc: {
version: "0.5.2",
settings: {
optimizer" {
enabled: false,
runs: 1000,
},
}}}}}
Any command-line input or output is written as follows:
truffle console
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Click on the GreenGables Bank button to log in as a bank user."
Warnings or important notes appear like this.
Tips and tricks appear like this.