evmos.proto.autogen.py.cosmos.group.v1

Classes

DecisionPolicyWindows(voting_period, ...)

DecisionPolicyWindows defines the different windows for voting and execution.

EventCreateGroup(group_id)

EventCreateGroup is an event emitted when a group is created.

EventCreateGroupPolicy(address)

EventCreateGroupPolicy is an event emitted when a group policy is created.

EventExec(proposal_id, result, logs)

EventExec is an event emitted when a proposal is executed.

EventLeaveGroup(group_id, address)

EventLeaveGroup is an event emitted when group member leaves the group.

EventProposalPruned(proposal_id, status, ...)

EventProposalPruned is an event emitted when a proposal is pruned.

EventSubmitProposal(proposal_id)

EventSubmitProposal is an event emitted when a proposal is created.

EventUpdateGroup(group_id)

EventUpdateGroup is an event emitted when a group is updated.

EventUpdateGroupPolicy(address)

EventUpdateGroupPolicy is an event emitted when a group policy is updated.

EventVote(proposal_id)

EventVote is an event emitted when a voter votes on a proposal.

EventWithdrawProposal(proposal_id)

EventWithdrawProposal is an event emitted when a proposal is withdrawn.

Exec(*values)

Exec defines modes of execution of a proposal on creation or on new vote.

GenesisState(group_seq, groups, ...)

GenesisState defines the group module's genesis state.

GroupInfo(id, admin, metadata, version, ...)

GroupInfo represents the high-level on-chain information for a group.

GroupMember(group_id, member)

GroupMember represents the relationship between a group and a member.

GroupPolicyInfo(address, group_id, admin, ...)

GroupPolicyInfo represents the high-level on-chain information for a group policy.

Member(address, weight, metadata, added_at)

Member represents a group member with an account address, non-zero weight, metadata and added_at timestamp.

MemberRequest(address, weight, metadata)

MemberRequest represents a group member to be used in Msg server requests.

MsgBase()

MsgCreateGroup(admin, members, metadata)

MsgCreateGroup is the Msg/CreateGroup request type.

MsgCreateGroupPolicy(admin, group_id, ...)

MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type.

MsgCreateGroupPolicyResponse(address)

MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.

MsgCreateGroupResponse(group_id)

MsgCreateGroupResponse is the Msg/CreateGroup response type.

MsgCreateGroupWithPolicy(admin, members, ...)

MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.

MsgCreateGroupWithPolicyResponse(group_id, ...)

MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.

MsgExec(proposal_id, executor)

MsgExec is the Msg/Exec request type.

MsgExecResponse(result)

MsgExecResponse is the Msg/Exec request type.

MsgLeaveGroup(address, group_id)

MsgLeaveGroup is the Msg/LeaveGroup request type.

MsgLeaveGroupResponse()

MsgLeaveGroupResponse is the Msg/LeaveGroup response type.

MsgStub(channel, *[, timeout, deadline, ...])

MsgSubmitProposal(group_policy_address, ...)

MsgSubmitProposal is the Msg/SubmitProposal request type.

MsgSubmitProposalResponse(proposal_id)

MsgSubmitProposalResponse is the Msg/SubmitProposal response type.

MsgUpdateGroupAdmin(admin, group_id, new_admin)

MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.

MsgUpdateGroupAdminResponse()

MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.

MsgUpdateGroupMembers(admin, group_id, ...)

MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.

MsgUpdateGroupMembersResponse()

MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.

MsgUpdateGroupMetadata(admin, group_id, metadata)

MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.

MsgUpdateGroupMetadataResponse()

MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.

MsgUpdateGroupPolicyAdmin(admin, ...)

MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.

MsgUpdateGroupPolicyAdminResponse()

MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.

MsgUpdateGroupPolicyDecisionPolicy(admin, ...)

MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.

MsgUpdateGroupPolicyDecisionPolicyResponse()

MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.

MsgUpdateGroupPolicyMetadata(admin, ...)

MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.

MsgUpdateGroupPolicyMetadataResponse()

MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.

MsgVote(proposal_id, voter, option, ...)

MsgVote is the Msg/Vote request type.

MsgVoteResponse()

