core

package
v0.76.8 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.76.8

type Client struct {
	CallTimeout time.Duration
	Conn        *grpc.ClientConn
	// contains filtered or unexported fields
}

Client stores state for a Vega Core node or Data Node.

func NewClient added in v0.76.8

func NewClient(hosts []string, callTimeout time.Duration, logger *zap.Logger) *Client

NewClient returns a new node.

func (*Client) CoreNetworkParameters added in v0.76.8

func (n *Client) CoreNetworkParameters(ctx context.Context, parameterKey string) ([]*vega.NetworkParameter, error)

func (*Client) DepositBuiltinAsset added in v0.76.8

func (n *Client) DepositBuiltinAsset(ctx context.Context, vegaAssetId string, partyId string, amount string, signAny func([]byte) ([]byte, string, error)) (bool, error)

func (*Client) LastBlock added in v0.76.8

func (*Client) MustDialConnection added in v0.76.8

func (n *Client) MustDialConnection(ctx context.Context)

MustDialConnection tries to establish a connection to one of the nodes from a list of locations. It is idempotent, while it each call will block the caller until a connection is established.

func (*Client) MustDialConnectionIgnoreTime added in v0.76.8

func (n *Client) MustDialConnectionIgnoreTime(ctx context.Context)

func (*Client) SendTransaction added in v0.76.8

func (*Client) Statistics added in v0.76.8

func (n *Client) Statistics(ctx context.Context) (*vegaapipb.StatisticsResponse, error)

func (*Client) Target added in v0.76.8

func (n *Client) Target() string

func (*Client) WaitForStateChange added in v0.76.8

func (n *Client) WaitForStateChange(ctx context.Context, state connectivity.State) bool

Jump to

Keyboard shortcuts

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