types

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 36 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeSetWithdrawAddress          = "set_withdraw_address"
	EventTypeRewards                     = "rewards"
	EventTypeCommission                  = "commission"
	EventTypeWithdrawRewards             = "withdraw_rewards"
	EventTypeWithdrawCommission          = "withdraw_commission"
	EventTypeWithdrawTokenizeShareReward = "withdraw_tokenize_share_reward"
	EventTypeProposerReward              = "proposer_reward"

	AttributeKeyWithdrawAddress = "withdraw_address"
	AttributeKeyValidator       = "validator"

	AttributeValueCategory = ModuleName
)

distribution module event types

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "distribution"

	// StoreKey is the store key string for distribution
	StoreKey = ModuleName

	// RouterKey is the message route for distribution
	RouterKey = ModuleName

	// QuerierRoute is the querier route for distribution
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgSetWithdrawAddress                   = "set_withdraw_address"
	TypeMsgWithdrawDelegatorReward              = "withdraw_delegator_reward"
	TypeMsgWithdrawValidatorCommission          = "withdraw_validator_commission"
	TypeMsgFundCommunityPool                    = "fund_community_pool"
	TypeMsgWithdrawTokenizeShareRecordReward    = "withdraw_tokenize_share_record_reward"
	TypeMsgWithdrawAllTokenizeShareRecordReward = "withdraw_all_tokenize_share_record_reward"
)

distribution message types

View Source
const (
	QueryParams                      = "params"
	QueryValidatorOutstandingRewards = "validator_outstanding_rewards"
	QueryValidatorCommission         = "validator_commission"
	QueryValidatorSlashes            = "validator_slashes"
	QueryDelegationRewards           = "delegation_rewards"
	QueryDelegatorTotalRewards       = "delegator_total_rewards"
	QueryDelegatorValidators         = "delegator_validators"
	QueryWithdrawAddr                = "withdraw_addr"
	QueryCommunityPool               = "community_pool"
)

querier keys

View Source
const (
	// ProposalTypeCommunityPoolSpend defines the type for a CommunityPoolSpendProposal
	ProposalTypeCommunityPoolSpend = "CommunityPoolSpend"
)

Variables

View Source
var (
	ErrInvalidLengthDistribution        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDistribution          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDistribution = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	FeePoolKey                        = []byte{0x00} // key for global distribution state
	ProposerKey                       = []byte{0x01} // key for the proposer operator address
	ValidatorOutstandingRewardsPrefix = []byte{0x02} // key for outstanding rewards

	DelegatorWithdrawAddrPrefix          = []byte{0x03} // key for delegator withdraw address
	DelegatorStartingInfoPrefix          = []byte{0x04} // key for delegator starting info
	ValidatorHistoricalRewardsPrefix     = []byte{0x05} // key for historical validators rewards / stake
	ValidatorCurrentRewardsPrefix        = []byte{0x06} // key for current validator rewards
	ValidatorAccumulatedCommissionPrefix = []byte{0x07} // key for accumulated validator commission
	ValidatorSlashEventPrefix            = []byte{0x08} // key for validator slash fraction
)

Keys for distribution store Items are stored with the following key: values

- 0x00<proposalID_Bytes>: FeePol

- 0x01: sdk.ConsAddress

- 0x02<valAddrLen (1 Byte)><valAddr_Bytes>: ValidatorOutstandingRewards

- 0x03<accAddrLen (1 Byte)><accAddr_Bytes>: sdk.AccAddress

- 0x04<valAddrLen (1 Byte)><valAddr_Bytes><accAddrLen (1 Byte)><accAddr_Bytes>: DelegatorStartingInfo

- 0x05<valAddrLen (1 Byte)><valAddr_Bytes><period_Bytes>: ValidatorHistoricalRewards

- 0x06<valAddrLen (1 Byte)><valAddr_Bytes>: ValidatorCurrentRewards

- 0x07<valAddrLen (1 Byte)><valAddr_Bytes>: ValidatorCurrentCommission

- 0x08<valAddrLen (1 Byte)><valAddr_Bytes><height>: ValidatorSlashEvent

View Source
var (
	ParamStoreKeyCommunityTax        = []byte("communitytax")
	ParamStoreKeyBaseProposerReward  = []byte("baseproposerreward")
	ParamStoreKeyBonusProposerReward = []byte("bonusproposerreward")
	ParamStoreKeyWithdrawAddrEnabled = []byte("withdrawaddrenabled")
)

Parameter keys

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// 	ErrEmptyDelegatorAddr      = sdkerrors.Register(ModuleName, 2, "delegator address is empty")
	// 	ErrEmptyWithdrawAddr       = sdkerrors.Register(ModuleName, 3, "withdraw address is empty")
	// 	ErrEmptyValidatorAddr      = sdkerrors.Register(ModuleName, 4, "validator address is empty")
	// 	ErrEmptyDelegationDistInfo = sdkerrors.Register(ModuleName, 5, "no delegation distribution info")
	// 	ErrNoValidatorDistInfo     = sdkerrors.Register(ModuleName, 6, "no validator distribution info")
	// 	ErrNoValidatorCommission   = sdkerrors.Register(ModuleName, 7, "no validator commission to withdraw")
	// 	ErrSetWithdrawAddrDisabled = sdkerrors.Register(ModuleName, 8, "set withdraw address disabled")
	// 	ErrBadDistribution         = sdkerrors.Register(ModuleName, 9, "community pool does not have sufficient coins to distribute")
	// 	ErrInvalidProposalAmount   = sdkerrors.Register(ModuleName, 10, "invalid community pool spend proposal amount")
	// 	ErrEmptyProposalRecipient  = sdkerrors.Register(ModuleName, 11, "invalid community pool spend proposal recipient")
	// 	ErrNoValidatorExists       = sdkerrors.Register(ModuleName, 12, "validator does not exist")
	// 	ErrNoDelegationExists      = sdkerrors.Register(ModuleName, 13, "delegation does not exist")
	ErrNotTokenizeShareRecordOwner = sdkerrors.Register(ModuleName, 44, "not tokenize share record owner")
)

x/distribution module sentinel errors

Functions

func GetDelegatorStartingInfoAddresses

func GetDelegatorStartingInfoAddresses(key []byte) (valAddr sdk.ValAddress, delAddr sdk.AccAddress)

GetDelegatorStartingInfoAddresses creates the addresses from a delegator starting info key.

func GetDelegatorStartingInfoKey

func GetDelegatorStartingInfoKey(v sdk.ValAddress, d sdk.AccAddress) []byte

GetDelegatorStartingInfoKey creates the key for a delegator's starting info.

func GetDelegatorWithdrawAddrKey

func GetDelegatorWithdrawAddrKey(delAddr sdk.AccAddress) []byte

GetDelegatorWithdrawAddrKey creates the key for a delegator's withdraw addr.

func GetDelegatorWithdrawInfoAddress

func GetDelegatorWithdrawInfoAddress(key []byte) (delAddr sdk.AccAddress)

GetDelegatorWithdrawInfoAddress creates an address from a delegator's withdraw info key.

func GetValidatorAccumulatedCommissionAddress

func GetValidatorAccumulatedCommissionAddress(key []byte) (valAddr sdk.ValAddress)

GetValidatorAccumulatedCommissionAddress creates the address from a validator's accumulated commission key.

func GetValidatorAccumulatedCommissionKey

func GetValidatorAccumulatedCommissionKey(v sdk.ValAddress) []byte

GetValidatorAccumulatedCommissionKey creates the key for a validator's current commission.

func GetValidatorCurrentRewardsAddress

func GetValidatorCurrentRewardsAddress(key []byte) (valAddr sdk.ValAddress)

GetValidatorCurrentRewardsAddress creates the address from a validator's current rewards key.

func GetValidatorCurrentRewardsKey

func GetValidatorCurrentRewardsKey(v sdk.ValAddress) []byte

GetValidatorCurrentRewardsKey creates the key for a validator's current rewards.

func GetValidatorHistoricalRewardsAddressPeriod

func GetValidatorHistoricalRewardsAddressPeriod(key []byte) (valAddr sdk.ValAddress, period uint64)

GetValidatorHistoricalRewardsAddressPeriod creates the address & period from a validator's historical rewards key.

func GetValidatorHistoricalRewardsKey

func GetValidatorHistoricalRewardsKey(v sdk.ValAddress, k uint64) []byte

GetValidatorHistoricalRewardsKey creates the key for a validator's historical rewards.

func GetValidatorHistoricalRewardsPrefix

func GetValidatorHistoricalRewardsPrefix(v sdk.ValAddress) []byte

GetValidatorHistoricalRewardsPrefix creates the prefix key for a validator's historical rewards.

func GetValidatorOutstandingRewardsAddress

func GetValidatorOutstandingRewardsAddress(key []byte) (valAddr sdk.ValAddress)

GetValidatorOutstandingRewardsAddress creates an address from a validator's outstanding rewards key.

func GetValidatorOutstandingRewardsKey

func GetValidatorOutstandingRewardsKey(valAddr sdk.ValAddress) []byte

GetValidatorOutstandingRewardsKey creates the outstanding rewards key for a validator.

func GetValidatorSlashEventAddressHeight

func GetValidatorSlashEventAddressHeight(key []byte) (valAddr sdk.ValAddress, height uint64)

GetValidatorSlashEventAddressHeight creates the height from a validator's slash event key.

func GetValidatorSlashEventKey

func GetValidatorSlashEventKey(v sdk.ValAddress, height, period uint64) []byte

GetValidatorSlashEventKey creates the key for a validator's slash fraction.

func GetValidatorSlashEventKeyPrefix

func GetValidatorSlashEventKeyPrefix(v sdk.ValAddress, height uint64) []byte

GetValidatorSlashEventKeyPrefix creates the prefix key for a validator's slash fraction (ValidatorSlashEventPrefix + height).

func GetValidatorSlashEventPrefix

func GetValidatorSlashEventPrefix(v sdk.ValAddress) []byte

GetValidatorSlashEventPrefix creates the prefix key for a validator's slash fractions.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/distribution interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(gs *GenesisState) error

ValidateGenesis validates the genesis state of distribution genesis input

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI

	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, name string) types.ModuleAccountI

	// TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862
	SetModuleAccount(sdk.Context, types.ModuleAccountI)
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error

	BlockedAddr(addr sdk.AccAddress) bool
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommunityPoolSpendProposal

type CommunityPoolSpendProposal struct {
	Title       string                                   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string                                   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Recipient   string                                   `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Amount      github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

CommunityPoolSpendProposal details a proposal for use of community funds, together with how many coins are proposed to be spent, and to which recipient account.

func NewCommunityPoolSpendProposal

func NewCommunityPoolSpendProposal(title, description string, recipient sdk.AccAddress, amount sdk.Coins) *CommunityPoolSpendProposal

NewCommunityPoolSpendProposal creates a new community pool spend proposal.

func (*CommunityPoolSpendProposal) Descriptor

func (*CommunityPoolSpendProposal) Descriptor() ([]byte, []int)

func (*CommunityPoolSpendProposal) GetDescription

func (csp *CommunityPoolSpendProposal) GetDescription() string

GetDescription returns the description of a community pool spend proposal.

func (*CommunityPoolSpendProposal) GetTitle

func (csp *CommunityPoolSpendProposal) GetTitle() string

GetTitle returns the title of a community pool spend proposal.

func (*CommunityPoolSpendProposal) Marshal

func (m *CommunityPoolSpendProposal) Marshal() (dAtA []byte, err error)

func (*CommunityPoolSpendProposal) MarshalTo

func (m *CommunityPoolSpendProposal) MarshalTo(dAtA []byte) (int, error)

func (*CommunityPoolSpendProposal) MarshalToSizedBuffer

func (m *CommunityPoolSpendProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommunityPoolSpendProposal) ProposalRoute

func (csp *CommunityPoolSpendProposal) ProposalRoute() string

GetDescription returns the routing key of a community pool spend proposal.

func (*CommunityPoolSpendProposal) ProposalType

func (csp *CommunityPoolSpendProposal) ProposalType() string

ProposalType returns the type of a community pool spend proposal.

func (*CommunityPoolSpendProposal) ProtoMessage

func (*CommunityPoolSpendProposal) ProtoMessage()

func (*CommunityPoolSpendProposal) Reset

func (m *CommunityPoolSpendProposal) Reset()

func (*CommunityPoolSpendProposal) Size

func (m *CommunityPoolSpendProposal) Size() (n int)

func (CommunityPoolSpendProposal) String

func (csp CommunityPoolSpendProposal) String() string

String implements the Stringer interface.

func (*CommunityPoolSpendProposal) Unmarshal

func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error

func (*CommunityPoolSpendProposal) ValidateBasic

func (csp *CommunityPoolSpendProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*CommunityPoolSpendProposal) XXX_DiscardUnknown

func (m *CommunityPoolSpendProposal) XXX_DiscardUnknown()

func (*CommunityPoolSpendProposal) XXX_Marshal

func (m *CommunityPoolSpendProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommunityPoolSpendProposal) XXX_Merge

func (m *CommunityPoolSpendProposal) XXX_Merge(src proto.Message)

func (*CommunityPoolSpendProposal) XXX_Size

func (m *CommunityPoolSpendProposal) XXX_Size() int

func (*CommunityPoolSpendProposal) XXX_Unmarshal

func (m *CommunityPoolSpendProposal) XXX_Unmarshal(b []byte) error

type CommunityPoolSpendProposalWithDeposit

type CommunityPoolSpendProposalWithDeposit struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	Recipient   string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty" yaml:"recipient"`
	Amount      string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty" yaml:"amount"`
	Deposit     string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"`
}

CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal with a deposit

func (*CommunityPoolSpendProposalWithDeposit) Descriptor

func (*CommunityPoolSpendProposalWithDeposit) Descriptor() ([]byte, []int)

func (*CommunityPoolSpendProposalWithDeposit) Equal

func (this *CommunityPoolSpendProposalWithDeposit) Equal(that interface{}) bool

func (*CommunityPoolSpendProposalWithDeposit) Marshal

func (m *CommunityPoolSpendProposalWithDeposit) Marshal() (dAtA []byte, err error)

func (*CommunityPoolSpendProposalWithDeposit) MarshalTo

func (m *CommunityPoolSpendProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)

func (*CommunityPoolSpendProposalWithDeposit) MarshalToSizedBuffer

func (m *CommunityPoolSpendProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommunityPoolSpendProposalWithDeposit) ProtoMessage

func (*CommunityPoolSpendProposalWithDeposit) ProtoMessage()

func (*CommunityPoolSpendProposalWithDeposit) Reset

func (*CommunityPoolSpendProposalWithDeposit) Size

func (*CommunityPoolSpendProposalWithDeposit) String

func (*CommunityPoolSpendProposalWithDeposit) Unmarshal

func (m *CommunityPoolSpendProposalWithDeposit) Unmarshal(dAtA []byte) error

func (*CommunityPoolSpendProposalWithDeposit) XXX_DiscardUnknown

func (m *CommunityPoolSpendProposalWithDeposit) XXX_DiscardUnknown()

func (*CommunityPoolSpendProposalWithDeposit) XXX_Marshal

func (m *CommunityPoolSpendProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommunityPoolSpendProposalWithDeposit) XXX_Merge

func (*CommunityPoolSpendProposalWithDeposit) XXX_Size

func (*CommunityPoolSpendProposalWithDeposit) XXX_Unmarshal

func (m *CommunityPoolSpendProposalWithDeposit) XXX_Unmarshal(b []byte) error

type DelegationDelegatorReward

