Skip to content

Commit

Permalink
Relayer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-cordenier committed Sep 4, 2023
1 parent bf6bd84 commit dc1e0c7
Show file tree
Hide file tree
Showing 15 changed files with 910 additions and 921 deletions.
File renamed without changes.
16 changes: 5 additions & 11 deletions pkg/loop/internal/median.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,28 +170,22 @@ var (
)

type medianProviderClient struct {
*configProviderClient
contractTransmitter libocr.ContractTransmitter
reportCodec median.ReportCodec
medianContract median.MedianContract
onchainConfigCodec median.OnchainConfigCodec
*pluginProviderClient
reportCodec median.ReportCodec
medianContract median.MedianContract
onchainConfigCodec median.OnchainConfigCodec
}

func (m *medianProviderClient) ClientConn() grpc.ClientConnInterface { return m.cc }

func newMedianProviderClient(b *brokerExt, cc grpc.ClientConnInterface) *medianProviderClient {
m := &medianProviderClient{configProviderClient: newConfigProviderClient(b.withName("MedianProviderClient"), cc)}
m.contractTransmitter = &contractTransmitterClient{b, pb.NewContractTransmitterClient(m.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)}
return m
}

func (m *medianProviderClient) ContractTransmitter() libocr.ContractTransmitter {
return m.contractTransmitter
}

func (m *medianProviderClient) ReportCodec() median.ReportCodec {
return m.reportCodec
}
Expand Down
Loading

0 comments on commit dc1e0c7

Please sign in to comment.