Documentation
¶
Index ¶
- type ChainAccessAdapter
- func (a *ChainAccessAdapter) AptosClient(selector uint64) (aptoslib.AptosRpcClient, bool)
- func (a *ChainAccessAdapter) AptosSigner(selector uint64) (aptoslib.TransactionSigner, bool)
- func (a *ChainAccessAdapter) CantonChain(selector uint64) (mcmscanton.Chain, bool)
- func (a *ChainAccessAdapter) EVMClient(selector uint64) (evm.ContractDeployBackend, bool)
- func (a *ChainAccessAdapter) EVMSigner(selector uint64) (*bind.TransactOpts, bool)
- func (a *ChainAccessAdapter) Selectors() []uint64
- func (a *ChainAccessAdapter) SolanaClient(selector uint64) (*solrpc.Client, bool)
- func (a *ChainAccessAdapter) SolanaSigner(selector uint64) (*sol.PrivateKey, bool)
- func (a *ChainAccessAdapter) StellarClient(selector uint64) (*rpcclient.Client, bool)
- func (a *ChainAccessAdapter) StellarSigner(selector uint64) (stellar.Signer, bool)
- func (a *ChainAccessAdapter) SuiClient(selector uint64) (cslclient.BindingsClient, bool)
- func (a *ChainAccessAdapter) SuiSigner(selector uint64) (mcmssui.SuiSigner, bool)
- func (a *ChainAccessAdapter) TonClient(selector uint64) (ton.APIClientWrapped, bool)
- func (a *ChainAccessAdapter) TonSigner(selector uint64) (*tonwallet.Wallet, 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) 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) (mcmscanton.Chain, bool)
CantonChain returns the MCMS Canton chain view 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) 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. It reports false when the chain has no local deployer key, e.g. when the deployer signs with AWS KMS, because the MCMS SDK can only sign with a private key.
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) (stellar.Signer, bool)
StellarSigner returns the Stellar signer for the given selector.
func (*ChainAccessAdapter) SuiClient ¶
func (a *ChainAccessAdapter) SuiClient(selector uint64) (cslclient.BindingsClient, 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.
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
}