connection

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 20 Imported by: 19

Documentation

Overview

Package connection provides functionality for network connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	// Consensus returns an interface to the consensus layer.
	Consensus() consensus.Services

	// Control returns an interface to the node control layer.
	Control() control.NodeController

	// Runtime returns an interface to the given runtime.
	Runtime(pt *config.ParaTime) RuntimeClient
}

Connection is the general node connection interface.

func Connect

func Connect(ctx context.Context, net *config.Network) (Connection, error)

Connect establishes a connection with the target network.

func ConnectNoVerify added in v0.3.0

func ConnectNoVerify(_ context.Context, net *config.Network) (Connection, error)

ConnectNoVerify establishes a connection with the target network, omitting the chain context check.

type RuntimeClient

type RuntimeClient struct {
	client.RuntimeClient

	Core              core.V1
	Accounts          accounts.V1
	Rewards           rewards.V1
	ConsensusAccounts consensusaccounts.V1
	Contracts         contracts.V1
	Evm               evm.V1
	ROFL              rofl.V1
	ROFLMarket        roflmarket.V1
}

RuntimeClient is a client.RuntimeClient augmented with commonly used modules.

Jump to

Keyboard shortcuts

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