cosmos-sdk: github.com/cosmos/cosmos-sdk/x/distribution/types Index | Files

package types

import "github.com/cosmos/cosmos-sdk/x/distribution/types"

nolint

Index

Package Files

codec.go delegator.go distribution.pb.go errors.go events.go expected_keepers.go fee_pool.go genesis.go genesis.pb.go keys.go msg.go params.go proposal.go querier.go query.go query.pb.go validator.go

Constants

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

    AttributeKeyWithdrawAddress = "withdraw_address"
    AttributeKeyValidator       = "validator"

    AttributeValueCategory = ModuleName
)

distribution module event types

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
)
const (
    TypeMsgSetWithdrawAddress          = "set_withdraw_address"
    TypeMsgWithdrawDelegatorReward     = "withdraw_delegator_reward"
    TypeMsgWithdrawValidatorCommission = "withdraw_validator_commission"
    TypeMsgFundCommunityPool           = "fund_community_pool"
)

distribution message types

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

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

Variables

var (
    ErrInvalidLengthDistribution        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowDistribution          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupDistribution = fmt.Errorf("proto: unexpected end of group")
)
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")
)

x/distribution module sentinel errors

var (
    ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
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<valAddr_Bytes>: ValidatorOutstandingRewards

- 0x03<accAddr_Bytes>: sdk.AccAddress

- 0x04<valAddr_Bytes><accAddr_Bytes>: DelegatorStartingInfo

- 0x05<valAddr_Bytes><period_Bytes>: ValidatorHistoricalRewards

- 0x06<valAddr_Bytes>: ValidatorCurrentRewards

- 0x07<valAddr_Bytes>: ValidatorCurrentRewards

- 0x08<valAddr_Bytes><height>: ValidatorSlashEvent

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

Parameter keys

var (
    ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
var (

    // ModuleCdc references the global x/distribution module codec. Note, the codec
    // should ONLY be used in certain instances of tests and for JSON encoding as Amino
    // is still used for that purpose.
    //
    // The actual codec used for serialization should be provided to x/distribution and
    // defined at the application level.
    ModuleCdc = codec.NewHybridCodec(amino, types.NewInterfaceRegistry())
)

func GetDelegatorStartingInfoAddresses Uses

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

gets the addresses from a delegator starting info key

func GetDelegatorStartingInfoKey Uses

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

gets the key for a delegator's starting info

func GetDelegatorWithdrawAddrKey Uses

func GetDelegatorWithdrawAddrKey(delAddr sdk.AccAddress) []byte

gets the key for a delegator's withdraw addr

func GetDelegatorWithdrawInfoAddress Uses

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

gets an address from a delegator's withdraw info key

func GetValidatorAccumulatedCommissionAddress Uses

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

gets the address from a validator's accumulated commission key

func GetValidatorAccumulatedCommissionKey Uses

func GetValidatorAccumulatedCommissionKey(v sdk.ValAddress) []byte

gets the key for a validator's current commission

func GetValidatorCurrentRewardsAddress Uses

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

gets the address from a validator's current rewards key

func GetValidatorCurrentRewardsKey Uses

func GetValidatorCurrentRewardsKey(v sdk.ValAddress) []byte

gets the key for a validator's current rewards

func GetValidatorHistoricalRewardsAddressPeriod Uses

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

gets the address & period from a validator's historical rewards key

func GetValidatorHistoricalRewardsKey Uses

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

gets the key for a validator's historical rewards

func GetValidatorHistoricalRewardsPrefix Uses

func GetValidatorHistoricalRewardsPrefix(v sdk.ValAddress) []byte

gets the prefix key for a validator's historical rewards

func GetValidatorOutstandingRewardsAddress Uses

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

gets an address from a validator's outstanding rewards key

func GetValidatorOutstandingRewardsKey Uses

func GetValidatorOutstandingRewardsKey(valAddr sdk.ValAddress) []byte

gets the outstanding rewards key for a validator

func GetValidatorSlashEventAddressHeight Uses

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

gets the height from a validator's slash event key

func GetValidatorSlashEventKey Uses

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

gets the key for a validator's slash fraction

func GetValidatorSlashEventKeyPrefix Uses

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

gets the prefix key for a validator's slash fraction (ValidatorSlashEventPrefix + height)

func GetValidatorSlashEventPrefix Uses

func GetValidatorSlashEventPrefix(v sdk.ValAddress) []byte

gets the prefix key for a validator's slash fractions

func ParamKeyTable Uses

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterCodec Uses

func RegisterCodec(cdc *codec.Codec)

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

func RegisterInterfaces Uses

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterQueryServer Uses

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis Uses

func ValidateGenesis(gs GenesisState) error

ValidateGenesis validates the genesis state of distribution genesis input

type AccountKeeper Uses

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 Uses

type BankKeeper interface {
    GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
    GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
    SetBalances(ctx sdk.Context, addr sdk.AccAddress, balances sdk.Coins) error
    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
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommunityPoolSpendProposal Uses

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   github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,3,opt,name=recipient,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" 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 spends from the community pool

func NewCommunityPoolSpendProposal Uses

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

NewCommunityPoolSpendProposal creates a new community pool spned proposal.

func (*CommunityPoolSpendProposal) Descriptor Uses

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

func (*CommunityPoolSpendProposal) Equal Uses

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

func (*CommunityPoolSpendProposal) GetDescription Uses

func (csp *CommunityPoolSpendProposal) GetDescription() string

GetDescription returns the description of a community pool spend proposal.

func (*CommunityPoolSpendProposal) GetTitle Uses

func (csp *CommunityPoolSpendProposal) GetTitle() string

GetTitle returns the title of a community pool spend proposal.

func (*CommunityPoolSpendProposal) Marshal Uses

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

func (*CommunityPoolSpendProposal) MarshalTo Uses

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

func (*CommunityPoolSpendProposal) MarshalToSizedBuffer Uses

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

func (*CommunityPoolSpendProposal) ProposalRoute Uses

func (csp *CommunityPoolSpendProposal) ProposalRoute() string

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

func (*CommunityPoolSpendProposal) ProposalType Uses

func (csp *CommunityPoolSpendProposal) ProposalType() string

ProposalType returns the type of a community pool spend proposal.

func (*CommunityPoolSpendProposal) ProtoMessage Uses

func (*CommunityPoolSpendProposal) ProtoMessage()

func (*CommunityPoolSpendProposal) Reset Uses

func (m *CommunityPoolSpendProposal) Reset()

func (*CommunityPoolSpendProposal) Size Uses

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

func (CommunityPoolSpendProposal) String Uses

func (csp CommunityPoolSpendProposal) String() string

String implements the Stringer interface.

func (*CommunityPoolSpendProposal) Unmarshal Uses

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

func (*CommunityPoolSpendProposal) ValidateBasic Uses

func (csp *CommunityPoolSpendProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*CommunityPoolSpendProposal) XXX_DiscardUnknown Uses

func (m *CommunityPoolSpendProposal) XXX_DiscardUnknown()

func (*CommunityPoolSpendProposal) XXX_Marshal Uses

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

func (*CommunityPoolSpendProposal) XXX_Merge Uses

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

func (*CommunityPoolSpendProposal) XXX_Size Uses

func (m *CommunityPoolSpendProposal) XXX_Size() int

func (*CommunityPoolSpendProposal) XXX_Unmarshal Uses

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

type DelegationDelegatorReward Uses

type DelegationDelegatorReward struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    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 defines the properties of a delegator's delegation reward.

func NewDelegationDelegatorReward Uses

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

NewDelegationDelegatorReward constructs a DelegationDelegatorReward.

func (*DelegationDelegatorReward) Descriptor Uses

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

func (*DelegationDelegatorReward) Equal Uses

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

func (*DelegationDelegatorReward) GetReward Uses

func (m *DelegationDelegatorReward) GetReward() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*DelegationDelegatorReward) GetValidatorAddress Uses

func (m *DelegationDelegatorReward) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*DelegationDelegatorReward) Marshal Uses

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

func (*DelegationDelegatorReward) MarshalTo Uses

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

func (*DelegationDelegatorReward) MarshalToSizedBuffer Uses

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

func (*DelegationDelegatorReward) ProtoMessage Uses

func (*DelegationDelegatorReward) ProtoMessage()

func (*DelegationDelegatorReward) Reset Uses

func (m *DelegationDelegatorReward) Reset()

func (*DelegationDelegatorReward) Size Uses

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

func (*DelegationDelegatorReward) String Uses

func (m *DelegationDelegatorReward) String() string

func (*DelegationDelegatorReward) Unmarshal Uses

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

func (*DelegationDelegatorReward) XXX_DiscardUnknown Uses

func (m *DelegationDelegatorReward) XXX_DiscardUnknown()

func (*DelegationDelegatorReward) XXX_Marshal Uses

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

func (*DelegationDelegatorReward) XXX_Merge Uses

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

func (*DelegationDelegatorReward) XXX_Size Uses

func (m *DelegationDelegatorReward) XXX_Size() int

func (*DelegationDelegatorReward) XXX_Unmarshal Uses

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

type DelegatorStartingInfo Uses

type DelegatorStartingInfo struct {
    PreviousPeriod uint64                                 `protobuf:"varint,1,opt,name=previous_period,json=previousPeriod,proto3" json:"previous_period,omitempty" yaml:"previous_period"`
    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"`
}

starting info for a delegator reward period 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 that 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 Uses

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

create a new DelegatorStartingInfo

func (*DelegatorStartingInfo) Descriptor Uses

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

func (*DelegatorStartingInfo) Equal Uses

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

func (*DelegatorStartingInfo) GetHeight Uses

func (m *DelegatorStartingInfo) GetHeight() uint64

func (*DelegatorStartingInfo) GetPreviousPeriod Uses

func (m *DelegatorStartingInfo) GetPreviousPeriod() uint64

func (*DelegatorStartingInfo) Marshal Uses

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

func (*DelegatorStartingInfo) MarshalTo Uses

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

func (*DelegatorStartingInfo) MarshalToSizedBuffer Uses

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

func (*DelegatorStartingInfo) ProtoMessage Uses

func (*DelegatorStartingInfo) ProtoMessage()

func (*DelegatorStartingInfo) Reset Uses

func (m *DelegatorStartingInfo) Reset()

func (*DelegatorStartingInfo) Size Uses

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

func (*DelegatorStartingInfo) String Uses

func (m *DelegatorStartingInfo) String() string

func (*DelegatorStartingInfo) Unmarshal Uses

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

func (*DelegatorStartingInfo) XXX_DiscardUnknown Uses

func (m *DelegatorStartingInfo) XXX_DiscardUnknown()

func (*DelegatorStartingInfo) XXX_Marshal Uses

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

func (*DelegatorStartingInfo) XXX_Merge Uses

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

func (*DelegatorStartingInfo) XXX_Size Uses

func (m *DelegatorStartingInfo) XXX_Size() int

func (*DelegatorStartingInfo) XXX_Unmarshal Uses

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

type DelegatorStartingInfoRecord Uses

type DelegatorStartingInfoRecord struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    StartingInfo     DelegatorStartingInfo                         `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3,casttype=DelegatorStartingInfo" json:"starting_info" yaml:"starting_info"`
}

