// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: provenance/ledger/v1/genesis.proto

package types

import (
	fmt "fmt"
	_ "github.com/cosmos/gogoproto/gogoproto"
	proto "github.com/cosmos/gogoproto/proto"
	io "io"
	math "math"
	math_bits "math/bits"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package

// GenesisState represents the initial state of the ledger store.
// This structure matches the test.json format for bulk import.
type GenesisState struct {
	// Ledger classes configuration.
	LedgerClasses []LedgerClass `protobuf:"bytes,1,rep,name=ledger_classes,json=ledgerClasses,proto3" json:"ledgerClasses,omitempty"`
	// Ledger class entry types configuration.
	LedgerClassEntryTypes []GenesisLedgerClassEntryType `protobuf:"bytes,2,rep,name=ledger_class_entry_types,json=ledgerClassEntryTypes,proto3" json:"ledgerClassEntryTypes,omitempty"`
	// Ledger class status types configuration.
	LedgerClassStatusTypes []GenesisLedgerClassStatusType `protobuf:"bytes,3,rep,name=ledger_class_status_types,json=ledgerClassStatusTypes,proto3" json:"ledgerClassStatusTypes,omitempty"`
	// Ledger class bucket types configuration.
	LedgerClassBucketTypes []GenesisLedgerClassBucketType `protobuf:"bytes,4,rep,name=ledger_class_bucket_types,json=ledgerClassBucketTypes,proto3" json:"ledgerClassBucketTypes,omitempty"`
	// Ledgers.
	Ledgers []GenesisLedger `protobuf:"bytes,5,rep,name=ledgers,proto3" json:"ledgers,omitempty"`
	// Ledger entries.
	LedgerEntries []GenesisLedgerEntry `protobuf:"bytes,6,rep,name=ledger_entries,json=ledgerEntries,proto3" json:"ledgerEntries,omitempty"`
	// Settlement instructions for fund transfers.
	SettlementInstructions []GenesisStoredSettlementInstructions `protobuf:"bytes,7,rep,name=settlement_instructions,json=settlementInstructions,proto3" json:"settlementInstructions,omitempty"`
}

func (m *GenesisState) Reset()         { *m = GenesisState{} }
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
func (*GenesisState) ProtoMessage()    {}
func (*GenesisState) Descriptor() ([]byte, []int) {
	return fileDescriptor_b886a19f38606bf2, []int{0}
}
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GenesisState) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GenesisState.Merge(m, src)
}
func (m *GenesisState) XXX_Size() int {
	return m.Size()
}
func (m *GenesisState) XXX_DiscardUnknown() {
	xxx_messageInfo_GenesisState.DiscardUnknown(m)
}

var xxx_messageInfo_GenesisState proto.InternalMessageInfo

// GenesisLedgerClassEntryType is a single ledger class entry type with its key. This is used for the genesis state
// import/export so that we can avoid non-deterministic maps in the genesis functions.
type GenesisLedgerClassEntryType struct {
	Key       *GenesisPair         `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	EntryType LedgerClassEntryType `protobuf:"bytes,2,opt,name=entry_type,json=entryType,proto3" json:"entryType,omitempty"`
}

func (m *GenesisLedgerClassEntryType) Reset()         { *m = GenesisLedgerClassEntryType{} }
func (m *GenesisLedgerClassEntryType) String() string { return proto.CompactTextString(m) }
func (*GenesisLedgerClassEntryType) ProtoMessage()    {}
func (*GenesisLedgerClassEntryType) Descriptor() ([]byte, []int) {
	return fileDescriptor_b886a19f38606bf2, []int{1}
}
func (m *GenesisLedgerClassEntryType) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GenesisLedgerClassEntryType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GenesisLedgerClassEntryType.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GenesisLedgerClassEntryType) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GenesisLedgerClassEntryType.Merge(m, src)
}
func (m *GenesisLedgerClassEntryType) XXX_Size() int {
	return m.Size()
}
func (m *GenesisLedgerClassEntryType) XXX_DiscardUnknown() {
	xxx_messageInfo_GenesisLedgerClassEntryType.DiscardUnknown(m)
}

var xxx_messageInfo_GenesisLedgerClassEntryType proto.InternalMessageInfo

func (m *GenesisLedgerClassEntryType) GetKey() *GenesisPair {
	if m != nil {
		return m.Key
	}
	return nil
}

func (m *GenesisLedgerClassEntryType) GetEntryType() LedgerClassEntryType {
	if m != nil {
		return m.EntryType
	}
	return LedgerClassEntryType{}
}

// GenesisLedgerClassStatusType is a single ledger class status type with its key. This is used for the genesis state
// import/export so that we can avoid non-deterministic maps in the genesis functions.
type GenesisLedgerClassStatusType struct {
	Key        *GenesisPair          `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	StatusType LedgerClassStatusType `protobuf:"bytes,2,opt,name=status_type,json=statusType,proto3" json:"statusType,omitempty"`
}

