pbc

package
v0.0.0-...-15e8950 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: GPL-3.0 Imports: 28 Imported by: 3

Documentation

Overview

Package pbc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by fastssz. DO NOT EDIT. Hash: 355aaebdfd73fd0a15cffeaed12da442685e3b7cf665e1371a6d5d0ad580f026

Package pbc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pbc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pbc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	AuditorStatus_name = map[int32]string{
		0: "AUDITOR_UNKNOWN_STATUS",
		1: "AUDITOR_PENDING",
		2: "AUDITOR_ACTIVE",
		3: "AUDITOR_EXITING",
		4: "AUDITOR_EXITED",
	}
	AuditorStatus_value = map[string]int32{
		"AUDITOR_UNKNOWN_STATUS": 0,
		"AUDITOR_PENDING":        1,
		"AUDITOR_ACTIVE":         2,
		"AUDITOR_EXITING":        3,
		"AUDITOR_EXITED":         4,
	}
)

Enum value maps for AuditorStatus.

View Source
var (
	ChangeLogType_name = map[int32]string{
		0: "CHANGELOG_INVALID",
		1: "CHANGELOG_AUDIT_START",
		2: "CHANGELOG_AUDIT_STOP",
		3: "CHANGELOG_AUDIT_EXPIRATION",
		4: "CHANGELOG_POR_START",
		5: "CHANGELOG_POR_STOP",
		6: "CHANGELOG_POR_EXPIRATION",
		7: "CHANGELOG_CONTRACT_EXPIRATION",
	}
	ChangeLogType_value = map[string]int32{
		"CHANGELOG_INVALID":             0,
		"CHANGELOG_AUDIT_START":         1,
		"CHANGELOG_AUDIT_STOP":          2,
		"CHANGELOG_AUDIT_EXPIRATION":    3,
		"CHANGELOG_POR_START":           4,
		"CHANGELOG_POR_STOP":            5,
		"CHANGELOG_POR_EXPIRATION":      6,
		"CHANGELOG_CONTRACT_EXPIRATION": 7,
	}
)

Enum value maps for ChangeLogType.

View Source
var (
	StorageStatus_name = map[int32]string{
		0: "STORAGE_INVALID",
		1: "CREATED",
		2: "OPEN",
		3: "AUDIT",
		4: "PAUSED",
		5: "ZOMBIE",
	}
	StorageStatus_value = map[string]int32{
		"STORAGE_INVALID": 0,
		"CREATED":         1,
		"OPEN":            2,
		"AUDIT":           3,
		"PAUSED":          4,
		"ZOMBIE":          5,
	}
)

Enum value maps for StorageStatus.

View Source
var (
	StorageEventType_name = map[int32]string{
		0: "EVENT_INVALID",
		1: "AUDIT_EXPIRATION",
		2: "POR_EXPIRATION",
		3: "CONTRACT_EXPIRATION",
	}
	StorageEventType_value = map[string]int32{
		"EVENT_INVALID":       0,
		"AUDIT_EXPIRATION":    1,
		"POR_EXPIRATION":      2,
		"CONTRACT_EXPIRATION": 3,
	}
)

Enum value maps for StorageEventType.

View Source
var (
	LoggingLevelRequest_Level_name = map[int32]string{
		0: "INFO",
		1: "DEBUG",
		2: "TRACE",
	}
	LoggingLevelRequest_Level_value = map[string]int32{
		"INFO":  0,
		"DEBUG": 1,
		"TRACE": 2,
	}
)

Enum value maps for LoggingLevelRequest_Level.

View Source
var (
	PeerDirection_name = map[int32]string{
		0: "UNKNOWN",
		1: "INBOUND",
		2: "OUTBOUND",
	}
	PeerDirection_value = map[string]int32{
		"UNKNOWN":  0,
		"INBOUND":  1,
		"OUTBOUND": 2,
	}
)

Enum value maps for PeerDirection.

View Source
var (
	ConnectionState_name = map[int32]string{
		0: "DISCONNECTED",
		1: "DISCONNECTING",
		2: "CONNECTED",
		3: "CONNECTING",
	}
	ConnectionState_value = map[string]int32{
		"DISCONNECTED":  0,
		"DISCONNECTING": 1,
		"CONNECTED":     2,
		"CONNECTING":    3,
	}
)

Enum value maps for ConnectionState.

View Source
var (
	ErrMulOverflow  = errors.New("multiplication overflows")
	ErrAddOverflow  = errors.New("addition overflows")
	ErrSubUnderflow = errors.New("subtraction underflow")
	ErrDivByZero    = errors.New("integer divide by zero")
)
View Source
var (
	SetAction_name = map[int32]string{
		0: "ADD_VALIDATOR_KEYS",
		1: "REMOVE_VALIDATOR_KEYS",
		2: "SET_VALIDATOR_KEYS",
	}
	SetAction_value = map[string]int32{
		"ADD_VALIDATOR_KEYS":    0,
		"REMOVE_VALIDATOR_KEYS": 1,
		"SET_VALIDATOR_KEYS":    2,
	}
)

Enum value maps for SetAction.

View Source
var (
	TxType_name = map[int32]string{
		0: "TX_INVALID",
		1: "BALANCE_TRANSFER",
		2: "VALIDATOR_DEPOSIT",
		3: "VALIDATOR_EXIT",
		4: "AUDITOR_DEPOSIT",
		5: "AUDITOR_EXIT",
		6: "OBJECT_COMMIT",
		7: "OBJECT_AUDIT",
		8: "OBJECT_CHALLENGE",
		9: "OBJECT_POR",
	}
	TxType_value = map[string]int32{
		"TX_INVALID":        0,
		"BALANCE_TRANSFER":  1,
		"VALIDATOR_DEPOSIT": 2,
		"VALIDATOR_EXIT":    3,
		"AUDITOR_DEPOSIT":   4,
		"AUDITOR_EXIT":      5,
		"OBJECT_COMMIT":     6,
		"OBJECT_AUDIT":      7,
		"OBJECT_CHALLENGE":  8,
		"OBJECT_POR":        9,
	}
)

Enum value maps for TxType.

View Source
var (
	ValidatorStatus_name = map[int32]string{
		0: "VALIDATOR_UNKNOWN_STATUS",
		1: "VALIDATOR_PENDING",
		2: "VALIDATOR_ACTIVE",
		3: "VALIDATOR_EXITING",
		4: "VALIDATOR_SLASHING",
		5: "VALIDATOR_EXITED",
	}
	ValidatorStatus_value = map[string]int32{
		"VALIDATOR_UNKNOWN_STATUS": 0,
		"VALIDATOR_PENDING":        1,
		"VALIDATOR_ACTIVE":         2,
		"VALIDATOR_EXITING":        3,
		"VALIDATOR_SLASHING":       4,
		"VALIDATOR_EXITED":         5,
	}
)

Enum value maps for ValidatorStatus.

View Source
var File_consensus_account_proto protoreflect.FileDescriptor
View Source
var File_consensus_attestation_proto protoreflect.FileDescriptor
View Source
var File_consensus_auditor_proto protoreflect.FileDescriptor
View Source
var File_consensus_block_proto protoreflect.FileDescriptor
View Source
var File_consensus_changelog_proto protoreflect.FileDescriptor
View Source
var File_consensus_contract_proto protoreflect.FileDescriptor
View Source
var File_consensus_debug_proto protoreflect.FileDescriptor
View Source
var File_consensus_events_proto protoreflect.FileDescriptor
View Source
var File_consensus_finalized_block_root_container_proto protoreflect.FileDescriptor
View Source
var File_consensus_info_proto protoreflect.FileDescriptor
View Source
var File_consensus_node_proto protoreflect.FileDescriptor
View Source
var File_consensus_p2p_messages_proto protoreflect.FileDescriptor
View Source
var File_consensus_sign_proto protoreflect.FileDescriptor
View Source
var File_consensus_slasher_proto protoreflect.FileDescriptor
View Source
var File_consensus_state_proto protoreflect.FileDescriptor
View Source
var File_consensus_swagger_proto protoreflect.FileDescriptor
View Source
var File_consensus_transaction_proto protoreflect.FileDescriptor
View Source
var File_consensus_validator_proto protoreflect.FileDescriptor

Functions

func Add64

func Add64(a, b uint64) (uint64, error)

Add64 adds two 64-bit unsigned integers and checks if they lead to an overflow. If they do not, it returns the result without an error.

func Div64

func Div64(a, b uint64) (uint64, error)

Div64 divides two 64-bit unsigned integers and checks for errors.

func HexDecodeOrDie

func HexDecodeOrDie(t *testing.T, str string) []byte

func Mod64

func Mod64(a, b uint64) (uint64, error)

Mod64 finds remainder of division of two 64-bit unsigned integers and checks for errors.

func Mul64

func Mul64(a, b uint64) (uint64, error)

Mul64 multiples two 64-bit unsigned integers and checks if they lead to an overflow. If they do not, it returns the result without an error.

func RegisterDebugHandler

func RegisterDebugHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDebugHandler registers the http handlers for service Debug to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDebugHandlerClient

func RegisterDebugHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DebugClient) error

RegisterDebugHandlerClient registers the http handlers for service Debug to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DebugClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DebugClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DebugClient" to call the correct interceptors.

func RegisterDebugHandlerFromEndpoint

func RegisterDebugHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDebugHandlerFromEndpoint is same as RegisterDebugHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDebugHandlerServer

func RegisterDebugHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DebugServer) error

RegisterDebugHandlerServer registers the http handlers for service Debug to "mux". UnaryRPC :call DebugServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDebugHandlerFromEndpoint instead.

func RegisterDebugServer

func RegisterDebugServer(s *grpc.Server, srv DebugServer)

func RegisterInfoHandler

func RegisterInfoHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterInfoHandler registers the http handlers for service Info to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterInfoHandlerClient

func RegisterInfoHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfoClient) error

RegisterInfoHandlerClient registers the http handlers for service Info to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InfoClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InfoClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InfoClient" to call the correct interceptors.

func RegisterInfoHandlerFromEndpoint

func RegisterInfoHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterInfoHandlerFromEndpoint is same as RegisterInfoHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterInfoHandlerServer

func RegisterInfoHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfoServer) error

RegisterInfoHandlerServer registers the http handlers for service Info to "mux". UnaryRPC :call InfoServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInfoHandlerFromEndpoint instead.

func RegisterInfoServer

func RegisterInfoServer(s *grpc.Server, srv InfoServer)

func RegisterNodeHandler

func RegisterNodeHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterNodeHandler registers the http handlers for service Node to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterNodeHandlerClient

func RegisterNodeHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NodeClient) error

RegisterNodeHandlerClient registers the http handlers for service Node to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NodeClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NodeClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NodeClient" to call the correct interceptors.

func RegisterNodeHandlerFromEndpoint

func RegisterNodeHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterNodeHandlerFromEndpoint is same as RegisterNodeHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterNodeHandlerServer

func RegisterNodeHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NodeServer) error

RegisterNodeHandlerServer registers the http handlers for service Node to "mux". UnaryRPC :call NodeServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNodeHandlerFromEndpoint instead.

func RegisterNodeServer

func RegisterNodeServer(s *grpc.Server, srv NodeServer)

func RegisterSlasherHandler

func RegisterSlasherHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSlasherHandler registers the http handlers for service Slasher to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSlasherHandlerClient

func RegisterSlasherHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SlasherClient) error

RegisterSlasherHandlerClient registers the http handlers for service Slasher to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SlasherClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SlasherClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SlasherClient" to call the correct interceptors.

func RegisterSlasherHandlerFromEndpoint

func RegisterSlasherHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSlasherHandlerFromEndpoint is same as RegisterSlasherHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSlasherHandlerServer

func RegisterSlasherHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SlasherServer) error

RegisterSlasherHandlerServer registers the http handlers for service Slasher to "mux". UnaryRPC :call SlasherServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSlasherHandlerFromEndpoint instead.

func RegisterSlasherServer

func RegisterSlasherServer(s *grpc.Server, srv SlasherServer)

func Sub64

func Sub64(a, b uint64) (uint64, error)

Sub64 subtracts two 64-bit unsigned integers and checks for errors.

Types

type Account

type Account struct {
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// Latest account nonce.
	Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Account balance.
	Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"`
	// Storage stats.
	Storage *Storage `protobuf:"bytes,4,opt,name=storage,proto3" json:"storage,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Copy

func (a *Account) Copy() *Account

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetBalance

func (x *Account) GetBalance() uint64

func (*Account) GetNonce

func (x *Account) GetNonce() uint64

func (*Account) GetPublicKey

func (x *Account) GetPublicKey() []byte

func (*Account) GetStorage

func (x *Account) GetStorage() *Storage

func (*Account) HashTreeRoot

func (a *Account) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Account object

func (*Account) HashTreeRootWith

func (a *Account) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Account object with a hasher

func (*Account) MarshalSSZ

func (a *Account) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Account object

func (*Account) MarshalSSZTo

func (a *Account) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Account object to a target array

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) SizeSSZ

func (a *Account) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Account object

func (*Account) String

func (x *Account) String() string

func (*Account) UnmarshalSSZ

func (a *Account) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Account object

type AccountRequest

type AccountRequest struct {
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountRequest) Descriptor deprecated

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

Deprecated: Use AccountRequest.ProtoReflect.Descriptor instead.

func (*AccountRequest) GetAddress

func (x *AccountRequest) GetAddress() []byte

func (*AccountRequest) ProtoMessage

func (*AccountRequest) ProtoMessage()

func (*AccountRequest) ProtoReflect

func (x *AccountRequest) ProtoReflect() protoreflect.Message

func (*AccountRequest) Reset

func (x *AccountRequest) Reset()

func (*AccountRequest) String

func (x *AccountRequest) String() string

type ActiveSetChanges

type ActiveSetChanges struct {

	// Epoch which the state was considered to determine the active validator
	// set.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// 48 byte validator public keys that have been activated in the given epoch.
	ActivatedPublicKeys [][]byte `` /* 136-byte string literal not displayed */
	// Indices of validators activated in the given epoch.
	ActivatedIndices []ValidatorIndex `` /* 144-byte string literal not displayed */
	// 48 byte validator public keys that have been voluntarily exited in the given epoch.
	ExitedPublicKeys [][]byte `` /* 127-byte string literal not displayed */
	// Indices of validators exited in the given epoch.
	ExitedIndices []ValidatorIndex `` /* 135-byte string literal not displayed */
	// 48 byte validator public keys that have been slashed in the given epoch.
	SlashedPublicKeys [][]byte `` /* 130-byte string literal not displayed */
	// Indices of validators slashed in the given epoch.
	SlashedIndices []ValidatorIndex `` /* 138-byte string literal not displayed */
	// 48 byte validator public keys that have been involuntarily ejected in this epoch.
	EjectedPublicKeys [][]byte `` /* 130-byte string literal not displayed */
	// Indices of validators ejected in the given epoch.
	EjectedIndices []ValidatorIndex `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ActiveSetChanges) Descriptor deprecated

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

Deprecated: Use ActiveSetChanges.ProtoReflect.Descriptor instead.

func (*ActiveSetChanges) GetActivatedIndices

func (x *ActiveSetChanges) GetActivatedIndices() []ValidatorIndex

func (*ActiveSetChanges) GetActivatedPublicKeys

func (x *ActiveSetChanges) GetActivatedPublicKeys() [][]byte

func (*ActiveSetChanges) GetEjectedIndices

func (x *ActiveSetChanges) GetEjectedIndices() []ValidatorIndex

func (*ActiveSetChanges) GetEjectedPublicKeys

func (x *ActiveSetChanges) GetEjectedPublicKeys() [][]byte

func (*ActiveSetChanges) GetEpoch

func (x *ActiveSetChanges) GetEpoch() Epoch

func (*ActiveSetChanges) GetExitedIndices

func (x *ActiveSetChanges) GetExitedIndices() []ValidatorIndex

func (*ActiveSetChanges) GetExitedPublicKeys

func (x *ActiveSetChanges) GetExitedPublicKeys() [][]byte

func (*ActiveSetChanges) GetSlashedIndices

func (x *ActiveSetChanges) GetSlashedIndices() []ValidatorIndex

func (*ActiveSetChanges) GetSlashedPublicKeys

func (x *ActiveSetChanges) GetSlashedPublicKeys() [][]byte

func (*ActiveSetChanges) ProtoMessage

func (*ActiveSetChanges) ProtoMessage()

func (*ActiveSetChanges) ProtoReflect

func (x *ActiveSetChanges) ProtoReflect() protoreflect.Message

func (*ActiveSetChanges) Reset

func (x *ActiveSetChanges) Reset()

func (*ActiveSetChanges) String

func (x *ActiveSetChanges) String() string

type AggregateAttestationAndProof

type AggregateAttestationAndProof struct {

	// The aggregator index that submitted this aggregated attestation and proof.
	AggregatorIndex ValidatorIndex `` /* 134-byte string literal not displayed */
	// The aggregated attestation that was submitted.
	Aggregate *Attestation `protobuf:"bytes,3,opt,name=aggregate,proto3" json:"aggregate,omitempty"`
	// 96 byte selection proof signed by the aggregator, which is the signature of the slot to aggregate.
	SelectionProof []byte `protobuf:"bytes,2,opt,name=selection_proof,json=selectionProof,proto3" json:"selection_proof,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

func (*AggregateAttestationAndProof) Descriptor deprecated

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

Deprecated: Use AggregateAttestationAndProof.ProtoReflect.Descriptor instead.

func (*AggregateAttestationAndProof) GetAggregate

func (x *AggregateAttestationAndProof) GetAggregate() *Attestation

func (*AggregateAttestationAndProof) GetAggregatorIndex

func (x *AggregateAttestationAndProof) GetAggregatorIndex() ValidatorIndex

func (*AggregateAttestationAndProof) GetSelectionProof

func (x *AggregateAttestationAndProof) GetSelectionProof() []byte

func (*AggregateAttestationAndProof) HashTreeRoot

func (a *AggregateAttestationAndProof) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the AggregateAttestationAndProof object

func (*AggregateAttestationAndProof) HashTreeRootWith

func (a *AggregateAttestationAndProof) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the AggregateAttestationAndProof object with a hasher

func (*AggregateAttestationAndProof) MarshalSSZ

func (a *AggregateAttestationAndProof) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the AggregateAttestationAndProof object

func (*AggregateAttestationAndProof) MarshalSSZTo

func (a *AggregateAttestationAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the AggregateAttestationAndProof object to a target array

func (*AggregateAttestationAndProof) ProtoMessage

func (*AggregateAttestationAndProof) ProtoMessage()

func (*AggregateAttestationAndProof) ProtoReflect

func (*AggregateAttestationAndProof) Reset

func (x *AggregateAttestationAndProof) Reset()

func (*AggregateAttestationAndProof) SizeSSZ

func (a *AggregateAttestationAndProof) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the AggregateAttestationAndProof object

func (*AggregateAttestationAndProof) String

func (*AggregateAttestationAndProof) UnmarshalSSZ

func (a *AggregateAttestationAndProof) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the AggregateAttestationAndProof object

type AggregateSelectionRequest

type AggregateSelectionRequest struct {

	// Slot for which the aggregation request applies.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Committee index of the validator at the given slot.
	CommitteeIndex CommitteeIndex `` /* 131-byte string literal not displayed */
	// 48 byte public key of the validator.
	PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// 96 byte signature of the validator on the slot. This is used as proof that the validator is
	// an aggregator for the given slot.
	SlotSignature []byte `protobuf:"bytes,4,opt,name=slot_signature,json=slotSignature,proto3" json:"slot_signature,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

func (*AggregateSelectionRequest) Descriptor deprecated

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

Deprecated: Use AggregateSelectionRequest.ProtoReflect.Descriptor instead.

func (*AggregateSelectionRequest) GetCommitteeIndex

func (x *AggregateSelectionRequest) GetCommitteeIndex() CommitteeIndex

func (*AggregateSelectionRequest) GetPublicKey

func (x *AggregateSelectionRequest) GetPublicKey() []byte

func (*AggregateSelectionRequest) GetSlot

func (x *AggregateSelectionRequest) GetSlot() Slot

func (*AggregateSelectionRequest) GetSlotSignature

func (x *AggregateSelectionRequest) GetSlotSignature() []byte

func (*AggregateSelectionRequest) ProtoMessage

func (*AggregateSelectionRequest) ProtoMessage()

func (*AggregateSelectionRequest) ProtoReflect

func (*AggregateSelectionRequest) Reset

func (x *AggregateSelectionRequest) Reset()

func (*AggregateSelectionRequest) String

func (x *AggregateSelectionRequest) String() string

type AggregateSelectionResponse

type AggregateSelectionResponse struct {

	// The aggregate and proof message without the signature.
	AggregateAndProof *AggregateAttestationAndProof `protobuf:"bytes,1,opt,name=aggregate_and_proof,json=aggregateAndProof,proto3" json:"aggregate_and_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*AggregateSelectionResponse) Descriptor deprecated

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

Deprecated: Use AggregateSelectionResponse.ProtoReflect.Descriptor instead.

func (*AggregateSelectionResponse) GetAggregateAndProof

func (x *AggregateSelectionResponse) GetAggregateAndProof() *AggregateAttestationAndProof

func (*AggregateSelectionResponse) ProtoMessage

func (*AggregateSelectionResponse) ProtoMessage()

func (*AggregateSelectionResponse) ProtoReflect

func (*AggregateSelectionResponse) Reset

func (x *AggregateSelectionResponse) Reset()

func (*AggregateSelectionResponse) String

func (x *AggregateSelectionResponse) String() string

type AttestResponse

type AttestResponse struct {

	// The root of the attestation data successfully submitted to the node.
	AttestationDataRoot []byte `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AttestResponse) Descriptor deprecated

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

Deprecated: Use AttestResponse.ProtoReflect.Descriptor instead.

func (*AttestResponse) GetAttestationDataRoot

func (x *AttestResponse) GetAttestationDataRoot() []byte

func (*AttestResponse) ProtoMessage

func (*AttestResponse) ProtoMessage()

func (*AttestResponse) ProtoReflect

func (x *AttestResponse) ProtoReflect() protoreflect.Message

func (*AttestResponse) Reset

func (x *AttestResponse) Reset()

func (*AttestResponse) String

func (x *AttestResponse) String() string

type Attestation

type Attestation struct {

	// A bitfield representation of validator indices that have voted exactly
	// the same vote and have been aggregated into this attestation.
	AggregationBits github_com_prysmaticlabs_go_bitfield.Bitlist `` /* 178-byte string literal not displayed */
	Data            *AttestationData                             `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// 96 byte BLS aggregate signature.
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

func CopyAttestation

func CopyAttestation(att *Attestation) *Attestation

CopyAttestation copies the provided attestation object.

func CopyAttestations

func CopyAttestations(attestations []*Attestation) []*Attestation

CopyAttestations copies the provided Attestation array.

func (*Attestation) Descriptor deprecated

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

Deprecated: Use Attestation.ProtoReflect.Descriptor instead.

func (*Attestation) GetAggregationBits

func (*Attestation) GetData

func (x *Attestation) GetData() *AttestationData

func (*Attestation) GetSignature

func (x *Attestation) GetSignature() []byte

func (*Attestation) HashTreeRoot

func (a *Attestation) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Attestation object

func (*Attestation) HashTreeRootWith

func (a *Attestation) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Attestation object with a hasher

func (*Attestation) MarshalSSZ

func (a *Attestation) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Attestation object

func (*Attestation) MarshalSSZTo

func (a *Attestation) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Attestation object to a target array

func (*Attestation) ProtoMessage

func (*Attestation) ProtoMessage()

func (*Attestation) ProtoReflect

func (x *Attestation) ProtoReflect() protoreflect.Message

func (*Attestation) Reset

func (x *Attestation) Reset()

func (*Attestation) SizeSSZ

func (a *Attestation) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Attestation object

func (*Attestation) String

func (x *Attestation) String() string

func (*Attestation) UnmarshalSSZ

func (a *Attestation) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Attestation object

type AttestationData

type AttestationData struct {

	// Slot of the attestation attesting for.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// The committee index that submitted this attestation.
	CommitteeIndex CommitteeIndex `` /* 131-byte string literal not displayed */
	// 32 byte root of the LMD GHOST block vote.
	BeaconBlockRoot []byte `protobuf:"bytes,3,opt,name=beacon_block_root,json=beaconBlockRoot,proto3" json:"beacon_block_root,omitempty" ssz-size:"32"`
	// The most recent justified checkpoint in the state
	Source *Checkpoint `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	// The checkpoint attempting to be justified for the current epoch and its epoch boundary block
	Target *Checkpoint `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func CopyAttestationData

func CopyAttestationData(attData *AttestationData) *AttestationData

CopyAttestationData copies the provided AttestationData object.

func (*AttestationData) Descriptor deprecated

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

Deprecated: Use AttestationData.ProtoReflect.Descriptor instead.

func (*AttestationData) GetBeaconBlockRoot

func (x *AttestationData) GetBeaconBlockRoot() []byte

func (*AttestationData) GetCommitteeIndex

func (x *AttestationData) GetCommitteeIndex() CommitteeIndex

func (*AttestationData) GetSlot

func (x *AttestationData) GetSlot() Slot

func (*AttestationData) GetSource

func (x *AttestationData) GetSource() *Checkpoint

func (*AttestationData) GetTarget

func (x *AttestationData) GetTarget() *Checkpoint

func (*AttestationData) HashTreeRoot

func (a *AttestationData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the AttestationData object

func (*AttestationData) HashTreeRootWith

func (a *AttestationData) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the AttestationData object with a hasher

func (*AttestationData) MarshalSSZ

func (a *AttestationData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the AttestationData object

func (*AttestationData) MarshalSSZTo

func (a *AttestationData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the AttestationData object to a target array

func (*AttestationData) ProtoMessage

func (*AttestationData) ProtoMessage()

func (*AttestationData) ProtoReflect

func (x *AttestationData) ProtoReflect() protoreflect.Message

func (*AttestationData) Reset

func (x *AttestationData) Reset()

func (*AttestationData) SizeSSZ

func (a *AttestationData) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the AttestationData object

func (*AttestationData) String

func (x *AttestationData) String() string

func (*AttestationData) UnmarshalSSZ

func (a *AttestationData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the AttestationData object

type AttestationDataRequest

type AttestationDataRequest struct {

	// Slot for which the attestation should be created.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Committee index the attestation should be created for.
	CommitteeIndex CommitteeIndex `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AttestationDataRequest) Descriptor deprecated

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

Deprecated: Use AttestationDataRequest.ProtoReflect.Descriptor instead.

func (*AttestationDataRequest) GetCommitteeIndex

func (x *AttestationDataRequest) GetCommitteeIndex() CommitteeIndex

func (*AttestationDataRequest) GetSlot

func (x *AttestationDataRequest) GetSlot() Slot

func (*AttestationDataRequest) ProtoMessage

func (*AttestationDataRequest) ProtoMessage()

func (*AttestationDataRequest) ProtoReflect

func (x *AttestationDataRequest) ProtoReflect() protoreflect.Message

func (*AttestationDataRequest) Reset

func (x *AttestationDataRequest) Reset()

func (*AttestationDataRequest) String

func (x *AttestationDataRequest) String() string

type AttestationHistory

type AttestationHistory struct {

	// Deprecated: Do not use.
	TargetToSource map[uint64]uint64 `` /* 195-byte string literal not displayed */
	// Deprecated: Do not use.
	LatestEpochWritten Epoch `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

AttestationHistory defines the structure for recording a validator's historical attestation. Using a map[uint64]uint64 to map its target epoch to its source epoch, in order to detect if a vote being created is not a double vote and surrounded by, or surrounding any other votes. Using an uint64 to mark the latest written epoch, we can safely perform a rolling prune whenever the history is updated.

func (*AttestationHistory) Descriptor deprecated

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

Deprecated: Use AttestationHistory.ProtoReflect.Descriptor instead.

func (*AttestationHistory) GetLatestEpochWritten deprecated

func (x *AttestationHistory) GetLatestEpochWritten() Epoch

Deprecated: Do not use.

func (*AttestationHistory) GetTargetToSource deprecated

func (x *AttestationHistory) GetTargetToSource() map[uint64]uint64

Deprecated: Do not use.

func (*AttestationHistory) ProtoMessage

func (*AttestationHistory) ProtoMessage()

func (*AttestationHistory) ProtoReflect

func (x *AttestationHistory) ProtoReflect() protoreflect.Message

func (*AttestationHistory) Reset

func (x *AttestationHistory) Reset()

func (*AttestationHistory) String

func (x *AttestationHistory) String() string

type AttestationPoolRequest

type AttestationPoolRequest struct {

	// The maximum number of objects to return in the response.
	// This field is optional.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A pagination token returned from a previous call
	// that indicates where this listing should continue from.
	// This field is optional.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*AttestationPoolRequest) Descriptor deprecated

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

Deprecated: Use AttestationPoolRequest.ProtoReflect.Descriptor instead.

func (*AttestationPoolRequest) GetPageSize

func (x *AttestationPoolRequest) GetPageSize() int32

func (*AttestationPoolRequest) GetPageToken

func (x *AttestationPoolRequest) GetPageToken() string

func (*AttestationPoolRequest) ProtoMessage

func (*AttestationPoolRequest) ProtoMessage()

func (*AttestationPoolRequest) ProtoReflect

func (x *AttestationPoolRequest) ProtoReflect() protoreflect.Message

func (*AttestationPoolRequest) Reset

func (x *AttestationPoolRequest) Reset()

func (*AttestationPoolRequest) String

func (x *AttestationPoolRequest) String() string

type AttestationPoolResponse

type AttestationPoolResponse struct {

	// List of attestations currently in the pool of the chain.
	Attestations []*Attestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations,omitempty"`
	// A pagination token returned from a previous call
	// that indicates where this listing should continue from.
	// This field is optional.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of objects matching the request filter.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*AttestationPoolResponse) Descriptor deprecated

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

Deprecated: Use AttestationPoolResponse.ProtoReflect.Descriptor instead.

func (*AttestationPoolResponse) GetAttestations

func (x *AttestationPoolResponse) GetAttestations() []*Attestation

func (*AttestationPoolResponse) GetNextPageToken

func (x *AttestationPoolResponse) GetNextPageToken() string

func (*AttestationPoolResponse) GetTotalSize

func (x *AttestationPoolResponse) GetTotalSize() int32

func (*AttestationPoolResponse) ProtoMessage

func (*AttestationPoolResponse) ProtoMessage()

func (*AttestationPoolResponse) ProtoReflect

func (x *AttestationPoolResponse) ProtoReflect() protoreflect.Message

func (*AttestationPoolResponse) Reset

func (x *AttestationPoolResponse) Reset()

func (*AttestationPoolResponse) String

func (x *AttestationPoolResponse) String() string

type AttesterSlashing

type AttesterSlashing struct {

	// First conflicting attestation.
	Attestation_1 *IndexedAttestation `protobuf:"bytes,1,opt,name=attestation_1,json=attestation1,proto3" json:"attestation_1,omitempty"`
	// Second conflicting attestation.
	Attestation_2 *IndexedAttestation `protobuf:"bytes,2,opt,name=attestation_2,json=attestation2,proto3" json:"attestation_2,omitempty"`
	// contains filtered or unexported fields
}

Attestor slashings are proofs that a slashable offense has been committed by attestating to two conflicting pieces of information by the same validator.

func CopyAttesterSlashings

func CopyAttesterSlashings(slashings []*AttesterSlashing) []*AttesterSlashing

CopyAttesterSlashings copies the provided AttesterSlashings array.

func (*AttesterSlashing) Descriptor deprecated

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

Deprecated: Use AttesterSlashing.ProtoReflect.Descriptor instead.

func (*AttesterSlashing) GetAttestation_1

func (x *AttesterSlashing) GetAttestation_1() *IndexedAttestation

func (*AttesterSlashing) GetAttestation_2

func (x *AttesterSlashing) GetAttestation_2() *IndexedAttestation

func (*AttesterSlashing) HashTreeRoot

func (a *AttesterSlashing) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the AttesterSlashing object

func (*AttesterSlashing) HashTreeRootWith

func (a *AttesterSlashing) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the AttesterSlashing object with a hasher

func (*AttesterSlashing) MarshalSSZ

func (a *AttesterSlashing) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the AttesterSlashing object

func (*AttesterSlashing) MarshalSSZTo

func (a *AttesterSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the AttesterSlashing object to a target array

func (*AttesterSlashing) ProtoMessage

func (*AttesterSlashing) ProtoMessage()

func (*AttesterSlashing) ProtoReflect

func (x *AttesterSlashing) ProtoReflect() protoreflect.Message

func (*AttesterSlashing) Reset

func (x *AttesterSlashing) Reset()

func (*AttesterSlashing) SizeSSZ

func (a *AttesterSlashing) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the AttesterSlashing object

func (*AttesterSlashing) String

func (x *AttesterSlashing) String() string

func (*AttesterSlashing) UnmarshalSSZ

func (a *AttesterSlashing) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the AttesterSlashing object

type AttesterSlashingResponse

type AttesterSlashingResponse struct {
	AttesterSlashings []*AttesterSlashing `protobuf:"bytes,1,rep,name=attester_slashings,json=attesterSlashings,proto3" json:"attester_slashings,omitempty"`
	// contains filtered or unexported fields
}

func (*AttesterSlashingResponse) Descriptor deprecated

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

Deprecated: Use AttesterSlashingResponse.ProtoReflect.Descriptor instead.

func (*AttesterSlashingResponse) GetAttesterSlashings

func (x *AttesterSlashingResponse) GetAttesterSlashings() []*AttesterSlashing

func (*AttesterSlashingResponse) ProtoMessage

func (*AttesterSlashingResponse) ProtoMessage()

func (*AttesterSlashingResponse) ProtoReflect

func (x *AttesterSlashingResponse) ProtoReflect() protoreflect.Message

func (*AttesterSlashingResponse) Reset

func (x *AttesterSlashingResponse) Reset()

func (*AttesterSlashingResponse) String

func (x *AttesterSlashingResponse) String() string

type Audit

type Audit struct {

	// The public key of the auditor.
	Auditor []byte `protobuf:"bytes,1,opt,name=auditor,proto3" json:"auditor,omitempty" ssz-size:"48"`
	// Audit start slot.
	Start Slot `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty" cast-type:"Slot"`
	// Hash of encoded data generated by audit.
	EncodedHash []byte `protobuf:"bytes,3,opt,name=encoded_hash,json=encodedHash,proto3" json:"encoded_hash,omitempty" ssz-size:"32"`
	// Size of encoded data generated by audit.
	EncodedSize uint64 `protobuf:"varint,4,opt,name=encoded_size,json=encodedSize,proto3" json:"encoded_size,omitempty"`
	// Number of blocks of encoded data.
	NumBlocks uint32 `protobuf:"varint,5,opt,name=num_blocks,json=numBlocks,proto3" json:"num_blocks,omitempty"`
	// An array of random elements used to generated block signature.
	// The count is equal to sectors_per_block.
	Rands [][]byte `protobuf:"bytes,6,rep,name=rands,proto3" json:"rands,omitempty" ssz-max:"64,96"`
	// contains filtered or unexported fields
}

Audit defines information for encoded object data generated by audit.

func (*Audit) Descriptor deprecated

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

Deprecated: Use Audit.ProtoReflect.Descriptor instead.

func (*Audit) GetAuditor

func (x *Audit) GetAuditor() []byte

func (*Audit) GetEncodedHash

func (x *Audit) GetEncodedHash() []byte

func (*Audit) GetEncodedSize

func (x *Audit) GetEncodedSize() uint64

func (*Audit) GetNumBlocks

func (x *Audit) GetNumBlocks() uint32

func (*Audit) GetRands

func (x *Audit) GetRands() [][]byte

func (*Audit) GetStart

func (x *Audit) GetStart() Slot

func (*Audit) HashTreeRoot

func (a *Audit) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Audit object

func (*Audit) HashTreeRootWith

func (a *Audit) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Audit object with a hasher

func (*Audit) MarshalSSZ

func (a *Audit) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Audit object

func (*Audit) MarshalSSZTo

func (a *Audit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Audit object to a target array

func (*Audit) ProtoMessage

func (*Audit) ProtoMessage()

func (*Audit) ProtoReflect

func (x *Audit) ProtoReflect() protoreflect.Message

func (*Audit) Reset

func (x *Audit) Reset()

func (*Audit) SizeSSZ

func (a *Audit) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Audit object

func (*Audit) String

func (x *Audit) String() string

func (*Audit) UnmarshalSSZ

func (a *Audit) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Audit object

type Auditor

type Auditor struct {

	// 48 byte BLS public key of the auditor.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// Auditor staking balance.
	Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// Epoch when the auditor became eligible for activation.
	// This field is FAR_FUTURE_EPOCH if the auditor has not been activated.
	ActivationEligibilityEpoch Epoch `` /* 160-byte string literal not displayed */
	// Epoch when the auditor was activated.
	// This field is FAR_FUTURE_EPOCH if the auditor has not been activated.
	ActivationEpoch Epoch `protobuf:"varint,4,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty" cast-type:"Epoch"`
	// Epoch when the auditor was exited. This field is FAR_FUTURE_EPOCH if
	// the auditor has not exited.
	ExitEpoch Epoch `protobuf:"varint,5,opt,name=exit_epoch,json=exitEpoch,proto3" json:"exit_epoch,omitempty" cast-type:"Epoch"`
	// Epoch when the auditor is eligible to withdraw their funds. This field
	// is FAR_FUTURE_EPOCH if the auditor has not exited.
	WithdrawableEpoch Epoch `` /* 131-byte string literal not displayed */
	// Decoder is a public key encoded in multikey format for decoding data
	// encoded by this auditor.
	Decoder []byte `protobuf:"bytes,7,opt,name=decoder,proto3" json:"decoder,omitempty" ssz-size:"512"`
	// contains filtered or unexported fields
}

func (*Auditor) Descriptor deprecated

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

Deprecated: Use Auditor.ProtoReflect.Descriptor instead.

func (*Auditor) GetActivationEligibilityEpoch

func (x *Auditor) GetActivationEligibilityEpoch() Epoch

func (*Auditor) GetActivationEpoch

func (x *Auditor) GetActivationEpoch() Epoch

func (*Auditor) GetBalance

func (x *Auditor) GetBalance() uint64

func (*Auditor) GetDecoder

func (x *Auditor) GetDecoder() []byte

func (*Auditor) GetExitEpoch

func (x *Auditor) GetExitEpoch() Epoch

func (*Auditor) GetPublicKey

func (x *Auditor) GetPublicKey() []byte

func (*Auditor) GetWithdrawableEpoch

func (x *Auditor) GetWithdrawableEpoch() Epoch

func (*Auditor) ProtoMessage

func (*Auditor) ProtoMessage()

func (*Auditor) ProtoReflect

func (x *Auditor) ProtoReflect() protoreflect.Message

func (*Auditor) Reset

func (x *Auditor) Reset()

func (*Auditor) String

func (x *Auditor) String() string

type AuditorStatus

type AuditorStatus int32
const (
	AuditorStatus_AUDITOR_UNKNOWN_STATUS AuditorStatus = 0
	AuditorStatus_AUDITOR_PENDING        AuditorStatus = 1
	AuditorStatus_AUDITOR_ACTIVE         AuditorStatus = 2
	AuditorStatus_AUDITOR_EXITING        AuditorStatus = 3
	AuditorStatus_AUDITOR_EXITED         AuditorStatus = 4
)

func (AuditorStatus) Descriptor

func (AuditorStatus) Enum

func (x AuditorStatus) Enum() *AuditorStatus

func (AuditorStatus) EnumDescriptor deprecated

func (AuditorStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuditorStatus.Descriptor instead.

func (AuditorStatus) Number

func (AuditorStatus) String

func (x AuditorStatus) String() string

func (AuditorStatus) Type

type AuditorStatusRequest

type AuditorStatusRequest struct {

	// A 48 byte auditor public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// contains filtered or unexported fields
}

func (*AuditorStatusRequest) Descriptor deprecated

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

Deprecated: Use AuditorStatusRequest.ProtoReflect.Descriptor instead.

func (*AuditorStatusRequest) GetPublicKey

func (x *AuditorStatusRequest) GetPublicKey() []byte

func (*AuditorStatusRequest) ProtoMessage

func (*AuditorStatusRequest) ProtoMessage()

func (*AuditorStatusRequest) ProtoReflect

func (x *AuditorStatusRequest) ProtoReflect() protoreflect.Message

func (*AuditorStatusRequest) Reset

func (x *AuditorStatusRequest) Reset()

func (*AuditorStatusRequest) String

func (x *AuditorStatusRequest) String() string

type AuditorStatusResponse

type AuditorStatusResponse struct {

	// The corresponding auditor status.
	Status AuditorStatus `protobuf:"varint,1,opt,name=status,proto3,enum=photon.consensus.AuditorStatus" json:"status,omitempty"`
	// The epoch in the chain in which the auditor is determined as active.
	ActivationEpoch Epoch `protobuf:"varint,2,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty" cast-type:"Epoch"`
	// contains filtered or unexported fields
}

func (*AuditorStatusResponse) Descriptor deprecated

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

Deprecated: Use AuditorStatusResponse.ProtoReflect.Descriptor instead.

func (*AuditorStatusResponse) GetActivationEpoch

func (x *AuditorStatusResponse) GetActivationEpoch() Epoch

func (*AuditorStatusResponse) GetStatus

func (x *AuditorStatusResponse) GetStatus() AuditorStatus

func (*AuditorStatusResponse) ProtoMessage

func (*AuditorStatusResponse) ProtoMessage()

func (*AuditorStatusResponse) ProtoReflect

func (x *AuditorStatusResponse) ProtoReflect() protoreflect.Message

func (*AuditorStatusResponse) Reset

func (x *AuditorStatusResponse) Reset()

func (*AuditorStatusResponse) String

func (x *AuditorStatusResponse) String() string

type Block

type Block struct {

	// chain slot that this block represents.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Validator index of the validator that proposed the block header.
	ProposerIndex ValidatorIndex `` /* 128-byte string literal not displayed */
	// 32 byte root of the parent block.
	ParentRoot []byte `protobuf:"bytes,3,opt,name=parent_root,json=parentRoot,proto3" json:"parent_root,omitempty" ssz-size:"32"`
	// 32 byte root of the resulting state after processing this block.
	StateRoot []byte `protobuf:"bytes,4,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty" ssz-size:"32"`
	// The block body.
	Body *BlockBody `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

Block content exchanged over the wire. The message does not contain a validator signature.

func CopyBlock

func CopyBlock(block *Block) *Block

CopyBlock copies the provided Block.

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBody

func (x *Block) GetBody() *BlockBody

func (*Block) GetParentRoot

func (x *Block) GetParentRoot() []byte

func (*Block) GetProposerIndex

func (x *Block) GetProposerIndex() ValidatorIndex

func (*Block) GetSlot

func (x *Block) GetSlot() Slot

func (*Block) GetStateRoot

func (x *Block) GetStateRoot() []byte

func (*Block) HashTreeRoot

func (b *Block) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Block object

func (*Block) HashTreeRootWith

func (b *Block) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Block object with a hasher

func (*Block) MarshalSSZ

func (b *Block) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Block object

func (*Block) MarshalSSZTo

func (b *Block) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Block object to a target array

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) SizeSSZ

func (b *Block) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Block object

func (*Block) String

func (x *Block) String() string

func (*Block) UnmarshalSSZ

func (b *Block) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Block object

type BlockBody

type BlockBody struct {

	// The validators RANDAO reveal 96 byte value.
	RandaoReveal []byte `protobuf:"bytes,1,opt,name=randao_reveal,json=randaoReveal,proto3" json:"randao_reveal,omitempty" ssz-size:"96"`
	// 32 byte field of arbitrary data. This field may contain any data and
	// is not used for anything other than a fun message.
	Graffiti []byte `protobuf:"bytes,2,opt,name=graffiti,proto3" json:"graffiti,omitempty" ssz-size:"32"`
	// Block operations
	// At most MAX_TRANSACTIONS.
	Txs []*SignedTransaction `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty" ssz-max:"1024"`
	// At most MAX_PROPOSER_SLASHINGS.
	ProposerSlashings []*ProposerSlashing `protobuf:"bytes,4,rep,name=proposer_slashings,json=proposerSlashings,proto3" json:"proposer_slashings,omitempty" ssz-max:"16"`
	// At most MAX_ATTESTER_SLASHINGS.
	AttesterSlashings []*AttesterSlashing `protobuf:"bytes,5,rep,name=attester_slashings,json=attesterSlashings,proto3" json:"attester_slashings,omitempty" ssz-max:"2"`
	// At most MAX_ATTESTATIONS.
	Attestations []*Attestation `protobuf:"bytes,6,rep,name=attestations,proto3" json:"attestations,omitempty" ssz-max:"128"`
	// contains filtered or unexported fields
}

The block body of a block.

func CopyBlockBody

func CopyBlockBody(body *BlockBody) *BlockBody

CopyBlockBody copies the provided BlockBody.

func (*BlockBody) Descriptor deprecated

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

Deprecated: Use BlockBody.ProtoReflect.Descriptor instead.

func (*BlockBody) GetAttestations

func (x *BlockBody) GetAttestations() []*Attestation

func (*BlockBody) GetAttesterSlashings

func (x *BlockBody) GetAttesterSlashings() []*AttesterSlashing

func (*BlockBody) GetGraffiti

func (x *BlockBody) GetGraffiti() []byte

func (*BlockBody) GetProposerSlashings

func (x *BlockBody) GetProposerSlashings() []*ProposerSlashing

func (*BlockBody) GetRandaoReveal

func (x *BlockBody) GetRandaoReveal() []byte

func (*BlockBody) GetTxs

func (x *BlockBody) GetTxs() []*SignedTransaction

func (*BlockBody) HashTreeRoot

func (b *BlockBody) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BlockBody object

func (*BlockBody) HashTreeRootWith

func (b *BlockBody) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the BlockBody object with a hasher

func (*BlockBody) MarshalSSZ

func (b *BlockBody) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BlockBody object

func (*BlockBody) MarshalSSZTo

func (b *BlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BlockBody object to a target array

func (*BlockBody) ProtoMessage

func (*BlockBody) ProtoMessage()

func (*BlockBody) ProtoReflect

func (x *BlockBody) ProtoReflect() protoreflect.Message

func (*BlockBody) Reset

func (x *BlockBody) Reset()

func (*BlockBody) SizeSSZ

func (b *BlockBody) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BlockBody object

func (*BlockBody) String

func (x *BlockBody) String() string

func (*BlockBody) UnmarshalSSZ

func (b *BlockBody) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BlockBody object

type BlockContainer

type BlockContainer struct {

	// 32 byte merkle tree root of contained block.
	BlockRoot []byte `protobuf:"bytes,1,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"`
	// Boolean indicating whether the block is canonical.
	Canonical bool `protobuf:"varint,2,opt,name=canonical,proto3" json:"canonical,omitempty"`
	// The desired block to be returned.
	//
	// Types that are assignable to Block:
	//	*BlockContainer_AltairBlock
	Block isBlockContainer_Block `protobuf_oneof:"block"`
	// contains filtered or unexported fields
}

A container that contains the block, its corresponding root, and whether or not it is canonical in the chain.

func (*BlockContainer) Descriptor deprecated

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

Deprecated: Use BlockContainer.ProtoReflect.Descriptor instead.

func (*BlockContainer) GetAltairBlock

func (x *BlockContainer) GetAltairBlock() *SignedBlock

func (*BlockContainer) GetBlock

func (m *BlockContainer) GetBlock() isBlockContainer_Block

func (*BlockContainer) GetBlockRoot

func (x *BlockContainer) GetBlockRoot() []byte

func (*BlockContainer) GetCanonical

func (x *BlockContainer) GetCanonical() bool

func (*BlockContainer) ProtoMessage

func (*BlockContainer) ProtoMessage()

func (*BlockContainer) ProtoReflect

func (x *BlockContainer) ProtoReflect() protoreflect.Message

func (*BlockContainer) Reset

func (x *BlockContainer) Reset()

func (*BlockContainer) String

func (x *BlockContainer) String() string

type BlockContainer_AltairBlock

type BlockContainer_AltairBlock struct {
	// Representing an altair block.
	AltairBlock *SignedBlock `protobuf:"bytes,4,opt,name=altair_block,json=altairBlock,proto3,oneof"`
}

type BlockHeader

type BlockHeader struct {

	// chain slot that this block represents.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Validator index of the validator that proposed the block header.
	ProposerIndex ValidatorIndex `` /* 128-byte string literal not displayed */
	// 32 byte merkle tree root of the parent ssz encoded block.
	ParentRoot []byte `protobuf:"bytes,3,opt,name=parent_root,json=parentRoot,proto3" json:"parent_root,omitempty" ssz-size:"32"`
	// 32 byte merkle tree root of the resulting ssz encoded state after processing this block.
	StateRoot []byte `protobuf:"bytes,4,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty" ssz-size:"32"`
	// 32 byte merkle tree root of the ssz encoded block body.
	BodyRoot []byte `protobuf:"bytes,5,opt,name=body_root,json=bodyRoot,proto3" json:"body_root,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

A block header is essentially a block with only a reference to the body as a 32 byte merkle tree root. This type of message is more lightweight than a full block. The message does not contain a validator signature.

func CopyBlockHeader

func CopyBlockHeader(header *BlockHeader) *BlockHeader

CopyBlockHeader copies the provided BlockHeader.

func (*BlockHeader) Descriptor deprecated

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

Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.

func (*BlockHeader) GetBodyRoot

func (x *BlockHeader) GetBodyRoot() []byte

func (*BlockHeader) GetParentRoot

func (x *BlockHeader) GetParentRoot() []byte

func (*BlockHeader) GetProposerIndex

func (x *BlockHeader) GetProposerIndex() ValidatorIndex

func (*BlockHeader) GetSlot

func (x *BlockHeader) GetSlot() Slot

func (*BlockHeader) GetStateRoot

func (x *BlockHeader) GetStateRoot() []byte

func (*BlockHeader) HashTreeRoot

func (b *BlockHeader) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BlockHeader object

func (*BlockHeader) HashTreeRootWith

func (b *BlockHeader) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the BlockHeader object with a hasher

func (*BlockHeader) MarshalSSZ

func (b *BlockHeader) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BlockHeader object

func (*BlockHeader) MarshalSSZTo

func (b *BlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BlockHeader object to a target array

func (*BlockHeader) ProtoMessage

func (*BlockHeader) ProtoMessage()

func (*BlockHeader) ProtoReflect

func (x *BlockHeader) ProtoReflect() protoreflect.Message

func (*BlockHeader) Reset

func (x *BlockHeader) Reset()

func (*BlockHeader) SizeSSZ

func (b *BlockHeader) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BlockHeader object

func (*BlockHeader) String

func (x *BlockHeader) String() string

func (*BlockHeader) UnmarshalSSZ

func (b *BlockHeader) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BlockHeader object

type BlockPick

type BlockPick struct {

	// Block index challenged.
	BlockIndex uint32 `protobuf:"varint,1,opt,name=block_index,json=blockIndex,proto3" json:"block_index,omitempty"`
	// Coefficient for the block challenge.
	Coefficient []byte `protobuf:"bytes,2,opt,name=coefficient,proto3" json:"coefficient,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

func (*BlockPick) Descriptor deprecated

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

Deprecated: Use BlockPick.ProtoReflect.Descriptor instead.

func (*BlockPick) GetBlockIndex

func (x *BlockPick) GetBlockIndex() uint32

func (*BlockPick) GetCoefficient

func (x *BlockPick) GetCoefficient() []byte

func (*BlockPick) HashTreeRoot

func (b *BlockPick) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BlockPick object

func (*BlockPick) HashTreeRootWith

func (b *BlockPick) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the BlockPick object with a hasher

func (*BlockPick) MarshalSSZ

func (b *BlockPick) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BlockPick object

func (*BlockPick) MarshalSSZTo

func (b *BlockPick) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BlockPick object to a target array

func (*BlockPick) ProtoMessage

func (*BlockPick) ProtoMessage()

func (*BlockPick) ProtoReflect

func (x *BlockPick) ProtoReflect() protoreflect.Message

func (*BlockPick) Reset

func (x *BlockPick) Reset()

func (*BlockPick) SizeSSZ

func (b *BlockPick) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BlockPick object

func (*BlockPick) String

func (x *BlockPick) String() string

func (*BlockPick) UnmarshalSSZ

func (b *BlockPick) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BlockPick object

type BlockProposalRequest

type BlockProposalRequest struct {

	// Slot for which the block should be proposed.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Validator's 32 byte randao reveal secret of the current epoch.
	RandaoReveal []byte `protobuf:"bytes,2,opt,name=randao_reveal,json=randaoReveal,proto3" json:"randao_reveal,omitempty" ssz-size:"48"`
	// Validator's 32 byte graffiti message for the new block.
	Graffiti []byte `protobuf:"bytes,3,opt,name=graffiti,proto3" json:"graffiti,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

func (*BlockProposalRequest) Descriptor deprecated

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

Deprecated: Use BlockProposalRequest.ProtoReflect.Descriptor instead.

func (*BlockProposalRequest) GetGraffiti

func (x *BlockProposalRequest) GetGraffiti() []byte

func (*BlockProposalRequest) GetRandaoReveal

func (x *BlockProposalRequest) GetRandaoReveal() []byte

func (*BlockProposalRequest) GetSlot

func (x *BlockProposalRequest) GetSlot() Slot

func (*BlockProposalRequest) ProtoMessage

func (*BlockProposalRequest) ProtoMessage()

func (*BlockProposalRequest) ProtoReflect

func (x *BlockProposalRequest) ProtoReflect() protoreflect.Message

func (*BlockProposalRequest) Reset

func (x *BlockProposalRequest) Reset()

func (*BlockProposalRequest) String

func (x *BlockProposalRequest) String() string

type BlockRequestByRoot

type BlockRequestByRoot struct {
	BlockRoot []byte `protobuf:"bytes,1,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockRequestByRoot) Descriptor deprecated

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

Deprecated: Use BlockRequestByRoot.ProtoReflect.Descriptor instead.

func (*BlockRequestByRoot) GetBlockRoot

func (x *BlockRequestByRoot) GetBlockRoot() []byte

func (*BlockRequestByRoot) ProtoMessage

func (*BlockRequestByRoot) ProtoMessage()

func (*BlockRequestByRoot) ProtoReflect

func (x *BlockRequestByRoot) ProtoReflect() protoreflect.Message

func (*BlockRequestByRoot) Reset

func (x *BlockRequestByRoot) Reset()

func (*BlockRequestByRoot) String

func (x *BlockRequestByRoot) String() string

type BlocksByRangeRequest

type BlocksByRangeRequest struct {
	StartSlot Slot   `protobuf:"varint,1,opt,name=start_slot,json=startSlot,proto3" json:"start_slot,omitempty" cast-type:"Slot"`
	Count     uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Step      uint64 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
	// contains filtered or unexported fields
}

func (*BlocksByRangeRequest) Descriptor deprecated

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

Deprecated: Use BlocksByRangeRequest.ProtoReflect.Descriptor instead.

func (*BlocksByRangeRequest) GetCount

func (x *BlocksByRangeRequest) GetCount() uint64

func (*BlocksByRangeRequest) GetStartSlot

func (x *BlocksByRangeRequest) GetStartSlot() Slot

func (*BlocksByRangeRequest) GetStep

func (x *BlocksByRangeRequest) GetStep() uint64

func (*BlocksByRangeRequest) HashTreeRoot

func (b *BlocksByRangeRequest) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BlocksByRangeRequest object

func (*BlocksByRangeRequest) HashTreeRootWith

func (b *BlocksByRangeRequest) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the BlocksByRangeRequest object with a hasher

func (*BlocksByRangeRequest) MarshalSSZ

func (b *BlocksByRangeRequest) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BlocksByRangeRequest object

func (*BlocksByRangeRequest) MarshalSSZTo

func (b *BlocksByRangeRequest) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BlocksByRangeRequest object to a target array

func (*BlocksByRangeRequest) ProtoMessage

func (*BlocksByRangeRequest) ProtoMessage()

func (*BlocksByRangeRequest) ProtoReflect

func (x *BlocksByRangeRequest) ProtoReflect() protoreflect.Message

func (*BlocksByRangeRequest) Reset

func (x *BlocksByRangeRequest) Reset()

func (*BlocksByRangeRequest) SizeSSZ

func (b *BlocksByRangeRequest) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BlocksByRangeRequest object

func (*BlocksByRangeRequest) String

func (x *BlocksByRangeRequest) String() string

func (*BlocksByRangeRequest) UnmarshalSSZ

func (b *BlocksByRangeRequest) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BlocksByRangeRequest object

type BlocksByRootsRequest

type BlocksByRootsRequest struct {
	Roots [][]byte `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"`
	// contains filtered or unexported fields
}

func (*BlocksByRootsRequest) Descriptor deprecated

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

Deprecated: Use BlocksByRootsRequest.ProtoReflect.Descriptor instead.

func (*BlocksByRootsRequest) GetRoots

func (x *BlocksByRootsRequest) GetRoots() [][]byte

func (*BlocksByRootsRequest) ProtoMessage

func (*BlocksByRootsRequest) ProtoMessage()

func (*BlocksByRootsRequest) ProtoReflect

func (x *BlocksByRootsRequest) ProtoReflect() protoreflect.Message

func (*BlocksByRootsRequest) Reset

func (x *BlocksByRootsRequest) Reset()

func (*BlocksByRootsRequest) String

func (x *BlocksByRootsRequest) String() string

type ChainConfig

type ChainConfig struct {
	Config map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about the configuration parameters of the node, such as the slots per epoch, slots per eth1 voting period, and more.

func (*ChainConfig) Descriptor deprecated

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

Deprecated: Use ChainConfig.ProtoReflect.Descriptor instead.

func (*ChainConfig) GetConfig

func (x *ChainConfig) GetConfig() map[string]string

func (*ChainConfig) ProtoMessage

func (*ChainConfig) ProtoMessage()

func (*ChainConfig) ProtoReflect

func (x *ChainConfig) ProtoReflect() protoreflect.Message

func (*ChainConfig) Reset

func (x *ChainConfig) Reset()

func (*ChainConfig) String

func (x *ChainConfig) String() string

type ChainHead

type ChainHead struct {

	// Slot of the head block.
	HeadSlot Slot `protobuf:"varint,1,opt,name=head_slot,json=headSlot,proto3" json:"head_slot,omitempty" cast-type:"Slot"`
	// Epoch of the head block.
	HeadEpoch Epoch `protobuf:"varint,2,opt,name=head_epoch,json=headEpoch,proto3" json:"head_epoch,omitempty" cast-type:"Epoch"`
	// 32 byte merkle tree root of the canonical head block in the node.
	HeadBlockRoot []byte `protobuf:"bytes,3,opt,name=head_block_root,json=headBlockRoot,proto3" json:"head_block_root,omitempty" ssz-size:"32"`
	// Most recent slot that contains the finalized block.
	FinalizedSlot Slot `protobuf:"varint,4,opt,name=finalized_slot,json=finalizedSlot,proto3" json:"finalized_slot,omitempty" cast-type:"Slot"`
	// Epoch of the finalized block.
	FinalizedEpoch Epoch `protobuf:"varint,5,opt,name=finalized_epoch,json=finalizedEpoch,proto3" json:"finalized_epoch,omitempty" cast-type:"Epoch"`
	// Most recent 32 byte finalized block root.
	FinalizedBlockRoot []byte `` /* 131-byte string literal not displayed */
	// Most recent slot that contains the justified block.
	JustifiedSlot Slot `protobuf:"varint,7,opt,name=justified_slot,json=justifiedSlot,proto3" json:"justified_slot,omitempty" cast-type:"Slot"`
	// Epoch of the justified block.
	JustifiedEpoch Epoch `protobuf:"varint,8,opt,name=justified_epoch,json=justifiedEpoch,proto3" json:"justified_epoch,omitempty" cast-type:"Epoch"`
	// Most recent 32 byte justified block root.
	JustifiedBlockRoot []byte `` /* 131-byte string literal not displayed */
	// Most recent slot that contains the previous justified block.
	PreviousJustifiedSlot Slot `` /* 145-byte string literal not displayed */
	// Epoch of the previous justified block.
	PreviousJustifiedEpoch Epoch `` /* 149-byte string literal not displayed */
	// Previous 32 byte justified block root.
	PreviousJustifiedBlockRoot []byte `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about the head of the chain.

func (*ChainHead) Descriptor deprecated

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

Deprecated: Use ChainHead.ProtoReflect.Descriptor instead.

func (*ChainHead) GetFinalizedBlockRoot

func (x *ChainHead) GetFinalizedBlockRoot() []byte

func (*ChainHead) GetFinalizedEpoch

func (x *ChainHead) GetFinalizedEpoch() Epoch

func (*ChainHead) GetFinalizedSlot

func (x *ChainHead) GetFinalizedSlot() Slot

func (*ChainHead) GetHeadBlockRoot

func (x *ChainHead) GetHeadBlockRoot() []byte

func (*ChainHead) GetHeadEpoch

func (x *ChainHead) GetHeadEpoch() Epoch

func (*ChainHead) GetHeadSlot

func (x *ChainHead) GetHeadSlot() Slot

func (*ChainHead) GetJustifiedBlockRoot

func (x *ChainHead) GetJustifiedBlockRoot() []byte

func (*ChainHead) GetJustifiedEpoch

func (x *ChainHead) GetJustifiedEpoch() Epoch

func (*ChainHead) GetJustifiedSlot

func (x *ChainHead) GetJustifiedSlot() Slot

func (*ChainHead) GetPreviousJustifiedBlockRoot

func (x *ChainHead) GetPreviousJustifiedBlockRoot() []byte

func (*ChainHead) GetPreviousJustifiedEpoch

func (x *ChainHead) GetPreviousJustifiedEpoch() Epoch

func (*ChainHead) GetPreviousJustifiedSlot

func (x *ChainHead) GetPreviousJustifiedSlot() Slot

func (*ChainHead) ProtoMessage

func (*ChainHead) ProtoMessage()

func (*ChainHead) ProtoReflect

func (x *ChainHead) ProtoReflect() protoreflect.Message

func (*ChainHead) Reset

func (x *ChainHead) Reset()

func (*ChainHead) String

func (x *ChainHead) String() string

type ChainStartResponse

type ChainStartResponse struct {

	// A boolean specifying whether or not the chain has started.
	Started bool `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"`
	// The genesis time of the chain.
	GenesisTime uint64 `protobuf:"varint,2,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	// 32 byte hash tree root of the genesis validator set.
	GenesisIdentifier []byte `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ChainStartResponse) Descriptor deprecated

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

Deprecated: Use ChainStartResponse.ProtoReflect.Descriptor instead.

func (*ChainStartResponse) GetGenesisIdentifier

func (x *ChainStartResponse) GetGenesisIdentifier() []byte

func (*ChainStartResponse) GetGenesisTime

func (x *ChainStartResponse) GetGenesisTime() uint64

func (*ChainStartResponse) GetStarted

func (x *ChainStartResponse) GetStarted() bool

func (*ChainStartResponse) ProtoMessage

func (*ChainStartResponse) ProtoMessage()

func (*ChainStartResponse) ProtoReflect

func (x *ChainStartResponse) ProtoReflect() protoreflect.Message

func (*ChainStartResponse) Reset

func (x *ChainStartResponse) Reset()

func (*ChainStartResponse) String

func (x *ChainStartResponse) String() string

type ChangeLog

type ChangeLog struct {

	// Change log content.
	//
	// Types that are assignable to Change:
	//	*ChangeLog_Storage
	Change isChangeLog_Change `protobuf_oneof:"change"`
	// contains filtered or unexported fields
}

func (*ChangeLog) Descriptor deprecated

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

Deprecated: Use ChangeLog.ProtoReflect.Descriptor instead.

func (*ChangeLog) GetChange

func (m *ChangeLog) GetChange() isChangeLog_Change

func (*ChangeLog) GetStorage

func (x *ChangeLog) GetStorage() *StorageChangeLog

func (*ChangeLog) ProtoMessage

func (*ChangeLog) ProtoMessage()

func (*ChangeLog) ProtoReflect

func (x *ChangeLog) ProtoReflect() protoreflect.Message

func (*ChangeLog) Reset

func (x *ChangeLog) Reset()

func (*ChangeLog) String

func (x *ChangeLog) String() string

type ChangeLogType

type ChangeLogType int32

Change log type.

const (
	// CHANGELOG_INVALID prevents from defaulting to a valid status.
	ChangeLogType_CHANGELOG_INVALID ChangeLogType = 0
	// CHANGELOG_AUDIT_START is an object audit start event.
	ChangeLogType_CHANGELOG_AUDIT_START ChangeLogType = 1
	// CHANGELOG_AUDIT_STOP is an object audit stop event.
	ChangeLogType_CHANGELOG_AUDIT_STOP ChangeLogType = 2
	// CHANGELOG_AUDIT_EXPIRATION is an object audit window expiration event.
	ChangeLogType_CHANGELOG_AUDIT_EXPIRATION ChangeLogType = 3
	// CHANGELOG_POR_START is an object PoR start event.
	ChangeLogType_CHANGELOG_POR_START ChangeLogType = 4
	// CHANGELOG_POR_START is an object PoR stop event.
	ChangeLogType_CHANGELOG_POR_STOP ChangeLogType = 5
	// CHANGELOG_POR_START is an object PoR window expiration event.
	ChangeLogType_CHANGELOG_POR_EXPIRATION ChangeLogType = 6
	// CHANGELOG_CONTRACT_EXPIRATION is a storage contract expiration event.
	ChangeLogType_CHANGELOG_CONTRACT_EXPIRATION ChangeLogType = 7
)

func (ChangeLogType) Descriptor

func (ChangeLogType) Enum

func (x ChangeLogType) Enum() *ChangeLogType

func (ChangeLogType) EnumDescriptor deprecated

func (ChangeLogType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChangeLogType.Descriptor instead.

func (ChangeLogType) Number

func (ChangeLogType) String

func (x ChangeLogType) String() string

func (ChangeLogType) Type

type ChangeLog_Storage

type ChangeLog_Storage struct {
	Storage *StorageChangeLog `protobuf:"bytes,1,opt,name=storage,proto3,oneof"`
}

type ChangeLogs

type ChangeLogs struct {
	Logs []*ChangeLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeLogs) Descriptor deprecated

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

Deprecated: Use ChangeLogs.ProtoReflect.Descriptor instead.

func (*ChangeLogs) GetLogs

func (x *ChangeLogs) GetLogs() []*ChangeLog

func (*ChangeLogs) ProtoMessage

func (*ChangeLogs) ProtoMessage()

func (*ChangeLogs) ProtoReflect

func (x *ChangeLogs) ProtoReflect() protoreflect.Message

func (*ChangeLogs) Reset

func (x *ChangeLogs) Reset()

func (*ChangeLogs) String

func (x *ChangeLogs) String() string

type Checkpoint

type Checkpoint struct {

	// Epoch the checkpoint references.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// Block root of the checkpoint references.
	Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

func CopyCheckpoint

func CopyCheckpoint(cp *Checkpoint) *Checkpoint

CopyCheckpoint copies the provided checkpoint.

func (*Checkpoint) Descriptor deprecated

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

Deprecated: Use Checkpoint.ProtoReflect.Descriptor instead.

func (*Checkpoint) GetEpoch

func (x *Checkpoint) GetEpoch() Epoch

func (*Checkpoint) GetRoot

func (x *Checkpoint) GetRoot() []byte

func (*Checkpoint) HashTreeRoot

func (c *Checkpoint) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Checkpoint object

func (*Checkpoint) HashTreeRootWith

func (c *Checkpoint) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Checkpoint object with a hasher

func (*Checkpoint) MarshalSSZ

func (c *Checkpoint) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Checkpoint object

func (*Checkpoint) MarshalSSZTo

func (c *Checkpoint) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Checkpoint object to a target array

func (*Checkpoint) ProtoMessage

func (*Checkpoint) ProtoMessage()

func (*Checkpoint) ProtoReflect

func (x *Checkpoint) ProtoReflect() protoreflect.Message

func (*Checkpoint) Reset

func (x *Checkpoint) Reset()

func (*Checkpoint) SizeSSZ

func (c *Checkpoint) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Checkpoint object

func (*Checkpoint) String

func (x *Checkpoint) String() string

func (*Checkpoint) UnmarshalSSZ

func (c *Checkpoint) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Checkpoint object

type CommitteeIndex

type CommitteeIndex uint64

CommitteeIndex in eth2.

func (CommitteeIndex) HashTreeRoot

func (c CommitteeIndex) HashTreeRoot() ([32]byte, error)

HashTreeRoot returns calculated hash root.

func (CommitteeIndex) HashTreeRootWith

func (c CommitteeIndex) HashTreeRootWith(hh *fssz.Hasher) error

HashWithDefaultHasher hashes a HashRoot object with a Hasher from the default HasherPool.

func (*CommitteeIndex) MarshalSSZ

func (c *CommitteeIndex) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals committee index into a serialized object.

func (*CommitteeIndex) MarshalSSZTo

func (c *CommitteeIndex) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo marshals committee index with the provided byte slice.

func (*CommitteeIndex) SizeSSZ

func (c *CommitteeIndex) SizeSSZ() int

SizeSSZ returns the size of the serialized object.

func (*CommitteeIndex) UnmarshalSSZ

func (c *CommitteeIndex) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ deserializes the provided bytes buffer into the committee index object.

type CommitteeSubnetsSubscribeRequest

type CommitteeSubnetsSubscribeRequest struct {

	// A list of intended slots to subscribe.
	Slots []Slot `protobuf:"varint,1,rep,packed,name=slots,proto3" json:"slots,omitempty" cast-type:"Slot"`
	// A list of intended committee ids to subscribe. It is mapped 1-to-1 with the slots
	CommitteeIds []CommitteeIndex `` /* 132-byte string literal not displayed */
	// Whether to subscribe as an aggregator or by default attester.
	// It is mapped 1-to-1 with the slots and committee ids.
	// Subscribe as an aggregator means to join the subnet.
	// Subscribe as an attester means finding persistent peers on the subnet to be able to publish attestations.
	IsAggregator []bool `protobuf:"varint,3,rep,packed,name=is_aggregator,json=isAggregator,proto3" json:"is_aggregator,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitteeSubnetsSubscribeRequest) Descriptor deprecated

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

Deprecated: Use CommitteeSubnetsSubscribeRequest.ProtoReflect.Descriptor instead.

func (*CommitteeSubnetsSubscribeRequest) GetCommitteeIds

func (x *CommitteeSubnetsSubscribeRequest) GetCommitteeIds() []CommitteeIndex

func (*CommitteeSubnetsSubscribeRequest) GetIsAggregator

func (x *CommitteeSubnetsSubscribeRequest) GetIsAggregator() []bool

func (*CommitteeSubnetsSubscribeRequest) GetSlots

func (x *CommitteeSubnetsSubscribeRequest) GetSlots() []Slot

func (*CommitteeSubnetsSubscribeRequest) ProtoMessage

func (*CommitteeSubnetsSubscribeRequest) ProtoMessage()

func (*CommitteeSubnetsSubscribeRequest) ProtoReflect

func (*CommitteeSubnetsSubscribeRequest) Reset

func (*CommitteeSubnetsSubscribeRequest) String

type Committees

type Committees struct {

	// The epoch for which the committees in the response belong to.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// A map of validator committees by slot.
	Committees map[uint64]*Committees_CommitteesList `` /* 162-byte string literal not displayed */
	// The number of active validators at the given epoch.
	ActiveValidatorCount uint64 `protobuf:"varint,3,opt,name=active_validator_count,json=activeValidatorCount,proto3" json:"active_validator_count,omitempty"`
	// contains filtered or unexported fields
}

func (*Committees) Descriptor deprecated

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

Deprecated: Use Committees.ProtoReflect.Descriptor instead.

func (*Committees) GetActiveValidatorCount

func (x *Committees) GetActiveValidatorCount() uint64

func (*Committees) GetCommittees

func (x *Committees) GetCommittees() map[uint64]*Committees_CommitteesList

func (*Committees) GetEpoch

func (x *Committees) GetEpoch() Epoch

func (*Committees) ProtoMessage

func (*Committees) ProtoMessage()

func (*Committees) ProtoReflect

func (x *Committees) ProtoReflect() protoreflect.Message

func (*Committees) Reset

func (x *Committees) Reset()

func (*Committees) String

func (x *Committees) String() string

type Committees_CommitteeItem

type Committees_CommitteeItem struct {

	// A committee is a list of validator indices participating in consensus at a slot.
	ValidatorIndices []ValidatorIndex `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Committees_CommitteeItem) Descriptor deprecated

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

Deprecated: Use Committees_CommitteeItem.ProtoReflect.Descriptor instead.

func (*Committees_CommitteeItem) GetValidatorIndices

func (x *Committees_CommitteeItem) GetValidatorIndices() []ValidatorIndex

func (*Committees_CommitteeItem) ProtoMessage

func (*Committees_CommitteeItem) ProtoMessage()

func (*Committees_CommitteeItem) ProtoReflect

func (x *Committees_CommitteeItem) ProtoReflect() protoreflect.Message

func (*Committees_CommitteeItem) Reset

func (x *Committees_CommitteeItem) Reset()

func (*Committees_CommitteeItem) String

func (x *Committees_CommitteeItem) String() string

type Committees_CommitteesList

type Committees_CommitteesList struct {

	// A list of committees.
	Committees []*Committees_CommitteeItem `protobuf:"bytes,1,rep,name=committees,proto3" json:"committees,omitempty"`
	// contains filtered or unexported fields
}

func (*Committees_CommitteesList) Descriptor deprecated

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

Deprecated: Use Committees_CommitteesList.ProtoReflect.Descriptor instead.

func (*Committees_CommitteesList) GetCommittees

func (*Committees_CommitteesList) ProtoMessage

func (*Committees_CommitteesList) ProtoMessage()

func (*Committees_CommitteesList) ProtoReflect

func (*Committees_CommitteesList) Reset

func (x *Committees_CommitteesList) Reset()

func (*Committees_CommitteesList) String

func (x *Committees_CommitteesList) String() string

type ConnectionState

type ConnectionState int32

ConnectionState states the current status of the peer.

const (
	ConnectionState_DISCONNECTED  ConnectionState = 0
	ConnectionState_DISCONNECTING ConnectionState = 1
	ConnectionState_CONNECTED     ConnectionState = 2
	ConnectionState_CONNECTING    ConnectionState = 3
)

func (ConnectionState) Descriptor

func (ConnectionState) Enum

func (x ConnectionState) Enum() *ConnectionState

func (ConnectionState) EnumDescriptor deprecated

func (ConnectionState) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConnectionState.Descriptor instead.

func (ConnectionState) Number

func (ConnectionState) String

func (x ConnectionState) String() string

func (ConnectionState) Type

type DebugClient

type DebugClient interface {
	// Returns a state by filter criteria from the node.
	GetState(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*State, error)
	// Returns a state by filter criteria from the node.
	GetBlock(ctx context.Context, in *BlockRequestByRoot, opts ...grpc.CallOption) (*Block, error)
	// SetLoggingLevel sets the log-level of the node programmatically.
	SetLoggingLevel(ctx context.Context, in *LoggingLevelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Returns a proto array fork choice object from the node.
	GetProtoArrayForkChoice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProtoArrayForkChoiceResponse, error)
	// Returns all the related data for every peer tracked by the host node.
	ListPeers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DebugPeerResponses, error)
	// Returns requested peer with specified peer id if it exists.
	GetPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*DebugPeerResponse, error)
	// Returns the inclusion slot of a given attester id and slot.
	GetInclusionSlot(ctx context.Context, in *InclusionSlotRequest, opts ...grpc.CallOption) (*InclusionSlotResponse, error)
}

DebugClient is the client API for Debug service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDebugClient

func NewDebugClient(cc grpc.ClientConnInterface) DebugClient

type DebugPeerResponse

type DebugPeerResponse struct {

	// Listening addresses know of the peer.
	ListeningAddresses []string `protobuf:"bytes,1,rep,name=listening_addresses,json=listeningAddresses,proto3" json:"listening_addresses,omitempty"`
	// Direction of current connection.
	Direction PeerDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=photon.consensus.PeerDirection" json:"direction,omitempty"`
	// Current connection between host and peer.
	ConnectionState ConnectionState `` /* 145-byte string literal not displayed */
	// Peer ID of peer.
	PeerId string `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// ENR of peer at the current moment.
	Enr string `protobuf:"bytes,5,opt,name=enr,proto3" json:"enr,omitempty"`
	// Peer Info of the peer containing all relevant metadata.
	PeerInfo *DebugPeerResponse_PeerInfo `protobuf:"bytes,6,opt,name=peer_info,json=peerInfo,proto3" json:"peer_info,omitempty"`
	// Peer Status of the peer.
	PeerStatus *Status `protobuf:"bytes,7,opt,name=peer_status,json=peerStatus,proto3" json:"peer_status,omitempty"`
	// Last know update time for peer status.
	LastUpdated uint64 `protobuf:"varint,8,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	// Score Info of the peer.
	ScoreInfo *ScoreInfo `protobuf:"bytes,9,opt,name=score_info,json=scoreInfo,proto3" json:"score_info,omitempty"`
	// contains filtered or unexported fields
}

func (*DebugPeerResponse) Descriptor deprecated

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

Deprecated: Use DebugPeerResponse.ProtoReflect.Descriptor instead.

func (*DebugPeerResponse) GetConnectionState

func (x *DebugPeerResponse) GetConnectionState() ConnectionState

func (*DebugPeerResponse) GetDirection

func (x *DebugPeerResponse) GetDirection() PeerDirection

func (*DebugPeerResponse) GetEnr

func (x *DebugPeerResponse) GetEnr() string

func (*DebugPeerResponse) GetLastUpdated

func (x *DebugPeerResponse) GetLastUpdated() uint64

func (*DebugPeerResponse) GetListeningAddresses

func (x *DebugPeerResponse) GetListeningAddresses() []string

func (*DebugPeerResponse) GetPeerId

func (x *DebugPeerResponse) GetPeerId() string

func (*DebugPeerResponse) GetPeerInfo

func (*DebugPeerResponse) GetPeerStatus

func (x *DebugPeerResponse) GetPeerStatus() *Status

func (*DebugPeerResponse) GetScoreInfo

func (x *DebugPeerResponse) GetScoreInfo() *ScoreInfo

func (*DebugPeerResponse) ProtoMessage

func (*DebugPeerResponse) ProtoMessage()

func (*DebugPeerResponse) ProtoReflect

func (x *DebugPeerResponse) ProtoReflect() protoreflect.Message

func (*DebugPeerResponse) Reset

func (x *DebugPeerResponse) Reset()

func (*DebugPeerResponse) String

func (x *DebugPeerResponse) String() string

type DebugPeerResponse_PeerInfo

type DebugPeerResponse_PeerInfo struct {

	// Metadata of the peer, containing their bitfield
	// and sequence number.
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// List of protocols the peer supports.
	Protocols []string `protobuf:"bytes,2,rep,name=protocols,proto3" json:"protocols,omitempty"`
	// Number of times peer has been penalised.
	FaultCount uint64 `protobuf:"varint,3,opt,name=fault_count,json=faultCount,proto3" json:"fault_count,omitempty"`
	// Protocol Version peer is running.
	ProtocolVersion string `protobuf:"bytes,4,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
	// Agent Version peer is running.
	AgentVersion string `protobuf:"bytes,5,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
	// Latency of responses from peer(in ms).
	PeerLatency uint64 `protobuf:"varint,6,opt,name=peer_latency,json=peerLatency,proto3" json:"peer_latency,omitempty"`
	// contains filtered or unexported fields
}

Peer related metadata that is useful for debugging.

func (*DebugPeerResponse_PeerInfo) Descriptor deprecated

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

Deprecated: Use DebugPeerResponse_PeerInfo.ProtoReflect.Descriptor instead.

func (*DebugPeerResponse_PeerInfo) GetAgentVersion

func (x *DebugPeerResponse_PeerInfo) GetAgentVersion() string

func (*DebugPeerResponse_PeerInfo) GetFaultCount

func (x *DebugPeerResponse_PeerInfo) GetFaultCount() uint64

func (*DebugPeerResponse_PeerInfo) GetMetadata

func (x *DebugPeerResponse_PeerInfo) GetMetadata() *Metadata

func (*DebugPeerResponse_PeerInfo) GetPeerLatency

func (x *DebugPeerResponse_PeerInfo) GetPeerLatency() uint64

func (*DebugPeerResponse_PeerInfo) GetProtocolVersion

func (x *DebugPeerResponse_PeerInfo) GetProtocolVersion() string

func (*DebugPeerResponse_PeerInfo) GetProtocols

func (x *DebugPeerResponse_PeerInfo) GetProtocols() []string

func (*DebugPeerResponse_PeerInfo) ProtoMessage

func (*DebugPeerResponse_PeerInfo) ProtoMessage()

func (*DebugPeerResponse_PeerInfo) ProtoReflect

func (*DebugPeerResponse_PeerInfo) Reset

func (x *DebugPeerResponse_PeerInfo) Reset()

func (*DebugPeerResponse_PeerInfo) String

func (x *DebugPeerResponse_PeerInfo) String() string

type DebugPeerResponses

type DebugPeerResponses struct {
	Responses []*DebugPeerResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*DebugPeerResponses) Descriptor deprecated

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

Deprecated: Use DebugPeerResponses.ProtoReflect.Descriptor instead.

func (*DebugPeerResponses) GetResponses

func (x *DebugPeerResponses) GetResponses() []*DebugPeerResponse

func (*DebugPeerResponses) ProtoMessage

func (*DebugPeerResponses) ProtoMessage()

func (*DebugPeerResponses) ProtoReflect

func (x *DebugPeerResponses) ProtoReflect() protoreflect.Message

func (*DebugPeerResponses) Reset

func (x *DebugPeerResponses) Reset()

func (*DebugPeerResponses) String

func (x *DebugPeerResponses) String() string

type DebugServer

type DebugServer interface {
	// Returns a state by filter criteria from the node.
	GetState(context.Context, *StateRequest) (*State, error)
	// Returns a state by filter criteria from the node.
	GetBlock(context.Context, *BlockRequestByRoot) (*Block, error)
	// SetLoggingLevel sets the log-level of the node programmatically.
	SetLoggingLevel(context.Context, *LoggingLevelRequest) (*emptypb.Empty, error)
	// Returns a proto array fork choice object from the node.
	GetProtoArrayForkChoice(context.Context, *emptypb.Empty) (*ProtoArrayForkChoiceResponse, error)
	// Returns all the related data for every peer tracked by the host node.
	ListPeers(context.Context, *emptypb.Empty) (*DebugPeerResponses, error)
	// Returns requested peer with specified peer id if it exists.
	GetPeer(context.Context, *PeerRequest) (*DebugPeerResponse, error)
	// Returns the inclusion slot of a given attester id and slot.
	GetInclusionSlot(context.Context, *InclusionSlotRequest) (*InclusionSlotResponse, error)
}

DebugServer is the server API for Debug service.

type DoppelGangerRequest

type DoppelGangerRequest struct {
	ValidatorRequests []*DoppelGangerRequest_ValidatorRequest `protobuf:"bytes,1,rep,name=validator_requests,json=validatorRequests,proto3" json:"validator_requests,omitempty"`
	// contains filtered or unexported fields
}

DoppelGangerRequest represents the request sent by the validator in order to determine if there is any duplicate instance of it running in the network.

func (*DoppelGangerRequest) Descriptor deprecated

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

Deprecated: Use DoppelGangerRequest.ProtoReflect.Descriptor instead.

func (*DoppelGangerRequest) GetValidatorRequests

func (x *DoppelGangerRequest) GetValidatorRequests() []*DoppelGangerRequest_ValidatorRequest

func (*DoppelGangerRequest) ProtoMessage

func (*DoppelGangerRequest) ProtoMessage()

func (*DoppelGangerRequest) ProtoReflect

func (x *DoppelGangerRequest) ProtoReflect() protoreflect.Message

func (*DoppelGangerRequest) Reset

func (x *DoppelGangerRequest) Reset()

func (*DoppelGangerRequest) String

func (x *DoppelGangerRequest) String() string

type DoppelGangerRequest_ValidatorRequest

type DoppelGangerRequest_ValidatorRequest struct {

	// The validator's 48 byte BLS public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// The validator's last recorded epoch to attest.
	Epoch Epoch `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// The validator's last recorded signed root.
	SignedRoot []byte `protobuf:"bytes,2,opt,name=signed_root,json=signedRoot,proto3" json:"signed_root,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

ValidatorRequest data type which represents a request for each validator.

func (*DoppelGangerRequest_ValidatorRequest) Descriptor deprecated

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

Deprecated: Use DoppelGangerRequest_ValidatorRequest.ProtoReflect.Descriptor instead.

func (*DoppelGangerRequest_ValidatorRequest) GetEpoch

func (*DoppelGangerRequest_ValidatorRequest) GetPublicKey

func (x *DoppelGangerRequest_ValidatorRequest) GetPublicKey() []byte

func (*DoppelGangerRequest_ValidatorRequest) GetSignedRoot

func (x *DoppelGangerRequest_ValidatorRequest) GetSignedRoot() []byte

func (*DoppelGangerRequest_ValidatorRequest) ProtoMessage

func (*DoppelGangerRequest_ValidatorRequest) ProtoMessage()

func (*DoppelGangerRequest_ValidatorRequest) ProtoReflect

func (*DoppelGangerRequest_ValidatorRequest) Reset

func (*DoppelGangerRequest_ValidatorRequest) String

type DoppelGangerResponse

type DoppelGangerResponse struct {
	Responses []*DoppelGangerResponse_ValidatorResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

DoppelGangerResponse is the response payload sent by the node after it has checked for all duplicate keys in the network.

func (*DoppelGangerResponse) Descriptor deprecated

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

Deprecated: Use DoppelGangerResponse.ProtoReflect.Descriptor instead.

func (*DoppelGangerResponse) GetResponses

func (*DoppelGangerResponse) ProtoMessage

func (*DoppelGangerResponse) ProtoMessage()

func (*DoppelGangerResponse) ProtoReflect

func (x *DoppelGangerResponse) ProtoReflect() protoreflect.Message

func (*DoppelGangerResponse) Reset

func (x *DoppelGangerResponse) Reset()

func (*DoppelGangerResponse) String

func (x *DoppelGangerResponse) String() string

type DoppelGangerResponse_ValidatorResponse

type DoppelGangerResponse_ValidatorResponse struct {

	// The validator's 48 byte BLS public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// Whether a duplicate of the validator exists.
	DuplicateExists bool `protobuf:"varint,2,opt,name=duplicate_exists,json=duplicateExists,proto3" json:"duplicate_exists,omitempty"`
	// contains filtered or unexported fields
}

func (*DoppelGangerResponse_ValidatorResponse) Descriptor deprecated

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

Deprecated: Use DoppelGangerResponse_ValidatorResponse.ProtoReflect.Descriptor instead.

func (*DoppelGangerResponse_ValidatorResponse) GetDuplicateExists

func (x *DoppelGangerResponse_ValidatorResponse) GetDuplicateExists() bool

func (*DoppelGangerResponse_ValidatorResponse) GetPublicKey

func (x *DoppelGangerResponse_ValidatorResponse) GetPublicKey() []byte

func (*DoppelGangerResponse_ValidatorResponse) ProtoMessage

func (*DoppelGangerResponse_ValidatorResponse) ProtoReflect

func (*DoppelGangerResponse_ValidatorResponse) Reset

func (*DoppelGangerResponse_ValidatorResponse) String

type DutiesRequest

type DutiesRequest struct {

	// Epoch at which validators should perform their duties.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// Array of byte encoded BLS public keys.
	PublicKeys [][]byte `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty" ssz-size:"?,48"`
	// contains filtered or unexported fields
}

func (*DutiesRequest) Descriptor deprecated

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

Deprecated: Use DutiesRequest.ProtoReflect.Descriptor instead.

func (*DutiesRequest) GetEpoch

func (x *DutiesRequest) GetEpoch() Epoch

func (*DutiesRequest) GetPublicKeys

func (x *DutiesRequest) GetPublicKeys() [][]byte

func (*DutiesRequest) ProtoMessage

func (*DutiesRequest) ProtoMessage()

func (*DutiesRequest) ProtoReflect

func (x *DutiesRequest) ProtoReflect() protoreflect.Message

func (*DutiesRequest) Reset

func (x *DutiesRequest) Reset()

func (*DutiesRequest) String

func (x *DutiesRequest) String() string

type DutiesResponse

type DutiesResponse struct {

	// Deprecated: Do not use.
	Duties             []*DutiesResponse_Duty `protobuf:"bytes,1,rep,name=duties,proto3" json:"duties,omitempty"`
	CurrentEpochDuties []*DutiesResponse_Duty `protobuf:"bytes,2,rep,name=current_epoch_duties,json=currentEpochDuties,proto3" json:"current_epoch_duties,omitempty"`
	NextEpochDuties    []*DutiesResponse_Duty `protobuf:"bytes,3,rep,name=next_epoch_duties,json=nextEpochDuties,proto3" json:"next_epoch_duties,omitempty"`
	// contains filtered or unexported fields
}

func (*DutiesResponse) Descriptor deprecated

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

Deprecated: Use DutiesResponse.ProtoReflect.Descriptor instead.

func (*DutiesResponse) GetCurrentEpochDuties

func (x *DutiesResponse) GetCurrentEpochDuties() []*DutiesResponse_Duty

func (*DutiesResponse) GetDuties deprecated

func (x *DutiesResponse) GetDuties() []*DutiesResponse_Duty

Deprecated: Do not use.

func (*DutiesResponse) GetNextEpochDuties

func (x *DutiesResponse) GetNextEpochDuties() []*DutiesResponse_Duty

func (*DutiesResponse) ProtoMessage

func (*DutiesResponse) ProtoMessage()

func (*DutiesResponse) ProtoReflect

func (x *DutiesResponse) ProtoReflect() protoreflect.Message

func (*DutiesResponse) Reset

func (x *DutiesResponse) Reset()

func (*DutiesResponse) String

func (x *DutiesResponse) String() string

type DutiesResponse_Duty

type DutiesResponse_Duty struct {

	// The committee a validator is assigned to.
	Committee []ValidatorIndex `protobuf:"varint,1,rep,packed,name=committee,proto3" json:"committee,omitempty" cast-type:"ValidatorIndex"`
	// The index into the committee where the validator belongs in.
	CommitteeIndex CommitteeIndex `` /* 131-byte string literal not displayed */
	// Slot at which a validator must attest.
	AttesterSlot Slot `protobuf:"varint,3,opt,name=attester_slot,json=attesterSlot,proto3" json:"attester_slot,omitempty" cast-type:"Slot"`
	// Slots at which a validator must propose a chain block.
	ProposerSlots []Slot `protobuf:"varint,4,rep,packed,name=proposer_slots,json=proposerSlots,proto3" json:"proposer_slots,omitempty" cast-type:"Slot"`
	// 48 byte BLS public key for the validator who's assigned to perform a duty.
	PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// The current status of the validator assigned to perform the duty.
	Status ValidatorStatus `protobuf:"varint,6,opt,name=status,proto3,enum=photon.consensus.ValidatorStatus" json:"status,omitempty"`
	// The index of the validator in the state.
	ValidatorIndex ValidatorIndex `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DutiesResponse_Duty) Descriptor deprecated

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

Deprecated: Use DutiesResponse_Duty.ProtoReflect.Descriptor instead.

func (*DutiesResponse_Duty) GetAttesterSlot

func (x *DutiesResponse_Duty) GetAttesterSlot() Slot

func (*DutiesResponse_Duty) GetCommittee

func (x *DutiesResponse_Duty) GetCommittee() []ValidatorIndex

func (*DutiesResponse_Duty) GetCommitteeIndex

func (x *DutiesResponse_Duty) GetCommitteeIndex() CommitteeIndex

func (*DutiesResponse_Duty) GetProposerSlots

func (x *DutiesResponse_Duty) GetProposerSlots() []Slot

func (*DutiesResponse_Duty) GetPublicKey

func (x *DutiesResponse_Duty) GetPublicKey() []byte

func (*DutiesResponse_Duty) GetStatus

func (x *DutiesResponse_Duty) GetStatus() ValidatorStatus

func (*DutiesResponse_Duty) GetValidatorIndex

func (x *DutiesResponse_Duty) GetValidatorIndex() ValidatorIndex

func (*DutiesResponse_Duty) ProtoMessage

func (*DutiesResponse_Duty) ProtoMessage()

func (*DutiesResponse_Duty) ProtoReflect

func (x *DutiesResponse_Duty) ProtoReflect() protoreflect.Message

func (*DutiesResponse_Duty) Reset

func (x *DutiesResponse_Duty) Reset()

func (*DutiesResponse_Duty) String

func (x *DutiesResponse_Duty) String() string

type Epoch

type Epoch uint64

Epoch represents a single epoch.

func BytesToEpochBigEndian

func BytesToEpochBigEndian(b []byte) Epoch

BytesToEpochBigEndian conversion.

func MaxEpoch

func MaxEpoch(a, b Epoch) Epoch

MaxEpoch returns the larger of the two epochs.

func MinEpoch

func MinEpoch(a, b Epoch) Epoch

MinEpoch returns the smaller of the two epochs.

func (Epoch) Add

func (e Epoch) Add(x uint64) Epoch

Add increases epoch by x. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Epoch) AddEpoch

func (e Epoch) AddEpoch(x Epoch) Epoch

AddEpoch increases epoch using another epoch value. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Epoch) Div

func (e Epoch) Div(x uint64) Epoch

Div divides epoch by x. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Epoch) HashTreeRoot

func (e Epoch) HashTreeRoot() ([32]byte, error)

HashTreeRoot returns calculated hash root.

func (Epoch) HashTreeRootWith

func (e Epoch) HashTreeRootWith(hh *fssz.Hasher) error

HashWithDefaultHasher hashes a HashRoot object with a Hasher from the default HasherPool.

func (*Epoch) MarshalSSZ

func (e *Epoch) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals epoch into a serialized object.

func (*Epoch) MarshalSSZTo

func (e *Epoch) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo marshals epoch with the provided byte slice.

func (Epoch) Mod

func (e Epoch) Mod(x uint64) Epoch

Mod returns result of `epoch % x`. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Epoch) Mul

func (e Epoch) Mul(x uint64) Epoch

Mul multiplies epoch by x. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Epoch) SafeAdd

func (e Epoch) SafeAdd(x uint64) (Epoch, error)

SafeAdd increases epoch by x. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Epoch) SafeAddEpoch

func (e Epoch) SafeAddEpoch(x Epoch) (Epoch, error)

SafeAddEpoch increases epoch using another epoch value. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Epoch) SafeDiv

func (e Epoch) SafeDiv(x uint64) (Epoch, error)

SafeDiv divides epoch by x. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Epoch) SafeMod

func (e Epoch) SafeMod(x uint64) (Epoch, error)

SafeMod returns result of `epoch % x`. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Epoch) SafeMul

func (e Epoch) SafeMul(x uint64) (Epoch, error)

SafeMul multiplies epoch by x. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Epoch) SafeSub

func (e Epoch) SafeSub(x uint64) (Epoch, error)

SafeSub subtracts x from the epoch. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (*Epoch) SizeSSZ

func (e *Epoch) SizeSSZ() int

SizeSSZ returns the size of the serialized object.

func (Epoch) Sub

func (e Epoch) Sub(x uint64) Epoch

Sub subtracts x from the epoch. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Epoch) ToBytesBigEndian

func (e Epoch) ToBytesBigEndian() []byte

ToBytesBigEndian conversion.

func (Epoch) ToBytesLittleEndian

func (e Epoch) ToBytesLittleEndian() []byte

ToBytesLittleEndian conversion.

func (Epoch) UniqueKey

func (e Epoch) UniqueKey() [32]byte

UniqueKey convert the Epoch to the unique hash.

func (*Epoch) UnmarshalSSZ

func (e *Epoch) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ deserializes the provided bytes buffer into the epoch object.

type EventChainReorg

type EventChainReorg struct {

	// The slot of the observed reorg.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Depth of the reorg in slots.
	Depth uint64 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"`
	// Block root of the old head.
	OldHeadBlock []byte `protobuf:"bytes,3,opt,name=old_head_block,json=oldHeadBlock,proto3" json:"old_head_block,omitempty" ssz-size:"32"`
	// Block root of the new head.
	NewHeadBlock []byte `protobuf:"bytes,4,opt,name=new_head_block,json=newHeadBlock,proto3" json:"new_head_block,omitempty" ssz-size:"32"`
	// State root of the old state.
	OldHeadState []byte `protobuf:"bytes,5,opt,name=old_head_state,json=oldHeadState,proto3" json:"old_head_state,omitempty" ssz-size:"32"`
	// State root of the new state.
	NewHeadState []byte `protobuf:"bytes,6,opt,name=new_head_state,json=newHeadState,proto3" json:"new_head_state,omitempty" ssz-size:"32"`
	// Epoch of the observed reorg.
	Epoch Epoch `protobuf:"varint,7,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// contains filtered or unexported fields
}

func (*EventChainReorg) Descriptor deprecated

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

Deprecated: Use EventChainReorg.ProtoReflect.Descriptor instead.

func (*EventChainReorg) GetDepth

func (x *EventChainReorg) GetDepth() uint64

func (*EventChainReorg) GetEpoch

func (x *EventChainReorg) GetEpoch() Epoch

func (*EventChainReorg) GetNewHeadBlock

func (x *EventChainReorg) GetNewHeadBlock() []byte

func (*EventChainReorg) GetNewHeadState

func (x *EventChainReorg) GetNewHeadState() []byte

func (*EventChainReorg) GetOldHeadBlock

func (x *EventChainReorg) GetOldHeadBlock() []byte

func (*EventChainReorg) GetOldHeadState

func (x *EventChainReorg) GetOldHeadState() []byte

func (*EventChainReorg) GetSlot

func (x *EventChainReorg) GetSlot() Slot

func (*EventChainReorg) ProtoMessage

func (*EventChainReorg) ProtoMessage()

func (*EventChainReorg) ProtoReflect

func (x *EventChainReorg) ProtoReflect() protoreflect.Message

func (*EventChainReorg) Reset

func (x *EventChainReorg) Reset()

func (*EventChainReorg) String

func (x *EventChainReorg) String() string

type EventFinalizedCheckpoint

type EventFinalizedCheckpoint struct {

	// Block root of the finalized checkpoint.
	Block []byte `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty" ssz-size:"32"`
	// State root of the finalized checkpoint.
	State []byte `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty" ssz-size:"32"`
	// Epoch the checkpoint references.
	Epoch Epoch `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// contains filtered or unexported fields
}

func (*EventFinalizedCheckpoint) Descriptor deprecated

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

Deprecated: Use EventFinalizedCheckpoint.ProtoReflect.Descriptor instead.

func (*EventFinalizedCheckpoint) GetBlock

func (x *EventFinalizedCheckpoint) GetBlock() []byte

func (*EventFinalizedCheckpoint) GetEpoch

func (x *EventFinalizedCheckpoint) GetEpoch() Epoch

func (*EventFinalizedCheckpoint) GetState

func (x *EventFinalizedCheckpoint) GetState() []byte

func (*EventFinalizedCheckpoint) ProtoMessage

func (*EventFinalizedCheckpoint) ProtoMessage()

func (*EventFinalizedCheckpoint) ProtoReflect

func (x *EventFinalizedCheckpoint) ProtoReflect() protoreflect.Message

func (*EventFinalizedCheckpoint) Reset

func (x *EventFinalizedCheckpoint) Reset()

func (*EventFinalizedCheckpoint) String

func (x *EventFinalizedCheckpoint) String() string

type EventHead

type EventHead struct {

	// Slot of the new chain head.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Block root of the new chain head.
	Block []byte `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty" ssz-size:"32"`
	// State root of the new chain head.
	State []byte `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty" ssz-size:"32"`
	// Whether or not the new chain head is at an epoch transition.
	EpochTransition bool `protobuf:"varint,4,opt,name=epoch_transition,json=epochTransition,proto3" json:"epoch_transition,omitempty"`
	// contains filtered or unexported fields
}

func (*EventHead) Descriptor deprecated

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

Deprecated: Use EventHead.ProtoReflect.Descriptor instead.

func (*EventHead) GetBlock

func (x *EventHead) GetBlock() []byte

func (*EventHead) GetEpochTransition

func (x *EventHead) GetEpochTransition() bool

func (*EventHead) GetSlot

func (x *EventHead) GetSlot() Slot

func (*EventHead) GetState

func (x *EventHead) GetState() []byte

func (*EventHead) ProtoMessage

func (*EventHead) ProtoMessage()

func (*EventHead) ProtoReflect

func (x *EventHead) ProtoReflect() protoreflect.Message

func (*EventHead) Reset

func (x *EventHead) Reset()

func (*EventHead) String

func (x *EventHead) String() string

type FinalizedBlockRootContainer

type FinalizedBlockRootContainer struct {
	ParentRoot []byte `protobuf:"bytes,1,opt,name=parent_root,json=parentRoot,proto3" json:"parent_root,omitempty"`
	ChildRoot  []byte `protobuf:"bytes,2,opt,name=child_root,json=childRoot,proto3" json:"child_root,omitempty"`
	// contains filtered or unexported fields
}

func (*FinalizedBlockRootContainer) Descriptor deprecated

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

Deprecated: Use FinalizedBlockRootContainer.ProtoReflect.Descriptor instead.

func (*FinalizedBlockRootContainer) GetChildRoot

func (x *FinalizedBlockRootContainer) GetChildRoot() []byte

func (*FinalizedBlockRootContainer) GetParentRoot

func (x *FinalizedBlockRootContainer) GetParentRoot() []byte

func (*FinalizedBlockRootContainer) ProtoMessage

func (*FinalizedBlockRootContainer) ProtoMessage()

func (*FinalizedBlockRootContainer) ProtoReflect

func (*FinalizedBlockRootContainer) Reset

func (x *FinalizedBlockRootContainer) Reset()

func (*FinalizedBlockRootContainer) String

func (x *FinalizedBlockRootContainer) String() string

type Genesis

type Genesis struct {

	// UTC time specified in the chain start event in the deposit contract.
	GenesisTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	// Root of the genesis validators deposits; used for domain separation
	// when signing data structures for this chain.
	GenesisIdentifier []byte `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Genesis information for the chain.

func (*Genesis) Descriptor deprecated

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

Deprecated: Use Genesis.ProtoReflect.Descriptor instead.

func (*Genesis) GetGenesisIdentifier

func (x *Genesis) GetGenesisIdentifier() []byte

func (*Genesis) GetGenesisTime

func (x *Genesis) GetGenesisTime() *timestamp.Timestamp

func (*Genesis) ProtoMessage

func (*Genesis) ProtoMessage()

func (*Genesis) ProtoReflect

func (x *Genesis) ProtoReflect() protoreflect.Message

func (*Genesis) Reset

func (x *Genesis) Reset()

func (*Genesis) String

func (x *Genesis) String() string

type GetAuditorRequest

type GetAuditorRequest struct {

	// 48 byte auditor public key.
	PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// contains filtered or unexported fields
}

func (*GetAuditorRequest) Descriptor deprecated

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

Deprecated: Use GetAuditorRequest.ProtoReflect.Descriptor instead.

func (*GetAuditorRequest) GetPublicKey

func (x *GetAuditorRequest) GetPublicKey() []byte

func (*GetAuditorRequest) ProtoMessage

func (*GetAuditorRequest) ProtoMessage()

func (*GetAuditorRequest) ProtoReflect

func (x *GetAuditorRequest) ProtoReflect() protoreflect.Message

func (*GetAuditorRequest) Reset

func (x *GetAuditorRequest) Reset()

func (*GetAuditorRequest) String

func (x *GetAuditorRequest) String() string

type GetPoRChallengeRequest

type GetPoRChallengeRequest struct {

	// Tx hash of the storage contract.
	CommitTxHash []byte `protobuf:"bytes,1,opt,name=commit_tx_hash,json=commitTxHash,proto3" json:"commit_tx_hash,omitempty" ssz-size:"32"`
	// Hash of the corresponding PoRChallenge struct to request.
	PorChallengeHash []byte `protobuf:"bytes,2,opt,name=por_challenge_hash,json=porChallengeHash,proto3" json:"por_challenge_hash,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

Request for a PoR challenge targeted for a storage contract.

func (*GetPoRChallengeRequest) Descriptor deprecated

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

Deprecated: Use GetPoRChallengeRequest.ProtoReflect.Descriptor instead.

func (*GetPoRChallengeRequest) GetCommitTxHash

func (x *GetPoRChallengeRequest) GetCommitTxHash() []byte

func (*GetPoRChallengeRequest) GetPorChallengeHash

func (x *GetPoRChallengeRequest) GetPorChallengeHash() []byte

func (*GetPoRChallengeRequest) ProtoMessage

func (*GetPoRChallengeRequest) ProtoMessage()

func (*GetPoRChallengeRequest) ProtoReflect

func (x *GetPoRChallengeRequest) ProtoReflect() protoreflect.Message

func (*GetPoRChallengeRequest) Reset

func (x *GetPoRChallengeRequest) Reset()

func (*GetPoRChallengeRequest) String

func (x *GetPoRChallengeRequest) String() string

type GetPoRChallengeResponse

type GetPoRChallengeResponse struct {
	Challenge *PoRChallenge `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
	// contains filtered or unexported fields
}

Response for the GetPoRChallengeRequest.

func (*GetPoRChallengeResponse) Descriptor deprecated

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

Deprecated: Use GetPoRChallengeResponse.ProtoReflect.Descriptor instead.

func (*GetPoRChallengeResponse) GetChallenge

func (x *GetPoRChallengeResponse) GetChallenge() *PoRChallenge

func (*GetPoRChallengeResponse) ProtoMessage

func (*GetPoRChallengeResponse) ProtoMessage()

func (*GetPoRChallengeResponse) ProtoReflect

func (x *GetPoRChallengeResponse) ProtoReflect() protoreflect.Message

func (*GetPoRChallengeResponse) Reset

func (x *GetPoRChallengeResponse) Reset()

func (*GetPoRChallengeResponse) String

func (x *GetPoRChallengeResponse) String() string

type GetStorageContractRequest

type GetStorageContractRequest struct {

	// Tx hash of the storage contract to be requested.
	CommitTxHash []byte `protobuf:"bytes,1,opt,name=commit_tx_hash,json=commitTxHash,proto3" json:"commit_tx_hash,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

Request for a storage contract of the given tx hash.

func (*GetStorageContractRequest) Descriptor deprecated

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

Deprecated: Use GetStorageContractRequest.ProtoReflect.Descriptor instead.

func (*GetStorageContractRequest) GetCommitTxHash

func (x *GetStorageContractRequest) GetCommitTxHash() []byte

func (*GetStorageContractRequest) ProtoMessage

func (*GetStorageContractRequest) ProtoMessage()

func (*GetStorageContractRequest) ProtoReflect

func (*GetStorageContractRequest) Reset

func (x *GetStorageContractRequest) Reset()

func (*GetStorageContractRequest) String

func (x *GetStorageContractRequest) String() string

type GetStorageContractResponse

type GetStorageContractResponse struct {
	Contract *StorageContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
	// contains filtered or unexported fields
}

Response for the GetStorageContractRequest.

func (*GetStorageContractResponse) Descriptor deprecated

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

Deprecated: Use GetStorageContractResponse.ProtoReflect.Descriptor instead.

func (*GetStorageContractResponse) GetContract

func (x *GetStorageContractResponse) GetContract() *StorageContract

func (*GetStorageContractResponse) ProtoMessage

func (*GetStorageContractResponse) ProtoMessage()

func (*GetStorageContractResponse) ProtoReflect

func (*GetStorageContractResponse) Reset

func (x *GetStorageContractResponse) Reset()

func (*GetStorageContractResponse) String

func (x *GetStorageContractResponse) String() string

type GetTransactionRequest

type GetTransactionRequest struct {

	// Hash of the transaction to be requested.
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

Request for a transaction detail of the given tx hash.

func (*GetTransactionRequest) Descriptor deprecated

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

Deprecated: Use GetTransactionRequest.ProtoReflect.Descriptor instead.

func (*GetTransactionRequest) GetHash

func (x *GetTransactionRequest) GetHash() []byte

func (*GetTransactionRequest) ProtoMessage

func (*GetTransactionRequest) ProtoMessage()

func (*GetTransactionRequest) ProtoReflect

func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message

func (*GetTransactionRequest) Reset

func (x *GetTransactionRequest) Reset()

func (*GetTransactionRequest) String

func (x *GetTransactionRequest) String() string

type GetTransactionResponse

type GetTransactionResponse struct {
	Slot      Slot               `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	Finalized bool               `protobuf:"varint,2,opt,name=finalized,proto3" json:"finalized,omitempty"`
	SignedTx  *SignedTransaction `protobuf:"bytes,3,opt,name=signed_tx,json=signedTx,proto3" json:"signed_tx,omitempty"`
	// contains filtered or unexported fields
}

Response for the GetTransactionRequest.

func (*GetTransactionResponse) Descriptor deprecated

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

Deprecated: Use GetTransactionResponse.ProtoReflect.Descriptor instead.

func (*GetTransactionResponse) GetFinalized

func (x *GetTransactionResponse) GetFinalized() bool

func (*GetTransactionResponse) GetSignedTx

func (x *GetTransactionResponse) GetSignedTx() *SignedTransaction

func (*GetTransactionResponse) GetSlot

func (x *GetTransactionResponse) GetSlot() Slot

func (*GetTransactionResponse) ProtoMessage

func (*GetTransactionResponse) ProtoMessage()

func (*GetTransactionResponse) ProtoReflect

func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message

func (*GetTransactionResponse) Reset

func (x *GetTransactionResponse) Reset()

func (*GetTransactionResponse) String

func (x *GetTransactionResponse) String() string

type GetValidatorActiveSetChangesRequest

type GetValidatorActiveSetChangesRequest struct {

	// Types that are assignable to QueryFilter:
	//	*GetValidatorActiveSetChangesRequest_Epoch
	//	*GetValidatorActiveSetChangesRequest_Genesis
	QueryFilter isGetValidatorActiveSetChangesRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// contains filtered or unexported fields
}

func (*GetValidatorActiveSetChangesRequest) Descriptor deprecated

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

Deprecated: Use GetValidatorActiveSetChangesRequest.ProtoReflect.Descriptor instead.

func (*GetValidatorActiveSetChangesRequest) GetEpoch

func (*GetValidatorActiveSetChangesRequest) GetGenesis

func (x *GetValidatorActiveSetChangesRequest) GetGenesis() bool

func (*GetValidatorActiveSetChangesRequest) GetQueryFilter

func (m *GetValidatorActiveSetChangesRequest) GetQueryFilter() isGetValidatorActiveSetChangesRequest_QueryFilter

func (*GetValidatorActiveSetChangesRequest) ProtoMessage

func (*GetValidatorActiveSetChangesRequest) ProtoMessage()

func (*GetValidatorActiveSetChangesRequest) ProtoReflect

func (*GetValidatorActiveSetChangesRequest) Reset

func (*GetValidatorActiveSetChangesRequest) String

type GetValidatorActiveSetChangesRequest_Epoch

type GetValidatorActiveSetChangesRequest_Epoch struct {
	// Optional criteria to retrieve balances at a specific epoch.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type GetValidatorActiveSetChangesRequest_Genesis

type GetValidatorActiveSetChangesRequest_Genesis struct {
	// Optional criteria to retrieve the genesis list of balances.
	Genesis bool `protobuf:"varint,2,opt,name=genesis,proto3,oneof"`
}

type GetValidatorParticipationRequest

type GetValidatorParticipationRequest struct {

	// Types that are assignable to QueryFilter:
	//	*GetValidatorParticipationRequest_Epoch
	//	*GetValidatorParticipationRequest_Genesis
	QueryFilter isGetValidatorParticipationRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// contains filtered or unexported fields
}

func (*GetValidatorParticipationRequest) Descriptor deprecated

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

Deprecated: Use GetValidatorParticipationRequest.ProtoReflect.Descriptor instead.

func (*GetValidatorParticipationRequest) GetEpoch

func (*GetValidatorParticipationRequest) GetGenesis

func (x *GetValidatorParticipationRequest) GetGenesis() bool

func (*GetValidatorParticipationRequest) GetQueryFilter

func (m *GetValidatorParticipationRequest) GetQueryFilter() isGetValidatorParticipationRequest_QueryFilter

func (*GetValidatorParticipationRequest) ProtoMessage

func (*GetValidatorParticipationRequest) ProtoMessage()

func (*GetValidatorParticipationRequest) ProtoReflect

func (*GetValidatorParticipationRequest) Reset

func (*GetValidatorParticipationRequest) String

type GetValidatorParticipationRequest_Epoch

type GetValidatorParticipationRequest_Epoch struct {
	// Epoch to request participation information.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type GetValidatorParticipationRequest_Genesis

type GetValidatorParticipationRequest_Genesis struct {
	// Whether or not to query for the genesis information.
	Genesis bool `protobuf:"varint,2,opt,name=genesis,proto3,oneof"`
}

type GetValidatorRequest

type GetValidatorRequest struct {

	// Types that are assignable to QueryFilter:
	//	*GetValidatorRequest_Index
	//	*GetValidatorRequest_PublicKey
	QueryFilter isGetValidatorRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// contains filtered or unexported fields
}

func (*GetValidatorRequest) Descriptor deprecated

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

Deprecated: Use GetValidatorRequest.ProtoReflect.Descriptor instead.

func (*GetValidatorRequest) GetIndex

func (x *GetValidatorRequest) GetIndex() ValidatorIndex

func (*GetValidatorRequest) GetPublicKey

func (x *GetValidatorRequest) GetPublicKey() []byte

func (*GetValidatorRequest) GetQueryFilter

func (m *GetValidatorRequest) GetQueryFilter() isGetValidatorRequest_QueryFilter

func (*GetValidatorRequest) ProtoMessage

func (*GetValidatorRequest) ProtoMessage()

func (*GetValidatorRequest) ProtoReflect

func (x *GetValidatorRequest) ProtoReflect() protoreflect.Message

func (*GetValidatorRequest) Reset

func (x *GetValidatorRequest) Reset()

func (*GetValidatorRequest) String

func (x *GetValidatorRequest) String() string

type GetValidatorRequest_Index

type GetValidatorRequest_Index struct {
	// Validator index in the registry.
	Index ValidatorIndex `protobuf:"varint,1,opt,name=index,proto3,oneof" cast-type:"ValidatorIndex"`
}

type GetValidatorRequest_PublicKey

type GetValidatorRequest_PublicKey struct {
	// 48 byte validator public key.
	PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3,oneof" ssz-size:"48"`
}

type HighestAttestation

type HighestAttestation struct {
	ValidatorIndex     uint64 `protobuf:"varint,1,opt,name=validator_index,json=validatorIndex,proto3" json:"validator_index,omitempty"`
	HighestSourceEpoch Epoch  `` /* 136-byte string literal not displayed */
	HighestTargetEpoch Epoch  `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HighestAttestation) Descriptor deprecated

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

Deprecated: Use HighestAttestation.ProtoReflect.Descriptor instead.

func (*HighestAttestation) GetHighestSourceEpoch

func (x *HighestAttestation) GetHighestSourceEpoch() Epoch

func (*HighestAttestation) GetHighestTargetEpoch

func (x *HighestAttestation) GetHighestTargetEpoch() Epoch

func (*HighestAttestation) GetValidatorIndex

func (x *HighestAttestation) GetValidatorIndex() uint64

func (*HighestAttestation) ProtoMessage

func (*HighestAttestation) ProtoMessage()

func (*HighestAttestation) ProtoReflect

func (x *HighestAttestation) ProtoReflect() protoreflect.Message

func (*HighestAttestation) Reset

func (x *HighestAttestation) Reset()

func (*HighestAttestation) String

func (x *HighestAttestation) String() string

type HighestAttestationRequest

type HighestAttestationRequest struct {
	ValidatorIndices []uint64 `protobuf:"varint,1,rep,packed,name=validator_indices,json=validatorIndices,proto3" json:"validator_indices,omitempty"`
	// contains filtered or unexported fields
}

func (*HighestAttestationRequest) Descriptor deprecated

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

Deprecated: Use HighestAttestationRequest.ProtoReflect.Descriptor instead.

func (*HighestAttestationRequest) GetValidatorIndices

func (x *HighestAttestationRequest) GetValidatorIndices() []uint64

func (*HighestAttestationRequest) ProtoMessage

func (*HighestAttestationRequest) ProtoMessage()

func (*HighestAttestationRequest) ProtoReflect

func (*HighestAttestationRequest) Reset

func (x *HighestAttestationRequest) Reset()

func (*HighestAttestationRequest) String

func (x *HighestAttestationRequest) String() string

type HighestAttestationResponse

type HighestAttestationResponse struct {
	Attestations []*HighestAttestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations,omitempty"`
	// contains filtered or unexported fields
}

func (*HighestAttestationResponse) Descriptor deprecated

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

Deprecated: Use HighestAttestationResponse.ProtoReflect.Descriptor instead.

func (*HighestAttestationResponse) GetAttestations

func (x *HighestAttestationResponse) GetAttestations() []*HighestAttestation

func (*HighestAttestationResponse) ProtoMessage

func (*HighestAttestationResponse) ProtoMessage()

func (*HighestAttestationResponse) ProtoReflect

func (*HighestAttestationResponse) Reset

func (x *HighestAttestationResponse) Reset()

func (*HighestAttestationResponse) String

func (x *HighestAttestationResponse) String() string

type HostData

type HostData struct {

	// All the  multiaddress of the peer, specified as a full multiaddr, for example:
	// /ip4/37.221.192.134/tcp/13000/p2p/16Uiu2HAm8maLMjag1TAUM52zPfmLbVMGFdwUAWgoHu1HDQLR6e17
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// The peer id of the peer.
	PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// The latest ENR of the local peer.
	Enr string `protobuf:"bytes,3,opt,name=enr,proto3" json:"enr,omitempty"`
	// contains filtered or unexported fields
}

P2P Data on the local host.

func (*HostData) Descriptor deprecated

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

Deprecated: Use HostData.ProtoReflect.Descriptor instead.

func (*HostData) GetAddresses

func (x *HostData) GetAddresses() []string

func (*HostData) GetEnr

func (x *HostData) GetEnr() string

func (*HostData) GetPeerId

func (x *HostData) GetPeerId() string

func (*HostData) ProtoMessage

func (*HostData) ProtoMessage()

func (*HostData) ProtoReflect

func (x *HostData) ProtoReflect() protoreflect.Message

func (*HostData) Reset

func (x *HostData) Reset()

func (*HostData) String

func (x *HostData) String() string

type ImplementedServices

type ImplementedServices struct {
	Services []string `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

func (*ImplementedServices) Descriptor deprecated

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

Deprecated: Use ImplementedServices.ProtoReflect.Descriptor instead.

func (*ImplementedServices) GetServices

func (x *ImplementedServices) GetServices() []string

func (*ImplementedServices) ProtoMessage

func (*ImplementedServices) ProtoMessage()

func (*ImplementedServices) ProtoReflect

func (x *ImplementedServices) ProtoReflect() protoreflect.Message

func (*ImplementedServices) Reset

func (x *ImplementedServices) Reset()

func (*ImplementedServices) String

func (x *ImplementedServices) String() string

type InclusionSlotRequest

type InclusionSlotRequest struct {
	Id   uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Slot Slot   `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// contains filtered or unexported fields
}

func (*InclusionSlotRequest) Descriptor deprecated

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

Deprecated: Use InclusionSlotRequest.ProtoReflect.Descriptor instead.

func (*InclusionSlotRequest) GetId

func (x *InclusionSlotRequest) GetId() uint64

func (*InclusionSlotRequest) GetSlot

func (x *InclusionSlotRequest) GetSlot() Slot

func (*InclusionSlotRequest) ProtoMessage

func (*InclusionSlotRequest) ProtoMessage()

func (*InclusionSlotRequest) ProtoReflect

func (x *InclusionSlotRequest) ProtoReflect() protoreflect.Message

func (*InclusionSlotRequest) Reset

func (x *InclusionSlotRequest) Reset()

func (*InclusionSlotRequest) String

func (x *InclusionSlotRequest) String() string

type InclusionSlotResponse

type InclusionSlotResponse struct {
	Slot Slot `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// contains filtered or unexported fields
}

func (*InclusionSlotResponse) Descriptor deprecated

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

Deprecated: Use InclusionSlotResponse.ProtoReflect.Descriptor instead.

func (*InclusionSlotResponse) GetSlot

func (x *InclusionSlotResponse) GetSlot() Slot

func (*InclusionSlotResponse) ProtoMessage

func (*InclusionSlotResponse) ProtoMessage()

func (*InclusionSlotResponse) ProtoReflect

func (x *InclusionSlotResponse) ProtoReflect() protoreflect.Message

func (*InclusionSlotResponse) Reset

func (x *InclusionSlotResponse) Reset()

func (*InclusionSlotResponse) String

func (x *InclusionSlotResponse) String() string

type IndexedAttestation

type IndexedAttestation struct {
	AttestingIndices []uint64         `` /* 132-byte string literal not displayed */
	Data             *AttestationData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// 96 bytes aggregate signature.
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

func CopyIndexedAttestation

func CopyIndexedAttestation(indexedAtt *IndexedAttestation) *IndexedAttestation

CopyIndexedAttestation copies the provided IndexedAttestation.

func (*IndexedAttestation) Descriptor deprecated

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

Deprecated: Use IndexedAttestation.ProtoReflect.Descriptor instead.

func (*IndexedAttestation) GetAttestingIndices

func (x *IndexedAttestation) GetAttestingIndices() []uint64

func (*IndexedAttestation) GetData

func (x *IndexedAttestation) GetData() *AttestationData

func (*IndexedAttestation) GetSignature

func (x *IndexedAttestation) GetSignature() []byte

func (*IndexedAttestation) HashTreeRoot

func (i *IndexedAttestation) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the IndexedAttestation object

func (*IndexedAttestation) HashTreeRootWith

func (i *IndexedAttestation) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the IndexedAttestation object with a hasher

func (*IndexedAttestation) MarshalSSZ

func (i *IndexedAttestation) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the IndexedAttestation object

func (*IndexedAttestation) MarshalSSZTo

func (i *IndexedAttestation) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the IndexedAttestation object to a target array

func (*IndexedAttestation) ProtoMessage

func (*IndexedAttestation) ProtoMessage()

func (*IndexedAttestation) ProtoReflect

func (x *IndexedAttestation) ProtoReflect() protoreflect.Message

func (*IndexedAttestation) Reset

func (x *IndexedAttestation) Reset()

func (*IndexedAttestation) SizeSSZ

func (i *IndexedAttestation) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the IndexedAttestation object

func (*IndexedAttestation) String

func (x *IndexedAttestation) String() string

func (*IndexedAttestation) UnmarshalSSZ

func (i *IndexedAttestation) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the IndexedAttestation object

type IndividualVotesRequest

type IndividualVotesRequest struct {

	// Epoch of the request.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// Validator 48 byte BLS public keys to filter validators for the given epoch.
	PublicKeys [][]byte `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	// Validator indices to filter validators for the given epoch.
	Indices []ValidatorIndex `protobuf:"varint,3,rep,packed,name=indices,proto3" json:"indices,omitempty" cast-type:"ValidatorIndex"`
	// contains filtered or unexported fields
}

func (*IndividualVotesRequest) Descriptor deprecated

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

Deprecated: Use IndividualVotesRequest.ProtoReflect.Descriptor instead.

func (*IndividualVotesRequest) GetEpoch

func (x *IndividualVotesRequest) GetEpoch() Epoch

func (*IndividualVotesRequest) GetIndices

func (x *IndividualVotesRequest) GetIndices() []ValidatorIndex

func (*IndividualVotesRequest) GetPublicKeys

func (x *IndividualVotesRequest) GetPublicKeys() [][]byte

func (*IndividualVotesRequest) ProtoMessage

func (*IndividualVotesRequest) ProtoMessage()

func (*IndividualVotesRequest) ProtoReflect

func (x *IndividualVotesRequest) ProtoReflect() protoreflect.Message

func (*IndividualVotesRequest) Reset

func (x *IndividualVotesRequest) Reset()

func (*IndividualVotesRequest) String

func (x *IndividualVotesRequest) String() string

type IndividualVotesRespond

type IndividualVotesRespond struct {
	IndividualVotes []*IndividualVotesRespond_IndividualVote `protobuf:"bytes,1,rep,name=individual_votes,json=individualVotes,proto3" json:"individual_votes,omitempty"`
	// contains filtered or unexported fields
}

func (*IndividualVotesRespond) Descriptor deprecated

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

Deprecated: Use IndividualVotesRespond.ProtoReflect.Descriptor instead.

func (*IndividualVotesRespond) GetIndividualVotes

func (*IndividualVotesRespond) ProtoMessage

func (*IndividualVotesRespond) ProtoMessage()

func (*IndividualVotesRespond) ProtoReflect

func (x *IndividualVotesRespond) ProtoReflect() protoreflect.Message

func (*IndividualVotesRespond) Reset

func (x *IndividualVotesRespond) Reset()

func (*IndividualVotesRespond) String

func (x *IndividualVotesRespond) String() string

type IndividualVotesRespond_IndividualVote

type IndividualVotesRespond_IndividualVote struct {

	// The epoch of the vote status request.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// The public key of the vote status request.
	PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// The validator index of the request.
	ValidatorIndex ValidatorIndex `` /* 131-byte string literal not displayed */
	// Has the validator been slashed.
	IsSlashed bool `protobuf:"varint,4,opt,name=is_slashed,json=isSlashed,proto3" json:"is_slashed,omitempty"`
	// Is the validator withdrawable.
	IsWithdrawableInCurrentEpoch bool `` /* 152-byte string literal not displayed */
	// Is the validator active in current epoch.
	IsActiveInCurrentEpoch bool `` /* 134-byte string literal not displayed */
	// Was the validator active in previous epoch.
	IsActiveInPreviousEpoch bool `` /* 137-byte string literal not displayed */
	// Did validator attest for current epoch.
	IsCurrentEpochAttester bool `` /* 132-byte string literal not displayed */
	// Did validator attest target for current epoch.
	IsCurrentEpochTargetAttester bool `` /* 152-byte string literal not displayed */
	// Did validator attest for previous epoch.
	IsPreviousEpochAttester bool `` /* 136-byte string literal not displayed */
	// Did validator attest target for previous epoch.
	IsPreviousEpochTargetAttester bool `` /* 156-byte string literal not displayed */
	// Did validator attest head for previous epoch.
	IsPreviousEpochHeadAttester bool `` /* 150-byte string literal not displayed */
	// The current effective balance of the validator.
	CurrentEpochEffectiveBalanceGwei uint64 `` /* 165-byte string literal not displayed */
	// The slots of when the validator's attestation got included in the block. Only available in phase0.
	//
	// Deprecated: Do not use.
	InclusionSlot Slot `protobuf:"varint,14,opt,name=inclusion_slot,json=inclusionSlot,proto3" json:"inclusion_slot,omitempty" cast-type:"Slot"`
	// How many slots have passed until the validator's attestation got included in the block. Only available in phase0.
	//
	// Deprecated: Do not use.
	InclusionDistance Slot `` /* 131-byte string literal not displayed */
	// The inactivity score of the validator tracks validator participation. [New in Altair]
	InactivityScore uint64 `protobuf:"varint,16,opt,name=inactivity_score,json=inactivityScore,proto3" json:"inactivity_score,omitempty"`
	// contains filtered or unexported fields
}

func (*IndividualVotesRespond_IndividualVote) Descriptor deprecated

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

Deprecated: Use IndividualVotesRespond_IndividualVote.ProtoReflect.Descriptor instead.

func (*IndividualVotesRespond_IndividualVote) GetCurrentEpochEffectiveBalanceGwei

func (x *IndividualVotesRespond_IndividualVote) GetCurrentEpochEffectiveBalanceGwei() uint64

func (*IndividualVotesRespond_IndividualVote) GetEpoch

func (*IndividualVotesRespond_IndividualVote) GetInactivityScore

func (x *IndividualVotesRespond_IndividualVote) GetInactivityScore() uint64

func (*IndividualVotesRespond_IndividualVote) GetInclusionDistance deprecated

func (x *IndividualVotesRespond_IndividualVote) GetInclusionDistance() Slot

Deprecated: Do not use.

func (*IndividualVotesRespond_IndividualVote) GetInclusionSlot deprecated

func (x *IndividualVotesRespond_IndividualVote) GetInclusionSlot() Slot

Deprecated: Do not use.

func (*IndividualVotesRespond_IndividualVote) GetIsActiveInCurrentEpoch

func (x *IndividualVotesRespond_IndividualVote) GetIsActiveInCurrentEpoch() bool

func (*IndividualVotesRespond_IndividualVote) GetIsActiveInPreviousEpoch

func (x *IndividualVotesRespond_IndividualVote) GetIsActiveInPreviousEpoch() bool

func (*IndividualVotesRespond_IndividualVote) GetIsCurrentEpochAttester

func (x *IndividualVotesRespond_IndividualVote) GetIsCurrentEpochAttester() bool

func (*IndividualVotesRespond_IndividualVote) GetIsCurrentEpochTargetAttester

func (x *IndividualVotesRespond_IndividualVote) GetIsCurrentEpochTargetAttester() bool

func (*IndividualVotesRespond_IndividualVote) GetIsPreviousEpochAttester

func (x *IndividualVotesRespond_IndividualVote) GetIsPreviousEpochAttester() bool

func (*IndividualVotesRespond_IndividualVote) GetIsPreviousEpochHeadAttester

func (x *IndividualVotesRespond_IndividualVote) GetIsPreviousEpochHeadAttester() bool

func (*IndividualVotesRespond_IndividualVote) GetIsPreviousEpochTargetAttester

func (x *IndividualVotesRespond_IndividualVote) GetIsPreviousEpochTargetAttester() bool

func (*IndividualVotesRespond_IndividualVote) GetIsSlashed

func (x *IndividualVotesRespond_IndividualVote) GetIsSlashed() bool

func (*IndividualVotesRespond_IndividualVote) GetIsWithdrawableInCurrentEpoch

func (x *IndividualVotesRespond_IndividualVote) GetIsWithdrawableInCurrentEpoch() bool

func (*IndividualVotesRespond_IndividualVote) GetPublicKey

func (x *IndividualVotesRespond_IndividualVote) GetPublicKey() []byte

func (*IndividualVotesRespond_IndividualVote) GetValidatorIndex

func (*IndividualVotesRespond_IndividualVote) ProtoMessage

func (*IndividualVotesRespond_IndividualVote) ProtoMessage()

func (*IndividualVotesRespond_IndividualVote) ProtoReflect

func (*IndividualVotesRespond_IndividualVote) Reset

func (*IndividualVotesRespond_IndividualVote) String

type InfoClient

type InfoClient interface {
	// Retrieve the current network sync status of the node.
	GetSyncStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SyncStatus, error)
	// Retrieve Genesis information for the chain.
	GetGenesis(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Genesis, error)
	// Retrieve information about the running Ethereum Beacon Node.
	GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Version, error)
	// Retrieve the list of services implemented and enabled by this node.
	//
	// Any service not present in this list may return UNIMPLEMENTED or
	// PERMISSION_DENIED. The server may also support fetching services by grpc
	// reflection.
	ListImplementedServices(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ImplementedServices, error)
	// Retrieves the peer data of the local peer.
	GetHost(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HostData, error)
	// Retrieve the peer corresponding to the provided peer id.
	GetPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*Peer, error)
	// Retrieve the list of peers currently connected to this node.
	ListPeers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Peers, error)
}

InfoClient is the client API for Info service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInfoClient

func NewInfoClient(cc grpc.ClientConnInterface) InfoClient

type InfoServer

type InfoServer interface {
	// Retrieve the current network sync status of the node.
	GetSyncStatus(context.Context, *emptypb.Empty) (*SyncStatus, error)
	// Retrieve Genesis information for the chain.
	GetGenesis(context.Context, *emptypb.Empty) (*Genesis, error)
	// Retrieve information about the running Ethereum Beacon Node.
	GetVersion(context.Context, *emptypb.Empty) (*Version, error)
	// Retrieve the list of services implemented and enabled by this node.
	//
	// Any service not present in this list may return UNIMPLEMENTED or
	// PERMISSION_DENIED. The server may also support fetching services by grpc
	// reflection.
	ListImplementedServices(context.Context, *emptypb.Empty) (*ImplementedServices, error)
	// Retrieves the peer data of the local peer.
	GetHost(context.Context, *emptypb.Empty) (*HostData, error)
	// Retrieve the peer corresponding to the provided peer id.
	GetPeer(context.Context, *PeerRequest) (*Peer, error)
	// Retrieve the list of peers currently connected to this node.
	ListPeers(context.Context, *emptypb.Empty) (*Peers, error)
}

InfoServer is the server API for Info service.

type ListAttestationsRequest

type ListAttestationsRequest struct {

	// Types that are assignable to QueryFilter:
	//	*ListAttestationsRequest_Epoch
	//	*ListAttestationsRequest_GenesisEpoch
	QueryFilter isListAttestationsRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// The maximum number of Attestations to return in the response.
	// This field is optional.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A pagination token returned from a previous call to `ListAttestations`
	// that indicates where this listing should continue from.
	// This field is optional.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for attestations.

func (*ListAttestationsRequest) Descriptor deprecated

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

Deprecated: Use ListAttestationsRequest.ProtoReflect.Descriptor instead.

func (*ListAttestationsRequest) GetEpoch

func (x *ListAttestationsRequest) GetEpoch() Epoch

func (*ListAttestationsRequest) GetGenesisEpoch

func (x *ListAttestationsRequest) GetGenesisEpoch() bool

func (*ListAttestationsRequest) GetPageSize

func (x *ListAttestationsRequest) GetPageSize() int32

func (*ListAttestationsRequest) GetPageToken

func (x *ListAttestationsRequest) GetPageToken() string

func (*ListAttestationsRequest) GetQueryFilter

func (m *ListAttestationsRequest) GetQueryFilter() isListAttestationsRequest_QueryFilter

func (*ListAttestationsRequest) ProtoMessage

func (*ListAttestationsRequest) ProtoMessage()

func (*ListAttestationsRequest) ProtoReflect

func (x *ListAttestationsRequest) ProtoReflect() protoreflect.Message

func (*ListAttestationsRequest) Reset

func (x *ListAttestationsRequest) Reset()

func (*ListAttestationsRequest) String

func (x *ListAttestationsRequest) String() string

type ListAttestationsRequest_Epoch

type ListAttestationsRequest_Epoch struct {
	// Filter attestations by epoch processed.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type ListAttestationsRequest_GenesisEpoch

type ListAttestationsRequest_GenesisEpoch struct {
	// Optional criteria to retrieve attestations from 0 epoch.
	GenesisEpoch bool `protobuf:"varint,2,opt,name=genesis_epoch,json=genesisEpoch,proto3,oneof"`
}

type ListAttestationsResponse

type ListAttestationsResponse struct {
	Attestations []*Attestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations,omitempty"`
	// A pagination token returned from a previous call to `ListAttestations`
	// that indicates from where listing should continue.
	// This field is optional.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of Attestations matching the request filter.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAttestationsResponse) Descriptor deprecated

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

Deprecated: Use ListAttestationsResponse.ProtoReflect.Descriptor instead.

func (*ListAttestationsResponse) GetAttestations

func (x *ListAttestationsResponse) GetAttestations() []*Attestation

func (*ListAttestationsResponse) GetNextPageToken

func (x *ListAttestationsResponse) GetNextPageToken() string

func (*ListAttestationsResponse) GetTotalSize

func (x *ListAttestationsResponse) GetTotalSize() int32

func (*ListAttestationsResponse) ProtoMessage

func (*ListAttestationsResponse) ProtoMessage()

func (*ListAttestationsResponse) ProtoReflect

func (x *ListAttestationsResponse) ProtoReflect() protoreflect.Message

func (*ListAttestationsResponse) Reset

func (x *ListAttestationsResponse) Reset()

func (*ListAttestationsResponse) String

func (x *ListAttestationsResponse) String() string

type ListBlocksRequest

type ListBlocksRequest struct {

	// Types that are assignable to QueryFilter:
	//	*ListBlocksRequest_Root
	//	*ListBlocksRequest_Slot
	//	*ListBlocksRequest_Epoch
	//	*ListBlocksRequest_Genesis
	QueryFilter isListBlocksRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// The maximum number of Blocks to return in the response.
	// This field is optional.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A pagination token returned from a previous call to `ListBlocks`
	// that indicates where this listing should continue from.
	// This field is optional.
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBlocksRequest) Descriptor deprecated

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

Deprecated: Use ListBlocksRequest.ProtoReflect.Descriptor instead.

func (*ListBlocksRequest) GetEpoch

func (x *ListBlocksRequest) GetEpoch() Epoch

func (*ListBlocksRequest) GetGenesis

func (x *ListBlocksRequest) GetGenesis() bool

func (*ListBlocksRequest) GetPageSize

func (x *ListBlocksRequest) GetPageSize() int32

func (*ListBlocksRequest) GetPageToken

func (x *ListBlocksRequest) GetPageToken() string

func (*ListBlocksRequest) GetQueryFilter

func (m *ListBlocksRequest) GetQueryFilter() isListBlocksRequest_QueryFilter

func (*ListBlocksRequest) GetRoot

func (x *ListBlocksRequest) GetRoot() []byte

func (*ListBlocksRequest) GetSlot

func (x *ListBlocksRequest) GetSlot() Slot

func (*ListBlocksRequest) ProtoMessage

func (*ListBlocksRequest) ProtoMessage()

func (*ListBlocksRequest) ProtoReflect

func (x *ListBlocksRequest) ProtoReflect() protoreflect.Message

func (*ListBlocksRequest) Reset

func (x *ListBlocksRequest) Reset()

func (*ListBlocksRequest) String

func (x *ListBlocksRequest) String() string

type ListBlocksRequest_Epoch

type ListBlocksRequest_Epoch struct {
	// The epoch number for which to retrieve blocks. If specified, this
	// will return all blocks found within the span of the specified epoch.
	Epoch Epoch `protobuf:"varint,3,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type ListBlocksRequest_Genesis

type ListBlocksRequest_Genesis struct {
	// Optional criteria to retrieve genesis block.
	Genesis bool `protobuf:"varint,4,opt,name=genesis,proto3,oneof"`
}

type ListBlocksRequest_Root

type ListBlocksRequest_Root struct {
	// Block root filter to return a single block.
	Root []byte `protobuf:"bytes,1,opt,name=root,proto3,oneof"`
}

type ListBlocksRequest_Slot

type ListBlocksRequest_Slot struct {
	// Slot to lookup a block. If the slot is not yet finalized, this
	// criteria may yield multiple valid blocks if the node has seen blocks
	// from another fork.
	Slot Slot `protobuf:"varint,2,opt,name=slot,proto3,oneof" cast-type:"Slot"`
}

type ListBlocksResponse

type ListBlocksResponse struct {
	BlockContainers []*BlockContainer `protobuf:"bytes,1,rep,name=block_containers,json=blockContainers,proto3" json:"block_containers,omitempty"`
	// A pagination token returned from a previous call to `ListBlocks`
	// that indicates from where listing should continue.
	// This field is optional.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of Blocks matching the request filter.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBlocksResponse) Descriptor deprecated

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

Deprecated: Use ListBlocksResponse.ProtoReflect.Descriptor instead.

func (*ListBlocksResponse) GetBlockContainers

func (x *ListBlocksResponse) GetBlockContainers() []*BlockContainer

func (*ListBlocksResponse) GetNextPageToken

func (x *ListBlocksResponse) GetNextPageToken() string

func (*ListBlocksResponse) GetTotalSize

func (x *ListBlocksResponse) GetTotalSize() int32

func (*ListBlocksResponse) ProtoMessage

func (*ListBlocksResponse) ProtoMessage()

func (*ListBlocksResponse) ProtoReflect

func (x *ListBlocksResponse) ProtoReflect() protoreflect.Message

func (*ListBlocksResponse) Reset

func (x *ListBlocksResponse) Reset()

func (*ListBlocksResponse) String

func (x *ListBlocksResponse) String() string

type ListCommitteesRequest

type ListCommitteesRequest struct {

	// Types that are assignable to QueryFilter:
	//	*ListCommitteesRequest_Epoch
	//	*ListCommitteesRequest_Genesis
	QueryFilter isListCommitteesRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// contains filtered or unexported fields
}

func (*ListCommitteesRequest) Descriptor deprecated

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

Deprecated: Use ListCommitteesRequest.ProtoReflect.Descriptor instead.

func (*ListCommitteesRequest) GetEpoch

func (x *ListCommitteesRequest) GetEpoch() Epoch

func (*ListCommitteesRequest) GetGenesis

func (x *ListCommitteesRequest) GetGenesis() bool

func (*ListCommitteesRequest) GetQueryFilter

func (m *ListCommitteesRequest) GetQueryFilter() isListCommitteesRequest_QueryFilter

func (*ListCommitteesRequest) ProtoMessage

func (*ListCommitteesRequest) ProtoMessage()

func (*ListCommitteesRequest) ProtoReflect

func (x *ListCommitteesRequest) ProtoReflect() protoreflect.Message

func (*ListCommitteesRequest) Reset

func (x *ListCommitteesRequest) Reset()

func (*ListCommitteesRequest) String

func (x *ListCommitteesRequest) String() string

type ListCommitteesRequest_Epoch

type ListCommitteesRequest_Epoch struct {
	// Optional criteria to retrieve data at a specific epoch.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type ListCommitteesRequest_Genesis

type ListCommitteesRequest_Genesis struct {
	// Optional criteria to retrieve genesis data.
	Genesis bool `protobuf:"varint,2,opt,name=genesis,proto3,oneof"`
}

type ListIndexedAttestationsRequest

type ListIndexedAttestationsRequest struct {

	// Types that are assignable to QueryFilter:
	//	*ListIndexedAttestationsRequest_Epoch
	//	*ListIndexedAttestationsRequest_GenesisEpoch
	QueryFilter isListIndexedAttestationsRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// The maximum number of IndexedAttestations to return in the response.
	// This field is optional.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A pagination token returned from a previous call to `ListIndexedAttestations`
	// that indicates where this listing should continue from.
	// This field is optional.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for indexed attestations by target epoch.

func (*ListIndexedAttestationsRequest) Descriptor deprecated

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

Deprecated: Use ListIndexedAttestationsRequest.ProtoReflect.Descriptor instead.

func (*ListIndexedAttestationsRequest) GetEpoch

func (x *ListIndexedAttestationsRequest) GetEpoch() Epoch

func (*ListIndexedAttestationsRequest) GetGenesisEpoch

func (x *ListIndexedAttestationsRequest) GetGenesisEpoch() bool

func (*ListIndexedAttestationsRequest) GetPageSize

func (x *ListIndexedAttestationsRequest) GetPageSize() int32

func (*ListIndexedAttestationsRequest) GetPageToken

func (x *ListIndexedAttestationsRequest) GetPageToken() string

func (*ListIndexedAttestationsRequest) GetQueryFilter

func (m *ListIndexedAttestationsRequest) GetQueryFilter() isListIndexedAttestationsRequest_QueryFilter

func (*ListIndexedAttestationsRequest) ProtoMessage

func (*ListIndexedAttestationsRequest) ProtoMessage()

func (*ListIndexedAttestationsRequest) ProtoReflect

func (*ListIndexedAttestationsRequest) Reset

func (x *ListIndexedAttestationsRequest) Reset()

func (*ListIndexedAttestationsRequest) String

type ListIndexedAttestationsRequest_Epoch

type ListIndexedAttestationsRequest_Epoch struct {
	// Retrieve attestations by epoch processed.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type ListIndexedAttestationsRequest_GenesisEpoch

type ListIndexedAttestationsRequest_GenesisEpoch struct {
	// Optional criteria to retrieve genesis epoch attestations.
	GenesisEpoch bool `protobuf:"varint,2,opt,name=genesis_epoch,json=genesisEpoch,proto3,oneof"`
}

type ListIndexedAttestationsResponse

type ListIndexedAttestationsResponse struct {
	IndexedAttestations []*IndexedAttestation `protobuf:"bytes,1,rep,name=indexed_attestations,json=indexedAttestations,proto3" json:"indexed_attestations,omitempty"`
	// A pagination token returned from a previous call to `ListIndexedAttestations`
	// that indicates from where listing should continue.
	// This field is optional.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of Attestations matching the request filter.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListIndexedAttestationsResponse) Descriptor deprecated

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

Deprecated: Use ListIndexedAttestationsResponse.ProtoReflect.Descriptor instead.

func (*ListIndexedAttestationsResponse) GetIndexedAttestations

func (x *ListIndexedAttestationsResponse) GetIndexedAttestations() []*IndexedAttestation

func (*ListIndexedAttestationsResponse) GetNextPageToken

func (x *ListIndexedAttestationsResponse) GetNextPageToken() string

func (*ListIndexedAttestationsResponse) GetTotalSize

func (x *ListIndexedAttestationsResponse) GetTotalSize() int32

func (*ListIndexedAttestationsResponse) ProtoMessage

func (*ListIndexedAttestationsResponse) ProtoMessage()

func (*ListIndexedAttestationsResponse) ProtoReflect

func (*ListIndexedAttestationsResponse) Reset

func (*ListIndexedAttestationsResponse) String

type ListValidatorAssignmentsRequest

type ListValidatorAssignmentsRequest struct {

	// Types that are assignable to QueryFilter:
	//	*ListValidatorAssignmentsRequest_Epoch
	//	*ListValidatorAssignmentsRequest_Genesis
	QueryFilter isListValidatorAssignmentsRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// 48 byte validator public keys to filter assignments for the given epoch.
	PublicKeys [][]byte `protobuf:"bytes,3,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty" ssz-size:"?,48"`
	// Validator indicies to filter assignments for the given epoch.
	Indices []ValidatorIndex `protobuf:"varint,4,rep,packed,name=indices,proto3" json:"indices,omitempty" cast-type:"ValidatorIndex"`
	// The maximum number of ValidatorAssignments to return in the response.
	// This field is optional.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A pagination token returned from a previous call to `ListValidatorAssignments`
	// that indicates where this listing should continue from.
	// This field is optional.
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListValidatorAssignmentsRequest) Descriptor deprecated

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

Deprecated: Use ListValidatorAssignmentsRequest.ProtoReflect.Descriptor instead.

func (*ListValidatorAssignmentsRequest) GetEpoch

func (x *ListValidatorAssignmentsRequest) GetEpoch() Epoch

func (*ListValidatorAssignmentsRequest) GetGenesis

func (x *ListValidatorAssignmentsRequest) GetGenesis() bool

func (*ListValidatorAssignmentsRequest) GetIndices

func (*ListValidatorAssignmentsRequest) GetPageSize

func (x *ListValidatorAssignmentsRequest) GetPageSize() int32

func (*ListValidatorAssignmentsRequest) GetPageToken

func (x *ListValidatorAssignmentsRequest) GetPageToken() string

func (*ListValidatorAssignmentsRequest) GetPublicKeys

func (x *ListValidatorAssignmentsRequest) GetPublicKeys() [][]byte

func (*ListValidatorAssignmentsRequest) GetQueryFilter

func (m *ListValidatorAssignmentsRequest) GetQueryFilter() isListValidatorAssignmentsRequest_QueryFilter

func (*ListValidatorAssignmentsRequest) ProtoMessage

func (*ListValidatorAssignmentsRequest) ProtoMessage()

func (*ListValidatorAssignmentsRequest) ProtoReflect

func (*ListValidatorAssignmentsRequest) Reset

func (*ListValidatorAssignmentsRequest) String

type ListValidatorAssignmentsRequest_Epoch

type ListValidatorAssignmentsRequest_Epoch struct {
	// Epoch to validator assignments for.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type ListValidatorAssignmentsRequest_Genesis

type ListValidatorAssignmentsRequest_Genesis struct {
	// Whether or not to query for the genesis information.
	Genesis bool `protobuf:"varint,2,opt,name=genesis,proto3,oneof"`
}

type ListValidatorBalancesRequest

type ListValidatorBalancesRequest struct {

	// Types that are assignable to QueryFilter:
	//	*ListValidatorBalancesRequest_Epoch
	//	*ListValidatorBalancesRequest_Genesis
	QueryFilter isListValidatorBalancesRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// Validator 48 byte BLS public keys to filter validators for the given
	// epoch.
	PublicKeys [][]byte `protobuf:"bytes,3,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty" ssz-size:"?,48"`
	// Validator indices to filter validators for the given epoch.
	Indices []ValidatorIndex `protobuf:"varint,4,rep,packed,name=indices,proto3" json:"indices,omitempty" cast-type:"ValidatorIndex"`
	// The maximum number of Validators to return in the response.
	// This field is optional.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A pagination token returned from a previous call to `GetValidators`
	// that indicates where this listing should continue from.
	// This field is optional.
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListValidatorBalancesRequest) Descriptor deprecated

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

Deprecated: Use ListValidatorBalancesRequest.ProtoReflect.Descriptor instead.

func (*ListValidatorBalancesRequest) GetEpoch

func (x *ListValidatorBalancesRequest) GetEpoch() Epoch

func (*ListValidatorBalancesRequest) GetGenesis

func (x *ListValidatorBalancesRequest) GetGenesis() bool

func (*ListValidatorBalancesRequest) GetIndices

func (x *ListValidatorBalancesRequest) GetIndices() []ValidatorIndex

func (*ListValidatorBalancesRequest) GetPageSize

func (x *ListValidatorBalancesRequest) GetPageSize() int32

func (*ListValidatorBalancesRequest) GetPageToken

func (x *ListValidatorBalancesRequest) GetPageToken() string

func (*ListValidatorBalancesRequest) GetPublicKeys

func (x *ListValidatorBalancesRequest) GetPublicKeys() [][]byte

func (*ListValidatorBalancesRequest) GetQueryFilter

func (m *ListValidatorBalancesRequest) GetQueryFilter() isListValidatorBalancesRequest_QueryFilter

func (*ListValidatorBalancesRequest) ProtoMessage

func (*ListValidatorBalancesRequest) ProtoMessage()

func (*ListValidatorBalancesRequest) ProtoReflect

func (*ListValidatorBalancesRequest) Reset

func (x *ListValidatorBalancesRequest) Reset()

func (*ListValidatorBalancesRequest) String

type ListValidatorBalancesRequest_Epoch

type ListValidatorBalancesRequest_Epoch struct {
	// Optional criteria to retrieve balances at a specific epoch.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type ListValidatorBalancesRequest_Genesis

type ListValidatorBalancesRequest_Genesis struct {
	// Optional criteria to retrieve the genesis list of balances.
	Genesis bool `protobuf:"varint,2,opt,name=genesis,proto3,oneof"`
}

type ListValidatorsRequest

type ListValidatorsRequest struct {

	// Types that are assignable to QueryFilter:
	//	*ListValidatorsRequest_Epoch
	//	*ListValidatorsRequest_Genesis
	QueryFilter isListValidatorsRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// Specify whether or not you want to retrieve only active validators.
	Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
	// The maximum number of Validators to return in the response.
	// This field is optional.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A pagination token returned from a previous call to `GetValidators`
	// that indicates where this listing should continue from.
	// This field is optional.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Specify which validators you would like to retrieve by their public keys.
	// This field is optional.
	PublicKeys [][]byte `protobuf:"bytes,6,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	// Specify which validators you would like to retrieve by their indices.
	// This field is optional.
	Indices []ValidatorIndex `protobuf:"varint,7,rep,packed,name=indices,proto3" json:"indices,omitempty" cast-type:"ValidatorIndex"`
	// contains filtered or unexported fields
}

func (*ListValidatorsRequest) Descriptor deprecated

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

Deprecated: Use ListValidatorsRequest.ProtoReflect.Descriptor instead.

func (*ListValidatorsRequest) GetActive

func (x *ListValidatorsRequest) GetActive() bool

func (*ListValidatorsRequest) GetEpoch

func (x *ListValidatorsRequest) GetEpoch() Epoch

func (*ListValidatorsRequest) GetGenesis

func (x *ListValidatorsRequest) GetGenesis() bool

func (*ListValidatorsRequest) GetIndices

func (x *ListValidatorsRequest) GetIndices() []ValidatorIndex

func (*ListValidatorsRequest) GetPageSize

func (x *ListValidatorsRequest) GetPageSize() int32

func (*ListValidatorsRequest) GetPageToken

func (x *ListValidatorsRequest) GetPageToken() string

func (*ListValidatorsRequest) GetPublicKeys

func (x *ListValidatorsRequest) GetPublicKeys() [][]byte

func (*ListValidatorsRequest) GetQueryFilter

func (m *ListValidatorsRequest) GetQueryFilter() isListValidatorsRequest_QueryFilter

func (*ListValidatorsRequest) ProtoMessage

func (*ListValidatorsRequest) ProtoMessage()

func (*ListValidatorsRequest) ProtoReflect

func (x *ListValidatorsRequest) ProtoReflect() protoreflect.Message

func (*ListValidatorsRequest) Reset

func (x *ListValidatorsRequest) Reset()

func (*ListValidatorsRequest) String

func (x *ListValidatorsRequest) String() string

type ListValidatorsRequest_Epoch

type ListValidatorsRequest_Epoch struct {
	// Optional criteria to retrieve validators at a specific epoch.
	// Omitting this field or setting it to zero will retrieve a response
	// with the current active validator set.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type ListValidatorsRequest_Genesis

type ListValidatorsRequest_Genesis struct {
	// Optional criteria to retrieve the genesis set of validators.
	Genesis bool `protobuf:"varint,2,opt,name=genesis,proto3,oneof"`
}

type LoggingLevelRequest

type LoggingLevelRequest struct {
	Level LoggingLevelRequest_Level `protobuf:"varint,1,opt,name=level,proto3,enum=photon.consensus.LoggingLevelRequest_Level" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*LoggingLevelRequest) Descriptor deprecated

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

Deprecated: Use LoggingLevelRequest.ProtoReflect.Descriptor instead.

func (*LoggingLevelRequest) GetLevel

func (*LoggingLevelRequest) ProtoMessage

func (*LoggingLevelRequest) ProtoMessage()

func (*LoggingLevelRequest) ProtoReflect

func (x *LoggingLevelRequest) ProtoReflect() protoreflect.Message

func (*LoggingLevelRequest) Reset

func (x *LoggingLevelRequest) Reset()

func (*LoggingLevelRequest) String

func (x *LoggingLevelRequest) String() string

type LoggingLevelRequest_Level

type LoggingLevelRequest_Level int32
const (
	LoggingLevelRequest_INFO  LoggingLevelRequest_Level = 0
	LoggingLevelRequest_DEBUG LoggingLevelRequest_Level = 1
	LoggingLevelRequest_TRACE LoggingLevelRequest_Level = 2
)

func (LoggingLevelRequest_Level) Descriptor

func (LoggingLevelRequest_Level) Enum

func (LoggingLevelRequest_Level) EnumDescriptor deprecated

func (LoggingLevelRequest_Level) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoggingLevelRequest_Level.Descriptor instead.

func (LoggingLevelRequest_Level) Number

func (LoggingLevelRequest_Level) String

func (x LoggingLevelRequest_Level) String() string

func (LoggingLevelRequest_Level) Type

type Message

type Message struct {
	Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMsg

func (x *Message) GetMsg() []byte

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Metadata

type Metadata struct {
	SeqNumber uint64                                           `protobuf:"varint,1,opt,name=seq_number,json=seqNumber,proto3" json:"seq_number,omitempty"`
	Attnets   github_com_prysmaticlabs_go_bitfield.Bitvector64 `` /* 141-byte string literal not displayed */
	Syncnets  github_com_prysmaticlabs_go_bitfield.Bitvector4  `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetAttnets

func (*Metadata) GetSeqNumber

func (x *Metadata) GetSeqNumber() uint64

func (*Metadata) GetSyncnets

func (*Metadata) HashTreeRoot

func (m *Metadata) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Metadata object

func (*Metadata) HashTreeRootWith

func (m *Metadata) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Metadata object with a hasher

func (*Metadata) MarshalSSZ

func (m *Metadata) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Metadata object

func (*Metadata) MarshalSSZTo

func (m *Metadata) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Metadata object to a target array

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) SizeSSZ

func (m *Metadata) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Metadata object

func (*Metadata) String

func (x *Metadata) String() string

func (*Metadata) UnmarshalSSZ

func (m *Metadata) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Metadata object

type MultipleValidatorStatusRequest

type MultipleValidatorStatusRequest struct {

	// A list of 48 byte validator public keys.
	PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty" ssz-size:"?,48"`
	// A list of validator indices.
	Indices []int64 `protobuf:"varint,2,rep,packed,name=indices,proto3" json:"indices,omitempty"`
	// contains filtered or unexported fields
}

func (*MultipleValidatorStatusRequest) Descriptor deprecated

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

Deprecated: Use MultipleValidatorStatusRequest.ProtoReflect.Descriptor instead.

func (*MultipleValidatorStatusRequest) GetIndices

func (x *MultipleValidatorStatusRequest) GetIndices() []int64

func (*MultipleValidatorStatusRequest) GetPublicKeys

func (x *MultipleValidatorStatusRequest) GetPublicKeys() [][]byte

func (*MultipleValidatorStatusRequest) ProtoMessage

func (*MultipleValidatorStatusRequest) ProtoMessage()

func (*MultipleValidatorStatusRequest) ProtoReflect

func (*MultipleValidatorStatusRequest) Reset

func (x *MultipleValidatorStatusRequest) Reset()

func (*MultipleValidatorStatusRequest) String

type MultipleValidatorStatusResponse

type MultipleValidatorStatusResponse struct {

	// A list of 48 byte validator public keys.
	PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty" ssz-size:"?,48"`
	// A list of ValidatorStatusResponses mapped 1-to-1 with the public keys.
	Statuses []*ValidatorStatusResponse `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"`
	// A list of validator indices.
	Indices []ValidatorIndex `protobuf:"varint,3,rep,packed,name=indices,proto3" json:"indices,omitempty" cast-type:"ValidatorIndex"`
	// contains filtered or unexported fields
}

func (*MultipleValidatorStatusResponse) Descriptor deprecated

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

Deprecated: Use MultipleValidatorStatusResponse.ProtoReflect.Descriptor instead.

func (*MultipleValidatorStatusResponse) GetIndices

func (*MultipleValidatorStatusResponse) GetPublicKeys

func (x *MultipleValidatorStatusResponse) GetPublicKeys() [][]byte

func (*MultipleValidatorStatusResponse) GetStatuses

func (*MultipleValidatorStatusResponse) ProtoMessage

func (*MultipleValidatorStatusResponse) ProtoMessage()

func (*MultipleValidatorStatusResponse) ProtoReflect

func (*MultipleValidatorStatusResponse) Reset

func (*MultipleValidatorStatusResponse) String

type NodeClient

type NodeClient interface {
	// Retrieve attestations by block root, slot, or epoch.
	//
	// The server may return an empty list when no attestations match the given
	// filter criteria. This RPC should not return NOT_FOUND. Only one filter
	// criteria should be used. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	ListAttestations(ctx context.Context, in *ListAttestationsRequest, opts ...grpc.CallOption) (*ListAttestationsResponse, error)
	// Retrieve indexed attestations by block root, slot, or epoch.
	//
	// The server may return an empty list when no indexed attestations match the given
	// filter criteria. This RPC should not return NOT_FOUND. Only one filter
	// criteria should be used. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	ListIndexedAttestations(ctx context.Context, in *ListIndexedAttestationsRequest, opts ...grpc.CallOption) (*ListIndexedAttestationsResponse, error)
	// Server-side stream of attestations as they are received by the chain node.
	StreamAttestations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Node_StreamAttestationsClient, error)
	// Server-side stream of indexed attestations as they are received by the chain node.
	StreamIndexedAttestations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Node_StreamIndexedAttestationsClient, error)
	// Retrieve attestations from pool.
	//
	// The server returns a list of attestations that have been seen but not
	// yet processed. Pool attestations eventually expire as the slot
	// advances, so an attestation missing from this request does not imply
	// that it was included in a block. The attestation may have expired.
	// Refer to the Ethereum Beacon Chain specification for more details on how
	// attestations are processed and when they are no longer valid.
	// https://github.com/ethereum/consensus-specs/blob/dev/specs/core/0_beacon-chain.md#attestations
	AttestationPool(ctx context.Context, in *AttestationPoolRequest, opts ...grpc.CallOption) (*AttestationPoolResponse, error)
	// Retrieve blocks by root, slot, or epoch.
	//
	// The server may return multiple blocks in the case that a slot or epoch is
	// provided as the filter criteria. The server may return an empty list when
	// no blocks in their database match the filter criteria. This RPC should
	// not return NOT_FOUND. Only one filter criteria should be used. This endpoint
	// allows for retrieval of genesis information via a boolean query filter.
	ListBlocks(ctx context.Context, in *ListBlocksRequest, opts ...grpc.CallOption) (*ListBlocksResponse, error)
	// Server-side stream of all signed blocks as they are received by the chain node.
	StreamBlocks(ctx context.Context, in *StreamBlocksRequest, opts ...grpc.CallOption) (Node_StreamBlocksClient, error)
	// Server-side stream of information about the head of the chain from the view of
	// the chain node.
	//
	// This includes the head block slot and root as well as information about
	// the most recent finalized and justified slots.
	StreamChainHead(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Node_StreamChainHeadClient, error)
	// Retrieve information about the head of the chain from the view of the chain node.
	//
	// This includes the head block slot and root as well as information about
	// the most recent finalized and justified slots.
	GetChainHead(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ChainHead, error)
	// Retrieve information about the weak subjectivity of the chain from the view of
	// the chain node.
	//
	// This includes the weak subjectivity block root, state root and epoch number.
	GetWeakSubjectivityCheckpoint(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WeakSubjectivityCheckpoint, error)
	// Retrieve the chain committees for a given epoch.
	//
	// If no filter criteria is specified, the response returns all committees for
	// the current epoch. The results are paginated by default.
	// This endpoint allows for retrieval of genesis information via a boolean query filter.
	ListCommittees(ctx context.Context, in *ListCommitteesRequest, opts ...grpc.CallOption) (*Committees, error)
	// Retrieve validator balances for a given set of public keys at a specific
	// epoch in time. This endpoint allows for retrieval of genesis information
	// via a boolean query filter.
	ListValidatorBalances(ctx context.Context, in *ListValidatorBalancesRequest, opts ...grpc.CallOption) (*ValidatorBalances, error)
	// Retrieve the current validator registry.
	//
	// The request may include an optional historical epoch to retrieve a
	// specific validator set in time. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	ListValidators(ctx context.Context, in *ListValidatorsRequest, opts ...grpc.CallOption) (*Validators, error)
	// Retrieve information about a specific validator in the registry.
	//
	// This request may query by validator index or public key.
	GetValidator(ctx context.Context, in *GetValidatorRequest, opts ...grpc.CallOption) (*Validator, error)
	// Retrieve the active set changes for a given epoch.
	//
	// This data includes any activations, voluntary exits, and involuntary
	// ejections. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	GetValidatorActiveSetChanges(ctx context.Context, in *GetValidatorActiveSetChangesRequest, opts ...grpc.CallOption) (*ActiveSetChanges, error)
	// Retrieve the current validator queue information.
	GetValidatorQueue(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ValidatorQueue, error)
	// GetValidatorPerformance reports a validator's latest balance along with other important
	// metrics on rewards and penalties throughout its lifecycle in the chain.
	// The request takes in a list of validator public keys and returns a performance report
	// for all of them respectively.
	GetValidatorPerformance(ctx context.Context, in *ValidatorPerformanceRequest, opts ...grpc.CallOption) (*ValidatorPerformanceResponse, error)
	// Retrieve the validator assignments for a given epoch.
	//
	// This request may specify optional validator indices or public keys to
	// filter validator assignments. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	ListValidatorAssignments(ctx context.Context, in *ListValidatorAssignmentsRequest, opts ...grpc.CallOption) (*ValidatorAssignments, error)
	// Retrieve the validator participation information for a given epoch.
	//
	// This method returns information about the global participation of
	// validator attestations. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	GetValidatorParticipation(ctx context.Context, in *GetValidatorParticipationRequest, opts ...grpc.CallOption) (*ValidatorParticipationResponse, error)
	// Retrieve the current configuration parameters of the chain.
	GetChainConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ChainConfig, error)
	// Server-side stream of validator information at each epoch.
	StreamValidatorsInfo(ctx context.Context, opts ...grpc.CallOption) (Node_StreamValidatorsInfoClient, error)
	// Submit an attester slashing object to the node.
	SubmitAttesterSlashing(ctx context.Context, in *AttesterSlashing, opts ...grpc.CallOption) (*SubmitSlashingResponse, error)
	// Submit a proposer slashing object to the node.
	SubmitProposerSlashing(ctx context.Context, in *ProposerSlashing, opts ...grpc.CallOption) (*SubmitSlashingResponse, error)
	// Returns a list of validators individual vote status of a given epoch.
	GetIndividualVotes(ctx context.Context, in *IndividualVotesRequest, opts ...grpc.CallOption) (*IndividualVotesRespond, error)
	// Submit a transaction to the node.
	SubmitTx(ctx context.Context, in *SignedTransaction, opts ...grpc.CallOption) (*SubmitTxResponse, error)
	// Retrieve a storage contract for a given request.
	GetStorageContract(ctx context.Context, in *GetStorageContractRequest, opts ...grpc.CallOption) (*GetStorageContractResponse, error)
	// Retrieve a PoR challenge for a storage contract.
	GetPoRChallenge(ctx context.Context, in *GetPoRChallengeRequest, opts ...grpc.CallOption) (*GetPoRChallengeResponse, error)
	// Request account info from the node
	GetAccount(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*Account, error)
	//
	// APIs used for retrieving state change logs.
	//
	GetStateChanges(ctx context.Context, in *StateChangeRequest, opts ...grpc.CallOption) (*StateChangeResponse, error)
	// Retrieves validator duties for the requested validators.
	//
	// The duties consist of:
	//   Proposer - the validator that creates a chain block.
	//   Attester — a validator that is part of a committee that needs to sign off
	//      on a chain block while simultaneously creating a cross link to a recent
	//      shard block on a particular shard chain.
	// The server returns a list of duties which are the actions should be performed
	// by validators for a given epoch. Validator duties should be polled every epoch,
	// but due to chain reorg of >MIN_SEED_LOOKAHEAD could occur, the validator duties
	// could chain. For complete safety, it is recommended to poll at every slot to ensure
	// validator is fully aware of any sudden chain reorg.
	GetDuties(ctx context.Context, in *DutiesRequest, opts ...grpc.CallOption) (*DutiesResponse, error)
	// Stream validator duties for the requested validators.
	//
	// The duties consist of:
	//   Proposer - the validator that creates a chain block.
	//   Attester — a validator that is part of a committee that needs to sign off on a chain
	StreamDuties(ctx context.Context, in *DutiesRequest, opts ...grpc.CallOption) (Node_StreamDutiesClient, error)
	// Deprecated: Do not use.
	// WaitForChainStart queries the logs of the Validator Deposit Contract on the Ethereum
	// proof-of-work chain to verify the chain has started its runtime and
	// validators are ready to begin their responsibilities.
	//
	// If the chain has not yet started, this endpoint starts a server-side stream which updates
	// the client when the chain is ready.
	WaitForChainStart(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Node_WaitForChainStartClient, error)
	// WaitForActivation checks if a validator public key exists in the active validator
	// registry of the current state. If the validator is NOT yet active, it starts a
	// server-side stream which updates the client whenever the validator becomes active in
	// the node's state.
	//
	// The input to this endpoint is a list of validator public keys, and the corresponding
	// stream will respond until at least a single corresponding validator to those
	// keys is activated.
	WaitForActivation(ctx context.Context, in *ValidatorActivationRequest, opts ...grpc.CallOption) (Node_WaitForActivationClient, error)
	// ValidatorIndex retrieves a validator's index location in the state's
	// validator registry looking up whether the validator exists based on its
	// public key. This method returns NOT_FOUND if no index is found for the public key
	// specified in the request.
	ValidatorIndex(ctx context.Context, in *ValidatorIndexRequest, opts ...grpc.CallOption) (*ValidatorIndexResponse, error)
	// ValidatorStatus returns a validator's status based on the current epoch.
	//
	// The status response can be one of the following:
	//	UNKNOWN_VALIDATOR_STATUS - validator does not have a known status in
	//                             the network.
	//	VALIDATOR_PENDING - validator is in activation queue.
	//	VALIDATOR_ACTIVE - validator is active.
	//	VALIDATOR_EXITING - validator has initiated an an exit request, or has
	//                      dropped below the ejection balance and is being
	//                      kicked out.
	//	VALIDATOR_EXITED - validator is no longer validating.
	//	VALIDATOR_SLASHING - validator has been kicked out due to meeting a
	//                       slashing condition.
	ValidatorStatus(ctx context.Context, in *ValidatorStatusRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error)
	// MultipleValidatorStatus returns a list of validator statuses on the current epoch.
	// The request can specify a list of validator public keys.
	//
	// Returns a list of ValidatorStatusResponses.
	MultipleValidatorStatus(ctx context.Context, in *MultipleValidatorStatusRequest, opts ...grpc.CallOption) (*MultipleValidatorStatusResponse, error)
	// Retrieve information about a specific auditor in the registry.
	GetAuditor(ctx context.Context, in *GetAuditorRequest, opts ...grpc.CallOption) (*Auditor, error)
	// AuditorStatus returns a auditor's status based on the current epoch.
	//
	// The status response can be one of the following:
	//	UNKNOWN_AUDITOR_STATUS - auditor does not have a known status in
	//                           the network.
	//	AUDITOR_PENDING - auditor is in activation queue.
	//	AUDITOR_ACTIVE - auditor is active.
	//	AUDITOR_EXITING - auditor has initiated an an exit request, or has
	//                    dropped below the ejection balance and is being
	//                    kicked out.
	//	AUDITOR_EXITED - auditor is no longer serving.
	AuditorStatus(ctx context.Context, in *AuditorStatusRequest, opts ...grpc.CallOption) (*AuditorStatusResponse, error)
	// Retrieves the latest valid block to be proposed on the chain.
	//
	// The server returns a new block, without proposer signature, that can be
	// proposed on the chain. The block should be filled with all the necessary
	// data for proposer to sign.
	GetBlockProposal(ctx context.Context, in *BlockProposalRequest, opts ...grpc.CallOption) (*Block, error)
	// Sends the newly signed block to node.
	//
	// The validator sends the newly signed block to the node so the block can
	// be included in the chain. The node is expected to validate and process the
	// block into its state.
	ProposeBlock(ctx context.Context, in *SignedBlock, opts ...grpc.CallOption) (*ProposeResponse, error)
	// Retrieves the latest valid attestation data to be attested on the chain.
	//
	// The server returns the latest valid data which represents the correct vote
	// for the head of the chain.
	GetAttestationData(ctx context.Context, in *AttestationDataRequest, opts ...grpc.CallOption) (*AttestationData, error)
	// Sends the newly signed attestation to node.
	//
	// The validator sends the newly signed attestation to the node for the attestation to
	// be included in the chain. The node is expected to validate and publish attestation on
	// appropriate committee subnet.
	ProposeAttestation(ctx context.Context, in *Attestation, opts ...grpc.CallOption) (*AttestResponse, error)
	// Submit selection proof to the node to aggregate all matching wire attestations with the same data root.
	// the node responses with an aggregate and proof object back to validator to sign over.
	SubmitAggregateSelectionProof(ctx context.Context, in *AggregateSelectionRequest, opts ...grpc.CallOption) (*AggregateSelectionResponse, error)
	// Submit a signed aggregate and proof object, the node will broadcast the
	// signed aggregated attestation and proof object.
	SubmitSignedAggregateSelectionProof(ctx context.Context, in *SignedAggregateSubmitRequest, opts ...grpc.CallOption) (*SignedAggregateSubmitResponse, error)
	// Subscribe to particular committee ID subnets given validator's duty.
	//
	// The node is expected to subscribe to the committee ID subnet given by the request. With this,
	// node serving attesters can find persistent peers on the subnet to publish attestation,
	// and node serving aggregator can join the subnet.
	SubscribeCommitteeSubnets(ctx context.Context, in *CommitteeSubnetsSubscribeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Checks the node if another instance of the provided validator keys have been
	// attesting/proposing for you.
	CheckDoppelGanger(ctx context.Context, in *DoppelGangerRequest, opts ...grpc.CallOption) (*DoppelGangerResponse, error)
	// Retrieve a transaction for a given request.
	GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error)
}

NodeClient is the client API for Node service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNodeClient

func NewNodeClient(cc grpc.ClientConnInterface) NodeClient

type NodeServer

type NodeServer interface {
	// Retrieve attestations by block root, slot, or epoch.
	//
	// The server may return an empty list when no attestations match the given
	// filter criteria. This RPC should not return NOT_FOUND. Only one filter
	// criteria should be used. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	ListAttestations(context.Context, *ListAttestationsRequest) (*ListAttestationsResponse, error)
	// Retrieve indexed attestations by block root, slot, or epoch.
	//
	// The server may return an empty list when no indexed attestations match the given
	// filter criteria. This RPC should not return NOT_FOUND. Only one filter
	// criteria should be used. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	ListIndexedAttestations(context.Context, *ListIndexedAttestationsRequest) (*ListIndexedAttestationsResponse, error)
	// Server-side stream of attestations as they are received by the chain node.
	StreamAttestations(*emptypb.Empty, Node_StreamAttestationsServer) error
	// Server-side stream of indexed attestations as they are received by the chain node.
	StreamIndexedAttestations(*emptypb.Empty, Node_StreamIndexedAttestationsServer) error
	// Retrieve attestations from pool.
	//
	// The server returns a list of attestations that have been seen but not
	// yet processed. Pool attestations eventually expire as the slot
	// advances, so an attestation missing from this request does not imply
	// that it was included in a block. The attestation may have expired.
	// Refer to the Ethereum Beacon Chain specification for more details on how
	// attestations are processed and when they are no longer valid.
	// https://github.com/ethereum/consensus-specs/blob/dev/specs/core/0_beacon-chain.md#attestations
	AttestationPool(context.Context, *AttestationPoolRequest) (*AttestationPoolResponse, error)
	// Retrieve blocks by root, slot, or epoch.
	//
	// The server may return multiple blocks in the case that a slot or epoch is
	// provided as the filter criteria. The server may return an empty list when
	// no blocks in their database match the filter criteria. This RPC should
	// not return NOT_FOUND. Only one filter criteria should be used. This endpoint
	// allows for retrieval of genesis information via a boolean query filter.
	ListBlocks(context.Context, *ListBlocksRequest) (*ListBlocksResponse, error)
	// Server-side stream of all signed blocks as they are received by the chain node.
	StreamBlocks(*StreamBlocksRequest, Node_StreamBlocksServer) error
	// Server-side stream of information about the head of the chain from the view of
	// the chain node.
	//
	// This includes the head block slot and root as well as information about
	// the most recent finalized and justified slots.
	StreamChainHead(*emptypb.Empty, Node_StreamChainHeadServer) error
	// Retrieve information about the head of the chain from the view of the chain node.
	//
	// This includes the head block slot and root as well as information about
	// the most recent finalized and justified slots.
	GetChainHead(context.Context, *emptypb.Empty) (*ChainHead, error)
	// Retrieve information about the weak subjectivity of the chain from the view of
	// the chain node.
	//
	// This includes the weak subjectivity block root, state root and epoch number.
	GetWeakSubjectivityCheckpoint(context.Context, *emptypb.Empty) (*WeakSubjectivityCheckpoint, error)
	// Retrieve the chain committees for a given epoch.
	//
	// If no filter criteria is specified, the response returns all committees for
	// the current epoch. The results are paginated by default.
	// This endpoint allows for retrieval of genesis information via a boolean query filter.
	ListCommittees(context.Context, *ListCommitteesRequest) (*Committees, error)
	// Retrieve validator balances for a given set of public keys at a specific
	// epoch in time. This endpoint allows for retrieval of genesis information
	// via a boolean query filter.
	ListValidatorBalances(context.Context, *ListValidatorBalancesRequest) (*ValidatorBalances, error)
	// Retrieve the current validator registry.
	//
	// The request may include an optional historical epoch to retrieve a
	// specific validator set in time. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	ListValidators(context.Context, *ListValidatorsRequest) (*Validators, error)
	// Retrieve information about a specific validator in the registry.
	//
	// This request may query by validator index or public key.
	GetValidator(context.Context, *GetValidatorRequest) (*Validator, error)
	// Retrieve the active set changes for a given epoch.
	//
	// This data includes any activations, voluntary exits, and involuntary
	// ejections. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	GetValidatorActiveSetChanges(context.Context, *GetValidatorActiveSetChangesRequest) (*ActiveSetChanges, error)
	// Retrieve the current validator queue information.
	GetValidatorQueue(context.Context, *emptypb.Empty) (*ValidatorQueue, error)
	// GetValidatorPerformance reports a validator's latest balance along with other important
	// metrics on rewards and penalties throughout its lifecycle in the chain.
	// The request takes in a list of validator public keys and returns a performance report
	// for all of them respectively.
	GetValidatorPerformance(context.Context, *ValidatorPerformanceRequest) (*ValidatorPerformanceResponse, error)
	// Retrieve the validator assignments for a given epoch.
	//
	// This request may specify optional validator indices or public keys to
	// filter validator assignments. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	ListValidatorAssignments(context.Context, *ListValidatorAssignmentsRequest) (*ValidatorAssignments, error)
	// Retrieve the validator participation information for a given epoch.
	//
	// This method returns information about the global participation of
	// validator attestations. This endpoint allows for retrieval of genesis
	// information via a boolean query filter.
	GetValidatorParticipation(context.Context, *GetValidatorParticipationRequest) (*ValidatorParticipationResponse, error)
	// Retrieve the current configuration parameters of the chain.
	GetChainConfig(context.Context, *emptypb.Empty) (*ChainConfig, error)
	// Server-side stream of validator information at each epoch.
	StreamValidatorsInfo(Node_StreamValidatorsInfoServer) error
	// Submit an attester slashing object to the node.
	SubmitAttesterSlashing(context.Context, *AttesterSlashing) (*SubmitSlashingResponse, error)
	// Submit a proposer slashing object to the node.
	SubmitProposerSlashing(context.Context, *ProposerSlashing) (*SubmitSlashingResponse, error)
	// Returns a list of validators individual vote status of a given epoch.
	GetIndividualVotes(context.Context, *IndividualVotesRequest) (*IndividualVotesRespond, error)
	// Submit a transaction to the node.
	SubmitTx(context.Context, *SignedTransaction) (*SubmitTxResponse, error)
	// Retrieve a storage contract for a given request.
	GetStorageContract(context.Context, *GetStorageContractRequest) (*GetStorageContractResponse, error)
	// Retrieve a PoR challenge for a storage contract.
	GetPoRChallenge(context.Context, *GetPoRChallengeRequest) (*GetPoRChallengeResponse, error)
	// Request account info from the node
	GetAccount(context.Context, *AccountRequest) (*Account, error)
	//
	// APIs used for retrieving state change logs.
	//
	GetStateChanges(context.Context, *StateChangeRequest) (*StateChangeResponse, error)
	// Retrieves validator duties for the requested validators.
	//
	// The duties consist of:
	//   Proposer - the validator that creates a chain block.
	//   Attester — a validator that is part of a committee that needs to sign off
	//      on a chain block while simultaneously creating a cross link to a recent
	//      shard block on a particular shard chain.
	// The server returns a list of duties which are the actions should be performed
	// by validators for a given epoch. Validator duties should be polled every epoch,
	// but due to chain reorg of >MIN_SEED_LOOKAHEAD could occur, the validator duties
	// could chain. For complete safety, it is recommended to poll at every slot to ensure
	// validator is fully aware of any sudden chain reorg.
	GetDuties(context.Context, *DutiesRequest) (*DutiesResponse, error)
	// Stream validator duties for the requested validators.
	//
	// The duties consist of:
	//   Proposer - the validator that creates a chain block.
	//   Attester — a validator that is part of a committee that needs to sign off on a chain
	StreamDuties(*DutiesRequest, Node_StreamDutiesServer) error
	// Deprecated: Do not use.
	// WaitForChainStart queries the logs of the Validator Deposit Contract on the Ethereum
	// proof-of-work chain to verify the chain has started its runtime and
	// validators are ready to begin their responsibilities.
	//
	// If the chain has not yet started, this endpoint starts a server-side stream which updates
	// the client when the chain is ready.
	WaitForChainStart(*emptypb.Empty, Node_WaitForChainStartServer) error
	// WaitForActivation checks if a validator public key exists in the active validator
	// registry of the current state. If the validator is NOT yet active, it starts a
	// server-side stream which updates the client whenever the validator becomes active in
	// the node's state.
	//
	// The input to this endpoint is a list of validator public keys, and the corresponding
	// stream will respond until at least a single corresponding validator to those
	// keys is activated.
	WaitForActivation(*ValidatorActivationRequest, Node_WaitForActivationServer) error
	// ValidatorIndex retrieves a validator's index location in the state's
	// validator registry looking up whether the validator exists based on its
	// public key. This method returns NOT_FOUND if no index is found for the public key
	// specified in the request.
	ValidatorIndex(context.Context, *ValidatorIndexRequest) (*ValidatorIndexResponse, error)
	// ValidatorStatus returns a validator's status based on the current epoch.
	//
	// The status response can be one of the following:
	//	UNKNOWN_VALIDATOR_STATUS - validator does not have a known status in
	//                             the network.
	//	VALIDATOR_PENDING - validator is in activation queue.
	//	VALIDATOR_ACTIVE - validator is active.
	//	VALIDATOR_EXITING - validator has initiated an an exit request, or has
	//                      dropped below the ejection balance and is being
	//                      kicked out.
	//	VALIDATOR_EXITED - validator is no longer validating.
	//	VALIDATOR_SLASHING - validator has been kicked out due to meeting a
	//                       slashing condition.
	ValidatorStatus(context.Context, *ValidatorStatusRequest) (*ValidatorStatusResponse, error)
	// MultipleValidatorStatus returns a list of validator statuses on the current epoch.
	// The request can specify a list of validator public keys.
	//
	// Returns a list of ValidatorStatusResponses.
	MultipleValidatorStatus(context.Context, *MultipleValidatorStatusRequest) (*MultipleValidatorStatusResponse, error)
	// Retrieve information about a specific auditor in the registry.
	GetAuditor(context.Context, *GetAuditorRequest) (*Auditor, error)
	// AuditorStatus returns a auditor's status based on the current epoch.
	//
	// The status response can be one of the following:
	//	UNKNOWN_AUDITOR_STATUS - auditor does not have a known status in
	//                           the network.
	//	AUDITOR_PENDING - auditor is in activation queue.
	//	AUDITOR_ACTIVE - auditor is active.
	//	AUDITOR_EXITING - auditor has initiated an an exit request, or has
	//                    dropped below the ejection balance and is being
	//                    kicked out.
	//	AUDITOR_EXITED - auditor is no longer serving.
	AuditorStatus(context.Context, *AuditorStatusRequest) (*AuditorStatusResponse, error)
	// Retrieves the latest valid block to be proposed on the chain.
	//
	// The server returns a new block, without proposer signature, that can be
	// proposed on the chain. The block should be filled with all the necessary
	// data for proposer to sign.
	GetBlockProposal(context.Context, *BlockProposalRequest) (*Block, error)
	// Sends the newly signed block to node.
	//
	// The validator sends the newly signed block to the node so the block can
	// be included in the chain. The node is expected to validate and process the
	// block into its state.
	ProposeBlock(context.Context, *SignedBlock) (*ProposeResponse, error)
	// Retrieves the latest valid attestation data to be attested on the chain.
	//
	// The server returns the latest valid data which represents the correct vote
	// for the head of the chain.
	GetAttestationData(context.Context, *AttestationDataRequest) (*AttestationData, error)
	// Sends the newly signed attestation to node.
	//
	// The validator sends the newly signed attestation to the node for the attestation to
	// be included in the chain. The node is expected to validate and publish attestation on
	// appropriate committee subnet.
	ProposeAttestation(context.Context, *Attestation) (*AttestResponse, error)
	// Submit selection proof to the node to aggregate all matching wire attestations with the same data root.
	// the node responses with an aggregate and proof object back to validator to sign over.
	SubmitAggregateSelectionProof(context.Context, *AggregateSelectionRequest) (*AggregateSelectionResponse, error)
	// Submit a signed aggregate and proof object, the node will broadcast the
	// signed aggregated attestation and proof object.
	SubmitSignedAggregateSelectionProof(context.Context, *SignedAggregateSubmitRequest) (*SignedAggregateSubmitResponse, error)
	// Subscribe to particular committee ID subnets given validator's duty.
	//
	// The node is expected to subscribe to the committee ID subnet given by the request. With this,
	// node serving attesters can find persistent peers on the subnet to publish attestation,
	// and node serving aggregator can join the subnet.
	SubscribeCommitteeSubnets(context.Context, *CommitteeSubnetsSubscribeRequest) (*emptypb.Empty, error)
	// Checks the node if another instance of the provided validator keys have been
	// attesting/proposing for you.
	CheckDoppelGanger(context.Context, *DoppelGangerRequest) (*DoppelGangerResponse, error)
	// Retrieve a transaction for a given request.
	GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error)
}

NodeServer is the server API for Node service.

type Node_StreamAttestationsClient

type Node_StreamAttestationsClient interface {
	Recv() (*Attestation, error)
	grpc.ClientStream
}

type Node_StreamAttestationsServer

type Node_StreamAttestationsServer interface {
	Send(*Attestation) error
	grpc.ServerStream
}

type Node_StreamBlocksClient

type Node_StreamBlocksClient interface {
	Recv() (*SignedBlock, error)
	grpc.ClientStream
}

type Node_StreamBlocksServer

type Node_StreamBlocksServer interface {
	Send(*SignedBlock) error
	grpc.ServerStream
}

type Node_StreamChainHeadClient

type Node_StreamChainHeadClient interface {
	Recv() (*ChainHead, error)
	grpc.ClientStream
}

type Node_StreamChainHeadServer

type Node_StreamChainHeadServer interface {
	Send(*ChainHead) error
	grpc.ServerStream
}

type Node_StreamDutiesClient

type Node_StreamDutiesClient interface {
	Recv() (*DutiesResponse, error)
	grpc.ClientStream
}

type Node_StreamDutiesServer

type Node_StreamDutiesServer interface {
	Send(*DutiesResponse) error
	grpc.ServerStream
}

type Node_StreamIndexedAttestationsClient

type Node_StreamIndexedAttestationsClient interface {
	Recv() (*IndexedAttestation, error)
	grpc.ClientStream
}

type Node_StreamIndexedAttestationsServer

type Node_StreamIndexedAttestationsServer interface {
	Send(*IndexedAttestation) error
	grpc.ServerStream
}

type Node_StreamValidatorsInfoClient

type Node_StreamValidatorsInfoClient interface {
	Send(*ValidatorChangeSet) error
	Recv() (*ValidatorInfo, error)
	grpc.ClientStream
}

type Node_StreamValidatorsInfoServer

type Node_StreamValidatorsInfoServer interface {
	Send(*ValidatorInfo) error
	Recv() (*ValidatorChangeSet, error)
	grpc.ServerStream
}

type Node_WaitForActivationClient

type Node_WaitForActivationClient interface {
	Recv() (*ValidatorActivationResponse, error)
	grpc.ClientStream
}

type Node_WaitForActivationServer

type Node_WaitForActivationServer interface {
	Send(*ValidatorActivationResponse) error
	grpc.ServerStream
}

type Node_WaitForChainStartClient

type Node_WaitForChainStartClient interface {
	Recv() (*ChainStartResponse, error)
	grpc.ClientStream
}

type Node_WaitForChainStartServer

type Node_WaitForChainStartServer interface {
	Send(*ChainStartResponse) error
	grpc.ServerStream
}

type Peer

type Peer struct {

	// The address of the peer, as a full multiaddr, for example:
	// /ip4/37.221.192.134/tcp/13000/p2p/16Uiu2HAm8maLMjag1TAUM52zPfmLbVMGFdwUAWgoHu1HDQLR6e17
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// The direction of the connection (inbound/outbound).
	Direction PeerDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=photon.consensus.PeerDirection" json:"direction,omitempty"`
	// The connection state of the peer at the moment of the request. (e.g. Connecting)
	ConnectionState ConnectionState `` /* 145-byte string literal not displayed */
	// The peer id of the peer.
	PeerId string `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// The latest ENR of the peer that's in the record.
	Enr string `protobuf:"bytes,5,opt,name=enr,proto3" json:"enr,omitempty"`
	// contains filtered or unexported fields
}

Peer provides details of a peer on the network.

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAddress

func (x *Peer) GetAddress() string

func (*Peer) GetConnectionState

func (x *Peer) GetConnectionState() ConnectionState

func (*Peer) GetDirection

func (x *Peer) GetDirection() PeerDirection

func (*Peer) GetEnr

func (x *Peer) GetEnr() string

func (*Peer) GetPeerId

func (x *Peer) GetPeerId() string

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

func (x *Peer) ProtoReflect() protoreflect.Message

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

type PeerDirection

type PeerDirection int32

PeerDirection states the direction of the connection to a peer.

const (
	PeerDirection_UNKNOWN  PeerDirection = 0
	PeerDirection_INBOUND  PeerDirection = 1
	PeerDirection_OUTBOUND PeerDirection = 2
)

func (PeerDirection) Descriptor

func (PeerDirection) Enum

func (x PeerDirection) Enum() *PeerDirection

func (PeerDirection) EnumDescriptor deprecated

func (PeerDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use PeerDirection.Descriptor instead.

func (PeerDirection) Number

func (PeerDirection) String

func (x PeerDirection) String() string

func (PeerDirection) Type

type PeerRequest

type PeerRequest struct {

	// Peer id of the peer requested.
	PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PeerRequest) Descriptor deprecated

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

Deprecated: Use PeerRequest.ProtoReflect.Descriptor instead.

func (*PeerRequest) GetPeerId

func (x *PeerRequest) GetPeerId() string

func (*PeerRequest) ProtoMessage

func (*PeerRequest) ProtoMessage()

func (*PeerRequest) ProtoReflect

func (x *PeerRequest) ProtoReflect() protoreflect.Message

func (*PeerRequest) Reset

func (x *PeerRequest) Reset()

func (*PeerRequest) String

func (x *PeerRequest) String() string

type Peers

type Peers struct {
	Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

Peers is a list of peer messages.

func (*Peers) Descriptor deprecated

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

Deprecated: Use Peers.ProtoReflect.Descriptor instead.

func (*Peers) GetPeers

func (x *Peers) GetPeers() []*Peer

func (*Peers) ProtoMessage

func (*Peers) ProtoMessage()

func (*Peers) ProtoReflect

func (x *Peers) ProtoReflect() protoreflect.Message

func (*Peers) Reset

func (x *Peers) Reset()

func (*Peers) String

func (x *Peers) String() string

type PoRChallenge

type PoRChallenge struct {

	// The public key of the object PoR challenger.
	Challenger []byte `protobuf:"bytes,1,opt,name=challenger,proto3" json:"challenger,omitempty" ssz-size:"48"`
	// PoR start slot.
	Start Slot `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty" cast-type:"Slot"`
	// PoR end/exipratioin slot.
	End Slot `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty" cast-type:"Slot"`
	// The Merkle tree root hash of the stored original data.
	ObjectHash []byte `protobuf:"bytes,4,opt,name=object_hash,json=objectHash,proto3" json:"object_hash,omitempty" ssz-size:"32"`
	// Audit hash used to retrieve the particular version of audit when the
	// PoR is initiated.
	AuditHash []byte `protobuf:"bytes,5,opt,name=audit_hash,json=auditHash,proto3" json:"audit_hash,omitempty" ssz-size:"32"`
	// The public key of the last auditor.
	Auditor []byte `protobuf:"bytes,6,opt,name=auditor,proto3" json:"auditor,omitempty" ssz-size:"48"`
	// Random block picks for the PoR challenge.
	Picks []*BlockPick `protobuf:"bytes,7,rep,name=picks,proto3" json:"picks,omitempty" ssz-max:"32"`
	// contains filtered or unexported fields
}

func (*PoRChallenge) Descriptor deprecated

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

Deprecated: Use PoRChallenge.ProtoReflect.Descriptor instead.

func (*PoRChallenge) GetAuditHash

func (x *PoRChallenge) GetAuditHash() []byte

func (*PoRChallenge) GetAuditor

func (x *PoRChallenge) GetAuditor() []byte

func (*PoRChallenge) GetChallenger

func (x *PoRChallenge) GetChallenger() []byte

func (*PoRChallenge) GetEnd

func (x *PoRChallenge) GetEnd() Slot

func (*PoRChallenge) GetObjectHash

func (x *PoRChallenge) GetObjectHash() []byte

func (*PoRChallenge) GetPicks

func (x *PoRChallenge) GetPicks() []*BlockPick

func (*PoRChallenge) GetStart

func (x *PoRChallenge) GetStart() Slot

func (*PoRChallenge) HashTreeRoot

func (p *PoRChallenge) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the PoRChallenge object

func (*PoRChallenge) HashTreeRootWith

func (p *PoRChallenge) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the PoRChallenge object with a hasher

func (*PoRChallenge) MarshalSSZ

func (p *PoRChallenge) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the PoRChallenge object

func (*PoRChallenge) MarshalSSZTo

func (p *PoRChallenge) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the PoRChallenge object to a target array

func (*PoRChallenge) ProtoMessage

func (*PoRChallenge) ProtoMessage()

func (*PoRChallenge) ProtoReflect

func (x *PoRChallenge) ProtoReflect() protoreflect.Message

func (*PoRChallenge) Reset

func (x *PoRChallenge) Reset()

func (*PoRChallenge) SizeSSZ

func (p *PoRChallenge) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the PoRChallenge object

func (*PoRChallenge) String

func (x *PoRChallenge) String() string

func (*PoRChallenge) UnmarshalSSZ

func (p *PoRChallenge) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the PoRChallenge object

type ProposalHistory

type ProposalHistory struct {

	// Deprecated: Do not use.
	EpochBits github_com_prysmaticlabs_go_bitfield.Bitlist `` /* 145-byte string literal not displayed */
	// Deprecated: Do not use.
	LatestEpochWritten Epoch `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

ProposalHistory defines the structure for recording a validator's historical proposals. Using a bitlist to represent the epochs and an uint64 to mark the latest marked epoch of the bitlist, we can easily store which epochs a validator has proposed a block for while pruning the older data.

func (*ProposalHistory) Descriptor deprecated

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

Deprecated: Use ProposalHistory.ProtoReflect.Descriptor instead.

func (*ProposalHistory) GetEpochBits deprecated

Deprecated: Do not use.

func (*ProposalHistory) GetLatestEpochWritten deprecated

func (x *ProposalHistory) GetLatestEpochWritten() Epoch

Deprecated: Do not use.

func (*ProposalHistory) ProtoMessage

func (*ProposalHistory) ProtoMessage()

func (*ProposalHistory) ProtoReflect

func (x *ProposalHistory) ProtoReflect() protoreflect.Message

func (*ProposalHistory) Reset

func (x *ProposalHistory) Reset()

func (*ProposalHistory) String

func (x *ProposalHistory) String() string

type ProposeResponse

type ProposeResponse struct {

	// The block root of the successfully proposed block.
	BlockRoot []byte `protobuf:"bytes,1,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

func (*ProposeResponse) Descriptor deprecated

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

Deprecated: Use ProposeResponse.ProtoReflect.Descriptor instead.

func (*ProposeResponse) GetBlockRoot

func (x *ProposeResponse) GetBlockRoot() []byte

func (*ProposeResponse) ProtoMessage

func (*ProposeResponse) ProtoMessage()

func (*ProposeResponse) ProtoReflect

func (x *ProposeResponse) ProtoReflect() protoreflect.Message

func (*ProposeResponse) Reset

func (x *ProposeResponse) Reset()

func (*ProposeResponse) String

func (x *ProposeResponse) String() string

type ProposerSlashing

type ProposerSlashing struct {

	// First conflicting signed block header.
	Header_1 *SignedBlockHeader `protobuf:"bytes,2,opt,name=header_1,json=header1,proto3" json:"header_1,omitempty"`
	// Second conflicting signed block header.
	Header_2 *SignedBlockHeader `protobuf:"bytes,3,opt,name=header_2,json=header2,proto3" json:"header_2,omitempty"`
	// contains filtered or unexported fields
}

Proposer slashings are proofs that a slashable offense has been committed by proposing two conflicting blocks from the same validator.

func CopyProposerSlashing

func CopyProposerSlashing(slashing *ProposerSlashing) *ProposerSlashing

CopyProposerSlashing copies the provided ProposerSlashing.

func CopyProposerSlashings

func CopyProposerSlashings(slashings []*ProposerSlashing) []*ProposerSlashing

CopyProposerSlashings copies the provided ProposerSlashing array.

func (*ProposerSlashing) Descriptor deprecated

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

Deprecated: Use ProposerSlashing.ProtoReflect.Descriptor instead.

func (*ProposerSlashing) GetHeader_1

func (x *ProposerSlashing) GetHeader_1() *SignedBlockHeader

func (*ProposerSlashing) GetHeader_2

func (x *ProposerSlashing) GetHeader_2() *SignedBlockHeader

func (*ProposerSlashing) HashTreeRoot

func (p *ProposerSlashing) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ProposerSlashing object

func (*ProposerSlashing) HashTreeRootWith

func (p *ProposerSlashing) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the ProposerSlashing object with a hasher

func (*ProposerSlashing) MarshalSSZ

func (p *ProposerSlashing) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ProposerSlashing object

func (*ProposerSlashing) MarshalSSZTo

func (p *ProposerSlashing) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ProposerSlashing object to a target array

func (*ProposerSlashing) ProtoMessage

func (*ProposerSlashing) ProtoMessage()

func (*ProposerSlashing) ProtoReflect

func (x *ProposerSlashing) ProtoReflect() protoreflect.Message

func (*ProposerSlashing) Reset

func (x *ProposerSlashing) Reset()

func (*ProposerSlashing) SizeSSZ

func (p *ProposerSlashing) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the ProposerSlashing object

func (*ProposerSlashing) String

func (x *ProposerSlashing) String() string

func (*ProposerSlashing) UnmarshalSSZ

func (p *ProposerSlashing) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ProposerSlashing object

type ProposerSlashingResponse

type ProposerSlashingResponse struct {
	ProposerSlashings []*ProposerSlashing `protobuf:"bytes,1,rep,name=proposer_slashings,json=proposerSlashings,proto3" json:"proposer_slashings,omitempty"`
	// contains filtered or unexported fields
}

func (*ProposerSlashingResponse) Descriptor deprecated

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

Deprecated: Use ProposerSlashingResponse.ProtoReflect.Descriptor instead.

func (*ProposerSlashingResponse) GetProposerSlashings

func (x *ProposerSlashingResponse) GetProposerSlashings() []*ProposerSlashing

func (*ProposerSlashingResponse) ProtoMessage

func (*ProposerSlashingResponse) ProtoMessage()

func (*ProposerSlashingResponse) ProtoReflect

func (x *ProposerSlashingResponse) ProtoReflect() protoreflect.Message

func (*ProposerSlashingResponse) Reset

func (x *ProposerSlashingResponse) Reset()

func (*ProposerSlashingResponse) String

func (x *ProposerSlashingResponse) String() string

type ProtoArrayForkChoiceResponse

type ProtoArrayForkChoiceResponse struct {

	// The prune threshold of how many nodes allowed in proto array store.
	PruneThreshold uint64 `protobuf:"varint,1,opt,name=prune_threshold,json=pruneThreshold,proto3" json:"prune_threshold,omitempty"`
	// Latest justified epoch in proto array store.
	JustifiedEpoch Epoch `protobuf:"varint,2,opt,name=justified_epoch,json=justifiedEpoch,proto3" json:"justified_epoch,omitempty" cast-type:"Epoch"`
	// Latest finalized epoch in proto array store.
	FinalizedEpoch Epoch `protobuf:"varint,3,opt,name=finalized_epoch,json=finalizedEpoch,proto3" json:"finalized_epoch,omitempty" cast-type:"Epoch"`
	// The list of the proto array nodes in store.
	ProtoArrayNodes []*ProtoArrayNode `protobuf:"bytes,4,rep,name=proto_array_nodes,json=protoArrayNodes,proto3" json:"proto_array_nodes,omitempty"`
	// Root to indices mapping of the proto array nodes in store.
	Indices map[string]uint64 `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProtoArrayForkChoiceResponse) Descriptor deprecated

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

Deprecated: Use ProtoArrayForkChoiceResponse.ProtoReflect.Descriptor instead.

func (*ProtoArrayForkChoiceResponse) GetFinalizedEpoch

func (x *ProtoArrayForkChoiceResponse) GetFinalizedEpoch() Epoch

func (*ProtoArrayForkChoiceResponse) GetIndices

func (x *ProtoArrayForkChoiceResponse) GetIndices() map[string]uint64

func (*ProtoArrayForkChoiceResponse) GetJustifiedEpoch

func (x *ProtoArrayForkChoiceResponse) GetJustifiedEpoch() Epoch

func (*ProtoArrayForkChoiceResponse) GetProtoArrayNodes

func (x *ProtoArrayForkChoiceResponse) GetProtoArrayNodes() []*ProtoArrayNode

func (*ProtoArrayForkChoiceResponse) GetPruneThreshold

func (x *ProtoArrayForkChoiceResponse) GetPruneThreshold() uint64

func (*ProtoArrayForkChoiceResponse) ProtoMessage

func (*ProtoArrayForkChoiceResponse) ProtoMessage()

func (*ProtoArrayForkChoiceResponse) ProtoReflect

func (*ProtoArrayForkChoiceResponse) Reset

func (x *ProtoArrayForkChoiceResponse) Reset()

func (*ProtoArrayForkChoiceResponse) String

type ProtoArrayNode

type ProtoArrayNode struct {

	// Slot of the proto array node.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Root of the proto array node.
	Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
	// Parent of the proto array node.
	Parent uint64 `protobuf:"varint,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// Justified epoch of the current proto array node.
	JustifiedEpoch Epoch `protobuf:"varint,4,opt,name=justified_epoch,json=justifiedEpoch,proto3" json:"justified_epoch,omitempty" cast-type:"Epoch"`
	// finalized epoch of the current proto array node.
	FinalizedEpoch Epoch `protobuf:"varint,5,opt,name=finalized_epoch,json=finalizedEpoch,proto3" json:"finalized_epoch,omitempty" cast-type:"Epoch"`
	// Current weight of the current proto array node.
	Weight uint64 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
	// Best child of the current proto array node.
	BestChild uint64 `protobuf:"varint,7,opt,name=best_child,json=bestChild,proto3" json:"best_child,omitempty"`
	// Best descendant of the proto array node.
	BestDescendant uint64 `protobuf:"varint,8,opt,name=best_descendant,json=bestDescendant,proto3" json:"best_descendant,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoArrayNode) Descriptor deprecated

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

Deprecated: Use ProtoArrayNode.ProtoReflect.Descriptor instead.

func (*ProtoArrayNode) GetBestChild

func (x *ProtoArrayNode) GetBestChild() uint64

func (*ProtoArrayNode) GetBestDescendant

func (x *ProtoArrayNode) GetBestDescendant() uint64

func (*ProtoArrayNode) GetFinalizedEpoch

func (x *ProtoArrayNode) GetFinalizedEpoch() Epoch

func (*ProtoArrayNode) GetJustifiedEpoch

func (x *ProtoArrayNode) GetJustifiedEpoch() Epoch

func (*ProtoArrayNode) GetParent

func (x *ProtoArrayNode) GetParent() uint64

func (*ProtoArrayNode) GetRoot

func (x *ProtoArrayNode) GetRoot() []byte

func (*ProtoArrayNode) GetSlot

func (x *ProtoArrayNode) GetSlot() Slot

func (*ProtoArrayNode) GetWeight

func (x *ProtoArrayNode) GetWeight() uint64

func (*ProtoArrayNode) ProtoMessage

func (*ProtoArrayNode) ProtoMessage()

func (*ProtoArrayNode) ProtoReflect

func (x *ProtoArrayNode) ProtoReflect() protoreflect.Message

func (*ProtoArrayNode) Reset

func (x *ProtoArrayNode) Reset()

func (*ProtoArrayNode) String

func (x *ProtoArrayNode) String() string

type SSZBytes

type SSZBytes []byte

SSZUint64 is a bytes slice that satisfies the fast-ssz interface.

func (*SSZBytes) HashTreeRoot

func (b *SSZBytes) HashTreeRoot() ([32]byte, error)

HashTreeRoot hashes the uint64 object following the SSZ standard.

func (*SSZBytes) HashTreeRootWith

func (b *SSZBytes) HashTreeRootWith(hh *fssz.Hasher) error

HashTreeRootWith hashes the uint64 object with the given hasher.

type SSZUint64

type SSZUint64 uint64

SSZUint64 is a uint64 type that satisfies the fast-ssz interface.

func (*SSZUint64) HashTreeRoot

func (s *SSZUint64) HashTreeRoot() ([32]byte, error)

HashTreeRoot returns calculated hash root.

func (*SSZUint64) HashTreeRootWith

func (s *SSZUint64) HashTreeRootWith(hh *fssz.Hasher) error

HashWithDefaultHasher hashes a HashRoot object with a Hasher from the default HasherPool.

func (*SSZUint64) MarshalSSZ

func (s *SSZUint64) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals uin64 into a serialized object.

func (*SSZUint64) MarshalSSZTo

func (s *SSZUint64) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo marshals the uint64 with the provided byte slice.

func (*SSZUint64) SizeSSZ

func (s *SSZUint64) SizeSSZ() int

SizeSSZ returns the size of the serialized representation.

func (*SSZUint64) UnmarshalSSZ

func (s *SSZUint64) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ deserializes the provided bytes buffer into the uint64 object.

type ScoreInfo

type ScoreInfo struct {
	OverallScore float32 `protobuf:"fixed32,1,opt,name=overall_score,json=overallScore,proto3" json:"overall_score,omitempty"`
	// Amount of processed blocks provided by
	// the peer.
	ProcessedBlocks uint64 `protobuf:"varint,2,opt,name=processed_blocks,json=processedBlocks,proto3" json:"processed_blocks,omitempty"`
	// Related block provider score.
	BlockProviderScore float32 `protobuf:"fixed32,3,opt,name=block_provider_score,json=blockProviderScore,proto3" json:"block_provider_score,omitempty"`
	// Relevant scores by particular topic.
	TopicScores map[string]*TopicScoreSnapshot `` /* 182-byte string literal not displayed */
	// Gossip Score for peer.
	GossipScore float32 `protobuf:"fixed32,5,opt,name=gossip_score,json=gossipScore,proto3" json:"gossip_score,omitempty"`
	// Behaviour penalty of peer.
	BehaviourPenalty float32 `protobuf:"fixed32,6,opt,name=behaviour_penalty,json=behaviourPenalty,proto3" json:"behaviour_penalty,omitempty"`
	// Returns the current validation error(if it exists).
	ValidationError string `protobuf:"bytes,7,opt,name=validation_error,json=validationError,proto3" json:"validation_error,omitempty"`
	// contains filtered or unexported fields
}

The Scoring related information of the particular peer.

func (*ScoreInfo) Descriptor deprecated

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

Deprecated: Use ScoreInfo.ProtoReflect.Descriptor instead.

func (*ScoreInfo) GetBehaviourPenalty

func (x *ScoreInfo) GetBehaviourPenalty() float32

func (*ScoreInfo) GetBlockProviderScore

func (x *ScoreInfo) GetBlockProviderScore() float32

func (*ScoreInfo) GetGossipScore

func (x *ScoreInfo) GetGossipScore() float32

func (*ScoreInfo) GetOverallScore

func (x *ScoreInfo) GetOverallScore() float32

func (*ScoreInfo) GetProcessedBlocks

func (x *ScoreInfo) GetProcessedBlocks() uint64

func (*ScoreInfo) GetTopicScores

func (x *ScoreInfo) GetTopicScores() map[string]*TopicScoreSnapshot

func (*ScoreInfo) GetValidationError

func (x *ScoreInfo) GetValidationError() string

func (*ScoreInfo) ProtoMessage

func (*ScoreInfo) ProtoMessage()

func (*ScoreInfo) ProtoReflect

func (x *ScoreInfo) ProtoReflect() protoreflect.Message

func (*ScoreInfo) Reset

func (x *ScoreInfo) Reset()

func (*ScoreInfo) String

func (x *ScoreInfo) String() string

type SetAction

type SetAction int32

SetAction defines the type of action that should be applied to the keys in a validator change set.

const (
	// ADD_VALIDATOR_KEYS adds to the existing keys.
	SetAction_ADD_VALIDATOR_KEYS SetAction = 0
	// REMOVE_VALIDATOR_KEYS removes from the existing keys.
	SetAction_REMOVE_VALIDATOR_KEYS SetAction = 1
	// SET_VALIDATOR_KEYS overwrites the existing keys.
	SetAction_SET_VALIDATOR_KEYS SetAction = 2
)

func (SetAction) Descriptor

func (SetAction) Descriptor() protoreflect.EnumDescriptor

func (SetAction) Enum

func (x SetAction) Enum() *SetAction

func (SetAction) EnumDescriptor deprecated

func (SetAction) EnumDescriptor() ([]byte, []int)

Deprecated: Use SetAction.Descriptor instead.

func (SetAction) Number

func (x SetAction) Number() protoreflect.EnumNumber

func (SetAction) String

func (x SetAction) String() string

func (SetAction) Type

type SignedAggregateAttestationAndProof

type SignedAggregateAttestationAndProof struct {

	// The aggregated attestation and selection proof itself.
	Message *AggregateAttestationAndProof `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// 96 byte BLS aggregate signature signed by the aggregator over the message.
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

func (*SignedAggregateAttestationAndProof) Descriptor deprecated

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

Deprecated: Use SignedAggregateAttestationAndProof.ProtoReflect.Descriptor instead.

func (*SignedAggregateAttestationAndProof) GetMessage

func (*SignedAggregateAttestationAndProof) GetSignature

func (x *SignedAggregateAttestationAndProof) GetSignature() []byte

func (*SignedAggregateAttestationAndProof) HashTreeRoot

func (s *SignedAggregateAttestationAndProof) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SignedAggregateAttestationAndProof object

func (*SignedAggregateAttestationAndProof) HashTreeRootWith

func (s *SignedAggregateAttestationAndProof) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the SignedAggregateAttestationAndProof object with a hasher

func (*SignedAggregateAttestationAndProof) MarshalSSZ

func (s *SignedAggregateAttestationAndProof) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SignedAggregateAttestationAndProof object

func (*SignedAggregateAttestationAndProof) MarshalSSZTo

func (s *SignedAggregateAttestationAndProof) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SignedAggregateAttestationAndProof object to a target array

func (*SignedAggregateAttestationAndProof) ProtoMessage

func (*SignedAggregateAttestationAndProof) ProtoMessage()

func (*SignedAggregateAttestationAndProof) ProtoReflect

func (*SignedAggregateAttestationAndProof) Reset

func (*SignedAggregateAttestationAndProof) SizeSSZ

func (s *SignedAggregateAttestationAndProof) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SignedAggregateAttestationAndProof object

func (*SignedAggregateAttestationAndProof) String

func (*SignedAggregateAttestationAndProof) UnmarshalSSZ

func (s *SignedAggregateAttestationAndProof) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SignedAggregateAttestationAndProof object

type SignedAggregateSubmitRequest

type SignedAggregateSubmitRequest struct {

	// The signed aggregate and proof message with the signature.
	SignedAggregateAndProof *SignedAggregateAttestationAndProof `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SignedAggregateSubmitRequest) Descriptor deprecated

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

Deprecated: Use SignedAggregateSubmitRequest.ProtoReflect.Descriptor instead.

func (*SignedAggregateSubmitRequest) GetSignedAggregateAndProof

func (x *SignedAggregateSubmitRequest) GetSignedAggregateAndProof() *SignedAggregateAttestationAndProof

func (*SignedAggregateSubmitRequest) ProtoMessage

func (*SignedAggregateSubmitRequest) ProtoMessage()

func (*SignedAggregateSubmitRequest) ProtoReflect

func (*SignedAggregateSubmitRequest) Reset

func (x *SignedAggregateSubmitRequest) Reset()

func (*SignedAggregateSubmitRequest) String

type SignedAggregateSubmitResponse

type SignedAggregateSubmitResponse struct {

	// The 32 byte hash tree root of the aggregated attestation data.
	AttestationDataRoot []byte `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SignedAggregateSubmitResponse) Descriptor deprecated

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

Deprecated: Use SignedAggregateSubmitResponse.ProtoReflect.Descriptor instead.

func (*SignedAggregateSubmitResponse) GetAttestationDataRoot

func (x *SignedAggregateSubmitResponse) GetAttestationDataRoot() []byte

func (*SignedAggregateSubmitResponse) ProtoMessage

func (*SignedAggregateSubmitResponse) ProtoMessage()

func (*SignedAggregateSubmitResponse) ProtoReflect

func (*SignedAggregateSubmitResponse) Reset

func (x *SignedAggregateSubmitResponse) Reset()

func (*SignedAggregateSubmitResponse) String

type SignedBlock

type SignedBlock struct {

	// The unsigned block content.
	Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// 96 byte BLS signature from the validator that produced this block.
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

The signed version of a block.

func CopySignedBlock

func CopySignedBlock(sigBlock *SignedBlock) *SignedBlock

CopySignedBlock copies the provided SignedBlock.

func (*SignedBlock) Descriptor deprecated

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

Deprecated: Use SignedBlock.ProtoReflect.Descriptor instead.

func (*SignedBlock) GetBlock

func (x *SignedBlock) GetBlock() *Block

func (*SignedBlock) GetSignature

func (x *SignedBlock) GetSignature() []byte

func (*SignedBlock) HashTreeRoot

func (s *SignedBlock) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SignedBlock object

func (*SignedBlock) HashTreeRootWith

func (s *SignedBlock) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the SignedBlock object with a hasher

func (*SignedBlock) MarshalSSZ

func (s *SignedBlock) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SignedBlock object

func (*SignedBlock) MarshalSSZTo

func (s *SignedBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SignedBlock object to a target array

func (*SignedBlock) ProtoMessage

func (*SignedBlock) ProtoMessage()

func (*SignedBlock) ProtoReflect

func (x *SignedBlock) ProtoReflect() protoreflect.Message

func (*SignedBlock) Reset

func (x *SignedBlock) Reset()

func (*SignedBlock) SizeSSZ

func (s *SignedBlock) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SignedBlock object

func (*SignedBlock) String

func (x *SignedBlock) String() string

func (*SignedBlock) UnmarshalSSZ

func (s *SignedBlock) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SignedBlock object

type SignedBlockHeader

type SignedBlockHeader struct {

	// The unsigned block header content.
	Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// 96 byte BLS signature from the validator that produced this block header.
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

func CopySignedBlockHeader

func CopySignedBlockHeader(header *SignedBlockHeader) *SignedBlockHeader

CopySignedBlockHeader copies the provided SignedBlockHeader.

func (*SignedBlockHeader) Descriptor deprecated

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

Deprecated: Use SignedBlockHeader.ProtoReflect.Descriptor instead.

func (*SignedBlockHeader) GetHeader

func (x *SignedBlockHeader) GetHeader() *BlockHeader

func (*SignedBlockHeader) GetSignature

func (x *SignedBlockHeader) GetSignature() []byte

func (*SignedBlockHeader) HashTreeRoot

func (s *SignedBlockHeader) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SignedBlockHeader object

func (*SignedBlockHeader) HashTreeRootWith

func (s *SignedBlockHeader) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the SignedBlockHeader object with a hasher

func (*SignedBlockHeader) MarshalSSZ

func (s *SignedBlockHeader) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SignedBlockHeader object

func (*SignedBlockHeader) MarshalSSZTo

func (s *SignedBlockHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SignedBlockHeader object to a target array

func (*SignedBlockHeader) ProtoMessage

func (*SignedBlockHeader) ProtoMessage()

func (*SignedBlockHeader) ProtoReflect

func (x *SignedBlockHeader) ProtoReflect() protoreflect.Message

func (*SignedBlockHeader) Reset

func (x *SignedBlockHeader) Reset()

func (*SignedBlockHeader) SizeSSZ

func (s *SignedBlockHeader) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SignedBlockHeader object

func (*SignedBlockHeader) String

func (x *SignedBlockHeader) String() string

func (*SignedBlockHeader) UnmarshalSSZ

func (s *SignedBlockHeader) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SignedBlockHeader object

type SignedTransaction

type SignedTransaction struct {

	// The unsigned transaction content.
	Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// 96 byte BLS signature from the account that produced this transaction.
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

The signed version of a transaction.

func CopySignedTx

func CopySignedTx(tx *SignedTransaction) *SignedTransaction

CopySignedTx copies the provided SignedTransaction.

func CopySignedTxs

func CopySignedTxs(txs []*SignedTransaction) []*SignedTransaction

CopySignedTxs copies the provided SignedTransaction array.

func (*SignedTransaction) Descriptor deprecated

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

Deprecated: Use SignedTransaction.ProtoReflect.Descriptor instead.

func (*SignedTransaction) GetSignature

func (x *SignedTransaction) GetSignature() []byte

func (*SignedTransaction) GetTx

func (x *SignedTransaction) GetTx() *Transaction

func (*SignedTransaction) HashTreeRoot

func (s *SignedTransaction) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SignedTransaction object

func (*SignedTransaction) HashTreeRootWith

func (s *SignedTransaction) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the SignedTransaction object with a hasher

func (*SignedTransaction) MarshalSSZ

func (s *SignedTransaction) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SignedTransaction object

func (*SignedTransaction) MarshalSSZTo

func (s *SignedTransaction) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SignedTransaction object to a target array

func (*SignedTransaction) ProtoMessage

func (*SignedTransaction) ProtoMessage()

func (*SignedTransaction) ProtoReflect

func (x *SignedTransaction) ProtoReflect() protoreflect.Message

func (*SignedTransaction) Reset

func (x *SignedTransaction) Reset()

func (*SignedTransaction) SizeSSZ

func (s *SignedTransaction) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SignedTransaction object

func (*SignedTransaction) String

func (x *SignedTransaction) String() string

func (*SignedTransaction) UnmarshalSSZ

func (s *SignedTransaction) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SignedTransaction object

type SigningData

type SigningData struct {

	// The hash of the object being signed.
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty" ssz-size:"32"`
	// The domain for the particular object being signed.
	Domain []byte `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

func (*SigningData) Descriptor deprecated

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

Deprecated: Use SigningData.ProtoReflect.Descriptor instead.

func (*SigningData) GetDomain

func (x *SigningData) GetDomain() []byte

func (*SigningData) GetHash

func (x *SigningData) GetHash() []byte

func (*SigningData) HashTreeRoot

func (s *SigningData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SigningData object

func (*SigningData) HashTreeRootWith

func (s *SigningData) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the SigningData object with a hasher

func (*SigningData) MarshalSSZ

func (s *SigningData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SigningData object

func (*SigningData) MarshalSSZTo

func (s *SigningData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SigningData object to a target array

func (*SigningData) ProtoMessage

func (*SigningData) ProtoMessage()

func (*SigningData) ProtoReflect

func (x *SigningData) ProtoReflect() protoreflect.Message

func (*SigningData) Reset

func (x *SigningData) Reset()

func (*SigningData) SizeSSZ

func (s *SigningData) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SigningData object

func (*SigningData) String

func (x *SigningData) String() string

func (*SigningData) UnmarshalSSZ

func (s *SigningData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SigningData object

type Slashable

type Slashable struct {

	// Deprecated: Do not use.
	Slashable bool `protobuf:"varint,1,opt,name=slashable,proto3" json:"slashable,omitempty"`
	// contains filtered or unexported fields
}

func (*Slashable) Descriptor deprecated

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

Deprecated: Use Slashable.ProtoReflect.Descriptor instead.

func (*Slashable) GetSlashable deprecated

func (x *Slashable) GetSlashable() bool

Deprecated: Do not use.

func (*Slashable) ProtoMessage

func (*Slashable) ProtoMessage()

func (*Slashable) ProtoReflect

func (x *Slashable) ProtoReflect() protoreflect.Message

func (*Slashable) Reset

func (x *Slashable) Reset()

func (*Slashable) String

func (x *Slashable) String() string

type SlasherClient

type SlasherClient interface {
	// Returns any found attester slashings for an input indexed attestation.
	IsSlashableAttestation(ctx context.Context, in *IndexedAttestation, opts ...grpc.CallOption) (*AttesterSlashingResponse, error)
	// Returns any found proposer slashings for an input signed block header.
	IsSlashableBlock(ctx context.Context, in *SignedBlockHeader, opts ...grpc.CallOption) (*ProposerSlashingResponse, error)
	// Returns the highest source and target attestation for validator indices
	// that have been observed by slasher.
	HighestAttestations(ctx context.Context, in *HighestAttestationRequest, opts ...grpc.CallOption) (*HighestAttestationResponse, error)
}

SlasherClient is the client API for Slasher service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSlasherClient

func NewSlasherClient(cc grpc.ClientConnInterface) SlasherClient

type SlasherServer

type SlasherServer interface {
	// Returns any found attester slashings for an input indexed attestation.
	IsSlashableAttestation(context.Context, *IndexedAttestation) (*AttesterSlashingResponse, error)
	// Returns any found proposer slashings for an input signed block header.
	IsSlashableBlock(context.Context, *SignedBlockHeader) (*ProposerSlashingResponse, error)
	// Returns the highest source and target attestation for validator indices
	// that have been observed by slasher.
	HighestAttestations(context.Context, *HighestAttestationRequest) (*HighestAttestationResponse, error)
}

SlasherServer is the server API for Slasher service.

type Slot

type Slot uint64

Slot represents a single slot.

func BytesToSlotBigEndian

func BytesToSlotBigEndian(b []byte) Slot

BytesToSlotBigEndian conversion.

func MaxSlot

func MaxSlot(a, b Slot) Slot

MaxSlot returns the larger of the two slots.

func MinSlot

func MinSlot(a, b Slot) Slot

MinSlot returns the smaller of the two slots.

func (Slot) Add

func (s Slot) Add(x uint64) Slot

Add increases slot by x. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) AddSlot

func (s Slot) AddSlot(x Slot) Slot

AddSlot increases slot by another slot. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) Div

func (s Slot) Div(x uint64) Slot

Div divides slot by x. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) DivSlot

func (s Slot) DivSlot(x Slot) Slot

DivSlot divides slot by another slot. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) HashTreeRoot

func (s Slot) HashTreeRoot() ([32]byte, error)

HashTreeRoot returns calculated hash root.

func (Slot) HashTreeRootWith

func (s Slot) HashTreeRootWith(hh *fssz.Hasher) error

HashWithDefaultHasher hashes a HashRoot object with a Hasher from the default HasherPool.

func (*Slot) MarshalSSZ

func (s *Slot) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals slot into a serialized object.

func (*Slot) MarshalSSZTo

func (s *Slot) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo marshals slot with the provided byte slice.

func (Slot) Mod

func (s Slot) Mod(x uint64) Slot

Mod returns result of `slot % x`. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) ModSlot

func (s Slot) ModSlot(x Slot) Slot

ModSlot returns result of `slot % slot`. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) Mul

func (s Slot) Mul(x uint64) Slot

Mul multiplies slot by x. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) MulSlot

func (s Slot) MulSlot(x Slot) Slot

MulSlot multiplies slot by another slot. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) SafeAdd

func (s Slot) SafeAdd(x uint64) (Slot, error)

SafeAdd increases slot by x. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeAddSlot

func (s Slot) SafeAddSlot(x Slot) (Slot, error)

SafeAddSlot increases slot by another slot. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeDiv

func (s Slot) SafeDiv(x uint64) (Slot, error)

SafeDiv divides slot by x. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeDivSlot

func (s Slot) SafeDivSlot(x Slot) (Slot, error)

SafeDivSlot divides slot by another slot. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeMod

func (s Slot) SafeMod(x uint64) (Slot, error)

SafeMod returns result of `slot % x`. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeModSlot

func (s Slot) SafeModSlot(x Slot) (Slot, error)

SafeModSlot returns result of `slot % slot`. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeMul

func (s Slot) SafeMul(x uint64) (Slot, error)

SafeMul multiplies slot by x. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeMulSlot

func (s Slot) SafeMulSlot(x Slot) (Slot, error)

SafeMulSlot multiplies slot by another slot. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeSub

func (s Slot) SafeSub(x uint64) (Slot, error)

SafeSub subtracts x from the slot. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (Slot) SafeSubSlot

func (s Slot) SafeSubSlot(x Slot) (Slot, error)

SafeSubSlot finds difference between two slot values. In case of arithmetic issues (overflow/underflow/div by zero) error is returned.

func (*Slot) SizeSSZ

func (s *Slot) SizeSSZ() int

SizeSSZ returns the size of the serialized object.

func (Slot) Sub

func (s Slot) Sub(x uint64) Slot

Sub subtracts x from the slot. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) SubSlot

func (s Slot) SubSlot(x Slot) Slot

SubSlot finds difference between two slot values. In case of arithmetic issues (overflow/underflow/div by zero) panic is thrown.

func (Slot) ToBytesBigEndian

func (s Slot) ToBytesBigEndian() []byte

ToBytesBigEndian conversion.

func (*Slot) UnmarshalSSZ

func (s *Slot) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ deserializes the provided bytes buffer into the slot object.

type SlotChange

type SlotChange struct {
	Slot Slot `protobuf:"varint,1,opt,name=Slot,proto3" json:"Slot,omitempty" cast-type:"Slot"`
	// Txs for the slot.
	Txs []*SignedTransaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	// Change logs for the slot.
	ChangeLogs []*ChangeLog `protobuf:"bytes,3,rep,name=change_logs,json=changeLogs,proto3" json:"change_logs,omitempty"`
	// contains filtered or unexported fields
}

func (*SlotChange) Descriptor deprecated

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

Deprecated: Use SlotChange.ProtoReflect.Descriptor instead.

func (*SlotChange) GetChangeLogs

func (x *SlotChange) GetChangeLogs() []*ChangeLog

func (*SlotChange) GetSlot

func (x *SlotChange) GetSlot() Slot

func (*SlotChange) GetTxs

func (x *SlotChange) GetTxs() []*SignedTransaction

func (*SlotChange) ProtoMessage

func (*SlotChange) ProtoMessage()

func (*SlotChange) ProtoReflect

func (x *SlotChange) ProtoReflect() protoreflect.Message

func (*SlotChange) Reset

func (x *SlotChange) Reset()

func (*SlotChange) String

func (x *SlotChange) String() string

type State

type State struct {

	// Versioning [1-100]
	GenesisTime       uint64 `protobuf:"varint,1,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	GenesisIdentifier []byte `` /* 126-byte string literal not displayed */
	Slot              Slot   `protobuf:"varint,3,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	// Block [101-200]
	LatestBlockHeader *BlockHeader `protobuf:"bytes,101,opt,name=latest_block_header,json=latestBlockHeader,proto3" json:"latest_block_header,omitempty"`
	// Finality [201-300]
	// Spec type [4]Bitvector which means this would be a fixed size of 4 bits.
	JustificationBits           github_com_prysmaticlabs_go_bitfield.Bitvector4 `` /* 187-byte string literal not displayed */
	PreviousJustifiedCheckpoint *Checkpoint                                     `` /* 146-byte string literal not displayed */
	CurrentJustifiedCheckpoint  *Checkpoint                                     `` /* 143-byte string literal not displayed */
	FinalizedCheckpoint         *Checkpoint                                     `protobuf:"bytes,204,opt,name=finalized_checkpoint,json=finalizedCheckpoint,proto3" json:"finalized_checkpoint,omitempty"`
	// Validator participation & slashings [301-400]
	InactivityScores           []uint64 `` /* 143-byte string literal not displayed */
	PreviousEpochParticipation []byte   `` /* 167-byte string literal not displayed */
	CurrentEpochParticipation  []byte   `` /* 164-byte string literal not displayed */
	Slashings                  []uint64 `protobuf:"varint,305,rep,packed,name=slashings,proto3" json:"slashings,omitempty" ssz-max:"8192"`
	// Trie roots [401-500]
	// Account trie root hash.
	AccountTrieRoot []byte `protobuf:"bytes,401,opt,name=account_trie_root,json=accountTrieRoot,proto3" json:"account_trie_root,omitempty" ssz-size:"32"`
	// Validator trie root hash.
	ValidatorTrieRoot []byte `` /* 130-byte string literal not displayed */
	// Auditor trie root hash.
	AuditorTrieRoot []byte `protobuf:"bytes,403,opt,name=auditor_trie_root,json=auditorTrieRoot,proto3" json:"auditor_trie_root,omitempty" ssz-size:"32"`
	// Storage contract trie root hash.
	StorageTrieRoot []byte `protobuf:"bytes,404,opt,name=storage_trie_root,json=storageTrieRoot,proto3" json:"storage_trie_root,omitempty" ssz-size:"32"`
	// Randao mixes trie root hash.
	RandaoMixesTrieRoot []byte `` /* 138-byte string literal not displayed */
	// Storage contract audit queue's root hash.
	AuditQueueRoot []byte `protobuf:"bytes,406,opt,name=audit_queue_root,json=auditQueueRoot,proto3" json:"audit_queue_root,omitempty" ssz-size:"32"`
	// Storage contract event queue's root hash.
	EventQueueRoot []byte `protobuf:"bytes,407,opt,name=event_queue_root,json=eventQueueRoot,proto3" json:"event_queue_root,omitempty" ssz-size:"32"`
	// Slot trie root hash.
	SlotTrieRoot []byte `protobuf:"bytes,408,opt,name=slot_trie_root,json=slotTrieRoot,proto3" json:"slot_trie_root,omitempty" ssz-size:"32"`
	// Aggregated state [501-600]
	ReserviorBalance uint64   `protobuf:"varint,501,opt,name=reservior_balance,json=reserviorBalance,proto3" json:"reservior_balance,omitempty"`
	Storage          *Storage `protobuf:"bytes,502,opt,name=storage,proto3" json:"storage,omitempty"`
	// contains filtered or unexported fields
}

func (*State) Descriptor deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetAccountTrieRoot

func (x *State) GetAccountTrieRoot() []byte

func (*State) GetAuditQueueRoot

func (x *State) GetAuditQueueRoot() []byte

func (*State) GetAuditorTrieRoot

func (x *State) GetAuditorTrieRoot() []byte

func (*State) GetCurrentEpochParticipation

func (x *State) GetCurrentEpochParticipation() []byte

func (*State) GetCurrentJustifiedCheckpoint

func (x *State) GetCurrentJustifiedCheckpoint() *Checkpoint

func (*State) GetEventQueueRoot

func (x *State) GetEventQueueRoot() []byte

func (*State) GetFinalizedCheckpoint

func (x *State) GetFinalizedCheckpoint() *Checkpoint

func (*State) GetGenesisIdentifier

func (x *State) GetGenesisIdentifier() []byte

func (*State) GetGenesisTime

func (x *State) GetGenesisTime() uint64

func (*State) GetInactivityScores

func (x *State) GetInactivityScores() []uint64

func (*State) GetJustificationBits

func (x *State) GetJustificationBits() github_com_prysmaticlabs_go_bitfield.Bitvector4

func (*State) GetLatestBlockHeader

func (x *State) GetLatestBlockHeader() *BlockHeader

func (*State) GetPreviousEpochParticipation

func (x *State) GetPreviousEpochParticipation() []byte

func (*State) GetPreviousJustifiedCheckpoint

func (x *State) GetPreviousJustifiedCheckpoint() *Checkpoint

func (*State) GetRandaoMixesTrieRoot

func (x *State) GetRandaoMixesTrieRoot() []byte

func (*State) GetReserviorBalance

func (x *State) GetReserviorBalance() uint64

func (*State) GetSlashings

func (x *State) GetSlashings() []uint64

func (*State) GetSlot

func (x *State) GetSlot() Slot

func (*State) GetSlotTrieRoot

func (x *State) GetSlotTrieRoot() []byte

func (*State) GetStorage

func (x *State) GetStorage() *Storage

func (*State) GetStorageTrieRoot

func (x *State) GetStorageTrieRoot() []byte

func (*State) GetValidatorTrieRoot

func (x *State) GetValidatorTrieRoot() []byte

func (*State) HashTreeRoot

func (s *State) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the State object

func (*State) HashTreeRootWith

func (s *State) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the State object with a hasher

func (*State) MarshalSSZ

func (s *State) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the State object

func (*State) MarshalSSZTo

func (s *State) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the State object to a target array

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

func (x *State) ProtoReflect() protoreflect.Message

func (*State) Reset

func (x *State) Reset()

func (*State) SizeSSZ

func (s *State) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the State object

func (*State) String

func (x *State) String() string

func (*State) UnmarshalSSZ

func (s *State) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the State object

type StateChangeFilter

type StateChangeFilter struct {

	// A list of tx types to filter txs.
	TxTypes []TxType `protobuf:"varint,1,rep,packed,name=tx_types,json=txTypes,proto3,enum=photon.consensus.TxType" json:"tx_types,omitempty"`
	// A list of 48 byte relevant public keys to filter txs and events.
	PublicKeys [][]byte `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	// A list of change log types to filter.
	ChangeTypes []ChangeLogType `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

StateChangeFilter defines a set of filter rules for filter relevant changes.

func (*StateChangeFilter) Descriptor deprecated

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

Deprecated: Use StateChangeFilter.ProtoReflect.Descriptor instead.

func (*StateChangeFilter) GetChangeTypes

func (x *StateChangeFilter) GetChangeTypes() []ChangeLogType

func (*StateChangeFilter) GetPublicKeys

func (x *StateChangeFilter) GetPublicKeys() [][]byte

func (*StateChangeFilter) GetTxTypes

func (x *StateChangeFilter) GetTxTypes() []TxType

func (*StateChangeFilter) ProtoMessage

func (*StateChangeFilter) ProtoMessage()

func (*StateChangeFilter) ProtoReflect

func (x *StateChangeFilter) ProtoReflect() protoreflect.Message

func (*StateChangeFilter) Reset

func (x *StateChangeFilter) Reset()

func (*StateChangeFilter) String

func (x *StateChangeFilter) String() string

type StateChangeRequest

type StateChangeRequest struct {

	// Types that are assignable to QueryFilter:
	//	*StateChangeRequest_Slot
	//	*StateChangeRequest_Epoch
	QueryFilter isStateChangeRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// Filter.
	StateChangeFilter *StateChangeFilter `protobuf:"bytes,3,opt,name=state_change_filter,json=stateChangeFilter,proto3" json:"state_change_filter,omitempty"`
	// contains filtered or unexported fields
}

func (*StateChangeRequest) Descriptor deprecated

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

Deprecated: Use StateChangeRequest.ProtoReflect.Descriptor instead.

func (*StateChangeRequest) GetEpoch

func (x *StateChangeRequest) GetEpoch() Epoch

func (*StateChangeRequest) GetQueryFilter

func (m *StateChangeRequest) GetQueryFilter() isStateChangeRequest_QueryFilter

func (*StateChangeRequest) GetSlot

func (x *StateChangeRequest) GetSlot() Slot

func (*StateChangeRequest) GetStateChangeFilter

func (x *StateChangeRequest) GetStateChangeFilter() *StateChangeFilter

func (*StateChangeRequest) ProtoMessage

func (*StateChangeRequest) ProtoMessage()

func (*StateChangeRequest) ProtoReflect

func (x *StateChangeRequest) ProtoReflect() protoreflect.Message

func (*StateChangeRequest) Reset

func (x *StateChangeRequest) Reset()

func (*StateChangeRequest) String

func (x *StateChangeRequest) String() string

type StateChangeRequest_Epoch

type StateChangeRequest_Epoch struct {
	// Request for epoch data.
	Epoch Epoch `protobuf:"varint,2,opt,name=epoch,proto3,oneof" cast-type:"Epoch"`
}

type StateChangeRequest_Slot

type StateChangeRequest_Slot struct {
	// Request for slot data.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3,oneof" cast-type:"Slot"`
}

type StateChangeResponse

type StateChangeResponse struct {
	Changes []*SlotChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

func (*StateChangeResponse) Descriptor deprecated

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

Deprecated: Use StateChangeResponse.ProtoReflect.Descriptor instead.

func (*StateChangeResponse) GetChanges

func (x *StateChangeResponse) GetChanges() []*SlotChange

func (*StateChangeResponse) ProtoMessage

func (*StateChangeResponse) ProtoMessage()

func (*StateChangeResponse) ProtoReflect

func (x *StateChangeResponse) ProtoReflect() protoreflect.Message

func (*StateChangeResponse) Reset

func (x *StateChangeResponse) Reset()

func (*StateChangeResponse) String

func (x *StateChangeResponse) String() string

type StateRequest

type StateRequest struct {

	// Types that are assignable to QueryFilter:
	//	*StateRequest_Slot
	//	*StateRequest_BlockRoot
	QueryFilter isStateRequest_QueryFilter `protobuf_oneof:"query_filter"`
	// contains filtered or unexported fields
}

func (*StateRequest) Descriptor deprecated

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

Deprecated: Use StateRequest.ProtoReflect.Descriptor instead.

func (*StateRequest) GetBlockRoot

func (x *StateRequest) GetBlockRoot() []byte

func (*StateRequest) GetQueryFilter

func (m *StateRequest) GetQueryFilter() isStateRequest_QueryFilter

func (*StateRequest) GetSlot

func (x *StateRequest) GetSlot() Slot

func (*StateRequest) ProtoMessage

func (*StateRequest) ProtoMessage()

func (*StateRequest) ProtoReflect

func (x *StateRequest) ProtoReflect() protoreflect.Message

func (*StateRequest) Reset

func (x *StateRequest) Reset()

func (*StateRequest) String

func (x *StateRequest) String() string

type StateRequest_BlockRoot

type StateRequest_BlockRoot struct {
	// The block root corresponding to a desired state.
	BlockRoot []byte `protobuf:"bytes,2,opt,name=block_root,json=blockRoot,proto3,oneof"`
}

type StateRequest_Slot

type StateRequest_Slot struct {
	// The slot corresponding to a desired state.
	Slot Slot `protobuf:"varint,1,opt,name=slot,proto3,oneof" cast-type:"Slot"`
}

type Status

type Status struct {
	FinalizedRoot  []byte `protobuf:"bytes,1,opt,name=finalized_root,json=finalizedRoot,proto3" json:"finalized_root,omitempty" ssz-size:"32"`
	FinalizedEpoch Epoch  `protobuf:"varint,2,opt,name=finalized_epoch,json=finalizedEpoch,proto3" json:"finalized_epoch,omitempty" cast-type:"Epoch"`
	HeadRoot       []byte `protobuf:"bytes,3,opt,name=head_root,json=headRoot,proto3" json:"head_root,omitempty" ssz-size:"32"`
	HeadSlot       Slot   `protobuf:"varint,4,opt,name=head_slot,json=headSlot,proto3" json:"head_slot,omitempty" cast-type:"Slot"`
	// contains filtered or unexported fields
}

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetFinalizedEpoch

func (x *Status) GetFinalizedEpoch() Epoch

func (*Status) GetFinalizedRoot

func (x *Status) GetFinalizedRoot() []byte

func (*Status) GetHeadRoot

func (x *Status) GetHeadRoot() []byte

func (*Status) GetHeadSlot

func (x *Status) GetHeadSlot() Slot

func (*Status) HashTreeRoot

func (s *Status) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Status object

func (*Status) HashTreeRootWith

func (s *Status) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Status object with a hasher

func (*Status) MarshalSSZ

func (s *Status) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Status object

func (*Status) MarshalSSZTo

func (s *Status) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Status object to a target array

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

func (x *Status) ProtoReflect() protoreflect.Message

func (*Status) Reset

func (x *Status) Reset()

func (*Status) SizeSSZ

func (s *Status) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Status object

func (*Status) String

func (x *Status) String() string

func (*Status) UnmarshalSSZ

func (s *Status) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Status object

type Storage

type Storage struct {

	// Number of active storage contracts.
	NumContracts uint64 `protobuf:"varint,1,opt,name=num_contracts,json=numContracts,proto3" json:"num_contracts,omitempty"`
	// Total storage capacity size registered by storage contracts in bytes.
	// The integer value is serialized in big endian format.
	// This tracks the object's original size instead of the encoded size.
	TotalSize []byte `protobuf:"bytes,2,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty" ssz-max:"32"`
	// Accumulated reward rate at current slot used for tracking storage
	// contract's reward.
	RewardRate uint64 `protobuf:"varint,3,opt,name=reward_rate,json=rewardRate,proto3" json:"reward_rate,omitempty"`
	// Aggregated fee paid out to depot per slot.
	FeeRate uint64 `protobuf:"varint,4,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"`
	// The latest fee rate effective slot.
	FeeRateSince Slot `protobuf:"varint,5,opt,name=fee_rate_since,json=feeRateSince,proto3" json:"fee_rate_since,omitempty" cast-type:"Slot"`
	// contains filtered or unexported fields
}

Metadata for all active storage contracts.

func (*Storage) Descriptor deprecated

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

Deprecated: Use Storage.ProtoReflect.Descriptor instead.

func (*Storage) GetFeeRate

func (x *Storage) GetFeeRate() uint64

func (*Storage) GetFeeRateSince

func (x *Storage) GetFeeRateSince() Slot

func (*Storage) GetNumContracts

func (x *Storage) GetNumContracts() uint64

func (*Storage) GetRewardRate

func (x *Storage) GetRewardRate() uint64

func (*Storage) GetTotalSize

func (x *Storage) GetTotalSize() []byte

func (*Storage) HashTreeRoot

func (s *Storage) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Storage object

func (*Storage) HashTreeRootWith

func (s *Storage) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Storage object with a hasher

func (*Storage) MarshalSSZ

func (s *Storage) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Storage object

func (*Storage) MarshalSSZTo

func (s *Storage) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Storage object to a target array

func (*Storage) ProtoMessage

func (*Storage) ProtoMessage()

func (*Storage) ProtoReflect

func (x *Storage) ProtoReflect() protoreflect.Message

func (*Storage) Reset

func (x *Storage) Reset()

func (*Storage) SizeSSZ

func (s *Storage) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Storage object

func (*Storage) String

func (x *Storage) String() string

func (*Storage) UnmarshalSSZ

func (s *Storage) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Storage object

type StorageChangeLog

type StorageChangeLog struct {

	// Change type.
	Type ChangeLogType `protobuf:"varint,1,opt,name=type,proto3,enum=photon.consensus.ChangeLogType" json:"type,omitempty"`
	// The root hash of the transaction (storage contract) associated with
	// this event.
	CommitTxHash []byte `protobuf:"bytes,2,opt,name=commit_tx_hash,json=commitTxHash,proto3" json:"commit_tx_hash,omitempty" ssz-size:"32"`
	// The public key of the depot specified in the storage contract.
	Depot []byte `protobuf:"bytes,3,opt,name=depot,proto3" json:"depot,omitempty" ssz-size:"48"`
	// The public key of the auditor assigned for auditing task.
	Auditor []byte `protobuf:"bytes,4,opt,name=auditor,proto3" json:"auditor,omitempty" ssz-size:"48"`
	// contains filtered or unexported fields
}

func (*StorageChangeLog) Descriptor deprecated

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

Deprecated: Use StorageChangeLog.ProtoReflect.Descriptor instead.

func (*StorageChangeLog) GetAuditor

func (x *StorageChangeLog) GetAuditor() []byte

func (*StorageChangeLog) GetCommitTxHash

func (x *StorageChangeLog) GetCommitTxHash() []byte

func (*StorageChangeLog) GetDepot

func (x *StorageChangeLog) GetDepot() []byte

func (*StorageChangeLog) GetType

func (x *StorageChangeLog) GetType() ChangeLogType

func (*StorageChangeLog) ProtoMessage

func (*StorageChangeLog) ProtoMessage()

func (*StorageChangeLog) ProtoReflect

func (x *StorageChangeLog) ProtoReflect() protoreflect.Message

func (*StorageChangeLog) Reset

func (x *StorageChangeLog) Reset()

func (*StorageChangeLog) String

func (x *StorageChangeLog) String() string

type StorageContract

type StorageContract struct {

	// The root hash of the original commit transaction associated with this
	// storage contract.
	CommitTxHash []byte `protobuf:"bytes,1,opt,name=commit_tx_hash,json=commitTxHash,proto3" json:"commit_tx_hash,omitempty" ssz-size:"32"`
	// The Merkle tree root hash of the stored original data.
	ObjectHash []byte `protobuf:"bytes,2,opt,name=object_hash,json=objectHash,proto3" json:"object_hash,omitempty" ssz-size:"32"`
	// The size of the stored original data.
	Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// The public key of the data owner.
	Owner []byte `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty" ssz-size:"48"`
	// The public key of the storage provider.
	Depot []byte `protobuf:"bytes,5,opt,name=depot,proto3" json:"depot,omitempty" ssz-size:"48"`
	// The p2p network discovery ID used for finding depot RPC endpoint.
	DepotDiscoveryId []byte `protobuf:"bytes,6,opt,name=depot_discovery_id,json=depotDiscoveryId,proto3" json:"depot_discovery_id,omitempty" ssz-size:"32"`
	// The effective slot of the storage contract.
	Start Slot `protobuf:"varint,7,opt,name=start,proto3" json:"start,omitempty" cast-type:"Slot"`
	// Expiring slot of the storage contract.
	// The contract expires **after** the end slot.
	End Slot `protobuf:"varint,8,opt,name=end,proto3" json:"end,omitempty" cast-type:"Slot"`
	// Total storage fee that data owner paid.
	Fee uint64 `protobuf:"varint,9,opt,name=fee,proto3" json:"fee,omitempty"`
	// Storage providers collateral deposit.
	Pledge  uint64                   `protobuf:"varint,10,opt,name=pledge,proto3" json:"pledge,omitempty"`
	Mutable *StorageContract_Mutable `protobuf:"bytes,11,opt,name=mutable,proto3" json:"mutable,omitempty"`
	// contains filtered or unexported fields
}

StorageContract defines a storage contract between an account and a storoage provider.

func (*StorageContract) Descriptor deprecated

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

Deprecated: Use StorageContract.ProtoReflect.Descriptor instead.

func (*StorageContract) GetCommitTxHash

func (x *StorageContract) GetCommitTxHash() []byte

func (*StorageContract) GetDepot

func (x *StorageContract) GetDepot() []byte

func (*StorageContract) GetDepotDiscoveryId

func (x *StorageContract) GetDepotDiscoveryId() []byte

func (*StorageContract) GetEnd

func (x *StorageContract) GetEnd() Slot

func (*StorageContract) GetFee

func (x *StorageContract) GetFee() uint64

func (*StorageContract) GetMutable

func (x *StorageContract) GetMutable() *StorageContract_Mutable

func (*StorageContract) GetObjectHash

func (x *StorageContract) GetObjectHash() []byte

func (*StorageContract) GetOwner

func (x *StorageContract) GetOwner() []byte

func (*StorageContract) GetPledge

func (x *StorageContract) GetPledge() uint64

func (*StorageContract) GetSize

func (x *StorageContract) GetSize() uint64

func (*StorageContract) GetStart

func (x *StorageContract) GetStart() Slot

func (*StorageContract) HashTreeRoot

func (s *StorageContract) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the StorageContract object

func (*StorageContract) HashTreeRootWith

func (s *StorageContract) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the StorageContract object with a hasher

func (*StorageContract) MarshalSSZ

func (s *StorageContract) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the StorageContract object

func (*StorageContract) MarshalSSZTo

func (s *StorageContract) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the StorageContract object to a target array

func (*StorageContract) ProtoMessage

func (*StorageContract) ProtoMessage()

func (*StorageContract) ProtoReflect

func (x *StorageContract) ProtoReflect() protoreflect.Message

func (*StorageContract) Reset

func (x *StorageContract) Reset()

func (*StorageContract) SizeSSZ

func (s *StorageContract) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the StorageContract object

func (*StorageContract) String

func (x *StorageContract) String() string

func (*StorageContract) UnmarshalSSZ

func (s *StorageContract) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the StorageContract object

type StorageContract_Mutable

type StorageContract_Mutable struct {

	// Status defines status of contract. Equivalent to StorageStatus. Use
	// uint32 because SSZ does not support proto enum type.
	Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// Start slot of the status.
	StatusStart Slot `protobuf:"varint,2,opt,name=status_start,json=statusStart,proto3" json:"status_start,omitempty" cast-type:"Slot"`
	// End slot of the status.
	StatusEnd Slot `protobuf:"varint,3,opt,name=status_end,json=statusEnd,proto3" json:"status_end,omitempty" cast-type:"Slot"`
	// The public key of the selected auditor.
	Auditor []byte `protobuf:"bytes,4,opt,name=auditor,proto3" json:"auditor,omitempty" ssz-size:"48"`
	// Audit hash of the Audit struct if non-empty.
	AuditHash []byte `protobuf:"bytes,5,opt,name=audit_hash,json=auditHash,proto3" json:"audit_hash,omitempty" ssz-size:"32"`
	// Hash of the PoRChallenge struct if non-empty.
	PorChallengeHash []byte `protobuf:"bytes,6,opt,name=por_challenge_hash,json=porChallengeHash,proto3" json:"por_challenge_hash,omitempty" ssz-size:"32"`
	// Remaining pledge.
	PledgeRemaining uint64 `protobuf:"varint,7,opt,name=pledge_remaining,json=pledgeRemaining,proto3" json:"pledge_remaining,omitempty"`
	// contains filtered or unexported fields
}

Fields that can be updated during the lifetime of a contract. TODO(kmax): consider moving this struct into a separate trie to save space.

func (*StorageContract_Mutable) Descriptor deprecated

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

Deprecated: Use StorageContract_Mutable.ProtoReflect.Descriptor instead.

func (*StorageContract_Mutable) GetAuditHash

func (x *StorageContract_Mutable) GetAuditHash() []byte

func (*StorageContract_Mutable) GetAuditor

func (x *StorageContract_Mutable) GetAuditor() []byte

func (*StorageContract_Mutable) GetPledgeRemaining

func (x *StorageContract_Mutable) GetPledgeRemaining() uint64

func (*StorageContract_Mutable) GetPorChallengeHash

func (x *StorageContract_Mutable) GetPorChallengeHash() []byte

func (*StorageContract_Mutable) GetStatus

func (x *StorageContract_Mutable) GetStatus() uint32

func (*StorageContract_Mutable) GetStatusEnd

func (x *StorageContract_Mutable) GetStatusEnd() Slot

func (*StorageContract_Mutable) GetStatusStart

func (x *StorageContract_Mutable) GetStatusStart() Slot

func (*StorageContract_Mutable) HashTreeRoot

func (s *StorageContract_Mutable) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the StorageContract_Mutable object

func (*StorageContract_Mutable) HashTreeRootWith

func (s *StorageContract_Mutable) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the StorageContract_Mutable object with a hasher

func (*StorageContract_Mutable) MarshalSSZ

func (s *StorageContract_Mutable) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the StorageContract_Mutable object

func (*StorageContract_Mutable) MarshalSSZTo

func (s *StorageContract_Mutable) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the StorageContract_Mutable object to a target array

func (*StorageContract_Mutable) ProtoMessage

func (*StorageContract_Mutable) ProtoMessage()

func (*StorageContract_Mutable) ProtoReflect

func (x *StorageContract_Mutable) ProtoReflect() protoreflect.Message

func (*StorageContract_Mutable) Reset

func (x *StorageContract_Mutable) Reset()

func (*StorageContract_Mutable) SizeSSZ

func (s *StorageContract_Mutable) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the StorageContract_Mutable object

func (*StorageContract_Mutable) String

func (x *StorageContract_Mutable) String() string

func (*StorageContract_Mutable) UnmarshalSSZ

func (s *StorageContract_Mutable) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the StorageContract_Mutable object

type StorageEventType

type StorageEventType int32

Storage contract event type used for scheduling event in event queue.

const (
	// EVENT_INVALID prevents from defaulting to a valid status.
	StorageEventType_EVENT_INVALID StorageEventType = 0
	// AUDIT_EXPIRATION is an object audit window expiration event.
	StorageEventType_AUDIT_EXPIRATION StorageEventType = 1
	// POR_EXPIRATION is an object PoR window expiration event.
	StorageEventType_POR_EXPIRATION StorageEventType = 2
	// CONTRACT_EXPIRATION is a storage contract expiration event.
	StorageEventType_CONTRACT_EXPIRATION StorageEventType = 3
)

func (StorageEventType) Descriptor

func (StorageEventType) Enum

func (StorageEventType) EnumDescriptor deprecated

func (StorageEventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use StorageEventType.Descriptor instead.

func (StorageEventType) Number

func (StorageEventType) String

func (x StorageEventType) String() string

func (StorageEventType) Type

type StorageStatus

type StorageStatus int32

Storage contract status enum.

const (
	// INVALID prevents from defaulting to a valid status.
	StorageStatus_STORAGE_INVALID StorageStatus = 0
	// CREATED indicates a newly created storage contract.
	StorageStatus_CREATED StorageStatus = 1
	// OPEN indicates a valid and effective storage contract.
	StorageStatus_OPEN StorageStatus = 2
	// AUDIT indicates an object audit is required.
	StorageStatus_AUDIT StorageStatus = 3
	// PAUSED indicates an object has missed an audit assignment and
	// is waiting for the next audit assignment.
	StorageStatus_PAUSED StorageStatus = 4
	// ZOMBIE indicates zombie storage contract (not effective) due to
	// reasons such as depleted pledge, etc.
	StorageStatus_ZOMBIE StorageStatus = 5
)

func (StorageStatus) Descriptor

func (StorageStatus) Enum

func (x StorageStatus) Enum() *StorageStatus

func (StorageStatus) EnumDescriptor deprecated

func (StorageStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use StorageStatus.Descriptor instead.

func (StorageStatus) Number

func (StorageStatus) String

func (x StorageStatus) String() string

func (StorageStatus) Type

type StreamBlocksRequest

type StreamBlocksRequest struct {
	VerifiedOnly bool `protobuf:"varint,1,opt,name=verified_only,json=verifiedOnly,proto3" json:"verified_only,omitempty"`
	// contains filtered or unexported fields
}

Request to only return blocks that is verified by the node.

func (*StreamBlocksRequest) Descriptor deprecated

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

Deprecated: Use StreamBlocksRequest.ProtoReflect.Descriptor instead.

func (*StreamBlocksRequest) GetVerifiedOnly

func (x *StreamBlocksRequest) GetVerifiedOnly() bool

func (*StreamBlocksRequest) ProtoMessage

func (*StreamBlocksRequest) ProtoMessage()

func (*StreamBlocksRequest) ProtoReflect

func (x *StreamBlocksRequest) ProtoReflect() protoreflect.Message

func (*StreamBlocksRequest) Reset

func (x *StreamBlocksRequest) Reset()

func (*StreamBlocksRequest) String

func (x *StreamBlocksRequest) String() string

type SubmitSlashingResponse

type SubmitSlashingResponse struct {

	// Indices of the validators to be slashed by the submitted
	// proposer/attester slashing object.
	SlashedIndices []ValidatorIndex `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SubmitSlashingResponse) Descriptor deprecated

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

Deprecated: Use SubmitSlashingResponse.ProtoReflect.Descriptor instead.

func (*SubmitSlashingResponse) GetSlashedIndices

func (x *SubmitSlashingResponse) GetSlashedIndices() []ValidatorIndex

func (*SubmitSlashingResponse) ProtoMessage

func (*SubmitSlashingResponse) ProtoMessage()

func (*SubmitSlashingResponse) ProtoReflect

func (x *SubmitSlashingResponse) ProtoReflect() protoreflect.Message

func (*SubmitSlashingResponse) Reset

func (x *SubmitSlashingResponse) Reset()

func (*SubmitSlashingResponse) String

func (x *SubmitSlashingResponse) String() string

type SubmitTxResponse

type SubmitTxResponse struct {
	Slot   Slot   `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty" cast-type:"Slot"`
	TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// contains filtered or unexported fields
}

Response for tx submission.

func (*SubmitTxResponse) Descriptor deprecated

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

Deprecated: Use SubmitTxResponse.ProtoReflect.Descriptor instead.

func (*SubmitTxResponse) GetSlot

func (x *SubmitTxResponse) GetSlot() Slot

func (*SubmitTxResponse) GetTxHash

func (x *SubmitTxResponse) GetTxHash() []byte

func (*SubmitTxResponse) ProtoMessage

func (*SubmitTxResponse) ProtoMessage()

func (*SubmitTxResponse) ProtoReflect

func (x *SubmitTxResponse) ProtoReflect() protoreflect.Message

func (*SubmitTxResponse) Reset

func (x *SubmitTxResponse) Reset()

func (*SubmitTxResponse) String

func (x *SubmitTxResponse) String() string

type SyncStatus

type SyncStatus struct {

	// Whether or not the node is currently syncing.
	Syncing bool `protobuf:"varint,1,opt,name=syncing,proto3" json:"syncing,omitempty"`
	// contains filtered or unexported fields
}

Information about the current network sync status of the node.

func (*SyncStatus) Descriptor deprecated

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

Deprecated: Use SyncStatus.ProtoReflect.Descriptor instead.

func (*SyncStatus) GetSyncing

func (x *SyncStatus) GetSyncing() bool

func (*SyncStatus) ProtoMessage

func (*SyncStatus) ProtoMessage()

func (*SyncStatus) ProtoReflect

func (x *SyncStatus) ProtoReflect() protoreflect.Message

func (*SyncStatus) Reset

func (x *SyncStatus) Reset()

func (*SyncStatus) String

func (x *SyncStatus) String() string

type SyncedResponse

type SyncedResponse struct {

	// A boolean specifying whether or not the node is synced and ready for the validator.
	Synced bool `protobuf:"varint,1,opt,name=synced,proto3" json:"synced,omitempty"`
	// The genesis time of the chain.
	GenesisTime uint64 `protobuf:"varint,2,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncedResponse) Descriptor deprecated

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

Deprecated: Use SyncedResponse.ProtoReflect.Descriptor instead.

func (*SyncedResponse) GetGenesisTime

func (x *SyncedResponse) GetGenesisTime() uint64

func (*SyncedResponse) GetSynced

func (x *SyncedResponse) GetSynced() bool

func (*SyncedResponse) ProtoMessage

func (*SyncedResponse) ProtoMessage()

func (*SyncedResponse) ProtoReflect

func (x *SyncedResponse) ProtoReflect() protoreflect.Message

func (*SyncedResponse) Reset

func (x *SyncedResponse) Reset()

func (*SyncedResponse) String

func (x *SyncedResponse) String() string

type TopicScoreSnapshot

type TopicScoreSnapshot struct {

	// Time a peer has spent in the gossip mesh.
	TimeInMesh uint64 `protobuf:"varint,1,opt,name=time_in_mesh,json=timeInMesh,proto3" json:"time_in_mesh,omitempty"`
	// This is the number of first message deliveries in the topic.
	FirstMessageDeliveries float32 `` /* 131-byte string literal not displayed */
	// This is the number of message deliveries in the mesh, within the MeshMessageDeliveriesWindow of
	// message validation.It effectively tracks first and near-first
	// deliveries, ie a message seen from a mesh peer before we have forwarded it to them.
	MeshMessageDeliveries float32 `` /* 128-byte string literal not displayed */
	// This is the number of invalid messages in the topic from the peer.
	InvalidMessageDeliveries float32 `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TopicScoreSnapshot) Descriptor deprecated

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

Deprecated: Use TopicScoreSnapshot.ProtoReflect.Descriptor instead.

func (*TopicScoreSnapshot) GetFirstMessageDeliveries

func (x *TopicScoreSnapshot) GetFirstMessageDeliveries() float32

func (*TopicScoreSnapshot) GetInvalidMessageDeliveries

func (x *TopicScoreSnapshot) GetInvalidMessageDeliveries() float32

func (*TopicScoreSnapshot) GetMeshMessageDeliveries

func (x *TopicScoreSnapshot) GetMeshMessageDeliveries() float32

func (*TopicScoreSnapshot) GetTimeInMesh

func (x *TopicScoreSnapshot) GetTimeInMesh() uint64

func (*TopicScoreSnapshot) ProtoMessage

func (*TopicScoreSnapshot) ProtoMessage()

func (*TopicScoreSnapshot) ProtoReflect

func (x *TopicScoreSnapshot) ProtoReflect() protoreflect.Message

func (*TopicScoreSnapshot) Reset

func (x *TopicScoreSnapshot) Reset()

func (*TopicScoreSnapshot) String

func (x *TopicScoreSnapshot) String() string

type Transaction

type Transaction struct {

	// Type defines concrete type of the payload data. Equivalent to TxType.
	// Use uint32 because SSZ does not support proto enum type.
	Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
	// Transaction originator's public key.
	From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty" ssz-size:"48"`
	// ID of the chain to which the transaction is submitted.
	ChainId uint32 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Transaction nonce for preventing replay attacks.
	Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Gas price to pay for the transaction.
	GasPrice uint64 `protobuf:"varint,5,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// Total gas spend upper bound for the transaction. For EVM transactions,
	// the limit caps total gas spend for the transaction. Transaction
	// execution that exceeds this limit leads to out of gas failure. For
	// pre-defined transaction types, the gas limit would be equivalnt to
	// total amount of gas required to execute the transaction given the
	// defined gas price.
	GasLimit uint64 `protobuf:"varint,6,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	// Transaction data by type.
	TxDataBalanceTransfer  *TxDataBalanceTransfer  `protobuf:"bytes,101,opt,name=txDataBalanceTransfer,proto3" json:"txDataBalanceTransfer,omitempty"`
	TxDataValidatorDeposit *TxDataValidatorDeposit `protobuf:"bytes,102,opt,name=txDataValidatorDeposit,proto3" json:"txDataValidatorDeposit,omitempty"`
	TxDataAuditorDeposit   *TxDataAuditorDeposit   `protobuf:"bytes,104,opt,name=txDataAuditorDeposit,proto3" json:"txDataAuditorDeposit,omitempty"`
	TxDataObjectCommit     *TxDataObjectCommit     `protobuf:"bytes,106,opt,name=txDataObjectCommit,proto3" json:"txDataObjectCommit,omitempty"`
	TxDataObjectAudit      *TxDataObjectAudit      `protobuf:"bytes,107,opt,name=txDataObjectAudit,proto3" json:"txDataObjectAudit,omitempty"`
	TxDataObjectChallenge  *TxDataObjectChallenge  `protobuf:"bytes,108,opt,name=txDataObjectChallenge,proto3" json:"txDataObjectChallenge,omitempty"`
	TxDataObjectPoR        *TxDataObjectPoR        `protobuf:"bytes,109,opt,name=txDataObjectPoR,proto3" json:"txDataObjectPoR,omitempty"`
	// contains filtered or unexported fields
}

func CopyTx

func CopyTx(tx *Transaction) *Transaction

CopyTx copies the provided Transaction.

func CopyTxs

func CopyTxs(txs []*Transaction) []*Transaction

CopyTxs copies the provided Transaction array.

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetChainId

func (x *Transaction) GetChainId() uint32

func (*Transaction) GetFrom

func (x *Transaction) GetFrom() []byte

func (*Transaction) GetGasLimit

func (x *Transaction) GetGasLimit() uint64

func (*Transaction) GetGasPrice

func (x *Transaction) GetGasPrice() uint64

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() uint64

func (*Transaction) GetTxDataAuditorDeposit

func (x *Transaction) GetTxDataAuditorDeposit() *TxDataAuditorDeposit

func (*Transaction) GetTxDataBalanceTransfer

func (x *Transaction) GetTxDataBalanceTransfer() *TxDataBalanceTransfer

func (*Transaction) GetTxDataObjectAudit

func (x *Transaction) GetTxDataObjectAudit() *TxDataObjectAudit

func (*Transaction) GetTxDataObjectChallenge

func (x *Transaction) GetTxDataObjectChallenge() *TxDataObjectChallenge

func (*Transaction) GetTxDataObjectCommit

func (x *Transaction) GetTxDataObjectCommit() *TxDataObjectCommit

func (*Transaction) GetTxDataObjectPoR

func (x *Transaction) GetTxDataObjectPoR() *TxDataObjectPoR

func (*Transaction) GetTxDataValidatorDeposit

func (x *Transaction) GetTxDataValidatorDeposit() *TxDataValidatorDeposit

func (*Transaction) GetType

func (x *Transaction) GetType() uint32

func (*Transaction) HashTreeRoot

func (t *Transaction) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Transaction object

func (*Transaction) HashTreeRootWith

func (t *Transaction) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Transaction object with a hasher

func (*Transaction) MarshalSSZ

func (t *Transaction) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Transaction object

func (*Transaction) MarshalSSZTo

func (t *Transaction) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Transaction object to a target array

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) SizeSSZ

func (t *Transaction) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Transaction object

func (*Transaction) String

func (x *Transaction) String() string

func (*Transaction) UnmarshalSSZ

func (t *Transaction) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Transaction object

type TxDataAuditorDeposit

type TxDataAuditorDeposit struct {

	// Amount of deposit.
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// Decoder is a public key encoded in multikey format for decoding data
	// encoded by this auditor.
	Decoder []byte `protobuf:"bytes,2,opt,name=decoder,proto3" json:"decoder,omitempty" ssz-size:"512"`
	// contains filtered or unexported fields
}

Auditor deposit transaction data.

func (*TxDataAuditorDeposit) Descriptor deprecated

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

Deprecated: Use TxDataAuditorDeposit.ProtoReflect.Descriptor instead.

func (*TxDataAuditorDeposit) GetAmount

func (x *TxDataAuditorDeposit) GetAmount() uint64

func (*TxDataAuditorDeposit) GetDecoder

func (x *TxDataAuditorDeposit) GetDecoder() []byte

func (*TxDataAuditorDeposit) HashTreeRoot

func (t *TxDataAuditorDeposit) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TxDataAuditorDeposit object

func (*TxDataAuditorDeposit) HashTreeRootWith

func (t *TxDataAuditorDeposit) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the TxDataAuditorDeposit object with a hasher

func (*TxDataAuditorDeposit) MarshalSSZ

func (t *TxDataAuditorDeposit) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TxDataAuditorDeposit object

func (*TxDataAuditorDeposit) MarshalSSZTo

func (t *TxDataAuditorDeposit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TxDataAuditorDeposit object to a target array

func (*TxDataAuditorDeposit) ProtoMessage

func (*TxDataAuditorDeposit) ProtoMessage()

func (*TxDataAuditorDeposit) ProtoReflect

func (x *TxDataAuditorDeposit) ProtoReflect() protoreflect.Message

func (*TxDataAuditorDeposit) Reset

func (x *TxDataAuditorDeposit) Reset()

func (*TxDataAuditorDeposit) SizeSSZ

func (t *TxDataAuditorDeposit) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the TxDataAuditorDeposit object

func (*TxDataAuditorDeposit) String

func (x *TxDataAuditorDeposit) String() string

func (*TxDataAuditorDeposit) UnmarshalSSZ

func (t *TxDataAuditorDeposit) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TxDataAuditorDeposit object

type TxDataBalanceTransfer

type TxDataBalanceTransfer struct {

	// Balance transfer destination account's public key.
	To []byte `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty" ssz-size:"48"`
	// Amount of balance to transfer.
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Balance transfer transaction data.

func (*TxDataBalanceTransfer) Descriptor deprecated

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

Deprecated: Use TxDataBalanceTransfer.ProtoReflect.Descriptor instead.

func (*TxDataBalanceTransfer) GetAmount

func (x *TxDataBalanceTransfer) GetAmount() uint64

func (*TxDataBalanceTransfer) GetTo

func (x *TxDataBalanceTransfer) GetTo() []byte

func (*TxDataBalanceTransfer) HashTreeRoot

func (t *TxDataBalanceTransfer) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TxDataBalanceTransfer object

func (*TxDataBalanceTransfer) HashTreeRootWith

func (t *TxDataBalanceTransfer) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the TxDataBalanceTransfer object with a hasher

func (*TxDataBalanceTransfer) MarshalSSZ

func (t *TxDataBalanceTransfer) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TxDataBalanceTransfer object

func (*TxDataBalanceTransfer) MarshalSSZTo

func (t *TxDataBalanceTransfer) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TxDataBalanceTransfer object to a target array

func (*TxDataBalanceTransfer) ProtoMessage

func (*TxDataBalanceTransfer) ProtoMessage()

func (*TxDataBalanceTransfer) ProtoReflect

func (x *TxDataBalanceTransfer) ProtoReflect() protoreflect.Message

func (*TxDataBalanceTransfer) Reset

func (x *TxDataBalanceTransfer) Reset()

func (*TxDataBalanceTransfer) SizeSSZ

func (t *TxDataBalanceTransfer) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the TxDataBalanceTransfer object

func (*TxDataBalanceTransfer) String

func (x *TxDataBalanceTransfer) String() string

func (*TxDataBalanceTransfer) UnmarshalSSZ

func (t *TxDataBalanceTransfer) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TxDataBalanceTransfer object

type TxDataObjectAudit

type TxDataObjectAudit struct {

	// The original object commit tx hash for identification.
	CommitTxHash []byte `protobuf:"bytes,1,opt,name=commit_tx_hash,json=commitTxHash,proto3" json:"commit_tx_hash,omitempty" ssz-size:"32"`
	// Hash of the audit struct committed in state.
	AuditHash []byte `protobuf:"bytes,2,opt,name=audit_hash,json=auditHash,proto3" json:"audit_hash,omitempty" ssz-size:"32"`
	// The public key of the auditor.
	Auditor []byte `protobuf:"bytes,3,opt,name=auditor,proto3" json:"auditor,omitempty" ssz-size:"48"`
	// The public key of the storage provider.
	Depot []byte `protobuf:"bytes,4,opt,name=depot,proto3" json:"depot,omitempty" ssz-size:"48"`
	// The Merkle tree root hash of the object's original data.
	Hash []byte `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty" ssz-size:"32"`
	// The size of the object's original data to be stored.
	Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
	// The Merkle tree root hash of the object's newly encoded data.
	EncodedHash []byte `protobuf:"bytes,7,opt,name=encoded_hash,json=encodedHash,proto3" json:"encoded_hash,omitempty" ssz-size:"32"`
	// The size of the object's encoded data to be stored.
	EncodedSize uint64 `protobuf:"varint,8,opt,name=encoded_size,json=encodedSize,proto3" json:"encoded_size,omitempty"`
	// Number of blocks of encoded data.
	NumBlocks uint32 `protobuf:"varint,9,opt,name=num_blocks,json=numBlocks,proto3" json:"num_blocks,omitempty"`
	// An array of random elements used to generated block signature.
	// The count is equal to sectors_per_block.
	// TODO(kmax): using fixed length because ssz_max would not
	// allow nil point check and skip ssz calculation.
	Rands [][]byte `protobuf:"bytes,10,rep,name=rands,proto3" json:"rands,omitempty" ssz-size:"8,96"`
	// contains filtered or unexported fields
}

TxDataObjectAudit is an update to object's storage contract after audit completion.

func (*TxDataObjectAudit) Descriptor deprecated

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

Deprecated: Use TxDataObjectAudit.ProtoReflect.Descriptor instead.

func (*TxDataObjectAudit) GetAuditHash

func (x *TxDataObjectAudit) GetAuditHash() []byte

func (*TxDataObjectAudit) GetAuditor

func (x *TxDataObjectAudit) GetAuditor() []byte

func (*TxDataObjectAudit) GetCommitTxHash

func (x *TxDataObjectAudit) GetCommitTxHash() []byte

func (*TxDataObjectAudit) GetDepot

func (x *TxDataObjectAudit) GetDepot() []byte

func (*TxDataObjectAudit) GetEncodedHash

func (x *TxDataObjectAudit) GetEncodedHash() []byte

func (*TxDataObjectAudit) GetEncodedSize

func (x *TxDataObjectAudit) GetEncodedSize() uint64

func (*TxDataObjectAudit) GetHash

func (x *TxDataObjectAudit) GetHash() []byte

func (*TxDataObjectAudit) GetNumBlocks

func (x *TxDataObjectAudit) GetNumBlocks() uint32

func (*TxDataObjectAudit) GetRands

func (x *TxDataObjectAudit) GetRands() [][]byte

func (*TxDataObjectAudit) GetSize

func (x *TxDataObjectAudit) GetSize() uint64

func (*TxDataObjectAudit) HashTreeRoot

func (t *TxDataObjectAudit) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TxDataObjectAudit object

func (*TxDataObjectAudit) HashTreeRootWith

func (t *TxDataObjectAudit) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the TxDataObjectAudit object with a hasher

func (*TxDataObjectAudit) MarshalSSZ

func (t *TxDataObjectAudit) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TxDataObjectAudit object

func (*TxDataObjectAudit) MarshalSSZTo

func (t *TxDataObjectAudit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TxDataObjectAudit object to a target array

func (*TxDataObjectAudit) ProtoMessage

func (*TxDataObjectAudit) ProtoMessage()

func (*TxDataObjectAudit) ProtoReflect

func (x *TxDataObjectAudit) ProtoReflect() protoreflect.Message

func (*TxDataObjectAudit) Reset

func (x *TxDataObjectAudit) Reset()

func (*TxDataObjectAudit) SizeSSZ

func (t *TxDataObjectAudit) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the TxDataObjectAudit object

func (*TxDataObjectAudit) String

func (x *TxDataObjectAudit) String() string

func (*TxDataObjectAudit) UnmarshalSSZ

func (t *TxDataObjectAudit) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TxDataObjectAudit object

type TxDataObjectChallenge

type TxDataObjectChallenge struct {

	// The public key of the storage provider.
	Depot []byte `protobuf:"bytes,1,opt,name=depot,proto3" json:"depot,omitempty" ssz-size:"48"`
	// The original object commit tx hash for identification.
	CommitTxHash []byte `protobuf:"bytes,2,opt,name=commit_tx_hash,json=commitTxHash,proto3" json:"commit_tx_hash,omitempty" ssz-size:"32"`
	// contains filtered or unexported fields
}

TxDataObjectChallenge requests a PoR proof for an object specified by the commit tx hash.

func (*TxDataObjectChallenge) Descriptor deprecated

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

Deprecated: Use TxDataObjectChallenge.ProtoReflect.Descriptor instead.

func (*TxDataObjectChallenge) GetCommitTxHash

func (x *TxDataObjectChallenge) GetCommitTxHash() []byte

func (*TxDataObjectChallenge) GetDepot

func (x *TxDataObjectChallenge) GetDepot() []byte

func (*TxDataObjectChallenge) HashTreeRoot

func (t *TxDataObjectChallenge) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TxDataObjectChallenge object

func (*TxDataObjectChallenge) HashTreeRootWith

func (t *TxDataObjectChallenge) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the TxDataObjectChallenge object with a hasher

func (*TxDataObjectChallenge) MarshalSSZ

func (t *TxDataObjectChallenge) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TxDataObjectChallenge object

func (*TxDataObjectChallenge) MarshalSSZTo

func (t *TxDataObjectChallenge) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TxDataObjectChallenge object to a target array

func (*TxDataObjectChallenge) ProtoMessage

func (*TxDataObjectChallenge) ProtoMessage()

func (*TxDataObjectChallenge) ProtoReflect

func (x *TxDataObjectChallenge) ProtoReflect() protoreflect.Message

func (*TxDataObjectChallenge) Reset

func (x *TxDataObjectChallenge) Reset()

func (*TxDataObjectChallenge) SizeSSZ

func (t *TxDataObjectChallenge) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the TxDataObjectChallenge object

func (*TxDataObjectChallenge) String

func (x *TxDataObjectChallenge) String() string

func (*TxDataObjectChallenge) UnmarshalSSZ

func (t *TxDataObjectChallenge) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TxDataObjectChallenge object

type TxDataObjectCommit

type TxDataObjectCommit struct {

	// The public key of the data owner.
	Owner []byte `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" ssz-size:"48"`
	// The public key of the storage provider.
	Depot []byte `protobuf:"bytes,2,opt,name=depot,proto3" json:"depot,omitempty" ssz-size:"48"`
	// The p2p network discovery ID used for finding depot RPC endpoint.
	DepotDiscoveryId []byte `protobuf:"bytes,3,opt,name=depot_discovery_id,json=depotDiscoveryId,proto3" json:"depot_discovery_id,omitempty" ssz-size:"32"`
	// The Merkle tree root hash of the object's original data.
	Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty" ssz-size:"32"`
	// The size of the object's original data to be stored.
	Size uint64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	// The Merkle tree root hash of the object's newly encoded data.
	EncodedHash []byte `protobuf:"bytes,6,opt,name=encoded_hash,json=encodedHash,proto3" json:"encoded_hash,omitempty" ssz-size:"32"`
	// The size of the object's encoded data to be stored.
	EncodedSize uint64 `protobuf:"varint,7,opt,name=encoded_size,json=encodedSize,proto3" json:"encoded_size,omitempty"`
	// Number of blocks of encoded data.
	NumBlocks uint32 `protobuf:"varint,8,opt,name=num_blocks,json=numBlocks,proto3" json:"num_blocks,omitempty"`
	// Number of slots that the storage provider needs to maintain the data.
	Duration Slot `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty" cast-type:"Slot"`
	// Total storage fee that data owner paid.
	Fee uint64 `protobuf:"varint,10,opt,name=fee,proto3" json:"fee,omitempty"`
	// Storage providers collateral deposit.
	Pledge uint64 `protobuf:"varint,11,opt,name=pledge,proto3" json:"pledge,omitempty"`
	// Slot deadline before which the transaction is considered valid.
	Deadline Slot `protobuf:"varint,12,opt,name=deadline,proto3" json:"deadline,omitempty" cast-type:"Slot"`
	// contains filtered or unexported fields
}

TxDataObjectCommit is an object's storage contract for its initial commit.

func (*TxDataObjectCommit) Descriptor deprecated

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

Deprecated: Use TxDataObjectCommit.ProtoReflect.Descriptor instead.

func (*TxDataObjectCommit) GetDeadline

func (x *TxDataObjectCommit) GetDeadline() Slot

func (*TxDataObjectCommit) GetDepot

func (x *TxDataObjectCommit) GetDepot() []byte

func (*TxDataObjectCommit) GetDepotDiscoveryId

func (x *TxDataObjectCommit) GetDepotDiscoveryId() []byte

func (*TxDataObjectCommit) GetDuration

func (x *TxDataObjectCommit) GetDuration() Slot

func (*TxDataObjectCommit) GetEncodedHash

func (x *TxDataObjectCommit) GetEncodedHash() []byte

func (*TxDataObjectCommit) GetEncodedSize

func (x *TxDataObjectCommit) GetEncodedSize() uint64

func (*TxDataObjectCommit) GetFee

func (x *TxDataObjectCommit) GetFee() uint64

func (*TxDataObjectCommit) GetHash

func (x *TxDataObjectCommit) GetHash() []byte

func (*TxDataObjectCommit) GetNumBlocks

func (x *TxDataObjectCommit) GetNumBlocks() uint32

func (*TxDataObjectCommit) GetOwner

func (x *TxDataObjectCommit) GetOwner() []byte

func (*TxDataObjectCommit) GetPledge

func (x *TxDataObjectCommit) GetPledge() uint64

func (*TxDataObjectCommit) GetSize

func (x *TxDataObjectCommit) GetSize() uint64

func (*TxDataObjectCommit) HashTreeRoot

func (t *TxDataObjectCommit) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TxDataObjectCommit object

func (*TxDataObjectCommit) HashTreeRootWith

func (t *TxDataObjectCommit) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the TxDataObjectCommit object with a hasher

func (*TxDataObjectCommit) MarshalSSZ

func (t *TxDataObjectCommit) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TxDataObjectCommit object

func (*TxDataObjectCommit) MarshalSSZTo

func (t *TxDataObjectCommit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TxDataObjectCommit object to a target array

func (*TxDataObjectCommit) ProtoMessage

func (*TxDataObjectCommit) ProtoMessage()

func (*TxDataObjectCommit) ProtoReflect

func (x *TxDataObjectCommit) ProtoReflect() protoreflect.Message

func (*TxDataObjectCommit) Reset

func (x *TxDataObjectCommit) Reset()

func (*TxDataObjectCommit) SizeSSZ

func (t *TxDataObjectCommit) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the TxDataObjectCommit object

func (*TxDataObjectCommit) String

func (x *TxDataObjectCommit) String() string

func (*TxDataObjectCommit) UnmarshalSSZ

func (t *TxDataObjectCommit) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TxDataObjectCommit object

type TxDataObjectPoR

type TxDataObjectPoR struct {

	// The original object commit tx hash for identification.
	CommitTxHash []byte `protobuf:"bytes,1,opt,name=commit_tx_hash,json=commitTxHash,proto3" json:"commit_tx_hash,omitempty" ssz-size:"32"`
	// TODO(kmax): using fixed length because ssz_max would not
	// allow nil point check and skip ssz calculation.
	// Mu's generated by prover.
	BlockAggs [][]byte `protobuf:"bytes,2,rep,name=block_aggs,json=blockAggs,proto3" json:"block_aggs,omitempty" ssz-size:"8,32"`
	// Aggregated block signatures generated by prover.
	Sigma []byte `protobuf:"bytes,3,opt,name=sigma,proto3" json:"sigma,omitempty" ssz-size:"96"`
	// contains filtered or unexported fields
}

TxDataObjectPoR is an update to object's storage contract with PoR proof data.

func (*TxDataObjectPoR) Descriptor deprecated

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

Deprecated: Use TxDataObjectPoR.ProtoReflect.Descriptor instead.

func (*TxDataObjectPoR) GetBlockAggs

func (x *TxDataObjectPoR) GetBlockAggs() [][]byte

func (*TxDataObjectPoR) GetCommitTxHash

func (x *TxDataObjectPoR) GetCommitTxHash() []byte

func (*TxDataObjectPoR) GetSigma

func (x *TxDataObjectPoR) GetSigma() []byte

func (*TxDataObjectPoR) HashTreeRoot

func (t *TxDataObjectPoR) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TxDataObjectPoR object

func (*TxDataObjectPoR) HashTreeRootWith

func (t *TxDataObjectPoR) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the TxDataObjectPoR object with a hasher

func (*TxDataObjectPoR) MarshalSSZ

func (t *TxDataObjectPoR) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TxDataObjectPoR object

func (*TxDataObjectPoR) MarshalSSZTo

func (t *TxDataObjectPoR) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TxDataObjectPoR object to a target array

func (*TxDataObjectPoR) ProtoMessage

func (*TxDataObjectPoR) ProtoMessage()

func (*TxDataObjectPoR) ProtoReflect

func (x *TxDataObjectPoR) ProtoReflect() protoreflect.Message

func (*TxDataObjectPoR) Reset

func (x *TxDataObjectPoR) Reset()

func (*TxDataObjectPoR) SizeSSZ

func (t *TxDataObjectPoR) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the TxDataObjectPoR object

func (*TxDataObjectPoR) String

func (x *TxDataObjectPoR) String() string

func (*TxDataObjectPoR) UnmarshalSSZ

func (t *TxDataObjectPoR) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TxDataObjectPoR object

type TxDataValidatorDeposit

type TxDataValidatorDeposit struct {

	// Amount of deposit.
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Validator deposit transaction data.

func (*TxDataValidatorDeposit) Descriptor deprecated

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

Deprecated: Use TxDataValidatorDeposit.ProtoReflect.Descriptor instead.

func (*TxDataValidatorDeposit) GetAmount

func (x *TxDataValidatorDeposit) GetAmount() uint64

func (*TxDataValidatorDeposit) HashTreeRoot

func (t *TxDataValidatorDeposit) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TxDataValidatorDeposit object

func (*TxDataValidatorDeposit) HashTreeRootWith

func (t *TxDataValidatorDeposit) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the TxDataValidatorDeposit object with a hasher

func (*TxDataValidatorDeposit) MarshalSSZ

func (t *TxDataValidatorDeposit) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TxDataValidatorDeposit object

func (*TxDataValidatorDeposit) MarshalSSZTo

func (t *TxDataValidatorDeposit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TxDataValidatorDeposit object to a target array

func (*TxDataValidatorDeposit) ProtoMessage

func (*TxDataValidatorDeposit) ProtoMessage()

func (*TxDataValidatorDeposit) ProtoReflect

func (x *TxDataValidatorDeposit) ProtoReflect() protoreflect.Message

func (*TxDataValidatorDeposit) Reset

func (x *TxDataValidatorDeposit) Reset()

func (*TxDataValidatorDeposit) SizeSSZ

func (t *TxDataValidatorDeposit) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the TxDataValidatorDeposit object

func (*TxDataValidatorDeposit) String

func (x *TxDataValidatorDeposit) String() string

func (*TxDataValidatorDeposit) UnmarshalSSZ

func (t *TxDataValidatorDeposit) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TxDataValidatorDeposit object

type TxType

type TxType int32

Transaction type enum.

const (
	// TX_INVALID type prevents from defaulting to a valid transaction type.
	TxType_TX_INVALID TxType = 0
	// BALANCE_TRANSFER transfers balance between accounts.
	TxType_BALANCE_TRANSFER TxType = 1
	// VALIDATOR_DEPOSIT depotis balance for being a validator.
	TxType_VALIDATOR_DEPOSIT TxType = 2
	// VALIDATOR_EXIT initiates a voluntary exit for a validator.
	TxType_VALIDATOR_EXIT TxType = 3
	// AUDITOR_DEPOSIT deposit balance for being an auditor.
	TxType_AUDITOR_DEPOSIT TxType = 4
	// AUDITOR_EXIT initiates a voluntary exit for an auditor.
	TxType_AUDITOR_EXIT TxType = 5
	// OBJECT_COMMIT creates a new storage contract committing a data object.
	TxType_OBJECT_COMMIT TxType = 6
	// OBJECT_AUDIT updates a storage contract after object data audit completion.
	TxType_OBJECT_AUDIT TxType = 7
	// OBJECT_CHALLENGE requests a PoR proof for a specified object.
	TxType_OBJECT_CHALLENGE TxType = 8
	// OBJECT_POR updates a storage contract with PoR proof data.
	TxType_OBJECT_POR TxType = 9
)

func (TxType) Descriptor

func (TxType) Descriptor() protoreflect.EnumDescriptor

func (TxType) Enum

func (x TxType) Enum() *TxType

func (TxType) EnumDescriptor deprecated

func (TxType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TxType.Descriptor instead.

func (TxType) Number

func (x TxType) Number() protoreflect.EnumNumber

func (TxType) String

func (x TxType) String() string

func (TxType) Type

func (TxType) Type() protoreflect.EnumType

type Uint64

type Uint64 struct {
	V uint64 `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"`
	// contains filtered or unexported fields
}

func (*Uint64) Descriptor deprecated

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

Deprecated: Use Uint64.ProtoReflect.Descriptor instead.

func (*Uint64) GetV

func (x *Uint64) GetV() uint64

func (*Uint64) ProtoMessage

func (*Uint64) ProtoMessage()

func (*Uint64) ProtoReflect

func (x *Uint64) ProtoReflect() protoreflect.Message

func (*Uint64) Reset

func (x *Uint64) Reset()

func (*Uint64) String

func (x *Uint64) String() string

type UnimplementedDebugServer

type UnimplementedDebugServer struct {
}

UnimplementedDebugServer can be embedded to have forward compatible implementations.

func (*UnimplementedDebugServer) GetBlock

func (*UnimplementedDebugServer) GetInclusionSlot

func (*UnimplementedDebugServer) GetPeer

func (*UnimplementedDebugServer) GetProtoArrayForkChoice

func (*UnimplementedDebugServer) GetState

func (*UnimplementedDebugServer) ListPeers

func (*UnimplementedDebugServer) SetLoggingLevel

type UnimplementedInfoServer

type UnimplementedInfoServer struct {
}

UnimplementedInfoServer can be embedded to have forward compatible implementations.

func (*UnimplementedInfoServer) GetGenesis

func (*UnimplementedInfoServer) GetHost

func (*UnimplementedInfoServer) GetPeer

func (*UnimplementedInfoServer) GetSyncStatus

func (*UnimplementedInfoServer) GetVersion

func (*UnimplementedInfoServer) ListImplementedServices

func (*UnimplementedInfoServer) ListPeers

type UnimplementedNodeServer

type UnimplementedNodeServer struct {
}

UnimplementedNodeServer can be embedded to have forward compatible implementations.

func (*UnimplementedNodeServer) AttestationPool

func (*UnimplementedNodeServer) AuditorStatus

func (*UnimplementedNodeServer) CheckDoppelGanger

func (*UnimplementedNodeServer) GetAccount

func (*UnimplementedNodeServer) GetAttestationData

func (*UnimplementedNodeServer) GetAuditor

func (*UnimplementedNodeServer) GetBlockProposal

func (*UnimplementedNodeServer) GetChainConfig

func (*UnimplementedNodeServer) GetChainHead

func (*UnimplementedNodeServer) GetDuties

func (*UnimplementedNodeServer) GetIndividualVotes

func (*UnimplementedNodeServer) GetPoRChallenge

func (*UnimplementedNodeServer) GetStateChanges

func (*UnimplementedNodeServer) GetTransaction

func (*UnimplementedNodeServer) GetValidator

func (*UnimplementedNodeServer) GetValidatorActiveSetChanges

func (*UnimplementedNodeServer) GetValidatorQueue

func (*UnimplementedNodeServer) GetWeakSubjectivityCheckpoint

func (*UnimplementedNodeServer) ListAttestations

func (*UnimplementedNodeServer) ListBlocks

func (*UnimplementedNodeServer) ListCommittees

func (*UnimplementedNodeServer) ListValidatorAssignments

func (*UnimplementedNodeServer) ListValidatorBalances

func (*UnimplementedNodeServer) ListValidators

func (*UnimplementedNodeServer) ProposeAttestation

func (*UnimplementedNodeServer) ProposeBlock

func (*UnimplementedNodeServer) StreamAttestations

func (*UnimplementedNodeServer) StreamBlocks

func (*UnimplementedNodeServer) StreamChainHead

func (*UnimplementedNodeServer) StreamDuties

func (*UnimplementedNodeServer) StreamIndexedAttestations

func (*UnimplementedNodeServer) StreamValidatorsInfo

func (*UnimplementedNodeServer) SubmitAggregateSelectionProof

func (*UnimplementedNodeServer) SubmitAttesterSlashing

func (*UnimplementedNodeServer) SubmitProposerSlashing

func (*UnimplementedNodeServer) SubmitSignedAggregateSelectionProof

func (*UnimplementedNodeServer) SubmitTx

func (*UnimplementedNodeServer) SubscribeCommitteeSubnets

func (*UnimplementedNodeServer) ValidatorIndex

func (*UnimplementedNodeServer) ValidatorStatus

func (*UnimplementedNodeServer) WaitForActivation

func (*UnimplementedNodeServer) WaitForChainStart

type UnimplementedSlasherServer

type UnimplementedSlasherServer struct {
}

UnimplementedSlasherServer can be embedded to have forward compatible implementations.

func (*UnimplementedSlasherServer) HighestAttestations

func (*UnimplementedSlasherServer) IsSlashableAttestation

func (*UnimplementedSlasherServer) IsSlashableBlock

type Validator

type Validator struct {

	// 48 byte BLS public key used for the validator's activities.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// Validator staking balance.
	Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// Whether or not the validator has been slashed.
	Slashed bool `protobuf:"varint,3,opt,name=slashed,proto3" json:"slashed,omitempty"`
	// Epoch when the validator became eligible for activation. This field may
	// be zero if the validator was present in the Ethereum proof of stake genesis. This
	// field is FAR_FUTURE_EPOCH if the validator has not been activated.
	ActivationEligibilityEpoch Epoch `` /* 160-byte string literal not displayed */
	// Epoch when the validator was activated. This field may be zero if the
	// validator was present in the Ethereum proof of stake genesis. This field is
	// FAR_FUTURE_EPOCH if the validator has not been activated.
	ActivationEpoch Epoch `protobuf:"varint,5,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty" cast-type:"Epoch"`
	// Epoch when the validator was exited. This field is FAR_FUTURE_EPOCH if
	// the validator has not exited.
	// FAR_FUTURE_EPOCH is a constant defined by the official Ethereum Beacon Chain specification:
	// https://github.com/ethereum/consensus-specs/blob/v0.9.2/specs/core/0_beacon-chain.md#constants
	ExitEpoch Epoch `protobuf:"varint,6,opt,name=exit_epoch,json=exitEpoch,proto3" json:"exit_epoch,omitempty" cast-type:"Epoch"`
	// Epoch when the validator is eligible to withdraw their funds. This field
	// is FAR_FUTURE_EPOCH if the validator has not exited.
	// FAR_FUTURE_EPOCH is a constant defined by the official Ethereum Beacon Chain specification:
	// https://github.com/ethereum/consensus-specs/blob/v0.9.2/specs/core/0_beacon-chain.md#constants
	WithdrawableEpoch Epoch `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

A photon chain validator.

func CopyValidator

func CopyValidator(val *Validator) *Validator

CopyValidator copies the provided validator.

func (*Validator) Descriptor deprecated

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

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetActivationEligibilityEpoch

func (x *Validator) GetActivationEligibilityEpoch() Epoch

func (*Validator) GetActivationEpoch

func (x *Validator) GetActivationEpoch() Epoch

func (*Validator) GetBalance

func (x *Validator) GetBalance() uint64

func (*Validator) GetExitEpoch

func (x *Validator) GetExitEpoch() Epoch

func (*Validator) GetPublicKey

func (x *Validator) GetPublicKey() []byte

func (*Validator) GetSlashed

func (x *Validator) GetSlashed() bool

func (*Validator) GetWithdrawableEpoch

func (x *Validator) GetWithdrawableEpoch() Epoch

func (*Validator) HashTreeRoot

func (v *Validator) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Validator object

func (*Validator) HashTreeRootWith

func (v *Validator) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Validator object with a hasher

func (*Validator) MarshalSSZ

func (v *Validator) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Validator object

func (*Validator) MarshalSSZTo

func (v *Validator) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Validator object to a target array

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect

func (x *Validator) ProtoReflect() protoreflect.Message

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) SizeSSZ

func (v *Validator) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Validator object

func (*Validator) String

func (x *Validator) String() string

func (*Validator) UnmarshalSSZ

func (v *Validator) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Validator object

type ValidatorActivationRequest

type ValidatorActivationRequest struct {

	// A list of 48 byte validator public keys.
	PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty" ssz-size:"?,48"`
	// contains filtered or unexported fields
}

func (*ValidatorActivationRequest) Descriptor deprecated

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

Deprecated: Use ValidatorActivationRequest.ProtoReflect.Descriptor instead.

func (*ValidatorActivationRequest) GetPublicKeys

func (x *ValidatorActivationRequest) GetPublicKeys() [][]byte

func (*ValidatorActivationRequest) ProtoMessage

func (*ValidatorActivationRequest) ProtoMessage()

func (*ValidatorActivationRequest) ProtoReflect

func (*ValidatorActivationRequest) Reset

func (x *ValidatorActivationRequest) Reset()

func (*ValidatorActivationRequest) String

func (x *ValidatorActivationRequest) String() string

type ValidatorActivationResponse

type ValidatorActivationResponse struct {

	// A list of validator statuses mapped 1-to-1 with the public keys
	// in the request.
	Statuses []*ValidatorActivationResponse_Status `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorActivationResponse) Descriptor deprecated

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

Deprecated: Use ValidatorActivationResponse.ProtoReflect.Descriptor instead.

func (*ValidatorActivationResponse) GetStatuses

func (*ValidatorActivationResponse) ProtoMessage

func (*ValidatorActivationResponse) ProtoMessage()

func (*ValidatorActivationResponse) ProtoReflect

func (*ValidatorActivationResponse) Reset

func (x *ValidatorActivationResponse) Reset()

func (*ValidatorActivationResponse) String

func (x *ValidatorActivationResponse) String() string

type ValidatorActivationResponse_Status

type ValidatorActivationResponse_Status struct {

	// A 48 byte validator public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// A wrapper representing a validator's status object.
	Status *ValidatorStatusResponse `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// The validators index in the state.
	Index ValidatorIndex `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty" cast-type:"ValidatorIndex"`
	// contains filtered or unexported fields
}

func (*ValidatorActivationResponse_Status) Descriptor deprecated

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

Deprecated: Use ValidatorActivationResponse_Status.ProtoReflect.Descriptor instead.

func (*ValidatorActivationResponse_Status) GetIndex

func (*ValidatorActivationResponse_Status) GetPublicKey

func (x *ValidatorActivationResponse_Status) GetPublicKey() []byte

func (*ValidatorActivationResponse_Status) GetStatus

func (*ValidatorActivationResponse_Status) ProtoMessage

func (*ValidatorActivationResponse_Status) ProtoMessage()

func (*ValidatorActivationResponse_Status) ProtoReflect

func (*ValidatorActivationResponse_Status) Reset

func (*ValidatorActivationResponse_Status) String

type ValidatorAssignments

type ValidatorAssignments struct {

	// The epoch for which this set of validator assignments is valid.
	Epoch       Epoch                                       `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	Assignments []*ValidatorAssignments_CommitteeAssignment `protobuf:"bytes,2,rep,name=assignments,proto3" json:"assignments,omitempty"`
	// A pagination token returned from a previous call to `ListValidatorAssignmentsRequest`
	// that indicates where this listing should continue from.
	// This field is optional.
	NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of CommitteeAssignments matching the request filter.
	TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorAssignments) Descriptor deprecated

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

Deprecated: Use ValidatorAssignments.ProtoReflect.Descriptor instead.

func (*ValidatorAssignments) GetAssignments

func (*ValidatorAssignments) GetEpoch

func (x *ValidatorAssignments) GetEpoch() Epoch

func (*ValidatorAssignments) GetNextPageToken

func (x *ValidatorAssignments) GetNextPageToken() string

func (*ValidatorAssignments) GetTotalSize

func (x *ValidatorAssignments) GetTotalSize() int32

func (*ValidatorAssignments) ProtoMessage

func (*ValidatorAssignments) ProtoMessage()

func (*ValidatorAssignments) ProtoReflect

func (x *ValidatorAssignments) ProtoReflect() protoreflect.Message

func (*ValidatorAssignments) Reset

func (x *ValidatorAssignments) Reset()

func (*ValidatorAssignments) String

func (x *ValidatorAssignments) String() string

type ValidatorAssignments_CommitteeAssignment

type ValidatorAssignments_CommitteeAssignment struct {

	// Committees are responsible for crosslinking committee data back to the chain,
	// they also attest and produce chain blocks. This is a list of validator indices that
	// are in the same committee as requested validator, everyone in the committee is assigned to the
	// same slot and same committee.
	Committee []ValidatorIndex `protobuf:"varint,1,rep,packed,name=committee,proto3" json:"committee,omitempty" cast-type:"ValidatorIndex"`
	// Committee index represents the committee of validator that's in.
	CommitteeIndex CommitteeIndex `` /* 131-byte string literal not displayed */
	// Chain slot in which the validator must perform its assigned
	// duty as an attester.
	AttesterSlot Slot `protobuf:"varint,3,opt,name=attester_slot,json=attesterSlot,proto3" json:"attester_slot,omitempty" cast-type:"Slot"`
	// Chain slots in which the validator must perform its assigned
	// duty as a proposer.
	ProposerSlots []Slot `protobuf:"varint,4,rep,packed,name=proposer_slots,json=proposerSlots,proto3" json:"proposer_slots,omitempty" cast-type:"Slot"`
	// 48 byte BLS public key.
	//
	// Deprecated: Do not use.
	PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// Validator index in the state.
	ValidatorIndex ValidatorIndex `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ValidatorAssignments_CommitteeAssignment) Descriptor deprecated

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

Deprecated: Use ValidatorAssignments_CommitteeAssignment.ProtoReflect.Descriptor instead.

func (*ValidatorAssignments_CommitteeAssignment) GetAttesterSlot

func (x *ValidatorAssignments_CommitteeAssignment) GetAttesterSlot() Slot

func (*ValidatorAssignments_CommitteeAssignment) GetCommittee

func (*ValidatorAssignments_CommitteeAssignment) GetCommitteeIndex

func (*ValidatorAssignments_CommitteeAssignment) GetProposerSlots

func (x *ValidatorAssignments_CommitteeAssignment) GetProposerSlots() []Slot

func (*ValidatorAssignments_CommitteeAssignment) GetPublicKey deprecated

func (x *ValidatorAssignments_CommitteeAssignment) GetPublicKey() []byte

Deprecated: Do not use.

func (*ValidatorAssignments_CommitteeAssignment) GetValidatorIndex

func (*ValidatorAssignments_CommitteeAssignment) ProtoMessage

func (*ValidatorAssignments_CommitteeAssignment) ProtoReflect

func (*ValidatorAssignments_CommitteeAssignment) Reset

func (*ValidatorAssignments_CommitteeAssignment) String

type ValidatorBalances

type ValidatorBalances struct {

	// Epoch which the state was considered to determine the validator balances.
	Epoch    Epoch                        `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	Balances []*ValidatorBalances_Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"`
	// A pagination token returned from a previous call to `GetListValidatorBalances`
	// that indicates from where listing should continue.
	NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of items matching the request filter.
	TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorBalances) Descriptor deprecated

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

Deprecated: Use ValidatorBalances.ProtoReflect.Descriptor instead.

func (*ValidatorBalances) GetBalances

func (x *ValidatorBalances) GetBalances() []*ValidatorBalances_Balance

func (*ValidatorBalances) GetEpoch

func (x *ValidatorBalances) GetEpoch() Epoch

func (*ValidatorBalances) GetNextPageToken

func (x *ValidatorBalances) GetNextPageToken() string

func (*ValidatorBalances) GetTotalSize

func (x *ValidatorBalances) GetTotalSize() int32

func (*ValidatorBalances) ProtoMessage

func (*ValidatorBalances) ProtoMessage()

func (*ValidatorBalances) ProtoReflect

func (x *ValidatorBalances) ProtoReflect() protoreflect.Message

func (*ValidatorBalances) Reset

func (x *ValidatorBalances) Reset()

func (*ValidatorBalances) String

func (x *ValidatorBalances) String() string

type ValidatorBalances_Balance

type ValidatorBalances_Balance struct {

	// Validator's 48 byte BLS public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// Validator's index in the validator set.
	Index ValidatorIndex `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty" cast-type:"ValidatorIndex"`
	// Validator's balance in gwei.
	Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"`
	// Validator's status, UNKNOWN if not found.
	Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorBalances_Balance) Descriptor deprecated

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

Deprecated: Use ValidatorBalances_Balance.ProtoReflect.Descriptor instead.

func (*ValidatorBalances_Balance) GetBalance

func (x *ValidatorBalances_Balance) GetBalance() uint64

func (*ValidatorBalances_Balance) GetIndex

func (*ValidatorBalances_Balance) GetPublicKey

func (x *ValidatorBalances_Balance) GetPublicKey() []byte

func (*ValidatorBalances_Balance) GetStatus

func (x *ValidatorBalances_Balance) GetStatus() string

func (*ValidatorBalances_Balance) ProtoMessage

func (*ValidatorBalances_Balance) ProtoMessage()

func (*ValidatorBalances_Balance) ProtoReflect

func (*ValidatorBalances_Balance) Reset

func (x *ValidatorBalances_Balance) Reset()

func (*ValidatorBalances_Balance) String

func (x *ValidatorBalances_Balance) String() string

type ValidatorChangeSet

type ValidatorChangeSet struct {

	// Action (add/remove/set).
	Action SetAction `protobuf:"varint,1,opt,name=action,proto3,enum=photon.consensus.SetAction" json:"action,omitempty"`
	// 48 byte BLS public keys of validators on which the operation occurs.
	PublicKeys [][]byte `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	// contains filtered or unexported fields
}

ValidatorChangeSet updates the server's list of keys on which to operate.

func (*ValidatorChangeSet) Descriptor deprecated

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

Deprecated: Use ValidatorChangeSet.ProtoReflect.Descriptor instead.

func (*ValidatorChangeSet) GetAction

func (x *ValidatorChangeSet) GetAction() SetAction

func (*ValidatorChangeSet) GetPublicKeys

func (x *ValidatorChangeSet) GetPublicKeys() [][]byte

func (*ValidatorChangeSet) ProtoMessage

func (*ValidatorChangeSet) ProtoMessage()

func (*ValidatorChangeSet) ProtoReflect

func (x *ValidatorChangeSet) ProtoReflect() protoreflect.Message

func (*ValidatorChangeSet) Reset

func (x *ValidatorChangeSet) Reset()

func (*ValidatorChangeSet) String

func (x *ValidatorChangeSet) String() string

type ValidatorIndex

type ValidatorIndex uint64

ValidatorIndex in eth2.

func ValidatorIndexFromUniqueKey

func ValidatorIndexFromUniqueKey(b []byte) ValidatorIndex

ValidatorIndexFromUniqueKey convert unique key bytes to validator index.

func (ValidatorIndex) Add

Add increases validator index by x.

func (ValidatorIndex) Div

Div divides validator index by x.

func (ValidatorIndex) HashTreeRoot

func (v ValidatorIndex) HashTreeRoot() ([32]byte, error)

HashTreeRoot returns calculated hash root.

func (ValidatorIndex) HashTreeRootWith

func (v ValidatorIndex) HashTreeRootWith(hh *fssz.Hasher) error

HashWithDefaultHasher hashes a HashRoot object with a Hasher from the default HasherPool.

func (*ValidatorIndex) MarshalSSZ

func (v *ValidatorIndex) MarshalSSZ() ([]byte, error)

MarshalSSZ marshals validator index into a serialized object.

func (*ValidatorIndex) MarshalSSZTo

func (v *ValidatorIndex) MarshalSSZTo(dst []byte) ([]byte, error)

MarshalSSZTo marshals validator index with the provided byte slice.

func (ValidatorIndex) Mod

Mod returns result of `validator index % x`.

func (*ValidatorIndex) SizeSSZ

func (v *ValidatorIndex) SizeSSZ() int

SizeSSZ returns the size of the serialized object.

func (ValidatorIndex) Sub

Sub subtracts x from the validator index.

func (ValidatorIndex) UniqueKey

func (v ValidatorIndex) UniqueKey() [32]byte

UniqueKey convert the ValidatorIndex to the unique hash.

func (*ValidatorIndex) UnmarshalSSZ

func (v *ValidatorIndex) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ deserializes the provided bytes buffer into the validator index object.

type ValidatorIndexRequest

type ValidatorIndexRequest struct {

	// A 48 byte validator public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// contains filtered or unexported fields
}

func (*ValidatorIndexRequest) Descriptor deprecated

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

Deprecated: Use ValidatorIndexRequest.ProtoReflect.Descriptor instead.

func (*ValidatorIndexRequest) GetPublicKey

func (x *ValidatorIndexRequest) GetPublicKey() []byte

func (*ValidatorIndexRequest) ProtoMessage

func (*ValidatorIndexRequest) ProtoMessage()

func (*ValidatorIndexRequest) ProtoReflect

func (x *ValidatorIndexRequest) ProtoReflect() protoreflect.Message

func (*ValidatorIndexRequest) Reset

func (x *ValidatorIndexRequest) Reset()

func (*ValidatorIndexRequest) String

func (x *ValidatorIndexRequest) String() string

type ValidatorIndexResponse

type ValidatorIndexResponse struct {

	// The validator's index in the chain state's validator registry.
	Index ValidatorIndex `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" cast-type:"ValidatorIndex"`
	// contains filtered or unexported fields
}

func (*ValidatorIndexResponse) Descriptor deprecated

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

Deprecated: Use ValidatorIndexResponse.ProtoReflect.Descriptor instead.

func (*ValidatorIndexResponse) GetIndex

func (x *ValidatorIndexResponse) GetIndex() ValidatorIndex

func (*ValidatorIndexResponse) ProtoMessage

func (*ValidatorIndexResponse) ProtoMessage()

func (*ValidatorIndexResponse) ProtoReflect

func (x *ValidatorIndexResponse) ProtoReflect() protoreflect.Message

func (*ValidatorIndexResponse) Reset

func (x *ValidatorIndexResponse) Reset()

func (*ValidatorIndexResponse) String

func (x *ValidatorIndexResponse) String() string

type ValidatorInfo

type ValidatorInfo struct {

	// The validator's 48 byte BLS public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// The validator's index in the state.
	Index ValidatorIndex `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty" cast-type:"ValidatorIndex"`
	// The epoch for which the information pertains.
	Epoch Epoch `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// The validator's current status.
	Status ValidatorStatus `protobuf:"varint,4,opt,name=status,proto3,enum=photon.consensus.ValidatorStatus" json:"status,omitempty"`
	// The unix timestamp when the validator enters the next state.
	// This could be in the past.  Some values depend on chain operation and so will vary from epoch to epoch.
	// Specific times for each state are as follows:
	// - state == PENDING: time at which validator will be activated (variable).
	// - state == ACTIVE: no value (next transition depends on user and network actions).
	// - state == EXITING: time at which validator will exit.
	// - state == SLASHING: time at which validator will exit.
	// - state == EXITED: time at which validator funds will be withdrawable.
	TransitionTimestamp uint64 `protobuf:"varint,5,opt,name=transition_timestamp,json=transitionTimestamp,proto3" json:"transition_timestamp,omitempty"`
	// The validator's current balance in GWei.
	Balance uint64 `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"`
	// The validator's current effective balance in GWei.
	// Only valid for states ACTIVE, EXITING, SLASHING.
	EffectiveBalance uint64 `protobuf:"varint,7,opt,name=effective_balance,json=effectiveBalance,proto3" json:"effective_balance,omitempty"`
	// contains filtered or unexported fields
}

ValidatorInfo gives information about the state of a validator at a certain epoch.

func (*ValidatorInfo) Descriptor deprecated

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

Deprecated: Use ValidatorInfo.ProtoReflect.Descriptor instead.

func (*ValidatorInfo) GetBalance

func (x *ValidatorInfo) GetBalance() uint64

func (*ValidatorInfo) GetEffectiveBalance

func (x *ValidatorInfo) GetEffectiveBalance() uint64

func (*ValidatorInfo) GetEpoch

func (x *ValidatorInfo) GetEpoch() Epoch

func (*ValidatorInfo) GetIndex

func (x *ValidatorInfo) GetIndex() ValidatorIndex

func (*ValidatorInfo) GetPublicKey

func (x *ValidatorInfo) GetPublicKey() []byte

func (*ValidatorInfo) GetStatus

func (x *ValidatorInfo) GetStatus() ValidatorStatus

func (*ValidatorInfo) GetTransitionTimestamp

func (x *ValidatorInfo) GetTransitionTimestamp() uint64

func (*ValidatorInfo) ProtoMessage

func (*ValidatorInfo) ProtoMessage()

func (*ValidatorInfo) ProtoReflect

func (x *ValidatorInfo) ProtoReflect() protoreflect.Message

func (*ValidatorInfo) Reset

func (x *ValidatorInfo) Reset()

func (*ValidatorInfo) String

func (x *ValidatorInfo) String() string

type ValidatorParticipation

type ValidatorParticipation struct {

	// Percentage of validator participation in the given epoch. This field
	// contains a value between 0 and 1.
	//
	// Deprecated: Do not use.
	GlobalParticipationRate float32 `` /* 134-byte string literal not displayed */
	// The total amount of ether, in gwei, that has been used in voting.
	//
	// Deprecated: Do not use.
	VotedEther uint64 `protobuf:"varint,2,opt,name=voted_ether,json=votedEther,proto3" json:"voted_ether,omitempty"`
	// The total amount of ether, in gwei, that is eligible for voting.
	//
	// Deprecated: Do not use.
	EligibleEther uint64 `protobuf:"varint,3,opt,name=eligible_ether,json=eligibleEther,proto3" json:"eligible_ether,omitempty"`
	// Total staked gwei that was active (i.e. eligible to vote) during the current epoch.
	CurrentEpochActiveGwei uint64 `` /* 132-byte string literal not displayed */
	// Total staked gwei that had attestations included in a block during the current epoch,
	// attestations by the same validator do not increase this figure.
	CurrentEpochAttestingGwei uint64 `` /* 141-byte string literal not displayed */
	// Total staked gwei that attested to the majority-elected Casper FFG target epoch during the current epoch.
	CurrentEpochTargetAttestingGwei uint64 `` /* 161-byte string literal not displayed */
	// Same as current_epoch_active_gwei but for previous epoch.
	PreviousEpochActiveGwei uint64 `` /* 135-byte string literal not displayed */
	// Same as current_epoch_attesting_gwei but for previous epoch.
	PreviousEpochAttestingGwei uint64 `` /* 144-byte string literal not displayed */
	// Same as current_epoch_target_attesting_gwei but for previous epoch.
	PreviousEpochTargetAttestingGwei uint64 `` /* 164-byte string literal not displayed */
	// Total staked gwei that attested to a head block that is in the canonical chain.
	PreviousEpochHeadAttestingGwei uint64 `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

ValidatorParticipation stores participation metrics during a given epoch.

func (*ValidatorParticipation) Descriptor deprecated

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

Deprecated: Use ValidatorParticipation.ProtoReflect.Descriptor instead.

func (*ValidatorParticipation) GetCurrentEpochActiveGwei

func (x *ValidatorParticipation) GetCurrentEpochActiveGwei() uint64

func (*ValidatorParticipation) GetCurrentEpochAttestingGwei

func (x *ValidatorParticipation) GetCurrentEpochAttestingGwei() uint64

func (*ValidatorParticipation) GetCurrentEpochTargetAttestingGwei

func (x *ValidatorParticipation) GetCurrentEpochTargetAttestingGwei() uint64

func (*ValidatorParticipation) GetEligibleEther deprecated

func (x *ValidatorParticipation) GetEligibleEther() uint64

Deprecated: Do not use.

func (*ValidatorParticipation) GetGlobalParticipationRate deprecated

func (x *ValidatorParticipation) GetGlobalParticipationRate() float32

Deprecated: Do not use.

func (*ValidatorParticipation) GetPreviousEpochActiveGwei

func (x *ValidatorParticipation) GetPreviousEpochActiveGwei() uint64

func (*ValidatorParticipation) GetPreviousEpochAttestingGwei

func (x *ValidatorParticipation) GetPreviousEpochAttestingGwei() uint64

func (*ValidatorParticipation) GetPreviousEpochHeadAttestingGwei

func (x *ValidatorParticipation) GetPreviousEpochHeadAttestingGwei() uint64

func (*ValidatorParticipation) GetPreviousEpochTargetAttestingGwei

func (x *ValidatorParticipation) GetPreviousEpochTargetAttestingGwei() uint64

func (*ValidatorParticipation) GetVotedEther deprecated

func (x *ValidatorParticipation) GetVotedEther() uint64

Deprecated: Do not use.

func (*ValidatorParticipation) ProtoMessage

func (*ValidatorParticipation) ProtoMessage()

func (*ValidatorParticipation) ProtoReflect

func (x *ValidatorParticipation) ProtoReflect() protoreflect.Message

func (*ValidatorParticipation) Reset

func (x *ValidatorParticipation) Reset()

func (*ValidatorParticipation) String

func (x *ValidatorParticipation) String() string

type ValidatorParticipationResponse

type ValidatorParticipationResponse struct {

	// Epoch which this message is applicable.
	Epoch Epoch `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// Whether or not epoch has been finalized.
	Finalized bool `protobuf:"varint,2,opt,name=finalized,proto3" json:"finalized,omitempty"`
	// The actual validator participation metrics.
	Participation *ValidatorParticipation `protobuf:"bytes,3,opt,name=participation,proto3" json:"participation,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorParticipationResponse) Descriptor deprecated

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

Deprecated: Use ValidatorParticipationResponse.ProtoReflect.Descriptor instead.

func (*ValidatorParticipationResponse) GetEpoch

func (x *ValidatorParticipationResponse) GetEpoch() Epoch

func (*ValidatorParticipationResponse) GetFinalized

func (x *ValidatorParticipationResponse) GetFinalized() bool

func (*ValidatorParticipationResponse) GetParticipation

func (*ValidatorParticipationResponse) ProtoMessage

func (*ValidatorParticipationResponse) ProtoMessage()

func (*ValidatorParticipationResponse) ProtoReflect

func (*ValidatorParticipationResponse) Reset

func (x *ValidatorParticipationResponse) Reset()

func (*ValidatorParticipationResponse) String

type ValidatorPerformanceRequest

type ValidatorPerformanceRequest struct {

	// A list of 48 byte validator public keys.
	//
	// Deprecated: Do not use.
	PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	// A list of validator indices to retrieve performance by their indices.
	Indices []ValidatorIndex `protobuf:"varint,2,rep,packed,name=indices,proto3" json:"indices,omitempty" cast-type:"ValidatorIndex"`
	// contains filtered or unexported fields
}

func (*ValidatorPerformanceRequest) Descriptor deprecated

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

Deprecated: Use ValidatorPerformanceRequest.ProtoReflect.Descriptor instead.

func (*ValidatorPerformanceRequest) GetIndices

func (x *ValidatorPerformanceRequest) GetIndices() []ValidatorIndex

func (*ValidatorPerformanceRequest) GetPublicKeys deprecated

func (x *ValidatorPerformanceRequest) GetPublicKeys() [][]byte

Deprecated: Do not use.

func (*ValidatorPerformanceRequest) ProtoMessage

func (*ValidatorPerformanceRequest) ProtoMessage()

func (*ValidatorPerformanceRequest) ProtoReflect

func (*ValidatorPerformanceRequest) Reset

func (x *ValidatorPerformanceRequest) Reset()

func (*ValidatorPerformanceRequest) String

func (x *ValidatorPerformanceRequest) String() string

type ValidatorPerformanceResponse

type ValidatorPerformanceResponse struct {

	// A list of validator effective balances mapped 1-to-1 with the request's
	// public keys.
	CurrentEffectiveBalances []uint64 `` /* 143-byte string literal not displayed */
	// The slot of when validator's attestation got included in the chain at previous epoch, the slot
	// is mapped 1-to-1 with the request's public keys.
	// Deprecated: This field can no longer be fetched from the state after the Altair hard fork.
	//
	// Deprecated: Do not use.
	InclusionSlots []Slot `` /* 128-byte string literal not displayed */
	// The distance of when validator submitted and got included in the chain, the distance
	// is mapped 1-to-1 with the request's public keys.
	// Deprecated: This field can no longer be fetched from the state after the Altair hard fork.
	//
	// Deprecated: Do not use.
	InclusionDistances []Slot `` /* 140-byte string literal not displayed */
	// Whether the list of validator recently correctly voted for source at previous epoch, the result
	// is mapped 1-to-1 with the request's public keys.
	CorrectlyVotedSource []bool `` /* 131-byte string literal not displayed */
	// Whether the list of validator recently correctly voted for target at previous epoch, the result
	// is mapped 1-to-1 with the request's public keys.
	CorrectlyVotedTarget []bool `` /* 131-byte string literal not displayed */
	// Whether the list of validator recently correctly voted for head at previous epoch, the result
	// is mapped 1-to-1 with the request's public keys.
	CorrectlyVotedHead []bool `protobuf:"varint,6,rep,packed,name=correctly_voted_head,json=correctlyVotedHead,proto3" json:"correctly_voted_head,omitempty"`
	// The balance of validators before epoch transition, the balance is mapped 1-to-1 with the requests'
	// public keys.
	BalancesBeforeEpochTransition []uint64 `` /* 160-byte string literal not displayed */
	// The balance of validators after epoch transition, the balance is mapped 1-to-1 with the requests'
	// public keys.
	BalancesAfterEpochTransition []uint64 `` /* 157-byte string literal not displayed */
	// The total number of validators from the request not found in the chain.
	MissingValidators [][]byte `protobuf:"bytes,9,rep,name=missing_validators,json=missingValidators,proto3" json:"missing_validators,omitempty"`
	// The average active validator balance in the chain.
	AverageActiveValidatorBalance float32 `` /* 155-byte string literal not displayed */
	// The public keys in the order they are in of the response.
	PublicKeys [][]byte `protobuf:"bytes,11,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty" ssz-size:"?,48"`
	// The inactivity score of the validator tracks validator participation. [New in Altair]
	InactivityScores []uint64 `protobuf:"varint,12,rep,packed,name=inactivity_scores,json=inactivityScores,proto3" json:"inactivity_scores,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorPerformanceResponse) Descriptor deprecated

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

Deprecated: Use ValidatorPerformanceResponse.ProtoReflect.Descriptor instead.

func (*ValidatorPerformanceResponse) GetAverageActiveValidatorBalance

func (x *ValidatorPerformanceResponse) GetAverageActiveValidatorBalance() float32

func (*ValidatorPerformanceResponse) GetBalancesAfterEpochTransition

func (x *ValidatorPerformanceResponse) GetBalancesAfterEpochTransition() []uint64

func (*ValidatorPerformanceResponse) GetBalancesBeforeEpochTransition

func (x *ValidatorPerformanceResponse) GetBalancesBeforeEpochTransition() []uint64

func (*ValidatorPerformanceResponse) GetCorrectlyVotedHead

func (x *ValidatorPerformanceResponse) GetCorrectlyVotedHead() []bool

func (*ValidatorPerformanceResponse) GetCorrectlyVotedSource

func (x *ValidatorPerformanceResponse) GetCorrectlyVotedSource() []bool

func (*ValidatorPerformanceResponse) GetCorrectlyVotedTarget

func (x *ValidatorPerformanceResponse) GetCorrectlyVotedTarget() []bool

func (*ValidatorPerformanceResponse) GetCurrentEffectiveBalances

func (x *ValidatorPerformanceResponse) GetCurrentEffectiveBalances() []uint64

func (*ValidatorPerformanceResponse) GetInactivityScores

func (x *ValidatorPerformanceResponse) GetInactivityScores() []uint64

func (*ValidatorPerformanceResponse) GetInclusionDistances deprecated

func (x *ValidatorPerformanceResponse) GetInclusionDistances() []Slot

Deprecated: Do not use.

func (*ValidatorPerformanceResponse) GetInclusionSlots deprecated

func (x *ValidatorPerformanceResponse) GetInclusionSlots() []Slot

Deprecated: Do not use.

func (*ValidatorPerformanceResponse) GetMissingValidators

func (x *ValidatorPerformanceResponse) GetMissingValidators() [][]byte

func (*ValidatorPerformanceResponse) GetPublicKeys

func (x *ValidatorPerformanceResponse) GetPublicKeys() [][]byte

func (*ValidatorPerformanceResponse) ProtoMessage

func (*ValidatorPerformanceResponse) ProtoMessage()

func (*ValidatorPerformanceResponse) ProtoReflect

func (*ValidatorPerformanceResponse) Reset

func (x *ValidatorPerformanceResponse) Reset()

func (*ValidatorPerformanceResponse) String

type ValidatorQueue

type ValidatorQueue struct {

	// The amount of ether in gwei allowed to enter or exit the active
	// validator set.
	ChurnLimit uint64 `protobuf:"varint,1,opt,name=churn_limit,json=churnLimit,proto3" json:"churn_limit,omitempty"`
	// Ordered list of 48 byte public keys awaiting activation. 0th index is the
	// next key to be processed.
	//
	// Deprecated: Do not use.
	ActivationPublicKeys [][]byte `` /* 139-byte string literal not displayed */
	// Ordered list of public keys awaiting exit. 0th index is the next key to
	// be processed.
	//
	// Deprecated: Do not use.
	ExitPublicKeys [][]byte `protobuf:"bytes,3,rep,name=exit_public_keys,json=exitPublicKeys,proto3" json:"exit_public_keys,omitempty" ssz-size:"?,48"`
	// Ordered list of validator indices awaiting activation. 0th item in the list is the
	// next validator index to be processed.
	ActivationValidatorIndices []ValidatorIndex `` /* 176-byte string literal not displayed */
	// Ordered list of validator indices awaiting exit. 0th item in the list is the
	// next validator index to be processed.
	ExitValidatorIndices []ValidatorIndex `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ValidatorQueue) Descriptor deprecated

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

Deprecated: Use ValidatorQueue.ProtoReflect.Descriptor instead.

func (*ValidatorQueue) GetActivationPublicKeys deprecated

func (x *ValidatorQueue) GetActivationPublicKeys() [][]byte

Deprecated: Do not use.

func (*ValidatorQueue) GetActivationValidatorIndices

func (x *ValidatorQueue) GetActivationValidatorIndices() []ValidatorIndex

func (*ValidatorQueue) GetChurnLimit

func (x *ValidatorQueue) GetChurnLimit() uint64

func (*ValidatorQueue) GetExitPublicKeys deprecated

func (x *ValidatorQueue) GetExitPublicKeys() [][]byte

Deprecated: Do not use.

func (*ValidatorQueue) GetExitValidatorIndices

func (x *ValidatorQueue) GetExitValidatorIndices() []ValidatorIndex

func (*ValidatorQueue) ProtoMessage

func (*ValidatorQueue) ProtoMessage()

func (*ValidatorQueue) ProtoReflect

func (x *ValidatorQueue) ProtoReflect() protoreflect.Message

func (*ValidatorQueue) Reset

func (x *ValidatorQueue) Reset()

func (*ValidatorQueue) String

func (x *ValidatorQueue) String() string

type ValidatorStatus

type ValidatorStatus int32
const (
	ValidatorStatus_VALIDATOR_UNKNOWN_STATUS ValidatorStatus = 0
	ValidatorStatus_VALIDATOR_PENDING        ValidatorStatus = 1
	ValidatorStatus_VALIDATOR_ACTIVE         ValidatorStatus = 2
	ValidatorStatus_VALIDATOR_EXITING        ValidatorStatus = 3
	ValidatorStatus_VALIDATOR_SLASHING       ValidatorStatus = 4
	ValidatorStatus_VALIDATOR_EXITED         ValidatorStatus = 5
)

func (ValidatorStatus) Descriptor

func (ValidatorStatus) Enum

func (x ValidatorStatus) Enum() *ValidatorStatus

func (ValidatorStatus) EnumDescriptor deprecated

func (ValidatorStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ValidatorStatus.Descriptor instead.

func (ValidatorStatus) Number

func (ValidatorStatus) String

func (x ValidatorStatus) String() string

func (ValidatorStatus) Type

type ValidatorStatusRequest

type ValidatorStatusRequest struct {

	// A 48 byte validator public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" ssz-size:"48"`
	// contains filtered or unexported fields
}

func (*ValidatorStatusRequest) Descriptor deprecated

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

Deprecated: Use ValidatorStatusRequest.ProtoReflect.Descriptor instead.

func (*ValidatorStatusRequest) GetPublicKey

func (x *ValidatorStatusRequest) GetPublicKey() []byte

func (*ValidatorStatusRequest) ProtoMessage

func (*ValidatorStatusRequest) ProtoMessage()

func (*ValidatorStatusRequest) ProtoReflect

func (x *ValidatorStatusRequest) ProtoReflect() protoreflect.Message

func (*ValidatorStatusRequest) Reset

func (x *ValidatorStatusRequest) Reset()

func (*ValidatorStatusRequest) String

func (x *ValidatorStatusRequest) String() string

type ValidatorStatusResponse

type ValidatorStatusResponse struct {

	// The corresponding validator status.
	Status ValidatorStatus `protobuf:"varint,1,opt,name=status,proto3,enum=photon.consensus.ValidatorStatus" json:"status,omitempty"`
	// The epoch in the chain in which the validator
	// is determined as active.
	ActivationEpoch Epoch `protobuf:"varint,2,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty" cast-type:"Epoch"`
	// The position in the activation queue of pending validators.
	PositionInActivationQueue uint64 `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ValidatorStatusResponse) Descriptor deprecated

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

Deprecated: Use ValidatorStatusResponse.ProtoReflect.Descriptor instead.

func (*ValidatorStatusResponse) GetActivationEpoch

func (x *ValidatorStatusResponse) GetActivationEpoch() Epoch

func (*ValidatorStatusResponse) GetPositionInActivationQueue

func (x *ValidatorStatusResponse) GetPositionInActivationQueue() uint64

func (*ValidatorStatusResponse) GetStatus

func (*ValidatorStatusResponse) ProtoMessage

func (*ValidatorStatusResponse) ProtoMessage()

func (*ValidatorStatusResponse) ProtoReflect

func (x *ValidatorStatusResponse) ProtoReflect() protoreflect.Message

func (*ValidatorStatusResponse) Reset

func (x *ValidatorStatusResponse) Reset()

func (*ValidatorStatusResponse) String

func (x *ValidatorStatusResponse) String() string

type Validators

type Validators struct {

	// Epoch which the state was considered to determine the active validator
	// set. This field is not optional. Zero value epoch indicates the validator
	// set is from the Ethereum proof of stake genesis set.
	Epoch         Epoch                            `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	ValidatorList []*Validators_ValidatorContainer `protobuf:"bytes,2,rep,name=validator_list,json=validatorList,proto3" json:"validator_list,omitempty"`
	// A pagination token returned from a previous call to `GetValidators`
	// that indicates from where listing should continue.
	// This field is optional.
	NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Total count of Validators matching the request filter.
	TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*Validators) Descriptor deprecated

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

Deprecated: Use Validators.ProtoReflect.Descriptor instead.

func (*Validators) GetEpoch

func (x *Validators) GetEpoch() Epoch

func (*Validators) GetNextPageToken

func (x *Validators) GetNextPageToken() string

func (*Validators) GetTotalSize

func (x *Validators) GetTotalSize() int32

func (*Validators) GetValidatorList

func (x *Validators) GetValidatorList() []*Validators_ValidatorContainer

func (*Validators) ProtoMessage

func (*Validators) ProtoMessage()

func (*Validators) ProtoReflect

func (x *Validators) ProtoReflect() protoreflect.Message

func (*Validators) Reset

func (x *Validators) Reset()

func (*Validators) String

func (x *Validators) String() string

type Validators_ValidatorContainer

type Validators_ValidatorContainer struct {
	Index     ValidatorIndex `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" cast-type:"ValidatorIndex"`
	Validator *Validator     `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

func (*Validators_ValidatorContainer) Descriptor deprecated

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

Deprecated: Use Validators_ValidatorContainer.ProtoReflect.Descriptor instead.

func (*Validators_ValidatorContainer) GetIndex

func (*Validators_ValidatorContainer) GetValidator

func (x *Validators_ValidatorContainer) GetValidator() *Validator

func (*Validators_ValidatorContainer) ProtoMessage

func (*Validators_ValidatorContainer) ProtoMessage()

func (*Validators_ValidatorContainer) ProtoReflect

func (*Validators_ValidatorContainer) Reset

func (x *Validators_ValidatorContainer) Reset()

func (*Validators_ValidatorContainer) String

type Version

type Version struct {

	// A string that uniquely identifies the node and its version.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// Additional metadata that the node would like to provide. This field may
	// be used to list any meaningful data to the client.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Information about the node version.

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetMetadata

func (x *Version) GetMetadata() string

func (*Version) GetVersion

func (x *Version) GetVersion() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

func (x *Version) ProtoReflect() protoreflect.Message

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type WeakSubjectivityCheckpoint

type WeakSubjectivityCheckpoint struct {

	// The block root of weak subjectivity checkpoint.
	BlockRoot []byte `protobuf:"bytes,1,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"`
	// The state root of weak subjectivity checkpoint.
	StateRoot []byte `protobuf:"bytes,2,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	// The epoch of weak subjectivity checkpoint.
	Epoch Epoch `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty" cast-type:"Epoch"`
	// contains filtered or unexported fields
}

func (*WeakSubjectivityCheckpoint) Descriptor deprecated

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

Deprecated: Use WeakSubjectivityCheckpoint.ProtoReflect.Descriptor instead.

func (*WeakSubjectivityCheckpoint) GetBlockRoot

func (x *WeakSubjectivityCheckpoint) GetBlockRoot() []byte

func (*WeakSubjectivityCheckpoint) GetEpoch

func (x *WeakSubjectivityCheckpoint) GetEpoch() Epoch

func (*WeakSubjectivityCheckpoint) GetStateRoot

func (x *WeakSubjectivityCheckpoint) GetStateRoot() []byte

func (*WeakSubjectivityCheckpoint) ProtoMessage

func (*WeakSubjectivityCheckpoint) ProtoMessage()

func (*WeakSubjectivityCheckpoint) ProtoReflect

func (*WeakSubjectivityCheckpoint) Reset

func (x *WeakSubjectivityCheckpoint) Reset()

func (*WeakSubjectivityCheckpoint) String

func (x *WeakSubjectivityCheckpoint) String() string

Directories

Path Synopsis
Package pbvc is a reverse proxy.
Package pbvc is a reverse proxy.

Jump to

Keyboard shortcuts

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