chain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry manages chain adapters

func NewRegistry

func NewRegistry() *Registry

NewRegistry creates a new chain adapter registry

func (*Registry) Get

func (r *Registry) Get(chainType types.ChainType) (types.ChainAdapter, error)

Get returns a chain adapter by type

func (*Registry) Has

func (r *Registry) Has(chainType types.ChainType) bool

Has checks if a chain type is registered

func (*Registry) Register

func (r *Registry) Register(adapter types.ChainAdapter) error

Register registers a chain adapter

func (*Registry) SupportedChains

func (r *Registry) SupportedChains() []types.ChainType

SupportedChains returns all registered chain types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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