func (m *GenesisLedgerClassStatusType) Reset()         { *m = GenesisLedgerClassStatusType{} }
func (m *GenesisLedgerClassStatusType) String() string { return proto.CompactTextString(m) }
func (*GenesisLedgerClassStatusType) ProtoMessage()    {}
func (*GenesisLedgerClassStatusType) Descriptor() ([]byte, []int) {
	return fileDescriptor_b886a19f38606bf2, []int{2}
}
func (m *GenesisLedgerClassStatusType) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GenesisLedgerClassStatusType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GenesisLedgerClassStatusType.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GenesisLedgerClassStatusType) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GenesisLedgerClassStatusType.Merge(m, src)
}
func (m *GenesisLedgerClassStatusType) XXX_Size() int {
	return m.Size()
}
func (m *GenesisLedgerClassStatusType) XXX_DiscardUnknown() {
	xxx_messageInfo_GenesisLedgerClassStatusType.DiscardUnknown(m)
}

var xxx_messageInfo_GenesisLedgerClassStatusType proto.InternalMessageInfo

func (m *GenesisLedgerClassStatusType) GetKey() *GenesisPair {
	if m != nil {
		return m.Key
	}
	return nil
}

func (m *GenesisLedgerClassStatusType) GetStatusType() LedgerClassStatusType {
	if m != nil {
		return m.StatusType
	}
	return LedgerClassStatusType{}
}

// GenesisLedgerClassBucketType is a single ledger class bucket type with its key. This is used for the genesis state
// import/export so that we can avoid non-deterministic maps in the genesis functions.
type GenesisLedgerClassBucketType struct {
	Key        *GenesisPair          `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	BucketType LedgerClassBucketType `protobuf:"bytes,2,opt,name=bucket_type,json=bucketType,proto3" json:"bucketType,omitempty"`
}

func (m *GenesisLedgerClassBucketType) Reset()         { *m = GenesisLedgerClassBucketType{} }
func (m *GenesisLedgerClassBucketType) String() string { return proto.CompactTextString(m) }
func (*GenesisLedgerClassBucketType) ProtoMessage()    {}
func (*GenesisLedgerClassBucketType) Descriptor() ([]byte, []int) {
	return fileDescriptor_b886a19f38606bf2, []int{3}
}
func (m *GenesisLedgerClassBucketType) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GenesisLedgerClassBucketType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GenesisLedgerClassBucketType.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GenesisLedgerClassBucketType) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GenesisLedgerClassBucketType.Merge(m, src)
}
func (m *GenesisLedgerClassBucketType) XXX_Size() int {
	return m.Size()
}
func (m *GenesisLedgerClassBucketType) XXX_DiscardUnknown() {
	xxx_messageInfo_GenesisLedgerClassBucketType.DiscardUnknown(m)
}

var xxx_messageInfo_GenesisLedgerClassBucketType proto.InternalMessageInfo

func (m *GenesisLedgerClassBucketType) GetKey() *GenesisPair {
	if m != nil {
		return m.Key
	}
	return nil
}

func (m *GenesisLedgerClassBucketType) GetBucketType() LedgerClassBucketType {
	if m != nil {
		return m.BucketType
	}
	return LedgerClassBucketType{}
}

// GenesisLedger is a single ledger type with its key. This is used for the genesis state import/export so that we
// can avoid non-deterministic maps in the genesis functions.
type GenesisLedger struct {
	Ledger Ledger `protobuf:"bytes,2,opt,name=ledger,proto3" json:"ledger,omitempty"`
}

func (m *GenesisLedger) Reset()         { *m = GenesisLedger{} }
func (m *GenesisLedger) String() string { return proto.CompactTextString(m) }
func (*GenesisLedger) ProtoMessage()    {}
func (*GenesisLedger) Descriptor() ([]byte, []int) {
	return fileDescriptor_b886a19f38606bf2, []int{4}
}
func (m *GenesisLedger) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GenesisLedger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GenesisLedger.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GenesisLedger) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GenesisLedger.Merge(m, src)
}
func (m *GenesisLedger) XXX_Size() int {
	return m.Size()
}
func (m *GenesisLedger) XXX_DiscardUnknown() {
	xxx_messageInfo_GenesisLedger.DiscardUnknown(m)
}

var xxx_messageInfo_GenesisLedger proto.InternalMessageInfo

func (m *GenesisLedger) GetLedger() Ledger {
	if m != nil {
		return m.Ledger
	}
	return Ledger{}
}

// GenesisLedgerEntry is a single ledger entry with its key. This is used for the genesis state import/export so that we
// can avoid non-deterministic maps in the genesis functions.
type GenesisLedgerEntry struct {
	Key   *LedgerKey  `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Entry LedgerEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"`
}

