relay

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainID

type ChainID = string

type ID

type ID struct {
	Network Network
	ChainID ChainID
}

ID uniquely identifies a relayer by network and chain id

func NewID

func NewID(n Network, c ChainID) ID

func (*ID) Name

func (i *ID) Name() string

func (*ID) String

func (i *ID) String() string

func (*ID) UnmarshalString

func (i *ID) UnmarshalString(s string) error

type Network

type Network = string
var (
	EVM             Network = "evm"
	SupportedRelays         = map[Network]struct{}{
		EVM: {},
	}
)

type ProviderServer

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

func NewProviderServer

func NewProviderServer(p types.PluginProvider, pType types.OCR2PluginType, lggr logger.Logger) (*ProviderServer, error)

NewProviderServer creates a GRPC server that will wrap a provider, this is a workaround to test the Node API PoC until the EVM relayer is loopifyed

func (*ProviderServer) Close

func (p *ProviderServer) Close() error

func (*ProviderServer) GetConn

func (p *ProviderServer) GetConn() (*grpc.ClientConn, error)

func (*ProviderServer) Start

func (p *ProviderServer) Start(ctx context.Context) error

type ServerAdapter

type ServerAdapter struct {
	loop.RelayerAdapter
}

ServerAdapter extends loop.RelayerAdapter by overriding NewPluginProvider to dispatches calls according to `RelayArgs.ProviderType`. This should only be used to adapt relayers not running via GRPC in a LOOPP.

func NewServerAdapter

func NewServerAdapter(r types.Relayer, e loop.RelayerExt) *ServerAdapter

NewServerAdapter returns a new ServerAdapter.

func (*ServerAdapter) NewPluginProvider

func (r *ServerAdapter) NewPluginProvider(ctx context.Context, rargs types.RelayArgs, pargs types.PluginArgs) (types.PluginProvider, error)

Directories

Path Synopsis
evm

Jump to

Keyboard shortcuts

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