node

package
v0.43.0-b1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package node contains functionality for interacting with Vega data nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataNode added in v0.41.0

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

DataNode stores state for a Vega Data node.

func NewDataNode added in v0.41.0

func NewDataNode(hosts []string, callTimeoutMil int) *DataNode

NewDataNode returns a new node.

func (*DataNode) AssetByID added in v0.41.0

AssetByID returns the specified asset.

func (*DataNode) LastBlockData added in v0.41.0

func (n *DataNode) LastBlockData() (*vegaapipb.LastBlockHeightResponse, error)

LastBlockData gets the latest blockchain data, height, hash and pow parameters.

func (*DataNode) MarketDataByID added in v0.41.0

MarketDataByID returns market data for the specified market.

func (*DataNode) Markets added in v0.41.0

Markets returns all markets.

func (*DataNode) MustDialConnection

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

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

func (*DataNode) ObserveEventBus added in v0.41.0

ObserveEventBus opens a stream.

func (*DataNode) PartyAccounts added in v0.41.0

PartyAccounts returns accounts for the given party.

func (*DataNode) PositionsByParty added in v0.41.0

PositionsByParty returns positions for the given party.

func (*DataNode) SubmitTransaction added in v0.41.0

SubmitTransaction submits a signed v2 transaction.

func (*DataNode) Target added in v0.42.0

func (n *DataNode) Target() string

func (*DataNode) WaitForStateChange added in v0.42.0

func (n *DataNode) 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