legacy

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStaking        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStaking          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStaking = fmt.Errorf("proto: unexpected end of group")
)

Functions

Types

type Commission

type Commission struct {
	// commission_rates defines the initial commission rates to be used for
	// creating a validator.
	CommissionRates `protobuf:"bytes,1,opt,name=commission_rates,json=commissionRates,proto3,embedded=commission_rates" json:"commission_rates"`
	// update_time is the last time the commission rate was changed.
	UpdateTime time.Time `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,stdtime" json:"update_time"`
}

Commission defines commission parameters for a given validator.

func (*Commission) Descriptor

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

func (*Commission) Equal

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

func (*Commission) GetUpdateTime

func (m *Commission) GetUpdateTime() time.Time

func (*Commission) Marshal

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

func (*Commission) MarshalTo

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

func (*Commission) MarshalToSizedBuffer

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

func (*Commission) ProtoMessage

func (*Commission) ProtoMessage()

func (*Commission) Reset

func (m *Commission) Reset()

func (*Commission) Size

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

func (*Commission) String

func (m *Commission) String() string

func (*Commission) Unmarshal

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

func (*Commission) XXX_DiscardUnknown

func (m *Commission) XXX_DiscardUnknown()

func (*Commission) XXX_Marshal

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

func (*Commission) XXX_Merge

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

func (*Commission) XXX_Size

func (m *Commission) XXX_Size() int

func (*Commission) XXX_Unmarshal

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

type CommissionRates

type CommissionRates struct {
	// rate is the commission rate charged to delegators, as a fraction.
	Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"`
	// max_rate defines the maximum commission rate which validator can ever
	// charge, as a fraction.
	MaxRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_rate"`
	// max_change_rate defines the maximum daily increase of the validator
	// commission, as a fraction.
	MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 142-byte string literal not displayed */
}

CommissionRates defines the initial commission rates to be used for creating a validator.

func (*CommissionRates) Descriptor

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

func (*CommissionRates) Equal

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

func (*CommissionRates) Marshal

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

func (*CommissionRates) MarshalTo

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

func (*CommissionRates) MarshalToSizedBuffer

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

func (*CommissionRates) ProtoMessage

func (*CommissionRates) ProtoMessage()

func (*CommissionRates) Reset

func (m *CommissionRates) Reset()

func (*CommissionRates) Size

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

func (*CommissionRates) String

func (m *CommissionRates) String() string

func (*CommissionRates) Unmarshal

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

func (*CommissionRates) XXX_DiscardUnknown

func (m *CommissionRates) XXX_DiscardUnknown()

func (*CommissionRates) XXX_Marshal

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

func (*CommissionRates) XXX_Merge

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

func (*CommissionRates) XXX_Size

func (m *CommissionRates) XXX_Size() int

func (*CommissionRates) XXX_Unmarshal

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

type DVPair

type DVPair struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

DVPair is struct that just has a delegator-validator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DVPair can be used to construct the key to getting an UnbondingDelegation from state.

func (*DVPair) Descriptor

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

func (*DVPair) Marshal

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

func (*DVPair) MarshalTo

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

func (*DVPair) MarshalToSizedBuffer

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

func (*DVPair) ProtoMessage

func (*DVPair) ProtoMessage()

func (*DVPair) Reset

func (m *DVPair) Reset()

func (*DVPair) Size

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

func (*DVPair) String

func (m *DVPair) String() string

func (*DVPair) Unmarshal

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

func (*DVPair) XXX_DiscardUnknown

func (m *DVPair) XXX_DiscardUnknown()

func (*DVPair) XXX_Marshal

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

func (*DVPair) XXX_Merge

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

func (*DVPair) XXX_Size

func (m *DVPair) XXX_Size() int

func (*DVPair) XXX_Unmarshal

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

type DVPairs

