evmos.proto.autogen.py.cosmos.authz.v1beta1

Classes

EventGrant(msg_type_url, granter, grantee)

EventGrant is emitted on Msg/Grant

EventRevoke(msg_type_url, granter, grantee)

EventRevoke is emitted on Msg/Revoke

GenericAuthorization(msg)

GenericAuthorization gives the grantee unrestricted permissions to execute the provided method on behalf of the granter's account.

GenesisState(authorization)

GenesisState defines the authz module's genesis state.

Grant(authorization, expiration)

Grant gives permissions to execute the provide method with expiration time.

GrantAuthorization(granter, grantee, ...)

GrantAuthorization extends a grant with both the addresses of the grantee and granter.

GrantQueueItem(msg_type_urls)

GrantQueueItem contains the list of TypeURL of a sdk.Msg.

MsgBase()

MsgExec(grantee, msgs)

MsgExec attempts to execute the provided messages using authorizations granted to the grantee.

MsgExecResponse(results)

MsgExecResponse defines the Msg/MsgExecResponse response type.

MsgGrant(granter, grantee, grant)

MsgGrant is a request type for Grant method.

MsgGrantResponse()

MsgGrantResponse defines the Msg/MsgGrant response type.

MsgRevoke(granter, grantee, msg_type_url)

MsgRevoke revokes any authorization with the provided sdk.Msg type on the granter's account with that has been granted to the grantee.

MsgRevokeResponse()

MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.

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

QueryBase()

QueryGranteeGrantsRequest(grantee, pagination)

QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.

QueryGranteeGrantsResponse(grants, pagination)

QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.

QueryGranterGrantsRequest(granter, pagination)

QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.

QueryGranterGrantsResponse(grants, pagination)

QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.

QueryGrantsRequest(granter, grantee, ...)

QueryGrantsRequest is the request type for the Query/Grants RPC method.

QueryGrantsResponse(grants, pagination)

QueryGrantsResponse is the response type for the Query/Authorizations RPC method.

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

class evmos.proto.autogen.py.cosmos.authz.v1beta1.EventGrant(msg_type_url: str = <object object>, granter: str = <object object>, grantee: str = <object object>)[source]

Bases: Message

EventGrant is emitted on Msg/Grant

grantee: str = <object object>

Grantee account address

granter: str = <object object>

Granter account address

msg_type_url: str = <object object>

Msg type URL for which an autorization is granted

class evmos.proto.autogen.py.cosmos.authz.v1beta1.EventRevoke(msg_type_url: str = <object object>, granter: str = <object object>, grantee: str = <object object>)[source]

Bases: Message

EventRevoke is emitted on Msg/Revoke

grantee: str = <object object>

Grantee account address

granter: str = <object object>

Granter account address

msg_type_url: str = <object object>

Msg type URL for which an autorization is revoked

class evmos.proto.autogen.py.cosmos.authz.v1beta1.GenericAuthorization(msg: str = <object object>)[source]

Bases: Message

GenericAuthorization gives the grantee unrestricted permissions to execute the provided method on behalf of the granter’s account.

msg: str = <object object>

Msg, identified by it’s type URL, to grant unrestricted permissions to execute

class evmos.proto.autogen.py.cosmos.authz.v1beta1.GenesisState(authorization: ~typing.List[~evmos.proto.autogen.py.cosmos.authz.v1beta1.GrantAuthorization] = <object object>)[source]

Bases: Message

GenesisState defines the authz module’s genesis state.

authorization: List[GrantAuthorization] = <object object>
class evmos.proto.autogen.py.cosmos.authz.v1beta1.Grant(authorization: ~betterproto.lib.google.protobuf.Any = <object object>, expiration: ~datetime.datetime = <object object>)[source]

Bases: Message

Grant gives permissions to execute the provide method with expiration time.

authorization: Any = <object object>
expiration: datetime = <object object>

time when the grant will expire and will be pruned. If null, then the grant doesn’t have a time expiration (other conditions in authorization may apply to invalidate the grant)

class evmos.proto.autogen.py.cosmos.authz.v1beta1.GrantAuthorization(granter: str = <object object>, grantee: str = <object object>, authorization: ~betterproto.lib.google.protobuf.Any = <object object>, expiration: ~datetime.datetime = <object object>)[source]

Bases: Message

GrantAuthorization extends a grant with both the addresses of the grantee and granter. It is used in genesis.proto and query.proto

authorization: Any = <object object>
expiration: datetime = <object object>
grantee: str = <object object>
granter: str = <object object>
class evmos.proto.autogen.py.cosmos.authz.v1beta1.GrantQueueItem(msg_type_urls: ~typing.List[str] = <object object>)[source]

Bases: Message

GrantQueueItem contains the list of TypeURL of a sdk.Msg.

msg_type_urls: List[str] = <object object>

msg_type_urls contains the list of TypeURL of a sdk.Msg.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.MsgBase[source]

Bases: ServiceBase

