Skip to main content

terra_sdk.core.authz.data

Authz module data types.

Authorization Objects


_1
class Authorization(BaseTerraData)

Base class for authorization types.

SendAuthorization Objects


_2
@attr.s
_2
class SendAuthorization(Authorization)

Type of :class:Authorization for :class:MsgSend<terra_sdk.core.bank.msgs.MsgSend>, which can be parameterized by setting a spend_limit allowance for the grantee.

Arguments:

  • spend_limit Coins.Input - coins representing allowance of grant

GenericAuthorization Objects


_2
@attr.s
_2
class GenericAuthorization(Authorization)

Generic type of :class:Authorization, specifying the type of message to allow.

Arguments:

  • msg - type of message allowed by authorization

AuthorizationGrant Objects


_2
@attr.s
_2
class AuthorizationGrant(JSONSerializable)

Contains information about an existing granted authorization between two users.

authorization

Grant authorization details.

expiration

Grant expiration.