mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-28 08:10:53 +00:00
* distributed & result msgs * added DistributionResult * added RDDL token conversion methods * set proper validatoraddress within the testcases for e2e/dao * set proper root dir for test cases * fixed some wordings --------- Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
38 lines
990 B
Go
38 lines
990 B
Go
package cli
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
|
// "github.com/cosmos/cosmos-sdk/client/flags"
|
|
"github.com/planetmint/planetmint-go/x/dao/types"
|
|
)
|
|
|
|
var (
|
|
DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())
|
|
)
|
|
|
|
// GetTxCmd returns the transaction commands for this module
|
|
func GetTxCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: types.ModuleName,
|
|
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
RunE: client.ValidateCmd,
|
|
}
|
|
|
|
cmd.AddCommand(CmdReissueRDDLProposal())
|
|
cmd.AddCommand(CmdMintToken())
|
|
cmd.AddCommand(CmdReissueRDDLResult())
|
|
cmd.AddCommand(CmdDistributionResult())
|
|
cmd.AddCommand(CmdDistributionRequest())
|
|
cmd.AddCommand(CmdUpdateParams())
|
|
// this line is used by starport scaffolding # 1
|
|
|
|
return cmd
|
|
}
|