DelegatorStartingInfoRecord used for import / export via genesis json

func (*DelegatorStartingInfoRecord) Descriptor Uses

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

func (*DelegatorStartingInfoRecord) Equal Uses

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

func (*DelegatorStartingInfoRecord) GetDelegatorAddress Uses

func (m *DelegatorStartingInfoRecord) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*DelegatorStartingInfoRecord) GetStartingInfo Uses

func (m *DelegatorStartingInfoRecord) GetStartingInfo() DelegatorStartingInfo

func (*DelegatorStartingInfoRecord) GetValidatorAddress Uses

func (m *DelegatorStartingInfoRecord) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*DelegatorStartingInfoRecord) Marshal Uses

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

func (*DelegatorStartingInfoRecord) MarshalTo Uses

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

func (*DelegatorStartingInfoRecord) MarshalToSizedBuffer Uses

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

func (*DelegatorStartingInfoRecord) ProtoMessage Uses

func (*DelegatorStartingInfoRecord) ProtoMessage()

func (*DelegatorStartingInfoRecord) Reset Uses

func (m *DelegatorStartingInfoRecord) Reset()

func (*DelegatorStartingInfoRecord) Size Uses

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

func (*DelegatorStartingInfoRecord) String Uses

func (m *DelegatorStartingInfoRecord) String() string

func (*DelegatorStartingInfoRecord) Unmarshal Uses

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

func (*DelegatorStartingInfoRecord) XXX_DiscardUnknown Uses

func (m *DelegatorStartingInfoRecord) XXX_DiscardUnknown()

func (*DelegatorStartingInfoRecord) XXX_Marshal Uses

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

func (*DelegatorStartingInfoRecord) XXX_Merge Uses

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

func (*DelegatorStartingInfoRecord) XXX_Size Uses

func (m *DelegatorStartingInfoRecord) XXX_Size() int

func (*DelegatorStartingInfoRecord) XXX_Unmarshal Uses

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

type DelegatorWithdrawInfo Uses

type DelegatorWithdrawInfo struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    WithdrawAddress  github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"withdraw_address,omitempty" yaml:"withdraw_address"`
}

DelegatorWithdrawInfo 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 Uses

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

func (*DelegatorWithdrawInfo) Equal Uses

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

func (*DelegatorWithdrawInfo) GetDelegatorAddress Uses

func (m *DelegatorWithdrawInfo) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*DelegatorWithdrawInfo) GetWithdrawAddress Uses

func (m *DelegatorWithdrawInfo) GetWithdrawAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*DelegatorWithdrawInfo) Marshal Uses

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

func (*DelegatorWithdrawInfo) MarshalTo Uses

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

func (*DelegatorWithdrawInfo) MarshalToSizedBuffer Uses

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

func (*DelegatorWithdrawInfo) ProtoMessage Uses

func (*DelegatorWithdrawInfo) ProtoMessage()

func (*DelegatorWithdrawInfo) Reset Uses

func (m *DelegatorWithdrawInfo) Reset()

func (*DelegatorWithdrawInfo) Size Uses

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

func (*DelegatorWithdrawInfo) String Uses

func (m *DelegatorWithdrawInfo) String() string

func (*DelegatorWithdrawInfo) Unmarshal Uses

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

func (*DelegatorWithdrawInfo) XXX_DiscardUnknown Uses

func (m *DelegatorWithdrawInfo) XXX_DiscardUnknown()

func (*DelegatorWithdrawInfo) XXX_Marshal Uses

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

func (*DelegatorWithdrawInfo) XXX_Merge Uses

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

func (*DelegatorWithdrawInfo) XXX_Size Uses

func (m *DelegatorWithdrawInfo) XXX_Size() int

func (*DelegatorWithdrawInfo) XXX_Unmarshal Uses

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

type FeePool Uses

type FeePool struct {
    CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=community_pool,json=communityPool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"community_pool" yaml:"community_pool"`
}

global fee pool for distribution

func InitialFeePool Uses

func InitialFeePool() FeePool

zero fee pool

func (*FeePool) Descriptor Uses

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

func (*FeePool) Equal Uses

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

func (*FeePool) GetCommunityPool Uses

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

func (*FeePool) Marshal Uses

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

func (*FeePool) MarshalTo Uses

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

func (*FeePool) MarshalToSizedBuffer Uses

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

func (*FeePool) ProtoMessage Uses

func (*FeePool) ProtoMessage()

func (*FeePool) Reset Uses

func (m *FeePool) Reset()

func (*FeePool) Size Uses

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

func (*FeePool) String Uses

func (m *FeePool) String() string

func (*FeePool) Unmarshal Uses

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

func (FeePool) ValidateGenesis Uses

func (f FeePool) ValidateGenesis() error

ValidateGenesis validates the fee pool for a genesis state

func (*FeePool) XXX_DiscardUnknown Uses

func (m *FeePool) XXX_DiscardUnknown()

func (*FeePool) XXX_Marshal Uses

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

func (*FeePool) XXX_Merge Uses

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

func (*FeePool) XXX_Size Uses

func (m *FeePool) XXX_Size() int

func (*FeePool) XXX_Unmarshal Uses

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

type GenesisState Uses

type GenesisState struct {
    Params                          Params                                         `protobuf:"bytes,1,opt,name=params,proto3,casttype=Params" json:"params" yaml:"params"`
    FeePool                         FeePool                                        `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3,casttype=FeePool" json:"fee_pool" yaml:"fee_pool"`
    DelegatorWithdrawInfos          []DelegatorWithdrawInfo                        `protobuf:"bytes,3,rep,name=delegator_withdraw_infos,json=delegatorWithdrawInfos,proto3,casttype=DelegatorWithdrawInfo" json:"delegator_withdraw_infos" yaml:"delegator_withdraw_infos"`
    PreviousProposer                github_com_cosmos_cosmos_sdk_types.ConsAddress `protobuf:"bytes,4,opt,name=previous_proposer,json=previousProposer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ConsAddress" json:"previous_proposer,omitempty" yaml:"previous_proposer"`
    OutstandingRewards              []ValidatorOutstandingRewardsRecord            `protobuf:"bytes,5,rep,name=outstanding_rewards,json=outstandingRewards,proto3,casttype=ValidatorOutstandingRewardsRecord" json:"outstanding_rewards" yaml:"outstanding_rewards"`
    ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord         `protobuf:"bytes,6,rep,name=validator_accumulated_commissions,json=validatorAccumulatedCommissions,proto3,casttype=ValidatorAccumulatedCommissionRecord" json:"validator_accumulated_commissions" yaml:"validator_accumulated_commissions"`
    ValidatorHistoricalRewards      []ValidatorHistoricalRewardsRecord             `protobuf:"bytes,7,rep,name=validator_historical_rewards,json=validatorHistoricalRewards,proto3,casttype=ValidatorHistoricalRewardsRecord" json:"validator_historical_rewards" yaml:"validator_historical_rewards"`
    ValidatorCurrentRewards         []ValidatorCurrentRewardsRecord                `protobuf:"bytes,8,rep,name=validator_current_rewards,json=validatorCurrentRewards,proto3,casttype=ValidatorCurrentRewardsRecord" json:"validator_current_rewards" yaml:"validator_current_rewards"`
    DelegatorStartingInfos          []DelegatorStartingInfoRecord                  `protobuf:"bytes,9,rep,name=delegator_starting_infos,json=delegatorStartingInfos,proto3,casttype=DelegatorStartingInfoRecord" json:"delegator_starting_infos" yaml:"delegator_starting_infos"`
    ValidatorSlashEvents            []ValidatorSlashEventRecord                    `protobuf:"bytes,10,rep,name=validator_slash_events,json=validatorSlashEvents,proto3,casttype=ValidatorSlashEventRecord" json:"validator_slash_events" yaml:"validator_slash_events"`
}

GenesisState - all distribution state that must be provided at genesis

func DefaultGenesisState Uses

func DefaultGenesisState() GenesisState

get raw genesis raw message for testing

func NewGenesisState Uses

func NewGenesisState(
    params Params, fp FeePool, dwis []DelegatorWithdrawInfo, pp sdk.ConsAddress, r []ValidatorOutstandingRewardsRecord,
    acc []ValidatorAccumulatedCommissionRecord, historical []ValidatorHistoricalRewardsRecord,
    cur []ValidatorCurrentRewardsRecord, dels []DelegatorStartingInfoRecord, slashes []ValidatorSlashEventRecord,
) GenesisState

func (*GenesisState) Descriptor Uses

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

func (*GenesisState) Equal Uses

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

func (*GenesisState) GetDelegatorStartingInfos Uses

func (m *GenesisState) GetDelegatorStartingInfos() []DelegatorStartingInfoRecord

func (*GenesisState) GetDelegatorWithdrawInfos Uses

func (m *GenesisState) GetDelegatorWithdrawInfos() []DelegatorWithdrawInfo

func (*GenesisState) GetFeePool Uses

func (m *GenesisState) GetFeePool() FeePool

func (*GenesisState) GetOutstandingRewards Uses

func (m *GenesisState) GetOutstandingRewards() []ValidatorOutstandingRewardsRecord

func (*GenesisState) GetParams Uses

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPreviousProposer Uses

func (m *GenesisState) GetPreviousProposer() github_com_cosmos_cosmos_sdk_types.ConsAddress

func (*GenesisState) GetValidatorAccumulatedCommissions Uses

func (m *GenesisState) GetValidatorAccumulatedCommissions() []ValidatorAccumulatedCommissionRecord

func (*GenesisState) GetValidatorCurrentRewards Uses

func (m *GenesisState) GetValidatorCurrentRewards() []ValidatorCurrentRewardsRecord

func (*GenesisState) GetValidatorHistoricalRewards Uses

func (m *GenesisState) GetValidatorHistoricalRewards() []ValidatorHistoricalRewardsRecord

func (*GenesisState) GetValidatorSlashEvents Uses

func (m *GenesisState) GetValidatorSlashEvents() []ValidatorSlashEventRecord

func (*GenesisState) Marshal Uses

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

func (*GenesisState) MarshalTo Uses

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

func (*GenesisState) MarshalToSizedBuffer Uses

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

func (*GenesisState) ProtoMessage Uses

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset Uses

func (m *GenesisState) Reset()

func (*GenesisState) Size Uses

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

func (*GenesisState) String Uses

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal Uses

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

func (*GenesisState) XXX_DiscardUnknown Uses

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal Uses

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

func (*GenesisState) XXX_Merge Uses

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

func (*GenesisState) XXX_Size Uses

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal Uses

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

