gRPC

package
v1.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupGRPCServer

func SetupGRPCServer(shutDownCtx context.Context, cdc *codec.Codec, addr string, lggr tmLog.Logger) error

Types

type Checkpoint

type Checkpoint struct {
	Proposer   hmTypes.HeimdallAddress `json:"proposer"`
	StartBlock uint64                  `json:"start_block"`
	EndBlock   uint64                  `json:"end_block"`
	RootHash   hmTypes.HeimdallHash    `json:"root_hash"`
	BorChainID string                  `json:"bor_chain_id"`
	TimeStamp  uint64                  `json:"timestamp"`
}

type Event

type Event struct {
	Id         uint64 `json:"id"`
	Contract   string `json:"contract"`
	Data       string `json:"data"`
	TxHash     string `json:"tx_hash"`
	LogIndex   uint64 `json:"log_index"`
	BorChainId string `json:"bor_chain_id"`
	RecordTime string `json:"record_time"`
}

type HeimdallGRPCServer

type HeimdallGRPCServer struct {
	proto.UnimplementedHeimdallServer
	// contains filtered or unexported fields
}

func (*HeimdallGRPCServer) FetchCheckpoint

func (*HeimdallGRPCServer) FetchCheckpointCount

func (*HeimdallGRPCServer) FetchLastNoAckMilestone added in v1.0.1

func (h *HeimdallGRPCServer) FetchLastNoAckMilestone(ctx context.Context, in *emptypb.Empty) (*proto.FetchLastNoAckMilestoneResponse, error)

func (*HeimdallGRPCServer) FetchMilestone added in v1.0.1

func (*HeimdallGRPCServer) FetchMilestoneCount added in v1.0.1

func (*HeimdallGRPCServer) FetchMilestoneID added in v1.0.1

func (*HeimdallGRPCServer) FetchNoAckMilestone added in v1.0.1

func (*HeimdallGRPCServer) Span

func (*HeimdallGRPCServer) StateSyncEvents

type Milestone added in v1.0.1

type Milestone struct {
	Proposer   hmTypes.HeimdallAddress `json:"proposer"`
	StartBlock uint64                  `json:"start_block"`
	EndBlock   uint64                  `json:"end_block"`
	Hash       hmTypes.HeimdallHash    `json:"hash"`
	BorChainID string                  `json:"bor_chain_id"`
	TimeStamp  uint64                  `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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