relayer

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relayer

type Relayer struct {
	relaytypes.UnimplementedRelayer
	// contains filtered or unexported fields
}

Relayer wraps the Stellar chain and exposes it as loop.Relayer.

func NewRelayer

func NewRelayer(lggr logger.Logger, chainService chain.Chain) *Relayer

NewRelayer constructs a Relayer from an already-built chain.

func (*Relayer) Close

func (r *Relayer) Close() error

func (*Relayer) FinalizedHead

func (r *Relayer) FinalizedHead(ctx context.Context) (relaytypes.Head, error)

func (*Relayer) GetChainInfo

func (r *Relayer) GetChainInfo(ctx context.Context) (relaytypes.ChainInfo, error)

func (*Relayer) GetChainStatus

func (r *Relayer) GetChainStatus(ctx context.Context) (relaytypes.ChainStatus, error)

func (*Relayer) GetLatestLedger

func (s *Relayer) GetLatestLedger(ctx context.Context) (stellartypes.GetLatestLedgerResponse, error)

func (*Relayer) GetLedgerEntries

func (*Relayer) HealthReport

func (r *Relayer) HealthReport() map[string]error

func (*Relayer) Healthy

func (r *Relayer) Healthy() error

func (*Relayer) LatestHead

func (r *Relayer) LatestHead(ctx context.Context) (relaytypes.Head, error)

func (*Relayer) ListNodeStatuses

func (r *Relayer) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) ([]relaytypes.NodeStatus, string, int, error)

func (*Relayer) Name

func (r *Relayer) Name() string

func (*Relayer) Ready

func (r *Relayer) Ready() error

func (*Relayer) Start

func (r *Relayer) Start(ctx context.Context) error

func (*Relayer) Stellar

func (r *Relayer) Stellar() (relaytypes.StellarService, error)

func (*Relayer) Transact

func (r *Relayer) Transact(ctx context.Context, from, to string, amount *big.Int, balanceCheck bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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