type MsgFundCommunityPool Uses

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 github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=depositor,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"depositor,omitempty"`
}

MsgFundCommunityPool defines a Msg type that allows an account to directly fund the community pool.

func NewMsgFundCommunityPool Uses

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

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

func (*MsgFundCommunityPool) Descriptor Uses

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

func (*MsgFundCommunityPool) Equal Uses

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

func (*MsgFundCommunityPool) GetAmount Uses

func (m *MsgFundCommunityPool) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins

func (*MsgFundCommunityPool) GetDepositor Uses

func (m *MsgFundCommunityPool) GetDepositor() github_com_cosmos_cosmos_sdk_types.AccAddress

func (MsgFundCommunityPool) GetSignBytes Uses

func (msg MsgFundCommunityPool) GetSignBytes() []byte

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

func (MsgFundCommunityPool) GetSigners Uses

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

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

func (*MsgFundCommunityPool) Marshal Uses

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

func (*MsgFundCommunityPool) MarshalTo Uses

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

func (*MsgFundCommunityPool) MarshalToSizedBuffer Uses

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

func (*MsgFundCommunityPool) ProtoMessage Uses

func (*MsgFundCommunityPool) ProtoMessage()

func (*MsgFundCommunityPool) Reset Uses

func (m *MsgFundCommunityPool) Reset()

func (MsgFundCommunityPool) Route Uses

func (msg MsgFundCommunityPool) Route() string

Route returns the MsgFundCommunityPool message route.

func (*MsgFundCommunityPool) Size Uses

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

func (*MsgFundCommunityPool) String Uses

func (m *MsgFundCommunityPool) String() string

func (MsgFundCommunityPool) Type Uses

func (msg MsgFundCommunityPool) Type() string

Type returns the MsgFundCommunityPool message type.

func (*MsgFundCommunityPool) Unmarshal Uses

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

func (MsgFundCommunityPool) ValidateBasic Uses

func (msg MsgFundCommunityPool) ValidateBasic() error

ValidateBasic performs basic MsgFundCommunityPool message validation.

func (*MsgFundCommunityPool) XXX_DiscardUnknown Uses

func (m *MsgFundCommunityPool) XXX_DiscardUnknown()

func (*MsgFundCommunityPool) XXX_Marshal Uses

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

func (*MsgFundCommunityPool) XXX_Merge Uses

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

func (*MsgFundCommunityPool) XXX_Size Uses

func (m *MsgFundCommunityPool) XXX_Size() int

func (*MsgFundCommunityPool) XXX_Unmarshal Uses

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

type MsgSetWithdrawAddress Uses

type MsgSetWithdrawAddress struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    WithdrawAddress  github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"withdraw_address,omitempty" yaml:"withdraw_address"`
}

msg struct for changing the withdraw address for a delegator (or validator self-delegation)

func NewMsgSetWithdrawAddress Uses

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

func (*MsgSetWithdrawAddress) Descriptor Uses

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

func (*MsgSetWithdrawAddress) Equal Uses

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

func (*MsgSetWithdrawAddress) GetDelegatorAddress Uses

func (m *MsgSetWithdrawAddress) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (MsgSetWithdrawAddress) GetSignBytes Uses

func (msg MsgSetWithdrawAddress) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgSetWithdrawAddress) GetSigners Uses

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

Return address that must sign over msg.GetSignBytes()

func (*MsgSetWithdrawAddress) GetWithdrawAddress Uses

func (m *MsgSetWithdrawAddress) GetWithdrawAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*MsgSetWithdrawAddress) Marshal Uses

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

func (*MsgSetWithdrawAddress) MarshalTo Uses

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

func (*MsgSetWithdrawAddress) MarshalToSizedBuffer Uses

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

func (*MsgSetWithdrawAddress) ProtoMessage Uses

func (*MsgSetWithdrawAddress) ProtoMessage()

func (*MsgSetWithdrawAddress) Reset Uses

func (m *MsgSetWithdrawAddress) Reset()

func (MsgSetWithdrawAddress) Route Uses

func (msg MsgSetWithdrawAddress) Route() string

func (*MsgSetWithdrawAddress) Size Uses

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

func (*MsgSetWithdrawAddress) String Uses

func (m *MsgSetWithdrawAddress) String() string

func (MsgSetWithdrawAddress) Type Uses

func (msg MsgSetWithdrawAddress) Type() string

func (*MsgSetWithdrawAddress) Unmarshal Uses

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

func (MsgSetWithdrawAddress) ValidateBasic Uses

func (msg MsgSetWithdrawAddress) ValidateBasic() error

quick validity check

func (*MsgSetWithdrawAddress) XXX_DiscardUnknown Uses

func (m *MsgSetWithdrawAddress) XXX_DiscardUnknown()

func (*MsgSetWithdrawAddress) XXX_Marshal Uses

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

func (*MsgSetWithdrawAddress) XXX_Merge Uses

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

func (*MsgSetWithdrawAddress) XXX_Size Uses

func (m *MsgSetWithdrawAddress) XXX_Size() int

func (*MsgSetWithdrawAddress) XXX_Unmarshal Uses

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

type MsgWithdrawDelegatorReward Uses

type MsgWithdrawDelegatorReward struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty" yaml:"delegator_address"`
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
}

msg struct for delegation withdraw from a single validator

func NewMsgWithdrawDelegatorReward Uses

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

func (*MsgWithdrawDelegatorReward) Descriptor Uses

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

func (*MsgWithdrawDelegatorReward) Equal Uses

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

func (*MsgWithdrawDelegatorReward) GetDelegatorAddress Uses

func (m *MsgWithdrawDelegatorReward) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (MsgWithdrawDelegatorReward) GetSignBytes Uses

func (msg MsgWithdrawDelegatorReward) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgWithdrawDelegatorReward) GetSigners Uses

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

Return address that must sign over msg.GetSignBytes()

func (*MsgWithdrawDelegatorReward) GetValidatorAddress Uses

func (m *MsgWithdrawDelegatorReward) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*MsgWithdrawDelegatorReward) Marshal Uses

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

func (*MsgWithdrawDelegatorReward) MarshalTo Uses

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

func (*MsgWithdrawDelegatorReward) MarshalToSizedBuffer Uses

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

func (*MsgWithdrawDelegatorReward) ProtoMessage Uses

func (*MsgWithdrawDelegatorReward) ProtoMessage()

func (*MsgWithdrawDelegatorReward) Reset Uses

func (m *MsgWithdrawDelegatorReward) Reset()

func (MsgWithdrawDelegatorReward) Route Uses

func (msg MsgWithdrawDelegatorReward) Route() string

func (*MsgWithdrawDelegatorReward) Size Uses

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

func (*MsgWithdrawDelegatorReward) String Uses

func (m *MsgWithdrawDelegatorReward) String() string

func (MsgWithdrawDelegatorReward) Type Uses

func (msg MsgWithdrawDelegatorReward) Type() string

func (*MsgWithdrawDelegatorReward) Unmarshal Uses

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

func (MsgWithdrawDelegatorReward) ValidateBasic Uses

func (msg MsgWithdrawDelegatorReward) ValidateBasic() error

quick validity check

func (*MsgWithdrawDelegatorReward) XXX_DiscardUnknown Uses

func (m *MsgWithdrawDelegatorReward) XXX_DiscardUnknown()

func (*MsgWithdrawDelegatorReward) XXX_Marshal Uses

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

func (*MsgWithdrawDelegatorReward) XXX_Merge Uses

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

func (*MsgWithdrawDelegatorReward) XXX_Size Uses

func (m *MsgWithdrawDelegatorReward) XXX_Size() int

func (*MsgWithdrawDelegatorReward) XXX_Unmarshal Uses

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

type MsgWithdrawValidatorCommission Uses

type MsgWithdrawValidatorCommission struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
}

msg struct for validator withdraw

func NewMsgWithdrawValidatorCommission Uses

func NewMsgWithdrawValidatorCommission(valAddr sdk.ValAddress) *MsgWithdrawValidatorCommission

func (*MsgWithdrawValidatorCommission) Descriptor Uses

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

func (*MsgWithdrawValidatorCommission) Equal Uses

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

func (MsgWithdrawValidatorCommission) GetSignBytes Uses

func (msg MsgWithdrawValidatorCommission) GetSignBytes() []byte

get the bytes for the message signer to sign on

func (MsgWithdrawValidatorCommission) GetSigners Uses

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

Return address that must sign over msg.GetSignBytes()

func (*MsgWithdrawValidatorCommission) GetValidatorAddress Uses

func (m *MsgWithdrawValidatorCommission) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*MsgWithdrawValidatorCommission) Marshal Uses

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

func (*MsgWithdrawValidatorCommission) MarshalTo Uses

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

func (*MsgWithdrawValidatorCommission) MarshalToSizedBuffer Uses

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

func (*MsgWithdrawValidatorCommission) ProtoMessage Uses

func (*MsgWithdrawValidatorCommission) ProtoMessage()

func (*MsgWithdrawValidatorCommission) Reset Uses

func (m *MsgWithdrawValidatorCommission) Reset()

func (MsgWithdrawValidatorCommission) Route Uses

func (msg MsgWithdrawValidatorCommission) Route() string

func (*MsgWithdrawValidatorCommission) Size Uses

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

func (*MsgWithdrawValidatorCommission) String Uses

func (m *MsgWithdrawValidatorCommission) String() string

func (MsgWithdrawValidatorCommission) Type Uses

func (msg MsgWithdrawValidatorCommission) Type() string

func (*MsgWithdrawValidatorCommission) Unmarshal Uses

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

func (MsgWithdrawValidatorCommission) ValidateBasic Uses

func (msg MsgWithdrawValidatorCommission) ValidateBasic() error

quick validity check

func (*MsgWithdrawValidatorCommission) XXX_DiscardUnknown Uses

func (m *MsgWithdrawValidatorCommission) XXX_DiscardUnknown()

func (*MsgWithdrawValidatorCommission) XXX_Marshal Uses

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

func (*MsgWithdrawValidatorCommission) XXX_Merge Uses

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

func (*MsgWithdrawValidatorCommission) XXX_Size Uses

func (m *MsgWithdrawValidatorCommission) XXX_Size() int

func (*MsgWithdrawValidatorCommission) XXX_Unmarshal Uses

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

type Params Uses

