add comments to contracts templates
This commit is contained in:
parent
78f8dfdd60
commit
bf0cd2866c
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 = {
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
@ -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 = {
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
Loading…
Reference in New Issue