Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
Body represents an optional types.Body. The fields need to be exported since it's JSON encoded by the state service. TODO: when we change the state service's encoding to SCALE, these fields should become unexported.
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes represents an optional Bytes type.
type CoreHeader ¶
type CoreHeader struct { ParentHash common.Hash `json:"parentHash"` Number *big.Int `json:"number"` StateRoot common.Hash `json:"stateRoot"` ExtrinsicsRoot common.Hash `json:"extrinsicsRoot"` Digest [][]byte `json:"digest"` }
CoreHeader is a state block header This is copied from core/types since core/types imports this package, we cannot import core/types.
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
Hash represents an optional Hash type.
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
Header represents an optional header type
func NewHeader ¶
func NewHeader(exists bool, value *CoreHeader) *Header
NewHeader returns a new optional.Header
func (*Header) Set ¶
func (x *Header) Set(exists bool, value *CoreHeader)
Set sets the exists and value fields.
func (*Header) Value ¶
func (x *Header) Value() *CoreHeader
Value returns the value of the header. It returns nil if the header is None.
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
Uint32 represents an optional uint32 type.