cli

package
v0.50.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 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 added in v0.46.2

func NewCmdDraftProposal() *cobra.Command

NewCmdDraftProposal let a user generate a draft proposal.

func QueryCmd

func QueryCmd(name string) *cobra.Command

QueryCmd returns the cli query commands for the group module.

func QueryGroupInfoCmd

func QueryGroupInfoCmd() *cobra.Command

QueryGroupInfoCmd creates a CLI command for Query/GroupInfo.

func QueryGroupMembersCmd

func QueryGroupMembersCmd() *cobra.Command

QueryGroupMembersCmd creates a CLI command for Query/GroupMembers.

func QueryGroupPoliciesByAdminCmd

func QueryGroupPoliciesByAdminCmd() *cobra.Command

QueryGroupPoliciesByAdminCmd creates a CLI command for Query/GroupPoliciesByAdmin.

func QueryGroupPoliciesByGroupCmd

func QueryGroupPoliciesByGroupCmd() *cobra.Command

QueryGroupPoliciesByGroupCmd creates a CLI command for Query/GroupPoliciesByGroup.

func QueryGroupPolicyInfoCmd

func QueryGroupPolicyInfoCmd() *cobra.Command

QueryGroupPolicyInfoCmd creates a CLI command for Query/GroupPolicyInfo.

func QueryGroupsByAdminCmd

func QueryGroupsByAdminCmd() *cobra.Command

QueryGroupsByAdminCmd creates a CLI command for Query/GroupsByAdmin.

func QueryGroupsByMemberCmd

func QueryGroupsByMemberCmd() *cobra.Command

QueryGroupsByMemberCmd creates a CLI command for Query/GroupsByMember.

func QueryGroupsCmd added in v0.46.12

func QueryGroupsCmd() *cobra.Command

QueryGroupsCmd creates a CLI command for Query/Groups.

func QueryProposalCmd

func QueryProposalCmd() *cobra.Command

QueryProposalCmd creates a CLI command for Query/Proposal.

func QueryProposalsByGroupPolicyCmd

func QueryProposalsByGroupPolicyCmd() *cobra.Command

QueryProposalsByGroupPolicyCmd creates a CLI command for Query/ProposalsByGroupPolicy.

func QueryTallyResultCmd

func QueryTallyResultCmd() *cobra.Command

QueryTallyResultCmd creates a CLI command for Query/TallyResult.

func QueryVoteByProposalVoterCmd

func QueryVoteByProposalVoterCmd() *cobra.Command

QueryVoteByProposalVoterCmd creates a CLI command for Query/VoteByProposalVoter.

func QueryVotesByProposalCmd

func QueryVotesByProposalCmd() *cobra.Command

QueryVotesByProposalCmd creates a CLI command for Query/VotesByProposal.

func QueryVotesByVoterCmd

func QueryVotesByVoterCmd() *cobra.Command

QueryVotesByVoterCmd creates a CLI command for Query/VotesByVoter.

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 added in v0.46.2

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