type Params struct {
    CommunityTax        github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=community_tax,json=communityTax,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"community_tax" yaml:"community_tax"`
    BaseProposerReward  github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=base_proposer_reward,json=baseProposerReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"base_proposer_reward" yaml:"base_proposer_reward"`
    BonusProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=bonus_proposer_reward,json=bonusProposerReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"bonus_proposer_reward" yaml:"bonus_proposer_reward"`
    WithdrawAddrEnabled bool                                   `protobuf:"varint,4,opt,name=withdraw_addr_enabled,json=withdrawAddrEnabled,proto3" json:"withdraw_addr_enabled,omitempty" yaml:"withdraw_addr_enabled"`
}

Params defines the set of distribution parameters.

func DefaultParams Uses

func DefaultParams() Params

DefaultParams returns default distribution parameters

func (*Params) Descriptor Uses

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

func (*Params) Equal Uses

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

func (*Params) GetWithdrawAddrEnabled Uses

func (m *Params) GetWithdrawAddrEnabled() bool

func (*Params) Marshal Uses

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

func (*Params) MarshalTo Uses

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

func (*Params) MarshalToSizedBuffer Uses

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

func (*Params) ParamSetPairs Uses

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

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (*Params) Size Uses

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

func (Params) String Uses

func (p Params) String() string

func (*Params) Unmarshal Uses

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

func (Params) ValidateBasic Uses

func (p Params) ValidateBasic() error

ValidateBasic performs basic validation on distribution parameters.

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

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

func (*Params) XXX_Merge Uses

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

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

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

type QueryClient Uses

type QueryClient interface {
    // Params queries params of 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 the total rewards accrued by a delegation
    DelegationRewards(ctx context.Context, in *QueryDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationRewardsResponse, error)
    // DelegationTotalRewards 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)
}

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 Uses

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCommunityPoolRequest Uses

type QueryCommunityPoolRequest struct {
}

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

func (*QueryCommunityPoolRequest) Descriptor Uses

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

func (*QueryCommunityPoolRequest) Marshal Uses

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

func (*QueryCommunityPoolRequest) MarshalTo Uses

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

func (*QueryCommunityPoolRequest) MarshalToSizedBuffer Uses

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

func (*QueryCommunityPoolRequest) ProtoMessage Uses

func (*QueryCommunityPoolRequest) ProtoMessage()

func (*QueryCommunityPoolRequest) Reset Uses

func (m *QueryCommunityPoolRequest) Reset()

func (*QueryCommunityPoolRequest) Size Uses

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

func (*QueryCommunityPoolRequest) String Uses

func (m *QueryCommunityPoolRequest) String() string

func (*QueryCommunityPoolRequest) Unmarshal Uses

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

func (*QueryCommunityPoolRequest) XXX_DiscardUnknown Uses

func (m *QueryCommunityPoolRequest) XXX_DiscardUnknown()

func (*QueryCommunityPoolRequest) XXX_Marshal Uses

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

func (*QueryCommunityPoolRequest) XXX_Merge Uses

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

func (*QueryCommunityPoolRequest) XXX_Size Uses

func (m *QueryCommunityPoolRequest) XXX_Size() int

func (*QueryCommunityPoolRequest) XXX_Unmarshal Uses

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

type QueryCommunityPoolResponse Uses

type QueryCommunityPoolResponse struct {
    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 Uses

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

func (*QueryCommunityPoolResponse) GetPool Uses

func (m *QueryCommunityPoolResponse) GetPool() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*QueryCommunityPoolResponse) Marshal Uses

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

func (*QueryCommunityPoolResponse) MarshalTo Uses

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

func (*QueryCommunityPoolResponse) MarshalToSizedBuffer Uses

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

func (*QueryCommunityPoolResponse) ProtoMessage Uses

func (*QueryCommunityPoolResponse) ProtoMessage()

func (*QueryCommunityPoolResponse) Reset Uses

func (m *QueryCommunityPoolResponse) Reset()

func (*QueryCommunityPoolResponse) Size Uses

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

func (*QueryCommunityPoolResponse) String Uses

func (m *QueryCommunityPoolResponse) String() string

func (*QueryCommunityPoolResponse) Unmarshal Uses

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

func (*QueryCommunityPoolResponse) XXX_DiscardUnknown Uses

func (m *QueryCommunityPoolResponse) XXX_DiscardUnknown()

func (*QueryCommunityPoolResponse) XXX_Marshal Uses

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

func (*QueryCommunityPoolResponse) XXX_Merge Uses

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

func (*QueryCommunityPoolResponse) XXX_Size Uses

func (m *QueryCommunityPoolResponse) XXX_Size() int

func (*QueryCommunityPoolResponse) XXX_Unmarshal Uses

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

type QueryDelegationRewardsParams Uses

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 Uses

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

creates a new instance of QueryDelegationRewardsParams

type QueryDelegationRewardsRequest Uses

type QueryDelegationRewardsRequest struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty"`
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty"`
}

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

func (*QueryDelegationRewardsRequest) Descriptor Uses

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

func (*QueryDelegationRewardsRequest) GetDelegatorAddress Uses

func (m *QueryDelegationRewardsRequest) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegationRewardsRequest) GetValidatorAddress Uses

func (m *QueryDelegationRewardsRequest) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryDelegationRewardsRequest) Marshal Uses

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

func (*QueryDelegationRewardsRequest) MarshalTo Uses

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

func (*QueryDelegationRewardsRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegationRewardsRequest) ProtoMessage Uses

func (*QueryDelegationRewardsRequest) ProtoMessage()

func (*QueryDelegationRewardsRequest) Reset Uses

func (m *QueryDelegationRewardsRequest) Reset()

func (*QueryDelegationRewardsRequest) Size Uses

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

func (*QueryDelegationRewardsRequest) String Uses

func (m *QueryDelegationRewardsRequest) String() string

func (*QueryDelegationRewardsRequest) Unmarshal Uses

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

func (*QueryDelegationRewardsRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegationRewardsRequest) XXX_DiscardUnknown()

func (*QueryDelegationRewardsRequest) XXX_Marshal Uses

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

func (*QueryDelegationRewardsRequest) XXX_Merge Uses

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

func (*QueryDelegationRewardsRequest) XXX_Size Uses

func (m *QueryDelegationRewardsRequest) XXX_Size() int

func (*QueryDelegationRewardsRequest) XXX_Unmarshal Uses

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

type QueryDelegationRewardsResponse Uses

type QueryDelegationRewardsResponse 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"`
}

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

func (*QueryDelegationRewardsResponse) Descriptor Uses

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

func (*QueryDelegationRewardsResponse) GetRewards Uses

func (m *QueryDelegationRewardsResponse) GetRewards() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*QueryDelegationRewardsResponse) Marshal Uses

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

func (*QueryDelegationRewardsResponse) MarshalTo Uses

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

func (*QueryDelegationRewardsResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegationRewardsResponse) ProtoMessage Uses

func (*QueryDelegationRewardsResponse) ProtoMessage()

func (*QueryDelegationRewardsResponse) Reset Uses

func (m *QueryDelegationRewardsResponse) Reset()

func (*QueryDelegationRewardsResponse) Size Uses

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

func (*QueryDelegationRewardsResponse) String Uses

func (m *QueryDelegationRewardsResponse) String() string

func (*QueryDelegationRewardsResponse) Unmarshal Uses

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

func (*QueryDelegationRewardsResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegationRewardsResponse) XXX_DiscardUnknown()

func (*QueryDelegationRewardsResponse) XXX_Marshal Uses

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

func (*QueryDelegationRewardsResponse) XXX_Merge Uses

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

func (*QueryDelegationRewardsResponse) XXX_Size Uses

func (m *QueryDelegationRewardsResponse) XXX_Size() int

func (*QueryDelegationRewardsResponse) XXX_Unmarshal Uses

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

type QueryDelegationTotalRewardsRequest Uses

type QueryDelegationTotalRewardsRequest struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty"`
}

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

func (*QueryDelegationTotalRewardsRequest) Descriptor Uses

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

func (*QueryDelegationTotalRewardsRequest) GetDelegatorAddress Uses

func (m *QueryDelegationTotalRewardsRequest) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegationTotalRewardsRequest) Marshal Uses

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

func (*QueryDelegationTotalRewardsRequest) MarshalTo Uses

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

func (*QueryDelegationTotalRewardsRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegationTotalRewardsRequest) ProtoMessage Uses

func (*QueryDelegationTotalRewardsRequest) ProtoMessage()

func (*QueryDelegationTotalRewardsRequest) Reset Uses

func (m *QueryDelegationTotalRewardsRequest) Reset()

func (*QueryDelegationTotalRewardsRequest) Size Uses

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

func (*QueryDelegationTotalRewardsRequest) String Uses

func (m *QueryDelegationTotalRewardsRequest) String() string

func (*QueryDelegationTotalRewardsRequest) Unmarshal Uses

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

func (*QueryDelegationTotalRewardsRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegationTotalRewardsRequest) XXX_DiscardUnknown()

func (*QueryDelegationTotalRewardsRequest) XXX_Marshal Uses

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

func (*QueryDelegationTotalRewardsRequest) XXX_Merge Uses

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

func (*QueryDelegationTotalRewardsRequest) XXX_Size Uses

func (m *QueryDelegationTotalRewardsRequest) XXX_Size() int

func (*QueryDelegationTotalRewardsRequest) XXX_Unmarshal Uses

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

type QueryDelegationTotalRewardsResponse Uses

type QueryDelegationTotalRewardsResponse struct {
    Rewards []DelegationDelegatorReward                 `protobuf:"bytes,1,rep,name=rewards,proto3" json:"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 Uses

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

func (*QueryDelegationTotalRewardsResponse) GetRewards Uses

func (m *QueryDelegationTotalRewardsResponse) GetRewards() []DelegationDelegatorReward

func (*QueryDelegationTotalRewardsResponse) GetTotal Uses

func (m *QueryDelegationTotalRewardsResponse) GetTotal() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*QueryDelegationTotalRewardsResponse) Marshal Uses

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

func (*QueryDelegationTotalRewardsResponse) MarshalTo Uses

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

func (*QueryDelegationTotalRewardsResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegationTotalRewardsResponse) ProtoMessage Uses

func (*QueryDelegationTotalRewardsResponse) ProtoMessage()

func (*QueryDelegationTotalRewardsResponse) Reset Uses

func (m *QueryDelegationTotalRewardsResponse) Reset()

func (*QueryDelegationTotalRewardsResponse) Size Uses

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

func (*QueryDelegationTotalRewardsResponse) String Uses

func (m *QueryDelegationTotalRewardsResponse) String() string

func (*QueryDelegationTotalRewardsResponse) Unmarshal Uses

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

func (*QueryDelegationTotalRewardsResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegationTotalRewardsResponse) XXX_DiscardUnknown()

func (*QueryDelegationTotalRewardsResponse) XXX_Marshal Uses

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

func (*QueryDelegationTotalRewardsResponse) XXX_Merge Uses

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

func (*QueryDelegationTotalRewardsResponse) XXX_Size Uses

func (m *QueryDelegationTotalRewardsResponse) XXX_Size() int

func (*QueryDelegationTotalRewardsResponse) XXX_Unmarshal Uses

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

type QueryDelegatorParams Uses

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 Uses

func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams

creates a new instance of QueryDelegationRewardsParams

type QueryDelegatorTotalRewardsResponse Uses

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 Uses

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

NewQueryDelegatorTotalRewardsResponse constructs a QueryDelegatorTotalRewardsResponse

func (QueryDelegatorTotalRewardsResponse) String Uses

func (res QueryDelegatorTotalRewardsResponse) String() string

type QueryDelegatorValidatorsRequest Uses

type QueryDelegatorValidatorsRequest struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty"`
}

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

func (*QueryDelegatorValidatorsRequest) Descriptor Uses

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

func (*QueryDelegatorValidatorsRequest) GetDelegatorAddress Uses

func (m *QueryDelegatorValidatorsRequest) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegatorValidatorsRequest) Marshal Uses

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

func (*QueryDelegatorValidatorsRequest) MarshalTo Uses

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

func (*QueryDelegatorValidatorsRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorValidatorsRequest) ProtoMessage Uses

func (*QueryDelegatorValidatorsRequest) ProtoMessage()

func (*QueryDelegatorValidatorsRequest) Reset Uses

func (m *QueryDelegatorValidatorsRequest) Reset()

func (*QueryDelegatorValidatorsRequest) Size Uses

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

func (*QueryDelegatorValidatorsRequest) String Uses

func (m *QueryDelegatorValidatorsRequest) String() string

