Documentation ¶
Index ¶
- type Client
- func (n *Client) CoreNetworkParameters(ctx context.Context, parameterKey string) ([]*vega.NetworkParameter, error)
- func (n *Client) DepositBuiltinAsset(ctx context.Context, vegaAssetId string, partyId string, amount string, ...) (bool, error)
- func (n *Client) LastBlock(ctx context.Context) (*vegaapipb.LastBlockHeightResponse, error)
- func (n *Client) MustDialConnection(ctx context.Context)
- func (n *Client) MustDialConnectionIgnoreTime(ctx context.Context)
- func (n *Client) SendTransaction(ctx context.Context, tx *commandspb.Transaction, ...) (*vegaapipb.SubmitTransactionResponse, error)
- func (n *Client) Statistics(ctx context.Context) (*vegaapipb.StatisticsResponse, error)
- func (n *Client) Target() string
- func (n *Client) WaitForStateChange(ctx context.Context, state connectivity.State) bool
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 (*Client) CoreNetworkParameters ¶ added in v0.76.8
func (*Client) DepositBuiltinAsset ¶ added in v0.76.8
func (*Client) MustDialConnection ¶ added in v0.76.8
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 (*Client) SendTransaction ¶ added in v0.76.8
func (n *Client) SendTransaction(ctx context.Context, tx *commandspb.Transaction, reqType vegaapipb.SubmitTransactionRequest_Type) (*vegaapipb.SubmitTransactionResponse, error)
func (*Client) Statistics ¶ added in v0.76.8
func (*Client) WaitForStateChange ¶ added in v0.76.8
Click to show internal directories.
Click to hide internal directories.