Documentation
¶
Index ¶
- Variables
- type CandidateInfo
- func (*CandidateInfo) Descriptor() ([]byte, []int)
- func (m *CandidateInfo) GetPeerId() string
- func (m *CandidateInfo) GetWeight() string
- func (m *CandidateInfo) Marshal() (dAtA []byte, err error)
- func (m *CandidateInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *CandidateInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CandidateInfo) ProtoMessage()
- func (m *CandidateInfo) Reset()
- func (m *CandidateInfo) Size() (n int)
- func (m *CandidateInfo) String() string
- func (m *CandidateInfo) Unmarshal(dAtA []byte) error
- func (m *CandidateInfo) XXX_DiscardUnknown()
- func (m *CandidateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CandidateInfo) XXX_Merge(src proto.Message)
- func (m *CandidateInfo) XXX_Size() int
- func (m *CandidateInfo) XXX_Unmarshal(b []byte) error
- type DPoSConfig
- func (*DPoSConfig) Descriptor() ([]byte, []int)
- func (m *DPoSConfig) GetDistributionGasExchangeRate() uint32
- func (m *DPoSConfig) GetDistributionPerBlock() uint32
- func (m *DPoSConfig) GetEpochBlockNumber() uint32
- func (m *DPoSConfig) GetEpochValidatorNumber() uint32
- func (m *DPoSConfig) GetFromSlashing() string
- func (m *DPoSConfig) GetMinSelfDelegation() uint32
- func (m *DPoSConfig) GetSequence() uint32
- func (m *DPoSConfig) GetSlashingPerBlock() uint32
- func (m *DPoSConfig) Marshal() (dAtA []byte, err error)
- func (m *DPoSConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *DPoSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DPoSConfig) ProtoMessage()
- func (m *DPoSConfig) Reset()
- func (m *DPoSConfig) Size() (n int)
- func (m *DPoSConfig) String() string
- func (m *DPoSConfig) Unmarshal(dAtA []byte) error
- func (m *DPoSConfig) XXX_DiscardUnknown()
- func (m *DPoSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DPoSConfig) XXX_Merge(src proto.Message)
- func (m *DPoSConfig) XXX_Size() int
- func (m *DPoSConfig) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CandidateInfo ¶
type CandidateInfo struct { // Identification of the node PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // The voting weight of the node Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` }
func (*CandidateInfo) Descriptor ¶
func (*CandidateInfo) Descriptor() ([]byte, []int)
func (*CandidateInfo) GetPeerId ¶
func (m *CandidateInfo) GetPeerId() string
func (*CandidateInfo) GetWeight ¶
func (m *CandidateInfo) GetWeight() string
func (*CandidateInfo) Marshal ¶
func (m *CandidateInfo) Marshal() (dAtA []byte, err error)
func (*CandidateInfo) MarshalTo ¶
func (m *CandidateInfo) MarshalTo(dAtA []byte) (int, error)
func (*CandidateInfo) MarshalToSizedBuffer ¶
func (m *CandidateInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CandidateInfo) ProtoMessage ¶
func (*CandidateInfo) ProtoMessage()
func (*CandidateInfo) Reset ¶
func (m *CandidateInfo) Reset()
func (*CandidateInfo) Size ¶
func (m *CandidateInfo) Size() (n int)
func (*CandidateInfo) String ¶
func (m *CandidateInfo) String() string
func (*CandidateInfo) Unmarshal ¶
func (m *CandidateInfo) Unmarshal(dAtA []byte) error
func (*CandidateInfo) XXX_DiscardUnknown ¶
func (m *CandidateInfo) XXX_DiscardUnknown()
func (*CandidateInfo) XXX_Marshal ¶
func (m *CandidateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CandidateInfo) XXX_Merge ¶
func (m *CandidateInfo) XXX_Merge(src proto.Message)
func (*CandidateInfo) XXX_Size ¶
func (m *CandidateInfo) XXX_Size() int
func (*CandidateInfo) XXX_Unmarshal ¶
func (m *CandidateInfo) XXX_Unmarshal(b []byte) error
type DPoSConfig ¶
type DPoSConfig struct { // epoch block number EpochBlockNumber uint32 `protobuf:"varint,1,opt,name=epoch_block_number,json=epochBlockNumber,proto3" json:"epoch_block_number,omitempty"` // epoch validator number EpochValidatorNumber uint32 `protobuf:"varint,2,opt,name=epoch_validator_number,json=epochValidatorNumber,proto3" json:"epoch_validator_number,omitempty"` // min self delegation MinSelfDelegation uint32 `protobuf:"varint,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"` // from slashing FromSlashing string `protobuf:"bytes,4,opt,name=from_slashing,json=fromSlashing,proto3" json:"from_slashing,omitempty"` // distribution per block DistributionPerBlock uint32 `protobuf:"varint,5,opt,name=distribution_per_block,json=distributionPerBlock,proto3" json:"distribution_per_block,omitempty"` // distribution gas exchange rate DistributionGasExchangeRate uint32 `` /* 147-byte string literal not displayed */ // slashing per block SlashingPerBlock uint32 `protobuf:"varint,7,opt,name=slashing_per_block,json=slashingPerBlock,proto3" json:"slashing_per_block,omitempty"` // sequence Sequence uint32 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` }
DPoSConfig
func (*DPoSConfig) Descriptor ¶
func (*DPoSConfig) Descriptor() ([]byte, []int)
func (*DPoSConfig) GetDistributionGasExchangeRate ¶
func (m *DPoSConfig) GetDistributionGasExchangeRate() uint32
func (*DPoSConfig) GetDistributionPerBlock ¶
func (m *DPoSConfig) GetDistributionPerBlock() uint32
func (*DPoSConfig) GetEpochBlockNumber ¶
func (m *DPoSConfig) GetEpochBlockNumber() uint32
func (*DPoSConfig) GetEpochValidatorNumber ¶
func (m *DPoSConfig) GetEpochValidatorNumber() uint32
func (*DPoSConfig) GetFromSlashing ¶
func (m *DPoSConfig) GetFromSlashing() string
func (*DPoSConfig) GetMinSelfDelegation ¶
func (m *DPoSConfig) GetMinSelfDelegation() uint32
func (*DPoSConfig) GetSequence ¶
func (m *DPoSConfig) GetSequence() uint32
func (*DPoSConfig) GetSlashingPerBlock ¶
func (m *DPoSConfig) GetSlashingPerBlock() uint32
func (*DPoSConfig) Marshal ¶
func (m *DPoSConfig) Marshal() (dAtA []byte, err error)
func (*DPoSConfig) MarshalTo ¶
func (m *DPoSConfig) MarshalTo(dAtA []byte) (int, error)
func (*DPoSConfig) MarshalToSizedBuffer ¶
func (m *DPoSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DPoSConfig) ProtoMessage ¶
func (*DPoSConfig) ProtoMessage()
func (*DPoSConfig) Reset ¶
func (m *DPoSConfig) Reset()
func (*DPoSConfig) Size ¶
func (m *DPoSConfig) Size() (n int)
func (*DPoSConfig) String ¶
func (m *DPoSConfig) String() string
func (*DPoSConfig) Unmarshal ¶
func (m *DPoSConfig) Unmarshal(dAtA []byte) error
func (*DPoSConfig) XXX_DiscardUnknown ¶
func (m *DPoSConfig) XXX_DiscardUnknown()
func (*DPoSConfig) XXX_Marshal ¶
func (m *DPoSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DPoSConfig) XXX_Merge ¶
func (m *DPoSConfig) XXX_Merge(src proto.Message)
func (*DPoSConfig) XXX_Size ¶
func (m *DPoSConfig) XXX_Size() int
func (*DPoSConfig) XXX_Unmarshal ¶
func (m *DPoSConfig) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.