func (m *GenesisLedgerEntry) Reset()         { *m = GenesisLedgerEntry{} }
func (m *GenesisLedgerEntry) String() string { return proto.CompactTextString(m) }
func (*GenesisLedgerEntry) ProtoMessage()    {}
func (*GenesisLedgerEntry) Descriptor() ([]byte, []int) {
	return fileDescriptor_b886a19f38606bf2, []int{5}
}
func (m *GenesisLedgerEntry) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GenesisLedgerEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GenesisLedgerEntry.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GenesisLedgerEntry) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GenesisLedgerEntry.Merge(m, src)
}
func (m *GenesisLedgerEntry) XXX_Size() int {
	return m.Size()
}
func (m *GenesisLedgerEntry) XXX_DiscardUnknown() {
	xxx_messageInfo_GenesisLedgerEntry.DiscardUnknown(m)
}

var xxx_messageInfo_GenesisLedgerEntry proto.InternalMessageInfo

func (m *GenesisLedgerEntry) GetKey() *LedgerKey {
	if m != nil {
		return m.Key
	}
	return nil
}

func (m *GenesisLedgerEntry) GetEntry() LedgerEntry {
	if m != nil {
		return m.Entry
	}
	return LedgerEntry{}
}

// GenesisStoredSettlementInstructions is a single settlement instruction with its key. This is used for the genesis
// state import/export so that we can avoid non-deterministic maps in the genesis functions.
type GenesisStoredSettlementInstructions struct {
	Key                    *GenesisPair                 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	SettlementInstructions StoredSettlementInstructions `protobuf:"bytes,2,opt,name=settlement_instructions,json=settlementInstructions,proto3" json:"settlementInstructions,omitempty"`
}

func (m *GenesisStoredSettlementInstructions) Reset()         { *m = GenesisStoredSettlementInstructions{} }
func (m *GenesisStoredSettlementInstructions) String() string { return proto.CompactTextString(m) }
func (*GenesisStoredSettlementInstructions) ProtoMessage()    {}
func (*GenesisStoredSettlementInstructions) Descriptor() ([]byte, []int) {
	return fileDescriptor_b886a19f38606bf2, []int{6}
}
func (m *GenesisStoredSettlementInstructions) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GenesisStoredSettlementInstructions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GenesisStoredSettlementInstructions.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GenesisStoredSettlementInstructions) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GenesisStoredSettlementInstructions.Merge(m, src)
}
func (m *GenesisStoredSettlementInstructions) XXX_Size() int {
	return m.Size()
}
func (m *GenesisStoredSettlementInstructions) XXX_DiscardUnknown() {
	xxx_messageInfo_GenesisStoredSettlementInstructions.DiscardUnknown(m)
}

var xxx_messageInfo_GenesisStoredSettlementInstructions proto.InternalMessageInfo

func (m *GenesisStoredSettlementInstructions) GetKey() *GenesisPair {
	if m != nil {
		return m.Key
	}
	return nil
}

func (m *GenesisStoredSettlementInstructions) GetSettlementInstructions() StoredSettlementInstructions {
	if m != nil {
		return m.SettlementInstructions
	}
	return StoredSettlementInstructions{}
}

// GenesisPair represents a simple pair of strings that can be used as the key for a collections export.
type GenesisPair struct {
	P1 string `protobuf:"bytes,1,opt,name=p1,proto3" json:"p1,omitempty"`
	P2 string `protobuf:"bytes,2,opt,name=p2,proto3" json:"p2,omitempty"`
}

func (m *GenesisPair) Reset()         { *m = GenesisPair{} }
func (m *GenesisPair) String() string { return proto.CompactTextString(m) }
func (*GenesisPair) ProtoMessage()    {}
func (*GenesisPair) Descriptor() ([]byte, []int) {
	return fileDescriptor_b886a19f38606bf2, []int{7}
}
func (m *GenesisPair) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *GenesisPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_GenesisPair.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *GenesisPair) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GenesisPair.Merge(m, src)
}
func (m *GenesisPair) XXX_Size() int {
	return m.Size()
}
func (m *GenesisPair) XXX_DiscardUnknown() {
	xxx_messageInfo_GenesisPair.DiscardUnknown(m)
}

var xxx_messageInfo_GenesisPair proto.InternalMessageInfo

func (m *GenesisPair) GetP1() string {
	if m != nil {
		return m.P1
	}
	return ""
}

func (m *GenesisPair) GetP2() string {
	if m != nil {
		return m.P2
	}
	return ""
}

