mirror of
https://github.com/dap-ps/discover.git
synced 2025-03-04 02:40:38 +00:00
remove mnemonic and password files
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
ae49dbaa75
commit
445bd88fbb
7
build.sh
7
build.sh
@ -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"
|
echo "removing old full-build"
|
||||||
rm -rf full-build app.zip
|
rm -rf full-build app.zip
|
||||||
echo "compiling contracts"
|
echo "compiling contracts"
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
if (process.env.WALLET_PASSWORD == undefined) {
|
||||||
|
throw Error('Env variable WALLET_PASSWORD not defined!')
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// applies to all environments
|
// applies to all environments
|
||||||
default: {
|
default: {
|
||||||
@ -122,7 +126,7 @@ module.exports = {
|
|||||||
accounts: [
|
accounts: [
|
||||||
{
|
{
|
||||||
nodeAccounts: true,
|
nodeAccounts: true,
|
||||||
password: 'config/testnet/password',
|
password: process.env.WALLET_PASSWORD,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -137,7 +141,7 @@ module.exports = {
|
|||||||
accounts: [
|
accounts: [
|
||||||
{
|
{
|
||||||
nodeAccounts: true,
|
nodeAccounts: true,
|
||||||
password: 'config/livenet/password'
|
password: process.env.WALLET_PASSWORD,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
//const wallet = require('./livenet/mnemonic')
|
if (process.env.WALLET_MNEMONIC == undefined) {
|
||||||
const devWallet = require('./development/mnemonic')
|
throw Error('Env variable WALLET_MNEMONIC not defined!')
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// default applies to all environments
|
// default applies to all environments
|
||||||
@ -34,7 +35,7 @@ module.exports = {
|
|||||||
|
|
||||||
accounts: [
|
accounts: [
|
||||||
{
|
{
|
||||||
mnemonic: devWallet.mnemonic,
|
mnemonic: process.env.WALLET_MNEMONIC,
|
||||||
balance: '1534983463450 ether',
|
balance: '1534983463450 ether',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -105,7 +106,7 @@ module.exports = {
|
|||||||
deployment: {
|
deployment: {
|
||||||
accounts: [
|
accounts: [
|
||||||
{
|
{
|
||||||
mnemonic: devWallet.mnemonic,
|
mnemonic: process.env.WALLET_MNEMONIC,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
host: `ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,
|
host: `ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,
|
||||||
@ -138,7 +139,7 @@ module.exports = {
|
|||||||
deployment: {
|
deployment: {
|
||||||
accounts: [
|
accounts: [
|
||||||
{
|
{
|
||||||
mnemonic: devWallet.mnemonic,
|
mnemonic: process.env.WALLET_MNEMONIC,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
host: `mainnet.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,
|
host: `mainnet.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
module.exports.mnemonic =
|
|
||||||
'erupt point century seek certain escape solution flee elegant hard please pen'
|
|
@ -1 +0,0 @@
|
|||||||
dev_password
|
|
@ -1 +0,0 @@
|
|||||||
test_password
|
|
Loading…
x
Reference in New Issue
Block a user