poa

package
v0.0.0-...-6a86319 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var BondStatus_name = map[int32]string{
	0: "BOND_STATUS_UNSPECIFIED",
	1: "BOND_STATUS_UNBONDED",
	2: "BOND_STATUS_UNBONDING",
	3: "BOND_STATUS_BONDED",
}
View Source
var BondStatus_value = map[string]int32{
	"BOND_STATUS_UNSPECIFIED": 0,
	"BOND_STATUS_UNBONDED":    1,
	"BOND_STATUS_UNBONDING":   2,
	"BOND_STATUS_BONDED":      3,
}
View Source
var POATypeMap = map[string]sdk.Msg{
	"/strangelove_ventures.poa.v1.MsgSetPower":            &MsgSetPower{},
	"/strangelove_ventures.poa.v1.MsgRemoveValidator":     &MsgRemoveValidator{},
	"/strangelove_ventures.poa.v1.MsgRemovePending":       &MsgRemovePending{},
	"/strangelove_ventures.poa.v1.MsgUpdateStakingParams": &MsgUpdateStakingParams{},
	"/strangelove_ventures.poa.v1.MsgCreateValidator":     &MsgCreateValidator{},
}

Functions

func GetPOATypeMap

func GetPOATypeMap() map[string]sdk.Msg

Types

type BondStatus

type BondStatus int32

BondStatus is the status of a validator.

const (
	// UNSPECIFIED defines an invalid validator status.
	Unspecified BondStatus = 0
	// UNBONDED defines a validator that is not bonded.
	Unbonded BondStatus = 1
	// UNBONDING defines a validator that is unbonding.
	Unbonding BondStatus = 2
	// BONDED defines a validator that is bonded.
	Bonded BondStatus = 3
)

func (BondStatus) EnumDescriptor

func (BondStatus) EnumDescriptor() ([]byte, []int)

func (BondStatus) String

func (x BondStatus) String() string

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 cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"`
	// max_rate defines the maximum commission rate which validator can ever
	// charge, as a fraction.
	MaxRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_rate"`
	// max_change_rate defines the maximum daily increase of the validator
	// commission, as a fraction.
	MaxChangeRate cosmossdk_io_math.LegacyDec `` /* 131-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 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 MsgCreateValidator

type MsgCreateValidator struct {
	Description       Description           `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
	Commission        CommissionRates       `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"`
	MinSelfDelegation cosmossdk_io_math.Int `` /* 137-byte string literal not displayed */
	// Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
	// The validator address bytes and delegator address bytes refer to the same
	// account while creating validator (defer only in bech32 notation).
	DelegatorAddress string     `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // Deprecated: Do not use.
	ValidatorAddress string     `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Pubkey           *types.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
}

cosmos-sdk/proto/staking/v1beta1/tx.proto MsgCreateValidator defines a SDK message for creating a new validator.

func (*MsgCreateValidator) Descriptor

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

func (MsgCreateValidator) GetSigners

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

func (*MsgCreateValidator) Marshal

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

func (*MsgCreateValidator) MarshalTo

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

func (*MsgCreateValidator) MarshalToSizedBuffer

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

func (*MsgCreateValidator) ProtoMessage

func (*MsgCreateValidator) ProtoMessage()

func (*MsgCreateValidator) Reset

func (m *MsgCreateValidator) Reset()

func (*MsgCreateValidator) Size

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

func (*MsgCreateValidator) String

func (m *MsgCreateValidator) String() string

func (*MsgCreateValidator) Unmarshal

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

func (MsgCreateValidator) ValidateBasic

func (msg MsgCreateValidator) ValidateBasic() error

func (*MsgCreateValidator) XXX_DiscardUnknown

func (m *MsgCreateValidator) XXX_DiscardUnknown()

func (*MsgCreateValidator) XXX_Marshal

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

func (*MsgCreateValidator) XXX_Merge

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

func (*MsgCreateValidator) XXX_Size

func (m *MsgCreateValidator) XXX_Size() int

func (*MsgCreateValidator) XXX_Unmarshal

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

type MsgRemovePending