func init() {
	proto.RegisterType((*GenesisState)(nil), "provenance.ledger.v1.GenesisState")
	proto.RegisterType((*GenesisLedgerClassEntryType)(nil), "provenance.ledger.v1.GenesisLedgerClassEntryType")
	proto.RegisterType((*GenesisLedgerClassStatusType)(nil), "provenance.ledger.v1.GenesisLedgerClassStatusType")
	proto.RegisterType((*GenesisLedgerClassBucketType)(nil), "provenance.ledger.v1.GenesisLedgerClassBucketType")
	proto.RegisterType((*GenesisLedger)(nil), "provenance.ledger.v1.GenesisLedger")
	proto.RegisterType((*GenesisLedgerEntry)(nil), "provenance.ledger.v1.GenesisLedgerEntry")
	proto.RegisterType((*GenesisStoredSettlementInstructions)(nil), "provenance.ledger.v1.GenesisStoredSettlementInstructions")
	proto.RegisterType((*GenesisPair)(nil), "provenance.ledger.v1.GenesisPair")
}

func init() {
	proto.RegisterFile("provenance/ledger/v1/genesis.proto", fileDescriptor_b886a19f38606bf2)
}

var fileDescriptor_b886a19f38606bf2 = []byte{
	// 729 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6e, 0xd3, 0x4c,
	0x14, 0xcd, 0xa4, 0x5f, 0xdb, 0xaf, 0xd3, 0x16, 0xda, 0xa1, 0x10, 0xf7, 0x47, 0x71, 0xea, 0x2e,
	0xa8, 0xa0, 0xd8, 0xb2, 0x59, 0xc1, 0xd2, 0x50, 0x10, 0x02, 0xa1, 0x42, 0x58, 0x20, 0x36, 0x51,
	0x92, 0x0e, 0xc6, 0xd4, 0xb1, 0x2d, 0xcf, 0xa4, 0xc2, 0x0f, 0x80, 0xc4, 0x12, 0x09, 0x21, 0x36,
	0x2c, 0xfa, 0x00, 0x3c, 0x00, 0x8f, 0xd0, 0x0d, 0x52, 0xc5, 0x8a, 0x55, 0x84, 0xda, 0x0d, 0xea,
	0x53, 0xa0, 0xcc, 0x4c, 0xec, 0x09, 0xb5, 0xdd, 0x20, 0x85, 0x5d, 0x72, 0xef, 0xb9, 0xf7, 0x9c,
	0x33, 0x9e, 0x7b, 0x6d, 0xa8, 0x85, 0x51, 0xb0, 0x8f, 0xfd, 0xa6, 0xdf, 0xc6, 0x86, 0x87, 0x77,
	0x1d, 0x1c, 0x19, 0xfb, 0xa6, 0xe1, 0x60, 0x1f, 0x13, 0x97, 0xe8, 0x61, 0x14, 0xd0, 0x00, 0x2d,
	0xa5, 0x18, 0x9d, 0x63, 0xf4, 0x7d, 0x73, 0x65, 0xc9, 0x09, 0x9c, 0x80, 0x01, 0x8c, 0xfe, 0x2f,
	0x8e, 0x5d, 0x59, 0xcf, 0xec, 0x27, 0xaa, 0x38, 0x64, 0xab, 0x00, 0xd2, 0x20, 0x98, 0x52, 0x0f,
	0x77, 0xb0, 0x4f, 0x39, 0x5a, 0xfb, 0x3a, 0x0d, 0xe7, 0xee, 0x73, 0x39, 0x75, 0xda, 0xa4, 0x18,
	0xb9, 0xf0, 0x82, 0xc0, 0xb6, 0xbd, 0x26, 0x21, 0x98, 0x28, 0xa0, 0x36, 0xb1, 0x39, 0x6b, 0xad,
	0xeb, 0x59, 0x32, 0xf5, 0x47, 0xec, 0xd7, 0x9d, 0x3e, 0xd4, 0x56, 0x0f, 0x7b, 0x6a, 0xe9, 0xb4,
	0xa7, 0x56, 0xbc, 0x34, 0x88, 0xc9, 0x56, 0xd0, 0x71, 0x29, 0xee, 0x84, 0x34, 0x7e, 0x3a, 0x3f,
	0x94, 0x40, 0x1f, 0x00, 0x54, 0x64, 0xae, 0x06, 0xf6, 0x69, 0x14, 0x37, 0x68, 0x1c, 0x62, 0xa2,
	0x94, 0x19, 0xab, 0x99, 0xcd, 0x2a, 0x14, 0x4b, 0xe4, 0xdb, 0xfd, 0xd2, 0x67, 0x71, 0x88, 0xed,
	0xab, 0x42, 0x85, 0xea, 0x65, 0x64, 0x65, 0x35, 0x97, 0x33, 0x01, 0xe8, 0x13, 0x80, 0xcb, 0x43,
	0xaa, 0x08, 0x6d, 0xd2, 0x2e, 0x11, 0xb2, 0x26, 0x98, 0x2c, 0x6b, 0x54, 0x59, 0x75, 0x56, 0xcb,
	0x74, 0x6d, 0x0a, 0x5d, 0x35, 0x2f, 0x2b, 0x2d, 0x0b, 0xbb, 0x92, 0x8d, 0x38, 0xab, 0xac, 0xd5,
	0x6d, 0xef, 0x61, 0x2a, 0x94, 0xfd, 0xf7, 0x77, 0xca, 0x6c, 0x56, 0x9b, 0xab, 0x2c, 0x4d, 0xe7,
	0x29, 0x93, 0x10, 0xe8, 0x39, 0x9c, 0xe6, 0x19, 0xa2, 0x4c, 0x32, 0x19, 0x1b, 0x23, 0xc8, 0xb0,
	0x97, 0x05, 0xef, 0xa2, 0xa8, 0x95, 0x88, 0x06, 0xed, 0x50, 0x98, 0x5c, 0xc7, 0xfe, 0xe5, 0x70,
	0x31, 0x51, 0xa6, 0x18, 0xc1, 0xe6, 0x08, 0x04, 0xec, 0xa1, 0xfe, 0x79, 0x2b, 0xb7, 0x79, 0x9b,
	0xb3, 0xb7, 0x52, 0x24, 0xd0, 0x67, 0x00, 0x2b, 0xe9, 0x98, 0x34, 0x5c, 0x9f, 0xd0, 0xa8, 0xdb,
	0xa6, 0x6e, 0xe0, 0x13, 0x65, 0x9a, 0x71, 0xdf, 0x2a, 0xe4, 0xae, 0xd3, 0x20, 0xc2, 0xbb, 0xf5,
	0xa4, 0xc3, 0x03, 0xa9, 0x41, 0x7a, 0xd4, 0x24, 0x33, 0x2f, 0x1f, 0x75, 0x36, 0xe2, 0xf6, 0xff,
	0xef, 0x0e, 0xd4, 0xd2, 0xaf, 0x03, 0xb5, 0xa4, 0x7d, 0x03, 0x70, 0xb5, 0x60, 0x10, 0xd0, 0x3d,
	0x38, 0xb1, 0x87, 0x63, 0x05, 0xd4, 0x40, 0xfe, 0xf8, 0x8a, 0xfa, 0x9d, 0xa6, 0x1b, 0xd9, 0x8b,
	0xa7, 0x3d, 0x75, 0x7e, 0x0f, 0xc7, 0x92, 0x88, 0x7e, 0x03, 0xf4, 0x12, 0xc2, 0x74, 0x30, 0x95,
	0x32, 0x6b, 0x77, 0xed, 0xdc, 0x6d, 0x90, 0x0e, 0xe4, 0xaa, 0xf0, 0x7c, 0x09, 0x0f, 0x42, 0x12,
	0xc3, 0x4c, 0x12, 0xd4, 0xbe, 0x03, 0xb8, 0x56, 0x34, 0x41, 0x63, 0x33, 0xf4, 0x1a, 0xce, 0x4a,
	0x33, 0x2d, 0x1c, 0x5d, 0x3f, 0xd7, 0x91, 0x34, 0xcb, 0x6b, 0xc2, 0xd2, 0x12, 0x49, 0x62, 0x12,
	0x09, 0x4c, 0xa3, 0x39, 0xa6, 0xd2, 0xd9, 0x19, 0xa7, 0x29, 0x69, 0x1d, 0x8c, 0x6c, 0x4a, 0x5a,
	0x03, 0x89, 0xa9, 0x56, 0x12, 0x93, 0x4d, 0xa5, 0x51, 0xad, 0x01, 0xe7, 0x87, 0x3c, 0xa1, 0xc7,
	0x70, 0x8a, 0x77, 0x17, 0xbc, 0x6b, 0x45, 0xbc, 0xb6, 0x22, 0x88, 0x16, 0x78, 0x46, 0x22, 0x11,
	0x5d, 0xb4, 0x2f, 0x00, 0xa2, 0xb3, 0xa3, 0x8c, 0xee, 0xca, 0x67, 0xa5, 0x16, 0x71, 0x3c, 0xc4,
	0x71, 0xee, 0x49, 0xed, 0xc0, 0x49, 0x76, 0xe9, 0x84, 0xd6, 0xc2, 0x17, 0x1b, 0x5f, 0x21, 0x15,
	0x21, 0xf8, 0x22, 0xab, 0x93, 0xfa, 0xf1, 0x46, 0xda, 0xdb, 0x32, 0xdc, 0x18, 0x61, 0xfa, 0xc7,
	0xf6, 0xac, 0x3f, 0x16, 0xac, 0x28, 0x6e, 0x2a, 0xe7, 0x35, 0xf0, 0x6f, 0x77, 0x93, 0xf6, 0x04,
	0xce, 0x4a, 0xf2, 0x51, 0x0d, 0x96, 0x43, 0x93, 0xb9, 0x9d, 0xb1, 0x17, 0x4e, 0x7b, 0xea, 0x5c,
	0x68, 0x4a, 0x4d, 0xca, 0xa1, 0xc9, 0x10, 0x16, 0x93, 0x3c, 0x40, 0x58, 0x43, 0x08, 0xcb, 0x76,
	0x0e, 0x8f, 0xab, 0xe0, 0xe8, 0xb8, 0x0a, 0x7e, 0x1e, 0x57, 0xc1, 0xfb, 0x93, 0x6a, 0xe9, 0xe8,
	0xa4, 0x5a, 0xfa, 0x71, 0x52, 0x2d, 0xc1, 0x8a, 0x1b, 0x64, 0x9a, 0xdc, 0x01, 0x2f, 0x2c, 0xc7,
	0xa5, 0xaf, 0xba, 0x2d, 0xbd, 0x1d, 0x74, 0x8c, 0x14, 0x72, 0xc3, 0x0d, 0xa4, 0x7f, 0xc6, 0x9b,
	0xc1, 0xd7, 0x11, 0x7b, 0x7d, 0xb6, 0xa6, 0xd8, 0xf7, 0xd0, 0xcd, 0xdf, 0x01, 0x00, 0x00, 0xff,
	0xff, 0xeb, 0xa6, 0xdf, 0x62, 0xb2, 0x09, 0x00, 0x00,
}

