forked from cerc-io/laconicd
- 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
31 lines
750 B
Go
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
|
|
}
|