StakeAuthorization defines authorization for delegate/undelegate/redelegate.

Since: cosmos-sdk 0.43

interface StakeAuthorization {
    $typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization";
    allowList?: StakeAuthorization_Validators;
    authorizationType: AuthorizationType;
    denyList?: StakeAuthorization_Validators;
    maxTokens?: Coin;
}

Properties

$typeUrl?: "/cosmos.staking.v1beta1.StakeAuthorization"

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

authorizationType: AuthorizationType

authorization_type defines one of AuthorizationType.

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

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.