cli

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagExec               = "exec"
	ExecTry                = "try"
	FlagGroupPolicyAsAdmin = "group-policy-as-admin"
)

Variables

This section is empty.

Functions

func MsgCreateGroupCmd

func MsgCreateGroupCmd() *cobra.Command

MsgCreateGroupCmd creates a CLI command for Msg/CreateGroup.

func MsgCreateGroupPolicyCmd

func MsgCreateGroupPolicyCmd() *cobra.Command

MsgCreateGroupPolicyCmd creates a CLI command for Msg/CreateGroupPolicy.

func MsgCreateGroupWithPolicyCmd

func MsgCreateGroupWithPolicyCmd() *cobra.Command

MsgCreateGroupWithPolicyCmd creates a CLI command for Msg/CreateGroupWithPolicy.

func MsgExecCmd

func MsgExecCmd() *cobra.Command

MsgExecCmd creates a CLI command for Msg/Exec.

func MsgLeaveGroupCmd

func MsgLeaveGroupCmd() *cobra.Command

MsgLeaveGroupCmd creates a CLI command for Msg/LeaveGroup.

func MsgSubmitProposalCmd

func MsgSubmitProposalCmd() *cobra.Command

MsgSubmitProposalCmd creates a CLI command for Msg/SubmitProposal.

func MsgUpdateGroupAdminCmd

func MsgUpdateGroupAdminCmd() *cobra.Command

MsgUpdateGroupAdminCmd creates a CLI command for Msg/UpdateGroupAdmin.

func MsgUpdateGroupMembersCmd

func MsgUpdateGroupMembersCmd() *cobra.Command

MsgUpdateGroupMembersCmd creates a CLI command for Msg/UpdateGroupMembers.

func MsgUpdateGroupMetadataCmd

func MsgUpdateGroupMetadataCmd() *cobra.Command

MsgUpdateGroupMetadataCmd creates a CLI command for Msg/UpdateGroupMetadata.

func MsgUpdateGroupPolicyAdminCmd

func MsgUpdateGroupPolicyAdminCmd() *cobra.Command

MsgUpdateGroupPolicyAdminCmd creates a CLI command for Msg/UpdateGroupPolicyAdmin.

func MsgUpdateGroupPolicyDecisionPolicyCmd

func MsgUpdateGroupPolicyDecisionPolicyCmd(ac address.Codec) *cobra.Command

MsgUpdateGroupPolicyDecisionPolicyCmd creates a CLI command for Msg/UpdateGroupPolicyDecisionPolicy.

func MsgUpdateGroupPolicyMetadataCmd

func MsgUpdateGroupPolicyMetadataCmd() *cobra.Command

MsgUpdateGroupPolicyMetadataCmd creates a CLI command for Msg/UpdateGroupPolicyMetadata.

func MsgVoteCmd

func MsgVoteCmd() *cobra.Command

MsgVoteCmd creates a CLI command for Msg/Vote.

func MsgWithdrawProposalCmd

func MsgWithdrawProposalCmd() *cobra.Command

MsgWithdrawProposalCmd creates a CLI command for Msg/WithdrawProposal.

func NewCmdDraftProposal

func NewCmdDraftProposal() *cobra.Command

NewCmdDraftProposal let a user generate a draft proposal.

func TxCmd

func TxCmd(name string, ac address.Codec) *cobra.Command

TxCmd returns a root CLI command handler for all x/group transaction commands.

Types

type Proposal

type Proposal struct {
	GroupPolicyAddress string `json:"group_policy_address"`
	// Messages defines an array of sdk.Msgs proto-JSON-encoded as Anys.
	Messages  []json.RawMessage `json:"messages,omitempty"`
	Metadata  string            `json:"metadata"`
	Proposers []string          `json:"proposers"`
	Title     string            `json:"title"`
	Summary   string            `json:"summary"`
}

Proposal defines a Msg-based group proposal for CLI purposes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL