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 RPCClient ¶
type RPCClient interface {
SimulateTransaction(ctx context.Context, req protocolrpc.SimulateTransactionRequest) (protocolrpc.SimulateTransactionResponse, error)
SendTransaction(ctx context.Context, req protocolrpc.SendTransactionRequest) (protocolrpc.SendTransactionResponse, error)
GetTransaction(ctx context.Context, req protocolrpc.GetTransactionRequest) (protocolrpc.GetTransactionResponse, error)
GetEvents(ctx context.Context, req protocolrpc.GetEventsRequest) (protocolrpc.GetEventsResponse, error)
GetLedgerEntries(ctx context.Context, req protocolrpc.GetLedgerEntriesRequest) (protocolrpc.GetLedgerEntriesResponse, error)
GetLedgers(ctx context.Context, req protocolrpc.GetLedgersRequest) (protocolrpc.GetLedgersResponse, error)
GetLatestLedger(ctx context.Context) (protocolrpc.GetLatestLedgerResponse, error)
GetFeeStats(ctx context.Context) (protocolrpc.GetFeeStatsResponse, error)
Close() error
}
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.
Click to show internal directories.
Click to hide internal directories.