rpc

package
Version: v1.65.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name string, s types.RPCServer)

Init paracross rpc register

Types

type Grpc

type Grpc struct {
	// contains filtered or unexported fields
}

Grpc paracross Grpc interface

func (Grpc) GetParaBlsPubKey added in v1.65.1

func (c Grpc) GetParaBlsPubKey(ctx context.Context, in *types.ReqString) (*pt.BlsPubKey, error)

GetParaBlsPubKey query para chain bls pubkey

func (Grpc) GetParaCmtTxInfo added in v1.65.1

func (c Grpc) GetParaCmtTxInfo(ctx context.Context, in *types.ReqNil) (*pt.ParaBlsSignSumInfo, error)

GetParaCmtTxInfo query para chain commit tx info to bls sign

func (Grpc) GetParaLocalBlockInfo

func (c Grpc) GetParaLocalBlockInfo(ctx context.Context, in *types.ReqInt) (*pt.ParaLocalDbBlockInfo, error)

GetParaLocalBlockInfo query para chain the download layer's local height

func (Grpc) GetParaNodeLeaderInfo added in v1.65.1

func (c Grpc) GetParaNodeLeaderInfo(ctx context.Context, in *types.ReqNil) (*pt.ElectionStatus, error)

GetParaNodeLeaderInfo query para bls sign leader info

func (Grpc) IsSync

func (c Grpc) IsSync(ctx context.Context, in *types.ReqNil) (*types.IsCaughtUp, error)

IsSync query is sync

type Jrpc

type Jrpc struct {
	// contains filtered or unexported fields
}

Jrpc paracross jrpc interface

func (*Jrpc) GetParaBlsPubKey added in v1.65.1

func (c *Jrpc) GetParaBlsPubKey(in *types.ReqString, result *interface{}) error

GetParaBlsPubKey query para local height

func (*Jrpc) GetParaCmtTxInfo added in v1.65.1

func (c *Jrpc) GetParaCmtTxInfo(in *types.ReqNil, result *interface{}) error

GetParaCmtTxInfo query para commit tx info

func (*Jrpc) GetParaLocalBlockInfo

func (c *Jrpc) GetParaLocalBlockInfo(in *types.ReqInt, result *interface{}) error

GetParaLocalBlockInfo query para local height

func (*Jrpc) GetParaNodeLeaderInfo added in v1.65.1

func (c *Jrpc) GetParaNodeLeaderInfo(in *types.ReqNil, result *interface{}) error

GetParaNodeLeaderInfo query para bls sign leader info

func (*Jrpc) IsSync

func (c *Jrpc) IsSync(in *types.ReqNil, result *interface{}) error

IsSync query is sync

Jump to

Keyboard shortcuts

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