mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-28 14:17:17 +00:00
31 lines
1.2 KiB
Go
31 lines
1.2 KiB
Go
|
package beaconv1
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"errors"
|
||
|
|
||
|
ptypes "github.com/gogo/protobuf/types"
|
||
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1"
|
||
|
)
|
||
|
|
||
|
// GetGenesis retrieves details of the chain's genesis which can be used to identify chain.
|
||
|
func (bs *Server) GetGenesis(ctx context.Context, _ *ptypes.Empty) (*ethpb.GenesisResponse, error) {
|
||
|
return nil, errors.New("unimplemented")
|
||
|
}
|
||
|
|
||
|
// GetStateRoot calculates HashTreeRoot for state with given 'stateId'. If stateId is root, same value will be returned.
|
||
|
func (bs *Server) GetStateRoot(ctx context.Context, req *ethpb.StateRequest) (*ethpb.StateRootResponse, error) {
|
||
|
return nil, errors.New("unimplemented")
|
||
|
}
|
||
|
|
||
|
// GetStateFork returns Fork object for state with given 'stateId'.
|
||
|
func (bs *Server) GetStateFork(ctx context.Context, req *ethpb.StateRequest) (*ethpb.StateForkResponse, error) {
|
||
|
return nil, errors.New("unimplemented")
|
||
|
}
|
||
|
|
||
|
// GetFinalityCheckpoints returns finality checkpoints for state with given 'stateId'. In case finality is
|
||
|
// not yet achieved, checkpoint should return epoch 0 and ZERO_HASH as root.
|
||
|
func (bs *Server) GetFinalityCheckpoints(ctx context.Context, req *ethpb.StateRequest) (*ethpb.StateFinalityCheckpointResponse, error) {
|
||
|
return nil, errors.New("unimplemented")
|
||
|
}
|