Documentation
¶
Index ¶
- type Config
- type Server
- func (s *Server) DeleteFeeRecipientByPubkey(ctx context.Context, req *zondpbservice.PubkeyRequest) (*empty.Empty, error)
- func (s *Server) DeleteGasLimit(ctx context.Context, req *zondpbservice.DeleteGasLimitRequest) (*empty.Empty, error)
- func (s *Server) DeleteKeystores(ctx context.Context, req *zondpbservice.DeleteKeystoresRequest) (*zondpbservice.DeleteKeystoresResponse, error)
- func (s *Server) ExportSlashingProtection(ctx context.Context, _ *empty.Empty) (*pb.ExportSlashingProtectionResponse, error)
- func (s *Server) GetGasLimit(_ context.Context, req *zondpbservice.PubkeyRequest) (*zondpbservice.GetGasLimitResponse, error)
- func (s *Server) ImportKeystores(ctx context.Context, req *zondpbservice.ImportKeystoresRequest) (*zondpbservice.ImportKeystoresResponse, error)
- func (s *Server) ImportSlashingProtection(ctx context.Context, req *pb.ImportSlashingProtectionRequest) (*emptypb.Empty, error)
- func (s *Server) JWTInterceptor() grpc.UnaryServerInterceptor
- func (s *Server) ListFeeRecipientByPubkey(ctx context.Context, req *zondpbservice.PubkeyRequest) (*zondpbservice.GetFeeRecipientByPubkeyResponse, error)
- func (s *Server) ListKeystores(ctx context.Context, _ *empty.Empty) (*zondpbservice.ListKeystoresResponse, error)
- func (s *Server) SetFeeRecipientByPubkey(ctx context.Context, req *zondpbservice.SetFeeRecipientByPubkeyRequest) (*empty.Empty, error)
- func (s *Server) SetGasLimit(ctx context.Context, req *zondpbservice.SetGasLimitRequest) (*empty.Empty, error)
- func (s *Server) SetVoluntaryExit(ctx context.Context, req *zondpbservice.SetVoluntaryExitRequest) (*zondpbservice.SetVoluntaryExitResponse, error)
- func (s *Server) Start()
- func (s *Server) Status() error
- func (s *Server) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ValidatorGatewayHost string
ValidatorGatewayPort int
ValidatorMonitoringHost string
ValidatorMonitoringPort int
BeaconClientEndpoint string
ClientMaxCallRecvMsgSize int
ClientGrpcRetries uint
ClientGrpcRetryDelay time.Duration
ClientGrpcHeaders []string
ClientWithCert string
Host string
Port string
CertFlag string
KeyFlag string
ValDB db.Database
WalletDir string
ValidatorService *client.ValidatorService
SyncChecker client.SyncChecker
GenesisFetcher client.GenesisFetcher
WalletInitializedFeed *event.Feed
NodeGatewayEndpoint string
Wallet *wallet.Wallet
}
Config options for the gRPC server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server defining a gRPC server for the remote signer API.
func (*Server) DeleteFeeRecipientByPubkey ¶
func (s *Server) DeleteFeeRecipientByPubkey(ctx context.Context, req *zondpbservice.PubkeyRequest) (*empty.Empty, error)
DeleteFeeRecipientByPubkey updates the zond address mapped to the public key to the default fee recipient listed
func (*Server) DeleteGasLimit ¶
func (s *Server) DeleteGasLimit(ctx context.Context, req *zondpbservice.DeleteGasLimitRequest) (*empty.Empty, error)
func (*Server) DeleteKeystores ¶
func (s *Server) DeleteKeystores( ctx context.Context, req *zondpbservice.DeleteKeystoresRequest, ) (*zondpbservice.DeleteKeystoresResponse, error)
DeleteKeystores allows for deleting specified public keys from Qrysm.
func (*Server) ExportSlashingProtection ¶
func (s *Server) ExportSlashingProtection(ctx context.Context, _ *empty.Empty) (*pb.ExportSlashingProtectionResponse, error)
ExportSlashingProtection handles the rpc call returning the json slashing history. The format of the export follows the EIP-3076 standard which makes it easy to migrate machines or Zond consensus clients.
Steps:
- Call the function which exports the data from the validator's db into an EIP standard slashing protection format.
- Format and send JSON in the response.
DEPRECATED: Qrysm Web UI and associated endpoints will be fully removed in a future hard fork. Use the Keymanager APIs if an API is required.
func (*Server) GetGasLimit ¶
func (s *Server) GetGasLimit(_ context.Context, req *zondpbservice.PubkeyRequest) (*zondpbservice.GetGasLimitResponse, error)
func (*Server) ImportKeystores ¶
func (s *Server) ImportKeystores( ctx context.Context, req *zondpbservice.ImportKeystoresRequest, ) (*zondpbservice.ImportKeystoresResponse, error)
ImportKeystores allows for importing keystores into Qrysm with their slashing protection history.
func (*Server) ImportSlashingProtection ¶
func (s *Server) ImportSlashingProtection(ctx context.Context, req *pb.ImportSlashingProtectionRequest) (*emptypb.Empty, error)
ImportSlashingProtection reads an input slashing protection EIP-3076 standard JSON string and inserts the data into validator DB.
Read the JSON string passed through rpc, then call the func which actually imports the data from the JSON file into our database. Use the Keymanager APIs if an API is required. DEPRECATED: Qrysm Web UI and associated endpoints will be fully removed in a future hard fork.
func (*Server) JWTInterceptor ¶
func (s *Server) JWTInterceptor() grpc.UnaryServerInterceptor
JWTInterceptor is a gRPC unary interceptor to authorize incoming requests.
func (*Server) ListFeeRecipientByPubkey ¶
func (s *Server) ListFeeRecipientByPubkey(ctx context.Context, req *zondpbservice.PubkeyRequest) (*zondpbservice.GetFeeRecipientByPubkeyResponse, error)
ListFeeRecipientByPubkey returns the public key to zond address mapping object to the end user.
func (*Server) ListKeystores ¶
func (s *Server) ListKeystores( ctx context.Context, _ *empty.Empty, ) (*zondpbservice.ListKeystoresResponse, error)
ListKeystores implements the standard validator key management API.
func (*Server) SetFeeRecipientByPubkey ¶
func (s *Server) SetFeeRecipientByPubkey(ctx context.Context, req *zondpbservice.SetFeeRecipientByPubkeyRequest) (*empty.Empty, error)
SetFeeRecipientByPubkey updates the zond address mapped to the public key.
func (*Server) SetGasLimit ¶
func (s *Server) SetGasLimit(ctx context.Context, req *zondpbservice.SetGasLimitRequest) (*empty.Empty, error)
SetGasLimit updates GasLimt of the public key.
func (*Server) SetVoluntaryExit ¶
func (s *Server) SetVoluntaryExit(ctx context.Context, req *zondpbservice.SetVoluntaryExitRequest) (*zondpbservice.SetVoluntaryExitResponse, error)
SetVoluntaryExit creates a signed voluntary exit message and returns a VoluntaryExit object.