types

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "ethereum"
	ClientType = "ethereum"
)

Variables

View Source
var (
	ErrInvalidLengthEthereum        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEthereum          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEthereum = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register the module interfaces to protobuf Any.

Types

type AccountUpdate

type AccountUpdate struct {
	AccountProof       []byte `protobuf:"bytes,1,opt,name=account_proof,json=accountProof,proto3" json:"account_proof,omitempty"`
	AccountStorageRoot []byte `protobuf:"bytes,2,opt,name=account_storage_root,json=accountStorageRoot,proto3" json:"account_storage_root,omitempty"`
}

func (*AccountUpdate) Descriptor

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

func (*AccountUpdate) Marshal

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

func (*AccountUpdate) MarshalTo

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

func (*AccountUpdate) MarshalToSizedBuffer

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

func (*AccountUpdate) ProtoMessage

func (*AccountUpdate) ProtoMessage()

func (*AccountUpdate) Reset

func (m *AccountUpdate) Reset()

func (*AccountUpdate) Size

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

func (*AccountUpdate) String

func (m *AccountUpdate) String() string

func (*AccountUpdate) Unmarshal

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

func (*AccountUpdate) ValidateBasic added in v0.2.5

func (u *AccountUpdate) ValidateBasic() error

func (*AccountUpdate) XXX_DiscardUnknown

func (m *AccountUpdate) XXX_DiscardUnknown()

func (*AccountUpdate) XXX_Marshal

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

func (*AccountUpdate) XXX_Merge

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

func (*AccountUpdate) XXX_Size

func (m *AccountUpdate) XXX_Size() int

func (*AccountUpdate) XXX_Unmarshal

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

type BeaconBlockHeader

type BeaconBlockHeader struct {
	Slot          uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
	ProposerIndex uint64 `protobuf:"varint,2,opt,name=proposer_index,json=proposerIndex,proto3" json:"proposer_index,omitempty"`
	ParentRoot    []byte `protobuf:"bytes,3,opt,name=parent_root,json=parentRoot,proto3" json:"parent_root,omitempty"`
	StateRoot     []byte `protobuf:"bytes,4,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	BodyRoot      []byte `protobuf:"bytes,5,opt,name=body_root,json=bodyRoot,proto3" json:"body_root,omitempty"`
}

func (*BeaconBlockHeader) Descriptor

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

func (*BeaconBlockHeader) Marshal

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

func (*BeaconBlockHeader) MarshalTo

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

func (*BeaconBlockHeader) MarshalToSizedBuffer

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

func (*BeaconBlockHeader) ProtoMessage

func (*BeaconBlockHeader) ProtoMessage()

func (*BeaconBlockHeader) Reset

func (m *BeaconBlockHeader) Reset()

func (*BeaconBlockHeader) Size

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

func (*BeaconBlockHeader) String

func (m *BeaconBlockHeader) String() string

func (*BeaconBlockHeader) Unmarshal

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

func (*BeaconBlockHeader) XXX_DiscardUnknown

func (m *BeaconBlockHeader) XXX_DiscardUnknown()

func (*BeaconBlockHeader) XXX_Marshal

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

func (*BeaconBlockHeader) XXX_Merge

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

func (*BeaconBlockHeader) XXX_Size

func (m *BeaconBlockHeader) XXX_Size() int

func (*BeaconBlockHeader) XXX_Unmarshal

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

type ClientState

type ClientState struct {
	GenesisValidatorsRoot        []byte          `` /* 126-byte string literal not displayed */
	MinSyncCommitteeParticipants uint64          `` /* 150-byte string literal not displayed */
	GenesisTime                  uint64          `protobuf:"varint,3,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	ForkParameters               *ForkParameters `protobuf:"bytes,4,opt,name=fork_parameters,json=forkParameters,proto3" json:"fork_parameters,omitempty"`
	SecondsPerSlot               uint64          `protobuf:"varint,5,opt,name=seconds_per_slot,json=secondsPerSlot,proto3" json:"seconds_per_slot,omitempty"`
	SlotsPerEpoch                uint64          `protobuf:"varint,6,opt,name=slots_per_epoch,json=slotsPerEpoch,proto3" json:"slots_per_epoch,omitempty"`
	EpochsPerSyncCommitteePeriod uint64          `` /* 152-byte string literal not displayed */
	IbcAddress                   []byte          `protobuf:"bytes,8,opt,name=ibc_address,json=ibcAddress,proto3" json:"ibc_address,omitempty"`
	IbcCommitmentsSlot           []byte          `protobuf:"bytes,9,opt,name=ibc_commitments_slot,json=ibcCommitmentsSlot,proto3" json:"ibc_commitments_slot,omitempty"`
	TrustLevel                   *Fraction       `protobuf:"bytes,10,opt,name=trust_level,json=trustLevel,proto3" json:"trust_level,omitempty"`
	TrustingPeriod               time.Duration   `protobuf:"bytes,11,opt,name=trusting_period,json=trustingPeriod,proto3,stdduration" json:"trusting_period"`
	MaxClockDrift                time.Duration   `protobuf:"bytes,12,opt,name=max_clock_drift,json=maxClockDrift,proto3,stdduration" json:"max_clock_drift"`
	LatestSlot                   uint64          `protobuf:"varint,13,opt,name=latest_slot,json=latestSlot,proto3" json:"latest_slot,omitempty"`
	LatestExecutionBlockNumber   uint64          `` /* 145-byte string literal not displayed */
	FrozenHeight                 *types.Height   `protobuf:"bytes,15,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
}

func (*ClientState) CheckForMisbehaviour added in v0.2.0

func (cs *ClientState) CheckForMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) bool

func (*ClientState) CheckSubstituteAndUpdateState

func (cs *ClientState) CheckSubstituteAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, subjectClientStore, substituteClientStore sdk.KVStore, substituteClient exported.ClientState) error

func (*ClientState) ClientType

func (cs *ClientState) ClientType() string

func (*ClientState) Descriptor

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

func (*ClientState) ExportMetadata

func (cs *ClientState) ExportMetadata(_ sdk.KVStore) []exported.GenesisMetadata

Genesis function

func (*ClientState) GetLatestHeight

func (cs *ClientState) GetLatestHeight() exported.Height

func (*ClientState) GetTimestampAtHeight added in v0.2.0

func (cs *ClientState) GetTimestampAtHeight(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
) (uint64, error)

func (*ClientState) Initialize

Initialization function Clients must validate the initial consensus state, and may store any client-specific metadata necessary for correct light client operation

func (*ClientState) Marshal

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

func (*ClientState) MarshalTo

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

func (*ClientState) MarshalToSizedBuffer

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

func (*ClientState) ProtoMessage

func (*ClientState) ProtoMessage()

func (*ClientState) Reset

func (m *ClientState) Reset()

func (*ClientState) Size

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

func (*ClientState) Status

func (cs *ClientState) Status(ctx sdk.Context, clientStore sdk.KVStore, cdc codec.BinaryCodec) exported.Status

Status function Clients must return their status. Only Active clients are allowed to process packets.

func (*ClientState) String

func (m *ClientState) String() string

func (*ClientState) Unmarshal

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

func (*ClientState) UpdateState added in v0.2.0

func (cs *ClientState) UpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) []exported.Height

func (*ClientState) UpdateStateOnMisbehaviour added in v0.2.0

func (cs *ClientState) UpdateStateOnMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage)

func (*ClientState) Validate

func (cs *ClientState) Validate() error

func (*ClientState) VerifyClientMessage added in v0.2.0

func (cs *ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore sdk.KVStore, clientMsg exported.ClientMessage) error

func (*ClientState) VerifyMembership added in v0.2.0

func (cs *ClientState) VerifyMembership(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
	delayTimePeriod uint64,
	delayBlockPeriod uint64,
	proof []byte,
	path exported.Path,
	value []byte,
) error

func (*ClientState) VerifyNonMembership added in v0.2.0

func (cs *ClientState) VerifyNonMembership(
	ctx sdk.Context,
	clientStore sdk.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
	delayTimePeriod uint64,
	delayBlockPeriod uint64,
	proof []byte,
	path exported.Path,
) error

func (*ClientState) VerifyUpgradeAndUpdateState

func (cs *ClientState) VerifyUpgradeAndUpdateState(ctx sdk.Context, cdc codec.BinaryCodec, store sdk.KVStore, newClient exported.ClientState, newConsState exported.ConsensusState, proofUpgradeClient []byte, proofUpgradeConsState []byte) error

Upgrade functions NOTE: proof heights are not included as upgrade to a new revision is expected to pass only on the last height committed by the current revision. Clients are responsible for ensuring that the planned last height of the current revision is somehow encoded in the proof verification process. This is to ensure that no premature upgrades occur, since upgrade plans committed to by the counterparty may be cancelled or modified before the last planned height.

func (*ClientState) XXX_DiscardUnknown

func (m *ClientState) XXX_DiscardUnknown()

func (*ClientState) XXX_Marshal

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

func (*ClientState) XXX_Merge

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

func (*ClientState) XXX_Size

func (m *ClientState) XXX_Size() int

func (*ClientState) XXX_Unmarshal

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

func (*ClientState) ZeroCustomFields

func (cs *ClientState) ZeroCustomFields() exported.ClientState

Utility function that zeroes out any client customizable fields in client state Ledger enforced fields are maintained while all custom fields are zero values Used to verify upgrades

type ConsensusState

type ConsensusState struct {
	Slot                 uint64    `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
	StorageRoot          []byte    `protobuf:"bytes,2,opt,name=storage_root,json=storageRoot,proto3" json:"storage_root,omitempty"`
	Timestamp            time.Time `protobuf:"bytes,3,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
	CurrentSyncCommittee []byte    `protobuf:"bytes,4,opt,name=current_sync_committee,json=currentSyncCommittee,proto3" json:"current_sync_committee,omitempty"`
	NextSyncCommittee    []byte    `protobuf:"bytes,5,opt,name=next_sync_committee,json=nextSyncCommittee,proto3" json:"next_sync_committee,omitempty"`
}

func (*ConsensusState) ClientType

func (cs *ConsensusState) ClientType() string

func (*ConsensusState) Descriptor

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

func (*ConsensusState) GetRoot

func (cs *ConsensusState) GetRoot() exported.Root

GetRoot returns the commitment root of the consensus state, which is used for key-value pair verification.

func (*ConsensusState) GetTimestamp

func (cs *ConsensusState) GetTimestamp() uint64

func (*ConsensusState) Marshal

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

func (*ConsensusState) MarshalTo

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

func (*ConsensusState) MarshalToSizedBuffer

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

func (*ConsensusState) ProtoMessage

func (*ConsensusState) ProtoMessage()

func (*ConsensusState) Reset

func (m *ConsensusState) Reset()

func (*ConsensusState) Size

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

func (*ConsensusState) String

func (m *ConsensusState) String() string

func (*ConsensusState) Unmarshal

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

func (*ConsensusState) ValidateBasic

func (cs *ConsensusState) ValidateBasic() error

func (*ConsensusState) XXX_DiscardUnknown

func (m *ConsensusState) XXX_DiscardUnknown()

func (*ConsensusState) XXX_Marshal

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

func (*ConsensusState) XXX_Merge

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

func (*ConsensusState) XXX_Size

func (m *ConsensusState) XXX_Size() int

func (*ConsensusState) XXX_Unmarshal

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

type ExecutionUpdate

type ExecutionUpdate struct {
	StateRoot         []byte   `protobuf:"bytes,1,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	StateRootBranch   [][]byte `protobuf:"bytes,2,rep,name=state_root_branch,json=stateRootBranch,proto3" json:"state_root_branch,omitempty"`
	BlockNumber       uint64   `protobuf:"varint,3,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	BlockNumberBranch [][]byte `protobuf:"bytes,4,rep,name=block_number_branch,json=blockNumberBranch,proto3" json:"block_number_branch,omitempty"`
}

func (*ExecutionUpdate) Descriptor

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

func (*ExecutionUpdate) Marshal

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

func (*ExecutionUpdate) MarshalTo

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

func (*ExecutionUpdate) MarshalToSizedBuffer

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

func (*ExecutionUpdate) ProtoMessage

func (*ExecutionUpdate) ProtoMessage()

func (*ExecutionUpdate) Reset

func (m *ExecutionUpdate) Reset()

func (*ExecutionUpdate) Size

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

func (*ExecutionUpdate) String

func (m *ExecutionUpdate) String() string

func (*ExecutionUpdate) Unmarshal

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

func (*ExecutionUpdate) ValidateBasic added in v0.2.5

func (u *ExecutionUpdate) ValidateBasic() error

func (*ExecutionUpdate) XXX_DiscardUnknown

func (m *ExecutionUpdate) XXX_DiscardUnknown()

func (*ExecutionUpdate) XXX_Marshal

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

func (*ExecutionUpdate) XXX_Merge

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

func (*ExecutionUpdate) XXX_Size

func (m *ExecutionUpdate) XXX_Size() int

func (*ExecutionUpdate) XXX_Unmarshal

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

type FinalizedHeaderMisbehaviour

type FinalizedHeaderMisbehaviour struct {
	ClientId             string                `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	TrustedSyncCommittee *TrustedSyncCommittee `protobuf:"bytes,2,opt,name=trusted_sync_committee,json=trustedSyncCommittee,proto3" json:"trusted_sync_committee,omitempty"`
	ConsensusUpdate_1    *LightClientUpdate    `protobuf:"bytes,3,opt,name=consensus_update_1,json=consensusUpdate1,proto3" json:"consensus_update_1,omitempty"`
	ConsensusUpdate_2    *LightClientUpdate    `protobuf:"bytes,4,opt,name=consensus_update_2,json=consensusUpdate2,proto3" json:"consensus_update_2,omitempty"`
}

func (*FinalizedHeaderMisbehaviour) Descriptor

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

func (*FinalizedHeaderMisbehaviour) Marshal

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

func (*FinalizedHeaderMisbehaviour) MarshalTo

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

func (*FinalizedHeaderMisbehaviour) MarshalToSizedBuffer

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

func (*FinalizedHeaderMisbehaviour) ProtoMessage

func (*FinalizedHeaderMisbehaviour) ProtoMessage()

func (*FinalizedHeaderMisbehaviour) Reset

func (m *FinalizedHeaderMisbehaviour) Reset()

func (*FinalizedHeaderMisbehaviour) Size

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

func (*FinalizedHeaderMisbehaviour) String

func (m *FinalizedHeaderMisbehaviour) String() string

func (*FinalizedHeaderMisbehaviour) Unmarshal

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

func (*FinalizedHeaderMisbehaviour) XXX_DiscardUnknown

func (m *FinalizedHeaderMisbehaviour) XXX_DiscardUnknown()

func (*FinalizedHeaderMisbehaviour) XXX_Marshal

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

func (*FinalizedHeaderMisbehaviour) XXX_Merge

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

func (*FinalizedHeaderMisbehaviour) XXX_Size

func (m *FinalizedHeaderMisbehaviour) XXX_Size() int

func (*FinalizedHeaderMisbehaviour) XXX_Unmarshal

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

type Fork

type Fork struct {
	Version []byte `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Epoch   uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"`
}

func (*Fork) Descriptor

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

func (*Fork) Marshal

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

func (*Fork) MarshalTo

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

func (*Fork) MarshalToSizedBuffer

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

func (*Fork) ProtoMessage

func (*Fork) ProtoMessage()

func (*Fork) Reset

func (m *Fork) Reset()

func (*Fork) Size

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

func (*Fork) String

func (m *Fork) String() string

func (*Fork) Unmarshal

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

func (*Fork) XXX_DiscardUnknown

func (m *Fork) XXX_DiscardUnknown()

func (*Fork) XXX_Marshal

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

func (*Fork) XXX_Merge

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

func (*Fork) XXX_Size

func (m *Fork) XXX_Size() int

func (*Fork) XXX_Unmarshal

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

type ForkParameters

type ForkParameters struct {
	GenesisForkVersion []byte  `protobuf:"bytes,1,opt,name=genesis_fork_version,json=genesisForkVersion,proto3" json:"genesis_fork_version,omitempty"`
	Forks              []*Fork `protobuf:"bytes,2,rep,name=forks,proto3" json:"forks,omitempty"`
}

func (*ForkParameters) Descriptor

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

func (*ForkParameters) Marshal

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

func (*ForkParameters) MarshalTo

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

func (*ForkParameters) MarshalToSizedBuffer

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

func (*ForkParameters) ProtoMessage

func (*ForkParameters) ProtoMessage()

func (*ForkParameters) Reset

func (m *ForkParameters) Reset()

func (*ForkParameters) Size

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

func (*ForkParameters) String

func (m *ForkParameters) String() string

func (*ForkParameters) Unmarshal

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

func (*ForkParameters) XXX_DiscardUnknown

func (m *ForkParameters) XXX_DiscardUnknown()

func (*ForkParameters) XXX_Marshal

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

func (*ForkParameters) XXX_Merge

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

func (*ForkParameters) XXX_Size

func (m *ForkParameters) XXX_Size() int

func (*ForkParameters) XXX_Unmarshal

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

type Fraction

type Fraction struct {
	Numerator   uint64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
	Denominator uint64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"`
}

func (*Fraction) Descriptor

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

func (*Fraction) Marshal

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

func (*Fraction) MarshalTo

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

func (*Fraction) MarshalToSizedBuffer

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

func (*Fraction) ProtoMessage

func (*Fraction) ProtoMessage()

func (*Fraction) Reset

func (m *Fraction) Reset()

func (*Fraction) Size

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

func (*Fraction) String

func (m *Fraction) String() string

func (*Fraction) Unmarshal

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

func (*Fraction) XXX_DiscardUnknown

func (m *Fraction) XXX_DiscardUnknown()

func (*Fraction) XXX_Marshal

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

func (*Fraction) XXX_Merge

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

func (*Fraction) XXX_Size

func (m *Fraction) XXX_Size() int

func (*Fraction) XXX_Unmarshal

func (m *Fraction) XXX_Unmarshal(b []byte) error
type Header struct {
	TrustedSyncCommittee *TrustedSyncCommittee `protobuf:"bytes,1,opt,name=trusted_sync_committee,json=trustedSyncCommittee,proto3" json:"trusted_sync_committee,omitempty"`
	ConsensusUpdate      *LightClientUpdate    `protobuf:"bytes,2,opt,name=consensus_update,json=consensusUpdate,proto3" json:"consensus_update,omitempty"`
	ExecutionUpdate      *ExecutionUpdate      `protobuf:"bytes,3,opt,name=execution_update,json=executionUpdate,proto3" json:"execution_update,omitempty"`
	AccountUpdate        *AccountUpdate        `protobuf:"bytes,4,opt,name=account_update,json=accountUpdate,proto3" json:"account_update,omitempty"`
	// seconds from unix epoch
	Timestamp uint64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

func (*Header) ClientType

func (h *Header) ClientType() string

func (*Header) Descriptor

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

func (*Header) GetHeight

func (h *Header) GetHeight() exported.Height

func (*Header) Marshal

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

func (*Header) MarshalTo

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

func (*Header) MarshalToSizedBuffer

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

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) Size

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

func (*Header) String

func (m *Header) String() string

func (*Header) Unmarshal

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

func (*Header) ValidateBasic

func (h *Header) ValidateBasic() error

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

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

func (*Header) XXX_Merge

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

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

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

type LightClientUpdate

type LightClientUpdate struct {
	AttestedHeader           *BeaconBlockHeader `protobuf:"bytes,1,opt,name=attested_header,json=attestedHeader,proto3" json:"attested_header,omitempty"`
	NextSyncCommittee        *SyncCommittee     `protobuf:"bytes,2,opt,name=next_sync_committee,json=nextSyncCommittee,proto3" json:"next_sync_committee,omitempty"`
	NextSyncCommitteeBranch  [][]byte           `` /* 134-byte string literal not displayed */
	FinalizedHeader          *BeaconBlockHeader `protobuf:"bytes,4,opt,name=finalized_header,json=finalizedHeader,proto3" json:"finalized_header,omitempty"`
	FinalizedHeaderBranch    [][]byte           `` /* 126-byte string literal not displayed */
	FinalizedExecutionRoot   []byte             `` /* 129-byte string literal not displayed */
	FinalizedExecutionBranch [][]byte           `` /* 135-byte string literal not displayed */
	SyncAggregate            *SyncAggregate     `protobuf:"bytes,8,opt,name=sync_aggregate,json=syncAggregate,proto3" json:"sync_aggregate,omitempty"`
	SignatureSlot            uint64             `protobuf:"varint,9,opt,name=signature_slot,json=signatureSlot,proto3" json:"signature_slot,omitempty"`
}

func (*LightClientUpdate) Descriptor

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

func (*LightClientUpdate) Marshal

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

func (*LightClientUpdate) MarshalTo

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

func (*LightClientUpdate) MarshalToSizedBuffer

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

func (*LightClientUpdate) ProtoMessage

func (*LightClientUpdate) ProtoMessage()

func (*LightClientUpdate) Reset

func (m *LightClientUpdate) Reset()

func (*LightClientUpdate) Size

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

func (*LightClientUpdate) String

func (m *LightClientUpdate) String() string

func (*LightClientUpdate) Unmarshal

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

func (*LightClientUpdate) ValidateBasic added in v0.2.5

func (u *LightClientUpdate) ValidateBasic() error

func (*LightClientUpdate) XXX_DiscardUnknown

func (m *LightClientUpdate) XXX_DiscardUnknown()

func (*LightClientUpdate) XXX_Marshal

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

func (*LightClientUpdate) XXX_Merge

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

func (*LightClientUpdate) XXX_Size

func (m *LightClientUpdate) XXX_Size() int

func (*LightClientUpdate) XXX_Unmarshal

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

type NextSyncCommitteeMisbehaviour

type NextSyncCommitteeMisbehaviour struct {
	ClientId             string                `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	TrustedSyncCommittee *TrustedSyncCommittee `protobuf:"bytes,2,opt,name=trusted_sync_committee,json=trustedSyncCommittee,proto3" json:"trusted_sync_committee,omitempty"`
	ConsensusUpdate_1    *LightClientUpdate    `protobuf:"bytes,3,opt,name=consensus_update_1,json=consensusUpdate1,proto3" json:"consensus_update_1,omitempty"`
	ConsensusUpdate_2    *LightClientUpdate    `protobuf:"bytes,4,opt,name=consensus_update_2,json=consensusUpdate2,proto3" json:"consensus_update_2,omitempty"`
}

func (*NextSyncCommitteeMisbehaviour) Descriptor

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

func (*NextSyncCommitteeMisbehaviour) Marshal

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

func (*NextSyncCommitteeMisbehaviour) MarshalTo

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

func (*NextSyncCommitteeMisbehaviour) MarshalToSizedBuffer

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

func (*NextSyncCommitteeMisbehaviour) ProtoMessage

func (*NextSyncCommitteeMisbehaviour) ProtoMessage()

func (*NextSyncCommitteeMisbehaviour) Reset

func (m *NextSyncCommitteeMisbehaviour) Reset()

func (*NextSyncCommitteeMisbehaviour) Size

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

func (*NextSyncCommitteeMisbehaviour) String

func (*NextSyncCommitteeMisbehaviour) Unmarshal

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

func (*NextSyncCommitteeMisbehaviour) XXX_DiscardUnknown

func (m *NextSyncCommitteeMisbehaviour) XXX_DiscardUnknown()

func (*NextSyncCommitteeMisbehaviour) XXX_Marshal

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

func (*NextSyncCommitteeMisbehaviour) XXX_Merge

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

func (*NextSyncCommitteeMisbehaviour) XXX_Size

func (m *NextSyncCommitteeMisbehaviour) XXX_Size() int

func (*NextSyncCommitteeMisbehaviour) XXX_Unmarshal

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

type SyncAggregate

type SyncAggregate struct {
	SyncCommitteeBits      []byte `protobuf:"bytes,1,opt,name=sync_committee_bits,json=syncCommitteeBits,proto3" json:"sync_committee_bits,omitempty"`
	SyncCommitteeSignature []byte `` /* 129-byte string literal not displayed */
}

func (*SyncAggregate) Descriptor

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

func (*SyncAggregate) Marshal

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

func (*SyncAggregate) MarshalTo

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

func (*SyncAggregate) MarshalToSizedBuffer

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

func (*SyncAggregate) ProtoMessage

func (*SyncAggregate) ProtoMessage()

func (*SyncAggregate) Reset

func (m *SyncAggregate) Reset()

func (*SyncAggregate) Size

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

func (*SyncAggregate) String

func (m *SyncAggregate) String() string

func (*SyncAggregate) Unmarshal

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

func (*SyncAggregate) XXX_DiscardUnknown

func (m *SyncAggregate) XXX_DiscardUnknown()

func (*SyncAggregate) XXX_Marshal

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

func (*SyncAggregate) XXX_Merge

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

func (*SyncAggregate) XXX_Size

func (m *SyncAggregate) XXX_Size() int

func (*SyncAggregate) XXX_Unmarshal

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

type SyncCommittee

type SyncCommittee struct {
	Pubkeys         [][]byte `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"`
	AggregatePubkey []byte   `protobuf:"bytes,2,opt,name=aggregate_pubkey,json=aggregatePubkey,proto3" json:"aggregate_pubkey,omitempty"`
}

func (*SyncCommittee) Descriptor

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

func (*SyncCommittee) Marshal

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

func (*SyncCommittee) MarshalTo

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

func (*SyncCommittee) MarshalToSizedBuffer

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

func (*SyncCommittee) ProtoMessage

func (*SyncCommittee) ProtoMessage()

func (*SyncCommittee) Reset

func (m *SyncCommittee) Reset()

func (*SyncCommittee) Size

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

func (*SyncCommittee) String

func (m *SyncCommittee) String() string

func (*SyncCommittee) Unmarshal

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

func (*SyncCommittee) XXX_DiscardUnknown

func (m *SyncCommittee) XXX_DiscardUnknown()

func (*SyncCommittee) XXX_Marshal

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

func (*SyncCommittee) XXX_Merge

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

func (*SyncCommittee) XXX_Size

func (m *SyncCommittee) XXX_Size() int

func (*SyncCommittee) XXX_Unmarshal

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

type TrustedSyncCommittee

type TrustedSyncCommittee struct {
	TrustedHeight *types.Height  `protobuf:"bytes,1,opt,name=trusted_height,json=trustedHeight,proto3" json:"trusted_height,omitempty"`
	SyncCommittee *SyncCommittee `protobuf:"bytes,2,opt,name=sync_committee,json=syncCommittee,proto3" json:"sync_committee,omitempty"`
	IsNext        bool           `protobuf:"varint,3,opt,name=is_next,json=isNext,proto3" json:"is_next,omitempty"`
}

func (*TrustedSyncCommittee) Descriptor

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

func (*TrustedSyncCommittee) Marshal

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

func (*TrustedSyncCommittee) MarshalTo

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

func (*TrustedSyncCommittee) MarshalToSizedBuffer

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

func (*TrustedSyncCommittee) ProtoMessage

func (*TrustedSyncCommittee) ProtoMessage()

func (*TrustedSyncCommittee) Reset

func (m *TrustedSyncCommittee) Reset()

func (*TrustedSyncCommittee) Size

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

func (*TrustedSyncCommittee) String

func (m *TrustedSyncCommittee) String() string

func (*TrustedSyncCommittee) Unmarshal

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

func (*TrustedSyncCommittee) XXX_DiscardUnknown

func (m *TrustedSyncCommittee) XXX_DiscardUnknown()

func (*TrustedSyncCommittee) XXX_Marshal

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

func (*TrustedSyncCommittee) XXX_Merge

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

func (*TrustedSyncCommittee) XXX_Size

func (m *TrustedSyncCommittee) XXX_Size() int

func (*TrustedSyncCommittee) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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