MsgVoteResponse is the Msg/Vote response type.

MsgWithdrawProposal(proposal_id, address)

MsgWithdrawProposal is the Msg/WithdrawProposal request type.

MsgWithdrawProposalResponse()

MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.

PercentageDecisionPolicy(percentage, windows)

PercentageDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions: 1.

Proposal(id, group_policy_address, metadata, ...)

Proposal defines a group proposal.

ProposalExecutorResult(*values)

ProposalExecutorResult defines types of proposal executor results.

ProposalStatus(*values)

ProposalStatus defines proposal statuses.

QueryBase()

QueryGroupInfoRequest(group_id)

QueryGroupInfoRequest is the Query/GroupInfo request type.

QueryGroupInfoResponse(info)

QueryGroupInfoResponse is the Query/GroupInfo response type.

QueryGroupMembersRequest(group_id, pagination)

QueryGroupMembersRequest is the Query/GroupMembers request type.

QueryGroupMembersResponse(members, pagination)

QueryGroupMembersResponse is the Query/GroupMembersResponse response type.

QueryGroupPoliciesByAdminRequest(admin, ...)

QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.

QueryGroupPoliciesByAdminResponse(...)

QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.

QueryGroupPoliciesByGroupRequest(group_id, ...)

QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.

QueryGroupPoliciesByGroupResponse(...)

QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.

QueryGroupPolicyInfoRequest(address)

QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.

QueryGroupPolicyInfoResponse(info)

QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.

QueryGroupsByAdminRequest(admin, pagination)

QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.

QueryGroupsByAdminResponse(groups, pagination)

QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.

QueryGroupsByMemberRequest(address, pagination)

QueryGroupsByMemberRequest is the Query/GroupsByMember request type.

QueryGroupsByMemberResponse(groups, pagination)

QueryGroupsByMemberResponse is the Query/GroupsByMember response type.

QueryGroupsRequest(pagination)

QueryGroupsRequest is the Query/Groups request type.

QueryGroupsResponse(groups, pagination)

QueryGroupsResponse is the Query/Groups response type.

QueryProposalRequest(proposal_id)

QueryProposalRequest is the Query/Proposal request type.

QueryProposalResponse(proposal)

QueryProposalResponse is the Query/Proposal response type.

QueryProposalsByGroupPolicyRequest(address, ...)

QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type.

QueryProposalsByGroupPolicyResponse(...)

QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.

QueryStub(channel, *[, timeout, deadline, ...])

QueryTallyResultRequest(proposal_id)

QueryTallyResultRequest is the Query/TallyResult request type.

QueryTallyResultResponse(tally)

QueryTallyResultResponse is the Query/TallyResult response type.

QueryVoteByProposalVoterRequest(proposal_id, ...)

QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.

QueryVoteByProposalVoterResponse(vote)

QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.

QueryVotesByProposalRequest(proposal_id, ...)

QueryVotesByProposalRequest is the Query/VotesByProposal request type.

QueryVotesByProposalResponse(votes, pagination)

QueryVotesByProposalResponse is the Query/VotesByProposal response type.

QueryVotesByVoterRequest(voter, pagination)

QueryVotesByVoterRequest is the Query/VotesByVoter request type.

QueryVotesByVoterResponse(votes, pagination)

QueryVotesByVoterResponse is the Query/VotesByVoter response type.

TallyResult(yes_count, abstain_count, ...)

TallyResult represents the sum of weighted votes for each vote option.

ThresholdDecisionPolicy(threshold, windows)

ThresholdDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions: 1.

Vote(proposal_id, voter, option, metadata, ...)

Vote represents a vote for a proposal.string metadata

VoteOption(*values)

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: Message

DecisionPolicyWindows 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 a min_execution_period that is smaller than voting_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.

voting_period: timedelta = <object object>

voting_period is the duration from submission of a proposal to the end of voting period Within this times votes can be submitted with MsgVote.

class evmos.proto.autogen.py.cosmos.group.v1.EventCreateGroup(group_id: int = <object object>)[source]

Bases: Message

EventCreateGroup is an event emitted when a group is created.

