Documentation ¶
Index ¶
- Variables
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetNodes() []Node
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRootCert() string
- func (m *GenesisState) GetValidators() []Validator
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type HistoricalInfo
- func (*HistoricalInfo) Descriptor() ([]byte, []int)
- func (m *HistoricalInfo) Marshal() (dAtA []byte, err error)
- func (m *HistoricalInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *HistoricalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HistoricalInfo) ProtoMessage()
- func (m *HistoricalInfo) Reset()
- func (m *HistoricalInfo) Size() (n int)
- func (m *HistoricalInfo) String() string
- func (m *HistoricalInfo) Unmarshal(dAtA []byte) error
- func (m *HistoricalInfo) XXX_DiscardUnknown()
- func (m *HistoricalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HistoricalInfo) XXX_Merge(src proto.Message)
- func (m *HistoricalInfo) XXX_Size() int
- func (m *HistoricalInfo) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (this *Node) Equal(that interface{}) bool
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (this *Validator) Equal(that interface{}) bool
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GenesisState ¶
type GenesisState struct { RootCert string `protobuf:"bytes,1,opt,name=root_cert,json=rootCert,proto3" json:"root_cert,omitempty" yaml:"root_cert"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` Validators []Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators"` Nodes []Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes"` }
GenesisState defines the node module's genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetNodes ¶
func (m *GenesisState) GetNodes() []Node
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRootCert ¶
func (m *GenesisState) GetRootCert() string
func (*GenesisState) GetValidators ¶
func (m *GenesisState) GetValidators() []Validator
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 the historical information that gets stored at each height.
func (*HistoricalInfo) Descriptor ¶
func (*HistoricalInfo) Descriptor() ([]byte, []int)
func (*HistoricalInfo) Marshal ¶
func (m *HistoricalInfo) Marshal() (dAtA []byte, err 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 Node ¶
type Node struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Certificate string `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` }
Node defines a struct to represent a node identity
func (*Node) Descriptor ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Params ¶
type Params struct {
HistoricalEntries uint32 `` /* 139-byte string literal not displayed */
}
Params defines the parameters for the node module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Validator ¶
type Validator struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Certificate string `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` Power int64 `protobuf:"varint,5,opt,name=power,proto3" json:"power,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` Jailed bool `protobuf:"varint,7,opt,name=jailed,proto3" json:"jailed,omitempty"` Operator string `protobuf:"bytes,8,opt,name=operator,proto3" json:"operator,omitempty"` }
Request defines a standard for validator. The validator will participate the blockchain consensus, power determines the probability of proposing a new block.
func (*Validator) Descriptor ¶
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.