type DVPairs struct {
	Pairs []DVPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

DVPairs defines an array of DVPair objects.

func (*DVPairs) Descriptor

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

func (*DVPairs) GetPairs

func (m *DVPairs) GetPairs() []DVPair

func (*DVPairs) Marshal

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

func (*DVPairs) MarshalTo

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

func (*DVPairs) MarshalToSizedBuffer

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

func (*DVPairs) ProtoMessage

func (*DVPairs) ProtoMessage()

func (*DVPairs) Reset

func (m *DVPairs) Reset()

func (*DVPairs) Size

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

func (*DVPairs) String

func (m *DVPairs) String() string

func (*DVPairs) Unmarshal

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

func (*DVPairs) XXX_DiscardUnknown

func (m *DVPairs) XXX_DiscardUnknown()

func (*DVPairs) XXX_Marshal

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

func (*DVPairs) XXX_Merge

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

func (*DVPairs) XXX_Size

func (m *DVPairs) XXX_Size() int

func (*DVPairs) XXX_Unmarshal

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

type DVVTriplet

type DVVTriplet struct {
	DelegatorAddress    string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
}

DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data. It is intended to be used as a marshalable pointer. For example, a DVVTriplet can be used to construct the key to getting a Redelegation from state.

func (*DVVTriplet) Descriptor

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

func (*DVVTriplet) Marshal

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

func (*DVVTriplet) MarshalTo

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

func (*DVVTriplet) MarshalToSizedBuffer

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

func (*DVVTriplet) ProtoMessage

func (*DVVTriplet) ProtoMessage()

func (*DVVTriplet) Reset

func (m *DVVTriplet) Reset()

func (*DVVTriplet) Size

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

func (*DVVTriplet) String

func (m *DVVTriplet) String() string

func (*DVVTriplet) Unmarshal

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

func (*DVVTriplet) XXX_DiscardUnknown

func (m *DVVTriplet) XXX_DiscardUnknown()

func (*DVVTriplet) XXX_Marshal

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

func (*DVVTriplet) XXX_Merge

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

func (*DVVTriplet) XXX_Size

func (m *DVVTriplet) XXX_Size() int

func (*DVVTriplet) XXX_Unmarshal

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

type DVVTriplets

type DVVTriplets struct {
	Triplets []DVVTriplet `protobuf:"bytes,1,rep,name=triplets,proto3" json:"triplets"`
}

DVVTriplets defines an array of DVVTriplet objects.

func (*DVVTriplets) Descriptor

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

func (*DVVTriplets) GetTriplets

func (m *DVVTriplets) GetTriplets() []DVVTriplet

func (*DVVTriplets) Marshal

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

func (*DVVTriplets) MarshalTo

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

func (*DVVTriplets) MarshalToSizedBuffer

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

func (*DVVTriplets) ProtoMessage

func (*DVVTriplets) ProtoMessage()

func (*DVVTriplets) Reset

func (m *DVVTriplets) Reset()

func (*DVVTriplets) Size

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

func (*DVVTriplets) String

func (m *DVVTriplets) String() string

func (*DVVTriplets) Unmarshal

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

func (*DVVTriplets) XXX_DiscardUnknown

func (m *DVVTriplets) XXX_DiscardUnknown()

func (*DVVTriplets) XXX_Marshal

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

func (*DVVTriplets) XXX_Merge

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

func (*DVVTriplets) XXX_Size

func (m *DVVTriplets) XXX_Size() int

func (*DVVTriplets) XXX_Unmarshal

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

type Delegation

type Delegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the bech32-encoded address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// shares define the delegation shares received.
	Shares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares"`
}

Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.

func (*Delegation) Descriptor

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

func (*Delegation) Marshal

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

func (*Delegation) MarshalTo

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

func (*Delegation) MarshalToSizedBuffer

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

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) Reset

func (m *Delegation) Reset()

func (*Delegation) Size

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

func (*Delegation) String

func (m *Delegation) String() string

func (*Delegation) Unmarshal

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

func (*Delegation) XXX_DiscardUnknown

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal

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

func (*Delegation) XXX_Merge

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

func (*Delegation) XXX_Size

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal

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

type DelegationResponse

type DelegationResponse struct {
	Delegation Delegation  `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
	Balance    types2.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance"`
}

DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.

func (*DelegationResponse) Descriptor

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