type DelegationDelegatorReward struct {
	ValidatorAddress string                                      `` /* 134-byte string literal not displayed */
	Reward           github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"reward"`
}

DelegationDelegatorReward represents the properties of a delegator's delegation reward.

func NewDelegationDelegatorReward

func NewDelegationDelegatorReward(valAddr sdk.ValAddress,
	reward sdk.DecCoins) DelegationDelegatorReward

NewDelegationDelegatorReward constructs a DelegationDelegatorReward.

func (*DelegationDelegatorReward) Descriptor

func (*DelegationDelegatorReward) Descriptor() ([]byte, []int)

func (*DelegationDelegatorReward) Equal

func (this *DelegationDelegatorReward) Equal(that interface{}) bool

func (*DelegationDelegatorReward) Marshal

func (m *DelegationDelegatorReward) Marshal() (dAtA []byte, err error)

func (*DelegationDelegatorReward) MarshalTo

func (m *DelegationDelegatorReward) MarshalTo(dAtA []byte) (int, error)

func (*DelegationDelegatorReward) MarshalToSizedBuffer

func (m *DelegationDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegationDelegatorReward) ProtoMessage

func (*DelegationDelegatorReward) ProtoMessage()

func (*DelegationDelegatorReward) Reset

func (m *DelegationDelegatorReward) Reset()

func (*DelegationDelegatorReward) Size

func (m *DelegationDelegatorReward) Size() (n int)

func (*DelegationDelegatorReward) String

func (m *DelegationDelegatorReward) String() string

func (*DelegationDelegatorReward) Unmarshal

func (m *DelegationDelegatorReward) Unmarshal(dAtA []byte) error

func (*DelegationDelegatorReward) XXX_DiscardUnknown

func (m *DelegationDelegatorReward) XXX_DiscardUnknown()

func (*DelegationDelegatorReward) XXX_Marshal

func (m *DelegationDelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegationDelegatorReward) XXX_Merge

func (m *DelegationDelegatorReward) XXX_Merge(src proto.Message)

func (*DelegationDelegatorReward) XXX_Size

func (m *DelegationDelegatorReward) XXX_Size() int

func (*DelegationDelegatorReward) XXX_Unmarshal

func (m *DelegationDelegatorReward) XXX_Unmarshal(b []byte) error

type DelegatorStartingInfo

type DelegatorStartingInfo struct {
	PreviousPeriod uint64                                 `` /* 127-byte string literal not displayed */
	Stake          github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=stake,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"stake" yaml:"stake"`
	Height         uint64                                 `protobuf:"varint,3,opt,name=height,proto3" json:"creation_height" yaml:"creation_height"`
}

DelegatorStartingInfo represents the starting info for a delegator reward period. It tracks the previous validator period, the delegation's amount of staking token, and the creation height (to check later on if any slashes have occurred). NOTE: Even though validators are slashed to whole staking tokens, the delegators within the validator may be left with less than a full token, thus sdk.Dec is used.

func NewDelegatorStartingInfo

func NewDelegatorStartingInfo(previousPeriod uint64, stake sdk.Dec, height uint64) DelegatorStartingInfo

create a new DelegatorStartingInfo

func (*DelegatorStartingInfo) Descriptor

func (*DelegatorStartingInfo) Descriptor() ([]byte, []int)

func (*DelegatorStartingInfo) Equal

func (this *DelegatorStartingInfo) Equal(that interface{}) bool

func (*DelegatorStartingInfo) GetHeight

func (m *DelegatorStartingInfo) GetHeight() uint64

func (*DelegatorStartingInfo) GetPreviousPeriod

func (m *DelegatorStartingInfo) GetPreviousPeriod() uint64

func (*DelegatorStartingInfo) Marshal

func (m *DelegatorStartingInfo) Marshal() (dAtA []byte, err error)

func (*DelegatorStartingInfo) MarshalTo

func (m *DelegatorStartingInfo) MarshalTo(dAtA []byte) (int, error)

func (*DelegatorStartingInfo) MarshalToSizedBuffer

func (m *DelegatorStartingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegatorStartingInfo) ProtoMessage

func (*DelegatorStartingInfo) ProtoMessage()

func (*DelegatorStartingInfo) Reset

func (m *DelegatorStartingInfo) Reset()

func (*DelegatorStartingInfo) Size

func (m *DelegatorStartingInfo) Size() (n int)

func (*DelegatorStartingInfo) String

func (m *DelegatorStartingInfo) String() string

func (*DelegatorStartingInfo) Unmarshal

func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error

func (*DelegatorStartingInfo) XXX_DiscardUnknown

func (m *DelegatorStartingInfo) XXX_DiscardUnknown()

func (*DelegatorStartingInfo) XXX_Marshal

func (m *DelegatorStartingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegatorStartingInfo) XXX_Merge

func (m *DelegatorStartingInfo) XXX_Merge(src proto.Message)

func (*DelegatorStartingInfo) XXX_Size

func (m *DelegatorStartingInfo) XXX_Size() int

func (*DelegatorStartingInfo) XXX_Unmarshal

func (m *DelegatorStartingInfo) XXX_Unmarshal(b []byte) error

type DelegatorStartingInfoRecord

type DelegatorStartingInfoRecord struct {
	// delegator_address is the address of the delegator.
	DelegatorAddress string `` /* 134-byte string literal not displayed */
	// validator_address is the address of the validator.
	ValidatorAddress string `` /* 134-byte string literal not displayed */
	// starting_info defines the starting info of a delegator.
	StartingInfo DelegatorStartingInfo `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3" json:"starting_info" yaml:"starting_info"`
}

DelegatorStartingInfoRecord used for import / export via genesis json.

func (*DelegatorStartingInfoRecord) Descriptor

func (*DelegatorStartingInfoRecord) Descriptor() ([]byte, []int)

func (*DelegatorStartingInfoRecord) Marshal

func (m *DelegatorStartingInfoRecord) Marshal() (dAtA []byte, err error)

func (*DelegatorStartingInfoRecord) MarshalTo

func (m *DelegatorStartingInfoRecord) MarshalTo(dAtA []byte) (int, error)

func (*DelegatorStartingInfoRecord) MarshalToSizedBuffer

func (m *DelegatorStartingInfoRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegatorStartingInfoRecord) ProtoMessage

func (*DelegatorStartingInfoRecord) ProtoMessage()

func (*DelegatorStartingInfoRecord) Reset

func (m *DelegatorStartingInfoRecord) Reset()

func (*DelegatorStartingInfoRecord) Size

func (m *DelegatorStartingInfoRecord) Size() (n int)

func (*DelegatorStartingInfoRecord) String

func (m *DelegatorStartingInfoRecord) String() string

func (*DelegatorStartingInfoRecord) Unmarshal

func (m *DelegatorStartingInfoRecord) Unmarshal(dAtA []byte) error

func (*DelegatorStartingInfoRecord) XXX_DiscardUnknown

func (m *DelegatorStartingInfoRecord) XXX_DiscardUnknown()

func (*DelegatorStartingInfoRecord) XXX_Marshal

func (m *DelegatorStartingInfoRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegatorStartingInfoRecord) XXX_Merge

func (m *DelegatorStartingInfoRecord) XXX_Merge(src proto.Message)

func (*DelegatorStartingInfoRecord) XXX_Size

func (m *DelegatorStartingInfoRecord) XXX_Size() int

func (*DelegatorStartingInfoRecord) XXX_Unmarshal

func (m *DelegatorStartingInfoRecord) XXX_Unmarshal(b []byte) error

type DelegatorWithdrawInfo

type DelegatorWithdrawInfo struct {
	// delegator_address is the address of the delegator.
	DelegatorAddress string `` /* 134-byte string literal not displayed */
	// withdraw_address is the address to withdraw the delegation rewards to.
	WithdrawAddress string `` /* 130-byte string literal not displayed */
}

DelegatorWithdrawInfo is the address for where distributions rewards are withdrawn to by default this struct is only used at genesis to feed in default withdraw addresses.

func (*DelegatorWithdrawInfo) Descriptor

func (*DelegatorWithdrawInfo) Descriptor() ([]byte, []int)

func (*DelegatorWithdrawInfo) Marshal

func (m *DelegatorWithdrawInfo) Marshal() (dAtA []byte, err error)

func (*DelegatorWithdrawInfo) MarshalTo

func (m *DelegatorWithdrawInfo) MarshalTo(dAtA []byte) (int, error)

func (*DelegatorWithdrawInfo) MarshalToSizedBuffer

func (m *DelegatorWithdrawInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegatorWithdrawInfo) ProtoMessage

func (*DelegatorWithdrawInfo) ProtoMessage()

func (*DelegatorWithdrawInfo) Reset

func (m *DelegatorWithdrawInfo) Reset()

func (*DelegatorWithdrawInfo) Size

func (m *DelegatorWithdrawInfo) Size() (n int)

func (*DelegatorWithdrawInfo) String

func (m *DelegatorWithdrawInfo) String() string

func (*DelegatorWithdrawInfo) Unmarshal

func (m *DelegatorWithdrawInfo) Unmarshal(dAtA []byte) error

func (*DelegatorWithdrawInfo) XXX_DiscardUnknown

func (m *DelegatorWithdrawInfo) XXX_DiscardUnknown()

func (*DelegatorWithdrawInfo) XXX_Marshal

func (m *DelegatorWithdrawInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegatorWithdrawInfo) XXX_Merge

func (m *DelegatorWithdrawInfo) XXX_Merge(src proto.Message)

func (*DelegatorWithdrawInfo) XXX_Size

func (m *DelegatorWithdrawInfo) XXX_Size() int

func (*DelegatorWithdrawInfo) XXX_Unmarshal

func (m *DelegatorWithdrawInfo) XXX_Unmarshal(b []byte) error

type FeePool

type FeePool struct {
	CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 169-byte string literal not displayed */
}

FeePool is the global fee pool for distribution.

func InitialFeePool

func InitialFeePool() FeePool

zero fee pool

func (*FeePool) Descriptor

func (*FeePool) Descriptor() ([]byte, []int)

func (*FeePool) Equal

func (this *FeePool) Equal(that interface{}) bool

func (*FeePool) GetCommunityPool

func (m *FeePool) GetCommunityPool() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*FeePool) Marshal

func (m *FeePool) Marshal() (dAtA []byte, err error)

func (*FeePool) MarshalTo

func (m *FeePool) MarshalTo(dAtA []byte) (int, error)

func (*FeePool) MarshalToSizedBuffer

func (m *FeePool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeePool) ProtoMessage

func (*FeePool) ProtoMessage()

func (*FeePool) Reset

func (m *FeePool) Reset()

func (*FeePool) Size

func (m *FeePool) Size() (n int)

func (*FeePool) String

func (m *FeePool) String() string

func (*FeePool) Unmarshal

func (m *FeePool) Unmarshal(dAtA []byte) error

func (FeePool) ValidateGenesis

func (f FeePool) ValidateGenesis() error

ValidateGenesis validates the fee pool for a genesis state

func (*FeePool) XXX_DiscardUnknown

func (m *FeePool) XXX_DiscardUnknown()

func (*FeePool) XXX_Marshal

func (m *FeePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeePool) XXX_Merge

func (m *FeePool) XXX_Merge(src proto.Message)

func (*FeePool) XXX_Size

func (m *FeePool) XXX_Size() int

func (*FeePool) XXX_Unmarshal

func (m *FeePool) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// params defines all the paramaters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
	// fee_pool defines the fee pool at genesis.
	FeePool FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3" json:"fee_pool" yaml:"fee_pool"`
	// fee_pool defines the delegator withdraw infos at genesis.
	DelegatorWithdrawInfos []DelegatorWithdrawInfo `` /* 151-byte string literal not displayed */
	// fee_pool defines the previous proposer at genesis.
	PreviousProposer string `` /* 134-byte string literal not displayed */
	// fee_pool defines the outstanding rewards of all validators at genesis.
	OutstandingRewards []ValidatorOutstandingRewardsRecord `` /* 132-byte string literal not displayed */
	// fee_pool defines the accumulated commisions of all validators at genesis.
	ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord `` /* 187-byte string literal not displayed */
	// fee_pool defines the historical rewards of all validators at genesis.
	ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord `` /* 167-byte string literal not displayed */
	// fee_pool defines the current rewards of all validators at genesis.
	ValidatorCurrentRewards []ValidatorCurrentRewardsRecord `` /* 155-byte string literal not displayed */
	// fee_pool defines the delegator starting infos at genesis.
	DelegatorStartingInfos []DelegatorStartingInfoRecord `` /* 151-byte string literal not displayed */
	// fee_pool defines the validator slash events at genesis.
	ValidatorSlashEvents []ValidatorSlashEventRecord `` /* 144-byte string literal not displayed */
}

GenesisState defines the distribution module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

