evmos.proto.autogen.py.cosmos.feegrant.v1beta1

Classes

AllowedMsgAllowance(allowance, allowed_messages)

AllowedMsgAllowance creates allowance only for specified message types.

BasicAllowance(spend_limit, expiration)

BasicAllowance implements Allowance with a one-time grant of coins that optionally expires.

GenesisState(allowances)

GenesisState contains a set of fee allowances, persisted from the store

Grant(granter, grantee, allowance)

Grant is stored in the KVStore to record a grant with full context

MsgBase()

MsgGrantAllowance(granter, grantee, allowance)

MsgGrantAllowance adds permission for Grantee to spend up to Allowance of fees from the account of Granter.

MsgGrantAllowanceResponse()

MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type.

MsgPruneAllowances(pruner)

MsgPruneAllowances prunes expired fee allowances.

MsgPruneAllowancesResponse()

MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type.

MsgRevokeAllowance(granter, grantee)

MsgRevokeAllowance removes any existing Allowance from Granter to Grantee.

MsgRevokeAllowanceResponse()

MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type.

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

PeriodicAllowance(basic, period, ...)

PeriodicAllowance extends Allowance to allow for both a maximum cap, as well as a limit per time period.

QueryAllowanceRequest(granter, grantee)

QueryAllowanceRequest is the request type for the Query/Allowance RPC method.

QueryAllowanceResponse(allowance)

QueryAllowanceResponse is the response type for the Query/Allowance RPC method.

QueryAllowancesByGranterRequest(granter, ...)

QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method.

QueryAllowancesByGranterResponse(allowances, ...)

QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method.

QueryAllowancesRequest(grantee, pagination)

QueryAllowancesRequest is the request type for the Query/Allowances RPC method.

QueryAllowancesResponse(allowances, pagination)

QueryAllowancesResponse is the response type for the Query/Allowances RPC method.

QueryBase()

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

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.AllowedMsgAllowance(allowance: ~betterproto.lib.google.protobuf.Any = <object object>, allowed_messages: ~typing.List[str] = <object object>)[source]

Bases: Message

AllowedMsgAllowance creates allowance only for specified message types.

allowance: Any = <object object>

allowance can be any of basic and periodic fee allowance.

allowed_messages: List[str] = <object object>

allowed_messages are the messages for which the grantee has the access.

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.BasicAllowance(spend_limit: ~typing.List[~evmos.proto.autogen.py.cosmos.base.v1beta1.Coin] = <object object>, expiration: ~datetime.datetime = <object object>)[source]

Bases: Message

BasicAllowance implements Allowance with a one-time grant of coins that optionally expires. The grantee can use up to SpendLimit to cover fees.

expiration: datetime = <object object>

expiration specifies an optional time when this allowance expires

spend_limit: List[Coin] = <object object>

spend_limit specifies the maximum amount of coins that can be spent by this allowance and will be updated as coins are spent. If it is empty, there is no spend limit and any amount of coins can be spent.

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.GenesisState(allowances: ~typing.List[~evmos.proto.autogen.py.cosmos.feegrant.v1beta1.Grant] = <object object>)[source]

Bases: Message

GenesisState contains a set of fee allowances, persisted from the store

allowances: List[Grant] = <object object>
class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.Grant(granter: str = <object object>, grantee: str = <object object>, allowance: ~betterproto.lib.google.protobuf.Any = <object object>)[source]

Bases: Message

Grant is stored in the KVStore to record a grant with full context

allowance: Any = <object object>

allowance can be any of basic, periodic, allowed fee allowance.

grantee: str = <object object>

grantee is the address of the user being granted an allowance of another user’s funds.

granter: str = <object object>

granter is the address of the user granting an allowance of their funds.

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

Bases: ServiceBase

async grant_allowance(msg_grant_allowance: MsgGrantAllowance) MsgGrantAllowanceResponse[source]
async prune_allowances(msg_prune_allowances: MsgPruneAllowances) MsgPruneAllowancesResponse[source]
async revoke_allowance(msg_revoke_allowance: MsgRevokeAllowance) MsgRevokeAllowanceResponse[source]
class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgGrantAllowance(granter: str = <object object>, grantee: str = <object object>, allowance: ~betterproto.lib.google.protobuf.Any = <object object>)[source]

Bases: Message

MsgGrantAllowance adds permission for Grantee to spend up to Allowance of fees from the account of Granter.

allowance: Any = <object object>

allowance can be any of basic, periodic, allowed fee allowance.

grantee: str = <object object>

