clients

package
v1.0.0-preupgrade Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package clients constructs the various RPC / HTTP clients required by the CLI commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Profile *cfgpkg.NetworkProfile
	Config  *cfgpkg.UserConfig

	Participant canton.Participant

	// EDS clients
	CCIPEDS              oapiCCIP.ClientWithResponsesInterface
	CCVEDS               oapiCCV.ClientWithResponsesInterface
	ExecutorEDS          oapiExecutor.ClientWithResponsesInterface
	TokenPoolEDS         oapiTokenPool.ClientWithResponsesInterface
	AmuletTransferClient oapiTransferInstruction.ClientWithResponsesInterface
	LinkTransferClient   oapiTransferInstruction.ClientWithResponsesInterface
	IndexerClient        *indexerclient.IndexerClient

	// EVM
	ETHClient  *ethclient.Client
	ETHAddress common.Address
	EthAuth    *bind.TransactOpts
	EthChainID *big.Int

	// Explorers
	CCIPExplorerURL   string
	EVMExplorerURL    string
	CantonExplorerURL string
}

Bundle holds every constructed client/handle used by the commands.

func New

func New(ctx context.Context, profile *cfgpkg.NetworkProfile, cfg *cfgpkg.UserConfig) (*Bundle, error)

New builds a Bundle for the given profile + user config.

func (b *Bundle) CCIPExplorerLink(msgId string) string
func (b *Bundle) CantonExplorerLink(update string) string
func (b *Bundle) EVMExplorerLink(tx string) string

Jump to

Keyboard shortcuts

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