Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-cordenier committed Oct 16, 2023
1 parent 66bf221 commit 2bfe646
Show file tree
Hide file tree
Showing 24 changed files with 412 additions and 400 deletions.
28 changes: 0 additions & 28 deletions pkg/loop/grpc_plugin_service_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/loop/internal/median.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ type medianProviderClient struct {
func (m *medianProviderClient) ClientConn() grpc.ClientConnInterface { return m.cc }

func newMedianProviderClient(b *brokerExt, cc grpc.ClientConnInterface) *medianProviderClient {
m := &medianProviderClient{pluginProviderClient: newPluginProviderClient(b, cc)}
m := &medianProviderClient{pluginProviderClient: newPluginProviderClient(b.withName("MedianProviderClient"), cc)}
m.reportCodec = &reportCodecClient{b, pb.NewReportCodecClient(m.cc)}
m.medianContract = &medianContractClient{pb.NewMedianContractClient(m.cc)}
m.onchainConfigCodec = &onchainConfigCodecClient{b, pb.NewOnchainConfigCodecClient(m.cc)}
Expand Down
120 changes: 60 additions & 60 deletions pkg/loop/internal/pb/plugin_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pkg/loop/internal/pb/plugin_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ option go_package = "github.com/smartcontractkit/chainlink-relay/pkg/loop/intern
package loop;

service PluginService {
rpc NewPluginServiceFactory (NewPluginServiceFactoryRequest) returns (NewPluginServiceFactoryReply) {}
rpc NewReportingPluginFactory (NewReportingPluginFactoryRequest) returns (NewReportingPluginFactoryReply) {}
}

message PluginServiceConfig {
Expand All @@ -15,14 +15,14 @@ message PluginServiceConfig {
bytes pluginConfig = 4;
}

// NewPluginServiceFactoryRequest has arguments for [github.com/smartcontractkit/chainlink-relay/pkg/loop.PluginService.NewPluginServiceFactory].
message NewPluginServiceFactoryRequest {
// NewReportingPluginFactoryRequest has arguments for [github.com/smartcontractkit/chainlink-relay/pkg/loop.PluginService.NewReportingPluginFactory].
message NewReportingPluginFactoryRequest {
uint32 providerID = 1;
uint32 errorLogID = 2;
PluginServiceConfig pluginServiceConfig = 3;
}

// NewPluginServiceFactoryReply has return arguments for [github.com/smartcontractkit/chainlink-relay/pkg/loop.PluginService.NewPluginServiceFactory].
message NewPluginServiceFactoryReply {
// NewReportingPlufinFactoryReply has return arguments for [github.com/smartcontractkit/chainlink-relay/pkg/loop.PluginService.NewReportingPluginFactory].
message NewReportingPluginFactoryReply {
uint32 reportingPluginFactoryID = 1;
}
Loading

0 comments on commit 2bfe646

Please sign in to comment.