get raw genesis raw message for testing

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// SetWithdrawAddress defines a method to change the withdraw address
	// for a delegator (or validator self-delegation).
	SetWithdrawAddress(ctx context.Context, in *MsgSetWithdrawAddress, opts ...grpc.CallOption) (*MsgSetWithdrawAddressResponse, error)
	// WithdrawDelegatorReward defines a method to withdraw rewards of delegator
	// from a single validator.
	WithdrawDelegatorReward(ctx context.Context, in *MsgWithdrawDelegatorReward, opts ...grpc.CallOption) (*MsgWithdrawDelegatorRewardResponse, error)
	// WithdrawValidatorCommission defines a method to withdraw the
	// full commission to the validator address.
	WithdrawValidatorCommission(ctx context.Context, in *MsgWithdrawValidatorCommission, opts ...grpc.CallOption) (*MsgWithdrawValidatorCommissionResponse, error)
	// WithdrawTokenizeShareRecordReward defines a method to withdraw reward for an owning TokenizeShareRecord
	WithdrawTokenizeShareRecordReward(ctx context.Context, in *MsgWithdrawTokenizeShareRecordReward, opts ...grpc.CallOption) (*MsgWithdrawTokenizeShareRecordRewardResponse, error)
	// WithdrawAllTokenizeShareRecordReward defines a method to withdraw reward for all owning TokenizeShareRecord
	WithdrawAllTokenizeShareRecordReward(ctx context.Context, in *MsgWithdrawAllTokenizeShareRecordReward, opts ...grpc.CallOption) (*MsgWithdrawAllTokenizeShareRecordRewardResponse, error)
	// FundCommunityPool defines a method to allow an account to directly
	// fund the community pool.
	FundCommunityPool(ctx context.Context, in *MsgFundCommunityPool, opts ...grpc.CallOption) (*MsgFundCommunityPoolResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgFundCommunityPool

type MsgFundCommunityPool struct {
	Amount    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	Depositor string                                   `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
}

MsgFundCommunityPool allows an account to directly fund the community pool.

func NewMsgFundCommunityPool

func NewMsgFundCommunityPool(amount sdk.Coins, depositor sdk.AccAddress) *MsgFundCommunityPool

NewMsgFundCommunityPool returns a new MsgFundCommunityPool with a sender and a funding amount.

func (*MsgFundCommunityPool) Descriptor

func (*MsgFundCommunityPool) Descriptor() ([]byte, []int)

func (MsgFundCommunityPool) GetSignBytes

func (msg MsgFundCommunityPool) GetSignBytes() []byte

GetSignBytes returns the raw bytes for a MsgFundCommunityPool message that the expected signer needs to sign.

func (MsgFundCommunityPool) GetSigners

func (msg MsgFundCommunityPool) GetSigners() []sdk.AccAddress

GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.

func (*MsgFundCommunityPool) Marshal

func (m *MsgFundCommunityPool) Marshal() (dAtA []byte, err error)

func (*MsgFundCommunityPool) MarshalTo

func (m *MsgFundCommunityPool) MarshalTo(dAtA []byte) (int, error)

func (*MsgFundCommunityPool) MarshalToSizedBuffer

func (m *MsgFundCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFundCommunityPool) ProtoMessage

func (*MsgFundCommunityPool) ProtoMessage()

func (*MsgFundCommunityPool) Reset

func (m *MsgFundCommunityPool) Reset()

func (MsgFundCommunityPool) Route

func (msg MsgFundCommunityPool) Route() string

Route returns the MsgFundCommunityPool message route.

func (*MsgFundCommunityPool) Size

func (m *MsgFundCommunityPool) Size() (n int)

func (*MsgFundCommunityPool) String

func (m *MsgFundCommunityPool) String() string

func (MsgFundCommunityPool) Type

func (msg MsgFundCommunityPool) Type() string

Type returns the MsgFundCommunityPool message type.

func (*MsgFundCommunityPool) Unmarshal

func (m *MsgFundCommunityPool) Unmarshal(dAtA []byte) error

func (MsgFundCommunityPool) ValidateBasic

func (msg MsgFundCommunityPool) ValidateBasic() error

ValidateBasic performs basic MsgFundCommunityPool message validation.

func (*MsgFundCommunityPool) XXX_DiscardUnknown

func (m *MsgFundCommunityPool) XXX_DiscardUnknown()

func (*MsgFundCommunityPool) XXX_Marshal

func (m *MsgFundCommunityPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFundCommunityPool) XXX_Merge

func (m *MsgFundCommunityPool) XXX_Merge(src proto.Message)

func (*MsgFundCommunityPool) XXX_Size

func (m *MsgFundCommunityPool) XXX_Size() int

func (*MsgFundCommunityPool) XXX_Unmarshal

func (m *MsgFundCommunityPool) XXX_Unmarshal(b []byte) error

type MsgFundCommunityPoolResponse

type MsgFundCommunityPoolResponse struct {
}

MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.

func (*MsgFundCommunityPoolResponse) Descriptor

func (*MsgFundCommunityPoolResponse) Descriptor() ([]byte, []int)

func (*MsgFundCommunityPoolResponse) Equal

func (this *MsgFundCommunityPoolResponse) Equal(that interface{}) bool

func (*MsgFundCommunityPoolResponse) Marshal

func (m *MsgFundCommunityPoolResponse) Marshal() (dAtA []byte, err error)

func (*MsgFundCommunityPoolResponse) MarshalTo

func (m *MsgFundCommunityPoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgFundCommunityPoolResponse) MarshalToSizedBuffer

func (m *MsgFundCommunityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFundCommunityPoolResponse) ProtoMessage

func (*MsgFundCommunityPoolResponse) ProtoMessage()

func (*MsgFundCommunityPoolResponse) Reset

func (m *MsgFundCommunityPoolResponse) Reset()

func (*MsgFundCommunityPoolResponse) Size

func (m *MsgFundCommunityPoolResponse) Size() (n int)

func (*MsgFundCommunityPoolResponse) String

func (*MsgFundCommunityPoolResponse) Unmarshal

func (m *MsgFundCommunityPoolResponse) Unmarshal(dAtA []byte) error

func (*MsgFundCommunityPoolResponse) XXX_DiscardUnknown

func (m *MsgFundCommunityPoolResponse) XXX_DiscardUnknown()

func (*MsgFundCommunityPoolResponse) XXX_Marshal

func (m *MsgFundCommunityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFundCommunityPoolResponse) XXX_Merge

func (m *MsgFundCommunityPoolResponse) XXX_Merge(src proto.Message)

func (*MsgFundCommunityPoolResponse) XXX_Size

func (m *MsgFundCommunityPoolResponse) XXX_Size() int

func (*MsgFundCommunityPoolResponse) XXX_Unmarshal

func (m *MsgFundCommunityPoolResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// SetWithdrawAddress defines a method to change the withdraw address
	// for a delegator (or validator self-delegation).
	SetWithdrawAddress(context.Context, *MsgSetWithdrawAddress) (*MsgSetWithdrawAddressResponse, error)
	// WithdrawDelegatorReward defines a method to withdraw rewards of delegator
	// from a single validator.
	WithdrawDelegatorReward(context.Context, *MsgWithdrawDelegatorReward) (*MsgWithdrawDelegatorRewardResponse, error)
	// WithdrawValidatorCommission defines a method to withdraw the
	// full commission to the validator address.
	WithdrawValidatorCommission(context.Context, *MsgWithdrawValidatorCommission) (*MsgWithdrawValidatorCommissionResponse, error)
	// WithdrawTokenizeShareRecordReward defines a method to withdraw reward for an owning TokenizeShareRecord
	WithdrawTokenizeShareRecordReward(context.Context, *MsgWithdrawTokenizeShareRecordReward) (*MsgWithdrawTokenizeShareRecordRewardResponse, error)
	// WithdrawAllTokenizeShareRecordReward defines a method to withdraw reward for all owning TokenizeShareRecord
	WithdrawAllTokenizeShareRecordReward(context.Context, *MsgWithdrawAllTokenizeShareRecordReward) (*MsgWithdrawAllTokenizeShareRecordRewardResponse, error)
	// FundCommunityPool defines a method to allow an account to directly
	// fund the community pool.
	FundCommunityPool(context.Context, *MsgFundCommunityPool) (*MsgFundCommunityPoolResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetWithdrawAddress

type MsgSetWithdrawAddress struct {
	DelegatorAddress string `` /* 134-byte string literal not displayed */
	WithdrawAddress  string `` /* 130-byte string literal not displayed */
}

MsgSetWithdrawAddress sets the withdraw address for a delegator (or validator self-delegation).

func NewMsgSetWithdrawAddress

func NewMsgSetWithdrawAddress(delAddr, withdrawAddr sdk.AccAddress) *MsgSetWithdrawAddress

func (*MsgSetWithdrawAddress) Descriptor

func (*MsgSetWithdrawAddress) Descriptor() ([]byte, []int)

func (MsgSetWithdrawAddress) GetSignBytes

func (msg MsgSetWithdrawAddress) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgSetWithdrawAddress) GetSigners

func (msg MsgSetWithdrawAddress) GetSigners() []sdk.AccAddress

Return address that must sign over msg.GetSignBytes()

func (*MsgSetWithdrawAddress) Marshal

func (m *MsgSetWithdrawAddress) Marshal() (dAtA []byte, err error)

func (*MsgSetWithdrawAddress) MarshalTo

func (m *MsgSetWithdrawAddress) MarshalTo(dAtA []byte) (int, error)

func (*MsgSetWithdrawAddress) MarshalToSizedBuffer

func (m *MsgSetWithdrawAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSetWithdrawAddress) ProtoMessage

func (*MsgSetWithdrawAddress) ProtoMessage()

func (*MsgSetWithdrawAddress) Reset

func (m *MsgSetWithdrawAddress) Reset()

func (MsgSetWithdrawAddress) Route

func (msg MsgSetWithdrawAddress) Route() string

func (*MsgSetWithdrawAddress) Size

func (m *MsgSetWithdrawAddress) Size() (n int)

func (*MsgSetWithdrawAddress) String

func (m *MsgSetWithdrawAddress) String() string

func (MsgSetWithdrawAddress) Type

func (msg MsgSetWithdrawAddress) Type() string

func (*MsgSetWithdrawAddress) Unmarshal

func (m *MsgSetWithdrawAddress) Unmarshal(dAtA []byte) error

func (MsgSetWithdrawAddress) ValidateBasic

func (msg MsgSetWithdrawAddress) ValidateBasic() error

quick validity check

func (*MsgSetWithdrawAddress) XXX_DiscardUnknown

func (m *MsgSetWithdrawAddress) XXX_DiscardUnknown()

func (*MsgSetWithdrawAddress) XXX_Marshal

func (m *MsgSetWithdrawAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSetWithdrawAddress) XXX_Merge

func (m *MsgSetWithdrawAddress) XXX_Merge(src proto.Message)

func (*MsgSetWithdrawAddress) XXX_Size

func (m *MsgSetWithdrawAddress) XXX_Size() int

func (*MsgSetWithdrawAddress) XXX_Unmarshal

func (m *MsgSetWithdrawAddress) XXX_Unmarshal(b []byte) error

type MsgSetWithdrawAddressResponse

type MsgSetWithdrawAddressResponse struct {
}

MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.

func (*MsgSetWithdrawAddressResponse) Descriptor

func (*MsgSetWithdrawAddressResponse) Descriptor() ([]byte, []int)

func (*MsgSetWithdrawAddressResponse) Equal

func (this *MsgSetWithdrawAddressResponse) Equal(that interface{}) bool

func (*MsgSetWithdrawAddressResponse) Marshal

func (m *MsgSetWithdrawAddressResponse) Marshal() (dAtA []byte, err error)

func (*MsgSetWithdrawAddressResponse) MarshalTo

func (m *MsgSetWithdrawAddressResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSetWithdrawAddressResponse) MarshalToSizedBuffer

func (m *MsgSetWithdrawAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSetWithdrawAddressResponse) ProtoMessage

func (*MsgSetWithdrawAddressResponse) ProtoMessage()

func (*MsgSetWithdrawAddressResponse) Reset

func (m *MsgSetWithdrawAddressResponse) Reset()

func (*MsgSetWithdrawAddressResponse) Size

func (m *MsgSetWithdrawAddressResponse) Size() (n int)

func (*MsgSetWithdrawAddressResponse) String

func (*MsgSetWithdrawAddressResponse) Unmarshal

func (m *MsgSetWithdrawAddressResponse) Unmarshal(dAtA []byte) error

func (*MsgSetWithdrawAddressResponse) XXX_DiscardUnknown

func (m *MsgSetWithdrawAddressResponse) XXX_DiscardUnknown()

func (*MsgSetWithdrawAddressResponse) XXX_Marshal

func (m *MsgSetWithdrawAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSetWithdrawAddressResponse) XXX_Merge

func (m *MsgSetWithdrawAddressResponse) XXX_Merge(src proto.Message)

func (*MsgSetWithdrawAddressResponse) XXX_Size

func (m *MsgSetWithdrawAddressResponse) XXX_Size() int

func (*MsgSetWithdrawAddressResponse) XXX_Unmarshal

func (m *MsgSetWithdrawAddressResponse) XXX_Unmarshal(b []byte) error

type MsgWithdrawAllTokenizeShareRecordReward added in v1.0.0

type MsgWithdrawAllTokenizeShareRecordReward struct {
	OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty" yaml:"owner_address"`
}

func NewMsgWithdrawAllTokenizeShareRecordReward added in v1.0.0

func NewMsgWithdrawAllTokenizeShareRecordReward(ownerAddr sdk.AccAddress) *MsgWithdrawAllTokenizeShareRecordReward

func (*MsgWithdrawAllTokenizeShareRecordReward) Descriptor added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordReward) Descriptor() ([]byte, []int)

func (MsgWithdrawAllTokenizeShareRecordReward) GetSignBytes added in v1.0.0

func (msg MsgWithdrawAllTokenizeShareRecordReward) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgWithdrawAllTokenizeShareRecordReward) GetSigners added in v1.0.0

Return address that must sign over msg.GetSignBytes()

func (*MsgWithdrawAllTokenizeShareRecordReward) Marshal added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordReward) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawAllTokenizeShareRecordReward) MarshalTo added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordReward) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawAllTokenizeShareRecordReward) MarshalToSizedBuffer added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawAllTokenizeShareRecordReward) ProtoMessage added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordReward) Reset added in v1.0.0

func (MsgWithdrawAllTokenizeShareRecordReward) Route added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordReward) Size added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordReward) String added in v1.0.0

func (MsgWithdrawAllTokenizeShareRecordReward) Type added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordReward) Unmarshal added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordReward) Unmarshal(dAtA []byte) error

func (MsgWithdrawAllTokenizeShareRecordReward) ValidateBasic added in v1.0.0

func (msg MsgWithdrawAllTokenizeShareRecordReward) ValidateBasic() error

quick validity check

func (*MsgWithdrawAllTokenizeShareRecordReward) XXX_DiscardUnknown added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordReward) XXX_DiscardUnknown()

func (*MsgWithdrawAllTokenizeShareRecordReward) XXX_Marshal added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawAllTokenizeShareRecordReward) XXX_Merge added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordReward) XXX_Size added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordReward) XXX_Unmarshal added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordReward) XXX_Unmarshal(b []byte) error

type MsgWithdrawAllTokenizeShareRecordRewardResponse added in v1.0.0

type MsgWithdrawAllTokenizeShareRecordRewardResponse struct {
}

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) Descriptor added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) Equal added in v1.0.0

func (this *MsgWithdrawAllTokenizeShareRecordRewardResponse) Equal(that interface{}) bool

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) Marshal added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordRewardResponse) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) MarshalTo added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) MarshalToSizedBuffer added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) ProtoMessage added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) Reset added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) Size added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) String added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) Unmarshal added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) XXX_DiscardUnknown added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordRewardResponse) XXX_DiscardUnknown()

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) XXX_Marshal added in v1.0.0

func (m *MsgWithdrawAllTokenizeShareRecordRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) XXX_Merge added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) XXX_Size added in v1.0.0

func (*MsgWithdrawAllTokenizeShareRecordRewardResponse) XXX_Unmarshal added in v1.0.0

type MsgWithdrawDelegatorReward

type MsgWithdrawDelegatorReward struct {
	DelegatorAddress string `` /* 134-byte string literal not displayed */
	ValidatorAddress string `` /* 134-byte string literal not displayed */
}

MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator from a single validator.

func NewMsgWithdrawDelegatorReward

func NewMsgWithdrawDelegatorReward(delAddr sdk.AccAddress, valAddr sdk.ValAddress) *MsgWithdrawDelegatorReward

func (*MsgWithdrawDelegatorReward) Descriptor

func (*MsgWithdrawDelegatorReward) Descriptor() ([]byte, []int)

func (MsgWithdrawDelegatorReward) GetSignBytes

func (msg MsgWithdrawDelegatorReward) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgWithdrawDelegatorReward) GetSigners

func (msg MsgWithdrawDelegatorReward) GetSigners() []sdk.AccAddress

Return address that must sign over msg.GetSignBytes()

func (*MsgWithdrawDelegatorReward) Marshal

func (m *MsgWithdrawDelegatorReward) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawDelegatorReward) MarshalTo

func (m *MsgWithdrawDelegatorReward) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawDelegatorReward) MarshalToSizedBuffer

func (m *MsgWithdrawDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawDelegatorReward) ProtoMessage

func (*MsgWithdrawDelegatorReward) ProtoMessage()

func (*MsgWithdrawDelegatorReward) Reset

func (m *MsgWithdrawDelegatorReward) Reset()

func (MsgWithdrawDelegatorReward) Route

func (msg MsgWithdrawDelegatorReward) Route() string

func (*MsgWithdrawDelegatorReward) Size

func (m *MsgWithdrawDelegatorReward) Size() (n int)

func (*MsgWithdrawDelegatorReward) String

func (m *MsgWithdrawDelegatorReward) String() string

func (MsgWithdrawDelegatorReward) Type

func (*MsgWithdrawDelegatorReward) Unmarshal

func (m *MsgWithdrawDelegatorReward) Unmarshal(dAtA []byte) error

func (MsgWithdrawDelegatorReward) ValidateBasic

func (msg MsgWithdrawDelegatorReward) ValidateBasic() error

quick validity check

func (*MsgWithdrawDelegatorReward) XXX_DiscardUnknown

func (m *MsgWithdrawDelegatorReward) XXX_DiscardUnknown()

func (*MsgWithdrawDelegatorReward) XXX_Marshal

func (m *MsgWithdrawDelegatorReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawDelegatorReward) XXX_Merge

func (m *MsgWithdrawDelegatorReward) XXX_Merge(src proto.Message)

func (*MsgWithdrawDelegatorReward) XXX_Size

func (m *MsgWithdrawDelegatorReward) XXX_Size() int

func (*MsgWithdrawDelegatorReward) XXX_Unmarshal

func (m *MsgWithdrawDelegatorReward) XXX_Unmarshal(b []byte) error

type MsgWithdrawDelegatorRewardResponse

type MsgWithdrawDelegatorRewardResponse struct {
}

MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.

func (*MsgWithdrawDelegatorRewardResponse) Descriptor

func (*MsgWithdrawDelegatorRewardResponse) Descriptor() ([]byte, []int)

func (*MsgWithdrawDelegatorRewardResponse) Equal

func (this *MsgWithdrawDelegatorRewardResponse) Equal(that interface{}) bool

func (*MsgWithdrawDelegatorRewardResponse) Marshal

func (m *MsgWithdrawDelegatorRewardResponse) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawDelegatorRewardResponse) MarshalTo

func (m *MsgWithdrawDelegatorRewardResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawDelegatorRewardResponse) MarshalToSizedBuffer

func (m *MsgWithdrawDelegatorRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawDelegatorRewardResponse) ProtoMessage

func (*MsgWithdrawDelegatorRewardResponse) ProtoMessage()

func (*MsgWithdrawDelegatorRewardResponse) Reset

func (*MsgWithdrawDelegatorRewardResponse) Size

func (*MsgWithdrawDelegatorRewardResponse) String

func (*MsgWithdrawDelegatorRewardResponse) Unmarshal

func (m *MsgWithdrawDelegatorRewardResponse) Unmarshal(dAtA []byte) error

