mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
cf1c346beb
* Start Beacon API outline * Rename to v1 * Add impl * Change to outline * Add comments * Remove unneeded items * Fix linting * tidy * Fix visibility * go.sum * Fix deps * Tidy * Add check for interface type and fix pointers * Fix pointer name Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
28 lines
1.0 KiB
Go
28 lines
1.0 KiB
Go
package beaconv1
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
|
|
ptypes "github.com/gogo/protobuf/types"
|
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1"
|
|
)
|
|
|
|
// GetForkSchedule retrieve all scheduled upcoming forks this node is aware of.
|
|
func (bs *Server) GetForkSchedule(ctx context.Context, req *ptypes.Empty) (*ethpb.ForkScheduleResponse, error) {
|
|
return nil, errors.New("unimplemented")
|
|
}
|
|
|
|
// GetSpec retrieves specification configuration (without Phase 1 params) used on this node. Specification params list
|
|
// Values are returned with following format:
|
|
// - any value starting with 0x in the spec is returned as a hex string.
|
|
// - all other values are returned as number.
|
|
func (bs *Server) GetSpec(ctx context.Context, req *ptypes.Empty) (*ethpb.SpecResponse, error) {
|
|
return nil, errors.New("unimplemented")
|
|
}
|
|
|
|
// GetDepositContract retrieves deposit contract address and genesis fork version.
|
|
func (bs *Server) GetDepositContract(ctx context.Context, req *ptypes.Empty) (*ethpb.DepositContractResponse, error) {
|
|
return nil, errors.New("unimplemented")
|
|
}
|