update gen versions

This commit is contained in:
anon
2024-11-21 23:29:58 -03:00
parent 6cbe88a00a
commit b3a47c5c7b
19 changed files with 1907 additions and 4680 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc-gen-go v1.35.2
// protoc v5.28.0
// source: api/zksnark.proto
@@ -80,11 +80,9 @@ type ZksnarkRequest struct {
func (x *ZksnarkRequest) Reset() {
*x = ZksnarkRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_zksnark_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_api_zksnark_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ZksnarkRequest) String() string {
@@ -95,7 +93,7 @@ func (*ZksnarkRequest) ProtoMessage() {}
func (x *ZksnarkRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_zksnark_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)
@@ -148,11 +146,9 @@ type ZksnarkResponse struct {
func (x *ZksnarkResponse) Reset() {
*x = ZksnarkResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_api_zksnark_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_api_zksnark_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ZksnarkResponse) String() string {
@@ -163,7 +159,7 @@ func (*ZksnarkResponse) ProtoMessage() {}
func (x *ZksnarkResponse) ProtoReflect() protoreflect.Message {
mi := &file_api_zksnark_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)
@@ -235,7 +231,7 @@ func file_api_zksnark_proto_rawDescGZIP() []byte {
var file_api_zksnark_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_zksnark_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_api_zksnark_proto_goTypes = []interface{}{
var file_api_zksnark_proto_goTypes = []any{
(ZksnarkResponse_Code)(0), // 0: protocol.ZksnarkResponse.Code
(*ZksnarkRequest)(nil), // 1: protocol.ZksnarkRequest
(*ZksnarkResponse)(nil), // 2: protocol.ZksnarkResponse
@@ -258,32 +254,6 @@ func file_api_zksnark_proto_init() {
if File_api_zksnark_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_api_zksnark_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ZksnarkRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_api_zksnark_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ZksnarkResponse); 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{

View File

@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.28.0
// source: api/zksnark.proto
@@ -15,8 +15,12 @@ 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 (
TronZksnark_CheckZksnarkProof_FullMethodName = "/protocol.TronZksnark/CheckZksnarkProof"
)
// TronZksnarkClient is the client API for TronZksnark service.
//
@@ -34,8 +38,9 @@ func NewTronZksnarkClient(cc grpc.ClientConnInterface) TronZksnarkClient {
}
func (c *tronZksnarkClient) CheckZksnarkProof(ctx context.Context, in *ZksnarkRequest, opts ...grpc.CallOption) (*ZksnarkResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ZksnarkResponse)
err := c.cc.Invoke(ctx, "/protocol.TronZksnark/CheckZksnarkProof", in, out, opts...)
err := c.cc.Invoke(ctx, TronZksnark_CheckZksnarkProof_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
@@ -44,20 +49,24 @@ func (c *tronZksnarkClient) CheckZksnarkProof(ctx context.Context, in *ZksnarkRe
// TronZksnarkServer is the server API for TronZksnark service.
// All implementations must embed UnimplementedTronZksnarkServer
// for forward compatibility
// for forward compatibility.
type TronZksnarkServer interface {
CheckZksnarkProof(context.Context, *ZksnarkRequest) (*ZksnarkResponse, error)
mustEmbedUnimplementedTronZksnarkServer()
}
// UnimplementedTronZksnarkServer must be embedded to have forward compatible implementations.
type UnimplementedTronZksnarkServer struct {
}
// UnimplementedTronZksnarkServer 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 UnimplementedTronZksnarkServer struct{}
func (UnimplementedTronZksnarkServer) CheckZksnarkProof(context.Context, *ZksnarkRequest) (*ZksnarkResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckZksnarkProof not implemented")
}
func (UnimplementedTronZksnarkServer) mustEmbedUnimplementedTronZksnarkServer() {}
func (UnimplementedTronZksnarkServer) testEmbeddedByValue() {}
// UnsafeTronZksnarkServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to TronZksnarkServer will
@@ -67,6 +76,13 @@ type UnsafeTronZksnarkServer interface {
}
func RegisterTronZksnarkServer(s grpc.ServiceRegistrar, srv TronZksnarkServer) {
// If the following call pancis, it indicates UnimplementedTronZksnarkServer 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(&TronZksnark_ServiceDesc, srv)
}
@@ -80,7 +96,7 @@ func _TronZksnark_CheckZksnarkProof_Handler(srv interface{}, ctx context.Context
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protocol.TronZksnark/CheckZksnarkProof",
FullMethod: TronZksnark_CheckZksnarkProof_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TronZksnarkServer).CheckZksnarkProof(ctx, req.(*ZksnarkRequest))