func (*MsgWithdrawDelegatorRewardResponse) XXX_DiscardUnknown

func (m *MsgWithdrawDelegatorRewardResponse) XXX_DiscardUnknown()

func (*MsgWithdrawDelegatorRewardResponse) XXX_Marshal

func (m *MsgWithdrawDelegatorRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawDelegatorRewardResponse) XXX_Merge

func (*MsgWithdrawDelegatorRewardResponse) XXX_Size

func (*MsgWithdrawDelegatorRewardResponse) XXX_Unmarshal

func (m *MsgWithdrawDelegatorRewardResponse) XXX_Unmarshal(b []byte) error

type MsgWithdrawTokenizeShareRecordReward

type MsgWithdrawTokenizeShareRecordReward struct {
	OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty" yaml:"owner_address"`
	RecordId     uint64 `protobuf:"varint,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
}

func NewMsgWithdrawTokenizeShareRecordReward

func NewMsgWithdrawTokenizeShareRecordReward(ownerAddr sdk.AccAddress, recordId uint64) *MsgWithdrawTokenizeShareRecordReward

func (*MsgWithdrawTokenizeShareRecordReward) Descriptor

func (*MsgWithdrawTokenizeShareRecordReward) Descriptor() ([]byte, []int)

func (MsgWithdrawTokenizeShareRecordReward) GetSignBytes

func (msg MsgWithdrawTokenizeShareRecordReward) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgWithdrawTokenizeShareRecordReward) GetSigners

Return address that must sign over msg.GetSignBytes()

func (*MsgWithdrawTokenizeShareRecordReward) Marshal

func (m *MsgWithdrawTokenizeShareRecordReward) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawTokenizeShareRecordReward) MarshalTo

func (m *MsgWithdrawTokenizeShareRecordReward) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawTokenizeShareRecordReward) MarshalToSizedBuffer

func (m *MsgWithdrawTokenizeShareRecordReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawTokenizeShareRecordReward) ProtoMessage

func (*MsgWithdrawTokenizeShareRecordReward) ProtoMessage()

func (*MsgWithdrawTokenizeShareRecordReward) Reset

func (MsgWithdrawTokenizeShareRecordReward) Route

func (*MsgWithdrawTokenizeShareRecordReward) Size

func (*MsgWithdrawTokenizeShareRecordReward) String

func (MsgWithdrawTokenizeShareRecordReward) Type

func (*MsgWithdrawTokenizeShareRecordReward) Unmarshal

func (m *MsgWithdrawTokenizeShareRecordReward) Unmarshal(dAtA []byte) error

func (MsgWithdrawTokenizeShareRecordReward) ValidateBasic

func (msg MsgWithdrawTokenizeShareRecordReward) ValidateBasic() error

quick validity check

func (*MsgWithdrawTokenizeShareRecordReward) XXX_DiscardUnknown

func (m *MsgWithdrawTokenizeShareRecordReward) XXX_DiscardUnknown()

func (*MsgWithdrawTokenizeShareRecordReward) XXX_Marshal

func (m *MsgWithdrawTokenizeShareRecordReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawTokenizeShareRecordReward) XXX_Merge

func (*MsgWithdrawTokenizeShareRecordReward) XXX_Size

func (*MsgWithdrawTokenizeShareRecordReward) XXX_Unmarshal

func (m *MsgWithdrawTokenizeShareRecordReward) XXX_Unmarshal(b []byte) error

type MsgWithdrawTokenizeShareRecordRewardResponse

type MsgWithdrawTokenizeShareRecordRewardResponse struct {
}

func (*MsgWithdrawTokenizeShareRecordRewardResponse) Descriptor

func (*MsgWithdrawTokenizeShareRecordRewardResponse) Equal

func (this *MsgWithdrawTokenizeShareRecordRewardResponse) Equal(that interface{}) bool

func (*MsgWithdrawTokenizeShareRecordRewardResponse) Marshal

func (m *MsgWithdrawTokenizeShareRecordRewardResponse) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawTokenizeShareRecordRewardResponse) MarshalTo

func (*MsgWithdrawTokenizeShareRecordRewardResponse) MarshalToSizedBuffer

func (m *MsgWithdrawTokenizeShareRecordRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawTokenizeShareRecordRewardResponse) ProtoMessage

func (*MsgWithdrawTokenizeShareRecordRewardResponse) Reset

func (*MsgWithdrawTokenizeShareRecordRewardResponse) Size

func (*MsgWithdrawTokenizeShareRecordRewardResponse) String

func (*MsgWithdrawTokenizeShareRecordRewardResponse) Unmarshal

func (*MsgWithdrawTokenizeShareRecordRewardResponse) XXX_DiscardUnknown

func (m *MsgWithdrawTokenizeShareRecordRewardResponse) XXX_DiscardUnknown()

func (*MsgWithdrawTokenizeShareRecordRewardResponse) XXX_Marshal

func (m *MsgWithdrawTokenizeShareRecordRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawTokenizeShareRecordRewardResponse) XXX_Merge

func (*MsgWithdrawTokenizeShareRecordRewardResponse) XXX_Size

func (*MsgWithdrawTokenizeShareRecordRewardResponse) XXX_Unmarshal

type MsgWithdrawValidatorCommission

type MsgWithdrawValidatorCommission struct {
	ValidatorAddress string `` /* 134-byte string literal not displayed */
}

MsgWithdrawValidatorCommission withdraws the full commission to the validator address.

func NewMsgWithdrawValidatorCommission

func NewMsgWithdrawValidatorCommission(valAddr sdk.ValAddress) *MsgWithdrawValidatorCommission

func (*MsgWithdrawValidatorCommission) Descriptor

func (*MsgWithdrawValidatorCommission) Descriptor() ([]byte, []int)

func (MsgWithdrawValidatorCommission) GetSignBytes

func (msg MsgWithdrawValidatorCommission) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgWithdrawValidatorCommission) GetSigners

func (msg MsgWithdrawValidatorCommission) GetSigners() []sdk.AccAddress

Return address that must sign over msg.GetSignBytes()

func (*MsgWithdrawValidatorCommission) Marshal

func (m *MsgWithdrawValidatorCommission) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawValidatorCommission) MarshalTo

func (m *MsgWithdrawValidatorCommission) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawValidatorCommission) MarshalToSizedBuffer

func (m *MsgWithdrawValidatorCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawValidatorCommission) ProtoMessage

func (*MsgWithdrawValidatorCommission) ProtoMessage()

func (*MsgWithdrawValidatorCommission) Reset

func (m *MsgWithdrawValidatorCommission) Reset()

func (MsgWithdrawValidatorCommission) Route

func (*MsgWithdrawValidatorCommission) Size

func (m *MsgWithdrawValidatorCommission) Size() (n int)

func (*MsgWithdrawValidatorCommission) String

func (MsgWithdrawValidatorCommission) Type

func (*MsgWithdrawValidatorCommission) Unmarshal

func (m *MsgWithdrawValidatorCommission) Unmarshal(dAtA []byte) error

func (MsgWithdrawValidatorCommission) ValidateBasic

func (msg MsgWithdrawValidatorCommission) ValidateBasic() error

quick validity check

func (*MsgWithdrawValidatorCommission) XXX_DiscardUnknown

func (m *MsgWithdrawValidatorCommission) XXX_DiscardUnknown()

func (*MsgWithdrawValidatorCommission) XXX_Marshal

func (m *MsgWithdrawValidatorCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawValidatorCommission) XXX_Merge

func (m *MsgWithdrawValidatorCommission) XXX_Merge(src proto.Message)

func (*MsgWithdrawValidatorCommission) XXX_Size

func (m *MsgWithdrawValidatorCommission) XXX_Size() int

func (*MsgWithdrawValidatorCommission) XXX_Unmarshal

func (m *MsgWithdrawValidatorCommission) XXX_Unmarshal(b []byte) error

type MsgWithdrawValidatorCommissionResponse

type MsgWithdrawValidatorCommissionResponse struct {
}

MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.

func (*MsgWithdrawValidatorCommissionResponse) Descriptor

func (*MsgWithdrawValidatorCommissionResponse) Descriptor() ([]byte, []int)

func (*MsgWithdrawValidatorCommissionResponse) Equal

func (this *MsgWithdrawValidatorCommissionResponse) Equal(that interface{}) bool

func (*MsgWithdrawValidatorCommissionResponse) Marshal

func (m *MsgWithdrawValidatorCommissionResponse) Marshal() (dAtA []byte, err error)

func (*MsgWithdrawValidatorCommissionResponse) MarshalTo

func (m *MsgWithdrawValidatorCommissionResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgWithdrawValidatorCommissionResponse) MarshalToSizedBuffer

func (m *MsgWithdrawValidatorCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgWithdrawValidatorCommissionResponse) ProtoMessage

func (*MsgWithdrawValidatorCommissionResponse) Reset

func (*MsgWithdrawValidatorCommissionResponse) Size

func (*MsgWithdrawValidatorCommissionResponse) String

func (*MsgWithdrawValidatorCommissionResponse) Unmarshal

func (m *MsgWithdrawValidatorCommissionResponse) Unmarshal(dAtA []byte) error

func (*MsgWithdrawValidatorCommissionResponse) XXX_DiscardUnknown

func (m *MsgWithdrawValidatorCommissionResponse) XXX_DiscardUnknown()

func (*MsgWithdrawValidatorCommissionResponse) XXX_Marshal

func (m *MsgWithdrawValidatorCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithdrawValidatorCommissionResponse) XXX_Merge

func (*MsgWithdrawValidatorCommissionResponse) XXX_Size

func (*MsgWithdrawValidatorCommissionResponse) XXX_Unmarshal

func (m *MsgWithdrawValidatorCommissionResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	CommunityTax        github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	BaseProposerReward  github_com_cosmos_cosmos_sdk_types.Dec `` /* 185-byte string literal not displayed */
	BonusProposerReward github_com_cosmos_cosmos_sdk_types.Dec `` /* 189-byte string literal not displayed */
	WithdrawAddrEnabled bool                                   `` /* 150-byte string literal not displayed */
}

Params defines the set of params for the distribution module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default distribution parameters

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetWithdrawAddrEnabled

func (m *Params) GetWithdrawAddrEnabled() bool

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) ValidateBasic

func (p Params) ValidateBasic() error

ValidateBasic performs basic validation on distribution parameters.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params queries params of the distribution module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// ValidatorOutstandingRewards queries rewards of a validator address.
	ValidatorOutstandingRewards(ctx context.Context, in *QueryValidatorOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryValidatorOutstandingRewardsResponse, error)
	// ValidatorCommission queries accumulated commission for a validator.
	ValidatorCommission(ctx context.Context, in *QueryValidatorCommissionRequest, opts ...grpc.CallOption) (*QueryValidatorCommissionResponse, error)
	// ValidatorSlashes queries slash events of a validator.
	ValidatorSlashes(ctx context.Context, in *QueryValidatorSlashesRequest, opts ...grpc.CallOption) (*QueryValidatorSlashesResponse, error)
	// DelegationRewards queries the total rewards accrued by a delegation.
	DelegationRewards(ctx context.Context, in *QueryDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationRewardsResponse, error)
	// DelegationTotalRewards queries the total rewards accrued by a each
	// validator.
	DelegationTotalRewards(ctx context.Context, in *QueryDelegationTotalRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationTotalRewardsResponse, error)
	// DelegatorValidators queries the validators of a delegator.
	DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorWithdrawAddress queries withdraw address of a delegator.
	DelegatorWithdrawAddress(ctx context.Context, in *QueryDelegatorWithdrawAddressRequest, opts ...grpc.CallOption) (*QueryDelegatorWithdrawAddressResponse, error)
	// CommunityPool queries the community pool coins.
	CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, error)
	// TokenizeShareRecordReward queries the tokenize share record rewards
	TokenizeShareRecordReward(ctx context.Context, in *QueryTokenizeShareRecordRewardRequest, opts ...grpc.CallOption) (*QueryTokenizeShareRecordRewardResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCommunityPoolRequest

type QueryCommunityPoolRequest struct {
}

QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC method.

func (*QueryCommunityPoolRequest) Descriptor

func (*QueryCommunityPoolRequest) Descriptor() ([]byte, []int)

func (*QueryCommunityPoolRequest) Marshal

func (m *QueryCommunityPoolRequest) Marshal() (dAtA []byte, err error)

func (*QueryCommunityPoolRequest) MarshalTo

func (m *QueryCommunityPoolRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCommunityPoolRequest) MarshalToSizedBuffer

func (m *QueryCommunityPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCommunityPoolRequest) ProtoMessage

func (*QueryCommunityPoolRequest) ProtoMessage()

func (*QueryCommunityPoolRequest) Reset

func (m *QueryCommunityPoolRequest) Reset()

func (*QueryCommunityPoolRequest) Size

func (m *QueryCommunityPoolRequest) Size() (n int)

func (*QueryCommunityPoolRequest) String

func (m *QueryCommunityPoolRequest) String() string

func (*QueryCommunityPoolRequest) Unmarshal

func (m *QueryCommunityPoolRequest) Unmarshal(dAtA []byte) error

func (*QueryCommunityPoolRequest) XXX_DiscardUnknown

func (m *QueryCommunityPoolRequest) XXX_DiscardUnknown()

func (*QueryCommunityPoolRequest) XXX_Marshal

func (m *QueryCommunityPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCommunityPoolRequest) XXX_Merge

func (m *QueryCommunityPoolRequest) XXX_Merge(src proto.Message)

func (*QueryCommunityPoolRequest) XXX_Size

func (m *QueryCommunityPoolRequest) XXX_Size() int

func (*QueryCommunityPoolRequest) XXX_Unmarshal

func (m *QueryCommunityPoolRequest) XXX_Unmarshal(b []byte) error

type QueryCommunityPoolResponse

type QueryCommunityPoolResponse struct {
	// pool defines community pool's coins.
	Pool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"pool"`
}

QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method.

func (*QueryCommunityPoolResponse) Descriptor

func (*QueryCommunityPoolResponse) Descriptor() ([]byte, []int)

func (*QueryCommunityPoolResponse) GetPool

func (*QueryCommunityPoolResponse) Marshal

func (m *QueryCommunityPoolResponse) Marshal() (dAtA []byte, err error)

func (*QueryCommunityPoolResponse) MarshalTo

func (m *QueryCommunityPoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCommunityPoolResponse) MarshalToSizedBuffer

func (m *QueryCommunityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCommunityPoolResponse) ProtoMessage

func (*QueryCommunityPoolResponse) ProtoMessage()

func (*QueryCommunityPoolResponse) Reset

func (m *QueryCommunityPoolResponse) Reset()

func (*QueryCommunityPoolResponse) Size

func (m *QueryCommunityPoolResponse) Size() (n int)

func (*QueryCommunityPoolResponse) String

func (m *QueryCommunityPoolResponse) String() string

func (*QueryCommunityPoolResponse) Unmarshal

func (m *QueryCommunityPoolResponse) Unmarshal(dAtA []byte) error

func (*QueryCommunityPoolResponse) XXX_DiscardUnknown

func (m *QueryCommunityPoolResponse) XXX_DiscardUnknown()

func (*QueryCommunityPoolResponse) XXX_Marshal

func (m *QueryCommunityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCommunityPoolResponse) XXX_Merge

func (m *QueryCommunityPoolResponse) XXX_Merge(src proto.Message)

func (*QueryCommunityPoolResponse) XXX_Size

func (m *QueryCommunityPoolResponse) XXX_Size() int

func (*QueryCommunityPoolResponse) XXX_Unmarshal

func (m *QueryCommunityPoolResponse) XXX_Unmarshal(b []byte) error

type QueryDelegationRewardsParams

type QueryDelegationRewardsParams struct {
	DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"`
	ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"`
}

params for query 'custom/distr/delegation_rewards'

func NewQueryDelegationRewardsParams

func NewQueryDelegationRewardsParams(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) QueryDelegationRewardsParams

creates a new instance of QueryDelegationRewardsParams

type QueryDelegationRewardsRequest

