package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
DefaultConfig returns the default config for group.
DefaultTallyResult returns a TallyResult with all counts set to 0.
NewGenesisState creates a new genesis state with default values.
NewGroupPolicyInfo creates a new GroupPolicyInfo instance.
No description provided by the author
NewMsgCreateGroupPolicy creates a new MsgCreateGroupPolicy.
NewMsgCreateGroupWithPolicy creates a new MsgCreateGroupWithPolicy.
NewMsgSubmitProposalRequest creates a new MsgSubmitProposal.
No description provided by the author
NewPercentageDecisionPolicy creates a new percentage DecisionPolicy.
No description provided by the author
NewThresholdDecisionPolicy creates a threshold DecisionPolicy.
No description provided by the author
RegisterLegacyAminoCodec registers all the necessary group module concrete types and interfaces with the provided codec reference.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
VoteOptionFromString returns a VoteOption from a string.
# Constants
Try to execute the proposal immediately.
An empty value means that there should be a separate MsgExec request for the proposal to execute.
ModuleName is the module name constant used in many places.
The executor returned an error and proposed action didn't update state.
We have not yet run the executor.
The executor was successful and proposed action updated state.
An empty value is not allowed.
Final result of the tally.
Final result of the tally.
Until a final tally has happened the status is unfinalized.
An empty value is invalid and not allowed.
Final status of a proposal when the group was modified before the final tally.
Final status of a proposal when the final tally was executed.
Initial status of a proposal when persisted.
An empty value is invalid and not allowed.
A proposal can be deleted before the voting start time by the owner.
RouterKey defines the module's message routing key.
StoreKey defines the primary module store key.
VOTE_OPTION_ABSTAIN defines an abstain vote option.
VOTE_OPTION_NO defines a no vote option.
VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
VOTE_OPTION_YES defines a yes vote option.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Config is a config struct used for intialising the group module to avoid using globals.
No description provided by the author
DecisionPolicyWindows defines the different windows for voting and execution.
EventCreateGroup is an event emitted when a group is created.
EventCreateGroupPolicy is an event emitted when a group policy is created.
EventExec is an event emitted when a proposal is executed.
EventLeaveGroup is an event emitted when group member leaves the group.
EventSubmitProposal is an event emitted when a proposal is created.
EventUpdateGroup is an event emitted when a group is updated.
EventUpdateGroupPolicy is an event emitted when a group policy is updated.
EventVote is an event emitted when a voter votes on a proposal.
EventWithdrawProposal is an event emitted when a proposal is withdrawn.
GenesisState defines the group module's genesis state.
GroupInfo represents the high-level on-chain information for a group.
GroupMember represents the relationship between a group and a member.
GroupPolicyInfo represents the high-level on-chain information for a group policy.
Member represents a group member with an account address, non-zero weight and metadata.
Members defines a repeated slice of Member objects.
MsgCreateGroup is the Msg/CreateGroup request type.
MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type.
MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.
MsgCreateGroupResponse is the Msg/CreateGroup response type.
MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.
MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.
MsgExec is the Msg/Exec request type.
MsgExecResponse is the Msg/Exec request type.
MsgLeaveGroup is the Msg/LeaveGroup request type.
MsgLeaveGroupResponse is the Msg/LeaveGroup response type.
MsgSubmitProposal is the Msg/SubmitProposal request type.
MsgSubmitProposalResponse is the Msg/SubmitProposal response type.
MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.
MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.
MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.
MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.
MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.
MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.
MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.
MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.
MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.
MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.
MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.
MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.
MsgVote is the Msg/Vote request type.
MsgVoteResponse is the Msg/Vote response type.
MsgWithdrawProposal is the Msg/WithdrawProposal request type.
MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.
PercentageDecisionPolicy implements the DecisionPolicy interface.
Proposal defines a group proposal.
QueryGroupInfoRequest is the Query/GroupInfo request type.
QueryGroupInfoResponse is the Query/GroupInfo response type.
QueryGroupMembersRequest is the Query/GroupMembers request type.
QueryGroupMembersResponse is the Query/GroupMembersResponse response type.
QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.
QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.
QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.
QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.
QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.
QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.
QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.
QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.
QueryGroupsByMemberRequest is the Query/GroupsByMember request type.
QueryGroupsByMemberResponse is the Query/GroupsByMember response type.
QueryProposalRequest is the Query/Proposal request type.
QueryProposalResponse is the Query/Proposal response type.
QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type.
QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.
QueryTallyResultRequest is the Query/TallyResult request type.
QueryTallyResultResponse is the Query/TallyResult response type.
QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.
QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.
QueryVotesByProposalRequest is the Query/VotesByProposal request type.
QueryVotesByProposalResponse is the Query/VotesByProposal response type.
QueryVotesByVoterRequest is the Query/VotesByVoter request type.
QueryVotesByVoterResponse is the Query/VotesByVoter response type.
TallyResult represents the sum of weighted votes for each vote option.
ThresholdDecisionPolicy implements the DecisionPolicy interface.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
Vote represents a vote for a proposal.
# Interfaces
No description provided by the author
BankKeeper defines the expected interface needed to retrieve account balances.
DecisionPolicy is the persistent set of rules to determine the result of election on a proposal.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
# Type aliases
No description provided by the author
Exec defines modes of execution of a proposal on creation or on new vote.
ProposalExecutorResult defines types of proposal executor results.
ProposalResult defines types of proposal results.
ProposalStatus defines proposal statuses.
VoteOption enumerates the valid vote options for a given proposal.