type MsgRemovePending struct {
	Sender           string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

MsgRemovePending removes an pending validator from the queue.

func (*MsgRemovePending) Descriptor

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

func (MsgRemovePending) GetSigners

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

func (*MsgRemovePending) Marshal

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

func (*MsgRemovePending) MarshalTo

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

func (*MsgRemovePending) MarshalToSizedBuffer

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

func (*MsgRemovePending) ProtoMessage

func (*MsgRemovePending) ProtoMessage()

func (*MsgRemovePending) Reset

func (m *MsgRemovePending) Reset()

func (*MsgRemovePending) Size

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

func (*MsgRemovePending) String

func (m *MsgRemovePending) String() string

func (*MsgRemovePending) Unmarshal

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

func (MsgRemovePending) ValidateBasic

func (msg MsgRemovePending) ValidateBasic() error

func (*MsgRemovePending) XXX_DiscardUnknown

func (m *MsgRemovePending) XXX_DiscardUnknown()

func (*MsgRemovePending) XXX_Marshal

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

func (*MsgRemovePending) XXX_Merge

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

func (*MsgRemovePending) XXX_Size

func (m *MsgRemovePending) XXX_Size() int

func (*MsgRemovePending) XXX_Unmarshal

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

type MsgRemoveValidator

type MsgRemoveValidator struct {
	Sender           string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

MsgRemoveValidator removes an active validitor from the set and unbonds their delegations.

func (*MsgRemoveValidator) Descriptor

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

func (MsgRemoveValidator) GetSigners

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

func (*MsgRemoveValidator) Marshal

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

func (*MsgRemoveValidator) MarshalTo

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

func (*MsgRemoveValidator) MarshalToSizedBuffer

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

func (*MsgRemoveValidator) ProtoMessage

func (*MsgRemoveValidator) ProtoMessage()

func (*MsgRemoveValidator) Reset

func (m *MsgRemoveValidator) Reset()

func (*MsgRemoveValidator) Size

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

func (*MsgRemoveValidator) String

func (m *MsgRemoveValidator) String() string

func (*MsgRemoveValidator) Unmarshal

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

func (MsgRemoveValidator) ValidateBasic

func (msg MsgRemoveValidator) ValidateBasic() error

func (*MsgRemoveValidator) XXX_DiscardUnknown

func (m *MsgRemoveValidator) XXX_DiscardUnknown()

func (*MsgRemoveValidator) XXX_Marshal

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

func (*MsgRemoveValidator) XXX_Merge

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

func (*MsgRemoveValidator) XXX_Size

func (m *MsgRemoveValidator) XXX_Size() int

func (*MsgRemoveValidator) XXX_Unmarshal

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

type MsgSetPower

type MsgSetPower struct {
	Sender           string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Power            uint64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
	Unsafe           bool   `protobuf:"varint,4,opt,name=unsafe,proto3" json:"unsafe,omitempty"`
}

SetPower sets the new power of the validator and accepts new validators into the set.

func (*MsgSetPower) Descriptor

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

func (MsgSetPower) GetSigners

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

func (*MsgSetPower) Marshal

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

func (*MsgSetPower) MarshalTo

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

func (*MsgSetPower) MarshalToSizedBuffer

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

func (*MsgSetPower) ProtoMessage

func (*MsgSetPower) ProtoMessage()

func (*MsgSetPower) Reset

func (m *MsgSetPower) Reset()

func (*MsgSetPower) Size

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

func (*MsgSetPower) String

func (m *MsgSetPower) String() string

func (*MsgSetPower) Unmarshal

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

func (MsgSetPower) ValidateBasic

func (msg MsgSetPower) ValidateBasic() error

func (*MsgSetPower) XXX_DiscardUnknown

func (m *MsgSetPower) XXX_DiscardUnknown()

func (*MsgSetPower) XXX_Marshal

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

func (*MsgSetPower) XXX_Merge

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

func (*MsgSetPower) XXX_Size

func (m *MsgSetPower) XXX_Size() int

func (*MsgSetPower) XXX_Unmarshal

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

type MsgUpdateStakingParams

type MsgUpdateStakingParams struct {
	// sender is the address of the admin account with permission to update.
	// ex: governance, multisig/DAO, or standard account found in Params.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// x/staking  module parameters (all must be supplied).
	Params StakingParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateStakingParams is the Msg/UpdateStakingParams request type.

func (*MsgUpdateStakingParams) Descriptor

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

func (*MsgUpdateStakingParams) GetParams

func (m *MsgUpdateStakingParams) GetParams() StakingParams

func (*MsgUpdateStakingParams) GetSender

func (m *MsgUpdateStakingParams) GetSender() string

func (MsgUpdateStakingParams) GetSigners

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

func (*MsgUpdateStakingParams) Marshal

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

func (*MsgUpdateStakingParams) MarshalTo

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

func (*MsgUpdateStakingParams) MarshalToSizedBuffer

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

func (*MsgUpdateStakingParams) ProtoMessage

func (*MsgUpdateStakingParams) ProtoMessage()

func (*MsgUpdateStakingParams) Reset

func (m *MsgUpdateStakingParams) Reset()

func (*MsgUpdateStakingParams) Size

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

func (*MsgUpdateStakingParams) String

func (m *MsgUpdateStakingParams) String() string

func (*MsgUpdateStakingParams) Unmarshal

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

func (MsgUpdateStakingParams) ValidateBasic

func (msg MsgUpdateStakingParams) ValidateBasic() error

func (*MsgUpdateStakingParams) XXX_DiscardUnknown

func (m *MsgUpdateStakingParams) XXX_DiscardUnknown()

func (*MsgUpdateStakingParams) XXX_Marshal

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

func (*MsgUpdateStakingParams) XXX_Merge

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

func (*MsgUpdateStakingParams) XXX_Size

func (m *MsgUpdateStakingParams) XXX_Size() int

func (*MsgUpdateStakingParams) XXX_Unmarshal

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

type StakingParams

type StakingParams struct {
	// unbonding_time is the time duration of unbonding.
	UnbondingTime time.Duration `protobuf:"bytes,1,opt,name=unbonding_time,json=unbondingTime,proto3,stdduration" json:"unbonding_time"`
	// 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 cosmossdk_io_math.LegacyDec `` /* 170-byte string literal not displayed */
}

StakingParams defines the parameters for the x/staking module.

func (*StakingParams) Descriptor

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

func (*StakingParams) Equal

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

func (*StakingParams) GetBondDenom

func (m *StakingParams) GetBondDenom() string

func (*StakingParams) GetHistoricalEntries

func (m *StakingParams) GetHistoricalEntries() uint32

func (*StakingParams) GetMaxEntries

func (m *StakingParams) GetMaxEntries() uint32

func (*StakingParams) GetMaxValidators

func (m *StakingParams) GetMaxValidators() uint32

func (*StakingParams) GetUnbondingTime

func (m *StakingParams) GetUnbondingTime() time.Duration

func (*StakingParams) Marshal

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

func (*StakingParams) MarshalTo

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

func (*StakingParams) MarshalToSizedBuffer

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

func (*StakingParams) ProtoMessage

func (*StakingParams) ProtoMessage()

func (*StakingParams) Reset

func (m *StakingParams) Reset()

func (*StakingParams) Size

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

func (*StakingParams) String

func (m *StakingParams) String() string

func (*StakingParams) Unmarshal

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

func (*StakingParams) XXX_DiscardUnknown

func (m *StakingParams) XXX_DiscardUnknown()

func (*StakingParams) XXX_Marshal

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

func (*StakingParams) XXX_Merge

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

func (*StakingParams) XXX_Size

func (m *StakingParams) XXX_Size() int

func (*StakingParams) XXX_Unmarshal

func (m *StakingParams) 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 *types.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 BondStatus `protobuf:"varint,4,opt,name=status,proto3,enum=strangelove_ventures.poa.v1.BondStatus" json:"status,omitempty"`
	// tokens define the delegated tokens (incl. self-delegation).
	Tokens cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=cosmossdk.io/math.Int" json:"tokens"`
	// delegator_shares defines total shares issued to a validator's delegators.
	DelegatorShares cosmossdk_io_math.LegacyDec `` /* 135-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"`
	// 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 cosmossdk_io_math.Int `` /* 138-byte string literal not displayed */
	// strictly positive if this validator's unbonding has been stopped by
	// external modules
	UnbondingOnHoldRefCount int64 `` /* 138-byte string literal not displayed */
	// list of unbonding ids, each uniquely identifying an unbonding of this
	// validator
	UnbondingIds []uint64 `protobuf:"varint,13,rep,packed,name=unbonding_ids,json=unbondingIds,proto3" json:"unbonding_ids,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 Validators

type Validators struct {
	// A list of all the validators
	Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
}

Validators is a collection of Validators.

func (*Validators) Descriptor

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

func (*Validators) GetValidators

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

func (*Validators) Marshal

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

func (*Validators) MarshalTo

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

func (*Validators) MarshalToSizedBuffer

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

func (*Validators) ProtoMessage

func (*Validators) ProtoMessage()

func (*Validators) Reset

func (m *Validators) Reset()

func (*Validators) Size

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

func (*Validators) String

func (m *Validators) String() string

func (*Validators) Unmarshal

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

func (*Validators) XXX_DiscardUnknown

func (m *Validators) XXX_DiscardUnknown()

func (*Validators) XXX_Marshal

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

func (*Validators) XXX_Merge

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

func (*Validators) XXX_Size

func (m *Validators) XXX_Size() int

func (*Validators) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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