func (*QueryDelegatorValidatorsRequest) Unmarshal Uses

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

func (*QueryDelegatorValidatorsRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsRequest) XXX_Marshal Uses

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

func (*QueryDelegatorValidatorsRequest) XXX_Merge Uses

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

func (*QueryDelegatorValidatorsRequest) XXX_Size Uses

func (m *QueryDelegatorValidatorsRequest) XXX_Size() int

func (*QueryDelegatorValidatorsRequest) XXX_Unmarshal Uses

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

type QueryDelegatorValidatorsResponse Uses

type QueryDelegatorValidatorsResponse struct {
    Validators []github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,rep,name=validators,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validators,omitempty"`
}

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

func (*QueryDelegatorValidatorsResponse) Descriptor Uses

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

func (*QueryDelegatorValidatorsResponse) GetValidators Uses

func (m *QueryDelegatorValidatorsResponse) GetValidators() []github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryDelegatorValidatorsResponse) Marshal Uses

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

func (*QueryDelegatorValidatorsResponse) MarshalTo Uses

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

func (*QueryDelegatorValidatorsResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorValidatorsResponse) ProtoMessage Uses

func (*QueryDelegatorValidatorsResponse) ProtoMessage()

func (*QueryDelegatorValidatorsResponse) Reset Uses

func (m *QueryDelegatorValidatorsResponse) Reset()

func (*QueryDelegatorValidatorsResponse) Size Uses

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

func (*QueryDelegatorValidatorsResponse) String Uses

func (m *QueryDelegatorValidatorsResponse) String() string

func (*QueryDelegatorValidatorsResponse) Unmarshal Uses

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

func (*QueryDelegatorValidatorsResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorValidatorsResponse) XXX_Marshal Uses

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

func (*QueryDelegatorValidatorsResponse) XXX_Merge Uses

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

func (*QueryDelegatorValidatorsResponse) XXX_Size Uses

func (m *QueryDelegatorValidatorsResponse) XXX_Size() int

func (*QueryDelegatorValidatorsResponse) XXX_Unmarshal Uses

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

type QueryDelegatorWithdrawAddrParams Uses

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

params for query 'custom/distr/withdraw_addr'

func NewQueryDelegatorWithdrawAddrParams Uses

func NewQueryDelegatorWithdrawAddrParams(delegatorAddr sdk.AccAddress) QueryDelegatorWithdrawAddrParams

NewQueryDelegatorWithdrawAddrParams creates a new instance of QueryDelegatorWithdrawAddrParams.

type QueryDelegatorWithdrawAddressRequest Uses

type QueryDelegatorWithdrawAddressRequest struct {
    DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty"`
}

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

func (*QueryDelegatorWithdrawAddressRequest) Descriptor Uses

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

func (*QueryDelegatorWithdrawAddressRequest) GetDelegatorAddress Uses

func (m *QueryDelegatorWithdrawAddressRequest) GetDelegatorAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegatorWithdrawAddressRequest) Marshal Uses

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

func (*QueryDelegatorWithdrawAddressRequest) MarshalTo Uses

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

func (*QueryDelegatorWithdrawAddressRequest) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorWithdrawAddressRequest) ProtoMessage Uses

func (*QueryDelegatorWithdrawAddressRequest) ProtoMessage()

func (*QueryDelegatorWithdrawAddressRequest) Reset Uses

func (m *QueryDelegatorWithdrawAddressRequest) Reset()

func (*QueryDelegatorWithdrawAddressRequest) Size Uses

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

func (*QueryDelegatorWithdrawAddressRequest) String Uses

func (m *QueryDelegatorWithdrawAddressRequest) String() string

func (*QueryDelegatorWithdrawAddressRequest) Unmarshal Uses

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

func (*QueryDelegatorWithdrawAddressRequest) XXX_DiscardUnknown Uses

func (m *QueryDelegatorWithdrawAddressRequest) XXX_DiscardUnknown()

func (*QueryDelegatorWithdrawAddressRequest) XXX_Marshal Uses

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

func (*QueryDelegatorWithdrawAddressRequest) XXX_Merge Uses

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

func (*QueryDelegatorWithdrawAddressRequest) XXX_Size Uses

func (m *QueryDelegatorWithdrawAddressRequest) XXX_Size() int

func (*QueryDelegatorWithdrawAddressRequest) XXX_Unmarshal Uses

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

type QueryDelegatorWithdrawAddressResponse Uses

type QueryDelegatorWithdrawAddressResponse struct {
    WithdrawAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=withdraw_address,json=withdrawAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"withdraw_address,omitempty"`
}

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

func (*QueryDelegatorWithdrawAddressResponse) Descriptor Uses

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

func (*QueryDelegatorWithdrawAddressResponse) GetWithdrawAddress Uses

func (m *QueryDelegatorWithdrawAddressResponse) GetWithdrawAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryDelegatorWithdrawAddressResponse) Marshal Uses

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

func (*QueryDelegatorWithdrawAddressResponse) MarshalTo Uses

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

func (*QueryDelegatorWithdrawAddressResponse) MarshalToSizedBuffer Uses

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

func (*QueryDelegatorWithdrawAddressResponse) ProtoMessage Uses

func (*QueryDelegatorWithdrawAddressResponse) ProtoMessage()

func (*QueryDelegatorWithdrawAddressResponse) Reset Uses

func (m *QueryDelegatorWithdrawAddressResponse) Reset()

func (*QueryDelegatorWithdrawAddressResponse) Size Uses

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

func (*QueryDelegatorWithdrawAddressResponse) String Uses

func (m *QueryDelegatorWithdrawAddressResponse) String() string

func (*QueryDelegatorWithdrawAddressResponse) Unmarshal Uses

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

func (*QueryDelegatorWithdrawAddressResponse) XXX_DiscardUnknown Uses

func (m *QueryDelegatorWithdrawAddressResponse) XXX_DiscardUnknown()

func (*QueryDelegatorWithdrawAddressResponse) XXX_Marshal Uses

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

func (*QueryDelegatorWithdrawAddressResponse) XXX_Merge Uses

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

func (*QueryDelegatorWithdrawAddressResponse) XXX_Size Uses

func (m *QueryDelegatorWithdrawAddressResponse) XXX_Size() int

func (*QueryDelegatorWithdrawAddressResponse) XXX_Unmarshal Uses

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

type QueryParamsRequest Uses

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor Uses

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

func (*QueryParamsRequest) Marshal Uses

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

func (*QueryParamsRequest) MarshalTo Uses

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

func (*QueryParamsRequest) MarshalToSizedBuffer Uses

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

func (*QueryParamsRequest) ProtoMessage Uses

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset Uses

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size Uses

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

func (*QueryParamsRequest) String Uses

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal Uses

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

func (*QueryParamsRequest) XXX_DiscardUnknown Uses

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal Uses

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

func (*QueryParamsRequest) XXX_Merge Uses

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

func (*QueryParamsRequest) XXX_Size Uses

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal Uses

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

type QueryParamsResponse Uses

type QueryParamsResponse struct {
    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 Uses

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

func (*QueryParamsResponse) GetParams Uses

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal Uses

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

func (*QueryParamsResponse) MarshalTo Uses

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

func (*QueryParamsResponse) MarshalToSizedBuffer Uses

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

func (*QueryParamsResponse) ProtoMessage Uses

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset Uses

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size Uses

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

func (*QueryParamsResponse) String Uses

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal Uses

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

func (*QueryParamsResponse) XXX_DiscardUnknown Uses

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal Uses

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

func (*QueryParamsResponse) XXX_Merge Uses

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

func (*QueryParamsResponse) XXX_Size Uses

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal Uses

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

type QueryServer Uses

type QueryServer interface {
    // Params queries params of 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 the total rewards accrued by a delegation
    DelegationRewards(context.Context, *QueryDelegationRewardsRequest) (*QueryDelegationRewardsResponse, error)
    // DelegationTotalRewards 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)
}

QueryServer is the server API for Query service.

type QueryValidatorCommissionParams Uses

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

params for query 'custom/distr/validator_commission'

func NewQueryValidatorCommissionParams Uses

func NewQueryValidatorCommissionParams(validatorAddr sdk.ValAddress) QueryValidatorCommissionParams

creates a new instance of QueryValidatorCommissionParams

type QueryValidatorCommissionRequest Uses

type QueryValidatorCommissionRequest struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty"`
}

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

func (*QueryValidatorCommissionRequest) Descriptor Uses

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

func (*QueryValidatorCommissionRequest) GetValidatorAddress Uses

func (m *QueryValidatorCommissionRequest) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryValidatorCommissionRequest) Marshal Uses

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

func (*QueryValidatorCommissionRequest) MarshalTo Uses

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

func (*QueryValidatorCommissionRequest) MarshalToSizedBuffer Uses

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

func (*QueryValidatorCommissionRequest) ProtoMessage Uses

func (*QueryValidatorCommissionRequest) ProtoMessage()

func (*QueryValidatorCommissionRequest) Reset Uses

func (m *QueryValidatorCommissionRequest) Reset()

func (*QueryValidatorCommissionRequest) Size Uses

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

func (*QueryValidatorCommissionRequest) String Uses

func (m *QueryValidatorCommissionRequest) String() string

func (*QueryValidatorCommissionRequest) Unmarshal Uses

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

func (*QueryValidatorCommissionRequest) XXX_DiscardUnknown Uses

func (m *QueryValidatorCommissionRequest) XXX_DiscardUnknown()

func (*QueryValidatorCommissionRequest) XXX_Marshal Uses

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

func (*QueryValidatorCommissionRequest) XXX_Merge Uses

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

func (*QueryValidatorCommissionRequest) XXX_Size Uses

func (m *QueryValidatorCommissionRequest) XXX_Size() int

func (*QueryValidatorCommissionRequest) XXX_Unmarshal Uses

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

type QueryValidatorCommissionResponse Uses

type QueryValidatorCommissionResponse struct {
    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 Uses

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

func (*QueryValidatorCommissionResponse) GetCommission Uses

func (m *QueryValidatorCommissionResponse) GetCommission() ValidatorAccumulatedCommission

func (*QueryValidatorCommissionResponse) Marshal Uses

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

func (*QueryValidatorCommissionResponse) MarshalTo Uses

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

func (*QueryValidatorCommissionResponse) MarshalToSizedBuffer Uses

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

func (*QueryValidatorCommissionResponse) ProtoMessage Uses

func (*QueryValidatorCommissionResponse) ProtoMessage()

func (*QueryValidatorCommissionResponse) Reset Uses

func (m *QueryValidatorCommissionResponse) Reset()

func (*QueryValidatorCommissionResponse) Size Uses

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

func (*QueryValidatorCommissionResponse) String Uses

func (m *QueryValidatorCommissionResponse) String() string

func (*QueryValidatorCommissionResponse) Unmarshal Uses

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

func (*QueryValidatorCommissionResponse) XXX_DiscardUnknown Uses

func (m *QueryValidatorCommissionResponse) XXX_DiscardUnknown()

func (*QueryValidatorCommissionResponse) XXX_Marshal Uses

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

func (*QueryValidatorCommissionResponse) XXX_Merge Uses

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

func (*QueryValidatorCommissionResponse) XXX_Size Uses

func (m *QueryValidatorCommissionResponse) XXX_Size() int

func (*QueryValidatorCommissionResponse) XXX_Unmarshal Uses

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

type QueryValidatorOutstandingRewardsParams Uses

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

params for query 'custom/distr/validator_outstanding_rewards'

func NewQueryValidatorOutstandingRewardsParams Uses

func NewQueryValidatorOutstandingRewardsParams(validatorAddr sdk.ValAddress) QueryValidatorOutstandingRewardsParams

creates a new instance of QueryValidatorOutstandingRewardsParams

type QueryValidatorOutstandingRewardsRequest Uses

type QueryValidatorOutstandingRewardsRequest struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty"`
}

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