type QueryDelegationRewardsRequest struct {
	// delegator_address defines the delegator address to query for.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address defines the validator address to query for.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

QueryDelegationRewardsRequest is the request type for the Query/DelegationRewards RPC method.

func (*QueryDelegationRewardsRequest) Descriptor

func (*QueryDelegationRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryDelegationRewardsRequest) Marshal

func (m *QueryDelegationRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegationRewardsRequest) MarshalTo

func (m *QueryDelegationRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegationRewardsRequest) MarshalToSizedBuffer

func (m *QueryDelegationRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegationRewardsRequest) ProtoMessage

func (*QueryDelegationRewardsRequest) ProtoMessage()

func (*QueryDelegationRewardsRequest) Reset

func (m *QueryDelegationRewardsRequest) Reset()

func (*QueryDelegationRewardsRequest) Size

func (m *QueryDelegationRewardsRequest) Size() (n int)

func (*QueryDelegationRewardsRequest) String

func (*QueryDelegationRewardsRequest) Unmarshal

func (m *QueryDelegationRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryDelegationRewardsRequest) XXX_DiscardUnknown

func (m *QueryDelegationRewardsRequest) XXX_DiscardUnknown()

func (*QueryDelegationRewardsRequest) XXX_Marshal

func (m *QueryDelegationRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegationRewardsRequest) XXX_Merge

func (m *QueryDelegationRewardsRequest) XXX_Merge(src proto.Message)

func (*QueryDelegationRewardsRequest) XXX_Size

func (m *QueryDelegationRewardsRequest) XXX_Size() int

func (*QueryDelegationRewardsRequest) XXX_Unmarshal

func (m *QueryDelegationRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryDelegationRewardsResponse

type QueryDelegationRewardsResponse struct {
	// rewards defines the rewards accrued by a delegation.
	Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"`
}

QueryDelegationRewardsResponse is the response type for the Query/DelegationRewards RPC method.

func (*QueryDelegationRewardsResponse) Descriptor

func (*QueryDelegationRewardsResponse) Descriptor() ([]byte, []int)

func (*QueryDelegationRewardsResponse) GetRewards

func (*QueryDelegationRewardsResponse) Marshal

func (m *QueryDelegationRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegationRewardsResponse) MarshalTo

func (m *QueryDelegationRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegationRewardsResponse) MarshalToSizedBuffer

func (m *QueryDelegationRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegationRewardsResponse) ProtoMessage

func (*QueryDelegationRewardsResponse) ProtoMessage()

func (*QueryDelegationRewardsResponse) Reset

func (m *QueryDelegationRewardsResponse) Reset()

func (*QueryDelegationRewardsResponse) Size

func (m *QueryDelegationRewardsResponse) Size() (n int)

func (*QueryDelegationRewardsResponse) String

func (*QueryDelegationRewardsResponse) Unmarshal

func (m *QueryDelegationRewardsResponse) Unmarshal(dAtA []byte) error

func (*QueryDelegationRewardsResponse) XXX_DiscardUnknown

func (m *QueryDelegationRewardsResponse) XXX_DiscardUnknown()

func (*QueryDelegationRewardsResponse) XXX_Marshal

func (m *QueryDelegationRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegationRewardsResponse) XXX_Merge

func (m *QueryDelegationRewardsResponse) XXX_Merge(src proto.Message)

func (*QueryDelegationRewardsResponse) XXX_Size

func (m *QueryDelegationRewardsResponse) XXX_Size() int

func (*QueryDelegationRewardsResponse) XXX_Unmarshal

func (m *QueryDelegationRewardsResponse) XXX_Unmarshal(b []byte) error

type QueryDelegationTotalRewardsRequest

type QueryDelegationTotalRewardsRequest struct {
	// delegator_address defines the delegator address to query for.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryDelegationTotalRewardsRequest is the request type for the Query/DelegationTotalRewards RPC method.

func (*QueryDelegationTotalRewardsRequest) Descriptor

func (*QueryDelegationTotalRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryDelegationTotalRewardsRequest) Marshal

func (m *QueryDelegationTotalRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegationTotalRewardsRequest) MarshalTo

func (m *QueryDelegationTotalRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegationTotalRewardsRequest) MarshalToSizedBuffer

func (m *QueryDelegationTotalRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegationTotalRewardsRequest) ProtoMessage

func (*QueryDelegationTotalRewardsRequest) ProtoMessage()

func (*QueryDelegationTotalRewardsRequest) Reset

func (*QueryDelegationTotalRewardsRequest) Size

func (*QueryDelegationTotalRewardsRequest) String

func (*QueryDelegationTotalRewardsRequest) Unmarshal

func (m *QueryDelegationTotalRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryDelegationTotalRewardsRequest) XXX_DiscardUnknown

func (m *QueryDelegationTotalRewardsRequest) XXX_DiscardUnknown()

func (*QueryDelegationTotalRewardsRequest) XXX_Marshal

func (m *QueryDelegationTotalRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegationTotalRewardsRequest) XXX_Merge

func (*QueryDelegationTotalRewardsRequest) XXX_Size

func (*QueryDelegationTotalRewardsRequest) XXX_Unmarshal

func (m *QueryDelegationTotalRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryDelegationTotalRewardsResponse

type QueryDelegationTotalRewardsResponse struct {
	// rewards defines all the rewards accrued by a delegator.
	Rewards []DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
	// total defines the sum of all the rewards.
	Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"total"`
}

QueryDelegationTotalRewardsResponse is the response type for the Query/DelegationTotalRewards RPC method.

func (*QueryDelegationTotalRewardsResponse) Descriptor

func (*QueryDelegationTotalRewardsResponse) Descriptor() ([]byte, []int)

func (*QueryDelegationTotalRewardsResponse) GetRewards

func (*QueryDelegationTotalRewardsResponse) GetTotal

func (*QueryDelegationTotalRewardsResponse) Marshal

func (m *QueryDelegationTotalRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegationTotalRewardsResponse) MarshalTo

func (m *QueryDelegationTotalRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegationTotalRewardsResponse) MarshalToSizedBuffer

func (m *QueryDelegationTotalRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegationTotalRewardsResponse) ProtoMessage

func (*QueryDelegationTotalRewardsResponse) ProtoMessage()

func (*QueryDelegationTotalRewardsResponse) Reset

func (*QueryDelegationTotalRewardsResponse) Size

func (*QueryDelegationTotalRewardsResponse) String

func (*QueryDelegationTotalRewardsResponse) Unmarshal

func (m *QueryDelegationTotalRewardsResponse) Unmarshal(dAtA []byte) error

func (*QueryDelegationTotalRewardsResponse) XXX_DiscardUnknown

func (m *QueryDelegationTotalRewardsResponse) XXX_DiscardUnknown()

func (*QueryDelegationTotalRewardsResponse) XXX_Marshal

func (m *QueryDelegationTotalRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegationTotalRewardsResponse) XXX_Merge

func (*QueryDelegationTotalRewardsResponse) XXX_Size

func (*QueryDelegationTotalRewardsResponse) XXX_Unmarshal

func (m *QueryDelegationTotalRewardsResponse) XXX_Unmarshal(b []byte) error

type QueryDelegatorParams

type QueryDelegatorParams struct {
	DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"`
}

params for query 'custom/distr/delegator_total_rewards' and 'custom/distr/delegator_validators'

func NewQueryDelegatorParams

func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams

creates a new instance of QueryDelegationRewardsParams

type QueryDelegatorTotalRewardsResponse

type QueryDelegatorTotalRewardsResponse struct {
	Rewards []DelegationDelegatorReward `json:"rewards" yaml:"rewards"`
	Total   sdk.DecCoins                `json:"total" yaml:"total"`
}

QueryDelegatorTotalRewardsResponse defines the properties of QueryDelegatorTotalRewards query's response.

func NewQueryDelegatorTotalRewardsResponse

func NewQueryDelegatorTotalRewardsResponse(rewards []DelegationDelegatorReward,
	total sdk.DecCoins) QueryDelegatorTotalRewardsResponse

NewQueryDelegatorTotalRewardsResponse constructs a QueryDelegatorTotalRewardsResponse

func (QueryDelegatorTotalRewardsResponse) String

type QueryDelegatorValidatorsRequest

type QueryDelegatorValidatorsRequest struct {
	// delegator_address defines the delegator address to query for.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryDelegatorValidatorsRequest is the request type for the Query/DelegatorValidators RPC method.

func (*QueryDelegatorValidatorsRequest) Descriptor

func (*QueryDelegatorValidatorsRequest) Descriptor() ([]byte, []int)

func (*QueryDelegatorValidatorsRequest) Marshal

func (m *QueryDelegatorValidatorsRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorValidatorsRequest) MarshalTo

func (m *QueryDelegatorValidatorsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorsRequest) MarshalToSizedBuffer

func (m *QueryDelegatorValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorsRequest) ProtoMessage

func (*QueryDelegatorValidatorsRequest) ProtoMessage()

func (*QueryDelegatorValidatorsRequest) Reset

func (*QueryDelegatorValidatorsRequest) Size

func (m *QueryDelegatorValidatorsRequest) Size() (n int)

func (*QueryDelegatorValidatorsRequest) String

func (*QueryDelegatorValidatorsRequest) Unmarshal

func (m *QueryDelegatorValidatorsRequest) Unmarshal(dAtA []byte) error

func (*QueryDelegatorValidatorsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsRequest) XXX_Marshal

func (m *QueryDelegatorValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorValidatorsRequest) XXX_Merge

func (m *QueryDelegatorValidatorsRequest) XXX_Merge(src proto.Message)

func (*QueryDelegatorValidatorsRequest) XXX_Size

func (m *QueryDelegatorValidatorsRequest) XXX_Size() int

func (*QueryDelegatorValidatorsRequest) XXX_Unmarshal

func (m *QueryDelegatorValidatorsRequest) XXX_Unmarshal(b []byte) error

type QueryDelegatorValidatorsResponse

type QueryDelegatorValidatorsResponse struct {
	// validators defines the validators a delegator is delegating for.
	Validators []string `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
}

QueryDelegatorValidatorsResponse is the response type for the Query/DelegatorValidators RPC method.

func (*QueryDelegatorValidatorsResponse) Descriptor

func (*QueryDelegatorValidatorsResponse) Descriptor() ([]byte, []int)

func (*QueryDelegatorValidatorsResponse) Marshal

func (m *QueryDelegatorValidatorsResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorValidatorsResponse) MarshalTo

func (m *QueryDelegatorValidatorsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorsResponse) MarshalToSizedBuffer

func (m *QueryDelegatorValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorValidatorsResponse) ProtoMessage

func (*QueryDelegatorValidatorsResponse) ProtoMessage()

func (*QueryDelegatorValidatorsResponse) Reset

func (*QueryDelegatorValidatorsResponse) Size

func (m *QueryDelegatorValidatorsResponse) Size() (n int)

func (*QueryDelegatorValidatorsResponse) String

func (*QueryDelegatorValidatorsResponse) Unmarshal

func (m *QueryDelegatorValidatorsResponse) Unmarshal(dAtA []byte) error

func (*QueryDelegatorValidatorsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsResponse) XXX_Marshal

func (m *QueryDelegatorValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorValidatorsResponse) XXX_Merge

func (*QueryDelegatorValidatorsResponse) XXX_Size

func (m *QueryDelegatorValidatorsResponse) XXX_Size() int

func (*QueryDelegatorValidatorsResponse) XXX_Unmarshal

func (m *QueryDelegatorValidatorsResponse) XXX_Unmarshal(b []byte) error

type QueryDelegatorWithdrawAddrParams

type QueryDelegatorWithdrawAddrParams struct {
	DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"`
}

params for query 'custom/distr/withdraw_addr'

func NewQueryDelegatorWithdrawAddrParams

func NewQueryDelegatorWithdrawAddrParams(delegatorAddr sdk.AccAddress) QueryDelegatorWithdrawAddrParams

NewQueryDelegatorWithdrawAddrParams creates a new instance of QueryDelegatorWithdrawAddrParams.

type QueryDelegatorWithdrawAddressRequest

type QueryDelegatorWithdrawAddressRequest struct {
	// delegator_address defines the delegator address to query for.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryDelegatorWithdrawAddressRequest is the request type for the Query/DelegatorWithdrawAddress RPC method.

func (*QueryDelegatorWithdrawAddressRequest) Descriptor

func (*QueryDelegatorWithdrawAddressRequest) Descriptor() ([]byte, []int)

func (*QueryDelegatorWithdrawAddressRequest) Marshal

func (m *QueryDelegatorWithdrawAddressRequest) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorWithdrawAddressRequest) MarshalTo

func (m *QueryDelegatorWithdrawAddressRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorWithdrawAddressRequest) MarshalToSizedBuffer

func (m *QueryDelegatorWithdrawAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorWithdrawAddressRequest) ProtoMessage

func (*QueryDelegatorWithdrawAddressRequest) ProtoMessage()

func (*QueryDelegatorWithdrawAddressRequest) Reset

func (*QueryDelegatorWithdrawAddressRequest) Size

func (*QueryDelegatorWithdrawAddressRequest) String

func (*QueryDelegatorWithdrawAddressRequest) Unmarshal

func (m *QueryDelegatorWithdrawAddressRequest) Unmarshal(dAtA []byte) error

func (*QueryDelegatorWithdrawAddressRequest) XXX_DiscardUnknown

func (m *QueryDelegatorWithdrawAddressRequest) XXX_DiscardUnknown()

func (*QueryDelegatorWithdrawAddressRequest) XXX_Marshal

func (m *QueryDelegatorWithdrawAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorWithdrawAddressRequest) XXX_Merge

func (*QueryDelegatorWithdrawAddressRequest) XXX_Size

func (*QueryDelegatorWithdrawAddressRequest) XXX_Unmarshal

func (m *QueryDelegatorWithdrawAddressRequest) XXX_Unmarshal(b []byte) error

type QueryDelegatorWithdrawAddressResponse

type QueryDelegatorWithdrawAddressResponse struct {
	// withdraw_address defines the delegator address to query for.
	WithdrawAddress string `protobuf:"bytes,1,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"`
}

QueryDelegatorWithdrawAddressResponse is the response type for the Query/DelegatorWithdrawAddress RPC method.

func (*QueryDelegatorWithdrawAddressResponse) Descriptor

func (*QueryDelegatorWithdrawAddressResponse) Descriptor() ([]byte, []int)

func (*QueryDelegatorWithdrawAddressResponse) Marshal

func (m *QueryDelegatorWithdrawAddressResponse) Marshal() (dAtA []byte, err error)

func (*QueryDelegatorWithdrawAddressResponse) MarshalTo

func (m *QueryDelegatorWithdrawAddressResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDelegatorWithdrawAddressResponse) MarshalToSizedBuffer

func (m *QueryDelegatorWithdrawAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDelegatorWithdrawAddressResponse) ProtoMessage

func (*QueryDelegatorWithdrawAddressResponse) ProtoMessage()

func (*QueryDelegatorWithdrawAddressResponse) Reset

func (*QueryDelegatorWithdrawAddressResponse) Size

func (*QueryDelegatorWithdrawAddressResponse) String

func (*QueryDelegatorWithdrawAddressResponse) Unmarshal

func (m *QueryDelegatorWithdrawAddressResponse) Unmarshal(dAtA []byte) error

func (*QueryDelegatorWithdrawAddressResponse) XXX_DiscardUnknown

func (m *QueryDelegatorWithdrawAddressResponse) XXX_DiscardUnknown()

func (*QueryDelegatorWithdrawAddressResponse) XXX_Marshal

func (m *QueryDelegatorWithdrawAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDelegatorWithdrawAddressResponse) XXX_Merge

func (*QueryDelegatorWithdrawAddressResponse) XXX_Size

func (*QueryDelegatorWithdrawAddressResponse) XXX_Unmarshal

func (m *QueryDelegatorWithdrawAddressResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params queries params of the distribution module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// ValidatorOutstandingRewards queries rewards of a validator address.
	ValidatorOutstandingRewards(context.Context, *QueryValidatorOutstandingRewardsRequest) (*QueryValidatorOutstandingRewardsResponse, error)
	// ValidatorCommission queries accumulated commission for a validator.
	ValidatorCommission(context.Context, *QueryValidatorCommissionRequest) (*QueryValidatorCommissionResponse, error)
	// ValidatorSlashes queries slash events of a validator.
	ValidatorSlashes(context.Context, *QueryValidatorSlashesRequest) (*QueryValidatorSlashesResponse, error)
	// DelegationRewards queries the total rewards accrued by a delegation.
	DelegationRewards(context.Context, *QueryDelegationRewardsRequest) (*QueryDelegationRewardsResponse, error)
	// DelegationTotalRewards queries the total rewards accrued by a each
	// validator.
	DelegationTotalRewards(context.Context, *QueryDelegationTotalRewardsRequest) (*QueryDelegationTotalRewardsResponse, error)
	// DelegatorValidators queries the validators of a delegator.
	DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorWithdrawAddress queries withdraw address of a delegator.
	DelegatorWithdrawAddress(context.Context, *QueryDelegatorWithdrawAddressRequest) (*QueryDelegatorWithdrawAddressResponse, error)
	// CommunityPool queries the community pool coins.
	CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
	// TokenizeShareRecordReward queries the tokenize share record rewards
	TokenizeShareRecordReward(context.Context, *QueryTokenizeShareRecordRewardRequest) (*QueryTokenizeShareRecordRewardResponse, error)
}

QueryServer is the server API for Query service.

type QueryTokenizeShareRecordRewardRequest added in v0.0.2

type QueryTokenizeShareRecordRewardRequest struct {
	OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty" yaml:"owner_address"`
}

func (*QueryTokenizeShareRecordRewardRequest) Descriptor added in v0.0.2

func (*QueryTokenizeShareRecordRewardRequest) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareRecordRewardRequest) Marshal added in v0.0.2

func (m *QueryTokenizeShareRecordRewardRequest) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareRecordRewardRequest) MarshalTo added in v0.0.2

func (m *QueryTokenizeShareRecordRewardRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordRewardRequest) MarshalToSizedBuffer added in v0.0.2

func (m *QueryTokenizeShareRecordRewardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordRewardRequest) ProtoMessage added in v0.0.2

func (*QueryTokenizeShareRecordRewardRequest) ProtoMessage()

func (*QueryTokenizeShareRecordRewardRequest) Reset added in v0.0.2

func (*QueryTokenizeShareRecordRewardRequest) Size added in v0.0.2

func (*QueryTokenizeShareRecordRewardRequest) String added in v0.0.2

func (*QueryTokenizeShareRecordRewardRequest) Unmarshal added in v0.0.2

func (m *QueryTokenizeShareRecordRewardRequest) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareRecordRewardRequest) XXX_DiscardUnknown added in v0.0.2

func (m *QueryTokenizeShareRecordRewardRequest) XXX_DiscardUnknown()

func (*QueryTokenizeShareRecordRewardRequest) XXX_Marshal added in v0.0.2

func (m *QueryTokenizeShareRecordRewardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareRecordRewardRequest) XXX_Merge added in v0.0.2

func (*QueryTokenizeShareRecordRewardRequest) XXX_Size added in v0.0.2

func (*QueryTokenizeShareRecordRewardRequest) XXX_Unmarshal added in v0.0.2

func (m *QueryTokenizeShareRecordRewardRequest) XXX_Unmarshal(b []byte) error

type QueryTokenizeShareRecordRewardResponse added in v0.0.2

type QueryTokenizeShareRecordRewardResponse struct {
	// rewards defines all the rewards accrued by a delegator.
	Rewards []TokenizeShareRecordReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
	// total defines the sum of all the rewards.
	Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"total"`
}

func (*QueryTokenizeShareRecordRewardResponse) Descriptor added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) Descriptor() ([]byte, []int)

func (*QueryTokenizeShareRecordRewardResponse) GetRewards added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) GetTotal added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) Marshal added in v0.0.2

func (m *QueryTokenizeShareRecordRewardResponse) Marshal() (dAtA []byte, err error)

func (*QueryTokenizeShareRecordRewardResponse) MarshalTo added in v0.0.2

func (m *QueryTokenizeShareRecordRewardResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordRewardResponse) MarshalToSizedBuffer added in v0.0.2

func (m *QueryTokenizeShareRecordRewardResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTokenizeShareRecordRewardResponse) ProtoMessage added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) Reset added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) Size added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) String added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) Unmarshal added in v0.0.2

func (m *QueryTokenizeShareRecordRewardResponse) Unmarshal(dAtA []byte) error

func (*QueryTokenizeShareRecordRewardResponse) XXX_DiscardUnknown added in v0.0.2

func (m *QueryTokenizeShareRecordRewardResponse) XXX_DiscardUnknown()

func (*QueryTokenizeShareRecordRewardResponse) XXX_Marshal added in v0.0.2

func (m *QueryTokenizeShareRecordRewardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTokenizeShareRecordRewardResponse) XXX_Merge added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) XXX_Size added in v0.0.2

func (*QueryTokenizeShareRecordRewardResponse) XXX_Unmarshal added in v0.0.2

func (m *QueryTokenizeShareRecordRewardResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorCommissionParams

type QueryValidatorCommissionParams struct {
	ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"`
}

params for query 'custom/distr/validator_commission'

func NewQueryValidatorCommissionParams

func NewQueryValidatorCommissionParams(validatorAddr sdk.ValAddress) QueryValidatorCommissionParams

creates a new instance of QueryValidatorCommissionParams

type QueryValidatorCommissionRequest

type QueryValidatorCommissionRequest struct {
	// validator_address defines the validator address to query for.
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

QueryValidatorCommissionRequest is the request type for the Query/ValidatorCommission RPC method

func (*QueryValidatorCommissionRequest) Descriptor

func (*QueryValidatorCommissionRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorCommissionRequest) GetValidatorAddress

func (m *QueryValidatorCommissionRequest) GetValidatorAddress() string

func (*QueryValidatorCommissionRequest) Marshal

func (m *QueryValidatorCommissionRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorCommissionRequest) MarshalTo

func (m *QueryValidatorCommissionRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorCommissionRequest) MarshalToSizedBuffer

func (m *QueryValidatorCommissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorCommissionRequest) ProtoMessage

func (*QueryValidatorCommissionRequest) ProtoMessage()

func (*QueryValidatorCommissionRequest) Reset

func (*QueryValidatorCommissionRequest) Size

func (m *QueryValidatorCommissionRequest) Size() (n int)

func (*QueryValidatorCommissionRequest) String

func (*QueryValidatorCommissionRequest) Unmarshal

func (m *QueryValidatorCommissionRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorCommissionRequest) XXX_DiscardUnknown

func (m *QueryValidatorCommissionRequest) XXX_DiscardUnknown()

func (*QueryValidatorCommissionRequest) XXX_Marshal

func (m *QueryValidatorCommissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorCommissionRequest) XXX_Merge

func (m *QueryValidatorCommissionRequest) XXX_Merge(src proto.Message)

func (*QueryValidatorCommissionRequest) XXX_Size

func (m *QueryValidatorCommissionRequest) XXX_Size() int

func (*QueryValidatorCommissionRequest) XXX_Unmarshal

func (m *QueryValidatorCommissionRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorCommissionResponse

type QueryValidatorCommissionResponse struct {
	// commission defines the commision the validator received.
	Commission ValidatorAccumulatedCommission `protobuf:"bytes,1,opt,name=commission,proto3" json:"commission"`
}

QueryValidatorCommissionResponse is the response type for the Query/ValidatorCommission RPC method

func (*QueryValidatorCommissionResponse) Descriptor

func (*QueryValidatorCommissionResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorCommissionResponse) GetCommission

func (*QueryValidatorCommissionResponse) Marshal

func (m *QueryValidatorCommissionResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorCommissionResponse) MarshalTo

func (m *QueryValidatorCommissionResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorCommissionResponse) MarshalToSizedBuffer

func (m *QueryValidatorCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorCommissionResponse) ProtoMessage

func (*QueryValidatorCommissionResponse) ProtoMessage()

func (*QueryValidatorCommissionResponse) Reset

func (*QueryValidatorCommissionResponse) Size

func (m *QueryValidatorCommissionResponse) Size() (n int)

func (*QueryValidatorCommissionResponse) String

func (*QueryValidatorCommissionResponse) Unmarshal

func (m *QueryValidatorCommissionResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorCommissionResponse) XXX_DiscardUnknown

func (m *QueryValidatorCommissionResponse) XXX_DiscardUnknown()

func (*QueryValidatorCommissionResponse) XXX_Marshal

func (m *QueryValidatorCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorCommissionResponse) XXX_Merge

func (*QueryValidatorCommissionResponse) XXX_Size

func (m *QueryValidatorCommissionResponse) XXX_Size() int

func (*QueryValidatorCommissionResponse) XXX_Unmarshal

func (m *QueryValidatorCommissionResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorOutstandingRewardsParams

type QueryValidatorOutstandingRewardsParams struct {
	ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"`
}

params for query 'custom/distr/validator_outstanding_rewards'

func NewQueryValidatorOutstandingRewardsParams

func NewQueryValidatorOutstandingRewardsParams(validatorAddr sdk.ValAddress) QueryValidatorOutstandingRewardsParams

creates a new instance of QueryValidatorOutstandingRewardsParams

type QueryValidatorOutstandingRewardsRequest

type QueryValidatorOutstandingRewardsRequest struct {
	// validator_address defines the validator address to query for.
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

QueryValidatorOutstandingRewardsRequest is the request type for the Query/ValidatorOutstandingRewards RPC method.

func (*QueryValidatorOutstandingRewardsRequest) Descriptor

func (*QueryValidatorOutstandingRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorOutstandingRewardsRequest) GetValidatorAddress

func (m *QueryValidatorOutstandingRewardsRequest) GetValidatorAddress() string

func (*QueryValidatorOutstandingRewardsRequest) Marshal

func (m *QueryValidatorOutstandingRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorOutstandingRewardsRequest) MarshalTo

func (m *QueryValidatorOutstandingRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorOutstandingRewardsRequest) MarshalToSizedBuffer

func (m *QueryValidatorOutstandingRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorOutstandingRewardsRequest) ProtoMessage

func (*QueryValidatorOutstandingRewardsRequest) Reset

func (*QueryValidatorOutstandingRewardsRequest) Size

func (*QueryValidatorOutstandingRewardsRequest) String

func (*QueryValidatorOutstandingRewardsRequest) Unmarshal

func (m *QueryValidatorOutstandingRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorOutstandingRewardsRequest) XXX_DiscardUnknown

func (m *QueryValidatorOutstandingRewardsRequest) XXX_DiscardUnknown()

func (*QueryValidatorOutstandingRewardsRequest) XXX_Marshal

func (m *QueryValidatorOutstandingRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorOutstandingRewardsRequest) XXX_Merge

func (*QueryValidatorOutstandingRewardsRequest) XXX_Size

func (*QueryValidatorOutstandingRewardsRequest) XXX_Unmarshal

func (m *QueryValidatorOutstandingRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorOutstandingRewardsResponse

type QueryValidatorOutstandingRewardsResponse struct {
	Rewards ValidatorOutstandingRewards `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards"`
}

QueryValidatorOutstandingRewardsResponse is the response type for the Query/ValidatorOutstandingRewards RPC method.

func (*QueryValidatorOutstandingRewardsResponse) Descriptor

func (*QueryValidatorOutstandingRewardsResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorOutstandingRewardsResponse) GetRewards

func (*QueryValidatorOutstandingRewardsResponse) Marshal

func (m *QueryValidatorOutstandingRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorOutstandingRewardsResponse) MarshalTo

func (m *QueryValidatorOutstandingRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorOutstandingRewardsResponse) MarshalToSizedBuffer

func (m *QueryValidatorOutstandingRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorOutstandingRewardsResponse) ProtoMessage

func (*QueryValidatorOutstandingRewardsResponse) Reset

func (*QueryValidatorOutstandingRewardsResponse) Size

func (*QueryValidatorOutstandingRewardsResponse) String

func (*QueryValidatorOutstandingRewardsResponse) Unmarshal

func (*QueryValidatorOutstandingRewardsResponse) XXX_DiscardUnknown

func (m *QueryValidatorOutstandingRewardsResponse) XXX_DiscardUnknown()

func (*QueryValidatorOutstandingRewardsResponse) XXX_Marshal

func (m *QueryValidatorOutstandingRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorOutstandingRewardsResponse) XXX_Merge

func (*QueryValidatorOutstandingRewardsResponse) XXX_Size

func (*QueryValidatorOutstandingRewardsResponse) XXX_Unmarshal

func (m *QueryValidatorOutstandingRewardsResponse) XXX_Unmarshal(b []byte) error

type QueryValidatorSlashesParams

type QueryValidatorSlashesParams struct {
	ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"`
	StartingHeight   uint64         `json:"starting_height" yaml:"starting_height"`
	EndingHeight     uint64         `json:"ending_height" yaml:"ending_height"`
}

params for query 'custom/distr/validator_slashes'

func NewQueryValidatorSlashesParams

func NewQueryValidatorSlashesParams(validatorAddr sdk.ValAddress, startingHeight uint64, endingHeight uint64) QueryValidatorSlashesParams

creates a new instance of QueryValidatorSlashesParams

type QueryValidatorSlashesRequest

type QueryValidatorSlashesRequest struct {
	// validator_address defines the validator address to query for.
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// starting_height defines the optional starting height to query the slashes.
	StartingHeight uint64 `protobuf:"varint,2,opt,name=starting_height,json=startingHeight,proto3" json:"starting_height,omitempty"`
	// starting_height defines the optional ending height to query the slashes.
	EndingHeight uint64 `protobuf:"varint,3,opt,name=ending_height,json=endingHeight,proto3" json:"ending_height,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorSlashesRequest is the request type for the Query/ValidatorSlashes RPC method

func (*QueryValidatorSlashesRequest) Descriptor

func (*QueryValidatorSlashesRequest) Descriptor() ([]byte, []int)

func (*QueryValidatorSlashesRequest) Marshal

func (m *QueryValidatorSlashesRequest) Marshal() (dAtA []byte, err error)

func (*QueryValidatorSlashesRequest) MarshalTo

func (m *QueryValidatorSlashesRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorSlashesRequest) MarshalToSizedBuffer

func (m *QueryValidatorSlashesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorSlashesRequest) ProtoMessage

func (*QueryValidatorSlashesRequest) ProtoMessage()

func (*QueryValidatorSlashesRequest) Reset

func (m *QueryValidatorSlashesRequest) Reset()

func (*QueryValidatorSlashesRequest) Size

func (m *QueryValidatorSlashesRequest) Size() (n int)

func (*QueryValidatorSlashesRequest) String

func (*QueryValidatorSlashesRequest) Unmarshal

func (m *QueryValidatorSlashesRequest) Unmarshal(dAtA []byte) error

func (*QueryValidatorSlashesRequest) XXX_DiscardUnknown

func (m *QueryValidatorSlashesRequest) XXX_DiscardUnknown()

func (*QueryValidatorSlashesRequest) XXX_Marshal

func (m *QueryValidatorSlashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorSlashesRequest) XXX_Merge

func (m *QueryValidatorSlashesRequest) XXX_Merge(src proto.Message)

func (*QueryValidatorSlashesRequest) XXX_Size

func (m *QueryValidatorSlashesRequest) XXX_Size() int

func (*QueryValidatorSlashesRequest) XXX_Unmarshal

func (m *QueryValidatorSlashesRequest) XXX_Unmarshal(b []byte) error

type QueryValidatorSlashesResponse

type QueryValidatorSlashesResponse struct {
	// slashes defines the slashes the validator received.
	Slashes []ValidatorSlashEvent `protobuf:"bytes,1,rep,name=slashes,proto3" json:"slashes"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorSlashesResponse is the response type for the Query/ValidatorSlashes RPC method.

func (*QueryValidatorSlashesResponse) Descriptor

func (*QueryValidatorSlashesResponse) Descriptor() ([]byte, []int)

func (*QueryValidatorSlashesResponse) GetPagination

func (m *QueryValidatorSlashesResponse) GetPagination() *query.PageResponse

func (*QueryValidatorSlashesResponse) GetSlashes

func (*QueryValidatorSlashesResponse) Marshal

func (m *QueryValidatorSlashesResponse) Marshal() (dAtA []byte, err error)

func (*QueryValidatorSlashesResponse) MarshalTo

func (m *QueryValidatorSlashesResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryValidatorSlashesResponse) MarshalToSizedBuffer

func (m *QueryValidatorSlashesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryValidatorSlashesResponse) ProtoMessage

func (*QueryValidatorSlashesResponse) ProtoMessage()

func (*QueryValidatorSlashesResponse) Reset

func (m *QueryValidatorSlashesResponse) Reset()

func (*QueryValidatorSlashesResponse) Size

func (m *QueryValidatorSlashesResponse) Size() (n int)

func (*QueryValidatorSlashesResponse) String

func (*QueryValidatorSlashesResponse) Unmarshal

func (m *QueryValidatorSlashesResponse) Unmarshal(dAtA []byte) error

func (*QueryValidatorSlashesResponse) XXX_DiscardUnknown

func (m *QueryValidatorSlashesResponse) XXX_DiscardUnknown()

func (*QueryValidatorSlashesResponse) XXX_Marshal

func (m *QueryValidatorSlashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryValidatorSlashesResponse) XXX_Merge

func (m *QueryValidatorSlashesResponse) XXX_Merge(src proto.Message)

func (*QueryValidatorSlashesResponse) XXX_Size

func (m *QueryValidatorSlashesResponse) XXX_Size() int

func (*QueryValidatorSlashesResponse) XXX_Unmarshal

func (m *QueryValidatorSlashesResponse) XXX_Unmarshal(b []byte) error

type StakingHooks

type StakingHooks interface {
	AfterValidatorCreated(ctx sdk.Context, valAddr sdk.ValAddress)                           // Must be called when a validator is created
	AfterValidatorRemoved(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) // Must be called when a validator is deleted

	BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)        // Must be called when a delegation is created
	BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) // Must be called when a delegation's shares are modified
	AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress)
	BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, fraction sdk.Dec)
}

StakingHooks event hooks for staking validator object (noalias)

type StakingKeeper

type StakingKeeper interface {
	// iterate through validators by operator address, execute func for each validator
	IterateValidators(sdk.Context,
		func(index int64, validator sdkstaking.ValidatorI) (stop bool))

	// iterate through bonded validators by operator address, execute func for each validator
	IterateBondedValidatorsByPower(sdk.Context,
		func(index int64, validator sdkstaking.ValidatorI) (stop bool))

	// iterate through the consensus validator set of the last block by operator address, execute func for each validator
	IterateLastValidators(sdk.Context,
		func(index int64, validator sdkstaking.ValidatorI) (stop bool))

	Validator(sdk.Context, sdk.ValAddress) sdkstaking.ValidatorI            // get a particular validator by operator address
	ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) sdkstaking.ValidatorI // get a particular validator by consensus address

	// slash the validator and delegators of the validator, specifying offence height, offence power, and slash fraction
	Slash(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec) sdk.Int
	Jail(sdk.Context, sdk.ConsAddress)   // jail a validator
	Unjail(sdk.Context, sdk.ConsAddress) // unjail a validator

	// Delegation allows for getting a particular delegation for a given validator
	// and delegator outside the scope of the staking module.
	Delegation(sdk.Context, sdk.AccAddress, sdk.ValAddress) sdkstaking.DelegationI

	// MaxValidators returns the maximum amount of bonded validators
	MaxValidators(sdk.Context) uint32

	IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress,
		fn func(index int64, delegation sdkstaking.DelegationI) (stop bool))

	GetLastTotalPower(ctx sdk.Context) sdk.Int
	GetLastValidatorPower(ctx sdk.Context, valAddr sdk.ValAddress) int64

	GetAllSDKDelegations(ctx sdk.Context) []stakingtypes.Delegation

	GetTokenizeShareRecordsByOwner(ctx sdk.Context, owner sdk.AccAddress) (tokenizeShareRecords []stakingtypes.TokenizeShareRecord)
	GetTokenizeShareRecord(ctx sdk.Context, id uint64) (tokenizeShareRecord stakingtypes.TokenizeShareRecord, err error)
}

StakingKeeper expected staking keeper (noalias)

type TokenizeShareRecordReward added in v0.0.2

type TokenizeShareRecordReward struct {
	RecordId uint64                                      `protobuf:"varint,1,opt,name=recordId,proto3" json:"recordId,omitempty"`
	Reward   github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"reward"`
}

TokenizeShareRecordReward represents the properties of tokenize share

func (*TokenizeShareRecordReward) Descriptor added in v0.0.2

func (*TokenizeShareRecordReward) Descriptor() ([]byte, []int)

func (*TokenizeShareRecordReward) Equal added in v0.0.2

func (this *TokenizeShareRecordReward) Equal(that interface{}) bool

func (*TokenizeShareRecordReward) Marshal added in v0.0.2

func (m *TokenizeShareRecordReward) Marshal() (dAtA []byte, err error)

func (*TokenizeShareRecordReward) MarshalTo added in v0.0.2

func (m *TokenizeShareRecordReward) MarshalTo(dAtA []byte) (int, error)

func (*TokenizeShareRecordReward) MarshalToSizedBuffer added in v0.0.2

func (m *TokenizeShareRecordReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TokenizeShareRecordReward) ProtoMessage added in v0.0.2

func (*TokenizeShareRecordReward) ProtoMessage()

func (*TokenizeShareRecordReward) Reset added in v0.0.2

func (m *TokenizeShareRecordReward) Reset()

func (*TokenizeShareRecordReward) Size added in v0.0.2

func (m *TokenizeShareRecordReward) Size() (n int)

func (*TokenizeShareRecordReward) String added in v0.0.2

func (m *TokenizeShareRecordReward) String() string

func (*TokenizeShareRecordReward) Unmarshal added in v0.0.2

func (m *TokenizeShareRecordReward) Unmarshal(dAtA []byte) error

func (*TokenizeShareRecordReward) XXX_DiscardUnknown added in v0.0.2

func (m *TokenizeShareRecordReward) XXX_DiscardUnknown()

func (*TokenizeShareRecordReward) XXX_Marshal added in v0.0.2

func (m *TokenizeShareRecordReward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenizeShareRecordReward) XXX_Merge added in v0.0.2

func (m *TokenizeShareRecordReward) XXX_Merge(src proto.Message)

func (*TokenizeShareRecordReward) XXX_Size added in v0.0.2

func (m *TokenizeShareRecordReward) XXX_Size() int

func (*TokenizeShareRecordReward) XXX_Unmarshal added in v0.0.2

func (m *TokenizeShareRecordReward) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) FundCommunityPool

func (*UnimplementedMsgServer) SetWithdrawAddress

func (*UnimplementedMsgServer) WithdrawAllTokenizeShareRecordReward added in v1.0.0

func (*UnimplementedMsgServer) WithdrawDelegatorReward

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CommunityPool

func (*UnimplementedQueryServer) DelegationRewards

func (*UnimplementedQueryServer) DelegatorValidators

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TokenizeShareRecordReward added in v0.0.2

func (*UnimplementedQueryServer) ValidatorCommission

func (*UnimplementedQueryServer) ValidatorSlashes

type ValidatorAccumulatedCommission

type ValidatorAccumulatedCommission struct {
	Commission github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=commission,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"commission"`
}

ValidatorAccumulatedCommission represents accumulated commission for a validator kept as a running counter, can be withdrawn at any time.

func InitialValidatorAccumulatedCommission

func InitialValidatorAccumulatedCommission() ValidatorAccumulatedCommission

return the initial accumulated commission (zero)

func (*ValidatorAccumulatedCommission) Descriptor

func (*ValidatorAccumulatedCommission) Descriptor() ([]byte, []int)

func (*ValidatorAccumulatedCommission) Equal

func (this *ValidatorAccumulatedCommission) Equal(that interface{}) bool

func (*ValidatorAccumulatedCommission) GetCommission

func (*ValidatorAccumulatedCommission) Marshal

func (m *ValidatorAccumulatedCommission) Marshal() (dAtA []byte, err error)

func (*ValidatorAccumulatedCommission) MarshalTo

func (m *ValidatorAccumulatedCommission) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorAccumulatedCommission) MarshalToSizedBuffer

func (m *ValidatorAccumulatedCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorAccumulatedCommission) ProtoMessage

func (*ValidatorAccumulatedCommission) ProtoMessage()

func (*ValidatorAccumulatedCommission) Reset

func (m *ValidatorAccumulatedCommission) Reset()

func (*ValidatorAccumulatedCommission) Size

func (m *ValidatorAccumulatedCommission) Size() (n int)

func (*ValidatorAccumulatedCommission) String

func (*ValidatorAccumulatedCommission) Unmarshal

func (m *ValidatorAccumulatedCommission) Unmarshal(dAtA []byte) error

func (*ValidatorAccumulatedCommission) XXX_DiscardUnknown

func (m *ValidatorAccumulatedCommission) XXX_DiscardUnknown()

func (*ValidatorAccumulatedCommission) XXX_Marshal

func (m *ValidatorAccumulatedCommission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorAccumulatedCommission) XXX_Merge

func (m *ValidatorAccumulatedCommission) XXX_Merge(src proto.Message)

func (*ValidatorAccumulatedCommission) XXX_Size

func (m *ValidatorAccumulatedCommission) XXX_Size() int

func (*ValidatorAccumulatedCommission) XXX_Unmarshal

func (m *ValidatorAccumulatedCommission) XXX_Unmarshal(b []byte) error

type ValidatorAccumulatedCommissionRecord

type ValidatorAccumulatedCommissionRecord struct {
	// validator_address is the address of the validator.
	ValidatorAddress string `` /* 134-byte string literal not displayed */
	// accumulated is the accumulated commission of a validator.
	Accumulated ValidatorAccumulatedCommission `protobuf:"bytes,2,opt,name=accumulated,proto3" json:"accumulated" yaml:"accumulated"`
}

ValidatorAccumulatedCommissionRecord is used for import / export via genesis json.

func (*ValidatorAccumulatedCommissionRecord) Descriptor

func (*ValidatorAccumulatedCommissionRecord) Descriptor() ([]byte, []int)

func (*ValidatorAccumulatedCommissionRecord) Marshal

func (m *ValidatorAccumulatedCommissionRecord) Marshal() (dAtA []byte, err error)

func (*ValidatorAccumulatedCommissionRecord) MarshalTo

func (m *ValidatorAccumulatedCommissionRecord) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorAccumulatedCommissionRecord) MarshalToSizedBuffer

func (m *ValidatorAccumulatedCommissionRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorAccumulatedCommissionRecord) ProtoMessage

func (*ValidatorAccumulatedCommissionRecord) ProtoMessage()

func (*ValidatorAccumulatedCommissionRecord) Reset

func (*ValidatorAccumulatedCommissionRecord) Size

func (*ValidatorAccumulatedCommissionRecord) String

func (*ValidatorAccumulatedCommissionRecord) Unmarshal

func (m *ValidatorAccumulatedCommissionRecord) Unmarshal(dAtA []byte) error

func (*ValidatorAccumulatedCommissionRecord) XXX_DiscardUnknown

func (m *ValidatorAccumulatedCommissionRecord) XXX_DiscardUnknown()

func (*ValidatorAccumulatedCommissionRecord) XXX_Marshal

func (m *ValidatorAccumulatedCommissionRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorAccumulatedCommissionRecord) XXX_Merge

func (*ValidatorAccumulatedCommissionRecord) XXX_Size

func (*ValidatorAccumulatedCommissionRecord) XXX_Unmarshal

func (m *ValidatorAccumulatedCommissionRecord) XXX_Unmarshal(b []byte) error

type ValidatorCurrentRewards

type ValidatorCurrentRewards struct {
	Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"`
	Period  uint64                                      `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
}

ValidatorCurrentRewards represents current rewards and current period for a validator kept as a running counter and incremented each block as long as the validator's tokens remain constant.

func NewValidatorCurrentRewards

func NewValidatorCurrentRewards(rewards sdk.DecCoins, period uint64) ValidatorCurrentRewards

create a new ValidatorCurrentRewards

func (*ValidatorCurrentRewards) Descriptor

func (*ValidatorCurrentRewards) Descriptor() ([]byte, []int)

func (*ValidatorCurrentRewards) Equal

func (this *ValidatorCurrentRewards) Equal(that interface{}) bool

func (*ValidatorCurrentRewards) GetPeriod

func (m *ValidatorCurrentRewards) GetPeriod() uint64

func (*ValidatorCurrentRewards) GetRewards

func (*ValidatorCurrentRewards) Marshal

func (m *ValidatorCurrentRewards) Marshal() (dAtA []byte, err error)

func (*ValidatorCurrentRewards) MarshalTo

func (m *ValidatorCurrentRewards) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorCurrentRewards) MarshalToSizedBuffer

func (m *ValidatorCurrentRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorCurrentRewards) ProtoMessage

func (*ValidatorCurrentRewards) ProtoMessage()

func (*ValidatorCurrentRewards) Reset

func (m *ValidatorCurrentRewards) Reset()

func (*ValidatorCurrentRewards) Size

func (m *ValidatorCurrentRewards) Size() (n int)

func (*ValidatorCurrentRewards) String

func (m *ValidatorCurrentRewards) String() string

func (*ValidatorCurrentRewards) Unmarshal

func (m *ValidatorCurrentRewards) Unmarshal(dAtA []byte) error

func (*ValidatorCurrentRewards) XXX_DiscardUnknown

func (m *ValidatorCurrentRewards) XXX_DiscardUnknown()

func (*ValidatorCurrentRewards) XXX_Marshal

func (m *ValidatorCurrentRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorCurrentRewards) XXX_Merge

func (m *ValidatorCurrentRewards) XXX_Merge(src proto.Message)

func (*ValidatorCurrentRewards) XXX_Size

func (m *ValidatorCurrentRewards) XXX_Size() int

func (*ValidatorCurrentRewards) XXX_Unmarshal

func (m *ValidatorCurrentRewards) XXX_Unmarshal(b []byte) error

type ValidatorCurrentRewardsRecord

type ValidatorCurrentRewardsRecord struct {
	// validator_address is the address of the validator.
	ValidatorAddress string `` /* 134-byte string literal not displayed */
	// rewards defines the current rewards of a validator.
	Rewards ValidatorCurrentRewards `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards" yaml:"rewards"`
}