func (*DelegationResponse) GetBalance

func (m *DelegationResponse) GetBalance() types2.Coin

func (*DelegationResponse) GetDelegation

func (m *DelegationResponse) GetDelegation() Delegation

func (*DelegationResponse) Marshal

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

func (*DelegationResponse) MarshalTo

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

func (*DelegationResponse) MarshalToSizedBuffer

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

func (*DelegationResponse) ProtoMessage

func (*DelegationResponse) ProtoMessage()

func (*DelegationResponse) Reset

func (m *DelegationResponse) Reset()

func (*DelegationResponse) Size

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

func (*DelegationResponse) String

func (m *DelegationResponse) String() string

func (*DelegationResponse) Unmarshal

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

func (*DelegationResponse) XXX_DiscardUnknown

func (m *DelegationResponse) XXX_DiscardUnknown()

func (*DelegationResponse) XXX_Marshal

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

func (*DelegationResponse) XXX_Merge

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

func (*DelegationResponse) XXX_Size

func (m *DelegationResponse) XXX_Size() int

func (*DelegationResponse) XXX_Unmarshal

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

type DelegatorStartingInfo

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

type DelegatorStartingInfoRecord

type DelegatorStartingInfoRecord struct {
	// delegator_address is the address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// starting_info defines the starting info of a delegator.
	StartingInfo DelegatorStartingInfo `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3" json:"starting_info"`
}

type Description

type Description struct {
	// moniker defines a human-readable name for the validator.
	Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// identity defines an optional identity signature (ex. UPort or Keybase).
	Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	// website defines an optional website link.
	Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	// security_contact defines an optional email for security contact.
	SecurityContact string `protobuf:"bytes,4,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"`
	// details define other optional details.
	Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
}

Description defines a validator description.

func (*Description) Descriptor

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

func (*Description) Equal

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

func (*Description) GetDetails

func (m *Description) GetDetails() string

func (*Description) GetIdentity

func (m *Description) GetIdentity() string

func (*Description) GetMoniker

func (m *Description) GetMoniker() string

func (*Description) GetSecurityContact

func (m *Description) GetSecurityContact() string

func (*Description) GetWebsite

func (m *Description) GetWebsite() string

func (*Description) Marshal

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

func (*Description) MarshalTo

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

func (*Description) MarshalToSizedBuffer

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

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) Reset

func (m *Description) Reset()

func (*Description) Size

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

func (*Description) String

func (m *Description) String() string

func (*Description) Unmarshal

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

func (*Description) XXX_DiscardUnknown

func (m *Description) XXX_DiscardUnknown()

func (*Description) XXX_Marshal

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

func (*Description) XXX_Merge

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

func (*Description) XXX_Size

func (m *Description) XXX_Size() int

func (*Description) XXX_Unmarshal

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

type DistrGenesisState

type DistrGenesisState struct {
	// params defines all the paramaters of the module.
	Params distrtypes.Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// fee_pool defines the fee pool at genesis.
	FeePool distrtypes.FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3" json:"fee_pool"`
	// fee_pool defines the delegator withdraw infos at genesis.
	DelegatorWithdrawInfos []distrtypes.DelegatorWithdrawInfo `protobuf:"bytes,3,rep,name=delegator_withdraw_infos,json=delegatorWithdrawInfos,proto3" json:"delegator_withdraw_infos"`
	// fee_pool defines the previous proposer at genesis.
	PreviousProposer string `protobuf:"bytes,4,opt,name=previous_proposer,json=previousProposer,proto3" json:"previous_proposer,omitempty"`
	// fee_pool defines the outstanding rewards of all validators at genesis.
	OutstandingRewards []distrtypes.ValidatorOutstandingRewardsRecord `protobuf:"bytes,5,rep,name=outstanding_rewards,json=outstandingRewards,proto3" json:"outstanding_rewards"`
	// fee_pool defines the accumulated commisions of all validators at genesis.
	ValidatorAccumulatedCommissions []distrtypes.ValidatorAccumulatedCommissionRecord `` /* 146-byte string literal not displayed */
	// fee_pool defines the historical rewards of all validators at genesis.
	ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord `` /* 131-byte string literal not displayed */
	// fee_pool defines the current rewards of all validators at genesis.
	ValidatorCurrentRewards []ValidatorCurrentRewardsRecord `protobuf:"bytes,8,rep,name=validator_current_rewards,json=validatorCurrentRewards,proto3" json:"validator_current_rewards"`
	// fee_pool defines the delegator starting infos at genesis.
	DelegatorStartingInfos []DelegatorStartingInfoRecord `protobuf:"bytes,9,rep,name=delegator_starting_infos,json=delegatorStartingInfos,proto3" json:"delegator_starting_infos"`
	// fee_pool defines the validator slash events at genesis.
	ValidatorSlashEvents []ValidatorSlashEventRecord `protobuf:"bytes,10,rep,name=validator_slash_events,json=validatorSlashEvents,proto3" json:"validator_slash_events"`
}