func (m *GenesisState) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.SettlementInstructions) > 0 {
		for iNdEx := len(m.SettlementInstructions) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.SettlementInstructions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintGenesis(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x3a
		}
	}
	if len(m.LedgerEntries) > 0 {
		for iNdEx := len(m.LedgerEntries) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.LedgerEntries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintGenesis(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x32
		}
	}
	if len(m.Ledgers) > 0 {
		for iNdEx := len(m.Ledgers) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.Ledgers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintGenesis(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x2a
		}
	}
	if len(m.LedgerClassBucketTypes) > 0 {
		for iNdEx := len(m.LedgerClassBucketTypes) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.LedgerClassBucketTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintGenesis(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x22
		}
	}
	if len(m.LedgerClassStatusTypes) > 0 {
		for iNdEx := len(m.LedgerClassStatusTypes) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.LedgerClassStatusTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintGenesis(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x1a
		}
	}
	if len(m.LedgerClassEntryTypes) > 0 {
		for iNdEx := len(m.LedgerClassEntryTypes) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.LedgerClassEntryTypes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintGenesis(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x12
		}
	}
	if len(m.LedgerClasses) > 0 {
		for iNdEx := len(m.LedgerClasses) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.LedgerClasses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintGenesis(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0xa
		}
	}
	return len(dAtA) - i, nil
}

