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: 0

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