genesis

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 15 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")
)

Functions

func Prototype

func Prototype() helpers.Genesis

Types

type Genesis

type Genesis struct {
	Records       []*record.Record    `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	ParameterList *base.ParameterList `protobuf:"bytes,2,opt,name=parameter_list,json=parameterList,proto3" json:"parameter_list,omitempty"`
}

func (*Genesis) Decode

func (genesis *Genesis) Decode(jsonCodec sdkCodec.JSONCodec, byte []byte) helpers.Genesis

func (*Genesis) Default

func (genesis *Genesis) Default() helpers.Genesis

func (*Genesis) Descriptor

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

func (*Genesis) Encode

func (genesis *Genesis) Encode(jsonCodec sdkCodec.JSONCodec) []byte

func (*Genesis) Export

func (genesis *Genesis) Export(context context.Context, mapper helpers.Mapper, parameterManager helpers.ParameterManager) helpers.Genesis

func (*Genesis) Import

func (genesis *Genesis) Import(context context.Context, mapper helpers.Mapper, parameterManager helpers.ParameterManager)

func (*Genesis) Initialize

func (genesis *Genesis) Initialize(records []helpers.Record, parameterList lists.ParameterList) helpers.Genesis

func (*Genesis) Marshal

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

func (*Genesis) MarshalTo

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

func (*Genesis) MarshalToSizedBuffer

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

func (*Genesis) ProtoMessage

func (*Genesis) ProtoMessage()

func (*Genesis) Reset

func (m *Genesis) Reset()

func (*Genesis) Size

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

func (*Genesis) String

func (m *Genesis) String() string

func (*Genesis) Unmarshal

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

func (*Genesis) ValidateBasic

func (genesis *Genesis) ValidateBasic(parameterManager helpers.ParameterManager) error

func (*Genesis) XXX_DiscardUnknown

func (m *Genesis) XXX_DiscardUnknown()

func (*Genesis) XXX_Marshal

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

func (*Genesis) XXX_Merge

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

func (*Genesis) XXX_Size

func (m *Genesis) XXX_Size() int

func (*Genesis) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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