From d2f495c819058c54242788f5d81ab10d897f1ad7 Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Fri, 30 Jun 2023 19:40:13 -0600 Subject: [PATCH] fix app short name --- .idea/.gitignore | 8 +++++ .idea/QWOYN.iml | 9 +++++ .idea/inspectionProfiles/Project_Default.xml | 6 ++++ .idea/modules.xml | 8 +++++ .idea/vcs.xml | 6 ++++ cmd/qwoynd/cmd/root.go | 2 +- scripts/start_testnode.sh | 35 ++++++++++++-------- 7 files changed, 59 insertions(+), 15 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/QWOYN.iml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/QWOYN.iml b/.idea/QWOYN.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/QWOYN.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..78985b2 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/cmd/qwoynd/cmd/root.go b/cmd/qwoynd/cmd/root.go index e310e08..3201a81 100644 --- a/cmd/qwoynd/cmd/root.go +++ b/cmd/qwoynd/cmd/root.go @@ -53,7 +53,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { rootCmd := &cobra.Command{ Use: "qwoynd", - Short: "Stargate Cosmos Hub App", + Short: "Qwoyn Network App", PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags()) if err != nil { diff --git a/scripts/start_testnode.sh b/scripts/start_testnode.sh index c82ec9e..0f77087 100755 --- a/scripts/start_testnode.sh +++ b/scripts/start_testnode.sh @@ -7,7 +7,8 @@ exit_with_error() } KeyringBackend=test -Chain=test +Chain=test-1 +GAS_FEE="0uqwoyn" # Get the options while getopts ":kc:" option; do @@ -25,22 +26,24 @@ done # Make sure the path is set correctly export PATH=~/go/bin:$PATH -echo "REGEN Version: `regen version`" +echo "qwoynd Version: `qwoynd version`" -regen keys add validator --keyring-backend ${KeyringBackend} || exit_with_error "Error: Validator add failed" -regen keys add delegator --keyring-backend ${KeyringBackend} || exit_with_error "Error: Delegator add failed" -regen init node --chain-id ${Chain} || exit_with_error "Error: Could not init node" +qwoynd keys add validator --keyring-backend ${KeyringBackend} || exit_with_error "Error: Validator add failed" +qwoynd keys add delegator --keyring-backend ${KeyringBackend} || exit_with_error "Error: Delegator add failed" +qwoynd init node --chain-id ${Chain} || exit_with_error "Error: Could not init node" -# Change the staking token to uregen +# Change the staking token to uqwoyn and change voting period to 1 minute # Note: sed works differently on different platforms -echo "Updating your staking token to uregen in the genesis file..." +echo "Updating your staking token to uqwoyn in the genesis file..." OS=`uname` if [[ $OS == "Linux"* ]]; then echo "Your OS is a Linux variant..." - sed -i "s/stake/uregen/g" ~/.regen/config/genesis.json || exit_with_error "Error: Could not update staking token" + sed -i "s/stake/uqwoyn/g" ~/.qwoynd/config/genesis.json || exit_with_error "Error: Could not update staking token" + sed -i '/minimum-gas-prices =/c\minimum-gas-prices = "'"$GAS_FEE"'"' ~/.qwoynd/config/app.toml || exit_with_error "Error: Could not update min gas fee" + sed -i 's/"voting_period": ".*"/"voting_period": "60s"/' ~/.qwoynd/config/genesis.json || exit_with_error "Error: Could not update voting period" elif [[ $OS == "Darwin"* ]]; then echo "Your OS is Mac OS/darwin..." - sed -i "" "s/stake/uregen/g" ~/.regen/config/genesis.json || exit_with_error "Error: Could not update staking token" + sed -i "" "s/stake/uqwoyn/g" ~/.qwoynd/config/genesis.json || exit_with_error "Error: Could not update staking token" else # Dunno echo "Your OS is not supported" @@ -48,14 +51,18 @@ else fi echo "Adding validator to genesis.json..." -regen add-genesis-account validator 5000000000uregen --keyring-backend ${KeyringBackend} || exit_with_error "Error: Could not add validator to genesis" +qwoynd genesis add-genesis-account validator 5000000000uqwoyn --keyring-backend ${KeyringBackend} || exit_with_error "Error: Could not add validator to genesis" echo "Adding delegator to genesis.json..." -regen add-genesis-account delegator 2000000000uregen --keyring-backend ${KeyringBackend} || exit_with_error "Error: Could not add delegator to genesis" +qwoynd genesis add-genesis-account delegator 2000000000uqwoyn --keyring-backend ${KeyringBackend} || exit_with_error "Error: Could not add delegator to genesis" + +echo "Adding qwoyn1qn8mzcel2svf6s47hltuxtkl8e7w07tjaaleuj to genesis.json..." +qwoynd genesis add-genesis-account qwoyn1qn8mzcel2svf6s47hltuxtkl8e7w07tjaaleuj 1000000uqwoyn --keyring-backend ${KeyringBackend} || exit_with_error "Error: Could not add delegator to genesis" + echo "Creating genesis transaction..." -regen gentx validator 1000000uregen --chain-id ${Chain} --keyring-backend ${KeyringBackend} || exit_with_error "Error: Genesis transaction failed" +qwoynd genesis gentx validator 1000000000uqwoyn --chain-id ${Chain} --keyring-backend ${KeyringBackend} || exit_with_error "Error: Genesis transaction failed" echo "Adding genesis transaction to genesis.json..." -regen collect-gentxs || exit_with_error "Error: Could not add transaction to genesis" +qwoynd genesis collect-gentxs || exit_with_error "Error: Could not add transaction to genesis" -echo "If there were no errors above, you can now type 'regen start' to start your node" +echo "If there were no errors above, you can now type 'qwoynd start' to start your node"