group_id: int = <object object>

group_id is the unique ID of the group.

class evmos.proto.autogen.py.cosmos.group.v1.EventCreateGroupPolicy(address: str = <object object>)[source]

Bases: Message

EventCreateGroupPolicy is an event emitted when a group policy is created.

address: str = <object object>

address is the account address of the group policy.

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: Message

EventExec is an event emitted when a proposal is executed.

logs: str = <object object>

logs contains error logs in case the execution result is FAILURE.

proposal_id: int = <object object>

proposal_id is the unique ID of the proposal.

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: Message

EventLeaveGroup is an event emitted when group member leaves the group.

address: str = <object object>

address is the account address of the group member.

group_id: int = <object object>

group_id is the unique ID of 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: Message

EventProposalPruned is an event emitted when a proposal is pruned.

proposal_id: int = <object object>

proposal_id is the unique ID of the proposal.

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: Message

EventSubmitProposal is an event emitted when a proposal is created.

proposal_id: int = <object object>

proposal_id is the unique ID of the proposal.

class evmos.proto.autogen.py.cosmos.group.v1.EventUpdateGroup(group_id: int = <object object>)[source]

Bases: Message

EventUpdateGroup is an event emitted when a group is updated.

group_id: int = <object object>

group_id is the unique ID of the group.

class evmos.proto.autogen.py.cosmos.group.v1.EventUpdateGroupPolicy(address: str = <object object>)[source]

Bases: Message

EventUpdateGroupPolicy is an event emitted when a group policy is updated.

address: str = <object object>

address is the account address of the group policy.

class evmos.proto.autogen.py.cosmos.group.v1.EventVote(proposal_id: int = <object object>)[source]

Bases: Message

EventVote is an event emitted when a voter votes on a proposal.

proposal_id: int = <object object>

proposal_id is the unique ID of the proposal.

class evmos.proto.autogen.py.cosmos.group.v1.EventWithdrawProposal(proposal_id: int = <object object>)[source]

Bases: Message

EventWithdrawProposal is an event emitted when a proposal is withdrawn.

proposal_id: int = <object object>

proposal_id is the unique ID of the proposal.

class evmos.proto.autogen.py.cosmos.group.v1.Exec(*values)[source]

Bases: Enum

Exec 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: Message

GenesisState 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.

groups: List[GroupInfo] = <object object>

groups is the list of groups info.

proposal_seq: int = <object object>

proposal_seq is the proposal table orm.Sequence, it is used to get the next proposal ID.

proposals: List[Proposal] = <object object>

proposals is the list of proposals.

votes: List[Vote] = <object object>

votes is the list of votes.

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: Message

GroupInfo represents the high-level on-chain information for a group.

admin: str = <object object>

admin is the account address of the group’s admin.

created_at: datetime = <object object>

created_at is a timestamp specifying when a group was created.

id: int = <object object>

id is the unique ID of the group.

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

total_weight: str = <object object>

total_weight is the sum of the group members’ weights.

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: Message

GroupMember represents the relationship between a group and a member.

group_id: int = <object object>

group_id is the unique ID of the group.

member: Member = <object object>

member is the member data.

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: Message

GroupPolicyInfo represents the high-level on-chain information for a group policy.

address: str = <object object>

address is the account address of group policy.

admin: str = <object object>

admin is the account address of the group admin.

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.

group_id: int = <object object>

group_id is the unique ID of the group.

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

version: int = <object object>

version is used to track changes to a group’s GroupPolicyInfo structure that would create a different result on a running proposal.

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: Message

Member represents a group member with an account address, non-zero weight, metadata and added_at timestamp.

added_at: datetime = <object object>

added_at is a timestamp specifying when a member was added.

address: str = <object object>

address is the member’s account address.

metadata: str = <object object>

metadata is any arbitrary metadata attached to the member.

weight: str = <object object>

weight is the member’s voting weight that should be greater than 0.

class evmos.proto.autogen.py.cosmos.group.v1.MemberRequest(address: str = <object object>, weight: str = <object object>, metadata: str = <object object>)[source]

Bases: Message

MemberRequest represents a group member to be used in Msg server requests. Contrary to Members, it doesn’t have any added_at field since this field cannot be set as part of requests.