ValidatorCurrentRewardsRecord is used for import / export via genesis json.

func (*ValidatorCurrentRewardsRecord) Descriptor

func (*ValidatorCurrentRewardsRecord) Descriptor() ([]byte, []int)

func (*ValidatorCurrentRewardsRecord) Marshal

func (m *ValidatorCurrentRewardsRecord) Marshal() (dAtA []byte, err error)

func (*ValidatorCurrentRewardsRecord) MarshalTo

func (m *ValidatorCurrentRewardsRecord) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorCurrentRewardsRecord) MarshalToSizedBuffer

func (m *ValidatorCurrentRewardsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorCurrentRewardsRecord) ProtoMessage

func (*ValidatorCurrentRewardsRecord) ProtoMessage()

func (*ValidatorCurrentRewardsRecord) Reset

func (m *ValidatorCurrentRewardsRecord) Reset()

func (*ValidatorCurrentRewardsRecord) Size

func (m *ValidatorCurrentRewardsRecord) Size() (n int)

func (*ValidatorCurrentRewardsRecord) String

func (*ValidatorCurrentRewardsRecord) Unmarshal

func (m *ValidatorCurrentRewardsRecord) Unmarshal(dAtA []byte) error

func (*ValidatorCurrentRewardsRecord) XXX_DiscardUnknown

func (m *ValidatorCurrentRewardsRecord) XXX_DiscardUnknown()

func (*ValidatorCurrentRewardsRecord) XXX_Marshal

func (m *ValidatorCurrentRewardsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorCurrentRewardsRecord) XXX_Merge

func (m *ValidatorCurrentRewardsRecord) XXX_Merge(src proto.Message)

func (*ValidatorCurrentRewardsRecord) XXX_Size

func (m *ValidatorCurrentRewardsRecord) XXX_Size() int

func (*ValidatorCurrentRewardsRecord) XXX_Unmarshal

func (m *ValidatorCurrentRewardsRecord) XXX_Unmarshal(b []byte) error

type ValidatorHistoricalRewards

