connection

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 19 Imported by: 15

Documentation

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.ClientBackend

	// 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
}

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