adapters

package
v0.91.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 18 Imported by: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainAccessAdapter

type ChainAccessAdapter struct {
	// contains filtered or unexported fields
}

ChainAccessAdapter adapts CLDF's chain.BlockChains into a selector + lookup style API. It is used to make it compatible with the mcms lib chain access interface.

func Wrap

Wrap returns a ChainAccessAdapter adapter around the given CLDF BlockChains.

func (*ChainAccessAdapter) AptosClient

func (a *ChainAccessAdapter) AptosClient(selector uint64) (aptoslib.AptosRpcClient, bool)

AptosClient returns the Aptos RPC client for the given selector.

func (*ChainAccessAdapter) AptosSigner added in v0.86.1

func (a *ChainAccessAdapter) AptosSigner(selector uint64) (aptoslib.TransactionSigner, bool)

AptosSigner returns the Aptos signer for the given selector.

func (*ChainAccessAdapter) CantonChain added in v0.83.0

func (a *ChainAccessAdapter) CantonChain(selector uint64) (cldfcanton.Chain, bool)

CantonChain returns the Canton chain for the given selector. Canton chains contain participants with their own service clients, so we return the chain itself.

func (*ChainAccessAdapter) EVMClient

func (a *ChainAccessAdapter) EVMClient(selector uint64) (evm.ContractDeployBackend, bool)

EVMClient returns an EVM client for the given selector.

func (*ChainAccessAdapter) EVMSigner added in v0.86.1

func (a *ChainAccessAdapter) EVMSigner(selector uint64) (*bind.TransactOpts, bool)

EVMSigner returns an EVM signer for the given selector.

func (*ChainAccessAdapter) Selectors

func (a *ChainAccessAdapter) Selectors() []uint64

Selectors returns all known chain selectors (sorted by CLDF).

func (*ChainAccessAdapter) SolanaClient

func (a *ChainAccessAdapter) SolanaClient(selector uint64) (*solrpc.Client, bool)

SolanaClient returns the Solana RPC client for the given selector.

func (*ChainAccessAdapter) SolanaSigner added in v0.86.1

func (a *ChainAccessAdapter) SolanaSigner(selector uint64) (*sol.PrivateKey, bool)

SolanaSigner returns the Solana signer for the given selector.

func (*ChainAccessAdapter) StellarClient added in v0.80.1

func (a *ChainAccessAdapter) StellarClient(selector uint64) (*rpcclient.Client, bool)

StellarClient returns the Stellar RPC client for the given selector.

func (*ChainAccessAdapter) StellarSigner added in v0.86.1

func (a *ChainAccessAdapter) StellarSigner(selector uint64) (cldfstellar.StellarSigner, bool)

StellarSigner returns the Stellar signer for the given selector.

func (*ChainAccessAdapter) SuiClient

func (a *ChainAccessAdapter) SuiClient(selector uint64) (sui.ISuiAPI, bool)

SuiClient returns the Sui API client for the given selector.

func (*ChainAccessAdapter) SuiSigner added in v0.86.1

func (a *ChainAccessAdapter) SuiSigner(selector uint64) (mcmssui.SuiSigner, bool)

SuiSigner returns the Sui signer for the given selector.

func (*ChainAccessAdapter) TonClient added in v0.80.0

func (a *ChainAccessAdapter) TonClient(selector uint64) (ton.APIClientWrapped, bool)

TonClient returns the Ton API client for the given selector.

func (*ChainAccessAdapter) TonSigner added in v0.86.1

func (a *ChainAccessAdapter) TonSigner(selector uint64) (*tonwallet.Wallet, bool)

TonSigner returns the Ton signer for the given selector.

type ChainsFetcher

type ChainsFetcher interface {
	ListChainSelectors(options ...chain.ChainSelectorsOption) []uint64
	EVMChains() map[uint64]cldfevm.Chain
	SolanaChains() map[uint64]cldfsol.Chain
	AptosChains() map[uint64]cldfaptos.Chain
	SuiChains() map[uint64]cldfsui.Chain
	TonChains() map[uint64]cldfton.Chain
	StellarChains() map[uint64]cldfstellar.Chain
	CantonChains() map[uint64]cldfcanton.Chain
}

Jump to

Keyboard shortcuts

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