Skip to content

Commit

Permalink
test: manually test qgb tx commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Apr 24, 2024
1 parent 1061c24 commit 618d592
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
16 changes: 15 additions & 1 deletion scripts/single-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,24 @@ sed -i'.bak' 's#discard_abci_responses = true#discard_abci_responses = false#g'
# Override the VotingPeriod from 1 week to 1 minute
sed -i'.bak' 's#"604800s"#"60s"#g' "${CELESTIA_APP_HOME}"/config/genesis.json

# Override the genesis to use app version 1 and then upgrade to app version 2 later.
sed -i'.bak' 's#"app_version": "2"#"app_version": "1"#g' "${CELESTIA_APP_HOME}"/config/genesis.json

# Start celestia-app
echo "Starting celestia-app..."
celestia-appd start \
--home ${CELESTIA_APP_HOME} \
--api.enable \
--grpc.enable \
--grpc-web.enable
--grpc-web.enable \
--v2-upgrade-height 3

# Example QGB tx
# celestia-appd tx qgb register \
# "$(celestia-appd keys show validator --home ${CELESTIA_APP_HOME} --bech val -a)" \
# 0x966e6f22781EF6a6A82BBB4DB3df8E225DfD9488 \
# --from ${KEY_NAME} \
# --home ${CELESTIA_APP_HOME} \
# --fees 30000utia \
# --broadcast-mode block \
# --yes
12 changes: 6 additions & 6 deletions x/blobstream/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"encoding/json"
"fmt"

bscmd "github.com/celestiaorg/celestia-app/v2/x/blobstream/client"

"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -77,16 +79,14 @@ func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *r
}
}

// GetTxCmd returns no command for this module because blobstream was disabled
// in v2.
// GetTxCmd returns the capability module's root tx command.
func (a AppModuleBasic) GetTxCmd() *cobra.Command {
return nil
return bscmd.GetTxCmd()
}

// GetQueryCmd returns no query command for this module because blobstream was
// disabled in v2.
// GetQueryCmd returns the capability module's root query command.
func (AppModuleBasic) GetQueryCmd() *cobra.Command {
return nil
return bscmd.GetQueryCmd()
}

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 618d592

Please sign in to comment.