Files
laconicd/x/nitro/client/cli/tx.go
T
roysc 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

31 lines
750 B
Go

package cli
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
"git.vdb.to/cerc-io/laconicd/server/nitro"
"git.vdb.to/cerc-io/laconicd/x/nitro/types"
)
// NewTxCmd returns a root CLI command handler for all x/nitro transaction commands.
func NewTxCmd() *cobra.Command {
nitroTxCmd := &cobra.Command{
Use: types.ModuleName,
Short: "Nitro transaction subcommands",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
nitroTxCmd.AddCommand(
nitro.OpenChannelCmd(),
nitro.CloseChannelCmd(),
nitro.OpenPaymentChannelCmd(),
nitro.ClosePaymentChannelCmd(),
nitro.PayCmd(),
)
return nitroTxCmd
}