gRPC

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: GPL-3.0 Imports: 20 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.IrisAddress `json:"proposer"`
	StartBlock  uint64              `json:"start_block"`
	EndBlock    uint64              `json:"end_block"`
	RootHash    hmTypes.IrisHash    `json:"root_hash"`
	ZenaChainID string              `json:"zena_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"`
	ZenaChainId string `json:"zena_chain_id"`
	RecordTime  string `json:"record_time"`
}

type IrisGRPCServer

type IrisGRPCServer struct {
	proto.UnimplementedIrisServer
	// contains filtered or unexported fields
}

func (*IrisGRPCServer) FetchCheckpoint

func (*IrisGRPCServer) FetchCheckpointCount

func (*IrisGRPCServer) FetchLastNoAckMilestone

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

func (*IrisGRPCServer) FetchMilestone

func (h *IrisGRPCServer) FetchMilestone(ctx context.Context, in *emptypb.Empty) (*proto.FetchMilestoneResponse, error)

func (*IrisGRPCServer) FetchMilestoneCount

func (h *IrisGRPCServer) FetchMilestoneCount(ctx context.Context, in *emptypb.Empty) (*proto.FetchMilestoneCountResponse, error)

func (*IrisGRPCServer) FetchMilestoneID

func (*IrisGRPCServer) FetchNoAckMilestone

func (*IrisGRPCServer) Span

func (*IrisGRPCServer) StateSyncEvents

type Milestone

type Milestone struct {
	Proposer    hmTypes.IrisAddress `json:"proposer"`
	StartBlock  uint64              `json:"start_block"`
	EndBlock    uint64              `json:"end_block"`
	Hash        hmTypes.IrisHash    `json:"hash"`
	ZenaChainID string              `json:"zena_chain_id"`
	TimeStamp   uint64              `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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