1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-03-03 18:30:32 +00:00

remove mnemonic and password files

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-08-07 16:16:03 -04:00 committed by Andy Tudhope
parent ae49dbaa75
commit 445bd88fbb
6 changed files with 19 additions and 11 deletions

View File

@ -1,3 +1,10 @@
#!/usr/bin/env bash
if [[ "${NODE_ENV}" != "production" ]]; then
export WALLET_MNEMONIC='erupt point century seek certain escape solution flee elegant hard please pen'
export WALLET_PASSWORD='dev_password'
fi
echo "removing old full-build"
rm -rf full-build app.zip
echo "compiling contracts"

View File

@ -1,3 +1,7 @@
if (process.env.WALLET_PASSWORD == undefined) {
throw Error('Env variable WALLET_PASSWORD not defined!')
}
module.exports = {
// applies to all environments
default: {
@ -122,7 +126,7 @@ module.exports = {
accounts: [
{
nodeAccounts: true,
password: 'config/testnet/password',
password: process.env.WALLET_PASSWORD,
},
],
},
@ -137,7 +141,7 @@ module.exports = {
accounts: [
{
nodeAccounts: true,
password: 'config/livenet/password'
password: process.env.WALLET_PASSWORD,
},
],
},

View File

@ -1,5 +1,6 @@
//const wallet = require('./livenet/mnemonic')
const devWallet = require('./development/mnemonic')
if (process.env.WALLET_MNEMONIC == undefined) {
throw Error('Env variable WALLET_MNEMONIC not defined!')
}
module.exports = {
// default applies to all environments
@ -34,7 +35,7 @@ module.exports = {
accounts: [
{
mnemonic: devWallet.mnemonic,
mnemonic: process.env.WALLET_MNEMONIC,
balance: '1534983463450 ether',
},
],
@ -105,7 +106,7 @@ module.exports = {
deployment: {
accounts: [
{
mnemonic: devWallet.mnemonic,
mnemonic: process.env.WALLET_MNEMONIC,
},
],
host: `ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,
@ -138,7 +139,7 @@ module.exports = {
deployment: {
accounts: [
{
mnemonic: devWallet.mnemonic,
mnemonic: process.env.WALLET_MNEMONIC,
},
],
host: `mainnet.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,

View File

@ -1,2 +0,0 @@
module.exports.mnemonic =
'erupt point century seek certain escape solution flee elegant hard please pen'

View File

@ -1 +0,0 @@
dev_password

View File

@ -1 +0,0 @@
test_password