adapters

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InsecureGRPCAdapter

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

func NewInsecureGRPCAdapter

func NewInsecureGRPCAdapter(host string) (*InsecureGRPCAdapter, error)

func (*InsecureGRPCAdapter) Host

func (c *InsecureGRPCAdapter) Host() string

func (*InsecureGRPCAdapter) LastBlock

func (c *InsecureGRPCAdapter) LastBlock(ctx context.Context) (LastBlock, error)

func (*InsecureGRPCAdapter) Statistics

func (c *InsecureGRPCAdapter) Statistics(ctx context.Context) (Statistics, error)

func (*InsecureGRPCAdapter) Stop

func (c *InsecureGRPCAdapter) Stop() error

func (*InsecureGRPCAdapter) SubmitTransaction

type LastBlock

type LastBlock struct {
	ChainID                 string
	BlockHeight             uint64
	BlockHash               string
	ProofOfWorkHashFunction string
	ProofOfWorkDifficulty   uint32
}

type Statistics

type Statistics struct {
	BlockHash   string
	BlockHeight uint64
	ChainID     string
	VegaTime    string
}

Jump to

Keyboard shortcuts

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