evmos.proto.autogen.py.cosmos.group.v1
Classes
|
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. |
|
EventProposalPruned is an event emitted when a proposal is pruned. |
|
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. |
|
Exec defines modes of execution of a proposal on creation or on new vote. |
|
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, metadata and added_at timestamp. |
|
MemberRequest represents a group member to be used in Msg server requests. |
|
|
|
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 is a decision policy where a proposal passes when it satisfies the two following conditions: 1. |
|
Proposal defines a group proposal. |
|
ProposalExecutorResult defines types of proposal executor results. |
|
ProposalStatus defines proposal statuses. |
|
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. |
|
QueryGroupsRequest is the Query/Groups request type. |
|
QueryGroupsResponse is the Query/Groups 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 is a decision policy where a proposal passes when it satisfies the two following conditions: 1. |
|
Vote represents a vote for a proposal.string metadata |
|
VoteOption enumerates the valid vote options for a given proposal. |
- class evmos.proto.autogen.py.cosmos.group.v1.DecisionPolicyWindows(voting_period: ~datetime.timedelta = <object object>, min_execution_period: ~datetime.timedelta = <object object>)[source]
Bases:
MessageDecisionPolicyWindows defines the different windows for voting and execution.
- min_execution_period: timedelta = <object object>
min_execution_period is the minimum duration after the proposal submission where members can start sending MsgExec. This means that the window for sending a MsgExec transaction is:
[ submission + min_execution_period ; submission + voting_period + max_execution_period]where max_execution_period is a app-specific config, defined in the keeper. If not set, min_execution_period will default to 0. Please make sure to set amin_execution_periodthat is smaller thanvoting_period + max_execution_periods, or else the above execution window is empty, meaning that all proposals created with this decision policy won’t be able to be executed.
- class evmos.proto.autogen.py.cosmos.group.v1.EventCreateGroup(group_id: int = <object object>)[source]
Bases:
MessageEventCreateGroup is an event emitted when a group is created.
- class evmos.proto.autogen.py.cosmos.group.v1.EventCreateGroupPolicy(address: str = <object object>)[source]
Bases:
MessageEventCreateGroupPolicy is an event emitted when a group policy is created.
- class evmos.proto.autogen.py.cosmos.group.v1.EventExec(proposal_id: int = <object object>, result: ~evmos.proto.autogen.py.cosmos.group.v1.ProposalExecutorResult = <object object>, logs: str = <object object>)[source]
Bases:
MessageEventExec is an event emitted when a proposal is executed.
- result: ProposalExecutorResult = <object object>
result is the proposal execution result.
- class evmos.proto.autogen.py.cosmos.group.v1.EventLeaveGroup(group_id: int = <object object>, address: str = <object object>)[source]
Bases:
MessageEventLeaveGroup is an event emitted when group member leaves the group.
- class evmos.proto.autogen.py.cosmos.group.v1.EventProposalPruned(proposal_id: int = <object object>, status: ~evmos.proto.autogen.py.cosmos.group.v1.ProposalStatus = <object object>, tally_result: ~evmos.proto.autogen.py.cosmos.group.v1.TallyResult = <object object>)[source]
Bases:
MessageEventProposalPruned is an event emitted when a proposal is pruned.
- status: ProposalStatus = <object object>
status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN).
- tally_result: TallyResult = <object object>
tally_result is the proposal tally result (when applicable).
- class evmos.proto.autogen.py.cosmos.group.v1.EventSubmitProposal(proposal_id: int = <object object>)[source]
Bases:
MessageEventSubmitProposal is an event emitted when a proposal is created.
- class evmos.proto.autogen.py.cosmos.group.v1.EventUpdateGroup(group_id: int = <object object>)[source]
Bases:
MessageEventUpdateGroup is an event emitted when a group is updated.
- class evmos.proto.autogen.py.cosmos.group.v1.EventUpdateGroupPolicy(address: str = <object object>)[source]
Bases:
MessageEventUpdateGroupPolicy is an event emitted when a group policy is updated.
- class evmos.proto.autogen.py.cosmos.group.v1.EventVote(proposal_id: int = <object object>)[source]
Bases:
MessageEventVote is an event emitted when a voter votes on a proposal.
- class evmos.proto.autogen.py.cosmos.group.v1.EventWithdrawProposal(proposal_id: int = <object object>)[source]
Bases:
MessageEventWithdrawProposal is an event emitted when a proposal is withdrawn.
- class evmos.proto.autogen.py.cosmos.group.v1.Exec(*values)[source]
Bases:
EnumExec defines modes of execution of a proposal on creation or on new vote.
- EXEC_TRY = 1
Try to execute the proposal immediately. If the proposal is not allowed per the DecisionPolicy, the proposal will still be open and could be executed at a later point.
- EXEC_UNSPECIFIED = 0
An empty value means that there should be a separate MsgExec request for the proposal to execute.
- class evmos.proto.autogen.py.cosmos.group.v1.GenesisState(group_seq: int = <object object>, groups: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupInfo] = <object object>, group_members: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupMember] = <object object>, group_policy_seq: int = <object object>, group_policies: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupPolicyInfo] = <object object>, proposal_seq: int = <object object>, proposals: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.Proposal] = <object object>, votes: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.Vote] = <object object>)[source]
Bases:
MessageGenesisState defines the group module’s genesis state.
- group_members: List[GroupMember] = <object object>
group_members is the list of groups members.
- group_policies: List[GroupPolicyInfo] = <object object>
group_policies is the list of group policies info.
- group_policy_seq: int = <object object>
group_policy_seq is the group policy table orm.Sequence, it is used to generate the next group policy account address.
- group_seq: int = <object object>
group_seq is the group table orm.Sequence, it is used to get the next group ID.
- class evmos.proto.autogen.py.cosmos.group.v1.GroupInfo(id: int = <object object>, admin: str = <object object>, metadata: str = <object object>, version: int = <object object>, total_weight: str = <object object>, created_at: ~datetime.datetime = <object object>)[source]
Bases:
MessageGroupInfo represents the high-level on-chain information for a group.
- created_at: datetime = <object object>
created_at is a timestamp specifying when a group was created.
- metadata: str = <object object>
metadata is any arbitrary metadata to attached to the group. the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1
- version: int = <object object>
version is used to track changes to a group’s membership structure that would break existing proposals. Whenever any members weight is changed, or any member is added or removed this version is incremented and will cause proposals based on older versions of this group to fail
- class evmos.proto.autogen.py.cosmos.group.v1.GroupMember(group_id: int = <object object>, member: ~evmos.proto.autogen.py.cosmos.group.v1.Member = <object object>)[source]
Bases:
MessageGroupMember represents the relationship between a group and a member.
- class evmos.proto.autogen.py.cosmos.group.v1.GroupPolicyInfo(address: str = <object object>, group_id: int = <object object>, admin: str = <object object>, metadata: str = <object object>, version: int = <object object>, decision_policy: ~betterproto.lib.google.protobuf.Any = <object object>, created_at: ~datetime.datetime = <object object>)[source]
Bases:
MessageGroupPolicyInfo represents the high-level on-chain information for a group policy.
- created_at: datetime = <object object>
created_at is a timestamp specifying when a group policy was created.
- decision_policy: Any = <object object>
decision_policy specifies the group policy’s decision policy.
- metadata: str = <object object>
metadata is any arbitrary metadata attached to the group policy. the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
- class evmos.proto.autogen.py.cosmos.group.v1.Member(address: str = <object object>, weight: str = <object object>, metadata: str = <object object>, added_at: ~datetime.datetime = <object object>)[source]
Bases:
MessageMember represents a group member with an account address, non-zero weight, metadata and added_at timestamp.
- class evmos.proto.autogen.py.cosmos.group.v1.MemberRequest(address: str = <object object>, weight: str = <object object>, metadata: str = <object object>)[source]
Bases:
MessageMemberRequest represents a group member to be used in Msg server requests. Contrary to
Members, it doesn’t have anyadded_atfield since this field cannot be set as part of requests.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgBase[source]
Bases:
ServiceBase- async create_group(msg_create_group: MsgCreateGroup) MsgCreateGroupResponse[source]
- async create_group_policy(msg_create_group_policy: MsgCreateGroupPolicy) MsgCreateGroupPolicyResponse[source]
- async create_group_with_policy(msg_create_group_with_policy: MsgCreateGroupWithPolicy) MsgCreateGroupWithPolicyResponse[source]
- async exec(msg_exec: MsgExec) MsgExecResponse[source]
- async leave_group(msg_leave_group: MsgLeaveGroup) MsgLeaveGroupResponse[source]
- async submit_proposal(msg_submit_proposal: MsgSubmitProposal) MsgSubmitProposalResponse[source]
- async update_group_admin(msg_update_group_admin: MsgUpdateGroupAdmin) MsgUpdateGroupAdminResponse[source]
- async update_group_members(msg_update_group_members: MsgUpdateGroupMembers) MsgUpdateGroupMembersResponse[source]
- async update_group_metadata(msg_update_group_metadata: MsgUpdateGroupMetadata) MsgUpdateGroupMetadataResponse[source]
- async update_group_policy_admin(msg_update_group_policy_admin: MsgUpdateGroupPolicyAdmin) MsgUpdateGroupPolicyAdminResponse[source]
- async update_group_policy_decision_policy(msg_update_group_policy_decision_policy: MsgUpdateGroupPolicyDecisionPolicy) MsgUpdateGroupPolicyDecisionPolicyResponse[source]
- async update_group_policy_metadata(msg_update_group_policy_metadata: MsgUpdateGroupPolicyMetadata) MsgUpdateGroupPolicyMetadataResponse[source]
- async vote(msg_vote: MsgVote) MsgVoteResponse[source]
- async withdraw_proposal(msg_withdraw_proposal: MsgWithdrawProposal) MsgWithdrawProposalResponse[source]
- class evmos.proto.autogen.py.cosmos.group.v1.MsgCreateGroup(admin: str = <object object>, members: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.MemberRequest] = <object object>, metadata: str = <object object>)[source]
Bases:
MessageMsgCreateGroup is the Msg/CreateGroup request type.
- members: List[MemberRequest] = <object object>
members defines the group members.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgCreateGroupPolicy(admin: str = <object object>, group_id: int = <object object>, metadata: str = <object object>, decision_policy: ~betterproto.lib.google.protobuf.Any = <object object>)[source]
Bases:
MessageMsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type.
- decision_policy: Any = <object object>
decision_policy specifies the group policy’s decision policy.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgCreateGroupPolicyResponse(address: str = <object object>)[source]
Bases:
MessageMsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgCreateGroupResponse(group_id: int = <object object>)[source]
Bases:
MessageMsgCreateGroupResponse is the Msg/CreateGroup response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgCreateGroupWithPolicy(admin: str = <object object>, members: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.MemberRequest] = <object object>, group_metadata: str = <object object>, group_policy_metadata: str = <object object>, group_policy_as_admin: bool = <object object>, decision_policy: ~betterproto.lib.google.protobuf.Any = <object object>)[source]
Bases:
MessageMsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.
- decision_policy: Any = <object object>
decision_policy specifies the group policy’s decision policy.
- group_metadata: str = <object object>
group_metadata is any arbitrary metadata attached to the group.
- group_policy_as_admin: bool = <object object>
group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group and group policy admin.
- group_policy_metadata: str = <object object>
group_policy_metadata is any arbitrary metadata attached to the group policy.
- members: List[MemberRequest] = <object object>
members defines the group members.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgCreateGroupWithPolicyResponse(group_id: int = <object object>, group_policy_address: str = <object object>)[source]
Bases:
MessageMsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgExec(proposal_id: int = <object object>, executor: str = <object object>)[source]
Bases:
MessageMsgExec is the Msg/Exec request type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgExecResponse(result: ~evmos.proto.autogen.py.cosmos.group.v1.ProposalExecutorResult = <object object>)[source]
Bases:
MessageMsgExecResponse is the Msg/Exec request type.
- result: ProposalExecutorResult = <object object>
result is the final result of the proposal execution.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgLeaveGroup(address: str = <object object>, group_id: int = <object object>)[source]
Bases:
MessageMsgLeaveGroup is the Msg/LeaveGroup request type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgLeaveGroupResponse[source]
Bases:
MessageMsgLeaveGroupResponse is the Msg/LeaveGroup response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]
Bases:
ServiceStub- async create_group(msg_create_group: MsgCreateGroup, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgCreateGroupResponse[source]
- async create_group_policy(msg_create_group_policy: MsgCreateGroupPolicy, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgCreateGroupPolicyResponse[source]
- async create_group_with_policy(msg_create_group_with_policy: MsgCreateGroupWithPolicy, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgCreateGroupWithPolicyResponse[source]
- async exec(msg_exec: MsgExec, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgExecResponse[source]
- async leave_group(msg_leave_group: MsgLeaveGroup, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgLeaveGroupResponse[source]
- async submit_proposal(msg_submit_proposal: MsgSubmitProposal, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgSubmitProposalResponse[source]
- async update_group_admin(msg_update_group_admin: MsgUpdateGroupAdmin, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgUpdateGroupAdminResponse[source]
- async update_group_members(msg_update_group_members: MsgUpdateGroupMembers, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgUpdateGroupMembersResponse[source]
- async update_group_metadata(msg_update_group_metadata: MsgUpdateGroupMetadata, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgUpdateGroupMetadataResponse[source]
- async update_group_policy_admin(msg_update_group_policy_admin: MsgUpdateGroupPolicyAdmin, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgUpdateGroupPolicyAdminResponse[source]
- async update_group_policy_decision_policy(msg_update_group_policy_decision_policy: MsgUpdateGroupPolicyDecisionPolicy, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgUpdateGroupPolicyDecisionPolicyResponse[source]
- async update_group_policy_metadata(msg_update_group_policy_metadata: MsgUpdateGroupPolicyMetadata, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgUpdateGroupPolicyMetadataResponse[source]
- async vote(msg_vote: MsgVote, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgVoteResponse[source]
- async withdraw_proposal(msg_withdraw_proposal: MsgWithdrawProposal, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgWithdrawProposalResponse[source]
- class evmos.proto.autogen.py.cosmos.group.v1.MsgSubmitProposal(group_policy_address: str = <object object>, proposers: ~typing.List[str] = <object object>, metadata: str = <object object>, messages: ~typing.List[~betterproto.lib.google.protobuf.Any] = <object object>, exec: ~evmos.proto.autogen.py.cosmos.group.v1.Exec = <object object>, title: str = <object object>, summary: str = <object object>)[source]
Bases:
MessageMsgSubmitProposal is the Msg/SubmitProposal request type.
- exec: Exec = <object object>
exec defines the mode of execution of the proposal, whether it should be executed immediately on creation or not. If so, proposers signatures are considered as Yes votes.
- group_policy_address: str = <object object>
group_policy_address is the account address of group policy.
- messages: List[Any] = <object object>
messages is a list of
sdk.Msgss that will be executed if the proposal passes.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgSubmitProposalResponse(proposal_id: int = <object object>)[source]
Bases:
MessageMsgSubmitProposalResponse is the Msg/SubmitProposal response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupAdmin(admin: str = <object object>, group_id: int = <object object>, new_admin: str = <object object>)[source]
Bases:
MessageMsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupAdminResponse[source]
Bases:
MessageMsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupMembers(admin: str = <object object>, group_id: int = <object object>, member_updates: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.MemberRequest] = <object object>)[source]
Bases:
MessageMsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.
- member_updates: List[MemberRequest] = <object object>
member_updates is the list of members to update, set weight to 0 to remove a member.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupMembersResponse[source]
Bases:
MessageMsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupMetadata(admin: str = <object object>, group_id: int = <object object>, metadata: str = <object object>)[source]
Bases:
MessageMsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupMetadataResponse[source]
Bases:
MessageMsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyAdmin(admin: str = <object object>, group_policy_address: str = <object object>, new_admin: str = <object object>)[source]
Bases:
MessageMsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse[source]
Bases:
MessageMsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy(admin: str = <object object>, group_policy_address: str = <object object>, decision_policy: ~betterproto.lib.google.protobuf.Any = <object object>)[source]
Bases:
MessageMsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.
- decision_policy: Any = <object object>
decision_policy is the updated group policy’s decision policy.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse[source]
Bases:
MessageMsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyMetadata(admin: str = <object object>, group_policy_address: str = <object object>, metadata: str = <object object>)[source]
Bases:
MessageMsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse[source]
Bases:
MessageMsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgVote(proposal_id: int = <object object>, voter: str = <object object>, option: ~evmos.proto.autogen.py.cosmos.group.v1.VoteOption = <object object>, metadata: str = <object object>, exec: ~evmos.proto.autogen.py.cosmos.group.v1.Exec = <object object>)[source]
Bases:
MessageMsgVote is the Msg/Vote request type.
- exec: Exec = <object object>
exec defines whether the proposal should be executed immediately after voting or not.
- option: VoteOption = <object object>
option is the voter’s choice on the proposal.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgVoteResponse[source]
Bases:
MessageMsgVoteResponse is the Msg/Vote response type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgWithdrawProposal(proposal_id: int = <object object>, address: str = <object object>)[source]
Bases:
MessageMsgWithdrawProposal is the Msg/WithdrawProposal request type.
- class evmos.proto.autogen.py.cosmos.group.v1.MsgWithdrawProposalResponse[source]
Bases:
MessageMsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.
- class evmos.proto.autogen.py.cosmos.group.v1.PercentageDecisionPolicy(percentage: str = <object object>, windows: ~evmos.proto.autogen.py.cosmos.group.v1.DecisionPolicyWindows = <object object>)[source]
Bases:
MessagePercentageDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions: 1. The percentage of all
YESvoters’ weights out of the total group weight is greater or equal than the givenpercentages. 2. The voting and execution periods of the proposal respect the parameters given bywindowss.- percentage: str = <object object>
percentage is the minimum percentage of the weighted sum of
YESvotes must meet for a proposal to succeed.
- windows: DecisionPolicyWindows = <object object>
windows defines the different windows for voting and execution.
- class evmos.proto.autogen.py.cosmos.group.v1.Proposal(id: int = <object object>, group_policy_address: str = <object object>, metadata: str = <object object>, proposers: ~typing.List[str] = <object object>, submit_time: ~datetime.datetime = <object object>, group_version: int = <object object>, group_policy_version: int = <object object>, status: ~evmos.proto.autogen.py.cosmos.group.v1.ProposalStatus = <object object>, final_tally_result: ~evmos.proto.autogen.py.cosmos.group.v1.TallyResult = <object object>, voting_period_end: ~datetime.datetime = <object object>, executor_result: ~evmos.proto.autogen.py.cosmos.group.v1.ProposalExecutorResult = <object object>, messages: ~typing.List[~betterproto.lib.google.protobuf.Any] = <object object>, title: str = <object object>, summary: str = <object object>)[source]
Bases:
MessageProposal defines a group proposal. Any member of a group can submit a proposal for a group policy to decide upon. A proposal consists of a set of
sdk.Msgss that will be executed if the proposal passes as well as some optional metadata associated with the proposal.- executor_result: ProposalExecutorResult = <object object>
executor_result is the final result of the proposal execution. Initial value is NotRun.
- final_tally_result: TallyResult = <object object>
final_tally_result contains the sums of all weighted votes for this proposal for each vote option. It is empty at submission, and only populated after tallying, at voting period end or at proposal execution, whichever happens first.
- group_policy_address: str = <object object>
group_policy_address is the account address of group policy.
- group_policy_version: int = <object object>
group_policy_version tracks the version of the group policy at proposal submission. When a decision policy is changed, existing proposals from previous policy versions will become invalid with the
ABORTEDstatus. This field is here for informational purposes only.
- group_version: int = <object object>
group_version tracks the version of the group at proposal submission. This field is here for informational purposes only.
- messages: List[Any] = <object object>
messages is a list of
sdk.Msgss that will be executed if the proposal passes.
- metadata: str = <object object>
metadata is any arbitrary metadata attached to the proposal. the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#proposal-4
- status: ProposalStatus = <object object>
status represents the high level position in the life cycle of the proposal. Initial value is Submitted.
- submit_time: datetime = <object object>
submit_time is a timestamp specifying when a proposal was submitted.
- voting_period_end: datetime = <object object>
voting_period_end is the timestamp before which voting must be done. Unless a successful MsgExec is called before (to execute a proposal whose tally is successful before the voting period ends), tallying will be done at this point, and the
final_tally_resultsandstatusfields will be accordingly updated.
- class evmos.proto.autogen.py.cosmos.group.v1.ProposalExecutorResult(*values)[source]
Bases:
EnumProposalExecutorResult defines types of proposal executor results.
- PROPOSAL_EXECUTOR_RESULT_FAILURE = 3
The executor returned an error and proposed action didn’t update state.
- PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1
We have not yet run the executor.
- PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2
The executor was successful and proposed action updated state.
- PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0
An empty value is not allowed.
- class evmos.proto.autogen.py.cosmos.group.v1.ProposalStatus(*values)[source]
Bases:
EnumProposalStatus defines proposal statuses.
- PROPOSAL_STATUS_ABORTED = 4
Final status of a proposal when the group policy is modified before the final tally.
- PROPOSAL_STATUS_ACCEPTED = 2
Final status of a proposal when the final tally is done and the outcome passes the group policy’s decision policy.
- PROPOSAL_STATUS_REJECTED = 3
Final status of a proposal when the final tally is done and the outcome is rejected by the group policy’s decision policy.
- PROPOSAL_STATUS_SUBMITTED = 1
Initial status of a proposal when submitted.
- PROPOSAL_STATUS_UNSPECIFIED = 0
An empty value is invalid and not allowed.
- PROPOSAL_STATUS_WITHDRAWN = 5
A proposal can be withdrawn before the voting start time by the owner. When this happens the final status is Withdrawn.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryBase[source]
Bases:
ServiceBase- async group_info(query_group_info_request: QueryGroupInfoRequest) QueryGroupInfoResponse[source]
- async group_members(query_group_members_request: QueryGroupMembersRequest) QueryGroupMembersResponse[source]
- async group_policies_by_admin(query_group_policies_by_admin_request: QueryGroupPoliciesByAdminRequest) QueryGroupPoliciesByAdminResponse[source]
- async group_policies_by_group(query_group_policies_by_group_request: QueryGroupPoliciesByGroupRequest) QueryGroupPoliciesByGroupResponse[source]
- async group_policy_info(query_group_policy_info_request: QueryGroupPolicyInfoRequest) QueryGroupPolicyInfoResponse[source]
- async groups(query_groups_request: QueryGroupsRequest) QueryGroupsResponse[source]
- async groups_by_admin(query_groups_by_admin_request: QueryGroupsByAdminRequest) QueryGroupsByAdminResponse[source]
- async groups_by_member(query_groups_by_member_request: QueryGroupsByMemberRequest) QueryGroupsByMemberResponse[source]
- async proposal(query_proposal_request: QueryProposalRequest) QueryProposalResponse[source]
- async proposals_by_group_policy(query_proposals_by_group_policy_request: QueryProposalsByGroupPolicyRequest) QueryProposalsByGroupPolicyResponse[source]
- async tally_result(query_tally_result_request: QueryTallyResultRequest) QueryTallyResultResponse[source]
- async vote_by_proposal_voter(query_vote_by_proposal_voter_request: QueryVoteByProposalVoterRequest) QueryVoteByProposalVoterResponse[source]
- async votes_by_proposal(query_votes_by_proposal_request: QueryVotesByProposalRequest) QueryVotesByProposalResponse[source]
- async votes_by_voter(query_votes_by_voter_request: QueryVotesByVoterRequest) QueryVotesByVoterResponse[source]
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupInfoRequest(group_id: int = <object object>)[source]
Bases:
MessageQueryGroupInfoRequest is the Query/GroupInfo request type.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupInfoResponse(info: ~evmos.proto.autogen.py.cosmos.group.v1.GroupInfo = <object object>)[source]
Bases:
MessageQueryGroupInfoResponse is the Query/GroupInfo response type.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupMembersRequest(group_id: int = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryGroupMembersRequest is the Query/GroupMembers request type.
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupMembersResponse(members: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupMember] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryGroupMembersResponse is the Query/GroupMembersResponse response type.
- members: List[GroupMember] = <object object>
members are the members of the group with given group_id.
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupPoliciesByAdminRequest(admin: str = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupPoliciesByAdminResponse(group_policies: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupPolicyInfo] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.
- group_policies: List[GroupPolicyInfo] = <object object>
group_policies are the group policies info with provided admin.
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupPoliciesByGroupRequest(group_id: int = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupPoliciesByGroupResponse(group_policies: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupPolicyInfo] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.
- group_policies: List[GroupPolicyInfo] = <object object>
group_policies are the group policies info associated with the provided group.
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupPolicyInfoRequest(address: str = <object object>)[source]
Bases:
MessageQueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupPolicyInfoResponse(info: ~evmos.proto.autogen.py.cosmos.group.v1.GroupPolicyInfo = <object object>)[source]
Bases:
MessageQueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.
- info: GroupPolicyInfo = <object object>
info is the GroupPolicyInfo of the group policy.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupsByAdminRequest(admin: str = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupsByAdminResponse(groups: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupInfo] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupsByMemberRequest(address: str = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryGroupsByMemberRequest is the Query/GroupsByMember request type.
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupsByMemberResponse(groups: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupInfo] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryGroupsByMemberResponse is the Query/GroupsByMember response type.
- groups: List[GroupInfo] = <object object>
groups are the groups info with the provided group member.
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupsRequest(pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryGroupsRequest is the Query/Groups request type. .. versionadded:: 0.47.1
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupsResponse(groups: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.GroupInfo] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryGroupsResponse is the Query/Groups response type. .. versionadded:: 0.47.1
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryProposalRequest(proposal_id: int = <object object>)[source]
Bases:
MessageQueryProposalRequest is the Query/Proposal request type.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryProposalResponse(proposal: ~evmos.proto.autogen.py.cosmos.group.v1.Proposal = <object object>)[source]
Bases:
MessageQueryProposalResponse is the Query/Proposal response type.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryProposalsByGroupPolicyRequest(address: str = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type.
- address: str = <object object>
address is the account address of the group policy related to proposals.
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryProposalsByGroupPolicyResponse(proposals: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.Proposal] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]
Bases:
ServiceStub- async group_info(query_group_info_request: QueryGroupInfoRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGroupInfoResponse[source]
- async group_members(query_group_members_request: QueryGroupMembersRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGroupMembersResponse[source]
- async group_policies_by_admin(query_group_policies_by_admin_request: QueryGroupPoliciesByAdminRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGroupPoliciesByAdminResponse[source]
- async group_policies_by_group(query_group_policies_by_group_request: QueryGroupPoliciesByGroupRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGroupPoliciesByGroupResponse[source]
- async group_policy_info(query_group_policy_info_request: QueryGroupPolicyInfoRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGroupPolicyInfoResponse[source]
- async groups(query_groups_request: QueryGroupsRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGroupsResponse[source]
- async groups_by_admin(query_groups_by_admin_request: QueryGroupsByAdminRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGroupsByAdminResponse[source]
- async groups_by_member(query_groups_by_member_request: QueryGroupsByMemberRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGroupsByMemberResponse[source]
- async proposal(query_proposal_request: QueryProposalRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryProposalResponse[source]
- async proposals_by_group_policy(query_proposals_by_group_policy_request: QueryProposalsByGroupPolicyRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryProposalsByGroupPolicyResponse[source]
- async tally_result(query_tally_result_request: QueryTallyResultRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryTallyResultResponse[source]
- async vote_by_proposal_voter(query_vote_by_proposal_voter_request: QueryVoteByProposalVoterRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryVoteByProposalVoterResponse[source]
- async votes_by_proposal(query_votes_by_proposal_request: QueryVotesByProposalRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryVotesByProposalResponse[source]
- async votes_by_voter(query_votes_by_voter_request: QueryVotesByVoterRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryVotesByVoterResponse[source]
- class evmos.proto.autogen.py.cosmos.group.v1.QueryTallyResultRequest(proposal_id: int = <object object>)[source]
Bases:
MessageQueryTallyResultRequest is the Query/TallyResult request type.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryTallyResultResponse(tally: ~evmos.proto.autogen.py.cosmos.group.v1.TallyResult = <object object>)[source]
Bases:
MessageQueryTallyResultResponse is the Query/TallyResult response type.
- tally: TallyResult = <object object>
tally defines the requested tally.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryVoteByProposalVoterRequest(proposal_id: int = <object object>, voter: str = <object object>)[source]
Bases:
MessageQueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryVoteByProposalVoterResponse(vote: ~evmos.proto.autogen.py.cosmos.group.v1.Vote = <object object>)[source]
Bases:
MessageQueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryVotesByProposalRequest(proposal_id: int = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryVotesByProposalRequest is the Query/VotesByProposal request type.
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryVotesByProposalResponse(votes: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.Vote] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryVotesByProposalResponse is the Query/VotesByProposal response type.
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryVotesByVoterRequest(voter: str = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]
Bases:
MessageQueryVotesByVoterRequest is the Query/VotesByVoter request type.
- pagination: PageRequest = <object object>
pagination defines an optional pagination for the request.
- class evmos.proto.autogen.py.cosmos.group.v1.QueryVotesByVoterResponse(votes: ~typing.List[~evmos.proto.autogen.py.cosmos.group.v1.Vote] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]
Bases:
MessageQueryVotesByVoterResponse is the Query/VotesByVoter response type.
- pagination: PageResponse = <object object>
pagination defines the pagination in the response.
- class evmos.proto.autogen.py.cosmos.group.v1.TallyResult(yes_count: str = <object object>, abstain_count: str = <object object>, no_count: str = <object object>, no_with_veto_count: str = <object object>)[source]
Bases:
MessageTallyResult represents the sum of weighted votes for each vote option.
- class evmos.proto.autogen.py.cosmos.group.v1.ThresholdDecisionPolicy(threshold: str = <object object>, windows: ~evmos.proto.autogen.py.cosmos.group.v1.DecisionPolicyWindows = <object object>)[source]
Bases:
MessageThresholdDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions: 1. The sum of all
YESvoter’s weights is greater or equal than the definedthresholds. 2. The voting and execution periods of the proposal respect the parameters given bywindowss.- threshold: str = <object object>
threshold is the minimum weighted sum of
YESvotes that must be met or exceeded for a proposal to succeed.
- windows: DecisionPolicyWindows = <object object>
windows defines the different windows for voting and execution.
- class evmos.proto.autogen.py.cosmos.group.v1.Vote(proposal_id: int = <object object>, voter: str = <object object>, option: ~evmos.proto.autogen.py.cosmos.group.v1.VoteOption = <object object>, metadata: str = <object object>, submit_time: ~datetime.datetime = <object object>)[source]
Bases:
MessageVote represents a vote for a proposal.string metadata
- metadata: str = <object object>
metadata is any arbitrary metadata attached to the vote. the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2
- option: VoteOption = <object object>
option is the voter’s choice on the proposal.
- class evmos.proto.autogen.py.cosmos.group.v1.VoteOption(*values)[source]
Bases:
EnumVoteOption enumerates the valid vote options for a given proposal.
- VOTE_OPTION_ABSTAIN = 2
VOTE_OPTION_ABSTAIN defines an abstain vote option.
- VOTE_OPTION_NO = 3
VOTE_OPTION_NO defines a no vote option.
- VOTE_OPTION_NO_WITH_VETO = 4
VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
- VOTE_OPTION_UNSPECIFIED = 0
VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will return an error.
- VOTE_OPTION_YES = 1
VOTE_OPTION_YES defines a yes vote option.