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: { connection: {
host: "localhost", // Host of the blockchain node host: "localhost", // Host of the blockchain node
port: 8546, // Port 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 = { module.exports = {
// default applies to all enviroments // default applies to all environments
default: { default: {
// rpc to deploy the contracts // Blockchain node to deploy the contracts
deployment: { deployment: {
host: "localhost", host: "localhost", // Host of the blockchain node
port: 8545, port: 8545, // Port of the blockchain node
type: "rpc" 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 // order of connections the dapp should connect to
dappConnection: [ dappConnection: [
@ -21,4 +38,4 @@ module.exports = {
//} //}
} }
} }
} };

View File

@ -6,7 +6,7 @@ module.exports = {
connection: { connection: {
host: "localhost", // Host of the blockchain node host: "localhost", // Host of the blockchain node
port: 8546, // Port 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 = { module.exports = {
// default applies to all enviroments // default applies to all environments
default: { default: {
// rpc to deploy the contracts // Blockchain node to deploy the contracts
deployment: { deployment: {
host: "localhost", host: "localhost", // Host of the blockchain node
port: 8545, port: 8545, // Port of the blockchain node
type: "rpc" 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 // order of connections the dapp should connect to
dappConnection: [ dappConnection: [
@ -17,8 +34,8 @@ module.exports = {
contracts: { contracts: {
SimpleStorage: { SimpleStorage: {
fromIndex: 0, fromIndex: 0,
args: [ 100 ] args: [100]
} }
} }
} }
} };

View File

@ -1,11 +1,28 @@
module.exports = { module.exports = {
// default applies to all enviroments // default applies to all environments
default: { default: {
// rpc to deploy the contracts // Blockchain node to deploy the contracts
deployment: { deployment: {
host: "localhost", host: "localhost", // Host of the blockchain node
port: 8545, port: 8545, // Port of the blockchain node
type: "rpc" 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 // order of connections the dapp should connect to
dappConnection: [ dappConnection: [
@ -21,4 +38,4 @@ module.exports = {
//} //}
} }
} }
} };