laconicd/x/nitro/client/cli/query.go
Roy Crihfield 5aa2594073 Integrate go-nitro
- Add nitro server and x/nitro module
    - wire go-nitro p2p through cometbft

- Add distsig server, currently WIP
    - integrate DKG and DSS schemes into ABCI methods

- Remove deprecated features
    - crisis module
    - module invariants

- Update to use newer SDK patterns
    - upgrade sdk to v0.53.x
    - custom address codec
    - expand use of depinject
    - migrate e2e tests to system tests
    - use depinject to set up integration tests
    - change reserved protobuf field name `cerc.registry.v1.Record.type`

- Revise & add documentation
    - TransferCoinsToModuleAccount: clarify function

- Update init.sh script
2025-09-21 11:44:44 +08:00

30 lines
706 B
Go

package cli
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
"git.vdb.to/cerc-io/laconicd/server/nitro"
types "git.vdb.to/cerc-io/laconicd/x/nitro/types"
)
// NewQueryCmd returns a root CLI handler for all x/nitro query commands.
func NewQueryCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: "Querying commands for the auth module",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
cmd.AddCommand(
nitro.GetChannelCmd(),
nitro.ListChannelsCmd(),
nitro.ListPaymentChannelsCmd(),
nitro.IdentityCmd(),
)
return cmd
}