func (*QueryValidatorOutstandingRewardsRequest) Descriptor Uses

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

func (*QueryValidatorOutstandingRewardsRequest) GetValidatorAddress Uses

func (m *QueryValidatorOutstandingRewardsRequest) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryValidatorOutstandingRewardsRequest) Marshal Uses

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

func (*QueryValidatorOutstandingRewardsRequest) MarshalTo Uses

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

func (*QueryValidatorOutstandingRewardsRequest) MarshalToSizedBuffer Uses

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

func (*QueryValidatorOutstandingRewardsRequest) ProtoMessage Uses

func (*QueryValidatorOutstandingRewardsRequest) ProtoMessage()

func (*QueryValidatorOutstandingRewardsRequest) Reset Uses

func (m *QueryValidatorOutstandingRewardsRequest) Reset()

func (*QueryValidatorOutstandingRewardsRequest) Size Uses

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

func (*QueryValidatorOutstandingRewardsRequest) String Uses

func (m *QueryValidatorOutstandingRewardsRequest) String() string

func (*QueryValidatorOutstandingRewardsRequest) Unmarshal Uses

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

func (*QueryValidatorOutstandingRewardsRequest) XXX_DiscardUnknown Uses

func (m *QueryValidatorOutstandingRewardsRequest) XXX_DiscardUnknown()

func (*QueryValidatorOutstandingRewardsRequest) XXX_Marshal Uses

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

func (*QueryValidatorOutstandingRewardsRequest) XXX_Merge Uses

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

func (*QueryValidatorOutstandingRewardsRequest) XXX_Size Uses

func (m *QueryValidatorOutstandingRewardsRequest) XXX_Size() int

func (*QueryValidatorOutstandingRewardsRequest) XXX_Unmarshal Uses

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

type QueryValidatorOutstandingRewardsResponse Uses

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 Uses

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

func (*QueryValidatorOutstandingRewardsResponse) GetRewards Uses

func (m *QueryValidatorOutstandingRewardsResponse) GetRewards() ValidatorOutstandingRewards

func (*QueryValidatorOutstandingRewardsResponse) Marshal Uses

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

func (*QueryValidatorOutstandingRewardsResponse) MarshalTo Uses

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

func (*QueryValidatorOutstandingRewardsResponse) MarshalToSizedBuffer Uses

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

func (*QueryValidatorOutstandingRewardsResponse) ProtoMessage Uses

func (*QueryValidatorOutstandingRewardsResponse) ProtoMessage()

func (*QueryValidatorOutstandingRewardsResponse) Reset Uses

func (m *QueryValidatorOutstandingRewardsResponse) Reset()

func (*QueryValidatorOutstandingRewardsResponse) Size Uses

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

func (*QueryValidatorOutstandingRewardsResponse) String Uses

func (m *QueryValidatorOutstandingRewardsResponse) String() string

func (*QueryValidatorOutstandingRewardsResponse) Unmarshal Uses

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

func (*QueryValidatorOutstandingRewardsResponse) XXX_DiscardUnknown Uses

func (m *QueryValidatorOutstandingRewardsResponse) XXX_DiscardUnknown()

func (*QueryValidatorOutstandingRewardsResponse) XXX_Marshal Uses

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

func (*QueryValidatorOutstandingRewardsResponse) XXX_Merge Uses

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

func (*QueryValidatorOutstandingRewardsResponse) XXX_Size Uses

func (m *QueryValidatorOutstandingRewardsResponse) XXX_Size() int

func (*QueryValidatorOutstandingRewardsResponse) XXX_Unmarshal Uses

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

type QueryValidatorSlashesParams Uses

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 Uses

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

creates a new instance of QueryValidatorSlashesParams

type QueryValidatorSlashesRequest Uses

type QueryValidatorSlashesRequest struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty"`
    StartingHeight   uint64                                        `protobuf:"varint,2,opt,name=starting_height,json=startingHeight,proto3" json:"starting_height,omitempty"`
    EndingHeight     uint64                                        `protobuf:"varint,3,opt,name=ending_height,json=endingHeight,proto3" json:"ending_height,omitempty"`
    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 Uses

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

func (*QueryValidatorSlashesRequest) GetEndingHeight Uses

func (m *QueryValidatorSlashesRequest) GetEndingHeight() uint64

func (*QueryValidatorSlashesRequest) GetPagination Uses

func (m *QueryValidatorSlashesRequest) GetPagination() *query.PageRequest

func (*QueryValidatorSlashesRequest) GetStartingHeight Uses

func (m *QueryValidatorSlashesRequest) GetStartingHeight() uint64

func (*QueryValidatorSlashesRequest) GetValidatorAddress Uses

func (m *QueryValidatorSlashesRequest) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*QueryValidatorSlashesRequest) Marshal Uses

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

func (*QueryValidatorSlashesRequest) MarshalTo Uses

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

func (*QueryValidatorSlashesRequest) MarshalToSizedBuffer Uses

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

func (*QueryValidatorSlashesRequest) ProtoMessage Uses

func (*QueryValidatorSlashesRequest) ProtoMessage()

func (*QueryValidatorSlashesRequest) Reset Uses

func (m *QueryValidatorSlashesRequest) Reset()

func (*QueryValidatorSlashesRequest) Size Uses

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

func (*QueryValidatorSlashesRequest) String Uses

func (m *QueryValidatorSlashesRequest) String() string

func (*QueryValidatorSlashesRequest) Unmarshal Uses

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

func (*QueryValidatorSlashesRequest) XXX_DiscardUnknown Uses

func (m *QueryValidatorSlashesRequest) XXX_DiscardUnknown()

func (*QueryValidatorSlashesRequest) XXX_Marshal Uses

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

func (*QueryValidatorSlashesRequest) XXX_Merge Uses

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

func (*QueryValidatorSlashesRequest) XXX_Size Uses

func (m *QueryValidatorSlashesRequest) XXX_Size() int

func (*QueryValidatorSlashesRequest) XXX_Unmarshal Uses

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

type QueryValidatorSlashesResponse Uses

type QueryValidatorSlashesResponse struct {
    Slashes    []ValidatorSlashEvent `protobuf:"bytes,1,rep,name=slashes,proto3" json:"slashes"`
    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 Uses

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

func (*QueryValidatorSlashesResponse) GetPagination Uses

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

func (*QueryValidatorSlashesResponse) GetSlashes Uses

func (m *QueryValidatorSlashesResponse) GetSlashes() []ValidatorSlashEvent

func (*QueryValidatorSlashesResponse) Marshal Uses

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

func (*QueryValidatorSlashesResponse) MarshalTo Uses

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

func (*QueryValidatorSlashesResponse) MarshalToSizedBuffer Uses

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

func (*QueryValidatorSlashesResponse) ProtoMessage Uses

func (*QueryValidatorSlashesResponse) ProtoMessage()

func (*QueryValidatorSlashesResponse) Reset Uses

func (m *QueryValidatorSlashesResponse) Reset()

func (*QueryValidatorSlashesResponse) Size Uses

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

func (*QueryValidatorSlashesResponse) String Uses

func (m *QueryValidatorSlashesResponse) String() string

func (*QueryValidatorSlashesResponse) Unmarshal Uses

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

func (*QueryValidatorSlashesResponse) XXX_DiscardUnknown Uses

func (m *QueryValidatorSlashesResponse) XXX_DiscardUnknown()

func (*QueryValidatorSlashesResponse) XXX_Marshal Uses

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

func (*QueryValidatorSlashesResponse) XXX_Merge Uses

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

func (*QueryValidatorSlashesResponse) XXX_Size Uses

func (m *QueryValidatorSlashesResponse) XXX_Size() int

func (*QueryValidatorSlashesResponse) XXX_Unmarshal Uses

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

type StakingHooks Uses

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 Uses

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

    // iterate through bonded validators by operator address, execute func for each validator
    IterateBondedValidatorsByPower(sdk.Context,
        func(index int64, validator stakingexported.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 stakingexported.ValidatorI) (stop bool))

    Validator(sdk.Context, sdk.ValAddress) stakingexported.ValidatorI            // get a particular validator by operator address
    ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingexported.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)
    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) stakingexported.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 stakingexported.DelegationI) (stop bool))

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

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

StakingKeeper expected staking keeper (noalias)

type UnimplementedQueryServer Uses

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CommunityPool Uses

func (*UnimplementedQueryServer) CommunityPool(ctx context.Context, req *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)

func (*UnimplementedQueryServer) DelegationRewards Uses

func (*UnimplementedQueryServer) DelegationRewards(ctx context.Context, req *QueryDelegationRewardsRequest) (*QueryDelegationRewardsResponse, error)

func (*UnimplementedQueryServer) DelegationTotalRewards Uses

func (*UnimplementedQueryServer) DelegationTotalRewards(ctx context.Context, req *QueryDelegationTotalRewardsRequest) (*QueryDelegationTotalRewardsResponse, error)

func (*UnimplementedQueryServer) DelegatorValidators Uses

func (*UnimplementedQueryServer) DelegatorValidators(ctx context.Context, req *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)

func (*UnimplementedQueryServer) DelegatorWithdrawAddress Uses

func (*UnimplementedQueryServer) DelegatorWithdrawAddress(ctx context.Context, req *QueryDelegatorWithdrawAddressRequest) (*QueryDelegatorWithdrawAddressResponse, error)

func (*UnimplementedQueryServer) Params Uses

func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)

func (*UnimplementedQueryServer) ValidatorCommission Uses

func (*UnimplementedQueryServer) ValidatorCommission(ctx context.Context, req *QueryValidatorCommissionRequest) (*QueryValidatorCommissionResponse, error)

func (*UnimplementedQueryServer) ValidatorOutstandingRewards Uses

func (*UnimplementedQueryServer) ValidatorOutstandingRewards(ctx context.Context, req *QueryValidatorOutstandingRewardsRequest) (*QueryValidatorOutstandingRewardsResponse, error)

func (*UnimplementedQueryServer) ValidatorSlashes Uses

func (*UnimplementedQueryServer) ValidatorSlashes(ctx context.Context, req *QueryValidatorSlashesRequest) (*QueryValidatorSlashesResponse, error)

type ValidatorAccumulatedCommission Uses

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"`
}

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

func InitialValidatorAccumulatedCommission Uses

func InitialValidatorAccumulatedCommission() ValidatorAccumulatedCommission

return the initial accumulated commission (zero)

