connection

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 13

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
}

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