From ed8c94cdfe6fdbb9d9cd61436d63f7b0d7a2c389 Mon Sep 17 00:00:00 2001 From: Sam Davies Date: Fri, 21 Feb 2025 13:16:35 -0500 Subject: [PATCH 1/2] Upgrade protoc and re-generate --- Makefile | 4 +- pkg/beholder/pb/base_message.pb.go | 53 +- pkg/beholder/pb/example.pb.go | 57 +- .../ocr3/types/ocr3_config_types.pb.go | 49 +- .../consensus/ocr3/types/ocr3_types.pb.go | 280 +-- pkg/capabilities/pb/capabilities.pb.go | 487 ++---- pkg/capabilities/pb/capabilities_grpc.pb.go | 196 +-- pkg/capabilities/pb/registry.pb.go | 178 +- .../internal/pb/capabilities_registry.pb.go | 533 ++---- .../pb/capabilities_registry_grpc.pb.go | 57 +- pkg/loop/internal/pb/ccip/commitstore.pb.go | 818 +++------ .../internal/pb/ccip/commitstore_grpc.pb.go | 78 +- pkg/loop/internal/pb/ccip/factories.pb.go | 766 +++------ .../internal/pb/ccip/factories_grpc.pb.go | 156 +- .../internal/pb/ccip/gaspriceestimator.pb.go | 287 +--- .../pb/ccip/gaspriceestimator_grpc.pb.go | 82 +- pkg/loop/internal/pb/ccip/models.pb.go | 343 ++-- pkg/loop/internal/pb/ccip/offramp.pb.go | 867 +++------- pkg/loop/internal/pb/ccip/offramp_grpc.pb.go | 81 +- pkg/loop/internal/pb/ccip/onramp.pb.go | 340 +--- pkg/loop/internal/pb/ccip/onramp_grpc.pb.go | 57 +- pkg/loop/internal/pb/ccip/pricegetter.pb.go | 138 +- .../internal/pb/ccip/pricegetter_grpc.pb.go | 42 +- pkg/loop/internal/pb/ccip/priceregistry.pb.go | 502 ++---- .../internal/pb/ccip/priceregistry_grpc.pb.go | 57 +- pkg/loop/internal/pb/ccip/tokendata.pb.go | 80 +- .../internal/pb/ccip/tokendata_grpc.pb.go | 39 +- pkg/loop/internal/pb/ccip/tokenpool.pb.go | 82 +- .../internal/pb/ccip/tokenpool_grpc.pb.go | 39 +- pkg/loop/internal/pb/ccipocr3/models.pb.go | 332 +--- pkg/loop/internal/pb/ccipocr3/msghasher.pb.go | 78 +- .../internal/pb/ccipocr3/msghasher_grpc.pb.go | 38 +- .../internal/pb/ccipocr3/reportcodec.pb.go | 136 +- .../pb/ccipocr3/reportcodec_grpc.pb.go | 41 +- pkg/loop/internal/pb/codec.pb.go | 237 +-- pkg/loop/internal/pb/codec_grpc.pb.go | 36 +- pkg/loop/internal/pb/contract_reader.pb.go | 1154 ++++--------- .../internal/pb/contract_reader_grpc.pb.go | 48 +- pkg/loop/internal/pb/contract_writer.pb.go | 187 +- .../internal/pb/contract_writer_grpc.pb.go | 36 +- pkg/loop/internal/pb/keystore/keystore.pb.go | 787 +++------ .../internal/pb/keystore/keystore_grpc.pb.go | 66 +- pkg/loop/internal/pb/keyvalue_store.pb.go | 109 +- .../internal/pb/keyvalue_store_grpc.pb.go | 33 +- pkg/loop/internal/pb/median.pb.go | 598 ++----- pkg/loop/internal/pb/median_datasource.pb.go | 80 +- .../internal/pb/median_datasource_grpc.pb.go | 30 +- pkg/loop/internal/pb/median_grpc.pb.go | 134 +- .../internal/pb/mercury/mercury_loop.pb.go | 686 ++------ .../pb/mercury/mercury_loop_grpc.pb.go | 254 ++- .../internal/pb/mercury/mercury_plugin.pb.go | 348 ++-- .../pb/mercury/mercury_plugin_grpc.pb.go | 58 +- .../pb/mercury/v1/datasource_v1.pb.go | 160 +- .../pb/mercury/v1/datasource_v1_grpc.pb.go | 34 +- .../pb/mercury/v1/reportcodec_v1.pb.go | 243 +-- .../pb/mercury/v1/reportcodec_v1_grpc.pb.go | 40 +- .../pb/mercury/v2/datasource_v2.pb.go | 152 +- .../pb/mercury/v2/datasource_v2_grpc.pb.go | 34 +- .../pb/mercury/v2/reportcodec_v2.pb.go | 237 +-- .../pb/mercury/v2/reportcodec_v2_grpc.pb.go | 40 +- .../pb/mercury/v3/datasource_v3.pb.go | 156 +- .../pb/mercury/v3/datasource_v3_grpc.pb.go | 34 +- .../pb/mercury/v3/reportcodec_v3.pb.go | 241 +-- .../pb/mercury/v3/reportcodec_v3_grpc.pb.go | 44 +- .../pb/mercury/v4/datasource_v4.pb.go | 146 +- .../pb/mercury/v4/datasource_v4_grpc.pb.go | 34 +- .../pb/mercury/v4/reportcodec_v4.pb.go | 241 +-- .../pb/mercury/v4/reportcodec_v4_grpc.pb.go | 44 +- .../pb/ocr3/contract_transmitter.pb.go | 117 +- .../pb/ocr3/contract_transmitter_grpc.pb.go | 33 +- .../internal/pb/ocr3/ocr3_reporting.pb.go | 815 +++------ .../pb/ocr3/ocr3_reporting_grpc.pb.go | 76 +- pkg/loop/internal/pb/oracle/oracle.pb.go | 14 +- pkg/loop/internal/pb/oracle/oracle_grpc.pb.go | 33 +- .../pb/oraclefactory/oraclefactory.pb.go | 133 +- .../pb/oraclefactory/oraclefactory_grpc.pb.go | 30 +- pkg/loop/internal/pb/pipeline_runner.pb.go | 154 +- .../internal/pb/pipeline_runner_grpc.pb.go | 30 +- pkg/loop/internal/pb/relayer.pb.go | 1517 +++++------------ pkg/loop/internal/pb/relayer_grpc.pb.go | 210 ++- .../internal/pb/relayerset/relayerset.pb.go | 580 ++----- .../pb/relayerset/relayerset_grpc.pb.go | 60 +- pkg/loop/internal/pb/reporting.pb.go | 538 ++---- pkg/loop/internal/pb/reporting_grpc.pb.go | 67 +- .../pb/reporting_plugin_service.pb.go | 170 +- .../pb/reporting_plugin_service_grpc.pb.go | 33 +- pkg/loop/internal/pb/telemetry.pb.go | 86 +- pkg/loop/internal/pb/telemetry_grpc.pb.go | 30 +- pkg/loop/internal/pb/validate_config.pb.go | 75 +- .../internal/pb/validate_config_grpc.pb.go | 30 +- ...nreporting2_monitoring_median_config.pb.go | 59 +- ...eporting2_monitoring_offchain_config.pb.go | 84 +- pkg/values/pb/values.pb.go | 241 +-- pkg/workflows/wasm/pb/wasm.pb.go | 544 ++---- 94 files changed, 6648 insertions(+), 13245 deletions(-) diff --git a/Makefile b/Makefile index 804a6a441..664329430 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,8 @@ docs: .PHONY: install-protoc install-protoc: - script/install-protoc.sh 25.1 / - go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31; go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0 + script/install-protoc.sh 29.3 / + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36; go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5 .PHONY: mockery mockery: $(mockery) ## Install mockery. diff --git a/pkg/beholder/pb/base_message.pb.go b/pkg/beholder/pb/base_message.pb.go index c9a69c3b0..6f05654fd 100644 --- a/pkg/beholder/pb/base_message.pb.go +++ b/pkg/beholder/pb/base_message.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: beholder/pb/base_message.proto package pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -25,23 +26,20 @@ const ( // BaseMessage directly or extend it by adding use-case specific fields // NOTE: do not compose protos for Beholder until INFOPLAT-1386 is completed type BaseMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // https://protobuf.dev/programming-guides/proto3/#maps // In go: if Value is empty for a key, nothing will be serialized - Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BaseMessage) Reset() { *x = BaseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_beholder_pb_base_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_beholder_pb_base_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BaseMessage) String() string { @@ -52,7 +50,7 @@ func (*BaseMessage) ProtoMessage() {} func (x *BaseMessage) ProtoReflect() protoreflect.Message { mi := &file_beholder_pb_base_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -83,7 +81,7 @@ func (x *BaseMessage) GetLabels() map[string]string { var File_beholder_pb_base_message_proto protoreflect.FileDescriptor -var file_beholder_pb_base_message_proto_rawDesc = []byte{ +var file_beholder_pb_base_message_proto_rawDesc = string([]byte{ 0x0a, 0x1e, 0x62, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x8f, 0x01, 0x0a, 0x0b, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x73, @@ -100,22 +98,22 @@ var file_beholder_pb_base_message_proto_rawDesc = []byte{ 0x63, 0x74, 0x6b, 0x69, 0x74, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x62, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_beholder_pb_base_message_proto_rawDescOnce sync.Once - file_beholder_pb_base_message_proto_rawDescData = file_beholder_pb_base_message_proto_rawDesc + file_beholder_pb_base_message_proto_rawDescData []byte ) func file_beholder_pb_base_message_proto_rawDescGZIP() []byte { file_beholder_pb_base_message_proto_rawDescOnce.Do(func() { - file_beholder_pb_base_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_beholder_pb_base_message_proto_rawDescData) + file_beholder_pb_base_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_beholder_pb_base_message_proto_rawDesc), len(file_beholder_pb_base_message_proto_rawDesc))) }) return file_beholder_pb_base_message_proto_rawDescData } var file_beholder_pb_base_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_beholder_pb_base_message_proto_goTypes = []interface{}{ +var file_beholder_pb_base_message_proto_goTypes = []any{ (*BaseMessage)(nil), // 0: pb.BaseMessage nil, // 1: pb.BaseMessage.LabelsEntry } @@ -133,25 +131,11 @@ func file_beholder_pb_base_message_proto_init() { if File_beholder_pb_base_message_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_beholder_pb_base_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_beholder_pb_base_message_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_beholder_pb_base_message_proto_rawDesc), len(file_beholder_pb_base_message_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -162,7 +146,6 @@ func file_beholder_pb_base_message_proto_init() { MessageInfos: file_beholder_pb_base_message_proto_msgTypes, }.Build() File_beholder_pb_base_message_proto = out.File - file_beholder_pb_base_message_proto_rawDesc = nil file_beholder_pb_base_message_proto_goTypes = nil file_beholder_pb_base_message_proto_depIdxs = nil } diff --git a/pkg/beholder/pb/example.pb.go b/pkg/beholder/pb/example.pb.go index 8fb8b9574..06449f3f4 100644 --- a/pkg/beholder/pb/example.pb.go +++ b/pkg/beholder/pb/example.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: beholder/pb/example.proto package pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,24 +23,21 @@ const ( // Used for testing type TestCustomMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BoolVal bool `protobuf:"varint,1,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"` + IntVal int64 `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3" json:"int_val,omitempty"` + FloatVal float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"` + StringVal string `protobuf:"bytes,4,opt,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"` + BytesVal []byte `protobuf:"bytes,5,opt,name=bytes_val,json=bytesVal,proto3" json:"bytes_val,omitempty"` unknownFields protoimpl.UnknownFields - - BoolVal bool `protobuf:"varint,1,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"` - IntVal int64 `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3" json:"int_val,omitempty"` - FloatVal float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"` - StringVal string `protobuf:"bytes,4,opt,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"` - BytesVal []byte `protobuf:"bytes,5,opt,name=bytes_val,json=bytesVal,proto3" json:"bytes_val,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestCustomMessage) Reset() { *x = TestCustomMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_beholder_pb_example_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_beholder_pb_example_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestCustomMessage) String() string { @@ -50,7 +48,7 @@ func (*TestCustomMessage) ProtoMessage() {} func (x *TestCustomMessage) ProtoReflect() protoreflect.Message { mi := &file_beholder_pb_example_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -102,7 +100,7 @@ func (x *TestCustomMessage) GetBytesVal() []byte { var File_beholder_pb_example_proto protoreflect.FileDescriptor -var file_beholder_pb_example_proto_rawDesc = []byte{ +var file_beholder_pb_example_proto_rawDesc = string([]byte{ 0x0a, 0x19, 0x62, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xa0, 0x01, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x65, @@ -120,22 +118,22 @@ var file_beholder_pb_example_proto_rawDesc = []byte{ 0x74, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x62, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_beholder_pb_example_proto_rawDescOnce sync.Once - file_beholder_pb_example_proto_rawDescData = file_beholder_pb_example_proto_rawDesc + file_beholder_pb_example_proto_rawDescData []byte ) func file_beholder_pb_example_proto_rawDescGZIP() []byte { file_beholder_pb_example_proto_rawDescOnce.Do(func() { - file_beholder_pb_example_proto_rawDescData = protoimpl.X.CompressGZIP(file_beholder_pb_example_proto_rawDescData) + file_beholder_pb_example_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_beholder_pb_example_proto_rawDesc), len(file_beholder_pb_example_proto_rawDesc))) }) return file_beholder_pb_example_proto_rawDescData } var file_beholder_pb_example_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_beholder_pb_example_proto_goTypes = []interface{}{ +var file_beholder_pb_example_proto_goTypes = []any{ (*TestCustomMessage)(nil), // 0: pb.TestCustomMessage } var file_beholder_pb_example_proto_depIdxs = []int32{ @@ -151,25 +149,11 @@ func file_beholder_pb_example_proto_init() { if File_beholder_pb_example_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_beholder_pb_example_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestCustomMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_beholder_pb_example_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_beholder_pb_example_proto_rawDesc), len(file_beholder_pb_example_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, @@ -180,7 +164,6 @@ func file_beholder_pb_example_proto_init() { MessageInfos: file_beholder_pb_example_proto_msgTypes, }.Build() File_beholder_pb_example_proto = out.File - file_beholder_pb_example_proto_rawDesc = nil file_beholder_pb_example_proto_goTypes = nil file_beholder_pb_example_proto_depIdxs = nil } diff --git a/pkg/capabilities/consensus/ocr3/types/ocr3_config_types.pb.go b/pkg/capabilities/consensus/ocr3/types/ocr3_config_types.pb.go index 95cac3320..0ab3fc377 100644 --- a/pkg/capabilities/consensus/ocr3/types/ocr3_config_types.pb.go +++ b/pkg/capabilities/consensus/ocr3/types/ocr3_config_types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: capabilities/consensus/ocr3/types/ocr3_config_types.proto package types @@ -12,6 +12,7 @@ import ( durationpb "google.golang.org/protobuf/types/known/durationpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,10 +23,7 @@ const ( ) type ReportingPluginConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // These fields are shadowing the `ReportingPluginLimits` fields. // See: https://github.com/smartcontractkit/libocr/blob/master/offchainreporting2plus/ocr3types/plugin.go#L296 MaxQueryLengthBytes uint32 `protobuf:"varint,1,opt,name=maxQueryLengthBytes,proto3" json:"maxQueryLengthBytes,omitempty"` @@ -36,15 +34,15 @@ type ReportingPluginConfig struct { MaxBatchSize uint32 `protobuf:"varint,6,opt,name=maxBatchSize,proto3" json:"maxBatchSize,omitempty"` OutcomePruningThreshold uint64 `protobuf:"varint,7,opt,name=outcomePruningThreshold,proto3" json:"outcomePruningThreshold,omitempty"` RequestTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=requestTimeout,proto3" json:"requestTimeout,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportingPluginConfig) Reset() { *x = ReportingPluginConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingPluginConfig) String() string { @@ -55,7 +53,7 @@ func (*ReportingPluginConfig) ProtoMessage() {} func (x *ReportingPluginConfig) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -128,7 +126,7 @@ func (x *ReportingPluginConfig) GetRequestTimeout() *durationpb.Duration { var File_capabilities_consensus_ocr3_types_ocr3_config_types_proto protoreflect.FileDescriptor -var file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc = []byte{ +var file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc = string([]byte{ 0x0a, 0x39, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x6f, 0x63, 0x72, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6f, 0x63, 0x72, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, @@ -167,22 +165,22 @@ var file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc = []b 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x6f, 0x63, 0x72, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescOnce sync.Once - file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescData = file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc + file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescData []byte ) func file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescGZIP() []byte { file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescOnce.Do(func() { - file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescData) + file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc), len(file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc))) }) return file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDescData } var file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_goTypes = []interface{}{ +var file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_goTypes = []any{ (*ReportingPluginConfig)(nil), // 0: ocr3_config_types.ReportingPluginConfig (*durationpb.Duration)(nil), // 1: google.protobuf.Duration } @@ -200,25 +198,11 @@ func file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_init() { if File_capabilities_consensus_ocr3_types_ocr3_config_types_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportingPluginConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc), len(file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, @@ -229,7 +213,6 @@ func file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_init() { MessageInfos: file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_msgTypes, }.Build() File_capabilities_consensus_ocr3_types_ocr3_config_types_proto = out.File - file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_rawDesc = nil file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_goTypes = nil file_capabilities_consensus_ocr3_types_ocr3_config_types_proto_depIdxs = nil } diff --git a/pkg/capabilities/consensus/ocr3/types/ocr3_types.pb.go b/pkg/capabilities/consensus/ocr3/types/ocr3_types.pb.go index 05ad85bf7..210b2db76 100644 --- a/pkg/capabilities/consensus/ocr3/types/ocr3_types.pb.go +++ b/pkg/capabilities/consensus/ocr3/types/ocr3_types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: capabilities/consensus/ocr3/types/ocr3_types.proto package types @@ -13,6 +13,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,10 +25,7 @@ const ( // per-workflow aggregation outcome type AggregationOutcome struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` EncodableOutcome *pb.Map `protobuf:"bytes,1,opt,name=encodableOutcome,proto3" json:"encodableOutcome,omitempty"` // passed to encoders Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // internal to the aggregator ShouldReport bool `protobuf:"varint,3,opt,name=shouldReport,proto3" json:"shouldReport,omitempty"` @@ -35,15 +33,15 @@ type AggregationOutcome struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // current time of the node EncoderName string `protobuf:"bytes,6,opt,name=encoderName,proto3" json:"encoderName,omitempty"` // optional dynamic encoder override EncoderConfig *pb.Map `protobuf:"bytes,7,opt,name=encoderConfig,proto3" json:"encoderConfig,omitempty"` // optional dynamic encoder config + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AggregationOutcome) Reset() { *x = AggregationOutcome{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AggregationOutcome) String() string { @@ -54,7 +52,7 @@ func (*AggregationOutcome) ProtoMessage() {} func (x *AggregationOutcome) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -119,21 +117,18 @@ func (x *AggregationOutcome) GetEncoderConfig() *pb.Map { } type Query struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // the requests to get consensus on. - Ids []*Id `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` + Ids []*Id `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Query) Reset() { *x = Query{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Query) String() string { @@ -144,7 +139,7 @@ func (*Query) ProtoMessage() {} func (x *Query) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -167,27 +162,24 @@ func (x *Query) GetIds() []*Id { } type Id struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - WorkflowExecutionId string `protobuf:"bytes,1,opt,name=workflowExecutionId,proto3" json:"workflowExecutionId,omitempty"` - WorkflowId string `protobuf:"bytes,2,opt,name=workflowId,proto3" json:"workflowId,omitempty"` - WorkflowOwner string `protobuf:"bytes,3,opt,name=workflowOwner,proto3" json:"workflowOwner,omitempty"` - WorkflowName string `protobuf:"bytes,4,opt,name=workflowName,proto3" json:"workflowName,omitempty"` - ReportId string `protobuf:"bytes,6,opt,name=reportId,proto3" json:"reportId,omitempty"` - WorkflowDonId uint32 `protobuf:"varint,7,opt,name=workflowDonId,proto3" json:"workflowDonId,omitempty"` - WorkflowDonConfigVersion uint32 `protobuf:"varint,8,opt,name=workflowDonConfigVersion,proto3" json:"workflowDonConfigVersion,omitempty"` - KeyId string `protobuf:"bytes,9,opt,name=keyId,proto3" json:"keyId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + WorkflowExecutionId string `protobuf:"bytes,1,opt,name=workflowExecutionId,proto3" json:"workflowExecutionId,omitempty"` + WorkflowId string `protobuf:"bytes,2,opt,name=workflowId,proto3" json:"workflowId,omitempty"` + WorkflowOwner string `protobuf:"bytes,3,opt,name=workflowOwner,proto3" json:"workflowOwner,omitempty"` + WorkflowName string `protobuf:"bytes,4,opt,name=workflowName,proto3" json:"workflowName,omitempty"` + ReportId string `protobuf:"bytes,6,opt,name=reportId,proto3" json:"reportId,omitempty"` + WorkflowDonId uint32 `protobuf:"varint,7,opt,name=workflowDonId,proto3" json:"workflowDonId,omitempty"` + WorkflowDonConfigVersion uint32 `protobuf:"varint,8,opt,name=workflowDonConfigVersion,proto3" json:"workflowDonConfigVersion,omitempty"` + KeyId string `protobuf:"bytes,9,opt,name=keyId,proto3" json:"keyId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Id) Reset() { *x = Id{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Id) String() string { @@ -198,7 +190,7 @@ func (*Id) ProtoMessage() {} func (x *Id) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -270,24 +262,21 @@ func (x *Id) GetKeyId() string { } type Observation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *Id `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id *Id `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // list of observations defined in inputs.observations Observations *pb.List `protobuf:"bytes,4,opt,name=observations,proto3" json:"observations,omitempty"` OverriddenEncoderName string `protobuf:"bytes,5,opt,name=overriddenEncoderName,proto3" json:"overriddenEncoderName,omitempty"` OverriddenEncoderConfig *pb.Map `protobuf:"bytes,6,opt,name=overriddenEncoderConfig,proto3" json:"overriddenEncoderConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Observation) Reset() { *x = Observation{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Observation) String() string { @@ -298,7 +287,7 @@ func (*Observation) ProtoMessage() {} func (x *Observation) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -342,25 +331,22 @@ func (x *Observation) GetOverriddenEncoderConfig() *pb.Map { } type Observations struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // batched observations for multiple workflow execution IDs Observations []*Observation `protobuf:"bytes,1,rep,name=observations,proto3" json:"observations,omitempty"` // the workflow IDs that are registered in the node RegisteredWorkflowIds []string `protobuf:"bytes,2,rep,name=registeredWorkflowIds,proto3" json:"registeredWorkflowIds,omitempty"` // the node's current current time - Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Observations) Reset() { *x = Observations{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Observations) String() string { @@ -371,7 +357,7 @@ func (*Observations) ProtoMessage() {} func (x *Observations) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -408,21 +394,18 @@ func (x *Observations) GetTimestamp() *timestamppb.Timestamp { } type Report struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id *Id `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Outcome *AggregationOutcome `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` unknownFields protoimpl.UnknownFields - - Id *Id `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Outcome *AggregationOutcome `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Report) Reset() { *x = Report{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Report) String() string { @@ -433,7 +416,7 @@ func (*Report) ProtoMessage() {} func (x *Report) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -463,21 +446,18 @@ func (x *Report) GetOutcome() *AggregationOutcome { } type ReportInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id *Id `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ShouldReport bool `protobuf:"varint,2,opt,name=should_report,json=shouldReport,proto3" json:"should_report,omitempty"` unknownFields protoimpl.UnknownFields - - Id *Id `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ShouldReport bool `protobuf:"varint,2,opt,name=should_report,json=shouldReport,proto3" json:"should_report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReportInfo) Reset() { *x = ReportInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportInfo) String() string { @@ -488,7 +468,7 @@ func (*ReportInfo) ProtoMessage() {} func (x *ReportInfo) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -518,21 +498,18 @@ func (x *ReportInfo) GetShouldReport() bool { } type Outcome struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Outcomes map[string]*AggregationOutcome `protobuf:"bytes,1,rep,name=outcomes,proto3" json:"outcomes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + Outcomes map[string]*AggregationOutcome `protobuf:"bytes,1,rep,name=outcomes,proto3" json:"outcomes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` CurrentReports []*Report `protobuf:"bytes,2,rep,name=current_reports,json=currentReports,proto3" json:"current_reports,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Outcome) Reset() { *x = Outcome{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Outcome) String() string { @@ -543,7 +520,7 @@ func (*Outcome) ProtoMessage() {} func (x *Outcome) ProtoReflect() protoreflect.Message { mi := &file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -574,7 +551,7 @@ func (x *Outcome) GetCurrentReports() []*Report { var File_capabilities_consensus_ocr3_types_ocr3_types_proto protoreflect.FileDescriptor -var file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc = []byte{ +var file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc = string([]byte{ 0x0a, 0x32, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x6f, 0x63, 0x72, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6f, 0x63, 0x72, 0x33, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, @@ -680,22 +657,22 @@ var file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc = []byte{ 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x6f, 0x63, 0x72, 0x33, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescOnce sync.Once - file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescData = file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc + file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescData []byte ) func file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescGZIP() []byte { file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescOnce.Do(func() { - file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescData) + file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc), len(file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc))) }) return file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDescData } var file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_capabilities_consensus_ocr3_types_ocr3_types_proto_goTypes = []interface{}{ +var file_capabilities_consensus_ocr3_types_ocr3_types_proto_goTypes = []any{ (*AggregationOutcome)(nil), // 0: ocr3_types.AggregationOutcome (*Query)(nil), // 1: ocr3_types.Query (*Id)(nil), // 2: ocr3_types.Id @@ -737,109 +714,11 @@ func file_capabilities_consensus_ocr3_types_ocr3_types_proto_init() { if File_capabilities_consensus_ocr3_types_ocr3_types_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AggregationOutcome); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Query); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Id); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Observation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Observations); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Report); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Outcome); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc), len(file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, @@ -850,7 +729,6 @@ func file_capabilities_consensus_ocr3_types_ocr3_types_proto_init() { MessageInfos: file_capabilities_consensus_ocr3_types_ocr3_types_proto_msgTypes, }.Build() File_capabilities_consensus_ocr3_types_ocr3_types_proto = out.File - file_capabilities_consensus_ocr3_types_ocr3_types_proto_rawDesc = nil file_capabilities_consensus_ocr3_types_ocr3_types_proto_goTypes = nil file_capabilities_consensus_ocr3_types_ocr3_types_proto_depIdxs = nil } diff --git a/pkg/capabilities/pb/capabilities.pb.go b/pkg/capabilities/pb/capabilities.pb.go index e0c206f95..51f74b672 100644 --- a/pkg/capabilities/pb/capabilities.pb.go +++ b/pkg/capabilities/pb/capabilities.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: capabilities/pb/capabilities.proto package pb @@ -13,6 +13,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -78,24 +79,21 @@ func (CapabilityType) EnumDescriptor() ([]byte, []int) { } type CapabilityInfoReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CapabilityType CapabilityType `protobuf:"varint,2,opt,name=capability_type,json=capabilityType,proto3,enum=capabilities.CapabilityType" json:"capability_type,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - IsLocal bool `protobuf:"varint,5,opt,name=isLocal,proto3" json:"isLocal,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CapabilityType CapabilityType `protobuf:"varint,2,opt,name=capability_type,json=capabilityType,proto3,enum=capabilities.CapabilityType" json:"capability_type,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + IsLocal bool `protobuf:"varint,5,opt,name=isLocal,proto3" json:"isLocal,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CapabilityInfoReply) Reset() { *x = CapabilityInfoReply{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CapabilityInfoReply) String() string { @@ -106,7 +104,7 @@ func (*CapabilityInfoReply) ProtoMessage() {} func (x *CapabilityInfoReply) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -157,27 +155,24 @@ func (x *CapabilityInfoReply) GetIsLocal() bool { } type RequestMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - WorkflowExecutionId string `protobuf:"bytes,2,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` - WorkflowOwner string `protobuf:"bytes,3,opt,name=workflow_owner,json=workflowOwner,proto3" json:"workflow_owner,omitempty"` - WorkflowName string `protobuf:"bytes,4,opt,name=workflow_name,json=workflowName,proto3" json:"workflow_name,omitempty"` - WorkflowDonId uint32 `protobuf:"varint,6,opt,name=workflow_don_id,json=workflowDonId,proto3" json:"workflow_don_id,omitempty"` - WorkflowDonConfigVersion uint32 `protobuf:"varint,7,opt,name=workflow_don_config_version,json=workflowDonConfigVersion,proto3" json:"workflow_don_config_version,omitempty"` - ReferenceId string `protobuf:"bytes,8,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` - DecodedWorkflowName string `protobuf:"bytes,9,opt,name=decoded_workflow_name,json=decodedWorkflowName,proto3" json:"decoded_workflow_name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + WorkflowExecutionId string `protobuf:"bytes,2,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` + WorkflowOwner string `protobuf:"bytes,3,opt,name=workflow_owner,json=workflowOwner,proto3" json:"workflow_owner,omitempty"` + WorkflowName string `protobuf:"bytes,4,opt,name=workflow_name,json=workflowName,proto3" json:"workflow_name,omitempty"` + WorkflowDonId uint32 `protobuf:"varint,6,opt,name=workflow_don_id,json=workflowDonId,proto3" json:"workflow_don_id,omitempty"` + WorkflowDonConfigVersion uint32 `protobuf:"varint,7,opt,name=workflow_don_config_version,json=workflowDonConfigVersion,proto3" json:"workflow_don_config_version,omitempty"` + ReferenceId string `protobuf:"bytes,8,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + DecodedWorkflowName string `protobuf:"bytes,9,opt,name=decoded_workflow_name,json=decodedWorkflowName,proto3" json:"decoded_workflow_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RequestMetadata) Reset() { *x = RequestMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RequestMetadata) String() string { @@ -188,7 +183,7 @@ func (*RequestMetadata) ProtoMessage() {} func (x *RequestMetadata) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -260,22 +255,19 @@ func (x *RequestMetadata) GetDecodedWorkflowName() string { } type CapabilityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Metadata *RequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Config *pb.Map `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Inputs *pb.Map `protobuf:"bytes,3,opt,name=inputs,proto3" json:"inputs,omitempty"` unknownFields protoimpl.UnknownFields - - Metadata *RequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Config *pb.Map `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` - Inputs *pb.Map `protobuf:"bytes,3,opt,name=inputs,proto3" json:"inputs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CapabilityRequest) Reset() { *x = CapabilityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CapabilityRequest) String() string { @@ -286,7 +278,7 @@ func (*CapabilityRequest) ProtoMessage() {} func (x *CapabilityRequest) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -323,22 +315,19 @@ func (x *CapabilityRequest) GetInputs() *pb.Map { } type TriggerRegistrationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TriggerId string `protobuf:"bytes,1,opt,name=triggerId,proto3" json:"triggerId,omitempty"` + Metadata *RequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + Config *pb.Map `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - TriggerId string `protobuf:"bytes,1,opt,name=triggerId,proto3" json:"triggerId,omitempty"` - Metadata *RequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - Config *pb.Map `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TriggerRegistrationRequest) Reset() { *x = TriggerRegistrationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TriggerRegistrationRequest) String() string { @@ -349,7 +338,7 @@ func (*TriggerRegistrationRequest) ProtoMessage() {} func (x *TriggerRegistrationRequest) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -386,22 +375,19 @@ func (x *TriggerRegistrationRequest) GetConfig() *pb.Map { } type TriggerEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TriggerType string `protobuf:"bytes,1,opt,name=triggerType,proto3" json:"triggerType,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Outputs *pb.Map `protobuf:"bytes,4,opt,name=outputs,proto3" json:"outputs,omitempty"` unknownFields protoimpl.UnknownFields - - TriggerType string `protobuf:"bytes,1,opt,name=triggerType,proto3" json:"triggerType,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Outputs *pb.Map `protobuf:"bytes,4,opt,name=outputs,proto3" json:"outputs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TriggerEvent) Reset() { *x = TriggerEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TriggerEvent) String() string { @@ -412,7 +398,7 @@ func (*TriggerEvent) ProtoMessage() {} func (x *TriggerEvent) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -449,21 +435,18 @@ func (x *TriggerEvent) GetOutputs() *pb.Map { } type TriggerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Event *TriggerEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Event *TriggerEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TriggerResponse) Reset() { *x = TriggerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TriggerResponse) String() string { @@ -474,7 +457,7 @@ func (*TriggerResponse) ProtoMessage() {} func (x *TriggerResponse) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -504,24 +487,21 @@ func (x *TriggerResponse) GetError() string { } type TriggerResponseMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Message: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Message: // // *TriggerResponseMessage_Ack // *TriggerResponseMessage_Response - Message isTriggerResponseMessage_Message `protobuf_oneof:"message"` + Message isTriggerResponseMessage_Message `protobuf_oneof:"message"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TriggerResponseMessage) Reset() { *x = TriggerResponseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TriggerResponseMessage) String() string { @@ -532,7 +512,7 @@ func (*TriggerResponseMessage) ProtoMessage() {} func (x *TriggerResponseMessage) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -547,23 +527,27 @@ func (*TriggerResponseMessage) Descriptor() ([]byte, []int) { return file_capabilities_pb_capabilities_proto_rawDescGZIP(), []int{6} } -func (m *TriggerResponseMessage) GetMessage() isTriggerResponseMessage_Message { - if m != nil { - return m.Message +func (x *TriggerResponseMessage) GetMessage() isTriggerResponseMessage_Message { + if x != nil { + return x.Message } return nil } func (x *TriggerResponseMessage) GetAck() *emptypb.Empty { - if x, ok := x.GetMessage().(*TriggerResponseMessage_Ack); ok { - return x.Ack + if x != nil { + if x, ok := x.Message.(*TriggerResponseMessage_Ack); ok { + return x.Ack + } } return nil } func (x *TriggerResponseMessage) GetResponse() *TriggerResponse { - if x, ok := x.GetMessage().(*TriggerResponseMessage_Response); ok { - return x.Response + if x != nil { + if x, ok := x.Message.(*TriggerResponseMessage_Response); ok { + return x.Response + } } return nil } @@ -585,21 +569,18 @@ func (*TriggerResponseMessage_Ack) isTriggerResponseMessage_Message() {} func (*TriggerResponseMessage_Response) isTriggerResponseMessage_Message() {} type CapabilityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value *pb.Map `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Value *pb.Map `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CapabilityResponse) Reset() { *x = CapabilityResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CapabilityResponse) String() string { @@ -610,7 +591,7 @@ func (*CapabilityResponse) ProtoMessage() {} func (x *CapabilityResponse) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -640,22 +621,19 @@ func (x *CapabilityResponse) GetError() string { } type RegistrationMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + ReferenceId string `protobuf:"bytes,2,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + WorkflowOwner string `protobuf:"bytes,3,opt,name=workflow_owner,json=workflowOwner,proto3" json:"workflow_owner,omitempty"` unknownFields protoimpl.UnknownFields - - WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - ReferenceId string `protobuf:"bytes,2,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` - WorkflowOwner string `protobuf:"bytes,3,opt,name=workflow_owner,json=workflowOwner,proto3" json:"workflow_owner,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RegistrationMetadata) Reset() { *x = RegistrationMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegistrationMetadata) String() string { @@ -666,7 +644,7 @@ func (*RegistrationMetadata) ProtoMessage() {} func (x *RegistrationMetadata) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -703,21 +681,18 @@ func (x *RegistrationMetadata) GetWorkflowOwner() string { } type RegisterToWorkflowRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Metadata *RegistrationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Config *pb.Map `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Metadata *RegistrationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Config *pb.Map `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RegisterToWorkflowRequest) Reset() { *x = RegisterToWorkflowRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegisterToWorkflowRequest) String() string { @@ -728,7 +703,7 @@ func (*RegisterToWorkflowRequest) ProtoMessage() {} func (x *RegisterToWorkflowRequest) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -758,21 +733,18 @@ func (x *RegisterToWorkflowRequest) GetConfig() *pb.Map { } type UnregisterFromWorkflowRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Metadata *RegistrationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Config *pb.Map `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Metadata *RegistrationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Config *pb.Map `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UnregisterFromWorkflowRequest) Reset() { *x = UnregisterFromWorkflowRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnregisterFromWorkflowRequest) String() string { @@ -783,7 +755,7 @@ func (*UnregisterFromWorkflowRequest) ProtoMessage() {} func (x *UnregisterFromWorkflowRequest) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -813,27 +785,24 @@ func (x *UnregisterFromWorkflowRequest) GetConfig() *pb.Map { } type InitialiseRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` - ErrorLogId uint32 `protobuf:"varint,2,opt,name=error_log_id,json=errorLogId,proto3" json:"error_log_id,omitempty"` - PipelineRunnerId uint32 `protobuf:"varint,3,opt,name=pipeline_runner_id,json=pipelineRunnerId,proto3" json:"pipeline_runner_id,omitempty"` - TelemetryId uint32 `protobuf:"varint,4,opt,name=telemetry_id,json=telemetryId,proto3" json:"telemetry_id,omitempty"` - CapRegistryId uint32 `protobuf:"varint,5,opt,name=capRegistry_id,json=capRegistryId,proto3" json:"capRegistry_id,omitempty"` - KeyValueStoreId uint32 `protobuf:"varint,6,opt,name=keyValueStore_id,json=keyValueStoreId,proto3" json:"keyValueStore_id,omitempty"` - RelayerSetId uint32 `protobuf:"varint,7,opt,name=relayer_set_id,json=relayerSetId,proto3" json:"relayer_set_id,omitempty"` - OracleFactoryId uint32 `protobuf:"varint,8,opt,name=oracle_factory_id,json=oracleFactoryId,proto3" json:"oracle_factory_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + ErrorLogId uint32 `protobuf:"varint,2,opt,name=error_log_id,json=errorLogId,proto3" json:"error_log_id,omitempty"` + PipelineRunnerId uint32 `protobuf:"varint,3,opt,name=pipeline_runner_id,json=pipelineRunnerId,proto3" json:"pipeline_runner_id,omitempty"` + TelemetryId uint32 `protobuf:"varint,4,opt,name=telemetry_id,json=telemetryId,proto3" json:"telemetry_id,omitempty"` + CapRegistryId uint32 `protobuf:"varint,5,opt,name=capRegistry_id,json=capRegistryId,proto3" json:"capRegistry_id,omitempty"` + KeyValueStoreId uint32 `protobuf:"varint,6,opt,name=keyValueStore_id,json=keyValueStoreId,proto3" json:"keyValueStore_id,omitempty"` + RelayerSetId uint32 `protobuf:"varint,7,opt,name=relayer_set_id,json=relayerSetId,proto3" json:"relayer_set_id,omitempty"` + OracleFactoryId uint32 `protobuf:"varint,8,opt,name=oracle_factory_id,json=oracleFactoryId,proto3" json:"oracle_factory_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InitialiseRequest) Reset() { *x = InitialiseRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InitialiseRequest) String() string { @@ -844,7 +813,7 @@ func (*InitialiseRequest) ProtoMessage() {} func (x *InitialiseRequest) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -916,20 +885,17 @@ func (x *InitialiseRequest) GetOracleFactoryId() uint32 { } type CapabilityInfosReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Infos []*CapabilityInfoReply `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"` unknownFields protoimpl.UnknownFields - - Infos []*CapabilityInfoReply `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CapabilityInfosReply) Reset() { *x = CapabilityInfosReply{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_capabilities_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_capabilities_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CapabilityInfosReply) String() string { @@ -940,7 +906,7 @@ func (*CapabilityInfosReply) ProtoMessage() {} func (x *CapabilityInfosReply) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_capabilities_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -964,7 +930,7 @@ func (x *CapabilityInfosReply) GetInfos() []*CapabilityInfoReply { var File_capabilities_pb_capabilities_proto protoreflect.FileDescriptor -var file_capabilities_pb_capabilities_proto_rawDesc = []byte{ +var file_capabilities_pb_capabilities_proto_rawDesc = string([]byte{ 0x0a, 0x22, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, @@ -1166,23 +1132,23 @@ var file_capabilities_pb_capabilities_proto_rawDesc = []byte{ 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_capabilities_pb_capabilities_proto_rawDescOnce sync.Once - file_capabilities_pb_capabilities_proto_rawDescData = file_capabilities_pb_capabilities_proto_rawDesc + file_capabilities_pb_capabilities_proto_rawDescData []byte ) func file_capabilities_pb_capabilities_proto_rawDescGZIP() []byte { file_capabilities_pb_capabilities_proto_rawDescOnce.Do(func() { - file_capabilities_pb_capabilities_proto_rawDescData = protoimpl.X.CompressGZIP(file_capabilities_pb_capabilities_proto_rawDescData) + file_capabilities_pb_capabilities_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_capabilities_pb_capabilities_proto_rawDesc), len(file_capabilities_pb_capabilities_proto_rawDesc))) }) return file_capabilities_pb_capabilities_proto_rawDescData } var file_capabilities_pb_capabilities_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_capabilities_pb_capabilities_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_capabilities_pb_capabilities_proto_goTypes = []interface{}{ +var file_capabilities_pb_capabilities_proto_goTypes = []any{ (CapabilityType)(0), // 0: capabilities.CapabilityType (*CapabilityInfoReply)(nil), // 1: capabilities.CapabilityInfoReply (*RequestMetadata)(nil), // 2: capabilities.RequestMetadata @@ -1245,165 +1211,7 @@ func file_capabilities_pb_capabilities_proto_init() { if File_capabilities_pb_capabilities_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_capabilities_pb_capabilities_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CapabilityInfoReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CapabilityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TriggerRegistrationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TriggerEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TriggerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TriggerResponseMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CapabilityResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegistrationMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegisterToWorkflowRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnregisterFromWorkflowRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitialiseRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_capabilities_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CapabilityInfosReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_capabilities_pb_capabilities_proto_msgTypes[6].OneofWrappers = []interface{}{ + file_capabilities_pb_capabilities_proto_msgTypes[6].OneofWrappers = []any{ (*TriggerResponseMessage_Ack)(nil), (*TriggerResponseMessage_Response)(nil), } @@ -1411,7 +1219,7 @@ func file_capabilities_pb_capabilities_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_capabilities_pb_capabilities_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_capabilities_pb_capabilities_proto_rawDesc), len(file_capabilities_pb_capabilities_proto_rawDesc)), NumEnums: 1, NumMessages: 13, NumExtensions: 0, @@ -1423,7 +1231,6 @@ func file_capabilities_pb_capabilities_proto_init() { MessageInfos: file_capabilities_pb_capabilities_proto_msgTypes, }.Build() File_capabilities_pb_capabilities_proto = out.File - file_capabilities_pb_capabilities_proto_rawDesc = nil file_capabilities_pb_capabilities_proto_goTypes = nil file_capabilities_pb_capabilities_proto_depIdxs = nil } diff --git a/pkg/capabilities/pb/capabilities_grpc.pb.go b/pkg/capabilities/pb/capabilities_grpc.pb.go index 672a3f07c..d15aa5f04 100644 --- a/pkg/capabilities/pb/capabilities_grpc.pb.go +++ b/pkg/capabilities/pb/capabilities_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: capabilities/pb/capabilities.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( BaseCapability_Info_FullMethodName = "/capabilities.BaseCapability/Info" @@ -39,8 +39,9 @@ func NewBaseCapabilityClient(cc grpc.ClientConnInterface) BaseCapabilityClient { } func (c *baseCapabilityClient) Info(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CapabilityInfoReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CapabilityInfoReply) - err := c.cc.Invoke(ctx, BaseCapability_Info_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, BaseCapability_Info_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,20 +50,24 @@ func (c *baseCapabilityClient) Info(ctx context.Context, in *emptypb.Empty, opts // BaseCapabilityServer is the server API for BaseCapability service. // All implementations must embed UnimplementedBaseCapabilityServer -// for forward compatibility +// for forward compatibility. type BaseCapabilityServer interface { Info(context.Context, *emptypb.Empty) (*CapabilityInfoReply, error) mustEmbedUnimplementedBaseCapabilityServer() } -// UnimplementedBaseCapabilityServer must be embedded to have forward compatible implementations. -type UnimplementedBaseCapabilityServer struct { -} +// UnimplementedBaseCapabilityServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedBaseCapabilityServer struct{} func (UnimplementedBaseCapabilityServer) Info(context.Context, *emptypb.Empty) (*CapabilityInfoReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") } func (UnimplementedBaseCapabilityServer) mustEmbedUnimplementedBaseCapabilityServer() {} +func (UnimplementedBaseCapabilityServer) testEmbeddedByValue() {} // UnsafeBaseCapabilityServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BaseCapabilityServer will @@ -72,6 +77,13 @@ type UnsafeBaseCapabilityServer interface { } func RegisterBaseCapabilityServer(s grpc.ServiceRegistrar, srv BaseCapabilityServer) { + // If the following call pancis, it indicates UnimplementedBaseCapabilityServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&BaseCapability_ServiceDesc, srv) } @@ -118,7 +130,7 @@ const ( // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type TriggerExecutableClient interface { - RegisterTrigger(ctx context.Context, in *TriggerRegistrationRequest, opts ...grpc.CallOption) (TriggerExecutable_RegisterTriggerClient, error) + RegisterTrigger(ctx context.Context, in *TriggerRegistrationRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TriggerResponseMessage], error) UnregisterTrigger(ctx context.Context, in *TriggerRegistrationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) } @@ -130,12 +142,13 @@ func NewTriggerExecutableClient(cc grpc.ClientConnInterface) TriggerExecutableCl return &triggerExecutableClient{cc} } -func (c *triggerExecutableClient) RegisterTrigger(ctx context.Context, in *TriggerRegistrationRequest, opts ...grpc.CallOption) (TriggerExecutable_RegisterTriggerClient, error) { - stream, err := c.cc.NewStream(ctx, &TriggerExecutable_ServiceDesc.Streams[0], TriggerExecutable_RegisterTrigger_FullMethodName, opts...) +func (c *triggerExecutableClient) RegisterTrigger(ctx context.Context, in *TriggerRegistrationRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TriggerResponseMessage], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TriggerExecutable_ServiceDesc.Streams[0], TriggerExecutable_RegisterTrigger_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &triggerExecutableRegisterTriggerClient{stream} + x := &grpc.GenericClientStream[TriggerRegistrationRequest, TriggerResponseMessage]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -145,26 +158,13 @@ func (c *triggerExecutableClient) RegisterTrigger(ctx context.Context, in *Trigg return x, nil } -type TriggerExecutable_RegisterTriggerClient interface { - Recv() (*TriggerResponseMessage, error) - grpc.ClientStream -} - -type triggerExecutableRegisterTriggerClient struct { - grpc.ClientStream -} - -func (x *triggerExecutableRegisterTriggerClient) Recv() (*TriggerResponseMessage, error) { - m := new(TriggerResponseMessage) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TriggerExecutable_RegisterTriggerClient = grpc.ServerStreamingClient[TriggerResponseMessage] func (c *triggerExecutableClient) UnregisterTrigger(ctx context.Context, in *TriggerRegistrationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, TriggerExecutable_UnregisterTrigger_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TriggerExecutable_UnregisterTrigger_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -173,24 +173,28 @@ func (c *triggerExecutableClient) UnregisterTrigger(ctx context.Context, in *Tri // TriggerExecutableServer is the server API for TriggerExecutable service. // All implementations must embed UnimplementedTriggerExecutableServer -// for forward compatibility +// for forward compatibility. type TriggerExecutableServer interface { - RegisterTrigger(*TriggerRegistrationRequest, TriggerExecutable_RegisterTriggerServer) error + RegisterTrigger(*TriggerRegistrationRequest, grpc.ServerStreamingServer[TriggerResponseMessage]) error UnregisterTrigger(context.Context, *TriggerRegistrationRequest) (*emptypb.Empty, error) mustEmbedUnimplementedTriggerExecutableServer() } -// UnimplementedTriggerExecutableServer must be embedded to have forward compatible implementations. -type UnimplementedTriggerExecutableServer struct { -} +// UnimplementedTriggerExecutableServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTriggerExecutableServer struct{} -func (UnimplementedTriggerExecutableServer) RegisterTrigger(*TriggerRegistrationRequest, TriggerExecutable_RegisterTriggerServer) error { +func (UnimplementedTriggerExecutableServer) RegisterTrigger(*TriggerRegistrationRequest, grpc.ServerStreamingServer[TriggerResponseMessage]) error { return status.Errorf(codes.Unimplemented, "method RegisterTrigger not implemented") } func (UnimplementedTriggerExecutableServer) UnregisterTrigger(context.Context, *TriggerRegistrationRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UnregisterTrigger not implemented") } func (UnimplementedTriggerExecutableServer) mustEmbedUnimplementedTriggerExecutableServer() {} +func (UnimplementedTriggerExecutableServer) testEmbeddedByValue() {} // UnsafeTriggerExecutableServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TriggerExecutableServer will @@ -200,6 +204,13 @@ type UnsafeTriggerExecutableServer interface { } func RegisterTriggerExecutableServer(s grpc.ServiceRegistrar, srv TriggerExecutableServer) { + // If the following call pancis, it indicates UnimplementedTriggerExecutableServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TriggerExecutable_ServiceDesc, srv) } @@ -208,21 +219,11 @@ func _TriggerExecutable_RegisterTrigger_Handler(srv interface{}, stream grpc.Ser if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TriggerExecutableServer).RegisterTrigger(m, &triggerExecutableRegisterTriggerServer{stream}) + return srv.(TriggerExecutableServer).RegisterTrigger(m, &grpc.GenericServerStream[TriggerRegistrationRequest, TriggerResponseMessage]{ServerStream: stream}) } -type TriggerExecutable_RegisterTriggerServer interface { - Send(*TriggerResponseMessage) error - grpc.ServerStream -} - -type triggerExecutableRegisterTriggerServer struct { - grpc.ServerStream -} - -func (x *triggerExecutableRegisterTriggerServer) Send(m *TriggerResponseMessage) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TriggerExecutable_RegisterTriggerServer = grpc.ServerStreamingServer[TriggerResponseMessage] func _TriggerExecutable_UnregisterTrigger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TriggerRegistrationRequest) @@ -276,7 +277,7 @@ const ( type ExecutableClient interface { RegisterToWorkflow(ctx context.Context, in *RegisterToWorkflowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UnregisterFromWorkflow(ctx context.Context, in *UnregisterFromWorkflowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - Execute(ctx context.Context, in *CapabilityRequest, opts ...grpc.CallOption) (Executable_ExecuteClient, error) + Execute(ctx context.Context, in *CapabilityRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[CapabilityResponse], error) } type executableClient struct { @@ -288,8 +289,9 @@ func NewExecutableClient(cc grpc.ClientConnInterface) ExecutableClient { } func (c *executableClient) RegisterToWorkflow(ctx context.Context, in *RegisterToWorkflowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Executable_RegisterToWorkflow_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Executable_RegisterToWorkflow_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -297,20 +299,22 @@ func (c *executableClient) RegisterToWorkflow(ctx context.Context, in *RegisterT } func (c *executableClient) UnregisterFromWorkflow(ctx context.Context, in *UnregisterFromWorkflowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Executable_UnregisterFromWorkflow_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Executable_UnregisterFromWorkflow_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *executableClient) Execute(ctx context.Context, in *CapabilityRequest, opts ...grpc.CallOption) (Executable_ExecuteClient, error) { - stream, err := c.cc.NewStream(ctx, &Executable_ServiceDesc.Streams[0], Executable_Execute_FullMethodName, opts...) +func (c *executableClient) Execute(ctx context.Context, in *CapabilityRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[CapabilityResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Executable_ServiceDesc.Streams[0], Executable_Execute_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &executableExecuteClient{stream} + x := &grpc.GenericClientStream[CapabilityRequest, CapabilityResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -320,36 +324,25 @@ func (c *executableClient) Execute(ctx context.Context, in *CapabilityRequest, o return x, nil } -type Executable_ExecuteClient interface { - Recv() (*CapabilityResponse, error) - grpc.ClientStream -} - -type executableExecuteClient struct { - grpc.ClientStream -} - -func (x *executableExecuteClient) Recv() (*CapabilityResponse, error) { - m := new(CapabilityResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Executable_ExecuteClient = grpc.ServerStreamingClient[CapabilityResponse] // ExecutableServer is the server API for Executable service. // All implementations must embed UnimplementedExecutableServer -// for forward compatibility +// for forward compatibility. type ExecutableServer interface { RegisterToWorkflow(context.Context, *RegisterToWorkflowRequest) (*emptypb.Empty, error) UnregisterFromWorkflow(context.Context, *UnregisterFromWorkflowRequest) (*emptypb.Empty, error) - Execute(*CapabilityRequest, Executable_ExecuteServer) error + Execute(*CapabilityRequest, grpc.ServerStreamingServer[CapabilityResponse]) error mustEmbedUnimplementedExecutableServer() } -// UnimplementedExecutableServer must be embedded to have forward compatible implementations. -type UnimplementedExecutableServer struct { -} +// UnimplementedExecutableServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExecutableServer struct{} func (UnimplementedExecutableServer) RegisterToWorkflow(context.Context, *RegisterToWorkflowRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterToWorkflow not implemented") @@ -357,10 +350,11 @@ func (UnimplementedExecutableServer) RegisterToWorkflow(context.Context, *Regist func (UnimplementedExecutableServer) UnregisterFromWorkflow(context.Context, *UnregisterFromWorkflowRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UnregisterFromWorkflow not implemented") } -func (UnimplementedExecutableServer) Execute(*CapabilityRequest, Executable_ExecuteServer) error { +func (UnimplementedExecutableServer) Execute(*CapabilityRequest, grpc.ServerStreamingServer[CapabilityResponse]) error { return status.Errorf(codes.Unimplemented, "method Execute not implemented") } func (UnimplementedExecutableServer) mustEmbedUnimplementedExecutableServer() {} +func (UnimplementedExecutableServer) testEmbeddedByValue() {} // UnsafeExecutableServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExecutableServer will @@ -370,6 +364,13 @@ type UnsafeExecutableServer interface { } func RegisterExecutableServer(s grpc.ServiceRegistrar, srv ExecutableServer) { + // If the following call pancis, it indicates UnimplementedExecutableServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Executable_ServiceDesc, srv) } @@ -414,21 +415,11 @@ func _Executable_Execute_Handler(srv interface{}, stream grpc.ServerStream) erro if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ExecutableServer).Execute(m, &executableExecuteServer{stream}) + return srv.(ExecutableServer).Execute(m, &grpc.GenericServerStream[CapabilityRequest, CapabilityResponse]{ServerStream: stream}) } -type Executable_ExecuteServer interface { - Send(*CapabilityResponse) error - grpc.ServerStream -} - -type executableExecuteServer struct { - grpc.ServerStream -} - -func (x *executableExecuteServer) Send(m *CapabilityResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Executable_ExecuteServer = grpc.ServerStreamingServer[CapabilityResponse] // Executable_ServiceDesc is the grpc.ServiceDesc for Executable service. // It's only intended for direct use with grpc.RegisterService, @@ -478,8 +469,9 @@ func NewStandardCapabilitiesClient(cc grpc.ClientConnInterface) StandardCapabili } func (c *standardCapabilitiesClient) Initialise(ctx context.Context, in *InitialiseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, StandardCapabilities_Initialise_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, StandardCapabilities_Initialise_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -487,8 +479,9 @@ func (c *standardCapabilitiesClient) Initialise(ctx context.Context, in *Initial } func (c *standardCapabilitiesClient) Infos(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CapabilityInfosReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CapabilityInfosReply) - err := c.cc.Invoke(ctx, StandardCapabilities_Infos_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, StandardCapabilities_Infos_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -497,16 +490,19 @@ func (c *standardCapabilitiesClient) Infos(ctx context.Context, in *emptypb.Empt // StandardCapabilitiesServer is the server API for StandardCapabilities service. // All implementations must embed UnimplementedStandardCapabilitiesServer -// for forward compatibility +// for forward compatibility. type StandardCapabilitiesServer interface { Initialise(context.Context, *InitialiseRequest) (*emptypb.Empty, error) Infos(context.Context, *emptypb.Empty) (*CapabilityInfosReply, error) mustEmbedUnimplementedStandardCapabilitiesServer() } -// UnimplementedStandardCapabilitiesServer must be embedded to have forward compatible implementations. -type UnimplementedStandardCapabilitiesServer struct { -} +// UnimplementedStandardCapabilitiesServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedStandardCapabilitiesServer struct{} func (UnimplementedStandardCapabilitiesServer) Initialise(context.Context, *InitialiseRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Initialise not implemented") @@ -515,6 +511,7 @@ func (UnimplementedStandardCapabilitiesServer) Infos(context.Context, *emptypb.E return nil, status.Errorf(codes.Unimplemented, "method Infos not implemented") } func (UnimplementedStandardCapabilitiesServer) mustEmbedUnimplementedStandardCapabilitiesServer() {} +func (UnimplementedStandardCapabilitiesServer) testEmbeddedByValue() {} // UnsafeStandardCapabilitiesServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to StandardCapabilitiesServer will @@ -524,6 +521,13 @@ type UnsafeStandardCapabilitiesServer interface { } func RegisterStandardCapabilitiesServer(s grpc.ServiceRegistrar, srv StandardCapabilitiesServer) { + // If the following call pancis, it indicates UnimplementedStandardCapabilitiesServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&StandardCapabilities_ServiceDesc, srv) } diff --git a/pkg/capabilities/pb/registry.pb.go b/pkg/capabilities/pb/registry.pb.go index 0e8d005ab..59a33f5b8 100644 --- a/pkg/capabilities/pb/registry.pb.go +++ b/pkg/capabilities/pb/registry.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: capabilities/pb/registry.proto package pb @@ -13,6 +13,7 @@ import ( durationpb "google.golang.org/protobuf/types/known/durationpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,25 +24,22 @@ const ( ) type RemoteTriggerConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RegistrationRefresh *durationpb.Duration `protobuf:"bytes,1,opt,name=registrationRefresh,proto3" json:"registrationRefresh,omitempty"` - RegistrationExpiry *durationpb.Duration `protobuf:"bytes,2,opt,name=registrationExpiry,proto3" json:"registrationExpiry,omitempty"` - MinResponsesToAggregate uint32 `protobuf:"varint,3,opt,name=minResponsesToAggregate,proto3" json:"minResponsesToAggregate,omitempty"` - MessageExpiry *durationpb.Duration `protobuf:"bytes,4,opt,name=messageExpiry,proto3" json:"messageExpiry,omitempty"` - MaxBatchSize uint32 `protobuf:"varint,5,opt,name=maxBatchSize,proto3" json:"maxBatchSize,omitempty"` - BatchCollectionPeriod *durationpb.Duration `protobuf:"bytes,6,opt,name=batchCollectionPeriod,proto3" json:"batchCollectionPeriod,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RegistrationRefresh *durationpb.Duration `protobuf:"bytes,1,opt,name=registrationRefresh,proto3" json:"registrationRefresh,omitempty"` + RegistrationExpiry *durationpb.Duration `protobuf:"bytes,2,opt,name=registrationExpiry,proto3" json:"registrationExpiry,omitempty"` + MinResponsesToAggregate uint32 `protobuf:"varint,3,opt,name=minResponsesToAggregate,proto3" json:"minResponsesToAggregate,omitempty"` + MessageExpiry *durationpb.Duration `protobuf:"bytes,4,opt,name=messageExpiry,proto3" json:"messageExpiry,omitempty"` + MaxBatchSize uint32 `protobuf:"varint,5,opt,name=maxBatchSize,proto3" json:"maxBatchSize,omitempty"` + BatchCollectionPeriod *durationpb.Duration `protobuf:"bytes,6,opt,name=batchCollectionPeriod,proto3" json:"batchCollectionPeriod,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoteTriggerConfig) Reset() { *x = RemoteTriggerConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_registry_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_registry_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteTriggerConfig) String() string { @@ -52,7 +50,7 @@ func (*RemoteTriggerConfig) ProtoMessage() {} func (x *RemoteTriggerConfig) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_registry_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -110,23 +108,20 @@ func (x *RemoteTriggerConfig) GetBatchCollectionPeriod() *durationpb.Duration { } type RemoteTargetConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // A collection of dot seperated paths to attributes that should be excluded from the request sent to the remote target // when calculating the hash of the request. This is useful for excluding attributes that are not deterministic to ensure // that the hash of logically identical requests is consistent. RequestHashExcludedAttributes []string `protobuf:"bytes,1,rep,name=requestHashExcludedAttributes,proto3" json:"requestHashExcludedAttributes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoteTargetConfig) Reset() { *x = RemoteTargetConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_registry_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_registry_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteTargetConfig) String() string { @@ -137,7 +132,7 @@ func (*RemoteTargetConfig) ProtoMessage() {} func (x *RemoteTargetConfig) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_registry_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -160,25 +155,22 @@ func (x *RemoteTargetConfig) GetRequestHashExcludedAttributes() []string { } type RemoteExecutableConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // A collection of dot seperated paths to attributes that should be excluded from the request sent to the remote executable capability // when calculating the hash of the request. This is useful for excluding attributes that are not deterministic to ensure // that the hash of logically identical requests is consistent. RequestHashExcludedAttributes []string `protobuf:"bytes,1,rep,name=requestHashExcludedAttributes,proto3" json:"requestHashExcludedAttributes,omitempty"` RegistrationRefresh *durationpb.Duration `protobuf:"bytes,2,opt,name=registrationRefresh,proto3" json:"registrationRefresh,omitempty"` RegistrationExpiry *durationpb.Duration `protobuf:"bytes,3,opt,name=registrationExpiry,proto3" json:"registrationExpiry,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoteExecutableConfig) Reset() { *x = RemoteExecutableConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_registry_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_registry_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteExecutableConfig) String() string { @@ -189,7 +181,7 @@ func (*RemoteExecutableConfig) ProtoMessage() {} func (x *RemoteExecutableConfig) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_registry_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -226,12 +218,9 @@ func (x *RemoteExecutableConfig) GetRegistrationExpiry() *durationpb.Duration { } type CapabilityConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DefaultConfig *pb.Map `protobuf:"bytes,1,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` - // Types that are assignable to RemoteConfig: + state protoimpl.MessageState `protogen:"open.v1"` + DefaultConfig *pb.Map `protobuf:"bytes,1,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"` + // Types that are valid to be assigned to RemoteConfig: // // *CapabilityConfig_RemoteTriggerConfig // *CapabilityConfig_RemoteTargetConfig @@ -239,15 +228,15 @@ type CapabilityConfig struct { RemoteConfig isCapabilityConfig_RemoteConfig `protobuf_oneof:"remote_config"` RestrictedConfig *pb.Map `protobuf:"bytes,5,opt,name=restricted_config,json=restrictedConfig,proto3" json:"restricted_config,omitempty"` RestrictedKeys []string `protobuf:"bytes,6,rep,name=restricted_keys,json=restrictedKeys,proto3" json:"restricted_keys,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CapabilityConfig) Reset() { *x = CapabilityConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_capabilities_pb_registry_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_capabilities_pb_registry_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CapabilityConfig) String() string { @@ -258,7 +247,7 @@ func (*CapabilityConfig) ProtoMessage() {} func (x *CapabilityConfig) ProtoReflect() protoreflect.Message { mi := &file_capabilities_pb_registry_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -280,30 +269,36 @@ func (x *CapabilityConfig) GetDefaultConfig() *pb.Map { return nil } -func (m *CapabilityConfig) GetRemoteConfig() isCapabilityConfig_RemoteConfig { - if m != nil { - return m.RemoteConfig +func (x *CapabilityConfig) GetRemoteConfig() isCapabilityConfig_RemoteConfig { + if x != nil { + return x.RemoteConfig } return nil } func (x *CapabilityConfig) GetRemoteTriggerConfig() *RemoteTriggerConfig { - if x, ok := x.GetRemoteConfig().(*CapabilityConfig_RemoteTriggerConfig); ok { - return x.RemoteTriggerConfig + if x != nil { + if x, ok := x.RemoteConfig.(*CapabilityConfig_RemoteTriggerConfig); ok { + return x.RemoteTriggerConfig + } } return nil } func (x *CapabilityConfig) GetRemoteTargetConfig() *RemoteTargetConfig { - if x, ok := x.GetRemoteConfig().(*CapabilityConfig_RemoteTargetConfig); ok { - return x.RemoteTargetConfig + if x != nil { + if x, ok := x.RemoteConfig.(*CapabilityConfig_RemoteTargetConfig); ok { + return x.RemoteTargetConfig + } } return nil } func (x *CapabilityConfig) GetRemoteExecutableConfig() *RemoteExecutableConfig { - if x, ok := x.GetRemoteConfig().(*CapabilityConfig_RemoteExecutableConfig); ok { - return x.RemoteExecutableConfig + if x != nil { + if x, ok := x.RemoteConfig.(*CapabilityConfig_RemoteExecutableConfig); ok { + return x.RemoteExecutableConfig + } } return nil } @@ -346,7 +341,7 @@ func (*CapabilityConfig_RemoteExecutableConfig) isCapabilityConfig_RemoteConfig( var File_capabilities_pb_registry_proto protoreflect.FileDescriptor -var file_capabilities_pb_registry_proto_rawDesc = []byte{ +var file_capabilities_pb_registry_proto_rawDesc = string([]byte{ 0x0a, 0x1e, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x62, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x16, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x70, @@ -433,22 +428,22 @@ var file_capabilities_pb_registry_proto_rawDesc = []byte{ 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_capabilities_pb_registry_proto_rawDescOnce sync.Once - file_capabilities_pb_registry_proto_rawDescData = file_capabilities_pb_registry_proto_rawDesc + file_capabilities_pb_registry_proto_rawDescData []byte ) func file_capabilities_pb_registry_proto_rawDescGZIP() []byte { file_capabilities_pb_registry_proto_rawDescOnce.Do(func() { - file_capabilities_pb_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_capabilities_pb_registry_proto_rawDescData) + file_capabilities_pb_registry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_capabilities_pb_registry_proto_rawDesc), len(file_capabilities_pb_registry_proto_rawDesc))) }) return file_capabilities_pb_registry_proto_rawDescData } var file_capabilities_pb_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_capabilities_pb_registry_proto_goTypes = []interface{}{ +var file_capabilities_pb_registry_proto_goTypes = []any{ (*RemoteTriggerConfig)(nil), // 0: loop.RemoteTriggerConfig (*RemoteTargetConfig)(nil), // 1: loop.RemoteTargetConfig (*RemoteExecutableConfig)(nil), // 2: loop.RemoteExecutableConfig @@ -480,57 +475,7 @@ func file_capabilities_pb_registry_proto_init() { if File_capabilities_pb_registry_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_capabilities_pb_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteTriggerConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteTargetConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_registry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteExecutableConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_capabilities_pb_registry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CapabilityConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_capabilities_pb_registry_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_capabilities_pb_registry_proto_msgTypes[3].OneofWrappers = []any{ (*CapabilityConfig_RemoteTriggerConfig)(nil), (*CapabilityConfig_RemoteTargetConfig)(nil), (*CapabilityConfig_RemoteExecutableConfig)(nil), @@ -539,7 +484,7 @@ func file_capabilities_pb_registry_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_capabilities_pb_registry_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_capabilities_pb_registry_proto_rawDesc), len(file_capabilities_pb_registry_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -550,7 +495,6 @@ func file_capabilities_pb_registry_proto_init() { MessageInfos: file_capabilities_pb_registry_proto_msgTypes, }.Build() File_capabilities_pb_registry_proto = out.File - file_capabilities_pb_registry_proto_rawDesc = nil file_capabilities_pb_registry_proto_goTypes = nil file_capabilities_pb_registry_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/capabilities_registry.pb.go b/pkg/loop/internal/pb/capabilities_registry.pb.go index 513b9c993..03b092c33 100644 --- a/pkg/loop/internal/pb/capabilities_registry.pb.go +++ b/pkg/loop/internal/pb/capabilities_registry.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: loop/internal/pb/capabilities_registry.proto package pb @@ -13,6 +13,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -73,23 +74,20 @@ func (ExecuteAPIType) EnumDescriptor() ([]byte, []int) { // DON has arguments for [github.com/smartcontractkit/chainlink-common/pkg/capabilities.DON]. type DON struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Members [][]byte `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` // [n][32]byte where n is the number of members + F uint32 `protobuf:"varint,3,opt,name=f,proto3" json:"f,omitempty"` // uint8 + ConfigVersion uint32 `protobuf:"varint,4,opt,name=configVersion,proto3" json:"configVersion,omitempty"` unknownFields protoimpl.UnknownFields - - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Members [][]byte `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` // [n][32]byte where n is the number of members - F uint32 `protobuf:"varint,3,opt,name=f,proto3" json:"f,omitempty"` // uint8 - ConfigVersion uint32 `protobuf:"varint,4,opt,name=configVersion,proto3" json:"configVersion,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DON) Reset() { *x = DON{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DON) String() string { @@ -100,7 +98,7 @@ func (*DON) ProtoMessage() {} func (x *DON) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -145,22 +143,19 @@ func (x *DON) GetConfigVersion() uint32 { // LocalNode has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.LocalNode]. type LocalNodeReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PeerID []byte `protobuf:"bytes,1,opt,name=peerID,proto3" json:"peerID,omitempty"` // [32]byte - WorkflowDON *DON `protobuf:"bytes,2,opt,name=workflowDON,proto3" json:"workflowDON,omitempty"` - CapabilityDONs []*DON `protobuf:"bytes,3,rep,name=CapabilityDONs,proto3" json:"CapabilityDONs,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PeerID []byte `protobuf:"bytes,1,opt,name=peerID,proto3" json:"peerID,omitempty"` // [32]byte + WorkflowDON *DON `protobuf:"bytes,2,opt,name=workflowDON,proto3" json:"workflowDON,omitempty"` + CapabilityDONs []*DON `protobuf:"bytes,3,rep,name=CapabilityDONs,proto3" json:"CapabilityDONs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LocalNodeReply) Reset() { *x = LocalNodeReply{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LocalNodeReply) String() string { @@ -171,7 +166,7 @@ func (*LocalNodeReply) ProtoMessage() {} func (x *LocalNodeReply) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -209,20 +204,17 @@ func (x *LocalNodeReply) GetCapabilityDONs() []*DON { // Get has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.Get]. type GetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRequest) Reset() { *x = GetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRequest) String() string { @@ -233,7 +225,7 @@ func (*GetRequest) ProtoMessage() {} func (x *GetRequest) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -257,21 +249,18 @@ func (x *GetRequest) GetId() string { // GetReply has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.Get], expressed as a capabilityID (this is a GRPC connectionID internal to go-hashicorp-plugin) and type indicating client wrapper that we need to use on the client side. type GetReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` + Type ExecuteAPIType `protobuf:"varint,2,opt,name=type,proto3,enum=loop.ExecuteAPIType" json:"type,omitempty"` unknownFields protoimpl.UnknownFields - - CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` - Type ExecuteAPIType `protobuf:"varint,2,opt,name=type,proto3,enum=loop.ExecuteAPIType" json:"type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetReply) Reset() { *x = GetReply{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetReply) String() string { @@ -282,7 +271,7 @@ func (*GetReply) ProtoMessage() {} func (x *GetReply) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -313,20 +302,17 @@ func (x *GetReply) GetType() ExecuteAPIType { // GetTrigger has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.GetTrigger]. type GetTriggerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTriggerRequest) Reset() { *x = GetTriggerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTriggerRequest) String() string { @@ -337,7 +323,7 @@ func (*GetTriggerRequest) ProtoMessage() {} func (x *GetTriggerRequest) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -361,20 +347,17 @@ func (x *GetTriggerRequest) GetId() string { // GetTriggerReply has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.GetTrigger], expressed as a capabilityID (this is a GRPC connectionID internal to go-hashicorp-plugin). type GetTriggerReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` unknownFields protoimpl.UnknownFields - - CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTriggerReply) Reset() { *x = GetTriggerReply{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTriggerReply) String() string { @@ -385,7 +368,7 @@ func (*GetTriggerReply) ProtoMessage() {} func (x *GetTriggerReply) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -409,20 +392,17 @@ func (x *GetTriggerReply) GetCapabilityID() uint32 { // GetAction has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.GetAction]. type GetActionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetActionRequest) Reset() { *x = GetActionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetActionRequest) String() string { @@ -433,7 +413,7 @@ func (*GetActionRequest) ProtoMessage() {} func (x *GetActionRequest) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -457,20 +437,17 @@ func (x *GetActionRequest) GetId() string { // GetActionReply has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.GetTrigger], expressed as a capabilityID (this is a GRPC connectionID internal to go-hashicorp-plugin). type GetActionReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` unknownFields protoimpl.UnknownFields - - CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetActionReply) Reset() { *x = GetActionReply{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetActionReply) String() string { @@ -481,7 +458,7 @@ func (*GetActionReply) ProtoMessage() {} func (x *GetActionReply) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -505,20 +482,17 @@ func (x *GetActionReply) GetCapabilityID() uint32 { // GetConsensus has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.GetConsensus]. type GetConsensusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetConsensusRequest) Reset() { *x = GetConsensusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetConsensusRequest) String() string { @@ -529,7 +503,7 @@ func (*GetConsensusRequest) ProtoMessage() {} func (x *GetConsensusRequest) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -553,20 +527,17 @@ func (x *GetConsensusRequest) GetId() string { // GetConsensusReply has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.GetTrigger], expressed as a capabilityID (this is a GRPC connectionID internal to go-hashicorp-plugin). type GetConsensusReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` unknownFields protoimpl.UnknownFields - - CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetConsensusReply) Reset() { *x = GetConsensusReply{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetConsensusReply) String() string { @@ -577,7 +548,7 @@ func (*GetConsensusReply) ProtoMessage() {} func (x *GetConsensusReply) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -601,20 +572,17 @@ func (x *GetConsensusReply) GetCapabilityID() uint32 { // GetTarget has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.GetTarget]. type GetTargetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTargetRequest) Reset() { *x = GetTargetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTargetRequest) String() string { @@ -625,7 +593,7 @@ func (*GetTargetRequest) ProtoMessage() {} func (x *GetTargetRequest) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -649,20 +617,17 @@ func (x *GetTargetRequest) GetId() string { // ListReply has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.List], expressed as a capabilityID (this is a GRPC connectionID internal to go-hashicorp-plugin). type ListReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityID []uint32 `protobuf:"varint,1,rep,packed,name=capabilityID,proto3" json:"capabilityID,omitempty"` unknownFields protoimpl.UnknownFields - - CapabilityID []uint32 `protobuf:"varint,1,rep,packed,name=capabilityID,proto3" json:"capabilityID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListReply) Reset() { *x = ListReply{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListReply) String() string { @@ -673,7 +638,7 @@ func (*ListReply) ProtoMessage() {} func (x *ListReply) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -697,20 +662,17 @@ func (x *ListReply) GetCapabilityID() []uint32 { // GetTargetReply has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.GetTrigger], expressed as a capabilityID (this is a GRPC connectionID internal to go-hashicorp-plugin). type GetTargetReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` unknownFields protoimpl.UnknownFields - - CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTargetReply) Reset() { *x = GetTargetReply{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTargetReply) String() string { @@ -721,7 +683,7 @@ func (*GetTargetReply) ProtoMessage() {} func (x *GetTargetReply) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -745,21 +707,18 @@ func (x *GetTargetReply) GetCapabilityID() uint32 { // Add has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.Add]. type AddRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` + Type ExecuteAPIType `protobuf:"varint,2,opt,name=type,proto3,enum=loop.ExecuteAPIType" json:"type,omitempty"` unknownFields protoimpl.UnknownFields - - CapabilityID uint32 `protobuf:"varint,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` - Type ExecuteAPIType `protobuf:"varint,2,opt,name=type,proto3,enum=loop.ExecuteAPIType" json:"type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddRequest) Reset() { *x = AddRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddRequest) String() string { @@ -770,7 +729,7 @@ func (*AddRequest) ProtoMessage() {} func (x *AddRequest) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -801,20 +760,17 @@ func (x *AddRequest) GetType() ExecuteAPIType { // Remove has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.CapabilitiesRegistry.Remove]. type RemoveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveRequest) Reset() { *x = RemoveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveRequest) String() string { @@ -825,7 +781,7 @@ func (*RemoveRequest) ProtoMessage() {} func (x *RemoveRequest) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -848,21 +804,18 @@ func (x *RemoveRequest) GetId() string { } type ConfigForCapabilityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityID string `protobuf:"bytes,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` + DonID uint32 `protobuf:"varint,2,opt,name=donID,proto3" json:"donID,omitempty"` unknownFields protoimpl.UnknownFields - - CapabilityID string `protobuf:"bytes,1,opt,name=capabilityID,proto3" json:"capabilityID,omitempty"` - DonID uint32 `protobuf:"varint,2,opt,name=donID,proto3" json:"donID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConfigForCapabilityRequest) Reset() { *x = ConfigForCapabilityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigForCapabilityRequest) String() string { @@ -873,7 +826,7 @@ func (*ConfigForCapabilityRequest) ProtoMessage() {} func (x *ConfigForCapabilityRequest) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -903,20 +856,17 @@ func (x *ConfigForCapabilityRequest) GetDonID() uint32 { } type ConfigForCapabilityReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CapabilityConfig *pb.CapabilityConfig `protobuf:"bytes,1,opt,name=capability_config,json=capabilityConfig,proto3" json:"capability_config,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + CapabilityConfig *pb.CapabilityConfig `protobuf:"bytes,1,opt,name=capability_config,json=capabilityConfig,proto3" json:"capability_config,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ConfigForCapabilityReply) Reset() { *x = ConfigForCapabilityReply{} - if protoimpl.UnsafeEnabled { - mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigForCapabilityReply) String() string { @@ -927,7 +877,7 @@ func (*ConfigForCapabilityReply) ProtoMessage() {} func (x *ConfigForCapabilityReply) ProtoReflect() protoreflect.Message { mi := &file_loop_internal_pb_capabilities_registry_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -951,7 +901,7 @@ func (x *ConfigForCapabilityReply) GetCapabilityConfig() *pb.CapabilityConfig { var File_loop_internal_pb_capabilities_registry_proto protoreflect.FileDescriptor -var file_loop_internal_pb_capabilities_registry_proto_rawDesc = []byte{ +var file_loop_internal_pb_capabilities_registry_proto_rawDesc = string([]byte{ 0x0a, 0x2c, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, @@ -1079,23 +1029,23 @@ var file_loop_internal_pb_capabilities_registry_proto_rawDesc = []byte{ 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_loop_internal_pb_capabilities_registry_proto_rawDescOnce sync.Once - file_loop_internal_pb_capabilities_registry_proto_rawDescData = file_loop_internal_pb_capabilities_registry_proto_rawDesc + file_loop_internal_pb_capabilities_registry_proto_rawDescData []byte ) func file_loop_internal_pb_capabilities_registry_proto_rawDescGZIP() []byte { file_loop_internal_pb_capabilities_registry_proto_rawDescOnce.Do(func() { - file_loop_internal_pb_capabilities_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_loop_internal_pb_capabilities_registry_proto_rawDescData) + file_loop_internal_pb_capabilities_registry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_loop_internal_pb_capabilities_registry_proto_rawDesc), len(file_loop_internal_pb_capabilities_registry_proto_rawDesc))) }) return file_loop_internal_pb_capabilities_registry_proto_rawDescData } var file_loop_internal_pb_capabilities_registry_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_loop_internal_pb_capabilities_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_loop_internal_pb_capabilities_registry_proto_goTypes = []interface{}{ +var file_loop_internal_pb_capabilities_registry_proto_goTypes = []any{ (ExecuteAPIType)(0), // 0: loop.ExecuteAPIType (*DON)(nil), // 1: loop.DON (*LocalNodeReply)(nil), // 2: loop.LocalNodeReply @@ -1155,217 +1105,11 @@ func file_loop_internal_pb_capabilities_registry_proto_init() { if File_loop_internal_pb_capabilities_registry_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_loop_internal_pb_capabilities_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DON); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LocalNodeReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTriggerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTriggerReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetActionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetActionReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConsensusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConsensusReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTargetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTargetReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigForCapabilityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_loop_internal_pb_capabilities_registry_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigForCapabilityReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_loop_internal_pb_capabilities_registry_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_loop_internal_pb_capabilities_registry_proto_rawDesc), len(file_loop_internal_pb_capabilities_registry_proto_rawDesc)), NumEnums: 1, NumMessages: 17, NumExtensions: 0, @@ -1377,7 +1121,6 @@ func file_loop_internal_pb_capabilities_registry_proto_init() { MessageInfos: file_loop_internal_pb_capabilities_registry_proto_msgTypes, }.Build() File_loop_internal_pb_capabilities_registry_proto = out.File - file_loop_internal_pb_capabilities_registry_proto_rawDesc = nil file_loop_internal_pb_capabilities_registry_proto_goTypes = nil file_loop_internal_pb_capabilities_registry_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/capabilities_registry_grpc.pb.go b/pkg/loop/internal/pb/capabilities_registry_grpc.pb.go index 6bba79252..23e655ab7 100644 --- a/pkg/loop/internal/pb/capabilities_registry_grpc.pb.go +++ b/pkg/loop/internal/pb/capabilities_registry_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: loop/internal/pb/capabilities_registry.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CapabilitiesRegistry_LocalNode_FullMethodName = "/loop.CapabilitiesRegistry/LocalNode" @@ -57,8 +57,9 @@ func NewCapabilitiesRegistryClient(cc grpc.ClientConnInterface) CapabilitiesRegi } func (c *capabilitiesRegistryClient) LocalNode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*LocalNodeReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LocalNodeReply) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_LocalNode_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_LocalNode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -66,8 +67,9 @@ func (c *capabilitiesRegistryClient) LocalNode(ctx context.Context, in *emptypb. } func (c *capabilitiesRegistryClient) ConfigForCapability(ctx context.Context, in *ConfigForCapabilityRequest, opts ...grpc.CallOption) (*ConfigForCapabilityReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ConfigForCapabilityReply) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_ConfigForCapability_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_ConfigForCapability_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +77,9 @@ func (c *capabilitiesRegistryClient) ConfigForCapability(ctx context.Context, in } func (c *capabilitiesRegistryClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetReply) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_Get_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_Get_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -84,8 +87,9 @@ func (c *capabilitiesRegistryClient) Get(ctx context.Context, in *GetRequest, op } func (c *capabilitiesRegistryClient) GetTrigger(ctx context.Context, in *GetTriggerRequest, opts ...grpc.CallOption) (*GetTriggerReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTriggerReply) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_GetTrigger_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_GetTrigger_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,8 +97,9 @@ func (c *capabilitiesRegistryClient) GetTrigger(ctx context.Context, in *GetTrig } func (c *capabilitiesRegistryClient) GetAction(ctx context.Context, in *GetActionRequest, opts ...grpc.CallOption) (*GetActionReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetActionReply) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_GetAction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_GetAction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -102,8 +107,9 @@ func (c *capabilitiesRegistryClient) GetAction(ctx context.Context, in *GetActio } func (c *capabilitiesRegistryClient) GetConsensus(ctx context.Context, in *GetConsensusRequest, opts ...grpc.CallOption) (*GetConsensusReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetConsensusReply) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_GetConsensus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_GetConsensus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -111,8 +117,9 @@ func (c *capabilitiesRegistryClient) GetConsensus(ctx context.Context, in *GetCo } func (c *capabilitiesRegistryClient) GetTarget(ctx context.Context, in *GetTargetRequest, opts ...grpc.CallOption) (*GetTargetReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTargetReply) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_GetTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_GetTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -120,8 +127,9 @@ func (c *capabilitiesRegistryClient) GetTarget(ctx context.Context, in *GetTarge } func (c *capabilitiesRegistryClient) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListReply) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_List_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_List_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -129,8 +137,9 @@ func (c *capabilitiesRegistryClient) List(ctx context.Context, in *emptypb.Empty } func (c *capabilitiesRegistryClient) Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_Add_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_Add_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -138,8 +147,9 @@ func (c *capabilitiesRegistryClient) Add(ctx context.Context, in *AddRequest, op } func (c *capabilitiesRegistryClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, CapabilitiesRegistry_Remove_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CapabilitiesRegistry_Remove_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -148,7 +158,7 @@ func (c *capabilitiesRegistryClient) Remove(ctx context.Context, in *RemoveReque // CapabilitiesRegistryServer is the server API for CapabilitiesRegistry service. // All implementations must embed UnimplementedCapabilitiesRegistryServer -// for forward compatibility +// for forward compatibility. type CapabilitiesRegistryServer interface { LocalNode(context.Context, *emptypb.Empty) (*LocalNodeReply, error) ConfigForCapability(context.Context, *ConfigForCapabilityRequest) (*ConfigForCapabilityReply, error) @@ -163,9 +173,12 @@ type CapabilitiesRegistryServer interface { mustEmbedUnimplementedCapabilitiesRegistryServer() } -// UnimplementedCapabilitiesRegistryServer must be embedded to have forward compatible implementations. -type UnimplementedCapabilitiesRegistryServer struct { -} +// UnimplementedCapabilitiesRegistryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCapabilitiesRegistryServer struct{} func (UnimplementedCapabilitiesRegistryServer) LocalNode(context.Context, *emptypb.Empty) (*LocalNodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method LocalNode not implemented") @@ -198,6 +211,7 @@ func (UnimplementedCapabilitiesRegistryServer) Remove(context.Context, *RemoveRe return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") } func (UnimplementedCapabilitiesRegistryServer) mustEmbedUnimplementedCapabilitiesRegistryServer() {} +func (UnimplementedCapabilitiesRegistryServer) testEmbeddedByValue() {} // UnsafeCapabilitiesRegistryServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CapabilitiesRegistryServer will @@ -207,6 +221,13 @@ type UnsafeCapabilitiesRegistryServer interface { } func RegisterCapabilitiesRegistryServer(s grpc.ServiceRegistrar, srv CapabilitiesRegistryServer) { + // If the following call pancis, it indicates UnimplementedCapabilitiesRegistryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CapabilitiesRegistry_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/commitstore.pb.go b/pkg/loop/internal/pb/ccip/commitstore.pb.go index df2c5f39a..f054046d5 100644 --- a/pkg/loop/internal/pb/ccip/commitstore.pb.go +++ b/pkg/loop/internal/pb/ccip/commitstore.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: commitstore.proto package ccippb @@ -14,6 +14,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -26,20 +27,17 @@ const ( // GetExpectedNextSequenceNumberResponse returns the expected next sequence number. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetExpectedNextSequenceNumber] type GetExpectedNextSequenceNumberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SequenceNumber uint64 `protobuf:"varint,1,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SequenceNumber uint64 `protobuf:"varint,1,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetExpectedNextSequenceNumberResponse) Reset() { *x = GetExpectedNextSequenceNumberResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetExpectedNextSequenceNumberResponse) String() string { @@ -50,7 +48,7 @@ func (*GetExpectedNextSequenceNumberResponse) ProtoMessage() {} func (x *GetExpectedNextSequenceNumberResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -75,20 +73,17 @@ func (x *GetExpectedNextSequenceNumberResponse) GetSequenceNumber() uint64 { // GetLatestPriceEpochAndRoundResponse returns the latest price epoch and round. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetLatestPriceEpochAndRound] type GetLatestPriceEpochAndRoundResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EpochAndRound uint64 `protobuf:"varint,1,opt,name=epoch_and_round,json=epochAndRound,proto3" json:"epoch_and_round,omitempty"` unknownFields protoimpl.UnknownFields - - EpochAndRound uint64 `protobuf:"varint,1,opt,name=epoch_and_round,json=epochAndRound,proto3" json:"epoch_and_round,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetLatestPriceEpochAndRoundResponse) Reset() { *x = GetLatestPriceEpochAndRoundResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLatestPriceEpochAndRoundResponse) String() string { @@ -99,7 +94,7 @@ func (*GetLatestPriceEpochAndRoundResponse) ProtoMessage() {} func (x *GetLatestPriceEpochAndRoundResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -124,21 +119,18 @@ func (x *GetLatestPriceEpochAndRoundResponse) GetEpochAndRound() uint64 { // GetCommitReportMatchingSequenceNumberRequest is a gRPC adapter to the input values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetCommitReportMatchingSeqNum] type GetCommitReportMatchingSequenceNumberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SequenceNumber uint64 `protobuf:"varint,1,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` - Confirmations uint64 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SequenceNumber uint64 `protobuf:"varint,1,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + Confirmations uint64 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCommitReportMatchingSequenceNumberRequest) Reset() { *x = GetCommitReportMatchingSequenceNumberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCommitReportMatchingSequenceNumberRequest) String() string { @@ -149,7 +141,7 @@ func (*GetCommitReportMatchingSequenceNumberRequest) ProtoMessage() {} func (x *GetCommitReportMatchingSequenceNumberRequest) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -181,20 +173,17 @@ func (x *GetCommitReportMatchingSequenceNumberRequest) GetConfirmations() uint64 // GetCommitReportMatchingSequenceNumberResponse returns the commit store reports matching the sequence number. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetCommitReportMatchingSeqNum] type GetCommitReportMatchingSequenceNumberResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Reports []*CommitStoreReportWithTxMeta `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` unknownFields protoimpl.UnknownFields - - Reports []*CommitStoreReportWithTxMeta `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCommitReportMatchingSequenceNumberResponse) Reset() { *x = GetCommitReportMatchingSequenceNumberResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCommitReportMatchingSequenceNumberResponse) String() string { @@ -205,7 +194,7 @@ func (*GetCommitReportMatchingSequenceNumberResponse) ProtoMessage() {} func (x *GetCommitReportMatchingSequenceNumberResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -230,21 +219,18 @@ func (x *GetCommitReportMatchingSequenceNumberResponse) GetReports() []*CommitSt // GetAcceptedCommitReportsGteTimestampRequest is a gRPC adapter to the input values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetAcceptedCommitReportsGteTimestamp] type GetAcceptedCommitReportsGteTimestampRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Confirmations uint64 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAcceptedCommitReportsGteTimestampRequest) Reset() { *x = GetAcceptedCommitReportsGteTimestampRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAcceptedCommitReportsGteTimestampRequest) String() string { @@ -255,7 +241,7 @@ func (*GetAcceptedCommitReportsGteTimestampRequest) ProtoMessage() {} func (x *GetAcceptedCommitReportsGteTimestampRequest) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -287,20 +273,17 @@ func (x *GetAcceptedCommitReportsGteTimestampRequest) GetConfirmations() uint64 // GetAcceptedCommitReportsGteTimestampResponse returns the accepted commit store reports matching the timestamp. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetAcceptedCommitReportsGteTimestamp] type GetAcceptedCommitReportsGteTimestampResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Reports []*CommitStoreReportWithTxMeta `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` unknownFields protoimpl.UnknownFields - - Reports []*CommitStoreReportWithTxMeta `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAcceptedCommitReportsGteTimestampResponse) Reset() { *x = GetAcceptedCommitReportsGteTimestampResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAcceptedCommitReportsGteTimestampResponse) String() string { @@ -311,7 +294,7 @@ func (*GetAcceptedCommitReportsGteTimestampResponse) ProtoMessage() {} func (x *GetAcceptedCommitReportsGteTimestampResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -336,20 +319,17 @@ func (x *GetAcceptedCommitReportsGteTimestampResponse) GetReports() []*CommitSto // IsDownResponse returns whether the commit store is down. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.IsDown] type IsDownResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IsDown bool `protobuf:"varint,1,opt,name=is_down,json=isDown,proto3" json:"is_down,omitempty"` unknownFields protoimpl.UnknownFields - - IsDown bool `protobuf:"varint,1,opt,name=is_down,json=isDown,proto3" json:"is_down,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IsDownResponse) Reset() { *x = IsDownResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IsDownResponse) String() string { @@ -360,7 +340,7 @@ func (*IsDownResponse) ProtoMessage() {} func (x *IsDownResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -385,20 +365,17 @@ func (x *IsDownResponse) GetIsDown() bool { // IsBlessedRequest is a gRPC adapter to the input values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.IsBlessed] type IsBlessedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Root []byte `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` // [32]byte unknownFields protoimpl.UnknownFields - - Root []byte `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` // [32]byte + sizeCache protoimpl.SizeCache } func (x *IsBlessedRequest) Reset() { *x = IsBlessedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IsBlessedRequest) String() string { @@ -409,7 +386,7 @@ func (*IsBlessedRequest) ProtoMessage() {} func (x *IsBlessedRequest) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -434,20 +411,17 @@ func (x *IsBlessedRequest) GetRoot() []byte { // IsBlessedResponse returns whether the commit store is blessed. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.IsBlessed] type IsBlessedResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IsBlessed bool `protobuf:"varint,1,opt,name=is_blessed,json=isBlessed,proto3" json:"is_blessed,omitempty"` unknownFields protoimpl.UnknownFields - - IsBlessed bool `protobuf:"varint,1,opt,name=is_blessed,json=isBlessed,proto3" json:"is_blessed,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IsBlessedResponse) Reset() { *x = IsBlessedResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IsBlessedResponse) String() string { @@ -458,7 +432,7 @@ func (*IsBlessedResponse) ProtoMessage() {} func (x *IsBlessedResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -483,21 +457,18 @@ func (x *IsBlessedResponse) GetIsBlessed() bool { // CommitStoreChangeConfigRequest is a gRPC adapter to the input values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.ChangeConfig] type CommitStoreChangeConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OnchainConfig []byte `protobuf:"bytes,1,opt,name=onchain_config,json=onchainConfig,proto3" json:"onchain_config,omitempty"` - OffchainConfig []byte `protobuf:"bytes,2,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfig []byte `protobuf:"bytes,1,opt,name=onchain_config,json=onchainConfig,proto3" json:"onchain_config,omitempty"` + OffchainConfig []byte `protobuf:"bytes,2,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitStoreChangeConfigRequest) Reset() { *x = CommitStoreChangeConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitStoreChangeConfigRequest) String() string { @@ -508,7 +479,7 @@ func (*CommitStoreChangeConfigRequest) ProtoMessage() {} func (x *CommitStoreChangeConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -540,20 +511,17 @@ func (x *CommitStoreChangeConfigRequest) GetOffchainConfig() []byte { // CommitStoreChangeConfigResponse returns the address of the commit store. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.ChangeConfig] type CommitStoreChangeConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Address unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Address + sizeCache protoimpl.SizeCache } func (x *CommitStoreChangeConfigResponse) Reset() { *x = CommitStoreChangeConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitStoreChangeConfigResponse) String() string { @@ -564,7 +532,7 @@ func (*CommitStoreChangeConfigResponse) ProtoMessage() {} func (x *CommitStoreChangeConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -589,20 +557,17 @@ func (x *CommitStoreChangeConfigResponse) GetAddress() string { // GetOffchainConfigResponse returns the offchain config. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetOffchainConfig] type GetOffchainConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OffchainConfig *CommitOffchainConfig `protobuf:"bytes,1,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OffchainConfig *CommitOffchainConfig `protobuf:"bytes,1,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetOffchainConfigResponse) Reset() { *x = GetOffchainConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetOffchainConfigResponse) String() string { @@ -613,7 +578,7 @@ func (*GetOffchainConfigResponse) ProtoMessage() {} func (x *GetOffchainConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -640,20 +605,17 @@ func (x *GetOffchainConfigResponse) GetOffchainConfig() *CommitOffchainConfig { // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetCommitGasPriceEstimator] // because the return value is an interface, which is modelled as a service in gRPC type GetCommitGasPriceEstimatorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GasPriceEstimatorId uint32 `protobuf:"varint,1,opt,name=gas_price_estimator_id,json=gasPriceEstimatorId,proto3" json:"gas_price_estimator_id,omitempty"` // connection id for proxying + state protoimpl.MessageState `protogen:"open.v1"` + GasPriceEstimatorId uint32 `protobuf:"varint,1,opt,name=gas_price_estimator_id,json=gasPriceEstimatorId,proto3" json:"gas_price_estimator_id,omitempty"` // connection id for proxying + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCommitGasPriceEstimatorResponse) Reset() { *x = GetCommitGasPriceEstimatorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCommitGasPriceEstimatorResponse) String() string { @@ -664,7 +626,7 @@ func (*GetCommitGasPriceEstimatorResponse) ProtoMessage() {} func (x *GetCommitGasPriceEstimatorResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -689,20 +651,17 @@ func (x *GetCommitGasPriceEstimatorResponse) GetGasPriceEstimatorId() uint32 { // EncodeCommitReportRequest is a gRPC adapter to the input values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.EncodeCommitReport] type EncodeCommitReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report *CommitStoreReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report *CommitStoreReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeCommitReportRequest) Reset() { *x = EncodeCommitReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeCommitReportRequest) String() string { @@ -713,7 +672,7 @@ func (*EncodeCommitReportRequest) ProtoMessage() {} func (x *EncodeCommitReportRequest) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -738,20 +697,17 @@ func (x *EncodeCommitReportRequest) GetReport() *CommitStoreReport { // EncodeCommitReportResponse returns the encoded report. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.EncodeCommitReport] type EncodeCommitReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EncodedReport []byte `protobuf:"bytes,1,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` unknownFields protoimpl.UnknownFields - - EncodedReport []byte `protobuf:"bytes,1,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeCommitReportResponse) Reset() { *x = EncodeCommitReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeCommitReportResponse) String() string { @@ -762,7 +718,7 @@ func (*EncodeCommitReportResponse) ProtoMessage() {} func (x *EncodeCommitReportResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -787,20 +743,17 @@ func (x *EncodeCommitReportResponse) GetEncodedReport() []byte { // DecodeCommitReportRequest is a gRPC adapter to the input values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.DecodeCommitReport] type DecodeCommitReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EncodedReport []byte `protobuf:"bytes,1,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` unknownFields protoimpl.UnknownFields - - EncodedReport []byte `protobuf:"bytes,1,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeCommitReportRequest) Reset() { *x = DecodeCommitReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeCommitReportRequest) String() string { @@ -811,7 +764,7 @@ func (*DecodeCommitReportRequest) ProtoMessage() {} func (x *DecodeCommitReportRequest) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -836,20 +789,17 @@ func (x *DecodeCommitReportRequest) GetEncodedReport() []byte { // DecodeCommitReportResponse returns the decoded report. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.DecodeCommitReport] type DecodeCommitReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report *CommitStoreReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report *CommitStoreReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeCommitReportResponse) Reset() { *x = DecodeCommitReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeCommitReportResponse) String() string { @@ -860,7 +810,7 @@ func (*DecodeCommitReportResponse) ProtoMessage() {} func (x *DecodeCommitReportResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -885,21 +835,18 @@ func (x *DecodeCommitReportResponse) GetReport() *CommitStoreReport { // VerifyExecutionReportRequest is a gRPC adapter to the input values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.VerifyExecutionReport] type VerifyExecutionReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report *ExecutionReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + EncodedReport []byte `protobuf:"bytes,2,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` unknownFields protoimpl.UnknownFields - - Report *ExecutionReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` - EncodedReport []byte `protobuf:"bytes,2,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *VerifyExecutionReportRequest) Reset() { *x = VerifyExecutionReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerifyExecutionReportRequest) String() string { @@ -910,7 +857,7 @@ func (*VerifyExecutionReportRequest) ProtoMessage() {} func (x *VerifyExecutionReportRequest) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -942,20 +889,17 @@ func (x *VerifyExecutionReportRequest) GetEncodedReport() []byte { // VerifyExecutionReportResponse returns whether the execution report is valid. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.VerifyExecutionReport] type VerifyExecutionReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` unknownFields protoimpl.UnknownFields - - IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *VerifyExecutionReportResponse) Reset() { *x = VerifyExecutionReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerifyExecutionReportResponse) String() string { @@ -966,7 +910,7 @@ func (*VerifyExecutionReportResponse) ProtoMessage() {} func (x *VerifyExecutionReportResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -991,20 +935,17 @@ func (x *VerifyExecutionReportResponse) GetIsValid() bool { // GetCommitStoreStaticConfigResponse returns the static config of the commit store. It is a gRPC adapter to the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader.GetCommitStoreStaticConfig] type GetCommitStoreStaticConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + StaticConfig *CommitStoreStaticConfig `protobuf:"bytes,1,opt,name=static_config,json=staticConfig,proto3" json:"static_config,omitempty"` unknownFields protoimpl.UnknownFields - - StaticConfig *CommitStoreStaticConfig `protobuf:"bytes,1,opt,name=static_config,json=staticConfig,proto3" json:"static_config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCommitStoreStaticConfigResponse) Reset() { *x = GetCommitStoreStaticConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetCommitStoreStaticConfigResponse) String() string { @@ -1015,7 +956,7 @@ func (*GetCommitStoreStaticConfigResponse) ProtoMessage() {} func (x *GetCommitStoreStaticConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1040,24 +981,21 @@ func (x *GetCommitStoreStaticConfigResponse) GetStaticConfig() *CommitStoreStati // CommitOffchainConfig is the offchain config of the commit store. It is a gRPC adapter to the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip.CommitOffchainConfig] type CommitOffchainConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GasPriceDeviationPpb uint32 `protobuf:"varint,1,opt,name=gas_price_deviation_ppb,json=gasPriceDeviationPpb,proto3" json:"gas_price_deviation_ppb,omitempty"` - GasPriceHeartbeat *durationpb.Duration `protobuf:"bytes,2,opt,name=gas_price_heartbeat,json=gasPriceHeartbeat,proto3" json:"gas_price_heartbeat,omitempty"` - TokenPriceDeviationPpb uint32 `protobuf:"varint,3,opt,name=token_price_deviation_ppb,json=tokenPriceDeviationPpb,proto3" json:"token_price_deviation_ppb,omitempty"` - TokenPriceHeartbeat *durationpb.Duration `protobuf:"bytes,4,opt,name=token_price_heartbeat,json=tokenPriceHeartbeat,proto3" json:"token_price_heartbeat,omitempty"` - InflightCacheExpiry *durationpb.Duration `protobuf:"bytes,5,opt,name=inflight_cache_expiry,json=inflightCacheExpiry,proto3" json:"inflight_cache_expiry,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + GasPriceDeviationPpb uint32 `protobuf:"varint,1,opt,name=gas_price_deviation_ppb,json=gasPriceDeviationPpb,proto3" json:"gas_price_deviation_ppb,omitempty"` + GasPriceHeartbeat *durationpb.Duration `protobuf:"bytes,2,opt,name=gas_price_heartbeat,json=gasPriceHeartbeat,proto3" json:"gas_price_heartbeat,omitempty"` + TokenPriceDeviationPpb uint32 `protobuf:"varint,3,opt,name=token_price_deviation_ppb,json=tokenPriceDeviationPpb,proto3" json:"token_price_deviation_ppb,omitempty"` + TokenPriceHeartbeat *durationpb.Duration `protobuf:"bytes,4,opt,name=token_price_heartbeat,json=tokenPriceHeartbeat,proto3" json:"token_price_heartbeat,omitempty"` + InflightCacheExpiry *durationpb.Duration `protobuf:"bytes,5,opt,name=inflight_cache_expiry,json=inflightCacheExpiry,proto3" json:"inflight_cache_expiry,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitOffchainConfig) Reset() { *x = CommitOffchainConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitOffchainConfig) String() string { @@ -1068,7 +1006,7 @@ func (*CommitOffchainConfig) ProtoMessage() {} func (x *CommitOffchainConfig) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1121,21 +1059,18 @@ func (x *CommitOffchainConfig) GetInflightCacheExpiry() *durationpb.Duration { // CommitStoreReportWithTxMeta is a gRPC adapter to the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip.CommitStoreReportWithTxMeta] type CommitStoreReportWithTxMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report *CommitStoreReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` unknownFields protoimpl.UnknownFields - - Report *CommitStoreReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` - TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CommitStoreReportWithTxMeta) Reset() { *x = CommitStoreReportWithTxMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitStoreReportWithTxMeta) String() string { @@ -1146,7 +1081,7 @@ func (*CommitStoreReportWithTxMeta) ProtoMessage() {} func (x *CommitStoreReportWithTxMeta) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1178,23 +1113,20 @@ func (x *CommitStoreReportWithTxMeta) GetTxMeta() *TxMeta { // CommitStoreReport is a gRPC adapter to the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip.CommitStoreReport] type CommitStoreReport struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TokenPrices []*TokenPrice `protobuf:"bytes,1,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices,omitempty"` + GasPrices []*GasPrice `protobuf:"bytes,2,rep,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` + Interval *CommitStoreInterval `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` + MerkleRoot []byte `protobuf:"bytes,4,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` unknownFields protoimpl.UnknownFields - - TokenPrices []*TokenPrice `protobuf:"bytes,1,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices,omitempty"` - GasPrices []*GasPrice `protobuf:"bytes,2,rep,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` - Interval *CommitStoreInterval `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` - MerkleRoot []byte `protobuf:"bytes,4,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CommitStoreReport) Reset() { *x = CommitStoreReport{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitStoreReport) String() string { @@ -1205,7 +1137,7 @@ func (*CommitStoreReport) ProtoMessage() {} func (x *CommitStoreReport) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1251,21 +1183,18 @@ func (x *CommitStoreReport) GetMerkleRoot() []byte { // CommitStoreInterval is a gRPC adapter to the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip.CommitStoreInterval] type CommitStoreInterval struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Min uint64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` + Max uint64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` unknownFields protoimpl.UnknownFields - - Min uint64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` - Max uint64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CommitStoreInterval) Reset() { *x = CommitStoreInterval{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitStoreInterval) String() string { @@ -1276,7 +1205,7 @@ func (*CommitStoreInterval) ProtoMessage() {} func (x *CommitStoreInterval) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1308,23 +1237,20 @@ func (x *CommitStoreInterval) GetMax() uint64 { // CommitStoreStaticConfig is a gRPC adapter to the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip.CommitStoreStaticConfig] type CommitStoreStaticConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChainSelector uint64 `protobuf:"varint,1,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` - SourceChainSelector uint64 `protobuf:"varint,2,opt,name=source_chain_selector,json=sourceChainSelector,proto3" json:"source_chain_selector,omitempty"` - OnRamp string `protobuf:"bytes,3,opt,name=on_ramp,json=onRamp,proto3" json:"on_ramp,omitempty"` // Address - ArmProxy string `protobuf:"bytes,4,opt,name=arm_proxy,json=armProxy,proto3" json:"arm_proxy,omitempty"` // Address + state protoimpl.MessageState `protogen:"open.v1"` + ChainSelector uint64 `protobuf:"varint,1,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` + SourceChainSelector uint64 `protobuf:"varint,2,opt,name=source_chain_selector,json=sourceChainSelector,proto3" json:"source_chain_selector,omitempty"` + OnRamp string `protobuf:"bytes,3,opt,name=on_ramp,json=onRamp,proto3" json:"on_ramp,omitempty"` // Address + ArmProxy string `protobuf:"bytes,4,opt,name=arm_proxy,json=armProxy,proto3" json:"arm_proxy,omitempty"` // Address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitStoreStaticConfig) Reset() { *x = CommitStoreStaticConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitStoreStaticConfig) String() string { @@ -1335,7 +1261,7 @@ func (*CommitStoreStaticConfig) ProtoMessage() {} func (x *CommitStoreStaticConfig) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1379,20 +1305,17 @@ func (x *CommitStoreStaticConfig) GetArmProxy() string { } type IsDestChainHealthyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IsHealthy bool `protobuf:"varint,1,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"` unknownFields protoimpl.UnknownFields - - IsHealthy bool `protobuf:"varint,1,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IsDestChainHealthyResponse) Reset() { *x = IsDestChainHealthyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_commitstore_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_commitstore_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IsDestChainHealthyResponse) String() string { @@ -1403,7 +1326,7 @@ func (*IsDestChainHealthyResponse) ProtoMessage() {} func (x *IsDestChainHealthyResponse) ProtoReflect() protoreflect.Message { mi := &file_commitstore_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1427,7 +1350,7 @@ func (x *IsDestChainHealthyResponse) GetIsHealthy() bool { var File_commitstore_proto protoreflect.FileDescriptor -var file_commitstore_proto_rawDesc = []byte{ +var file_commitstore_proto_rawDesc = string([]byte{ 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, @@ -1737,22 +1660,22 @@ var file_commitstore_proto_rawDesc = []byte{ 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_commitstore_proto_rawDescOnce sync.Once - file_commitstore_proto_rawDescData = file_commitstore_proto_rawDesc + file_commitstore_proto_rawDescData []byte ) func file_commitstore_proto_rawDescGZIP() []byte { file_commitstore_proto_rawDescOnce.Do(func() { - file_commitstore_proto_rawDescData = protoimpl.X.CompressGZIP(file_commitstore_proto_rawDescData) + file_commitstore_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_commitstore_proto_rawDesc), len(file_commitstore_proto_rawDesc))) }) return file_commitstore_proto_rawDescData } var file_commitstore_proto_msgTypes = make([]protoimpl.MessageInfo, 26) -var file_commitstore_proto_goTypes = []interface{}{ +var file_commitstore_proto_goTypes = []any{ (*GetExpectedNextSequenceNumberResponse)(nil), // 0: loop.internal.pb.ccip.GetExpectedNextSequenceNumberResponse (*GetLatestPriceEpochAndRoundResponse)(nil), // 1: loop.internal.pb.ccip.GetLatestPriceEpochAndRoundResponse (*GetCommitReportMatchingSequenceNumberRequest)(nil), // 2: loop.internal.pb.ccip.GetCommitReportMatchingSequenceNumberRequest @@ -1847,325 +1770,11 @@ func file_commitstore_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_commitstore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetExpectedNextSequenceNumberResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLatestPriceEpochAndRoundResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommitReportMatchingSequenceNumberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommitReportMatchingSequenceNumberResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAcceptedCommitReportsGteTimestampRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAcceptedCommitReportsGteTimestampResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsDownResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsBlessedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsBlessedResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitStoreChangeConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitStoreChangeConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOffchainConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommitGasPriceEstimatorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeCommitReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeCommitReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeCommitReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeCommitReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyExecutionReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyExecutionReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommitStoreStaticConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitOffchainConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitStoreReportWithTxMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitStoreReport); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitStoreInterval); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitStoreStaticConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_commitstore_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsDestChainHealthyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_commitstore_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_commitstore_proto_rawDesc), len(file_commitstore_proto_rawDesc)), NumEnums: 0, NumMessages: 26, NumExtensions: 0, @@ -2176,7 +1785,6 @@ func file_commitstore_proto_init() { MessageInfos: file_commitstore_proto_msgTypes, }.Build() File_commitstore_proto = out.File - file_commitstore_proto_rawDesc = nil file_commitstore_proto_goTypes = nil file_commitstore_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/commitstore_grpc.pb.go b/pkg/loop/internal/pb/ccip/commitstore_grpc.pb.go index 1fdaa4fc1..d57724e0a 100644 --- a/pkg/loop/internal/pb/ccip/commitstore_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/commitstore_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: commitstore.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CommitStoreReader_ChangeConfig_FullMethodName = "/loop.internal.pb.ccip.CommitStoreReader/ChangeConfig" @@ -40,6 +40,9 @@ const ( // CommitStoreReaderClient is the client API for CommitStoreReader service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// CommitStoreReader is a gRPC service adapter to the CommitStoreReader interface +// [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader] type CommitStoreReaderClient interface { ChangeConfig(ctx context.Context, in *CommitStoreChangeConfigRequest, opts ...grpc.CallOption) (*CommitStoreChangeConfigResponse, error) DecodeCommitReport(ctx context.Context, in *DecodeCommitReportRequest, opts ...grpc.CallOption) (*DecodeCommitReportResponse, error) @@ -67,8 +70,9 @@ func NewCommitStoreReaderClient(cc grpc.ClientConnInterface) CommitStoreReaderCl } func (c *commitStoreReaderClient) ChangeConfig(ctx context.Context, in *CommitStoreChangeConfigRequest, opts ...grpc.CallOption) (*CommitStoreChangeConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommitStoreChangeConfigResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_ChangeConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_ChangeConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -76,8 +80,9 @@ func (c *commitStoreReaderClient) ChangeConfig(ctx context.Context, in *CommitSt } func (c *commitStoreReaderClient) DecodeCommitReport(ctx context.Context, in *DecodeCommitReportRequest, opts ...grpc.CallOption) (*DecodeCommitReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecodeCommitReportResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_DecodeCommitReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_DecodeCommitReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -85,8 +90,9 @@ func (c *commitStoreReaderClient) DecodeCommitReport(ctx context.Context, in *De } func (c *commitStoreReaderClient) EncodeCommitReport(ctx context.Context, in *EncodeCommitReportRequest, opts ...grpc.CallOption) (*EncodeCommitReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EncodeCommitReportResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_EncodeCommitReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_EncodeCommitReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -94,8 +100,9 @@ func (c *commitStoreReaderClient) EncodeCommitReport(ctx context.Context, in *En } func (c *commitStoreReaderClient) GetAcceptedCommitReportsGteTimestamp(ctx context.Context, in *GetAcceptedCommitReportsGteTimestampRequest, opts ...grpc.CallOption) (*GetAcceptedCommitReportsGteTimestampResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAcceptedCommitReportsGteTimestampResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_GetAcceptedCommitReportsGteTimestamp_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_GetAcceptedCommitReportsGteTimestamp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -103,8 +110,9 @@ func (c *commitStoreReaderClient) GetAcceptedCommitReportsGteTimestamp(ctx conte } func (c *commitStoreReaderClient) GetCommitGasPriceEstimator(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCommitGasPriceEstimatorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCommitGasPriceEstimatorResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_GetCommitGasPriceEstimator_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_GetCommitGasPriceEstimator_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -112,8 +120,9 @@ func (c *commitStoreReaderClient) GetCommitGasPriceEstimator(ctx context.Context } func (c *commitStoreReaderClient) GetCommitReportMatchingSequenceNumber(ctx context.Context, in *GetCommitReportMatchingSequenceNumberRequest, opts ...grpc.CallOption) (*GetCommitReportMatchingSequenceNumberResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCommitReportMatchingSequenceNumberResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_GetCommitReportMatchingSequenceNumber_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_GetCommitReportMatchingSequenceNumber_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -121,8 +130,9 @@ func (c *commitStoreReaderClient) GetCommitReportMatchingSequenceNumber(ctx cont } func (c *commitStoreReaderClient) GetCommitStoreStaticConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCommitStoreStaticConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCommitStoreStaticConfigResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_GetCommitStoreStaticConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_GetCommitStoreStaticConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -130,8 +140,9 @@ func (c *commitStoreReaderClient) GetCommitStoreStaticConfig(ctx context.Context } func (c *commitStoreReaderClient) GetExpectedNextSequenceNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetExpectedNextSequenceNumberResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetExpectedNextSequenceNumberResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_GetExpectedNextSequenceNumber_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_GetExpectedNextSequenceNumber_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -139,8 +150,9 @@ func (c *commitStoreReaderClient) GetExpectedNextSequenceNumber(ctx context.Cont } func (c *commitStoreReaderClient) GetLatestPriceEpochAndRound(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetLatestPriceEpochAndRoundResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLatestPriceEpochAndRoundResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_GetLatestPriceEpochAndRound_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_GetLatestPriceEpochAndRound_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -148,8 +160,9 @@ func (c *commitStoreReaderClient) GetLatestPriceEpochAndRound(ctx context.Contex } func (c *commitStoreReaderClient) GetOffchainConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetOffchainConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetOffchainConfigResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_GetOffchainConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_GetOffchainConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -157,8 +170,9 @@ func (c *commitStoreReaderClient) GetOffchainConfig(ctx context.Context, in *emp } func (c *commitStoreReaderClient) IsBlessed(ctx context.Context, in *IsBlessedRequest, opts ...grpc.CallOption) (*IsBlessedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IsBlessedResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_IsBlessed_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_IsBlessed_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -166,8 +180,9 @@ func (c *commitStoreReaderClient) IsBlessed(ctx context.Context, in *IsBlessedRe } func (c *commitStoreReaderClient) IsDestChainHealthy(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IsDestChainHealthyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IsDestChainHealthyResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_IsDestChainHealthy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_IsDestChainHealthy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -175,8 +190,9 @@ func (c *commitStoreReaderClient) IsDestChainHealthy(ctx context.Context, in *em } func (c *commitStoreReaderClient) IsDown(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IsDownResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IsDownResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_IsDown_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_IsDown_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -184,8 +200,9 @@ func (c *commitStoreReaderClient) IsDown(ctx context.Context, in *emptypb.Empty, } func (c *commitStoreReaderClient) VerifyExecutionReport(ctx context.Context, in *VerifyExecutionReportRequest, opts ...grpc.CallOption) (*VerifyExecutionReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VerifyExecutionReportResponse) - err := c.cc.Invoke(ctx, CommitStoreReader_VerifyExecutionReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_VerifyExecutionReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -193,8 +210,9 @@ func (c *commitStoreReaderClient) VerifyExecutionReport(ctx context.Context, in } func (c *commitStoreReaderClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, CommitStoreReader_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitStoreReader_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -203,7 +221,10 @@ func (c *commitStoreReaderClient) Close(ctx context.Context, in *emptypb.Empty, // CommitStoreReaderServer is the server API for CommitStoreReader service. // All implementations must embed UnimplementedCommitStoreReaderServer -// for forward compatibility +// for forward compatibility. +// +// CommitStoreReader is a gRPC service adapter to the CommitStoreReader interface +// [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader] type CommitStoreReaderServer interface { ChangeConfig(context.Context, *CommitStoreChangeConfigRequest) (*CommitStoreChangeConfigResponse, error) DecodeCommitReport(context.Context, *DecodeCommitReportRequest) (*DecodeCommitReportResponse, error) @@ -223,9 +244,12 @@ type CommitStoreReaderServer interface { mustEmbedUnimplementedCommitStoreReaderServer() } -// UnimplementedCommitStoreReaderServer must be embedded to have forward compatible implementations. -type UnimplementedCommitStoreReaderServer struct { -} +// UnimplementedCommitStoreReaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCommitStoreReaderServer struct{} func (UnimplementedCommitStoreReaderServer) ChangeConfig(context.Context, *CommitStoreChangeConfigRequest) (*CommitStoreChangeConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeConfig not implemented") @@ -273,6 +297,7 @@ func (UnimplementedCommitStoreReaderServer) Close(context.Context, *emptypb.Empt return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedCommitStoreReaderServer) mustEmbedUnimplementedCommitStoreReaderServer() {} +func (UnimplementedCommitStoreReaderServer) testEmbeddedByValue() {} // UnsafeCommitStoreReaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CommitStoreReaderServer will @@ -282,6 +307,13 @@ type UnsafeCommitStoreReaderServer interface { } func RegisterCommitStoreReaderServer(s grpc.ServiceRegistrar, srv CommitStoreReaderServer) { + // If the following call pancis, it indicates UnimplementedCommitStoreReaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CommitStoreReader_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/factories.pb.go b/pkg/loop/internal/pb/ccip/factories.pb.go index a4897d4b3..0256e2fc3 100644 --- a/pkg/loop/internal/pb/ccip/factories.pb.go +++ b/pkg/loop/internal/pb/ccip/factories.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: factories.proto package ccippb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,24 +24,21 @@ const ( // NewExecutionFactoryRequest is a gRPC adapter to the factory configuration [https://github.com/smartcontractkit/ccip/core/services/ocr2/plugins/ccip/ccipexec/ExecutionPluginStaticConfig] type NewExecutionFactoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SrcProviderServiceId uint32 `protobuf:"varint,1,opt,name=src_provider_service_id,json=srcProviderServiceId,proto3" json:"src_provider_service_id,omitempty"` - DstProviderServiceId uint32 `protobuf:"varint,2,opt,name=dst_provider_service_id,json=dstProviderServiceId,proto3" json:"dst_provider_service_id,omitempty"` - SrcChain uint32 `protobuf:"varint,3,opt,name=src_chain,json=srcChain,proto3" json:"src_chain,omitempty"` - DstChain uint32 `protobuf:"varint,4,opt,name=dst_chain,json=dstChain,proto3" json:"dst_chain,omitempty"` - SrcTokenAddress string `protobuf:"bytes,5,opt,name=src_token_address,json=srcTokenAddress,proto3" json:"src_token_address,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SrcProviderServiceId uint32 `protobuf:"varint,1,opt,name=src_provider_service_id,json=srcProviderServiceId,proto3" json:"src_provider_service_id,omitempty"` + DstProviderServiceId uint32 `protobuf:"varint,2,opt,name=dst_provider_service_id,json=dstProviderServiceId,proto3" json:"dst_provider_service_id,omitempty"` + SrcChain uint32 `protobuf:"varint,3,opt,name=src_chain,json=srcChain,proto3" json:"src_chain,omitempty"` + DstChain uint32 `protobuf:"varint,4,opt,name=dst_chain,json=dstChain,proto3" json:"dst_chain,omitempty"` + SrcTokenAddress string `protobuf:"bytes,5,opt,name=src_token_address,json=srcTokenAddress,proto3" json:"src_token_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewExecutionFactoryRequest) Reset() { *x = NewExecutionFactoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewExecutionFactoryRequest) String() string { @@ -51,7 +49,7 @@ func (*NewExecutionFactoryRequest) ProtoMessage() {} func (x *NewExecutionFactoryRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -103,20 +101,17 @@ func (x *NewExecutionFactoryRequest) GetSrcTokenAddress() string { // NewExecutionFactoryResponse is a contains the id of the created execution factory type NewExecutionFactoryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExecutionFactoryServiceId uint32 `protobuf:"varint,1,opt,name=execution_factory_service_id,json=executionFactoryServiceId,proto3" json:"execution_factory_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ExecutionFactoryServiceId uint32 `protobuf:"varint,1,opt,name=execution_factory_service_id,json=executionFactoryServiceId,proto3" json:"execution_factory_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewExecutionFactoryResponse) Reset() { *x = NewExecutionFactoryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewExecutionFactoryResponse) String() string { @@ -127,7 +122,7 @@ func (*NewExecutionFactoryResponse) ProtoMessage() {} func (x *NewExecutionFactoryResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -151,20 +146,17 @@ func (x *NewExecutionFactoryResponse) GetExecutionFactoryServiceId() uint32 { // NewCommitFactoryRequest is a gRPC adapter to the factory configuration [https://github.com/smartcontractkit/ccip/core/services/ocr2/plugins/ccip/ccipcommit/CommitPluginStaticConfig] type NewCommitFactoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProviderServiceId uint32 `protobuf:"varint,1,opt,name=provider_service_id,json=providerServiceId,proto3" json:"provider_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ProviderServiceId uint32 `protobuf:"varint,1,opt,name=provider_service_id,json=providerServiceId,proto3" json:"provider_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewCommitFactoryRequest) Reset() { *x = NewCommitFactoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewCommitFactoryRequest) String() string { @@ -175,7 +167,7 @@ func (*NewCommitFactoryRequest) ProtoMessage() {} func (x *NewCommitFactoryRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -201,20 +193,17 @@ func (x *NewCommitFactoryRequest) GetProviderServiceId() uint32 { // for the return value of [github.com/smartcontractkit/ccip/core/services/ocr2/plugins/ccip/ccipcommit.NewCommitReportingPluginFactory] // because the underlying return value is an interface, which is modeled as a service in gRPC type NewCommitFactoryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommitFactoryServiceId uint32 `protobuf:"varint,1,opt,name=commit_factory_service_id,json=commitFactoryServiceId,proto3" json:"commit_factory_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + CommitFactoryServiceId uint32 `protobuf:"varint,1,opt,name=commit_factory_service_id,json=commitFactoryServiceId,proto3" json:"commit_factory_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewCommitFactoryResponse) Reset() { *x = NewCommitFactoryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewCommitFactoryResponse) String() string { @@ -225,7 +214,7 @@ func (*NewCommitFactoryResponse) ProtoMessage() {} func (x *NewCommitFactoryResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -250,20 +239,17 @@ func (x *NewCommitFactoryResponse) GetCommitFactoryServiceId() uint32 { // GetTransactionStatusRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.GetTransactionStatus] type GetTransactionStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` unknownFields protoimpl.UnknownFields - - TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransactionStatusRequest) Reset() { *x = GetTransactionStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionStatusRequest) String() string { @@ -274,7 +260,7 @@ func (*GetTransactionStatusRequest) ProtoMessage() {} func (x *GetTransactionStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -299,20 +285,17 @@ func (x *GetTransactionStatusRequest) GetTransactionId() string { // GetTransactionStatusResponse is a gRPC adapter for the output arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.GetTransactionStatus] type GetTransactionStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TransactionStatus int32 `protobuf:"varint,1,opt,name=transaction_status,json=transactionStatus,proto3" json:"transaction_status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TransactionStatus int32 `protobuf:"varint,1,opt,name=transaction_status,json=transactionStatus,proto3" json:"transaction_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTransactionStatusResponse) Reset() { *x = GetTransactionStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionStatusResponse) String() string { @@ -323,7 +306,7 @@ func (*GetTransactionStatusResponse) ProtoMessage() {} func (x *GetTransactionStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -348,20 +331,17 @@ func (x *GetTransactionStatusResponse) GetTransactionStatus() int32 { // NewCommitStoreReaderRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewCommitStoreReader] type NewCommitStoreReaderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewCommitStoreReaderRequest) Reset() { *x = NewCommitStoreReaderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewCommitStoreReaderRequest) String() string { @@ -372,7 +352,7 @@ func (*NewCommitStoreReaderRequest) ProtoMessage() {} func (x *NewCommitStoreReaderRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -398,20 +378,17 @@ func (x *NewCommitStoreReaderRequest) GetAddress() string { // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewCommitStoreReader] // It contains the id of the created commit store reader service that was created type NewCommitStoreReaderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommitStoreReaderServiceId int32 `protobuf:"varint,1,opt,name=commit_store_reader_service_id,json=commitStoreReaderServiceId,proto3" json:"commit_store_reader_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + CommitStoreReaderServiceId int32 `protobuf:"varint,1,opt,name=commit_store_reader_service_id,json=commitStoreReaderServiceId,proto3" json:"commit_store_reader_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewCommitStoreReaderResponse) Reset() { *x = NewCommitStoreReaderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewCommitStoreReaderResponse) String() string { @@ -422,7 +399,7 @@ func (*NewCommitStoreReaderResponse) ProtoMessage() {} func (x *NewCommitStoreReaderResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -447,20 +424,17 @@ func (x *NewCommitStoreReaderResponse) GetCommitStoreReaderServiceId() int32 { // NewOffRampReaderRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewOffRampReader] type NewOffRampReaderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewOffRampReaderRequest) Reset() { *x = NewOffRampReaderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewOffRampReaderRequest) String() string { @@ -471,7 +445,7 @@ func (*NewOffRampReaderRequest) ProtoMessage() {} func (x *NewOffRampReaderRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -497,20 +471,17 @@ func (x *NewOffRampReaderRequest) GetAddress() string { // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewOffRampReader] // It contains the id of the created offramp reader service that was created type NewOffRampReaderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OfframpReaderServiceId int32 `protobuf:"varint,1,opt,name=offramp_reader_service_id,json=offrampReaderServiceId,proto3" json:"offramp_reader_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OfframpReaderServiceId int32 `protobuf:"varint,1,opt,name=offramp_reader_service_id,json=offrampReaderServiceId,proto3" json:"offramp_reader_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewOffRampReaderResponse) Reset() { *x = NewOffRampReaderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewOffRampReaderResponse) String() string { @@ -521,7 +492,7 @@ func (*NewOffRampReaderResponse) ProtoMessage() {} func (x *NewOffRampReaderResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -546,22 +517,19 @@ func (x *NewOffRampReaderResponse) GetOfframpReaderServiceId() int32 { // NewOnRampReaderRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewOnRampReader] type NewOnRampReaderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - SourceChainSelector uint64 `protobuf:"varint,2,opt,name=sourceChainSelector,proto3" json:"sourceChainSelector,omitempty"` - DestChainSelector uint64 `protobuf:"varint,3,opt,name=destChainSelector,proto3" json:"destChainSelector,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + SourceChainSelector uint64 `protobuf:"varint,2,opt,name=sourceChainSelector,proto3" json:"sourceChainSelector,omitempty"` + DestChainSelector uint64 `protobuf:"varint,3,opt,name=destChainSelector,proto3" json:"destChainSelector,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewOnRampReaderRequest) Reset() { *x = NewOnRampReaderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewOnRampReaderRequest) String() string { @@ -572,7 +540,7 @@ func (*NewOnRampReaderRequest) ProtoMessage() {} func (x *NewOnRampReaderRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -612,20 +580,17 @@ func (x *NewOnRampReaderRequest) GetDestChainSelector() uint64 { // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewOnRampReader] // It contains the id of the created onramp reader service that was created type NewOnRampReaderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OnrampReaderServiceId int32 `protobuf:"varint,1,opt,name=onramp_reader_service_id,json=onrampReaderServiceId,proto3" json:"onramp_reader_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OnrampReaderServiceId int32 `protobuf:"varint,1,opt,name=onramp_reader_service_id,json=onrampReaderServiceId,proto3" json:"onramp_reader_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewOnRampReaderResponse) Reset() { *x = NewOnRampReaderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewOnRampReaderResponse) String() string { @@ -636,7 +601,7 @@ func (*NewOnRampReaderResponse) ProtoMessage() {} func (x *NewOnRampReaderResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -661,20 +626,17 @@ func (x *NewOnRampReaderResponse) GetOnrampReaderServiceId() int32 { // NewPriceGetterRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPCommitProvider.NewPriceGetter] type NewPriceGetterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewPriceGetterRequest) Reset() { *x = NewPriceGetterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewPriceGetterRequest) String() string { @@ -685,7 +647,7 @@ func (*NewPriceGetterRequest) ProtoMessage() {} func (x *NewPriceGetterRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -711,20 +673,17 @@ func (x *NewPriceGetterRequest) GetAddress() string { // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPCommitProvider.NewPriceGetter] // It contains the id of the created price getter service that was created type NewPriceGetterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PriceGetterServiceId int32 `protobuf:"varint,1,opt,name=price_getter_service_id,json=priceGetterServiceId,proto3" json:"price_getter_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PriceGetterServiceId int32 `protobuf:"varint,1,opt,name=price_getter_service_id,json=priceGetterServiceId,proto3" json:"price_getter_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewPriceGetterResponse) Reset() { *x = NewPriceGetterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewPriceGetterResponse) String() string { @@ -735,7 +694,7 @@ func (*NewPriceGetterResponse) ProtoMessage() {} func (x *NewPriceGetterResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -760,20 +719,17 @@ func (x *NewPriceGetterResponse) GetPriceGetterServiceId() int32 { // NewPriceRegistryRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewPriceRegistryReader] type NewPriceRegistryReaderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewPriceRegistryReaderRequest) Reset() { *x = NewPriceRegistryReaderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewPriceRegistryReaderRequest) String() string { @@ -784,7 +740,7 @@ func (*NewPriceRegistryReaderRequest) ProtoMessage() {} func (x *NewPriceRegistryReaderRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -810,20 +766,17 @@ func (x *NewPriceRegistryReaderRequest) GetAddress() string { // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewPriceRegistryReader] // It contains the id of the created price registry reader service that was created type NewPriceRegistryReaderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PriceRegistryReaderServiceId int32 `protobuf:"varint,1,opt,name=price_registry_reader_service_id,json=priceRegistryReaderServiceId,proto3" json:"price_registry_reader_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PriceRegistryReaderServiceId int32 `protobuf:"varint,1,opt,name=price_registry_reader_service_id,json=priceRegistryReaderServiceId,proto3" json:"price_registry_reader_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewPriceRegistryReaderResponse) Reset() { *x = NewPriceRegistryReaderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewPriceRegistryReaderResponse) String() string { @@ -834,7 +787,7 @@ func (*NewPriceRegistryReaderResponse) ProtoMessage() {} func (x *NewPriceRegistryReaderResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -859,20 +812,17 @@ func (x *NewPriceRegistryReaderResponse) GetPriceRegistryReaderServiceId() int32 // NewTokenDataRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewTokenDataReader] type NewTokenDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewTokenDataRequest) Reset() { *x = NewTokenDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewTokenDataRequest) String() string { @@ -883,7 +833,7 @@ func (*NewTokenDataRequest) ProtoMessage() {} func (x *NewTokenDataRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -909,20 +859,17 @@ func (x *NewTokenDataRequest) GetAddress() string { // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewTokenDataReader] // It contains the id of the created token data reader service that was created type NewTokenDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenDataReaderServiceId int32 `protobuf:"varint,1,opt,name=token_data_reader_service_id,json=tokenDataReaderServiceId,proto3" json:"token_data_reader_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TokenDataReaderServiceId int32 `protobuf:"varint,1,opt,name=token_data_reader_service_id,json=tokenDataReaderServiceId,proto3" json:"token_data_reader_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewTokenDataResponse) Reset() { *x = NewTokenDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewTokenDataResponse) String() string { @@ -933,7 +880,7 @@ func (*NewTokenDataResponse) ProtoMessage() {} func (x *NewTokenDataResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -956,21 +903,18 @@ func (x *NewTokenDataResponse) GetTokenDataReaderServiceId() int32 { } type NewTokenPoolBatchedReaderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - SourceChainSelector uint64 `protobuf:"varint,2,opt,name=sourceChainSelector,proto3" json:"sourceChainSelector,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + SourceChainSelector uint64 `protobuf:"varint,2,opt,name=sourceChainSelector,proto3" json:"sourceChainSelector,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewTokenPoolBatchedReaderRequest) Reset() { *x = NewTokenPoolBatchedReaderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewTokenPoolBatchedReaderRequest) String() string { @@ -981,7 +925,7 @@ func (*NewTokenPoolBatchedReaderRequest) ProtoMessage() {} func (x *NewTokenPoolBatchedReaderRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1014,20 +958,17 @@ func (x *NewTokenPoolBatchedReaderRequest) GetSourceChainSelector() uint64 { // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.NewTokenPoolBatchedReader] // It contains the id of the created token pool batched reader service that was created type NewTokenPoolBatchedReaderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenPoolBatchedReaderServiceId int32 `protobuf:"varint,1,opt,name=token_pool_batched_reader_service_id,json=tokenPoolBatchedReaderServiceId,proto3" json:"token_pool_batched_reader_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TokenPoolBatchedReaderServiceId int32 `protobuf:"varint,1,opt,name=token_pool_batched_reader_service_id,json=tokenPoolBatchedReaderServiceId,proto3" json:"token_pool_batched_reader_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewTokenPoolBatchedReaderResponse) Reset() { *x = NewTokenPoolBatchedReaderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewTokenPoolBatchedReaderResponse) String() string { @@ -1038,7 +979,7 @@ func (*NewTokenPoolBatchedReaderResponse) ProtoMessage() {} func (x *NewTokenPoolBatchedReaderResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1063,20 +1004,17 @@ func (x *NewTokenPoolBatchedReaderResponse) GetTokenPoolBatchedReaderServiceId() // SourceNativeTokenResponse is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPCommitProvider.SourceNativeToken] type SourceNativeTokenRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceRouterAddress string `protobuf:"bytes,1,opt,name=source_router_address,json=sourceRouterAddress,proto3" json:"source_router_address,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SourceRouterAddress string `protobuf:"bytes,1,opt,name=source_router_address,json=sourceRouterAddress,proto3" json:"source_router_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SourceNativeTokenRequest) Reset() { *x = SourceNativeTokenRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SourceNativeTokenRequest) String() string { @@ -1087,7 +1025,7 @@ func (*SourceNativeTokenRequest) ProtoMessage() {} func (x *SourceNativeTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1112,20 +1050,17 @@ func (x *SourceNativeTokenRequest) GetSourceRouterAddress() string { // SourceNativeTokenResponse is a gRPC adapter for the output arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPExecProvider.SourceNativeToken] type SourceNativeTokenResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NativeTokenAddress string `protobuf:"bytes,1,opt,name=native_token_address,json=nativeTokenAddress,proto3" json:"native_token_address,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + NativeTokenAddress string `protobuf:"bytes,1,opt,name=native_token_address,json=nativeTokenAddress,proto3" json:"native_token_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SourceNativeTokenResponse) Reset() { *x = SourceNativeTokenResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SourceNativeTokenResponse) String() string { @@ -1136,7 +1071,7 @@ func (*SourceNativeTokenResponse) ProtoMessage() {} func (x *SourceNativeTokenResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1161,20 +1096,17 @@ func (x *SourceNativeTokenResponse) GetNativeTokenAddress() string { // NewOffRampReadersRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPCommitProvider.NewOffRampReaders] type NewOffRampReadersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DestRouterAddress string `protobuf:"bytes,1,opt,name=dest_router_address,json=destRouterAddress,proto3" json:"dest_router_address,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DestRouterAddress string `protobuf:"bytes,1,opt,name=dest_router_address,json=destRouterAddress,proto3" json:"dest_router_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewOffRampReadersRequest) Reset() { *x = NewOffRampReadersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewOffRampReadersRequest) String() string { @@ -1185,7 +1117,7 @@ func (*NewOffRampReadersRequest) ProtoMessage() {} func (x *NewOffRampReadersRequest) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1210,20 +1142,17 @@ func (x *NewOffRampReadersRequest) GetDestRouterAddress() string { // NewOffRampReadersRequest is a gRPC adapter for the output arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/CCIPCommitProvider.NewOffRampReaders] type NewOffRampReadersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OfframpReadersServiceIds []int32 `protobuf:"varint,1,rep,packed,name=offramp_readers_service_ids,json=offrampReadersServiceIds,proto3" json:"offramp_readers_service_ids,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OfframpReadersServiceIds []int32 `protobuf:"varint,1,rep,packed,name=offramp_readers_service_ids,json=offrampReadersServiceIds,proto3" json:"offramp_readers_service_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewOffRampReadersResponse) Reset() { *x = NewOffRampReadersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factories_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_factories_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewOffRampReadersResponse) String() string { @@ -1234,7 +1163,7 @@ func (*NewOffRampReadersResponse) ProtoMessage() {} func (x *NewOffRampReadersResponse) ProtoReflect() protoreflect.Message { mi := &file_factories_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1258,7 +1187,7 @@ func (x *NewOffRampReadersResponse) GetOfframpReadersServiceIds() []int32 { var File_factories_proto protoreflect.FileDescriptor -var file_factories_proto_rawDesc = []byte{ +var file_factories_proto_rawDesc = string([]byte{ 0x0a, 0x0f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, @@ -1543,22 +1472,22 @@ var file_factories_proto_rawDesc = []byte{ 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_factories_proto_rawDescOnce sync.Once - file_factories_proto_rawDescData = file_factories_proto_rawDesc + file_factories_proto_rawDescData []byte ) func file_factories_proto_rawDescGZIP() []byte { file_factories_proto_rawDescOnce.Do(func() { - file_factories_proto_rawDescData = protoimpl.X.CompressGZIP(file_factories_proto_rawDescData) + file_factories_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_factories_proto_rawDesc), len(file_factories_proto_rawDesc))) }) return file_factories_proto_rawDescData } var file_factories_proto_msgTypes = make([]protoimpl.MessageInfo, 24) -var file_factories_proto_goTypes = []interface{}{ +var file_factories_proto_goTypes = []any{ (*NewExecutionFactoryRequest)(nil), // 0: loop.internal.pb.ccip.NewExecutionFactoryRequest (*NewExecutionFactoryResponse)(nil), // 1: loop.internal.pb.ccip.NewExecutionFactoryResponse (*NewCommitFactoryRequest)(nil), // 2: loop.internal.pb.ccip.NewCommitFactoryRequest @@ -1634,301 +1563,11 @@ func file_factories_proto_init() { if File_factories_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_factories_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewExecutionFactoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewExecutionFactoryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewCommitFactoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewCommitFactoryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewCommitStoreReaderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewCommitStoreReaderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewOffRampReaderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewOffRampReaderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewOnRampReaderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewOnRampReaderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewPriceGetterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewPriceGetterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewPriceRegistryReaderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewPriceRegistryReaderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewTokenDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewTokenDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewTokenPoolBatchedReaderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewTokenPoolBatchedReaderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SourceNativeTokenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SourceNativeTokenResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewOffRampReadersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factories_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewOffRampReadersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_factories_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_factories_proto_rawDesc), len(file_factories_proto_rawDesc)), NumEnums: 0, NumMessages: 24, NumExtensions: 0, @@ -1939,7 +1578,6 @@ func file_factories_proto_init() { MessageInfos: file_factories_proto_msgTypes, }.Build() File_factories_proto = out.File - file_factories_proto_rawDesc = nil file_factories_proto_goTypes = nil file_factories_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/factories_grpc.pb.go b/pkg/loop/internal/pb/ccip/factories_grpc.pb.go index 99fcb7a1a..138c78682 100644 --- a/pkg/loop/internal/pb/ccip/factories_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/factories_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: factories.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ExecutionFactoryGenerator_NewExecutionFactory_FullMethodName = "/loop.internal.pb.ccip.ExecutionFactoryGenerator/NewExecutionFactory" @@ -26,6 +26,9 @@ const ( // ExecutionFactoryGeneratorClient is the client API for ExecutionFactoryGenerator service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ExecutionFactoryGenerator is a gRPC service that generates a execution factory +// It is a gRPC service adapter for the https://github.com/smartcontractkit/ccip/core/services/ocr2/plugins/ccip/ccipexec/NewExecutionReportingPluginFactory type ExecutionFactoryGeneratorClient interface { NewExecutionFactory(ctx context.Context, in *NewExecutionFactoryRequest, opts ...grpc.CallOption) (*NewExecutionFactoryResponse, error) } @@ -39,8 +42,9 @@ func NewExecutionFactoryGeneratorClient(cc grpc.ClientConnInterface) ExecutionFa } func (c *executionFactoryGeneratorClient) NewExecutionFactory(ctx context.Context, in *NewExecutionFactoryRequest, opts ...grpc.CallOption) (*NewExecutionFactoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewExecutionFactoryResponse) - err := c.cc.Invoke(ctx, ExecutionFactoryGenerator_NewExecutionFactory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionFactoryGenerator_NewExecutionFactory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,21 +53,28 @@ func (c *executionFactoryGeneratorClient) NewExecutionFactory(ctx context.Contex // ExecutionFactoryGeneratorServer is the server API for ExecutionFactoryGenerator service. // All implementations must embed UnimplementedExecutionFactoryGeneratorServer -// for forward compatibility +// for forward compatibility. +// +// ExecutionFactoryGenerator is a gRPC service that generates a execution factory +// It is a gRPC service adapter for the https://github.com/smartcontractkit/ccip/core/services/ocr2/plugins/ccip/ccipexec/NewExecutionReportingPluginFactory type ExecutionFactoryGeneratorServer interface { NewExecutionFactory(context.Context, *NewExecutionFactoryRequest) (*NewExecutionFactoryResponse, error) mustEmbedUnimplementedExecutionFactoryGeneratorServer() } -// UnimplementedExecutionFactoryGeneratorServer must be embedded to have forward compatible implementations. -type UnimplementedExecutionFactoryGeneratorServer struct { -} +// UnimplementedExecutionFactoryGeneratorServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExecutionFactoryGeneratorServer struct{} func (UnimplementedExecutionFactoryGeneratorServer) NewExecutionFactory(context.Context, *NewExecutionFactoryRequest) (*NewExecutionFactoryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewExecutionFactory not implemented") } func (UnimplementedExecutionFactoryGeneratorServer) mustEmbedUnimplementedExecutionFactoryGeneratorServer() { } +func (UnimplementedExecutionFactoryGeneratorServer) testEmbeddedByValue() {} // UnsafeExecutionFactoryGeneratorServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExecutionFactoryGeneratorServer will @@ -73,6 +84,13 @@ type UnsafeExecutionFactoryGeneratorServer interface { } func RegisterExecutionFactoryGeneratorServer(s grpc.ServiceRegistrar, srv ExecutionFactoryGeneratorServer) { + // If the following call pancis, it indicates UnimplementedExecutionFactoryGeneratorServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ExecutionFactoryGenerator_ServiceDesc, srv) } @@ -125,6 +143,9 @@ const ( // ExecutionCustomHandlersClient is the client API for ExecutionCustomHandlers service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ExecutionCustomHandlers is a gRPC service that services the custom +// resource generation requests for the execution provider type ExecutionCustomHandlersClient interface { GetTransactionStatus(ctx context.Context, in *GetTransactionStatusRequest, opts ...grpc.CallOption) (*GetTransactionStatusResponse, error) NewCommitStoreReader(ctx context.Context, in *NewCommitStoreReaderRequest, opts ...grpc.CallOption) (*NewCommitStoreReaderResponse, error) @@ -146,8 +167,9 @@ func NewExecutionCustomHandlersClient(cc grpc.ClientConnInterface) ExecutionCust } func (c *executionCustomHandlersClient) GetTransactionStatus(ctx context.Context, in *GetTransactionStatusRequest, opts ...grpc.CallOption) (*GetTransactionStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionStatusResponse) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_GetTransactionStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_GetTransactionStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -155,8 +177,9 @@ func (c *executionCustomHandlersClient) GetTransactionStatus(ctx context.Context } func (c *executionCustomHandlersClient) NewCommitStoreReader(ctx context.Context, in *NewCommitStoreReaderRequest, opts ...grpc.CallOption) (*NewCommitStoreReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewCommitStoreReaderResponse) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewCommitStoreReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewCommitStoreReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -164,8 +187,9 @@ func (c *executionCustomHandlersClient) NewCommitStoreReader(ctx context.Context } func (c *executionCustomHandlersClient) NewOffRampReader(ctx context.Context, in *NewOffRampReaderRequest, opts ...grpc.CallOption) (*NewOffRampReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewOffRampReaderResponse) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewOffRampReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewOffRampReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -173,8 +197,9 @@ func (c *executionCustomHandlersClient) NewOffRampReader(ctx context.Context, in } func (c *executionCustomHandlersClient) NewOnRampReader(ctx context.Context, in *NewOnRampReaderRequest, opts ...grpc.CallOption) (*NewOnRampReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewOnRampReaderResponse) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewOnRampReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewOnRampReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -182,8 +207,9 @@ func (c *executionCustomHandlersClient) NewOnRampReader(ctx context.Context, in } func (c *executionCustomHandlersClient) NewPriceRegistryReader(ctx context.Context, in *NewPriceRegistryReaderRequest, opts ...grpc.CallOption) (*NewPriceRegistryReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewPriceRegistryReaderResponse) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewPriceRegistryReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewPriceRegistryReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -191,8 +217,9 @@ func (c *executionCustomHandlersClient) NewPriceRegistryReader(ctx context.Conte } func (c *executionCustomHandlersClient) NewTokenDataReader(ctx context.Context, in *NewTokenDataRequest, opts ...grpc.CallOption) (*NewTokenDataResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewTokenDataResponse) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewTokenDataReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewTokenDataReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -200,8 +227,9 @@ func (c *executionCustomHandlersClient) NewTokenDataReader(ctx context.Context, } func (c *executionCustomHandlersClient) NewTokenPoolBatchedReader(ctx context.Context, in *NewTokenPoolBatchedReaderRequest, opts ...grpc.CallOption) (*NewTokenPoolBatchedReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewTokenPoolBatchedReaderResponse) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewTokenPoolBatchedReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_NewTokenPoolBatchedReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -209,8 +237,9 @@ func (c *executionCustomHandlersClient) NewTokenPoolBatchedReader(ctx context.Co } func (c *executionCustomHandlersClient) SourceNativeToken(ctx context.Context, in *SourceNativeTokenRequest, opts ...grpc.CallOption) (*SourceNativeTokenResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SourceNativeTokenResponse) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_SourceNativeToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_SourceNativeToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -218,8 +247,9 @@ func (c *executionCustomHandlersClient) SourceNativeToken(ctx context.Context, i } func (c *executionCustomHandlersClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ExecutionCustomHandlers_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionCustomHandlers_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -228,7 +258,10 @@ func (c *executionCustomHandlersClient) Close(ctx context.Context, in *emptypb.E // ExecutionCustomHandlersServer is the server API for ExecutionCustomHandlers service. // All implementations must embed UnimplementedExecutionCustomHandlersServer -// for forward compatibility +// for forward compatibility. +// +// ExecutionCustomHandlers is a gRPC service that services the custom +// resource generation requests for the execution provider type ExecutionCustomHandlersServer interface { GetTransactionStatus(context.Context, *GetTransactionStatusRequest) (*GetTransactionStatusResponse, error) NewCommitStoreReader(context.Context, *NewCommitStoreReaderRequest) (*NewCommitStoreReaderResponse, error) @@ -242,9 +275,12 @@ type ExecutionCustomHandlersServer interface { mustEmbedUnimplementedExecutionCustomHandlersServer() } -// UnimplementedExecutionCustomHandlersServer must be embedded to have forward compatible implementations. -type UnimplementedExecutionCustomHandlersServer struct { -} +// UnimplementedExecutionCustomHandlersServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExecutionCustomHandlersServer struct{} func (UnimplementedExecutionCustomHandlersServer) GetTransactionStatus(context.Context, *GetTransactionStatusRequest) (*GetTransactionStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTransactionStatus not implemented") @@ -275,6 +311,7 @@ func (UnimplementedExecutionCustomHandlersServer) Close(context.Context, *emptyp } func (UnimplementedExecutionCustomHandlersServer) mustEmbedUnimplementedExecutionCustomHandlersServer() { } +func (UnimplementedExecutionCustomHandlersServer) testEmbeddedByValue() {} // UnsafeExecutionCustomHandlersServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExecutionCustomHandlersServer will @@ -284,6 +321,13 @@ type UnsafeExecutionCustomHandlersServer interface { } func RegisterExecutionCustomHandlersServer(s grpc.ServiceRegistrar, srv ExecutionCustomHandlersServer) { + // If the following call pancis, it indicates UnimplementedExecutionCustomHandlersServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ExecutionCustomHandlers_ServiceDesc, srv) } @@ -517,8 +561,9 @@ func NewCommitFactoryGeneratorClient(cc grpc.ClientConnInterface) CommitFactoryG } func (c *commitFactoryGeneratorClient) NewCommitFactory(ctx context.Context, in *NewCommitFactoryRequest, opts ...grpc.CallOption) (*NewCommitFactoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewCommitFactoryResponse) - err := c.cc.Invoke(ctx, CommitFactoryGenerator_NewCommitFactory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitFactoryGenerator_NewCommitFactory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -527,21 +572,25 @@ func (c *commitFactoryGeneratorClient) NewCommitFactory(ctx context.Context, in // CommitFactoryGeneratorServer is the server API for CommitFactoryGenerator service. // All implementations must embed UnimplementedCommitFactoryGeneratorServer -// for forward compatibility +// for forward compatibility. type CommitFactoryGeneratorServer interface { NewCommitFactory(context.Context, *NewCommitFactoryRequest) (*NewCommitFactoryResponse, error) mustEmbedUnimplementedCommitFactoryGeneratorServer() } -// UnimplementedCommitFactoryGeneratorServer must be embedded to have forward compatible implementations. -type UnimplementedCommitFactoryGeneratorServer struct { -} +// UnimplementedCommitFactoryGeneratorServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCommitFactoryGeneratorServer struct{} func (UnimplementedCommitFactoryGeneratorServer) NewCommitFactory(context.Context, *NewCommitFactoryRequest) (*NewCommitFactoryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewCommitFactory not implemented") } func (UnimplementedCommitFactoryGeneratorServer) mustEmbedUnimplementedCommitFactoryGeneratorServer() { } +func (UnimplementedCommitFactoryGeneratorServer) testEmbeddedByValue() {} // UnsafeCommitFactoryGeneratorServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CommitFactoryGeneratorServer will @@ -551,6 +600,13 @@ type UnsafeCommitFactoryGeneratorServer interface { } func RegisterCommitFactoryGeneratorServer(s grpc.ServiceRegistrar, srv CommitFactoryGeneratorServer) { + // If the following call pancis, it indicates UnimplementedCommitFactoryGeneratorServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CommitFactoryGenerator_ServiceDesc, srv) } @@ -601,6 +657,9 @@ const ( // CommitCustomHandlersClient is the client API for CommitCustomHandlers service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// CommitCustomHandlers is a gRPC service that services the custom +// resource generation requests for the commit provider type CommitCustomHandlersClient interface { NewCommitStoreReader(ctx context.Context, in *NewCommitStoreReaderRequest, opts ...grpc.CallOption) (*NewCommitStoreReaderResponse, error) NewOffRampReader(ctx context.Context, in *NewOffRampReaderRequest, opts ...grpc.CallOption) (*NewOffRampReaderResponse, error) @@ -620,8 +679,9 @@ func NewCommitCustomHandlersClient(cc grpc.ClientConnInterface) CommitCustomHand } func (c *commitCustomHandlersClient) NewCommitStoreReader(ctx context.Context, in *NewCommitStoreReaderRequest, opts ...grpc.CallOption) (*NewCommitStoreReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewCommitStoreReaderResponse) - err := c.cc.Invoke(ctx, CommitCustomHandlers_NewCommitStoreReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitCustomHandlers_NewCommitStoreReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -629,8 +689,9 @@ func (c *commitCustomHandlersClient) NewCommitStoreReader(ctx context.Context, i } func (c *commitCustomHandlersClient) NewOffRampReader(ctx context.Context, in *NewOffRampReaderRequest, opts ...grpc.CallOption) (*NewOffRampReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewOffRampReaderResponse) - err := c.cc.Invoke(ctx, CommitCustomHandlers_NewOffRampReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitCustomHandlers_NewOffRampReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -638,8 +699,9 @@ func (c *commitCustomHandlersClient) NewOffRampReader(ctx context.Context, in *N } func (c *commitCustomHandlersClient) NewOnRampReader(ctx context.Context, in *NewOnRampReaderRequest, opts ...grpc.CallOption) (*NewOnRampReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewOnRampReaderResponse) - err := c.cc.Invoke(ctx, CommitCustomHandlers_NewOnRampReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitCustomHandlers_NewOnRampReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -647,8 +709,9 @@ func (c *commitCustomHandlersClient) NewOnRampReader(ctx context.Context, in *Ne } func (c *commitCustomHandlersClient) NewPriceGetter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NewPriceGetterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewPriceGetterResponse) - err := c.cc.Invoke(ctx, CommitCustomHandlers_NewPriceGetter_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitCustomHandlers_NewPriceGetter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -656,8 +719,9 @@ func (c *commitCustomHandlersClient) NewPriceGetter(ctx context.Context, in *emp } func (c *commitCustomHandlersClient) NewPriceRegistryReader(ctx context.Context, in *NewPriceRegistryReaderRequest, opts ...grpc.CallOption) (*NewPriceRegistryReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewPriceRegistryReaderResponse) - err := c.cc.Invoke(ctx, CommitCustomHandlers_NewPriceRegistryReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitCustomHandlers_NewPriceRegistryReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -665,8 +729,9 @@ func (c *commitCustomHandlersClient) NewPriceRegistryReader(ctx context.Context, } func (c *commitCustomHandlersClient) SourceNativeToken(ctx context.Context, in *SourceNativeTokenRequest, opts ...grpc.CallOption) (*SourceNativeTokenResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SourceNativeTokenResponse) - err := c.cc.Invoke(ctx, CommitCustomHandlers_SourceNativeToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitCustomHandlers_SourceNativeToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -674,8 +739,9 @@ func (c *commitCustomHandlersClient) SourceNativeToken(ctx context.Context, in * } func (c *commitCustomHandlersClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, CommitCustomHandlers_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitCustomHandlers_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -684,7 +750,10 @@ func (c *commitCustomHandlersClient) Close(ctx context.Context, in *emptypb.Empt // CommitCustomHandlersServer is the server API for CommitCustomHandlers service. // All implementations must embed UnimplementedCommitCustomHandlersServer -// for forward compatibility +// for forward compatibility. +// +// CommitCustomHandlers is a gRPC service that services the custom +// resource generation requests for the commit provider type CommitCustomHandlersServer interface { NewCommitStoreReader(context.Context, *NewCommitStoreReaderRequest) (*NewCommitStoreReaderResponse, error) NewOffRampReader(context.Context, *NewOffRampReaderRequest) (*NewOffRampReaderResponse, error) @@ -696,9 +765,12 @@ type CommitCustomHandlersServer interface { mustEmbedUnimplementedCommitCustomHandlersServer() } -// UnimplementedCommitCustomHandlersServer must be embedded to have forward compatible implementations. -type UnimplementedCommitCustomHandlersServer struct { -} +// UnimplementedCommitCustomHandlersServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCommitCustomHandlersServer struct{} func (UnimplementedCommitCustomHandlersServer) NewCommitStoreReader(context.Context, *NewCommitStoreReaderRequest) (*NewCommitStoreReaderResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewCommitStoreReader not implemented") @@ -722,6 +794,7 @@ func (UnimplementedCommitCustomHandlersServer) Close(context.Context, *emptypb.E return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedCommitCustomHandlersServer) mustEmbedUnimplementedCommitCustomHandlersServer() {} +func (UnimplementedCommitCustomHandlersServer) testEmbeddedByValue() {} // UnsafeCommitCustomHandlersServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CommitCustomHandlersServer will @@ -731,6 +804,13 @@ type UnsafeCommitCustomHandlersServer interface { } func RegisterCommitCustomHandlersServer(s grpc.ServiceRegistrar, srv CommitCustomHandlersServer) { + // If the following call pancis, it indicates UnimplementedCommitCustomHandlersServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CommitCustomHandlers_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/gaspriceestimator.pb.go b/pkg/loop/internal/pb/ccip/gaspriceestimator.pb.go index 0ebc7f066..277d304ed 100644 --- a/pkg/loop/internal/pb/ccip/gaspriceestimator.pb.go +++ b/pkg/loop/internal/pb/ccip/gaspriceestimator.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: gaspriceestimator.proto package ccippb @@ -13,6 +13,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -25,20 +26,17 @@ const ( // GetGasPriceResponse returns the current gas price. It is a gRPC adpater for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorExec.GetGasPrice] type GetGasPriceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + GasPrice *pb.BigInt `protobuf:"bytes,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` unknownFields protoimpl.UnknownFields - - GasPrice *pb.BigInt `protobuf:"bytes,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetGasPriceResponse) Reset() { *x = GetGasPriceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetGasPriceResponse) String() string { @@ -49,7 +47,7 @@ func (*GetGasPriceResponse) ProtoMessage() {} func (x *GetGasPriceResponse) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -74,21 +72,18 @@ func (x *GetGasPriceResponse) GetGasPrice() *pb.BigInt { // DenoteInUSDRequest is a gRPC adapter for the input values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorExec.DenoteInUSD] type DenoteInUSDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - P *pb.BigInt `protobuf:"bytes,1,opt,name=p,proto3" json:"p,omitempty"` - WrappedNativePrice *pb.BigInt `protobuf:"bytes,2,opt,name=wrapped_native_price,json=wrappedNativePrice,proto3" json:"wrapped_native_price,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + P *pb.BigInt `protobuf:"bytes,1,opt,name=p,proto3" json:"p,omitempty"` + WrappedNativePrice *pb.BigInt `protobuf:"bytes,2,opt,name=wrapped_native_price,json=wrappedNativePrice,proto3" json:"wrapped_native_price,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DenoteInUSDRequest) Reset() { *x = DenoteInUSDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DenoteInUSDRequest) String() string { @@ -99,7 +94,7 @@ func (*DenoteInUSDRequest) ProtoMessage() {} func (x *DenoteInUSDRequest) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -131,20 +126,17 @@ func (x *DenoteInUSDRequest) GetWrappedNativePrice() *pb.BigInt { // DenoteInUSDResponse returns the price in USD. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorExec.DenoteInUSD] type DenoteInUSDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UsdPrice *pb.BigInt `protobuf:"bytes,1,opt,name=usd_price,json=usdPrice,proto3" json:"usd_price,omitempty"` unknownFields protoimpl.UnknownFields - - UsdPrice *pb.BigInt `protobuf:"bytes,1,opt,name=usd_price,json=usdPrice,proto3" json:"usd_price,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DenoteInUSDResponse) Reset() { *x = DenoteInUSDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DenoteInUSDResponse) String() string { @@ -155,7 +147,7 @@ func (*DenoteInUSDResponse) ProtoMessage() {} func (x *DenoteInUSDResponse) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -180,22 +172,19 @@ func (x *DenoteInUSDResponse) GetUsdPrice() *pb.BigInt { // EstimateMsgCostUSDRequest is a gRPC adapter for the input values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorExec.EstimateMsgCostUSD] type EstimateMsgCostUSDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` P *pb.BigInt `protobuf:"bytes,1,opt,name=p,proto3" json:"p,omitempty"` WrappedNativePrice *pb.BigInt `protobuf:"bytes,2,opt,name=wrapped_native_price,json=wrappedNativePrice,proto3" json:"wrapped_native_price,omitempty"` Msg *EVM2EVMOnRampCCIPSendRequestedWithMeta `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EstimateMsgCostUSDRequest) Reset() { *x = EstimateMsgCostUSDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EstimateMsgCostUSDRequest) String() string { @@ -206,7 +195,7 @@ func (*EstimateMsgCostUSDRequest) ProtoMessage() {} func (x *EstimateMsgCostUSDRequest) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -245,20 +234,17 @@ func (x *EstimateMsgCostUSDRequest) GetMsg() *EVM2EVMOnRampCCIPSendRequestedWith // EstimateMsgCostUSDResponse returns the estimated cost in USD. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorExec.EstimateMsgCostUSD] type EstimateMsgCostUSDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UsdCost *pb.BigInt `protobuf:"bytes,1,opt,name=usd_cost,json=usdCost,proto3" json:"usd_cost,omitempty"` unknownFields protoimpl.UnknownFields - - UsdCost *pb.BigInt `protobuf:"bytes,1,opt,name=usd_cost,json=usdCost,proto3" json:"usd_cost,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EstimateMsgCostUSDResponse) Reset() { *x = EstimateMsgCostUSDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EstimateMsgCostUSDResponse) String() string { @@ -269,7 +255,7 @@ func (*EstimateMsgCostUSDResponse) ProtoMessage() {} func (x *EstimateMsgCostUSDResponse) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -294,20 +280,17 @@ func (x *EstimateMsgCostUSDResponse) GetUsdCost() *pb.BigInt { // MedianRequest is a gRPC adapter for the input values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.CommonGasPriceEstimator.Median] type MedianRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + GasPrices []*pb.BigInt `protobuf:"bytes,1,rep,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` unknownFields protoimpl.UnknownFields - - GasPrices []*pb.BigInt `protobuf:"bytes,1,rep,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MedianRequest) Reset() { *x = MedianRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MedianRequest) String() string { @@ -318,7 +301,7 @@ func (*MedianRequest) ProtoMessage() {} func (x *MedianRequest) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -343,20 +326,17 @@ func (x *MedianRequest) GetGasPrices() []*pb.BigInt { // MedianResponse returns the median gas price. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.CommonGasPriceEstimator.Median] type MedianResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + GasPrice *pb.BigInt `protobuf:"bytes,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` unknownFields protoimpl.UnknownFields - - GasPrice *pb.BigInt `protobuf:"bytes,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MedianResponse) Reset() { *x = MedianResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MedianResponse) String() string { @@ -367,7 +347,7 @@ func (*MedianResponse) ProtoMessage() {} func (x *MedianResponse) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -392,21 +372,18 @@ func (x *MedianResponse) GetGasPrice() *pb.BigInt { // DeviatesRequest is a gRPC adapter for the input values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorCommit.Deviates] type DeviatesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + P1 *pb.BigInt `protobuf:"bytes,1,opt,name=p1,proto3" json:"p1,omitempty"` + P2 *pb.BigInt `protobuf:"bytes,2,opt,name=p2,proto3" json:"p2,omitempty"` unknownFields protoimpl.UnknownFields - - P1 *pb.BigInt `protobuf:"bytes,1,opt,name=p1,proto3" json:"p1,omitempty"` - P2 *pb.BigInt `protobuf:"bytes,2,opt,name=p2,proto3" json:"p2,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeviatesRequest) Reset() { *x = DeviatesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeviatesRequest) String() string { @@ -417,7 +394,7 @@ func (*DeviatesRequest) ProtoMessage() {} func (x *DeviatesRequest) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -449,20 +426,17 @@ func (x *DeviatesRequest) GetP2() *pb.BigInt { // DeviatesResponse returns the deviation between two gas prices. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorCommit.Deviates] type DeviatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Deviates bool `protobuf:"varint,1,opt,name=deviates,proto3" json:"deviates,omitempty"` unknownFields protoimpl.UnknownFields - - Deviates bool `protobuf:"varint,1,opt,name=deviates,proto3" json:"deviates,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeviatesResponse) Reset() { *x = DeviatesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_gaspriceestimator_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_gaspriceestimator_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeviatesResponse) String() string { @@ -473,7 +447,7 @@ func (*DeviatesResponse) ProtoMessage() {} func (x *DeviatesResponse) ProtoReflect() protoreflect.Message { mi := &file_gaspriceestimator_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -497,7 +471,7 @@ func (x *DeviatesResponse) GetDeviates() bool { var File_gaspriceestimator_proto protoreflect.FileDescriptor -var file_gaspriceestimator_proto_rawDesc = []byte{ +var file_gaspriceestimator_proto_rawDesc = string([]byte{ 0x0a, 0x17, 0x67, 0x61, 0x73, 0x70, 0x72, 0x69, 0x63, 0x65, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, @@ -610,22 +584,22 @@ var file_gaspriceestimator_proto_rawDesc = []byte{ 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_gaspriceestimator_proto_rawDescOnce sync.Once - file_gaspriceestimator_proto_rawDescData = file_gaspriceestimator_proto_rawDesc + file_gaspriceestimator_proto_rawDescData []byte ) func file_gaspriceestimator_proto_rawDescGZIP() []byte { file_gaspriceestimator_proto_rawDescOnce.Do(func() { - file_gaspriceestimator_proto_rawDescData = protoimpl.X.CompressGZIP(file_gaspriceestimator_proto_rawDescData) + file_gaspriceestimator_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_gaspriceestimator_proto_rawDesc), len(file_gaspriceestimator_proto_rawDesc))) }) return file_gaspriceestimator_proto_rawDescData } var file_gaspriceestimator_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_gaspriceestimator_proto_goTypes = []interface{}{ +var file_gaspriceestimator_proto_goTypes = []any{ (*GetGasPriceResponse)(nil), // 0: loop.internal.pb.ccip.GetGasPriceResponse (*DenoteInUSDRequest)(nil), // 1: loop.internal.pb.ccip.DenoteInUSDRequest (*DenoteInUSDResponse)(nil), // 2: loop.internal.pb.ccip.DenoteInUSDResponse @@ -681,121 +655,11 @@ func file_gaspriceestimator_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_gaspriceestimator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGasPriceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaspriceestimator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DenoteInUSDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaspriceestimator_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DenoteInUSDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaspriceestimator_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateMsgCostUSDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaspriceestimator_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EstimateMsgCostUSDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaspriceestimator_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MedianRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaspriceestimator_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MedianResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaspriceestimator_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeviatesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_gaspriceestimator_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeviatesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_gaspriceestimator_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_gaspriceestimator_proto_rawDesc), len(file_gaspriceestimator_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, @@ -806,7 +670,6 @@ func file_gaspriceestimator_proto_init() { MessageInfos: file_gaspriceestimator_proto_msgTypes, }.Build() File_gaspriceestimator_proto = out.File - file_gaspriceestimator_proto_rawDesc = nil file_gaspriceestimator_proto_goTypes = nil file_gaspriceestimator_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/gaspriceestimator_grpc.pb.go b/pkg/loop/internal/pb/ccip/gaspriceestimator_grpc.pb.go index cb69ecdff..7c8b29cd9 100644 --- a/pkg/loop/internal/pb/ccip/gaspriceestimator_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/gaspriceestimator_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: gaspriceestimator.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( GasPriceEstimatorExec_GetGasPrice_FullMethodName = "/loop.internal.pb.ccip.GasPriceEstimatorExec/GetGasPrice" @@ -29,6 +29,9 @@ const ( // GasPriceEstimatorExecClient is the client API for GasPriceEstimatorExec service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// GasPriceEstimatorExec is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorExec] type GasPriceEstimatorExecClient interface { GetGasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGasPriceResponse, error) DenoteInUSD(ctx context.Context, in *DenoteInUSDRequest, opts ...grpc.CallOption) (*DenoteInUSDResponse, error) @@ -46,8 +49,9 @@ func NewGasPriceEstimatorExecClient(cc grpc.ClientConnInterface) GasPriceEstimat } func (c *gasPriceEstimatorExecClient) GetGasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGasPriceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetGasPriceResponse) - err := c.cc.Invoke(ctx, GasPriceEstimatorExec_GetGasPrice_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, GasPriceEstimatorExec_GetGasPrice_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +59,9 @@ func (c *gasPriceEstimatorExecClient) GetGasPrice(ctx context.Context, in *empty } func (c *gasPriceEstimatorExecClient) DenoteInUSD(ctx context.Context, in *DenoteInUSDRequest, opts ...grpc.CallOption) (*DenoteInUSDResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DenoteInUSDResponse) - err := c.cc.Invoke(ctx, GasPriceEstimatorExec_DenoteInUSD_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, GasPriceEstimatorExec_DenoteInUSD_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +69,9 @@ func (c *gasPriceEstimatorExecClient) DenoteInUSD(ctx context.Context, in *Denot } func (c *gasPriceEstimatorExecClient) EstimateMsgCostUSD(ctx context.Context, in *EstimateMsgCostUSDRequest, opts ...grpc.CallOption) (*EstimateMsgCostUSDResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EstimateMsgCostUSDResponse) - err := c.cc.Invoke(ctx, GasPriceEstimatorExec_EstimateMsgCostUSD_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, GasPriceEstimatorExec_EstimateMsgCostUSD_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +79,9 @@ func (c *gasPriceEstimatorExecClient) EstimateMsgCostUSD(ctx context.Context, in } func (c *gasPriceEstimatorExecClient) Median(ctx context.Context, in *MedianRequest, opts ...grpc.CallOption) (*MedianResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MedianResponse) - err := c.cc.Invoke(ctx, GasPriceEstimatorExec_Median_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, GasPriceEstimatorExec_Median_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -83,7 +90,10 @@ func (c *gasPriceEstimatorExecClient) Median(ctx context.Context, in *MedianRequ // GasPriceEstimatorExecServer is the server API for GasPriceEstimatorExec service. // All implementations must embed UnimplementedGasPriceEstimatorExecServer -// for forward compatibility +// for forward compatibility. +// +// GasPriceEstimatorExec is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorExec] type GasPriceEstimatorExecServer interface { GetGasPrice(context.Context, *emptypb.Empty) (*GetGasPriceResponse, error) DenoteInUSD(context.Context, *DenoteInUSDRequest) (*DenoteInUSDResponse, error) @@ -93,9 +103,12 @@ type GasPriceEstimatorExecServer interface { mustEmbedUnimplementedGasPriceEstimatorExecServer() } -// UnimplementedGasPriceEstimatorExecServer must be embedded to have forward compatible implementations. -type UnimplementedGasPriceEstimatorExecServer struct { -} +// UnimplementedGasPriceEstimatorExecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedGasPriceEstimatorExecServer struct{} func (UnimplementedGasPriceEstimatorExecServer) GetGasPrice(context.Context, *emptypb.Empty) (*GetGasPriceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetGasPrice not implemented") @@ -110,6 +123,7 @@ func (UnimplementedGasPriceEstimatorExecServer) Median(context.Context, *MedianR return nil, status.Errorf(codes.Unimplemented, "method Median not implemented") } func (UnimplementedGasPriceEstimatorExecServer) mustEmbedUnimplementedGasPriceEstimatorExecServer() {} +func (UnimplementedGasPriceEstimatorExecServer) testEmbeddedByValue() {} // UnsafeGasPriceEstimatorExecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to GasPriceEstimatorExecServer will @@ -119,6 +133,13 @@ type UnsafeGasPriceEstimatorExecServer interface { } func RegisterGasPriceEstimatorExecServer(s grpc.ServiceRegistrar, srv GasPriceEstimatorExecServer) { + // If the following call pancis, it indicates UnimplementedGasPriceEstimatorExecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&GasPriceEstimatorExec_ServiceDesc, srv) } @@ -232,6 +253,9 @@ const ( // GasPriceEstimatorCommitClient is the client API for GasPriceEstimatorCommit service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// GasPriceEstimatorCommit is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorCommit] type GasPriceEstimatorCommitClient interface { GetGasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGasPriceResponse, error) DenoteInUSD(ctx context.Context, in *DenoteInUSDRequest, opts ...grpc.CallOption) (*DenoteInUSDResponse, error) @@ -249,8 +273,9 @@ func NewGasPriceEstimatorCommitClient(cc grpc.ClientConnInterface) GasPriceEstim } func (c *gasPriceEstimatorCommitClient) GetGasPrice(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGasPriceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetGasPriceResponse) - err := c.cc.Invoke(ctx, GasPriceEstimatorCommit_GetGasPrice_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, GasPriceEstimatorCommit_GetGasPrice_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -258,8 +283,9 @@ func (c *gasPriceEstimatorCommitClient) GetGasPrice(ctx context.Context, in *emp } func (c *gasPriceEstimatorCommitClient) DenoteInUSD(ctx context.Context, in *DenoteInUSDRequest, opts ...grpc.CallOption) (*DenoteInUSDResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DenoteInUSDResponse) - err := c.cc.Invoke(ctx, GasPriceEstimatorCommit_DenoteInUSD_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, GasPriceEstimatorCommit_DenoteInUSD_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -267,8 +293,9 @@ func (c *gasPriceEstimatorCommitClient) DenoteInUSD(ctx context.Context, in *Den } func (c *gasPriceEstimatorCommitClient) Median(ctx context.Context, in *MedianRequest, opts ...grpc.CallOption) (*MedianResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MedianResponse) - err := c.cc.Invoke(ctx, GasPriceEstimatorCommit_Median_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, GasPriceEstimatorCommit_Median_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -276,8 +303,9 @@ func (c *gasPriceEstimatorCommitClient) Median(ctx context.Context, in *MedianRe } func (c *gasPriceEstimatorCommitClient) Deviates(ctx context.Context, in *DeviatesRequest, opts ...grpc.CallOption) (*DeviatesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeviatesResponse) - err := c.cc.Invoke(ctx, GasPriceEstimatorCommit_Deviates_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, GasPriceEstimatorCommit_Deviates_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -286,7 +314,10 @@ func (c *gasPriceEstimatorCommitClient) Deviates(ctx context.Context, in *Deviat // GasPriceEstimatorCommitServer is the server API for GasPriceEstimatorCommit service. // All implementations must embed UnimplementedGasPriceEstimatorCommitServer -// for forward compatibility +// for forward compatibility. +// +// GasPriceEstimatorCommit is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPriceEstimatorCommit] type GasPriceEstimatorCommitServer interface { GetGasPrice(context.Context, *emptypb.Empty) (*GetGasPriceResponse, error) DenoteInUSD(context.Context, *DenoteInUSDRequest) (*DenoteInUSDResponse, error) @@ -296,9 +327,12 @@ type GasPriceEstimatorCommitServer interface { mustEmbedUnimplementedGasPriceEstimatorCommitServer() } -// UnimplementedGasPriceEstimatorCommitServer must be embedded to have forward compatible implementations. -type UnimplementedGasPriceEstimatorCommitServer struct { -} +// UnimplementedGasPriceEstimatorCommitServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedGasPriceEstimatorCommitServer struct{} func (UnimplementedGasPriceEstimatorCommitServer) GetGasPrice(context.Context, *emptypb.Empty) (*GetGasPriceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetGasPrice not implemented") @@ -314,6 +348,7 @@ func (UnimplementedGasPriceEstimatorCommitServer) Deviates(context.Context, *Dev } func (UnimplementedGasPriceEstimatorCommitServer) mustEmbedUnimplementedGasPriceEstimatorCommitServer() { } +func (UnimplementedGasPriceEstimatorCommitServer) testEmbeddedByValue() {} // UnsafeGasPriceEstimatorCommitServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to GasPriceEstimatorCommitServer will @@ -323,6 +358,13 @@ type UnsafeGasPriceEstimatorCommitServer interface { } func RegisterGasPriceEstimatorCommitServer(s grpc.ServiceRegistrar, srv GasPriceEstimatorCommitServer) { + // If the following call pancis, it indicates UnimplementedGasPriceEstimatorCommitServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&GasPriceEstimatorCommit_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/models.pb.go b/pkg/loop/internal/pb/ccip/models.pb.go index ac6cb019e..0ad0388fe 100644 --- a/pkg/loop/internal/pb/ccip/models.pb.go +++ b/pkg/loop/internal/pb/ccip/models.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: models.proto package ccippb @@ -13,6 +13,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -74,24 +75,21 @@ func (FinalityStatus) EnumDescriptor() ([]byte, []int) { // TxMeta is a message that contains the metadata of a transaction. It is a gRPC adapter to // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.TxMeta] type TxMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BlockTimestampUnixMilli int64 `protobuf:"varint,1,opt,name=block_timestamp_unix_milli,json=blockTimestampUnixMilli,proto3" json:"block_timestamp_unix_milli,omitempty"` - BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` - TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` - LogIndex uint64 `protobuf:"varint,4,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` - Finalized FinalityStatus `protobuf:"varint,5,opt,name=finalized,proto3,enum=loop.internal.pb.ccip.FinalityStatus" json:"finalized,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + BlockTimestampUnixMilli int64 `protobuf:"varint,1,opt,name=block_timestamp_unix_milli,json=blockTimestampUnixMilli,proto3" json:"block_timestamp_unix_milli,omitempty"` + BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + TxHash string `protobuf:"bytes,3,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + LogIndex uint64 `protobuf:"varint,4,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` + Finalized FinalityStatus `protobuf:"varint,5,opt,name=finalized,proto3,enum=loop.internal.pb.ccip.FinalityStatus" json:"finalized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TxMeta) Reset() { *x = TxMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TxMeta) String() string { @@ -102,7 +100,7 @@ func (*TxMeta) ProtoMessage() {} func (x *TxMeta) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -154,33 +152,30 @@ func (x *TxMeta) GetFinalized() FinalityStatus { // EVM2EVMMesssage is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.EVM2EVMMessage] type EVM2EVMMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SequenceNumber uint64 `protobuf:"varint,1,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` - GasLimit *pb.BigInt `protobuf:"bytes,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` - Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` - GasPrice uint64 `protobuf:"varint,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` - MessageId []byte `protobuf:"bytes,5,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // Hash [32]byte - SourceChainSelector uint64 `protobuf:"varint,6,opt,name=source_chain_selector,json=sourceChainSelector,proto3" json:"source_chain_selector,omitempty"` - Sender string `protobuf:"bytes,7,opt,name=sender,proto3" json:"sender,omitempty"` // Address - Receiver string `protobuf:"bytes,8,opt,name=receiver,proto3" json:"receiver,omitempty"` // Address - Strict bool `protobuf:"varint,9,opt,name=strict,proto3" json:"strict,omitempty"` - FeeToken string `protobuf:"bytes,10,opt,name=fee_token,json=feeToken,proto3" json:"fee_token,omitempty"` // Address - FeeTokenAmount *pb.BigInt `protobuf:"bytes,11,opt,name=fee_token_amount,json=feeTokenAmount,proto3" json:"fee_token_amount,omitempty"` - Data []byte `protobuf:"bytes,12,opt,name=data,proto3" json:"data,omitempty"` - TokenAmounts []*TokenAmount `protobuf:"bytes,13,rep,name=token_amounts,json=tokenAmounts,proto3" json:"token_amounts,omitempty"` - SourceTokenData [][]byte `protobuf:"bytes,14,rep,name=source_token_data,json=sourceTokenData,proto3" json:"source_token_data,omitempty"` // Note: we don't bother with the Hash field here in the gRPC because it's derived from the golang struct + state protoimpl.MessageState `protogen:"open.v1"` + SequenceNumber uint64 `protobuf:"varint,1,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + GasLimit *pb.BigInt `protobuf:"bytes,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` + GasPrice uint64 `protobuf:"varint,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` + MessageId []byte `protobuf:"bytes,5,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // Hash [32]byte + SourceChainSelector uint64 `protobuf:"varint,6,opt,name=source_chain_selector,json=sourceChainSelector,proto3" json:"source_chain_selector,omitempty"` + Sender string `protobuf:"bytes,7,opt,name=sender,proto3" json:"sender,omitempty"` // Address + Receiver string `protobuf:"bytes,8,opt,name=receiver,proto3" json:"receiver,omitempty"` // Address + Strict bool `protobuf:"varint,9,opt,name=strict,proto3" json:"strict,omitempty"` + FeeToken string `protobuf:"bytes,10,opt,name=fee_token,json=feeToken,proto3" json:"fee_token,omitempty"` // Address + FeeTokenAmount *pb.BigInt `protobuf:"bytes,11,opt,name=fee_token_amount,json=feeTokenAmount,proto3" json:"fee_token_amount,omitempty"` + Data []byte `protobuf:"bytes,12,opt,name=data,proto3" json:"data,omitempty"` + TokenAmounts []*TokenAmount `protobuf:"bytes,13,rep,name=token_amounts,json=tokenAmounts,proto3" json:"token_amounts,omitempty"` + SourceTokenData [][]byte `protobuf:"bytes,14,rep,name=source_token_data,json=sourceTokenData,proto3" json:"source_token_data,omitempty"` // Note: we don't bother with the Hash field here in the gRPC because it's derived from the golang struct + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EVM2EVMMessage) Reset() { *x = EVM2EVMMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EVM2EVMMessage) String() string { @@ -191,7 +186,7 @@ func (*EVM2EVMMessage) ProtoMessage() {} func (x *EVM2EVMMessage) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -306,25 +301,22 @@ func (x *EVM2EVMMessage) GetSourceTokenData() [][]byte { // EVM2EVMOnRampCCIPSendRequestedWithMeta is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.EVM2EVMOnRampCCIPSendRequestedWithMeta] type EVM2EVMOnRampCCIPSendRequestedWithMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` EvmToEvmMsg *EVM2EVMMessage `protobuf:"bytes,1,opt,name=evm_to_evm_msg,json=evmToEvmMsg,proto3" json:"evm_to_evm_msg,omitempty"` BlockTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"` Executed bool `protobuf:"varint,3,opt,name=executed,proto3" json:"executed,omitempty"` Finalized bool `protobuf:"varint,4,opt,name=finalized,proto3" json:"finalized,omitempty"` LogIndex uint64 `protobuf:"varint,5,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` TxHash string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EVM2EVMOnRampCCIPSendRequestedWithMeta) Reset() { *x = EVM2EVMOnRampCCIPSendRequestedWithMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EVM2EVMOnRampCCIPSendRequestedWithMeta) String() string { @@ -335,7 +327,7 @@ func (*EVM2EVMOnRampCCIPSendRequestedWithMeta) ProtoMessage() {} func (x *EVM2EVMOnRampCCIPSendRequestedWithMeta) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -395,24 +387,21 @@ func (x *EVM2EVMOnRampCCIPSendRequestedWithMeta) GetTxHash() string { // TokenPoolRateLimit is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/TokenPoolRateLimit] type TokenPoolRateLimit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Tokens *pb.BigInt `protobuf:"bytes,1,opt,name=tokens,proto3" json:"tokens,omitempty"` + LastUpdated uint32 `protobuf:"varint,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` + IsEnabled bool `protobuf:"varint,3,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"` + Capacity *pb.BigInt `protobuf:"bytes,4,opt,name=capacity,proto3" json:"capacity,omitempty"` + Rate *pb.BigInt `protobuf:"bytes,5,opt,name=rate,proto3" json:"rate,omitempty"` unknownFields protoimpl.UnknownFields - - Tokens *pb.BigInt `protobuf:"bytes,1,opt,name=tokens,proto3" json:"tokens,omitempty"` - LastUpdated uint32 `protobuf:"varint,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` - IsEnabled bool `protobuf:"varint,3,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"` - Capacity *pb.BigInt `protobuf:"bytes,4,opt,name=capacity,proto3" json:"capacity,omitempty"` - Rate *pb.BigInt `protobuf:"bytes,5,opt,name=rate,proto3" json:"rate,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TokenPoolRateLimit) Reset() { *x = TokenPoolRateLimit{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenPoolRateLimit) String() string { @@ -423,7 +412,7 @@ func (*TokenPoolRateLimit) ProtoMessage() {} func (x *TokenPoolRateLimit) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -475,21 +464,18 @@ func (x *TokenPoolRateLimit) GetRate() *pb.BigInt { // TokenAmount is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.TokenAmount] type TokenAmount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Address + Amount *pb.BigInt `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Address - Amount *pb.BigInt `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TokenAmount) Reset() { *x = TokenAmount{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenAmount) String() string { @@ -500,7 +486,7 @@ func (*TokenAmount) ProtoMessage() {} func (x *TokenAmount) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -531,23 +517,20 @@ func (x *TokenAmount) GetAmount() *pb.BigInt { // ExecutionReport is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.ExecutionReport] type ExecutionReport struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EvmToEvmMessages []*EVM2EVMMessage `protobuf:"bytes,1,rep,name=evm_to_evm_messages,json=evmToEvmMessages,proto3" json:"evm_to_evm_messages,omitempty"` - OffchainTokenData []*TokenData `protobuf:"bytes,2,rep,name=offchain_token_data,json=offchainTokenData,proto3" json:"offchain_token_data,omitempty"` - Proofs [][]byte `protobuf:"bytes,3,rep,name=proofs,proto3" json:"proofs,omitempty"` // [][32]byte - ProofFlagBits *pb.BigInt `protobuf:"bytes,4,opt,name=proof_flag_bits,json=proofFlagBits,proto3" json:"proof_flag_bits,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + EvmToEvmMessages []*EVM2EVMMessage `protobuf:"bytes,1,rep,name=evm_to_evm_messages,json=evmToEvmMessages,proto3" json:"evm_to_evm_messages,omitempty"` + OffchainTokenData []*TokenData `protobuf:"bytes,2,rep,name=offchain_token_data,json=offchainTokenData,proto3" json:"offchain_token_data,omitempty"` + Proofs [][]byte `protobuf:"bytes,3,rep,name=proofs,proto3" json:"proofs,omitempty"` // [][32]byte + ProofFlagBits *pb.BigInt `protobuf:"bytes,4,opt,name=proof_flag_bits,json=proofFlagBits,proto3" json:"proof_flag_bits,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExecutionReport) Reset() { *x = ExecutionReport{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionReport) String() string { @@ -558,7 +541,7 @@ func (*ExecutionReport) ProtoMessage() {} func (x *ExecutionReport) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -602,20 +585,17 @@ func (x *ExecutionReport) GetProofFlagBits() *pb.BigInt { } type TokenData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TokenData) Reset() { *x = TokenData{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenData) String() string { @@ -626,7 +606,7 @@ func (*TokenData) ProtoMessage() {} func (x *TokenData) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -650,21 +630,18 @@ func (x *TokenData) GetData() [][]byte { // TokenPrice is the price of the stated token. It is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.TokenPrice] type TokenPrice struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Address + Value *pb.BigInt `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Address - Value *pb.BigInt `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TokenPrice) Reset() { *x = TokenPrice{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenPrice) String() string { @@ -675,7 +652,7 @@ func (*TokenPrice) ProtoMessage() {} func (x *TokenPrice) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -706,21 +683,18 @@ func (x *TokenPrice) GetValue() *pb.BigInt { // GasPrice is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccip.GasPrice] type GasPrice struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DestChainSelector uint64 `protobuf:"varint,1,opt,name=dest_chain_selector,json=destChainSelector,proto3" json:"dest_chain_selector,omitempty"` - Value *pb.BigInt `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DestChainSelector uint64 `protobuf:"varint,1,opt,name=dest_chain_selector,json=destChainSelector,proto3" json:"dest_chain_selector,omitempty"` + Value *pb.BigInt `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GasPrice) Reset() { *x = GasPrice{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GasPrice) String() string { @@ -731,7 +705,7 @@ func (*GasPrice) ProtoMessage() {} func (x *GasPrice) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -762,7 +736,7 @@ func (x *GasPrice) GetValue() *pb.BigInt { var File_models_proto protoreflect.FileDescriptor -var file_models_proto_rawDesc = []byte{ +var file_models_proto_rawDesc = string([]byte{ 0x0a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, @@ -891,23 +865,23 @@ var file_models_proto_rawDesc = []byte{ 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_models_proto_rawDescOnce sync.Once - file_models_proto_rawDescData = file_models_proto_rawDesc + file_models_proto_rawDescData []byte ) func file_models_proto_rawDescGZIP() []byte { file_models_proto_rawDescOnce.Do(func() { - file_models_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_proto_rawDescData) + file_models_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_models_proto_rawDesc), len(file_models_proto_rawDesc))) }) return file_models_proto_rawDescData } var file_models_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_models_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_models_proto_goTypes = []interface{}{ +var file_models_proto_goTypes = []any{ (FinalityStatus)(0), // 0: loop.internal.pb.ccip.FinalityStatus (*TxMeta)(nil), // 1: loop.internal.pb.ccip.TxMeta (*EVM2EVMMessage)(nil), // 2: loop.internal.pb.ccip.EVM2EVMMessage @@ -949,121 +923,11 @@ func file_models_proto_init() { if File_models_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_models_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TxMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EVM2EVMMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EVM2EVMOnRampCCIPSendRequestedWithMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenPoolRateLimit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenAmount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionReport); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenPrice); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GasPrice); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_models_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_models_proto_rawDesc), len(file_models_proto_rawDesc)), NumEnums: 1, NumMessages: 9, NumExtensions: 0, @@ -1075,7 +939,6 @@ func file_models_proto_init() { MessageInfos: file_models_proto_msgTypes, }.Build() File_models_proto = out.File - file_models_proto_rawDesc = nil file_models_proto_goTypes = nil file_models_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/offramp.pb.go b/pkg/loop/internal/pb/ccip/offramp.pb.go index 8edf5d49c..f8d9258fb 100644 --- a/pkg/loop/internal/pb/ccip/offramp.pb.go +++ b/pkg/loop/internal/pb/ccip/offramp.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: offramp.proto package ccippb @@ -13,6 +13,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -25,20 +26,17 @@ const ( // EncodeExecutionReportRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.EncodeExecutionReport] type EncodeExecutionReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report *ExecutionReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report *ExecutionReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeExecutionReportRequest) Reset() { *x = EncodeExecutionReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeExecutionReportRequest) String() string { @@ -49,7 +47,7 @@ func (*EncodeExecutionReportRequest) ProtoMessage() {} func (x *EncodeExecutionReportRequest) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -74,20 +72,17 @@ func (x *EncodeExecutionReportRequest) GetReport() *ExecutionReport { // EncodeExecutionReportResponse returns the encoded report. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.EncodeExecutionReport] type EncodeExecutionReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeExecutionReportResponse) Reset() { *x = EncodeExecutionReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeExecutionReportResponse) String() string { @@ -98,7 +93,7 @@ func (*EncodeExecutionReportResponse) ProtoMessage() {} func (x *EncodeExecutionReportResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -123,20 +118,17 @@ func (x *EncodeExecutionReportResponse) GetReport() []byte { // DecodeExecutionReportRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.DecodeExecutionReport] type DecodeExecutionReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeExecutionReportRequest) Reset() { *x = DecodeExecutionReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeExecutionReportRequest) String() string { @@ -147,7 +139,7 @@ func (*DecodeExecutionReportRequest) ProtoMessage() {} func (x *DecodeExecutionReportRequest) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -172,20 +164,17 @@ func (x *DecodeExecutionReportRequest) GetReport() []byte { // DecodeExecutionReportResponse returns the decoded report. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.DecodeExecutionReport] type DecodeExecutionReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report *ExecutionReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report *ExecutionReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeExecutionReportResponse) Reset() { *x = DecodeExecutionReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeExecutionReportResponse) String() string { @@ -196,7 +185,7 @@ func (*DecodeExecutionReportResponse) ProtoMessage() {} func (x *DecodeExecutionReportResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -221,22 +210,19 @@ func (x *DecodeExecutionReportResponse) GetReport() *ExecutionReport { // GetExecutionStateChangesRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GetExecutionStateChangesBetweenSeqNums] type GetExecutionStateChangesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + MinSeqNum uint64 `protobuf:"varint,1,opt,name=min_seq_num,json=minSeqNum,proto3" json:"min_seq_num,omitempty"` + MaxSeqNum uint64 `protobuf:"varint,2,opt,name=max_seq_num,json=maxSeqNum,proto3" json:"max_seq_num,omitempty"` + Confirmations int64 `protobuf:"varint,3,opt,name=confirmations,proto3" json:"confirmations,omitempty"` unknownFields protoimpl.UnknownFields - - MinSeqNum uint64 `protobuf:"varint,1,opt,name=min_seq_num,json=minSeqNum,proto3" json:"min_seq_num,omitempty"` - MaxSeqNum uint64 `protobuf:"varint,2,opt,name=max_seq_num,json=maxSeqNum,proto3" json:"max_seq_num,omitempty"` - Confirmations int64 `protobuf:"varint,3,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetExecutionStateChangesRequest) Reset() { *x = GetExecutionStateChangesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetExecutionStateChangesRequest) String() string { @@ -247,7 +233,7 @@ func (*GetExecutionStateChangesRequest) ProtoMessage() {} func (x *GetExecutionStateChangesRequest) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -286,20 +272,17 @@ func (x *GetExecutionStateChangesRequest) GetConfirmations() int64 { // GetExecutionStateChangesResponse returns the execution state changes. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GetExecutionStateChangesBetweenSeqNums] type GetExecutionStateChangesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ExecutionStateChanges []*ExecutionStateChangeWithTxMeta `protobuf:"bytes,1,rep,name=execution_state_changes,json=executionStateChanges,proto3" json:"execution_state_changes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetExecutionStateChangesResponse) Reset() { *x = GetExecutionStateChangesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetExecutionStateChangesResponse) String() string { @@ -310,7 +293,7 @@ func (*GetExecutionStateChangesResponse) ProtoMessage() {} func (x *GetExecutionStateChangesResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -335,20 +318,17 @@ func (x *GetExecutionStateChangesResponse) GetExecutionStateChanges() []*Executi // OffRampAddressResponse returns the offramp address. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.Address] type OffRampAddressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OffRampAddressResponse) Reset() { *x = OffRampAddressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OffRampAddressResponse) String() string { @@ -359,7 +339,7 @@ func (*OffRampAddressResponse) ProtoMessage() {} func (x *OffRampAddressResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -384,21 +364,18 @@ func (x *OffRampAddressResponse) GetAddress() string { // ChangeConfigRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.ChangeConfig] type ChangeConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OnchainConfig []byte `protobuf:"bytes,1,opt,name=onchain_config,json=onchainConfig,proto3" json:"onchain_config,omitempty"` - OffchainConfig []byte `protobuf:"bytes,2,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfig []byte `protobuf:"bytes,1,opt,name=onchain_config,json=onchainConfig,proto3" json:"onchain_config,omitempty"` + OffchainConfig []byte `protobuf:"bytes,2,opt,name=offchain_config,json=offchainConfig,proto3" json:"offchain_config,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangeConfigRequest) Reset() { *x = ChangeConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangeConfigRequest) String() string { @@ -409,7 +386,7 @@ func (*ChangeConfigRequest) ProtoMessage() {} func (x *ChangeConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -441,21 +418,18 @@ func (x *ChangeConfigRequest) GetOffchainConfig() []byte { // ChangeConfigResponse returns the new config addresses. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.ChangeConfig] type ChangeConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OnchainConfigAddress string `protobuf:"bytes,1,opt,name=onchain_config_address,json=onchainConfigAddress,proto3" json:"onchain_config_address,omitempty"` // Address - OffchainConfigAddress string `protobuf:"bytes,2,opt,name=offchain_config_address,json=offchainConfigAddress,proto3" json:"offchain_config_address,omitempty"` // Address + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfigAddress string `protobuf:"bytes,1,opt,name=onchain_config_address,json=onchainConfigAddress,proto3" json:"onchain_config_address,omitempty"` // Address + OffchainConfigAddress string `protobuf:"bytes,2,opt,name=offchain_config_address,json=offchainConfigAddress,proto3" json:"offchain_config_address,omitempty"` // Address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangeConfigResponse) Reset() { *x = ChangeConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangeConfigResponse) String() string { @@ -466,7 +440,7 @@ func (*ChangeConfigResponse) ProtoMessage() {} func (x *ChangeConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -498,20 +472,17 @@ func (x *ChangeConfigResponse) GetOffchainConfigAddress() string { // OffchainConfigResponse returns the offchain config. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.OffchainConfig] type OffchainConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *ExecOffchainConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *ExecOffchainConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OffchainConfigResponse) Reset() { *x = OffchainConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OffchainConfigResponse) String() string { @@ -522,7 +493,7 @@ func (*OffchainConfigResponse) ProtoMessage() {} func (x *OffchainConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -547,20 +518,17 @@ func (x *OffchainConfigResponse) GetConfig() *ExecOffchainConfig { // OnchainConfigResponse returns the onchain config. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.OnchainConfig] type OnchainConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *ExecOnchainConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *ExecOnchainConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OnchainConfigResponse) Reset() { *x = OnchainConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OnchainConfigResponse) String() string { @@ -571,7 +539,7 @@ func (*OnchainConfigResponse) ProtoMessage() {} func (x *OnchainConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -597,20 +565,17 @@ func (x *OnchainConfigResponse) GetConfig() *ExecOnchainConfig { // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GasPriceEstimator] // because the underlying return value is an interface, which is modeled as a service in gRPC type GasPriceEstimatorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EstimatorServiceId int32 `protobuf:"varint,1,opt,name=estimator_service_id,json=estimatorServiceId,proto3" json:"estimator_service_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + EstimatorServiceId int32 `protobuf:"varint,1,opt,name=estimator_service_id,json=estimatorServiceId,proto3" json:"estimator_service_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GasPriceEstimatorResponse) Reset() { *x = GasPriceEstimatorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GasPriceEstimatorResponse) String() string { @@ -621,7 +586,7 @@ func (*GasPriceEstimatorResponse) ProtoMessage() {} func (x *GasPriceEstimatorResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -646,20 +611,17 @@ func (x *GasPriceEstimatorResponse) GetEstimatorServiceId() int32 { // ListSenderNoncesRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.ListSenderNonces] type ListSenderNoncesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Senders []string `protobuf:"bytes,1,rep,name=senders,proto3" json:"senders,omitempty"` // []Address unknownFields protoimpl.UnknownFields - - Senders []string `protobuf:"bytes,1,rep,name=senders,proto3" json:"senders,omitempty"` // []Address + sizeCache protoimpl.SizeCache } func (x *ListSenderNoncesRequest) Reset() { *x = ListSenderNoncesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListSenderNoncesRequest) String() string { @@ -670,7 +632,7 @@ func (*ListSenderNoncesRequest) ProtoMessage() {} func (x *ListSenderNoncesRequest) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -695,20 +657,17 @@ func (x *ListSenderNoncesRequest) GetSenders() []string { // ListSenderNoncesResponse returns the sender nonce. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.ListSenderNonces] type ListSenderNoncesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NonceMapping map[string]uint64 `protobuf:"bytes,1,rep,name=nonce_mapping,json=nonceMapping,proto3" json:"nonce_mapping,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` // map[Address]nonce unknownFields protoimpl.UnknownFields - - NonceMapping map[string]uint64 `protobuf:"bytes,1,rep,name=nonce_mapping,json=nonceMapping,proto3" json:"nonce_mapping,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // map[Address]nonce + sizeCache protoimpl.SizeCache } func (x *ListSenderNoncesResponse) Reset() { *x = ListSenderNoncesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListSenderNoncesResponse) String() string { @@ -719,7 +678,7 @@ func (*ListSenderNoncesResponse) ProtoMessage() {} func (x *ListSenderNoncesResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -744,20 +703,17 @@ func (x *ListSenderNoncesResponse) GetNonceMapping() map[string]uint64 { // CurrentRateLimiterStateResponse returns the current rate limiter state. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.CurrentRateLimiterState] type CurrentRateLimiterStateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RateLimiter *TokenPoolRateLimit `protobuf:"bytes,1,opt,name=rate_limiter,json=rateLimiter,proto3" json:"rate_limiter,omitempty"` unknownFields protoimpl.UnknownFields - - RateLimiter *TokenPoolRateLimit `protobuf:"bytes,1,opt,name=rate_limiter,json=rateLimiter,proto3" json:"rate_limiter,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CurrentRateLimiterStateResponse) Reset() { *x = CurrentRateLimiterStateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CurrentRateLimiterStateResponse) String() string { @@ -768,7 +724,7 @@ func (*CurrentRateLimiterStateResponse) ProtoMessage() {} func (x *CurrentRateLimiterStateResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -793,20 +749,17 @@ func (x *CurrentRateLimiterStateResponse) GetRateLimiter() *TokenPoolRateLimit { // GetExecutionStateRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GetExecutionState] type GetExecutionStateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SeqNum uint64 `protobuf:"varint,1,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` unknownFields protoimpl.UnknownFields - - SeqNum uint64 `protobuf:"varint,1,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetExecutionStateRequest) Reset() { *x = GetExecutionStateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetExecutionStateRequest) String() string { @@ -817,7 +770,7 @@ func (*GetExecutionStateRequest) ProtoMessage() {} func (x *GetExecutionStateRequest) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -842,20 +795,17 @@ func (x *GetExecutionStateRequest) GetSeqNum() uint64 { // GetExecutionStateResponse returns the execution state. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GetExecutionState] type GetExecutionStateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExecutionState uint32 `protobuf:"varint,1,opt,name=execution_state,json=executionState,proto3" json:"execution_state,omitempty"` // uint8 + state protoimpl.MessageState `protogen:"open.v1"` + ExecutionState uint32 `protobuf:"varint,1,opt,name=execution_state,json=executionState,proto3" json:"execution_state,omitempty"` // uint8 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetExecutionStateResponse) Reset() { *x = GetExecutionStateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetExecutionStateResponse) String() string { @@ -866,7 +816,7 @@ func (*GetExecutionStateResponse) ProtoMessage() {} func (x *GetExecutionStateResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -891,20 +841,17 @@ func (x *GetExecutionStateResponse) GetExecutionState() uint32 { // GetStaticConfigResponse returns the static config. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GetStaticConfig] type GetStaticConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *OffRampStaticConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *OffRampStaticConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetStaticConfigResponse) Reset() { *x = GetStaticConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetStaticConfigResponse) String() string { @@ -915,7 +862,7 @@ func (*GetStaticConfigResponse) ProtoMessage() {} func (x *GetStaticConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -940,20 +887,17 @@ func (x *GetStaticConfigResponse) GetConfig() *OffRampStaticConfig { // GetSourceToDestTokensMappingResponse returns the source to destination token mapping. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GetSourceToDestTokensMapping] type GetSourceToDestTokensMappingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TokenMappings map[string]string `protobuf:"bytes,1,rep,name=token_mappings,json=tokenMappings,proto3" json:"token_mappings,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // map[Address]Address unknownFields protoimpl.UnknownFields - - TokenMappings map[string]string `protobuf:"bytes,1,rep,name=token_mappings,json=tokenMappings,proto3" json:"token_mappings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // map[Address]Address + sizeCache protoimpl.SizeCache } func (x *GetSourceToDestTokensMappingResponse) Reset() { *x = GetSourceToDestTokensMappingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSourceToDestTokensMappingResponse) String() string { @@ -964,7 +908,7 @@ func (*GetSourceToDestTokensMappingResponse) ProtoMessage() {} func (x *GetSourceToDestTokensMappingResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -989,20 +933,17 @@ func (x *GetSourceToDestTokensMappingResponse) GetTokenMappings() map[string]str // GetTokensResponse returns the tokens. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GetTokens] type GetTokensResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Tokens *OffRampTokens `protobuf:"bytes,1,opt,name=tokens,proto3" json:"tokens,omitempty"` // []Address unknownFields protoimpl.UnknownFields - - Tokens *OffRampTokens `protobuf:"bytes,1,opt,name=tokens,proto3" json:"tokens,omitempty"` // []Address + sizeCache protoimpl.SizeCache } func (x *GetTokensResponse) Reset() { *x = GetTokensResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokensResponse) String() string { @@ -1013,7 +954,7 @@ func (*GetTokensResponse) ProtoMessage() {} func (x *GetTokensResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1038,20 +979,17 @@ func (x *GetTokensResponse) GetTokens() *OffRampTokens { // GetRouterResponse returns the router address. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader.GetRouter] type GetRouterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"` unknownFields protoimpl.UnknownFields - - Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRouterResponse) Reset() { *x = GetRouterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRouterResponse) String() string { @@ -1062,7 +1000,7 @@ func (*GetRouterResponse) ProtoMessage() {} func (x *GetRouterResponse) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1087,21 +1025,18 @@ func (x *GetRouterResponse) GetRouter() string { // ExecutionStateChangeWithTxMeta is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/ExecutionStateChangeWithTxMeta] type ExecutionStateChangeWithTxMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExecutionStateChange *ExecutionStateChange `protobuf:"bytes,1,opt,name=execution_state_change,json=executionStateChange,proto3" json:"execution_state_change,omitempty"` - TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ExecutionStateChange *ExecutionStateChange `protobuf:"bytes,1,opt,name=execution_state_change,json=executionStateChange,proto3" json:"execution_state_change,omitempty"` + TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExecutionStateChangeWithTxMeta) Reset() { *x = ExecutionStateChangeWithTxMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionStateChangeWithTxMeta) String() string { @@ -1112,7 +1047,7 @@ func (*ExecutionStateChangeWithTxMeta) ProtoMessage() {} func (x *ExecutionStateChangeWithTxMeta) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1144,20 +1079,17 @@ func (x *ExecutionStateChangeWithTxMeta) GetTxMeta() *TxMeta { // ExecutionStateChange is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/ExecutionStateChange] type ExecutionStateChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SeqNum uint64 `protobuf:"varint,1,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` unknownFields protoimpl.UnknownFields - - SeqNum uint64 `protobuf:"varint,1,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExecutionStateChange) Reset() { *x = ExecutionStateChange{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionStateChange) String() string { @@ -1168,7 +1100,7 @@ func (*ExecutionStateChange) ProtoMessage() {} func (x *ExecutionStateChange) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1193,26 +1125,23 @@ func (x *ExecutionStateChange) GetSeqNum() uint64 { // ExecOffchainConfig is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/ExecOffchainConfig] type ExecOffchainConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DestOptimisticConfirmations uint32 `protobuf:"varint,1,opt,name=dest_optimistic_confirmations,json=destOptimisticConfirmations,proto3" json:"dest_optimistic_confirmations,omitempty"` - BatchGasLimit uint32 `protobuf:"varint,2,opt,name=batch_gas_limit,json=batchGasLimit,proto3" json:"batch_gas_limit,omitempty"` - RelativeBoostPerWaitHour float64 `protobuf:"fixed64,3,opt,name=relative_boost_per_wait_hour,json=relativeBoostPerWaitHour,proto3" json:"relative_boost_per_wait_hour,omitempty"` // float64 - InflightCacheExpiry *durationpb.Duration `protobuf:"bytes,4,opt,name=inflight_cache_expiry,json=inflightCacheExpiry,proto3" json:"inflight_cache_expiry,omitempty"` // config.Duration - RootSnoozeTime *durationpb.Duration `protobuf:"bytes,5,opt,name=root_snooze_time,json=rootSnoozeTime,proto3" json:"root_snooze_time,omitempty"` // config.Duration - MessageVisibilityInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=message_visibility_interval,json=messageVisibilityInterval,proto3" json:"message_visibility_interval,omitempty"` // config.Duration - BatchingStrategyId uint32 `protobuf:"varint,7,opt,name=batching_strategy_id,json=batchingStrategyId,proto3" json:"batching_strategy_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DestOptimisticConfirmations uint32 `protobuf:"varint,1,opt,name=dest_optimistic_confirmations,json=destOptimisticConfirmations,proto3" json:"dest_optimistic_confirmations,omitempty"` + BatchGasLimit uint32 `protobuf:"varint,2,opt,name=batch_gas_limit,json=batchGasLimit,proto3" json:"batch_gas_limit,omitempty"` + RelativeBoostPerWaitHour float64 `protobuf:"fixed64,3,opt,name=relative_boost_per_wait_hour,json=relativeBoostPerWaitHour,proto3" json:"relative_boost_per_wait_hour,omitempty"` // float64 + InflightCacheExpiry *durationpb.Duration `protobuf:"bytes,4,opt,name=inflight_cache_expiry,json=inflightCacheExpiry,proto3" json:"inflight_cache_expiry,omitempty"` // config.Duration + RootSnoozeTime *durationpb.Duration `protobuf:"bytes,5,opt,name=root_snooze_time,json=rootSnoozeTime,proto3" json:"root_snooze_time,omitempty"` // config.Duration + MessageVisibilityInterval *durationpb.Duration `protobuf:"bytes,6,opt,name=message_visibility_interval,json=messageVisibilityInterval,proto3" json:"message_visibility_interval,omitempty"` // config.Duration + BatchingStrategyId uint32 `protobuf:"varint,7,opt,name=batching_strategy_id,json=batchingStrategyId,proto3" json:"batching_strategy_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExecOffchainConfig) Reset() { *x = ExecOffchainConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecOffchainConfig) String() string { @@ -1223,7 +1152,7 @@ func (*ExecOffchainConfig) ProtoMessage() {} func (x *ExecOffchainConfig) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1290,26 +1219,23 @@ func (x *ExecOffchainConfig) GetBatchingStrategyId() uint32 { // ExecOnchainConfig is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/ExecOnchainConfig] type ExecOnchainConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PermissionlessExecThresholdSeconds *durationpb.Duration `protobuf:"bytes,1,opt,name=permissionless_exec_threshold_seconds,json=permissionlessExecThresholdSeconds,proto3" json:"permissionless_exec_threshold_seconds,omitempty"` // time.Duration - Router string `protobuf:"bytes,2,opt,name=router,proto3" json:"router,omitempty"` // Address - MaxDataBytes uint32 `protobuf:"varint,3,opt,name=max_data_bytes,json=maxDataBytes,proto3" json:"max_data_bytes,omitempty"` - MaxNumberOfTokensPerMsg uint32 `protobuf:"varint,4,opt,name=max_number_of_tokens_per_msg,json=maxNumberOfTokensPerMsg,proto3" json:"max_number_of_tokens_per_msg,omitempty"` - PriceRegistry string `protobuf:"bytes,5,opt,name=price_registry,json=priceRegistry,proto3" json:"price_registry,omitempty"` // Address - MaxPoolReleaseOrMintGas uint32 `protobuf:"varint,6,opt,name=max_pool_release_or_mint_gas,json=maxPoolReleaseOrMintGas,proto3" json:"max_pool_release_or_mint_gas,omitempty"` - MaxTokenTransferGas uint32 `protobuf:"varint,7,opt,name=max_token_transfer_gas,json=maxTokenTransferGas,proto3" json:"max_token_transfer_gas,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PermissionlessExecThresholdSeconds *durationpb.Duration `protobuf:"bytes,1,opt,name=permissionless_exec_threshold_seconds,json=permissionlessExecThresholdSeconds,proto3" json:"permissionless_exec_threshold_seconds,omitempty"` // time.Duration + Router string `protobuf:"bytes,2,opt,name=router,proto3" json:"router,omitempty"` // Address + MaxDataBytes uint32 `protobuf:"varint,3,opt,name=max_data_bytes,json=maxDataBytes,proto3" json:"max_data_bytes,omitempty"` + MaxNumberOfTokensPerMsg uint32 `protobuf:"varint,4,opt,name=max_number_of_tokens_per_msg,json=maxNumberOfTokensPerMsg,proto3" json:"max_number_of_tokens_per_msg,omitempty"` + PriceRegistry string `protobuf:"bytes,5,opt,name=price_registry,json=priceRegistry,proto3" json:"price_registry,omitempty"` // Address + MaxPoolReleaseOrMintGas uint32 `protobuf:"varint,6,opt,name=max_pool_release_or_mint_gas,json=maxPoolReleaseOrMintGas,proto3" json:"max_pool_release_or_mint_gas,omitempty"` + MaxTokenTransferGas uint32 `protobuf:"varint,7,opt,name=max_token_transfer_gas,json=maxTokenTransferGas,proto3" json:"max_token_transfer_gas,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExecOnchainConfig) Reset() { *x = ExecOnchainConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecOnchainConfig) String() string { @@ -1320,7 +1246,7 @@ func (*ExecOnchainConfig) ProtoMessage() {} func (x *ExecOnchainConfig) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1387,25 +1313,22 @@ func (x *ExecOnchainConfig) GetMaxTokenTransferGas() uint32 { // OffRampStaticConfig is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampStaticConfig] type OffRampStaticConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommitStore string `protobuf:"bytes,1,opt,name=commit_store,json=commitStore,proto3" json:"commit_store,omitempty"` // Address - ChainSelector uint64 `protobuf:"varint,2,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` - SourceChainSelector uint64 `protobuf:"varint,3,opt,name=source_chain_selector,json=sourceChainSelector,proto3" json:"source_chain_selector,omitempty"` - OnRamp string `protobuf:"bytes,4,opt,name=on_ramp,json=onRamp,proto3" json:"on_ramp,omitempty"` // Address - PrevOffRamp string `protobuf:"bytes,5,opt,name=prev_off_ramp,json=prevOffRamp,proto3" json:"prev_off_ramp,omitempty"` // Address - ArmProxy string `protobuf:"bytes,6,opt,name=arm_proxy,json=armProxy,proto3" json:"arm_proxy,omitempty"` // Address + state protoimpl.MessageState `protogen:"open.v1"` + CommitStore string `protobuf:"bytes,1,opt,name=commit_store,json=commitStore,proto3" json:"commit_store,omitempty"` // Address + ChainSelector uint64 `protobuf:"varint,2,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` + SourceChainSelector uint64 `protobuf:"varint,3,opt,name=source_chain_selector,json=sourceChainSelector,proto3" json:"source_chain_selector,omitempty"` + OnRamp string `protobuf:"bytes,4,opt,name=on_ramp,json=onRamp,proto3" json:"on_ramp,omitempty"` // Address + PrevOffRamp string `protobuf:"bytes,5,opt,name=prev_off_ramp,json=prevOffRamp,proto3" json:"prev_off_ramp,omitempty"` // Address + ArmProxy string `protobuf:"bytes,6,opt,name=arm_proxy,json=armProxy,proto3" json:"arm_proxy,omitempty"` // Address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OffRampStaticConfig) Reset() { *x = OffRampStaticConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OffRampStaticConfig) String() string { @@ -1416,7 +1339,7 @@ func (*OffRampStaticConfig) ProtoMessage() {} func (x *OffRampStaticConfig) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1476,21 +1399,18 @@ func (x *OffRampStaticConfig) GetArmProxy() string { // OffRampTokens is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampTokens] type OffRampTokens struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DestinationTokens []string `protobuf:"bytes,1,rep,name=destination_tokens,json=destinationTokens,proto3" json:"destination_tokens,omitempty"` // []Address - SourceTokens []string `protobuf:"bytes,2,rep,name=source_tokens,json=sourceTokens,proto3" json:"source_tokens,omitempty"` // []Address + state protoimpl.MessageState `protogen:"open.v1"` + DestinationTokens []string `protobuf:"bytes,1,rep,name=destination_tokens,json=destinationTokens,proto3" json:"destination_tokens,omitempty"` // []Address + SourceTokens []string `protobuf:"bytes,2,rep,name=source_tokens,json=sourceTokens,proto3" json:"source_tokens,omitempty"` // []Address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OffRampTokens) Reset() { *x = OffRampTokens{} - if protoimpl.UnsafeEnabled { - mi := &file_offramp_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offramp_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OffRampTokens) String() string { @@ -1501,7 +1421,7 @@ func (*OffRampTokens) ProtoMessage() {} func (x *OffRampTokens) ProtoReflect() protoreflect.Message { mi := &file_offramp_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1532,7 +1452,7 @@ func (x *OffRampTokens) GetSourceTokens() []string { var File_offramp_proto protoreflect.FileDescriptor -var file_offramp_proto_rawDesc = []byte{ +var file_offramp_proto_rawDesc = string([]byte{ 0x0a, 0x0d, 0x6f, 0x66, 0x66, 0x72, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, @@ -1874,22 +1794,22 @@ var file_offramp_proto_rawDesc = []byte{ 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_offramp_proto_rawDescOnce sync.Once - file_offramp_proto_rawDescData = file_offramp_proto_rawDesc + file_offramp_proto_rawDescData []byte ) func file_offramp_proto_rawDescGZIP() []byte { file_offramp_proto_rawDescOnce.Do(func() { - file_offramp_proto_rawDescData = protoimpl.X.CompressGZIP(file_offramp_proto_rawDescData) + file_offramp_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_offramp_proto_rawDesc), len(file_offramp_proto_rawDesc))) }) return file_offramp_proto_rawDescData } var file_offramp_proto_msgTypes = make([]protoimpl.MessageInfo, 29) -var file_offramp_proto_goTypes = []interface{}{ +var file_offramp_proto_goTypes = []any{ (*EncodeExecutionReportRequest)(nil), // 0: loop.internal.pb.ccip.EncodeExecutionReportRequest (*EncodeExecutionReportResponse)(nil), // 1: loop.internal.pb.ccip.EncodeExecutionReportResponse (*DecodeExecutionReportRequest)(nil), // 2: loop.internal.pb.ccip.DecodeExecutionReportRequest @@ -1987,337 +1907,11 @@ func file_offramp_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_offramp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeExecutionReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeExecutionReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeExecutionReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeExecutionReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetExecutionStateChangesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetExecutionStateChangesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OffRampAddressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OffchainConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OnchainConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GasPriceEstimatorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSenderNoncesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSenderNoncesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CurrentRateLimiterStateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetExecutionStateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetExecutionStateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetStaticConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSourceToDestTokensMappingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokensResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRouterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionStateChangeWithTxMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionStateChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecOffchainConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecOnchainConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OffRampStaticConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offramp_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OffRampTokens); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_offramp_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_offramp_proto_rawDesc), len(file_offramp_proto_rawDesc)), NumEnums: 0, NumMessages: 29, NumExtensions: 0, @@ -2328,7 +1922,6 @@ func file_offramp_proto_init() { MessageInfos: file_offramp_proto_msgTypes, }.Build() File_offramp_proto = out.File - file_offramp_proto_rawDesc = nil file_offramp_proto_goTypes = nil file_offramp_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/offramp_grpc.pb.go b/pkg/loop/internal/pb/ccip/offramp_grpc.pb.go index 106ac58e5..17844007b 100644 --- a/pkg/loop/internal/pb/ccip/offramp_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/offramp_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: offramp.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( OffRampReader_Address_FullMethodName = "/loop.internal.pb.ccip.OffRampReader/Address" @@ -41,6 +41,9 @@ const ( // OffRampReaderClient is the client API for OffRampReader service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// OffRampReader is a gRPC service adapter for the OffRampReader interface +// [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader] type OffRampReaderClient interface { Address(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OffRampAddressResponse, error) ChangeConfig(ctx context.Context, in *ChangeConfigRequest, opts ...grpc.CallOption) (*ChangeConfigResponse, error) @@ -69,8 +72,9 @@ func NewOffRampReaderClient(cc grpc.ClientConnInterface) OffRampReaderClient { } func (c *offRampReaderClient) Address(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OffRampAddressResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OffRampAddressResponse) - err := c.cc.Invoke(ctx, OffRampReader_Address_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_Address_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -78,8 +82,9 @@ func (c *offRampReaderClient) Address(ctx context.Context, in *emptypb.Empty, op } func (c *offRampReaderClient) ChangeConfig(ctx context.Context, in *ChangeConfigRequest, opts ...grpc.CallOption) (*ChangeConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ChangeConfigResponse) - err := c.cc.Invoke(ctx, OffRampReader_ChangeConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_ChangeConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -87,8 +92,9 @@ func (c *offRampReaderClient) ChangeConfig(ctx context.Context, in *ChangeConfig } func (c *offRampReaderClient) CurrentRateLimiterState(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CurrentRateLimiterStateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CurrentRateLimiterStateResponse) - err := c.cc.Invoke(ctx, OffRampReader_CurrentRateLimiterState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_CurrentRateLimiterState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -96,8 +102,9 @@ func (c *offRampReaderClient) CurrentRateLimiterState(ctx context.Context, in *e } func (c *offRampReaderClient) DecodeExecutionReport(ctx context.Context, in *DecodeExecutionReportRequest, opts ...grpc.CallOption) (*DecodeExecutionReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecodeExecutionReportResponse) - err := c.cc.Invoke(ctx, OffRampReader_DecodeExecutionReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_DecodeExecutionReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -105,8 +112,9 @@ func (c *offRampReaderClient) DecodeExecutionReport(ctx context.Context, in *Dec } func (c *offRampReaderClient) EncodeExecutionReport(ctx context.Context, in *EncodeExecutionReportRequest, opts ...grpc.CallOption) (*EncodeExecutionReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EncodeExecutionReportResponse) - err := c.cc.Invoke(ctx, OffRampReader_EncodeExecutionReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_EncodeExecutionReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,8 +122,9 @@ func (c *offRampReaderClient) EncodeExecutionReport(ctx context.Context, in *Enc } func (c *offRampReaderClient) GasPriceEstimator(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GasPriceEstimatorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GasPriceEstimatorResponse) - err := c.cc.Invoke(ctx, OffRampReader_GasPriceEstimator_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_GasPriceEstimator_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -123,8 +132,9 @@ func (c *offRampReaderClient) GasPriceEstimator(ctx context.Context, in *emptypb } func (c *offRampReaderClient) GetExecutionState(ctx context.Context, in *GetExecutionStateRequest, opts ...grpc.CallOption) (*GetExecutionStateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetExecutionStateResponse) - err := c.cc.Invoke(ctx, OffRampReader_GetExecutionState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_GetExecutionState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -132,8 +142,9 @@ func (c *offRampReaderClient) GetExecutionState(ctx context.Context, in *GetExec } func (c *offRampReaderClient) GetExecutionStateChanges(ctx context.Context, in *GetExecutionStateChangesRequest, opts ...grpc.CallOption) (*GetExecutionStateChangesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetExecutionStateChangesResponse) - err := c.cc.Invoke(ctx, OffRampReader_GetExecutionStateChanges_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_GetExecutionStateChanges_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -141,8 +152,9 @@ func (c *offRampReaderClient) GetExecutionStateChanges(ctx context.Context, in * } func (c *offRampReaderClient) GetRouter(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetRouterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRouterResponse) - err := c.cc.Invoke(ctx, OffRampReader_GetRouter_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_GetRouter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -150,8 +162,9 @@ func (c *offRampReaderClient) GetRouter(ctx context.Context, in *emptypb.Empty, } func (c *offRampReaderClient) GetSourceToDestTokensMapping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetSourceToDestTokensMappingResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSourceToDestTokensMappingResponse) - err := c.cc.Invoke(ctx, OffRampReader_GetSourceToDestTokensMapping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_GetSourceToDestTokensMapping_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -159,8 +172,9 @@ func (c *offRampReaderClient) GetSourceToDestTokensMapping(ctx context.Context, } func (c *offRampReaderClient) GetStaticConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetStaticConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetStaticConfigResponse) - err := c.cc.Invoke(ctx, OffRampReader_GetStaticConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_GetStaticConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -168,8 +182,9 @@ func (c *offRampReaderClient) GetStaticConfig(ctx context.Context, in *emptypb.E } func (c *offRampReaderClient) GetTokens(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetTokensResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTokensResponse) - err := c.cc.Invoke(ctx, OffRampReader_GetTokens_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_GetTokens_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -177,8 +192,9 @@ func (c *offRampReaderClient) GetTokens(ctx context.Context, in *emptypb.Empty, } func (c *offRampReaderClient) ListSenderNonces(ctx context.Context, in *ListSenderNoncesRequest, opts ...grpc.CallOption) (*ListSenderNoncesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListSenderNoncesResponse) - err := c.cc.Invoke(ctx, OffRampReader_ListSenderNonces_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_ListSenderNonces_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -186,8 +202,9 @@ func (c *offRampReaderClient) ListSenderNonces(ctx context.Context, in *ListSend } func (c *offRampReaderClient) OffchainConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OffchainConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OffchainConfigResponse) - err := c.cc.Invoke(ctx, OffRampReader_OffchainConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_OffchainConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -195,8 +212,9 @@ func (c *offRampReaderClient) OffchainConfig(ctx context.Context, in *emptypb.Em } func (c *offRampReaderClient) OnchainConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnchainConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OnchainConfigResponse) - err := c.cc.Invoke(ctx, OffRampReader_OnchainConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_OnchainConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -204,8 +222,9 @@ func (c *offRampReaderClient) OnchainConfig(ctx context.Context, in *emptypb.Emp } func (c *offRampReaderClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, OffRampReader_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffRampReader_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -214,7 +233,10 @@ func (c *offRampReaderClient) Close(ctx context.Context, in *emptypb.Empty, opts // OffRampReaderServer is the server API for OffRampReader service. // All implementations must embed UnimplementedOffRampReaderServer -// for forward compatibility +// for forward compatibility. +// +// OffRampReader is a gRPC service adapter for the OffRampReader interface +// [github.com/smartcontractkit/chainlink-common/pkg/types/ccip/OffRampReader] type OffRampReaderServer interface { Address(context.Context, *emptypb.Empty) (*OffRampAddressResponse, error) ChangeConfig(context.Context, *ChangeConfigRequest) (*ChangeConfigResponse, error) @@ -235,9 +257,12 @@ type OffRampReaderServer interface { mustEmbedUnimplementedOffRampReaderServer() } -// UnimplementedOffRampReaderServer must be embedded to have forward compatible implementations. -type UnimplementedOffRampReaderServer struct { -} +// UnimplementedOffRampReaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOffRampReaderServer struct{} func (UnimplementedOffRampReaderServer) Address(context.Context, *emptypb.Empty) (*OffRampAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Address not implemented") @@ -288,6 +313,7 @@ func (UnimplementedOffRampReaderServer) Close(context.Context, *emptypb.Empty) ( return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedOffRampReaderServer) mustEmbedUnimplementedOffRampReaderServer() {} +func (UnimplementedOffRampReaderServer) testEmbeddedByValue() {} // UnsafeOffRampReaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OffRampReaderServer will @@ -297,6 +323,13 @@ type UnsafeOffRampReaderServer interface { } func RegisterOffRampReaderServer(s grpc.ServiceRegistrar, srv OffRampReaderServer) { + // If the following call pancis, it indicates UnimplementedOffRampReaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OffRampReader_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/onramp.pb.go b/pkg/loop/internal/pb/ccip/onramp.pb.go index 882305f51..72de867dc 100644 --- a/pkg/loop/internal/pb/ccip/onramp.pb.go +++ b/pkg/loop/internal/pb/ccip/onramp.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: onramp.proto package ccippb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,22 +25,19 @@ const ( // GetSendRequestsBetweenSeqNumsRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/OnRampReader.GetSendRequestsBetweenSeqNums] type GetSendRequestsBetweenSeqNumsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SeqNumMin uint64 `protobuf:"varint,1,opt,name=seq_num_min,json=seqNumMin,proto3" json:"seq_num_min,omitempty"` + SeqNumMax uint64 `protobuf:"varint,2,opt,name=seq_num_max,json=seqNumMax,proto3" json:"seq_num_max,omitempty"` + Finalized bool `protobuf:"varint,3,opt,name=finalized,proto3" json:"finalized,omitempty"` unknownFields protoimpl.UnknownFields - - SeqNumMin uint64 `protobuf:"varint,1,opt,name=seq_num_min,json=seqNumMin,proto3" json:"seq_num_min,omitempty"` - SeqNumMax uint64 `protobuf:"varint,2,opt,name=seq_num_max,json=seqNumMax,proto3" json:"seq_num_max,omitempty"` - Finalized bool `protobuf:"varint,3,opt,name=finalized,proto3" json:"finalized,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSendRequestsBetweenSeqNumsRequest) Reset() { *x = GetSendRequestsBetweenSeqNumsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSendRequestsBetweenSeqNumsRequest) String() string { @@ -50,7 +48,7 @@ func (*GetSendRequestsBetweenSeqNumsRequest) ProtoMessage() {} func (x *GetSendRequestsBetweenSeqNumsRequest) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -89,22 +87,19 @@ func (x *GetSendRequestsBetweenSeqNumsRequest) GetFinalized() bool { // GetSendRequestsBetweenSeqNumsResponse is a gRPC adapter for the output arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/OnRampReader.GetSendRequestsBetweenSeqNums] type GetSendRequestsBetweenSeqNumsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Note, the content here maybe better modeled as a oneof when CCIP supports // multiple types of messages/chains - SendRequests []*EVM2EVMMessageWithTxMeta `protobuf:"bytes,1,rep,name=send_requests,json=sendRequests,proto3" json:"send_requests,omitempty"` + SendRequests []*EVM2EVMMessageWithTxMeta `protobuf:"bytes,1,rep,name=send_requests,json=sendRequests,proto3" json:"send_requests,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSendRequestsBetweenSeqNumsResponse) Reset() { *x = GetSendRequestsBetweenSeqNumsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSendRequestsBetweenSeqNumsResponse) String() string { @@ -115,7 +110,7 @@ func (*GetSendRequestsBetweenSeqNumsResponse) ProtoMessage() {} func (x *GetSendRequestsBetweenSeqNumsResponse) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -140,20 +135,17 @@ func (x *GetSendRequestsBetweenSeqNumsResponse) GetSendRequests() []*EVM2EVMMess // RouterAddressResponse is a gRPC adapter for the output arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/OnRampReader.RouterAddress] type RouterAddressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RouterAddress string `protobuf:"bytes,1,opt,name=router_address,json=routerAddress,proto3" json:"router_address,omitempty"` unknownFields protoimpl.UnknownFields - - RouterAddress string `protobuf:"bytes,1,opt,name=router_address,json=routerAddress,proto3" json:"router_address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RouterAddressResponse) Reset() { *x = RouterAddressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RouterAddressResponse) String() string { @@ -164,7 +156,7 @@ func (*RouterAddressResponse) ProtoMessage() {} func (x *RouterAddressResponse) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -189,20 +181,17 @@ func (x *RouterAddressResponse) GetRouterAddress() string { // OnrampAddressResponse is a gRPC adapter for the output arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/OnRampReader.Address] type OnrampAddressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OnrampAddressResponse) Reset() { *x = OnrampAddressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OnrampAddressResponse) String() string { @@ -213,7 +202,7 @@ func (*OnrampAddressResponse) ProtoMessage() {} func (x *OnrampAddressResponse) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -238,20 +227,17 @@ func (x *OnrampAddressResponse) GetAddress() string { // GetDynamicConfigResponse is a gRPC adapter for the output arguments of // [github.com/smartcontractkit/chainlink-common/pkg/types/OnRampReader.GetDynamicConfig] type GetDynamicConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DynamicConfig *OnRampDynamicConfig `protobuf:"bytes,1,opt,name=dynamic_config,json=dynamicConfig,proto3" json:"dynamic_config,omitempty"` unknownFields protoimpl.UnknownFields - - DynamicConfig *OnRampDynamicConfig `protobuf:"bytes,1,opt,name=dynamic_config,json=dynamicConfig,proto3" json:"dynamic_config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDynamicConfigResponse) Reset() { *x = GetDynamicConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetDynamicConfigResponse) String() string { @@ -262,7 +248,7 @@ func (*GetDynamicConfigResponse) ProtoMessage() {} func (x *GetDynamicConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -287,29 +273,26 @@ func (x *GetDynamicConfigResponse) GetDynamicConfig() *OnRampDynamicConfig { // OnRampDynamicConfig is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/OnRampDynamicConfig] type OnRampDynamicConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"` // Address - MaxNumberOfTokensPerMsg uint32 `protobuf:"varint,2,opt,name=max_number_of_tokens_per_msg,json=maxNumberOfTokensPerMsg,proto3" json:"max_number_of_tokens_per_msg,omitempty"` - DestGasOverhead uint32 `protobuf:"varint,3,opt,name=dest_gas_overhead,json=destGasOverhead,proto3" json:"dest_gas_overhead,omitempty"` - DestGasPerByte uint32 `protobuf:"varint,4,opt,name=dest_gas_per_byte,json=destGasPerByte,proto3" json:"dest_gas_per_byte,omitempty"` - DestDataAvailabilityOverheadGas uint32 `protobuf:"varint,5,opt,name=dest_data_availability_overhead_gas,json=destDataAvailabilityOverheadGas,proto3" json:"dest_data_availability_overhead_gas,omitempty"` - DestGasPerDataAvailabilityByte uint32 `protobuf:"varint,6,opt,name=dest_gas_per_data_availability_byte,json=destGasPerDataAvailabilityByte,proto3" json:"dest_gas_per_data_availability_byte,omitempty"` - DestDataAvailabilityMultiplierBps uint32 `protobuf:"varint,7,opt,name=dest_data_availability_multiplier_bps,json=destDataAvailabilityMultiplierBps,proto3" json:"dest_data_availability_multiplier_bps,omitempty"` - PriceRegistry string `protobuf:"bytes,8,opt,name=price_registry,json=priceRegistry,proto3" json:"price_registry,omitempty"` // Address - MaxDataBytes uint32 `protobuf:"varint,9,opt,name=max_data_bytes,json=maxDataBytes,proto3" json:"max_data_bytes,omitempty"` - MaxPerMsgGasLimit uint32 `protobuf:"varint,10,opt,name=max_per_msg_gas_limit,json=maxPerMsgGasLimit,proto3" json:"max_per_msg_gas_limit,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"` // Address + MaxNumberOfTokensPerMsg uint32 `protobuf:"varint,2,opt,name=max_number_of_tokens_per_msg,json=maxNumberOfTokensPerMsg,proto3" json:"max_number_of_tokens_per_msg,omitempty"` + DestGasOverhead uint32 `protobuf:"varint,3,opt,name=dest_gas_overhead,json=destGasOverhead,proto3" json:"dest_gas_overhead,omitempty"` + DestGasPerByte uint32 `protobuf:"varint,4,opt,name=dest_gas_per_byte,json=destGasPerByte,proto3" json:"dest_gas_per_byte,omitempty"` + DestDataAvailabilityOverheadGas uint32 `protobuf:"varint,5,opt,name=dest_data_availability_overhead_gas,json=destDataAvailabilityOverheadGas,proto3" json:"dest_data_availability_overhead_gas,omitempty"` + DestGasPerDataAvailabilityByte uint32 `protobuf:"varint,6,opt,name=dest_gas_per_data_availability_byte,json=destGasPerDataAvailabilityByte,proto3" json:"dest_gas_per_data_availability_byte,omitempty"` + DestDataAvailabilityMultiplierBps uint32 `protobuf:"varint,7,opt,name=dest_data_availability_multiplier_bps,json=destDataAvailabilityMultiplierBps,proto3" json:"dest_data_availability_multiplier_bps,omitempty"` + PriceRegistry string `protobuf:"bytes,8,opt,name=price_registry,json=priceRegistry,proto3" json:"price_registry,omitempty"` // Address + MaxDataBytes uint32 `protobuf:"varint,9,opt,name=max_data_bytes,json=maxDataBytes,proto3" json:"max_data_bytes,omitempty"` + MaxPerMsgGasLimit uint32 `protobuf:"varint,10,opt,name=max_per_msg_gas_limit,json=maxPerMsgGasLimit,proto3" json:"max_per_msg_gas_limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OnRampDynamicConfig) Reset() { *x = OnRampDynamicConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OnRampDynamicConfig) String() string { @@ -320,7 +303,7 @@ func (*OnRampDynamicConfig) ProtoMessage() {} func (x *OnRampDynamicConfig) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -408,21 +391,18 @@ func (x *OnRampDynamicConfig) GetMaxPerMsgGasLimit() uint32 { // EVM2EVMMessageWithTxMeta is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/pkg/types/EVM2EVMMessageWithTxMeta] type EVM2EVMMessageWithTxMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Message *EVM2EVMMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` unknownFields protoimpl.UnknownFields - - Message *EVM2EVMMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EVM2EVMMessageWithTxMeta) Reset() { *x = EVM2EVMMessageWithTxMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EVM2EVMMessageWithTxMeta) String() string { @@ -433,7 +413,7 @@ func (*EVM2EVMMessageWithTxMeta) ProtoMessage() {} func (x *EVM2EVMMessageWithTxMeta) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -463,20 +443,17 @@ func (x *EVM2EVMMessageWithTxMeta) GetTxMeta() *TxMeta { } type IsSourceChainHealthyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IsHealthy bool `protobuf:"varint,1,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"` unknownFields protoimpl.UnknownFields - - IsHealthy bool `protobuf:"varint,1,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IsSourceChainHealthyResponse) Reset() { *x = IsSourceChainHealthyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IsSourceChainHealthyResponse) String() string { @@ -487,7 +464,7 @@ func (*IsSourceChainHealthyResponse) ProtoMessage() {} func (x *IsSourceChainHealthyResponse) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -510,20 +487,17 @@ func (x *IsSourceChainHealthyResponse) GetIsHealthy() bool { } type IsSourceCursedResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IsCursed bool `protobuf:"varint,1,opt,name=is_cursed,json=isCursed,proto3" json:"is_cursed,omitempty"` unknownFields protoimpl.UnknownFields - - IsCursed bool `protobuf:"varint,1,opt,name=is_cursed,json=isCursed,proto3" json:"is_cursed,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IsSourceCursedResponse) Reset() { *x = IsSourceCursedResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IsSourceCursedResponse) String() string { @@ -534,7 +508,7 @@ func (*IsSourceCursedResponse) ProtoMessage() {} func (x *IsSourceCursedResponse) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -557,20 +531,17 @@ func (x *IsSourceCursedResponse) GetIsCursed() bool { } type SourcePriceRegistryAddressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PriceRegistryAddress string `protobuf:"bytes,1,opt,name=price_registry_address,json=priceRegistryAddress,proto3" json:"price_registry_address,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PriceRegistryAddress string `protobuf:"bytes,1,opt,name=price_registry_address,json=priceRegistryAddress,proto3" json:"price_registry_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SourcePriceRegistryAddressResponse) Reset() { *x = SourcePriceRegistryAddressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_onramp_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_onramp_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SourcePriceRegistryAddressResponse) String() string { @@ -581,7 +552,7 @@ func (*SourcePriceRegistryAddressResponse) ProtoMessage() {} func (x *SourcePriceRegistryAddressResponse) ProtoReflect() protoreflect.Message { mi := &file_onramp_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -605,7 +576,7 @@ func (x *SourcePriceRegistryAddressResponse) GetPriceRegistryAddress() string { var File_onramp_proto protoreflect.FileDescriptor -var file_onramp_proto_rawDesc = []byte{ +var file_onramp_proto_rawDesc = string([]byte{ 0x0a, 0x0c, 0x6f, 0x6e, 0x72, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, @@ -756,22 +727,22 @@ var file_onramp_proto_rawDesc = []byte{ 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_onramp_proto_rawDescOnce sync.Once - file_onramp_proto_rawDescData = file_onramp_proto_rawDesc + file_onramp_proto_rawDescData []byte ) func file_onramp_proto_rawDescGZIP() []byte { file_onramp_proto_rawDescOnce.Do(func() { - file_onramp_proto_rawDescData = protoimpl.X.CompressGZIP(file_onramp_proto_rawDescData) + file_onramp_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_onramp_proto_rawDesc), len(file_onramp_proto_rawDesc))) }) return file_onramp_proto_rawDescData } var file_onramp_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_onramp_proto_goTypes = []interface{}{ +var file_onramp_proto_goTypes = []any{ (*GetSendRequestsBetweenSeqNumsRequest)(nil), // 0: loop.internal.pb.ccip.GetSendRequestsBetweenSeqNumsRequest (*GetSendRequestsBetweenSeqNumsResponse)(nil), // 1: loop.internal.pb.ccip.GetSendRequestsBetweenSeqNumsResponse (*RouterAddressResponse)(nil), // 2: loop.internal.pb.ccip.RouterAddressResponse @@ -820,133 +791,11 @@ func file_onramp_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_onramp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSendRequestsBetweenSeqNumsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSendRequestsBetweenSeqNumsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RouterAddressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OnrampAddressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDynamicConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OnRampDynamicConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EVM2EVMMessageWithTxMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsSourceChainHealthyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IsSourceCursedResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_onramp_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SourcePriceRegistryAddressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_onramp_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_onramp_proto_rawDesc), len(file_onramp_proto_rawDesc)), NumEnums: 0, NumMessages: 10, NumExtensions: 0, @@ -957,7 +806,6 @@ func file_onramp_proto_init() { MessageInfos: file_onramp_proto_msgTypes, }.Build() File_onramp_proto = out.File - file_onramp_proto_rawDesc = nil file_onramp_proto_goTypes = nil file_onramp_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/onramp_grpc.pb.go b/pkg/loop/internal/pb/ccip/onramp_grpc.pb.go index 90e583ea1..116a7d29b 100644 --- a/pkg/loop/internal/pb/ccip/onramp_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/onramp_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: onramp.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( OnRampReader_Address_FullMethodName = "/loop.internal.pb.ccip.OnRampReader/Address" @@ -33,6 +33,9 @@ const ( // OnRampReaderClient is the client API for OnRampReader service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// OnRampReader is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/pkg/types/OnRampReader] type OnRampReaderClient interface { Address(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnrampAddressResponse, error) GetDynamicConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetDynamicConfigResponse, error) @@ -53,8 +56,9 @@ func NewOnRampReaderClient(cc grpc.ClientConnInterface) OnRampReaderClient { } func (c *onRampReaderClient) Address(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnrampAddressResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OnrampAddressResponse) - err := c.cc.Invoke(ctx, OnRampReader_Address_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnRampReader_Address_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +66,9 @@ func (c *onRampReaderClient) Address(ctx context.Context, in *emptypb.Empty, opt } func (c *onRampReaderClient) GetDynamicConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetDynamicConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDynamicConfigResponse) - err := c.cc.Invoke(ctx, OnRampReader_GetDynamicConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnRampReader_GetDynamicConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +76,9 @@ func (c *onRampReaderClient) GetDynamicConfig(ctx context.Context, in *emptypb.E } func (c *onRampReaderClient) GetSendRequestsBetweenSeqNums(ctx context.Context, in *GetSendRequestsBetweenSeqNumsRequest, opts ...grpc.CallOption) (*GetSendRequestsBetweenSeqNumsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSendRequestsBetweenSeqNumsResponse) - err := c.cc.Invoke(ctx, OnRampReader_GetSendRequestsBetweenSeqNums_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnRampReader_GetSendRequestsBetweenSeqNums_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -80,8 +86,9 @@ func (c *onRampReaderClient) GetSendRequestsBetweenSeqNums(ctx context.Context, } func (c *onRampReaderClient) IsSourceChainHealthy(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IsSourceChainHealthyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IsSourceChainHealthyResponse) - err := c.cc.Invoke(ctx, OnRampReader_IsSourceChainHealthy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnRampReader_IsSourceChainHealthy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -89,8 +96,9 @@ func (c *onRampReaderClient) IsSourceChainHealthy(ctx context.Context, in *empty } func (c *onRampReaderClient) IsSourceCursed(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IsSourceCursedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IsSourceCursedResponse) - err := c.cc.Invoke(ctx, OnRampReader_IsSourceCursed_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnRampReader_IsSourceCursed_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -98,8 +106,9 @@ func (c *onRampReaderClient) IsSourceCursed(ctx context.Context, in *emptypb.Emp } func (c *onRampReaderClient) RouterAddress(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RouterAddressResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RouterAddressResponse) - err := c.cc.Invoke(ctx, OnRampReader_RouterAddress_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnRampReader_RouterAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -107,8 +116,9 @@ func (c *onRampReaderClient) RouterAddress(ctx context.Context, in *emptypb.Empt } func (c *onRampReaderClient) SourcePriceRegistryAddress(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SourcePriceRegistryAddressResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SourcePriceRegistryAddressResponse) - err := c.cc.Invoke(ctx, OnRampReader_SourcePriceRegistryAddress_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnRampReader_SourcePriceRegistryAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -116,8 +126,9 @@ func (c *onRampReaderClient) SourcePriceRegistryAddress(ctx context.Context, in } func (c *onRampReaderClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, OnRampReader_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnRampReader_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -126,7 +137,10 @@ func (c *onRampReaderClient) Close(ctx context.Context, in *emptypb.Empty, opts // OnRampReaderServer is the server API for OnRampReader service. // All implementations must embed UnimplementedOnRampReaderServer -// for forward compatibility +// for forward compatibility. +// +// OnRampReader is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/pkg/types/OnRampReader] type OnRampReaderServer interface { Address(context.Context, *emptypb.Empty) (*OnrampAddressResponse, error) GetDynamicConfig(context.Context, *emptypb.Empty) (*GetDynamicConfigResponse, error) @@ -139,9 +153,12 @@ type OnRampReaderServer interface { mustEmbedUnimplementedOnRampReaderServer() } -// UnimplementedOnRampReaderServer must be embedded to have forward compatible implementations. -type UnimplementedOnRampReaderServer struct { -} +// UnimplementedOnRampReaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOnRampReaderServer struct{} func (UnimplementedOnRampReaderServer) Address(context.Context, *emptypb.Empty) (*OnrampAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Address not implemented") @@ -168,6 +185,7 @@ func (UnimplementedOnRampReaderServer) Close(context.Context, *emptypb.Empty) (* return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedOnRampReaderServer) mustEmbedUnimplementedOnRampReaderServer() {} +func (UnimplementedOnRampReaderServer) testEmbeddedByValue() {} // UnsafeOnRampReaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OnRampReaderServer will @@ -177,6 +195,13 @@ type UnsafeOnRampReaderServer interface { } func RegisterOnRampReaderServer(s grpc.ServiceRegistrar, srv OnRampReaderServer) { + // If the following call pancis, it indicates UnimplementedOnRampReaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OnRampReader_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/pricegetter.pb.go b/pkg/loop/internal/pb/ccip/pricegetter.pb.go index 913d2f838..133ba9274 100644 --- a/pkg/loop/internal/pb/ccip/pricegetter.pb.go +++ b/pkg/loop/internal/pb/ccip/pricegetter.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pricegetter.proto package ccippb @@ -13,6 +13,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -25,20 +26,17 @@ const ( // FilterConfiguredTokensRequest is a request for which tokens of a list of addresses are configured and which aren't.. It is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceGetter.FilterConfiguredTokens] type FilterConfiguredTokensRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Tokens []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` // []Address unknownFields protoimpl.UnknownFields - - Tokens []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` // []Address + sizeCache protoimpl.SizeCache } func (x *FilterConfiguredTokensRequest) Reset() { *x = FilterConfiguredTokensRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pricegetter_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pricegetter_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilterConfiguredTokensRequest) String() string { @@ -49,7 +47,7 @@ func (*FilterConfiguredTokensRequest) ProtoMessage() {} func (x *FilterConfiguredTokensRequest) ProtoReflect() protoreflect.Message { mi := &file_pricegetter_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -74,21 +72,18 @@ func (x *FilterConfiguredTokensRequest) GetTokens() []string { // FilterConfiguredTokensResponse is a response for which tokens of a list of addresses are configured and which aren't. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceGetter.FilterConfiguredTokens] type FilterConfiguredTokensResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Configured []string `protobuf:"bytes,1,rep,name=configured,proto3" json:"configured,omitempty"` // []Address + Unconfigured []string `protobuf:"bytes,2,rep,name=unconfigured,proto3" json:"unconfigured,omitempty"` // []Address unknownFields protoimpl.UnknownFields - - Configured []string `protobuf:"bytes,1,rep,name=configured,proto3" json:"configured,omitempty"` // []Address - Unconfigured []string `protobuf:"bytes,2,rep,name=unconfigured,proto3" json:"unconfigured,omitempty"` // []Address + sizeCache protoimpl.SizeCache } func (x *FilterConfiguredTokensResponse) Reset() { *x = FilterConfiguredTokensResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pricegetter_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pricegetter_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FilterConfiguredTokensResponse) String() string { @@ -99,7 +94,7 @@ func (*FilterConfiguredTokensResponse) ProtoMessage() {} func (x *FilterConfiguredTokensResponse) ProtoReflect() protoreflect.Message { mi := &file_pricegetter_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -131,20 +126,17 @@ func (x *FilterConfiguredTokensResponse) GetUnconfigured() []string { // TokenPricesRequest is a request for the price of a token in USD. It is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceGetter.TokenPricesUSD]] type TokenPricesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Tokens []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` // []Address unknownFields protoimpl.UnknownFields - - Tokens []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` // []Address + sizeCache protoimpl.SizeCache } func (x *TokenPricesRequest) Reset() { *x = TokenPricesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pricegetter_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pricegetter_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenPricesRequest) String() string { @@ -155,7 +147,7 @@ func (*TokenPricesRequest) ProtoMessage() {} func (x *TokenPricesRequest) ProtoReflect() protoreflect.Message { mi := &file_pricegetter_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -180,20 +172,17 @@ func (x *TokenPricesRequest) GetTokens() []string { // TokenPricesResponse is a response for the price of a token in USD. It is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/CommitStoreReader] type TokenPricesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Prices map[string]*pb.BigInt `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // map[Address]price unknownFields protoimpl.UnknownFields - - Prices map[string]*pb.BigInt `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // map[Address]price + sizeCache protoimpl.SizeCache } func (x *TokenPricesResponse) Reset() { *x = TokenPricesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pricegetter_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pricegetter_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenPricesResponse) String() string { @@ -204,7 +193,7 @@ func (*TokenPricesResponse) ProtoMessage() {} func (x *TokenPricesResponse) ProtoReflect() protoreflect.Message { mi := &file_pricegetter_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -228,7 +217,7 @@ func (x *TokenPricesResponse) GetPrices() map[string]*pb.BigInt { var File_pricegetter_proto protoreflect.FileDescriptor -var file_pricegetter_proto_rawDesc = []byte{ +var file_pricegetter_proto_rawDesc = string([]byte{ 0x0a, 0x11, 0x70, 0x72, 0x69, 0x63, 0x65, 0x67, 0x65, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x0d, 0x72, 0x65, 0x6c, 0x61, @@ -284,22 +273,22 @@ var file_pricegetter_proto_rawDesc = []byte{ 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_pricegetter_proto_rawDescOnce sync.Once - file_pricegetter_proto_rawDescData = file_pricegetter_proto_rawDesc + file_pricegetter_proto_rawDescData []byte ) func file_pricegetter_proto_rawDescGZIP() []byte { file_pricegetter_proto_rawDescOnce.Do(func() { - file_pricegetter_proto_rawDescData = protoimpl.X.CompressGZIP(file_pricegetter_proto_rawDescData) + file_pricegetter_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pricegetter_proto_rawDesc), len(file_pricegetter_proto_rawDesc))) }) return file_pricegetter_proto_rawDescData } var file_pricegetter_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_pricegetter_proto_goTypes = []interface{}{ +var file_pricegetter_proto_goTypes = []any{ (*FilterConfiguredTokensRequest)(nil), // 0: loop.internal.pb.ccip.FilterConfiguredTokensRequest (*FilterConfiguredTokensResponse)(nil), // 1: loop.internal.pb.ccip.FilterConfiguredTokensResponse (*TokenPricesRequest)(nil), // 2: loop.internal.pb.ccip.TokenPricesRequest @@ -329,61 +318,11 @@ func file_pricegetter_proto_init() { if File_pricegetter_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pricegetter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilterConfiguredTokensRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pricegetter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilterConfiguredTokensResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pricegetter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenPricesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pricegetter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenPricesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pricegetter_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pricegetter_proto_rawDesc), len(file_pricegetter_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, @@ -394,7 +333,6 @@ func file_pricegetter_proto_init() { MessageInfos: file_pricegetter_proto_msgTypes, }.Build() File_pricegetter_proto = out.File - file_pricegetter_proto_rawDesc = nil file_pricegetter_proto_goTypes = nil file_pricegetter_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/pricegetter_grpc.pb.go b/pkg/loop/internal/pb/ccip/pricegetter_grpc.pb.go index 3ef9465c3..fc2570937 100644 --- a/pkg/loop/internal/pb/ccip/pricegetter_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/pricegetter_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: pricegetter.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PriceGetter_FilterConfiguredTokens_FullMethodName = "/loop.internal.pb.ccip.PriceGetter/FilterConfiguredTokens" @@ -28,6 +28,9 @@ const ( // PriceGetterClient is the client API for PriceGetter service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// PriceGetter is a service that returns the price of a token in USD. It is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceGetter] type PriceGetterClient interface { FilterConfiguredTokens(ctx context.Context, in *FilterConfiguredTokensRequest, opts ...grpc.CallOption) (*FilterConfiguredTokensResponse, error) TokenPricesUSD(ctx context.Context, in *TokenPricesRequest, opts ...grpc.CallOption) (*TokenPricesResponse, error) @@ -43,8 +46,9 @@ func NewPriceGetterClient(cc grpc.ClientConnInterface) PriceGetterClient { } func (c *priceGetterClient) FilterConfiguredTokens(ctx context.Context, in *FilterConfiguredTokensRequest, opts ...grpc.CallOption) (*FilterConfiguredTokensResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FilterConfiguredTokensResponse) - err := c.cc.Invoke(ctx, PriceGetter_FilterConfiguredTokens_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceGetter_FilterConfiguredTokens_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -52,8 +56,9 @@ func (c *priceGetterClient) FilterConfiguredTokens(ctx context.Context, in *Filt } func (c *priceGetterClient) TokenPricesUSD(ctx context.Context, in *TokenPricesRequest, opts ...grpc.CallOption) (*TokenPricesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TokenPricesResponse) - err := c.cc.Invoke(ctx, PriceGetter_TokenPricesUSD_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceGetter_TokenPricesUSD_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +66,9 @@ func (c *priceGetterClient) TokenPricesUSD(ctx context.Context, in *TokenPricesR } func (c *priceGetterClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, PriceGetter_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceGetter_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,7 +77,10 @@ func (c *priceGetterClient) Close(ctx context.Context, in *emptypb.Empty, opts . // PriceGetterServer is the server API for PriceGetter service. // All implementations must embed UnimplementedPriceGetterServer -// for forward compatibility +// for forward compatibility. +// +// PriceGetter is a service that returns the price of a token in USD. It is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceGetter] type PriceGetterServer interface { FilterConfiguredTokens(context.Context, *FilterConfiguredTokensRequest) (*FilterConfiguredTokensResponse, error) TokenPricesUSD(context.Context, *TokenPricesRequest) (*TokenPricesResponse, error) @@ -79,9 +88,12 @@ type PriceGetterServer interface { mustEmbedUnimplementedPriceGetterServer() } -// UnimplementedPriceGetterServer must be embedded to have forward compatible implementations. -type UnimplementedPriceGetterServer struct { -} +// UnimplementedPriceGetterServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPriceGetterServer struct{} func (UnimplementedPriceGetterServer) FilterConfiguredTokens(context.Context, *FilterConfiguredTokensRequest) (*FilterConfiguredTokensResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterConfiguredTokens not implemented") @@ -93,6 +105,7 @@ func (UnimplementedPriceGetterServer) Close(context.Context, *emptypb.Empty) (*e return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedPriceGetterServer) mustEmbedUnimplementedPriceGetterServer() {} +func (UnimplementedPriceGetterServer) testEmbeddedByValue() {} // UnsafePriceGetterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PriceGetterServer will @@ -102,6 +115,13 @@ type UnsafePriceGetterServer interface { } func RegisterPriceGetterServer(s grpc.ServiceRegistrar, srv PriceGetterServer) { + // If the following call pancis, it indicates UnimplementedPriceGetterServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PriceGetter_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/priceregistry.pb.go b/pkg/loop/internal/pb/ccip/priceregistry.pb.go index 19afa900e..7ea51cbe8 100644 --- a/pkg/loop/internal/pb/ccip/priceregistry.pb.go +++ b/pkg/loop/internal/pb/ccip/priceregistry.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: priceregistry.proto package ccippb @@ -14,6 +14,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -26,21 +27,18 @@ const ( // / GetTokenPriceUpdatesCreatedAfter is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetTokenPriceUpdatesCreatedAfter] type GetTokenPriceUpdatesCreatedAfterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` CreatedAfter *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_after,json=createdAfter,proto3" json:"created_after,omitempty"` Confirmations uint64 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTokenPriceUpdatesCreatedAfterRequest) Reset() { *x = GetTokenPriceUpdatesCreatedAfterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokenPriceUpdatesCreatedAfterRequest) String() string { @@ -51,7 +49,7 @@ func (*GetTokenPriceUpdatesCreatedAfterRequest) ProtoMessage() {} func (x *GetTokenPriceUpdatesCreatedAfterRequest) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -83,20 +81,17 @@ func (x *GetTokenPriceUpdatesCreatedAfterRequest) GetConfirmations() uint64 { // / GetTokenPriceUpdatesCreatedAfterResponse is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetTokenPriceUpdatesCreatedAfter] type GetTokenPriceUpdatesCreatedAfterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` TokenPriceUpdates []*TokenPriceUpdateWithTxMeta `protobuf:"bytes,1,rep,name=token_price_updates,json=tokenPriceUpdates,proto3" json:"token_price_updates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTokenPriceUpdatesCreatedAfterResponse) Reset() { *x = GetTokenPriceUpdatesCreatedAfterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokenPriceUpdatesCreatedAfterResponse) String() string { @@ -107,7 +102,7 @@ func (*GetTokenPriceUpdatesCreatedAfterResponse) ProtoMessage() {} func (x *GetTokenPriceUpdatesCreatedAfterResponse) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -132,22 +127,19 @@ func (x *GetTokenPriceUpdatesCreatedAfterResponse) GetTokenPriceUpdates() []*Tok // GetGasPriceUpdatesCreatedAfterRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetGasPriceUpdatesCreatedAfter] type GetGasPriceUpdatesCreatedAfterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ChainSelector uint64 `protobuf:"varint,1,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` CreatedAfter *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_after,json=createdAfter,proto3" json:"created_after,omitempty"` Confirmations uint64 `protobuf:"varint,3,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetGasPriceUpdatesCreatedAfterRequest) Reset() { *x = GetGasPriceUpdatesCreatedAfterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetGasPriceUpdatesCreatedAfterRequest) String() string { @@ -158,7 +150,7 @@ func (*GetGasPriceUpdatesCreatedAfterRequest) ProtoMessage() {} func (x *GetGasPriceUpdatesCreatedAfterRequest) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -197,20 +189,17 @@ func (x *GetGasPriceUpdatesCreatedAfterRequest) GetConfirmations() uint64 { // GetGasPriceUpdatesCreatedAfterResponse is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetGasPriceUpdatesCreatedAfter] type GetGasPriceUpdatesCreatedAfterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` GasPriceUpdates []*GasPriceUpdateWithTxMeta `protobuf:"bytes,1,rep,name=gas_price_updates,json=gasPriceUpdates,proto3" json:"gas_price_updates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetGasPriceUpdatesCreatedAfterResponse) Reset() { *x = GetGasPriceUpdatesCreatedAfterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetGasPriceUpdatesCreatedAfterResponse) String() string { @@ -221,7 +210,7 @@ func (*GetGasPriceUpdatesCreatedAfterResponse) ProtoMessage() {} func (x *GetGasPriceUpdatesCreatedAfterResponse) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -246,21 +235,18 @@ func (x *GetGasPriceUpdatesCreatedAfterResponse) GetGasPriceUpdates() []*GasPric // GetAllGasPriceUpdatesCreatedAfterRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetAllGasPriceUpdatesCreatedAfter] type GetAllGasPriceUpdatesCreatedAfterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` CreatedAfter *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_after,json=createdAfter,proto3" json:"created_after,omitempty"` Confirmations uint64 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAllGasPriceUpdatesCreatedAfterRequest) Reset() { *x = GetAllGasPriceUpdatesCreatedAfterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAllGasPriceUpdatesCreatedAfterRequest) String() string { @@ -271,7 +257,7 @@ func (*GetAllGasPriceUpdatesCreatedAfterRequest) ProtoMessage() {} func (x *GetAllGasPriceUpdatesCreatedAfterRequest) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -303,20 +289,17 @@ func (x *GetAllGasPriceUpdatesCreatedAfterRequest) GetConfirmations() uint64 { // GetAllGasPriceUpdatesCreatedAfterResponse is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetAllGasPriceUpdatesCreatedAfter] type GetAllGasPriceUpdatesCreatedAfterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` GasPriceUpdates []*GasPriceUpdateWithTxMeta `protobuf:"bytes,1,rep,name=gas_price_updates,json=gasPriceUpdates,proto3" json:"gas_price_updates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAllGasPriceUpdatesCreatedAfterResponse) Reset() { *x = GetAllGasPriceUpdatesCreatedAfterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAllGasPriceUpdatesCreatedAfterResponse) String() string { @@ -327,7 +310,7 @@ func (*GetAllGasPriceUpdatesCreatedAfterResponse) ProtoMessage() {} func (x *GetAllGasPriceUpdatesCreatedAfterResponse) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -352,20 +335,17 @@ func (x *GetAllGasPriceUpdatesCreatedAfterResponse) GetGasPriceUpdates() []*GasP // GetPriceRegistryAddressResponse is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetPriceRegistryAddress] type GetPriceRegistryAddressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPriceRegistryAddressResponse) Reset() { *x = GetPriceRegistryAddressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetPriceRegistryAddressResponse) String() string { @@ -376,7 +356,7 @@ func (*GetPriceRegistryAddressResponse) ProtoMessage() {} func (x *GetPriceRegistryAddressResponse) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -401,20 +381,17 @@ func (x *GetPriceRegistryAddressResponse) GetAddress() string { // GetFeeTokensResponse is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetFeeTokens] type GetFeeTokensResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FeeTokenAddresses []string `protobuf:"bytes,1,rep,name=fee_token_addresses,json=feeTokenAddresses,proto3" json:"fee_token_addresses,omitempty"` //[]Address + state protoimpl.MessageState `protogen:"open.v1"` + FeeTokenAddresses []string `protobuf:"bytes,1,rep,name=fee_token_addresses,json=feeTokenAddresses,proto3" json:"fee_token_addresses,omitempty"` //[]Address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetFeeTokensResponse) Reset() { *x = GetFeeTokensResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFeeTokensResponse) String() string { @@ -425,7 +402,7 @@ func (*GetFeeTokensResponse) ProtoMessage() {} func (x *GetFeeTokensResponse) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -450,20 +427,17 @@ func (x *GetFeeTokensResponse) GetFeeTokenAddresses() []string { // GetTokenPricesRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetTokenPrices] type GetTokenPricesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenAddresses []string `protobuf:"bytes,1,rep,name=token_addresses,json=tokenAddresses,proto3" json:"token_addresses,omitempty"` //[]Address + state protoimpl.MessageState `protogen:"open.v1"` + TokenAddresses []string `protobuf:"bytes,1,rep,name=token_addresses,json=tokenAddresses,proto3" json:"token_addresses,omitempty"` //[]Address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTokenPricesRequest) Reset() { *x = GetTokenPricesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokenPricesRequest) String() string { @@ -474,7 +448,7 @@ func (*GetTokenPricesRequest) ProtoMessage() {} func (x *GetTokenPricesRequest) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -499,20 +473,17 @@ func (x *GetTokenPricesRequest) GetTokenAddresses() []string { // GetTokenPricesResponse is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetTokenPrices] type GetTokenPricesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TokenPrices []*TokenPriceUpdate `protobuf:"bytes,1,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices,omitempty"` unknownFields protoimpl.UnknownFields - - TokenPrices []*TokenPriceUpdate `protobuf:"bytes,1,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTokenPricesResponse) Reset() { *x = GetTokenPricesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokenPricesResponse) String() string { @@ -523,7 +494,7 @@ func (*GetTokenPricesResponse) ProtoMessage() {} func (x *GetTokenPricesResponse) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -548,20 +519,17 @@ func (x *GetTokenPricesResponse) GetTokenPrices() []*TokenPriceUpdate { // GetTokensDecimalsRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetTokensDecimals] type GetTokensDecimalsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenAddresses []string `protobuf:"bytes,1,rep,name=token_addresses,json=tokenAddresses,proto3" json:"token_addresses,omitempty"` //[]Address + state protoimpl.MessageState `protogen:"open.v1"` + TokenAddresses []string `protobuf:"bytes,1,rep,name=token_addresses,json=tokenAddresses,proto3" json:"token_addresses,omitempty"` //[]Address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTokensDecimalsRequest) Reset() { *x = GetTokensDecimalsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokensDecimalsRequest) String() string { @@ -572,7 +540,7 @@ func (*GetTokensDecimalsRequest) ProtoMessage() {} func (x *GetTokensDecimalsRequest) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -597,20 +565,17 @@ func (x *GetTokensDecimalsRequest) GetTokenAddresses() []string { // GetTokensDecimalsResponse is a gRPC adapter for the return values of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader.GetTokensDecimals] type GetTokensDecimalsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Decimals []uint32 `protobuf:"varint,1,rep,packed,name=decimals,proto3" json:"decimals,omitempty"` //uint8 unknownFields protoimpl.UnknownFields - - Decimals []uint32 `protobuf:"varint,1,rep,packed,name=decimals,proto3" json:"decimals,omitempty"` //uint8 + sizeCache protoimpl.SizeCache } func (x *GetTokensDecimalsResponse) Reset() { *x = GetTokensDecimalsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokensDecimalsResponse) String() string { @@ -621,7 +586,7 @@ func (*GetTokensDecimalsResponse) ProtoMessage() {} func (x *GetTokensDecimalsResponse) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -646,21 +611,18 @@ func (x *GetTokensDecimalsResponse) GetDecimals() []uint32 { // GasPriceUpdateWithTxMeta is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/GasPriceUpdateWithTxMeta] type GasPriceUpdateWithTxMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GasPriceUpdate *GasPriceUpdate `protobuf:"bytes,1,opt,name=gas_price_update,json=gasPriceUpdate,proto3" json:"gas_price_update,omitempty"` - TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + GasPriceUpdate *GasPriceUpdate `protobuf:"bytes,1,opt,name=gas_price_update,json=gasPriceUpdate,proto3" json:"gas_price_update,omitempty"` + TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GasPriceUpdateWithTxMeta) Reset() { *x = GasPriceUpdateWithTxMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GasPriceUpdateWithTxMeta) String() string { @@ -671,7 +633,7 @@ func (*GasPriceUpdateWithTxMeta) ProtoMessage() {} func (x *GasPriceUpdateWithTxMeta) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -703,21 +665,18 @@ func (x *GasPriceUpdateWithTxMeta) GetTxMeta() *TxMeta { // GasPriceUpdate is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/GasPriceUpdate] type GasPriceUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Price *GasPrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` + UnixTimestamp *pb.BigInt `protobuf:"bytes,2,opt,name=unix_timestamp,json=unixTimestamp,proto3" json:"unix_timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Price *GasPrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` - UnixTimestamp *pb.BigInt `protobuf:"bytes,2,opt,name=unix_timestamp,json=unixTimestamp,proto3" json:"unix_timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GasPriceUpdate) Reset() { *x = GasPriceUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GasPriceUpdate) String() string { @@ -728,7 +687,7 @@ func (*GasPriceUpdate) ProtoMessage() {} func (x *GasPriceUpdate) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -760,21 +719,18 @@ func (x *GasPriceUpdate) GetUnixTimestamp() *pb.BigInt { // TokenPriceUpdateWithTxMeta is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/TokenPriceUpdateWithTxMeta] type TokenPriceUpdateWithTxMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenPriceUpdate *TokenPriceUpdate `protobuf:"bytes,1,opt,name=token_price_update,json=tokenPriceUpdate,proto3" json:"token_price_update,omitempty"` - TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TokenPriceUpdate *TokenPriceUpdate `protobuf:"bytes,1,opt,name=token_price_update,json=tokenPriceUpdate,proto3" json:"token_price_update,omitempty"` + TxMeta *TxMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TokenPriceUpdateWithTxMeta) Reset() { *x = TokenPriceUpdateWithTxMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenPriceUpdateWithTxMeta) String() string { @@ -785,7 +741,7 @@ func (*TokenPriceUpdateWithTxMeta) ProtoMessage() {} func (x *TokenPriceUpdateWithTxMeta) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -817,21 +773,18 @@ func (x *TokenPriceUpdateWithTxMeta) GetTxMeta() *TxMeta { // TokenPriceUpdate is a gRPC adapter for the struct // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/TokenPriceUpdate] type TokenPriceUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Price *TokenPrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` + UnixTimestamp *pb.BigInt `protobuf:"bytes,2,opt,name=unix_timestamp,json=unixTimestamp,proto3" json:"unix_timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Price *TokenPrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` - UnixTimestamp *pb.BigInt `protobuf:"bytes,2,opt,name=unix_timestamp,json=unixTimestamp,proto3" json:"unix_timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TokenPriceUpdate) Reset() { *x = TokenPriceUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_priceregistry_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_priceregistry_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenPriceUpdate) String() string { @@ -842,7 +795,7 @@ func (*TokenPriceUpdate) ProtoMessage() {} func (x *TokenPriceUpdate) ProtoReflect() protoreflect.Message { mi := &file_priceregistry_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -873,7 +826,7 @@ func (x *TokenPriceUpdate) GetUnixTimestamp() *pb.BigInt { var File_priceregistry_proto protoreflect.FileDescriptor -var file_priceregistry_proto_rawDesc = []byte{ +var file_priceregistry_proto_rawDesc = string([]byte{ 0x0a, 0x13, 0x70, 0x72, 0x69, 0x63, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x1b, 0x67, 0x6f, @@ -1071,22 +1024,22 @@ var file_priceregistry_proto_rawDesc = []byte{ 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_priceregistry_proto_rawDescOnce sync.Once - file_priceregistry_proto_rawDescData = file_priceregistry_proto_rawDesc + file_priceregistry_proto_rawDescData []byte ) func file_priceregistry_proto_rawDescGZIP() []byte { file_priceregistry_proto_rawDescOnce.Do(func() { - file_priceregistry_proto_rawDescData = protoimpl.X.CompressGZIP(file_priceregistry_proto_rawDescData) + file_priceregistry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_priceregistry_proto_rawDesc), len(file_priceregistry_proto_rawDesc))) }) return file_priceregistry_proto_rawDescData } var file_priceregistry_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_priceregistry_proto_goTypes = []interface{}{ +var file_priceregistry_proto_goTypes = []any{ (*GetTokenPriceUpdatesCreatedAfterRequest)(nil), // 0: loop.internal.pb.ccip.GetTokenPriceUpdatesCreatedAfterRequest (*GetTokenPriceUpdatesCreatedAfterResponse)(nil), // 1: loop.internal.pb.ccip.GetTokenPriceUpdatesCreatedAfterResponse (*GetGasPriceUpdatesCreatedAfterRequest)(nil), // 2: loop.internal.pb.ccip.GetGasPriceUpdatesCreatedAfterRequest @@ -1155,205 +1108,11 @@ func file_priceregistry_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_priceregistry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokenPriceUpdatesCreatedAfterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokenPriceUpdatesCreatedAfterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGasPriceUpdatesCreatedAfterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGasPriceUpdatesCreatedAfterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllGasPriceUpdatesCreatedAfterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllGasPriceUpdatesCreatedAfterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPriceRegistryAddressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFeeTokensResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokenPricesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokenPricesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokensDecimalsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokensDecimalsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GasPriceUpdateWithTxMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GasPriceUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenPriceUpdateWithTxMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_priceregistry_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenPriceUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_priceregistry_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_priceregistry_proto_rawDesc), len(file_priceregistry_proto_rawDesc)), NumEnums: 0, NumMessages: 16, NumExtensions: 0, @@ -1364,7 +1123,6 @@ func file_priceregistry_proto_init() { MessageInfos: file_priceregistry_proto_msgTypes, }.Build() File_priceregistry_proto = out.File - file_priceregistry_proto_rawDesc = nil file_priceregistry_proto_goTypes = nil file_priceregistry_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/priceregistry_grpc.pb.go b/pkg/loop/internal/pb/ccip/priceregistry_grpc.pb.go index c677b0349..207f4e929 100644 --- a/pkg/loop/internal/pb/ccip/priceregistry_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/priceregistry_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: priceregistry.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PriceRegistryReader_GetTokenPriceUpdatesCreatedAfter_FullMethodName = "/loop.internal.pb.ccip.PriceRegistryReader/GetTokenPriceUpdatesCreatedAfter" @@ -33,6 +33,9 @@ const ( // PriceRegistryReaderClient is the client API for PriceRegistryReader service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// PriceRegistryReader is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader] type PriceRegistryReaderClient interface { GetTokenPriceUpdatesCreatedAfter(ctx context.Context, in *GetTokenPriceUpdatesCreatedAfterRequest, opts ...grpc.CallOption) (*GetTokenPriceUpdatesCreatedAfterResponse, error) GetGasPriceUpdatesCreatedAfter(ctx context.Context, in *GetGasPriceUpdatesCreatedAfterRequest, opts ...grpc.CallOption) (*GetGasPriceUpdatesCreatedAfterResponse, error) @@ -53,8 +56,9 @@ func NewPriceRegistryReaderClient(cc grpc.ClientConnInterface) PriceRegistryRead } func (c *priceRegistryReaderClient) GetTokenPriceUpdatesCreatedAfter(ctx context.Context, in *GetTokenPriceUpdatesCreatedAfterRequest, opts ...grpc.CallOption) (*GetTokenPriceUpdatesCreatedAfterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTokenPriceUpdatesCreatedAfterResponse) - err := c.cc.Invoke(ctx, PriceRegistryReader_GetTokenPriceUpdatesCreatedAfter_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceRegistryReader_GetTokenPriceUpdatesCreatedAfter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +66,9 @@ func (c *priceRegistryReaderClient) GetTokenPriceUpdatesCreatedAfter(ctx context } func (c *priceRegistryReaderClient) GetGasPriceUpdatesCreatedAfter(ctx context.Context, in *GetGasPriceUpdatesCreatedAfterRequest, opts ...grpc.CallOption) (*GetGasPriceUpdatesCreatedAfterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetGasPriceUpdatesCreatedAfterResponse) - err := c.cc.Invoke(ctx, PriceRegistryReader_GetGasPriceUpdatesCreatedAfter_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceRegistryReader_GetGasPriceUpdatesCreatedAfter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +76,9 @@ func (c *priceRegistryReaderClient) GetGasPriceUpdatesCreatedAfter(ctx context.C } func (c *priceRegistryReaderClient) GetAllGasPriceUpdatesCreatedAfter(ctx context.Context, in *GetAllGasPriceUpdatesCreatedAfterRequest, opts ...grpc.CallOption) (*GetAllGasPriceUpdatesCreatedAfterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAllGasPriceUpdatesCreatedAfterResponse) - err := c.cc.Invoke(ctx, PriceRegistryReader_GetAllGasPriceUpdatesCreatedAfter_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceRegistryReader_GetAllGasPriceUpdatesCreatedAfter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -80,8 +86,9 @@ func (c *priceRegistryReaderClient) GetAllGasPriceUpdatesCreatedAfter(ctx contex } func (c *priceRegistryReaderClient) GetAddress(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetPriceRegistryAddressResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPriceRegistryAddressResponse) - err := c.cc.Invoke(ctx, PriceRegistryReader_GetAddress_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceRegistryReader_GetAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -89,8 +96,9 @@ func (c *priceRegistryReaderClient) GetAddress(ctx context.Context, in *emptypb. } func (c *priceRegistryReaderClient) GetFeeTokens(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetFeeTokensResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetFeeTokensResponse) - err := c.cc.Invoke(ctx, PriceRegistryReader_GetFeeTokens_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceRegistryReader_GetFeeTokens_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -98,8 +106,9 @@ func (c *priceRegistryReaderClient) GetFeeTokens(ctx context.Context, in *emptyp } func (c *priceRegistryReaderClient) GetTokenPrices(ctx context.Context, in *GetTokenPricesRequest, opts ...grpc.CallOption) (*GetTokenPricesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTokenPricesResponse) - err := c.cc.Invoke(ctx, PriceRegistryReader_GetTokenPrices_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceRegistryReader_GetTokenPrices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -107,8 +116,9 @@ func (c *priceRegistryReaderClient) GetTokenPrices(ctx context.Context, in *GetT } func (c *priceRegistryReaderClient) GetTokensDecimals(ctx context.Context, in *GetTokensDecimalsRequest, opts ...grpc.CallOption) (*GetTokensDecimalsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTokensDecimalsResponse) - err := c.cc.Invoke(ctx, PriceRegistryReader_GetTokensDecimals_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceRegistryReader_GetTokensDecimals_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -116,8 +126,9 @@ func (c *priceRegistryReaderClient) GetTokensDecimals(ctx context.Context, in *G } func (c *priceRegistryReaderClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, PriceRegistryReader_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PriceRegistryReader_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -126,7 +137,10 @@ func (c *priceRegistryReaderClient) Close(ctx context.Context, in *emptypb.Empty // PriceRegistryReaderServer is the server API for PriceRegistryReader service. // All implementations must embed UnimplementedPriceRegistryReaderServer -// for forward compatibility +// for forward compatibility. +// +// PriceRegistryReader is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/PriceRegistryReader] type PriceRegistryReaderServer interface { GetTokenPriceUpdatesCreatedAfter(context.Context, *GetTokenPriceUpdatesCreatedAfterRequest) (*GetTokenPriceUpdatesCreatedAfterResponse, error) GetGasPriceUpdatesCreatedAfter(context.Context, *GetGasPriceUpdatesCreatedAfterRequest) (*GetGasPriceUpdatesCreatedAfterResponse, error) @@ -139,9 +153,12 @@ type PriceRegistryReaderServer interface { mustEmbedUnimplementedPriceRegistryReaderServer() } -// UnimplementedPriceRegistryReaderServer must be embedded to have forward compatible implementations. -type UnimplementedPriceRegistryReaderServer struct { -} +// UnimplementedPriceRegistryReaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPriceRegistryReaderServer struct{} func (UnimplementedPriceRegistryReaderServer) GetTokenPriceUpdatesCreatedAfter(context.Context, *GetTokenPriceUpdatesCreatedAfterRequest) (*GetTokenPriceUpdatesCreatedAfterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTokenPriceUpdatesCreatedAfter not implemented") @@ -168,6 +185,7 @@ func (UnimplementedPriceRegistryReaderServer) Close(context.Context, *emptypb.Em return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedPriceRegistryReaderServer) mustEmbedUnimplementedPriceRegistryReaderServer() {} +func (UnimplementedPriceRegistryReaderServer) testEmbeddedByValue() {} // UnsafePriceRegistryReaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PriceRegistryReaderServer will @@ -177,6 +195,13 @@ type UnsafePriceRegistryReaderServer interface { } func RegisterPriceRegistryReaderServer(s grpc.ServiceRegistrar, srv PriceRegistryReaderServer) { + // If the following call pancis, it indicates UnimplementedPriceRegistryReaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PriceRegistryReader_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/tokendata.pb.go b/pkg/loop/internal/pb/ccip/tokendata.pb.go index b705f2edc..3faa1a708 100644 --- a/pkg/loop/internal/pb/ccip/tokendata.pb.go +++ b/pkg/loop/internal/pb/ccip/tokendata.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: tokendata.proto package ccippb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,21 +25,18 @@ const ( // TokenDataRequest is a gRPC adapter for the input arguments of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/TokenDataReader.ReadTokenData] type TokenDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Msg *EVM2EVMOnRampCCIPSendRequestedWithMeta `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + TokenIndex uint64 `protobuf:"varint,2,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"` unknownFields protoimpl.UnknownFields - - Msg *EVM2EVMOnRampCCIPSendRequestedWithMeta `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` - TokenIndex uint64 `protobuf:"varint,2,opt,name=token_index,json=tokenIndex,proto3" json:"token_index,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TokenDataRequest) Reset() { *x = TokenDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_tokendata_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tokendata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenDataRequest) String() string { @@ -49,7 +47,7 @@ func (*TokenDataRequest) ProtoMessage() {} func (x *TokenDataRequest) ProtoReflect() protoreflect.Message { mi := &file_tokendata_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -81,20 +79,17 @@ func (x *TokenDataRequest) GetTokenIndex() uint64 { // TokenDataResponse is a gRPC adapter for the return value of // [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/TokenDataReader.ReadTokenData] type TokenDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TokenData []byte `protobuf:"bytes,1,opt,name=token_data,json=tokenData,proto3" json:"token_data,omitempty"` unknownFields protoimpl.UnknownFields - - TokenData []byte `protobuf:"bytes,1,opt,name=token_data,json=tokenData,proto3" json:"token_data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TokenDataResponse) Reset() { *x = TokenDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_tokendata_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tokendata_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenDataResponse) String() string { @@ -105,7 +100,7 @@ func (*TokenDataResponse) ProtoMessage() {} func (x *TokenDataResponse) ProtoReflect() protoreflect.Message { mi := &file_tokendata_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -129,7 +124,7 @@ func (x *TokenDataResponse) GetTokenData() []byte { var File_tokendata_proto protoreflect.FileDescriptor -var file_tokendata_proto_rawDesc = []byte{ +var file_tokendata_proto_rawDesc = string([]byte{ 0x0a, 0x0f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, @@ -164,22 +159,22 @@ var file_tokendata_proto_rawDesc = []byte{ 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_tokendata_proto_rawDescOnce sync.Once - file_tokendata_proto_rawDescData = file_tokendata_proto_rawDesc + file_tokendata_proto_rawDescData []byte ) func file_tokendata_proto_rawDescGZIP() []byte { file_tokendata_proto_rawDescOnce.Do(func() { - file_tokendata_proto_rawDescData = protoimpl.X.CompressGZIP(file_tokendata_proto_rawDescData) + file_tokendata_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_tokendata_proto_rawDesc), len(file_tokendata_proto_rawDesc))) }) return file_tokendata_proto_rawDescData } var file_tokendata_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_tokendata_proto_goTypes = []interface{}{ +var file_tokendata_proto_goTypes = []any{ (*TokenDataRequest)(nil), // 0: loop.internal.pb.ccip.TokenDataRequest (*TokenDataResponse)(nil), // 1: loop.internal.pb.ccip.TokenDataResponse (*EVM2EVMOnRampCCIPSendRequestedWithMeta)(nil), // 2: loop.internal.pb.ccip.EVM2EVMOnRampCCIPSendRequestedWithMeta @@ -204,37 +199,11 @@ func file_tokendata_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_tokendata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tokendata_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_tokendata_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_tokendata_proto_rawDesc), len(file_tokendata_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -245,7 +214,6 @@ func file_tokendata_proto_init() { MessageInfos: file_tokendata_proto_msgTypes, }.Build() File_tokendata_proto = out.File - file_tokendata_proto_rawDesc = nil file_tokendata_proto_goTypes = nil file_tokendata_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/tokendata_grpc.pb.go b/pkg/loop/internal/pb/ccip/tokendata_grpc.pb.go index 541fd90d6..b514779ac 100644 --- a/pkg/loop/internal/pb/ccip/tokendata_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/tokendata_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: tokendata.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TokenDataReader_ReadTokenData_FullMethodName = "/loop.internal.pb.ccip.TokenDataReader/ReadTokenData" @@ -27,6 +27,9 @@ const ( // TokenDataReaderClient is the client API for TokenDataReader service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// TokenDataReader is a service that returns the price of a token in USD. It is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/TokenDataReader] type TokenDataReaderClient interface { ReadTokenData(ctx context.Context, in *TokenDataRequest, opts ...grpc.CallOption) (*TokenDataResponse, error) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) @@ -41,8 +44,9 @@ func NewTokenDataReaderClient(cc grpc.ClientConnInterface) TokenDataReaderClient } func (c *tokenDataReaderClient) ReadTokenData(ctx context.Context, in *TokenDataRequest, opts ...grpc.CallOption) (*TokenDataResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TokenDataResponse) - err := c.cc.Invoke(ctx, TokenDataReader_ReadTokenData_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TokenDataReader_ReadTokenData_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,8 +54,9 @@ func (c *tokenDataReaderClient) ReadTokenData(ctx context.Context, in *TokenData } func (c *tokenDataReaderClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, TokenDataReader_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TokenDataReader_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,16 +65,22 @@ func (c *tokenDataReaderClient) Close(ctx context.Context, in *emptypb.Empty, op // TokenDataReaderServer is the server API for TokenDataReader service. // All implementations must embed UnimplementedTokenDataReaderServer -// for forward compatibility +// for forward compatibility. +// +// TokenDataReader is a service that returns the price of a token in USD. It is a gRPC service adapter for the interface +// [github.com/smartcontractkit/chainlink-common/chainlink-common/pkg/types/ccip/TokenDataReader] type TokenDataReaderServer interface { ReadTokenData(context.Context, *TokenDataRequest) (*TokenDataResponse, error) Close(context.Context, *emptypb.Empty) (*emptypb.Empty, error) mustEmbedUnimplementedTokenDataReaderServer() } -// UnimplementedTokenDataReaderServer must be embedded to have forward compatible implementations. -type UnimplementedTokenDataReaderServer struct { -} +// UnimplementedTokenDataReaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTokenDataReaderServer struct{} func (UnimplementedTokenDataReaderServer) ReadTokenData(context.Context, *TokenDataRequest) (*TokenDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ReadTokenData not implemented") @@ -78,6 +89,7 @@ func (UnimplementedTokenDataReaderServer) Close(context.Context, *emptypb.Empty) return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedTokenDataReaderServer) mustEmbedUnimplementedTokenDataReaderServer() {} +func (UnimplementedTokenDataReaderServer) testEmbeddedByValue() {} // UnsafeTokenDataReaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TokenDataReaderServer will @@ -87,6 +99,13 @@ type UnsafeTokenDataReaderServer interface { } func RegisterTokenDataReaderServer(s grpc.ServiceRegistrar, srv TokenDataReaderServer) { + // If the following call pancis, it indicates UnimplementedTokenDataReaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TokenDataReader_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccip/tokenpool.pb.go b/pkg/loop/internal/pb/ccip/tokenpool.pb.go index 019884b19..d48eb28c6 100644 --- a/pkg/loop/internal/pb/ccip/tokenpool.pb.go +++ b/pkg/loop/internal/pb/ccip/tokenpool.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: tokenpool.proto package ccippb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,20 +25,17 @@ const ( // GetInboundTokenPoolRateLimitsRequest is a gRPC adapter for the input arguments of // [gitgithub.com/smartcontractkit/chainlink-common/pkg/types/ccip.TokenPoolBatcherReader.GetInboundTokenPoolRateLimits] type GetInboundTokenPoolRateLimitsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenPoolReaders []string `protobuf:"bytes,1,rep,name=token_pool_readers,json=tokenPoolReaders,proto3" json:"token_pool_readers,omitempty"` //[]Address + state protoimpl.MessageState `protogen:"open.v1"` + TokenPoolReaders []string `protobuf:"bytes,1,rep,name=token_pool_readers,json=tokenPoolReaders,proto3" json:"token_pool_readers,omitempty"` //[]Address + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetInboundTokenPoolRateLimitsRequest) Reset() { *x = GetInboundTokenPoolRateLimitsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_tokenpool_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tokenpool_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetInboundTokenPoolRateLimitsRequest) String() string { @@ -48,7 +46,7 @@ func (*GetInboundTokenPoolRateLimitsRequest) ProtoMessage() {} func (x *GetInboundTokenPoolRateLimitsRequest) ProtoReflect() protoreflect.Message { mi := &file_tokenpool_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -73,20 +71,17 @@ func (x *GetInboundTokenPoolRateLimitsRequest) GetTokenPoolReaders() []string { // GetInboundTokenPoolRateLimitsResponse is a gRPC adapter for the return values of // [gitgithub.com/smartcontractkit/chainlink-common/pkg/types/ccip.TokenPoolBatcherReader.GetInboundTokenPoolRateLimits] type GetInboundTokenPoolRateLimitsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenPoolRateLimits []*TokenPoolRateLimit `protobuf:"bytes,1,rep,name=token_pool_rate_limits,json=tokenPoolRateLimits,proto3" json:"token_pool_rate_limits,omitempty"` //[]TokenPoolRateLimit + state protoimpl.MessageState `protogen:"open.v1"` + TokenPoolRateLimits []*TokenPoolRateLimit `protobuf:"bytes,1,rep,name=token_pool_rate_limits,json=tokenPoolRateLimits,proto3" json:"token_pool_rate_limits,omitempty"` //[]TokenPoolRateLimit + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetInboundTokenPoolRateLimitsResponse) Reset() { *x = GetInboundTokenPoolRateLimitsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_tokenpool_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tokenpool_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetInboundTokenPoolRateLimitsResponse) String() string { @@ -97,7 +92,7 @@ func (*GetInboundTokenPoolRateLimitsResponse) ProtoMessage() {} func (x *GetInboundTokenPoolRateLimitsResponse) ProtoReflect() protoreflect.Message { mi := &file_tokenpool_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -121,7 +116,7 @@ func (x *GetInboundTokenPoolRateLimitsResponse) GetTokenPoolRateLimits() []*Toke var File_tokenpool_proto protoreflect.FileDescriptor -var file_tokenpool_proto_rawDesc = []byte{ +var file_tokenpool_proto_rawDesc = string([]byte{ 0x0a, 0x0f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x1a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, @@ -162,22 +157,22 @@ var file_tokenpool_proto_rawDesc = []byte{ 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_tokenpool_proto_rawDescOnce sync.Once - file_tokenpool_proto_rawDescData = file_tokenpool_proto_rawDesc + file_tokenpool_proto_rawDescData []byte ) func file_tokenpool_proto_rawDescGZIP() []byte { file_tokenpool_proto_rawDescOnce.Do(func() { - file_tokenpool_proto_rawDescData = protoimpl.X.CompressGZIP(file_tokenpool_proto_rawDescData) + file_tokenpool_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_tokenpool_proto_rawDesc), len(file_tokenpool_proto_rawDesc))) }) return file_tokenpool_proto_rawDescData } var file_tokenpool_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_tokenpool_proto_goTypes = []interface{}{ +var file_tokenpool_proto_goTypes = []any{ (*GetInboundTokenPoolRateLimitsRequest)(nil), // 0: loop.internal.pb.ccip.GetInboundTokenPoolRateLimitsRequest (*GetInboundTokenPoolRateLimitsResponse)(nil), // 1: loop.internal.pb.ccip.GetInboundTokenPoolRateLimitsResponse (*TokenPoolRateLimit)(nil), // 2: loop.internal.pb.ccip.TokenPoolRateLimit @@ -202,37 +197,11 @@ func file_tokenpool_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_tokenpool_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInboundTokenPoolRateLimitsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tokenpool_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInboundTokenPoolRateLimitsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_tokenpool_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_tokenpool_proto_rawDesc), len(file_tokenpool_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -243,7 +212,6 @@ func file_tokenpool_proto_init() { MessageInfos: file_tokenpool_proto_msgTypes, }.Build() File_tokenpool_proto = out.File - file_tokenpool_proto_rawDesc = nil file_tokenpool_proto_goTypes = nil file_tokenpool_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccip/tokenpool_grpc.pb.go b/pkg/loop/internal/pb/ccip/tokenpool_grpc.pb.go index 942c58626..aa207e6c1 100644 --- a/pkg/loop/internal/pb/ccip/tokenpool_grpc.pb.go +++ b/pkg/loop/internal/pb/ccip/tokenpool_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: tokenpool.proto package ccippb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TokenPoolBatcherReader_GetInboundTokenPoolRateLimits_FullMethodName = "/loop.internal.pb.ccip.TokenPoolBatcherReader/GetInboundTokenPoolRateLimits" @@ -27,6 +27,9 @@ const ( // TokenPoolBatcherReaderClient is the client API for TokenPoolBatcherReader service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// TokenPoolBatcherReader is a gRPC service adapter for the interface +// [gitgithub.com/smartcontractkit/chainlink-common/pkg/types/ccip.TokenPoolBatcherReader] type TokenPoolBatcherReaderClient interface { GetInboundTokenPoolRateLimits(ctx context.Context, in *GetInboundTokenPoolRateLimitsRequest, opts ...grpc.CallOption) (*GetInboundTokenPoolRateLimitsResponse, error) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) @@ -41,8 +44,9 @@ func NewTokenPoolBatcherReaderClient(cc grpc.ClientConnInterface) TokenPoolBatch } func (c *tokenPoolBatcherReaderClient) GetInboundTokenPoolRateLimits(ctx context.Context, in *GetInboundTokenPoolRateLimitsRequest, opts ...grpc.CallOption) (*GetInboundTokenPoolRateLimitsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetInboundTokenPoolRateLimitsResponse) - err := c.cc.Invoke(ctx, TokenPoolBatcherReader_GetInboundTokenPoolRateLimits_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TokenPoolBatcherReader_GetInboundTokenPoolRateLimits_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,8 +54,9 @@ func (c *tokenPoolBatcherReaderClient) GetInboundTokenPoolRateLimits(ctx context } func (c *tokenPoolBatcherReaderClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, TokenPoolBatcherReader_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TokenPoolBatcherReader_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,16 +65,22 @@ func (c *tokenPoolBatcherReaderClient) Close(ctx context.Context, in *emptypb.Em // TokenPoolBatcherReaderServer is the server API for TokenPoolBatcherReader service. // All implementations must embed UnimplementedTokenPoolBatcherReaderServer -// for forward compatibility +// for forward compatibility. +// +// TokenPoolBatcherReader is a gRPC service adapter for the interface +// [gitgithub.com/smartcontractkit/chainlink-common/pkg/types/ccip.TokenPoolBatcherReader] type TokenPoolBatcherReaderServer interface { GetInboundTokenPoolRateLimits(context.Context, *GetInboundTokenPoolRateLimitsRequest) (*GetInboundTokenPoolRateLimitsResponse, error) Close(context.Context, *emptypb.Empty) (*emptypb.Empty, error) mustEmbedUnimplementedTokenPoolBatcherReaderServer() } -// UnimplementedTokenPoolBatcherReaderServer must be embedded to have forward compatible implementations. -type UnimplementedTokenPoolBatcherReaderServer struct { -} +// UnimplementedTokenPoolBatcherReaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTokenPoolBatcherReaderServer struct{} func (UnimplementedTokenPoolBatcherReaderServer) GetInboundTokenPoolRateLimits(context.Context, *GetInboundTokenPoolRateLimitsRequest) (*GetInboundTokenPoolRateLimitsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetInboundTokenPoolRateLimits not implemented") @@ -79,6 +90,7 @@ func (UnimplementedTokenPoolBatcherReaderServer) Close(context.Context, *emptypb } func (UnimplementedTokenPoolBatcherReaderServer) mustEmbedUnimplementedTokenPoolBatcherReaderServer() { } +func (UnimplementedTokenPoolBatcherReaderServer) testEmbeddedByValue() {} // UnsafeTokenPoolBatcherReaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TokenPoolBatcherReaderServer will @@ -88,6 +100,13 @@ type UnsafeTokenPoolBatcherReaderServer interface { } func RegisterTokenPoolBatcherReaderServer(s grpc.ServiceRegistrar, srv TokenPoolBatcherReaderServer) { + // If the following call pancis, it indicates UnimplementedTokenPoolBatcherReaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TokenPoolBatcherReader_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccipocr3/models.pb.go b/pkg/loop/internal/pb/ccipocr3/models.pb.go index 5bd3131f2..c0cf2c85c 100644 --- a/pkg/loop/internal/pb/ccipocr3/models.pb.go +++ b/pkg/loop/internal/pb/ccipocr3/models.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: models.proto package ccipocr3pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,10 +25,7 @@ const ( // The MessageID is not expected to match MsgHash, since it may originate from a different // ramp family. type RampMessageHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // MessageID is a unique identifier for the message, it should be unique across all chains. // It is generated on the chain that the CCIP send is requested (i.e. the source chain of a message). MessageId [][]byte `protobuf:"bytes,1,rep,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` @@ -43,16 +41,16 @@ type RampMessageHeader struct { // MsgHash is the hash of all the message fields. MessageHash [][]byte `protobuf:"bytes,6,rep,name=message_hash,json=messageHash,proto3" json:"message_hash,omitempty"` // OnRamp is the address of the onramp that sent the message. - OnRamp [][]byte `protobuf:"bytes,7,rep,name=on_ramp,json=onRamp,proto3" json:"on_ramp,omitempty"` + OnRamp [][]byte `protobuf:"bytes,7,rep,name=on_ramp,json=onRamp,proto3" json:"on_ramp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RampMessageHeader) Reset() { *x = RampMessageHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RampMessageHeader) String() string { @@ -63,7 +61,7 @@ func (*RampMessageHeader) ProtoMessage() {} func (x *RampMessageHeader) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -129,10 +127,7 @@ func (x *RampMessageHeader) GetOnRamp() [][]byte { // RampTokenAmount represents the family-agnostic token amounts used for both OnRamp & OffRamp messages. type RampTokenAmount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // SourcePoolAddress is the source pool address, abi encoded. This value is trusted // as it was obtained through the onRamp. It can be relied upon by the destination // pool to validate the source pool. @@ -145,16 +140,16 @@ type RampTokenAmount struct { // has to be set for the specific token. ExtraData [][]byte `protobuf:"bytes,3,rep,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` // Amount is the amount of tokens to be transferred. - Amount *BigInt `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + Amount *BigInt `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RampTokenAmount) Reset() { *x = RampTokenAmount{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RampTokenAmount) String() string { @@ -165,7 +160,7 @@ func (*RampTokenAmount) ProtoMessage() {} func (x *RampTokenAmount) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -210,10 +205,7 @@ func (x *RampTokenAmount) GetAmount() *BigInt { // Message is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3.Message]. type Message struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Header is the family-agnostic header for OnRamp and OffRamp messages. // This is always set on all CCIP messages. Header *RampMessageHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` @@ -233,16 +225,16 @@ type Message struct { // FeeTokenAmount is the amount of fee tokens paid. FeeTokenAmount *BigInt `protobuf:"bytes,7,opt,name=fee_token_amount,json=feeTokenAmount,proto3" json:"fee_token_amount,omitempty"` // TokenAmounts is the array of tokens and amounts to transfer. - TokenAmounts []*RampTokenAmount `protobuf:"bytes,8,rep,name=token_amounts,json=tokenAmounts,proto3" json:"token_amounts,omitempty"` + TokenAmounts []*RampTokenAmount `protobuf:"bytes,8,rep,name=token_amounts,json=tokenAmounts,proto3" json:"token_amounts,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -253,7 +245,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -326,20 +318,17 @@ func (x *Message) GetTokenAmounts() []*RampTokenAmount { // BigInt represents a [big.Int]. type BigInt struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BigInt) Reset() { *x = BigInt{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BigInt) String() string { @@ -350,7 +339,7 @@ func (*BigInt) ProtoMessage() {} func (x *BigInt) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -374,21 +363,18 @@ func (x *BigInt) GetValue() []byte { // TokenAmount is a helper type that defines a token and an amount. type TokenAmount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Token address + Amount *BigInt `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Token address - Amount *BigInt `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TokenAmount) Reset() { *x = TokenAmount{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TokenAmount) String() string { @@ -399,7 +385,7 @@ func (*TokenAmount) ProtoMessage() {} func (x *TokenAmount) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -430,21 +416,18 @@ func (x *TokenAmount) GetAmount() *BigInt { // CommitPluginReport is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3.CommitPluginReport]. type CommitPluginReport struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + PriceUpdates *PriceUpdates `protobuf:"bytes,1,opt,name=price_updates,json=priceUpdates,proto3" json:"price_updates,omitempty"` + MerkleRoots []*MerkleRootChain `protobuf:"bytes,2,rep,name=merkle_roots,json=merkleRoots,proto3" json:"merkle_roots,omitempty"` unknownFields protoimpl.UnknownFields - - PriceUpdates *PriceUpdates `protobuf:"bytes,1,opt,name=price_updates,json=priceUpdates,proto3" json:"price_updates,omitempty"` - MerkleRoots []*MerkleRootChain `protobuf:"bytes,2,rep,name=merkle_roots,json=merkleRoots,proto3" json:"merkle_roots,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CommitPluginReport) Reset() { *x = CommitPluginReport{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommitPluginReport) String() string { @@ -455,7 +438,7 @@ func (*CommitPluginReport) ProtoMessage() {} func (x *CommitPluginReport) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -486,21 +469,18 @@ func (x *CommitPluginReport) GetMerkleRoots() []*MerkleRootChain { // PriceUpdates is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3.PriceUpdates]. type PriceUpdates struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TokenPriceUpdates []*TokenAmount `protobuf:"bytes,1,rep,name=token_price_updates,json=tokenPriceUpdates,proto3" json:"token_price_updates,omitempty"` - GasPriceUpdates []*GasPriceChain `protobuf:"bytes,2,rep,name=gas_price_updates,json=gasPriceUpdates,proto3" json:"gas_price_updates,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TokenPriceUpdates []*TokenAmount `protobuf:"bytes,1,rep,name=token_price_updates,json=tokenPriceUpdates,proto3" json:"token_price_updates,omitempty"` + GasPriceUpdates []*GasPriceChain `protobuf:"bytes,2,rep,name=gas_price_updates,json=gasPriceUpdates,proto3" json:"gas_price_updates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PriceUpdates) Reset() { *x = PriceUpdates{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PriceUpdates) String() string { @@ -511,7 +491,7 @@ func (*PriceUpdates) ProtoMessage() {} func (x *PriceUpdates) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -542,21 +522,18 @@ func (x *PriceUpdates) GetGasPriceUpdates() []*GasPriceChain { // GasPriceChain is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3.GasPriceChain]. type GasPriceChain struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChainSelector uint64 `protobuf:"varint,1,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` + Price *BigInt `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` unknownFields protoimpl.UnknownFields - - ChainSelector uint64 `protobuf:"varint,1,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` - Price *BigInt `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GasPriceChain) Reset() { *x = GasPriceChain{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GasPriceChain) String() string { @@ -567,7 +544,7 @@ func (*GasPriceChain) ProtoMessage() {} func (x *GasPriceChain) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -598,22 +575,19 @@ func (x *GasPriceChain) GetPrice() *BigInt { // MerkleRootChain is a gRPC adapter to [github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3.MerkleRootChain]. type MerkleRootChain struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChainSelector uint64 `protobuf:"varint,1,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` + MerkleRoot []byte `protobuf:"bytes,2,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` + SeqNumRange *SeqNumRange `protobuf:"bytes,3,opt,name=seq_num_range,json=seqNumRange,proto3" json:"seq_num_range,omitempty"` unknownFields protoimpl.UnknownFields - - ChainSelector uint64 `protobuf:"varint,1,opt,name=chain_selector,json=chainSelector,proto3" json:"chain_selector,omitempty"` - MerkleRoot []byte `protobuf:"bytes,2,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` - SeqNumRange *SeqNumRange `protobuf:"bytes,3,opt,name=seq_num_range,json=seqNumRange,proto3" json:"seq_num_range,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MerkleRootChain) Reset() { *x = MerkleRootChain{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MerkleRootChain) String() string { @@ -624,7 +598,7 @@ func (*MerkleRootChain) ProtoMessage() {} func (x *MerkleRootChain) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -662,21 +636,18 @@ func (x *MerkleRootChain) GetSeqNumRange() *SeqNumRange { // SeqNumRange defines an inclusive range of sequence numbers. type SeqNumRange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` + End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` unknownFields protoimpl.UnknownFields - - Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` - End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SeqNumRange) Reset() { *x = SeqNumRange{} - if protoimpl.UnsafeEnabled { - mi := &file_models_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_models_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SeqNumRange) String() string { @@ -687,7 +658,7 @@ func (*SeqNumRange) ProtoMessage() {} func (x *SeqNumRange) ProtoReflect() protoreflect.Message { mi := &file_models_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -718,7 +689,7 @@ func (x *SeqNumRange) GetEnd() uint64 { var File_models_proto protoreflect.FileDescriptor -var file_models_proto_rawDesc = []byte{ +var file_models_proto_rawDesc = string([]byte{ 0x0a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x22, 0x91, 0x02, 0x0a, 0x11, 0x52, 0x61, @@ -834,22 +805,22 @@ var file_models_proto_rawDesc = []byte{ 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_models_proto_rawDescOnce sync.Once - file_models_proto_rawDescData = file_models_proto_rawDesc + file_models_proto_rawDescData []byte ) func file_models_proto_rawDescGZIP() []byte { file_models_proto_rawDescOnce.Do(func() { - file_models_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_proto_rawDescData) + file_models_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_models_proto_rawDesc), len(file_models_proto_rawDesc))) }) return file_models_proto_rawDescData } var file_models_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_models_proto_goTypes = []interface{}{ +var file_models_proto_goTypes = []any{ (*RampMessageHeader)(nil), // 0: loop.internal.pb.ccipocr3.RampMessageHeader (*RampTokenAmount)(nil), // 1: loop.internal.pb.ccipocr3.RampTokenAmount (*Message)(nil), // 2: loop.internal.pb.ccipocr3.Message @@ -885,133 +856,11 @@ func file_models_proto_init() { if File_models_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_models_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RampMessageHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RampTokenAmount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Message); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BigInt); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TokenAmount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommitPluginReport); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PriceUpdates); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GasPriceChain); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MerkleRootChain); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_models_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SeqNumRange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_models_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_models_proto_rawDesc), len(file_models_proto_rawDesc)), NumEnums: 0, NumMessages: 10, NumExtensions: 0, @@ -1022,7 +871,6 @@ func file_models_proto_init() { MessageInfos: file_models_proto_msgTypes, }.Build() File_models_proto = out.File - file_models_proto_rawDesc = nil file_models_proto_goTypes = nil file_models_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccipocr3/msghasher.pb.go b/pkg/loop/internal/pb/ccipocr3/msghasher.pb.go index f3228e2e4..3a8b9116f 100644 --- a/pkg/loop/internal/pb/ccipocr3/msghasher.pb.go +++ b/pkg/loop/internal/pb/ccipocr3/msghasher.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: msghasher.proto package ccipocr3pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,20 +22,17 @@ const ( ) type HashMsgInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Msg *Message `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` unknownFields protoimpl.UnknownFields - - Msg *Message `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HashMsgInput) Reset() { *x = HashMsgInput{} - if protoimpl.UnsafeEnabled { - mi := &file_msghasher_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_msghasher_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HashMsgInput) String() string { @@ -45,7 +43,7 @@ func (*HashMsgInput) ProtoMessage() {} func (x *HashMsgInput) ProtoReflect() protoreflect.Message { mi := &file_msghasher_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -68,20 +66,17 @@ func (x *HashMsgInput) GetMsg() *Message { } type HashMsgOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` unknownFields protoimpl.UnknownFields - - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HashMsgOutput) Reset() { *x = HashMsgOutput{} - if protoimpl.UnsafeEnabled { - mi := &file_msghasher_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_msghasher_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HashMsgOutput) String() string { @@ -92,7 +87,7 @@ func (*HashMsgOutput) ProtoMessage() {} func (x *HashMsgOutput) ProtoReflect() protoreflect.Message { mi := &file_msghasher_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -116,7 +111,7 @@ func (x *HashMsgOutput) GetHash() []byte { var File_msghasher_proto protoreflect.FileDescriptor -var file_msghasher_proto_rawDesc = []byte{ +var file_msghasher_proto_rawDesc = string([]byte{ 0x0a, 0x0f, 0x6d, 0x73, 0x67, 0x68, 0x61, 0x73, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x1a, 0x0c, 0x6d, 0x6f, @@ -141,22 +136,22 @@ var file_msghasher_proto_rawDesc = []byte{ 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_msghasher_proto_rawDescOnce sync.Once - file_msghasher_proto_rawDescData = file_msghasher_proto_rawDesc + file_msghasher_proto_rawDescData []byte ) func file_msghasher_proto_rawDescGZIP() []byte { file_msghasher_proto_rawDescOnce.Do(func() { - file_msghasher_proto_rawDescData = protoimpl.X.CompressGZIP(file_msghasher_proto_rawDescData) + file_msghasher_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_msghasher_proto_rawDesc), len(file_msghasher_proto_rawDesc))) }) return file_msghasher_proto_rawDescData } var file_msghasher_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_msghasher_proto_goTypes = []interface{}{ +var file_msghasher_proto_goTypes = []any{ (*HashMsgInput)(nil), // 0: loop.internal.pb.ccipocr3.HashMsgInput (*HashMsgOutput)(nil), // 1: loop.internal.pb.ccipocr3.HashMsgOutput (*Message)(nil), // 2: loop.internal.pb.ccipocr3.Message @@ -178,37 +173,11 @@ func file_msghasher_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_msghasher_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HashMsgInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_msghasher_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HashMsgOutput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_msghasher_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_msghasher_proto_rawDesc), len(file_msghasher_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -219,7 +188,6 @@ func file_msghasher_proto_init() { MessageInfos: file_msghasher_proto_msgTypes, }.Build() File_msghasher_proto = out.File - file_msghasher_proto_rawDesc = nil file_msghasher_proto_goTypes = nil file_msghasher_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccipocr3/msghasher_grpc.pb.go b/pkg/loop/internal/pb/ccipocr3/msghasher_grpc.pb.go index f691174e4..9072793f6 100644 --- a/pkg/loop/internal/pb/ccipocr3/msghasher_grpc.pb.go +++ b/pkg/loop/internal/pb/ccipocr3/msghasher_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: msghasher.proto package ccipocr3pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MsgHasher_HashMsg_FullMethodName = "/loop.internal.pb.ccipocr3.MsgHasher/HashMsg" @@ -25,6 +25,10 @@ const ( // MsgHasherClient is the client API for MsgHasher service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// MsgHasher is responsible for hashing CCIP messages. +// Every chain family defines its own hashing algorithms and encoding schemes. +// For example an EVM implementation of MsgHasher would use keccak256 as the hashing algorithm and ABI encoding. type MsgHasherClient interface { HashMsg(ctx context.Context, in *HashMsgInput, opts ...grpc.CallOption) (*HashMsgOutput, error) } @@ -38,8 +42,9 @@ func NewMsgHasherClient(cc grpc.ClientConnInterface) MsgHasherClient { } func (c *msgHasherClient) HashMsg(ctx context.Context, in *HashMsgInput, opts ...grpc.CallOption) (*HashMsgOutput, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HashMsgOutput) - err := c.cc.Invoke(ctx, MsgHasher_HashMsg_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MsgHasher_HashMsg_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +53,28 @@ func (c *msgHasherClient) HashMsg(ctx context.Context, in *HashMsgInput, opts .. // MsgHasherServer is the server API for MsgHasher service. // All implementations must embed UnimplementedMsgHasherServer -// for forward compatibility +// for forward compatibility. +// +// MsgHasher is responsible for hashing CCIP messages. +// Every chain family defines its own hashing algorithms and encoding schemes. +// For example an EVM implementation of MsgHasher would use keccak256 as the hashing algorithm and ABI encoding. type MsgHasherServer interface { HashMsg(context.Context, *HashMsgInput) (*HashMsgOutput, error) mustEmbedUnimplementedMsgHasherServer() } -// UnimplementedMsgHasherServer must be embedded to have forward compatible implementations. -type UnimplementedMsgHasherServer struct { -} +// UnimplementedMsgHasherServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMsgHasherServer struct{} func (UnimplementedMsgHasherServer) HashMsg(context.Context, *HashMsgInput) (*HashMsgOutput, error) { return nil, status.Errorf(codes.Unimplemented, "method HashMsg not implemented") } func (UnimplementedMsgHasherServer) mustEmbedUnimplementedMsgHasherServer() {} +func (UnimplementedMsgHasherServer) testEmbeddedByValue() {} // UnsafeMsgHasherServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MsgHasherServer will @@ -71,6 +84,13 @@ type UnsafeMsgHasherServer interface { } func RegisterMsgHasherServer(s grpc.ServiceRegistrar, srv MsgHasherServer) { + // If the following call pancis, it indicates UnimplementedMsgHasherServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MsgHasher_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ccipocr3/reportcodec.pb.go b/pkg/loop/internal/pb/ccipocr3/reportcodec.pb.go index 8966b505c..449b3cc78 100644 --- a/pkg/loop/internal/pb/ccipocr3/reportcodec.pb.go +++ b/pkg/loop/internal/pb/ccipocr3/reportcodec.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: reportcodec.proto package ccipocr3pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,20 +22,17 @@ const ( ) type EncodeCommitPluginReportInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report *CommitPluginReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report *CommitPluginReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeCommitPluginReportInput) Reset() { *x = EncodeCommitPluginReportInput{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeCommitPluginReportInput) String() string { @@ -45,7 +43,7 @@ func (*EncodeCommitPluginReportInput) ProtoMessage() {} func (x *EncodeCommitPluginReportInput) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -68,20 +66,17 @@ func (x *EncodeCommitPluginReportInput) GetReport() *CommitPluginReport { } type EncodeCommitPluginReportOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EncodedReport []byte `protobuf:"bytes,1,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` unknownFields protoimpl.UnknownFields - - EncodedReport []byte `protobuf:"bytes,1,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeCommitPluginReportOutput) Reset() { *x = EncodeCommitPluginReportOutput{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeCommitPluginReportOutput) String() string { @@ -92,7 +87,7 @@ func (*EncodeCommitPluginReportOutput) ProtoMessage() {} func (x *EncodeCommitPluginReportOutput) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -115,20 +110,17 @@ func (x *EncodeCommitPluginReportOutput) GetEncodedReport() []byte { } type DecodeCommitPluginReportInput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EncodedReport []byte `protobuf:"bytes,1,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` unknownFields protoimpl.UnknownFields - - EncodedReport []byte `protobuf:"bytes,1,opt,name=encoded_report,json=encodedReport,proto3" json:"encoded_report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeCommitPluginReportInput) Reset() { *x = DecodeCommitPluginReportInput{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeCommitPluginReportInput) String() string { @@ -139,7 +131,7 @@ func (*DecodeCommitPluginReportInput) ProtoMessage() {} func (x *DecodeCommitPluginReportInput) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -162,20 +154,17 @@ func (x *DecodeCommitPluginReportInput) GetEncodedReport() []byte { } type DecodeCommitPluginReportOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report *CommitPluginReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report *CommitPluginReport `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeCommitPluginReportOutput) Reset() { *x = DecodeCommitPluginReportOutput{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeCommitPluginReportOutput) String() string { @@ -186,7 +175,7 @@ func (*DecodeCommitPluginReportOutput) ProtoMessage() {} func (x *DecodeCommitPluginReportOutput) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -210,7 +199,7 @@ func (x *DecodeCommitPluginReportOutput) GetReport() *CommitPluginReport { var File_reportcodec_proto protoreflect.FileDescriptor -var file_reportcodec_proto_rawDesc = []byte{ +var file_reportcodec_proto_rawDesc = string([]byte{ 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x1a, 0x0c, @@ -261,22 +250,22 @@ var file_reportcodec_proto_rawDesc = []byte{ 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x3b, 0x63, 0x63, 0x69, 0x70, 0x6f, 0x63, 0x72, 0x33, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_reportcodec_proto_rawDescOnce sync.Once - file_reportcodec_proto_rawDescData = file_reportcodec_proto_rawDesc + file_reportcodec_proto_rawDescData []byte ) func file_reportcodec_proto_rawDescGZIP() []byte { file_reportcodec_proto_rawDescOnce.Do(func() { - file_reportcodec_proto_rawDescData = protoimpl.X.CompressGZIP(file_reportcodec_proto_rawDescData) + file_reportcodec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reportcodec_proto_rawDesc), len(file_reportcodec_proto_rawDesc))) }) return file_reportcodec_proto_rawDescData } var file_reportcodec_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_reportcodec_proto_goTypes = []interface{}{ +var file_reportcodec_proto_goTypes = []any{ (*EncodeCommitPluginReportInput)(nil), // 0: loop.internal.pb.ccipocr3.EncodeCommitPluginReportInput (*EncodeCommitPluginReportOutput)(nil), // 1: loop.internal.pb.ccipocr3.EncodeCommitPluginReportOutput (*DecodeCommitPluginReportInput)(nil), // 2: loop.internal.pb.ccipocr3.DecodeCommitPluginReportInput @@ -303,61 +292,11 @@ func file_reportcodec_proto_init() { return } file_models_proto_init() - if !protoimpl.UnsafeEnabled { - file_reportcodec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeCommitPluginReportInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeCommitPluginReportOutput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeCommitPluginReportInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeCommitPluginReportOutput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_reportcodec_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_reportcodec_proto_rawDesc), len(file_reportcodec_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -368,7 +307,6 @@ func file_reportcodec_proto_init() { MessageInfos: file_reportcodec_proto_msgTypes, }.Build() File_reportcodec_proto = out.File - file_reportcodec_proto_rawDesc = nil file_reportcodec_proto_goTypes = nil file_reportcodec_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ccipocr3/reportcodec_grpc.pb.go b/pkg/loop/internal/pb/ccipocr3/reportcodec_grpc.pb.go index d11525576..fe72d3744 100644 --- a/pkg/loop/internal/pb/ccipocr3/reportcodec_grpc.pb.go +++ b/pkg/loop/internal/pb/ccipocr3/reportcodec_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: reportcodec.proto package ccipocr3pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CommitPluginCodec_Encode_FullMethodName = "/loop.internal.pb.ccipocr3.CommitPluginCodec/Encode" @@ -26,6 +26,10 @@ const ( // CommitPluginCodecClient is the client API for CommitPluginCodec service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// CommitPluginCodec is a service that can encode and decode reports generated by the Commit Plugin. +// Every chain family defines its own encoding schemes. +// For example an EVM implementation of CommitPluginCodec would use ABI encoding. type CommitPluginCodecClient interface { Encode(ctx context.Context, in *EncodeCommitPluginReportInput, opts ...grpc.CallOption) (*EncodeCommitPluginReportOutput, error) Decode(ctx context.Context, in *DecodeCommitPluginReportInput, opts ...grpc.CallOption) (*EncodeCommitPluginReportOutput, error) @@ -40,8 +44,9 @@ func NewCommitPluginCodecClient(cc grpc.ClientConnInterface) CommitPluginCodecCl } func (c *commitPluginCodecClient) Encode(ctx context.Context, in *EncodeCommitPluginReportInput, opts ...grpc.CallOption) (*EncodeCommitPluginReportOutput, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EncodeCommitPluginReportOutput) - err := c.cc.Invoke(ctx, CommitPluginCodec_Encode_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitPluginCodec_Encode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +54,9 @@ func (c *commitPluginCodecClient) Encode(ctx context.Context, in *EncodeCommitPl } func (c *commitPluginCodecClient) Decode(ctx context.Context, in *DecodeCommitPluginReportInput, opts ...grpc.CallOption) (*EncodeCommitPluginReportOutput, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EncodeCommitPluginReportOutput) - err := c.cc.Invoke(ctx, CommitPluginCodec_Decode_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CommitPluginCodec_Decode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +65,23 @@ func (c *commitPluginCodecClient) Decode(ctx context.Context, in *DecodeCommitPl // CommitPluginCodecServer is the server API for CommitPluginCodec service. // All implementations must embed UnimplementedCommitPluginCodecServer -// for forward compatibility +// for forward compatibility. +// +// CommitPluginCodec is a service that can encode and decode reports generated by the Commit Plugin. +// Every chain family defines its own encoding schemes. +// For example an EVM implementation of CommitPluginCodec would use ABI encoding. type CommitPluginCodecServer interface { Encode(context.Context, *EncodeCommitPluginReportInput) (*EncodeCommitPluginReportOutput, error) Decode(context.Context, *DecodeCommitPluginReportInput) (*EncodeCommitPluginReportOutput, error) mustEmbedUnimplementedCommitPluginCodecServer() } -// UnimplementedCommitPluginCodecServer must be embedded to have forward compatible implementations. -type UnimplementedCommitPluginCodecServer struct { -} +// UnimplementedCommitPluginCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCommitPluginCodecServer struct{} func (UnimplementedCommitPluginCodecServer) Encode(context.Context, *EncodeCommitPluginReportInput) (*EncodeCommitPluginReportOutput, error) { return nil, status.Errorf(codes.Unimplemented, "method Encode not implemented") @@ -77,6 +90,7 @@ func (UnimplementedCommitPluginCodecServer) Decode(context.Context, *DecodeCommi return nil, status.Errorf(codes.Unimplemented, "method Decode not implemented") } func (UnimplementedCommitPluginCodecServer) mustEmbedUnimplementedCommitPluginCodecServer() {} +func (UnimplementedCommitPluginCodecServer) testEmbeddedByValue() {} // UnsafeCommitPluginCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CommitPluginCodecServer will @@ -86,6 +100,13 @@ type UnsafeCommitPluginCodecServer interface { } func RegisterCommitPluginCodecServer(s grpc.ServiceRegistrar, srv CommitPluginCodecServer) { + // If the following call pancis, it indicates UnimplementedCommitPluginCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CommitPluginCodec_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/codec.pb.go b/pkg/loop/internal/pb/codec.pb.go index f1bb8d4f2..1eea51f97 100644 --- a/pkg/loop/internal/pb/codec.pb.go +++ b/pkg/loop/internal/pb/codec.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: codec.proto package pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type VersionedBytes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *VersionedBytes) Reset() { *x = VersionedBytes{} - if protoimpl.UnsafeEnabled { - mi := &file_codec_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_codec_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VersionedBytes) String() string { @@ -46,7 +44,7 @@ func (*VersionedBytes) ProtoMessage() {} func (x *VersionedBytes) ProtoReflect() protoreflect.Message { mi := &file_codec_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -76,21 +74,18 @@ func (x *VersionedBytes) GetData() []byte { } type GetEncodingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Params *VersionedBytes `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + ItemType string `protobuf:"bytes,2,opt,name=itemType,proto3" json:"itemType,omitempty"` unknownFields protoimpl.UnknownFields - - Params *VersionedBytes `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - ItemType string `protobuf:"bytes,2,opt,name=itemType,proto3" json:"itemType,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEncodingRequest) Reset() { *x = GetEncodingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_codec_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_codec_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetEncodingRequest) String() string { @@ -101,7 +96,7 @@ func (*GetEncodingRequest) ProtoMessage() {} func (x *GetEncodingRequest) ProtoReflect() protoreflect.Message { mi := &file_codec_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -131,20 +126,17 @@ func (x *GetEncodingRequest) GetItemType() string { } type GetEncodingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RetVal []byte `protobuf:"bytes,1,opt,name=retVal,proto3" json:"retVal,omitempty"` unknownFields protoimpl.UnknownFields - - RetVal []byte `protobuf:"bytes,1,opt,name=retVal,proto3" json:"retVal,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEncodingResponse) Reset() { *x = GetEncodingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_codec_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_codec_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetEncodingResponse) String() string { @@ -155,7 +147,7 @@ func (*GetEncodingResponse) ProtoMessage() {} func (x *GetEncodingResponse) ProtoReflect() protoreflect.Message { mi := &file_codec_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -178,22 +170,19 @@ func (x *GetEncodingResponse) GetRetVal() []byte { } type GetDecodingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` - ItemType string `protobuf:"bytes,2,opt,name=itemType,proto3" json:"itemType,omitempty"` - WireEncodingVersion uint32 `protobuf:"varint,3,opt,name=wireEncodingVersion,proto3" json:"wireEncodingVersion,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` + ItemType string `protobuf:"bytes,2,opt,name=itemType,proto3" json:"itemType,omitempty"` + WireEncodingVersion uint32 `protobuf:"varint,3,opt,name=wireEncodingVersion,proto3" json:"wireEncodingVersion,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetDecodingRequest) Reset() { *x = GetDecodingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_codec_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_codec_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetDecodingRequest) String() string { @@ -204,7 +193,7 @@ func (*GetDecodingRequest) ProtoMessage() {} func (x *GetDecodingRequest) ProtoReflect() protoreflect.Message { mi := &file_codec_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -241,20 +230,17 @@ func (x *GetDecodingRequest) GetWireEncodingVersion() uint32 { } type GetDecodingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RetVal *VersionedBytes `protobuf:"bytes,1,opt,name=retVal,proto3" json:"retVal,omitempty"` unknownFields protoimpl.UnknownFields - - RetVal *VersionedBytes `protobuf:"bytes,1,opt,name=retVal,proto3" json:"retVal,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetDecodingResponse) Reset() { *x = GetDecodingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_codec_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_codec_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetDecodingResponse) String() string { @@ -265,7 +251,7 @@ func (*GetDecodingResponse) ProtoMessage() {} func (x *GetDecodingResponse) ProtoReflect() protoreflect.Message { mi := &file_codec_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -288,22 +274,19 @@ func (x *GetDecodingResponse) GetRetVal() *VersionedBytes { } type GetMaxSizeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + N int32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` + ItemType string `protobuf:"bytes,2,opt,name=itemType,proto3" json:"itemType,omitempty"` + ForEncoding bool `protobuf:"varint,3,opt,name=forEncoding,proto3" json:"forEncoding,omitempty"` unknownFields protoimpl.UnknownFields - - N int32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` - ItemType string `protobuf:"bytes,2,opt,name=itemType,proto3" json:"itemType,omitempty"` - ForEncoding bool `protobuf:"varint,3,opt,name=forEncoding,proto3" json:"forEncoding,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMaxSizeRequest) Reset() { *x = GetMaxSizeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_codec_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_codec_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMaxSizeRequest) String() string { @@ -314,7 +297,7 @@ func (*GetMaxSizeRequest) ProtoMessage() {} func (x *GetMaxSizeRequest) ProtoReflect() protoreflect.Message { mi := &file_codec_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -351,20 +334,17 @@ func (x *GetMaxSizeRequest) GetForEncoding() bool { } type GetMaxSizeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SizeInBytes int32 `protobuf:"varint,1,opt,name=sizeInBytes,proto3" json:"sizeInBytes,omitempty"` unknownFields protoimpl.UnknownFields - - SizeInBytes int32 `protobuf:"varint,1,opt,name=sizeInBytes,proto3" json:"sizeInBytes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetMaxSizeResponse) Reset() { *x = GetMaxSizeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_codec_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_codec_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMaxSizeResponse) String() string { @@ -375,7 +355,7 @@ func (*GetMaxSizeResponse) ProtoMessage() {} func (x *GetMaxSizeResponse) ProtoReflect() protoreflect.Message { mi := &file_codec_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -399,7 +379,7 @@ func (x *GetMaxSizeResponse) GetSizeInBytes() int32 { var File_codec_proto protoreflect.FileDescriptor -var file_codec_proto_rawDesc = []byte{ +var file_codec_proto_rawDesc = string([]byte{ 0x0a, 0x0b, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x22, 0x3e, 0x0a, 0x0e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, @@ -454,22 +434,22 @@ var file_codec_proto_rawDesc = []byte{ 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_codec_proto_rawDescOnce sync.Once - file_codec_proto_rawDescData = file_codec_proto_rawDesc + file_codec_proto_rawDescData []byte ) func file_codec_proto_rawDescGZIP() []byte { file_codec_proto_rawDescOnce.Do(func() { - file_codec_proto_rawDescData = protoimpl.X.CompressGZIP(file_codec_proto_rawDescData) + file_codec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_codec_proto_rawDesc), len(file_codec_proto_rawDesc))) }) return file_codec_proto_rawDescData } var file_codec_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_codec_proto_goTypes = []interface{}{ +var file_codec_proto_goTypes = []any{ (*VersionedBytes)(nil), // 0: loop.VersionedBytes (*GetEncodingRequest)(nil), // 1: loop.GetEncodingRequest (*GetEncodingResponse)(nil), // 2: loop.GetEncodingResponse @@ -499,97 +479,11 @@ func file_codec_proto_init() { if File_codec_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_codec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VersionedBytes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_codec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetEncodingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_codec_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetEncodingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_codec_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDecodingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_codec_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDecodingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_codec_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMaxSizeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_codec_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMaxSizeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_codec_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_codec_proto_rawDesc), len(file_codec_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, @@ -600,7 +494,6 @@ func file_codec_proto_init() { MessageInfos: file_codec_proto_msgTypes, }.Build() File_codec_proto = out.File - file_codec_proto_rawDesc = nil file_codec_proto_goTypes = nil file_codec_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/codec_grpc.pb.go b/pkg/loop/internal/pb/codec_grpc.pb.go index f0cc966f1..e3516918e 100644 --- a/pkg/loop/internal/pb/codec_grpc.pb.go +++ b/pkg/loop/internal/pb/codec_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: codec.proto package pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Codec_GetEncoding_FullMethodName = "/loop.Codec/GetEncoding" @@ -42,8 +42,9 @@ func NewCodecClient(cc grpc.ClientConnInterface) CodecClient { } func (c *codecClient) GetEncoding(ctx context.Context, in *GetEncodingRequest, opts ...grpc.CallOption) (*GetEncodingResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetEncodingResponse) - err := c.cc.Invoke(ctx, Codec_GetEncoding_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Codec_GetEncoding_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *codecClient) GetEncoding(ctx context.Context, in *GetEncodingRequest, o } func (c *codecClient) GetDecoding(ctx context.Context, in *GetDecodingRequest, opts ...grpc.CallOption) (*GetDecodingResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDecodingResponse) - err := c.cc.Invoke(ctx, Codec_GetDecoding_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Codec_GetDecoding_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *codecClient) GetDecoding(ctx context.Context, in *GetDecodingRequest, o } func (c *codecClient) GetMaxSize(ctx context.Context, in *GetMaxSizeRequest, opts ...grpc.CallOption) (*GetMaxSizeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMaxSizeResponse) - err := c.cc.Invoke(ctx, Codec_GetMaxSize_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Codec_GetMaxSize_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *codecClient) GetMaxSize(ctx context.Context, in *GetMaxSizeRequest, opt // CodecServer is the server API for Codec service. // All implementations must embed UnimplementedCodecServer -// for forward compatibility +// for forward compatibility. type CodecServer interface { GetEncoding(context.Context, *GetEncodingRequest) (*GetEncodingResponse, error) GetDecoding(context.Context, *GetDecodingRequest) (*GetDecodingResponse, error) @@ -78,9 +81,12 @@ type CodecServer interface { mustEmbedUnimplementedCodecServer() } -// UnimplementedCodecServer must be embedded to have forward compatible implementations. -type UnimplementedCodecServer struct { -} +// UnimplementedCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCodecServer struct{} func (UnimplementedCodecServer) GetEncoding(context.Context, *GetEncodingRequest) (*GetEncodingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetEncoding not implemented") @@ -92,6 +98,7 @@ func (UnimplementedCodecServer) GetMaxSize(context.Context, *GetMaxSizeRequest) return nil, status.Errorf(codes.Unimplemented, "method GetMaxSize not implemented") } func (UnimplementedCodecServer) mustEmbedUnimplementedCodecServer() {} +func (UnimplementedCodecServer) testEmbeddedByValue() {} // UnsafeCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CodecServer will @@ -101,6 +108,13 @@ type UnsafeCodecServer interface { } func RegisterCodecServer(s grpc.ServiceRegistrar, srv CodecServer) { + // If the following call pancis, it indicates UnimplementedCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Codec_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/contract_reader.pb.go b/pkg/loop/internal/pb/contract_reader.pb.go index c3b30fe47..077eb785a 100644 --- a/pkg/loop/internal/pb/contract_reader.pb.go +++ b/pkg/loop/internal/pb/contract_reader.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: contract_reader.proto package pb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -315,23 +316,20 @@ func (SortType) EnumDescriptor() ([]byte, []int) { // GetLatestValueRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.GetLatestValue]. type GetLatestValueRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReadIdentifier string `protobuf:"bytes,1,opt,name=read_identifier,json=readIdentifier,proto3" json:"read_identifier,omitempty"` - Confidence Confidence `protobuf:"varint,2,opt,name=confidence,proto3,enum=loop.Confidence" json:"confidence,omitempty"` - Params *VersionedBytes `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` - AsValueType bool `protobuf:"varint,4,opt,name=as_value_type,json=asValueType,proto3" json:"as_value_type,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReadIdentifier string `protobuf:"bytes,1,opt,name=read_identifier,json=readIdentifier,proto3" json:"read_identifier,omitempty"` + Confidence Confidence `protobuf:"varint,2,opt,name=confidence,proto3,enum=loop.Confidence" json:"confidence,omitempty"` + Params *VersionedBytes `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` + AsValueType bool `protobuf:"varint,4,opt,name=as_value_type,json=asValueType,proto3" json:"as_value_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetLatestValueRequest) Reset() { *x = GetLatestValueRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLatestValueRequest) String() string { @@ -342,7 +340,7 @@ func (*GetLatestValueRequest) ProtoMessage() {} func (x *GetLatestValueRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -387,20 +385,17 @@ func (x *GetLatestValueRequest) GetAsValueType() bool { // BatchGetLatestValuesRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.BatchGetLatestValues]. type BatchGetLatestValuesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Requests []*ContractBatch `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` unknownFields protoimpl.UnknownFields - - Requests []*ContractBatch `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BatchGetLatestValuesRequest) Reset() { *x = BatchGetLatestValuesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BatchGetLatestValuesRequest) String() string { @@ -411,7 +406,7 @@ func (*BatchGetLatestValuesRequest) ProtoMessage() {} func (x *BatchGetLatestValuesRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -435,23 +430,20 @@ func (x *BatchGetLatestValuesRequest) GetRequests() []*ContractBatch { // QueryKeyRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.QueryKey]. type QueryKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Contract *BoundContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` + Filter *QueryKeyFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + LimitAndSort *LimitAndSort `protobuf:"bytes,3,opt,name=limit_and_sort,json=limitAndSort,proto3" json:"limit_and_sort,omitempty"` + AsValueType bool `protobuf:"varint,4,opt,name=as_value_type,json=asValueType,proto3" json:"as_value_type,omitempty"` unknownFields protoimpl.UnknownFields - - Contract *BoundContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` - Filter *QueryKeyFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` - LimitAndSort *LimitAndSort `protobuf:"bytes,3,opt,name=limit_and_sort,json=limitAndSort,proto3" json:"limit_and_sort,omitempty"` - AsValueType bool `protobuf:"varint,4,opt,name=as_value_type,json=asValueType,proto3" json:"as_value_type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QueryKeyRequest) Reset() { *x = QueryKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryKeyRequest) String() string { @@ -462,7 +454,7 @@ func (*QueryKeyRequest) ProtoMessage() {} func (x *QueryKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -507,21 +499,18 @@ func (x *QueryKeyRequest) GetAsValueType() bool { // QueryKeysRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.QueryKeys]. type QueryKeysRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Filters []*ContractKeyFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` + LimitAndSort *LimitAndSort `protobuf:"bytes,2,opt,name=limit_and_sort,json=limitAndSort,proto3" json:"limit_and_sort,omitempty"` unknownFields protoimpl.UnknownFields - - Filters []*ContractKeyFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` - LimitAndSort *LimitAndSort `protobuf:"bytes,2,opt,name=limit_and_sort,json=limitAndSort,proto3" json:"limit_and_sort,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QueryKeysRequest) Reset() { *x = QueryKeysRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryKeysRequest) String() string { @@ -532,7 +521,7 @@ func (*QueryKeysRequest) ProtoMessage() {} func (x *QueryKeysRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -562,22 +551,19 @@ func (x *QueryKeysRequest) GetLimitAndSort() *LimitAndSort { } type ContractKeyFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Contract *BoundContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` + Filter *QueryKeyFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + AsValueType bool `protobuf:"varint,4,opt,name=as_value_type,json=asValueType,proto3" json:"as_value_type,omitempty"` unknownFields protoimpl.UnknownFields - - Contract *BoundContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` - Filter *QueryKeyFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` - AsValueType bool `protobuf:"varint,4,opt,name=as_value_type,json=asValueType,proto3" json:"as_value_type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ContractKeyFilter) Reset() { *x = ContractKeyFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContractKeyFilter) String() string { @@ -588,7 +574,7 @@ func (*ContractKeyFilter) ProtoMessage() {} func (x *ContractKeyFilter) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -626,20 +612,17 @@ func (x *ContractKeyFilter) GetAsValueType() bool { // BindRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.Bind]. type BindRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Bindings []*BoundContract `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` unknownFields protoimpl.UnknownFields - - Bindings []*BoundContract `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BindRequest) Reset() { *x = BindRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BindRequest) String() string { @@ -650,7 +633,7 @@ func (*BindRequest) ProtoMessage() {} func (x *BindRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -674,20 +657,17 @@ func (x *BindRequest) GetBindings() []*BoundContract { // UnbindRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.Unbind]. type UnbindRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Bindings []*BoundContract `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` unknownFields protoimpl.UnknownFields - - Bindings []*BoundContract `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UnbindRequest) Reset() { *x = UnbindRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnbindRequest) String() string { @@ -698,7 +678,7 @@ func (*UnbindRequest) ProtoMessage() {} func (x *UnbindRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -722,20 +702,17 @@ func (x *UnbindRequest) GetBindings() []*BoundContract { // GetLatestValueReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.GetLatestValue]. type GetLatestValueReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RetVal *VersionedBytes `protobuf:"bytes,1,opt,name=ret_val,json=retVal,proto3" json:"ret_val,omitempty"` unknownFields protoimpl.UnknownFields - - RetVal *VersionedBytes `protobuf:"bytes,1,opt,name=ret_val,json=retVal,proto3" json:"ret_val,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetLatestValueReply) Reset() { *x = GetLatestValueReply{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLatestValueReply) String() string { @@ -746,7 +723,7 @@ func (*GetLatestValueReply) ProtoMessage() {} func (x *GetLatestValueReply) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -770,21 +747,18 @@ func (x *GetLatestValueReply) GetRetVal() *VersionedBytes { // GetLatestValueWithHeadDataReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.GetLatestValueWithHeadData]. type GetLatestValueWithHeadDataReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RetVal *VersionedBytes `protobuf:"bytes,1,opt,name=ret_val,json=retVal,proto3" json:"ret_val,omitempty"` + HeadData *Head `protobuf:"bytes,2,opt,name=head_data,json=headData,proto3" json:"head_data,omitempty"` unknownFields protoimpl.UnknownFields - - RetVal *VersionedBytes `protobuf:"bytes,1,opt,name=ret_val,json=retVal,proto3" json:"ret_val,omitempty"` - HeadData *Head `protobuf:"bytes,2,opt,name=head_data,json=headData,proto3" json:"head_data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetLatestValueWithHeadDataReply) Reset() { *x = GetLatestValueWithHeadDataReply{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLatestValueWithHeadDataReply) String() string { @@ -795,7 +769,7 @@ func (*GetLatestValueWithHeadDataReply) ProtoMessage() {} func (x *GetLatestValueWithHeadDataReply) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -826,20 +800,17 @@ func (x *GetLatestValueWithHeadDataReply) GetHeadData() *Head { // BatchGetLatestValuesReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.BatchGetLatestValues]. type BatchGetLatestValuesReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Results []*ContractBatchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields - - Results []*ContractBatchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BatchGetLatestValuesReply) Reset() { *x = BatchGetLatestValuesReply{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BatchGetLatestValuesReply) String() string { @@ -850,7 +821,7 @@ func (*BatchGetLatestValuesReply) ProtoMessage() {} func (x *BatchGetLatestValuesReply) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -874,20 +845,17 @@ func (x *BatchGetLatestValuesReply) GetResults() []*ContractBatchResult { // QueryKeyReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.QueryKey]. type QueryKeyReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Sequences []*Sequence `protobuf:"bytes,1,rep,name=sequences,proto3" json:"sequences,omitempty"` unknownFields protoimpl.UnknownFields - - Sequences []*Sequence `protobuf:"bytes,1,rep,name=sequences,proto3" json:"sequences,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QueryKeyReply) Reset() { *x = QueryKeyReply{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryKeyReply) String() string { @@ -898,7 +866,7 @@ func (*QueryKeyReply) ProtoMessage() {} func (x *QueryKeyReply) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -922,20 +890,17 @@ func (x *QueryKeyReply) GetSequences() []*Sequence { // QueryKeysReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.QueryKeys]. type QueryKeysReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Sequences []*SequenceWithKey `protobuf:"bytes,1,rep,name=sequences,proto3" json:"sequences,omitempty"` unknownFields protoimpl.UnknownFields - - Sequences []*SequenceWithKey `protobuf:"bytes,1,rep,name=sequences,proto3" json:"sequences,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QueryKeysReply) Reset() { *x = QueryKeysReply{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryKeysReply) String() string { @@ -946,7 +911,7 @@ func (*QueryKeysReply) ProtoMessage() {} func (x *QueryKeysReply) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -970,21 +935,18 @@ func (x *QueryKeysReply) GetSequences() []*SequenceWithKey { // ContractBatch is gRPC adapter for the BatchGetLatestValuesRequest struct map value [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.BatchGetLatestValuesRequest]. type ContractBatch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Contract *BoundContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` + Reads []*BatchRead `protobuf:"bytes,2,rep,name=reads,proto3" json:"reads,omitempty"` unknownFields protoimpl.UnknownFields - - Contract *BoundContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` - Reads []*BatchRead `protobuf:"bytes,2,rep,name=reads,proto3" json:"reads,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ContractBatch) Reset() { *x = ContractBatch{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContractBatch) String() string { @@ -995,7 +957,7 @@ func (*ContractBatch) ProtoMessage() {} func (x *ContractBatch) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1026,22 +988,19 @@ func (x *ContractBatch) GetReads() []*BatchRead { // BatchCall is gRPC adapter for the GetLatestValueRequest struct [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.BatchCall]. type BatchRead struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ReadName string `protobuf:"bytes,1,opt,name=read_name,json=readName,proto3" json:"read_name,omitempty"` + Params *VersionedBytes `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` + ReturnVal *VersionedBytes `protobuf:"bytes,3,opt,name=return_val,json=returnVal,proto3" json:"return_val,omitempty"` unknownFields protoimpl.UnknownFields - - ReadName string `protobuf:"bytes,1,opt,name=read_name,json=readName,proto3" json:"read_name,omitempty"` - Params *VersionedBytes `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` - ReturnVal *VersionedBytes `protobuf:"bytes,3,opt,name=return_val,json=returnVal,proto3" json:"return_val,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BatchRead) Reset() { *x = BatchRead{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BatchRead) String() string { @@ -1052,7 +1011,7 @@ func (*BatchRead) ProtoMessage() {} func (x *BatchRead) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1090,21 +1049,18 @@ func (x *BatchRead) GetReturnVal() *VersionedBytes { // ContractBatchResult is part of return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.BatchGetLatestValues]. type ContractBatchResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Contract *BoundContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` + Results []*BatchReadResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields - - Contract *BoundContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` - Results []*BatchReadResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ContractBatchResult) Reset() { *x = ContractBatchResult{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContractBatchResult) String() string { @@ -1115,7 +1071,7 @@ func (*ContractBatchResult) ProtoMessage() {} func (x *ContractBatchResult) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1146,22 +1102,19 @@ func (x *ContractBatchResult) GetResults() []*BatchReadResult { // BatchCallResult is part of return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.BatchGetLatestValues]. type BatchReadResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ReadName string `protobuf:"bytes,1,opt,name=read_name,json=readName,proto3" json:"read_name,omitempty"` + ReturnVal *VersionedBytes `protobuf:"bytes,2,opt,name=return_val,json=returnVal,proto3" json:"return_val,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - ReadName string `protobuf:"bytes,1,opt,name=read_name,json=readName,proto3" json:"read_name,omitempty"` - ReturnVal *VersionedBytes `protobuf:"bytes,2,opt,name=return_val,json=returnVal,proto3" json:"return_val,omitempty"` - Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BatchReadResult) Reset() { *x = BatchReadResult{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BatchReadResult) String() string { @@ -1172,7 +1125,7 @@ func (*BatchReadResult) ProtoMessage() {} func (x *BatchReadResult) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1210,22 +1163,19 @@ func (x *BatchReadResult) GetError() string { // Head is gRPC adapter for the Head struct [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.Head]. type Head struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Head) Reset() { *x = Head{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Head) String() string { @@ -1236,7 +1186,7 @@ func (*Head) ProtoMessage() {} func (x *Head) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1274,22 +1224,19 @@ func (x *Head) GetTimestamp() uint64 { // Head is gRPC adapter for the Head struct [github.com/smartcontractkit/chainlink-common/pkg/types.ContractReader.Sequence]. type Sequence struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SequenceCursor string `protobuf:"bytes,1,opt,name=sequence_cursor,json=sequenceCursor,proto3" json:"sequence_cursor,omitempty"` - Head *Head `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"` - Data *VersionedBytes `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SequenceCursor string `protobuf:"bytes,1,opt,name=sequence_cursor,json=sequenceCursor,proto3" json:"sequence_cursor,omitempty"` + Head *Head `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"` + Data *VersionedBytes `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Sequence) Reset() { *x = Sequence{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Sequence) String() string { @@ -1300,7 +1247,7 @@ func (*Sequence) ProtoMessage() {} func (x *Sequence) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1337,23 +1284,20 @@ func (x *Sequence) GetData() *VersionedBytes { } type SequenceWithKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SequenceCursor string `protobuf:"bytes,1,opt,name=sequence_cursor,json=sequenceCursor,proto3" json:"sequence_cursor,omitempty"` - Head *Head `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"` - Data *VersionedBytes `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SequenceCursor string `protobuf:"bytes,1,opt,name=sequence_cursor,json=sequenceCursor,proto3" json:"sequence_cursor,omitempty"` + Head *Head `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"` + Data *VersionedBytes `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SequenceWithKey) Reset() { *x = SequenceWithKey{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SequenceWithKey) String() string { @@ -1364,7 +1308,7 @@ func (*SequenceWithKey) ProtoMessage() {} func (x *SequenceWithKey) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1409,21 +1353,18 @@ func (x *SequenceWithKey) GetKey() string { // BoundContract represents a [github.com/smartcontractkit/chainlink-common/pkg/types.BoundContract]. type BoundContract struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BoundContract) Reset() { *x = BoundContract{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BoundContract) String() string { @@ -1434,7 +1375,7 @@ func (*BoundContract) ProtoMessage() {} func (x *BoundContract) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1464,22 +1405,19 @@ func (x *BoundContract) GetName() string { } type QueryKeyFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Expressions are lightweight orm like DSL defined for filtering over common blockchain primitives. - Expression []*Expression `protobuf:"bytes,2,rep,name=expression,proto3" json:"expression,omitempty"` + Expression []*Expression `protobuf:"bytes,2,rep,name=expression,proto3" json:"expression,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QueryKeyFilter) Reset() { *x = QueryKeyFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryKeyFilter) String() string { @@ -1490,7 +1428,7 @@ func (*QueryKeyFilter) ProtoMessage() {} func (x *QueryKeyFilter) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1522,24 +1460,21 @@ func (x *QueryKeyFilter) GetExpression() []*Expression { // Expression encapsulates a single unit of filtering logic, which can be a common blockchain primitive or a composite of boolean expressions. // This allows for both simple and more complex nested expressions. type Expression struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Evaluator: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Evaluator: // // *Expression_Primitive // *Expression_BooleanExpression - Evaluator isExpression_Evaluator `protobuf_oneof:"evaluator"` + Evaluator isExpression_Evaluator `protobuf_oneof:"evaluator"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Expression) Reset() { *x = Expression{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Expression) String() string { @@ -1550,7 +1485,7 @@ func (*Expression) ProtoMessage() {} func (x *Expression) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1565,23 +1500,27 @@ func (*Expression) Descriptor() ([]byte, []int) { return file_contract_reader_proto_rawDescGZIP(), []int{21} } -func (m *Expression) GetEvaluator() isExpression_Evaluator { - if m != nil { - return m.Evaluator +func (x *Expression) GetEvaluator() isExpression_Evaluator { + if x != nil { + return x.Evaluator } return nil } func (x *Expression) GetPrimitive() *Primitive { - if x, ok := x.GetEvaluator().(*Expression_Primitive); ok { - return x.Primitive + if x != nil { + if x, ok := x.Evaluator.(*Expression_Primitive); ok { + return x.Primitive + } } return nil } func (x *Expression) GetBooleanExpression() *BooleanExpression { - if x, ok := x.GetEvaluator().(*Expression_BooleanExpression); ok { - return x.BooleanExpression + if x != nil { + if x, ok := x.Evaluator.(*Expression_BooleanExpression); ok { + return x.BooleanExpression + } } return nil } @@ -1603,21 +1542,18 @@ func (*Expression_Primitive) isExpression_Evaluator() {} func (*Expression_BooleanExpression) isExpression_Evaluator() {} type BooleanExpression struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BooleanOperator BooleanOperator `protobuf:"varint,1,opt,name=boolean_operator,json=booleanOperator,proto3,enum=loop.BooleanOperator" json:"boolean_operator,omitempty"` - Expression []*Expression `protobuf:"bytes,2,rep,name=expression,proto3" json:"expression,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + BooleanOperator BooleanOperator `protobuf:"varint,1,opt,name=boolean_operator,json=booleanOperator,proto3,enum=loop.BooleanOperator" json:"boolean_operator,omitempty"` + Expression []*Expression `protobuf:"bytes,2,rep,name=expression,proto3" json:"expression,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BooleanExpression) Reset() { *x = BooleanExpression{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BooleanExpression) String() string { @@ -1628,7 +1564,7 @@ func (*BooleanExpression) ProtoMessage() {} func (x *BooleanExpression) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1658,20 +1594,17 @@ func (x *BooleanExpression) GetExpression() []*Expression { } type And struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Expr []*Expression `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"` unknownFields protoimpl.UnknownFields - - Expr []*Expression `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"` + sizeCache protoimpl.SizeCache } func (x *And) Reset() { *x = And{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *And) String() string { @@ -1682,7 +1615,7 @@ func (*And) ProtoMessage() {} func (x *And) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1705,20 +1638,17 @@ func (x *And) GetExpr() []*Expression { } type Or struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Expr []*Expression `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"` unknownFields protoimpl.UnknownFields - - Expr []*Expression `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Or) Reset() { *x = Or{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Or) String() string { @@ -1729,7 +1659,7 @@ func (*Or) ProtoMessage() {} func (x *Or) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1752,21 +1682,18 @@ func (x *Or) GetExpr() []*Expression { } type ValueComparator struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value *VersionedBytes `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.ComparisonOperator" json:"operator,omitempty"` unknownFields protoimpl.UnknownFields - - Value *VersionedBytes `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.ComparisonOperator" json:"operator,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ValueComparator) Reset() { *x = ValueComparator{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValueComparator) String() string { @@ -1777,7 +1704,7 @@ func (*ValueComparator) ProtoMessage() {} func (x *ValueComparator) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1807,21 +1734,18 @@ func (x *ValueComparator) GetOperator() ComparisonOperator { } type Comparator struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - ValueComparators []*ValueComparator `protobuf:"bytes,2,rep,name=value_comparators,json=valueComparators,proto3" json:"value_comparators,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ValueComparators []*ValueComparator `protobuf:"bytes,2,rep,name=value_comparators,json=valueComparators,proto3" json:"value_comparators,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Comparator) Reset() { *x = Comparator{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Comparator) String() string { @@ -1832,7 +1756,7 @@ func (*Comparator) ProtoMessage() {} func (x *Comparator) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1862,21 +1786,18 @@ func (x *Comparator) GetValueComparators() []*ValueComparator { } type Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BlockNumber string `protobuf:"bytes,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.ComparisonOperator" json:"operator,omitempty"` unknownFields protoimpl.UnknownFields - - BlockNumber string `protobuf:"bytes,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` - Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.ComparisonOperator" json:"operator,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -1887,7 +1808,7 @@ func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1917,21 +1838,18 @@ func (x *Block) GetOperator() ComparisonOperator { } type Timestamp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.ComparisonOperator" json:"operator,omitempty"` unknownFields protoimpl.UnknownFields - - Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.ComparisonOperator" json:"operator,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Timestamp) Reset() { *x = Timestamp{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Timestamp) String() string { @@ -1942,7 +1860,7 @@ func (*Timestamp) ProtoMessage() {} func (x *Timestamp) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1972,20 +1890,17 @@ func (x *Timestamp) GetOperator() ComparisonOperator { } type TxHash struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` unknownFields protoimpl.UnknownFields - - TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TxHash) Reset() { *x = TxHash{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TxHash) String() string { @@ -1996,7 +1911,7 @@ func (*TxHash) ProtoMessage() {} func (x *TxHash) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2020,27 +1935,24 @@ func (x *TxHash) GetTxHash() string { // Primitive defines the basic building blocks for filter conditions based around fundamental blockchain concepts. type Primitive struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Primitive: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Primitive: // // *Primitive_Comparator // *Primitive_Block // *Primitive_Confidence // *Primitive_Timestamp // *Primitive_TxHash - Primitive isPrimitive_Primitive `protobuf_oneof:"primitive"` + Primitive isPrimitive_Primitive `protobuf_oneof:"primitive"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Primitive) Reset() { *x = Primitive{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Primitive) String() string { @@ -2051,7 +1963,7 @@ func (*Primitive) ProtoMessage() {} func (x *Primitive) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2066,44 +1978,54 @@ func (*Primitive) Descriptor() ([]byte, []int) { return file_contract_reader_proto_rawDescGZIP(), []int{30} } -func (m *Primitive) GetPrimitive() isPrimitive_Primitive { - if m != nil { - return m.Primitive +func (x *Primitive) GetPrimitive() isPrimitive_Primitive { + if x != nil { + return x.Primitive } return nil } func (x *Primitive) GetComparator() *Comparator { - if x, ok := x.GetPrimitive().(*Primitive_Comparator); ok { - return x.Comparator + if x != nil { + if x, ok := x.Primitive.(*Primitive_Comparator); ok { + return x.Comparator + } } return nil } func (x *Primitive) GetBlock() *Block { - if x, ok := x.GetPrimitive().(*Primitive_Block); ok { - return x.Block + if x != nil { + if x, ok := x.Primitive.(*Primitive_Block); ok { + return x.Block + } } return nil } func (x *Primitive) GetConfidence() Confidence { - if x, ok := x.GetPrimitive().(*Primitive_Confidence); ok { - return x.Confidence + if x != nil { + if x, ok := x.Primitive.(*Primitive_Confidence); ok { + return x.Confidence + } } return Confidence_Unconfirmed } func (x *Primitive) GetTimestamp() *Timestamp { - if x, ok := x.GetPrimitive().(*Primitive_Timestamp); ok { - return x.Timestamp + if x != nil { + if x, ok := x.Primitive.(*Primitive_Timestamp); ok { + return x.Timestamp + } } return nil } func (x *Primitive) GetTxHash() *TxHash { - if x, ok := x.GetPrimitive().(*Primitive_TxHash); ok { - return x.TxHash + if x != nil { + if x, ok := x.Primitive.(*Primitive_TxHash); ok { + return x.TxHash + } } return nil } @@ -2144,22 +2066,19 @@ func (*Primitive_TxHash) isPrimitive_Primitive() {} // Limit defines a structure for limiting the results of a query, including optional cursor-based pagination. type Limit struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Cursor *string `protobuf:"bytes,1,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"` + Direction *CursorDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=loop.CursorDirection,oneof" json:"direction,omitempty"` + Count uint64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields - - Cursor *string `protobuf:"bytes,1,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"` - Direction *CursorDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=loop.CursorDirection,oneof" json:"direction,omitempty"` - Count uint64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Limit) Reset() { *x = Limit{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Limit) String() string { @@ -2170,7 +2089,7 @@ func (*Limit) ProtoMessage() {} func (x *Limit) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2207,21 +2126,18 @@ func (x *Limit) GetCount() uint64 { } type SortBy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SortType SortType `protobuf:"varint,1,opt,name=sort_type,json=sortType,proto3,enum=loop.SortType" json:"sort_type,omitempty"` + Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=loop.SortDirection" json:"direction,omitempty"` unknownFields protoimpl.UnknownFields - - SortType SortType `protobuf:"varint,1,opt,name=sort_type,json=sortType,proto3,enum=loop.SortType" json:"sort_type,omitempty"` - Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=loop.SortDirection" json:"direction,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SortBy) Reset() { *x = SortBy{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SortBy) String() string { @@ -2232,7 +2148,7 @@ func (*SortBy) ProtoMessage() {} func (x *SortBy) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2263,21 +2179,18 @@ func (x *SortBy) GetDirection() SortDirection { // LimitAndSort combines sorting criteria with pagination limits. type LimitAndSort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SortBy []*SortBy `protobuf:"bytes,1,rep,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` // A list of sorting criteria. + Limit *Limit `protobuf:"bytes,2,opt,name=limit,proto3" json:"limit,omitempty"` // Pagination limit and direction. unknownFields protoimpl.UnknownFields - - SortBy []*SortBy `protobuf:"bytes,1,rep,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` // A list of sorting criteria. - Limit *Limit `protobuf:"bytes,2,opt,name=limit,proto3" json:"limit,omitempty"` // Pagination limit and direction. + sizeCache protoimpl.SizeCache } func (x *LimitAndSort) Reset() { *x = LimitAndSort{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_reader_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_reader_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LimitAndSort) String() string { @@ -2288,7 +2201,7 @@ func (*LimitAndSort) ProtoMessage() {} func (x *LimitAndSort) ProtoReflect() protoreflect.Message { mi := &file_contract_reader_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2319,7 +2232,7 @@ func (x *LimitAndSort) GetLimit() *Limit { var File_contract_reader_proto protoreflect.FileDescriptor -var file_contract_reader_proto_rawDesc = []byte{ +var file_contract_reader_proto_rawDesc = string([]byte{ 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x0b, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, @@ -2615,23 +2528,23 @@ var file_contract_reader_proto_rawDesc = []byte{ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_contract_reader_proto_rawDescOnce sync.Once - file_contract_reader_proto_rawDescData = file_contract_reader_proto_rawDesc + file_contract_reader_proto_rawDescData []byte ) func file_contract_reader_proto_rawDescGZIP() []byte { file_contract_reader_proto_rawDescOnce.Do(func() { - file_contract_reader_proto_rawDescData = protoimpl.X.CompressGZIP(file_contract_reader_proto_rawDescData) + file_contract_reader_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_contract_reader_proto_rawDesc), len(file_contract_reader_proto_rawDesc))) }) return file_contract_reader_proto_rawDescData } var file_contract_reader_proto_enumTypes = make([]protoimpl.EnumInfo, 6) var file_contract_reader_proto_msgTypes = make([]protoimpl.MessageInfo, 34) -var file_contract_reader_proto_goTypes = []interface{}{ +var file_contract_reader_proto_goTypes = []any{ (ComparisonOperator)(0), // 0: loop.ComparisonOperator (BooleanOperator)(0), // 1: loop.BooleanOperator (Confidence)(0), // 2: loop.Confidence @@ -2754,433 +2667,23 @@ func file_contract_reader_proto_init() { return } file_codec_proto_init() - if !protoimpl.UnsafeEnabled { - file_contract_reader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLatestValueRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchGetLatestValuesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeysRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContractKeyFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BindRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnbindRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLatestValueReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLatestValueWithHeadDataReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchGetLatestValuesReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeysReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContractBatch); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchRead); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContractBatchResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchReadResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Head); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Sequence); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SequenceWithKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BoundContract); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Expression); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BooleanExpression); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*And); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Or); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValueComparator); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Comparator); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Timestamp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TxHash); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Primitive); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Limit); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SortBy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_reader_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LimitAndSort); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_contract_reader_proto_msgTypes[21].OneofWrappers = []interface{}{ + file_contract_reader_proto_msgTypes[21].OneofWrappers = []any{ (*Expression_Primitive)(nil), (*Expression_BooleanExpression)(nil), } - file_contract_reader_proto_msgTypes[30].OneofWrappers = []interface{}{ + file_contract_reader_proto_msgTypes[30].OneofWrappers = []any{ (*Primitive_Comparator)(nil), (*Primitive_Block)(nil), (*Primitive_Confidence)(nil), (*Primitive_Timestamp)(nil), (*Primitive_TxHash)(nil), } - file_contract_reader_proto_msgTypes[31].OneofWrappers = []interface{}{} + file_contract_reader_proto_msgTypes[31].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_contract_reader_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_contract_reader_proto_rawDesc), len(file_contract_reader_proto_rawDesc)), NumEnums: 6, NumMessages: 34, NumExtensions: 0, @@ -3192,7 +2695,6 @@ func file_contract_reader_proto_init() { MessageInfos: file_contract_reader_proto_msgTypes, }.Build() File_contract_reader_proto = out.File - file_contract_reader_proto_rawDesc = nil file_contract_reader_proto_goTypes = nil file_contract_reader_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/contract_reader_grpc.pb.go b/pkg/loop/internal/pb/contract_reader_grpc.pb.go index c8f8d5414..3e574ee9e 100644 --- a/pkg/loop/internal/pb/contract_reader_grpc.pb.go +++ b/pkg/loop/internal/pb/contract_reader_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: contract_reader.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ContractReader_GetLatestValue_FullMethodName = "/loop.ContractReader/GetLatestValue" @@ -51,8 +51,9 @@ func NewContractReaderClient(cc grpc.ClientConnInterface) ContractReaderClient { } func (c *contractReaderClient) GetLatestValue(ctx context.Context, in *GetLatestValueRequest, opts ...grpc.CallOption) (*GetLatestValueReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLatestValueReply) - err := c.cc.Invoke(ctx, ContractReader_GetLatestValue_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractReader_GetLatestValue_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +61,9 @@ func (c *contractReaderClient) GetLatestValue(ctx context.Context, in *GetLatest } func (c *contractReaderClient) GetLatestValueWithHeadData(ctx context.Context, in *GetLatestValueRequest, opts ...grpc.CallOption) (*GetLatestValueWithHeadDataReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLatestValueWithHeadDataReply) - err := c.cc.Invoke(ctx, ContractReader_GetLatestValueWithHeadData_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractReader_GetLatestValueWithHeadData_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -69,8 +71,9 @@ func (c *contractReaderClient) GetLatestValueWithHeadData(ctx context.Context, i } func (c *contractReaderClient) BatchGetLatestValues(ctx context.Context, in *BatchGetLatestValuesRequest, opts ...grpc.CallOption) (*BatchGetLatestValuesReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchGetLatestValuesReply) - err := c.cc.Invoke(ctx, ContractReader_BatchGetLatestValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractReader_BatchGetLatestValues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -78,8 +81,9 @@ func (c *contractReaderClient) BatchGetLatestValues(ctx context.Context, in *Bat } func (c *contractReaderClient) QueryKey(ctx context.Context, in *QueryKeyRequest, opts ...grpc.CallOption) (*QueryKeyReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(QueryKeyReply) - err := c.cc.Invoke(ctx, ContractReader_QueryKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractReader_QueryKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -87,8 +91,9 @@ func (c *contractReaderClient) QueryKey(ctx context.Context, in *QueryKeyRequest } func (c *contractReaderClient) QueryKeys(ctx context.Context, in *QueryKeysRequest, opts ...grpc.CallOption) (*QueryKeysReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(QueryKeysReply) - err := c.cc.Invoke(ctx, ContractReader_QueryKeys_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractReader_QueryKeys_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -96,8 +101,9 @@ func (c *contractReaderClient) QueryKeys(ctx context.Context, in *QueryKeysReque } func (c *contractReaderClient) Bind(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ContractReader_Bind_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractReader_Bind_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -105,8 +111,9 @@ func (c *contractReaderClient) Bind(ctx context.Context, in *BindRequest, opts . } func (c *contractReaderClient) Unbind(ctx context.Context, in *UnbindRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ContractReader_Unbind_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractReader_Unbind_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,7 +122,7 @@ func (c *contractReaderClient) Unbind(ctx context.Context, in *UnbindRequest, op // ContractReaderServer is the server API for ContractReader service. // All implementations must embed UnimplementedContractReaderServer -// for forward compatibility +// for forward compatibility. type ContractReaderServer interface { GetLatestValue(context.Context, *GetLatestValueRequest) (*GetLatestValueReply, error) GetLatestValueWithHeadData(context.Context, *GetLatestValueRequest) (*GetLatestValueWithHeadDataReply, error) @@ -127,9 +134,12 @@ type ContractReaderServer interface { mustEmbedUnimplementedContractReaderServer() } -// UnimplementedContractReaderServer must be embedded to have forward compatible implementations. -type UnimplementedContractReaderServer struct { -} +// UnimplementedContractReaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedContractReaderServer struct{} func (UnimplementedContractReaderServer) GetLatestValue(context.Context, *GetLatestValueRequest) (*GetLatestValueReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLatestValue not implemented") @@ -153,6 +163,7 @@ func (UnimplementedContractReaderServer) Unbind(context.Context, *UnbindRequest) return nil, status.Errorf(codes.Unimplemented, "method Unbind not implemented") } func (UnimplementedContractReaderServer) mustEmbedUnimplementedContractReaderServer() {} +func (UnimplementedContractReaderServer) testEmbeddedByValue() {} // UnsafeContractReaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ContractReaderServer will @@ -162,6 +173,13 @@ type UnsafeContractReaderServer interface { } func RegisterContractReaderServer(s grpc.ServiceRegistrar, srv ContractReaderServer) { + // If the following call pancis, it indicates UnimplementedContractReaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ContractReader_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/contract_writer.pb.go b/pkg/loop/internal/pb/contract_writer.pb.go index b43891cb2..9627c7e60 100644 --- a/pkg/loop/internal/pb/contract_writer.pb.go +++ b/pkg/loop/internal/pb/contract_writer.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: contract_writer.proto package pb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -82,26 +83,23 @@ func (TransactionStatus) EnumDescriptor() ([]byte, []int) { } type SubmitTransactionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ContractName string `protobuf:"bytes,1,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Params *VersionedBytes `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` + TransactionId string `protobuf:"bytes,4,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + ToAddress string `protobuf:"bytes,5,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` + Meta *TransactionMeta `protobuf:"bytes,6,opt,name=meta,proto3" json:"meta,omitempty"` + Value *BigInt `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - ContractName string `protobuf:"bytes,1,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` - Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` - Params *VersionedBytes `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` - TransactionId string `protobuf:"bytes,4,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` - ToAddress string `protobuf:"bytes,5,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` - Meta *TransactionMeta `protobuf:"bytes,6,opt,name=meta,proto3" json:"meta,omitempty"` - Value *BigInt `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SubmitTransactionRequest) Reset() { *x = SubmitTransactionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_writer_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_writer_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubmitTransactionRequest) String() string { @@ -112,7 +110,7 @@ func (*SubmitTransactionRequest) ProtoMessage() {} func (x *SubmitTransactionRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_writer_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -177,21 +175,18 @@ func (x *SubmitTransactionRequest) GetValue() *BigInt { } type TransactionMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - WorkflowExecutionId string `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` - GasLimit *BigInt `protobuf:"bytes,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + WorkflowExecutionId string `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` + GasLimit *BigInt `protobuf:"bytes,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMeta) Reset() { *x = TransactionMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_writer_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_writer_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMeta) String() string { @@ -202,7 +197,7 @@ func (*TransactionMeta) ProtoMessage() {} func (x *TransactionMeta) ProtoReflect() protoreflect.Message { mi := &file_contract_writer_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -233,20 +228,17 @@ func (x *TransactionMeta) GetGasLimit() *BigInt { // GetTransactionStatusRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractWriter.GetTransactionStatus]. type GetTransactionStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` unknownFields protoimpl.UnknownFields - - TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransactionStatusRequest) Reset() { *x = GetTransactionStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_writer_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_writer_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionStatusRequest) String() string { @@ -257,7 +249,7 @@ func (*GetTransactionStatusRequest) ProtoMessage() {} func (x *GetTransactionStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_writer_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -281,20 +273,17 @@ func (x *GetTransactionStatusRequest) GetTransactionId() string { // GetTransactionStatusReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractWriter.GetTransactionStatus]. type GetTransactionStatusReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TransactionStatus TransactionStatus `protobuf:"varint,1,opt,name=transaction_status,json=transactionStatus,proto3,enum=loop.TransactionStatus" json:"transaction_status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TransactionStatus TransactionStatus `protobuf:"varint,1,opt,name=transaction_status,json=transactionStatus,proto3,enum=loop.TransactionStatus" json:"transaction_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTransactionStatusReply) Reset() { *x = GetTransactionStatusReply{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_writer_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_writer_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionStatusReply) String() string { @@ -305,7 +294,7 @@ func (*GetTransactionStatusReply) ProtoMessage() {} func (x *GetTransactionStatusReply) ProtoReflect() protoreflect.Message { mi := &file_contract_writer_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -329,21 +318,18 @@ func (x *GetTransactionStatusReply) GetTransactionStatus() TransactionStatus { // GetFeeComponentsReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.ContractWriter.GetFeeComponents]. type GetFeeComponentsReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExecutionFee *BigInt `protobuf:"bytes,1,opt,name=execution_fee,json=executionFee,proto3" json:"execution_fee,omitempty"` - DataAvailabilityFee *BigInt `protobuf:"bytes,2,opt,name=data_availability_fee,json=dataAvailabilityFee,proto3" json:"data_availability_fee,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ExecutionFee *BigInt `protobuf:"bytes,1,opt,name=execution_fee,json=executionFee,proto3" json:"execution_fee,omitempty"` + DataAvailabilityFee *BigInt `protobuf:"bytes,2,opt,name=data_availability_fee,json=dataAvailabilityFee,proto3" json:"data_availability_fee,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetFeeComponentsReply) Reset() { *x = GetFeeComponentsReply{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_writer_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_writer_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFeeComponentsReply) String() string { @@ -354,7 +340,7 @@ func (*GetFeeComponentsReply) ProtoMessage() {} func (x *GetFeeComponentsReply) ProtoReflect() protoreflect.Message { mi := &file_contract_writer_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -385,7 +371,7 @@ func (x *GetFeeComponentsReply) GetDataAvailabilityFee() *BigInt { var File_contract_writer_proto protoreflect.FileDescriptor -var file_contract_writer_proto_rawDesc = []byte{ +var file_contract_writer_proto_rawDesc = string([]byte{ 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x0b, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x72, 0x65, 0x6c, 0x61, @@ -471,23 +457,23 @@ var file_contract_writer_proto_rawDesc = []byte{ 0x69, 0x74, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_contract_writer_proto_rawDescOnce sync.Once - file_contract_writer_proto_rawDescData = file_contract_writer_proto_rawDesc + file_contract_writer_proto_rawDescData []byte ) func file_contract_writer_proto_rawDescGZIP() []byte { file_contract_writer_proto_rawDescOnce.Do(func() { - file_contract_writer_proto_rawDescData = protoimpl.X.CompressGZIP(file_contract_writer_proto_rawDescData) + file_contract_writer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_contract_writer_proto_rawDesc), len(file_contract_writer_proto_rawDesc))) }) return file_contract_writer_proto_rawDescData } var file_contract_writer_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_contract_writer_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_contract_writer_proto_goTypes = []interface{}{ +var file_contract_writer_proto_goTypes = []any{ (TransactionStatus)(0), // 0: loop.TransactionStatus (*SubmitTransactionRequest)(nil), // 1: loop.SubmitTransactionRequest (*TransactionMeta)(nil), // 2: loop.TransactionMeta @@ -526,73 +512,11 @@ func file_contract_writer_proto_init() { } file_codec_proto_init() file_relayer_proto_init() - if !protoimpl.UnsafeEnabled { - file_contract_writer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitTransactionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_writer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_writer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_writer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTransactionStatusReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_writer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFeeComponentsReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_contract_writer_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_contract_writer_proto_rawDesc), len(file_contract_writer_proto_rawDesc)), NumEnums: 1, NumMessages: 5, NumExtensions: 0, @@ -604,7 +528,6 @@ func file_contract_writer_proto_init() { MessageInfos: file_contract_writer_proto_msgTypes, }.Build() File_contract_writer_proto = out.File - file_contract_writer_proto_rawDesc = nil file_contract_writer_proto_goTypes = nil file_contract_writer_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/contract_writer_grpc.pb.go b/pkg/loop/internal/pb/contract_writer_grpc.pb.go index 4f45583fd..6c2da2796 100644 --- a/pkg/loop/internal/pb/contract_writer_grpc.pb.go +++ b/pkg/loop/internal/pb/contract_writer_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: contract_writer.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ContractWriter_SubmitTransaction_FullMethodName = "/loop.ContractWriter/SubmitTransaction" @@ -43,8 +43,9 @@ func NewContractWriterClient(cc grpc.ClientConnInterface) ContractWriterClient { } func (c *contractWriterClient) SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ContractWriter_SubmitTransaction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractWriter_SubmitTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -52,8 +53,9 @@ func (c *contractWriterClient) SubmitTransaction(ctx context.Context, in *Submit } func (c *contractWriterClient) GetTransactionStatus(ctx context.Context, in *GetTransactionStatusRequest, opts ...grpc.CallOption) (*GetTransactionStatusReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionStatusReply) - err := c.cc.Invoke(ctx, ContractWriter_GetTransactionStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractWriter_GetTransactionStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +63,9 @@ func (c *contractWriterClient) GetTransactionStatus(ctx context.Context, in *Get } func (c *contractWriterClient) GetFeeComponents(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetFeeComponentsReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetFeeComponentsReply) - err := c.cc.Invoke(ctx, ContractWriter_GetFeeComponents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractWriter_GetFeeComponents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,7 +74,7 @@ func (c *contractWriterClient) GetFeeComponents(ctx context.Context, in *emptypb // ContractWriterServer is the server API for ContractWriter service. // All implementations must embed UnimplementedContractWriterServer -// for forward compatibility +// for forward compatibility. type ContractWriterServer interface { SubmitTransaction(context.Context, *SubmitTransactionRequest) (*emptypb.Empty, error) GetTransactionStatus(context.Context, *GetTransactionStatusRequest) (*GetTransactionStatusReply, error) @@ -79,9 +82,12 @@ type ContractWriterServer interface { mustEmbedUnimplementedContractWriterServer() } -// UnimplementedContractWriterServer must be embedded to have forward compatible implementations. -type UnimplementedContractWriterServer struct { -} +// UnimplementedContractWriterServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedContractWriterServer struct{} func (UnimplementedContractWriterServer) SubmitTransaction(context.Context, *SubmitTransactionRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitTransaction not implemented") @@ -93,6 +99,7 @@ func (UnimplementedContractWriterServer) GetFeeComponents(context.Context, *empt return nil, status.Errorf(codes.Unimplemented, "method GetFeeComponents not implemented") } func (UnimplementedContractWriterServer) mustEmbedUnimplementedContractWriterServer() {} +func (UnimplementedContractWriterServer) testEmbeddedByValue() {} // UnsafeContractWriterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ContractWriterServer will @@ -102,6 +109,13 @@ type UnsafeContractWriterServer interface { } func RegisterContractWriterServer(s grpc.ServiceRegistrar, srv ContractWriterServer) { + // If the following call pancis, it indicates UnimplementedContractWriterServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ContractWriter_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/keystore/keystore.pb.go b/pkg/loop/internal/pb/keystore/keystore.pb.go index f385c3de4..e928c16f8 100644 --- a/pkg/loop/internal/pb/keystore/keystore.pb.go +++ b/pkg/loop/internal/pb/keystore/keystore.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: keystore.proto package keystorepb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type SignRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SignRequest) Reset() { *x = SignRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignRequest) String() string { @@ -46,7 +44,7 @@ func (*SignRequest) ProtoMessage() {} func (x *SignRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -76,20 +74,17 @@ func (x *SignRequest) GetData() []byte { } type SignResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SignResponse) Reset() { *x = SignResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignResponse) String() string { @@ -100,7 +95,7 @@ func (*SignResponse) ProtoMessage() {} func (x *SignResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -123,21 +118,18 @@ func (x *SignResponse) GetData() []byte { } type SignBatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + Data [][]byte `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` - Data [][]byte `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SignBatchRequest) Reset() { *x = SignBatchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignBatchRequest) String() string { @@ -148,7 +140,7 @@ func (*SignBatchRequest) ProtoMessage() {} func (x *SignBatchRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -178,20 +170,17 @@ func (x *SignBatchRequest) GetData() [][]byte { } type SignBatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SignBatchResponse) Reset() { *x = SignBatchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignBatchResponse) String() string { @@ -202,7 +191,7 @@ func (*SignBatchResponse) ProtoMessage() {} func (x *SignBatchResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -225,21 +214,18 @@ func (x *SignBatchResponse) GetData() [][]byte { } type VerifyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *VerifyRequest) Reset() { *x = VerifyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerifyRequest) String() string { @@ -250,7 +236,7 @@ func (*VerifyRequest) ProtoMessage() {} func (x *VerifyRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -280,20 +266,17 @@ func (x *VerifyRequest) GetData() []byte { } type VerifyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` unknownFields protoimpl.UnknownFields - - Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *VerifyResponse) Reset() { *x = VerifyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerifyResponse) String() string { @@ -304,7 +287,7 @@ func (*VerifyResponse) ProtoMessage() {} func (x *VerifyResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -327,21 +310,18 @@ func (x *VerifyResponse) GetValid() bool { } type VerifyBatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + Data [][]byte `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` - Data [][]byte `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *VerifyBatchRequest) Reset() { *x = VerifyBatchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerifyBatchRequest) String() string { @@ -352,7 +332,7 @@ func (*VerifyBatchRequest) ProtoMessage() {} func (x *VerifyBatchRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -382,20 +362,17 @@ func (x *VerifyBatchRequest) GetData() [][]byte { } type VerifyBatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Valid []bool `protobuf:"varint,1,rep,packed,name=valid,proto3" json:"valid,omitempty"` unknownFields protoimpl.UnknownFields - - Valid []bool `protobuf:"varint,1,rep,packed,name=valid,proto3" json:"valid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *VerifyBatchResponse) Reset() { *x = VerifyBatchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerifyBatchResponse) String() string { @@ -406,7 +383,7 @@ func (*VerifyBatchResponse) ProtoMessage() {} func (x *VerifyBatchResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -429,20 +406,17 @@ func (x *VerifyBatchResponse) GetValid() []bool { } type ListKeysRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` unknownFields protoimpl.UnknownFields - - Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListKeysRequest) Reset() { *x = ListKeysRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListKeysRequest) String() string { @@ -453,7 +427,7 @@ func (*ListKeysRequest) ProtoMessage() {} func (x *ListKeysRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -476,20 +450,17 @@ func (x *ListKeysRequest) GetTags() []string { } type ListKeysResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyIDs [][]byte `protobuf:"bytes,1,rep,name=keyIDs,proto3" json:"keyIDs,omitempty"` unknownFields protoimpl.UnknownFields - - KeyIDs [][]byte `protobuf:"bytes,1,rep,name=keyIDs,proto3" json:"keyIDs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListKeysResponse) Reset() { *x = ListKeysResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListKeysResponse) String() string { @@ -500,7 +471,7 @@ func (*ListKeysResponse) ProtoMessage() {} func (x *ListKeysResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -523,22 +494,19 @@ func (x *ListKeysResponse) GetKeyIDs() [][]byte { } type RunUDFRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + KeyID []byte `protobuf:"bytes,2,opt,name=keyID,proto3" json:"keyID,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - KeyID []byte `protobuf:"bytes,2,opt,name=keyID,proto3" json:"keyID,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RunUDFRequest) Reset() { *x = RunUDFRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RunUDFRequest) String() string { @@ -549,7 +517,7 @@ func (*RunUDFRequest) ProtoMessage() {} func (x *RunUDFRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -586,20 +554,17 @@ func (x *RunUDFRequest) GetData() []byte { } type RunUDFResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RunUDFResponse) Reset() { *x = RunUDFResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RunUDFResponse) String() string { @@ -610,7 +575,7 @@ func (*RunUDFResponse) ProtoMessage() {} func (x *RunUDFResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -633,22 +598,19 @@ func (x *RunUDFResponse) GetData() []byte { } type ImportKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyType string `protobuf:"bytes,1,opt,name=keyType,proto3" json:"keyType,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` unknownFields protoimpl.UnknownFields - - KeyType string `protobuf:"bytes,1,opt,name=keyType,proto3" json:"keyType,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ImportKeyRequest) Reset() { *x = ImportKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportKeyRequest) String() string { @@ -659,7 +621,7 @@ func (*ImportKeyRequest) ProtoMessage() {} func (x *ImportKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -696,20 +658,17 @@ func (x *ImportKeyRequest) GetTags() []string { } type ImportKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ImportKeyResponse) Reset() { *x = ImportKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportKeyResponse) String() string { @@ -720,7 +679,7 @@ func (*ImportKeyResponse) ProtoMessage() {} func (x *ImportKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -743,20 +702,17 @@ func (x *ImportKeyResponse) GetKeyID() []byte { } type ExportKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExportKeyRequest) Reset() { *x = ExportKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExportKeyRequest) String() string { @@ -767,7 +723,7 @@ func (*ExportKeyRequest) ProtoMessage() {} func (x *ExportKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -790,20 +746,17 @@ func (x *ExportKeyRequest) GetKeyID() []byte { } type ExportKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExportKeyResponse) Reset() { *x = ExportKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExportKeyResponse) String() string { @@ -814,7 +767,7 @@ func (*ExportKeyResponse) ProtoMessage() {} func (x *ExportKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -837,21 +790,18 @@ func (x *ExportKeyResponse) GetData() []byte { } type CreateKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyType string `protobuf:"bytes,1,opt,name=keyType,proto3" json:"keyType,omitempty"` + Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"` unknownFields protoimpl.UnknownFields - - KeyType string `protobuf:"bytes,1,opt,name=keyType,proto3" json:"keyType,omitempty"` - Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateKeyRequest) Reset() { *x = CreateKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateKeyRequest) String() string { @@ -862,7 +812,7 @@ func (*CreateKeyRequest) ProtoMessage() {} func (x *CreateKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -892,20 +842,17 @@ func (x *CreateKeyRequest) GetTags() []string { } type CreateKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateKeyResponse) Reset() { *x = CreateKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateKeyResponse) String() string { @@ -916,7 +863,7 @@ func (*CreateKeyResponse) ProtoMessage() {} func (x *CreateKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -939,20 +886,17 @@ func (x *CreateKeyResponse) GetKeyID() []byte { } type DeleteKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteKeyRequest) Reset() { *x = DeleteKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteKeyRequest) String() string { @@ -963,7 +907,7 @@ func (*DeleteKeyRequest) ProtoMessage() {} func (x *DeleteKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -986,18 +930,16 @@ func (x *DeleteKeyRequest) GetKeyID() []byte { } type DeleteKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteKeyResponse) Reset() { *x = DeleteKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteKeyResponse) String() string { @@ -1008,7 +950,7 @@ func (*DeleteKeyResponse) ProtoMessage() {} func (x *DeleteKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1024,21 +966,18 @@ func (*DeleteKeyResponse) Descriptor() ([]byte, []int) { } type AddTagRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddTagRequest) Reset() { *x = AddTagRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddTagRequest) String() string { @@ -1049,7 +988,7 @@ func (*AddTagRequest) ProtoMessage() {} func (x *AddTagRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1079,18 +1018,16 @@ func (x *AddTagRequest) GetTag() string { } type AddTagResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddTagResponse) Reset() { *x = AddTagResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddTagResponse) String() string { @@ -1101,7 +1038,7 @@ func (*AddTagResponse) ProtoMessage() {} func (x *AddTagResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1117,21 +1054,18 @@ func (*AddTagResponse) Descriptor() ([]byte, []int) { } type RemoveTagRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RemoveTagRequest) Reset() { *x = RemoveTagRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveTagRequest) String() string { @@ -1142,7 +1076,7 @@ func (*RemoveTagRequest) ProtoMessage() {} func (x *RemoveTagRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1172,18 +1106,16 @@ func (x *RemoveTagRequest) GetTag() string { } type RemoveTagResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoveTagResponse) Reset() { *x = RemoveTagResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveTagResponse) String() string { @@ -1194,7 +1126,7 @@ func (*RemoveTagResponse) ProtoMessage() {} func (x *RemoveTagResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1210,20 +1142,17 @@ func (*RemoveTagResponse) Descriptor() ([]byte, []int) { } type ListTagsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` unknownFields protoimpl.UnknownFields - - KeyID []byte `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListTagsRequest) Reset() { *x = ListTagsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListTagsRequest) String() string { @@ -1234,7 +1163,7 @@ func (*ListTagsRequest) ProtoMessage() {} func (x *ListTagsRequest) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1257,20 +1186,17 @@ func (x *ListTagsRequest) GetKeyID() []byte { } type ListTagsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` unknownFields protoimpl.UnknownFields - - Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListTagsResponse) Reset() { *x = ListTagsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keystore_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keystore_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListTagsResponse) String() string { @@ -1281,7 +1207,7 @@ func (*ListTagsResponse) ProtoMessage() {} func (x *ListTagsResponse) ProtoReflect() protoreflect.Message { mi := &file_keystore_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1305,7 +1231,7 @@ func (x *ListTagsResponse) GetTags() []string { var File_keystore_proto protoreflect.FileDescriptor -var file_keystore_proto_rawDesc = []byte{ +var file_keystore_proto_rawDesc = string([]byte{ 0x0a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x37, 0x0a, 0x0b, 0x53, @@ -1474,22 +1400,22 @@ var file_keystore_proto_rawDesc = []byte{ 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3b, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_keystore_proto_rawDescOnce sync.Once - file_keystore_proto_rawDescData = file_keystore_proto_rawDesc + file_keystore_proto_rawDescData []byte ) func file_keystore_proto_rawDescGZIP() []byte { file_keystore_proto_rawDescOnce.Do(func() { - file_keystore_proto_rawDescData = protoimpl.X.CompressGZIP(file_keystore_proto_rawDescData) + file_keystore_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_keystore_proto_rawDesc), len(file_keystore_proto_rawDesc))) }) return file_keystore_proto_rawDescData } var file_keystore_proto_msgTypes = make([]protoimpl.MessageInfo, 26) -var file_keystore_proto_goTypes = []interface{}{ +var file_keystore_proto_goTypes = []any{ (*SignRequest)(nil), // 0: loop.internal.pb.keystore.SignRequest (*SignResponse)(nil), // 1: loop.internal.pb.keystore.SignResponse (*SignBatchRequest)(nil), // 2: loop.internal.pb.keystore.SignBatchRequest @@ -1556,325 +1482,11 @@ func file_keystore_proto_init() { if File_keystore_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_keystore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignBatchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignBatchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyBatchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyBatchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListKeysRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListKeysResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunUDFRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunUDFResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExportKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExportKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddTagRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddTagResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveTagRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveTagResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTagsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keystore_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTagsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_keystore_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_keystore_proto_rawDesc), len(file_keystore_proto_rawDesc)), NumEnums: 0, NumMessages: 26, NumExtensions: 0, @@ -1885,7 +1497,6 @@ func file_keystore_proto_init() { MessageInfos: file_keystore_proto_msgTypes, }.Build() File_keystore_proto = out.File - file_keystore_proto_rawDesc = nil file_keystore_proto_goTypes = nil file_keystore_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/keystore/keystore_grpc.pb.go b/pkg/loop/internal/pb/keystore/keystore_grpc.pb.go index 6752c21ee..9cdec8051 100644 --- a/pkg/loop/internal/pb/keystore/keystore_grpc.pb.go +++ b/pkg/loop/internal/pb/keystore/keystore_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: keystore.proto package keystorepb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Keystore_Sign_FullMethodName = "/loop.internal.pb.keystore.Keystore/Sign" @@ -62,8 +62,9 @@ func NewKeystoreClient(cc grpc.ClientConnInterface) KeystoreClient { } func (c *keystoreClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignResponse) - err := c.cc.Invoke(ctx, Keystore_Sign_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_Sign_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +72,9 @@ func (c *keystoreClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc } func (c *keystoreClient) SignBatch(ctx context.Context, in *SignBatchRequest, opts ...grpc.CallOption) (*SignBatchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignBatchResponse) - err := c.cc.Invoke(ctx, Keystore_SignBatch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_SignBatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -80,8 +82,9 @@ func (c *keystoreClient) SignBatch(ctx context.Context, in *SignBatchRequest, op } func (c *keystoreClient) Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VerifyResponse) - err := c.cc.Invoke(ctx, Keystore_Verify_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_Verify_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -89,8 +92,9 @@ func (c *keystoreClient) Verify(ctx context.Context, in *VerifyRequest, opts ... } func (c *keystoreClient) VerifyBatch(ctx context.Context, in *VerifyBatchRequest, opts ...grpc.CallOption) (*VerifyBatchResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VerifyBatchResponse) - err := c.cc.Invoke(ctx, Keystore_VerifyBatch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_VerifyBatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -98,8 +102,9 @@ func (c *keystoreClient) VerifyBatch(ctx context.Context, in *VerifyBatchRequest } func (c *keystoreClient) ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListKeysResponse) - err := c.cc.Invoke(ctx, Keystore_ListKeys_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_ListKeys_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -107,8 +112,9 @@ func (c *keystoreClient) ListKeys(ctx context.Context, in *ListKeysRequest, opts } func (c *keystoreClient) ImportKey(ctx context.Context, in *ImportKeyRequest, opts ...grpc.CallOption) (*ImportKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ImportKeyResponse) - err := c.cc.Invoke(ctx, Keystore_ImportKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_ImportKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -116,8 +122,9 @@ func (c *keystoreClient) ImportKey(ctx context.Context, in *ImportKeyRequest, op } func (c *keystoreClient) ExportKey(ctx context.Context, in *ExportKeyRequest, opts ...grpc.CallOption) (*ExportKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ExportKeyResponse) - err := c.cc.Invoke(ctx, Keystore_ExportKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_ExportKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,8 +132,9 @@ func (c *keystoreClient) ExportKey(ctx context.Context, in *ExportKeyRequest, op } func (c *keystoreClient) CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*CreateKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateKeyResponse) - err := c.cc.Invoke(ctx, Keystore_CreateKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_CreateKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -134,8 +142,9 @@ func (c *keystoreClient) CreateKey(ctx context.Context, in *CreateKeyRequest, op } func (c *keystoreClient) DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*DeleteKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteKeyResponse) - err := c.cc.Invoke(ctx, Keystore_DeleteKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_DeleteKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -143,8 +152,9 @@ func (c *keystoreClient) DeleteKey(ctx context.Context, in *DeleteKeyRequest, op } func (c *keystoreClient) AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddTagResponse) - err := c.cc.Invoke(ctx, Keystore_AddTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_AddTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -152,8 +162,9 @@ func (c *keystoreClient) AddTag(ctx context.Context, in *AddTagRequest, opts ... } func (c *keystoreClient) RemoveTag(ctx context.Context, in *RemoveTagRequest, opts ...grpc.CallOption) (*RemoveTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveTagResponse) - err := c.cc.Invoke(ctx, Keystore_RemoveTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_RemoveTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -161,8 +172,9 @@ func (c *keystoreClient) RemoveTag(ctx context.Context, in *RemoveTagRequest, op } func (c *keystoreClient) ListTags(ctx context.Context, in *ListTagsRequest, opts ...grpc.CallOption) (*ListTagsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListTagsResponse) - err := c.cc.Invoke(ctx, Keystore_ListTags_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_ListTags_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -170,8 +182,9 @@ func (c *keystoreClient) ListTags(ctx context.Context, in *ListTagsRequest, opts } func (c *keystoreClient) RunUDF(ctx context.Context, in *RunUDFRequest, opts ...grpc.CallOption) (*RunUDFResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RunUDFResponse) - err := c.cc.Invoke(ctx, Keystore_RunUDF_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_RunUDF_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -180,7 +193,7 @@ func (c *keystoreClient) RunUDF(ctx context.Context, in *RunUDFRequest, opts ... // KeystoreServer is the server API for Keystore service. // All implementations must embed UnimplementedKeystoreServer -// for forward compatibility +// for forward compatibility. type KeystoreServer interface { Sign(context.Context, *SignRequest) (*SignResponse, error) SignBatch(context.Context, *SignBatchRequest) (*SignBatchResponse, error) @@ -198,9 +211,12 @@ type KeystoreServer interface { mustEmbedUnimplementedKeystoreServer() } -// UnimplementedKeystoreServer must be embedded to have forward compatible implementations. -type UnimplementedKeystoreServer struct { -} +// UnimplementedKeystoreServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKeystoreServer struct{} func (UnimplementedKeystoreServer) Sign(context.Context, *SignRequest) (*SignResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Sign not implemented") @@ -242,6 +258,7 @@ func (UnimplementedKeystoreServer) RunUDF(context.Context, *RunUDFRequest) (*Run return nil, status.Errorf(codes.Unimplemented, "method RunUDF not implemented") } func (UnimplementedKeystoreServer) mustEmbedUnimplementedKeystoreServer() {} +func (UnimplementedKeystoreServer) testEmbeddedByValue() {} // UnsafeKeystoreServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to KeystoreServer will @@ -251,6 +268,13 @@ type UnsafeKeystoreServer interface { } func RegisterKeystoreServer(s grpc.ServiceRegistrar, srv KeystoreServer) { + // If the following call pancis, it indicates UnimplementedKeystoreServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Keystore_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/keyvalue_store.pb.go b/pkg/loop/internal/pb/keyvalue_store.pb.go index 4763e039e..2a5f05b96 100644 --- a/pkg/loop/internal/pb/keyvalue_store.pb.go +++ b/pkg/loop/internal/pb/keyvalue_store.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: keyvalue_store.proto package pb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,21 +23,18 @@ const ( ) type StoreKeyValueRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StoreKeyValueRequest) Reset() { *x = StoreKeyValueRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keyvalue_store_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keyvalue_store_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StoreKeyValueRequest) String() string { @@ -47,7 +45,7 @@ func (*StoreKeyValueRequest) ProtoMessage() {} func (x *StoreKeyValueRequest) ProtoReflect() protoreflect.Message { mi := &file_keyvalue_store_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -77,20 +75,17 @@ func (x *StoreKeyValueRequest) GetValue() []byte { } type GetValueForKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetValueForKeyRequest) Reset() { *x = GetValueForKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keyvalue_store_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keyvalue_store_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetValueForKeyRequest) String() string { @@ -101,7 +96,7 @@ func (*GetValueForKeyRequest) ProtoMessage() {} func (x *GetValueForKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_keyvalue_store_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -124,20 +119,17 @@ func (x *GetValueForKeyRequest) GetKey() string { } type GetValueForKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetValueForKeyResponse) Reset() { *x = GetValueForKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keyvalue_store_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_keyvalue_store_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetValueForKeyResponse) String() string { @@ -148,7 +140,7 @@ func (*GetValueForKeyResponse) ProtoMessage() {} func (x *GetValueForKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_keyvalue_store_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -172,7 +164,7 @@ func (x *GetValueForKeyResponse) GetValue() []byte { var File_keyvalue_store_proto protoreflect.FileDescriptor -var file_keyvalue_store_proto_rawDesc = []byte{ +var file_keyvalue_store_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x6b, 0x65, 0x79, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, @@ -202,22 +194,22 @@ var file_keyvalue_store_proto_rawDesc = []byte{ 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_keyvalue_store_proto_rawDescOnce sync.Once - file_keyvalue_store_proto_rawDescData = file_keyvalue_store_proto_rawDesc + file_keyvalue_store_proto_rawDescData []byte ) func file_keyvalue_store_proto_rawDescGZIP() []byte { file_keyvalue_store_proto_rawDescOnce.Do(func() { - file_keyvalue_store_proto_rawDescData = protoimpl.X.CompressGZIP(file_keyvalue_store_proto_rawDescData) + file_keyvalue_store_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_keyvalue_store_proto_rawDesc), len(file_keyvalue_store_proto_rawDesc))) }) return file_keyvalue_store_proto_rawDescData } var file_keyvalue_store_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_keyvalue_store_proto_goTypes = []interface{}{ +var file_keyvalue_store_proto_goTypes = []any{ (*StoreKeyValueRequest)(nil), // 0: loop.StoreKeyValueRequest (*GetValueForKeyRequest)(nil), // 1: loop.GetValueForKeyRequest (*GetValueForKeyResponse)(nil), // 2: loop.GetValueForKeyResponse @@ -240,49 +232,11 @@ func file_keyvalue_store_proto_init() { if File_keyvalue_store_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_keyvalue_store_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StoreKeyValueRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keyvalue_store_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetValueForKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keyvalue_store_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetValueForKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_keyvalue_store_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_keyvalue_store_proto_rawDesc), len(file_keyvalue_store_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, @@ -293,7 +247,6 @@ func file_keyvalue_store_proto_init() { MessageInfos: file_keyvalue_store_proto_msgTypes, }.Build() File_keyvalue_store_proto = out.File - file_keyvalue_store_proto_rawDesc = nil file_keyvalue_store_proto_goTypes = nil file_keyvalue_store_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/keyvalue_store_grpc.pb.go b/pkg/loop/internal/pb/keyvalue_store_grpc.pb.go index 6a45e6399..39bffec0b 100644 --- a/pkg/loop/internal/pb/keyvalue_store_grpc.pb.go +++ b/pkg/loop/internal/pb/keyvalue_store_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: keyvalue_store.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( KeyValueStore_StoreKeyValue_FullMethodName = "/loop.KeyValueStore/StoreKeyValue" @@ -41,8 +41,9 @@ func NewKeyValueStoreClient(cc grpc.ClientConnInterface) KeyValueStoreClient { } func (c *keyValueStoreClient) StoreKeyValue(ctx context.Context, in *StoreKeyValueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, KeyValueStore_StoreKeyValue_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KeyValueStore_StoreKeyValue_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,8 +51,9 @@ func (c *keyValueStoreClient) StoreKeyValue(ctx context.Context, in *StoreKeyVal } func (c *keyValueStoreClient) GetValueForKey(ctx context.Context, in *GetValueForKeyRequest, opts ...grpc.CallOption) (*GetValueForKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetValueForKeyResponse) - err := c.cc.Invoke(ctx, KeyValueStore_GetValueForKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KeyValueStore_GetValueForKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,16 +62,19 @@ func (c *keyValueStoreClient) GetValueForKey(ctx context.Context, in *GetValueFo // KeyValueStoreServer is the server API for KeyValueStore service. // All implementations must embed UnimplementedKeyValueStoreServer -// for forward compatibility +// for forward compatibility. type KeyValueStoreServer interface { StoreKeyValue(context.Context, *StoreKeyValueRequest) (*emptypb.Empty, error) GetValueForKey(context.Context, *GetValueForKeyRequest) (*GetValueForKeyResponse, error) mustEmbedUnimplementedKeyValueStoreServer() } -// UnimplementedKeyValueStoreServer must be embedded to have forward compatible implementations. -type UnimplementedKeyValueStoreServer struct { -} +// UnimplementedKeyValueStoreServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKeyValueStoreServer struct{} func (UnimplementedKeyValueStoreServer) StoreKeyValue(context.Context, *StoreKeyValueRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StoreKeyValue not implemented") @@ -78,6 +83,7 @@ func (UnimplementedKeyValueStoreServer) GetValueForKey(context.Context, *GetValu return nil, status.Errorf(codes.Unimplemented, "method GetValueForKey not implemented") } func (UnimplementedKeyValueStoreServer) mustEmbedUnimplementedKeyValueStoreServer() {} +func (UnimplementedKeyValueStoreServer) testEmbeddedByValue() {} // UnsafeKeyValueStoreServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to KeyValueStoreServer will @@ -87,6 +93,13 @@ type UnsafeKeyValueStoreServer interface { } func RegisterKeyValueStoreServer(s grpc.ServiceRegistrar, srv KeyValueStoreServer) { + // If the following call pancis, it indicates UnimplementedKeyValueStoreServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&KeyValueStore_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/median.pb.go b/pkg/loop/internal/pb/median.pb.go index d98129ced..9e0770045 100644 --- a/pkg/loop/internal/pb/median.pb.go +++ b/pkg/loop/internal/pb/median.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: median.proto package pb @@ -13,6 +13,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,25 +25,22 @@ const ( // NewMedianFactoryRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewMedianFactory]. type NewMedianFactoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MedianProviderID uint32 `protobuf:"varint,1,opt,name=medianProviderID,proto3" json:"medianProviderID,omitempty"` - ContractID string `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` - DataSourceID uint32 `protobuf:"varint,3,opt,name=dataSourceID,proto3" json:"dataSourceID,omitempty"` - JuelsPerFeeCoinDataSourceID uint32 `protobuf:"varint,4,opt,name=juelsPerFeeCoinDataSourceID,proto3" json:"juelsPerFeeCoinDataSourceID,omitempty"` - ErrorLogID uint32 `protobuf:"varint,5,opt,name=errorLogID,proto3" json:"errorLogID,omitempty"` - GasPriceSubunitsDataSourceID uint32 `protobuf:"varint,6,opt,name=gasPriceSubunitsDataSourceID,proto3" json:"gasPriceSubunitsDataSourceID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MedianProviderID uint32 `protobuf:"varint,1,opt,name=medianProviderID,proto3" json:"medianProviderID,omitempty"` + ContractID string `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` + DataSourceID uint32 `protobuf:"varint,3,opt,name=dataSourceID,proto3" json:"dataSourceID,omitempty"` + JuelsPerFeeCoinDataSourceID uint32 `protobuf:"varint,4,opt,name=juelsPerFeeCoinDataSourceID,proto3" json:"juelsPerFeeCoinDataSourceID,omitempty"` + ErrorLogID uint32 `protobuf:"varint,5,opt,name=errorLogID,proto3" json:"errorLogID,omitempty"` + GasPriceSubunitsDataSourceID uint32 `protobuf:"varint,6,opt,name=gasPriceSubunitsDataSourceID,proto3" json:"gasPriceSubunitsDataSourceID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMedianFactoryRequest) Reset() { *x = NewMedianFactoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMedianFactoryRequest) String() string { @@ -53,7 +51,7 @@ func (*NewMedianFactoryRequest) ProtoMessage() {} func (x *NewMedianFactoryRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -112,20 +110,17 @@ func (x *NewMedianFactoryRequest) GetGasPriceSubunitsDataSourceID() uint32 { // NewMedianFactoryRequest has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewMedianFactory]. type NewMedianFactoryReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportingPluginFactoryID uint32 `protobuf:"varint,1,opt,name=reportingPluginFactoryID,proto3" json:"reportingPluginFactoryID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportingPluginFactoryID uint32 `protobuf:"varint,1,opt,name=reportingPluginFactoryID,proto3" json:"reportingPluginFactoryID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMedianFactoryReply) Reset() { *x = NewMedianFactoryReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMedianFactoryReply) String() string { @@ -136,7 +131,7 @@ func (*NewMedianFactoryReply) ProtoMessage() {} func (x *NewMedianFactoryReply) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -160,20 +155,17 @@ func (x *NewMedianFactoryReply) GetReportingPluginFactoryID() uint32 { // SaveErrorRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.ErrorLog.SaveErrorRequest]. type SaveErrorRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SaveErrorRequest) Reset() { *x = SaveErrorRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SaveErrorRequest) String() string { @@ -184,7 +176,7 @@ func (*SaveErrorRequest) ProtoMessage() {} func (x *SaveErrorRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -208,24 +200,21 @@ func (x *SaveErrorRequest) GetMessage() string { // ParsedAttributedObservation represents [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ParsedAttributedObservation]. type ParsedAttributedObservation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Value *BigInt `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - JulesPerFeeCoin *BigInt `protobuf:"bytes,3,opt,name=julesPerFeeCoin,proto3" json:"julesPerFeeCoin,omitempty"` - Observer uint32 `protobuf:"varint,4,opt,name=observer,proto3" json:"observer,omitempty"` // uint8 - GasPriceSubunits *BigInt `protobuf:"bytes,5,opt,name=gasPriceSubunits,proto3" json:"gasPriceSubunits,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Value *BigInt `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + JulesPerFeeCoin *BigInt `protobuf:"bytes,3,opt,name=julesPerFeeCoin,proto3" json:"julesPerFeeCoin,omitempty"` + Observer uint32 `protobuf:"varint,4,opt,name=observer,proto3" json:"observer,omitempty"` // uint8 + GasPriceSubunits *BigInt `protobuf:"bytes,5,opt,name=gasPriceSubunits,proto3" json:"gasPriceSubunits,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ParsedAttributedObservation) Reset() { *x = ParsedAttributedObservation{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ParsedAttributedObservation) String() string { @@ -236,7 +225,7 @@ func (*ParsedAttributedObservation) ProtoMessage() {} func (x *ParsedAttributedObservation) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -288,20 +277,17 @@ func (x *ParsedAttributedObservation) GetGasPriceSubunits() *BigInt { // BuildReportRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ReportCodec.BuildReport]. type BuildReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observations []*ParsedAttributedObservation `protobuf:"bytes,1,rep,name=observations,proto3" json:"observations,omitempty"` unknownFields protoimpl.UnknownFields - - Observations []*ParsedAttributedObservation `protobuf:"bytes,1,rep,name=observations,proto3" json:"observations,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportRequest) Reset() { *x = BuildReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportRequest) String() string { @@ -312,7 +298,7 @@ func (*BuildReportRequest) ProtoMessage() {} func (x *BuildReportRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -336,20 +322,17 @@ func (x *BuildReportRequest) GetObservations() []*ParsedAttributedObservation { // BuildReportReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ReportCodec.BuildReport]. type BuildReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportReply) Reset() { *x = BuildReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportReply) String() string { @@ -360,7 +343,7 @@ func (*BuildReportReply) ProtoMessage() {} func (x *BuildReportReply) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -384,20 +367,17 @@ func (x *BuildReportReply) GetReport() []byte { // MedianFromReportRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ReportCodec.MedianFromReport]. type MedianFromReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MedianFromReportRequest) Reset() { *x = MedianFromReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MedianFromReportRequest) String() string { @@ -408,7 +388,7 @@ func (*MedianFromReportRequest) ProtoMessage() {} func (x *MedianFromReportRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -432,20 +412,17 @@ func (x *MedianFromReportRequest) GetReport() []byte { // MedianFromReportReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ReportCodec.MedianFromReport]. type MedianFromReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Median *BigInt `protobuf:"bytes,1,opt,name=median,proto3" json:"median,omitempty"` unknownFields protoimpl.UnknownFields - - Median *BigInt `protobuf:"bytes,1,opt,name=median,proto3" json:"median,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MedianFromReportReply) Reset() { *x = MedianFromReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MedianFromReportReply) String() string { @@ -456,7 +433,7 @@ func (*MedianFromReportReply) ProtoMessage() {} func (x *MedianFromReportReply) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -480,20 +457,17 @@ func (x *MedianFromReportReply) GetMedian() *BigInt { // MaxReportLengthRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ReportCodec.MaxReportLength]. type MaxReportLengthRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + N int64 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` unknownFields protoimpl.UnknownFields - - N int64 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthRequest) Reset() { *x = MaxReportLengthRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthRequest) String() string { @@ -504,7 +478,7 @@ func (*MaxReportLengthRequest) ProtoMessage() {} func (x *MaxReportLengthRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -528,20 +502,17 @@ func (x *MaxReportLengthRequest) GetN() int64 { // MaxReportLengthReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ReportCodec.MaxReportLength]. type MaxReportLengthReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Max int64 `protobuf:"varint,1,opt,name=max,proto3" json:"max,omitempty"` unknownFields protoimpl.UnknownFields - - Max int64 `protobuf:"varint,1,opt,name=max,proto3" json:"max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthReply) Reset() { *x = MaxReportLengthReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthReply) String() string { @@ -552,7 +523,7 @@ func (*MaxReportLengthReply) ProtoMessage() {} func (x *MaxReportLengthReply) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -575,18 +546,16 @@ func (x *MaxReportLengthReply) GetMax() int64 { } type LatestTransmissionDetailsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestTransmissionDetailsRequest) Reset() { *x = LatestTransmissionDetailsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestTransmissionDetailsRequest) String() string { @@ -597,7 +566,7 @@ func (*LatestTransmissionDetailsRequest) ProtoMessage() {} func (x *LatestTransmissionDetailsRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -614,24 +583,21 @@ func (*LatestTransmissionDetailsRequest) Descriptor() ([]byte, []int) { // LatestTransmissionDetailsReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.MedianContract.LatestTransmissionDetails]. type LatestTransmissionDetailsReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` Round uint32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` // uint8 LatestAnswer *BigInt `protobuf:"bytes,4,opt,name=latestAnswer,proto3" json:"latestAnswer,omitempty"` LatestTimestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=latestTimestamp,proto3" json:"latestTimestamp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestTransmissionDetailsReply) Reset() { *x = LatestTransmissionDetailsReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestTransmissionDetailsReply) String() string { @@ -642,7 +608,7 @@ func (*LatestTransmissionDetailsReply) ProtoMessage() {} func (x *LatestTransmissionDetailsReply) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -694,20 +660,17 @@ func (x *LatestTransmissionDetailsReply) GetLatestTimestamp() *timestamppb.Times // LatestRoundRequestedRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.MedianContract.LatestRoundRequested]. type LatestRoundRequestedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Lookback int64 `protobuf:"varint,1,opt,name=lookback,proto3" json:"lookback,omitempty"` // milliseconds unknownFields protoimpl.UnknownFields - - Lookback int64 `protobuf:"varint,1,opt,name=lookback,proto3" json:"lookback,omitempty"` // milliseconds + sizeCache protoimpl.SizeCache } func (x *LatestRoundRequestedRequest) Reset() { *x = LatestRoundRequestedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestRoundRequestedRequest) String() string { @@ -718,7 +681,7 @@ func (*LatestRoundRequestedRequest) ProtoMessage() {} func (x *LatestRoundRequestedRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -742,22 +705,19 @@ func (x *LatestRoundRequestedRequest) GetLookback() int64 { // LatestRoundRequestedReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.MedianContract.LatestRoundRequested]. type LatestRoundRequestedReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + Round uint32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` // uint8 unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte - Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` - Round uint32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` // uint8 + sizeCache protoimpl.SizeCache } func (x *LatestRoundRequestedReply) Reset() { *x = LatestRoundRequestedReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestRoundRequestedReply) String() string { @@ -768,7 +728,7 @@ func (*LatestRoundRequestedReply) ProtoMessage() {} func (x *LatestRoundRequestedReply) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -806,21 +766,18 @@ func (x *LatestRoundRequestedReply) GetRound() uint32 { // OnchainConfig represents [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.OnchainConfig]. type OnchainConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Min *BigInt `protobuf:"bytes,1,opt,name=min,proto3" json:"min,omitempty"` + Max *BigInt `protobuf:"bytes,2,opt,name=max,proto3" json:"max,omitempty"` unknownFields protoimpl.UnknownFields - - Min *BigInt `protobuf:"bytes,1,opt,name=min,proto3" json:"min,omitempty"` - Max *BigInt `protobuf:"bytes,2,opt,name=max,proto3" json:"max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OnchainConfig) Reset() { *x = OnchainConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OnchainConfig) String() string { @@ -831,7 +788,7 @@ func (*OnchainConfig) ProtoMessage() {} func (x *OnchainConfig) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -862,20 +819,17 @@ func (x *OnchainConfig) GetMax() *BigInt { // EncodeRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.OnchainConfigCodec.Encode]. type EncodeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfig *OnchainConfig `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` unknownFields protoimpl.UnknownFields - - OnchainConfig *OnchainConfig `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeRequest) Reset() { *x = EncodeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeRequest) String() string { @@ -886,7 +840,7 @@ func (*EncodeRequest) ProtoMessage() {} func (x *EncodeRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -910,20 +864,17 @@ func (x *EncodeRequest) GetOnchainConfig() *OnchainConfig { // EncodeReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.OnchainConfigCodec.Encode]. type EncodeReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` unknownFields protoimpl.UnknownFields - - Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeReply) Reset() { *x = EncodeReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeReply) String() string { @@ -934,7 +885,7 @@ func (*EncodeReply) ProtoMessage() {} func (x *EncodeReply) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -958,20 +909,17 @@ func (x *EncodeReply) GetEncoded() []byte { // DecodeRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.OnchainConfigCodec.Decode]. type DecodeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` unknownFields protoimpl.UnknownFields - - Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeRequest) Reset() { *x = DecodeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeRequest) String() string { @@ -982,7 +930,7 @@ func (*DecodeRequest) ProtoMessage() {} func (x *DecodeRequest) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1006,20 +954,17 @@ func (x *DecodeRequest) GetEncoded() []byte { // DecodeReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.OnchainConfigCodec.Decode]. type DecodeReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfig *OnchainConfig `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` unknownFields protoimpl.UnknownFields - - OnchainConfig *OnchainConfig `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeReply) Reset() { *x = DecodeReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeReply) String() string { @@ -1030,7 +975,7 @@ func (*DecodeReply) ProtoMessage() {} func (x *DecodeReply) ProtoReflect() protoreflect.Message { mi := &file_median_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1054,7 +999,7 @@ func (x *DecodeReply) GetOnchainConfig() *OnchainConfig { var File_median_proto protoreflect.FileDescriptor -var file_median_proto_rawDesc = []byte{ +var file_median_proto_rawDesc = string([]byte{ 0x0a, 0x0c, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, @@ -1224,22 +1169,22 @@ var file_median_proto_rawDesc = []byte{ 0x74, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_median_proto_rawDescOnce sync.Once - file_median_proto_rawDescData = file_median_proto_rawDesc + file_median_proto_rawDescData []byte ) func file_median_proto_rawDescGZIP() []byte { file_median_proto_rawDescOnce.Do(func() { - file_median_proto_rawDescData = protoimpl.X.CompressGZIP(file_median_proto_rawDescData) + file_median_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_median_proto_rawDesc), len(file_median_proto_rawDesc))) }) return file_median_proto_rawDescData } var file_median_proto_msgTypes = make([]protoimpl.MessageInfo, 19) -var file_median_proto_goTypes = []interface{}{ +var file_median_proto_goTypes = []any{ (*NewMedianFactoryRequest)(nil), // 0: loop.NewMedianFactoryRequest (*NewMedianFactoryReply)(nil), // 1: loop.NewMedianFactoryReply (*SaveErrorRequest)(nil), // 2: loop.SaveErrorRequest @@ -1306,241 +1251,11 @@ func file_median_proto_init() { return } file_relayer_proto_init() - if !protoimpl.UnsafeEnabled { - file_median_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMedianFactoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMedianFactoryReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SaveErrorRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParsedAttributedObservation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MedianFromReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MedianFromReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestTransmissionDetailsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestTransmissionDetailsReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestRoundRequestedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestRoundRequestedReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OnchainConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_median_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_median_proto_rawDesc), len(file_median_proto_rawDesc)), NumEnums: 0, NumMessages: 19, NumExtensions: 0, @@ -1551,7 +1266,6 @@ func file_median_proto_init() { MessageInfos: file_median_proto_msgTypes, }.Build() File_median_proto = out.File - file_median_proto_rawDesc = nil file_median_proto_goTypes = nil file_median_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/median_datasource.pb.go b/pkg/loop/internal/pb/median_datasource.pb.go index d27d9d0b3..b77f3f6f6 100644 --- a/pkg/loop/internal/pb/median_datasource.pb.go +++ b/pkg/loop/internal/pb/median_datasource.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: median_datasource.proto package pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,20 +23,17 @@ const ( // ObserveRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.DataSource.Observe]. type ObserveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObserveRequest) Reset() { *x = ObserveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_median_datasource_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_datasource_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveRequest) String() string { @@ -46,7 +44,7 @@ func (*ObserveRequest) ProtoMessage() {} func (x *ObserveRequest) ProtoReflect() protoreflect.Message { mi := &file_median_datasource_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -70,20 +68,17 @@ func (x *ObserveRequest) GetReportTimestamp() *ReportTimestamp { // ObserveReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.DataSource.Observe]. type ObserveReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Value *BigInt `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Value *BigInt `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObserveReply) Reset() { *x = ObserveReply{} - if protoimpl.UnsafeEnabled { - mi := &file_median_datasource_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_median_datasource_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveReply) String() string { @@ -94,7 +89,7 @@ func (*ObserveReply) ProtoMessage() {} func (x *ObserveReply) ProtoReflect() protoreflect.Message { mi := &file_median_datasource_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -118,7 +113,7 @@ func (x *ObserveReply) GetValue() *BigInt { var File_median_datasource_proto protoreflect.FileDescriptor -var file_median_datasource_proto_rawDesc = []byte{ +var file_median_datasource_proto_rawDesc = string([]byte{ 0x0a, 0x17, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, @@ -140,22 +135,22 @@ var file_median_datasource_proto_rawDesc = []byte{ 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_median_datasource_proto_rawDescOnce sync.Once - file_median_datasource_proto_rawDescData = file_median_datasource_proto_rawDesc + file_median_datasource_proto_rawDescData []byte ) func file_median_datasource_proto_rawDescGZIP() []byte { file_median_datasource_proto_rawDescOnce.Do(func() { - file_median_datasource_proto_rawDescData = protoimpl.X.CompressGZIP(file_median_datasource_proto_rawDescData) + file_median_datasource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_median_datasource_proto_rawDesc), len(file_median_datasource_proto_rawDesc))) }) return file_median_datasource_proto_rawDescData } var file_median_datasource_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_median_datasource_proto_goTypes = []interface{}{ +var file_median_datasource_proto_goTypes = []any{ (*ObserveRequest)(nil), // 0: loop.ObserveRequest (*ObserveReply)(nil), // 1: loop.ObserveReply (*ReportTimestamp)(nil), // 2: loop.ReportTimestamp @@ -179,37 +174,11 @@ func file_median_datasource_proto_init() { return } file_relayer_proto_init() - if !protoimpl.UnsafeEnabled { - file_median_datasource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_median_datasource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_median_datasource_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_median_datasource_proto_rawDesc), len(file_median_datasource_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -220,7 +189,6 @@ func file_median_datasource_proto_init() { MessageInfos: file_median_datasource_proto_msgTypes, }.Build() File_median_datasource_proto = out.File - file_median_datasource_proto_rawDesc = nil file_median_datasource_proto_goTypes = nil file_median_datasource_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/median_datasource_grpc.pb.go b/pkg/loop/internal/pb/median_datasource_grpc.pb.go index bb20b57ac..8ccf14d5f 100644 --- a/pkg/loop/internal/pb/median_datasource_grpc.pb.go +++ b/pkg/loop/internal/pb/median_datasource_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: median_datasource.proto package pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataSource_Observe_FullMethodName = "/loop.DataSource/Observe" @@ -38,8 +38,9 @@ func NewDataSourceClient(cc grpc.ClientConnInterface) DataSourceClient { } func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObserveReply) - err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts // DataSourceServer is the server API for DataSource service. // All implementations must embed UnimplementedDataSourceServer -// for forward compatibility +// for forward compatibility. type DataSourceServer interface { Observe(context.Context, *ObserveRequest) (*ObserveReply, error) mustEmbedUnimplementedDataSourceServer() } -// UnimplementedDataSourceServer must be embedded to have forward compatible implementations. -type UnimplementedDataSourceServer struct { -} +// UnimplementedDataSourceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataSourceServer struct{} func (UnimplementedDataSourceServer) Observe(context.Context, *ObserveRequest) (*ObserveReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Observe not implemented") } func (UnimplementedDataSourceServer) mustEmbedUnimplementedDataSourceServer() {} +func (UnimplementedDataSourceServer) testEmbeddedByValue() {} // UnsafeDataSourceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataSourceServer will @@ -71,6 +76,13 @@ type UnsafeDataSourceServer interface { } func RegisterDataSourceServer(s grpc.ServiceRegistrar, srv DataSourceServer) { + // If the following call pancis, it indicates UnimplementedDataSourceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataSource_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/median_grpc.pb.go b/pkg/loop/internal/pb/median_grpc.pb.go index 4510e35c8..c0a9e7dac 100644 --- a/pkg/loop/internal/pb/median_grpc.pb.go +++ b/pkg/loop/internal/pb/median_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: median.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PluginMedian_NewMedianFactory_FullMethodName = "/loop.PluginMedian/NewMedianFactory" @@ -39,8 +39,9 @@ func NewPluginMedianClient(cc grpc.ClientConnInterface) PluginMedianClient { } func (c *pluginMedianClient) NewMedianFactory(ctx context.Context, in *NewMedianFactoryRequest, opts ...grpc.CallOption) (*NewMedianFactoryReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewMedianFactoryReply) - err := c.cc.Invoke(ctx, PluginMedian_NewMedianFactory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PluginMedian_NewMedianFactory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,20 +50,24 @@ func (c *pluginMedianClient) NewMedianFactory(ctx context.Context, in *NewMedian // PluginMedianServer is the server API for PluginMedian service. // All implementations must embed UnimplementedPluginMedianServer -// for forward compatibility +// for forward compatibility. type PluginMedianServer interface { NewMedianFactory(context.Context, *NewMedianFactoryRequest) (*NewMedianFactoryReply, error) mustEmbedUnimplementedPluginMedianServer() } -// UnimplementedPluginMedianServer must be embedded to have forward compatible implementations. -type UnimplementedPluginMedianServer struct { -} +// UnimplementedPluginMedianServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPluginMedianServer struct{} func (UnimplementedPluginMedianServer) NewMedianFactory(context.Context, *NewMedianFactoryRequest) (*NewMedianFactoryReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewMedianFactory not implemented") } func (UnimplementedPluginMedianServer) mustEmbedUnimplementedPluginMedianServer() {} +func (UnimplementedPluginMedianServer) testEmbeddedByValue() {} // UnsafePluginMedianServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PluginMedianServer will @@ -72,6 +77,13 @@ type UnsafePluginMedianServer interface { } func RegisterPluginMedianServer(s grpc.ServiceRegistrar, srv PluginMedianServer) { + // If the following call pancis, it indicates UnimplementedPluginMedianServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PluginMedian_ServiceDesc, srv) } @@ -129,8 +141,9 @@ func NewErrorLogClient(cc grpc.ClientConnInterface) ErrorLogClient { } func (c *errorLogClient) SaveError(ctx context.Context, in *SaveErrorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ErrorLog_SaveError_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ErrorLog_SaveError_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -139,20 +152,24 @@ func (c *errorLogClient) SaveError(ctx context.Context, in *SaveErrorRequest, op // ErrorLogServer is the server API for ErrorLog service. // All implementations must embed UnimplementedErrorLogServer -// for forward compatibility +// for forward compatibility. type ErrorLogServer interface { SaveError(context.Context, *SaveErrorRequest) (*emptypb.Empty, error) mustEmbedUnimplementedErrorLogServer() } -// UnimplementedErrorLogServer must be embedded to have forward compatible implementations. -type UnimplementedErrorLogServer struct { -} +// UnimplementedErrorLogServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedErrorLogServer struct{} func (UnimplementedErrorLogServer) SaveError(context.Context, *SaveErrorRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SaveError not implemented") } func (UnimplementedErrorLogServer) mustEmbedUnimplementedErrorLogServer() {} +func (UnimplementedErrorLogServer) testEmbeddedByValue() {} // UnsafeErrorLogServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ErrorLogServer will @@ -162,6 +179,13 @@ type UnsafeErrorLogServer interface { } func RegisterErrorLogServer(s grpc.ServiceRegistrar, srv ErrorLogServer) { + // If the following call pancis, it indicates UnimplementedErrorLogServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ErrorLog_ServiceDesc, srv) } @@ -208,6 +232,8 @@ const ( // ReportCodecClient is the client API for ReportCodec service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodec is gRPC adapter of [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ReportCodec]. type ReportCodecClient interface { BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) MedianFromReport(ctx context.Context, in *MedianFromReportRequest, opts ...grpc.CallOption) (*MedianFromReportReply, error) @@ -223,8 +249,9 @@ func NewReportCodecClient(cc grpc.ClientConnInterface) ReportCodecClient { } func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -232,8 +259,9 @@ func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequ } func (c *reportCodecClient) MedianFromReport(ctx context.Context, in *MedianFromReportRequest, opts ...grpc.CallOption) (*MedianFromReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MedianFromReportReply) - err := c.cc.Invoke(ctx, ReportCodec_MedianFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_MedianFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -241,8 +269,9 @@ func (c *reportCodecClient) MedianFromReport(ctx context.Context, in *MedianFrom } func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -251,7 +280,9 @@ func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLe // ReportCodecServer is the server API for ReportCodec service. // All implementations must embed UnimplementedReportCodecServer -// for forward compatibility +// for forward compatibility. +// +// ReportCodec is gRPC adapter of [github.com/smartcontractkit/libocr/offchainreporting2/reportingplugin/median.ReportCodec]. type ReportCodecServer interface { BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) MedianFromReport(context.Context, *MedianFromReportRequest) (*MedianFromReportReply, error) @@ -259,9 +290,12 @@ type ReportCodecServer interface { mustEmbedUnimplementedReportCodecServer() } -// UnimplementedReportCodecServer must be embedded to have forward compatible implementations. -type UnimplementedReportCodecServer struct { -} +// UnimplementedReportCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecServer struct{} func (UnimplementedReportCodecServer) BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -273,6 +307,7 @@ func (UnimplementedReportCodecServer) MaxReportLength(context.Context, *MaxRepor return nil, status.Errorf(codes.Unimplemented, "method MaxReportLength not implemented") } func (UnimplementedReportCodecServer) mustEmbedUnimplementedReportCodecServer() {} +func (UnimplementedReportCodecServer) testEmbeddedByValue() {} // UnsafeReportCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecServer will @@ -282,6 +317,13 @@ type UnsafeReportCodecServer interface { } func RegisterReportCodecServer(s grpc.ServiceRegistrar, srv ReportCodecServer) { + // If the following call pancis, it indicates UnimplementedReportCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodec_ServiceDesc, srv) } @@ -385,8 +427,9 @@ func NewMedianContractClient(cc grpc.ClientConnInterface) MedianContractClient { } func (c *medianContractClient) LatestTransmissionDetails(ctx context.Context, in *LatestTransmissionDetailsRequest, opts ...grpc.CallOption) (*LatestTransmissionDetailsReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestTransmissionDetailsReply) - err := c.cc.Invoke(ctx, MedianContract_LatestTransmissionDetails_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MedianContract_LatestTransmissionDetails_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -394,8 +437,9 @@ func (c *medianContractClient) LatestTransmissionDetails(ctx context.Context, in } func (c *medianContractClient) LatestRoundRequested(ctx context.Context, in *LatestRoundRequestedRequest, opts ...grpc.CallOption) (*LatestRoundRequestedReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestRoundRequestedReply) - err := c.cc.Invoke(ctx, MedianContract_LatestRoundRequested_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MedianContract_LatestRoundRequested_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -404,16 +448,19 @@ func (c *medianContractClient) LatestRoundRequested(ctx context.Context, in *Lat // MedianContractServer is the server API for MedianContract service. // All implementations must embed UnimplementedMedianContractServer -// for forward compatibility +// for forward compatibility. type MedianContractServer interface { LatestTransmissionDetails(context.Context, *LatestTransmissionDetailsRequest) (*LatestTransmissionDetailsReply, error) LatestRoundRequested(context.Context, *LatestRoundRequestedRequest) (*LatestRoundRequestedReply, error) mustEmbedUnimplementedMedianContractServer() } -// UnimplementedMedianContractServer must be embedded to have forward compatible implementations. -type UnimplementedMedianContractServer struct { -} +// UnimplementedMedianContractServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMedianContractServer struct{} func (UnimplementedMedianContractServer) LatestTransmissionDetails(context.Context, *LatestTransmissionDetailsRequest) (*LatestTransmissionDetailsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method LatestTransmissionDetails not implemented") @@ -422,6 +469,7 @@ func (UnimplementedMedianContractServer) LatestRoundRequested(context.Context, * return nil, status.Errorf(codes.Unimplemented, "method LatestRoundRequested not implemented") } func (UnimplementedMedianContractServer) mustEmbedUnimplementedMedianContractServer() {} +func (UnimplementedMedianContractServer) testEmbeddedByValue() {} // UnsafeMedianContractServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MedianContractServer will @@ -431,6 +479,13 @@ type UnsafeMedianContractServer interface { } func RegisterMedianContractServer(s grpc.ServiceRegistrar, srv MedianContractServer) { + // If the following call pancis, it indicates UnimplementedMedianContractServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MedianContract_ServiceDesc, srv) } @@ -512,8 +567,9 @@ func NewOnchainConfigCodecClient(cc grpc.ClientConnInterface) OnchainConfigCodec } func (c *onchainConfigCodecClient) Encode(ctx context.Context, in *EncodeRequest, opts ...grpc.CallOption) (*EncodeReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EncodeReply) - err := c.cc.Invoke(ctx, OnchainConfigCodec_Encode_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnchainConfigCodec_Encode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -521,8 +577,9 @@ func (c *onchainConfigCodecClient) Encode(ctx context.Context, in *EncodeRequest } func (c *onchainConfigCodecClient) Decode(ctx context.Context, in *DecodeRequest, opts ...grpc.CallOption) (*DecodeReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecodeReply) - err := c.cc.Invoke(ctx, OnchainConfigCodec_Decode_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnchainConfigCodec_Decode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -531,16 +588,19 @@ func (c *onchainConfigCodecClient) Decode(ctx context.Context, in *DecodeRequest // OnchainConfigCodecServer is the server API for OnchainConfigCodec service. // All implementations must embed UnimplementedOnchainConfigCodecServer -// for forward compatibility +// for forward compatibility. type OnchainConfigCodecServer interface { Encode(context.Context, *EncodeRequest) (*EncodeReply, error) Decode(context.Context, *DecodeRequest) (*DecodeReply, error) mustEmbedUnimplementedOnchainConfigCodecServer() } -// UnimplementedOnchainConfigCodecServer must be embedded to have forward compatible implementations. -type UnimplementedOnchainConfigCodecServer struct { -} +// UnimplementedOnchainConfigCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOnchainConfigCodecServer struct{} func (UnimplementedOnchainConfigCodecServer) Encode(context.Context, *EncodeRequest) (*EncodeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Encode not implemented") @@ -549,6 +609,7 @@ func (UnimplementedOnchainConfigCodecServer) Decode(context.Context, *DecodeRequ return nil, status.Errorf(codes.Unimplemented, "method Decode not implemented") } func (UnimplementedOnchainConfigCodecServer) mustEmbedUnimplementedOnchainConfigCodecServer() {} +func (UnimplementedOnchainConfigCodecServer) testEmbeddedByValue() {} // UnsafeOnchainConfigCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OnchainConfigCodecServer will @@ -558,6 +619,13 @@ type UnsafeOnchainConfigCodecServer interface { } func RegisterOnchainConfigCodecServer(s grpc.ServiceRegistrar, srv OnchainConfigCodecServer) { + // If the following call pancis, it indicates UnimplementedOnchainConfigCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OnchainConfigCodec_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/mercury_loop.pb.go b/pkg/loop/internal/pb/mercury/mercury_loop.pb.go index 26a26dfed..4007c3835 100644 --- a/pkg/loop/internal/pb/mercury/mercury_loop.pb.go +++ b/pkg/loop/internal/pb/mercury/mercury_loop.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: mercury_loop.proto // note: the generate.go file in this dir specifies the import path of the relative proto files @@ -18,6 +18,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -29,21 +30,18 @@ const ( // NewMercuryV4FactoryRequest is a grpc wrapper for the input to [github.com/smartcontractkit/chainlink-data-streams/mercury/v4/NewFactory]. type NewMercuryV4FactoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryProviderID uint32 `protobuf:"varint,1,opt,name=mercuryProviderID,proto3" json:"mercuryProviderID,omitempty"` - DataSourceV4ID uint32 `protobuf:"varint,2,opt,name=dataSourceV4ID,proto3" json:"dataSourceV4ID,omitempty"` // id of the data source server for this factory instance + state protoimpl.MessageState `protogen:"open.v1"` + MercuryProviderID uint32 `protobuf:"varint,1,opt,name=mercuryProviderID,proto3" json:"mercuryProviderID,omitempty"` + DataSourceV4ID uint32 `protobuf:"varint,2,opt,name=dataSourceV4ID,proto3" json:"dataSourceV4ID,omitempty"` // id of the data source server for this factory instance + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryV4FactoryRequest) Reset() { *x = NewMercuryV4FactoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryV4FactoryRequest) String() string { @@ -54,7 +52,7 @@ func (*NewMercuryV4FactoryRequest) ProtoMessage() {} func (x *NewMercuryV4FactoryRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -85,20 +83,17 @@ func (x *NewMercuryV4FactoryRequest) GetDataSourceV4ID() uint32 { // NewMercuryV4FactoryReply tracks the factory identifier used for brokering connecitons. type NewMercuryV4FactoryReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryV4FactoryID uint32 `protobuf:"varint,1,opt,name=mercuryV4FactoryID,proto3" json:"mercuryV4FactoryID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MercuryV4FactoryID uint32 `protobuf:"varint,1,opt,name=mercuryV4FactoryID,proto3" json:"mercuryV4FactoryID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryV4FactoryReply) Reset() { *x = NewMercuryV4FactoryReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryV4FactoryReply) String() string { @@ -109,7 +104,7 @@ func (*NewMercuryV4FactoryReply) ProtoMessage() {} func (x *NewMercuryV4FactoryReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -133,21 +128,18 @@ func (x *NewMercuryV4FactoryReply) GetMercuryV4FactoryID() uint32 { // NewMercuryV3FactoryRequest is a grpc wrapper for the input to [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/NewFactory]. type NewMercuryV3FactoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryProviderID uint32 `protobuf:"varint,1,opt,name=mercuryProviderID,proto3" json:"mercuryProviderID,omitempty"` - DataSourceV3ID uint32 `protobuf:"varint,2,opt,name=dataSourceV3ID,proto3" json:"dataSourceV3ID,omitempty"` // id of the data source server for this factory instance + state protoimpl.MessageState `protogen:"open.v1"` + MercuryProviderID uint32 `protobuf:"varint,1,opt,name=mercuryProviderID,proto3" json:"mercuryProviderID,omitempty"` + DataSourceV3ID uint32 `protobuf:"varint,2,opt,name=dataSourceV3ID,proto3" json:"dataSourceV3ID,omitempty"` // id of the data source server for this factory instance + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryV3FactoryRequest) Reset() { *x = NewMercuryV3FactoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryV3FactoryRequest) String() string { @@ -158,7 +150,7 @@ func (*NewMercuryV3FactoryRequest) ProtoMessage() {} func (x *NewMercuryV3FactoryRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -189,20 +181,17 @@ func (x *NewMercuryV3FactoryRequest) GetDataSourceV3ID() uint32 { // NewMercuryV3FactoryReply tracks the factory identifier used for brokering connecitons. type NewMercuryV3FactoryReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryV3FactoryID uint32 `protobuf:"varint,1,opt,name=mercuryV3FactoryID,proto3" json:"mercuryV3FactoryID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MercuryV3FactoryID uint32 `protobuf:"varint,1,opt,name=mercuryV3FactoryID,proto3" json:"mercuryV3FactoryID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryV3FactoryReply) Reset() { *x = NewMercuryV3FactoryReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryV3FactoryReply) String() string { @@ -213,7 +202,7 @@ func (*NewMercuryV3FactoryReply) ProtoMessage() {} func (x *NewMercuryV3FactoryReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -237,21 +226,18 @@ func (x *NewMercuryV3FactoryReply) GetMercuryV3FactoryID() uint32 { // NewMercuryV1FactoryRequest is a grpc wrapper for the input to [github.com/smartcontractkit/chainlink-data-streams/mercury/v1/NewFactory]. type NewMercuryV1FactoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryProviderID uint32 `protobuf:"varint,1,opt,name=mercuryProviderID,proto3" json:"mercuryProviderID,omitempty"` - DataSourceV1ID uint32 `protobuf:"varint,2,opt,name=dataSourceV1ID,proto3" json:"dataSourceV1ID,omitempty"` // id of the data source server for this factory instance + state protoimpl.MessageState `protogen:"open.v1"` + MercuryProviderID uint32 `protobuf:"varint,1,opt,name=mercuryProviderID,proto3" json:"mercuryProviderID,omitempty"` + DataSourceV1ID uint32 `protobuf:"varint,2,opt,name=dataSourceV1ID,proto3" json:"dataSourceV1ID,omitempty"` // id of the data source server for this factory instance + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryV1FactoryRequest) Reset() { *x = NewMercuryV1FactoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryV1FactoryRequest) String() string { @@ -262,7 +248,7 @@ func (*NewMercuryV1FactoryRequest) ProtoMessage() {} func (x *NewMercuryV1FactoryRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -293,20 +279,17 @@ func (x *NewMercuryV1FactoryRequest) GetDataSourceV1ID() uint32 { // NewMercuryV1FactoryReply tracks the factory identifier used for brokering connecitons. type NewMercuryV1FactoryReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryV1FactoryID uint32 `protobuf:"varint,1,opt,name=mercuryV1FactoryID,proto3" json:"mercuryV1FactoryID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MercuryV1FactoryID uint32 `protobuf:"varint,1,opt,name=mercuryV1FactoryID,proto3" json:"mercuryV1FactoryID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryV1FactoryReply) Reset() { *x = NewMercuryV1FactoryReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryV1FactoryReply) String() string { @@ -317,7 +300,7 @@ func (*NewMercuryV1FactoryReply) ProtoMessage() {} func (x *NewMercuryV1FactoryReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -341,21 +324,18 @@ func (x *NewMercuryV1FactoryReply) GetMercuryV1FactoryID() uint32 { // NewMercuryV2FactoryRequest is a grpc wrapper for the input to [github.com/smartcontractkit/chainlink-data-streams/mercury/v2/NewFactory]. type NewMercuryV2FactoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryProviderID uint32 `protobuf:"varint,1,opt,name=mercuryProviderID,proto3" json:"mercuryProviderID,omitempty"` - DataSourceV2ID uint32 `protobuf:"varint,2,opt,name=dataSourceV2ID,proto3" json:"dataSourceV2ID,omitempty"` // id of the data source server for this factory instance + state protoimpl.MessageState `protogen:"open.v1"` + MercuryProviderID uint32 `protobuf:"varint,1,opt,name=mercuryProviderID,proto3" json:"mercuryProviderID,omitempty"` + DataSourceV2ID uint32 `protobuf:"varint,2,opt,name=dataSourceV2ID,proto3" json:"dataSourceV2ID,omitempty"` // id of the data source server for this factory instance + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryV2FactoryRequest) Reset() { *x = NewMercuryV2FactoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryV2FactoryRequest) String() string { @@ -366,7 +346,7 @@ func (*NewMercuryV2FactoryRequest) ProtoMessage() {} func (x *NewMercuryV2FactoryRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -397,20 +377,17 @@ func (x *NewMercuryV2FactoryRequest) GetDataSourceV2ID() uint32 { // NewMercuryV2FactoryReply tracks the factory identifier used for brokering connecitons. type NewMercuryV2FactoryReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryV2FactoryID uint32 `protobuf:"varint,1,opt,name=mercuryV2FactoryID,proto3" json:"mercuryV2FactoryID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MercuryV2FactoryID uint32 `protobuf:"varint,1,opt,name=mercuryV2FactoryID,proto3" json:"mercuryV2FactoryID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryV2FactoryReply) Reset() { *x = NewMercuryV2FactoryReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryV2FactoryReply) String() string { @@ -421,7 +398,7 @@ func (*NewMercuryV2FactoryReply) ProtoMessage() {} func (x *NewMercuryV2FactoryReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -445,21 +422,18 @@ func (x *NewMercuryV2FactoryReply) GetMercuryV2FactoryID() uint32 { // OnchainConfig is a gRPC adapter for the OnchainConfig struct [pkg/types/mercury/OnchainConfig]. type OnchainConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Min *pb.BigInt `protobuf:"bytes,1,opt,name=min,proto3" json:"min,omitempty"` + Max *pb.BigInt `protobuf:"bytes,2,opt,name=max,proto3" json:"max,omitempty"` unknownFields protoimpl.UnknownFields - - Min *pb.BigInt `protobuf:"bytes,1,opt,name=min,proto3" json:"min,omitempty"` - Max *pb.BigInt `protobuf:"bytes,2,opt,name=max,proto3" json:"max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OnchainConfig) Reset() { *x = OnchainConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OnchainConfig) String() string { @@ -470,7 +444,7 @@ func (*OnchainConfig) ProtoMessage() {} func (x *OnchainConfig) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -501,20 +475,17 @@ func (x *OnchainConfig) GetMax() *pb.BigInt { // EncodeOnchainConfigRequest is gRPC adapter for the inputs arguments of [pkg/types/mercury/OnchainConfig.Encode]. type EncodeOnchainConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfig *OnchainConfig `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` unknownFields protoimpl.UnknownFields - - OnchainConfig *OnchainConfig `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeOnchainConfigRequest) Reset() { *x = EncodeOnchainConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeOnchainConfigRequest) String() string { @@ -525,7 +496,7 @@ func (*EncodeOnchainConfigRequest) ProtoMessage() {} func (x *EncodeOnchainConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -549,20 +520,17 @@ func (x *EncodeOnchainConfigRequest) GetOnchainConfig() *OnchainConfig { // EncodeOnchainConfigReply is gRPC adapter for the return values of [pkg/types/mercury/OnchainConfig.Encode]. type EncodeOnchainConfigReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfig []byte `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` unknownFields protoimpl.UnknownFields - - OnchainConfig []byte `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EncodeOnchainConfigReply) Reset() { *x = EncodeOnchainConfigReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncodeOnchainConfigReply) String() string { @@ -573,7 +541,7 @@ func (*EncodeOnchainConfigReply) ProtoMessage() {} func (x *EncodeOnchainConfigReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -597,20 +565,17 @@ func (x *EncodeOnchainConfigReply) GetOnchainConfig() []byte { // DecodeOnchainConfigRequest is gRPC adapter for the inputs arguments of [pkg/types/mercury/OnchainConfig.Decode]. type DecodeOnchainConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfig []byte `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` unknownFields protoimpl.UnknownFields - - OnchainConfig []byte `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeOnchainConfigRequest) Reset() { *x = DecodeOnchainConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeOnchainConfigRequest) String() string { @@ -621,7 +586,7 @@ func (*DecodeOnchainConfigRequest) ProtoMessage() {} func (x *DecodeOnchainConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -645,20 +610,17 @@ func (x *DecodeOnchainConfigRequest) GetOnchainConfig() []byte { // DecodeOnchainConfigReply has is gRPC adapter for the return values of [pkg/types/mercury/OnchainConfig.Decode]. type DecodeOnchainConfigReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OnchainConfig *OnchainConfig `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` unknownFields protoimpl.UnknownFields - - OnchainConfig *OnchainConfig `protobuf:"bytes,1,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DecodeOnchainConfigReply) Reset() { *x = DecodeOnchainConfigReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecodeOnchainConfigReply) String() string { @@ -669,7 +631,7 @@ func (*DecodeOnchainConfigReply) ProtoMessage() {} func (x *DecodeOnchainConfigReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -693,18 +655,16 @@ func (x *DecodeOnchainConfigReply) GetOnchainConfig() *OnchainConfig { // FetchInitialMaxFinalizedBlockNumberRequest is gRPC adapter for [pkg/types/mercury/ServerFetcher.FetchInitialMaxFinalizedBlockNumber]. type FetchInitialMaxFinalizedBlockNumberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FetchInitialMaxFinalizedBlockNumberRequest) Reset() { *x = FetchInitialMaxFinalizedBlockNumberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FetchInitialMaxFinalizedBlockNumberRequest) String() string { @@ -715,7 +675,7 @@ func (*FetchInitialMaxFinalizedBlockNumberRequest) ProtoMessage() {} func (x *FetchInitialMaxFinalizedBlockNumberRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -732,20 +692,17 @@ func (*FetchInitialMaxFinalizedBlockNumberRequest) Descriptor() ([]byte, []int) // FetchInitialMaxFinalizedBlockNumberReply is gRPC adapter for [pkg/types/mercury/ServerFetcher.FetchInitialMaxFinalizedBlockNumber]. type FetchInitialMaxFinalizedBlockNumberReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InitialMaxFinalizedBlockNumber int64 `protobuf:"varint,1,opt,name=initialMaxFinalizedBlockNumber,proto3" json:"initialMaxFinalizedBlockNumber,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + InitialMaxFinalizedBlockNumber int64 `protobuf:"varint,1,opt,name=initialMaxFinalizedBlockNumber,proto3" json:"initialMaxFinalizedBlockNumber,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FetchInitialMaxFinalizedBlockNumberReply) Reset() { *x = FetchInitialMaxFinalizedBlockNumberReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FetchInitialMaxFinalizedBlockNumberReply) String() string { @@ -756,7 +713,7 @@ func (*FetchInitialMaxFinalizedBlockNumberReply) ProtoMessage() {} func (x *FetchInitialMaxFinalizedBlockNumberReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -780,20 +737,17 @@ func (x *FetchInitialMaxFinalizedBlockNumberReply) GetInitialMaxFinalizedBlockNu // LatestPriceRequest is gRPC adapter for [pkg/types/mercury/ServerFetcher.LatestPrice]. type LatestPriceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FeedID []byte `protobuf:"bytes,1,opt,name=feedID,proto3" json:"feedID,omitempty"` // WARNING: this must be [32]byte in ServerFetcher interface unknownFields protoimpl.UnknownFields - - FeedID []byte `protobuf:"bytes,1,opt,name=feedID,proto3" json:"feedID,omitempty"` // WARNING: this must be [32]byte in ServerFetcher interface + sizeCache protoimpl.SizeCache } func (x *LatestPriceRequest) Reset() { *x = LatestPriceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestPriceRequest) String() string { @@ -804,7 +758,7 @@ func (*LatestPriceRequest) ProtoMessage() {} func (x *LatestPriceRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -828,20 +782,17 @@ func (x *LatestPriceRequest) GetFeedID() []byte { // LatestPriceReply is gRPC adapter for [pkg/types/mercury/ServerFetcher.LatestPrice]. type LatestPriceReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LatestPrice *pb.BigInt `protobuf:"bytes,1,opt,name=latestPrice,proto3" json:"latestPrice,omitempty"` unknownFields protoimpl.UnknownFields - - LatestPrice *pb.BigInt `protobuf:"bytes,1,opt,name=latestPrice,proto3" json:"latestPrice,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LatestPriceReply) Reset() { *x = LatestPriceReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestPriceReply) String() string { @@ -852,7 +803,7 @@ func (*LatestPriceReply) ProtoMessage() {} func (x *LatestPriceReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -876,18 +827,16 @@ func (x *LatestPriceReply) GetLatestPrice() *pb.BigInt { // LatestTimestampRequest is gRPC adapter for [pkg/types/mercury/ServerFetcher.LatestTimestamp]. type LatestTimestampRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestTimestampRequest) Reset() { *x = LatestTimestampRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestTimestampRequest) String() string { @@ -898,7 +847,7 @@ func (*LatestTimestampRequest) ProtoMessage() {} func (x *LatestTimestampRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -915,20 +864,17 @@ func (*LatestTimestampRequest) Descriptor() ([]byte, []int) { // LatestTimestampReply is gRPC adapter for [pkg/types/mercury/ServerFetcher.LatestTimestamp]. type LatestTimestampReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LatestTimestamp int64 `protobuf:"varint,1,opt,name=latestTimestamp,proto3" json:"latestTimestamp,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + LatestTimestamp int64 `protobuf:"varint,1,opt,name=latestTimestamp,proto3" json:"latestTimestamp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestTimestampReply) Reset() { *x = LatestTimestampReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestTimestampReply) String() string { @@ -939,7 +885,7 @@ func (*LatestTimestampReply) ProtoMessage() {} func (x *LatestTimestampReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -963,22 +909,19 @@ func (x *LatestTimestampReply) GetLatestTimestamp() int64 { // Head is gRPC adapter for the Head struct [pkg/types/mercury/MercuryChainReader]. type Head struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Head) Reset() { *x = Head{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Head) String() string { @@ -989,7 +932,7 @@ func (*Head) ProtoMessage() {} func (x *Head) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1027,20 +970,17 @@ func (x *Head) GetTimestamp() uint64 { // LatestHeadsRequest is gRPC adapter for input arguments to [pkg/types/mercury/MercuryChainReader.LatestHeads]. type LatestHeadsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NumHeads int64 `protobuf:"varint,1,opt,name=numHeads,proto3" json:"numHeads,omitempty"` unknownFields protoimpl.UnknownFields - - NumHeads int64 `protobuf:"varint,1,opt,name=numHeads,proto3" json:"numHeads,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LatestHeadsRequest) Reset() { *x = LatestHeadsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestHeadsRequest) String() string { @@ -1051,7 +991,7 @@ func (*LatestHeadsRequest) ProtoMessage() {} func (x *LatestHeadsRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1075,20 +1015,17 @@ func (x *LatestHeadsRequest) GetNumHeads() int64 { // LatestHeadsReply is gRPC adapter for return arguments to [pkg/types/mercury/MercuryChainReader.LatestHeads]. type LatestHeadsReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Heads []*Head `protobuf:"bytes,1,rep,name=heads,proto3" json:"heads,omitempty"` unknownFields protoimpl.UnknownFields - - Heads []*Head `protobuf:"bytes,1,rep,name=heads,proto3" json:"heads,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LatestHeadsReply) Reset() { *x = LatestHeadsReply{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_loop_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_loop_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestHeadsReply) String() string { @@ -1099,7 +1036,7 @@ func (*LatestHeadsReply) ProtoMessage() {} func (x *LatestHeadsReply) ProtoReflect() protoreflect.Message { mi := &file_mercury_loop_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1123,7 +1060,7 @@ func (x *LatestHeadsReply) GetHeads() []*Head { var File_mercury_loop_proto protoreflect.FileDescriptor -var file_mercury_loop_proto_rawDesc = []byte{ +var file_mercury_loop_proto_rawDesc = string([]byte{ 0x0a, 0x12, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x5f, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x1a, 0x0d, @@ -1442,22 +1379,22 @@ var file_mercury_loop_proto_rawDesc = []byte{ 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_mercury_loop_proto_rawDescOnce sync.Once - file_mercury_loop_proto_rawDescData = file_mercury_loop_proto_rawDesc + file_mercury_loop_proto_rawDescData []byte ) func file_mercury_loop_proto_rawDescGZIP() []byte { file_mercury_loop_proto_rawDescOnce.Do(func() { - file_mercury_loop_proto_rawDescData = protoimpl.X.CompressGZIP(file_mercury_loop_proto_rawDescData) + file_mercury_loop_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mercury_loop_proto_rawDesc), len(file_mercury_loop_proto_rawDesc))) }) return file_mercury_loop_proto_rawDescData } var file_mercury_loop_proto_msgTypes = make([]protoimpl.MessageInfo, 22) -var file_mercury_loop_proto_goTypes = []interface{}{ +var file_mercury_loop_proto_goTypes = []any{ (*NewMercuryV4FactoryRequest)(nil), // 0: loop.internal.pb.mercury.NewMercuryV4FactoryRequest (*NewMercuryV4FactoryReply)(nil), // 1: loop.internal.pb.mercury.NewMercuryV4FactoryReply (*NewMercuryV3FactoryRequest)(nil), // 2: loop.internal.pb.mercury.NewMercuryV3FactoryRequest @@ -1569,277 +1506,11 @@ func file_mercury_loop_proto_init() { if File_mercury_loop_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_mercury_loop_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryV4FactoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryV4FactoryReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryV3FactoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryV3FactoryReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryV1FactoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryV1FactoryReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryV2FactoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryV2FactoryReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OnchainConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeOnchainConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncodeOnchainConfigReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeOnchainConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecodeOnchainConfigReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchInitialMaxFinalizedBlockNumberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchInitialMaxFinalizedBlockNumberReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestPriceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestPriceReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestTimestampRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestTimestampReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Head); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestHeadsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_loop_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestHeadsReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mercury_loop_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_mercury_loop_proto_rawDesc), len(file_mercury_loop_proto_rawDesc)), NumEnums: 0, NumMessages: 22, NumExtensions: 0, @@ -1850,7 +1521,6 @@ func file_mercury_loop_proto_init() { MessageInfos: file_mercury_loop_proto_msgTypes, }.Build() File_mercury_loop_proto = out.File - file_mercury_loop_proto_rawDesc = nil file_mercury_loop_proto_goTypes = nil file_mercury_loop_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/mercury_loop_grpc.pb.go b/pkg/loop/internal/pb/mercury/mercury_loop_grpc.pb.go index fb5fb387e..fbe96e14c 100644 --- a/pkg/loop/internal/pb/mercury/mercury_loop_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/mercury_loop_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: mercury_loop.proto // note: the generate.go file in this dir specifies the import path of the relative proto files @@ -21,8 +21,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MercuryAdapter_NewMercuryV1Factory_FullMethodName = "/loop.internal.pb.mercury.MercuryAdapter/NewMercuryV1Factory" @@ -50,8 +50,9 @@ func NewMercuryAdapterClient(cc grpc.ClientConnInterface) MercuryAdapterClient { } func (c *mercuryAdapterClient) NewMercuryV1Factory(ctx context.Context, in *NewMercuryV1FactoryRequest, opts ...grpc.CallOption) (*NewMercuryV1FactoryReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewMercuryV1FactoryReply) - err := c.cc.Invoke(ctx, MercuryAdapter_NewMercuryV1Factory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryAdapter_NewMercuryV1Factory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *mercuryAdapterClient) NewMercuryV1Factory(ctx context.Context, in *NewM } func (c *mercuryAdapterClient) NewMercuryV2Factory(ctx context.Context, in *NewMercuryV2FactoryRequest, opts ...grpc.CallOption) (*NewMercuryV2FactoryReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewMercuryV2FactoryReply) - err := c.cc.Invoke(ctx, MercuryAdapter_NewMercuryV2Factory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryAdapter_NewMercuryV2Factory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *mercuryAdapterClient) NewMercuryV2Factory(ctx context.Context, in *NewM } func (c *mercuryAdapterClient) NewMercuryV3Factory(ctx context.Context, in *NewMercuryV3FactoryRequest, opts ...grpc.CallOption) (*NewMercuryV3FactoryReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewMercuryV3FactoryReply) - err := c.cc.Invoke(ctx, MercuryAdapter_NewMercuryV3Factory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryAdapter_NewMercuryV3Factory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *mercuryAdapterClient) NewMercuryV3Factory(ctx context.Context, in *NewM } func (c *mercuryAdapterClient) NewMercuryV4Factory(ctx context.Context, in *NewMercuryV4FactoryRequest, opts ...grpc.CallOption) (*NewMercuryV4FactoryReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewMercuryV4FactoryReply) - err := c.cc.Invoke(ctx, MercuryAdapter_NewMercuryV4Factory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryAdapter_NewMercuryV4Factory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -87,7 +91,7 @@ func (c *mercuryAdapterClient) NewMercuryV4Factory(ctx context.Context, in *NewM // MercuryAdapterServer is the server API for MercuryAdapter service. // All implementations must embed UnimplementedMercuryAdapterServer -// for forward compatibility +// for forward compatibility. type MercuryAdapterServer interface { NewMercuryV1Factory(context.Context, *NewMercuryV1FactoryRequest) (*NewMercuryV1FactoryReply, error) NewMercuryV2Factory(context.Context, *NewMercuryV2FactoryRequest) (*NewMercuryV2FactoryReply, error) @@ -96,9 +100,12 @@ type MercuryAdapterServer interface { mustEmbedUnimplementedMercuryAdapterServer() } -// UnimplementedMercuryAdapterServer must be embedded to have forward compatible implementations. -type UnimplementedMercuryAdapterServer struct { -} +// UnimplementedMercuryAdapterServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMercuryAdapterServer struct{} func (UnimplementedMercuryAdapterServer) NewMercuryV1Factory(context.Context, *NewMercuryV1FactoryRequest) (*NewMercuryV1FactoryReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewMercuryV1Factory not implemented") @@ -113,6 +120,7 @@ func (UnimplementedMercuryAdapterServer) NewMercuryV4Factory(context.Context, *N return nil, status.Errorf(codes.Unimplemented, "method NewMercuryV4Factory not implemented") } func (UnimplementedMercuryAdapterServer) mustEmbedUnimplementedMercuryAdapterServer() {} +func (UnimplementedMercuryAdapterServer) testEmbeddedByValue() {} // UnsafeMercuryAdapterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MercuryAdapterServer will @@ -122,6 +130,13 @@ type UnsafeMercuryAdapterServer interface { } func RegisterMercuryAdapterServer(s grpc.ServiceRegistrar, srv MercuryAdapterServer) { + // If the following call pancis, it indicates UnimplementedMercuryAdapterServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MercuryAdapter_ServiceDesc, srv) } @@ -233,6 +248,8 @@ const ( // OnchainConfigCodecClient is the client API for OnchainConfigCodec service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// OnchainConfigCodec is a gRPC adapter for the OnchainConfigCodec interface [pkg/types/mercury/v3/OnchainConfigCodec]. type OnchainConfigCodecClient interface { Encode(ctx context.Context, in *EncodeOnchainConfigRequest, opts ...grpc.CallOption) (*EncodeOnchainConfigReply, error) Decode(ctx context.Context, in *DecodeOnchainConfigRequest, opts ...grpc.CallOption) (*DecodeOnchainConfigReply, error) @@ -247,8 +264,9 @@ func NewOnchainConfigCodecClient(cc grpc.ClientConnInterface) OnchainConfigCodec } func (c *onchainConfigCodecClient) Encode(ctx context.Context, in *EncodeOnchainConfigRequest, opts ...grpc.CallOption) (*EncodeOnchainConfigReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EncodeOnchainConfigReply) - err := c.cc.Invoke(ctx, OnchainConfigCodec_Encode_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnchainConfigCodec_Encode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -256,8 +274,9 @@ func (c *onchainConfigCodecClient) Encode(ctx context.Context, in *EncodeOnchain } func (c *onchainConfigCodecClient) Decode(ctx context.Context, in *DecodeOnchainConfigRequest, opts ...grpc.CallOption) (*DecodeOnchainConfigReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecodeOnchainConfigReply) - err := c.cc.Invoke(ctx, OnchainConfigCodec_Decode_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OnchainConfigCodec_Decode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -266,16 +285,21 @@ func (c *onchainConfigCodecClient) Decode(ctx context.Context, in *DecodeOnchain // OnchainConfigCodecServer is the server API for OnchainConfigCodec service. // All implementations must embed UnimplementedOnchainConfigCodecServer -// for forward compatibility +// for forward compatibility. +// +// OnchainConfigCodec is a gRPC adapter for the OnchainConfigCodec interface [pkg/types/mercury/v3/OnchainConfigCodec]. type OnchainConfigCodecServer interface { Encode(context.Context, *EncodeOnchainConfigRequest) (*EncodeOnchainConfigReply, error) Decode(context.Context, *DecodeOnchainConfigRequest) (*DecodeOnchainConfigReply, error) mustEmbedUnimplementedOnchainConfigCodecServer() } -// UnimplementedOnchainConfigCodecServer must be embedded to have forward compatible implementations. -type UnimplementedOnchainConfigCodecServer struct { -} +// UnimplementedOnchainConfigCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOnchainConfigCodecServer struct{} func (UnimplementedOnchainConfigCodecServer) Encode(context.Context, *EncodeOnchainConfigRequest) (*EncodeOnchainConfigReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Encode not implemented") @@ -284,6 +308,7 @@ func (UnimplementedOnchainConfigCodecServer) Decode(context.Context, *DecodeOnch return nil, status.Errorf(codes.Unimplemented, "method Decode not implemented") } func (UnimplementedOnchainConfigCodecServer) mustEmbedUnimplementedOnchainConfigCodecServer() {} +func (UnimplementedOnchainConfigCodecServer) testEmbeddedByValue() {} // UnsafeOnchainConfigCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OnchainConfigCodecServer will @@ -293,6 +318,13 @@ type UnsafeOnchainConfigCodecServer interface { } func RegisterOnchainConfigCodecServer(s grpc.ServiceRegistrar, srv OnchainConfigCodecServer) { + // If the following call pancis, it indicates UnimplementedOnchainConfigCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OnchainConfigCodec_ServiceDesc, srv) } @@ -361,6 +393,8 @@ const ( // ReportCodecV4Client is the client API for ReportCodecV4 service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v4/ReportCodec]. type ReportCodecV4Client interface { BuildReport(ctx context.Context, in *v4.BuildReportRequest, opts ...grpc.CallOption) (*v4.BuildReportReply, error) MaxReportLength(ctx context.Context, in *v4.MaxReportLengthRequest, opts ...grpc.CallOption) (*v4.MaxReportLengthReply, error) @@ -376,8 +410,9 @@ func NewReportCodecV4Client(cc grpc.ClientConnInterface) ReportCodecV4Client { } func (c *reportCodecV4Client) BuildReport(ctx context.Context, in *v4.BuildReportRequest, opts ...grpc.CallOption) (*v4.BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v4.BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodecV4_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV4_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -385,8 +420,9 @@ func (c *reportCodecV4Client) BuildReport(ctx context.Context, in *v4.BuildRepor } func (c *reportCodecV4Client) MaxReportLength(ctx context.Context, in *v4.MaxReportLengthRequest, opts ...grpc.CallOption) (*v4.MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v4.MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodecV4_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV4_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -394,8 +430,9 @@ func (c *reportCodecV4Client) MaxReportLength(ctx context.Context, in *v4.MaxRep } func (c *reportCodecV4Client) ObservationTimestampFromReport(ctx context.Context, in *v4.ObservationTimestampFromReportRequest, opts ...grpc.CallOption) (*v4.ObservationTimestampFromReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v4.ObservationTimestampFromReportReply) - err := c.cc.Invoke(ctx, ReportCodecV4_ObservationTimestampFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV4_ObservationTimestampFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -404,7 +441,9 @@ func (c *reportCodecV4Client) ObservationTimestampFromReport(ctx context.Context // ReportCodecV4Server is the server API for ReportCodecV4 service. // All implementations must embed UnimplementedReportCodecV4Server -// for forward compatibility +// for forward compatibility. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v4/ReportCodec]. type ReportCodecV4Server interface { BuildReport(context.Context, *v4.BuildReportRequest) (*v4.BuildReportReply, error) MaxReportLength(context.Context, *v4.MaxReportLengthRequest) (*v4.MaxReportLengthReply, error) @@ -412,9 +451,12 @@ type ReportCodecV4Server interface { mustEmbedUnimplementedReportCodecV4Server() } -// UnimplementedReportCodecV4Server must be embedded to have forward compatible implementations. -type UnimplementedReportCodecV4Server struct { -} +// UnimplementedReportCodecV4Server must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecV4Server struct{} func (UnimplementedReportCodecV4Server) BuildReport(context.Context, *v4.BuildReportRequest) (*v4.BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -426,6 +468,7 @@ func (UnimplementedReportCodecV4Server) ObservationTimestampFromReport(context.C return nil, status.Errorf(codes.Unimplemented, "method ObservationTimestampFromReport not implemented") } func (UnimplementedReportCodecV4Server) mustEmbedUnimplementedReportCodecV4Server() {} +func (UnimplementedReportCodecV4Server) testEmbeddedByValue() {} // UnsafeReportCodecV4Server may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecV4Server will @@ -435,6 +478,13 @@ type UnsafeReportCodecV4Server interface { } func RegisterReportCodecV4Server(s grpc.ServiceRegistrar, srv ReportCodecV4Server) { + // If the following call pancis, it indicates UnimplementedReportCodecV4Server was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodecV4_ServiceDesc, srv) } @@ -525,6 +575,8 @@ const ( // ReportCodecV3Client is the client API for ReportCodecV3 service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v3/ReportCodec]. type ReportCodecV3Client interface { BuildReport(ctx context.Context, in *v3.BuildReportRequest, opts ...grpc.CallOption) (*v3.BuildReportReply, error) MaxReportLength(ctx context.Context, in *v3.MaxReportLengthRequest, opts ...grpc.CallOption) (*v3.MaxReportLengthReply, error) @@ -540,8 +592,9 @@ func NewReportCodecV3Client(cc grpc.ClientConnInterface) ReportCodecV3Client { } func (c *reportCodecV3Client) BuildReport(ctx context.Context, in *v3.BuildReportRequest, opts ...grpc.CallOption) (*v3.BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v3.BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodecV3_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV3_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -549,8 +602,9 @@ func (c *reportCodecV3Client) BuildReport(ctx context.Context, in *v3.BuildRepor } func (c *reportCodecV3Client) MaxReportLength(ctx context.Context, in *v3.MaxReportLengthRequest, opts ...grpc.CallOption) (*v3.MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v3.MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodecV3_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV3_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -558,8 +612,9 @@ func (c *reportCodecV3Client) MaxReportLength(ctx context.Context, in *v3.MaxRep } func (c *reportCodecV3Client) ObservationTimestampFromReport(ctx context.Context, in *v3.ObservationTimestampFromReportRequest, opts ...grpc.CallOption) (*v3.ObservationTimestampFromReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v3.ObservationTimestampFromReportReply) - err := c.cc.Invoke(ctx, ReportCodecV3_ObservationTimestampFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV3_ObservationTimestampFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -568,7 +623,9 @@ func (c *reportCodecV3Client) ObservationTimestampFromReport(ctx context.Context // ReportCodecV3Server is the server API for ReportCodecV3 service. // All implementations must embed UnimplementedReportCodecV3Server -// for forward compatibility +// for forward compatibility. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v3/ReportCodec]. type ReportCodecV3Server interface { BuildReport(context.Context, *v3.BuildReportRequest) (*v3.BuildReportReply, error) MaxReportLength(context.Context, *v3.MaxReportLengthRequest) (*v3.MaxReportLengthReply, error) @@ -576,9 +633,12 @@ type ReportCodecV3Server interface { mustEmbedUnimplementedReportCodecV3Server() } -// UnimplementedReportCodecV3Server must be embedded to have forward compatible implementations. -type UnimplementedReportCodecV3Server struct { -} +// UnimplementedReportCodecV3Server must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecV3Server struct{} func (UnimplementedReportCodecV3Server) BuildReport(context.Context, *v3.BuildReportRequest) (*v3.BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -590,6 +650,7 @@ func (UnimplementedReportCodecV3Server) ObservationTimestampFromReport(context.C return nil, status.Errorf(codes.Unimplemented, "method ObservationTimestampFromReport not implemented") } func (UnimplementedReportCodecV3Server) mustEmbedUnimplementedReportCodecV3Server() {} +func (UnimplementedReportCodecV3Server) testEmbeddedByValue() {} // UnsafeReportCodecV3Server may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecV3Server will @@ -599,6 +660,13 @@ type UnsafeReportCodecV3Server interface { } func RegisterReportCodecV3Server(s grpc.ServiceRegistrar, srv ReportCodecV3Server) { + // If the following call pancis, it indicates UnimplementedReportCodecV3Server was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodecV3_ServiceDesc, srv) } @@ -689,6 +757,8 @@ const ( // ReportCodecV1Client is the client API for ReportCodecV1 service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodecV1 is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v1/ReportCodec]. type ReportCodecV1Client interface { BuildReport(ctx context.Context, in *v1.BuildReportRequest, opts ...grpc.CallOption) (*v1.BuildReportReply, error) MaxReportLength(ctx context.Context, in *v1.MaxReportLengthRequest, opts ...grpc.CallOption) (*v1.MaxReportLengthReply, error) @@ -704,8 +774,9 @@ func NewReportCodecV1Client(cc grpc.ClientConnInterface) ReportCodecV1Client { } func (c *reportCodecV1Client) BuildReport(ctx context.Context, in *v1.BuildReportRequest, opts ...grpc.CallOption) (*v1.BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v1.BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodecV1_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV1_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -713,8 +784,9 @@ func (c *reportCodecV1Client) BuildReport(ctx context.Context, in *v1.BuildRepor } func (c *reportCodecV1Client) MaxReportLength(ctx context.Context, in *v1.MaxReportLengthRequest, opts ...grpc.CallOption) (*v1.MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v1.MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodecV1_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV1_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -722,8 +794,9 @@ func (c *reportCodecV1Client) MaxReportLength(ctx context.Context, in *v1.MaxRep } func (c *reportCodecV1Client) CurrentBlockNumFromReport(ctx context.Context, in *v1.CurrentBlockNumFromReportRequest, opts ...grpc.CallOption) (*v1.CurrentBlockNumFromReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v1.CurrentBlockNumFromReportResponse) - err := c.cc.Invoke(ctx, ReportCodecV1_CurrentBlockNumFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV1_CurrentBlockNumFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -732,7 +805,9 @@ func (c *reportCodecV1Client) CurrentBlockNumFromReport(ctx context.Context, in // ReportCodecV1Server is the server API for ReportCodecV1 service. // All implementations must embed UnimplementedReportCodecV1Server -// for forward compatibility +// for forward compatibility. +// +// ReportCodecV1 is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v1/ReportCodec]. type ReportCodecV1Server interface { BuildReport(context.Context, *v1.BuildReportRequest) (*v1.BuildReportReply, error) MaxReportLength(context.Context, *v1.MaxReportLengthRequest) (*v1.MaxReportLengthReply, error) @@ -740,9 +815,12 @@ type ReportCodecV1Server interface { mustEmbedUnimplementedReportCodecV1Server() } -// UnimplementedReportCodecV1Server must be embedded to have forward compatible implementations. -type UnimplementedReportCodecV1Server struct { -} +// UnimplementedReportCodecV1Server must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecV1Server struct{} func (UnimplementedReportCodecV1Server) BuildReport(context.Context, *v1.BuildReportRequest) (*v1.BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -754,6 +832,7 @@ func (UnimplementedReportCodecV1Server) CurrentBlockNumFromReport(context.Contex return nil, status.Errorf(codes.Unimplemented, "method CurrentBlockNumFromReport not implemented") } func (UnimplementedReportCodecV1Server) mustEmbedUnimplementedReportCodecV1Server() {} +func (UnimplementedReportCodecV1Server) testEmbeddedByValue() {} // UnsafeReportCodecV1Server may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecV1Server will @@ -763,6 +842,13 @@ type UnsafeReportCodecV1Server interface { } func RegisterReportCodecV1Server(s grpc.ServiceRegistrar, srv ReportCodecV1Server) { + // If the following call pancis, it indicates UnimplementedReportCodecV1Server was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodecV1_ServiceDesc, srv) } @@ -853,6 +939,8 @@ const ( // ReportCodecV2Client is the client API for ReportCodecV2 service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodecV2 is gRPC adapter for the ReportCodec interface [pkg/types/mercury/v2/ReportCodec]. type ReportCodecV2Client interface { BuildReport(ctx context.Context, in *v2.BuildReportRequest, opts ...grpc.CallOption) (*v2.BuildReportReply, error) MaxReportLength(ctx context.Context, in *v2.MaxReportLengthRequest, opts ...grpc.CallOption) (*v2.MaxReportLengthReply, error) @@ -868,8 +956,9 @@ func NewReportCodecV2Client(cc grpc.ClientConnInterface) ReportCodecV2Client { } func (c *reportCodecV2Client) BuildReport(ctx context.Context, in *v2.BuildReportRequest, opts ...grpc.CallOption) (*v2.BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v2.BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodecV2_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV2_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -877,8 +966,9 @@ func (c *reportCodecV2Client) BuildReport(ctx context.Context, in *v2.BuildRepor } func (c *reportCodecV2Client) MaxReportLength(ctx context.Context, in *v2.MaxReportLengthRequest, opts ...grpc.CallOption) (*v2.MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v2.MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodecV2_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV2_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -886,8 +976,9 @@ func (c *reportCodecV2Client) MaxReportLength(ctx context.Context, in *v2.MaxRep } func (c *reportCodecV2Client) ObservationTimestampFromReport(ctx context.Context, in *v2.ObservationTimestampFromReportRequest, opts ...grpc.CallOption) (*v2.ObservationTimestampFromReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(v2.ObservationTimestampFromReportReply) - err := c.cc.Invoke(ctx, ReportCodecV2_ObservationTimestampFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodecV2_ObservationTimestampFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -896,7 +987,9 @@ func (c *reportCodecV2Client) ObservationTimestampFromReport(ctx context.Context // ReportCodecV2Server is the server API for ReportCodecV2 service. // All implementations must embed UnimplementedReportCodecV2Server -// for forward compatibility +// for forward compatibility. +// +// ReportCodecV2 is gRPC adapter for the ReportCodec interface [pkg/types/mercury/v2/ReportCodec]. type ReportCodecV2Server interface { BuildReport(context.Context, *v2.BuildReportRequest) (*v2.BuildReportReply, error) MaxReportLength(context.Context, *v2.MaxReportLengthRequest) (*v2.MaxReportLengthReply, error) @@ -904,9 +997,12 @@ type ReportCodecV2Server interface { mustEmbedUnimplementedReportCodecV2Server() } -// UnimplementedReportCodecV2Server must be embedded to have forward compatible implementations. -type UnimplementedReportCodecV2Server struct { -} +// UnimplementedReportCodecV2Server must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecV2Server struct{} func (UnimplementedReportCodecV2Server) BuildReport(context.Context, *v2.BuildReportRequest) (*v2.BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -918,6 +1014,7 @@ func (UnimplementedReportCodecV2Server) ObservationTimestampFromReport(context.C return nil, status.Errorf(codes.Unimplemented, "method ObservationTimestampFromReport not implemented") } func (UnimplementedReportCodecV2Server) mustEmbedUnimplementedReportCodecV2Server() {} +func (UnimplementedReportCodecV2Server) testEmbeddedByValue() {} // UnsafeReportCodecV2Server may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecV2Server will @@ -927,6 +1024,13 @@ type UnsafeReportCodecV2Server interface { } func RegisterReportCodecV2Server(s grpc.ServiceRegistrar, srv ReportCodecV2Server) { + // If the following call pancis, it indicates UnimplementedReportCodecV2Server was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodecV2_ServiceDesc, srv) } @@ -1017,6 +1121,8 @@ const ( // ServerFetcherClient is the client API for ServerFetcher service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ServerFetcher is a gRPC adapter for the ServerFetcher interface [pkg/types/mercury/v3/ServerFetcher]. type ServerFetcherClient interface { FetchInitialMaxFinalizedBlockNumber(ctx context.Context, in *FetchInitialMaxFinalizedBlockNumberRequest, opts ...grpc.CallOption) (*FetchInitialMaxFinalizedBlockNumberReply, error) LatestPrice(ctx context.Context, in *LatestPriceRequest, opts ...grpc.CallOption) (*LatestPriceReply, error) @@ -1032,8 +1138,9 @@ func NewServerFetcherClient(cc grpc.ClientConnInterface) ServerFetcherClient { } func (c *serverFetcherClient) FetchInitialMaxFinalizedBlockNumber(ctx context.Context, in *FetchInitialMaxFinalizedBlockNumberRequest, opts ...grpc.CallOption) (*FetchInitialMaxFinalizedBlockNumberReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FetchInitialMaxFinalizedBlockNumberReply) - err := c.cc.Invoke(ctx, ServerFetcher_FetchInitialMaxFinalizedBlockNumber_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServerFetcher_FetchInitialMaxFinalizedBlockNumber_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1041,8 +1148,9 @@ func (c *serverFetcherClient) FetchInitialMaxFinalizedBlockNumber(ctx context.Co } func (c *serverFetcherClient) LatestPrice(ctx context.Context, in *LatestPriceRequest, opts ...grpc.CallOption) (*LatestPriceReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestPriceReply) - err := c.cc.Invoke(ctx, ServerFetcher_LatestPrice_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServerFetcher_LatestPrice_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1050,8 +1158,9 @@ func (c *serverFetcherClient) LatestPrice(ctx context.Context, in *LatestPriceRe } func (c *serverFetcherClient) LatestTimestamp(ctx context.Context, in *LatestTimestampRequest, opts ...grpc.CallOption) (*LatestTimestampReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestTimestampReply) - err := c.cc.Invoke(ctx, ServerFetcher_LatestTimestamp_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServerFetcher_LatestTimestamp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1060,7 +1169,9 @@ func (c *serverFetcherClient) LatestTimestamp(ctx context.Context, in *LatestTim // ServerFetcherServer is the server API for ServerFetcher service. // All implementations must embed UnimplementedServerFetcherServer -// for forward compatibility +// for forward compatibility. +// +// ServerFetcher is a gRPC adapter for the ServerFetcher interface [pkg/types/mercury/v3/ServerFetcher]. type ServerFetcherServer interface { FetchInitialMaxFinalizedBlockNumber(context.Context, *FetchInitialMaxFinalizedBlockNumberRequest) (*FetchInitialMaxFinalizedBlockNumberReply, error) LatestPrice(context.Context, *LatestPriceRequest) (*LatestPriceReply, error) @@ -1068,9 +1179,12 @@ type ServerFetcherServer interface { mustEmbedUnimplementedServerFetcherServer() } -// UnimplementedServerFetcherServer must be embedded to have forward compatible implementations. -type UnimplementedServerFetcherServer struct { -} +// UnimplementedServerFetcherServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedServerFetcherServer struct{} func (UnimplementedServerFetcherServer) FetchInitialMaxFinalizedBlockNumber(context.Context, *FetchInitialMaxFinalizedBlockNumberRequest) (*FetchInitialMaxFinalizedBlockNumberReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FetchInitialMaxFinalizedBlockNumber not implemented") @@ -1082,6 +1196,7 @@ func (UnimplementedServerFetcherServer) LatestTimestamp(context.Context, *Latest return nil, status.Errorf(codes.Unimplemented, "method LatestTimestamp not implemented") } func (UnimplementedServerFetcherServer) mustEmbedUnimplementedServerFetcherServer() {} +func (UnimplementedServerFetcherServer) testEmbeddedByValue() {} // UnsafeServerFetcherServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ServerFetcherServer will @@ -1091,6 +1206,13 @@ type UnsafeServerFetcherServer interface { } func RegisterServerFetcherServer(s grpc.ServiceRegistrar, srv ServerFetcherServer) { + // If the following call pancis, it indicates UnimplementedServerFetcherServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ServerFetcher_ServiceDesc, srv) } @@ -1179,6 +1301,8 @@ const ( // MercuryChainReaderClient is the client API for MercuryChainReader service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// MercuryChainReader is a gRPC adapter for the MercuryChainReader interface [pkg/types/mercury/MercuryChainReader]. type MercuryChainReaderClient interface { LatestHeads(ctx context.Context, in *LatestHeadsRequest, opts ...grpc.CallOption) (*LatestHeadsReply, error) } @@ -1192,8 +1316,9 @@ func NewMercuryChainReaderClient(cc grpc.ClientConnInterface) MercuryChainReader } func (c *mercuryChainReaderClient) LatestHeads(ctx context.Context, in *LatestHeadsRequest, opts ...grpc.CallOption) (*LatestHeadsReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestHeadsReply) - err := c.cc.Invoke(ctx, MercuryChainReader_LatestHeads_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryChainReader_LatestHeads_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1202,20 +1327,26 @@ func (c *mercuryChainReaderClient) LatestHeads(ctx context.Context, in *LatestHe // MercuryChainReaderServer is the server API for MercuryChainReader service. // All implementations must embed UnimplementedMercuryChainReaderServer -// for forward compatibility +// for forward compatibility. +// +// MercuryChainReader is a gRPC adapter for the MercuryChainReader interface [pkg/types/mercury/MercuryChainReader]. type MercuryChainReaderServer interface { LatestHeads(context.Context, *LatestHeadsRequest) (*LatestHeadsReply, error) mustEmbedUnimplementedMercuryChainReaderServer() } -// UnimplementedMercuryChainReaderServer must be embedded to have forward compatible implementations. -type UnimplementedMercuryChainReaderServer struct { -} +// UnimplementedMercuryChainReaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMercuryChainReaderServer struct{} func (UnimplementedMercuryChainReaderServer) LatestHeads(context.Context, *LatestHeadsRequest) (*LatestHeadsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method LatestHeads not implemented") } func (UnimplementedMercuryChainReaderServer) mustEmbedUnimplementedMercuryChainReaderServer() {} +func (UnimplementedMercuryChainReaderServer) testEmbeddedByValue() {} // UnsafeMercuryChainReaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MercuryChainReaderServer will @@ -1225,6 +1356,13 @@ type UnsafeMercuryChainReaderServer interface { } func RegisterMercuryChainReaderServer(s grpc.ServiceRegistrar, srv MercuryChainReaderServer) { + // If the following call pancis, it indicates UnimplementedMercuryChainReaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MercuryChainReader_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/mercury_plugin.pb.go b/pkg/loop/internal/pb/mercury/mercury_plugin.pb.go index 3aaa2c8b2..cc57e443c 100644 --- a/pkg/loop/internal/pb/mercury/mercury_plugin.pb.go +++ b/pkg/loop/internal/pb/mercury/mercury_plugin.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: mercury_plugin.proto // note: the generate.go file in this dir specifies the import path of the relative proto files @@ -15,6 +15,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -25,20 +26,17 @@ const ( ) type NewMercuryPluginRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryPluginConfig *MercuryPluginConfig `protobuf:"bytes,1,opt,name=mercuryPluginConfig,proto3" json:"mercuryPluginConfig,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MercuryPluginConfig *MercuryPluginConfig `protobuf:"bytes,1,opt,name=mercuryPluginConfig,proto3" json:"mercuryPluginConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryPluginRequest) Reset() { *x = NewMercuryPluginRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryPluginRequest) String() string { @@ -49,7 +47,7 @@ func (*NewMercuryPluginRequest) ProtoMessage() {} func (x *NewMercuryPluginRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -72,21 +70,18 @@ func (x *NewMercuryPluginRequest) GetMercuryPluginConfig() *MercuryPluginConfig } type NewMercuryPluginResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MercuryPluginID uint32 `protobuf:"varint,1,opt,name=mercuryPluginID,proto3" json:"mercuryPluginID,omitempty"` - MercuryPluginInfo *MercuryPluginInfo `protobuf:"bytes,2,opt,name=mercuryPluginInfo,proto3" json:"mercuryPluginInfo,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MercuryPluginID uint32 `protobuf:"varint,1,opt,name=mercuryPluginID,proto3" json:"mercuryPluginID,omitempty"` + MercuryPluginInfo *MercuryPluginInfo `protobuf:"bytes,2,opt,name=mercuryPluginInfo,proto3" json:"mercuryPluginInfo,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewMercuryPluginResponse) Reset() { *x = NewMercuryPluginResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewMercuryPluginResponse) String() string { @@ -97,7 +92,7 @@ func (*NewMercuryPluginResponse) ProtoMessage() {} func (x *NewMercuryPluginResponse) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -128,27 +123,24 @@ func (x *NewMercuryPluginResponse) GetMercuryPluginInfo() *MercuryPluginInfo { // MercuryPluginConfig represents [github.com/smartcontractkit/libocr/offchainreporting2plus/ocr3types.MercuryPluginConfig] type MercuryPluginConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte - OracleID uint32 `protobuf:"varint,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"` // uint8 - N uint32 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"` - F uint32 `protobuf:"varint,4,opt,name=f,proto3" json:"f,omitempty"` - OnchainConfig []byte `protobuf:"bytes,5,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` - OffchainConfig []byte `protobuf:"bytes,6,opt,name=offchainConfig,proto3" json:"offchainConfig,omitempty"` - EstimatedRoundInterval int64 `protobuf:"varint,7,opt,name=estimatedRoundInterval,proto3" json:"estimatedRoundInterval,omitempty"` - MaxDurationObservation int64 `protobuf:"varint,8,opt,name=maxDurationObservation,proto3" json:"maxDurationObservation,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + OracleID uint32 `protobuf:"varint,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"` // uint8 + N uint32 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"` + F uint32 `protobuf:"varint,4,opt,name=f,proto3" json:"f,omitempty"` + OnchainConfig []byte `protobuf:"bytes,5,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + OffchainConfig []byte `protobuf:"bytes,6,opt,name=offchainConfig,proto3" json:"offchainConfig,omitempty"` + EstimatedRoundInterval int64 `protobuf:"varint,7,opt,name=estimatedRoundInterval,proto3" json:"estimatedRoundInterval,omitempty"` + MaxDurationObservation int64 `protobuf:"varint,8,opt,name=maxDurationObservation,proto3" json:"maxDurationObservation,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MercuryPluginConfig) Reset() { *x = MercuryPluginConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MercuryPluginConfig) String() string { @@ -159,7 +151,7 @@ func (*MercuryPluginConfig) ProtoMessage() {} func (x *MercuryPluginConfig) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -232,21 +224,18 @@ func (x *MercuryPluginConfig) GetMaxDurationObservation() int64 { // MercuryPluginLimits represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.MercuryPluginLimits] type MercuryPluginLimits struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxObservationLength uint64 `protobuf:"varint,1,opt,name=maxObservationLength,proto3" json:"maxObservationLength,omitempty"` - MaxReportLength uint64 `protobuf:"varint,2,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxObservationLength uint64 `protobuf:"varint,1,opt,name=maxObservationLength,proto3" json:"maxObservationLength,omitempty"` + MaxReportLength uint64 `protobuf:"varint,2,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MercuryPluginLimits) Reset() { *x = MercuryPluginLimits{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MercuryPluginLimits) String() string { @@ -257,7 +246,7 @@ func (*MercuryPluginLimits) ProtoMessage() {} func (x *MercuryPluginLimits) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -288,21 +277,18 @@ func (x *MercuryPluginLimits) GetMaxReportLength() uint64 { // MercuryPluginInfo represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.MercuryPluginInfo] type MercuryPluginInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - MercuryPluginLimits *MercuryPluginLimits `protobuf:"bytes,3,opt,name=mercuryPluginLimits,proto3" json:"mercuryPluginLimits,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + MercuryPluginLimits *MercuryPluginLimits `protobuf:"bytes,3,opt,name=mercuryPluginLimits,proto3" json:"mercuryPluginLimits,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MercuryPluginInfo) Reset() { *x = MercuryPluginInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MercuryPluginInfo) String() string { @@ -313,7 +299,7 @@ func (*MercuryPluginInfo) ProtoMessage() {} func (x *MercuryPluginInfo) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -344,21 +330,18 @@ func (x *MercuryPluginInfo) GetMercuryPluginLimits() *MercuryPluginLimits { // ObservationRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.MercuryPlugin.Observation]. type ObservationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` - PreviousReport []byte `protobuf:"bytes,2,opt,name=previousReport,proto3" json:"previousReport,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + PreviousReport []byte `protobuf:"bytes,2,opt,name=previousReport,proto3" json:"previousReport,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObservationRequest) Reset() { *x = ObservationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationRequest) String() string { @@ -369,7 +352,7 @@ func (*ObservationRequest) ProtoMessage() {} func (x *ObservationRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -400,20 +383,17 @@ func (x *ObservationRequest) GetPreviousReport() []byte { // ObservationResponse has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.MercuryPlugin.Observation]. type ObservationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` unknownFields protoimpl.UnknownFields - - Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationResponse) Reset() { *x = ObservationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationResponse) String() string { @@ -424,7 +404,7 @@ func (*ObservationResponse) ProtoMessage() {} func (x *ObservationResponse) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -449,21 +429,18 @@ func (x *ObservationResponse) GetObservation() []byte { // TODO some definitions are shared with reporting plugin for ocr2. not sure to copy or share. copy for now... // AttributedObservation represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.AttributedObservation] type AttributedObservation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + Observer uint32 `protobuf:"varint,2,opt,name=observer,proto3" json:"observer,omitempty"` // uint8 unknownFields protoimpl.UnknownFields - - Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` - Observer uint32 `protobuf:"varint,2,opt,name=observer,proto3" json:"observer,omitempty"` // uint8 + sizeCache protoimpl.SizeCache } func (x *AttributedObservation) Reset() { *x = AttributedObservation{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributedObservation) String() string { @@ -474,7 +451,7 @@ func (*AttributedObservation) ProtoMessage() {} func (x *AttributedObservation) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -505,22 +482,19 @@ func (x *AttributedObservation) GetObserver() uint32 { // ReportRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.MercuryPlugin.Report]. type ReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` PreviousReport []byte `protobuf:"bytes,2,opt,name=previousReport,proto3" json:"previousReport,omitempty"` Observations []*AttributedObservation `protobuf:"bytes,3,rep,name=observations,proto3" json:"observations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportRequest) Reset() { *x = ReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportRequest) String() string { @@ -531,7 +505,7 @@ func (*ReportRequest) ProtoMessage() {} func (x *ReportRequest) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -569,21 +543,18 @@ func (x *ReportRequest) GetObservations() []*AttributedObservation { // ReportResponse has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.MercuryPlugin.Report]. type ReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ShouldReport bool `protobuf:"varint,1,opt,name=shouldReport,proto3" json:"shouldReport,omitempty"` + Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - ShouldReport bool `protobuf:"varint,1,opt,name=shouldReport,proto3" json:"shouldReport,omitempty"` - Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReportResponse) Reset() { *x = ReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mercury_plugin_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_mercury_plugin_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportResponse) String() string { @@ -594,7 +565,7 @@ func (*ReportResponse) ProtoMessage() {} func (x *ReportResponse) ProtoReflect() protoreflect.Message { mi := &file_mercury_plugin_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -625,7 +596,7 @@ func (x *ReportResponse) GetReport() []byte { var File_mercury_plugin_proto protoreflect.FileDescriptor -var file_mercury_plugin_proto_rawDesc = []byte{ +var file_mercury_plugin_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, @@ -753,22 +724,22 @@ var file_mercury_plugin_proto_rawDesc = []byte{ 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_mercury_plugin_proto_rawDescOnce sync.Once - file_mercury_plugin_proto_rawDescData = file_mercury_plugin_proto_rawDesc + file_mercury_plugin_proto_rawDescData []byte ) func file_mercury_plugin_proto_rawDescGZIP() []byte { file_mercury_plugin_proto_rawDescOnce.Do(func() { - file_mercury_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_mercury_plugin_proto_rawDescData) + file_mercury_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mercury_plugin_proto_rawDesc), len(file_mercury_plugin_proto_rawDesc))) }) return file_mercury_plugin_proto_rawDescData } var file_mercury_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_mercury_plugin_proto_goTypes = []interface{}{ +var file_mercury_plugin_proto_goTypes = []any{ (*NewMercuryPluginRequest)(nil), // 0: loop.internal.pb.mercury.NewMercuryPluginRequest (*NewMercuryPluginResponse)(nil), // 1: loop.internal.pb.mercury.NewMercuryPluginResponse (*MercuryPluginConfig)(nil), // 2: loop.internal.pb.mercury.MercuryPluginConfig @@ -809,133 +780,11 @@ func file_mercury_plugin_proto_init() { if File_mercury_plugin_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_mercury_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryPluginRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewMercuryPluginResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MercuryPluginConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MercuryPluginLimits); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MercuryPluginInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributedObservation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mercury_plugin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mercury_plugin_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_mercury_plugin_proto_rawDesc), len(file_mercury_plugin_proto_rawDesc)), NumEnums: 0, NumMessages: 10, NumExtensions: 0, @@ -946,7 +795,6 @@ func file_mercury_plugin_proto_init() { MessageInfos: file_mercury_plugin_proto_msgTypes, }.Build() File_mercury_plugin_proto = out.File - file_mercury_plugin_proto_rawDesc = nil file_mercury_plugin_proto_goTypes = nil file_mercury_plugin_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/mercury_plugin_grpc.pb.go b/pkg/loop/internal/pb/mercury/mercury_plugin_grpc.pb.go index cb4118be6..e4125c869 100644 --- a/pkg/loop/internal/pb/mercury/mercury_plugin_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/mercury_plugin_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: mercury_plugin.proto // note: the generate.go file in this dir specifies the import path of the relative proto files @@ -18,8 +18,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MercuryPluginFactory_NewMercuryPlugin_FullMethodName = "/loop.internal.pb.mercury.MercuryPluginFactory/NewMercuryPlugin" @@ -41,8 +41,9 @@ func NewMercuryPluginFactoryClient(cc grpc.ClientConnInterface) MercuryPluginFac } func (c *mercuryPluginFactoryClient) NewMercuryPlugin(ctx context.Context, in *NewMercuryPluginRequest, opts ...grpc.CallOption) (*NewMercuryPluginResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewMercuryPluginResponse) - err := c.cc.Invoke(ctx, MercuryPluginFactory_NewMercuryPlugin_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryPluginFactory_NewMercuryPlugin_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,20 +52,24 @@ func (c *mercuryPluginFactoryClient) NewMercuryPlugin(ctx context.Context, in *N // MercuryPluginFactoryServer is the server API for MercuryPluginFactory service. // All implementations must embed UnimplementedMercuryPluginFactoryServer -// for forward compatibility +// for forward compatibility. type MercuryPluginFactoryServer interface { NewMercuryPlugin(context.Context, *NewMercuryPluginRequest) (*NewMercuryPluginResponse, error) mustEmbedUnimplementedMercuryPluginFactoryServer() } -// UnimplementedMercuryPluginFactoryServer must be embedded to have forward compatible implementations. -type UnimplementedMercuryPluginFactoryServer struct { -} +// UnimplementedMercuryPluginFactoryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMercuryPluginFactoryServer struct{} func (UnimplementedMercuryPluginFactoryServer) NewMercuryPlugin(context.Context, *NewMercuryPluginRequest) (*NewMercuryPluginResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NewMercuryPlugin not implemented") } func (UnimplementedMercuryPluginFactoryServer) mustEmbedUnimplementedMercuryPluginFactoryServer() {} +func (UnimplementedMercuryPluginFactoryServer) testEmbeddedByValue() {} // UnsafeMercuryPluginFactoryServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MercuryPluginFactoryServer will @@ -74,6 +79,13 @@ type UnsafeMercuryPluginFactoryServer interface { } func RegisterMercuryPluginFactoryServer(s grpc.ServiceRegistrar, srv MercuryPluginFactoryServer) { + // If the following call pancis, it indicates UnimplementedMercuryPluginFactoryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MercuryPluginFactory_ServiceDesc, srv) } @@ -135,8 +147,9 @@ func NewMercuryPluginClient(cc grpc.ClientConnInterface) MercuryPluginClient { } func (c *mercuryPluginClient) Observation(ctx context.Context, in *ObservationRequest, opts ...grpc.CallOption) (*ObservationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObservationResponse) - err := c.cc.Invoke(ctx, MercuryPlugin_Observation_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryPlugin_Observation_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -144,8 +157,9 @@ func (c *mercuryPluginClient) Observation(ctx context.Context, in *ObservationRe } func (c *mercuryPluginClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReportResponse) - err := c.cc.Invoke(ctx, MercuryPlugin_Report_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryPlugin_Report_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -153,8 +167,9 @@ func (c *mercuryPluginClient) Report(ctx context.Context, in *ReportRequest, opt } func (c *mercuryPluginClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MercuryPlugin_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MercuryPlugin_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -163,7 +178,7 @@ func (c *mercuryPluginClient) Close(ctx context.Context, in *emptypb.Empty, opts // MercuryPluginServer is the server API for MercuryPlugin service. // All implementations must embed UnimplementedMercuryPluginServer -// for forward compatibility +// for forward compatibility. type MercuryPluginServer interface { Observation(context.Context, *ObservationRequest) (*ObservationResponse, error) Report(context.Context, *ReportRequest) (*ReportResponse, error) @@ -171,9 +186,12 @@ type MercuryPluginServer interface { mustEmbedUnimplementedMercuryPluginServer() } -// UnimplementedMercuryPluginServer must be embedded to have forward compatible implementations. -type UnimplementedMercuryPluginServer struct { -} +// UnimplementedMercuryPluginServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMercuryPluginServer struct{} func (UnimplementedMercuryPluginServer) Observation(context.Context, *ObservationRequest) (*ObservationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Observation not implemented") @@ -185,6 +203,7 @@ func (UnimplementedMercuryPluginServer) Close(context.Context, *emptypb.Empty) ( return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedMercuryPluginServer) mustEmbedUnimplementedMercuryPluginServer() {} +func (UnimplementedMercuryPluginServer) testEmbeddedByValue() {} // UnsafeMercuryPluginServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MercuryPluginServer will @@ -194,6 +213,13 @@ type UnsafeMercuryPluginServer interface { } func RegisterMercuryPluginServer(s grpc.ServiceRegistrar, srv MercuryPluginServer) { + // If the following call pancis, it indicates UnimplementedMercuryPluginServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MercuryPlugin_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/v1/datasource_v1.pb.go b/pkg/loop/internal/pb/mercury/v1/datasource_v1.pb.go index e4e979825..a0bb7ec30 100644 --- a/pkg/loop/internal/pb/mercury/v1/datasource_v1.pb.go +++ b/pkg/loop/internal/pb/mercury/v1/datasource_v1.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: datasource_v1.proto package mercuryv1pb @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,21 +24,18 @@ const ( // ObserveRequest is the request payload for the Observe method, which is a gRPC adapter for input arguments of [pkg/types/mercury/v1/DataSource.Observe] type ObserveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=report_timestamp,json=reportTimestamp,proto3" json:"report_timestamp,omitempty"` - FetchMaxFinalizedBlockNum bool `protobuf:"varint,2,opt,name=fetchMaxFinalizedBlockNum,proto3" json:"fetchMaxFinalizedBlockNum,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=report_timestamp,json=reportTimestamp,proto3" json:"report_timestamp,omitempty"` + FetchMaxFinalizedBlockNum bool `protobuf:"varint,2,opt,name=fetchMaxFinalizedBlockNum,proto3" json:"fetchMaxFinalizedBlockNum,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObserveRequest) Reset() { *x = ObserveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v1_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v1_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveRequest) String() string { @@ -48,7 +46,7 @@ func (*ObserveRequest) ProtoMessage() {} func (x *ObserveRequest) ProtoReflect() protoreflect.Message { mi := &file_datasource_v1_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,22 +77,19 @@ func (x *ObserveRequest) GetFetchMaxFinalizedBlockNum() bool { // Block is a gRPC adapter for [pkg/types/mercury/v1/Block] type Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v1_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v1_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -105,7 +100,7 @@ func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { mi := &file_datasource_v1_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -143,27 +138,24 @@ func (x *Block) GetTimestamp() uint64 { // Observation is a gRPC adapter for [pkg/types/mercury/v1/Observation] type Observation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BenchmarkPrice *pb.BigInt `protobuf:"bytes,1,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` - Bid *pb.BigInt `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"` - Ask *pb.BigInt `protobuf:"bytes,3,opt,name=ask,proto3" json:"ask,omitempty"` - CurrentBlockNum int64 `protobuf:"varint,4,opt,name=currentBlockNum,proto3" json:"currentBlockNum,omitempty"` - CurrentBlockHash []byte `protobuf:"bytes,5,opt,name=currentBlockHash,proto3" json:"currentBlockHash,omitempty"` - CurrentBlockTimestamp uint64 `protobuf:"varint,6,opt,name=currentBlockTimestamp,proto3" json:"currentBlockTimestamp,omitempty"` - LatestBlocks []*Block `protobuf:"bytes,7,rep,name=latestBlocks,proto3" json:"latestBlocks,omitempty"` - MaxFinalizedBlockNumber int64 `protobuf:"varint,8,opt,name=maxFinalizedBlockNumber,proto3" json:"maxFinalizedBlockNumber,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + BenchmarkPrice *pb.BigInt `protobuf:"bytes,1,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + Bid *pb.BigInt `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"` + Ask *pb.BigInt `protobuf:"bytes,3,opt,name=ask,proto3" json:"ask,omitempty"` + CurrentBlockNum int64 `protobuf:"varint,4,opt,name=currentBlockNum,proto3" json:"currentBlockNum,omitempty"` + CurrentBlockHash []byte `protobuf:"bytes,5,opt,name=currentBlockHash,proto3" json:"currentBlockHash,omitempty"` + CurrentBlockTimestamp uint64 `protobuf:"varint,6,opt,name=currentBlockTimestamp,proto3" json:"currentBlockTimestamp,omitempty"` + LatestBlocks []*Block `protobuf:"bytes,7,rep,name=latestBlocks,proto3" json:"latestBlocks,omitempty"` + MaxFinalizedBlockNumber int64 `protobuf:"varint,8,opt,name=maxFinalizedBlockNumber,proto3" json:"maxFinalizedBlockNumber,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Observation) Reset() { *x = Observation{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v1_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v1_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Observation) String() string { @@ -174,7 +166,7 @@ func (*Observation) ProtoMessage() {} func (x *Observation) ProtoReflect() protoreflect.Message { mi := &file_datasource_v1_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -247,20 +239,17 @@ func (x *Observation) GetMaxFinalizedBlockNumber() int64 { // ObserveResponse is the response payload for the Observe method, which is a gRPC adapter for output arguments of [pkg/types/mercury/v1/DataSource.Observe] type ObserveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation *Observation `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` unknownFields protoimpl.UnknownFields - - Observation *Observation `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObserveResponse) Reset() { *x = ObserveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v1_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v1_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveResponse) String() string { @@ -271,7 +260,7 @@ func (*ObserveResponse) ProtoMessage() {} func (x *ObserveResponse) ProtoReflect() protoreflect.Message { mi := &file_datasource_v1_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -295,7 +284,7 @@ func (x *ObserveResponse) GetObservation() *Observation { var File_datasource_v1_proto protoreflect.FileDescriptor -var file_datasource_v1_proto_rawDesc = []byte{ +var file_datasource_v1_proto_rawDesc = string([]byte{ 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2e, @@ -360,22 +349,22 @@ var file_datasource_v1_proto_rawDesc = []byte{ 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x76, 0x31, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_datasource_v1_proto_rawDescOnce sync.Once - file_datasource_v1_proto_rawDescData = file_datasource_v1_proto_rawDesc + file_datasource_v1_proto_rawDescData []byte ) func file_datasource_v1_proto_rawDescGZIP() []byte { file_datasource_v1_proto_rawDescOnce.Do(func() { - file_datasource_v1_proto_rawDescData = protoimpl.X.CompressGZIP(file_datasource_v1_proto_rawDescData) + file_datasource_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_datasource_v1_proto_rawDesc), len(file_datasource_v1_proto_rawDesc))) }) return file_datasource_v1_proto_rawDescData } var file_datasource_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_datasource_v1_proto_goTypes = []interface{}{ +var file_datasource_v1_proto_goTypes = []any{ (*ObserveRequest)(nil), // 0: loop.internal.pb.mercury.v1.ObserveRequest (*Block)(nil), // 1: loop.internal.pb.mercury.v1.Block (*Observation)(nil), // 2: loop.internal.pb.mercury.v1.Observation @@ -404,61 +393,11 @@ func file_datasource_v1_proto_init() { if File_datasource_v1_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_datasource_v1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Observation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_datasource_v1_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_datasource_v1_proto_rawDesc), len(file_datasource_v1_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -469,7 +408,6 @@ func file_datasource_v1_proto_init() { MessageInfos: file_datasource_v1_proto_msgTypes, }.Build() File_datasource_v1_proto = out.File - file_datasource_v1_proto_rawDesc = nil file_datasource_v1_proto_goTypes = nil file_datasource_v1_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/v1/datasource_v1_grpc.pb.go b/pkg/loop/internal/pb/mercury/v1/datasource_v1_grpc.pb.go index ddcda4eb3..23bf0f70e 100644 --- a/pkg/loop/internal/pb/mercury/v1/datasource_v1_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/v1/datasource_v1_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: datasource_v1.proto package mercuryv1pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataSource_Observe_FullMethodName = "/loop.internal.pb.mercury.v1.DataSource/Observe" @@ -25,6 +25,8 @@ const ( // DataSourceClient is the client API for DataSource service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// DataSource is a gRPC adapter for [pkg/types/mercury/v1/DataSource] type DataSourceClient interface { Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveResponse, error) } @@ -38,8 +40,9 @@ func NewDataSourceClient(cc grpc.ClientConnInterface) DataSourceClient { } func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObserveResponse) - err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +51,26 @@ func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts // DataSourceServer is the server API for DataSource service. // All implementations must embed UnimplementedDataSourceServer -// for forward compatibility +// for forward compatibility. +// +// DataSource is a gRPC adapter for [pkg/types/mercury/v1/DataSource] type DataSourceServer interface { Observe(context.Context, *ObserveRequest) (*ObserveResponse, error) mustEmbedUnimplementedDataSourceServer() } -// UnimplementedDataSourceServer must be embedded to have forward compatible implementations. -type UnimplementedDataSourceServer struct { -} +// UnimplementedDataSourceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataSourceServer struct{} func (UnimplementedDataSourceServer) Observe(context.Context, *ObserveRequest) (*ObserveResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Observe not implemented") } func (UnimplementedDataSourceServer) mustEmbedUnimplementedDataSourceServer() {} +func (UnimplementedDataSourceServer) testEmbeddedByValue() {} // UnsafeDataSourceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataSourceServer will @@ -71,6 +80,13 @@ type UnsafeDataSourceServer interface { } func RegisterDataSourceServer(s grpc.ServiceRegistrar, srv DataSourceServer) { + // If the following call pancis, it indicates UnimplementedDataSourceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataSource_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/v1/reportcodec_v1.pb.go b/pkg/loop/internal/pb/mercury/v1/reportcodec_v1.pb.go index 76a411c95..bdda66725 100644 --- a/pkg/loop/internal/pb/mercury/v1/reportcodec_v1.pb.go +++ b/pkg/loop/internal/pb/mercury/v1/reportcodec_v1.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: reportcodec_v1.proto package mercuryv1pb @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,27 +24,24 @@ const ( // ReportFields is gRPC wrapper for struct [github.com/smartcontractkit/chainlink-data-streams/mercury/v1/ReportFields]. type ReportFields struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - BenchmarkPrice *pb.BigInt `protobuf:"bytes,2,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` - Bid *pb.BigInt `protobuf:"bytes,3,opt,name=bid,proto3" json:"bid,omitempty"` - Ask *pb.BigInt `protobuf:"bytes,4,opt,name=ask,proto3" json:"ask,omitempty"` - CurrentBlockNum int64 `protobuf:"varint,5,opt,name=currentBlockNum,proto3" json:"currentBlockNum,omitempty"` - CurrentBlockHash []byte `protobuf:"bytes,6,opt,name=currentBlockHash,proto3" json:"currentBlockHash,omitempty"` - ValidFromBlockNum int64 `protobuf:"varint,7,opt,name=validFromBlockNum,proto3" json:"validFromBlockNum,omitempty"` - CurrentBlockTimestamp uint64 `protobuf:"varint,8,opt,name=currentBlockTimestamp,proto3" json:"currentBlockTimestamp,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + BenchmarkPrice *pb.BigInt `protobuf:"bytes,2,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + Bid *pb.BigInt `protobuf:"bytes,3,opt,name=bid,proto3" json:"bid,omitempty"` + Ask *pb.BigInt `protobuf:"bytes,4,opt,name=ask,proto3" json:"ask,omitempty"` + CurrentBlockNum int64 `protobuf:"varint,5,opt,name=currentBlockNum,proto3" json:"currentBlockNum,omitempty"` + CurrentBlockHash []byte `protobuf:"bytes,6,opt,name=currentBlockHash,proto3" json:"currentBlockHash,omitempty"` + ValidFromBlockNum int64 `protobuf:"varint,7,opt,name=validFromBlockNum,proto3" json:"validFromBlockNum,omitempty"` + CurrentBlockTimestamp uint64 `protobuf:"varint,8,opt,name=currentBlockTimestamp,proto3" json:"currentBlockTimestamp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportFields) Reset() { *x = ReportFields{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v1_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v1_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportFields) String() string { @@ -54,7 +52,7 @@ func (*ReportFields) ProtoMessage() {} func (x *ReportFields) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v1_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -127,20 +125,17 @@ func (x *ReportFields) GetCurrentBlockTimestamp() uint64 { // BuildReportRequest is gRPC adapter for [github.com/smartcontractkit/chainlink-data-streams/mercury/v1/ReportCodec.BuildReport]. type BuildReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ReportFields *ReportFields `protobuf:"bytes,1,opt,name=reportFields,proto3" json:"reportFields,omitempty"` unknownFields protoimpl.UnknownFields - - ReportFields *ReportFields `protobuf:"bytes,1,opt,name=reportFields,proto3" json:"reportFields,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportRequest) Reset() { *x = BuildReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v1_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v1_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportRequest) String() string { @@ -151,7 +146,7 @@ func (*BuildReportRequest) ProtoMessage() {} func (x *BuildReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v1_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -175,20 +170,17 @@ func (x *BuildReportRequest) GetReportFields() *ReportFields { // BuildReportReply is gRPC adapter for the return values of [github.com/smartcontractkit/chainlink-data-streams/mercury/v1/ReportCodec.BuildReport]. type BuildReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportReply) Reset() { *x = BuildReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v1_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v1_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportReply) String() string { @@ -199,7 +191,7 @@ func (*BuildReportReply) ProtoMessage() {} func (x *BuildReportReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v1_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -223,20 +215,17 @@ func (x *BuildReportReply) GetReport() []byte { // MaxReportLengthRequest is gRPC adapter for [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/ReportCodec.MaxReportLength]. type MaxReportLengthRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NumOracles uint64 `protobuf:"varint,1,opt,name=numOracles,proto3" json:"numOracles,omitempty"` unknownFields protoimpl.UnknownFields - - NumOracles uint64 `protobuf:"varint,1,opt,name=numOracles,proto3" json:"numOracles,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthRequest) Reset() { *x = MaxReportLengthRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v1_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v1_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthRequest) String() string { @@ -247,7 +236,7 @@ func (*MaxReportLengthRequest) ProtoMessage() {} func (x *MaxReportLengthRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v1_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -271,20 +260,17 @@ func (x *MaxReportLengthRequest) GetNumOracles() uint64 { // MaxReportLengthReply has return arguments for [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/ReportCodec.MaxReportLength]. type MaxReportLengthReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxReportLength uint64 `protobuf:"varint,1,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxReportLength uint64 `protobuf:"varint,1,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthReply) Reset() { *x = MaxReportLengthReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v1_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v1_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthReply) String() string { @@ -295,7 +281,7 @@ func (*MaxReportLengthReply) ProtoMessage() {} func (x *MaxReportLengthReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v1_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -319,20 +305,17 @@ func (x *MaxReportLengthReply) GetMaxReportLength() uint64 { // CurrentBlockNumFromReportRequest is gRPC adapter for [github.com/smartcontractkit/chainlink-data-streams/mercury/v1/ReportCodec.CurrentBlockNumFromReport]. type CurrentBlockNumFromReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CurrentBlockNumFromReportRequest) Reset() { *x = CurrentBlockNumFromReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v1_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v1_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CurrentBlockNumFromReportRequest) String() string { @@ -343,7 +326,7 @@ func (*CurrentBlockNumFromReportRequest) ProtoMessage() {} func (x *CurrentBlockNumFromReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v1_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -367,20 +350,17 @@ func (x *CurrentBlockNumFromReportRequest) GetReport() []byte { // CurrentBlockNumFromReportResponse is gRPC adapter for [github.com/smartcontractkit/chainlink-data-streams/mercury/v1/ReportCodec.CurrentBlockNumFromReport]. type CurrentBlockNumFromReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CurrentBlockNum int64 `protobuf:"varint,1,opt,name=currentBlockNum,proto3" json:"currentBlockNum,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + CurrentBlockNum int64 `protobuf:"varint,1,opt,name=currentBlockNum,proto3" json:"currentBlockNum,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CurrentBlockNumFromReportResponse) Reset() { *x = CurrentBlockNumFromReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v1_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v1_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CurrentBlockNumFromReportResponse) String() string { @@ -391,7 +371,7 @@ func (*CurrentBlockNumFromReportResponse) ProtoMessage() {} func (x *CurrentBlockNumFromReportResponse) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v1_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -415,7 +395,7 @@ func (x *CurrentBlockNumFromReportResponse) GetCurrentBlockNum() int64 { var File_reportcodec_v1_proto protoreflect.FileDescriptor -var file_reportcodec_v1_proto_rawDesc = []byte{ +var file_reportcodec_v1_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x76, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, @@ -500,22 +480,22 @@ var file_reportcodec_v1_proto_rawDesc = []byte{ 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x76, 0x31, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_reportcodec_v1_proto_rawDescOnce sync.Once - file_reportcodec_v1_proto_rawDescData = file_reportcodec_v1_proto_rawDesc + file_reportcodec_v1_proto_rawDescData []byte ) func file_reportcodec_v1_proto_rawDescGZIP() []byte { file_reportcodec_v1_proto_rawDescOnce.Do(func() { - file_reportcodec_v1_proto_rawDescData = protoimpl.X.CompressGZIP(file_reportcodec_v1_proto_rawDescData) + file_reportcodec_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reportcodec_v1_proto_rawDesc), len(file_reportcodec_v1_proto_rawDesc))) }) return file_reportcodec_v1_proto_rawDescData } var file_reportcodec_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_reportcodec_v1_proto_goTypes = []interface{}{ +var file_reportcodec_v1_proto_goTypes = []any{ (*ReportFields)(nil), // 0: loop.internal.pb.mercury.v1.ReportFields (*BuildReportRequest)(nil), // 1: loop.internal.pb.mercury.v1.BuildReportRequest (*BuildReportReply)(nil), // 2: loop.internal.pb.mercury.v1.BuildReportReply @@ -548,97 +528,11 @@ func file_reportcodec_v1_proto_init() { if File_reportcodec_v1_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_reportcodec_v1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportFields); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CurrentBlockNumFromReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v1_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CurrentBlockNumFromReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_reportcodec_v1_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_reportcodec_v1_proto_rawDesc), len(file_reportcodec_v1_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, @@ -649,7 +543,6 @@ func file_reportcodec_v1_proto_init() { MessageInfos: file_reportcodec_v1_proto_msgTypes, }.Build() File_reportcodec_v1_proto = out.File - file_reportcodec_v1_proto_rawDesc = nil file_reportcodec_v1_proto_goTypes = nil file_reportcodec_v1_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/v1/reportcodec_v1_grpc.pb.go b/pkg/loop/internal/pb/mercury/v1/reportcodec_v1_grpc.pb.go index 8ea8463db..026593803 100644 --- a/pkg/loop/internal/pb/mercury/v1/reportcodec_v1_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/v1/reportcodec_v1_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: reportcodec_v1.proto package mercuryv1pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReportCodec_BuildReport_FullMethodName = "/loop.internal.pb.mercury.v1.ReportCodec/BuildReport" @@ -27,6 +27,8 @@ const ( // ReportCodecClient is the client API for ReportCodec service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v1/ReportCodec]. type ReportCodecClient interface { BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) @@ -42,8 +44,9 @@ func NewReportCodecClient(cc grpc.ClientConnInterface) ReportCodecClient { } func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +54,9 @@ func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequ } func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +64,9 @@ func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLe } func (c *reportCodecClient) CurrentBlockNumFromReport(ctx context.Context, in *CurrentBlockNumFromReportRequest, opts ...grpc.CallOption) (*CurrentBlockNumFromReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CurrentBlockNumFromReportResponse) - err := c.cc.Invoke(ctx, ReportCodec_CurrentBlockNumFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_CurrentBlockNumFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +75,9 @@ func (c *reportCodecClient) CurrentBlockNumFromReport(ctx context.Context, in *C // ReportCodecServer is the server API for ReportCodec service. // All implementations must embed UnimplementedReportCodecServer -// for forward compatibility +// for forward compatibility. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v1/ReportCodec]. type ReportCodecServer interface { BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) MaxReportLength(context.Context, *MaxReportLengthRequest) (*MaxReportLengthReply, error) @@ -78,9 +85,12 @@ type ReportCodecServer interface { mustEmbedUnimplementedReportCodecServer() } -// UnimplementedReportCodecServer must be embedded to have forward compatible implementations. -type UnimplementedReportCodecServer struct { -} +// UnimplementedReportCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecServer struct{} func (UnimplementedReportCodecServer) BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -92,6 +102,7 @@ func (UnimplementedReportCodecServer) CurrentBlockNumFromReport(context.Context, return nil, status.Errorf(codes.Unimplemented, "method CurrentBlockNumFromReport not implemented") } func (UnimplementedReportCodecServer) mustEmbedUnimplementedReportCodecServer() {} +func (UnimplementedReportCodecServer) testEmbeddedByValue() {} // UnsafeReportCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecServer will @@ -101,6 +112,13 @@ type UnsafeReportCodecServer interface { } func RegisterReportCodecServer(s grpc.ServiceRegistrar, srv ReportCodecServer) { + // If the following call pancis, it indicates UnimplementedReportCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodec_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/v2/datasource_v2.pb.go b/pkg/loop/internal/pb/mercury/v2/datasource_v2.pb.go index 8ee75a94d..f35038ade 100644 --- a/pkg/loop/internal/pb/mercury/v2/datasource_v2.pb.go +++ b/pkg/loop/internal/pb/mercury/v2/datasource_v2.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: datasource_v2.proto package mercuryv2pb @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,21 +24,18 @@ const ( // ObserveRequest is the request payload for the Observe method, which is a gRPC adapter for input arguments of [pkg/types/mercury/v2/DataSource.Observe] type ObserveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=report_timestamp,json=reportTimestamp,proto3" json:"report_timestamp,omitempty"` - FetchMaxFinalizedTimestamp bool `protobuf:"varint,2,opt,name=fetchMaxFinalizedTimestamp,proto3" json:"fetchMaxFinalizedTimestamp,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=report_timestamp,json=reportTimestamp,proto3" json:"report_timestamp,omitempty"` + FetchMaxFinalizedTimestamp bool `protobuf:"varint,2,opt,name=fetchMaxFinalizedTimestamp,proto3" json:"fetchMaxFinalizedTimestamp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObserveRequest) Reset() { *x = ObserveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveRequest) String() string { @@ -48,7 +46,7 @@ func (*ObserveRequest) ProtoMessage() {} func (x *ObserveRequest) ProtoReflect() protoreflect.Message { mi := &file_datasource_v2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,22 +77,19 @@ func (x *ObserveRequest) GetFetchMaxFinalizedTimestamp() bool { // Block is a gRPC adapter for [pkg/types/mercury/v2/Block] type Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v2_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v2_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -105,7 +100,7 @@ func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { mi := &file_datasource_v2_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -143,23 +138,20 @@ func (x *Block) GetTimestamp() uint64 { // Observation is a gRPC adapter for [pkg/types/mercury/v2/Observation] type Observation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BenchmarkPrice *pb.BigInt `protobuf:"bytes,1,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` - MaxFinalizedTimestamp int64 `protobuf:"varint,2,opt,name=maxFinalizedTimestamp,proto3" json:"maxFinalizedTimestamp,omitempty"` - LinkPrice *pb.BigInt `protobuf:"bytes,3,opt,name=linkPrice,proto3" json:"linkPrice,omitempty"` - NativePrice *pb.BigInt `protobuf:"bytes,4,opt,name=nativePrice,proto3" json:"nativePrice,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + BenchmarkPrice *pb.BigInt `protobuf:"bytes,1,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + MaxFinalizedTimestamp int64 `protobuf:"varint,2,opt,name=maxFinalizedTimestamp,proto3" json:"maxFinalizedTimestamp,omitempty"` + LinkPrice *pb.BigInt `protobuf:"bytes,3,opt,name=linkPrice,proto3" json:"linkPrice,omitempty"` + NativePrice *pb.BigInt `protobuf:"bytes,4,opt,name=nativePrice,proto3" json:"nativePrice,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Observation) Reset() { *x = Observation{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v2_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v2_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Observation) String() string { @@ -170,7 +162,7 @@ func (*Observation) ProtoMessage() {} func (x *Observation) ProtoReflect() protoreflect.Message { mi := &file_datasource_v2_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -215,20 +207,17 @@ func (x *Observation) GetNativePrice() *pb.BigInt { // ObserveResponse is the response payload for the Observe method, which is a gRPC adapter for output arguments of [pkg/types/mercury/v2/DataSource.Observe] type ObserveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation *Observation `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` unknownFields protoimpl.UnknownFields - - Observation *Observation `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObserveResponse) Reset() { *x = ObserveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v2_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v2_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveResponse) String() string { @@ -239,7 +228,7 @@ func (*ObserveResponse) ProtoMessage() {} func (x *ObserveResponse) ProtoReflect() protoreflect.Message { mi := &file_datasource_v2_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -263,7 +252,7 @@ func (x *ObserveResponse) GetObservation() *Observation { var File_datasource_v2_proto protoreflect.FileDescriptor -var file_datasource_v2_proto_rawDesc = []byte{ +var file_datasource_v2_proto_rawDesc = string([]byte{ 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2e, @@ -316,22 +305,22 @@ var file_datasource_v2_proto_rawDesc = []byte{ 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x76, 0x32, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_datasource_v2_proto_rawDescOnce sync.Once - file_datasource_v2_proto_rawDescData = file_datasource_v2_proto_rawDesc + file_datasource_v2_proto_rawDescData []byte ) func file_datasource_v2_proto_rawDescGZIP() []byte { file_datasource_v2_proto_rawDescOnce.Do(func() { - file_datasource_v2_proto_rawDescData = protoimpl.X.CompressGZIP(file_datasource_v2_proto_rawDescData) + file_datasource_v2_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_datasource_v2_proto_rawDesc), len(file_datasource_v2_proto_rawDesc))) }) return file_datasource_v2_proto_rawDescData } var file_datasource_v2_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_datasource_v2_proto_goTypes = []interface{}{ +var file_datasource_v2_proto_goTypes = []any{ (*ObserveRequest)(nil), // 0: loop.internal.pb.mercury.v2.ObserveRequest (*Block)(nil), // 1: loop.internal.pb.mercury.v2.Block (*Observation)(nil), // 2: loop.internal.pb.mercury.v2.Observation @@ -359,61 +348,11 @@ func file_datasource_v2_proto_init() { if File_datasource_v2_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_datasource_v2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Observation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_datasource_v2_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_datasource_v2_proto_rawDesc), len(file_datasource_v2_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -424,7 +363,6 @@ func file_datasource_v2_proto_init() { MessageInfos: file_datasource_v2_proto_msgTypes, }.Build() File_datasource_v2_proto = out.File - file_datasource_v2_proto_rawDesc = nil file_datasource_v2_proto_goTypes = nil file_datasource_v2_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/v2/datasource_v2_grpc.pb.go b/pkg/loop/internal/pb/mercury/v2/datasource_v2_grpc.pb.go index 5550fb53a..caaec1f16 100644 --- a/pkg/loop/internal/pb/mercury/v2/datasource_v2_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/v2/datasource_v2_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: datasource_v2.proto package mercuryv2pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataSource_Observe_FullMethodName = "/loop.internal.pb.mercury.v2.DataSource/Observe" @@ -25,6 +25,8 @@ const ( // DataSourceClient is the client API for DataSource service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// DataSource is a gRPC adapter for [pkg/types/mercury/v2/DataSource] type DataSourceClient interface { Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveResponse, error) } @@ -38,8 +40,9 @@ func NewDataSourceClient(cc grpc.ClientConnInterface) DataSourceClient { } func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObserveResponse) - err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +51,26 @@ func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts // DataSourceServer is the server API for DataSource service. // All implementations must embed UnimplementedDataSourceServer -// for forward compatibility +// for forward compatibility. +// +// DataSource is a gRPC adapter for [pkg/types/mercury/v2/DataSource] type DataSourceServer interface { Observe(context.Context, *ObserveRequest) (*ObserveResponse, error) mustEmbedUnimplementedDataSourceServer() } -// UnimplementedDataSourceServer must be embedded to have forward compatible implementations. -type UnimplementedDataSourceServer struct { -} +// UnimplementedDataSourceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataSourceServer struct{} func (UnimplementedDataSourceServer) Observe(context.Context, *ObserveRequest) (*ObserveResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Observe not implemented") } func (UnimplementedDataSourceServer) mustEmbedUnimplementedDataSourceServer() {} +func (UnimplementedDataSourceServer) testEmbeddedByValue() {} // UnsafeDataSourceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataSourceServer will @@ -71,6 +80,13 @@ type UnsafeDataSourceServer interface { } func RegisterDataSourceServer(s grpc.ServiceRegistrar, srv DataSourceServer) { + // If the following call pancis, it indicates UnimplementedDataSourceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataSource_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/v2/reportcodec_v2.pb.go b/pkg/loop/internal/pb/mercury/v2/reportcodec_v2.pb.go index 90d7e48a6..d7f906ec2 100644 --- a/pkg/loop/internal/pb/mercury/v2/reportcodec_v2.pb.go +++ b/pkg/loop/internal/pb/mercury/v2/reportcodec_v2.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: reportcodec_v2.proto package mercuryv2pb @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,25 +24,22 @@ const ( // ReportFields is gRPC wrapper for struct [github.com/smartcontractkit/chainlink-data-streams/mercury/v2/ReportFields]. type ReportFields struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ValidFromTimestamp uint32 `protobuf:"varint,1,opt,name=validFromTimestamp,proto3" json:"validFromTimestamp,omitempty"` - Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - NativeFee *pb.BigInt `protobuf:"bytes,3,opt,name=nativeFee,proto3" json:"nativeFee,omitempty"` - LinkFee *pb.BigInt `protobuf:"bytes,4,opt,name=linkFee,proto3" json:"linkFee,omitempty"` - ExpiresAt uint32 `protobuf:"varint,5,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` - BenchmarkPrice *pb.BigInt `protobuf:"bytes,6,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ValidFromTimestamp uint32 `protobuf:"varint,1,opt,name=validFromTimestamp,proto3" json:"validFromTimestamp,omitempty"` + Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + NativeFee *pb.BigInt `protobuf:"bytes,3,opt,name=nativeFee,proto3" json:"nativeFee,omitempty"` + LinkFee *pb.BigInt `protobuf:"bytes,4,opt,name=linkFee,proto3" json:"linkFee,omitempty"` + ExpiresAt uint32 `protobuf:"varint,5,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` + BenchmarkPrice *pb.BigInt `protobuf:"bytes,6,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportFields) Reset() { *x = ReportFields{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportFields) String() string { @@ -52,7 +50,7 @@ func (*ReportFields) ProtoMessage() {} func (x *ReportFields) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -111,20 +109,17 @@ func (x *ReportFields) GetBenchmarkPrice() *pb.BigInt { // BuildReportRequest is gRPC adapter for [github.com/smartcontractkit/chainlink-data-streams/mercury/v2/ReportCodec.BuildReport]. type BuildReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ReportFields *ReportFields `protobuf:"bytes,1,opt,name=reportFields,proto3" json:"reportFields,omitempty"` unknownFields protoimpl.UnknownFields - - ReportFields *ReportFields `protobuf:"bytes,1,opt,name=reportFields,proto3" json:"reportFields,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportRequest) Reset() { *x = BuildReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v2_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v2_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportRequest) String() string { @@ -135,7 +130,7 @@ func (*BuildReportRequest) ProtoMessage() {} func (x *BuildReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v2_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -159,20 +154,17 @@ func (x *BuildReportRequest) GetReportFields() *ReportFields { // BuildReportReply is gRPC adapter for the return values of [github.com/smartcontractkit/chainlink-data-streams/mercury/v2/ReportCodec.BuildReport]. type BuildReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportReply) Reset() { *x = BuildReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v2_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v2_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportReply) String() string { @@ -183,7 +175,7 @@ func (*BuildReportReply) ProtoMessage() {} func (x *BuildReportReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v2_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -207,20 +199,17 @@ func (x *BuildReportReply) GetReport() []byte { // MaxReportLengthRequest is gRPC adapter for [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/ReportCodec.MaxReportLength]. type MaxReportLengthRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NumOracles uint64 `protobuf:"varint,1,opt,name=numOracles,proto3" json:"numOracles,omitempty"` unknownFields protoimpl.UnknownFields - - NumOracles uint64 `protobuf:"varint,1,opt,name=numOracles,proto3" json:"numOracles,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthRequest) Reset() { *x = MaxReportLengthRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v2_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v2_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthRequest) String() string { @@ -231,7 +220,7 @@ func (*MaxReportLengthRequest) ProtoMessage() {} func (x *MaxReportLengthRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v2_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -255,20 +244,17 @@ func (x *MaxReportLengthRequest) GetNumOracles() uint64 { // MaxReportLengthReply has return arguments for [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/ReportCodec.MaxReportLength]. type MaxReportLengthReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxReportLength uint64 `protobuf:"varint,1,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxReportLength uint64 `protobuf:"varint,1,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthReply) Reset() { *x = MaxReportLengthReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v2_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v2_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthReply) String() string { @@ -279,7 +265,7 @@ func (*MaxReportLengthReply) ProtoMessage() {} func (x *MaxReportLengthReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v2_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -303,20 +289,17 @@ func (x *MaxReportLengthReply) GetMaxReportLength() uint64 { // ObservationTimestampFromReportRequest has arguments for [github.com/smartcontractkit/chainlink-data-streams/mercury/v1/ReportCodec.ObservationTimestampFromReport]. type ObservationTimestampFromReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationTimestampFromReportRequest) Reset() { *x = ObservationTimestampFromReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v2_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v2_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationTimestampFromReportRequest) String() string { @@ -327,7 +310,7 @@ func (*ObservationTimestampFromReportRequest) ProtoMessage() {} func (x *ObservationTimestampFromReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v2_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -351,20 +334,17 @@ func (x *ObservationTimestampFromReportRequest) GetReport() []byte { // ObservationTimestampFromReportReply has return arguments for [github.com/smartcontractkit/chainlink-data-streams/mercury/v1/ReportCodec.ObservationTimestampFromReport]. type ObservationTimestampFromReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationTimestampFromReportReply) Reset() { *x = ObservationTimestampFromReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v2_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v2_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationTimestampFromReportReply) String() string { @@ -375,7 +355,7 @@ func (*ObservationTimestampFromReportReply) ProtoMessage() {} func (x *ObservationTimestampFromReportReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v2_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -399,7 +379,7 @@ func (x *ObservationTimestampFromReportReply) GetTimestamp() uint32 { var File_reportcodec_v2_proto protoreflect.FileDescriptor -var file_reportcodec_v2_proto_rawDesc = []byte{ +var file_reportcodec_v2_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x76, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, @@ -479,22 +459,22 @@ var file_reportcodec_v2_proto_rawDesc = []byte{ 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x76, 0x32, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_reportcodec_v2_proto_rawDescOnce sync.Once - file_reportcodec_v2_proto_rawDescData = file_reportcodec_v2_proto_rawDesc + file_reportcodec_v2_proto_rawDescData []byte ) func file_reportcodec_v2_proto_rawDescGZIP() []byte { file_reportcodec_v2_proto_rawDescOnce.Do(func() { - file_reportcodec_v2_proto_rawDescData = protoimpl.X.CompressGZIP(file_reportcodec_v2_proto_rawDescData) + file_reportcodec_v2_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reportcodec_v2_proto_rawDesc), len(file_reportcodec_v2_proto_rawDesc))) }) return file_reportcodec_v2_proto_rawDescData } var file_reportcodec_v2_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_reportcodec_v2_proto_goTypes = []interface{}{ +var file_reportcodec_v2_proto_goTypes = []any{ (*ReportFields)(nil), // 0: loop.internal.pb.mercury.v2.ReportFields (*BuildReportRequest)(nil), // 1: loop.internal.pb.mercury.v2.BuildReportRequest (*BuildReportReply)(nil), // 2: loop.internal.pb.mercury.v2.BuildReportReply @@ -527,97 +507,11 @@ func file_reportcodec_v2_proto_init() { if File_reportcodec_v2_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_reportcodec_v2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportFields); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationTimestampFromReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationTimestampFromReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_reportcodec_v2_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_reportcodec_v2_proto_rawDesc), len(file_reportcodec_v2_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, @@ -628,7 +522,6 @@ func file_reportcodec_v2_proto_init() { MessageInfos: file_reportcodec_v2_proto_msgTypes, }.Build() File_reportcodec_v2_proto = out.File - file_reportcodec_v2_proto_rawDesc = nil file_reportcodec_v2_proto_goTypes = nil file_reportcodec_v2_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/v2/reportcodec_v2_grpc.pb.go b/pkg/loop/internal/pb/mercury/v2/reportcodec_v2_grpc.pb.go index f2e76dbed..d01bc0c78 100644 --- a/pkg/loop/internal/pb/mercury/v2/reportcodec_v2_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/v2/reportcodec_v2_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: reportcodec_v2.proto package mercuryv2pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReportCodec_BuildReport_FullMethodName = "/loop.internal.pb.mercury.v2.ReportCodec/BuildReport" @@ -27,6 +27,8 @@ const ( // ReportCodecClient is the client API for ReportCodec service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v2/ReportCodec]. type ReportCodecClient interface { BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) @@ -42,8 +44,9 @@ func NewReportCodecClient(cc grpc.ClientConnInterface) ReportCodecClient { } func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +54,9 @@ func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequ } func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +64,9 @@ func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLe } func (c *reportCodecClient) ObservationTimestampFromReport(ctx context.Context, in *ObservationTimestampFromReportRequest, opts ...grpc.CallOption) (*ObservationTimestampFromReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObservationTimestampFromReportReply) - err := c.cc.Invoke(ctx, ReportCodec_ObservationTimestampFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_ObservationTimestampFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +75,9 @@ func (c *reportCodecClient) ObservationTimestampFromReport(ctx context.Context, // ReportCodecServer is the server API for ReportCodec service. // All implementations must embed UnimplementedReportCodecServer -// for forward compatibility +// for forward compatibility. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v2/ReportCodec]. type ReportCodecServer interface { BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) MaxReportLength(context.Context, *MaxReportLengthRequest) (*MaxReportLengthReply, error) @@ -78,9 +85,12 @@ type ReportCodecServer interface { mustEmbedUnimplementedReportCodecServer() } -// UnimplementedReportCodecServer must be embedded to have forward compatible implementations. -type UnimplementedReportCodecServer struct { -} +// UnimplementedReportCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecServer struct{} func (UnimplementedReportCodecServer) BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -92,6 +102,7 @@ func (UnimplementedReportCodecServer) ObservationTimestampFromReport(context.Con return nil, status.Errorf(codes.Unimplemented, "method ObservationTimestampFromReport not implemented") } func (UnimplementedReportCodecServer) mustEmbedUnimplementedReportCodecServer() {} +func (UnimplementedReportCodecServer) testEmbeddedByValue() {} // UnsafeReportCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecServer will @@ -101,6 +112,13 @@ type UnsafeReportCodecServer interface { } func RegisterReportCodecServer(s grpc.ServiceRegistrar, srv ReportCodecServer) { + // If the following call pancis, it indicates UnimplementedReportCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodec_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/v3/datasource_v3.pb.go b/pkg/loop/internal/pb/mercury/v3/datasource_v3.pb.go index 34b810d74..edbdcbdb4 100644 --- a/pkg/loop/internal/pb/mercury/v3/datasource_v3.pb.go +++ b/pkg/loop/internal/pb/mercury/v3/datasource_v3.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: datasource_v3.proto package mercuryv3pb @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,21 +24,18 @@ const ( // ObserveRequest is the request payload for the Observe method, which is a gRPC adapter for input arguments of [pkg/types/mercury/v1/DataSource.Observe] type ObserveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=report_timestamp,json=reportTimestamp,proto3" json:"report_timestamp,omitempty"` - FetchMaxFinalizedBlockNum bool `protobuf:"varint,2,opt,name=fetchMaxFinalizedBlockNum,proto3" json:"fetchMaxFinalizedBlockNum,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=report_timestamp,json=reportTimestamp,proto3" json:"report_timestamp,omitempty"` + FetchMaxFinalizedBlockNum bool `protobuf:"varint,2,opt,name=fetchMaxFinalizedBlockNum,proto3" json:"fetchMaxFinalizedBlockNum,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObserveRequest) Reset() { *x = ObserveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v3_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v3_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveRequest) String() string { @@ -48,7 +46,7 @@ func (*ObserveRequest) ProtoMessage() {} func (x *ObserveRequest) ProtoReflect() protoreflect.Message { mi := &file_datasource_v3_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,22 +77,19 @@ func (x *ObserveRequest) GetFetchMaxFinalizedBlockNum() bool { // Block is a gRPC adapter for [pkg/types/mercury/v1/Block] type Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v3_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v3_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -105,7 +100,7 @@ func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { mi := &file_datasource_v3_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -143,25 +138,22 @@ func (x *Block) GetTimestamp() uint64 { // Observation is a gRPC adapter for [pkg/types/mercury/v1/Observation] type Observation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BenchmarkPrice *pb.BigInt `protobuf:"bytes,1,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` - Bid *pb.BigInt `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"` - Ask *pb.BigInt `protobuf:"bytes,3,opt,name=ask,proto3" json:"ask,omitempty"` - MaxFinalizedTimestamp int64 `protobuf:"varint,4,opt,name=maxFinalizedTimestamp,proto3" json:"maxFinalizedTimestamp,omitempty"` - LinkPrice *pb.BigInt `protobuf:"bytes,5,opt,name=linkPrice,proto3" json:"linkPrice,omitempty"` - NativePrice *pb.BigInt `protobuf:"bytes,6,opt,name=nativePrice,proto3" json:"nativePrice,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + BenchmarkPrice *pb.BigInt `protobuf:"bytes,1,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + Bid *pb.BigInt `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"` + Ask *pb.BigInt `protobuf:"bytes,3,opt,name=ask,proto3" json:"ask,omitempty"` + MaxFinalizedTimestamp int64 `protobuf:"varint,4,opt,name=maxFinalizedTimestamp,proto3" json:"maxFinalizedTimestamp,omitempty"` + LinkPrice *pb.BigInt `protobuf:"bytes,5,opt,name=linkPrice,proto3" json:"linkPrice,omitempty"` + NativePrice *pb.BigInt `protobuf:"bytes,6,opt,name=nativePrice,proto3" json:"nativePrice,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Observation) Reset() { *x = Observation{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v3_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v3_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Observation) String() string { @@ -172,7 +164,7 @@ func (*Observation) ProtoMessage() {} func (x *Observation) ProtoReflect() protoreflect.Message { mi := &file_datasource_v3_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -231,20 +223,17 @@ func (x *Observation) GetNativePrice() *pb.BigInt { // ObserveResponse is the response payload for the Observe method, which is a gRPC adapter for output arguments of [pkg/types/mercury/v1/DataSource.Observe] type ObserveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation *Observation `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` unknownFields protoimpl.UnknownFields - - Observation *Observation `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObserveResponse) Reset() { *x = ObserveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v3_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v3_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveResponse) String() string { @@ -255,7 +244,7 @@ func (*ObserveResponse) ProtoMessage() {} func (x *ObserveResponse) ProtoReflect() protoreflect.Message { mi := &file_datasource_v3_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -279,7 +268,7 @@ func (x *ObserveResponse) GetObservation() *Observation { var File_datasource_v3_proto protoreflect.FileDescriptor -var file_datasource_v3_proto_rawDesc = []byte{ +var file_datasource_v3_proto_rawDesc = string([]byte{ 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2e, @@ -336,22 +325,22 @@ var file_datasource_v3_proto_rawDesc = []byte{ 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2f, 0x76, 0x33, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x76, 0x33, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_datasource_v3_proto_rawDescOnce sync.Once - file_datasource_v3_proto_rawDescData = file_datasource_v3_proto_rawDesc + file_datasource_v3_proto_rawDescData []byte ) func file_datasource_v3_proto_rawDescGZIP() []byte { file_datasource_v3_proto_rawDescOnce.Do(func() { - file_datasource_v3_proto_rawDescData = protoimpl.X.CompressGZIP(file_datasource_v3_proto_rawDescData) + file_datasource_v3_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_datasource_v3_proto_rawDesc), len(file_datasource_v3_proto_rawDesc))) }) return file_datasource_v3_proto_rawDescData } var file_datasource_v3_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_datasource_v3_proto_goTypes = []interface{}{ +var file_datasource_v3_proto_goTypes = []any{ (*ObserveRequest)(nil), // 0: loop.internal.pb.mercury.v3.ObserveRequest (*Block)(nil), // 1: loop.internal.pb.mercury.v3.Block (*Observation)(nil), // 2: loop.internal.pb.mercury.v3.Observation @@ -381,61 +370,11 @@ func file_datasource_v3_proto_init() { if File_datasource_v3_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_datasource_v3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Observation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v3_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_datasource_v3_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_datasource_v3_proto_rawDesc), len(file_datasource_v3_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -446,7 +385,6 @@ func file_datasource_v3_proto_init() { MessageInfos: file_datasource_v3_proto_msgTypes, }.Build() File_datasource_v3_proto = out.File - file_datasource_v3_proto_rawDesc = nil file_datasource_v3_proto_goTypes = nil file_datasource_v3_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/v3/datasource_v3_grpc.pb.go b/pkg/loop/internal/pb/mercury/v3/datasource_v3_grpc.pb.go index 203cbfab5..6c23fc981 100644 --- a/pkg/loop/internal/pb/mercury/v3/datasource_v3_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/v3/datasource_v3_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: datasource_v3.proto package mercuryv3pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataSource_Observe_FullMethodName = "/loop.internal.pb.mercury.v3.DataSource/Observe" @@ -25,6 +25,8 @@ const ( // DataSourceClient is the client API for DataSource service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// DataSource is a gRPC adapter for [pkg/types/mercury/v1/DataSource] type DataSourceClient interface { Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveResponse, error) } @@ -38,8 +40,9 @@ func NewDataSourceClient(cc grpc.ClientConnInterface) DataSourceClient { } func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObserveResponse) - err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +51,26 @@ func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts // DataSourceServer is the server API for DataSource service. // All implementations must embed UnimplementedDataSourceServer -// for forward compatibility +// for forward compatibility. +// +// DataSource is a gRPC adapter for [pkg/types/mercury/v1/DataSource] type DataSourceServer interface { Observe(context.Context, *ObserveRequest) (*ObserveResponse, error) mustEmbedUnimplementedDataSourceServer() } -// UnimplementedDataSourceServer must be embedded to have forward compatible implementations. -type UnimplementedDataSourceServer struct { -} +// UnimplementedDataSourceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataSourceServer struct{} func (UnimplementedDataSourceServer) Observe(context.Context, *ObserveRequest) (*ObserveResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Observe not implemented") } func (UnimplementedDataSourceServer) mustEmbedUnimplementedDataSourceServer() {} +func (UnimplementedDataSourceServer) testEmbeddedByValue() {} // UnsafeDataSourceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataSourceServer will @@ -71,6 +80,13 @@ type UnsafeDataSourceServer interface { } func RegisterDataSourceServer(s grpc.ServiceRegistrar, srv DataSourceServer) { + // If the following call pancis, it indicates UnimplementedDataSourceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataSource_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/v3/reportcodec_v3.pb.go b/pkg/loop/internal/pb/mercury/v3/reportcodec_v3.pb.go index af13c14a3..008722342 100644 --- a/pkg/loop/internal/pb/mercury/v3/reportcodec_v3.pb.go +++ b/pkg/loop/internal/pb/mercury/v3/reportcodec_v3.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: reportcodec_v3.proto package mercuryv3pb @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,27 +24,24 @@ const ( // ReportFields is a gRPC adapter for the ReportFields struct [pkg/types/mercury/v3/ReportFields]. type ReportFields struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ValidFromTimestamp uint32 `protobuf:"varint,1,opt,name=validFromTimestamp,proto3" json:"validFromTimestamp,omitempty"` - Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - NativeFee *pb.BigInt `protobuf:"bytes,3,opt,name=nativeFee,proto3" json:"nativeFee,omitempty"` - LinkFee *pb.BigInt `protobuf:"bytes,4,opt,name=linkFee,proto3" json:"linkFee,omitempty"` - ExpiresAt uint32 `protobuf:"varint,5,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` - BenchmarkPrice *pb.BigInt `protobuf:"bytes,6,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` - Bid *pb.BigInt `protobuf:"bytes,7,opt,name=bid,proto3" json:"bid,omitempty"` - Ask *pb.BigInt `protobuf:"bytes,8,opt,name=ask,proto3" json:"ask,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ValidFromTimestamp uint32 `protobuf:"varint,1,opt,name=validFromTimestamp,proto3" json:"validFromTimestamp,omitempty"` + Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + NativeFee *pb.BigInt `protobuf:"bytes,3,opt,name=nativeFee,proto3" json:"nativeFee,omitempty"` + LinkFee *pb.BigInt `protobuf:"bytes,4,opt,name=linkFee,proto3" json:"linkFee,omitempty"` + ExpiresAt uint32 `protobuf:"varint,5,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` + BenchmarkPrice *pb.BigInt `protobuf:"bytes,6,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + Bid *pb.BigInt `protobuf:"bytes,7,opt,name=bid,proto3" json:"bid,omitempty"` + Ask *pb.BigInt `protobuf:"bytes,8,opt,name=ask,proto3" json:"ask,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportFields) Reset() { *x = ReportFields{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v3_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v3_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportFields) String() string { @@ -54,7 +52,7 @@ func (*ReportFields) ProtoMessage() {} func (x *ReportFields) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v3_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -127,20 +125,17 @@ func (x *ReportFields) GetAsk() *pb.BigInt { // BuildReportRequest is gRPC adapter for the inputs arguments of [pkg/types/mercury/v3/ReportCodec.BuildReport]. type BuildReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ReportFields *ReportFields `protobuf:"bytes,1,opt,name=reportFields,proto3" json:"reportFields,omitempty"` unknownFields protoimpl.UnknownFields - - ReportFields *ReportFields `protobuf:"bytes,1,opt,name=reportFields,proto3" json:"reportFields,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportRequest) Reset() { *x = BuildReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v3_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v3_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportRequest) String() string { @@ -151,7 +146,7 @@ func (*BuildReportRequest) ProtoMessage() {} func (x *BuildReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v3_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -175,20 +170,17 @@ func (x *BuildReportRequest) GetReportFields() *ReportFields { // BuildReportReply is gRPC adapter for the return values of [pkg/types/mercury/v3/ReportCodec.BuildReport]. type BuildReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportReply) Reset() { *x = BuildReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v3_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v3_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportReply) String() string { @@ -199,7 +191,7 @@ func (*BuildReportReply) ProtoMessage() {} func (x *BuildReportReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v3_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -223,20 +215,17 @@ func (x *BuildReportReply) GetReport() []byte { // MaxReportLengthRequest is gRPC adapter for the input arguments of [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/ReportCodec.MaxReportLength]. type MaxReportLengthRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NumOracles uint64 `protobuf:"varint,1,opt,name=numOracles,proto3" json:"numOracles,omitempty"` unknownFields protoimpl.UnknownFields - - NumOracles uint64 `protobuf:"varint,1,opt,name=numOracles,proto3" json:"numOracles,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthRequest) Reset() { *x = MaxReportLengthRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v3_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v3_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthRequest) String() string { @@ -247,7 +236,7 @@ func (*MaxReportLengthRequest) ProtoMessage() {} func (x *MaxReportLengthRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v3_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -271,20 +260,17 @@ func (x *MaxReportLengthRequest) GetNumOracles() uint64 { // MaxReportLengthReply is gRPC adapter for the return values of [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/ReportCodec.MaxReportLength]. type MaxReportLengthReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxReportLength uint64 `protobuf:"varint,1,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxReportLength uint64 `protobuf:"varint,1,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthReply) Reset() { *x = MaxReportLengthReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v3_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v3_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthReply) String() string { @@ -295,7 +281,7 @@ func (*MaxReportLengthReply) ProtoMessage() {} func (x *MaxReportLengthReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v3_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -319,20 +305,17 @@ func (x *MaxReportLengthReply) GetMaxReportLength() uint64 { // ObservationTimestampFromReportRequest is gRPC adapter for the input arguments [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/ReportCodec.ObservationTimestampFromReport]. type ObservationTimestampFromReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationTimestampFromReportRequest) Reset() { *x = ObservationTimestampFromReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v3_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v3_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationTimestampFromReportRequest) String() string { @@ -343,7 +326,7 @@ func (*ObservationTimestampFromReportRequest) ProtoMessage() {} func (x *ObservationTimestampFromReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v3_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -367,20 +350,17 @@ func (x *ObservationTimestampFromReportRequest) GetReport() []byte { // ObservationTimestampFromReportReply is gRPC adapter for the return values of [github.com/smartcontractkit/chainlink-data-streams/mercury/v3/ReportCodec.ObservationTimestampFromReport]. type ObservationTimestampFromReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationTimestampFromReportReply) Reset() { *x = ObservationTimestampFromReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v3_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v3_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationTimestampFromReportReply) String() string { @@ -391,7 +371,7 @@ func (*ObservationTimestampFromReportReply) ProtoMessage() {} func (x *ObservationTimestampFromReportReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v3_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -415,7 +395,7 @@ func (x *ObservationTimestampFromReportReply) GetTimestamp() uint32 { var File_reportcodec_v3_proto protoreflect.FileDescriptor -var file_reportcodec_v3_proto_rawDesc = []byte{ +var file_reportcodec_v3_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x76, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, @@ -499,22 +479,22 @@ var file_reportcodec_v3_proto_rawDesc = []byte{ 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2f, 0x76, 0x33, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x76, 0x33, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_reportcodec_v3_proto_rawDescOnce sync.Once - file_reportcodec_v3_proto_rawDescData = file_reportcodec_v3_proto_rawDesc + file_reportcodec_v3_proto_rawDescData []byte ) func file_reportcodec_v3_proto_rawDescGZIP() []byte { file_reportcodec_v3_proto_rawDescOnce.Do(func() { - file_reportcodec_v3_proto_rawDescData = protoimpl.X.CompressGZIP(file_reportcodec_v3_proto_rawDescData) + file_reportcodec_v3_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reportcodec_v3_proto_rawDesc), len(file_reportcodec_v3_proto_rawDesc))) }) return file_reportcodec_v3_proto_rawDescData } var file_reportcodec_v3_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_reportcodec_v3_proto_goTypes = []interface{}{ +var file_reportcodec_v3_proto_goTypes = []any{ (*ReportFields)(nil), // 0: loop.internal.pb.mercury.v3.ReportFields (*BuildReportRequest)(nil), // 1: loop.internal.pb.mercury.v3.BuildReportRequest (*BuildReportReply)(nil), // 2: loop.internal.pb.mercury.v3.BuildReportReply @@ -549,97 +529,11 @@ func file_reportcodec_v3_proto_init() { if File_reportcodec_v3_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_reportcodec_v3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportFields); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v3_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v3_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v3_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationTimestampFromReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v3_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationTimestampFromReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_reportcodec_v3_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_reportcodec_v3_proto_rawDesc), len(file_reportcodec_v3_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, @@ -650,7 +544,6 @@ func file_reportcodec_v3_proto_init() { MessageInfos: file_reportcodec_v3_proto_msgTypes, }.Build() File_reportcodec_v3_proto = out.File - file_reportcodec_v3_proto_rawDesc = nil file_reportcodec_v3_proto_goTypes = nil file_reportcodec_v3_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/v3/reportcodec_v3_grpc.pb.go b/pkg/loop/internal/pb/mercury/v3/reportcodec_v3_grpc.pb.go index 0965c4805..6f0c48141 100644 --- a/pkg/loop/internal/pb/mercury/v3/reportcodec_v3_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/v3/reportcodec_v3_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: reportcodec_v3.proto package mercuryv3pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReportCodec_BuildReport_FullMethodName = "/loop.internal.pb.mercury.v3.ReportCodec/BuildReport" @@ -27,6 +27,10 @@ const ( // ReportCodecClient is the client API for ReportCodec service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v3/ReportCodec]. +// NOTE: MaxReport and ObservationTimestampFromReport are common amongst all mercury versions, but BuildReport is not. +// in principle they could be refactor to be shared, but it's not clear if that's worth the effort. type ReportCodecClient interface { BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) @@ -42,8 +46,9 @@ func NewReportCodecClient(cc grpc.ClientConnInterface) ReportCodecClient { } func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +56,9 @@ func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequ } func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +66,9 @@ func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLe } func (c *reportCodecClient) ObservationTimestampFromReport(ctx context.Context, in *ObservationTimestampFromReportRequest, opts ...grpc.CallOption) (*ObservationTimestampFromReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObservationTimestampFromReportReply) - err := c.cc.Invoke(ctx, ReportCodec_ObservationTimestampFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_ObservationTimestampFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +77,11 @@ func (c *reportCodecClient) ObservationTimestampFromReport(ctx context.Context, // ReportCodecServer is the server API for ReportCodec service. // All implementations must embed UnimplementedReportCodecServer -// for forward compatibility +// for forward compatibility. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v3/ReportCodec]. +// NOTE: MaxReport and ObservationTimestampFromReport are common amongst all mercury versions, but BuildReport is not. +// in principle they could be refactor to be shared, but it's not clear if that's worth the effort. type ReportCodecServer interface { BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) MaxReportLength(context.Context, *MaxReportLengthRequest) (*MaxReportLengthReply, error) @@ -78,9 +89,12 @@ type ReportCodecServer interface { mustEmbedUnimplementedReportCodecServer() } -// UnimplementedReportCodecServer must be embedded to have forward compatible implementations. -type UnimplementedReportCodecServer struct { -} +// UnimplementedReportCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecServer struct{} func (UnimplementedReportCodecServer) BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -92,6 +106,7 @@ func (UnimplementedReportCodecServer) ObservationTimestampFromReport(context.Con return nil, status.Errorf(codes.Unimplemented, "method ObservationTimestampFromReport not implemented") } func (UnimplementedReportCodecServer) mustEmbedUnimplementedReportCodecServer() {} +func (UnimplementedReportCodecServer) testEmbeddedByValue() {} // UnsafeReportCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecServer will @@ -101,6 +116,13 @@ type UnsafeReportCodecServer interface { } func RegisterReportCodecServer(s grpc.ServiceRegistrar, srv ReportCodecServer) { + // If the following call pancis, it indicates UnimplementedReportCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodec_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/v4/datasource_v4.pb.go b/pkg/loop/internal/pb/mercury/v4/datasource_v4.pb.go index 44fcccfad..e54995846 100644 --- a/pkg/loop/internal/pb/mercury/v4/datasource_v4.pb.go +++ b/pkg/loop/internal/pb/mercury/v4/datasource_v4.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: datasource_v4.proto package mercuryv4pb @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,21 +24,18 @@ const ( // ObserveRequest is the request payload for the Observe method, which is a gRPC adapter for input arguments of [pkg/types/mercury/v1/DataSource.Observe] type ObserveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=report_timestamp,json=reportTimestamp,proto3" json:"report_timestamp,omitempty"` - FetchMaxFinalizedBlockNum bool `protobuf:"varint,2,opt,name=fetchMaxFinalizedBlockNum,proto3" json:"fetchMaxFinalizedBlockNum,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *pb.ReportTimestamp `protobuf:"bytes,1,opt,name=report_timestamp,json=reportTimestamp,proto3" json:"report_timestamp,omitempty"` + FetchMaxFinalizedBlockNum bool `protobuf:"varint,2,opt,name=fetchMaxFinalizedBlockNum,proto3" json:"fetchMaxFinalizedBlockNum,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObserveRequest) Reset() { *x = ObserveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v4_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v4_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveRequest) String() string { @@ -48,7 +46,7 @@ func (*ObserveRequest) ProtoMessage() {} func (x *ObserveRequest) ProtoReflect() protoreflect.Message { mi := &file_datasource_v4_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,22 +77,19 @@ func (x *ObserveRequest) GetFetchMaxFinalizedBlockNum() bool { // Block is a gRPC adapter for [pkg/types/mercury/v1/Block] type Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v4_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v4_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -105,7 +100,7 @@ func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { mi := &file_datasource_v4_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -143,11 +138,8 @@ func (x *Block) GetTimestamp() uint64 { // Observation is a gRPC adapter for [pkg/types/mercury/v1/Observation] type Observation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BenchmarkPrice *pb.BigInt `protobuf:"bytes,1,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + BenchmarkPrice *pb.BigInt `protobuf:"bytes,1,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` // Deprecated: Marked as deprecated in datasource_v4.proto. Bid *pb.BigInt `protobuf:"bytes,2,opt,name=bid,proto3" json:"bid,omitempty"` // Field not used for v4. // Deprecated: Marked as deprecated in datasource_v4.proto. @@ -156,15 +148,15 @@ type Observation struct { LinkPrice *pb.BigInt `protobuf:"bytes,5,opt,name=linkPrice,proto3" json:"linkPrice,omitempty"` NativePrice *pb.BigInt `protobuf:"bytes,6,opt,name=nativePrice,proto3" json:"nativePrice,omitempty"` MarketStatus uint32 `protobuf:"varint,7,opt,name=marketStatus,proto3" json:"marketStatus,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Observation) Reset() { *x = Observation{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v4_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v4_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Observation) String() string { @@ -175,7 +167,7 @@ func (*Observation) ProtoMessage() {} func (x *Observation) ProtoReflect() protoreflect.Message { mi := &file_datasource_v4_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -243,20 +235,17 @@ func (x *Observation) GetMarketStatus() uint32 { // ObserveResponse is the response payload for the Observe method, which is a gRPC adapter for output arguments of [pkg/types/mercury/v1/DataSource.Observe] type ObserveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation *Observation `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` unknownFields protoimpl.UnknownFields - - Observation *Observation `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObserveResponse) Reset() { *x = ObserveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_datasource_v4_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_datasource_v4_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObserveResponse) String() string { @@ -267,7 +256,7 @@ func (*ObserveResponse) ProtoMessage() {} func (x *ObserveResponse) ProtoReflect() protoreflect.Message { mi := &file_datasource_v4_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -291,7 +280,7 @@ func (x *ObserveResponse) GetObservation() *Observation { var File_datasource_v4_proto protoreflect.FileDescriptor -var file_datasource_v4_proto_rawDesc = []byte{ +var file_datasource_v4_proto_rawDesc = string([]byte{ 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2e, @@ -351,22 +340,22 @@ var file_datasource_v4_proto_rawDesc = []byte{ 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2f, 0x76, 0x34, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x76, 0x34, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_datasource_v4_proto_rawDescOnce sync.Once - file_datasource_v4_proto_rawDescData = file_datasource_v4_proto_rawDesc + file_datasource_v4_proto_rawDescData []byte ) func file_datasource_v4_proto_rawDescGZIP() []byte { file_datasource_v4_proto_rawDescOnce.Do(func() { - file_datasource_v4_proto_rawDescData = protoimpl.X.CompressGZIP(file_datasource_v4_proto_rawDescData) + file_datasource_v4_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_datasource_v4_proto_rawDesc), len(file_datasource_v4_proto_rawDesc))) }) return file_datasource_v4_proto_rawDescData } var file_datasource_v4_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_datasource_v4_proto_goTypes = []interface{}{ +var file_datasource_v4_proto_goTypes = []any{ (*ObserveRequest)(nil), // 0: loop.internal.pb.mercury.v4.ObserveRequest (*Block)(nil), // 1: loop.internal.pb.mercury.v4.Block (*Observation)(nil), // 2: loop.internal.pb.mercury.v4.Observation @@ -396,61 +385,11 @@ func file_datasource_v4_proto_init() { if File_datasource_v4_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_datasource_v4_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v4_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v4_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Observation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_datasource_v4_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObserveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_datasource_v4_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_datasource_v4_proto_rawDesc), len(file_datasource_v4_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -461,7 +400,6 @@ func file_datasource_v4_proto_init() { MessageInfos: file_datasource_v4_proto_msgTypes, }.Build() File_datasource_v4_proto = out.File - file_datasource_v4_proto_rawDesc = nil file_datasource_v4_proto_goTypes = nil file_datasource_v4_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/v4/datasource_v4_grpc.pb.go b/pkg/loop/internal/pb/mercury/v4/datasource_v4_grpc.pb.go index f068d7003..5c4b16120 100644 --- a/pkg/loop/internal/pb/mercury/v4/datasource_v4_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/v4/datasource_v4_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: datasource_v4.proto package mercuryv4pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataSource_Observe_FullMethodName = "/loop.internal.pb.mercury.v4.DataSource/Observe" @@ -25,6 +25,8 @@ const ( // DataSourceClient is the client API for DataSource service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// DataSource is a gRPC adapter for [pkg/types/mercury/v1/DataSource] type DataSourceClient interface { Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveResponse, error) } @@ -38,8 +40,9 @@ func NewDataSourceClient(cc grpc.ClientConnInterface) DataSourceClient { } func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts ...grpc.CallOption) (*ObserveResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObserveResponse) - err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataSource_Observe_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +51,26 @@ func (c *dataSourceClient) Observe(ctx context.Context, in *ObserveRequest, opts // DataSourceServer is the server API for DataSource service. // All implementations must embed UnimplementedDataSourceServer -// for forward compatibility +// for forward compatibility. +// +// DataSource is a gRPC adapter for [pkg/types/mercury/v1/DataSource] type DataSourceServer interface { Observe(context.Context, *ObserveRequest) (*ObserveResponse, error) mustEmbedUnimplementedDataSourceServer() } -// UnimplementedDataSourceServer must be embedded to have forward compatible implementations. -type UnimplementedDataSourceServer struct { -} +// UnimplementedDataSourceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataSourceServer struct{} func (UnimplementedDataSourceServer) Observe(context.Context, *ObserveRequest) (*ObserveResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Observe not implemented") } func (UnimplementedDataSourceServer) mustEmbedUnimplementedDataSourceServer() {} +func (UnimplementedDataSourceServer) testEmbeddedByValue() {} // UnsafeDataSourceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataSourceServer will @@ -71,6 +80,13 @@ type UnsafeDataSourceServer interface { } func RegisterDataSourceServer(s grpc.ServiceRegistrar, srv DataSourceServer) { + // If the following call pancis, it indicates UnimplementedDataSourceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataSource_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/mercury/v4/reportcodec_v4.pb.go b/pkg/loop/internal/pb/mercury/v4/reportcodec_v4.pb.go index 5165c5707..16f4492f0 100644 --- a/pkg/loop/internal/pb/mercury/v4/reportcodec_v4.pb.go +++ b/pkg/loop/internal/pb/mercury/v4/reportcodec_v4.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: reportcodec_v4.proto package mercuryv4pb @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,30 +24,27 @@ const ( // ReportFields is a gRPC adapter for the ReportFields struct [pkg/types/mercury/v4/ReportFields]. type ReportFields struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ValidFromTimestamp uint32 `protobuf:"varint,1,opt,name=validFromTimestamp,proto3" json:"validFromTimestamp,omitempty"` - Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - NativeFee *pb.BigInt `protobuf:"bytes,3,opt,name=nativeFee,proto3" json:"nativeFee,omitempty"` - LinkFee *pb.BigInt `protobuf:"bytes,4,opt,name=linkFee,proto3" json:"linkFee,omitempty"` - ExpiresAt uint32 `protobuf:"varint,5,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` - BenchmarkPrice *pb.BigInt `protobuf:"bytes,6,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ValidFromTimestamp uint32 `protobuf:"varint,1,opt,name=validFromTimestamp,proto3" json:"validFromTimestamp,omitempty"` + Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + NativeFee *pb.BigInt `protobuf:"bytes,3,opt,name=nativeFee,proto3" json:"nativeFee,omitempty"` + LinkFee *pb.BigInt `protobuf:"bytes,4,opt,name=linkFee,proto3" json:"linkFee,omitempty"` + ExpiresAt uint32 `protobuf:"varint,5,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` + BenchmarkPrice *pb.BigInt `protobuf:"bytes,6,opt,name=benchmarkPrice,proto3" json:"benchmarkPrice,omitempty"` // Deprecated: Marked as deprecated in reportcodec_v4.proto. Bid *pb.BigInt `protobuf:"bytes,7,opt,name=bid,proto3" json:"bid,omitempty"` // Field not used for v4. // Deprecated: Marked as deprecated in reportcodec_v4.proto. - Ask *pb.BigInt `protobuf:"bytes,8,opt,name=ask,proto3" json:"ask,omitempty"` // Field not used for v4. - MarketStatus uint32 `protobuf:"varint,9,opt,name=marketStatus,proto3" json:"marketStatus,omitempty"` + Ask *pb.BigInt `protobuf:"bytes,8,opt,name=ask,proto3" json:"ask,omitempty"` // Field not used for v4. + MarketStatus uint32 `protobuf:"varint,9,opt,name=marketStatus,proto3" json:"marketStatus,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportFields) Reset() { *x = ReportFields{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v4_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v4_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportFields) String() string { @@ -57,7 +55,7 @@ func (*ReportFields) ProtoMessage() {} func (x *ReportFields) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v4_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -139,20 +137,17 @@ func (x *ReportFields) GetMarketStatus() uint32 { // BuildReportRequest is gRPC adapter for the inputs arguments of [pkg/types/mercury/v4/ReportCodec.BuildReport]. type BuildReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ReportFields *ReportFields `protobuf:"bytes,1,opt,name=reportFields,proto3" json:"reportFields,omitempty"` unknownFields protoimpl.UnknownFields - - ReportFields *ReportFields `protobuf:"bytes,1,opt,name=reportFields,proto3" json:"reportFields,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportRequest) Reset() { *x = BuildReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v4_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v4_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportRequest) String() string { @@ -163,7 +158,7 @@ func (*BuildReportRequest) ProtoMessage() {} func (x *BuildReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v4_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -187,20 +182,17 @@ func (x *BuildReportRequest) GetReportFields() *ReportFields { // BuildReportReply is gRPC adapter for the return values of [pkg/types/mercury/v4/ReportCodec.BuildReport]. type BuildReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BuildReportReply) Reset() { *x = BuildReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v4_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v4_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BuildReportReply) String() string { @@ -211,7 +203,7 @@ func (*BuildReportReply) ProtoMessage() {} func (x *BuildReportReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v4_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -235,20 +227,17 @@ func (x *BuildReportReply) GetReport() []byte { // MaxReportLengthRequest is gRPC adapter for the input arguments of [github.com/smartcontractkit/chainlink-data-streams/mercury/v4/ReportCodec.MaxReportLength]. type MaxReportLengthRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NumOracles uint64 `protobuf:"varint,1,opt,name=numOracles,proto3" json:"numOracles,omitempty"` unknownFields protoimpl.UnknownFields - - NumOracles uint64 `protobuf:"varint,1,opt,name=numOracles,proto3" json:"numOracles,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthRequest) Reset() { *x = MaxReportLengthRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v4_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v4_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthRequest) String() string { @@ -259,7 +248,7 @@ func (*MaxReportLengthRequest) ProtoMessage() {} func (x *MaxReportLengthRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v4_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -283,20 +272,17 @@ func (x *MaxReportLengthRequest) GetNumOracles() uint64 { // MaxReportLengthReply is gRPC adapter for the return values of [github.com/smartcontractkit/chainlink-data-streams/mercury/v4/ReportCodec.MaxReportLength]. type MaxReportLengthReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxReportLength uint64 `protobuf:"varint,1,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxReportLength uint64 `protobuf:"varint,1,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MaxReportLengthReply) Reset() { *x = MaxReportLengthReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v4_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v4_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MaxReportLengthReply) String() string { @@ -307,7 +293,7 @@ func (*MaxReportLengthReply) ProtoMessage() {} func (x *MaxReportLengthReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v4_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -331,20 +317,17 @@ func (x *MaxReportLengthReply) GetMaxReportLength() uint64 { // ObservationTimestampFromReportRequest is gRPC adapter for the input arguments [github.com/smartcontractkit/chainlink-data-streams/mercury/v4/ReportCodec.ObservationTimestampFromReport]. type ObservationTimestampFromReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationTimestampFromReportRequest) Reset() { *x = ObservationTimestampFromReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v4_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v4_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationTimestampFromReportRequest) String() string { @@ -355,7 +338,7 @@ func (*ObservationTimestampFromReportRequest) ProtoMessage() {} func (x *ObservationTimestampFromReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v4_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -379,20 +362,17 @@ func (x *ObservationTimestampFromReportRequest) GetReport() []byte { // ObservationTimestampFromReportReply is gRPC adapter for the return values of [github.com/smartcontractkit/chainlink-data-streams/mercury/v4/ReportCodec.ObservationTimestampFromReport]. type ObservationTimestampFromReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationTimestampFromReportReply) Reset() { *x = ObservationTimestampFromReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reportcodec_v4_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reportcodec_v4_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationTimestampFromReportReply) String() string { @@ -403,7 +383,7 @@ func (*ObservationTimestampFromReportReply) ProtoMessage() {} func (x *ObservationTimestampFromReportReply) ProtoReflect() protoreflect.Message { mi := &file_reportcodec_v4_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -427,7 +407,7 @@ func (x *ObservationTimestampFromReportReply) GetTimestamp() uint32 { var File_reportcodec_v4_proto protoreflect.FileDescriptor -var file_reportcodec_v4_proto_rawDesc = []byte{ +var file_reportcodec_v4_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x5f, 0x76, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, @@ -514,22 +494,22 @@ var file_reportcodec_v4_proto_rawDesc = []byte{ 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2f, 0x76, 0x34, 0x3b, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x76, 0x34, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_reportcodec_v4_proto_rawDescOnce sync.Once - file_reportcodec_v4_proto_rawDescData = file_reportcodec_v4_proto_rawDesc + file_reportcodec_v4_proto_rawDescData []byte ) func file_reportcodec_v4_proto_rawDescGZIP() []byte { file_reportcodec_v4_proto_rawDescOnce.Do(func() { - file_reportcodec_v4_proto_rawDescData = protoimpl.X.CompressGZIP(file_reportcodec_v4_proto_rawDescData) + file_reportcodec_v4_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reportcodec_v4_proto_rawDesc), len(file_reportcodec_v4_proto_rawDesc))) }) return file_reportcodec_v4_proto_rawDescData } var file_reportcodec_v4_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_reportcodec_v4_proto_goTypes = []interface{}{ +var file_reportcodec_v4_proto_goTypes = []any{ (*ReportFields)(nil), // 0: loop.internal.pb.mercury.v4.ReportFields (*BuildReportRequest)(nil), // 1: loop.internal.pb.mercury.v4.BuildReportRequest (*BuildReportReply)(nil), // 2: loop.internal.pb.mercury.v4.BuildReportReply @@ -564,97 +544,11 @@ func file_reportcodec_v4_proto_init() { if File_reportcodec_v4_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_reportcodec_v4_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportFields); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v4_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v4_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v4_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v4_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MaxReportLengthReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v4_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationTimestampFromReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reportcodec_v4_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationTimestampFromReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_reportcodec_v4_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_reportcodec_v4_proto_rawDesc), len(file_reportcodec_v4_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, @@ -665,7 +559,6 @@ func file_reportcodec_v4_proto_init() { MessageInfos: file_reportcodec_v4_proto_msgTypes, }.Build() File_reportcodec_v4_proto = out.File - file_reportcodec_v4_proto_rawDesc = nil file_reportcodec_v4_proto_goTypes = nil file_reportcodec_v4_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/mercury/v4/reportcodec_v4_grpc.pb.go b/pkg/loop/internal/pb/mercury/v4/reportcodec_v4_grpc.pb.go index 45c9b60d4..5992b16a0 100644 --- a/pkg/loop/internal/pb/mercury/v4/reportcodec_v4_grpc.pb.go +++ b/pkg/loop/internal/pb/mercury/v4/reportcodec_v4_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: reportcodec_v4.proto package mercuryv4pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReportCodec_BuildReport_FullMethodName = "/loop.internal.pb.mercury.v4.ReportCodec/BuildReport" @@ -27,6 +27,10 @@ const ( // ReportCodecClient is the client API for ReportCodec service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v4/ReportCodec]. +// NOTE: MaxReport and ObservationTimestampFromReport are common amongst all mercury versions, but BuildReport is not. +// in principle they could be refactor to be shared, but it's not clear if that's worth the effort. type ReportCodecClient interface { BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) @@ -42,8 +46,9 @@ func NewReportCodecClient(cc grpc.ClientConnInterface) ReportCodecClient { } func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequest, opts ...grpc.CallOption) (*BuildReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BuildReportReply) - err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_BuildReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +56,9 @@ func (c *reportCodecClient) BuildReport(ctx context.Context, in *BuildReportRequ } func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLengthRequest, opts ...grpc.CallOption) (*MaxReportLengthReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MaxReportLengthReply) - err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_MaxReportLength_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +66,9 @@ func (c *reportCodecClient) MaxReportLength(ctx context.Context, in *MaxReportLe } func (c *reportCodecClient) ObservationTimestampFromReport(ctx context.Context, in *ObservationTimestampFromReportRequest, opts ...grpc.CallOption) (*ObservationTimestampFromReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObservationTimestampFromReportReply) - err := c.cc.Invoke(ctx, ReportCodec_ObservationTimestampFromReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportCodec_ObservationTimestampFromReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +77,11 @@ func (c *reportCodecClient) ObservationTimestampFromReport(ctx context.Context, // ReportCodecServer is the server API for ReportCodec service. // All implementations must embed UnimplementedReportCodecServer -// for forward compatibility +// for forward compatibility. +// +// ReportCodec is a gRPC adapter for the ReportCodec interface [pkg/types/mercury/v4/ReportCodec]. +// NOTE: MaxReport and ObservationTimestampFromReport are common amongst all mercury versions, but BuildReport is not. +// in principle they could be refactor to be shared, but it's not clear if that's worth the effort. type ReportCodecServer interface { BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) MaxReportLength(context.Context, *MaxReportLengthRequest) (*MaxReportLengthReply, error) @@ -78,9 +89,12 @@ type ReportCodecServer interface { mustEmbedUnimplementedReportCodecServer() } -// UnimplementedReportCodecServer must be embedded to have forward compatible implementations. -type UnimplementedReportCodecServer struct { -} +// UnimplementedReportCodecServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportCodecServer struct{} func (UnimplementedReportCodecServer) BuildReport(context.Context, *BuildReportRequest) (*BuildReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BuildReport not implemented") @@ -92,6 +106,7 @@ func (UnimplementedReportCodecServer) ObservationTimestampFromReport(context.Con return nil, status.Errorf(codes.Unimplemented, "method ObservationTimestampFromReport not implemented") } func (UnimplementedReportCodecServer) mustEmbedUnimplementedReportCodecServer() {} +func (UnimplementedReportCodecServer) testEmbeddedByValue() {} // UnsafeReportCodecServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportCodecServer will @@ -101,6 +116,13 @@ type UnsafeReportCodecServer interface { } func RegisterReportCodecServer(s grpc.ServiceRegistrar, srv ReportCodecServer) { + // If the following call pancis, it indicates UnimplementedReportCodecServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportCodec_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ocr3/contract_transmitter.pb.go b/pkg/loop/internal/pb/ocr3/contract_transmitter.pb.go index 838f67795..821c43625 100644 --- a/pkg/loop/internal/pb/ocr3/contract_transmitter.pb.go +++ b/pkg/loop/internal/pb/ocr3/contract_transmitter.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: contract_transmitter.proto package ocr3pb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,21 +23,18 @@ const ( ) type Signature struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` + Signer uint32 `protobuf:"varint,2,opt,name=signer,proto3" json:"signer,omitempty"` // NOTE: this is actually a uint8, but proto doesn't support this. unknownFields protoimpl.UnknownFields - - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - Signer uint32 `protobuf:"varint,2,opt,name=signer,proto3" json:"signer,omitempty"` // NOTE: this is actually a uint8, but proto doesn't support this. + sizeCache protoimpl.SizeCache } func (x *Signature) Reset() { *x = Signature{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_transmitter_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_transmitter_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Signature) String() string { @@ -47,7 +45,7 @@ func (*Signature) ProtoMessage() {} func (x *Signature) ProtoReflect() protoreflect.Message { mi := &file_contract_transmitter_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -77,23 +75,20 @@ func (x *Signature) GetSigner() uint32 { } type TransmitRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // NOTE: this is actually [32]byte - SeqNr uint64 `protobuf:"varint,2,opt,name=seqNr,proto3" json:"seqNr,omitempty"` - ReportWithInfo *ReportWithInfo `protobuf:"bytes,3,opt,name=reportWithInfo,proto3" json:"reportWithInfo,omitempty"` - Signatures []*Signature `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // NOTE: this is actually [32]byte + SeqNr uint64 `protobuf:"varint,2,opt,name=seqNr,proto3" json:"seqNr,omitempty"` + ReportWithInfo *ReportWithInfo `protobuf:"bytes,3,opt,name=reportWithInfo,proto3" json:"reportWithInfo,omitempty"` + Signatures []*Signature `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransmitRequest) Reset() { *x = TransmitRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_transmitter_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_transmitter_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransmitRequest) String() string { @@ -104,7 +99,7 @@ func (*TransmitRequest) ProtoMessage() {} func (x *TransmitRequest) ProtoReflect() protoreflect.Message { mi := &file_contract_transmitter_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -148,20 +143,17 @@ func (x *TransmitRequest) GetSignatures() []*Signature { } type FromAccountReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FromAccountReply) Reset() { *x = FromAccountReply{} - if protoimpl.UnsafeEnabled { - mi := &file_contract_transmitter_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_contract_transmitter_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FromAccountReply) String() string { @@ -172,7 +164,7 @@ func (*FromAccountReply) ProtoMessage() {} func (x *FromAccountReply) ProtoReflect() protoreflect.Message { mi := &file_contract_transmitter_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -196,7 +188,7 @@ func (x *FromAccountReply) GetAccount() string { var File_contract_transmitter_proto protoreflect.FileDescriptor -var file_contract_transmitter_proto_rawDesc = []byte{ +var file_contract_transmitter_proto_rawDesc = string([]byte{ 0x0a, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6f, @@ -242,22 +234,22 @@ var file_contract_transmitter_proto_rawDesc = []byte{ 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6f, 0x63, 0x72, 0x33, 0x3b, 0x6f, 0x63, 0x72, 0x33, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_contract_transmitter_proto_rawDescOnce sync.Once - file_contract_transmitter_proto_rawDescData = file_contract_transmitter_proto_rawDesc + file_contract_transmitter_proto_rawDescData []byte ) func file_contract_transmitter_proto_rawDescGZIP() []byte { file_contract_transmitter_proto_rawDescOnce.Do(func() { - file_contract_transmitter_proto_rawDescData = protoimpl.X.CompressGZIP(file_contract_transmitter_proto_rawDescData) + file_contract_transmitter_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_contract_transmitter_proto_rawDesc), len(file_contract_transmitter_proto_rawDesc))) }) return file_contract_transmitter_proto_rawDescData } var file_contract_transmitter_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_contract_transmitter_proto_goTypes = []interface{}{ +var file_contract_transmitter_proto_goTypes = []any{ (*Signature)(nil), // 0: loop.internal.pb.ocr3.Signature (*TransmitRequest)(nil), // 1: loop.internal.pb.ocr3.TransmitRequest (*FromAccountReply)(nil), // 2: loop.internal.pb.ocr3.FromAccountReply @@ -284,49 +276,11 @@ func file_contract_transmitter_proto_init() { return } file_ocr3_reporting_proto_init() - if !protoimpl.UnsafeEnabled { - file_contract_transmitter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Signature); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_transmitter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransmitRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_contract_transmitter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FromAccountReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_contract_transmitter_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_contract_transmitter_proto_rawDesc), len(file_contract_transmitter_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, @@ -337,7 +291,6 @@ func file_contract_transmitter_proto_init() { MessageInfos: file_contract_transmitter_proto_msgTypes, }.Build() File_contract_transmitter_proto = out.File - file_contract_transmitter_proto_rawDesc = nil file_contract_transmitter_proto_goTypes = nil file_contract_transmitter_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ocr3/contract_transmitter_grpc.pb.go b/pkg/loop/internal/pb/ocr3/contract_transmitter_grpc.pb.go index e116df187..231e21f5a 100644 --- a/pkg/loop/internal/pb/ocr3/contract_transmitter_grpc.pb.go +++ b/pkg/loop/internal/pb/ocr3/contract_transmitter_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: contract_transmitter.proto package ocr3pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ContractTransmitter_Transmit_FullMethodName = "/loop.internal.pb.ocr3.ContractTransmitter/Transmit" @@ -41,8 +41,9 @@ func NewContractTransmitterClient(cc grpc.ClientConnInterface) ContractTransmitt } func (c *contractTransmitterClient) Transmit(ctx context.Context, in *TransmitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ContractTransmitter_Transmit_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractTransmitter_Transmit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,8 +51,9 @@ func (c *contractTransmitterClient) Transmit(ctx context.Context, in *TransmitRe } func (c *contractTransmitterClient) FromAccount(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FromAccountReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FromAccountReply) - err := c.cc.Invoke(ctx, ContractTransmitter_FromAccount_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractTransmitter_FromAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,16 +62,19 @@ func (c *contractTransmitterClient) FromAccount(ctx context.Context, in *emptypb // ContractTransmitterServer is the server API for ContractTransmitter service. // All implementations must embed UnimplementedContractTransmitterServer -// for forward compatibility +// for forward compatibility. type ContractTransmitterServer interface { Transmit(context.Context, *TransmitRequest) (*emptypb.Empty, error) FromAccount(context.Context, *emptypb.Empty) (*FromAccountReply, error) mustEmbedUnimplementedContractTransmitterServer() } -// UnimplementedContractTransmitterServer must be embedded to have forward compatible implementations. -type UnimplementedContractTransmitterServer struct { -} +// UnimplementedContractTransmitterServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedContractTransmitterServer struct{} func (UnimplementedContractTransmitterServer) Transmit(context.Context, *TransmitRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Transmit not implemented") @@ -78,6 +83,7 @@ func (UnimplementedContractTransmitterServer) FromAccount(context.Context, *empt return nil, status.Errorf(codes.Unimplemented, "method FromAccount not implemented") } func (UnimplementedContractTransmitterServer) mustEmbedUnimplementedContractTransmitterServer() {} +func (UnimplementedContractTransmitterServer) testEmbeddedByValue() {} // UnsafeContractTransmitterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ContractTransmitterServer will @@ -87,6 +93,13 @@ type UnsafeContractTransmitterServer interface { } func RegisterContractTransmitterServer(s grpc.ServiceRegistrar, srv ContractTransmitterServer) { + // If the following call pancis, it indicates UnimplementedContractTransmitterServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ContractTransmitter_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/ocr3/ocr3_reporting.pb.go b/pkg/loop/internal/pb/ocr3/ocr3_reporting.pb.go index cf9e80a81..2b895441d 100644 --- a/pkg/loop/internal/pb/ocr3/ocr3_reporting.pb.go +++ b/pkg/loop/internal/pb/ocr3/ocr3_reporting.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: ocr3_reporting.proto package ocr3pb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,20 +23,17 @@ const ( ) type NewReportingPluginRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ReportingPluginConfig *ReportingPluginConfig `protobuf:"bytes,1,opt,name=reportingPluginConfig,proto3" json:"reportingPluginConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewReportingPluginRequest) Reset() { *x = NewReportingPluginRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewReportingPluginRequest) String() string { @@ -46,7 +44,7 @@ func (*NewReportingPluginRequest) ProtoMessage() {} func (x *NewReportingPluginRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -69,21 +67,18 @@ func (x *NewReportingPluginRequest) GetReportingPluginConfig() *ReportingPluginC } type NewReportingPluginReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportingPluginID uint32 `protobuf:"varint,1,opt,name=reportingPluginID,proto3" json:"reportingPluginID,omitempty"` - ReportingPluginInfo *ReportingPluginInfo `protobuf:"bytes,2,opt,name=reportingPluginInfo,proto3" json:"reportingPluginInfo,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportingPluginID uint32 `protobuf:"varint,1,opt,name=reportingPluginID,proto3" json:"reportingPluginID,omitempty"` + ReportingPluginInfo *ReportingPluginInfo `protobuf:"bytes,2,opt,name=reportingPluginInfo,proto3" json:"reportingPluginInfo,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewReportingPluginReply) Reset() { *x = NewReportingPluginReply{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewReportingPluginReply) String() string { @@ -94,7 +89,7 @@ func (*NewReportingPluginReply) ProtoMessage() {} func (x *NewReportingPluginReply) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -124,30 +119,27 @@ func (x *NewReportingPluginReply) GetReportingPluginInfo() *ReportingPluginInfo } type ReportingPluginConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` - OracleID uint32 `protobuf:"varint,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"` - N uint32 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"` - F uint32 `protobuf:"varint,4,opt,name=f,proto3" json:"f,omitempty"` - OnchainConfig []byte `protobuf:"bytes,5,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` - OffchainConfig []byte `protobuf:"bytes,6,opt,name=offchainConfig,proto3" json:"offchainConfig,omitempty"` - EstimatedRoundInterval int64 `protobuf:"varint,7,opt,name=estimatedRoundInterval,proto3" json:"estimatedRoundInterval,omitempty"` - MaxDurationQuery int64 `protobuf:"varint,8,opt,name=maxDurationQuery,proto3" json:"maxDurationQuery,omitempty"` - MaxDurationObservation int64 `protobuf:"varint,9,opt,name=maxDurationObservation,proto3" json:"maxDurationObservation,omitempty"` - MaxDurationShouldAcceptAttestedReport int64 `protobuf:"varint,10,opt,name=MaxDurationShouldAcceptAttestedReport,proto3" json:"MaxDurationShouldAcceptAttestedReport,omitempty"` - MaxDurationShouldTransmitAcceptedReport int64 `protobuf:"varint,11,opt,name=MaxDurationShouldTransmitAcceptedReport,proto3" json:"MaxDurationShouldTransmitAcceptedReport,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` + OracleID uint32 `protobuf:"varint,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"` + N uint32 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"` + F uint32 `protobuf:"varint,4,opt,name=f,proto3" json:"f,omitempty"` + OnchainConfig []byte `protobuf:"bytes,5,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + OffchainConfig []byte `protobuf:"bytes,6,opt,name=offchainConfig,proto3" json:"offchainConfig,omitempty"` + EstimatedRoundInterval int64 `protobuf:"varint,7,opt,name=estimatedRoundInterval,proto3" json:"estimatedRoundInterval,omitempty"` + MaxDurationQuery int64 `protobuf:"varint,8,opt,name=maxDurationQuery,proto3" json:"maxDurationQuery,omitempty"` + MaxDurationObservation int64 `protobuf:"varint,9,opt,name=maxDurationObservation,proto3" json:"maxDurationObservation,omitempty"` + MaxDurationShouldAcceptAttestedReport int64 `protobuf:"varint,10,opt,name=MaxDurationShouldAcceptAttestedReport,proto3" json:"MaxDurationShouldAcceptAttestedReport,omitempty"` + MaxDurationShouldTransmitAcceptedReport int64 `protobuf:"varint,11,opt,name=MaxDurationShouldTransmitAcceptedReport,proto3" json:"MaxDurationShouldTransmitAcceptedReport,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportingPluginConfig) Reset() { *x = ReportingPluginConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingPluginConfig) String() string { @@ -158,7 +150,7 @@ func (*ReportingPluginConfig) ProtoMessage() {} func (x *ReportingPluginConfig) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -251,24 +243,21 @@ func (x *ReportingPluginConfig) GetMaxDurationShouldTransmitAcceptedReport() int } type ReportingPluginLimits struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxQueryLength uint64 `protobuf:"varint,1,opt,name=maxQueryLength,proto3" json:"maxQueryLength,omitempty"` - MaxObservationLength uint64 `protobuf:"varint,2,opt,name=maxObservationLength,proto3" json:"maxObservationLength,omitempty"` - MaxOutcomeLength uint64 `protobuf:"varint,3,opt,name=MaxOutcomeLength,proto3" json:"MaxOutcomeLength,omitempty"` - MaxReportLength uint64 `protobuf:"varint,4,opt,name=MaxReportLength,proto3" json:"MaxReportLength,omitempty"` - MaxReportCount uint64 `protobuf:"varint,5,opt,name=MaxReportCount,proto3" json:"MaxReportCount,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxQueryLength uint64 `protobuf:"varint,1,opt,name=maxQueryLength,proto3" json:"maxQueryLength,omitempty"` + MaxObservationLength uint64 `protobuf:"varint,2,opt,name=maxObservationLength,proto3" json:"maxObservationLength,omitempty"` + MaxOutcomeLength uint64 `protobuf:"varint,3,opt,name=MaxOutcomeLength,proto3" json:"MaxOutcomeLength,omitempty"` + MaxReportLength uint64 `protobuf:"varint,4,opt,name=MaxReportLength,proto3" json:"MaxReportLength,omitempty"` + MaxReportCount uint64 `protobuf:"varint,5,opt,name=MaxReportCount,proto3" json:"MaxReportCount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportingPluginLimits) Reset() { *x = ReportingPluginLimits{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingPluginLimits) String() string { @@ -279,7 +268,7 @@ func (*ReportingPluginLimits) ProtoMessage() {} func (x *ReportingPluginLimits) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -330,21 +319,18 @@ func (x *ReportingPluginLimits) GetMaxReportCount() uint64 { } type ReportingPluginInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ReportingPluginLimits *ReportingPluginLimits `protobuf:"bytes,2,opt,name=reportingPluginLimits,proto3" json:"reportingPluginLimits,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportingPluginInfo) Reset() { *x = ReportingPluginInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingPluginInfo) String() string { @@ -355,7 +341,7 @@ func (*ReportingPluginInfo) ProtoMessage() {} func (x *ReportingPluginInfo) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -385,20 +371,17 @@ func (x *ReportingPluginInfo) GetReportingPluginLimits() *ReportingPluginLimits } type QueryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OutcomeContext *OutcomeContext `protobuf:"bytes,1,opt,name=outcomeContext,proto3" json:"outcomeContext,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OutcomeContext *OutcomeContext `protobuf:"bytes,1,opt,name=outcomeContext,proto3" json:"outcomeContext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QueryRequest) Reset() { *x = QueryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryRequest) String() string { @@ -409,7 +392,7 @@ func (*QueryRequest) ProtoMessage() {} func (x *QueryRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -432,23 +415,20 @@ func (x *QueryRequest) GetOutcomeContext() *OutcomeContext { } type OutcomeContext struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SeqNr uint64 `protobuf:"varint,1,opt,name=seqNr,proto3" json:"seqNr,omitempty"` - PreviousOutcome []byte `protobuf:"bytes,2,opt,name=previousOutcome,proto3" json:"previousOutcome,omitempty"` - Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"` - Round uint64 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SeqNr uint64 `protobuf:"varint,1,opt,name=seqNr,proto3" json:"seqNr,omitempty"` + PreviousOutcome []byte `protobuf:"bytes,2,opt,name=previousOutcome,proto3" json:"previousOutcome,omitempty"` + Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"` + Round uint64 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OutcomeContext) Reset() { *x = OutcomeContext{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OutcomeContext) String() string { @@ -459,7 +439,7 @@ func (*OutcomeContext) ProtoMessage() {} func (x *OutcomeContext) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -503,20 +483,17 @@ func (x *OutcomeContext) GetRound() uint64 { } type QueryReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Query []byte `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` unknownFields protoimpl.UnknownFields - - Query []byte `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QueryReply) Reset() { *x = QueryReply{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryReply) String() string { @@ -527,7 +504,7 @@ func (*QueryReply) ProtoMessage() {} func (x *QueryReply) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -550,21 +527,18 @@ func (x *QueryReply) GetQuery() []byte { } type ObservationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OutcomeContext *OutcomeContext `protobuf:"bytes,1,opt,name=outcomeContext,proto3" json:"outcomeContext,omitempty"` - Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OutcomeContext *OutcomeContext `protobuf:"bytes,1,opt,name=outcomeContext,proto3" json:"outcomeContext,omitempty"` + Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObservationRequest) Reset() { *x = ObservationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationRequest) String() string { @@ -575,7 +549,7 @@ func (*ObservationRequest) ProtoMessage() {} func (x *ObservationRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -605,20 +579,17 @@ func (x *ObservationRequest) GetQuery() []byte { } type ObservationReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` unknownFields protoimpl.UnknownFields - - Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationReply) Reset() { *x = ObservationReply{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationReply) String() string { @@ -629,7 +600,7 @@ func (*ObservationReply) ProtoMessage() {} func (x *ObservationReply) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -652,22 +623,19 @@ func (x *ObservationReply) GetObservation() []byte { } type ValidateObservationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` OutcomeContext *OutcomeContext `protobuf:"bytes,1,opt,name=outcomeContext,proto3" json:"outcomeContext,omitempty"` Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` Ao *AttributedObservation `protobuf:"bytes,3,opt,name=ao,proto3" json:"ao,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ValidateObservationRequest) Reset() { *x = ValidateObservationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateObservationRequest) String() string { @@ -678,7 +646,7 @@ func (*ValidateObservationRequest) ProtoMessage() {} func (x *ValidateObservationRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -715,21 +683,18 @@ func (x *ValidateObservationRequest) GetAo() *AttributedObservation { } type AttributedObservation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + Observer uint32 `protobuf:"varint,2,opt,name=observer,proto3" json:"observer,omitempty"` unknownFields protoimpl.UnknownFields - - Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` - Observer uint32 `protobuf:"varint,2,opt,name=observer,proto3" json:"observer,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AttributedObservation) Reset() { *x = AttributedObservation{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributedObservation) String() string { @@ -740,7 +705,7 @@ func (*AttributedObservation) ProtoMessage() {} func (x *AttributedObservation) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -770,22 +735,19 @@ func (x *AttributedObservation) GetObserver() uint32 { } type ObservationQuorumRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` OutcomeContext *OutcomeContext `protobuf:"bytes,1,opt,name=outcomeContext,proto3" json:"outcomeContext,omitempty"` Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` Ao []*AttributedObservation `protobuf:"bytes,3,rep,name=ao,proto3" json:"ao,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObservationQuorumRequest) Reset() { *x = ObservationQuorumRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationQuorumRequest) String() string { @@ -796,7 +758,7 @@ func (*ObservationQuorumRequest) ProtoMessage() {} func (x *ObservationQuorumRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -833,20 +795,17 @@ func (x *ObservationQuorumRequest) GetAo() []*AttributedObservation { } type ObservationQuorumReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + QuorumReached bool `protobuf:"varint,1,opt,name=quorumReached,proto3" json:"quorumReached,omitempty"` unknownFields protoimpl.UnknownFields - - QuorumReached bool `protobuf:"varint,1,opt,name=quorumReached,proto3" json:"quorumReached,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationQuorumReply) Reset() { *x = ObservationQuorumReply{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationQuorumReply) String() string { @@ -857,7 +816,7 @@ func (*ObservationQuorumReply) ProtoMessage() {} func (x *ObservationQuorumReply) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -880,22 +839,19 @@ func (x *ObservationQuorumReply) GetQuorumReached() bool { } type OutcomeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` OutcomeContext *OutcomeContext `protobuf:"bytes,1,opt,name=outcomeContext,proto3" json:"outcomeContext,omitempty"` Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` Ao []*AttributedObservation `protobuf:"bytes,3,rep,name=ao,proto3" json:"ao,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OutcomeRequest) Reset() { *x = OutcomeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OutcomeRequest) String() string { @@ -906,7 +862,7 @@ func (*OutcomeRequest) ProtoMessage() {} func (x *OutcomeRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -943,20 +899,17 @@ func (x *OutcomeRequest) GetAo() []*AttributedObservation { } type OutcomeReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Outcome []byte `protobuf:"bytes,1,opt,name=outcome,proto3" json:"outcome,omitempty"` unknownFields protoimpl.UnknownFields - - Outcome []byte `protobuf:"bytes,1,opt,name=outcome,proto3" json:"outcome,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OutcomeReply) Reset() { *x = OutcomeReply{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OutcomeReply) String() string { @@ -967,7 +920,7 @@ func (*OutcomeReply) ProtoMessage() {} func (x *OutcomeReply) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -990,21 +943,18 @@ func (x *OutcomeReply) GetOutcome() []byte { } type ReportsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SeqNr uint64 `protobuf:"varint,1,opt,name=seqNr,proto3" json:"seqNr,omitempty"` + Outcome []byte `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` unknownFields protoimpl.UnknownFields - - SeqNr uint64 `protobuf:"varint,1,opt,name=seqNr,proto3" json:"seqNr,omitempty"` - Outcome []byte `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReportsRequest) Reset() { *x = ReportsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportsRequest) String() string { @@ -1015,7 +965,7 @@ func (*ReportsRequest) ProtoMessage() {} func (x *ReportsRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1045,20 +995,17 @@ func (x *ReportsRequest) GetOutcome() []byte { } type ReportsReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ReportPlus []*ReportPlus `protobuf:"bytes,1,rep,name=reportPlus,proto3" json:"reportPlus,omitempty"` unknownFields protoimpl.UnknownFields - - ReportPlus []*ReportPlus `protobuf:"bytes,1,rep,name=reportPlus,proto3" json:"reportPlus,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReportsReply) Reset() { *x = ReportsReply{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportsReply) String() string { @@ -1069,7 +1016,7 @@ func (*ReportsReply) ProtoMessage() {} func (x *ReportsReply) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1092,21 +1039,18 @@ func (x *ReportsReply) GetReportPlus() []*ReportPlus { } type ReportPlus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportWithInfo *ReportWithInfo `protobuf:"bytes,1,opt,name=reportWithInfo,proto3" json:"reportWithInfo,omitempty"` - TransmissionScheduleOverride *TransmissionSchedule `protobuf:"bytes,2,opt,name=transmissionScheduleOverride,proto3" json:"transmissionScheduleOverride,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportWithInfo *ReportWithInfo `protobuf:"bytes,1,opt,name=reportWithInfo,proto3" json:"reportWithInfo,omitempty"` + TransmissionScheduleOverride *TransmissionSchedule `protobuf:"bytes,2,opt,name=transmissionScheduleOverride,proto3" json:"transmissionScheduleOverride,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportPlus) Reset() { *x = ReportPlus{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportPlus) String() string { @@ -1117,7 +1061,7 @@ func (*ReportPlus) ProtoMessage() {} func (x *ReportPlus) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1147,21 +1091,18 @@ func (x *ReportPlus) GetTransmissionScheduleOverride() *TransmissionSchedule { } type ReportWithInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` + Info []byte `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` unknownFields protoimpl.UnknownFields - - Report []byte `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` - Info []byte `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReportWithInfo) Reset() { *x = ReportWithInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportWithInfo) String() string { @@ -1172,7 +1113,7 @@ func (*ReportWithInfo) ProtoMessage() {} func (x *ReportWithInfo) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1202,21 +1143,18 @@ func (x *ReportWithInfo) GetInfo() []byte { } type TransmissionSchedule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Transmitters []uint32 `protobuf:"varint,1,rep,packed,name=transmitters,proto3" json:"transmitters,omitempty"` // OracleID - TransmissionDelays []int64 `protobuf:"varint,2,rep,packed,name=transmissionDelays,proto3" json:"transmissionDelays,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Transmitters []uint32 `protobuf:"varint,1,rep,packed,name=transmitters,proto3" json:"transmitters,omitempty"` // OracleID + TransmissionDelays []int64 `protobuf:"varint,2,rep,packed,name=transmissionDelays,proto3" json:"transmissionDelays,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransmissionSchedule) Reset() { *x = TransmissionSchedule{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransmissionSchedule) String() string { @@ -1227,7 +1165,7 @@ func (*TransmissionSchedule) ProtoMessage() {} func (x *TransmissionSchedule) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1257,21 +1195,18 @@ func (x *TransmissionSchedule) GetTransmissionDelays() []int64 { } type ShouldAcceptAttestedReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SegNr uint64 `protobuf:"varint,1,opt,name=segNr,proto3" json:"segNr,omitempty"` + Ri *ReportWithInfo `protobuf:"bytes,2,opt,name=ri,proto3" json:"ri,omitempty"` unknownFields protoimpl.UnknownFields - - SegNr uint64 `protobuf:"varint,1,opt,name=segNr,proto3" json:"segNr,omitempty"` - Ri *ReportWithInfo `protobuf:"bytes,2,opt,name=ri,proto3" json:"ri,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ShouldAcceptAttestedReportRequest) Reset() { *x = ShouldAcceptAttestedReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShouldAcceptAttestedReportRequest) String() string { @@ -1282,7 +1217,7 @@ func (*ShouldAcceptAttestedReportRequest) ProtoMessage() {} func (x *ShouldAcceptAttestedReportRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1312,20 +1247,17 @@ func (x *ShouldAcceptAttestedReportRequest) GetRi() *ReportWithInfo { } type ShouldAcceptAttestedReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ShouldAccept bool `protobuf:"varint,1,opt,name=shouldAccept,proto3" json:"shouldAccept,omitempty"` unknownFields protoimpl.UnknownFields - - ShouldAccept bool `protobuf:"varint,1,opt,name=shouldAccept,proto3" json:"shouldAccept,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ShouldAcceptAttestedReportReply) Reset() { *x = ShouldAcceptAttestedReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShouldAcceptAttestedReportReply) String() string { @@ -1336,7 +1268,7 @@ func (*ShouldAcceptAttestedReportReply) ProtoMessage() {} func (x *ShouldAcceptAttestedReportReply) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1359,21 +1291,18 @@ func (x *ShouldAcceptAttestedReportReply) GetShouldAccept() bool { } type ShouldTransmitAcceptedReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SegNr uint64 `protobuf:"varint,1,opt,name=segNr,proto3" json:"segNr,omitempty"` + Ri *ReportWithInfo `protobuf:"bytes,2,opt,name=ri,proto3" json:"ri,omitempty"` unknownFields protoimpl.UnknownFields - - SegNr uint64 `protobuf:"varint,1,opt,name=segNr,proto3" json:"segNr,omitempty"` - Ri *ReportWithInfo `protobuf:"bytes,2,opt,name=ri,proto3" json:"ri,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ShouldTransmitAcceptedReportRequest) Reset() { *x = ShouldTransmitAcceptedReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShouldTransmitAcceptedReportRequest) String() string { @@ -1384,7 +1313,7 @@ func (*ShouldTransmitAcceptedReportRequest) ProtoMessage() {} func (x *ShouldTransmitAcceptedReportRequest) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1414,20 +1343,17 @@ func (x *ShouldTransmitAcceptedReportRequest) GetRi() *ReportWithInfo { } type ShouldTransmitAcceptedReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ShouldTransmit bool `protobuf:"varint,1,opt,name=shouldTransmit,proto3" json:"shouldTransmit,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ShouldTransmit bool `protobuf:"varint,1,opt,name=shouldTransmit,proto3" json:"shouldTransmit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ShouldTransmitAcceptedReportReply) Reset() { *x = ShouldTransmitAcceptedReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_ocr3_reporting_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_ocr3_reporting_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShouldTransmitAcceptedReportReply) String() string { @@ -1438,7 +1364,7 @@ func (*ShouldTransmitAcceptedReportReply) ProtoMessage() {} func (x *ShouldTransmitAcceptedReportReply) ProtoReflect() protoreflect.Message { mi := &file_ocr3_reporting_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1462,7 +1388,7 @@ func (x *ShouldTransmitAcceptedReportReply) GetShouldTransmit() bool { var File_ocr3_reporting_proto protoreflect.FileDescriptor -var file_ocr3_reporting_proto_rawDesc = []byte{ +var file_ocr3_reporting_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x6f, 0x63, 0x72, 0x33, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x62, 0x2e, 0x6f, 0x63, 0x72, 0x33, 0x1a, 0x1b, 0x67, @@ -1750,22 +1676,22 @@ var file_ocr3_reporting_proto_rawDesc = []byte{ 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x6f, 0x63, 0x72, 0x33, 0x3b, 0x6f, 0x63, 0x72, 0x33, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_ocr3_reporting_proto_rawDescOnce sync.Once - file_ocr3_reporting_proto_rawDescData = file_ocr3_reporting_proto_rawDesc + file_ocr3_reporting_proto_rawDescData []byte ) func file_ocr3_reporting_proto_rawDescGZIP() []byte { file_ocr3_reporting_proto_rawDescOnce.Do(func() { - file_ocr3_reporting_proto_rawDescData = protoimpl.X.CompressGZIP(file_ocr3_reporting_proto_rawDescData) + file_ocr3_reporting_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ocr3_reporting_proto_rawDesc), len(file_ocr3_reporting_proto_rawDesc))) }) return file_ocr3_reporting_proto_rawDescData } var file_ocr3_reporting_proto_msgTypes = make([]protoimpl.MessageInfo, 25) -var file_ocr3_reporting_proto_goTypes = []interface{}{ +var file_ocr3_reporting_proto_goTypes = []any{ (*NewReportingPluginRequest)(nil), // 0: loop.internal.pb.ocr3.NewReportingPluginRequest (*NewReportingPluginReply)(nil), // 1: loop.internal.pb.ocr3.NewReportingPluginReply (*ReportingPluginConfig)(nil), // 2: loop.internal.pb.ocr3.ReportingPluginConfig @@ -1842,313 +1768,11 @@ func file_ocr3_reporting_proto_init() { if File_ocr3_reporting_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_ocr3_reporting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewReportingPluginRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewReportingPluginReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportingPluginConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportingPluginLimits); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportingPluginInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OutcomeContext); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateObservationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributedObservation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationQuorumRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationQuorumReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OutcomeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OutcomeReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportsReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportPlus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportWithInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransmissionSchedule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShouldAcceptAttestedReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShouldAcceptAttestedReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShouldTransmitAcceptedReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ocr3_reporting_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShouldTransmitAcceptedReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ocr3_reporting_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_ocr3_reporting_proto_rawDesc), len(file_ocr3_reporting_proto_rawDesc)), NumEnums: 0, NumMessages: 25, NumExtensions: 0, @@ -2159,7 +1783,6 @@ func file_ocr3_reporting_proto_init() { MessageInfos: file_ocr3_reporting_proto_msgTypes, }.Build() File_ocr3_reporting_proto = out.File - file_ocr3_reporting_proto_rawDesc = nil file_ocr3_reporting_proto_goTypes = nil file_ocr3_reporting_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/ocr3/ocr3_reporting_grpc.pb.go b/pkg/loop/internal/pb/ocr3/ocr3_reporting_grpc.pb.go index ce108771c..5174b2c43 100644 --- a/pkg/loop/internal/pb/ocr3/ocr3_reporting_grpc.pb.go +++ b/pkg/loop/internal/pb/ocr3/ocr3_reporting_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: ocr3_reporting.proto package ocr3pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReportingPluginFactory_NewReportingPlugin_FullMethodName = "/loop.internal.pb.ocr3.ReportingPluginFactory/NewReportingPlugin" @@ -39,8 +39,9 @@ func NewReportingPluginFactoryClient(cc grpc.ClientConnInterface) ReportingPlugi } func (c *reportingPluginFactoryClient) NewReportingPlugin(ctx context.Context, in *NewReportingPluginRequest, opts ...grpc.CallOption) (*NewReportingPluginReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewReportingPluginReply) - err := c.cc.Invoke(ctx, ReportingPluginFactory_NewReportingPlugin_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPluginFactory_NewReportingPlugin_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,21 +50,25 @@ func (c *reportingPluginFactoryClient) NewReportingPlugin(ctx context.Context, i // ReportingPluginFactoryServer is the server API for ReportingPluginFactory service. // All implementations must embed UnimplementedReportingPluginFactoryServer -// for forward compatibility +// for forward compatibility. type ReportingPluginFactoryServer interface { NewReportingPlugin(context.Context, *NewReportingPluginRequest) (*NewReportingPluginReply, error) mustEmbedUnimplementedReportingPluginFactoryServer() } -// UnimplementedReportingPluginFactoryServer must be embedded to have forward compatible implementations. -type UnimplementedReportingPluginFactoryServer struct { -} +// UnimplementedReportingPluginFactoryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportingPluginFactoryServer struct{} func (UnimplementedReportingPluginFactoryServer) NewReportingPlugin(context.Context, *NewReportingPluginRequest) (*NewReportingPluginReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewReportingPlugin not implemented") } func (UnimplementedReportingPluginFactoryServer) mustEmbedUnimplementedReportingPluginFactoryServer() { } +func (UnimplementedReportingPluginFactoryServer) testEmbeddedByValue() {} // UnsafeReportingPluginFactoryServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportingPluginFactoryServer will @@ -73,6 +78,13 @@ type UnsafeReportingPluginFactoryServer interface { } func RegisterReportingPluginFactoryServer(s grpc.ServiceRegistrar, srv ReportingPluginFactoryServer) { + // If the following call pancis, it indicates UnimplementedReportingPluginFactoryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportingPluginFactory_ServiceDesc, srv) } @@ -146,8 +158,9 @@ func NewReportingPluginClient(cc grpc.ClientConnInterface) ReportingPluginClient } func (c *reportingPluginClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(QueryReply) - err := c.cc.Invoke(ctx, ReportingPlugin_Query_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Query_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -155,8 +168,9 @@ func (c *reportingPluginClient) Query(ctx context.Context, in *QueryRequest, opt } func (c *reportingPluginClient) Observation(ctx context.Context, in *ObservationRequest, opts ...grpc.CallOption) (*ObservationReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObservationReply) - err := c.cc.Invoke(ctx, ReportingPlugin_Observation_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Observation_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -164,8 +178,9 @@ func (c *reportingPluginClient) Observation(ctx context.Context, in *Observation } func (c *reportingPluginClient) ValidateObservation(ctx context.Context, in *ValidateObservationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ReportingPlugin_ValidateObservation_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_ValidateObservation_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -173,8 +188,9 @@ func (c *reportingPluginClient) ValidateObservation(ctx context.Context, in *Val } func (c *reportingPluginClient) ObservationQuorum(ctx context.Context, in *ObservationQuorumRequest, opts ...grpc.CallOption) (*ObservationQuorumReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObservationQuorumReply) - err := c.cc.Invoke(ctx, ReportingPlugin_ObservationQuorum_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_ObservationQuorum_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -182,8 +198,9 @@ func (c *reportingPluginClient) ObservationQuorum(ctx context.Context, in *Obser } func (c *reportingPluginClient) Outcome(ctx context.Context, in *OutcomeRequest, opts ...grpc.CallOption) (*OutcomeReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OutcomeReply) - err := c.cc.Invoke(ctx, ReportingPlugin_Outcome_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Outcome_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -191,8 +208,9 @@ func (c *reportingPluginClient) Outcome(ctx context.Context, in *OutcomeRequest, } func (c *reportingPluginClient) Reports(ctx context.Context, in *ReportsRequest, opts ...grpc.CallOption) (*ReportsReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReportsReply) - err := c.cc.Invoke(ctx, ReportingPlugin_Reports_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Reports_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -200,8 +218,9 @@ func (c *reportingPluginClient) Reports(ctx context.Context, in *ReportsRequest, } func (c *reportingPluginClient) ShouldAcceptAttestedReport(ctx context.Context, in *ShouldAcceptAttestedReportRequest, opts ...grpc.CallOption) (*ShouldAcceptAttestedReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShouldAcceptAttestedReportReply) - err := c.cc.Invoke(ctx, ReportingPlugin_ShouldAcceptAttestedReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_ShouldAcceptAttestedReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -209,8 +228,9 @@ func (c *reportingPluginClient) ShouldAcceptAttestedReport(ctx context.Context, } func (c *reportingPluginClient) ShouldTransmitAcceptedReport(ctx context.Context, in *ShouldTransmitAcceptedReportRequest, opts ...grpc.CallOption) (*ShouldTransmitAcceptedReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShouldTransmitAcceptedReportReply) - err := c.cc.Invoke(ctx, ReportingPlugin_ShouldTransmitAcceptedReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_ShouldTransmitAcceptedReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -218,8 +238,9 @@ func (c *reportingPluginClient) ShouldTransmitAcceptedReport(ctx context.Context } func (c *reportingPluginClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ReportingPlugin_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -228,7 +249,7 @@ func (c *reportingPluginClient) Close(ctx context.Context, in *emptypb.Empty, op // ReportingPluginServer is the server API for ReportingPlugin service. // All implementations must embed UnimplementedReportingPluginServer -// for forward compatibility +// for forward compatibility. type ReportingPluginServer interface { Query(context.Context, *QueryRequest) (*QueryReply, error) Observation(context.Context, *ObservationRequest) (*ObservationReply, error) @@ -242,9 +263,12 @@ type ReportingPluginServer interface { mustEmbedUnimplementedReportingPluginServer() } -// UnimplementedReportingPluginServer must be embedded to have forward compatible implementations. -type UnimplementedReportingPluginServer struct { -} +// UnimplementedReportingPluginServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportingPluginServer struct{} func (UnimplementedReportingPluginServer) Query(context.Context, *QueryRequest) (*QueryReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") @@ -274,6 +298,7 @@ func (UnimplementedReportingPluginServer) Close(context.Context, *emptypb.Empty) return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedReportingPluginServer) mustEmbedUnimplementedReportingPluginServer() {} +func (UnimplementedReportingPluginServer) testEmbeddedByValue() {} // UnsafeReportingPluginServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportingPluginServer will @@ -283,6 +308,13 @@ type UnsafeReportingPluginServer interface { } func RegisterReportingPluginServer(s grpc.ServiceRegistrar, srv ReportingPluginServer) { + // If the following call pancis, it indicates UnimplementedReportingPluginServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportingPlugin_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/oracle/oracle.pb.go b/pkg/loop/internal/pb/oracle/oracle.pb.go index 60f84f345..1903c5606 100644 --- a/pkg/loop/internal/pb/oracle/oracle.pb.go +++ b/pkg/loop/internal/pb/oracle/oracle.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: oracle.proto package oracle @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" + unsafe "unsafe" ) const ( @@ -22,7 +23,7 @@ const ( var File_oracle_proto protoreflect.FileDescriptor -var file_oracle_proto_rawDesc = []byte{ +var file_oracle_proto_rawDesc = string([]byte{ 0x0a, 0x0c, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, @@ -40,9 +41,9 @@ var file_oracle_proto_rawDesc = []byte{ 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) -var file_oracle_proto_goTypes = []interface{}{ +var file_oracle_proto_goTypes = []any{ (*emptypb.Empty)(nil), // 0: google.protobuf.Empty } var file_oracle_proto_depIdxs = []int32{ @@ -66,7 +67,7 @@ func file_oracle_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oracle_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_oracle_proto_rawDesc), len(file_oracle_proto_rawDesc)), NumEnums: 0, NumMessages: 0, NumExtensions: 0, @@ -76,7 +77,6 @@ func file_oracle_proto_init() { DependencyIndexes: file_oracle_proto_depIdxs, }.Build() File_oracle_proto = out.File - file_oracle_proto_rawDesc = nil file_oracle_proto_goTypes = nil file_oracle_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/oracle/oracle_grpc.pb.go b/pkg/loop/internal/pb/oracle/oracle_grpc.pb.go index 1be7e10b2..436fe96bc 100644 --- a/pkg/loop/internal/pb/oracle/oracle_grpc.pb.go +++ b/pkg/loop/internal/pb/oracle/oracle_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: oracle.proto package oracle @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Oracle_StartOracle_FullMethodName = "/loop.Oracle/StartOracle" @@ -41,8 +41,9 @@ func NewOracleClient(cc grpc.ClientConnInterface) OracleClient { } func (c *oracleClient) StartOracle(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Oracle_StartOracle_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Oracle_StartOracle_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,8 +51,9 @@ func (c *oracleClient) StartOracle(ctx context.Context, in *emptypb.Empty, opts } func (c *oracleClient) CloseOracle(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Oracle_CloseOracle_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Oracle_CloseOracle_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,16 +62,19 @@ func (c *oracleClient) CloseOracle(ctx context.Context, in *emptypb.Empty, opts // OracleServer is the server API for Oracle service. // All implementations must embed UnimplementedOracleServer -// for forward compatibility +// for forward compatibility. type OracleServer interface { StartOracle(context.Context, *emptypb.Empty) (*emptypb.Empty, error) CloseOracle(context.Context, *emptypb.Empty) (*emptypb.Empty, error) mustEmbedUnimplementedOracleServer() } -// UnimplementedOracleServer must be embedded to have forward compatible implementations. -type UnimplementedOracleServer struct { -} +// UnimplementedOracleServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOracleServer struct{} func (UnimplementedOracleServer) StartOracle(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StartOracle not implemented") @@ -78,6 +83,7 @@ func (UnimplementedOracleServer) CloseOracle(context.Context, *emptypb.Empty) (* return nil, status.Errorf(codes.Unimplemented, "method CloseOracle not implemented") } func (UnimplementedOracleServer) mustEmbedUnimplementedOracleServer() {} +func (UnimplementedOracleServer) testEmbeddedByValue() {} // UnsafeOracleServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OracleServer will @@ -87,6 +93,13 @@ type UnsafeOracleServer interface { } func RegisterOracleServer(s grpc.ServiceRegistrar, srv OracleServer) { + // If the following call pancis, it indicates UnimplementedOracleServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Oracle_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/oraclefactory/oraclefactory.pb.go b/pkg/loop/internal/pb/oraclefactory/oraclefactory.pb.go index db64d4513..2aeacb267 100644 --- a/pkg/loop/internal/pb/oraclefactory/oraclefactory.pb.go +++ b/pkg/loop/internal/pb/oraclefactory/oraclefactory.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: oraclefactory.proto package oraclefactory @@ -12,6 +12,7 @@ import ( durationpb "google.golang.org/protobuf/types/known/durationpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,27 +23,24 @@ const ( ) type LocalConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BlockchainTimeout *durationpb.Duration `protobuf:"bytes,1,opt,name=blockchain_timeout,json=blockchainTimeout,proto3" json:"blockchain_timeout,omitempty"` - ContractConfigConfirmations uint32 `protobuf:"varint,2,opt,name=contract_config_confirmations,json=contractConfigConfirmations,proto3" json:"contract_config_confirmations,omitempty"` - SkipContractConfigConfirmations bool `protobuf:"varint,3,opt,name=skip_contract_config_confirmations,json=skipContractConfigConfirmations,proto3" json:"skip_contract_config_confirmations,omitempty"` - ContractConfigTrackerPollInterval *durationpb.Duration `protobuf:"bytes,4,opt,name=contract_config_tracker_poll_interval,json=contractConfigTrackerPollInterval,proto3" json:"contract_config_tracker_poll_interval,omitempty"` - ContractTransmitterTransmitTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=contract_transmitter_transmit_timeout,json=contractTransmitterTransmitTimeout,proto3" json:"contract_transmitter_transmit_timeout,omitempty"` - DatabaseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=database_timeout,json=databaseTimeout,proto3" json:"database_timeout,omitempty"` - MinOcr2MaxDurationQuery *durationpb.Duration `protobuf:"bytes,7,opt,name=min_ocr2_max_duration_query,json=minOcr2MaxDurationQuery,proto3" json:"min_ocr2_max_duration_query,omitempty"` - DevelopmentMode string `protobuf:"bytes,8,opt,name=development_mode,json=developmentMode,proto3" json:"development_mode,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + BlockchainTimeout *durationpb.Duration `protobuf:"bytes,1,opt,name=blockchain_timeout,json=blockchainTimeout,proto3" json:"blockchain_timeout,omitempty"` + ContractConfigConfirmations uint32 `protobuf:"varint,2,opt,name=contract_config_confirmations,json=contractConfigConfirmations,proto3" json:"contract_config_confirmations,omitempty"` + SkipContractConfigConfirmations bool `protobuf:"varint,3,opt,name=skip_contract_config_confirmations,json=skipContractConfigConfirmations,proto3" json:"skip_contract_config_confirmations,omitempty"` + ContractConfigTrackerPollInterval *durationpb.Duration `protobuf:"bytes,4,opt,name=contract_config_tracker_poll_interval,json=contractConfigTrackerPollInterval,proto3" json:"contract_config_tracker_poll_interval,omitempty"` + ContractTransmitterTransmitTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=contract_transmitter_transmit_timeout,json=contractTransmitterTransmitTimeout,proto3" json:"contract_transmitter_transmit_timeout,omitempty"` + DatabaseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=database_timeout,json=databaseTimeout,proto3" json:"database_timeout,omitempty"` + MinOcr2MaxDurationQuery *durationpb.Duration `protobuf:"bytes,7,opt,name=min_ocr2_max_duration_query,json=minOcr2MaxDurationQuery,proto3" json:"min_ocr2_max_duration_query,omitempty"` + DevelopmentMode string `protobuf:"bytes,8,opt,name=development_mode,json=developmentMode,proto3" json:"development_mode,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LocalConfig) Reset() { *x = LocalConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_oraclefactory_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_oraclefactory_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LocalConfig) String() string { @@ -53,7 +51,7 @@ func (*LocalConfig) ProtoMessage() {} func (x *LocalConfig) ProtoReflect() protoreflect.Message { mi := &file_oraclefactory_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -125,24 +123,21 @@ func (x *LocalConfig) GetDevelopmentMode() string { } type NewOracleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocalConfig *LocalConfig `protobuf:"bytes,1,opt,name=local_config,json=localConfig,proto3" json:"local_config,omitempty"` - ReportingPluginFactoryServiceId uint32 `protobuf:"varint,2,opt,name=reporting_plugin_factory_service_id,json=reportingPluginFactoryServiceId,proto3" json:"reporting_plugin_factory_service_id,omitempty"` - ContractConfigTrackerId uint32 `protobuf:"varint,3,opt,name=contract_config_tracker_id,json=contractConfigTrackerId,proto3" json:"contract_config_tracker_id,omitempty"` - ContractTransmitterId uint32 `protobuf:"varint,4,opt,name=contract_transmitter_id,json=contractTransmitterId,proto3" json:"contract_transmitter_id,omitempty"` - OffchainConfigDigesterId uint32 `protobuf:"varint,5,opt,name=offchain_config_digester_id,json=offchainConfigDigesterId,proto3" json:"offchain_config_digester_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + LocalConfig *LocalConfig `protobuf:"bytes,1,opt,name=local_config,json=localConfig,proto3" json:"local_config,omitempty"` + ReportingPluginFactoryServiceId uint32 `protobuf:"varint,2,opt,name=reporting_plugin_factory_service_id,json=reportingPluginFactoryServiceId,proto3" json:"reporting_plugin_factory_service_id,omitempty"` + ContractConfigTrackerId uint32 `protobuf:"varint,3,opt,name=contract_config_tracker_id,json=contractConfigTrackerId,proto3" json:"contract_config_tracker_id,omitempty"` + ContractTransmitterId uint32 `protobuf:"varint,4,opt,name=contract_transmitter_id,json=contractTransmitterId,proto3" json:"contract_transmitter_id,omitempty"` + OffchainConfigDigesterId uint32 `protobuf:"varint,5,opt,name=offchain_config_digester_id,json=offchainConfigDigesterId,proto3" json:"offchain_config_digester_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewOracleRequest) Reset() { *x = NewOracleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_oraclefactory_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_oraclefactory_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewOracleRequest) String() string { @@ -153,7 +148,7 @@ func (*NewOracleRequest) ProtoMessage() {} func (x *NewOracleRequest) ProtoReflect() protoreflect.Message { mi := &file_oraclefactory_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -204,20 +199,17 @@ func (x *NewOracleRequest) GetOffchainConfigDigesterId() uint32 { } type NewOracleReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OracleId uint32 `protobuf:"varint,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` unknownFields protoimpl.UnknownFields - - OracleId uint32 `protobuf:"varint,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewOracleReply) Reset() { *x = NewOracleReply{} - if protoimpl.UnsafeEnabled { - mi := &file_oraclefactory_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_oraclefactory_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewOracleReply) String() string { @@ -228,7 +220,7 @@ func (*NewOracleReply) ProtoMessage() {} func (x *NewOracleReply) ProtoReflect() protoreflect.Message { mi := &file_oraclefactory_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -252,7 +244,7 @@ func (x *NewOracleReply) GetOracleId() uint32 { var File_oraclefactory_proto protoreflect.FileDescriptor -var file_oraclefactory_proto_rawDesc = []byte{ +var file_oraclefactory_proto_rawDesc = string([]byte{ 0x0a, 0x13, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, @@ -332,22 +324,22 @@ var file_oraclefactory_proto_rawDesc = []byte{ 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_oraclefactory_proto_rawDescOnce sync.Once - file_oraclefactory_proto_rawDescData = file_oraclefactory_proto_rawDesc + file_oraclefactory_proto_rawDescData []byte ) func file_oraclefactory_proto_rawDescGZIP() []byte { file_oraclefactory_proto_rawDescOnce.Do(func() { - file_oraclefactory_proto_rawDescData = protoimpl.X.CompressGZIP(file_oraclefactory_proto_rawDescData) + file_oraclefactory_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_oraclefactory_proto_rawDesc), len(file_oraclefactory_proto_rawDesc))) }) return file_oraclefactory_proto_rawDescData } var file_oraclefactory_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_oraclefactory_proto_goTypes = []interface{}{ +var file_oraclefactory_proto_goTypes = []any{ (*LocalConfig)(nil), // 0: loop.LocalConfig (*NewOracleRequest)(nil), // 1: loop.NewOracleRequest (*NewOracleReply)(nil), // 2: loop.NewOracleReply @@ -374,49 +366,11 @@ func file_oraclefactory_proto_init() { if File_oraclefactory_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_oraclefactory_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LocalConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oraclefactory_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewOracleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oraclefactory_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewOracleReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oraclefactory_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_oraclefactory_proto_rawDesc), len(file_oraclefactory_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, @@ -427,7 +381,6 @@ func file_oraclefactory_proto_init() { MessageInfos: file_oraclefactory_proto_msgTypes, }.Build() File_oraclefactory_proto = out.File - file_oraclefactory_proto_rawDesc = nil file_oraclefactory_proto_goTypes = nil file_oraclefactory_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/oraclefactory/oraclefactory_grpc.pb.go b/pkg/loop/internal/pb/oraclefactory/oraclefactory_grpc.pb.go index b4ac9efc8..e12ad3db7 100644 --- a/pkg/loop/internal/pb/oraclefactory/oraclefactory_grpc.pb.go +++ b/pkg/loop/internal/pb/oraclefactory/oraclefactory_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: oraclefactory.proto package oraclefactory @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( OracleFactory_NewOracle_FullMethodName = "/loop.OracleFactory/NewOracle" @@ -38,8 +38,9 @@ func NewOracleFactoryClient(cc grpc.ClientConnInterface) OracleFactoryClient { } func (c *oracleFactoryClient) NewOracle(ctx context.Context, in *NewOracleRequest, opts ...grpc.CallOption) (*NewOracleReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewOracleReply) - err := c.cc.Invoke(ctx, OracleFactory_NewOracle_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OracleFactory_NewOracle_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *oracleFactoryClient) NewOracle(ctx context.Context, in *NewOracleReques // OracleFactoryServer is the server API for OracleFactory service. // All implementations must embed UnimplementedOracleFactoryServer -// for forward compatibility +// for forward compatibility. type OracleFactoryServer interface { NewOracle(context.Context, *NewOracleRequest) (*NewOracleReply, error) mustEmbedUnimplementedOracleFactoryServer() } -// UnimplementedOracleFactoryServer must be embedded to have forward compatible implementations. -type UnimplementedOracleFactoryServer struct { -} +// UnimplementedOracleFactoryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOracleFactoryServer struct{} func (UnimplementedOracleFactoryServer) NewOracle(context.Context, *NewOracleRequest) (*NewOracleReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewOracle not implemented") } func (UnimplementedOracleFactoryServer) mustEmbedUnimplementedOracleFactoryServer() {} +func (UnimplementedOracleFactoryServer) testEmbeddedByValue() {} // UnsafeOracleFactoryServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OracleFactoryServer will @@ -71,6 +76,13 @@ type UnsafeOracleFactoryServer interface { } func RegisterOracleFactoryServer(s grpc.ServiceRegistrar, srv OracleFactoryServer) { + // If the following call pancis, it indicates UnimplementedOracleFactoryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OracleFactory_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/pipeline_runner.pb.go b/pkg/loop/internal/pb/pipeline_runner.pb.go index 4eb97e0db..6001e54f7 100644 --- a/pkg/loop/internal/pb/pipeline_runner.pb.go +++ b/pkg/loop/internal/pb/pipeline_runner.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: pipeline_runner.proto package pb @@ -13,6 +13,7 @@ import ( structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,20 +24,17 @@ const ( ) type Options struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxTaskDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_task_duration,json=maxTaskDuration,proto3" json:"max_task_duration,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxTaskDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_task_duration,json=maxTaskDuration,proto3" json:"max_task_duration,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Options) Reset() { *x = Options{} - if protoimpl.UnsafeEnabled { - mi := &file_pipeline_runner_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pipeline_runner_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Options) String() string { @@ -47,7 +45,7 @@ func (*Options) ProtoMessage() {} func (x *Options) ProtoReflect() protoreflect.Message { mi := &file_pipeline_runner_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -70,22 +68,19 @@ func (x *Options) GetMaxTaskDuration() *durationpb.Duration { } type RunRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Spec string `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` + Vars *structpb.Struct `protobuf:"bytes,2,opt,name=vars,proto3" json:"vars,omitempty"` + Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` unknownFields protoimpl.UnknownFields - - Spec string `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - Vars *structpb.Struct `protobuf:"bytes,2,opt,name=vars,proto3" json:"vars,omitempty"` - Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RunRequest) Reset() { *x = RunRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pipeline_runner_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pipeline_runner_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RunRequest) String() string { @@ -96,7 +91,7 @@ func (*RunRequest) ProtoMessage() {} func (x *RunRequest) ProtoReflect() protoreflect.Message { mi := &file_pipeline_runner_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -133,26 +128,23 @@ func (x *RunRequest) GetOptions() *Options { } type TaskResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` + HasError bool `protobuf:"varint,5,opt,name=has_error,json=hasError,proto3" json:"has_error,omitempty"` + IsTerminal bool `protobuf:"varint,6,opt,name=is_terminal,json=isTerminal,proto3" json:"is_terminal,omitempty"` + Index int32 `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` - HasError bool `protobuf:"varint,5,opt,name=has_error,json=hasError,proto3" json:"has_error,omitempty"` - IsTerminal bool `protobuf:"varint,6,opt,name=is_terminal,json=isTerminal,proto3" json:"is_terminal,omitempty"` - Index int32 `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TaskResult) Reset() { *x = TaskResult{} - if protoimpl.UnsafeEnabled { - mi := &file_pipeline_runner_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pipeline_runner_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TaskResult) String() string { @@ -163,7 +155,7 @@ func (*TaskResult) ProtoMessage() {} func (x *TaskResult) ProtoReflect() protoreflect.Message { mi := &file_pipeline_runner_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -228,20 +220,17 @@ func (x *TaskResult) GetIndex() int32 { } type RunResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Results []*TaskResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields - - Results []*TaskResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RunResponse) Reset() { *x = RunResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_pipeline_runner_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pipeline_runner_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RunResponse) String() string { @@ -252,7 +241,7 @@ func (*RunResponse) ProtoMessage() {} func (x *RunResponse) ProtoReflect() protoreflect.Message { mi := &file_pipeline_runner_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -276,7 +265,7 @@ func (x *RunResponse) GetResults() []*TaskResult { var File_pipeline_runner_proto protoreflect.FileDescriptor -var file_pipeline_runner_proto_rawDesc = []byte{ +var file_pipeline_runner_proto_rawDesc = string([]byte{ 0x0a, 0x15, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, @@ -320,22 +309,22 @@ var file_pipeline_runner_proto_rawDesc = []byte{ 0x68, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_pipeline_runner_proto_rawDescOnce sync.Once - file_pipeline_runner_proto_rawDescData = file_pipeline_runner_proto_rawDesc + file_pipeline_runner_proto_rawDescData []byte ) func file_pipeline_runner_proto_rawDescGZIP() []byte { file_pipeline_runner_proto_rawDescOnce.Do(func() { - file_pipeline_runner_proto_rawDescData = protoimpl.X.CompressGZIP(file_pipeline_runner_proto_rawDescData) + file_pipeline_runner_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pipeline_runner_proto_rawDesc), len(file_pipeline_runner_proto_rawDesc))) }) return file_pipeline_runner_proto_rawDescData } var file_pipeline_runner_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_pipeline_runner_proto_goTypes = []interface{}{ +var file_pipeline_runner_proto_goTypes = []any{ (*Options)(nil), // 0: loop.Options (*RunRequest)(nil), // 1: loop.RunRequest (*TaskResult)(nil), // 2: loop.TaskResult @@ -362,61 +351,11 @@ func file_pipeline_runner_proto_init() { if File_pipeline_runner_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pipeline_runner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Options); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pipeline_runner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pipeline_runner_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pipeline_runner_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pipeline_runner_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pipeline_runner_proto_rawDesc), len(file_pipeline_runner_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -427,7 +366,6 @@ func file_pipeline_runner_proto_init() { MessageInfos: file_pipeline_runner_proto_msgTypes, }.Build() File_pipeline_runner_proto = out.File - file_pipeline_runner_proto_rawDesc = nil file_pipeline_runner_proto_goTypes = nil file_pipeline_runner_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/pipeline_runner_grpc.pb.go b/pkg/loop/internal/pb/pipeline_runner_grpc.pb.go index 7947fced1..072ceb2fc 100644 --- a/pkg/loop/internal/pb/pipeline_runner_grpc.pb.go +++ b/pkg/loop/internal/pb/pipeline_runner_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: pipeline_runner.proto package pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PipelineRunnerService_ExecuteRun_FullMethodName = "/loop.PipelineRunnerService/ExecuteRun" @@ -38,8 +38,9 @@ func NewPipelineRunnerServiceClient(cc grpc.ClientConnInterface) PipelineRunnerS } func (c *pipelineRunnerServiceClient) ExecuteRun(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RunResponse) - err := c.cc.Invoke(ctx, PipelineRunnerService_ExecuteRun_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PipelineRunnerService_ExecuteRun_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *pipelineRunnerServiceClient) ExecuteRun(ctx context.Context, in *RunReq // PipelineRunnerServiceServer is the server API for PipelineRunnerService service. // All implementations must embed UnimplementedPipelineRunnerServiceServer -// for forward compatibility +// for forward compatibility. type PipelineRunnerServiceServer interface { ExecuteRun(context.Context, *RunRequest) (*RunResponse, error) mustEmbedUnimplementedPipelineRunnerServiceServer() } -// UnimplementedPipelineRunnerServiceServer must be embedded to have forward compatible implementations. -type UnimplementedPipelineRunnerServiceServer struct { -} +// UnimplementedPipelineRunnerServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPipelineRunnerServiceServer struct{} func (UnimplementedPipelineRunnerServiceServer) ExecuteRun(context.Context, *RunRequest) (*RunResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ExecuteRun not implemented") } func (UnimplementedPipelineRunnerServiceServer) mustEmbedUnimplementedPipelineRunnerServiceServer() {} +func (UnimplementedPipelineRunnerServiceServer) testEmbeddedByValue() {} // UnsafePipelineRunnerServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PipelineRunnerServiceServer will @@ -71,6 +76,13 @@ type UnsafePipelineRunnerServiceServer interface { } func RegisterPipelineRunnerServiceServer(s grpc.ServiceRegistrar, srv PipelineRunnerServiceServer) { + // If the following call pancis, it indicates UnimplementedPipelineRunnerServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PipelineRunnerService_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/relayer.pb.go b/pkg/loop/internal/pb/relayer.pb.go index 8eb519064..c606943bd 100644 --- a/pkg/loop/internal/pb/relayer.pb.go +++ b/pkg/loop/internal/pb/relayer.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: relayer.proto package pb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,22 +23,19 @@ const ( ) type NewRelayerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // toml (is chain instance config enough?) - KeystoreID uint32 `protobuf:"varint,2,opt,name=keystoreID,proto3" json:"keystoreID,omitempty"` - CapabilityRegistryID uint32 `protobuf:"varint,3,opt,name=capabilityRegistryID,proto3" json:"capabilityRegistryID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // toml (is chain instance config enough?) + KeystoreID uint32 `protobuf:"varint,2,opt,name=keystoreID,proto3" json:"keystoreID,omitempty"` + CapabilityRegistryID uint32 `protobuf:"varint,3,opt,name=capabilityRegistryID,proto3" json:"capabilityRegistryID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewRelayerRequest) Reset() { *x = NewRelayerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewRelayerRequest) String() string { @@ -48,7 +46,7 @@ func (*NewRelayerRequest) ProtoMessage() {} func (x *NewRelayerRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -85,20 +83,17 @@ func (x *NewRelayerRequest) GetCapabilityRegistryID() uint32 { } type NewRelayerReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RelayerID uint32 `protobuf:"varint,1,opt,name=relayerID,proto3" json:"relayerID,omitempty"` unknownFields protoimpl.UnknownFields - - RelayerID uint32 `protobuf:"varint,1,opt,name=relayerID,proto3" json:"relayerID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewRelayerReply) Reset() { *x = NewRelayerReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewRelayerReply) String() string { @@ -109,7 +104,7 @@ func (*NewRelayerReply) ProtoMessage() {} func (x *NewRelayerReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -132,20 +127,17 @@ func (x *NewRelayerReply) GetRelayerID() uint32 { } type AccountsReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` unknownFields protoimpl.UnknownFields - - Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AccountsReply) Reset() { *x = AccountsReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountsReply) String() string { @@ -156,7 +148,7 @@ func (*AccountsReply) ProtoMessage() {} func (x *AccountsReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -179,21 +171,18 @@ func (x *AccountsReply) GetAccounts() []string { } type SignRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SignRequest) Reset() { *x = SignRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignRequest) String() string { @@ -204,7 +193,7 @@ func (*SignRequest) ProtoMessage() {} func (x *SignRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -234,20 +223,17 @@ func (x *SignRequest) GetData() []byte { } type SignReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SignedData []byte `protobuf:"bytes,1,opt,name=signedData,proto3" json:"signedData,omitempty"` unknownFields protoimpl.UnknownFields - - SignedData []byte `protobuf:"bytes,1,opt,name=signedData,proto3" json:"signedData,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SignReply) Reset() { *x = SignReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignReply) String() string { @@ -258,7 +244,7 @@ func (*SignReply) ProtoMessage() {} func (x *SignReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -282,25 +268,22 @@ func (x *SignReply) GetSignedData() []byte { // RelayArgs represents [github.com/smartcontractkit/chainlink-common/pkg/types.RelayArgs]. type RelayArgs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ExternalJobID []byte `protobuf:"bytes,1,opt,name=externalJobID,proto3" json:"externalJobID,omitempty"` // [32]byte + JobID int32 `protobuf:"varint,2,opt,name=jobID,proto3" json:"jobID,omitempty"` + ContractID string `protobuf:"bytes,3,opt,name=contractID,proto3" json:"contractID,omitempty"` + New bool `protobuf:"varint,4,opt,name=new,proto3" json:"new,omitempty"` + RelayConfig []byte `protobuf:"bytes,5,opt,name=relayConfig,proto3" json:"relayConfig,omitempty"` + ProviderType string `protobuf:"bytes,6,opt,name=providerType,proto3" json:"providerType,omitempty"` unknownFields protoimpl.UnknownFields - - ExternalJobID []byte `protobuf:"bytes,1,opt,name=externalJobID,proto3" json:"externalJobID,omitempty"` // [32]byte - JobID int32 `protobuf:"varint,2,opt,name=jobID,proto3" json:"jobID,omitempty"` - ContractID string `protobuf:"bytes,3,opt,name=contractID,proto3" json:"contractID,omitempty"` - New bool `protobuf:"varint,4,opt,name=new,proto3" json:"new,omitempty"` - RelayConfig []byte `protobuf:"bytes,5,opt,name=relayConfig,proto3" json:"relayConfig,omitempty"` - ProviderType string `protobuf:"bytes,6,opt,name=providerType,proto3" json:"providerType,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RelayArgs) Reset() { *x = RelayArgs{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RelayArgs) String() string { @@ -311,7 +294,7 @@ func (*RelayArgs) ProtoMessage() {} func (x *RelayArgs) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -370,21 +353,18 @@ func (x *RelayArgs) GetProviderType() string { // RelayArgs represents [github.com/smartcontractkit/chainlink-common/pkg/types.PluginArgs]. type PluginArgs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TransmitterID string `protobuf:"bytes,1,opt,name=transmitterID,proto3" json:"transmitterID,omitempty"` + PluginConfig []byte `protobuf:"bytes,2,opt,name=pluginConfig,proto3" json:"pluginConfig,omitempty"` unknownFields protoimpl.UnknownFields - - TransmitterID string `protobuf:"bytes,1,opt,name=transmitterID,proto3" json:"transmitterID,omitempty"` - PluginConfig []byte `protobuf:"bytes,2,opt,name=pluginConfig,proto3" json:"pluginConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PluginArgs) Reset() { *x = PluginArgs{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PluginArgs) String() string { @@ -395,7 +375,7 @@ func (*PluginArgs) ProtoMessage() {} func (x *PluginArgs) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -426,20 +406,17 @@ func (x *PluginArgs) GetPluginConfig() []byte { // NewContractWriterRequest has request parameters for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewContractWriter]. type NewContractWriterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractWriterConfig []byte `protobuf:"bytes,1,opt,name=contractWriterConfig,proto3" json:"contractWriterConfig,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractWriterConfig []byte `protobuf:"bytes,1,opt,name=contractWriterConfig,proto3" json:"contractWriterConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewContractWriterRequest) Reset() { *x = NewContractWriterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewContractWriterRequest) String() string { @@ -450,7 +427,7 @@ func (*NewContractWriterRequest) ProtoMessage() {} func (x *NewContractWriterRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -474,20 +451,17 @@ func (x *NewContractWriterRequest) GetContractWriterConfig() []byte { // NewContractWriterReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewContractWriter]. type NewContractWriterReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractWriterID uint32 `protobuf:"varint,1,opt,name=contractWriterID,proto3" json:"contractWriterID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractWriterID uint32 `protobuf:"varint,1,opt,name=contractWriterID,proto3" json:"contractWriterID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewContractWriterReply) Reset() { *x = NewContractWriterReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewContractWriterReply) String() string { @@ -498,7 +472,7 @@ func (*NewContractWriterReply) ProtoMessage() {} func (x *NewContractWriterReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -522,20 +496,17 @@ func (x *NewContractWriterReply) GetContractWriterID() uint32 { // NewContractReaderRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewContractReader]. type NewContractReaderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractReaderConfig []byte `protobuf:"bytes,1,opt,name=contractReaderConfig,proto3" json:"contractReaderConfig,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractReaderConfig []byte `protobuf:"bytes,1,opt,name=contractReaderConfig,proto3" json:"contractReaderConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewContractReaderRequest) Reset() { *x = NewContractReaderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewContractReaderRequest) String() string { @@ -546,7 +517,7 @@ func (*NewContractReaderRequest) ProtoMessage() {} func (x *NewContractReaderRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -570,20 +541,17 @@ func (x *NewContractReaderRequest) GetContractReaderConfig() []byte { // NewContractReaderReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewContractReader]. type NewContractReaderReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractReaderID uint32 `protobuf:"varint,1,opt,name=contractReaderID,proto3" json:"contractReaderID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractReaderID uint32 `protobuf:"varint,1,opt,name=contractReaderID,proto3" json:"contractReaderID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewContractReaderReply) Reset() { *x = NewContractReaderReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewContractReaderReply) String() string { @@ -594,7 +562,7 @@ func (*NewContractReaderReply) ProtoMessage() {} func (x *NewContractReaderReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -618,21 +586,18 @@ func (x *NewContractReaderReply) GetContractReaderID() uint32 { // NewPluginProviderRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewPluginProvider]. type NewPluginProviderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RelayArgs *RelayArgs `protobuf:"bytes,1,opt,name=relayArgs,proto3" json:"relayArgs,omitempty"` + PluginArgs *PluginArgs `protobuf:"bytes,2,opt,name=pluginArgs,proto3" json:"pluginArgs,omitempty"` unknownFields protoimpl.UnknownFields - - RelayArgs *RelayArgs `protobuf:"bytes,1,opt,name=relayArgs,proto3" json:"relayArgs,omitempty"` - PluginArgs *PluginArgs `protobuf:"bytes,2,opt,name=pluginArgs,proto3" json:"pluginArgs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewPluginProviderRequest) Reset() { *x = NewPluginProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewPluginProviderRequest) String() string { @@ -643,7 +608,7 @@ func (*NewPluginProviderRequest) ProtoMessage() {} func (x *NewPluginProviderRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -674,20 +639,17 @@ func (x *NewPluginProviderRequest) GetPluginArgs() *PluginArgs { // NewPluginProviderReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewPluginProvider]. type NewPluginProviderReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PluginProviderID uint32 `protobuf:"varint,1,opt,name=pluginProviderID,proto3" json:"pluginProviderID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PluginProviderID uint32 `protobuf:"varint,1,opt,name=pluginProviderID,proto3" json:"pluginProviderID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewPluginProviderReply) Reset() { *x = NewPluginProviderReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewPluginProviderReply) String() string { @@ -698,7 +660,7 @@ func (*NewPluginProviderReply) ProtoMessage() {} func (x *NewPluginProviderReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -722,20 +684,17 @@ func (x *NewPluginProviderReply) GetPluginProviderID() uint32 { // NewConfigProviderRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewConfigProvider]. type NewConfigProviderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RelayArgs *RelayArgs `protobuf:"bytes,1,opt,name=relayArgs,proto3" json:"relayArgs,omitempty"` unknownFields protoimpl.UnknownFields - - RelayArgs *RelayArgs `protobuf:"bytes,1,opt,name=relayArgs,proto3" json:"relayArgs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewConfigProviderRequest) Reset() { *x = NewConfigProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewConfigProviderRequest) String() string { @@ -746,7 +705,7 @@ func (*NewConfigProviderRequest) ProtoMessage() {} func (x *NewConfigProviderRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -770,20 +729,17 @@ func (x *NewConfigProviderRequest) GetRelayArgs() *RelayArgs { // NewConfigProviderReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewConfigProvider]. type NewConfigProviderReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigProviderID uint32 `protobuf:"varint,1,opt,name=configProviderID,proto3" json:"configProviderID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ConfigProviderID uint32 `protobuf:"varint,1,opt,name=configProviderID,proto3" json:"configProviderID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewConfigProviderReply) Reset() { *x = NewConfigProviderReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewConfigProviderReply) String() string { @@ -794,7 +750,7 @@ func (*NewConfigProviderReply) ProtoMessage() {} func (x *NewConfigProviderReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -817,18 +773,16 @@ func (x *NewConfigProviderReply) GetConfigProviderID() uint32 { } type LatestHeadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestHeadRequest) Reset() { *x = LatestHeadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestHeadRequest) String() string { @@ -839,7 +793,7 @@ func (*LatestHeadRequest) ProtoMessage() {} func (x *LatestHeadRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -856,20 +810,17 @@ func (*LatestHeadRequest) Descriptor() ([]byte, []int) { // LatestHeadReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.LatestHeadReply]. type LatestHeadReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Head *Head `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"` unknownFields protoimpl.UnknownFields - - Head *Head `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LatestHeadReply) Reset() { *x = LatestHeadReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestHeadReply) String() string { @@ -880,7 +831,7 @@ func (*LatestHeadReply) ProtoMessage() {} func (x *LatestHeadReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -903,18 +854,16 @@ func (x *LatestHeadReply) GetHead() *Head { } type GetChainStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetChainStatusRequest) Reset() { *x = GetChainStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetChainStatusRequest) String() string { @@ -925,7 +874,7 @@ func (*GetChainStatusRequest) ProtoMessage() {} func (x *GetChainStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -942,20 +891,17 @@ func (*GetChainStatusRequest) Descriptor() ([]byte, []int) { // ChainStatusReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.ChainStatus]. type GetChainStatusReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Chain *ChainStatus `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` unknownFields protoimpl.UnknownFields - - Chain *ChainStatus `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetChainStatusReply) Reset() { *x = GetChainStatusReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetChainStatusReply) String() string { @@ -966,7 +912,7 @@ func (*GetChainStatusReply) ProtoMessage() {} func (x *GetChainStatusReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -990,22 +936,19 @@ func (x *GetChainStatusReply) GetChain() *ChainStatus { // ChainStatus represents [github.com/smartcontractkit/chainlink-common/pkg/types.ChainStatus]. type ChainStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + Config string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // TOML unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` - Config string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // TOML + sizeCache protoimpl.SizeCache } func (x *ChainStatus) Reset() { *x = ChainStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChainStatus) String() string { @@ -1016,7 +959,7 @@ func (*ChainStatus) ProtoMessage() {} func (x *ChainStatus) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1054,21 +997,18 @@ func (x *ChainStatus) GetConfig() string { // ListNodeStatusesRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.ListNodeStatuses]. type ListNodeStatusesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` unknownFields protoimpl.UnknownFields - - PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListNodeStatusesRequest) Reset() { *x = ListNodeStatusesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListNodeStatusesRequest) String() string { @@ -1079,7 +1019,7 @@ func (*ListNodeStatusesRequest) ProtoMessage() {} func (x *ListNodeStatusesRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1110,22 +1050,19 @@ func (x *ListNodeStatusesRequest) GetPageToken() string { // ListNodeStatusesReply is a pagination response for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.ListNodeStatuses]. type ListNodeStatusesReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Nodes []*NodeStatus `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` + Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // total count of nodes + NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields - - Nodes []*NodeStatus `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` - Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // total count of nodes - NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListNodeStatusesReply) Reset() { *x = ListNodeStatusesReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListNodeStatusesReply) String() string { @@ -1136,7 +1073,7 @@ func (*ListNodeStatusesReply) ProtoMessage() {} func (x *ListNodeStatusesReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1174,23 +1111,20 @@ func (x *ListNodeStatusesReply) GetNextPageToken() string { // NodeStatus represents [github.com/smartcontractkit/chainlink-common/pkg/types.NodeStatus]. type NodeStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChainID string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Config string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // TOML + State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - ChainID string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Config string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // TOML - State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NodeStatus) Reset() { *x = NodeStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NodeStatus) String() string { @@ -1201,7 +1135,7 @@ func (*NodeStatus) ProtoMessage() {} func (x *NodeStatus) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1246,23 +1180,20 @@ func (x *NodeStatus) GetState() string { // SendTxRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.SendTx]. type TransactionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` + Amount *BigInt `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + BalanceCheck bool `protobuf:"varint,4,opt,name=balanceCheck,proto3" json:"balanceCheck,omitempty"` unknownFields protoimpl.UnknownFields - - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` - Amount *BigInt `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` - BalanceCheck bool `protobuf:"varint,4,opt,name=balanceCheck,proto3" json:"balanceCheck,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionRequest) Reset() { *x = TransactionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionRequest) String() string { @@ -1273,7 +1204,7 @@ func (*TransactionRequest) ProtoMessage() {} func (x *TransactionRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1318,27 +1249,24 @@ func (x *TransactionRequest) GetBalanceCheck() bool { // ContractConfig represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ContractConfig] type ContractConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte - ConfigCount uint64 `protobuf:"varint,2,opt,name=configCount,proto3" json:"configCount,omitempty"` - Signers [][]byte `protobuf:"bytes,3,rep,name=signers,proto3" json:"signers,omitempty"` // []OnchainPublicKey - Transmitters []string `protobuf:"bytes,4,rep,name=transmitters,proto3" json:"transmitters,omitempty"` // []Account - F uint32 `protobuf:"varint,5,opt,name=F,proto3" json:"F,omitempty"` // uint8 - OnchainConfig []byte `protobuf:"bytes,6,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` - OffchainConfigVersion uint64 `protobuf:"varint,7,opt,name=offchainConfigVersion,proto3" json:"offchainConfigVersion,omitempty"` - OffchainConfig []byte `protobuf:"bytes,8,opt,name=offchainConfig,proto3" json:"offchainConfig,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + ConfigCount uint64 `protobuf:"varint,2,opt,name=configCount,proto3" json:"configCount,omitempty"` + Signers [][]byte `protobuf:"bytes,3,rep,name=signers,proto3" json:"signers,omitempty"` // []OnchainPublicKey + Transmitters []string `protobuf:"bytes,4,rep,name=transmitters,proto3" json:"transmitters,omitempty"` // []Account + F uint32 `protobuf:"varint,5,opt,name=F,proto3" json:"F,omitempty"` // uint8 + OnchainConfig []byte `protobuf:"bytes,6,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + OffchainConfigVersion uint64 `protobuf:"varint,7,opt,name=offchainConfigVersion,proto3" json:"offchainConfigVersion,omitempty"` + OffchainConfig []byte `protobuf:"bytes,8,opt,name=offchainConfig,proto3" json:"offchainConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ContractConfig) Reset() { *x = ContractConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContractConfig) String() string { @@ -1349,7 +1277,7 @@ func (*ContractConfig) ProtoMessage() {} func (x *ContractConfig) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1422,20 +1350,17 @@ func (x *ContractConfig) GetOffchainConfig() []byte { // ConfigDigestRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.OffchainConfigDigester.ConfigDigest]. type ConfigDigestRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractConfig *ContractConfig `protobuf:"bytes,1,opt,name=contractConfig,proto3" json:"contractConfig,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractConfig *ContractConfig `protobuf:"bytes,1,opt,name=contractConfig,proto3" json:"contractConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ConfigDigestRequest) Reset() { *x = ConfigDigestRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigDigestRequest) String() string { @@ -1446,7 +1371,7 @@ func (*ConfigDigestRequest) ProtoMessage() {} func (x *ConfigDigestRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1470,20 +1395,17 @@ func (x *ConfigDigestRequest) GetContractConfig() *ContractConfig { // ConfigDigestReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.OffchainConfigDigester.ConfigDigest]. type ConfigDigestReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + sizeCache protoimpl.SizeCache } func (x *ConfigDigestReply) Reset() { *x = ConfigDigestReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigDigestReply) String() string { @@ -1494,7 +1416,7 @@ func (*ConfigDigestReply) ProtoMessage() {} func (x *ConfigDigestReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1517,18 +1439,16 @@ func (x *ConfigDigestReply) GetConfigDigest() []byte { } type ConfigDigestPrefixRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ConfigDigestPrefixRequest) Reset() { *x = ConfigDigestPrefixRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigDigestPrefixRequest) String() string { @@ -1539,7 +1459,7 @@ func (*ConfigDigestPrefixRequest) ProtoMessage() {} func (x *ConfigDigestPrefixRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1556,20 +1476,17 @@ func (*ConfigDigestPrefixRequest) Descriptor() ([]byte, []int) { // ConfigDigestPrefixReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.OffchainConfigDigester.ConfigDigestPrefix]. type ConfigDigestPrefixReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigDigestPrefix uint32 `protobuf:"varint,1,opt,name=configDigestPrefix,proto3" json:"configDigestPrefix,omitempty"` // uint16 + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigestPrefix uint32 `protobuf:"varint,1,opt,name=configDigestPrefix,proto3" json:"configDigestPrefix,omitempty"` // uint16 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ConfigDigestPrefixReply) Reset() { *x = ConfigDigestPrefixReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigDigestPrefixReply) String() string { @@ -1580,7 +1497,7 @@ func (*ConfigDigestPrefixReply) ProtoMessage() {} func (x *ConfigDigestPrefixReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1603,18 +1520,16 @@ func (x *ConfigDigestPrefixReply) GetConfigDigestPrefix() uint32 { } type LatestConfigDetailsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestConfigDetailsRequest) Reset() { *x = LatestConfigDetailsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestConfigDetailsRequest) String() string { @@ -1625,7 +1540,7 @@ func (*LatestConfigDetailsRequest) ProtoMessage() {} func (x *LatestConfigDetailsRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1642,21 +1557,18 @@ func (*LatestConfigDetailsRequest) Descriptor() ([]byte, []int) { // LatestConfigDetailsReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ContractConfigTracker.LatestConfigDetails]. type LatestConfigDetailsReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChangedInBlock uint64 `protobuf:"varint,1,opt,name=changedInBlock,proto3" json:"changedInBlock,omitempty"` - ConfigDigest []byte `protobuf:"bytes,2,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + state protoimpl.MessageState `protogen:"open.v1"` + ChangedInBlock uint64 `protobuf:"varint,1,opt,name=changedInBlock,proto3" json:"changedInBlock,omitempty"` + ConfigDigest []byte `protobuf:"bytes,2,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestConfigDetailsReply) Reset() { *x = LatestConfigDetailsReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestConfigDetailsReply) String() string { @@ -1667,7 +1579,7 @@ func (*LatestConfigDetailsReply) ProtoMessage() {} func (x *LatestConfigDetailsReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1698,20 +1610,17 @@ func (x *LatestConfigDetailsReply) GetConfigDigest() []byte { // LatestConfigRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ContractConfigTracker.LatestConfig]. type LatestConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChangedInBlock uint64 `protobuf:"varint,1,opt,name=changedInBlock,proto3" json:"changedInBlock,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ChangedInBlock uint64 `protobuf:"varint,1,opt,name=changedInBlock,proto3" json:"changedInBlock,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestConfigRequest) Reset() { *x = LatestConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestConfigRequest) String() string { @@ -1722,7 +1631,7 @@ func (*LatestConfigRequest) ProtoMessage() {} func (x *LatestConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1746,20 +1655,17 @@ func (x *LatestConfigRequest) GetChangedInBlock() uint64 { // LatestConfigReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ContractConfigTracker.LatestConfig]. type LatestConfigReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractConfig *ContractConfig `protobuf:"bytes,1,opt,name=contractConfig,proto3" json:"contractConfig,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractConfig *ContractConfig `protobuf:"bytes,1,opt,name=contractConfig,proto3" json:"contractConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestConfigReply) Reset() { *x = LatestConfigReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestConfigReply) String() string { @@ -1770,7 +1676,7 @@ func (*LatestConfigReply) ProtoMessage() {} func (x *LatestConfigReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1793,18 +1699,16 @@ func (x *LatestConfigReply) GetContractConfig() *ContractConfig { } type LatestBlockHeightRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestBlockHeightRequest) Reset() { *x = LatestBlockHeightRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestBlockHeightRequest) String() string { @@ -1815,7 +1719,7 @@ func (*LatestBlockHeightRequest) ProtoMessage() {} func (x *LatestBlockHeightRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1832,20 +1736,17 @@ func (*LatestBlockHeightRequest) Descriptor() ([]byte, []int) { // LatestBlockHeightReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ContractConfigTracker.LatestBlockHeightReply]. type LatestBlockHeightReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BlockHeight uint64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` unknownFields protoimpl.UnknownFields - - BlockHeight uint64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LatestBlockHeightReply) Reset() { *x = LatestBlockHeightReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestBlockHeightReply) String() string { @@ -1856,7 +1757,7 @@ func (*LatestBlockHeightReply) ProtoMessage() {} func (x *LatestBlockHeightReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1880,22 +1781,19 @@ func (x *LatestBlockHeightReply) GetBlockHeight() uint64 { // ReportTimestamp represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportTimestamp]. type ReportTimestamp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + Round uint32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` // uint8 unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte - Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` - Round uint32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` // uint8 + sizeCache protoimpl.SizeCache } func (x *ReportTimestamp) Reset() { *x = ReportTimestamp{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportTimestamp) String() string { @@ -1906,7 +1804,7 @@ func (*ReportTimestamp) ProtoMessage() {} func (x *ReportTimestamp) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1944,21 +1842,18 @@ func (x *ReportTimestamp) GetRound() uint32 { // ReportContext represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportContext]. type ReportContext struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` - ExtraHash []byte `protobuf:"bytes,2,opt,name=extraHash,proto3" json:"extraHash,omitempty"` // [32]byte + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + ExtraHash []byte `protobuf:"bytes,2,opt,name=extraHash,proto3" json:"extraHash,omitempty"` // [32]byte + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportContext) Reset() { *x = ReportContext{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportContext) String() string { @@ -1969,7 +1864,7 @@ func (*ReportContext) ProtoMessage() {} func (x *ReportContext) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2000,21 +1895,18 @@ func (x *ReportContext) GetExtraHash() []byte { // AttributedOnchainSignature represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.AttributedOnchainSignature]. type AttributedOnchainSignature struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` + Signer uint32 `protobuf:"varint,2,opt,name=signer,proto3" json:"signer,omitempty"` // uint8 unknownFields protoimpl.UnknownFields - - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - Signer uint32 `protobuf:"varint,2,opt,name=signer,proto3" json:"signer,omitempty"` // uint8 + sizeCache protoimpl.SizeCache } func (x *AttributedOnchainSignature) Reset() { *x = AttributedOnchainSignature{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributedOnchainSignature) String() string { @@ -2025,7 +1917,7 @@ func (*AttributedOnchainSignature) ProtoMessage() {} func (x *AttributedOnchainSignature) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2056,22 +1948,19 @@ func (x *AttributedOnchainSignature) GetSigner() uint32 { // TransmitRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ContractTransmitter.Transmit]. type TransmitRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ReportContext *ReportContext `protobuf:"bytes,1,opt,name=reportContext,proto3" json:"reportContext,omitempty"` Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` AttributedOnchainSignatures []*AttributedOnchainSignature `protobuf:"bytes,3,rep,name=attributedOnchainSignatures,proto3" json:"attributedOnchainSignatures,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransmitRequest) Reset() { *x = TransmitRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransmitRequest) String() string { @@ -2082,7 +1971,7 @@ func (*TransmitRequest) ProtoMessage() {} func (x *TransmitRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2119,18 +2008,16 @@ func (x *TransmitRequest) GetAttributedOnchainSignatures() []*AttributedOnchainS } type TransmitReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransmitReply) Reset() { *x = TransmitReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransmitReply) String() string { @@ -2141,7 +2028,7 @@ func (*TransmitReply) ProtoMessage() {} func (x *TransmitReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2157,18 +2044,16 @@ func (*TransmitReply) Descriptor() ([]byte, []int) { } type LatestConfigDigestAndEpochRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LatestConfigDigestAndEpochRequest) Reset() { *x = LatestConfigDigestAndEpochRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestConfigDigestAndEpochRequest) String() string { @@ -2179,7 +2064,7 @@ func (*LatestConfigDigestAndEpochRequest) ProtoMessage() {} func (x *LatestConfigDigestAndEpochRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2196,21 +2081,18 @@ func (*LatestConfigDigestAndEpochRequest) Descriptor() ([]byte, []int) { // LatestConfigDigestAndEpochReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ContractTransmitter.LatestConfigDigestAndEpoch]. type LatestConfigDigestAndEpochReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte - Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LatestConfigDigestAndEpochReply) Reset() { *x = LatestConfigDigestAndEpochReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestConfigDigestAndEpochReply) String() string { @@ -2221,7 +2103,7 @@ func (*LatestConfigDigestAndEpochReply) ProtoMessage() {} func (x *LatestConfigDigestAndEpochReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2251,18 +2133,16 @@ func (x *LatestConfigDigestAndEpochReply) GetEpoch() uint32 { } type FromAccountRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FromAccountRequest) Reset() { *x = FromAccountRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FromAccountRequest) String() string { @@ -2273,7 +2153,7 @@ func (*FromAccountRequest) ProtoMessage() {} func (x *FromAccountRequest) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2290,20 +2170,17 @@ func (*FromAccountRequest) Descriptor() ([]byte, []int) { // FromAccountReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.Service.FromAccount]. type FromAccountReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Account string `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"` unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FromAccountReply) Reset() { *x = FromAccountReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FromAccountReply) String() string { @@ -2314,7 +2191,7 @@ func (*FromAccountReply) ProtoMessage() {} func (x *FromAccountReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2338,20 +2215,17 @@ func (x *FromAccountReply) GetAccount() string { // NameReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.Service.Name]. type NameReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NameReply) Reset() { *x = NameReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NameReply) String() string { @@ -2362,7 +2236,7 @@ func (*NameReply) ProtoMessage() {} func (x *NameReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2386,20 +2260,17 @@ func (x *NameReply) GetName() string { // HealthReportReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/types.Service.HealthReport]. type HealthReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + HealthReport map[string]string `protobuf:"bytes,1,rep,name=healthReport,proto3" json:"healthReport,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - HealthReport map[string]string `protobuf:"bytes,1,rep,name=healthReport,proto3" json:"healthReport,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *HealthReportReply) Reset() { *x = HealthReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HealthReportReply) String() string { @@ -2410,7 +2281,7 @@ func (*HealthReportReply) ProtoMessage() {} func (x *HealthReportReply) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2434,21 +2305,18 @@ func (x *HealthReportReply) GetHealthReport() map[string]string { // BigInt represents a [big.Int]. type BigInt struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Negative bool `protobuf:"varint,1,opt,name=negative,proto3" json:"negative,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields - - Negative bool `protobuf:"varint,1,opt,name=negative,proto3" json:"negative,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BigInt) Reset() { *x = BigInt{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BigInt) String() string { @@ -2459,7 +2327,7 @@ func (*BigInt) ProtoMessage() {} func (x *BigInt) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2489,21 +2357,18 @@ func (x *BigInt) GetValue() []byte { } type StarknetSignature struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + X *BigInt `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"` + Y *BigInt `protobuf:"bytes,2,opt,name=y,proto3" json:"y,omitempty"` unknownFields protoimpl.UnknownFields - - X *BigInt `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"` - Y *BigInt `protobuf:"bytes,2,opt,name=y,proto3" json:"y,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StarknetSignature) Reset() { *x = StarknetSignature{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StarknetSignature) String() string { @@ -2514,7 +2379,7 @@ func (*StarknetSignature) ProtoMessage() {} func (x *StarknetSignature) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2544,20 +2409,17 @@ func (x *StarknetSignature) GetY() *BigInt { } type StarknetMessageHash struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Hash *BigInt `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` unknownFields protoimpl.UnknownFields - - Hash *BigInt `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StarknetMessageHash) Reset() { *x = StarknetMessageHash{} - if protoimpl.UnsafeEnabled { - mi := &file_relayer_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayer_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StarknetMessageHash) String() string { @@ -2568,7 +2430,7 @@ func (*StarknetMessageHash) ProtoMessage() {} func (x *StarknetMessageHash) ProtoReflect() protoreflect.Message { mi := &file_relayer_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2592,7 +2454,7 @@ func (x *StarknetMessageHash) GetHash() *BigInt { var File_relayer_proto protoreflect.FileDescriptor -var file_relayer_proto_rawDesc = []byte{ +var file_relayer_proto_rawDesc = string([]byte{ 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, @@ -2963,22 +2825,22 @@ var file_relayer_proto_rawDesc = []byte{ 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_relayer_proto_rawDescOnce sync.Once - file_relayer_proto_rawDescData = file_relayer_proto_rawDesc + file_relayer_proto_rawDescData []byte ) func file_relayer_proto_rawDescGZIP() []byte { file_relayer_proto_rawDescOnce.Do(func() { - file_relayer_proto_rawDescData = protoimpl.X.CompressGZIP(file_relayer_proto_rawDescData) + file_relayer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_relayer_proto_rawDesc), len(file_relayer_proto_rawDesc))) }) return file_relayer_proto_rawDescData } var file_relayer_proto_msgTypes = make([]protoimpl.MessageInfo, 50) -var file_relayer_proto_goTypes = []interface{}{ +var file_relayer_proto_goTypes = []any{ (*NewRelayerRequest)(nil), // 0: loop.NewRelayerRequest (*NewRelayerReply)(nil), // 1: loop.NewRelayerReply (*AccountsReply)(nil), // 2: loop.AccountsReply @@ -3108,601 +2970,11 @@ func file_relayer_proto_init() { return } file_contract_reader_proto_init() - if !protoimpl.UnsafeEnabled { - file_relayer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewRelayerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewRelayerReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountsReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayArgs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PluginArgs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewContractWriterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewContractWriterReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewContractReaderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewContractReaderReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewPluginProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewPluginProviderReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewConfigProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewConfigProviderReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestHeadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestHeadReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetChainStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetChainStatusReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChainStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNodeStatusesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNodeStatusesReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContractConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigDigestRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigDigestReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigDigestPrefixRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigDigestPrefixReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestConfigDetailsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestConfigDetailsReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestConfigReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestBlockHeightRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestBlockHeightReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportTimestamp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportContext); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributedOnchainSignature); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransmitRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransmitReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestConfigDigestAndEpochRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestConfigDigestAndEpochReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FromAccountRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FromAccountReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NameReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HealthReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BigInt); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StarknetSignature); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayer_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StarknetMessageHash); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_relayer_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_relayer_proto_rawDesc), len(file_relayer_proto_rawDesc)), NumEnums: 0, NumMessages: 50, NumExtensions: 0, @@ -3713,7 +2985,6 @@ func file_relayer_proto_init() { MessageInfos: file_relayer_proto_msgTypes, }.Build() File_relayer_proto = out.File - file_relayer_proto_rawDesc = nil file_relayer_proto_goTypes = nil file_relayer_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/relayer_grpc.pb.go b/pkg/loop/internal/pb/relayer_grpc.pb.go index aa6a804db..7cc02e048 100644 --- a/pkg/loop/internal/pb/relayer_grpc.pb.go +++ b/pkg/loop/internal/pb/relayer_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: relayer.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PluginRelayer_NewRelayer_FullMethodName = "/loop.PluginRelayer/NewRelayer" @@ -39,8 +39,9 @@ func NewPluginRelayerClient(cc grpc.ClientConnInterface) PluginRelayerClient { } func (c *pluginRelayerClient) NewRelayer(ctx context.Context, in *NewRelayerRequest, opts ...grpc.CallOption) (*NewRelayerReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewRelayerReply) - err := c.cc.Invoke(ctx, PluginRelayer_NewRelayer_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PluginRelayer_NewRelayer_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,20 +50,24 @@ func (c *pluginRelayerClient) NewRelayer(ctx context.Context, in *NewRelayerRequ // PluginRelayerServer is the server API for PluginRelayer service. // All implementations must embed UnimplementedPluginRelayerServer -// for forward compatibility +// for forward compatibility. type PluginRelayerServer interface { NewRelayer(context.Context, *NewRelayerRequest) (*NewRelayerReply, error) mustEmbedUnimplementedPluginRelayerServer() } -// UnimplementedPluginRelayerServer must be embedded to have forward compatible implementations. -type UnimplementedPluginRelayerServer struct { -} +// UnimplementedPluginRelayerServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPluginRelayerServer struct{} func (UnimplementedPluginRelayerServer) NewRelayer(context.Context, *NewRelayerRequest) (*NewRelayerReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewRelayer not implemented") } func (UnimplementedPluginRelayerServer) mustEmbedUnimplementedPluginRelayerServer() {} +func (UnimplementedPluginRelayerServer) testEmbeddedByValue() {} // UnsafePluginRelayerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PluginRelayerServer will @@ -72,6 +77,13 @@ type UnsafePluginRelayerServer interface { } func RegisterPluginRelayerServer(s grpc.ServiceRegistrar, srv PluginRelayerServer) { + // If the following call pancis, it indicates UnimplementedPluginRelayerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PluginRelayer_ServiceDesc, srv) } @@ -131,8 +143,9 @@ func NewKeystoreClient(cc grpc.ClientConnInterface) KeystoreClient { } func (c *keystoreClient) Accounts(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AccountsReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccountsReply) - err := c.cc.Invoke(ctx, Keystore_Accounts_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_Accounts_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -140,8 +153,9 @@ func (c *keystoreClient) Accounts(ctx context.Context, in *emptypb.Empty, opts . } func (c *keystoreClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignReply) - err := c.cc.Invoke(ctx, Keystore_Sign_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Keystore_Sign_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -150,16 +164,19 @@ func (c *keystoreClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc // KeystoreServer is the server API for Keystore service. // All implementations must embed UnimplementedKeystoreServer -// for forward compatibility +// for forward compatibility. type KeystoreServer interface { Accounts(context.Context, *emptypb.Empty) (*AccountsReply, error) Sign(context.Context, *SignRequest) (*SignReply, error) mustEmbedUnimplementedKeystoreServer() } -// UnimplementedKeystoreServer must be embedded to have forward compatible implementations. -type UnimplementedKeystoreServer struct { -} +// UnimplementedKeystoreServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKeystoreServer struct{} func (UnimplementedKeystoreServer) Accounts(context.Context, *emptypb.Empty) (*AccountsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Accounts not implemented") @@ -168,6 +185,7 @@ func (UnimplementedKeystoreServer) Sign(context.Context, *SignRequest) (*SignRep return nil, status.Errorf(codes.Unimplemented, "method Sign not implemented") } func (UnimplementedKeystoreServer) mustEmbedUnimplementedKeystoreServer() {} +func (UnimplementedKeystoreServer) testEmbeddedByValue() {} // UnsafeKeystoreServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to KeystoreServer will @@ -177,6 +195,13 @@ type UnsafeKeystoreServer interface { } func RegisterKeystoreServer(s grpc.ServiceRegistrar, srv KeystoreServer) { + // If the following call pancis, it indicates UnimplementedKeystoreServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Keystore_ServiceDesc, srv) } @@ -270,8 +295,9 @@ func NewRelayerClient(cc grpc.ClientConnInterface) RelayerClient { } func (c *relayerClient) NewContractWriter(ctx context.Context, in *NewContractWriterRequest, opts ...grpc.CallOption) (*NewContractWriterReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewContractWriterReply) - err := c.cc.Invoke(ctx, Relayer_NewContractWriter_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Relayer_NewContractWriter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -279,8 +305,9 @@ func (c *relayerClient) NewContractWriter(ctx context.Context, in *NewContractWr } func (c *relayerClient) NewContractReader(ctx context.Context, in *NewContractReaderRequest, opts ...grpc.CallOption) (*NewContractReaderReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewContractReaderReply) - err := c.cc.Invoke(ctx, Relayer_NewContractReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Relayer_NewContractReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -288,8 +315,9 @@ func (c *relayerClient) NewContractReader(ctx context.Context, in *NewContractRe } func (c *relayerClient) NewConfigProvider(ctx context.Context, in *NewConfigProviderRequest, opts ...grpc.CallOption) (*NewConfigProviderReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewConfigProviderReply) - err := c.cc.Invoke(ctx, Relayer_NewConfigProvider_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Relayer_NewConfigProvider_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -297,8 +325,9 @@ func (c *relayerClient) NewConfigProvider(ctx context.Context, in *NewConfigProv } func (c *relayerClient) NewPluginProvider(ctx context.Context, in *NewPluginProviderRequest, opts ...grpc.CallOption) (*NewPluginProviderReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewPluginProviderReply) - err := c.cc.Invoke(ctx, Relayer_NewPluginProvider_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Relayer_NewPluginProvider_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -306,8 +335,9 @@ func (c *relayerClient) NewPluginProvider(ctx context.Context, in *NewPluginProv } func (c *relayerClient) LatestHead(ctx context.Context, in *LatestHeadRequest, opts ...grpc.CallOption) (*LatestHeadReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestHeadReply) - err := c.cc.Invoke(ctx, Relayer_LatestHead_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Relayer_LatestHead_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -315,8 +345,9 @@ func (c *relayerClient) LatestHead(ctx context.Context, in *LatestHeadRequest, o } func (c *relayerClient) GetChainStatus(ctx context.Context, in *GetChainStatusRequest, opts ...grpc.CallOption) (*GetChainStatusReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetChainStatusReply) - err := c.cc.Invoke(ctx, Relayer_GetChainStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Relayer_GetChainStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -324,8 +355,9 @@ func (c *relayerClient) GetChainStatus(ctx context.Context, in *GetChainStatusRe } func (c *relayerClient) ListNodeStatuses(ctx context.Context, in *ListNodeStatusesRequest, opts ...grpc.CallOption) (*ListNodeStatusesReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListNodeStatusesReply) - err := c.cc.Invoke(ctx, Relayer_ListNodeStatuses_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Relayer_ListNodeStatuses_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -333,8 +365,9 @@ func (c *relayerClient) ListNodeStatuses(ctx context.Context, in *ListNodeStatus } func (c *relayerClient) Transact(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Relayer_Transact_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Relayer_Transact_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -343,7 +376,7 @@ func (c *relayerClient) Transact(ctx context.Context, in *TransactionRequest, op // RelayerServer is the server API for Relayer service. // All implementations must embed UnimplementedRelayerServer -// for forward compatibility +// for forward compatibility. type RelayerServer interface { NewContractWriter(context.Context, *NewContractWriterRequest) (*NewContractWriterReply, error) NewContractReader(context.Context, *NewContractReaderRequest) (*NewContractReaderReply, error) @@ -356,9 +389,12 @@ type RelayerServer interface { mustEmbedUnimplementedRelayerServer() } -// UnimplementedRelayerServer must be embedded to have forward compatible implementations. -type UnimplementedRelayerServer struct { -} +// UnimplementedRelayerServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRelayerServer struct{} func (UnimplementedRelayerServer) NewContractWriter(context.Context, *NewContractWriterRequest) (*NewContractWriterReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewContractWriter not implemented") @@ -385,6 +421,7 @@ func (UnimplementedRelayerServer) Transact(context.Context, *TransactionRequest) return nil, status.Errorf(codes.Unimplemented, "method Transact not implemented") } func (UnimplementedRelayerServer) mustEmbedUnimplementedRelayerServer() {} +func (UnimplementedRelayerServer) testEmbeddedByValue() {} // UnsafeRelayerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RelayerServer will @@ -394,6 +431,13 @@ type UnsafeRelayerServer interface { } func RegisterRelayerServer(s grpc.ServiceRegistrar, srv RelayerServer) { + // If the following call pancis, it indicates UnimplementedRelayerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Relayer_ServiceDesc, srv) } @@ -607,8 +651,9 @@ func NewOffchainConfigDigesterClient(cc grpc.ClientConnInterface) OffchainConfig } func (c *offchainConfigDigesterClient) ConfigDigest(ctx context.Context, in *ConfigDigestRequest, opts ...grpc.CallOption) (*ConfigDigestReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ConfigDigestReply) - err := c.cc.Invoke(ctx, OffchainConfigDigester_ConfigDigest_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffchainConfigDigester_ConfigDigest_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -616,8 +661,9 @@ func (c *offchainConfigDigesterClient) ConfigDigest(ctx context.Context, in *Con } func (c *offchainConfigDigesterClient) ConfigDigestPrefix(ctx context.Context, in *ConfigDigestPrefixRequest, opts ...grpc.CallOption) (*ConfigDigestPrefixReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ConfigDigestPrefixReply) - err := c.cc.Invoke(ctx, OffchainConfigDigester_ConfigDigestPrefix_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OffchainConfigDigester_ConfigDigestPrefix_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -626,16 +672,19 @@ func (c *offchainConfigDigesterClient) ConfigDigestPrefix(ctx context.Context, i // OffchainConfigDigesterServer is the server API for OffchainConfigDigester service. // All implementations must embed UnimplementedOffchainConfigDigesterServer -// for forward compatibility +// for forward compatibility. type OffchainConfigDigesterServer interface { ConfigDigest(context.Context, *ConfigDigestRequest) (*ConfigDigestReply, error) ConfigDigestPrefix(context.Context, *ConfigDigestPrefixRequest) (*ConfigDigestPrefixReply, error) mustEmbedUnimplementedOffchainConfigDigesterServer() } -// UnimplementedOffchainConfigDigesterServer must be embedded to have forward compatible implementations. -type UnimplementedOffchainConfigDigesterServer struct { -} +// UnimplementedOffchainConfigDigesterServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOffchainConfigDigesterServer struct{} func (UnimplementedOffchainConfigDigesterServer) ConfigDigest(context.Context, *ConfigDigestRequest) (*ConfigDigestReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ConfigDigest not implemented") @@ -645,6 +694,7 @@ func (UnimplementedOffchainConfigDigesterServer) ConfigDigestPrefix(context.Cont } func (UnimplementedOffchainConfigDigesterServer) mustEmbedUnimplementedOffchainConfigDigesterServer() { } +func (UnimplementedOffchainConfigDigesterServer) testEmbeddedByValue() {} // UnsafeOffchainConfigDigesterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OffchainConfigDigesterServer will @@ -654,6 +704,13 @@ type UnsafeOffchainConfigDigesterServer interface { } func RegisterOffchainConfigDigesterServer(s grpc.ServiceRegistrar, srv OffchainConfigDigesterServer) { + // If the following call pancis, it indicates UnimplementedOffchainConfigDigesterServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OffchainConfigDigester_ServiceDesc, srv) } @@ -737,8 +794,9 @@ func NewContractConfigTrackerClient(cc grpc.ClientConnInterface) ContractConfigT } func (c *contractConfigTrackerClient) LatestConfigDetails(ctx context.Context, in *LatestConfigDetailsRequest, opts ...grpc.CallOption) (*LatestConfigDetailsReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestConfigDetailsReply) - err := c.cc.Invoke(ctx, ContractConfigTracker_LatestConfigDetails_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractConfigTracker_LatestConfigDetails_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -746,8 +804,9 @@ func (c *contractConfigTrackerClient) LatestConfigDetails(ctx context.Context, i } func (c *contractConfigTrackerClient) LatestConfig(ctx context.Context, in *LatestConfigRequest, opts ...grpc.CallOption) (*LatestConfigReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestConfigReply) - err := c.cc.Invoke(ctx, ContractConfigTracker_LatestConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractConfigTracker_LatestConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -755,8 +814,9 @@ func (c *contractConfigTrackerClient) LatestConfig(ctx context.Context, in *Late } func (c *contractConfigTrackerClient) LatestBlockHeight(ctx context.Context, in *LatestBlockHeightRequest, opts ...grpc.CallOption) (*LatestBlockHeightReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestBlockHeightReply) - err := c.cc.Invoke(ctx, ContractConfigTracker_LatestBlockHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractConfigTracker_LatestBlockHeight_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -765,7 +825,7 @@ func (c *contractConfigTrackerClient) LatestBlockHeight(ctx context.Context, in // ContractConfigTrackerServer is the server API for ContractConfigTracker service. // All implementations must embed UnimplementedContractConfigTrackerServer -// for forward compatibility +// for forward compatibility. type ContractConfigTrackerServer interface { LatestConfigDetails(context.Context, *LatestConfigDetailsRequest) (*LatestConfigDetailsReply, error) LatestConfig(context.Context, *LatestConfigRequest) (*LatestConfigReply, error) @@ -773,9 +833,12 @@ type ContractConfigTrackerServer interface { mustEmbedUnimplementedContractConfigTrackerServer() } -// UnimplementedContractConfigTrackerServer must be embedded to have forward compatible implementations. -type UnimplementedContractConfigTrackerServer struct { -} +// UnimplementedContractConfigTrackerServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedContractConfigTrackerServer struct{} func (UnimplementedContractConfigTrackerServer) LatestConfigDetails(context.Context, *LatestConfigDetailsRequest) (*LatestConfigDetailsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method LatestConfigDetails not implemented") @@ -787,6 +850,7 @@ func (UnimplementedContractConfigTrackerServer) LatestBlockHeight(context.Contex return nil, status.Errorf(codes.Unimplemented, "method LatestBlockHeight not implemented") } func (UnimplementedContractConfigTrackerServer) mustEmbedUnimplementedContractConfigTrackerServer() {} +func (UnimplementedContractConfigTrackerServer) testEmbeddedByValue() {} // UnsafeContractConfigTrackerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ContractConfigTrackerServer will @@ -796,6 +860,13 @@ type UnsafeContractConfigTrackerServer interface { } func RegisterContractConfigTrackerServer(s grpc.ServiceRegistrar, srv ContractConfigTrackerServer) { + // If the following call pancis, it indicates UnimplementedContractConfigTrackerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ContractConfigTracker_ServiceDesc, srv) } @@ -901,8 +972,9 @@ func NewContractTransmitterClient(cc grpc.ClientConnInterface) ContractTransmitt } func (c *contractTransmitterClient) Transmit(ctx context.Context, in *TransmitRequest, opts ...grpc.CallOption) (*TransmitReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransmitReply) - err := c.cc.Invoke(ctx, ContractTransmitter_Transmit_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractTransmitter_Transmit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -910,8 +982,9 @@ func (c *contractTransmitterClient) Transmit(ctx context.Context, in *TransmitRe } func (c *contractTransmitterClient) LatestConfigDigestAndEpoch(ctx context.Context, in *LatestConfigDigestAndEpochRequest, opts ...grpc.CallOption) (*LatestConfigDigestAndEpochReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestConfigDigestAndEpochReply) - err := c.cc.Invoke(ctx, ContractTransmitter_LatestConfigDigestAndEpoch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractTransmitter_LatestConfigDigestAndEpoch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -919,8 +992,9 @@ func (c *contractTransmitterClient) LatestConfigDigestAndEpoch(ctx context.Conte } func (c *contractTransmitterClient) FromAccount(ctx context.Context, in *FromAccountRequest, opts ...grpc.CallOption) (*FromAccountReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FromAccountReply) - err := c.cc.Invoke(ctx, ContractTransmitter_FromAccount_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContractTransmitter_FromAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -929,7 +1003,7 @@ func (c *contractTransmitterClient) FromAccount(ctx context.Context, in *FromAcc // ContractTransmitterServer is the server API for ContractTransmitter service. // All implementations must embed UnimplementedContractTransmitterServer -// for forward compatibility +// for forward compatibility. type ContractTransmitterServer interface { Transmit(context.Context, *TransmitRequest) (*TransmitReply, error) LatestConfigDigestAndEpoch(context.Context, *LatestConfigDigestAndEpochRequest) (*LatestConfigDigestAndEpochReply, error) @@ -937,9 +1011,12 @@ type ContractTransmitterServer interface { mustEmbedUnimplementedContractTransmitterServer() } -// UnimplementedContractTransmitterServer must be embedded to have forward compatible implementations. -type UnimplementedContractTransmitterServer struct { -} +// UnimplementedContractTransmitterServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedContractTransmitterServer struct{} func (UnimplementedContractTransmitterServer) Transmit(context.Context, *TransmitRequest) (*TransmitReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Transmit not implemented") @@ -951,6 +1028,7 @@ func (UnimplementedContractTransmitterServer) FromAccount(context.Context, *From return nil, status.Errorf(codes.Unimplemented, "method FromAccount not implemented") } func (UnimplementedContractTransmitterServer) mustEmbedUnimplementedContractTransmitterServer() {} +func (UnimplementedContractTransmitterServer) testEmbeddedByValue() {} // UnsafeContractTransmitterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ContractTransmitterServer will @@ -960,6 +1038,13 @@ type UnsafeContractTransmitterServer interface { } func RegisterContractTransmitterServer(s grpc.ServiceRegistrar, srv ContractTransmitterServer) { + // If the following call pancis, it indicates UnimplementedContractTransmitterServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ContractTransmitter_ServiceDesc, srv) } @@ -1067,8 +1152,9 @@ func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient { } func (c *serviceClient) Name(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NameReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NameReply) - err := c.cc.Invoke(ctx, Service_Name_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Service_Name_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1076,8 +1162,9 @@ func (c *serviceClient) Name(ctx context.Context, in *emptypb.Empty, opts ...grp } func (c *serviceClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Service_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Service_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1085,8 +1172,9 @@ func (c *serviceClient) Close(ctx context.Context, in *emptypb.Empty, opts ...gr } func (c *serviceClient) Ready(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Service_Ready_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Service_Ready_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1094,8 +1182,9 @@ func (c *serviceClient) Ready(ctx context.Context, in *emptypb.Empty, opts ...gr } func (c *serviceClient) HealthReport(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HealthReportReply) - err := c.cc.Invoke(ctx, Service_HealthReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Service_HealthReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1104,7 +1193,7 @@ func (c *serviceClient) HealthReport(ctx context.Context, in *emptypb.Empty, opt // ServiceServer is the server API for Service service. // All implementations must embed UnimplementedServiceServer -// for forward compatibility +// for forward compatibility. type ServiceServer interface { Name(context.Context, *emptypb.Empty) (*NameReply, error) Close(context.Context, *emptypb.Empty) (*emptypb.Empty, error) @@ -1113,9 +1202,12 @@ type ServiceServer interface { mustEmbedUnimplementedServiceServer() } -// UnimplementedServiceServer must be embedded to have forward compatible implementations. -type UnimplementedServiceServer struct { -} +// UnimplementedServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedServiceServer struct{} func (UnimplementedServiceServer) Name(context.Context, *emptypb.Empty) (*NameReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Name not implemented") @@ -1130,6 +1222,7 @@ func (UnimplementedServiceServer) HealthReport(context.Context, *emptypb.Empty) return nil, status.Errorf(codes.Unimplemented, "method HealthReport not implemented") } func (UnimplementedServiceServer) mustEmbedUnimplementedServiceServer() {} +func (UnimplementedServiceServer) testEmbeddedByValue() {} // UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ServiceServer will @@ -1139,6 +1232,13 @@ type UnsafeServiceServer interface { } func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer) { + // If the following call pancis, it indicates UnimplementedServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Service_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/relayerset/relayerset.pb.go b/pkg/loop/internal/pb/relayerset/relayerset.pb.go index da4346d0b..8fae8c732 100644 --- a/pkg/loop/internal/pb/relayerset/relayerset.pb.go +++ b/pkg/loop/internal/pb/relayerset/relayerset.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: relayerset.proto package relayerset @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,21 +23,18 @@ const ( ) type RelayerId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` unknownFields protoimpl.UnknownFields - - Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` - ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RelayerId) Reset() { *x = RelayerId{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RelayerId) String() string { @@ -47,7 +45,7 @@ func (*RelayerId) ProtoMessage() {} func (x *RelayerId) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -77,20 +75,17 @@ func (x *RelayerId) GetChainId() string { } type GetRelayerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id *RelayerId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id *RelayerId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRelayerRequest) Reset() { *x = GetRelayerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRelayerRequest) String() string { @@ -101,7 +96,7 @@ func (*GetRelayerRequest) ProtoMessage() {} func (x *GetRelayerRequest) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -124,20 +119,17 @@ func (x *GetRelayerRequest) GetId() *RelayerId { } type GetRelayerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id *RelayerId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id *RelayerId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRelayerResponse) Reset() { *x = GetRelayerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRelayerResponse) String() string { @@ -148,7 +140,7 @@ func (*GetRelayerResponse) ProtoMessage() {} func (x *GetRelayerResponse) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -171,20 +163,17 @@ func (x *GetRelayerResponse) GetId() *RelayerId { } type ListAllRelayersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ids []*RelayerId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` unknownFields protoimpl.UnknownFields - - Ids []*RelayerId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListAllRelayersRequest) Reset() { *x = ListAllRelayersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListAllRelayersRequest) String() string { @@ -195,7 +184,7 @@ func (*ListAllRelayersRequest) ProtoMessage() {} func (x *ListAllRelayersRequest) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -218,20 +207,17 @@ func (x *ListAllRelayersRequest) GetIds() []*RelayerId { } type ListAllRelayersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ids []*RelayerId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` unknownFields protoimpl.UnknownFields - - Ids []*RelayerId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListAllRelayersResponse) Reset() { *x = ListAllRelayersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListAllRelayersResponse) String() string { @@ -242,7 +228,7 @@ func (*ListAllRelayersResponse) ProtoMessage() {} func (x *ListAllRelayersResponse) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -265,24 +251,21 @@ func (x *ListAllRelayersResponse) GetIds() []*RelayerId { } type RelayArgs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractID string `protobuf:"bytes,1,opt,name=contractID,proto3" json:"contractID,omitempty"` - RelayConfig []byte `protobuf:"bytes,2,opt,name=relayConfig,proto3" json:"relayConfig,omitempty"` - ProviderType string `protobuf:"bytes,3,opt,name=providerType,proto3" json:"providerType,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractID string `protobuf:"bytes,1,opt,name=contractID,proto3" json:"contractID,omitempty"` + RelayConfig []byte `protobuf:"bytes,2,opt,name=relayConfig,proto3" json:"relayConfig,omitempty"` + ProviderType string `protobuf:"bytes,3,opt,name=providerType,proto3" json:"providerType,omitempty"` // TODO - this is a temporary solution to minimise refactor and allow the relayer to pass necessary credentials to the plugin - should be rolled into the relayConfig as a second step MercuryCredentials *MercuryCredentials `protobuf:"bytes,4,opt,name=mercuryCredentials,proto3" json:"mercuryCredentials,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RelayArgs) Reset() { *x = RelayArgs{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RelayArgs) String() string { @@ -293,7 +276,7 @@ func (*RelayArgs) ProtoMessage() {} func (x *RelayArgs) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -338,23 +321,20 @@ func (x *RelayArgs) GetMercuryCredentials() *MercuryCredentials { // TODO - this is a temporary solution to minimise refactor and allow the relayer to pass necessary credentials to the plugin - should be rolled into the relayConfig as a second step type MercuryCredentials struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LegacyUrl string `protobuf:"bytes,1,opt,name=legacy_url,json=legacyUrl,proto3" json:"legacy_url,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields - - LegacyUrl string `protobuf:"bytes,1,opt,name=legacy_url,json=legacyUrl,proto3" json:"legacy_url,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MercuryCredentials) Reset() { *x = MercuryCredentials{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MercuryCredentials) String() string { @@ -365,7 +345,7 @@ func (*MercuryCredentials) ProtoMessage() {} func (x *MercuryCredentials) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -409,21 +389,18 @@ func (x *MercuryCredentials) GetPassword() string { } type PluginArgs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TransmitterID string `protobuf:"bytes,1,opt,name=transmitterID,proto3" json:"transmitterID,omitempty"` + PluginConfig []byte `protobuf:"bytes,2,opt,name=pluginConfig,proto3" json:"pluginConfig,omitempty"` unknownFields protoimpl.UnknownFields - - TransmitterID string `protobuf:"bytes,1,opt,name=transmitterID,proto3" json:"transmitterID,omitempty"` - PluginConfig []byte `protobuf:"bytes,2,opt,name=pluginConfig,proto3" json:"pluginConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PluginArgs) Reset() { *x = PluginArgs{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PluginArgs) String() string { @@ -434,7 +411,7 @@ func (*PluginArgs) ProtoMessage() {} func (x *PluginArgs) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -464,22 +441,19 @@ func (x *PluginArgs) GetPluginConfig() []byte { } type NewPluginProviderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RelayerId *RelayerId `protobuf:"bytes,1,opt,name=relayerId,proto3" json:"relayerId,omitempty"` + RelayArgs *RelayArgs `protobuf:"bytes,2,opt,name=relayArgs,proto3" json:"relayArgs,omitempty"` + PluginArgs *PluginArgs `protobuf:"bytes,3,opt,name=pluginArgs,proto3" json:"pluginArgs,omitempty"` unknownFields protoimpl.UnknownFields - - RelayerId *RelayerId `protobuf:"bytes,1,opt,name=relayerId,proto3" json:"relayerId,omitempty"` - RelayArgs *RelayArgs `protobuf:"bytes,2,opt,name=relayArgs,proto3" json:"relayArgs,omitempty"` - PluginArgs *PluginArgs `protobuf:"bytes,3,opt,name=pluginArgs,proto3" json:"pluginArgs,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewPluginProviderRequest) Reset() { *x = NewPluginProviderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewPluginProviderRequest) String() string { @@ -490,7 +464,7 @@ func (*NewPluginProviderRequest) ProtoMessage() {} func (x *NewPluginProviderRequest) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -527,20 +501,17 @@ func (x *NewPluginProviderRequest) GetPluginArgs() *PluginArgs { } type NewPluginProviderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PluginProviderId uint32 `protobuf:"varint,1,opt,name=plugin_provider_id,json=pluginProviderId,proto3" json:"plugin_provider_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PluginProviderId uint32 `protobuf:"varint,1,opt,name=plugin_provider_id,json=pluginProviderId,proto3" json:"plugin_provider_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewPluginProviderResponse) Reset() { *x = NewPluginProviderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewPluginProviderResponse) String() string { @@ -551,7 +522,7 @@ func (*NewPluginProviderResponse) ProtoMessage() {} func (x *NewPluginProviderResponse) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -574,21 +545,18 @@ func (x *NewPluginProviderResponse) GetPluginProviderId() uint32 { } type NewContractReaderRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RelayerId *RelayerId `protobuf:"bytes,1,opt,name=relayerId,proto3" json:"relayerId,omitempty"` - ContractReaderConfig []byte `protobuf:"bytes,2,opt,name=contractReaderConfig,proto3" json:"contractReaderConfig,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RelayerId *RelayerId `protobuf:"bytes,1,opt,name=relayerId,proto3" json:"relayerId,omitempty"` + ContractReaderConfig []byte `protobuf:"bytes,2,opt,name=contractReaderConfig,proto3" json:"contractReaderConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewContractReaderRequest) Reset() { *x = NewContractReaderRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewContractReaderRequest) String() string { @@ -599,7 +567,7 @@ func (*NewContractReaderRequest) ProtoMessage() {} func (x *NewContractReaderRequest) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -629,20 +597,17 @@ func (x *NewContractReaderRequest) GetContractReaderConfig() []byte { } type NewContractReaderResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractReaderId uint32 `protobuf:"varint,1,opt,name=contractReaderId,proto3" json:"contractReaderId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractReaderId uint32 `protobuf:"varint,1,opt,name=contractReaderId,proto3" json:"contractReaderId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewContractReaderResponse) Reset() { *x = NewContractReaderResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewContractReaderResponse) String() string { @@ -653,7 +618,7 @@ func (*NewContractReaderResponse) ProtoMessage() {} func (x *NewContractReaderResponse) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -676,21 +641,18 @@ func (x *NewContractReaderResponse) GetContractReaderId() uint32 { } type NewContractWriterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RelayerId *RelayerId `protobuf:"bytes,1,opt,name=relayerId,proto3" json:"relayerId,omitempty"` - ContractWriterConfig []byte `protobuf:"bytes,2,opt,name=contractWriterConfig,proto3" json:"contractWriterConfig,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RelayerId *RelayerId `protobuf:"bytes,1,opt,name=relayerId,proto3" json:"relayerId,omitempty"` + ContractWriterConfig []byte `protobuf:"bytes,2,opt,name=contractWriterConfig,proto3" json:"contractWriterConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewContractWriterRequest) Reset() { *x = NewContractWriterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewContractWriterRequest) String() string { @@ -701,7 +663,7 @@ func (*NewContractWriterRequest) ProtoMessage() {} func (x *NewContractWriterRequest) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -731,20 +693,17 @@ func (x *NewContractWriterRequest) GetContractWriterConfig() []byte { } type NewContractWriterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContractWriterId uint32 `protobuf:"varint,1,opt,name=contractWriterId,proto3" json:"contractWriterId,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ContractWriterId uint32 `protobuf:"varint,1,opt,name=contractWriterId,proto3" json:"contractWriterId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewContractWriterResponse) Reset() { *x = NewContractWriterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewContractWriterResponse) String() string { @@ -755,7 +714,7 @@ func (*NewContractWriterResponse) ProtoMessage() {} func (x *NewContractWriterResponse) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -778,20 +737,17 @@ func (x *NewContractWriterResponse) GetContractWriterId() uint32 { } type LatestHeadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RelayerId *RelayerId `protobuf:"bytes,1,opt,name=relayerId,proto3" json:"relayerId,omitempty"` unknownFields protoimpl.UnknownFields - - RelayerId *RelayerId `protobuf:"bytes,1,opt,name=relayerId,proto3" json:"relayerId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LatestHeadRequest) Reset() { *x = LatestHeadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestHeadRequest) String() string { @@ -802,7 +758,7 @@ func (*LatestHeadRequest) ProtoMessage() {} func (x *LatestHeadRequest) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -825,22 +781,19 @@ func (x *LatestHeadRequest) GetRelayerId() *RelayerId { } type LatestHeadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LatestHeadResponse) Reset() { *x = LatestHeadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestHeadResponse) String() string { @@ -851,7 +804,7 @@ func (*LatestHeadResponse) ProtoMessage() {} func (x *LatestHeadResponse) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -888,20 +841,17 @@ func (x *LatestHeadResponse) GetTimestamp() uint64 { } type RelayerHealthReportResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Report map[string]string `protobuf:"bytes,1,rep,name=report,proto3" json:"report,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Report map[string]string `protobuf:"bytes,1,rep,name=report,proto3" json:"report,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *RelayerHealthReportResponse) Reset() { *x = RelayerHealthReportResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RelayerHealthReportResponse) String() string { @@ -912,7 +862,7 @@ func (*RelayerHealthReportResponse) ProtoMessage() {} func (x *RelayerHealthReportResponse) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -935,20 +885,17 @@ func (x *RelayerHealthReportResponse) GetReport() map[string]string { } type RelayerNameResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RelayerNameResponse) Reset() { *x = RelayerNameResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_relayerset_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_relayerset_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RelayerNameResponse) String() string { @@ -959,7 +906,7 @@ func (*RelayerNameResponse) ProtoMessage() {} func (x *RelayerNameResponse) ProtoReflect() protoreflect.Message { mi := &file_relayerset_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -983,7 +930,7 @@ func (x *RelayerNameResponse) GetName() string { var File_relayerset_proto protoreflect.FileDescriptor -var file_relayerset_proto_rawDesc = []byte{ +var file_relayerset_proto_rawDesc = string([]byte{ 0x0a, 0x10, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6c, 0x6f, 0x6f, 0x70, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x65, 0x74, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, @@ -1173,22 +1120,22 @@ var file_relayerset_proto_rawDesc = []byte{ 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_relayerset_proto_rawDescOnce sync.Once - file_relayerset_proto_rawDescData = file_relayerset_proto_rawDesc + file_relayerset_proto_rawDescData []byte ) func file_relayerset_proto_rawDescGZIP() []byte { file_relayerset_proto_rawDescOnce.Do(func() { - file_relayerset_proto_rawDescData = protoimpl.X.CompressGZIP(file_relayerset_proto_rawDescData) + file_relayerset_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_relayerset_proto_rawDesc), len(file_relayerset_proto_rawDesc))) }) return file_relayerset_proto_rawDescData } var file_relayerset_proto_msgTypes = make([]protoimpl.MessageInfo, 19) -var file_relayerset_proto_goTypes = []interface{}{ +var file_relayerset_proto_goTypes = []any{ (*RelayerId)(nil), // 0: loop.relayerset.RelayerId (*GetRelayerRequest)(nil), // 1: loop.relayerset.GetRelayerRequest (*GetRelayerResponse)(nil), // 2: loop.relayerset.GetRelayerResponse @@ -1257,229 +1204,11 @@ func file_relayerset_proto_init() { if File_relayerset_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_relayerset_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayerId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRelayerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRelayerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAllRelayersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAllRelayersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayArgs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MercuryCredentials); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PluginArgs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewPluginProviderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewPluginProviderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewContractReaderRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewContractReaderResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewContractWriterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewContractWriterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestHeadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestHeadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayerHealthReportResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_relayerset_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayerNameResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_relayerset_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_relayerset_proto_rawDesc), len(file_relayerset_proto_rawDesc)), NumEnums: 0, NumMessages: 19, NumExtensions: 0, @@ -1490,7 +1219,6 @@ func file_relayerset_proto_init() { MessageInfos: file_relayerset_proto_msgTypes, }.Build() File_relayerset_proto = out.File - file_relayerset_proto_rawDesc = nil file_relayerset_proto_goTypes = nil file_relayerset_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/relayerset/relayerset_grpc.pb.go b/pkg/loop/internal/pb/relayerset/relayerset_grpc.pb.go index 21220a253..201fadf2a 100644 --- a/pkg/loop/internal/pb/relayerset/relayerset_grpc.pb.go +++ b/pkg/loop/internal/pb/relayerset/relayerset_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: relayerset.proto package relayerset @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RelayerSet_Get_FullMethodName = "/loop.relayerset.RelayerSet/Get" @@ -59,8 +59,9 @@ func NewRelayerSetClient(cc grpc.ClientConnInterface) RelayerSetClient { } func (c *relayerSetClient) Get(ctx context.Context, in *GetRelayerRequest, opts ...grpc.CallOption) (*GetRelayerResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRelayerResponse) - err := c.cc.Invoke(ctx, RelayerSet_Get_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_Get_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +69,9 @@ func (c *relayerSetClient) Get(ctx context.Context, in *GetRelayerRequest, opts } func (c *relayerSetClient) List(ctx context.Context, in *ListAllRelayersRequest, opts ...grpc.CallOption) (*ListAllRelayersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListAllRelayersResponse) - err := c.cc.Invoke(ctx, RelayerSet_List_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_List_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +79,9 @@ func (c *relayerSetClient) List(ctx context.Context, in *ListAllRelayersRequest, } func (c *relayerSetClient) NewPluginProvider(ctx context.Context, in *NewPluginProviderRequest, opts ...grpc.CallOption) (*NewPluginProviderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewPluginProviderResponse) - err := c.cc.Invoke(ctx, RelayerSet_NewPluginProvider_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_NewPluginProvider_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +89,9 @@ func (c *relayerSetClient) NewPluginProvider(ctx context.Context, in *NewPluginP } func (c *relayerSetClient) NewContractReader(ctx context.Context, in *NewContractReaderRequest, opts ...grpc.CallOption) (*NewContractReaderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewContractReaderResponse) - err := c.cc.Invoke(ctx, RelayerSet_NewContractReader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_NewContractReader_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +99,9 @@ func (c *relayerSetClient) NewContractReader(ctx context.Context, in *NewContrac } func (c *relayerSetClient) NewContractWriter(ctx context.Context, in *NewContractWriterRequest, opts ...grpc.CallOption) (*NewContractWriterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewContractWriterResponse) - err := c.cc.Invoke(ctx, RelayerSet_NewContractWriter_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_NewContractWriter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +109,9 @@ func (c *relayerSetClient) NewContractWriter(ctx context.Context, in *NewContrac } func (c *relayerSetClient) StartRelayer(ctx context.Context, in *RelayerId, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, RelayerSet_StartRelayer_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_StartRelayer_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -113,8 +119,9 @@ func (c *relayerSetClient) StartRelayer(ctx context.Context, in *RelayerId, opts } func (c *relayerSetClient) CloseRelayer(ctx context.Context, in *RelayerId, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, RelayerSet_CloseRelayer_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_CloseRelayer_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -122,8 +129,9 @@ func (c *relayerSetClient) CloseRelayer(ctx context.Context, in *RelayerId, opts } func (c *relayerSetClient) RelayerReady(ctx context.Context, in *RelayerId, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, RelayerSet_RelayerReady_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_RelayerReady_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -131,8 +139,9 @@ func (c *relayerSetClient) RelayerReady(ctx context.Context, in *RelayerId, opts } func (c *relayerSetClient) RelayerHealthReport(ctx context.Context, in *RelayerId, opts ...grpc.CallOption) (*RelayerHealthReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RelayerHealthReportResponse) - err := c.cc.Invoke(ctx, RelayerSet_RelayerHealthReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_RelayerHealthReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -140,8 +149,9 @@ func (c *relayerSetClient) RelayerHealthReport(ctx context.Context, in *RelayerI } func (c *relayerSetClient) RelayerName(ctx context.Context, in *RelayerId, opts ...grpc.CallOption) (*RelayerNameResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RelayerNameResponse) - err := c.cc.Invoke(ctx, RelayerSet_RelayerName_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_RelayerName_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -149,8 +159,9 @@ func (c *relayerSetClient) RelayerName(ctx context.Context, in *RelayerId, opts } func (c *relayerSetClient) RelayerLatestHead(ctx context.Context, in *LatestHeadRequest, opts ...grpc.CallOption) (*LatestHeadResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LatestHeadResponse) - err := c.cc.Invoke(ctx, RelayerSet_RelayerLatestHead_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RelayerSet_RelayerLatestHead_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -159,7 +170,7 @@ func (c *relayerSetClient) RelayerLatestHead(ctx context.Context, in *LatestHead // RelayerSetServer is the server API for RelayerSet service. // All implementations must embed UnimplementedRelayerSetServer -// for forward compatibility +// for forward compatibility. type RelayerSetServer interface { Get(context.Context, *GetRelayerRequest) (*GetRelayerResponse, error) List(context.Context, *ListAllRelayersRequest) (*ListAllRelayersResponse, error) @@ -175,9 +186,12 @@ type RelayerSetServer interface { mustEmbedUnimplementedRelayerSetServer() } -// UnimplementedRelayerSetServer must be embedded to have forward compatible implementations. -type UnimplementedRelayerSetServer struct { -} +// UnimplementedRelayerSetServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRelayerSetServer struct{} func (UnimplementedRelayerSetServer) Get(context.Context, *GetRelayerRequest) (*GetRelayerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") @@ -213,6 +227,7 @@ func (UnimplementedRelayerSetServer) RelayerLatestHead(context.Context, *LatestH return nil, status.Errorf(codes.Unimplemented, "method RelayerLatestHead not implemented") } func (UnimplementedRelayerSetServer) mustEmbedUnimplementedRelayerSetServer() {} +func (UnimplementedRelayerSetServer) testEmbeddedByValue() {} // UnsafeRelayerSetServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RelayerSetServer will @@ -222,6 +237,13 @@ type UnsafeRelayerSetServer interface { } func RegisterRelayerSetServer(s grpc.ServiceRegistrar, srv RelayerSetServer) { + // If the following call pancis, it indicates UnimplementedRelayerSetServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RelayerSet_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/reporting.pb.go b/pkg/loop/internal/pb/reporting.pb.go index 934c28283..83efbbc48 100644 --- a/pkg/loop/internal/pb/reporting.pb.go +++ b/pkg/loop/internal/pb/reporting.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: reporting.proto package pb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,20 +23,17 @@ const ( ) type NewReportingPluginRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ReportingPluginConfig *ReportingPluginConfig `protobuf:"bytes,1,opt,name=reportingPluginConfig,proto3" json:"reportingPluginConfig,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewReportingPluginRequest) Reset() { *x = NewReportingPluginRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewReportingPluginRequest) String() string { @@ -46,7 +44,7 @@ func (*NewReportingPluginRequest) ProtoMessage() {} func (x *NewReportingPluginRequest) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -69,21 +67,18 @@ func (x *NewReportingPluginRequest) GetReportingPluginConfig() *ReportingPluginC } type NewReportingPluginReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportingPluginID uint32 `protobuf:"varint,1,opt,name=reportingPluginID,proto3" json:"reportingPluginID,omitempty"` - ReportingPluginInfo *ReportingPluginInfo `protobuf:"bytes,2,opt,name=reportingPluginInfo,proto3" json:"reportingPluginInfo,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportingPluginID uint32 `protobuf:"varint,1,opt,name=reportingPluginID,proto3" json:"reportingPluginID,omitempty"` + ReportingPluginInfo *ReportingPluginInfo `protobuf:"bytes,2,opt,name=reportingPluginInfo,proto3" json:"reportingPluginInfo,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewReportingPluginReply) Reset() { *x = NewReportingPluginReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewReportingPluginReply) String() string { @@ -94,7 +89,7 @@ func (*NewReportingPluginReply) ProtoMessage() {} func (x *NewReportingPluginReply) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -125,31 +120,28 @@ func (x *NewReportingPluginReply) GetReportingPluginInfo() *ReportingPluginInfo // ReportingPluginConfig represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPluginConfig] type ReportingPluginConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte - OracleID uint32 `protobuf:"varint,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"` // uint8 - N uint32 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"` - F uint32 `protobuf:"varint,4,opt,name=f,proto3" json:"f,omitempty"` - OnchainConfig []byte `protobuf:"bytes,5,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` - OffchainConfig []byte `protobuf:"bytes,6,opt,name=offchainConfig,proto3" json:"offchainConfig,omitempty"` - EstimatedRoundInterval int64 `protobuf:"varint,7,opt,name=estimatedRoundInterval,proto3" json:"estimatedRoundInterval,omitempty"` - MaxDurationQuery int64 `protobuf:"varint,8,opt,name=maxDurationQuery,proto3" json:"maxDurationQuery,omitempty"` - MaxDurationObservation int64 `protobuf:"varint,9,opt,name=maxDurationObservation,proto3" json:"maxDurationObservation,omitempty"` - MaxDurationReport int64 `protobuf:"varint,10,opt,name=maxDurationReport,proto3" json:"maxDurationReport,omitempty"` - MaxDurationShouldAcceptFinalizedReport int64 `protobuf:"varint,11,opt,name=maxDurationShouldAcceptFinalizedReport,proto3" json:"maxDurationShouldAcceptFinalizedReport,omitempty"` - MaxDurationShouldTransmitAcceptedReport int64 `protobuf:"varint,12,opt,name=maxDurationShouldTransmitAcceptedReport,proto3" json:"maxDurationShouldTransmitAcceptedReport,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ConfigDigest []byte `protobuf:"bytes,1,opt,name=configDigest,proto3" json:"configDigest,omitempty"` // [32]byte + OracleID uint32 `protobuf:"varint,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"` // uint8 + N uint32 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"` + F uint32 `protobuf:"varint,4,opt,name=f,proto3" json:"f,omitempty"` + OnchainConfig []byte `protobuf:"bytes,5,opt,name=onchainConfig,proto3" json:"onchainConfig,omitempty"` + OffchainConfig []byte `protobuf:"bytes,6,opt,name=offchainConfig,proto3" json:"offchainConfig,omitempty"` + EstimatedRoundInterval int64 `protobuf:"varint,7,opt,name=estimatedRoundInterval,proto3" json:"estimatedRoundInterval,omitempty"` + MaxDurationQuery int64 `protobuf:"varint,8,opt,name=maxDurationQuery,proto3" json:"maxDurationQuery,omitempty"` + MaxDurationObservation int64 `protobuf:"varint,9,opt,name=maxDurationObservation,proto3" json:"maxDurationObservation,omitempty"` + MaxDurationReport int64 `protobuf:"varint,10,opt,name=maxDurationReport,proto3" json:"maxDurationReport,omitempty"` + MaxDurationShouldAcceptFinalizedReport int64 `protobuf:"varint,11,opt,name=maxDurationShouldAcceptFinalizedReport,proto3" json:"maxDurationShouldAcceptFinalizedReport,omitempty"` + MaxDurationShouldTransmitAcceptedReport int64 `protobuf:"varint,12,opt,name=maxDurationShouldTransmitAcceptedReport,proto3" json:"maxDurationShouldTransmitAcceptedReport,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportingPluginConfig) Reset() { *x = ReportingPluginConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingPluginConfig) String() string { @@ -160,7 +152,7 @@ func (*ReportingPluginConfig) ProtoMessage() {} func (x *ReportingPluginConfig) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -261,22 +253,19 @@ func (x *ReportingPluginConfig) GetMaxDurationShouldTransmitAcceptedReport() int // ReportingPluginLimits represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPluginLimits] type ReportingPluginLimits struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxQueryLength uint64 `protobuf:"varint,1,opt,name=maxQueryLength,proto3" json:"maxQueryLength,omitempty"` - MaxObservationLength uint64 `protobuf:"varint,2,opt,name=maxObservationLength,proto3" json:"maxObservationLength,omitempty"` - MaxReportLength uint64 `protobuf:"varint,3,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxQueryLength uint64 `protobuf:"varint,1,opt,name=maxQueryLength,proto3" json:"maxQueryLength,omitempty"` + MaxObservationLength uint64 `protobuf:"varint,2,opt,name=maxObservationLength,proto3" json:"maxObservationLength,omitempty"` + MaxReportLength uint64 `protobuf:"varint,3,opt,name=maxReportLength,proto3" json:"maxReportLength,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportingPluginLimits) Reset() { *x = ReportingPluginLimits{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingPluginLimits) String() string { @@ -287,7 +276,7 @@ func (*ReportingPluginLimits) ProtoMessage() {} func (x *ReportingPluginLimits) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -325,22 +314,19 @@ func (x *ReportingPluginLimits) GetMaxReportLength() uint64 { // ReportingPluginInfo represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPluginInfo] type ReportingPluginInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` UniqueReports bool `protobuf:"varint,2,opt,name=uniqueReports,proto3" json:"uniqueReports,omitempty"` ReportingPluginLimits *ReportingPluginLimits `protobuf:"bytes,3,opt,name=reportingPluginLimits,proto3" json:"reportingPluginLimits,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportingPluginInfo) Reset() { *x = ReportingPluginInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingPluginInfo) String() string { @@ -351,7 +337,7 @@ func (*ReportingPluginInfo) ProtoMessage() {} func (x *ReportingPluginInfo) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -389,20 +375,17 @@ func (x *ReportingPluginInfo) GetReportingPluginLimits() *ReportingPluginLimits // QueryRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.Query]. type QueryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QueryRequest) Reset() { *x = QueryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryRequest) String() string { @@ -413,7 +396,7 @@ func (*QueryRequest) ProtoMessage() {} func (x *QueryRequest) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -437,20 +420,17 @@ func (x *QueryRequest) GetReportTimestamp() *ReportTimestamp { // QueryReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.Query]. type QueryReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Query []byte `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` unknownFields protoimpl.UnknownFields - - Query []byte `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + sizeCache protoimpl.SizeCache } func (x *QueryReply) Reset() { *x = QueryReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryReply) String() string { @@ -461,7 +441,7 @@ func (*QueryReply) ProtoMessage() {} func (x *QueryReply) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -485,21 +465,18 @@ func (x *QueryReply) GetQuery() []byte { // ObservationRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.Observation]. type ObservationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` - Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ObservationRequest) Reset() { *x = ObservationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationRequest) String() string { @@ -510,7 +487,7 @@ func (*ObservationRequest) ProtoMessage() {} func (x *ObservationRequest) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -541,20 +518,17 @@ func (x *ObservationRequest) GetQuery() []byte { // ObservationReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.Observation]. type ObservationReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` unknownFields protoimpl.UnknownFields - - Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ObservationReply) Reset() { *x = ObservationReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ObservationReply) String() string { @@ -565,7 +539,7 @@ func (*ObservationReply) ProtoMessage() {} func (x *ObservationReply) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -589,21 +563,18 @@ func (x *ObservationReply) GetObservation() []byte { // AttributedObservation represents [github.com/smartcontractkit/libocr/offchainreporting2plus/types.AttributedObservation] type AttributedObservation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` + Observer uint32 `protobuf:"varint,2,opt,name=observer,proto3" json:"observer,omitempty"` // uint8 unknownFields protoimpl.UnknownFields - - Observation []byte `protobuf:"bytes,1,opt,name=observation,proto3" json:"observation,omitempty"` - Observer uint32 `protobuf:"varint,2,opt,name=observer,proto3" json:"observer,omitempty"` // uint8 + sizeCache protoimpl.SizeCache } func (x *AttributedObservation) Reset() { *x = AttributedObservation{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributedObservation) String() string { @@ -614,7 +585,7 @@ func (*AttributedObservation) ProtoMessage() {} func (x *AttributedObservation) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -645,22 +616,19 @@ func (x *AttributedObservation) GetObserver() uint32 { // ReportRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.Report]. type ReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` Observations []*AttributedObservation `protobuf:"bytes,3,rep,name=observations,proto3" json:"observations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReportRequest) Reset() { *x = ReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportRequest) String() string { @@ -671,7 +639,7 @@ func (*ReportRequest) ProtoMessage() {} func (x *ReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -709,21 +677,18 @@ func (x *ReportRequest) GetObservations() []*AttributedObservation { // ReportReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.Report]. type ReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ShouldReport bool `protobuf:"varint,1,opt,name=shouldReport,proto3" json:"shouldReport,omitempty"` + Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` unknownFields protoimpl.UnknownFields - - ShouldReport bool `protobuf:"varint,1,opt,name=shouldReport,proto3" json:"shouldReport,omitempty"` - Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReportReply) Reset() { *x = ReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportReply) String() string { @@ -734,7 +699,7 @@ func (*ReportReply) ProtoMessage() {} func (x *ReportReply) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -765,21 +730,18 @@ func (x *ReportReply) GetReport() []byte { // ShouldAcceptFinalizedReportRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.ShouldAcceptFinalizedReport]. type ShouldAcceptFinalizedReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` - Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ShouldAcceptFinalizedReportRequest) Reset() { *x = ShouldAcceptFinalizedReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShouldAcceptFinalizedReportRequest) String() string { @@ -790,7 +752,7 @@ func (*ShouldAcceptFinalizedReportRequest) ProtoMessage() {} func (x *ShouldAcceptFinalizedReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -821,20 +783,17 @@ func (x *ShouldAcceptFinalizedReportRequest) GetReport() []byte { // ShouldAcceptFinalizedReportReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.ShouldAcceptFinalizedReport]. type ShouldAcceptFinalizedReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ShouldAccept bool `protobuf:"varint,1,opt,name=shouldAccept,proto3" json:"shouldAccept,omitempty"` unknownFields protoimpl.UnknownFields - - ShouldAccept bool `protobuf:"varint,1,opt,name=shouldAccept,proto3" json:"shouldAccept,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ShouldAcceptFinalizedReportReply) Reset() { *x = ShouldAcceptFinalizedReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShouldAcceptFinalizedReportReply) String() string { @@ -845,7 +804,7 @@ func (*ShouldAcceptFinalizedReportReply) ProtoMessage() {} func (x *ShouldAcceptFinalizedReportReply) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -869,21 +828,18 @@ func (x *ShouldAcceptFinalizedReportReply) GetShouldAccept() bool { // ShouldTransmitAcceptedReportRequest has arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.ShouldTransmitAcceptedReport]. type ShouldTransmitAcceptedReportRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` - Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReportTimestamp *ReportTimestamp `protobuf:"bytes,1,opt,name=reportTimestamp,proto3" json:"reportTimestamp,omitempty"` + Report []byte `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ShouldTransmitAcceptedReportRequest) Reset() { *x = ShouldTransmitAcceptedReportRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShouldTransmitAcceptedReportRequest) String() string { @@ -894,7 +850,7 @@ func (*ShouldTransmitAcceptedReportRequest) ProtoMessage() {} func (x *ShouldTransmitAcceptedReportRequest) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -925,20 +881,17 @@ func (x *ShouldTransmitAcceptedReportRequest) GetReport() []byte { // ShouldTransmitAcceptedReportReply has return arguments for [github.com/smartcontractkit/libocr/offchainreporting2plus/types.ReportingPlugin.ShouldTransmitAcceptedReport]. type ShouldTransmitAcceptedReportReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ShouldTransmit bool `protobuf:"varint,1,opt,name=shouldTransmit,proto3" json:"shouldTransmit,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ShouldTransmit bool `protobuf:"varint,1,opt,name=shouldTransmit,proto3" json:"shouldTransmit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ShouldTransmitAcceptedReportReply) Reset() { *x = ShouldTransmitAcceptedReportReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ShouldTransmitAcceptedReportReply) String() string { @@ -949,7 +902,7 @@ func (*ShouldTransmitAcceptedReportReply) ProtoMessage() {} func (x *ShouldTransmitAcceptedReportReply) ProtoReflect() protoreflect.Message { mi := &file_reporting_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -973,7 +926,7 @@ func (x *ShouldTransmitAcceptedReportReply) GetShouldTransmit() bool { var File_reporting_proto protoreflect.FileDescriptor -var file_reporting_proto_rawDesc = []byte{ +var file_reporting_proto_rawDesc = string([]byte{ 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, @@ -1157,22 +1110,22 @@ var file_reporting_proto_rawDesc = []byte{ 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_reporting_proto_rawDescOnce sync.Once - file_reporting_proto_rawDescData = file_reporting_proto_rawDesc + file_reporting_proto_rawDescData []byte ) func file_reporting_proto_rawDescGZIP() []byte { file_reporting_proto_rawDescOnce.Do(func() { - file_reporting_proto_rawDescData = protoimpl.X.CompressGZIP(file_reporting_proto_rawDescData) + file_reporting_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reporting_proto_rawDesc), len(file_reporting_proto_rawDesc))) }) return file_reporting_proto_rawDescData } var file_reporting_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_reporting_proto_goTypes = []interface{}{ +var file_reporting_proto_goTypes = []any{ (*NewReportingPluginRequest)(nil), // 0: loop.NewReportingPluginRequest (*NewReportingPluginReply)(nil), // 1: loop.NewReportingPluginReply (*ReportingPluginConfig)(nil), // 2: loop.ReportingPluginConfig @@ -1229,205 +1182,11 @@ func file_reporting_proto_init() { return } file_relayer_proto_init() - if !protoimpl.UnsafeEnabled { - file_reporting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewReportingPluginRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewReportingPluginReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportingPluginConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportingPluginLimits); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportingPluginInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObservationReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributedObservation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShouldAcceptFinalizedReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShouldAcceptFinalizedReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShouldTransmitAcceptedReportRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ShouldTransmitAcceptedReportReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_reporting_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_reporting_proto_rawDesc), len(file_reporting_proto_rawDesc)), NumEnums: 0, NumMessages: 16, NumExtensions: 0, @@ -1438,7 +1197,6 @@ func file_reporting_proto_init() { MessageInfos: file_reporting_proto_msgTypes, }.Build() File_reporting_proto = out.File - file_reporting_proto_rawDesc = nil file_reporting_proto_goTypes = nil file_reporting_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/reporting_grpc.pb.go b/pkg/loop/internal/pb/reporting_grpc.pb.go index c5b92c6fc..4c29130fa 100644 --- a/pkg/loop/internal/pb/reporting_grpc.pb.go +++ b/pkg/loop/internal/pb/reporting_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: reporting.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReportingPluginFactory_NewReportingPlugin_FullMethodName = "/loop.ReportingPluginFactory/NewReportingPlugin" @@ -39,8 +39,9 @@ func NewReportingPluginFactoryClient(cc grpc.ClientConnInterface) ReportingPlugi } func (c *reportingPluginFactoryClient) NewReportingPlugin(ctx context.Context, in *NewReportingPluginRequest, opts ...grpc.CallOption) (*NewReportingPluginReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewReportingPluginReply) - err := c.cc.Invoke(ctx, ReportingPluginFactory_NewReportingPlugin_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPluginFactory_NewReportingPlugin_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,21 +50,25 @@ func (c *reportingPluginFactoryClient) NewReportingPlugin(ctx context.Context, i // ReportingPluginFactoryServer is the server API for ReportingPluginFactory service. // All implementations must embed UnimplementedReportingPluginFactoryServer -// for forward compatibility +// for forward compatibility. type ReportingPluginFactoryServer interface { NewReportingPlugin(context.Context, *NewReportingPluginRequest) (*NewReportingPluginReply, error) mustEmbedUnimplementedReportingPluginFactoryServer() } -// UnimplementedReportingPluginFactoryServer must be embedded to have forward compatible implementations. -type UnimplementedReportingPluginFactoryServer struct { -} +// UnimplementedReportingPluginFactoryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportingPluginFactoryServer struct{} func (UnimplementedReportingPluginFactoryServer) NewReportingPlugin(context.Context, *NewReportingPluginRequest) (*NewReportingPluginReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewReportingPlugin not implemented") } func (UnimplementedReportingPluginFactoryServer) mustEmbedUnimplementedReportingPluginFactoryServer() { } +func (UnimplementedReportingPluginFactoryServer) testEmbeddedByValue() {} // UnsafeReportingPluginFactoryServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportingPluginFactoryServer will @@ -73,6 +78,13 @@ type UnsafeReportingPluginFactoryServer interface { } func RegisterReportingPluginFactoryServer(s grpc.ServiceRegistrar, srv ReportingPluginFactoryServer) { + // If the following call pancis, it indicates UnimplementedReportingPluginFactoryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportingPluginFactory_ServiceDesc, srv) } @@ -140,8 +152,9 @@ func NewReportingPluginClient(cc grpc.ClientConnInterface) ReportingPluginClient } func (c *reportingPluginClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(QueryReply) - err := c.cc.Invoke(ctx, ReportingPlugin_Query_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Query_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -149,8 +162,9 @@ func (c *reportingPluginClient) Query(ctx context.Context, in *QueryRequest, opt } func (c *reportingPluginClient) Observation(ctx context.Context, in *ObservationRequest, opts ...grpc.CallOption) (*ObservationReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ObservationReply) - err := c.cc.Invoke(ctx, ReportingPlugin_Observation_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Observation_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -158,8 +172,9 @@ func (c *reportingPluginClient) Observation(ctx context.Context, in *Observation } func (c *reportingPluginClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReportReply) - err := c.cc.Invoke(ctx, ReportingPlugin_Report_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Report_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -167,8 +182,9 @@ func (c *reportingPluginClient) Report(ctx context.Context, in *ReportRequest, o } func (c *reportingPluginClient) ShouldAcceptFinalizedReport(ctx context.Context, in *ShouldAcceptFinalizedReportRequest, opts ...grpc.CallOption) (*ShouldAcceptFinalizedReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShouldAcceptFinalizedReportReply) - err := c.cc.Invoke(ctx, ReportingPlugin_ShouldAcceptFinalizedReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_ShouldAcceptFinalizedReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -176,8 +192,9 @@ func (c *reportingPluginClient) ShouldAcceptFinalizedReport(ctx context.Context, } func (c *reportingPluginClient) ShouldTransmitAcceptedReport(ctx context.Context, in *ShouldTransmitAcceptedReportRequest, opts ...grpc.CallOption) (*ShouldTransmitAcceptedReportReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShouldTransmitAcceptedReportReply) - err := c.cc.Invoke(ctx, ReportingPlugin_ShouldTransmitAcceptedReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_ShouldTransmitAcceptedReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -185,8 +202,9 @@ func (c *reportingPluginClient) ShouldTransmitAcceptedReport(ctx context.Context } func (c *reportingPluginClient) Close(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, ReportingPlugin_Close_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPlugin_Close_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -195,7 +213,7 @@ func (c *reportingPluginClient) Close(ctx context.Context, in *emptypb.Empty, op // ReportingPluginServer is the server API for ReportingPlugin service. // All implementations must embed UnimplementedReportingPluginServer -// for forward compatibility +// for forward compatibility. type ReportingPluginServer interface { Query(context.Context, *QueryRequest) (*QueryReply, error) Observation(context.Context, *ObservationRequest) (*ObservationReply, error) @@ -206,9 +224,12 @@ type ReportingPluginServer interface { mustEmbedUnimplementedReportingPluginServer() } -// UnimplementedReportingPluginServer must be embedded to have forward compatible implementations. -type UnimplementedReportingPluginServer struct { -} +// UnimplementedReportingPluginServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportingPluginServer struct{} func (UnimplementedReportingPluginServer) Query(context.Context, *QueryRequest) (*QueryReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") @@ -229,6 +250,7 @@ func (UnimplementedReportingPluginServer) Close(context.Context, *emptypb.Empty) return nil, status.Errorf(codes.Unimplemented, "method Close not implemented") } func (UnimplementedReportingPluginServer) mustEmbedUnimplementedReportingPluginServer() {} +func (UnimplementedReportingPluginServer) testEmbeddedByValue() {} // UnsafeReportingPluginServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportingPluginServer will @@ -238,6 +260,13 @@ type UnsafeReportingPluginServer interface { } func RegisterReportingPluginServer(s grpc.ServiceRegistrar, srv ReportingPluginServer) { + // If the following call pancis, it indicates UnimplementedReportingPluginServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportingPlugin_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/reporting_plugin_service.pb.go b/pkg/loop/internal/pb/reporting_plugin_service.pb.go index 5f536de81..776aa01da 100644 --- a/pkg/loop/internal/pb/reporting_plugin_service.pb.go +++ b/pkg/loop/internal/pb/reporting_plugin_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: reporting_plugin_service.proto package pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,18 +22,16 @@ const ( ) type ValidationServiceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ValidationServiceRequest) Reset() { *x = ValidationServiceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_plugin_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_plugin_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidationServiceRequest) String() string { @@ -43,7 +42,7 @@ func (*ValidationServiceRequest) ProtoMessage() {} func (x *ValidationServiceRequest) ProtoReflect() protoreflect.Message { mi := &file_reporting_plugin_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -59,20 +58,17 @@ func (*ValidationServiceRequest) Descriptor() ([]byte, []int) { } type ValidationServiceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields - - ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ValidationServiceResponse) Reset() { *x = ValidationServiceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_plugin_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_plugin_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidationServiceResponse) String() string { @@ -83,7 +79,7 @@ func (*ValidationServiceResponse) ProtoMessage() {} func (x *ValidationServiceResponse) ProtoReflect() protoreflect.Message { mi := &file_reporting_plugin_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -106,24 +102,21 @@ func (x *ValidationServiceResponse) GetID() uint32 { } type ReportingPluginServiceConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ProviderType string `protobuf:"bytes,1,opt,name=providerType,proto3" json:"providerType,omitempty"` + Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` + PluginName string `protobuf:"bytes,3,opt,name=pluginName,proto3" json:"pluginName,omitempty"` + PluginConfig string `protobuf:"bytes,4,opt,name=pluginConfig,proto3" json:"pluginConfig,omitempty"` + TelemetryType string `protobuf:"bytes,5,opt,name=telemetryType,proto3" json:"telemetryType,omitempty"` unknownFields protoimpl.UnknownFields - - ProviderType string `protobuf:"bytes,1,opt,name=providerType,proto3" json:"providerType,omitempty"` - Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` - PluginName string `protobuf:"bytes,3,opt,name=pluginName,proto3" json:"pluginName,omitempty"` - PluginConfig string `protobuf:"bytes,4,opt,name=pluginConfig,proto3" json:"pluginConfig,omitempty"` - TelemetryType string `protobuf:"bytes,5,opt,name=telemetryType,proto3" json:"telemetryType,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReportingPluginServiceConfig) Reset() { *x = ReportingPluginServiceConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_plugin_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_plugin_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingPluginServiceConfig) String() string { @@ -134,7 +127,7 @@ func (*ReportingPluginServiceConfig) ProtoMessage() {} func (x *ReportingPluginServiceConfig) ProtoReflect() protoreflect.Message { mi := &file_reporting_plugin_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -186,10 +179,7 @@ func (x *ReportingPluginServiceConfig) GetTelemetryType() string { // NewReportingPluginFactoryRequest has arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop/reporting_plugins/LOOPPService.NewReportingPluginFactory]. type NewReportingPluginFactoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ProviderID uint32 `protobuf:"varint,1,opt,name=providerID,proto3" json:"providerID,omitempty"` ErrorLogID uint32 `protobuf:"varint,2,opt,name=errorLogID,proto3" json:"errorLogID,omitempty"` PipelineRunnerID uint32 `protobuf:"varint,3,opt,name=pipelineRunnerID,proto3" json:"pipelineRunnerID,omitempty"` @@ -198,15 +188,15 @@ type NewReportingPluginFactoryRequest struct { CapRegistryID uint32 `protobuf:"varint,6,opt,name=capRegistryID,proto3" json:"capRegistryID,omitempty"` KeyValueStoreID uint32 `protobuf:"varint,7,opt,name=keyValueStoreID,proto3" json:"keyValueStoreID,omitempty"` RelayerSetID uint32 `protobuf:"varint,8,opt,name=relayerSetID,proto3" json:"relayerSetID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NewReportingPluginFactoryRequest) Reset() { *x = NewReportingPluginFactoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_plugin_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_plugin_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewReportingPluginFactoryRequest) String() string { @@ -217,7 +207,7 @@ func (*NewReportingPluginFactoryRequest) ProtoMessage() {} func (x *NewReportingPluginFactoryRequest) ProtoReflect() protoreflect.Message { mi := &file_reporting_plugin_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -290,20 +280,17 @@ func (x *NewReportingPluginFactoryRequest) GetRelayerSetID() uint32 { // NewReportingPluginFactoryReply has return arguments for [github.com/smartcontractkit/chainlink-common/pkg/loop/reporting_plugins/LOOPPService.NewReportingPluginFactory]. type NewReportingPluginFactoryReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields - - ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NewReportingPluginFactoryReply) Reset() { *x = NewReportingPluginFactoryReply{} - if protoimpl.UnsafeEnabled { - mi := &file_reporting_plugin_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_reporting_plugin_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NewReportingPluginFactoryReply) String() string { @@ -314,7 +301,7 @@ func (*NewReportingPluginFactoryReply) ProtoMessage() {} func (x *NewReportingPluginFactoryReply) ProtoReflect() protoreflect.Message { mi := &file_reporting_plugin_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -338,7 +325,7 @@ func (x *NewReportingPluginFactoryReply) GetID() uint32 { var File_reporting_plugin_service_proto protoreflect.FileDescriptor -var file_reporting_plugin_service_proto_rawDesc = []byte{ +var file_reporting_plugin_service_proto_rawDesc = string([]byte{ 0x0a, 0x1e, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x22, 0x1a, 0x0a, 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, @@ -406,22 +393,22 @@ var file_reporting_plugin_service_proto_rawDesc = []byte{ 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_reporting_plugin_service_proto_rawDescOnce sync.Once - file_reporting_plugin_service_proto_rawDescData = file_reporting_plugin_service_proto_rawDesc + file_reporting_plugin_service_proto_rawDescData []byte ) func file_reporting_plugin_service_proto_rawDescGZIP() []byte { file_reporting_plugin_service_proto_rawDescOnce.Do(func() { - file_reporting_plugin_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_reporting_plugin_service_proto_rawDescData) + file_reporting_plugin_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reporting_plugin_service_proto_rawDesc), len(file_reporting_plugin_service_proto_rawDesc))) }) return file_reporting_plugin_service_proto_rawDescData } var file_reporting_plugin_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_reporting_plugin_service_proto_goTypes = []interface{}{ +var file_reporting_plugin_service_proto_goTypes = []any{ (*ValidationServiceRequest)(nil), // 0: loop.ValidationServiceRequest (*ValidationServiceResponse)(nil), // 1: loop.ValidationServiceResponse (*ReportingPluginServiceConfig)(nil), // 2: loop.ReportingPluginServiceConfig @@ -446,73 +433,11 @@ func file_reporting_plugin_service_proto_init() { if File_reporting_plugin_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_reporting_plugin_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidationServiceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_plugin_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidationServiceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_plugin_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReportingPluginServiceConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_plugin_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewReportingPluginFactoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_reporting_plugin_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewReportingPluginFactoryReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_reporting_plugin_service_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_reporting_plugin_service_proto_rawDesc), len(file_reporting_plugin_service_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, @@ -523,7 +448,6 @@ func file_reporting_plugin_service_proto_init() { MessageInfos: file_reporting_plugin_service_proto_msgTypes, }.Build() File_reporting_plugin_service_proto = out.File - file_reporting_plugin_service_proto_rawDesc = nil file_reporting_plugin_service_proto_goTypes = nil file_reporting_plugin_service_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/reporting_plugin_service_grpc.pb.go b/pkg/loop/internal/pb/reporting_plugin_service_grpc.pb.go index 913820e91..b2100c0ff 100644 --- a/pkg/loop/internal/pb/reporting_plugin_service_grpc.pb.go +++ b/pkg/loop/internal/pb/reporting_plugin_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: reporting_plugin_service.proto package pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReportingPluginService_NewReportingPluginFactory_FullMethodName = "/loop.ReportingPluginService/NewReportingPluginFactory" @@ -40,8 +40,9 @@ func NewReportingPluginServiceClient(cc grpc.ClientConnInterface) ReportingPlugi } func (c *reportingPluginServiceClient) NewReportingPluginFactory(ctx context.Context, in *NewReportingPluginFactoryRequest, opts ...grpc.CallOption) (*NewReportingPluginFactoryReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NewReportingPluginFactoryReply) - err := c.cc.Invoke(ctx, ReportingPluginService_NewReportingPluginFactory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPluginService_NewReportingPluginFactory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *reportingPluginServiceClient) NewReportingPluginFactory(ctx context.Con } func (c *reportingPluginServiceClient) NewValidationService(ctx context.Context, in *ValidationServiceRequest, opts ...grpc.CallOption) (*ValidationServiceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidationServiceResponse) - err := c.cc.Invoke(ctx, ReportingPluginService_NewValidationService_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportingPluginService_NewValidationService_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *reportingPluginServiceClient) NewValidationService(ctx context.Context, // ReportingPluginServiceServer is the server API for ReportingPluginService service. // All implementations must embed UnimplementedReportingPluginServiceServer -// for forward compatibility +// for forward compatibility. type ReportingPluginServiceServer interface { NewReportingPluginFactory(context.Context, *NewReportingPluginFactoryRequest) (*NewReportingPluginFactoryReply, error) NewValidationService(context.Context, *ValidationServiceRequest) (*ValidationServiceResponse, error) mustEmbedUnimplementedReportingPluginServiceServer() } -// UnimplementedReportingPluginServiceServer must be embedded to have forward compatible implementations. -type UnimplementedReportingPluginServiceServer struct { -} +// UnimplementedReportingPluginServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportingPluginServiceServer struct{} func (UnimplementedReportingPluginServiceServer) NewReportingPluginFactory(context.Context, *NewReportingPluginFactoryRequest) (*NewReportingPluginFactoryReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewReportingPluginFactory not implemented") @@ -78,6 +83,7 @@ func (UnimplementedReportingPluginServiceServer) NewValidationService(context.Co } func (UnimplementedReportingPluginServiceServer) mustEmbedUnimplementedReportingPluginServiceServer() { } +func (UnimplementedReportingPluginServiceServer) testEmbeddedByValue() {} // UnsafeReportingPluginServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportingPluginServiceServer will @@ -87,6 +93,13 @@ type UnsafeReportingPluginServiceServer interface { } func RegisterReportingPluginServiceServer(s grpc.ServiceRegistrar, srv ReportingPluginServiceServer) { + // If the following call pancis, it indicates UnimplementedReportingPluginServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportingPluginService_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/telemetry.pb.go b/pkg/loop/internal/pb/telemetry.pb.go index e9d26321c..5d4a36ae1 100644 --- a/pkg/loop/internal/pb/telemetry.pb.go +++ b/pkg/loop/internal/pb/telemetry.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: telemetry.proto package pb @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,21 +23,18 @@ const ( ) type RelayID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chainId,proto3" json:"chainId,omitempty"` unknownFields protoimpl.UnknownFields - - Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` - ChainId string `protobuf:"bytes,2,opt,name=chainId,proto3" json:"chainId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RelayID) Reset() { *x = RelayID{} - if protoimpl.UnsafeEnabled { - mi := &file_telemetry_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_telemetry_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RelayID) String() string { @@ -47,7 +45,7 @@ func (*RelayID) ProtoMessage() {} func (x *RelayID) ProtoReflect() protoreflect.Message { mi := &file_telemetry_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -77,23 +75,20 @@ func (x *RelayID) GetChainId() string { } type TelemetryMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RelayID *RelayID `protobuf:"bytes,1,opt,name=relayID,proto3" json:"relayID,omitempty"` + ContractID string `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` + TelemetryType string `protobuf:"bytes,3,opt,name=telemetryType,proto3" json:"telemetryType,omitempty"` + Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` unknownFields protoimpl.UnknownFields - - RelayID *RelayID `protobuf:"bytes,1,opt,name=relayID,proto3" json:"relayID,omitempty"` - ContractID string `protobuf:"bytes,2,opt,name=contractID,proto3" json:"contractID,omitempty"` - TelemetryType string `protobuf:"bytes,3,opt,name=telemetryType,proto3" json:"telemetryType,omitempty"` - Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TelemetryMessage) Reset() { *x = TelemetryMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_telemetry_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_telemetry_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TelemetryMessage) String() string { @@ -104,7 +99,7 @@ func (*TelemetryMessage) ProtoMessage() {} func (x *TelemetryMessage) ProtoReflect() protoreflect.Message { mi := &file_telemetry_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -149,7 +144,7 @@ func (x *TelemetryMessage) GetPayload() []byte { var File_telemetry_proto protoreflect.FileDescriptor -var file_telemetry_proto_rawDesc = []byte{ +var file_telemetry_proto_rawDesc = string([]byte{ 0x0a, 0x0f, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, @@ -177,22 +172,22 @@ var file_telemetry_proto_rawDesc = []byte{ 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_telemetry_proto_rawDescOnce sync.Once - file_telemetry_proto_rawDescData = file_telemetry_proto_rawDesc + file_telemetry_proto_rawDescData []byte ) func file_telemetry_proto_rawDescGZIP() []byte { file_telemetry_proto_rawDescOnce.Do(func() { - file_telemetry_proto_rawDescData = protoimpl.X.CompressGZIP(file_telemetry_proto_rawDescData) + file_telemetry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_telemetry_proto_rawDesc), len(file_telemetry_proto_rawDesc))) }) return file_telemetry_proto_rawDescData } var file_telemetry_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_telemetry_proto_goTypes = []interface{}{ +var file_telemetry_proto_goTypes = []any{ (*RelayID)(nil), // 0: loop.RelayID (*TelemetryMessage)(nil), // 1: loop.TelemetryMessage (*emptypb.Empty)(nil), // 2: google.protobuf.Empty @@ -213,37 +208,11 @@ func file_telemetry_proto_init() { if File_telemetry_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_telemetry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_telemetry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TelemetryMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_telemetry_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_telemetry_proto_rawDesc), len(file_telemetry_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -254,7 +223,6 @@ func file_telemetry_proto_init() { MessageInfos: file_telemetry_proto_msgTypes, }.Build() File_telemetry_proto = out.File - file_telemetry_proto_rawDesc = nil file_telemetry_proto_goTypes = nil file_telemetry_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/telemetry_grpc.pb.go b/pkg/loop/internal/pb/telemetry_grpc.pb.go index 3c70cf7d6..59985e32e 100644 --- a/pkg/loop/internal/pb/telemetry_grpc.pb.go +++ b/pkg/loop/internal/pb/telemetry_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: telemetry.proto package pb @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Telemetry_Send_FullMethodName = "/loop.Telemetry/Send" @@ -39,8 +39,9 @@ func NewTelemetryClient(cc grpc.ClientConnInterface) TelemetryClient { } func (c *telemetryClient) Send(ctx context.Context, in *TelemetryMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Telemetry_Send_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Telemetry_Send_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,20 +50,24 @@ func (c *telemetryClient) Send(ctx context.Context, in *TelemetryMessage, opts . // TelemetryServer is the server API for Telemetry service. // All implementations must embed UnimplementedTelemetryServer -// for forward compatibility +// for forward compatibility. type TelemetryServer interface { Send(context.Context, *TelemetryMessage) (*emptypb.Empty, error) mustEmbedUnimplementedTelemetryServer() } -// UnimplementedTelemetryServer must be embedded to have forward compatible implementations. -type UnimplementedTelemetryServer struct { -} +// UnimplementedTelemetryServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTelemetryServer struct{} func (UnimplementedTelemetryServer) Send(context.Context, *TelemetryMessage) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") } func (UnimplementedTelemetryServer) mustEmbedUnimplementedTelemetryServer() {} +func (UnimplementedTelemetryServer) testEmbeddedByValue() {} // UnsafeTelemetryServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TelemetryServer will @@ -72,6 +77,13 @@ type UnsafeTelemetryServer interface { } func RegisterTelemetryServer(s grpc.ServiceRegistrar, srv TelemetryServer) { + // If the following call pancis, it indicates UnimplementedTelemetryServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Telemetry_ServiceDesc, srv) } diff --git a/pkg/loop/internal/pb/validate_config.pb.go b/pkg/loop/internal/pb/validate_config.pb.go index 19e9d73bb..c3e0b8d0a 100644 --- a/pkg/loop/internal/pb/validate_config.pb.go +++ b/pkg/loop/internal/pb/validate_config.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: validate_config.proto package pb @@ -12,6 +12,7 @@ import ( structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,20 +23,17 @@ const ( ) type ValidateConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config *structpb.Struct `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields - - Config *structpb.Struct `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ValidateConfigRequest) Reset() { *x = ValidateConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_config_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateConfigRequest) String() string { @@ -46,7 +44,7 @@ func (*ValidateConfigRequest) ProtoMessage() {} func (x *ValidateConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_validate_config_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -69,18 +67,16 @@ func (x *ValidateConfigRequest) GetConfig() *structpb.Struct { } type ValidateConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ValidateConfigResponse) Reset() { *x = ValidateConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_validate_config_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_validate_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateConfigResponse) String() string { @@ -91,7 +87,7 @@ func (*ValidateConfigResponse) ProtoMessage() {} func (x *ValidateConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_validate_config_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -108,7 +104,7 @@ func (*ValidateConfigResponse) Descriptor() ([]byte, []int) { var File_validate_config_proto protoreflect.FileDescriptor -var file_validate_config_proto_rawDesc = []byte{ +var file_validate_config_proto_rawDesc = string([]byte{ 0x0a, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6c, 0x6f, 0x6f, 0x70, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, @@ -130,22 +126,22 @@ var file_validate_config_proto_rawDesc = []byte{ 0x69, 0x74, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6c, 0x6f, 0x6f, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_validate_config_proto_rawDescOnce sync.Once - file_validate_config_proto_rawDescData = file_validate_config_proto_rawDesc + file_validate_config_proto_rawDescData []byte ) func file_validate_config_proto_rawDescGZIP() []byte { file_validate_config_proto_rawDescOnce.Do(func() { - file_validate_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_validate_config_proto_rawDescData) + file_validate_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_validate_config_proto_rawDesc), len(file_validate_config_proto_rawDesc))) }) return file_validate_config_proto_rawDescData } var file_validate_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_validate_config_proto_goTypes = []interface{}{ +var file_validate_config_proto_goTypes = []any{ (*ValidateConfigRequest)(nil), // 0: loop.ValidateConfigRequest (*ValidateConfigResponse)(nil), // 1: loop.ValidateConfigResponse (*structpb.Struct)(nil), // 2: google.protobuf.Struct @@ -166,37 +162,11 @@ func file_validate_config_proto_init() { if File_validate_config_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_validate_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_validate_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_validate_config_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_validate_config_proto_rawDesc), len(file_validate_config_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -207,7 +177,6 @@ func file_validate_config_proto_init() { MessageInfos: file_validate_config_proto_msgTypes, }.Build() File_validate_config_proto = out.File - file_validate_config_proto_rawDesc = nil file_validate_config_proto_goTypes = nil file_validate_config_proto_depIdxs = nil } diff --git a/pkg/loop/internal/pb/validate_config_grpc.pb.go b/pkg/loop/internal/pb/validate_config_grpc.pb.go index 82220b2a6..7dbd7c207 100644 --- a/pkg/loop/internal/pb/validate_config_grpc.pb.go +++ b/pkg/loop/internal/pb/validate_config_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: validate_config.proto package pb @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ValidationService_ValidateConfig_FullMethodName = "/loop.ValidationService/ValidateConfig" @@ -38,8 +38,9 @@ func NewValidationServiceClient(cc grpc.ClientConnInterface) ValidationServiceCl } func (c *validationServiceClient) ValidateConfig(ctx context.Context, in *ValidateConfigRequest, opts ...grpc.CallOption) (*ValidateConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateConfigResponse) - err := c.cc.Invoke(ctx, ValidationService_ValidateConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ValidationService_ValidateConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *validationServiceClient) ValidateConfig(ctx context.Context, in *Valida // ValidationServiceServer is the server API for ValidationService service. // All implementations must embed UnimplementedValidationServiceServer -// for forward compatibility +// for forward compatibility. type ValidationServiceServer interface { ValidateConfig(context.Context, *ValidateConfigRequest) (*ValidateConfigResponse, error) mustEmbedUnimplementedValidationServiceServer() } -// UnimplementedValidationServiceServer must be embedded to have forward compatible implementations. -type UnimplementedValidationServiceServer struct { -} +// UnimplementedValidationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedValidationServiceServer struct{} func (UnimplementedValidationServiceServer) ValidateConfig(context.Context, *ValidateConfigRequest) (*ValidateConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidateConfig not implemented") } func (UnimplementedValidationServiceServer) mustEmbedUnimplementedValidationServiceServer() {} +func (UnimplementedValidationServiceServer) testEmbeddedByValue() {} // UnsafeValidationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ValidationServiceServer will @@ -71,6 +76,13 @@ type UnsafeValidationServiceServer interface { } func RegisterValidationServiceServer(s grpc.ServiceRegistrar, srv ValidationServiceServer) { + // If the following call pancis, it indicates UnimplementedValidationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ValidationService_ServiceDesc, srv) } diff --git a/pkg/monitoring/pb/offchainreporting2_monitoring_median_config.pb.go b/pkg/monitoring/pb/offchainreporting2_monitoring_median_config.pb.go index 07a01a1ba..b42e897c2 100644 --- a/pkg/monitoring/pb/offchainreporting2_monitoring_median_config.pb.go +++ b/pkg/monitoring/pb/offchainreporting2_monitoring_median_config.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: offchainreporting2_monitoring_median_config.proto package pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,24 +22,21 @@ const ( ) type NumericalMedianConfigProto struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AlphaReportInfinite bool `protobuf:"varint,1,opt,name=alpha_report_infinite,json=alphaReportInfinite,proto3" json:"alpha_report_infinite,omitempty"` - AlphaReportPpb uint64 `protobuf:"varint,2,opt,name=alpha_report_ppb,json=alphaReportPpb,proto3" json:"alpha_report_ppb,omitempty"` - AlphaAcceptInfinite bool `protobuf:"varint,3,opt,name=alpha_accept_infinite,json=alphaAcceptInfinite,proto3" json:"alpha_accept_infinite,omitempty"` - AlphaAcceptPpb uint64 `protobuf:"varint,4,opt,name=alpha_accept_ppb,json=alphaAcceptPpb,proto3" json:"alpha_accept_ppb,omitempty"` - DeltaCNanoseconds uint64 `protobuf:"varint,5,opt,name=delta_c_nanoseconds,json=deltaCNanoseconds,proto3" json:"delta_c_nanoseconds,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AlphaReportInfinite bool `protobuf:"varint,1,opt,name=alpha_report_infinite,json=alphaReportInfinite,proto3" json:"alpha_report_infinite,omitempty"` + AlphaReportPpb uint64 `protobuf:"varint,2,opt,name=alpha_report_ppb,json=alphaReportPpb,proto3" json:"alpha_report_ppb,omitempty"` + AlphaAcceptInfinite bool `protobuf:"varint,3,opt,name=alpha_accept_infinite,json=alphaAcceptInfinite,proto3" json:"alpha_accept_infinite,omitempty"` + AlphaAcceptPpb uint64 `protobuf:"varint,4,opt,name=alpha_accept_ppb,json=alphaAcceptPpb,proto3" json:"alpha_accept_ppb,omitempty"` + DeltaCNanoseconds uint64 `protobuf:"varint,5,opt,name=delta_c_nanoseconds,json=deltaCNanoseconds,proto3" json:"delta_c_nanoseconds,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NumericalMedianConfigProto) Reset() { *x = NumericalMedianConfigProto{} - if protoimpl.UnsafeEnabled { - mi := &file_offchainreporting2_monitoring_median_config_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offchainreporting2_monitoring_median_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NumericalMedianConfigProto) String() string { @@ -49,7 +47,7 @@ func (*NumericalMedianConfigProto) ProtoMessage() {} func (x *NumericalMedianConfigProto) ProtoReflect() protoreflect.Message { mi := &file_offchainreporting2_monitoring_median_config_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -101,7 +99,7 @@ func (x *NumericalMedianConfigProto) GetDeltaCNanoseconds() uint64 { var File_offchainreporting2_monitoring_median_config_proto protoreflect.FileDescriptor -var file_offchainreporting2_monitoring_median_config_proto_rawDesc = []byte{ +var file_offchainreporting2_monitoring_median_config_proto_rawDesc = string([]byte{ 0x0a, 0x31, 0x6f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, @@ -124,22 +122,22 @@ var file_offchainreporting2_monitoring_median_config_proto_rawDesc = []byte{ 0x11, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x43, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_offchainreporting2_monitoring_median_config_proto_rawDescOnce sync.Once - file_offchainreporting2_monitoring_median_config_proto_rawDescData = file_offchainreporting2_monitoring_median_config_proto_rawDesc + file_offchainreporting2_monitoring_median_config_proto_rawDescData []byte ) func file_offchainreporting2_monitoring_median_config_proto_rawDescGZIP() []byte { file_offchainreporting2_monitoring_median_config_proto_rawDescOnce.Do(func() { - file_offchainreporting2_monitoring_median_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_offchainreporting2_monitoring_median_config_proto_rawDescData) + file_offchainreporting2_monitoring_median_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_offchainreporting2_monitoring_median_config_proto_rawDesc), len(file_offchainreporting2_monitoring_median_config_proto_rawDesc))) }) return file_offchainreporting2_monitoring_median_config_proto_rawDescData } var file_offchainreporting2_monitoring_median_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_offchainreporting2_monitoring_median_config_proto_goTypes = []interface{}{ +var file_offchainreporting2_monitoring_median_config_proto_goTypes = []any{ (*NumericalMedianConfigProto)(nil), // 0: pb.NumericalMedianConfigProto } var file_offchainreporting2_monitoring_median_config_proto_depIdxs = []int32{ @@ -155,25 +153,11 @@ func file_offchainreporting2_monitoring_median_config_proto_init() { if File_offchainreporting2_monitoring_median_config_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_offchainreporting2_monitoring_median_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NumericalMedianConfigProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_offchainreporting2_monitoring_median_config_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_offchainreporting2_monitoring_median_config_proto_rawDesc), len(file_offchainreporting2_monitoring_median_config_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, @@ -184,7 +168,6 @@ func file_offchainreporting2_monitoring_median_config_proto_init() { MessageInfos: file_offchainreporting2_monitoring_median_config_proto_msgTypes, }.Build() File_offchainreporting2_monitoring_median_config_proto = out.File - file_offchainreporting2_monitoring_median_config_proto_rawDesc = nil file_offchainreporting2_monitoring_median_config_proto_goTypes = nil file_offchainreporting2_monitoring_median_config_proto_depIdxs = nil } diff --git a/pkg/monitoring/pb/offchainreporting2_monitoring_offchain_config.pb.go b/pkg/monitoring/pb/offchainreporting2_monitoring_offchain_config.pb.go index 2ba9ed717..d5f8b2029 100644 --- a/pkg/monitoring/pb/offchainreporting2_monitoring_offchain_config.pb.go +++ b/pkg/monitoring/pb/offchainreporting2_monitoring_offchain_config.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: offchainreporting2_monitoring_offchain_config.proto package pb @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,10 +22,7 @@ const ( ) type OffchainConfigProto struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` DeltaProgressNanoseconds uint64 `protobuf:"varint,1,opt,name=delta_progress_nanoseconds,json=deltaProgressNanoseconds,proto3" json:"delta_progress_nanoseconds,omitempty"` DeltaResendNanoseconds uint64 `protobuf:"varint,2,opt,name=delta_resend_nanoseconds,json=deltaResendNanoseconds,proto3" json:"delta_resend_nanoseconds,omitempty"` DeltaRoundNanoseconds uint64 `protobuf:"varint,3,opt,name=delta_round_nanoseconds,json=deltaRoundNanoseconds,proto3" json:"delta_round_nanoseconds,omitempty"` @@ -41,15 +39,15 @@ type OffchainConfigProto struct { MaxDurationShouldAcceptFinalizedReportNanoseconds uint64 `protobuf:"varint,14,opt,name=max_duration_should_accept_finalized_report_nanoseconds,json=maxDurationShouldAcceptFinalizedReportNanoseconds,proto3" json:"max_duration_should_accept_finalized_report_nanoseconds,omitempty"` MaxDurationShouldTransmitAcceptedReportNanoseconds uint64 `protobuf:"varint,15,opt,name=max_duration_should_transmit_accepted_report_nanoseconds,json=maxDurationShouldTransmitAcceptedReportNanoseconds,proto3" json:"max_duration_should_transmit_accepted_report_nanoseconds,omitempty"` SharedSecretEncryptions *SharedSecretEncryptionsProto `protobuf:"bytes,16,opt,name=shared_secret_encryptions,json=sharedSecretEncryptions,proto3" json:"shared_secret_encryptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OffchainConfigProto) Reset() { *x = OffchainConfigProto{} - if protoimpl.UnsafeEnabled { - mi := &file_offchainreporting2_monitoring_offchain_config_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offchainreporting2_monitoring_offchain_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OffchainConfigProto) String() string { @@ -60,7 +58,7 @@ func (*OffchainConfigProto) ProtoMessage() {} func (x *OffchainConfigProto) ProtoReflect() protoreflect.Message { mi := &file_offchainreporting2_monitoring_offchain_config_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -188,22 +186,19 @@ func (x *OffchainConfigProto) GetSharedSecretEncryptions() *SharedSecretEncrypti } type SharedSecretEncryptionsProto struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiffieHellmanPoint []byte `protobuf:"bytes,1,opt,name=diffieHellmanPoint,proto3" json:"diffieHellmanPoint,omitempty"` - SharedSecretHash []byte `protobuf:"bytes,2,opt,name=sharedSecretHash,proto3" json:"sharedSecretHash,omitempty"` - Encryptions [][]byte `protobuf:"bytes,3,rep,name=encryptions,proto3" json:"encryptions,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DiffieHellmanPoint []byte `protobuf:"bytes,1,opt,name=diffieHellmanPoint,proto3" json:"diffieHellmanPoint,omitempty"` + SharedSecretHash []byte `protobuf:"bytes,2,opt,name=sharedSecretHash,proto3" json:"sharedSecretHash,omitempty"` + Encryptions [][]byte `protobuf:"bytes,3,rep,name=encryptions,proto3" json:"encryptions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SharedSecretEncryptionsProto) Reset() { *x = SharedSecretEncryptionsProto{} - if protoimpl.UnsafeEnabled { - mi := &file_offchainreporting2_monitoring_offchain_config_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_offchainreporting2_monitoring_offchain_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SharedSecretEncryptionsProto) String() string { @@ -214,7 +209,7 @@ func (*SharedSecretEncryptionsProto) ProtoMessage() {} func (x *SharedSecretEncryptionsProto) ProtoReflect() protoreflect.Message { mi := &file_offchainreporting2_monitoring_offchain_config_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -252,7 +247,7 @@ func (x *SharedSecretEncryptionsProto) GetEncryptions() [][]byte { var File_offchainreporting2_monitoring_offchain_config_proto protoreflect.FileDescriptor -var file_offchainreporting2_monitoring_offchain_config_proto_rawDesc = []byte{ +var file_offchainreporting2_monitoring_offchain_config_proto_rawDesc = string([]byte{ 0x0a, 0x33, 0x6f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x5f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, @@ -334,22 +329,22 @@ var file_offchainreporting2_monitoring_offchain_config_proto_rawDesc = []byte{ 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_offchainreporting2_monitoring_offchain_config_proto_rawDescOnce sync.Once - file_offchainreporting2_monitoring_offchain_config_proto_rawDescData = file_offchainreporting2_monitoring_offchain_config_proto_rawDesc + file_offchainreporting2_monitoring_offchain_config_proto_rawDescData []byte ) func file_offchainreporting2_monitoring_offchain_config_proto_rawDescGZIP() []byte { file_offchainreporting2_monitoring_offchain_config_proto_rawDescOnce.Do(func() { - file_offchainreporting2_monitoring_offchain_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_offchainreporting2_monitoring_offchain_config_proto_rawDescData) + file_offchainreporting2_monitoring_offchain_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_offchainreporting2_monitoring_offchain_config_proto_rawDesc), len(file_offchainreporting2_monitoring_offchain_config_proto_rawDesc))) }) return file_offchainreporting2_monitoring_offchain_config_proto_rawDescData } var file_offchainreporting2_monitoring_offchain_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_offchainreporting2_monitoring_offchain_config_proto_goTypes = []interface{}{ +var file_offchainreporting2_monitoring_offchain_config_proto_goTypes = []any{ (*OffchainConfigProto)(nil), // 0: monitoring_pb.OffchainConfigProto (*SharedSecretEncryptionsProto)(nil), // 1: monitoring_pb.SharedSecretEncryptionsProto } @@ -367,37 +362,11 @@ func file_offchainreporting2_monitoring_offchain_config_proto_init() { if File_offchainreporting2_monitoring_offchain_config_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_offchainreporting2_monitoring_offchain_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OffchainConfigProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_offchainreporting2_monitoring_offchain_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SharedSecretEncryptionsProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_offchainreporting2_monitoring_offchain_config_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_offchainreporting2_monitoring_offchain_config_proto_rawDesc), len(file_offchainreporting2_monitoring_offchain_config_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -408,7 +377,6 @@ func file_offchainreporting2_monitoring_offchain_config_proto_init() { MessageInfos: file_offchainreporting2_monitoring_offchain_config_proto_msgTypes, }.Build() File_offchainreporting2_monitoring_offchain_config_proto = out.File - file_offchainreporting2_monitoring_offchain_config_proto_rawDesc = nil file_offchainreporting2_monitoring_offchain_config_proto_goTypes = nil file_offchainreporting2_monitoring_offchain_config_proto_depIdxs = nil } diff --git a/pkg/values/pb/values.pb.go b/pkg/values/pb/values.pb.go index f7a40b24c..b186cdc0e 100644 --- a/pkg/values/pb/values.pb.go +++ b/pkg/values/pb/values.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: values/pb/values.proto package pb @@ -12,6 +12,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,11 +23,8 @@ const ( ) type Value struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Value: // // *Value_StringValue // *Value_BoolValue @@ -38,16 +36,16 @@ type Value struct { // *Value_BigintValue // *Value_TimeValue // *Value_Float64Value - Value isValue_Value `protobuf_oneof:"value"` + Value isValue_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Value) Reset() { *x = Value{} - if protoimpl.UnsafeEnabled { - mi := &file_values_pb_values_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_values_pb_values_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Value) String() string { @@ -58,7 +56,7 @@ func (*Value) ProtoMessage() {} func (x *Value) ProtoReflect() protoreflect.Message { mi := &file_values_pb_values_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -73,79 +71,99 @@ func (*Value) Descriptor() ([]byte, []int) { return file_values_pb_values_proto_rawDescGZIP(), []int{0} } -func (m *Value) GetValue() isValue_Value { - if m != nil { - return m.Value +func (x *Value) GetValue() isValue_Value { + if x != nil { + return x.Value } return nil } func (x *Value) GetStringValue() string { - if x, ok := x.GetValue().(*Value_StringValue); ok { - return x.StringValue + if x != nil { + if x, ok := x.Value.(*Value_StringValue); ok { + return x.StringValue + } } return "" } func (x *Value) GetBoolValue() bool { - if x, ok := x.GetValue().(*Value_BoolValue); ok { - return x.BoolValue + if x != nil { + if x, ok := x.Value.(*Value_BoolValue); ok { + return x.BoolValue + } } return false } func (x *Value) GetBytesValue() []byte { - if x, ok := x.GetValue().(*Value_BytesValue); ok { - return x.BytesValue + if x != nil { + if x, ok := x.Value.(*Value_BytesValue); ok { + return x.BytesValue + } } return nil } func (x *Value) GetMapValue() *Map { - if x, ok := x.GetValue().(*Value_MapValue); ok { - return x.MapValue + if x != nil { + if x, ok := x.Value.(*Value_MapValue); ok { + return x.MapValue + } } return nil } func (x *Value) GetListValue() *List { - if x, ok := x.GetValue().(*Value_ListValue); ok { - return x.ListValue + if x != nil { + if x, ok := x.Value.(*Value_ListValue); ok { + return x.ListValue + } } return nil } func (x *Value) GetDecimalValue() *Decimal { - if x, ok := x.GetValue().(*Value_DecimalValue); ok { - return x.DecimalValue + if x != nil { + if x, ok := x.Value.(*Value_DecimalValue); ok { + return x.DecimalValue + } } return nil } func (x *Value) GetInt64Value() int64 { - if x, ok := x.GetValue().(*Value_Int64Value); ok { - return x.Int64Value + if x != nil { + if x, ok := x.Value.(*Value_Int64Value); ok { + return x.Int64Value + } } return 0 } func (x *Value) GetBigintValue() *BigInt { - if x, ok := x.GetValue().(*Value_BigintValue); ok { - return x.BigintValue + if x != nil { + if x, ok := x.Value.(*Value_BigintValue); ok { + return x.BigintValue + } } return nil } func (x *Value) GetTimeValue() *timestamppb.Timestamp { - if x, ok := x.GetValue().(*Value_TimeValue); ok { - return x.TimeValue + if x != nil { + if x, ok := x.Value.(*Value_TimeValue); ok { + return x.TimeValue + } } return nil } func (x *Value) GetFloat64Value() float64 { - if x, ok := x.GetValue().(*Value_Float64Value); ok { - return x.Float64Value + if x != nil { + if x, ok := x.Value.(*Value_Float64Value); ok { + return x.Float64Value + } } return 0 } @@ -215,21 +233,18 @@ func (*Value_TimeValue) isValue_Value() {} func (*Value_Float64Value) isValue_Value() {} type BigInt struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AbsVal []byte `protobuf:"bytes,1,opt,name=abs_val,json=absVal,proto3" json:"abs_val,omitempty"` + Sign int64 `protobuf:"varint,2,opt,name=sign,proto3" json:"sign,omitempty"` unknownFields protoimpl.UnknownFields - - AbsVal []byte `protobuf:"bytes,1,opt,name=abs_val,json=absVal,proto3" json:"abs_val,omitempty"` - Sign int64 `protobuf:"varint,2,opt,name=sign,proto3" json:"sign,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BigInt) Reset() { *x = BigInt{} - if protoimpl.UnsafeEnabled { - mi := &file_values_pb_values_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_values_pb_values_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BigInt) String() string { @@ -240,7 +255,7 @@ func (*BigInt) ProtoMessage() {} func (x *BigInt) ProtoReflect() protoreflect.Message { mi := &file_values_pb_values_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -270,20 +285,17 @@ func (x *BigInt) GetSign() int64 { } type Map struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *Map) Reset() { *x = Map{} - if protoimpl.UnsafeEnabled { - mi := &file_values_pb_values_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_values_pb_values_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Map) String() string { @@ -294,7 +306,7 @@ func (*Map) ProtoMessage() {} func (x *Map) ProtoReflect() protoreflect.Message { mi := &file_values_pb_values_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -317,20 +329,17 @@ func (x *Map) GetFields() map[string]*Value { } type List struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Fields []*Value `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` unknownFields protoimpl.UnknownFields - - Fields []*Value `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` + sizeCache protoimpl.SizeCache } func (x *List) Reset() { *x = List{} - if protoimpl.UnsafeEnabled { - mi := &file_values_pb_values_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_values_pb_values_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *List) String() string { @@ -341,7 +350,7 @@ func (*List) ProtoMessage() {} func (x *List) ProtoReflect() protoreflect.Message { mi := &file_values_pb_values_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -364,21 +373,18 @@ func (x *List) GetFields() []*Value { } type Decimal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Coefficient *BigInt `protobuf:"bytes,1,opt,name=coefficient,proto3" json:"coefficient,omitempty"` + Exponent int32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` unknownFields protoimpl.UnknownFields - - Coefficient *BigInt `protobuf:"bytes,1,opt,name=coefficient,proto3" json:"coefficient,omitempty"` - Exponent int32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Decimal) Reset() { *x = Decimal{} - if protoimpl.UnsafeEnabled { - mi := &file_values_pb_values_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_values_pb_values_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Decimal) String() string { @@ -389,7 +395,7 @@ func (*Decimal) ProtoMessage() {} func (x *Decimal) ProtoReflect() protoreflect.Message { mi := &file_values_pb_values_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -420,7 +426,7 @@ func (x *Decimal) GetExponent() int32 { var File_values_pb_values_proto protoreflect.FileDescriptor -var file_values_pb_values_proto_rawDesc = []byte{ +var file_values_pb_values_proto_rawDesc = string([]byte{ 0x0a, 0x16, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x70, 0x62, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, @@ -479,22 +485,22 @@ var file_values_pb_values_proto_rawDesc = []byte{ 0x6b, 0x69, 0x74, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_values_pb_values_proto_rawDescOnce sync.Once - file_values_pb_values_proto_rawDescData = file_values_pb_values_proto_rawDesc + file_values_pb_values_proto_rawDescData []byte ) func file_values_pb_values_proto_rawDescGZIP() []byte { file_values_pb_values_proto_rawDescOnce.Do(func() { - file_values_pb_values_proto_rawDescData = protoimpl.X.CompressGZIP(file_values_pb_values_proto_rawDescData) + file_values_pb_values_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_values_pb_values_proto_rawDesc), len(file_values_pb_values_proto_rawDesc))) }) return file_values_pb_values_proto_rawDescData } var file_values_pb_values_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_values_pb_values_proto_goTypes = []interface{}{ +var file_values_pb_values_proto_goTypes = []any{ (*Value)(nil), // 0: values.Value (*BigInt)(nil), // 1: values.BigInt (*Map)(nil), // 2: values.Map @@ -525,69 +531,7 @@ func file_values_pb_values_proto_init() { if File_values_pb_values_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_values_pb_values_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Value); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_values_pb_values_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BigInt); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_values_pb_values_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Map); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_values_pb_values_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*List); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_values_pb_values_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Decimal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_values_pb_values_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_values_pb_values_proto_msgTypes[0].OneofWrappers = []any{ (*Value_StringValue)(nil), (*Value_BoolValue)(nil), (*Value_BytesValue)(nil), @@ -603,7 +547,7 @@ func file_values_pb_values_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_values_pb_values_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_values_pb_values_proto_rawDesc), len(file_values_pb_values_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, @@ -614,7 +558,6 @@ func file_values_pb_values_proto_init() { MessageInfos: file_values_pb_values_proto_msgTypes, }.Build() File_values_pb_values_proto = out.File - file_values_pb_values_proto_rawDesc = nil file_values_pb_values_proto_goTypes = nil file_values_pb_values_proto_depIdxs = nil } diff --git a/pkg/workflows/wasm/pb/wasm.pb.go b/pkg/workflows/wasm/pb/wasm.pb.go index d8d21aefb..298c74494 100644 --- a/pkg/workflows/wasm/pb/wasm.pb.go +++ b/pkg/workflows/wasm/pb/wasm.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.25.1 +// protoc-gen-go v1.36.5 +// protoc v5.29.3 // source: workflows/wasm/pb/wasm.proto package pb @@ -14,6 +14,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,20 +25,17 @@ const ( ) type RuntimeConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxFetchResponseSizeBytes int64 `protobuf:"varint,1,opt,name=maxFetchResponseSizeBytes,proto3" json:"maxFetchResponseSizeBytes,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MaxFetchResponseSizeBytes int64 `protobuf:"varint,1,opt,name=maxFetchResponseSizeBytes,proto3" json:"maxFetchResponseSizeBytes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RuntimeConfig) Reset() { *x = RuntimeConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RuntimeConfig) String() string { @@ -48,7 +46,7 @@ func (*RuntimeConfig) ProtoMessage() {} func (x *RuntimeConfig) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -71,21 +69,18 @@ func (x *RuntimeConfig) GetMaxFetchResponseSizeBytes() int64 { } type ComputeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Request *pb.CapabilityRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` + RuntimeConfig *RuntimeConfig `protobuf:"bytes,2,opt,name=runtimeConfig,proto3" json:"runtimeConfig,omitempty"` unknownFields protoimpl.UnknownFields - - Request *pb.CapabilityRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` - RuntimeConfig *RuntimeConfig `protobuf:"bytes,2,opt,name=runtimeConfig,proto3" json:"runtimeConfig,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ComputeRequest) Reset() { *x = ComputeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ComputeRequest) String() string { @@ -96,7 +91,7 @@ func (*ComputeRequest) ProtoMessage() {} func (x *ComputeRequest) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -126,26 +121,23 @@ func (x *ComputeRequest) GetRuntimeConfig() *RuntimeConfig { } type Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` - // Types that are assignable to Message: + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + // Types that are valid to be assigned to Message: // // *Request_ComputeRequest // *Request_SpecRequest - Message isRequest_Message `protobuf_oneof:"message"` + Message isRequest_Message `protobuf_oneof:"message"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Request) Reset() { *x = Request{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Request) String() string { @@ -156,7 +148,7 @@ func (*Request) ProtoMessage() {} func (x *Request) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -185,23 +177,27 @@ func (x *Request) GetConfig() []byte { return nil } -func (m *Request) GetMessage() isRequest_Message { - if m != nil { - return m.Message +func (x *Request) GetMessage() isRequest_Message { + if x != nil { + return x.Message } return nil } func (x *Request) GetComputeRequest() *ComputeRequest { - if x, ok := x.GetMessage().(*Request_ComputeRequest); ok { - return x.ComputeRequest + if x != nil { + if x, ok := x.Message.(*Request_ComputeRequest); ok { + return x.ComputeRequest + } } return nil } func (x *Request) GetSpecRequest() *emptypb.Empty { - if x, ok := x.GetMessage().(*Request_SpecRequest); ok { - return x.SpecRequest + if x != nil { + if x, ok := x.Message.(*Request_SpecRequest); ok { + return x.SpecRequest + } } return nil } @@ -223,20 +219,17 @@ func (*Request_ComputeRequest) isRequest_Message() {} func (*Request_SpecRequest) isRequest_Message() {} type ComputeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Response *pb.CapabilityResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` unknownFields protoimpl.UnknownFields - - Response *pb.CapabilityResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ComputeResponse) Reset() { *x = ComputeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ComputeResponse) String() string { @@ -247,7 +240,7 @@ func (*ComputeResponse) ProtoMessage() {} func (x *ComputeResponse) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -270,21 +263,18 @@ func (x *ComputeResponse) GetResponse() *pb.CapabilityResponse { } type StepInputs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OutputRef string `protobuf:"bytes,1,opt,name=outputRef,proto3" json:"outputRef,omitempty"` + Mapping *pb1.Map `protobuf:"bytes,2,opt,name=mapping,proto3" json:"mapping,omitempty"` unknownFields protoimpl.UnknownFields - - OutputRef string `protobuf:"bytes,1,opt,name=outputRef,proto3" json:"outputRef,omitempty"` - Mapping *pb1.Map `protobuf:"bytes,2,opt,name=mapping,proto3" json:"mapping,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StepInputs) Reset() { *x = StepInputs{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StepInputs) String() string { @@ -295,7 +285,7 @@ func (*StepInputs) ProtoMessage() {} func (x *StepInputs) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -325,24 +315,21 @@ func (x *StepInputs) GetMapping() *pb1.Map { } type StepDefinition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - Inputs *StepInputs `protobuf:"bytes,3,opt,name=inputs,proto3" json:"inputs,omitempty"` - Config *pb1.Map `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` - CapabilityType string `protobuf:"bytes,5,opt,name=capabilityType,proto3" json:"capabilityType,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + Inputs *StepInputs `protobuf:"bytes,3,opt,name=inputs,proto3" json:"inputs,omitempty"` + Config *pb1.Map `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` + CapabilityType string `protobuf:"bytes,5,opt,name=capabilityType,proto3" json:"capabilityType,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StepDefinition) Reset() { *x = StepDefinition{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StepDefinition) String() string { @@ -353,7 +340,7 @@ func (*StepDefinition) ProtoMessage() {} func (x *StepDefinition) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -404,25 +391,22 @@ func (x *StepDefinition) GetCapabilityType() string { } type WorkflowSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + Triggers []*StepDefinition `protobuf:"bytes,3,rep,name=triggers,proto3" json:"triggers,omitempty"` + Actions []*StepDefinition `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` + Consensus []*StepDefinition `protobuf:"bytes,5,rep,name=consensus,proto3" json:"consensus,omitempty"` + Targets []*StepDefinition `protobuf:"bytes,6,rep,name=targets,proto3" json:"targets,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - Triggers []*StepDefinition `protobuf:"bytes,3,rep,name=triggers,proto3" json:"triggers,omitempty"` - Actions []*StepDefinition `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` - Consensus []*StepDefinition `protobuf:"bytes,5,rep,name=consensus,proto3" json:"consensus,omitempty"` - Targets []*StepDefinition `protobuf:"bytes,6,rep,name=targets,proto3" json:"targets,omitempty"` + sizeCache protoimpl.SizeCache } func (x *WorkflowSpec) Reset() { *x = WorkflowSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkflowSpec) String() string { @@ -433,7 +417,7 @@ func (*WorkflowSpec) ProtoMessage() {} func (x *WorkflowSpec) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -491,26 +475,23 @@ func (x *WorkflowSpec) GetTargets() []*StepDefinition { } type Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` - // Types that are assignable to Message: + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` + // Types that are valid to be assigned to Message: // // *Response_ComputeResponse // *Response_SpecResponse - Message isResponse_Message `protobuf_oneof:"message"` + Message isResponse_Message `protobuf_oneof:"message"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Response) Reset() { *x = Response{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Response) String() string { @@ -521,7 +502,7 @@ func (*Response) ProtoMessage() {} func (x *Response) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -550,23 +531,27 @@ func (x *Response) GetErrMsg() string { return "" } -func (m *Response) GetMessage() isResponse_Message { - if m != nil { - return m.Message +func (x *Response) GetMessage() isResponse_Message { + if x != nil { + return x.Message } return nil } func (x *Response) GetComputeResponse() *ComputeResponse { - if x, ok := x.GetMessage().(*Response_ComputeResponse); ok { - return x.ComputeResponse + if x != nil { + if x, ok := x.Message.(*Response_ComputeResponse); ok { + return x.ComputeResponse + } } return nil } func (x *Response) GetSpecResponse() *WorkflowSpec { - if x, ok := x.GetMessage().(*Response_SpecResponse); ok { - return x.SpecResponse + if x != nil { + if x, ok := x.Message.(*Response_SpecResponse); ok { + return x.SpecResponse + } } return nil } @@ -589,24 +574,21 @@ func (*Response_SpecResponse) isResponse_Message() {} // NOTE: This message was added because it is needed to be used as part of the request and for metrics. type FetchRequestMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - WorkflowId string `protobuf:"bytes,1,opt,name=workflowId,proto3" json:"workflowId,omitempty"` - WorkflowName string `protobuf:"bytes,2,opt,name=workflowName,proto3" json:"workflowName,omitempty"` - WorkflowOwner string `protobuf:"bytes,3,opt,name=workflowOwner,proto3" json:"workflowOwner,omitempty"` - WorkflowExecutionId string `protobuf:"bytes,4,opt,name=workflowExecutionId,proto3" json:"workflowExecutionId,omitempty"` - DecodedWorkflowName string `protobuf:"bytes,5,opt,name=decodedWorkflowName,proto3" json:"decodedWorkflowName,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + WorkflowId string `protobuf:"bytes,1,opt,name=workflowId,proto3" json:"workflowId,omitempty"` + WorkflowName string `protobuf:"bytes,2,opt,name=workflowName,proto3" json:"workflowName,omitempty"` + WorkflowOwner string `protobuf:"bytes,3,opt,name=workflowOwner,proto3" json:"workflowOwner,omitempty"` + WorkflowExecutionId string `protobuf:"bytes,4,opt,name=workflowExecutionId,proto3" json:"workflowExecutionId,omitempty"` + DecodedWorkflowName string `protobuf:"bytes,5,opt,name=decodedWorkflowName,proto3" json:"decodedWorkflowName,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FetchRequestMetadata) Reset() { *x = FetchRequestMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FetchRequestMetadata) String() string { @@ -617,7 +599,7 @@ func (*FetchRequestMetadata) ProtoMessage() {} func (x *FetchRequestMetadata) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -668,26 +650,23 @@ func (x *FetchRequestMetadata) GetDecodedWorkflowName() string { } type FetchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Headers *pb1.Map `protobuf:"bytes,3,opt,name=headers,proto3" json:"headers,omitempty"` + Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` + TimeoutMs uint32 `protobuf:"varint,5,opt,name=timeoutMs,proto3" json:"timeoutMs,omitempty"` + Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` + Metadata *FetchRequestMetadata `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` - Headers *pb1.Map `protobuf:"bytes,3,opt,name=headers,proto3" json:"headers,omitempty"` - Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` - TimeoutMs uint32 `protobuf:"varint,5,opt,name=timeoutMs,proto3" json:"timeoutMs,omitempty"` - Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` - Metadata *FetchRequestMetadata `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FetchRequest) Reset() { *x = FetchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FetchRequest) String() string { @@ -698,7 +677,7 @@ func (*FetchRequest) ProtoMessage() {} func (x *FetchRequest) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -763,25 +742,22 @@ func (x *FetchRequest) GetMetadata() *FetchRequestMetadata { } type FetchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExecutionError bool `protobuf:"varint,1,opt,name=executionError,proto3" json:"executionError,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ExecutionError bool `protobuf:"varint,1,opt,name=executionError,proto3" json:"executionError,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` // NOTE: this is actually a uint8, but proto doesn't support this. - StatusCode uint32 `protobuf:"varint,3,opt,name=statusCode,proto3" json:"statusCode,omitempty"` - Headers *pb1.Map `protobuf:"bytes,4,opt,name=headers,proto3" json:"headers,omitempty"` - Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` + StatusCode uint32 `protobuf:"varint,3,opt,name=statusCode,proto3" json:"statusCode,omitempty"` + Headers *pb1.Map `protobuf:"bytes,4,opt,name=headers,proto3" json:"headers,omitempty"` + Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FetchResponse) Reset() { *x = FetchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FetchResponse) String() string { @@ -792,7 +768,7 @@ func (*FetchResponse) ProtoMessage() {} func (x *FetchResponse) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -843,22 +819,19 @@ func (x *FetchResponse) GetBody() []byte { } type EmitMessageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Labels *pb1.Map `protobuf:"bytes,2,opt,name=labels,proto3" json:"labels,omitempty"` + RequestId string `protobuf:"bytes,3,opt,name=requestId,proto3" json:"requestId,omitempty"` unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Labels *pb1.Map `protobuf:"bytes,2,opt,name=labels,proto3" json:"labels,omitempty"` - RequestId string `protobuf:"bytes,3,opt,name=requestId,proto3" json:"requestId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EmitMessageRequest) Reset() { *x = EmitMessageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EmitMessageRequest) String() string { @@ -869,7 +842,7 @@ func (*EmitMessageRequest) ProtoMessage() {} func (x *EmitMessageRequest) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -906,20 +879,17 @@ func (x *EmitMessageRequest) GetRequestId() string { } type Error struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Error) Reset() { *x = Error{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Error) String() string { @@ -930,7 +900,7 @@ func (*Error) ProtoMessage() {} func (x *Error) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -953,20 +923,17 @@ func (x *Error) GetMessage() string { } type EmitMessageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EmitMessageResponse) Reset() { *x = EmitMessageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EmitMessageResponse) String() string { @@ -977,7 +944,7 @@ func (*EmitMessageResponse) ProtoMessage() {} func (x *EmitMessageResponse) ProtoReflect() protoreflect.Message { mi := &file_workflows_wasm_pb_wasm_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1001,7 +968,7 @@ func (x *EmitMessageResponse) GetError() *Error { var File_workflows_wasm_pb_wasm_proto protoreflect.FileDescriptor -var file_workflows_wasm_pb_wasm_proto_rawDesc = []byte{ +var file_workflows_wasm_pb_wasm_proto_rawDesc = string([]byte{ 0x0a, 0x1c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x77, 0x61, 0x73, 0x6d, 0x2f, 0x70, 0x62, 0x2f, 0x77, 0x61, 0x73, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x73, 0x64, 0x6b, 0x1a, 0x22, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, @@ -1141,22 +1108,22 @@ var file_workflows_wasm_pb_wasm_proto_rawDesc = []byte{ 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +}) var ( file_workflows_wasm_pb_wasm_proto_rawDescOnce sync.Once - file_workflows_wasm_pb_wasm_proto_rawDescData = file_workflows_wasm_pb_wasm_proto_rawDesc + file_workflows_wasm_pb_wasm_proto_rawDescData []byte ) func file_workflows_wasm_pb_wasm_proto_rawDescGZIP() []byte { file_workflows_wasm_pb_wasm_proto_rawDescOnce.Do(func() { - file_workflows_wasm_pb_wasm_proto_rawDescData = protoimpl.X.CompressGZIP(file_workflows_wasm_pb_wasm_proto_rawDescData) + file_workflows_wasm_pb_wasm_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_workflows_wasm_pb_wasm_proto_rawDesc), len(file_workflows_wasm_pb_wasm_proto_rawDesc))) }) return file_workflows_wasm_pb_wasm_proto_rawDescData } var file_workflows_wasm_pb_wasm_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_workflows_wasm_pb_wasm_proto_goTypes = []interface{}{ +var file_workflows_wasm_pb_wasm_proto_goTypes = []any{ (*RuntimeConfig)(nil), // 0: sdk.RuntimeConfig (*ComputeRequest)(nil), // 1: sdk.ComputeRequest (*Request)(nil), // 2: sdk.Request @@ -1208,181 +1175,11 @@ func file_workflows_wasm_pb_wasm_proto_init() { if File_workflows_wasm_pb_wasm_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_workflows_wasm_pb_wasm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RuntimeConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComputeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComputeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StepInputs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StepDefinition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchRequestMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmitMessageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Error); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmitMessageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_workflows_wasm_pb_wasm_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_workflows_wasm_pb_wasm_proto_msgTypes[2].OneofWrappers = []any{ (*Request_ComputeRequest)(nil), (*Request_SpecRequest)(nil), } - file_workflows_wasm_pb_wasm_proto_msgTypes[7].OneofWrappers = []interface{}{ + file_workflows_wasm_pb_wasm_proto_msgTypes[7].OneofWrappers = []any{ (*Response_ComputeResponse)(nil), (*Response_SpecResponse)(nil), } @@ -1390,7 +1187,7 @@ func file_workflows_wasm_pb_wasm_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_workflows_wasm_pb_wasm_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_workflows_wasm_pb_wasm_proto_rawDesc), len(file_workflows_wasm_pb_wasm_proto_rawDesc)), NumEnums: 0, NumMessages: 14, NumExtensions: 0, @@ -1401,7 +1198,6 @@ func file_workflows_wasm_pb_wasm_proto_init() { MessageInfos: file_workflows_wasm_pb_wasm_proto_msgTypes, }.Build() File_workflows_wasm_pb_wasm_proto = out.File - file_workflows_wasm_pb_wasm_proto_rawDesc = nil file_workflows_wasm_pb_wasm_proto_goTypes = nil file_workflows_wasm_pb_wasm_proto_depIdxs = nil } From 3f80916b2d90618a05cfd2facfbce0e653badb82 Mon Sep 17 00:00:00 2001 From: Sam Davies Date: Fri, 21 Feb 2025 14:35:08 -0500 Subject: [PATCH 2/2] Allow disabling linter --- .github/workflows/golangci_lint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci_lint.yml b/.github/workflows/golangci_lint.yml index fbddf3922..3f6a4da4b 100644 --- a/.github/workflows/golangci_lint.yml +++ b/.github/workflows/golangci_lint.yml @@ -11,7 +11,8 @@ jobs: actions: read steps: - name: golangci-lint + if: ${{ always() && !contains(join(github.event.pull_request.labels.*.name, ' '), 'allow-lint-issues') }} uses: smartcontractkit/.github/actions/ci-lint-go@2ac9d97a83a5edded09af7fcf4ea5bce7a4473a4 # v0.2.6 with: golangci-lint-version: v1.63.4 - \ No newline at end of file +