func (*ValidatorAccumulatedCommission) Descriptor Uses

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

func (*ValidatorAccumulatedCommission) Equal Uses

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

func (*ValidatorAccumulatedCommission) GetCommission Uses

func (m *ValidatorAccumulatedCommission) GetCommission() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*ValidatorAccumulatedCommission) Marshal Uses

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

func (*ValidatorAccumulatedCommission) MarshalTo Uses

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

func (*ValidatorAccumulatedCommission) MarshalToSizedBuffer Uses

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

func (*ValidatorAccumulatedCommission) ProtoMessage Uses

func (*ValidatorAccumulatedCommission) ProtoMessage()

func (*ValidatorAccumulatedCommission) Reset Uses

func (m *ValidatorAccumulatedCommission) Reset()

func (*ValidatorAccumulatedCommission) Size Uses

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

func (*ValidatorAccumulatedCommission) String Uses

func (m *ValidatorAccumulatedCommission) String() string

func (*ValidatorAccumulatedCommission) Unmarshal Uses

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

func (*ValidatorAccumulatedCommission) XXX_DiscardUnknown Uses

func (m *ValidatorAccumulatedCommission) XXX_DiscardUnknown()

func (*ValidatorAccumulatedCommission) XXX_Marshal Uses

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

func (*ValidatorAccumulatedCommission) XXX_Merge Uses

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

func (*ValidatorAccumulatedCommission) XXX_Size Uses

func (m *ValidatorAccumulatedCommission) XXX_Size() int

func (*ValidatorAccumulatedCommission) XXX_Unmarshal Uses

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

type ValidatorAccumulatedCommissionRecord Uses

type ValidatorAccumulatedCommissionRecord struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    Accumulated      ValidatorAccumulatedCommission                `protobuf:"bytes,2,opt,name=accumulated,proto3,casttype=ValidatorAccumulatedCommission" json:"accumulated" yaml:"accumulated"`
}

ValidatorAccumulatedCommissionRecord used for import / export via genesis json

func (*ValidatorAccumulatedCommissionRecord) Descriptor Uses

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

func (*ValidatorAccumulatedCommissionRecord) Equal Uses

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

func (*ValidatorAccumulatedCommissionRecord) GetAccumulated Uses

func (m *ValidatorAccumulatedCommissionRecord) GetAccumulated() ValidatorAccumulatedCommission

func (*ValidatorAccumulatedCommissionRecord) GetValidatorAddress Uses

func (m *ValidatorAccumulatedCommissionRecord) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*ValidatorAccumulatedCommissionRecord) Marshal Uses

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

func (*ValidatorAccumulatedCommissionRecord) MarshalTo Uses

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

func (*ValidatorAccumulatedCommissionRecord) MarshalToSizedBuffer Uses

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

func (*ValidatorAccumulatedCommissionRecord) ProtoMessage Uses

func (*ValidatorAccumulatedCommissionRecord) ProtoMessage()

func (*ValidatorAccumulatedCommissionRecord) Reset Uses

func (m *ValidatorAccumulatedCommissionRecord) Reset()

func (*ValidatorAccumulatedCommissionRecord) Size Uses

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

func (*ValidatorAccumulatedCommissionRecord) String Uses

func (m *ValidatorAccumulatedCommissionRecord) String() string

func (*ValidatorAccumulatedCommissionRecord) Unmarshal Uses

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

func (*ValidatorAccumulatedCommissionRecord) XXX_DiscardUnknown Uses

func (m *ValidatorAccumulatedCommissionRecord) XXX_DiscardUnknown()

func (*ValidatorAccumulatedCommissionRecord) XXX_Marshal Uses

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

func (*ValidatorAccumulatedCommissionRecord) XXX_Merge Uses

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

func (*ValidatorAccumulatedCommissionRecord) XXX_Size Uses

func (m *ValidatorAccumulatedCommissionRecord) XXX_Size() int

func (*ValidatorAccumulatedCommissionRecord) XXX_Unmarshal Uses

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

type ValidatorCurrentRewards Uses

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"`
}

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 Uses

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

create a new ValidatorCurrentRewards

func (*ValidatorCurrentRewards) Descriptor Uses

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

func (*ValidatorCurrentRewards) Equal Uses

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

func (*ValidatorCurrentRewards) GetPeriod Uses

func (m *ValidatorCurrentRewards) GetPeriod() uint64

func (*ValidatorCurrentRewards) GetRewards Uses

func (m *ValidatorCurrentRewards) GetRewards() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*ValidatorCurrentRewards) Marshal Uses

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

func (*ValidatorCurrentRewards) MarshalTo Uses

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

func (*ValidatorCurrentRewards) MarshalToSizedBuffer Uses

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

func (*ValidatorCurrentRewards) ProtoMessage Uses

func (*ValidatorCurrentRewards) ProtoMessage()

func (*ValidatorCurrentRewards) Reset Uses

func (m *ValidatorCurrentRewards) Reset()

func (*ValidatorCurrentRewards) Size Uses

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

func (*ValidatorCurrentRewards) String Uses

func (m *ValidatorCurrentRewards) String() string

func (*ValidatorCurrentRewards) Unmarshal Uses

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

func (*ValidatorCurrentRewards) XXX_DiscardUnknown Uses

func (m *ValidatorCurrentRewards) XXX_DiscardUnknown()

func (*ValidatorCurrentRewards) XXX_Marshal Uses

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

func (*ValidatorCurrentRewards) XXX_Merge Uses

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

func (*ValidatorCurrentRewards) XXX_Size Uses

func (m *ValidatorCurrentRewards) XXX_Size() int

func (*ValidatorCurrentRewards) XXX_Unmarshal Uses

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

type ValidatorCurrentRewardsRecord Uses

type ValidatorCurrentRewardsRecord struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    Rewards          ValidatorCurrentRewards                       `protobuf:"bytes,2,opt,name=rewards,proto3,casttype=ValidatorCurrentRewards" json:"rewards" yaml:"rewards"`
}

ValidatorCurrentRewardsRecord used for import / export via genesis json

func (*ValidatorCurrentRewardsRecord) Descriptor Uses

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

func (*ValidatorCurrentRewardsRecord) Equal Uses

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

func (*ValidatorCurrentRewardsRecord) GetRewards Uses

func (m *ValidatorCurrentRewardsRecord) GetRewards() ValidatorCurrentRewards

func (*ValidatorCurrentRewardsRecord) GetValidatorAddress Uses

func (m *ValidatorCurrentRewardsRecord) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*ValidatorCurrentRewardsRecord) Marshal Uses

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

func (*ValidatorCurrentRewardsRecord) MarshalTo Uses

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

func (*ValidatorCurrentRewardsRecord) MarshalToSizedBuffer Uses

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

func (*ValidatorCurrentRewardsRecord) ProtoMessage Uses

func (*ValidatorCurrentRewardsRecord) ProtoMessage()

func (*ValidatorCurrentRewardsRecord) Reset Uses

func (m *ValidatorCurrentRewardsRecord) Reset()

func (*ValidatorCurrentRewardsRecord) Size Uses

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

func (*ValidatorCurrentRewardsRecord) String Uses

func (m *ValidatorCurrentRewardsRecord) String() string

func (*ValidatorCurrentRewardsRecord) Unmarshal Uses

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

func (*ValidatorCurrentRewardsRecord) XXX_DiscardUnknown Uses

func (m *ValidatorCurrentRewardsRecord) XXX_DiscardUnknown()

func (*ValidatorCurrentRewardsRecord) XXX_Marshal Uses

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

func (*ValidatorCurrentRewardsRecord) XXX_Merge Uses

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

func (*ValidatorCurrentRewardsRecord) XXX_Size Uses

func (m *ValidatorCurrentRewardsRecord) XXX_Size() int

func (*ValidatorCurrentRewardsRecord) XXX_Unmarshal Uses

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

type ValidatorHistoricalRewards Uses

type ValidatorHistoricalRewards struct {
    CumulativeRewardRatio github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=cumulative_reward_ratio,json=cumulativeRewardRatio,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"cumulative_reward_ratio" yaml:"cumulative_reward_ratio"`
    ReferenceCount        uint32                                      `protobuf:"varint,2,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty" yaml:"reference_count"`
}

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 Uses

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

create a new ValidatorHistoricalRewards

func (*ValidatorHistoricalRewards) Descriptor Uses

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

func (*ValidatorHistoricalRewards) Equal Uses

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

func (*ValidatorHistoricalRewards) GetCumulativeRewardRatio Uses

func (m *ValidatorHistoricalRewards) GetCumulativeRewardRatio() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*ValidatorHistoricalRewards) GetReferenceCount Uses

func (m *ValidatorHistoricalRewards) GetReferenceCount() uint32

func (*ValidatorHistoricalRewards) Marshal Uses

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

func (*ValidatorHistoricalRewards) MarshalTo Uses

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

func (*ValidatorHistoricalRewards) MarshalToSizedBuffer Uses

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

func (*ValidatorHistoricalRewards) ProtoMessage Uses

func (*ValidatorHistoricalRewards) ProtoMessage()

func (*ValidatorHistoricalRewards) Reset Uses

func (m *ValidatorHistoricalRewards) Reset()

func (*ValidatorHistoricalRewards) Size Uses

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

func (*ValidatorHistoricalRewards) String Uses

func (m *ValidatorHistoricalRewards) String() string

func (*ValidatorHistoricalRewards) Unmarshal Uses

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

func (*ValidatorHistoricalRewards) XXX_DiscardUnknown Uses

func (m *ValidatorHistoricalRewards) XXX_DiscardUnknown()

func (*ValidatorHistoricalRewards) XXX_Marshal Uses

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

func (*ValidatorHistoricalRewards) XXX_Merge Uses

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

func (*ValidatorHistoricalRewards) XXX_Size Uses

func (m *ValidatorHistoricalRewards) XXX_Size() int

func (*ValidatorHistoricalRewards) XXX_Unmarshal Uses

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

type ValidatorHistoricalRewardsRecord Uses

type ValidatorHistoricalRewardsRecord struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    Period           uint64                                        `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
    Rewards          ValidatorHistoricalRewards                    `protobuf:"bytes,3,opt,name=rewards,proto3,casttype=ValidatorHistoricalRewards" json:"rewards" yaml:"rewards"`
}

ValidatorHistoricalRewardsRecord used for import / export via genesis json

func (*ValidatorHistoricalRewardsRecord) Descriptor Uses

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

func (*ValidatorHistoricalRewardsRecord) Equal Uses

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

func (*ValidatorHistoricalRewardsRecord) GetPeriod Uses

func (m *ValidatorHistoricalRewardsRecord) GetPeriod() uint64

func (*ValidatorHistoricalRewardsRecord) GetRewards Uses

func (m *ValidatorHistoricalRewardsRecord) GetRewards() ValidatorHistoricalRewards

func (*ValidatorHistoricalRewardsRecord) GetValidatorAddress Uses

func (m *ValidatorHistoricalRewardsRecord) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*ValidatorHistoricalRewardsRecord) Marshal Uses

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

func (*ValidatorHistoricalRewardsRecord) MarshalTo Uses

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

func (*ValidatorHistoricalRewardsRecord) MarshalToSizedBuffer Uses

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

