ethereum_slashing

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-3.0 Imports: 13 Imported by: 34

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_slashing_slashing_proto protoreflect.FileDescriptor

Functions

func RegisterSlasherServer

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

Types

type AttestationHistory added in v0.3.2

type AttestationHistory struct {

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

func (*AttestationHistory) Descriptor deprecated added in v0.3.2

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

Deprecated: Use AttestationHistory.ProtoReflect.Descriptor instead.

func (*AttestationHistory) GetLatestEpochWritten deprecated added in v0.3.2

Deprecated: Do not use.

func (*AttestationHistory) GetTargetToSource deprecated added in v0.3.2

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

Deprecated: Do not use.

func (*AttestationHistory) ProtoMessage added in v0.3.2

func (*AttestationHistory) ProtoMessage()

func (*AttestationHistory) ProtoReflect added in v1.3.10

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

func (*AttestationHistory) Reset added in v0.3.2

func (x *AttestationHistory) Reset()

func (*AttestationHistory) String added in v0.3.2

func (x *AttestationHistory) String() string

type AttesterSlashingResponse

type AttesterSlashingResponse struct {

	// Deprecated: Do not use.
	AttesterSlashing []*v1alpha1.AttesterSlashing `protobuf:"bytes,1,rep,name=attester_slashing,json=attesterSlashing,proto3" json:"attester_slashing,omitempty"`
	// contains filtered or unexported fields
}

func (*AttesterSlashingResponse) Descriptor deprecated

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

Deprecated: Use AttesterSlashingResponse.ProtoReflect.Descriptor instead.

func (*AttesterSlashingResponse) GetAttesterSlashing deprecated

func (x *AttesterSlashingResponse) GetAttesterSlashing() []*v1alpha1.AttesterSlashing

Deprecated: Do not use.

func (*AttesterSlashingResponse) ProtoMessage

func (*AttesterSlashingResponse) ProtoMessage()

func (*AttesterSlashingResponse) ProtoReflect added in v1.3.10

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

func (*AttesterSlashingResponse) Reset

func (x *AttesterSlashingResponse) Reset()

func (*AttesterSlashingResponse) String

func (x *AttesterSlashingResponse) String() string

type HighestAttestation added in v1.0.0

type HighestAttestation struct {

	// Deprecated: Do not use.
	ValidatorId uint64 `protobuf:"varint,1,opt,name=validator_id,json=validatorId,proto3" json:"validator_id,omitempty"`
	// Deprecated: Do not use.
	HighestSourceEpoch github_com_prysmaticlabs_eth2_types.Epoch `` /* 172-byte string literal not displayed */
	HighestTargetEpoch github_com_prysmaticlabs_eth2_types.Epoch `` /* 172-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HighestAttestation) Descriptor deprecated added in v1.0.0

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

Deprecated: Use HighestAttestation.ProtoReflect.Descriptor instead.

func (*HighestAttestation) GetHighestSourceEpoch deprecated added in v1.0.0

Deprecated: Do not use.

func (*HighestAttestation) GetHighestTargetEpoch added in v1.0.0

func (*HighestAttestation) GetValidatorId deprecated added in v1.0.0

func (x *HighestAttestation) GetValidatorId() uint64

Deprecated: Do not use.

func (*HighestAttestation) ProtoMessage added in v1.0.0

func (*HighestAttestation) ProtoMessage()

func (*HighestAttestation) ProtoReflect added in v1.3.10

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

func (*HighestAttestation) Reset added in v1.0.0

func (x *HighestAttestation) Reset()

func (*HighestAttestation) String added in v1.0.0

func (x *HighestAttestation) String() string

type HighestAttestationRequest added in v1.0.0

type HighestAttestationRequest struct {

	// Deprecated: Do not use.
	ValidatorIds []uint64 `protobuf:"varint,1,rep,packed,name=validator_ids,json=validatorIds,proto3" json:"validator_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*HighestAttestationRequest) Descriptor deprecated added in v1.0.0

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

Deprecated: Use HighestAttestationRequest.ProtoReflect.Descriptor instead.

func (*HighestAttestationRequest) GetValidatorIds deprecated added in v1.0.0

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

Deprecated: Do not use.

func (*HighestAttestationRequest) ProtoMessage added in v1.0.0

func (*HighestAttestationRequest) ProtoMessage()

func (*HighestAttestationRequest) ProtoReflect added in v1.3.10

func (*HighestAttestationRequest) Reset added in v1.0.0

func (x *HighestAttestationRequest) Reset()

func (*HighestAttestationRequest) String added in v1.0.0

func (x *HighestAttestationRequest) String() string

type HighestAttestationResponse added in v1.0.0

type HighestAttestationResponse struct {

	// Deprecated: Do not use.
	Attestations []*HighestAttestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations,omitempty"`
	// contains filtered or unexported fields
}

func (*HighestAttestationResponse) Descriptor deprecated added in v1.0.0

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

Deprecated: Use HighestAttestationResponse.ProtoReflect.Descriptor instead.

func (*HighestAttestationResponse) GetAttestations deprecated added in v1.0.0

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

Deprecated: Do not use.

func (*HighestAttestationResponse) ProtoMessage added in v1.0.0

func (*HighestAttestationResponse) ProtoMessage()

func (*HighestAttestationResponse) ProtoReflect added in v1.3.10

func (*HighestAttestationResponse) Reset added in v1.0.0

func (x *HighestAttestationResponse) Reset()

func (*HighestAttestationResponse) String added in v1.0.0

func (x *HighestAttestationResponse) String() string

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 github_com_prysmaticlabs_eth2_types.Epoch `` /* 172-byte string literal not displayed */
	// contains filtered or unexported fields
}

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() github_com_prysmaticlabs_eth2_types.Epoch

Deprecated: Do not use.

func (*ProposalHistory) ProtoMessage

func (*ProposalHistory) ProtoMessage()

func (*ProposalHistory) ProtoReflect added in v1.3.10

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

func (*ProposalHistory) Reset

func (x *ProposalHistory) Reset()

func (*ProposalHistory) String

func (x *ProposalHistory) String() string

type ProposerSlashingResponse

type ProposerSlashingResponse struct {

	// Deprecated: Do not use.
	ProposerSlashing []*v1alpha1.ProposerSlashing `protobuf:"bytes,1,rep,name=proposer_slashing,json=proposerSlashing,proto3" json:"proposer_slashing,omitempty"`
	// contains filtered or unexported fields
}

func (*ProposerSlashingResponse) Descriptor deprecated

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

Deprecated: Use ProposerSlashingResponse.ProtoReflect.Descriptor instead.

func (*ProposerSlashingResponse) GetProposerSlashing deprecated

func (x *ProposerSlashingResponse) GetProposerSlashing() []*v1alpha1.ProposerSlashing

Deprecated: Do not use.

func (*ProposerSlashingResponse) ProtoMessage

func (*ProposerSlashingResponse) ProtoMessage()

func (*ProposerSlashingResponse) ProtoReflect added in v1.3.10

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

func (*ProposerSlashingResponse) Reset

func (x *ProposerSlashingResponse) Reset()

func (*ProposerSlashingResponse) String

func (x *ProposerSlashingResponse) String() string

type Slashable added in v1.0.0

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 added in v1.0.0

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

Deprecated: Use Slashable.ProtoReflect.Descriptor instead.

func (*Slashable) GetSlashable deprecated added in v1.0.0

func (x *Slashable) GetSlashable() bool

Deprecated: Do not use.

func (*Slashable) ProtoMessage added in v1.0.0

func (*Slashable) ProtoMessage()

func (*Slashable) ProtoReflect added in v1.3.10

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

func (*Slashable) Reset added in v1.0.0

func (x *Slashable) Reset()

func (*Slashable) String added in v1.0.0

func (x *Slashable) String() string

type SlasherClient

type SlasherClient interface {
	// Deprecated: Do not use.
	IsSlashableAttestation(ctx context.Context, in *v1alpha1.IndexedAttestation, opts ...grpc.CallOption) (*AttesterSlashingResponse, error)
	// Deprecated: Do not use.
	IsSlashableBlock(ctx context.Context, in *v1alpha1.SignedBeaconBlockHeader, opts ...grpc.CallOption) (*ProposerSlashingResponse, error)
	// Deprecated: Do not use.
	IsSlashableAttestationNoUpdate(ctx context.Context, in *v1alpha1.IndexedAttestation, opts ...grpc.CallOption) (*Slashable, error)
	// Deprecated: Do not use.
	IsSlashableBlockNoUpdate(ctx context.Context, in *v1alpha1.BeaconBlockHeader, opts ...grpc.CallOption) (*Slashable, error)
	// Deprecated: Do not use.
	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 {
	// Deprecated: Do not use.
	IsSlashableAttestation(context.Context, *v1alpha1.IndexedAttestation) (*AttesterSlashingResponse, error)
	// Deprecated: Do not use.
	IsSlashableBlock(context.Context, *v1alpha1.SignedBeaconBlockHeader) (*ProposerSlashingResponse, error)
	// Deprecated: Do not use.
	IsSlashableAttestationNoUpdate(context.Context, *v1alpha1.IndexedAttestation) (*Slashable, error)
	// Deprecated: Do not use.
	IsSlashableBlockNoUpdate(context.Context, *v1alpha1.BeaconBlockHeader) (*Slashable, error)
	// Deprecated: Do not use.
	HighestAttestations(context.Context, *HighestAttestationRequest) (*HighestAttestationResponse, error)
}

SlasherServer is the server API for Slasher service.

type UnimplementedSlasherServer

type UnimplementedSlasherServer struct {
}

UnimplementedSlasherServer can be embedded to have forward compatible implementations.

func (*UnimplementedSlasherServer) HighestAttestations added in v1.0.0

func (*UnimplementedSlasherServer) IsSlashableAttestation

func (*UnimplementedSlasherServer) IsSlashableAttestationNoUpdate added in v1.0.0

func (*UnimplementedSlasherServer) IsSlashableAttestationNoUpdate(context.Context, *v1alpha1.IndexedAttestation) (*Slashable, error)

func (*UnimplementedSlasherServer) IsSlashableBlockNoUpdate added in v1.0.0

Jump to

Keyboard shortcuts

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