type GenesisState

type GenesisState struct {
	// params defines all the paramaters of related to deposit.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// last_total_power tracks the total amounts of bonded tokens recorded during
	// the previous end block.
	LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */
	// last_validator_powers is a special index that provides a historical list
	// of the last-block's bonded validators.
	LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers"`
	// delegations defines the validator set at genesis.
	Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"`
	// delegations defines the delegations active at genesis.
	Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"`
	// unbonding_delegations defines the unbonding delegations active at genesis.
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	// redelegations defines the redelegations active at genesis.
	Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations"`
	Exported      bool           `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"`
}

GenesisState defines the staking module's genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDelegations

func (m *GenesisState) GetDelegations() []Delegation

func (*GenesisState) GetExported

func (m *GenesisState) GetExported() bool

func (*GenesisState) GetLastValidatorPowers

func (m *GenesisState) GetLastValidatorPowers() []LastValidatorPower

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRedelegations

func (m *GenesisState) GetRedelegations() []Redelegation

func (*GenesisState) GetUnbondingDelegations

func (m *GenesisState) GetUnbondingDelegations() []UnbondingDelegation

func (*GenesisState) GetValidators

func (m *GenesisState) GetValidators() []Validator

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type HistoricalInfo

type HistoricalInfo struct {
	Header types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"`
	Valset []Validator  `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset"`
}

HistoricalInfo contains header and validator information for a given block. It is stored as part of staking module's state, which persists the `n` most recent HistoricalInfo (`n` is set by the staking module's `historical_entries` parameter).

func (*HistoricalInfo) Descriptor

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

func (*HistoricalInfo) GetHeader

func (m *HistoricalInfo) GetHeader() types.Header

func (*HistoricalInfo) GetValset

func (m *HistoricalInfo) GetValset() []Validator

func (*HistoricalInfo) Marshal

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

func (*HistoricalInfo) MarshalTo

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

func (*HistoricalInfo) MarshalToSizedBuffer

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

func (*HistoricalInfo) ProtoMessage

func (*HistoricalInfo) ProtoMessage()

func (*HistoricalInfo) Reset

func (m *HistoricalInfo) Reset()

func (*HistoricalInfo) Size

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

func (*HistoricalInfo) String

func (m *HistoricalInfo) String() string

func (*HistoricalInfo) Unmarshal

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

func (*HistoricalInfo) XXX_DiscardUnknown

func (m *HistoricalInfo) XXX_DiscardUnknown()

func (*HistoricalInfo) XXX_Marshal

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

func (*HistoricalInfo) XXX_Merge

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

func (*HistoricalInfo) XXX_Size

func (m *HistoricalInfo) XXX_Size() int

func (*HistoricalInfo) XXX_Unmarshal

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

type LastValidatorPower

type LastValidatorPower struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// power defines the power of the validator.
	Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty,string"`
}

LastValidatorPower required for validator set update logic.

func (*LastValidatorPower) Descriptor

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

func (*LastValidatorPower) Marshal

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

func (*LastValidatorPower) MarshalTo

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

func (*LastValidatorPower) MarshalToSizedBuffer

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