func (m *GenesisLedgerClassEntryType) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GenesisLedgerClassEntryType) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GenesisLedgerClassEntryType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	{
		size, err := m.EntryType.MarshalToSizedBuffer(dAtA[:i])
		if err != nil {
			return 0, err
		}
		i -= size
		i = encodeVarintGenesis(dAtA, i, uint64(size))
	}
	i--
	dAtA[i] = 0x12
	if m.Key != nil {
		{
			size, err := m.Key.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintGenesis(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *GenesisLedgerClassStatusType) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GenesisLedgerClassStatusType) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GenesisLedgerClassStatusType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	{
		size, err := m.StatusType.MarshalToSizedBuffer(dAtA[:i])
		if err != nil {
			return 0, err
		}
		i -= size
		i = encodeVarintGenesis(dAtA, i, uint64(size))
	}
	i--
	dAtA[i] = 0x12
	if m.Key != nil {
		{
			size, err := m.Key.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintGenesis(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *GenesisLedgerClassBucketType) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GenesisLedgerClassBucketType) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GenesisLedgerClassBucketType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	{
		size, err := m.BucketType.MarshalToSizedBuffer(dAtA[:i])
		if err != nil {
			return 0, err
		}
		i -= size
		i = encodeVarintGenesis(dAtA, i, uint64(size))
	}
	i--
	dAtA[i] = 0x12
	if m.Key != nil {
		{
			size, err := m.Key.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintGenesis(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *GenesisLedger) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GenesisLedger) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GenesisLedger) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	{
		size, err := m.Ledger.MarshalToSizedBuffer(dAtA[:i])
		if err != nil {
			return 0, err
		}
		i -= size
		i = encodeVarintGenesis(dAtA, i, uint64(size))
	}
	i--
	dAtA[i] = 0x12
	return len(dAtA) - i, nil
}

func (m *GenesisLedgerEntry) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GenesisLedgerEntry) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GenesisLedgerEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	{
		size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i])
		if err != nil {
			return 0, err
		}
		i -= size
		i = encodeVarintGenesis(dAtA, i, uint64(size))
	}
	i--
	dAtA[i] = 0x12
	if m.Key != nil {
		{
			size, err := m.Key.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintGenesis(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *GenesisStoredSettlementInstructions) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GenesisStoredSettlementInstructions) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GenesisStoredSettlementInstructions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	{
		size, err := m.SettlementInstructions.MarshalToSizedBuffer(dAtA[:i])
		if err != nil {
			return 0, err
		}
		i -= size
		i = encodeVarintGenesis(dAtA, i, uint64(size))
	}
	i--
	dAtA[i] = 0x12
	if m.Key != nil {
		{
			size, err := m.Key.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintGenesis(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *GenesisPair) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *GenesisPair) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *GenesisPair) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.P2) > 0 {
		i -= len(m.P2)
		copy(dAtA[i:], m.P2)
		i = encodeVarintGenesis(dAtA, i, uint64(len(m.P2)))
		i--
		dAtA[i] = 0x12
	}
	if len(m.P1) > 0 {
		i -= len(m.P1)
		copy(dAtA[i:], m.P1)
		i = encodeVarintGenesis(dAtA, i, uint64(len(m.P1)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
	offset -= sovGenesis(v)
	base := offset
	for v >= 1<<7 {
		dAtA[offset] = uint8(v&0x7f | 0x80)
		v >>= 7
		offset++
	}
	dAtA[offset] = uint8(v)
	return base
}
func (m *GenesisState) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if len(m.LedgerClasses) > 0 {
		for _, e := range m.LedgerClasses {
			l = e.Size()
			n += 1 + l + sovGenesis(uint64(l))
		}
	}
	if len(m.LedgerClassEntryTypes) > 0 {
		for _, e := range m.LedgerClassEntryTypes {
			l = e.Size()
			n += 1 + l + sovGenesis(uint64(l))
		}
	}
	if len(m.LedgerClassStatusTypes) > 0 {
		for _, e := range m.LedgerClassStatusTypes {
			l = e.Size()
			n += 1 + l + sovGenesis(uint64(l))
		}
	}
	if len(m.LedgerClassBucketTypes) > 0 {
		for _, e := range m.LedgerClassBucketTypes {
			l = e.Size()
			n += 1 + l + sovGenesis(uint64(l))
		}
	}
	if len(m.Ledgers) > 0 {
		for _, e := range m.Ledgers {
			l = e.Size()
			n += 1 + l + sovGenesis(uint64(l))
		}
	}
	if len(m.LedgerEntries) > 0 {
		for _, e := range m.LedgerEntries {
			l = e.Size()
			n += 1 + l + sovGenesis(uint64(l))
		}
	}
	if len(m.SettlementInstructions) > 0 {
		for _, e := range m.SettlementInstructions {
			l = e.Size()
			n += 1 + l + sovGenesis(uint64(l))
		}
	}
	return n
}

func (m *GenesisLedgerClassEntryType) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Key != nil {
		l = m.Key.Size()
		n += 1 + l + sovGenesis(uint64(l))
	}
	l = m.EntryType.Size()
	n += 1 + l + sovGenesis(uint64(l))
	return n
}

