Builder

class Builder
StakeAuthorization defines authorization for delegate/undelegate/redelegate.
Since: cosmos-sdk 0.43
Protobuf type TW.Cosmos.Proto.Message.StakeAuthorization

Functions

Link copied to clipboard
allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
account.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators allow_list = 2;
Link copied to clipboard
authorization_type defines one of AuthorizationType.
.TW.Cosmos.Proto.Message.AuthorizationType authorization_type = 4;
Link copied to clipboard
deny_list specifies list of validator addresses to whom grantee can not delegate tokens.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators deny_list = 3;
Link copied to clipboard
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.
.TW.Cosmos.Proto.Amount max_tokens = 1;
Link copied to clipboard
open fun getAllowList(): Validators
allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
account.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators allow_list = 2;
Link copied to clipboard
open fun getAuthorizationType(): AuthorizationType
authorization_type defines one of AuthorizationType.
.TW.Cosmos.Proto.Message.AuthorizationType authorization_type = 4;
Link copied to clipboard
authorization_type defines one of AuthorizationType.
.TW.Cosmos.Proto.Message.AuthorizationType authorization_type = 4;
Link copied to clipboard
open fun getDenyList(): Validators
deny_list specifies list of validator addresses to whom grantee can not delegate tokens.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators deny_list = 3;
Link copied to clipboard
open fun getMaxTokens(): Amount
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.
.TW.Cosmos.Proto.Amount max_tokens = 1;
Link copied to clipboard
open fun hasAllowList(): Boolean
allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
account.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators allow_list = 2;
Link copied to clipboard
open fun hasDenyList(): Boolean
deny_list specifies list of validator addresses to whom grantee can not delegate tokens.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators deny_list = 3;
Link copied to clipboard
open fun hasMaxTokens(): Boolean
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.
.TW.Cosmos.Proto.Amount max_tokens = 1;
Link copied to clipboard
allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
account.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators allow_list = 2;
Link copied to clipboard
deny_list specifies list of validator addresses to whom grantee can not delegate tokens.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators deny_list = 3;
Link copied to clipboard
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.
.TW.Cosmos.Proto.Amount max_tokens = 1;
Link copied to clipboard
open fun setAllowList(builderForValue: Builder): Cosmos.Message.StakeAuthorization.Builder
allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
account.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators allow_list = 2;
Link copied to clipboard
authorization_type defines one of AuthorizationType.
.TW.Cosmos.Proto.Message.AuthorizationType authorization_type = 4;
Link copied to clipboard
authorization_type defines one of AuthorizationType.
.TW.Cosmos.Proto.Message.AuthorizationType authorization_type = 4;
Link copied to clipboard
open fun setDenyList(builderForValue: Builder): Cosmos.Message.StakeAuthorization.Builder
deny_list specifies list of validator addresses to whom grantee can not delegate tokens.
.TW.Cosmos.Proto.Message.StakeAuthorization.Validators deny_list = 3;
Link copied to clipboard
open fun setMaxTokens(builderForValue: Builder): Cosmos.Message.StakeAuthorization.Builder
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.
.TW.Cosmos.Proto.Amount max_tokens = 1;