StakeAuthorization defines authorization for delegate/undelegate/redelegate.

Since: cosmos-sdk 0.43

from message cosmos.staking.v1beta1.StakeAuthorization

Hierarchy

Constructors

Properties

authorizationType: AuthorizationType = AuthorizationType.UNSPECIFIED

authorization_type defines one of AuthorizationType.

from field: cosmos.staking.v1beta1.AuthorizationType authorization_type = 4;

maxTokens?: Coin

max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is empty, there is no spend limit and any amount of coins can be delegated.

from field: cosmos.base.v1beta1.Coin max_tokens = 1;

validators:
    | { case: "allowList"; value: StakeAuthorization_Validators }
    | { case: "denyList"; value: StakeAuthorization_Validators }
    | { case: undefined; value?: undefined } = ...

validators is the oneof that represents either allow_list or deny_list

Type declaration

  • { case: "allowList"; value: StakeAuthorization_Validators }
    • case: "allowList"
    • value: StakeAuthorization_Validators

      allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's account.

      from field: cosmos.staking.v1beta1.StakeAuthorization.Validators allow_list = 2;

  • { case: "denyList"; value: StakeAuthorization_Validators }
    • case: "denyList"
    • value: StakeAuthorization_Validators

      deny_list specifies list of validator addresses to whom grantee can not delegate tokens.

      from field: cosmos.staking.v1beta1.StakeAuthorization.Validators deny_list = 3;

  • { case: undefined; value?: undefined }

from oneof cosmos.staking.v1beta1.StakeAuthorization.validators

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "cosmos.staking.v1beta1.StakeAuthorization"

Methods

MMNEPVFCICPMFPCPTTAAATR