chain

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain interface {
	types.ChainService

	ID() string
	Config() *config.TOMLConfig
	TxManager() *txm.StellarTxm
	KeyStore() core.Keystore
	GetClient() (RPCClient, error)
}

Chain is the Stellar chain service interface.

func NewChain

func NewChain(cfg *config.TOMLConfig, opts Opts, chainInfo chainsel.StellarChain) (Chain, error)

type Opts

type Opts struct {
	Logger   logger.Logger
	KeyStore core.Keystore
}

Opts are the external dependencies required to construct a Chain.

func (*Opts) Validate

func (o *Opts) Validate() error

type RPCClient

RPCClient is the subset of the Stellar Soroban JSON-RPC client used across the Stellar relayer (chain + per-component callers). It mirrors the public surface of *rpcclient.Client so production wiring passes the SDK type unchanged and tests can inject mocks.

Jump to

Keyboard shortcuts

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