add comments to contracts templates

This commit is contained in:
Jonathan Rainville 2018-06-18 15:59:48 -04:00
parent 78f8dfdd60
commit bf0cd2866c
5 changed files with 72 additions and 21 deletions

View File

@ -6,7 +6,7 @@ module.exports = {
connection: {
host: "localhost", // Host of the blockchain node
port: 8546, // Port of the blockchain node
type: "ws" // Type of connection (ws or rps)
type: "ws" // Type of connection (ws or rpc)
}
}
};

View File

@ -1,11 +1,28 @@
module.exports = {
// default applies to all enviroments
// default applies to all environments
default: {
// rpc to deploy the contracts
// Blockchain node to deploy the contracts
deployment: {
host: "localhost",
port: 8545,
type: "rpc"
host: "localhost", // Host of the blockchain node
port: 8545, // Port of the blockchain node
type: "rpc" // Type of connection (ws or rpc),
// Accounts to use instead of the default account to populate your wallet
/*,accounts: [
{
privateKey: "your_private_key",
balance: "5 ether" // You can set the balance of the account in the dev environment
// Balances are in Wei, but you can specify the unit with its name
},
{
privateKeyFile: "path/to/file" // You can put more than one key, separated by , or ;
},
{
mnemonic: "12 word mnemonic",
addressIndex: "0", // Optionnal. The index to start getting the address
numAddresses: "1", // Optionnal. The number of addresses to get
hdpath: "m/44'/60'/0'/0/" // Optionnal. HD derivation path
}
]*/
},
// order of connections the dapp should connect to
dappConnection: [
@ -21,4 +38,4 @@ module.exports = {
//}
}
}
}
};

View File

@ -6,7 +6,7 @@ module.exports = {
connection: {
host: "localhost", // Host of the blockchain node
port: 8546, // Port of the blockchain node
type: "ws" // Type of connection (ws or rps)
type: "ws" // Type of connection (ws or rpc)
}
}
};

View File

@ -1,11 +1,28 @@
module.exports = {
// default applies to all enviroments
// default applies to all environments
default: {
// rpc to deploy the contracts
// Blockchain node to deploy the contracts
deployment: {
host: "localhost",
port: 8545,
type: "rpc"
host: "localhost", // Host of the blockchain node
port: 8545, // Port of the blockchain node
type: "rpc" // Type of connection (ws or rpc),
// Accounts to use instead of the default account to populate your wallet
/*,accounts: [
{
privateKey: "your_private_key",
balance: "5 ether" // You can set the balance of the account in the dev environment
// Balances are in Wei, but you can specify the unit with its name
},
{
privateKeyFile: "path/to/file" // You can put more than one key, separated by , or ;
},
{
mnemonic: "12 word mnemonic",
addressIndex: "0", // Optionnal. The index to start getting the address
numAddresses: "1", // Optionnal. The number of addresses to get
hdpath: "m/44'/60'/0'/0/" // Optionnal. HD derivation path
}
]*/
},
// order of connections the dapp should connect to
dappConnection: [
@ -17,8 +34,8 @@ module.exports = {
contracts: {
SimpleStorage: {
fromIndex: 0,
args: [ 100 ]
args: [100]
}
}
}
}
};

View File

@ -1,11 +1,28 @@
module.exports = {
// default applies to all enviroments
// default applies to all environments
default: {
// rpc to deploy the contracts
// Blockchain node to deploy the contracts
deployment: {
host: "localhost",
port: 8545,
type: "rpc"
host: "localhost", // Host of the blockchain node
port: 8545, // Port of the blockchain node
type: "rpc" // Type of connection (ws or rpc),
// Accounts to use instead of the default account to populate your wallet
/*,accounts: [
{
privateKey: "your_private_key",
balance: "5 ether" // You can set the balance of the account in the dev environment
// Balances are in Wei, but you can specify the unit with its name
},
{
privateKeyFile: "path/to/file" // You can put more than one key, separated by , or ;
},
{
mnemonic: "12 word mnemonic",
addressIndex: "0", // Optionnal. The index to start getting the address
numAddresses: "1", // Optionnal. The number of addresses to get
hdpath: "m/44'/60'/0'/0/" // Optionnal. HD derivation path
}
]*/
},
// order of connections the dapp should connect to
dappConnection: [
@ -21,4 +38,4 @@ module.exports = {
//}
}
}
}
};