Documentation ¶
Index ¶
- func Wrap(db iface.Database) (iface.Database, error)
- type Exporter
- func (e Exporter) ArchivedActiveValidatorChanges(ctx context.Context, epoch uint64) (*ethereum_beacon_p2p_v1.ArchivedActiveSetChanges, error)
- func (e Exporter) ArchivedBalances(ctx context.Context, epoch uint64) ([]uint64, error)
- func (e Exporter) ArchivedCommitteeInfo(ctx context.Context, epoch uint64) (*ethereum_beacon_p2p_v1.ArchivedCommitteeInfo, error)
- func (e Exporter) ArchivedPointRoot(ctx context.Context, index uint64) [32]byte
- func (e Exporter) ArchivedPointState(ctx context.Context, index uint64) (*state.BeaconState, error)
- func (e Exporter) ArchivedValidatorParticipation(ctx context.Context, epoch uint64) (*eth.ValidatorParticipation, error)
- func (e Exporter) Attestations(ctx context.Context, f *filters.QueryFilter) ([]*eth.Attestation, error)
- func (e Exporter) AttestationsByDataRoot(ctx context.Context, attDataRoot [32]byte) ([]*eth.Attestation, error)
- func (e Exporter) AttesterSlashing(ctx context.Context, slashingRoot [32]byte) (*eth.AttesterSlashing, error)
- func (e Exporter) Backup(ctx context.Context) error
- func (e Exporter) Block(ctx context.Context, blockRoot [32]byte) (*eth.SignedBeaconBlock, error)
- func (e Exporter) BlockRoots(ctx context.Context, f *filters.QueryFilter) ([][32]byte, error)
- func (e Exporter) Blocks(ctx context.Context, f *filters.QueryFilter) ([]*eth.SignedBeaconBlock, error)
- func (e Exporter) ClearDB() error
- func (e Exporter) Close() error
- func (e Exporter) DatabasePath() string
- func (e Exporter) DeleteAttestation(ctx context.Context, attDataRoot [32]byte) error
- func (e Exporter) DeleteAttestations(ctx context.Context, attDataRoots [][32]byte) error
- func (e Exporter) DeleteAttesterSlashing(ctx context.Context, slashingRoot [32]byte) error
- func (e Exporter) DeleteBlock(ctx context.Context, blockRoot [32]byte) error
- func (e Exporter) DeleteBlocks(ctx context.Context, blockRoots [][32]byte) error
- func (e Exporter) DeleteProposerSlashing(ctx context.Context, slashingRoot [32]byte) error
- func (e Exporter) DeleteState(ctx context.Context, blockRoot [32]byte) error
- func (e Exporter) DeleteStates(ctx context.Context, blockRoots [][32]byte) error
- func (e Exporter) DeleteValidatorIndex(ctx context.Context, publicKey []byte) error
- func (e Exporter) DeleteVoluntaryExit(ctx context.Context, exitRoot [32]byte) error
- func (e Exporter) DepositContractAddress(ctx context.Context) ([]byte, error)
- func (e Exporter) FinalizedCheckpoint(ctx context.Context) (*eth.Checkpoint, error)
- func (e Exporter) GenesisBlock(ctx context.Context) (*ethpb.SignedBeaconBlock, error)
- func (e Exporter) GenesisState(ctx context.Context) (*state.BeaconState, error)
- func (e Exporter) HasArchivedPoint(ctx context.Context, index uint64) bool
- func (e Exporter) HasAttestation(ctx context.Context, attDataRoot [32]byte) bool
- func (e Exporter) HasAttesterSlashing(ctx context.Context, slashingRoot [32]byte) bool
- func (e Exporter) HasBlock(ctx context.Context, blockRoot [32]byte) bool
- func (e Exporter) HasProposerSlashing(ctx context.Context, slashingRoot [32]byte) bool
- func (e Exporter) HasState(ctx context.Context, blockRoot [32]byte) bool
- func (e Exporter) HasStateSummary(ctx context.Context, blockRoot [32]byte) bool
- func (e Exporter) HasValidatorIndex(ctx context.Context, publicKey []byte) bool
- func (e Exporter) HasVoluntaryExit(ctx context.Context, exitRoot [32]byte) bool
- func (e Exporter) HeadBlock(ctx context.Context) (*eth.SignedBeaconBlock, error)
- func (e Exporter) HeadState(ctx context.Context) (*state.BeaconState, error)
- func (e Exporter) IsFinalizedBlock(ctx context.Context, blockRoot [32]byte) bool
- func (e Exporter) JustifiedCheckpoint(ctx context.Context) (*eth.Checkpoint, error)
- func (e Exporter) PowchainData(ctx context.Context) (*db.ETH1ChainData, error)
- func (e Exporter) ProposerSlashing(ctx context.Context, slashingRoot [32]byte) (*eth.ProposerSlashing, error)
- func (e Exporter) SaveArchivedActiveValidatorChanges(ctx context.Context, epoch uint64, ...) error
- func (e Exporter) SaveArchivedBalances(ctx context.Context, epoch uint64, balances []uint64) error
- func (e Exporter) SaveArchivedCommitteeInfo(ctx context.Context, epoch uint64, ...) error
- func (e Exporter) SaveArchivedPointRoot(ctx context.Context, blockRoot [32]byte, index uint64) error
- func (e Exporter) SaveArchivedPointState(ctx context.Context, state *state.BeaconState, index uint64) error
- func (e Exporter) SaveArchivedValidatorParticipation(ctx context.Context, epoch uint64, part *eth.ValidatorParticipation) error
- func (e Exporter) SaveAttestation(ctx context.Context, att *eth.Attestation) error
- func (e Exporter) SaveAttestations(ctx context.Context, atts []*eth.Attestation) error
- func (e Exporter) SaveAttesterSlashing(ctx context.Context, slashing *eth.AttesterSlashing) error
- func (e Exporter) SaveBlock(ctx context.Context, block *eth.SignedBeaconBlock) error
- func (e Exporter) SaveBlocks(ctx context.Context, blocks []*eth.SignedBeaconBlock) error
- func (e Exporter) SaveDepositContractAddress(ctx context.Context, addr common.Address) error
- func (e Exporter) SaveFinalizedCheckpoint(ctx context.Context, checkpoint *eth.Checkpoint) error
- func (e Exporter) SaveGenesisBlockRoot(ctx context.Context, blockRoot [32]byte) error
- func (e Exporter) SaveHeadBlockRoot(ctx context.Context, blockRoot [32]byte) error
- func (e Exporter) SaveJustifiedCheckpoint(ctx context.Context, checkpoint *eth.Checkpoint) error
- func (e Exporter) SavePowchainData(ctx context.Context, data *db.ETH1ChainData) error
- func (e Exporter) SaveProposerSlashing(ctx context.Context, slashing *eth.ProposerSlashing) error
- func (e Exporter) SaveState(ctx context.Context, state *state.BeaconState, blockRoot [32]byte) error
- func (e Exporter) SaveStateSummary(ctx context.Context, summary *pb.StateSummary) error
- func (e Exporter) SaveStates(ctx context.Context, states []*state.BeaconState, blockRoots [][32]byte) error
- func (e Exporter) SaveValidatorIndex(ctx context.Context, publicKey []byte, validatorIdx uint64) error
- func (e Exporter) SaveValidatorIndices(ctx context.Context, publicKeys [][48]byte, validatorIndices []uint64) error
- func (e Exporter) SaveVoluntaryExit(ctx context.Context, exit *eth.VoluntaryExit) error
- func (e Exporter) State(ctx context.Context, blockRoot [32]byte) (*state.BeaconState, error)
- func (e Exporter) StateSummary(ctx context.Context, blockRoot [32]byte) (*pb.StateSummary, error)
- func (e Exporter) ValidatorIndex(ctx context.Context, publicKey []byte) (uint64, bool, error)
- func (e Exporter) VoluntaryExit(ctx context.Context, exitRoot [32]byte) (*eth.VoluntaryExit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter wraps a database interface and exports certain objects to kafka topics.
func (Exporter) ArchivedActiveValidatorChanges ¶
func (e Exporter) ArchivedActiveValidatorChanges(ctx context.Context, epoch uint64) (*ethereum_beacon_p2p_v1.ArchivedActiveSetChanges, error)
ArchivedActiveValidatorChanges -- passthrough.
func (Exporter) ArchivedBalances ¶
ArchivedBalances -- passthrough.
func (Exporter) ArchivedCommitteeInfo ¶
func (e Exporter) ArchivedCommitteeInfo(ctx context.Context, epoch uint64) (*ethereum_beacon_p2p_v1.ArchivedCommitteeInfo, error)
ArchivedCommitteeInfo -- passthrough.
func (Exporter) ArchivedPointRoot ¶ added in v0.3.2
ArchivedPointRoot -- passthrough
func (Exporter) ArchivedPointState ¶ added in v0.3.2
ArchivedPointState -- passthrough
func (Exporter) ArchivedValidatorParticipation ¶
func (e Exporter) ArchivedValidatorParticipation(ctx context.Context, epoch uint64) (*eth.ValidatorParticipation, error)
ArchivedValidatorParticipation -- passthrough.
func (Exporter) Attestations ¶
func (e Exporter) Attestations(ctx context.Context, f *filters.QueryFilter) ([]*eth.Attestation, error)
Attestations -- passthrough.
func (Exporter) AttestationsByDataRoot ¶
func (e Exporter) AttestationsByDataRoot(ctx context.Context, attDataRoot [32]byte) ([]*eth.Attestation, error)
AttestationsByDataRoot -- passthrough.
func (Exporter) AttesterSlashing ¶
func (e Exporter) AttesterSlashing(ctx context.Context, slashingRoot [32]byte) (*eth.AttesterSlashing, error)
AttesterSlashing -- passthrough.
func (Exporter) BlockRoots ¶
BlockRoots -- passthrough.
func (Exporter) Blocks ¶
func (e Exporter) Blocks(ctx context.Context, f *filters.QueryFilter) ([]*eth.SignedBeaconBlock, error)
Blocks -- passthrough.
func (Exporter) DeleteAttestation ¶
DeleteAttestation -- passthrough.
func (Exporter) DeleteAttestations ¶
DeleteAttestations -- passthrough.
func (Exporter) DeleteAttesterSlashing ¶
DeleteAttesterSlashing -- passthrough.
func (Exporter) DeleteBlock ¶
DeleteBlock -- passthrough.
func (Exporter) DeleteBlocks ¶
DeleteBlocks -- passthrough.
func (Exporter) DeleteProposerSlashing ¶
DeleteProposerSlashing -- passthrough.
func (Exporter) DeleteState ¶
DeleteState -- passthrough.
func (Exporter) DeleteStates ¶
DeleteStates -- passthrough.
func (Exporter) DeleteValidatorIndex ¶
DeleteValidatorIndex -- passthrough.
func (Exporter) DeleteVoluntaryExit ¶
DeleteVoluntaryExit -- passthrough.
func (Exporter) DepositContractAddress ¶
DepositContractAddress -- passthrough.
func (Exporter) FinalizedCheckpoint ¶
FinalizedCheckpoint -- passthrough.
func (Exporter) GenesisBlock ¶
GenesisBlock -- passthrough.
func (Exporter) GenesisState ¶
GenesisState -- passthrough.
func (Exporter) HasArchivedPoint ¶ added in v0.3.2
HasArchivedPoint -- passthrough
func (Exporter) HasAttestation ¶
HasAttestation -- passthrough.
func (Exporter) HasAttesterSlashing ¶
HasAttesterSlashing -- passthrough.
func (Exporter) HasProposerSlashing ¶
HasProposerSlashing -- passthrough.
func (Exporter) HasStateSummary ¶ added in v0.3.2
HasStateSummary -- passthrough.
func (Exporter) HasValidatorIndex ¶
HasValidatorIndex -- passthrough.
func (Exporter) HasVoluntaryExit ¶
HasVoluntaryExit -- passthrough.
func (Exporter) IsFinalizedBlock ¶
IsFinalizedBlock -- passthrough.
func (Exporter) JustifiedCheckpoint ¶
JustifiedCheckpoint -- passthrough.
func (Exporter) PowchainData ¶
PowchainData -- passthrough
func (Exporter) ProposerSlashing ¶
func (e Exporter) ProposerSlashing(ctx context.Context, slashingRoot [32]byte) (*eth.ProposerSlashing, error)
ProposerSlashing -- passthrough.
func (Exporter) SaveArchivedActiveValidatorChanges ¶
func (e Exporter) SaveArchivedActiveValidatorChanges(ctx context.Context, epoch uint64, changes *ethereum_beacon_p2p_v1.ArchivedActiveSetChanges) error
SaveArchivedActiveValidatorChanges -- passthrough.
func (Exporter) SaveArchivedBalances ¶
SaveArchivedBalances -- passthrough.
func (Exporter) SaveArchivedCommitteeInfo ¶
func (e Exporter) SaveArchivedCommitteeInfo(ctx context.Context, epoch uint64, info *ethereum_beacon_p2p_v1.ArchivedCommitteeInfo) error
SaveArchivedCommitteeInfo -- passthrough.
func (Exporter) SaveArchivedPointRoot ¶ added in v0.3.2
func (e Exporter) SaveArchivedPointRoot(ctx context.Context, blockRoot [32]byte, index uint64) error
SaveArchivedPointRoot -- passthrough
func (Exporter) SaveArchivedPointState ¶ added in v0.3.2
func (e Exporter) SaveArchivedPointState(ctx context.Context, state *state.BeaconState, index uint64) error
SaveArchivedPointState -- passthrough
func (Exporter) SaveArchivedValidatorParticipation ¶
func (e Exporter) SaveArchivedValidatorParticipation(ctx context.Context, epoch uint64, part *eth.ValidatorParticipation) error
SaveArchivedValidatorParticipation -- passthrough.
func (Exporter) SaveAttestation ¶
SaveAttestation publishes to the kafka topic for attestations.
func (Exporter) SaveAttestations ¶
SaveAttestations publishes to the kafka topic for beacon attestations.
func (Exporter) SaveAttesterSlashing ¶
SaveAttesterSlashing -- passthrough.
func (Exporter) SaveBlocks ¶
SaveBlocks publishes to the kafka topic for beacon blocks.
func (Exporter) SaveDepositContractAddress ¶
SaveDepositContractAddress -- passthrough.
func (Exporter) SaveFinalizedCheckpoint ¶
SaveFinalizedCheckpoint -- passthrough.
func (Exporter) SaveGenesisBlockRoot ¶
SaveGenesisBlockRoot -- passthrough.
func (Exporter) SaveHeadBlockRoot ¶
SaveHeadBlockRoot -- passthrough.
func (Exporter) SaveJustifiedCheckpoint ¶
SaveJustifiedCheckpoint -- passthrough.
func (Exporter) SavePowchainData ¶
SavePowchainData -- passthrough
func (Exporter) SaveProposerSlashing ¶
SaveProposerSlashing -- passthrough.
func (Exporter) SaveState ¶
func (e Exporter) SaveState(ctx context.Context, state *state.BeaconState, blockRoot [32]byte) error
SaveState -- passthrough.
func (Exporter) SaveStateSummary ¶ added in v0.3.2
SaveStateSummary -- passthrough.
func (Exporter) SaveStates ¶ added in v0.3.2
func (e Exporter) SaveStates(ctx context.Context, states []*state.BeaconState, blockRoots [][32]byte) error
SaveStates -- passthrough.
func (Exporter) SaveValidatorIndex ¶
func (e Exporter) SaveValidatorIndex(ctx context.Context, publicKey []byte, validatorIdx uint64) error
SaveValidatorIndex -- passthrough.
func (Exporter) SaveValidatorIndices ¶ added in v0.3.2
func (e Exporter) SaveValidatorIndices(ctx context.Context, publicKeys [][48]byte, validatorIndices []uint64) error
SaveValidatorIndices -- passthrough.
func (Exporter) SaveVoluntaryExit ¶
SaveVoluntaryExit -- passthrough.
func (Exporter) StateSummary ¶ added in v0.3.2
StateSummary -- passthrough.
func (Exporter) ValidatorIndex ¶
ValidatorIndex -- passthrough.
func (Exporter) VoluntaryExit ¶
VoluntaryExit -- passthrough.