forked from cerc-io/laconicd-deprecated
ignore solidity test
This commit is contained in:
@@ -5,22 +5,22 @@ CHAINID="ethermint_9000-1"
|
||||
MONIKER="localtestnet"
|
||||
|
||||
# stop and remove existing daemon and client data and process(es)
|
||||
rm -rf ~/.ethermint*
|
||||
pkill -f "ethermint*"
|
||||
rm -rf ~/.laconic*
|
||||
pkill -f "laconic*"
|
||||
|
||||
make build-ethermint
|
||||
make build-laconic
|
||||
|
||||
# if $KEY exists it should be override
|
||||
"$PWD"/build/laconicd keys add $KEY --keyring-backend test --algo "eth_secp256k1"
|
||||
|
||||
# Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer)
|
||||
# Set moniker and chain-id for laconic (Moniker can be anything, chain-id must be an integer)
|
||||
"$PWD"/build/laconicd init $MONIKER --chain-id $CHAINID
|
||||
|
||||
# Change parameter token denominations to aphoton
|
||||
cat $HOME/.ethermint/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="stake"' > $HOME/.ethermint/config/tmp_genesis.json && mv $HOME/.ethermint/config/tmp_genesis.json $HOME/.ethermint/config/genesis.json
|
||||
cat $HOME/.ethermint/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="aphoton"' > $HOME/.ethermint/config/tmp_genesis.json && mv $HOME/.ethermint/config/tmp_genesis.json $HOME/.ethermint/config/genesis.json
|
||||
cat $HOME/.ethermint/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="aphoton"' > $HOME/.ethermint/config/tmp_genesis.json && mv $HOME/.ethermint/config/tmp_genesis.json $HOME/.ethermint/config/genesis.json
|
||||
cat $HOME/.ethermint/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="aphoton"' > $HOME/.ethermint/config/tmp_genesis.json && mv $HOME/.ethermint/config/tmp_genesis.json $HOME/.ethermint/config/genesis.json
|
||||
cat $HOME/.laconic/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="stake"' > $HOME/.laconic/config/tmp_genesis.json && mv $HOME/.laconic/config/tmp_genesis.json $HOME/.laconic/config/genesis.json
|
||||
cat $HOME/.laconic/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="aphoton"' > $HOME/.laconic/config/tmp_genesis.json && mv $HOME/.laconic/config/tmp_genesis.json $HOME/.laconic/config/genesis.json
|
||||
cat $HOME/.laconic/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="aphoton"' > $HOME/.laconic/config/tmp_genesis.json && mv $HOME/.laconic/config/tmp_genesis.json $HOME/.laconic/config/genesis.json
|
||||
cat $HOME/.laconic/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="aphoton"' > $HOME/.laconic/config/tmp_genesis.json && mv $HOME/.laconic/config/tmp_genesis.json $HOME/.laconic/config/genesis.json
|
||||
|
||||
# Allocate genesis accounts (cosmos formatted addresses)
|
||||
"$PWD"/build/laconicd add-genesis-account "$("$PWD"/build/laconicd keys show "$KEY" -a --keyring-backend test)" 100000000000000000000aphoton,10000000000000000000stake --keyring-backend test
|
||||
@@ -60,4 +60,4 @@ cd tests/solidity/suites/basic/ && go get && go run main.go $ACCT
|
||||
# kill test laconicd
|
||||
echo "going to shutdown laconicd in 3 seconds..."
|
||||
sleep 3
|
||||
pkill -f "ethermint*"
|
||||
pkill -f "laconic*"
|
||||
@@ -34,6 +34,7 @@ usage() {
|
||||
echo "-q <number> -- Quantity of nodes to run. eg: 3"
|
||||
echo "-z <number> -- Quantity of nodes to run tests against eg: 3"
|
||||
echo "-s <number> -- Sleep between operations in secs. eg: 5"
|
||||
echo "-m <string> -- Mode for testing. eg: rpc"
|
||||
echo "-r <string> -- Remove test dir after, eg: true, default is false"
|
||||
exit 1
|
||||
}
|
||||
@@ -54,7 +55,7 @@ done
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
DATA_DIR=$(mktemp -d -t ethermint-datadir.XXXXX)
|
||||
DATA_DIR=$(mktemp -d -t laconic-datadir.XXXXX)
|
||||
|
||||
if [[ ! "$DATA_DIR" ]]; then
|
||||
echo "Could not create $DATA_DIR"
|
||||
|
||||
@@ -3,7 +3,7 @@ export GOPATH=~/go
|
||||
export PATH=$PATH:$GOPATH/bin
|
||||
|
||||
# remove existing daemon
|
||||
rm -rf ~/.laconicd
|
||||
rm -rf ~/.laconic*
|
||||
|
||||
# build ethermint binary
|
||||
make install
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "prepare genesis: Run validate-genesis to ensure everything worked and that the genesis file is setup correctly"
|
||||
./ethermintd validate-genesis --home /ethermint
|
||||
laconicd validate-genesis --home /laconic
|
||||
|
||||
echo "starting ethermint node $ID in background ..."
|
||||
./ethermintd start \
|
||||
--home /ethermint \
|
||||
laconicd start \
|
||||
--home /laconic \
|
||||
--keyring-backend test
|
||||
|
||||
echo "started ethermint node"
|
||||
|
||||
+3
-3
@@ -61,9 +61,9 @@ if [[ ! "$DATA_CLI_DIR" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Compile ethermint
|
||||
echo "compiling ethermint"
|
||||
make build-ethermint
|
||||
# Compile laconic
|
||||
echo "compiling laconic"
|
||||
make build
|
||||
|
||||
# PID array declaration
|
||||
arr=()
|
||||
|
||||
Reference in New Issue
Block a user