func (*LastValidatorPower) ProtoMessage

func (*LastValidatorPower) ProtoMessage()

func (*LastValidatorPower) Reset

func (m *LastValidatorPower) Reset()

func (*LastValidatorPower) Size

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

func (*LastValidatorPower) String

func (m *LastValidatorPower) String() string

func (*LastValidatorPower) Unmarshal

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

func (*LastValidatorPower) XXX_DiscardUnknown

func (m *LastValidatorPower) XXX_DiscardUnknown()

func (*LastValidatorPower) XXX_Marshal

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

func (*LastValidatorPower) XXX_Merge

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

func (*LastValidatorPower) XXX_Size

func (m *LastValidatorPower) XXX_Size() int

func (*LastValidatorPower) XXX_Unmarshal

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

type Params

type Params struct {
	// unbonding_time is the time duration of unbonding.
	UnbondingTime string `protobuf:"bytes,1,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"`
	// max_validators is the maximum number of validators.
	MaxValidators uint32 `protobuf:"varint,2,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty"`
	// max_entries is the max entries for either unbonding delegation or
	// redelegation (per pair/trio).
	MaxEntries uint32 `protobuf:"varint,3,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"`
	// historical_entries is the number of historical entries to persist.
	HistoricalEntries uint32 `protobuf:"varint,4,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"`
	// bond_denom defines the bondable coin denomination.
	BondDenom string `protobuf:"bytes,5,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty"`
	// min_commission_rate is the chain-wide minimum commission rate that a
	// validator can charge their delegators
	MinCommissionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 181-byte string literal not displayed */
}

Params defines the parameters for the staking module.

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetBondDenom

func (m *Params) GetBondDenom() string

func (*Params) GetHistoricalEntries

func (m *Params) GetHistoricalEntries() uint32

func (*Params) GetMaxEntries

func (m *Params) GetMaxEntries() uint32

func (*Params) GetMaxValidators

func (m *Params) GetMaxValidators() uint32

func (*Params) GetUnbondingTime

func (m *Params) GetUnbondingTime() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type Pool

type Pool struct {
	NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 148-byte string literal not displayed */
	BondedTokens    github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */
}

Pool is used for tracking bonded and not-bonded token supply of the bond denomination.

func (*Pool) Descriptor

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

func (*Pool) Equal

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

func (*Pool) Marshal

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

func (*Pool) MarshalTo

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

func (*Pool) MarshalToSizedBuffer

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

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) Reset

func (m *Pool) Reset()

func (*Pool) Size

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

func (*Pool) String

func (m *Pool) String() string

func (*Pool) Unmarshal

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

func (*Pool) XXX_DiscardUnknown

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal

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

func (*Pool) XXX_Merge

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

func (*Pool) XXX_Size

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal

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

type Redelegation

type Redelegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_src_address is the validator redelegation source operator
	// address.
	ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	// validator_dst_address is the validator redelegation destination operator
	// address.
	ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
	// entries are the redelegation entries.
	Entries []RedelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries"`
}

Redelegation contains the list of a particular delegator's redelegating bonds from a particular source validator to a particular destination validator.

func (*Redelegation) Descriptor

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

func (*Redelegation) Marshal

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

func (*Redelegation) MarshalTo

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

func (*Redelegation) MarshalToSizedBuffer

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

func (*Redelegation) ProtoMessage

func (*Redelegation) ProtoMessage()

func (*Redelegation) Reset

func (m *Redelegation) Reset()

func (*Redelegation) Size

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

func (*Redelegation) String

func (m *Redelegation) String() string

func (*Redelegation) Unmarshal

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

func (*Redelegation) XXX_DiscardUnknown

func (m *Redelegation) XXX_DiscardUnknown()

func (*Redelegation) XXX_Marshal

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

func (*Redelegation) XXX_Merge

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

func (*Redelegation) XXX_Size

func (m *Redelegation) XXX_Size() int

func (*Redelegation) XXX_Unmarshal

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

type RedelegationEntry