address: str = <object object>

address is the member’s account address.

metadata: str = <object object>

metadata is any arbitrary metadata attached to the member.

weight: str = <object object>

weight is the member’s voting weight that should be greater than 0.

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: Message

MsgCreateGroup is the Msg/CreateGroup request type.

admin: str = <object object>

admin is the account address of the group admin.

members: List[MemberRequest] = <object object>

members defines the group members.

metadata: str = <object object>

metadata is any arbitrary metadata to attached to the group.

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: Message

MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type.

admin: str = <object object>

admin is the account address of the group admin.

decision_policy: Any = <object object>

decision_policy specifies the group policy’s decision policy.

group_id: int = <object object>

group_id is the unique ID of the group.

metadata: str = <object object>

metadata is any arbitrary metadata attached to the group policy.

class evmos.proto.autogen.py.cosmos.group.v1.MsgCreateGroupPolicyResponse(address: str = <object object>)[source]

Bases: Message

MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.

address: str = <object object>

address is the account address of the newly created group policy.

class evmos.proto.autogen.py.cosmos.group.v1.MsgCreateGroupResponse(group_id: int = <object object>)[source]

Bases: Message

MsgCreateGroupResponse is the Msg/CreateGroup response type.

group_id: int = <object object>

group_id is the unique ID of the newly created group.

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: Message

MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.

admin: str = <object object>

admin is the account address of the group and group policy admin.

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: Message

MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.

group_id: int = <object object>

group_id is the unique ID of the newly created group with policy.

group_policy_address: str = <object object>

group_policy_address is the account address of the newly created group policy.

class evmos.proto.autogen.py.cosmos.group.v1.MsgExec(proposal_id: int = <object object>, executor: str = <object object>)[source]

Bases: Message

MsgExec is the Msg/Exec request type.

executor: str = <object object>

executor is the account address used to execute the proposal.

proposal_id: int = <object object>

proposal is the unique ID of the proposal.

class evmos.proto.autogen.py.cosmos.group.v1.MsgExecResponse(result: ~evmos.proto.autogen.py.cosmos.group.v1.ProposalExecutorResult = <object object>)[source]

Bases: Message

MsgExecResponse 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: Message

MsgLeaveGroup is the Msg/LeaveGroup request type.

address: str = <object object>

address is the account address of the group member.

group_id: int = <object object>

group_id is the unique ID of the group.

class evmos.proto.autogen.py.cosmos.group.v1.MsgLeaveGroupResponse[source]

Bases: Message

MsgLeaveGroupResponse 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: Message

MsgSubmitProposal 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.

metadata: str = <object object>

metadata is any arbitrary metadata attached to the proposal.

proposers: List[str] = <object object>

proposers are the account addresses of the proposers. Proposers signatures will be counted as yes votes.

summary: str = <object object>

summary is the summary of the proposal. .. versionadded:: 0.47

title: str = <object object>

title is the title of the proposal. .. versionadded:: 0.47

class evmos.proto.autogen.py.cosmos.group.v1.MsgSubmitProposalResponse(proposal_id: int = <object object>)[source]

Bases: Message

MsgSubmitProposalResponse is the Msg/SubmitProposal response type.

proposal_id: int = <object object>

proposal is the unique ID of the proposal.

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: Message

MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.

admin: str = <object object>

admin is the current account address of the group admin.

group_id: int = <object object>

group_id is the unique ID of the group.

new_admin: str = <object object>

new_admin is the group new admin account address.

class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupAdminResponse[source]

Bases: Message

MsgUpdateGroupAdminResponse 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: Message

MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.

admin: str = <object object>

admin is the account address of the group admin.

group_id: int = <object object>

group_id is the unique ID of the group.

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: Message

MsgUpdateGroupMembersResponse 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: Message

MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.

admin: str = <object object>

admin is the account address of the group admin.

group_id: int = <object object>

group_id is the unique ID of the group.

metadata: str = <object object>

metadata is the updated group’s metadata.

class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupMetadataResponse[source]

Bases: Message

MsgUpdateGroupMetadataResponse 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: Message

MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.

admin: str = <object object>

admin is the account address of the group admin.

group_policy_address: str = <object object>

group_policy_address is the account address of the group policy.

new_admin: str = <object object>

new_admin is the new group policy admin.

class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse[source]

Bases: Message

MsgUpdateGroupPolicyAdminResponse 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: Message

MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.

admin: str = <object object>

admin is the account address of the group admin.

decision_policy: Any = <object object>

decision_policy is the updated group policy’s decision policy.

group_policy_address: str = <object object>

group_policy_address is the account address of group policy.

class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse[source]

Bases: Message

MsgUpdateGroupPolicyDecisionPolicyResponse 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: Message

MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.

admin: str = <object object>

admin is the account address of the group admin.

group_policy_address: str = <object object>

group_policy_address is the account address of group policy.

metadata: str = <object object>

metadata is the group policy metadata to be updated.

class evmos.proto.autogen.py.cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse[source]

Bases: Message

MsgUpdateGroupPolicyMetadataResponse 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: Message

MsgVote is the Msg/Vote request type.

exec: Exec = <object object>

exec defines whether the proposal should be executed immediately after voting or not.

metadata: str = <object object>

metadata is any arbitrary metadata attached to the vote.

option: VoteOption = <object object>

option is the voter’s choice on the proposal.

proposal_id: int = <object object>

proposal is the unique ID of the proposal.

voter: str = <object object>

voter is the voter account address.

class evmos.proto.autogen.py.cosmos.group.v1.MsgVoteResponse[source]

Bases: Message

MsgVoteResponse 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: Message

MsgWithdrawProposal is the Msg/WithdrawProposal request type.

address: str = <object object>

address is the admin of the group policy or one of the proposer of the proposal.

proposal_id: int = <object object>

proposal is the unique ID of the proposal.

class evmos.proto.autogen.py.cosmos.group.v1.MsgWithdrawProposalResponse[source]

Bases: Message

MsgWithdrawProposalResponse 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: Message

PercentageDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions: 1. The percentage of all YES voters’ weights out of the total group weight is greater or equal than the given percentages. 2. The voting and execution periods of the proposal respect the parameters given by windowss.

percentage: str = <object object>

percentage is the minimum percentage of the weighted sum of YES votes 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: Message

Proposal 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 ABORTED status. 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.

id: int = <object object>

id is the unique id of the proposal.

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

proposers: List[str] = <object object>

proposers are the account addresses of the proposers.

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.

summary: str = <object object>

summary is a short summary of the proposal .. versionadded:: 0.47

title: str = <object object>

title is the title of the proposal .. versionadded:: 0.47

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_resultsand status fields will be accordingly updated.

class evmos.proto.autogen.py.cosmos.group.v1.ProposalExecutorResult(*values)[source]

Bases: Enum

ProposalExecutorResult 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: Enum

ProposalStatus 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: Message

QueryGroupInfoRequest is the Query/GroupInfo request type.

group_id: int = <object object>

group_id is the unique ID of the group.

class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupInfoResponse(info: ~evmos.proto.autogen.py.cosmos.group.v1.GroupInfo = <object object>)[source]

Bases: Message

QueryGroupInfoResponse is the Query/GroupInfo response type.

info: GroupInfo = <object object>

info is the GroupInfo of the group.

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: Message

QueryGroupMembersRequest is the Query/GroupMembers request type.

group_id: int = <object object>

group_id is the unique ID of the group.

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: Message

QueryGroupMembersResponse 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: Message

QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.

admin: str = <object object>

admin is the admin address of the group policy.

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: Message

QueryGroupPoliciesByAdminResponse 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: Message

QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.

group_id: int = <object object>

group_id is the unique ID of the group policy’s group.

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: Message

QueryGroupPoliciesByGroupResponse 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: Message

QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.

address: str = <object object>

address is the account address of the group policy.

class evmos.proto.autogen.py.cosmos.group.v1.QueryGroupPolicyInfoResponse(info: ~evmos.proto.autogen.py.cosmos.group.v1.GroupPolicyInfo = <object object>)[source]

Bases: Message

QueryGroupPolicyInfoResponse 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: Message

QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.

admin: str = <object object>

admin is the account address of a group’s admin.

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: Message

QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.

groups: List[GroupInfo] = <object object>

groups are the groups info with the provided admin.

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: Message

QueryGroupsByMemberRequest is the Query/GroupsByMember request type.

address: str = <object object>

address is the group member address.

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: Message

QueryGroupsByMemberResponse 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: Message

QueryGroupsRequest 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: Message

QueryGroupsResponse is the Query/Groups response type. .. versionadded:: 0.47.1

groups: List[GroupInfo] = <object object>

groups is all the groups present in state.

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: Message

QueryProposalRequest is the Query/Proposal request type.

proposal_id: int = <object object>

proposal_id is the unique ID of a proposal.

class evmos.proto.autogen.py.cosmos.group.v1.QueryProposalResponse(proposal: ~evmos.proto.autogen.py.cosmos.group.v1.Proposal = <object object>)[source]

Bases: Message

QueryProposalResponse is the Query/Proposal response type.

proposal: Proposal = <object object>

proposal is the proposal info.

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: Message

QueryProposalsByGroupPolicyRequest 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: Message

QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.

pagination: PageResponse = <object object>

pagination defines the pagination in the response.

proposals: List[Proposal] = <object object>

proposals are the proposals with given group policy.

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: Message

QueryTallyResultRequest is the Query/TallyResult request type.

proposal_id: int = <object object>

proposal_id is the unique id of a proposal.

class evmos.proto.autogen.py.cosmos.group.v1.QueryTallyResultResponse(tally: ~evmos.proto.autogen.py.cosmos.group.v1.TallyResult = <object object>)[source]

Bases: Message

QueryTallyResultResponse 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: Message

QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.

proposal_id: int = <object object>

proposal_id is the unique ID of a proposal.

voter: str = <object object>

voter is a proposal voter account address.

class evmos.proto.autogen.py.cosmos.group.v1.QueryVoteByProposalVoterResponse(vote: ~evmos.proto.autogen.py.cosmos.group.v1.Vote = <object object>)[source]

Bases: Message

QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.

vote: Vote = <object object>

vote is the vote with given proposal_id and voter.

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: Message

QueryVotesByProposalRequest is the Query/VotesByProposal request type.

pagination: PageRequest = <object object>

pagination defines an optional pagination for the request.

proposal_id: int = <object object>

proposal_id is the unique ID of a proposal.

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: Message

QueryVotesByProposalResponse is the Query/VotesByProposal response type.

pagination: PageResponse = <object object>

pagination defines the pagination in the response.

votes: List[Vote] = <object object>

votes are the list of votes for given proposal_id.

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: Message

QueryVotesByVoterRequest is the Query/VotesByVoter request type.

pagination: PageRequest = <object object>

pagination defines an optional pagination for the request.

voter: str = <object object>

voter is a proposal voter account address.

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: Message

QueryVotesByVoterResponse is the Query/VotesByVoter response type.

pagination: PageResponse = <object object>

pagination defines the pagination in the response.

votes: List[Vote] = <object object>

votes are the list of votes by given voter.

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: Message

TallyResult represents the sum of weighted votes for each vote option.

abstain_count: str = <object object>

abstain_count is the weighted sum of abstainers.

no_count: str = <object object>

no_count is the weighted sum of no votes.

no_with_veto_count: str = <object object>

no_with_veto_count is the weighted sum of veto.

yes_count: str = <object object>

yes_count is the weighted sum of yes votes.

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: Message

ThresholdDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions: 1. The sum of all YES voter’s weights is greater or equal than the defined thresholds. 2. The voting and execution periods of the proposal respect the parameters given by windowss.

threshold: str = <object object>

threshold is the minimum weighted sum of YES votes 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: Message

Vote 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.

proposal_id: int = <object object>

proposal is the unique ID of the proposal.

submit_time: datetime = <object object>

submit_time is the timestamp when the vote was submitted.

voter: str = <object object>

voter is the account address of the voter.

class evmos.proto.autogen.py.cosmos.group.v1.VoteOption(*values)[source]

Bases: Enum

VoteOption 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.