evmos.proto.autogen.py.cosmos.feegrant.v1beta1
Classes
|
AllowedMsgAllowance creates allowance only for specified message types. |
|
BasicAllowance implements Allowance with a one-time grant of coins that optionally expires. |
|
GenesisState contains a set of fee allowances, persisted from the store |
|
Grant is stored in the KVStore to record a grant with full context |
|
|
|
MsgGrantAllowance adds permission for Grantee to spend up to Allowance of fees from the account of Granter. |
MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. |
|
|
MsgPruneAllowances prunes expired fee allowances. |
MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. |
|
|
MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. |
MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. |
|
|
|
|
PeriodicAllowance extends Allowance to allow for both a maximum cap, as well as a limit per time period. |
|
QueryAllowanceRequest is the request type for the Query/Allowance RPC method. |
|
QueryAllowanceResponse is the response type for the Query/Allowance RPC method. |
|
QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. |
|
QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. |
|
QueryAllowancesRequest is the request type for the Query/Allowances RPC method. |
|
QueryAllowancesResponse is the response type for the Query/Allowances RPC method. |
|
- 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:
MessageAllowedMsgAllowance creates allowance only for specified message types.
- allowance: Any = <object object>
allowance can be any of basic and periodic fee allowance.
- 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:
MessageBasicAllowance implements Allowance with a one-time grant of coins that optionally expires. The grantee can use up to SpendLimit to cover fees.
- class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.GenesisState(allowances: ~typing.List[~evmos.proto.autogen.py.cosmos.feegrant.v1beta1.Grant] = <object object>)[source]
Bases:
MessageGenesisState contains a set of fee allowances, persisted from the store
- 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:
MessageGrant 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.
- 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:
MessageMsgGrantAllowance 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.
- class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse[source]
Bases:
MessageMsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type.
- class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgPruneAllowances(pruner: str = <object object>)[source]
Bases:
MessageMsgPruneAllowances prunes expired fee allowances. Since cosmos-sdk 0.50
- class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse[source]
Bases:
MessageMsgPruneAllowancesResponse 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:
MessageMsgRevokeAllowance removes any existing Allowance from Granter to Grantee.
- class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse[source]
Bases:
MessageMsgRevokeAllowanceResponse 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:
MessagePeriodicAllowance 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
- class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.QueryAllowanceRequest(granter: str = <object object>, grantee: str = <object object>)[source]
Bases:
MessageQueryAllowanceRequest is the request type for the Query/Allowance RPC method.
- class evmos.proto.autogen.py.cosmos.feegrant.v1beta1.QueryAllowanceResponse(allowance: ~evmos.proto.autogen.py.cosmos.feegrant.v1beta1.Grant = <object object>)[source]
Bases:
MessageQueryAllowanceResponse is the response type for the Query/Allowance RPC method.
- 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:
MessageQueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. .. versionadded:: 0.46
- 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:
MessageQueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. .. versionadded:: 0.46
- 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:
MessageQueryAllowancesRequest is the request type for the Query/Allowances RPC method.
- 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:
MessageQueryAllowancesResponse 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]