type RedelegationEntry struct {
	// creation_height  defines the height which the redelegation took place.
	CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty,string"`
	// completion_time defines the unix time for redelegation completion.
	CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	// initial_balance defines the initial balance when redelegation started.
	InitialBalance github_com_cosmos_cosmos_sdk_types.Coin `` /* 144-byte string literal not displayed */
	// shares_dst is the amount of destination-validator shares created by
	// redelegation.
	SharesDst github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
}

RedelegationEntry defines a redelegation object with relevant metadata.

func (*RedelegationEntry) Descriptor

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

func (*RedelegationEntry) Equal

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

func (*RedelegationEntry) GetCompletionTime

func (m *RedelegationEntry) GetCompletionTime() time.Time

func (*RedelegationEntry) GetCreationHeight

func (m *RedelegationEntry) GetCreationHeight() int64

func (*RedelegationEntry) Marshal

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

func (*RedelegationEntry) MarshalTo

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

func (*RedelegationEntry) MarshalToSizedBuffer

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

func (*RedelegationEntry) ProtoMessage

func (*RedelegationEntry) ProtoMessage()

func (*RedelegationEntry) Reset

func (m *RedelegationEntry) Reset()

func (*RedelegationEntry) Size

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

func (*RedelegationEntry) String

func (m *RedelegationEntry) String() string

func (*RedelegationEntry) Unmarshal

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

func (*RedelegationEntry) XXX_DiscardUnknown

func (m *RedelegationEntry) XXX_DiscardUnknown()

func (*RedelegationEntry) XXX_Marshal

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

func (*RedelegationEntry) XXX_Merge

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

func (*RedelegationEntry) XXX_Size

func (m *RedelegationEntry) XXX_Size() int

func (*RedelegationEntry) XXX_Unmarshal

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

type RedelegationEntryResponse

type RedelegationEntryResponse struct {
	RedelegationEntry RedelegationEntry                      `protobuf:"bytes,1,opt,name=redelegation_entry,json=redelegationEntry,proto3" json:"redelegation_entry"`
	Balance           github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"`
}

RedelegationEntryResponse is equivalent to a RedelegationEntry except that it contains a balance in addition to shares which is more suitable for client responses.

func (*RedelegationEntryResponse) Descriptor

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

func (*RedelegationEntryResponse) Equal

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

func (*RedelegationEntryResponse) GetRedelegationEntry

func (m *RedelegationEntryResponse) GetRedelegationEntry() RedelegationEntry

func (*RedelegationEntryResponse) Marshal

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

func (*RedelegationEntryResponse) MarshalTo

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

func (*RedelegationEntryResponse) MarshalToSizedBuffer

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

func (*RedelegationEntryResponse) ProtoMessage

func (*RedelegationEntryResponse) ProtoMessage()

func (*RedelegationEntryResponse) Reset

func (m *RedelegationEntryResponse) Reset()

func (*RedelegationEntryResponse) Size

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

func (*RedelegationEntryResponse) String

func (m *RedelegationEntryResponse) String() string

func (*RedelegationEntryResponse) Unmarshal

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

func (*RedelegationEntryResponse) XXX_DiscardUnknown

func (m *RedelegationEntryResponse) XXX_DiscardUnknown()

func (*RedelegationEntryResponse) XXX_Marshal

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

func (*RedelegationEntryResponse) XXX_Merge

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

func (*RedelegationEntryResponse) XXX_Size

func (m *RedelegationEntryResponse) XXX_Size() int

func (*RedelegationEntryResponse) XXX_Unmarshal

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

type RedelegationResponse

type RedelegationResponse struct {
	Redelegation Redelegation                `protobuf:"bytes,1,opt,name=redelegation,proto3" json:"redelegation"`
	Entries      []RedelegationEntryResponse `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries"`
}

RedelegationResponse is equivalent to a Redelegation except that its entries contain a balance in addition to shares which is more suitable for client responses.

func (*RedelegationResponse) Descriptor

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

func (*RedelegationResponse) GetEntries

func (*RedelegationResponse) GetRedelegation

func (m *RedelegationResponse) GetRedelegation() Redelegation

func (*RedelegationResponse) Marshal

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

