ccip

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommitLOOPServer

func RegisterCommitLOOPServer(s *grpc.Server, b net.Broker, cfg net.BrokerConfig, impl types.CCIPCommitFactoryGenerator) error

func RegisterExecutionLOOPServer

func RegisterExecutionLOOPServer(s *grpc.Server, b net.Broker, cfg net.BrokerConfig, impl types.CCIPExecutionFactoryGenerator) error

Types

type CommitLOOPClient

type CommitLOOPClient struct {
	// hashicorp plugin client
	*goplugin.PluginClient
	// client to base service
	*goplugin.ServiceClient
	// contains filtered or unexported fields
}

CommitLOOPClient is a client is run on the core node to connect to the commit LOOP server.

func NewCommitLOOPClient

func NewCommitLOOPClient(broker net.Broker, brokerCfg net.BrokerConfig, conn *grpc.ClientConn) *CommitLOOPClient

func (*CommitLOOPClient) NewCommitFactory

NewCommitFactory creates a new reporting plugin factory client. In practice this client is called by the core node. The reporting plugin factory client is a client to the LOOP server, which is run as an external process via hashicorp plugin. If the given provider is a GRPCClientConn, then the provider is proxied to the to the relayer, which is its own process via hashicorp plugin. If the provider is not a GRPCClientConn, then the provider is a local to the core node. The core must wrap the provider in a grpc server and serve it locally.

type CommitLOOPServer

type CommitLOOPServer struct {
	ccippb.UnimplementedCommitFactoryGeneratorServer

	*net.BrokerExt
	// contains filtered or unexported fields
}

CommitLOOPServer is a server that runs the commit LOOP.

func (*CommitLOOPServer) NewCommitFactory

type ExecutionLOOPClient

type ExecutionLOOPClient struct {
	// hashicorp plugin client
	*goplugin.PluginClient
	// client to base service
	*goplugin.ServiceClient
	// contains filtered or unexported fields
}

ExecutionLOOPClient is a client is run on the core node to connect to the execution LOOP server.

func NewExecutionLOOPClient

func NewExecutionLOOPClient(broker net.Broker, brokerCfg net.BrokerConfig, conn *grpc.ClientConn) *ExecutionLOOPClient

func (*ExecutionLOOPClient) NewExecutionFactory

func (c *ExecutionLOOPClient) NewExecutionFactory(ctx context.Context, srcProvider types.CCIPExecProvider, dstProvider types.CCIPExecProvider, srcChainID int64, dstChainID int64, srcTokenAddress string) (types.ReportingPluginFactory, error)

NewExecutionFactory creates a new reporting plugin factory client. In practice this client is called by the core node. The reporting plugin factory client is a client to the LOOP server, which is run as an external process via hashicorp plugin. If the given provider is a GRPCClientConn, then the provider is proxied to the to the relayer, which is its own process via hashicorp plugin. If the provider is not a GRPCClientConn, then the provider is a local to the core node. The core must wrap the provider in a grpc server and serve it locally.

type ExecutionLOOPServer

type ExecutionLOOPServer struct {
	ccippb.UnimplementedExecutionFactoryGeneratorServer

	*net.BrokerExt
	// contains filtered or unexported fields
}

ExecutionLOOPServer is a server that runs the execution LOOP.

func (*ExecutionLOOPServer) NewExecutionFactory

Jump to

Keyboard shortcuts

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