func (m *GenesisLedgerClassStatusType) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Key != nil {
		l = m.Key.Size()
		n += 1 + l + sovGenesis(uint64(l))
	}
	l = m.StatusType.Size()
	n += 1 + l + sovGenesis(uint64(l))
	return n
}

func (m *GenesisLedgerClassBucketType) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Key != nil {
		l = m.Key.Size()
		n += 1 + l + sovGenesis(uint64(l))
	}
	l = m.BucketType.Size()
	n += 1 + l + sovGenesis(uint64(l))
	return n
}

func (m *GenesisLedger) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = m.Ledger.Size()
	n += 1 + l + sovGenesis(uint64(l))
	return n
}

func (m *GenesisLedgerEntry) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Key != nil {
		l = m.Key.Size()
		n += 1 + l + sovGenesis(uint64(l))
	}
	l = m.Entry.Size()
	n += 1 + l + sovGenesis(uint64(l))
	return n
}

func (m *GenesisStoredSettlementInstructions) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Key != nil {
		l = m.Key.Size()
		n += 1 + l + sovGenesis(uint64(l))
	}
	l = m.SettlementInstructions.Size()
	n += 1 + l + sovGenesis(uint64(l))
	return n
}

func (m *GenesisPair) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.P1)
	if l > 0 {
		n += 1 + l + sovGenesis(uint64(l))
	}
	l = len(m.P2)
	if l > 0 {
		n += 1 + l + sovGenesis(uint64(l))
	}
	return n
}

