Documentation
¶
Index ¶
- type ChainAccessAdapter
- func (a *ChainAccessAdapter) AptosClient(selector uint64) (aptoslib.AptosRpcClient, bool)
- func (a *ChainAccessAdapter) EVMClient(selector uint64) (evm.ContractDeployBackend, bool)
- func (a *ChainAccessAdapter) Selectors() []uint64
- func (a *ChainAccessAdapter) SolanaClient(selector uint64) (*solrpc.Client, bool)
- func (a *ChainAccessAdapter) StellarClient(selector uint64) (*rpcclient.Client, bool)
- func (a *ChainAccessAdapter) SuiClient(selector uint64) (sui.ISuiAPI, mcmssui.SuiSigner, bool)
- func (a *ChainAccessAdapter) TonClient(selector uint64) (*ton.APIClient, bool)
- type ChainsFetcher
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 ¶
func Wrap(inner ChainsFetcher) ChainAccessAdapter
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) EVMClient ¶
func (a *ChainAccessAdapter) EVMClient(selector uint64) (evm.ContractDeployBackend, bool)
EVMClient returns an EVM client 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) 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.
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
}
Click to show internal directories.
Click to hide internal directories.