func (*RedelegationResponse) MarshalTo

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

func (*RedelegationResponse) MarshalToSizedBuffer

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

func (*RedelegationResponse) ProtoMessage

func (*RedelegationResponse) ProtoMessage()

func (*RedelegationResponse) Reset

func (m *RedelegationResponse) Reset()

func (*RedelegationResponse) Size

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

func (*RedelegationResponse) String

func (m *RedelegationResponse) String() string

func (*RedelegationResponse) Unmarshal

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

func (*RedelegationResponse) XXX_DiscardUnknown

func (m *RedelegationResponse) XXX_DiscardUnknown()

func (*RedelegationResponse) XXX_Marshal

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

func (*RedelegationResponse) XXX_Merge

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

func (*RedelegationResponse) XXX_Size

func (m *RedelegationResponse) XXX_Size() int

func (*RedelegationResponse) XXX_Unmarshal

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

type UnbondingDelegation

type UnbondingDelegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the bech32-encoded address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// entries are the unbonding delegation entries.
	Entries []UnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"`
}

UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.

func (*UnbondingDelegation) Descriptor

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

func (*UnbondingDelegation) Marshal

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

func (*UnbondingDelegation) MarshalTo

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

func (*UnbondingDelegation) MarshalToSizedBuffer

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

func (*UnbondingDelegation) ProtoMessage

func (*UnbondingDelegation) ProtoMessage()

func (*UnbondingDelegation) Reset

func (m *UnbondingDelegation) Reset()

func (*UnbondingDelegation) Size

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

func (*UnbondingDelegation) String

func (m *UnbondingDelegation) String() string

func (*UnbondingDelegation) Unmarshal

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

func (*UnbondingDelegation) XXX_DiscardUnknown

func (m *UnbondingDelegation) XXX_DiscardUnknown()

func (*UnbondingDelegation) XXX_Marshal

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

func (*UnbondingDelegation) XXX_Merge

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

func (*UnbondingDelegation) XXX_Size

func (m *UnbondingDelegation) XXX_Size() int

func (*UnbondingDelegation) XXX_Unmarshal

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

type UnbondingDelegationEntry