func sovGenesis(x uint64) (n int) {
	return (math_bits.Len64(x|1) + 6) / 7
}
func sozGenesis(x uint64) (n int) {
	return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *GenesisState) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field LedgerClasses", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.LedgerClasses = append(m.LedgerClasses, LedgerClass{})
			if err := m.LedgerClasses[len(m.LedgerClasses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field LedgerClassEntryTypes", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.LedgerClassEntryTypes = append(m.LedgerClassEntryTypes, GenesisLedgerClassEntryType{})
			if err := m.LedgerClassEntryTypes[len(m.LedgerClassEntryTypes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field LedgerClassStatusTypes", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.LedgerClassStatusTypes = append(m.LedgerClassStatusTypes, GenesisLedgerClassStatusType{})
			if err := m.LedgerClassStatusTypes[len(m.LedgerClassStatusTypes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 4:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field LedgerClassBucketTypes", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.LedgerClassBucketTypes = append(m.LedgerClassBucketTypes, GenesisLedgerClassBucketType{})
			if err := m.LedgerClassBucketTypes[len(m.LedgerClassBucketTypes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 5:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Ledgers", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Ledgers = append(m.Ledgers, GenesisLedger{})
			if err := m.Ledgers[len(m.Ledgers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 6:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field LedgerEntries", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.LedgerEntries = append(m.LedgerEntries, GenesisLedgerEntry{})
			if err := m.LedgerEntries[len(m.LedgerEntries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 7:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field SettlementInstructions", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.SettlementInstructions = append(m.SettlementInstructions, GenesisStoredSettlementInstructions{})
			if err := m.SettlementInstructions[len(m.SettlementInstructions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipGenesis(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthGenesis
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GenesisLedgerClassEntryType) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GenesisLedgerClassEntryType: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GenesisLedgerClassEntryType: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Key == nil {
				m.Key = &GenesisPair{}
			}
			if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field EntryType", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if err := m.EntryType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipGenesis(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthGenesis
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GenesisLedgerClassStatusType) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GenesisLedgerClassStatusType: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GenesisLedgerClassStatusType: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Key == nil {
				m.Key = &GenesisPair{}
			}
			if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field StatusType", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if err := m.StatusType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipGenesis(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthGenesis
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GenesisLedgerClassBucketType) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GenesisLedgerClassBucketType: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GenesisLedgerClassBucketType: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Key == nil {
				m.Key = &GenesisPair{}
			}
			if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field BucketType", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if err := m.BucketType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipGenesis(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthGenesis
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GenesisLedger) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GenesisLedger: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GenesisLedger: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Ledger", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if err := m.Ledger.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipGenesis(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthGenesis
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GenesisLedgerEntry) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GenesisLedgerEntry: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GenesisLedgerEntry: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Key == nil {
				m.Key = &LedgerKey{}
			}
			if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Entry", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if err := m.Entry.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipGenesis(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthGenesis
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GenesisStoredSettlementInstructions) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GenesisStoredSettlementInstructions: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GenesisStoredSettlementInstructions: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Key == nil {
				m.Key = &GenesisPair{}
			}
			if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field SettlementInstructions", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if err := m.SettlementInstructions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipGenesis(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthGenesis
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *GenesisPair) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: GenesisPair: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: GenesisPair: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field P1", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.P1 = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field P2", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthGenesis
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthGenesis
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.P2 = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipGenesis(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthGenesis
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func skipGenesis(dAtA []byte) (n int, err error) {
	l := len(dAtA)
	iNdEx := 0
	depth := 0
	for iNdEx < l {
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return 0, ErrIntOverflowGenesis
			}
			if iNdEx >= l {
				return 0, io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= (uint64(b) & 0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		wireType := int(wire & 0x7)
		switch wireType {
		case 0:
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				iNdEx++
				if dAtA[iNdEx-1] < 0x80 {
					break
				}
			}
		case 1:
			iNdEx += 8
		case 2:
			var length int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowGenesis
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				length |= (int(b) & 0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if length < 0 {
				return 0, ErrInvalidLengthGenesis
			}
			iNdEx += length
		case 3:
			depth++
		case 4:
			if depth == 0 {
				return 0, ErrUnexpectedEndOfGroupGenesis
			}
			depth--
		case 5:
			iNdEx += 4
		default:
			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
		}
		if iNdEx < 0 {
			return 0, ErrInvalidLengthGenesis
		}
		if depth == 0 {
			return iNdEx, nil
		}
	}
	return 0, io.ErrUnexpectedEOF
}

var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
