meritocracy/config/contracts.js

101 lines
3.7 KiB
JavaScript
Raw Normal View History

2019-02-02 16:04:55 +00:00
module.exports = {
// default applies to all environments
default: {
// Blockchain node to deploy the contracts
deployment: {
host: "localhost", // Host of the blockchain node
port: 8545, // Port of the blockchain node
2019-02-12 10:48:09 +00:00
type: "rpc", // Type of connection (ws or rpc),
2019-02-02 16:04:55 +00:00
// Accounts to use instead of the default account to populate your wallet
2019-02-12 10:48:09 +00:00
accounts: [
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
]
2019-02-02 16:04:55 +00:00
},
// order of connections the dapp should connect to
dappConnection: [
"$WEB3", // uses pre existing web3 object if available (e.g in Mist)
"ws://localhost:8546",
"http://localhost:8545"
],
gas: "auto",
contracts: {
"MiniMeToken": { "deploy": false },
"MiniMeTokenFactory": {
},
"SNT": {
"instanceOf": "MiniMeToken",
"args": [
"$MiniMeTokenFactory",
"0x0000000000000000000000000000000000000000",
0,
"TestMiniMeToken",
18,
"STT",
true
]
},
"Meritocracy": {
"args": [ "$SNT", 66]
}
}
},
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
dappConnection: [
"ws://localhost:8546",
"http://localhost:8545",
"$WEB3" // uses pre existing web3 object if available (e.g in Mist)
],
deployment: {
// The order here corresponds to the order of `web3.eth.getAccounts`, so the first one is the `defaultAccount`
accounts: [
2019-02-12 10:48:09 +00:00
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
]
2019-02-02 16:04:55 +00:00
},
2019-02-12 11:03:32 +00:00
"afterDeploy": ["SNT.methods.generateTokens('$accounts[0]', '100000000000000000000').send()"]
2019-02-02 16:04:55 +00:00
},
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
};