type UnbondingDelegationEntry struct {
	// creation_height is the height which the unbonding took place.
	CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty,string"`
	// completion_time is the unix time for unbonding completion.
	CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	// initial_balance defines the tokens initially scheduled to receive at
	// completion.
	InitialBalance github_com_cosmos_cosmos_sdk_types.Coin `` /* 144-byte string literal not displayed */
	// balance defines the tokens to receive at completion.
	Balance github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"balance"`
}

UnbondingDelegationEntry defines an unbonding object with relevant metadata.

func (*UnbondingDelegationEntry) Descriptor

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

func (*UnbondingDelegationEntry) Equal

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

func (*UnbondingDelegationEntry) GetCompletionTime

func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time

func (*UnbondingDelegationEntry) GetCreationHeight

func (m *UnbondingDelegationEntry) GetCreationHeight() int64

func (*UnbondingDelegationEntry) Marshal

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

func (*UnbondingDelegationEntry) MarshalTo

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

func (*UnbondingDelegationEntry) MarshalToSizedBuffer

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

func (*UnbondingDelegationEntry) ProtoMessage

func (*UnbondingDelegationEntry) ProtoMessage()

func (*UnbondingDelegationEntry) Reset

func (m *UnbondingDelegationEntry) Reset()

func (*UnbondingDelegationEntry) Size

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

func (*UnbondingDelegationEntry) String

func (m *UnbondingDelegationEntry) String() string

func (*UnbondingDelegationEntry) Unmarshal

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

func (*UnbondingDelegationEntry) XXX_DiscardUnknown

func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()

func (*UnbondingDelegationEntry) XXX_Marshal

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

func (*UnbondingDelegationEntry) XXX_Merge

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

func (*UnbondingDelegationEntry) XXX_Size

func (m *UnbondingDelegationEntry) XXX_Size() int

func (*UnbondingDelegationEntry) XXX_Unmarshal

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

type ValAddresses

type ValAddresses struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

ValAddresses defines a repeated set of validator addresses.

func (*ValAddresses) Descriptor

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

func (*ValAddresses) GetAddresses

func (m *ValAddresses) GetAddresses() []string

func (*ValAddresses) Marshal

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

func (*ValAddresses) MarshalTo

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

func (*ValAddresses) MarshalToSizedBuffer

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

func (*ValAddresses) ProtoMessage

func (*ValAddresses) ProtoMessage()

func (*ValAddresses) Reset

func (m *ValAddresses) Reset()

func (*ValAddresses) Size

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

func (*ValAddresses) String

func (this *ValAddresses) String() string

func (*ValAddresses) Unmarshal

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

func (*ValAddresses) XXX_DiscardUnknown

func (m *ValAddresses) XXX_DiscardUnknown()

func (*ValAddresses) XXX_Marshal

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

func (*ValAddresses) XXX_Merge

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

func (*ValAddresses) XXX_Size

func (m *ValAddresses) XXX_Size() int

func (*ValAddresses) XXX_Unmarshal

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

type Validator

type Validator struct {
	// operator_address defines the address of the validator's operator; bech
	// encoded in JSON.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// consensus_pubkey is the consensus public key of the validator, as a
	// Protobuf Any.
	ConsensusPubkey *types1.Any `protobuf:"bytes,2,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty"`
	// jailed defined whether the validator has been jailed from bonded status or
	// not.
	Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed,omitempty"`
	// status is the validator status (bonded/unbonding/unbonded).
	Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// tokens define the delegated tokens (incl. self-delegation).
	Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens"`
	// delegator_shares defines total shares issued to a validator's delegators.
	DelegatorShares github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	// description defines the description terms for the validator.
	Description Description `protobuf:"bytes,7,opt,name=description,proto3" json:"description"`
	// unbonding_height defines, if unbonding, the height at which this validator
	// has begun unbonding.
	UnbondingHeight int64 `protobuf:"varint,8,opt,name=unbonding_height,json=unbondingHeight,proto3" json:"unbonding_height,omitempty,string"`
	// unbonding_time defines, if unbonding, the min time for the validator to
	// complete unbonding.
	UnbondingTime time.Time `protobuf:"bytes,9,opt,name=unbonding_time,json=unbondingTime,proto3,stdtime" json:"unbonding_time"`
	// commission defines the commission parameters.
	Commission Commission `protobuf:"bytes,10,opt,name=commission,proto3" json:"commission"`
	// min_self_delegation is the validator's self declared minimum self
	// delegation.
	//
	// Since: cosmos-sdk 0.46
	MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `` /* 155-byte string literal not displayed */
	// bond_denom defines the bondable coin denomination.
	BondDenom string `protobuf:"bytes,12,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty"`
}

Validator defines a validator, together with the total amount of the Validator's bond shares and their exchange rate to coins. Slashing results in a decrease in the exchange rate, allowing correct calculation of future undelegations without iterating over delegators. When coins are delegated to this validator, the validator is credited with a delegation whose number of bond shares is based on the amount of coins delegated divided by the current exchange rate. Voting power can be calculated as total bonded shares multiplied by exchange rate.

func (*Validator) Descriptor

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

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

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

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

type ValidatorCurrentRewards

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

type ValidatorCurrentRewardsRecord

type ValidatorCurrentRewardsRecord struct {
	// validator_address is the address of the validator.
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// rewards defines the current rewards of a validator.
	Rewards ValidatorCurrentRewards `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards"`
}

type ValidatorHistoricalRewardsRecord

type ValidatorHistoricalRewardsRecord struct {
	// validator_address is the address of the validator.
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// period defines the period the historical rewards apply to.
	Period string `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
	// rewards defines the historical rewards of a validator.
	Rewards distrtypes.ValidatorHistoricalRewards `protobuf:"bytes,3,opt,name=rewards,proto3" json:"rewards"`
}

type ValidatorSlashEvent

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

type ValidatorSlashEventRecord

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

Jump to

Keyboard shortcuts

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