async exec(msg_exec: MsgExec) MsgExecResponse[source]
async grant(msg_grant: MsgGrant) MsgGrantResponse[source]
async revoke(msg_revoke: MsgRevoke) MsgRevokeResponse[source]
class evmos.proto.autogen.py.cosmos.authz.v1beta1.MsgExec(grantee: str = <object object>, msgs: ~typing.List[~betterproto.lib.google.protobuf.Any] = <object object>)[source]

Bases: Message

MsgExec attempts to execute the provided messages using authorizations granted to the grantee. Each message should have only one signer corresponding to the granter of the authorization.

grantee: str = <object object>
msgs: List[Any] = <object object>

Execute Msg. The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) triple and validate it.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.MsgExecResponse(results: ~typing.List[bytes] = <object object>)[source]

Bases: Message

MsgExecResponse defines the Msg/MsgExecResponse response type.

results: List[bytes] = <object object>
class evmos.proto.autogen.py.cosmos.authz.v1beta1.MsgGrant(granter: str = <object object>, grantee: str = <object object>, grant: ~evmos.proto.autogen.py.cosmos.authz.v1beta1.Grant = <object object>)[source]

Bases: Message

MsgGrant is a request type for Grant method. It declares authorization to the grantee on behalf of the granter with the provided expiration time.

grant: Grant = <object object>
grantee: str = <object object>
granter: str = <object object>
class evmos.proto.autogen.py.cosmos.authz.v1beta1.MsgGrantResponse[source]

Bases: Message

MsgGrantResponse defines the Msg/MsgGrant response type.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.MsgRevoke(granter: str = <object object>, grantee: str = <object object>, msg_type_url: str = <object object>)[source]

Bases: Message

MsgRevoke revokes any authorization with the provided sdk.Msg type on the granter’s account with that has been granted to the grantee.

grantee: str = <object object>
granter: str = <object object>
msg_type_url: str = <object object>
class evmos.proto.autogen.py.cosmos.authz.v1beta1.MsgRevokeResponse[source]

Bases: Message

MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.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 exec(msg_exec: MsgExec, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgExecResponse[source]
async grant(msg_grant: MsgGrant, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgGrantResponse[source]
async revoke(msg_revoke: MsgRevoke, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgRevokeResponse[source]
class evmos.proto.autogen.py.cosmos.authz.v1beta1.QueryBase[source]

Bases: ServiceBase

async grantee_grants(query_grantee_grants_request: QueryGranteeGrantsRequest) QueryGranteeGrantsResponse[source]
async granter_grants(query_granter_grants_request: QueryGranterGrantsRequest) QueryGranterGrantsResponse[source]
async grants(query_grants_request: QueryGrantsRequest) QueryGrantsResponse[source]
class evmos.proto.autogen.py.cosmos.authz.v1beta1.QueryGranteeGrantsRequest(grantee: str = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]

Bases: Message

QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.

grantee: str = <object object>
pagination: PageRequest = <object object>

pagination defines an pagination for the request.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.QueryGranteeGrantsResponse(grants: ~typing.List[~evmos.proto.autogen.py.cosmos.authz.v1beta1.GrantAuthorization] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]

Bases: Message

QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.

grants: List[GrantAuthorization] = <object object>

grants is a list of grants granted to the grantee.

pagination: PageResponse = <object object>

pagination defines an pagination for the response.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.QueryGranterGrantsRequest(granter: str = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]

Bases: Message

QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.

granter: str = <object object>
pagination: PageRequest = <object object>

pagination defines an pagination for the request.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.QueryGranterGrantsResponse(grants: ~typing.List[~evmos.proto.autogen.py.cosmos.authz.v1beta1.GrantAuthorization] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]

Bases: Message

QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.

grants: List[GrantAuthorization] = <object object>

grants is a list of grants granted by the granter.

pagination: PageResponse = <object object>

pagination defines an pagination for the response.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.QueryGrantsRequest(granter: str = <object object>, grantee: str = <object object>, msg_type_url: str = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]

Bases: Message

QueryGrantsRequest is the request type for the Query/Grants RPC method.

grantee: str = <object object>
granter: str = <object object>
msg_type_url: str = <object object>

Optional, msg_type_url, when set, will query only grants matching given msg type.

pagination: PageRequest = <object object>

pagination defines an pagination for the request.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.QueryGrantsResponse(grants: ~typing.List[~evmos.proto.autogen.py.cosmos.authz.v1beta1.Grant] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]

Bases: Message

QueryGrantsResponse is the response type for the Query/Authorizations RPC method.

grants: List[Grant] = <object object>

authorizations is a list of grants granted for grantee by granter.

pagination: PageResponse = <object object>

pagination defines an pagination for the response.

class evmos.proto.autogen.py.cosmos.authz.v1beta1.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 grantee_grants(query_grantee_grants_request: QueryGranteeGrantsRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGranteeGrantsResponse[source]
async granter_grants(query_granter_grants_request: QueryGranterGrantsRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGranterGrantsResponse[source]
async grants(query_grants_request: QueryGrantsRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryGrantsResponse[source]