grantee is the address of the user being granted an allowance of another user’s funds.

granter: str = <object object>

granter is the address of the user granting an allowance of their funds.

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse[source]

Bases: Message

MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type.

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgPruneAllowances(pruner: str = <object object>)[source]

Bases: Message

MsgPruneAllowances prunes expired fee allowances. Since cosmos-sdk 0.50

pruner: str = <object object>

pruner is the address of the user pruning expired allowances.

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse[source]

Bases: Message

MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. Since cosmos-sdk 0.50

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

Bases: Message

MsgRevokeAllowance removes any existing Allowance from Granter to Grantee.

grantee: str = <object object>

grantee is the address of the user being granted an allowance of another user’s funds.

granter: str = <object object>

granter is the address of the user granting an allowance of their funds.

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse[source]

Bases: Message

MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type.

class evmos.proto.autogen.py.cosmos.feegrant.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 grant_allowance(msg_grant_allowance: MsgGrantAllowance, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgGrantAllowanceResponse[source]
async prune_allowances(msg_prune_allowances: MsgPruneAllowances, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgPruneAllowancesResponse[source]
async revoke_allowance(msg_revoke_allowance: MsgRevokeAllowance, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MsgRevokeAllowanceResponse[source]
class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.PeriodicAllowance(basic: ~evmos.proto.autogen.py.cosmos.feegrant.v1beta1.BasicAllowance = <object object>, period: ~datetime.timedelta = <object object>, period_spend_limit: ~typing.List[~evmos.proto.autogen.py.cosmos.base.v1beta1.Coin] = <object object>, period_can_spend: ~typing.List[~evmos.proto.autogen.py.cosmos.base.v1beta1.Coin] = <object object>, period_reset: ~datetime.datetime = <object object>)[source]

Bases: Message

PeriodicAllowance extends Allowance to allow for both a maximum cap, as well as a limit per time period.

basic: BasicAllowance = <object object>

basic specifies a struct of BasicAllowance

period: timedelta = <object object>

period specifies the time duration in which period_spend_limit coins can be spent before that allowance is reset

period_can_spend: List[Coin] = <object object>

period_can_spend is the number of coins left to be spent before the period_reset time

period_reset: datetime = <object object>

period_reset is the time at which this period resets and a new one begins, it is calculated from the start time of the first transaction after the last period ended

period_spend_limit: List[Coin] = <object object>

period_spend_limit specifies the maximum number of coins that can be spent in the period

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

Bases: Message

QueryAllowanceRequest is the request type for the Query/Allowance RPC method.

grantee: str = <object object>

grantee is the address of the user being granted an allowance of another user’s funds.

granter: str = <object object>

granter is the address of the user granting an allowance of their funds.

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.QueryAllowanceResponse(allowance: ~evmos.proto.autogen.py.cosmos.feegrant.v1beta1.Grant = <object object>)[source]

Bases: Message

QueryAllowanceResponse is the response type for the Query/Allowance RPC method.

allowance: Grant = <object object>

allowance is a allowance granted for grantee by granter.

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

Bases: Message

QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. .. versionadded:: 0.46

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

pagination defines an pagination for the request.

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

Bases: Message

QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. .. versionadded:: 0.46

allowances: List[Grant] = <object object>

allowances that have been issued by the granter.

pagination: PageResponse = <object object>

pagination defines an pagination for the response.

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

Bases: Message

QueryAllowancesRequest is the request type for the Query/Allowances RPC method.

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

pagination defines an pagination for the request.

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

Bases: Message

QueryAllowancesResponse is the response type for the Query/Allowances RPC method.

allowances: List[Grant] = <object object>

allowances are allowance’s granted for grantee by granter.

pagination: PageResponse = <object object>

pagination defines an pagination for the response.

class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.QueryBase[source]

Bases: ServiceBase

async allowance(query_allowance_request: QueryAllowanceRequest) QueryAllowanceResponse[source]
async allowances(query_allowances_request: QueryAllowancesRequest) QueryAllowancesResponse[source]
async allowances_by_granter(query_allowances_by_granter_request: QueryAllowancesByGranterRequest) QueryAllowancesByGranterResponse[source]
class evmos.proto.autogen.py.cosmos.feegrant.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 allowance(query_allowance_request: QueryAllowanceRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryAllowanceResponse[source]
async allowances(query_allowances_request: QueryAllowancesRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryAllowancesResponse[source]
async allowances_by_granter(query_allowances_by_granter_request: QueryAllowancesByGranterRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) QueryAllowancesByGranterResponse[source]