func (*ValidatorHistoricalRewardsRecord) ProtoMessage Uses

func (*ValidatorHistoricalRewardsRecord) ProtoMessage()

func (*ValidatorHistoricalRewardsRecord) Reset Uses

func (m *ValidatorHistoricalRewardsRecord) Reset()

func (*ValidatorHistoricalRewardsRecord) Size Uses

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

func (*ValidatorHistoricalRewardsRecord) String Uses

func (m *ValidatorHistoricalRewardsRecord) String() string

func (*ValidatorHistoricalRewardsRecord) Unmarshal Uses

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

func (*ValidatorHistoricalRewardsRecord) XXX_DiscardUnknown Uses

func (m *ValidatorHistoricalRewardsRecord) XXX_DiscardUnknown()

func (*ValidatorHistoricalRewardsRecord) XXX_Marshal Uses

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

func (*ValidatorHistoricalRewardsRecord) XXX_Merge Uses

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

func (*ValidatorHistoricalRewardsRecord) XXX_Size Uses

func (m *ValidatorHistoricalRewardsRecord) XXX_Size() int

func (*ValidatorHistoricalRewardsRecord) XXX_Unmarshal Uses

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

type ValidatorOutstandingRewards Uses

type ValidatorOutstandingRewards 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" yaml:"rewards"`
}

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

func (*ValidatorOutstandingRewards) Descriptor Uses

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

func (*ValidatorOutstandingRewards) Equal Uses

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

func (*ValidatorOutstandingRewards) GetRewards Uses

func (m *ValidatorOutstandingRewards) GetRewards() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*ValidatorOutstandingRewards) Marshal Uses

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

func (*ValidatorOutstandingRewards) MarshalTo Uses

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

func (*ValidatorOutstandingRewards) MarshalToSizedBuffer Uses

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

func (*ValidatorOutstandingRewards) ProtoMessage Uses

func (*ValidatorOutstandingRewards) ProtoMessage()

func (*ValidatorOutstandingRewards) Reset Uses

func (m *ValidatorOutstandingRewards) Reset()

func (*ValidatorOutstandingRewards) Size Uses

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

func (*ValidatorOutstandingRewards) String Uses

func (m *ValidatorOutstandingRewards) String() string

func (*ValidatorOutstandingRewards) Unmarshal Uses

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

func (*ValidatorOutstandingRewards) XXX_DiscardUnknown Uses

func (m *ValidatorOutstandingRewards) XXX_DiscardUnknown()

func (*ValidatorOutstandingRewards) XXX_Marshal Uses

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

func (*ValidatorOutstandingRewards) XXX_Merge Uses

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

func (*ValidatorOutstandingRewards) XXX_Size Uses

func (m *ValidatorOutstandingRewards) XXX_Size() int

func (*ValidatorOutstandingRewards) XXX_Unmarshal Uses

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

type ValidatorOutstandingRewardsRecord Uses

type ValidatorOutstandingRewardsRecord struct {
    ValidatorAddress   github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins   `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards" yaml:"outstanding_rewards"`
}

ValidatorOutstandingRewardsRecord used for import/export via genesis json

func (*ValidatorOutstandingRewardsRecord) Descriptor Uses

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

func (*ValidatorOutstandingRewardsRecord) Equal Uses

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

func (*ValidatorOutstandingRewardsRecord) GetOutstandingRewards Uses

func (m *ValidatorOutstandingRewardsRecord) GetOutstandingRewards() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*ValidatorOutstandingRewardsRecord) GetValidatorAddress Uses

func (m *ValidatorOutstandingRewardsRecord) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*ValidatorOutstandingRewardsRecord) Marshal Uses

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

func (*ValidatorOutstandingRewardsRecord) MarshalTo Uses

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

func (*ValidatorOutstandingRewardsRecord) MarshalToSizedBuffer Uses

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

func (*ValidatorOutstandingRewardsRecord) ProtoMessage Uses

func (*ValidatorOutstandingRewardsRecord) ProtoMessage()

func (*ValidatorOutstandingRewardsRecord) Reset Uses

func (m *ValidatorOutstandingRewardsRecord) Reset()

func (*ValidatorOutstandingRewardsRecord) Size Uses

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

func (*ValidatorOutstandingRewardsRecord) String Uses

func (m *ValidatorOutstandingRewardsRecord) String() string

func (*ValidatorOutstandingRewardsRecord) Unmarshal Uses

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

func (*ValidatorOutstandingRewardsRecord) XXX_DiscardUnknown Uses

func (m *ValidatorOutstandingRewardsRecord) XXX_DiscardUnknown()

func (*ValidatorOutstandingRewardsRecord) XXX_Marshal Uses

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

func (*ValidatorOutstandingRewardsRecord) XXX_Merge Uses

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

func (*ValidatorOutstandingRewardsRecord) XXX_Size Uses

func (m *ValidatorOutstandingRewardsRecord) XXX_Size() int

func (*ValidatorOutstandingRewardsRecord) XXX_Unmarshal Uses

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

type ValidatorSlashEvent Uses

type ValidatorSlashEvent struct {
    ValidatorPeriod uint64                                 `protobuf:"varint,1,opt,name=validator_period,json=validatorPeriod,proto3" json:"validator_period,omitempty" yaml:"validator_period"`
    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"`
}

validator slash event height is implicit within the store key needed to calculate appropriate amounts of staking token for delegations which withdraw after a slash has occurred

func NewValidatorSlashEvent Uses

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

create a new ValidatorSlashEvent

func (*ValidatorSlashEvent) Descriptor Uses

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

func (*ValidatorSlashEvent) Equal Uses

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

func (*ValidatorSlashEvent) GetValidatorPeriod Uses

func (m *ValidatorSlashEvent) GetValidatorPeriod() uint64

func (*ValidatorSlashEvent) Marshal Uses

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

func (*ValidatorSlashEvent) MarshalTo Uses

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

func (*ValidatorSlashEvent) MarshalToSizedBuffer Uses

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

func (*ValidatorSlashEvent) ProtoMessage Uses

func (*ValidatorSlashEvent) ProtoMessage()

func (*ValidatorSlashEvent) Reset Uses

func (m *ValidatorSlashEvent) Reset()

func (*ValidatorSlashEvent) Size Uses

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

func (*ValidatorSlashEvent) String Uses

func (m *ValidatorSlashEvent) String() string

func (*ValidatorSlashEvent) Unmarshal Uses

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

func (*ValidatorSlashEvent) XXX_DiscardUnknown Uses

func (m *ValidatorSlashEvent) XXX_DiscardUnknown()

func (*ValidatorSlashEvent) XXX_Marshal Uses

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

func (*ValidatorSlashEvent) XXX_Merge Uses

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

func (*ValidatorSlashEvent) XXX_Size Uses

func (m *ValidatorSlashEvent) XXX_Size() int

func (*ValidatorSlashEvent) XXX_Unmarshal Uses

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

type ValidatorSlashEventRecord Uses

type ValidatorSlashEventRecord struct {
    ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty" yaml:"validator_address"`
    Height           uint64                                        `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
    Period           uint64                                        `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"`
    Event            ValidatorSlashEvent                           `protobuf:"bytes,4,opt,name=event,proto3,casttype=ValidatorSlashEvent" json:"event" yaml:"event"`
}

ValidatorSlashEventRecord used for import / export via genesis json

func (*ValidatorSlashEventRecord) Descriptor Uses

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

func (*ValidatorSlashEventRecord) Equal Uses

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

func (*ValidatorSlashEventRecord) GetEvent Uses

func (m *ValidatorSlashEventRecord) GetEvent() ValidatorSlashEvent

func (*ValidatorSlashEventRecord) GetHeight Uses

func (m *ValidatorSlashEventRecord) GetHeight() uint64

func (*ValidatorSlashEventRecord) GetPeriod Uses

func (m *ValidatorSlashEventRecord) GetPeriod() uint64

func (*ValidatorSlashEventRecord) GetValidatorAddress Uses

func (m *ValidatorSlashEventRecord) GetValidatorAddress() github_com_cosmos_cosmos_sdk_types.ValAddress

func (*ValidatorSlashEventRecord) Marshal Uses

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

func (*ValidatorSlashEventRecord) MarshalTo Uses

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

func (*ValidatorSlashEventRecord) MarshalToSizedBuffer Uses

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

func (*ValidatorSlashEventRecord) ProtoMessage Uses

func (*ValidatorSlashEventRecord) ProtoMessage()

func (*ValidatorSlashEventRecord) Reset Uses

func (m *ValidatorSlashEventRecord) Reset()

func (*ValidatorSlashEventRecord) Size Uses

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

func (*ValidatorSlashEventRecord) String Uses

func (m *ValidatorSlashEventRecord) String() string

func (*ValidatorSlashEventRecord) Unmarshal Uses

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

func (*ValidatorSlashEventRecord) XXX_DiscardUnknown Uses

func (m *ValidatorSlashEventRecord) XXX_DiscardUnknown()

func (*ValidatorSlashEventRecord) XXX_Marshal Uses

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

func (*ValidatorSlashEventRecord) XXX_Merge Uses

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

func (*ValidatorSlashEventRecord) XXX_Size Uses

func (m *ValidatorSlashEventRecord) XXX_Size() int

func (*ValidatorSlashEventRecord) XXX_Unmarshal Uses

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

type ValidatorSlashEvents Uses

type ValidatorSlashEvents struct {
    ValidatorSlashEvents []ValidatorSlashEvent `protobuf:"bytes,1,rep,name=validator_slash_events,json=validatorSlashEvents,proto3" json:"validator_slash_events" yaml:"validator_slash_events"`
}

ValidatorSlashEvents is a collection of ValidatorSlashEvent

func (*ValidatorSlashEvents) Descriptor Uses

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

func (*ValidatorSlashEvents) Equal Uses

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

func (*ValidatorSlashEvents) GetValidatorSlashEvents Uses

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

func (*ValidatorSlashEvents) Marshal Uses

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

func (*ValidatorSlashEvents) MarshalTo Uses

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

func (*ValidatorSlashEvents) MarshalToSizedBuffer Uses

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

func (*ValidatorSlashEvents) ProtoMessage Uses

func (*ValidatorSlashEvents) ProtoMessage()

func (*ValidatorSlashEvents) Reset Uses

func (m *ValidatorSlashEvents) Reset()

func (*ValidatorSlashEvents) Size Uses

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

func (ValidatorSlashEvents) String Uses

func (vs ValidatorSlashEvents) String() string

func (*ValidatorSlashEvents) Unmarshal Uses

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

func (*ValidatorSlashEvents) XXX_DiscardUnknown Uses

func (m *ValidatorSlashEvents) XXX_DiscardUnknown()

func (*ValidatorSlashEvents) XXX_Marshal Uses

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

func (*ValidatorSlashEvents) XXX_Merge Uses

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

func (*ValidatorSlashEvents) XXX_Size Uses

func (m *ValidatorSlashEvents) XXX_Size() int

func (*ValidatorSlashEvents) XXX_Unmarshal Uses

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

Package types imports 26 packages (graph) and is imported by 11 packages. Updated 2020-08-05. Refresh now. Tools for package owners.