type ValidatorHistoricalRewards struct {
	CumulativeRewardRatio github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 204-byte string literal not displayed */
	ReferenceCount        uint32                                      `` /* 127-byte string literal not displayed */
}

ValidatorHistoricalRewards represents historical rewards for a validator. Height is implicit within the store key. Cumulative reward ratio is the sum from the zeroeth period until this period of rewards / tokens, per the spec. The reference count indicates the number of objects which might need to reference this historical entry at any point. ReferenceCount =

  number of outstanding delegations which ended the associated period (and
  might need to read that record)
+ number of slashes which ended the associated period (and might need to
read that record)
+ one per validator for the zeroeth period, set on initialization

func NewValidatorHistoricalRewards

func NewValidatorHistoricalRewards(cumulativeRewardRatio sdk.DecCoins, referenceCount uint32) ValidatorHistoricalRewards

create a new ValidatorHistoricalRewards

func (*ValidatorHistoricalRewards) Descriptor

func (*ValidatorHistoricalRewards) Descriptor() ([]byte, []int)

func (*ValidatorHistoricalRewards) Equal

func (this *ValidatorHistoricalRewards) Equal(that interface{}) bool

func (*ValidatorHistoricalRewards) GetCumulativeRewardRatio

func (*ValidatorHistoricalRewards) GetReferenceCount

func (m *ValidatorHistoricalRewards) GetReferenceCount() uint32

func (*ValidatorHistoricalRewards) Marshal

func (m *ValidatorHistoricalRewards) Marshal() (dAtA []byte, err error)

func (*ValidatorHistoricalRewards) MarshalTo

func (m *ValidatorHistoricalRewards) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorHistoricalRewards) MarshalToSizedBuffer

func (m *ValidatorHistoricalRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorHistoricalRewards) ProtoMessage

func (*ValidatorHistoricalRewards) ProtoMessage()

func (*ValidatorHistoricalRewards) Reset

func (m *ValidatorHistoricalRewards) Reset()

func (*ValidatorHistoricalRewards) Size

func (m *ValidatorHistoricalRewards) Size() (n int)

func (*ValidatorHistoricalRewards) String

func (m *ValidatorHistoricalRewards) String() string

func (*ValidatorHistoricalRewards) Unmarshal

func (m *ValidatorHistoricalRewards) Unmarshal(dAtA []byte) error

func (*ValidatorHistoricalRewards) XXX_DiscardUnknown

func (m *ValidatorHistoricalRewards) XXX_DiscardUnknown()

func (*ValidatorHistoricalRewards) XXX_Marshal

func (m *ValidatorHistoricalRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorHistoricalRewards) XXX_Merge

func (m *ValidatorHistoricalRewards) XXX_Merge(src proto.Message)

func (*ValidatorHistoricalRewards) XXX_Size

func (m *ValidatorHistoricalRewards) XXX_Size() int

func (*ValidatorHistoricalRewards) XXX_Unmarshal

func (m *ValidatorHistoricalRewards) XXX_Unmarshal(b []byte) error

type ValidatorHistoricalRewardsRecord

type ValidatorHistoricalRewardsRecord struct {
	// validator_address is the address of the validator.
	ValidatorAddress string `` /* 134-byte string literal not displayed */
	// period defines the period the historical rewards apply to.
	Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
	// rewards defines the historical rewards of a validator.
	Rewards ValidatorHistoricalRewards `protobuf:"bytes,3,opt,name=rewards,proto3" json:"rewards" yaml:"rewards"`
}

ValidatorHistoricalRewardsRecord is used for import / export via genesis json.

func (*ValidatorHistoricalRewardsRecord) Descriptor

func (*ValidatorHistoricalRewardsRecord) Descriptor() ([]byte, []int)

func (*ValidatorHistoricalRewardsRecord) Marshal

func (m *ValidatorHistoricalRewardsRecord) Marshal() (dAtA []byte, err error)

func (*ValidatorHistoricalRewardsRecord) MarshalTo

func (m *ValidatorHistoricalRewardsRecord) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorHistoricalRewardsRecord) MarshalToSizedBuffer

func (m *ValidatorHistoricalRewardsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorHistoricalRewardsRecord) ProtoMessage

func (*ValidatorHistoricalRewardsRecord) ProtoMessage()

func (*ValidatorHistoricalRewardsRecord) Reset

func (*ValidatorHistoricalRewardsRecord) Size

func (m *ValidatorHistoricalRewardsRecord) Size() (n int)

func (*ValidatorHistoricalRewardsRecord) String

func (*ValidatorHistoricalRewardsRecord) Unmarshal

func (m *ValidatorHistoricalRewardsRecord) Unmarshal(dAtA []byte) error

func (*ValidatorHistoricalRewardsRecord) XXX_DiscardUnknown

func (m *ValidatorHistoricalRewardsRecord) XXX_DiscardUnknown()

func (*ValidatorHistoricalRewardsRecord) XXX_Marshal

func (m *ValidatorHistoricalRewardsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorHistoricalRewardsRecord) XXX_Merge

func (*ValidatorHistoricalRewardsRecord) XXX_Size

func (m *ValidatorHistoricalRewardsRecord) XXX_Size() int

func (*ValidatorHistoricalRewardsRecord) XXX_Unmarshal

func (m *ValidatorHistoricalRewardsRecord) XXX_Unmarshal(b []byte) error

type ValidatorOutstandingRewards

type ValidatorOutstandingRewards struct {
	Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 129-byte string literal not displayed */
}

ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards for a validator inexpensive to track, allows simple sanity checks.

func (*ValidatorOutstandingRewards) Descriptor

func (*ValidatorOutstandingRewards) Descriptor() ([]byte, []int)

func (*ValidatorOutstandingRewards) Equal

func (this *ValidatorOutstandingRewards) Equal(that interface{}) bool

func (*ValidatorOutstandingRewards) GetRewards

func (*ValidatorOutstandingRewards) Marshal

func (m *ValidatorOutstandingRewards) Marshal() (dAtA []byte, err error)

func (*ValidatorOutstandingRewards) MarshalTo

func (m *ValidatorOutstandingRewards) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorOutstandingRewards) MarshalToSizedBuffer

func (m *ValidatorOutstandingRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorOutstandingRewards) ProtoMessage

func (*ValidatorOutstandingRewards) ProtoMessage()

func (*ValidatorOutstandingRewards) Reset

func (m *ValidatorOutstandingRewards) Reset()

func (*ValidatorOutstandingRewards) Size

func (m *ValidatorOutstandingRewards) Size() (n int)

func (*ValidatorOutstandingRewards) String

func (m *ValidatorOutstandingRewards) String() string

func (*ValidatorOutstandingRewards) Unmarshal

func (m *ValidatorOutstandingRewards) Unmarshal(dAtA []byte) error

func (*ValidatorOutstandingRewards) XXX_DiscardUnknown

func (m *ValidatorOutstandingRewards) XXX_DiscardUnknown()

func (*ValidatorOutstandingRewards) XXX_Marshal

func (m *ValidatorOutstandingRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorOutstandingRewards) XXX_Merge

func (m *ValidatorOutstandingRewards) XXX_Merge(src proto.Message)

func (*ValidatorOutstandingRewards) XXX_Size

func (m *ValidatorOutstandingRewards) XXX_Size() int

func (*ValidatorOutstandingRewards) XXX_Unmarshal

func (m *ValidatorOutstandingRewards) XXX_Unmarshal(b []byte) error

type ValidatorOutstandingRewardsRecord

type ValidatorOutstandingRewardsRecord struct {
	// validator_address is the address of the validator.
	ValidatorAddress string `` /* 134-byte string literal not displayed */
	// outstanding_rewards represents the oustanding rewards of a validator.
	OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 189-byte string literal not displayed */
}

ValidatorOutstandingRewardsRecord is used for import/export via genesis json.

func (*ValidatorOutstandingRewardsRecord) Descriptor

func (*ValidatorOutstandingRewardsRecord) Descriptor() ([]byte, []int)

func (*ValidatorOutstandingRewardsRecord) Marshal

func (m *ValidatorOutstandingRewardsRecord) Marshal() (dAtA []byte, err error)

func (*ValidatorOutstandingRewardsRecord) MarshalTo

func (m *ValidatorOutstandingRewardsRecord) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorOutstandingRewardsRecord) MarshalToSizedBuffer

func (m *ValidatorOutstandingRewardsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorOutstandingRewardsRecord) ProtoMessage

func (*ValidatorOutstandingRewardsRecord) ProtoMessage()

func (*ValidatorOutstandingRewardsRecord) Reset

func (*ValidatorOutstandingRewardsRecord) Size

func (m *ValidatorOutstandingRewardsRecord) Size() (n int)

func (*ValidatorOutstandingRewardsRecord) String

func (*ValidatorOutstandingRewardsRecord) Unmarshal

func (m *ValidatorOutstandingRewardsRecord) Unmarshal(dAtA []byte) error

func (*ValidatorOutstandingRewardsRecord) XXX_DiscardUnknown

func (m *ValidatorOutstandingRewardsRecord) XXX_DiscardUnknown()

func (*ValidatorOutstandingRewardsRecord) XXX_Marshal

func (m *ValidatorOutstandingRewardsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorOutstandingRewardsRecord) XXX_Merge

func (*ValidatorOutstandingRewardsRecord) XXX_Size

func (m *ValidatorOutstandingRewardsRecord) XXX_Size() int

func (*ValidatorOutstandingRewardsRecord) XXX_Unmarshal

func (m *ValidatorOutstandingRewardsRecord) XXX_Unmarshal(b []byte) error

type ValidatorSlashEvent

type ValidatorSlashEvent struct {
	ValidatorPeriod uint64                                 `` /* 131-byte string literal not displayed */
	Fraction        github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=fraction,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fraction"`
}

ValidatorSlashEvent represents a validator slash event. Height is implicit within the store key. This is needed to calculate appropriate amount of staking tokens for delegations which are withdrawn after a slash has occurred.

func NewValidatorSlashEvent

func NewValidatorSlashEvent(validatorPeriod uint64, fraction sdk.Dec) ValidatorSlashEvent

create a new ValidatorSlashEvent

func (*ValidatorSlashEvent) Descriptor

func (*ValidatorSlashEvent) Descriptor() ([]byte, []int)

func (*ValidatorSlashEvent) Equal

func (this *ValidatorSlashEvent) Equal(that interface{}) bool

func (*ValidatorSlashEvent) GetValidatorPeriod

func (m *ValidatorSlashEvent) GetValidatorPeriod() uint64

func (*ValidatorSlashEvent) Marshal

func (m *ValidatorSlashEvent) Marshal() (dAtA []byte, err error)

func (*ValidatorSlashEvent) MarshalTo

func (m *ValidatorSlashEvent) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorSlashEvent) MarshalToSizedBuffer

func (m *ValidatorSlashEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorSlashEvent) ProtoMessage

func (*ValidatorSlashEvent) ProtoMessage()

func (*ValidatorSlashEvent) Reset

func (m *ValidatorSlashEvent) Reset()

func (*ValidatorSlashEvent) Size

func (m *ValidatorSlashEvent) Size() (n int)

func (*ValidatorSlashEvent) String

func (m *ValidatorSlashEvent) String() string

func (*ValidatorSlashEvent) Unmarshal

func (m *ValidatorSlashEvent) Unmarshal(dAtA []byte) error

func (*ValidatorSlashEvent) XXX_DiscardUnknown

func (m *ValidatorSlashEvent) XXX_DiscardUnknown()

func (*ValidatorSlashEvent) XXX_Marshal

func (m *ValidatorSlashEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorSlashEvent) XXX_Merge

func (m *ValidatorSlashEvent) XXX_Merge(src proto.Message)

func (*ValidatorSlashEvent) XXX_Size

func (m *ValidatorSlashEvent) XXX_Size() int

func (*ValidatorSlashEvent) XXX_Unmarshal

func (m *ValidatorSlashEvent) XXX_Unmarshal(b []byte) error

type ValidatorSlashEventRecord

type ValidatorSlashEventRecord struct {
	// validator_address is the address of the validator.
	ValidatorAddress string `` /* 134-byte string literal not displayed */
	// height defines the block height at which the slash event occured.
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// period is the period of the slash event.
	Period uint64 `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"`
	// validator_slash_event describes the slash event.
	ValidatorSlashEvent ValidatorSlashEvent `protobuf:"bytes,4,opt,name=validator_slash_event,json=validatorSlashEvent,proto3" json:"validator_slash_event" yaml:"event"`
}

ValidatorSlashEventRecord is used for import / export via genesis json.

func (*ValidatorSlashEventRecord) Descriptor

func (*ValidatorSlashEventRecord) Descriptor() ([]byte, []int)

func (*ValidatorSlashEventRecord) Marshal

func (m *ValidatorSlashEventRecord) Marshal() (dAtA []byte, err error)

func (*ValidatorSlashEventRecord) MarshalTo

func (m *ValidatorSlashEventRecord) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorSlashEventRecord) MarshalToSizedBuffer

func (m *ValidatorSlashEventRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorSlashEventRecord) ProtoMessage

func (*ValidatorSlashEventRecord) ProtoMessage()

func (*ValidatorSlashEventRecord) Reset

func (m *ValidatorSlashEventRecord) Reset()

func (*ValidatorSlashEventRecord) Size

func (m *ValidatorSlashEventRecord) Size() (n int)

func (*ValidatorSlashEventRecord) String

func (m *ValidatorSlashEventRecord) String() string

func (*ValidatorSlashEventRecord) Unmarshal

func (m *ValidatorSlashEventRecord) Unmarshal(dAtA []byte) error

func (*ValidatorSlashEventRecord) XXX_DiscardUnknown

func (m *ValidatorSlashEventRecord) XXX_DiscardUnknown()

func (*ValidatorSlashEventRecord) XXX_Marshal

func (m *ValidatorSlashEventRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorSlashEventRecord) XXX_Merge

func (m *ValidatorSlashEventRecord) XXX_Merge(src proto.Message)

func (*ValidatorSlashEventRecord) XXX_Size

func (m *ValidatorSlashEventRecord) XXX_Size() int

func (*ValidatorSlashEventRecord) XXX_Unmarshal

func (m *ValidatorSlashEventRecord) XXX_Unmarshal(b []byte) error

type ValidatorSlashEvents

type ValidatorSlashEvents struct {
	ValidatorSlashEvents []ValidatorSlashEvent `` /* 143-byte string literal not displayed */
}

ValidatorSlashEvents is a collection of ValidatorSlashEvent messages.

func (*ValidatorSlashEvents) Descriptor

func (*ValidatorSlashEvents) Descriptor() ([]byte, []int)

func (*ValidatorSlashEvents) Equal

func (this *ValidatorSlashEvents) Equal(that interface{}) bool

func (*ValidatorSlashEvents) GetValidatorSlashEvents

func (m *ValidatorSlashEvents) GetValidatorSlashEvents() []ValidatorSlashEvent

func (*ValidatorSlashEvents) Marshal

func (m *ValidatorSlashEvents) Marshal() (dAtA []byte, err error)

func (*ValidatorSlashEvents) MarshalTo

func (m *ValidatorSlashEvents) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorSlashEvents) MarshalToSizedBuffer

func (m *ValidatorSlashEvents) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorSlashEvents) ProtoMessage

func (*ValidatorSlashEvents) ProtoMessage()

func (*ValidatorSlashEvents) Reset

func (m *ValidatorSlashEvents) Reset()

func (*ValidatorSlashEvents) Size

func (m *ValidatorSlashEvents) Size() (n int)

func (ValidatorSlashEvents) String

func (vs ValidatorSlashEvents) String() string

func (*ValidatorSlashEvents) Unmarshal

func (m *ValidatorSlashEvents) Unmarshal(dAtA []byte) error

func (*ValidatorSlashEvents) XXX_DiscardUnknown

func (m *ValidatorSlashEvents) XXX_DiscardUnknown()

func (*ValidatorSlashEvents) XXX_Marshal

func (m *ValidatorSlashEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorSlashEvents) XXX_Merge

func (m *ValidatorSlashEvents) XXX_Merge(src proto.Message)

func (*ValidatorSlashEvents) XXX_Size

func (m *ValidatorSlashEvents) XXX_Size() int

func (*ValidatorSlashEvents) XXX_Unmarshal

func (m *ValidatorSlashEvents) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL