relay

package
v2.8.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 10 Imported by: 4 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainID added in v2.5.0

type ChainID = string

type ID added in v2.5.0

type ID struct {
	Network Network
	ChainID ChainID
}

ID uniquely identifies a relayer by network and chain id

func NewID added in v2.5.0

func NewID(n Network, c ChainID) ID

func (*ID) Name added in v2.5.0

func (i *ID) Name() string

func (*ID) String added in v2.5.0

func (i *ID) String() string

func (*ID) UnmarshalString added in v2.5.0

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

type Network

type Network = string
var (
	EVM             Network = "evm"
	Cosmos          Network = "cosmos"
	Solana          Network = "solana"
	StarkNet        Network = "starknet"
	SupportedRelays         = map[Network]struct{}{
		EVM:      {},
		Cosmos:   {},
		Solana:   {},
		StarkNet: {},
	}
)

type ProviderServer added in v2.8.0

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

func NewProviderServer added in v2.8.0

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 added in v2.8.0

func (p *ProviderServer) Close() error

func (*ProviderServer) GetConn added in v2.8.0

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

func (*ProviderServer) Start added in v2.8.0

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

type ServerAdapter added in v2.7.0

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 added in v2.7.0

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

NewServerAdapter returns a new ServerAdapter.

func (*ServerAdapter) NewPluginProvider added in v2.7.0

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

Jump to

Keyboard shortcuts

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