Documentation ¶
Index ¶
- func RegisterProviderServices(s *grpc.Server, provider types.MercuryProvider)
- func RegisterProviderServicesV1(s *grpc.Server, provider types.MercuryProvider)
- func RegisterProviderServicesV2(s *grpc.Server, provider types.MercuryProvider)
- func RegisterProviderServicesV3(s *grpc.Server, provider types.MercuryProvider)
- func RegisterProviderServicesV4(s *grpc.Server, provider types.MercuryProvider)
- type ProviderClient
- func (m *ProviderClient) ChainReader() types.ContractReader
- func (m *ProviderClient) MercuryChainReader() mercury.ChainReader
- func (m *ProviderClient) MercuryServerFetcher() mercury.ServerFetcher
- func (m *ProviderClient) OnchainConfigCodec() mercury.OnchainConfigCodec
- func (m *ProviderClient) ReportCodecV1() mercury_v1.ReportCodec
- func (m *ProviderClient) ReportCodecV2() mercury_v2.ReportCodec
- func (m *ProviderClient) ReportCodecV3() mercury_v3.ReportCodec
- func (m *ProviderClient) ReportCodecV4() mercury_v4.ReportCodec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProviderServices ¶
func RegisterProviderServices(s *grpc.Server, provider types.MercuryProvider)
RegisterProviderServices registers the Mercury services with the given gRPC server. It registers all versions of the report codec service and the version-agnostic services. It should used by default, unless you need to register a specific version of the report codec service.
func RegisterProviderServicesV1 ¶
func RegisterProviderServicesV1(s *grpc.Server, provider types.MercuryProvider)
RegisterProviderServicesV1 registers the Mercury services with the given gRPC server. It registers only the v1 version of the report codec service and the version-agnostic services. It should be used when you only need to register the v1 version of the report codec service, and will cause gRPC to return an unimplemented error for the v2 and v3 versions.
func RegisterProviderServicesV2 ¶
func RegisterProviderServicesV2(s *grpc.Server, provider types.MercuryProvider)
RegisterProviderServicesV2 registers the Mercury services with the given gRPC server. It registers only the v2 version of the report codec service and the version-agnostic services. It should be used when you only need to register the v2 version of the report codec service, and will cause gRPC to return an unimplemented error for the v1 and v3 versions.
func RegisterProviderServicesV3 ¶
func RegisterProviderServicesV3(s *grpc.Server, provider types.MercuryProvider)
RegisterProviderServicesV3 registers the Mercury services with the given gRPC server. It registers only the v3 version of the report codec service and the version-agnostic services. It should be used when you only need to register the v3 version of the report codec service, and will cause gRPC to return an unimplemented error for the v1 and v2 versions.
func RegisterProviderServicesV4 ¶ added in v0.2.2
func RegisterProviderServicesV4(s *grpc.Server, provider types.MercuryProvider)
RegisterProviderServicesV4 registers the Mercury services with the given gRPC server. It registers only the v4 version of the report codec service and the version-agnostic services. It should be used when you only need to register the v4 version of the report codec service, and will cause gRPC to return an unimplemented error for the v1 and v2 and v3 versions.
Types ¶
type ProviderClient ¶
type ProviderClient struct { *ocr2.PluginProviderClient // contains filtered or unexported fields }
func NewProviderClient ¶
func NewProviderClient(b *net.BrokerExt, cc grpc.ClientConnInterface) *ProviderClient
func (*ProviderClient) ChainReader ¶
func (m *ProviderClient) ChainReader() types.ContractReader
func (*ProviderClient) MercuryChainReader ¶
func (m *ProviderClient) MercuryChainReader() mercury.ChainReader
func (*ProviderClient) MercuryServerFetcher ¶
func (m *ProviderClient) MercuryServerFetcher() mercury.ServerFetcher
func (*ProviderClient) OnchainConfigCodec ¶
func (m *ProviderClient) OnchainConfigCodec() mercury.OnchainConfigCodec
func (*ProviderClient) ReportCodecV1 ¶
func (m *ProviderClient) ReportCodecV1() mercury_v1.ReportCodec
func (*ProviderClient) ReportCodecV2 ¶
func (m *ProviderClient) ReportCodecV2() mercury_v2.ReportCodec
func (*ProviderClient) ReportCodecV3 ¶
func (m *ProviderClient) ReportCodecV3() mercury_v3.ReportCodec
func (*ProviderClient) ReportCodecV4 ¶ added in v0.2.2
func (m *ProviderClient) ReportCodecV4() mercury_v4.ReportCodec