diff --git a/Makefile b/Makefile index 30480c6..4922fd6 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,9 @@ help: ## Display this help screen mock-monitor: @protoc -I./monitor --gogo_out=plugins=grpc,paths=source_relative:./autogen/go/monitor --gogrpcmock_out=paths=source_relative:./autogen/go/monitor ./monitor/*.proto mock-rusk: - @protoc -I./rusk --gogo_out=plugins=grpc,paths=source_relative:./autogen/go/rusk --gogrpcmock_out=paths=source_relative:./autogen/go/rusk ./rusk/*.proto + git clone git@github.com:dusk-network/rusk-schema.git + @protoc -I./rusk-schema/ --gogo_out=plugins=grpc,paths=source_relative:./autogen/go/rusk --gogrpcmock_out=paths=source_relative:./autogen/go/rusk ./rusk-schema/*.proto + rm -rf rusk-schema mock-node: @protoc -I./node --gogo_out=plugins=grpc,paths=source_relative:./autogen/go/node --gogrpcmock_out=paths=source_relative:./autogen/go/node ./node/*.proto gen-monitor: diff --git a/autogen/go/monitor/monitor.pb.go b/autogen/go/monitor/monitor.pb.go index 3949d03..302f9d9 100644 --- a/autogen/go/monitor/monitor.pb.go +++ b/autogen/go/monitor/monitor.pb.go @@ -1,33 +1,28 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: monitor.proto package monitor import ( context "context" - proto "github.com/golang/protobuf/proto" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Level int32 @@ -38,720 +33,459 @@ const ( Level_PANIC Level = 3 ) -// Enum value maps for Level. -var ( - Level_name = map[int32]string{ - 0: "WARN", - 1: "ERROR", - 2: "FATAL", - 3: "PANIC", - } - Level_value = map[string]int32{ - "WARN": 0, - "ERROR": 1, - "FATAL": 2, - "PANIC": 3, - } -) +var Level_name = map[int32]string{ + 0: "WARN", + 1: "ERROR", + 2: "FATAL", + 3: "PANIC", +} -func (x Level) Enum() *Level { - p := new(Level) - *p = x - return p +var Level_value = map[string]int32{ + "WARN": 0, + "ERROR": 1, + "FATAL": 2, + "PANIC": 3, } func (x Level) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(Level_name, int32(x)) } -func (Level) Descriptor() protoreflect.EnumDescriptor { - return file_monitor_proto_enumTypes[0].Descriptor() +func (Level) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_44174b7b2a306b71, []int{0} } -func (Level) Type() protoreflect.EnumType { - return &file_monitor_proto_enumTypes[0] +type SemverRequest struct { + Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` + Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` + Patch uint32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x Level) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (m *SemverRequest) Reset() { *m = SemverRequest{} } +func (m *SemverRequest) String() string { return proto.CompactTextString(m) } +func (*SemverRequest) ProtoMessage() {} +func (*SemverRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_44174b7b2a306b71, []int{0} } - -// Deprecated: Use Level.Descriptor instead. -func (Level) EnumDescriptor() ([]byte, []int) { - return file_monitor_proto_rawDescGZIP(), []int{0} +func (m *SemverRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SemverRequest.Unmarshal(m, b) } - -type SemverRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` - Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` - Patch uint32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` +func (m *SemverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SemverRequest.Marshal(b, m, deterministic) } - -func (x *SemverRequest) Reset() { - *x = SemverRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SemverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SemverRequest.Merge(m, src) } - -func (x *SemverRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SemverRequest) XXX_Size() int { + return xxx_messageInfo_SemverRequest.Size(m) } - -func (*SemverRequest) ProtoMessage() {} - -func (x *SemverRequest) ProtoReflect() protoreflect.Message { - mi := &file_monitor_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SemverRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SemverRequest.DiscardUnknown(m) } -// Deprecated: Use SemverRequest.ProtoReflect.Descriptor instead. -func (*SemverRequest) Descriptor() ([]byte, []int) { - return file_monitor_proto_rawDescGZIP(), []int{0} -} +var xxx_messageInfo_SemverRequest proto.InternalMessageInfo -func (x *SemverRequest) GetMajor() uint32 { - if x != nil { - return x.Major +func (m *SemverRequest) GetMajor() uint32 { + if m != nil { + return m.Major } return 0 } -func (x *SemverRequest) GetMinor() uint32 { - if x != nil { - return x.Minor +func (m *SemverRequest) GetMinor() uint32 { + if m != nil { + return m.Minor } return 0 } -func (x *SemverRequest) GetPatch() uint32 { - if x != nil { - return x.Patch +func (m *SemverRequest) GetPatch() uint32 { + if m != nil { + return m.Patch } return 0 } type SlowdownAlert struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TimeSinceLastBlockSec uint32 `protobuf:"varint,1,opt,name=timeSinceLastBlockSec,proto3" json:"timeSinceLastBlockSec,omitempty"` - LastKnownHeight uint64 `protobuf:"varint,2,opt,name=lastKnownHeight,proto3" json:"lastKnownHeight,omitempty"` - LastKnownHash []byte `protobuf:"bytes,3,opt,name=lastKnownHash,proto3" json:"lastKnownHash,omitempty"` + TimeSinceLastBlockSec uint32 `protobuf:"varint,1,opt,name=timeSinceLastBlockSec,proto3" json:"timeSinceLastBlockSec,omitempty"` + LastKnownHeight uint64 `protobuf:"varint,2,opt,name=lastKnownHeight,proto3" json:"lastKnownHeight,omitempty"` + LastKnownHash []byte `protobuf:"bytes,3,opt,name=lastKnownHash,proto3" json:"lastKnownHash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SlowdownAlert) Reset() { - *x = SlowdownAlert{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SlowdownAlert) Reset() { *m = SlowdownAlert{} } +func (m *SlowdownAlert) String() string { return proto.CompactTextString(m) } +func (*SlowdownAlert) ProtoMessage() {} +func (*SlowdownAlert) Descriptor() ([]byte, []int) { + return fileDescriptor_44174b7b2a306b71, []int{1} } - -func (x *SlowdownAlert) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SlowdownAlert) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SlowdownAlert.Unmarshal(m, b) } - -func (*SlowdownAlert) ProtoMessage() {} - -func (x *SlowdownAlert) ProtoReflect() protoreflect.Message { - mi := &file_monitor_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SlowdownAlert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SlowdownAlert.Marshal(b, m, deterministic) } - -// Deprecated: Use SlowdownAlert.ProtoReflect.Descriptor instead. -func (*SlowdownAlert) Descriptor() ([]byte, []int) { - return file_monitor_proto_rawDescGZIP(), []int{1} +func (m *SlowdownAlert) XXX_Merge(src proto.Message) { + xxx_messageInfo_SlowdownAlert.Merge(m, src) +} +func (m *SlowdownAlert) XXX_Size() int { + return xxx_messageInfo_SlowdownAlert.Size(m) } +func (m *SlowdownAlert) XXX_DiscardUnknown() { + xxx_messageInfo_SlowdownAlert.DiscardUnknown(m) +} + +var xxx_messageInfo_SlowdownAlert proto.InternalMessageInfo -func (x *SlowdownAlert) GetTimeSinceLastBlockSec() uint32 { - if x != nil { - return x.TimeSinceLastBlockSec +func (m *SlowdownAlert) GetTimeSinceLastBlockSec() uint32 { + if m != nil { + return m.TimeSinceLastBlockSec } return 0 } -func (x *SlowdownAlert) GetLastKnownHeight() uint64 { - if x != nil { - return x.LastKnownHeight +func (m *SlowdownAlert) GetLastKnownHeight() uint64 { + if m != nil { + return m.LastKnownHeight } return 0 } -func (x *SlowdownAlert) GetLastKnownHash() []byte { - if x != nil { - return x.LastKnownHash +func (m *SlowdownAlert) GetLastKnownHash() []byte { + if m != nil { + return m.LastKnownHash } return nil } type Field struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Field) Reset() { - *x = Field{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Field) Reset() { *m = Field{} } +func (m *Field) String() string { return proto.CompactTextString(m) } +func (*Field) ProtoMessage() {} +func (*Field) Descriptor() ([]byte, []int) { + return fileDescriptor_44174b7b2a306b71, []int{2} } - -func (x *Field) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Field) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Field.Unmarshal(m, b) } - -func (*Field) ProtoMessage() {} - -func (x *Field) ProtoReflect() protoreflect.Message { - mi := &file_monitor_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Field.Marshal(b, m, deterministic) } - -// Deprecated: Use Field.ProtoReflect.Descriptor instead. -func (*Field) Descriptor() ([]byte, []int) { - return file_monitor_proto_rawDescGZIP(), []int{2} +func (m *Field) XXX_Merge(src proto.Message) { + xxx_messageInfo_Field.Merge(m, src) +} +func (m *Field) XXX_Size() int { + return xxx_messageInfo_Field.Size(m) } +func (m *Field) XXX_DiscardUnknown() { + xxx_messageInfo_Field.DiscardUnknown(m) +} + +var xxx_messageInfo_Field proto.InternalMessageInfo -func (x *Field) GetField() string { - if x != nil { - return x.Field +func (m *Field) GetField() string { + if m != nil { + return m.Field } return "" } -func (x *Field) GetValue() string { - if x != nil { - return x.Value +func (m *Field) GetValue() string { + if m != nil { + return m.Value } return "" } type ErrorAlert struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Level Level `protobuf:"varint,1,opt,name=level,proto3,enum=monitor.Level" json:"level,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - TimestampMillis string `protobuf:"bytes,3,opt,name=timestampMillis,proto3" json:"timestampMillis,omitempty"` //Jan _2 15:04:05.000 - File string `protobuf:"bytes,4,opt,name=file,proto3" json:"file,omitempty"` - Line uint32 `protobuf:"varint,5,opt,name=line,proto3" json:"line,omitempty"` - Function string `protobuf:"bytes,6,opt,name=function,proto3" json:"function,omitempty"` - Fields []*Field `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"` + Level Level `protobuf:"varint,1,opt,name=level,proto3,enum=monitor.Level" json:"level,omitempty"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + TimestampMillis string `protobuf:"bytes,3,opt,name=timestampMillis,proto3" json:"timestampMillis,omitempty"` + File string `protobuf:"bytes,4,opt,name=file,proto3" json:"file,omitempty"` + Line uint32 `protobuf:"varint,5,opt,name=line,proto3" json:"line,omitempty"` + Function string `protobuf:"bytes,6,opt,name=function,proto3" json:"function,omitempty"` + Fields []*Field `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorAlert) Reset() { *m = ErrorAlert{} } +func (m *ErrorAlert) String() string { return proto.CompactTextString(m) } +func (*ErrorAlert) ProtoMessage() {} +func (*ErrorAlert) Descriptor() ([]byte, []int) { + return fileDescriptor_44174b7b2a306b71, []int{3} } - -func (x *ErrorAlert) Reset() { - *x = ErrorAlert{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ErrorAlert) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ErrorAlert.Unmarshal(m, b) } - -func (x *ErrorAlert) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ErrorAlert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ErrorAlert.Marshal(b, m, deterministic) } - -func (*ErrorAlert) ProtoMessage() {} - -func (x *ErrorAlert) ProtoReflect() protoreflect.Message { - mi := &file_monitor_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ErrorAlert) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorAlert.Merge(m, src) } - -// Deprecated: Use ErrorAlert.ProtoReflect.Descriptor instead. -func (*ErrorAlert) Descriptor() ([]byte, []int) { - return file_monitor_proto_rawDescGZIP(), []int{3} +func (m *ErrorAlert) XXX_Size() int { + return xxx_messageInfo_ErrorAlert.Size(m) } +func (m *ErrorAlert) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorAlert.DiscardUnknown(m) +} + +var xxx_messageInfo_ErrorAlert proto.InternalMessageInfo -func (x *ErrorAlert) GetLevel() Level { - if x != nil { - return x.Level +func (m *ErrorAlert) GetLevel() Level { + if m != nil { + return m.Level } return Level_WARN } -func (x *ErrorAlert) GetMsg() string { - if x != nil { - return x.Msg +func (m *ErrorAlert) GetMsg() string { + if m != nil { + return m.Msg } return "" } -func (x *ErrorAlert) GetTimestampMillis() string { - if x != nil { - return x.TimestampMillis +func (m *ErrorAlert) GetTimestampMillis() string { + if m != nil { + return m.TimestampMillis } return "" } -func (x *ErrorAlert) GetFile() string { - if x != nil { - return x.File +func (m *ErrorAlert) GetFile() string { + if m != nil { + return m.File } return "" } -func (x *ErrorAlert) GetLine() uint32 { - if x != nil { - return x.Line +func (m *ErrorAlert) GetLine() uint32 { + if m != nil { + return m.Line } return 0 } -func (x *ErrorAlert) GetFunction() string { - if x != nil { - return x.Function +func (m *ErrorAlert) GetFunction() string { + if m != nil { + return m.Function } return "" } -func (x *ErrorAlert) GetFields() []*Field { - if x != nil { - return x.Fields +func (m *ErrorAlert) GetFields() []*Field { + if m != nil { + return m.Fields } return nil } type EmptyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *EmptyRequest) Reset() { - *x = EmptyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *EmptyRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *EmptyRequest) Reset() { *m = EmptyRequest{} } +func (m *EmptyRequest) String() string { return proto.CompactTextString(m) } +func (*EmptyRequest) ProtoMessage() {} +func (*EmptyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_44174b7b2a306b71, []int{4} } - -func (*EmptyRequest) ProtoMessage() {} - -func (x *EmptyRequest) ProtoReflect() protoreflect.Message { - mi := &file_monitor_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *EmptyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EmptyRequest.Unmarshal(m, b) } - -// Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead. -func (*EmptyRequest) Descriptor() ([]byte, []int) { - return file_monitor_proto_rawDescGZIP(), []int{4} +func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EmptyRequest.Marshal(b, m, deterministic) } - -type EmptyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (m *EmptyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmptyRequest.Merge(m, src) } - -func (x *EmptyResponse) Reset() { - *x = EmptyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *EmptyRequest) XXX_Size() int { + return xxx_messageInfo_EmptyRequest.Size(m) } - -func (x *EmptyResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *EmptyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EmptyRequest.DiscardUnknown(m) } -func (*EmptyResponse) ProtoMessage() {} +var xxx_messageInfo_EmptyRequest proto.InternalMessageInfo -func (x *EmptyResponse) ProtoReflect() protoreflect.Message { - mi := &file_monitor_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type EmptyResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -// Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead. +func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } +func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } +func (*EmptyResponse) ProtoMessage() {} func (*EmptyResponse) Descriptor() ([]byte, []int) { - return file_monitor_proto_rawDescGZIP(), []int{5} + return fileDescriptor_44174b7b2a306b71, []int{5} } - -type BlockUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - TxAmount uint32 `protobuf:"varint,4,opt,name=txAmount,proto3" json:"txAmount,omitempty"` - BlockTimeSec uint32 `protobuf:"varint,5,opt,name=blockTimeSec,proto3" json:"blockTimeSec,omitempty"` +func (m *EmptyResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EmptyResponse.Unmarshal(m, b) } - -func (x *BlockUpdate) Reset() { - *x = BlockUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_monitor_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EmptyResponse.Marshal(b, m, deterministic) } - -func (x *BlockUpdate) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *EmptyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmptyResponse.Merge(m, src) } - -func (*BlockUpdate) ProtoMessage() {} - -func (x *BlockUpdate) ProtoReflect() protoreflect.Message { - mi := &file_monitor_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *EmptyResponse) XXX_Size() int { + return xxx_messageInfo_EmptyResponse.Size(m) } +func (m *EmptyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EmptyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo -// Deprecated: Use BlockUpdate.ProtoReflect.Descriptor instead. +type BlockUpdate struct { + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + TxAmount uint32 `protobuf:"varint,4,opt,name=txAmount,proto3" json:"txAmount,omitempty"` + BlockTimeSec uint32 `protobuf:"varint,5,opt,name=blockTimeSec,proto3" json:"blockTimeSec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BlockUpdate) Reset() { *m = BlockUpdate{} } +func (m *BlockUpdate) String() string { return proto.CompactTextString(m) } +func (*BlockUpdate) ProtoMessage() {} func (*BlockUpdate) Descriptor() ([]byte, []int) { - return file_monitor_proto_rawDescGZIP(), []int{6} + return fileDescriptor_44174b7b2a306b71, []int{6} +} +func (m *BlockUpdate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BlockUpdate.Unmarshal(m, b) +} +func (m *BlockUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BlockUpdate.Marshal(b, m, deterministic) +} +func (m *BlockUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockUpdate.Merge(m, src) } +func (m *BlockUpdate) XXX_Size() int { + return xxx_messageInfo_BlockUpdate.Size(m) +} +func (m *BlockUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_BlockUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockUpdate proto.InternalMessageInfo -func (x *BlockUpdate) GetHeight() uint64 { - if x != nil { - return x.Height +func (m *BlockUpdate) GetHeight() uint64 { + if m != nil { + return m.Height } return 0 } -func (x *BlockUpdate) GetHash() []byte { - if x != nil { - return x.Hash +func (m *BlockUpdate) GetHash() []byte { + if m != nil { + return m.Hash } return nil } -func (x *BlockUpdate) GetTimestamp() int64 { - if x != nil { - return x.Timestamp +func (m *BlockUpdate) GetTimestamp() int64 { + if m != nil { + return m.Timestamp } return 0 } -func (x *BlockUpdate) GetTxAmount() uint32 { - if x != nil { - return x.TxAmount +func (m *BlockUpdate) GetTxAmount() uint32 { + if m != nil { + return m.TxAmount } return 0 } -func (x *BlockUpdate) GetBlockTimeSec() uint32 { - if x != nil { - return x.BlockTimeSec +func (m *BlockUpdate) GetBlockTimeSec() uint32 { + if m != nil { + return m.BlockTimeSec } return 0 } -var File_monitor_proto protoreflect.FileDescriptor - -var file_monitor_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x0d, 0x53, 0x65, 0x6d, 0x76, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, - 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, - 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x22, 0x95, 0x01, 0x0a, 0x0d, - 0x53, 0x6c, 0x6f, 0x77, 0x64, 0x6f, 0x77, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x34, 0x0a, - 0x15, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x53, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x74, 0x69, - 0x6d, 0x65, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x53, 0x65, 0x63, 0x12, 0x28, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, - 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x61, - 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x24, 0x0a, - 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, - 0x61, 0x73, 0x68, 0x22, 0x33, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xda, 0x01, 0x0a, 0x0a, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x24, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, - 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x10, 0x0a, - 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, - 0x28, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, - 0x69, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6c, 0x69, 0x6e, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, - 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, - 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, - 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x78, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x08, 0x74, 0x78, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0c, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, - 0x2a, 0x32, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, - 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x09, - 0x0a, 0x05, 0x46, 0x41, 0x54, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x41, 0x4e, - 0x49, 0x43, 0x10, 0x03, 0x32, 0xbd, 0x02, 0x0a, 0x07, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, - 0x12, 0x39, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, - 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x6d, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x03, 0x42, - 0x79, 0x65, 0x12, 0x15, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, - 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x14, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, - 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x53, 0x6c, 0x6f, 0x77, - 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x53, - 0x6c, 0x6f, 0x77, 0x64, 0x6f, 0x77, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x1a, 0x16, 0x2e, 0x6d, - 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x13, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, - 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_monitor_proto_rawDescOnce sync.Once - file_monitor_proto_rawDescData = file_monitor_proto_rawDesc -) - -func file_monitor_proto_rawDescGZIP() []byte { - file_monitor_proto_rawDescOnce.Do(func() { - file_monitor_proto_rawDescData = protoimpl.X.CompressGZIP(file_monitor_proto_rawDescData) - }) - return file_monitor_proto_rawDescData -} - -var file_monitor_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_monitor_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_monitor_proto_goTypes = []interface{}{ - (Level)(0), // 0: monitor.Level - (*SemverRequest)(nil), // 1: monitor.SemverRequest - (*SlowdownAlert)(nil), // 2: monitor.SlowdownAlert - (*Field)(nil), // 3: monitor.Field - (*ErrorAlert)(nil), // 4: monitor.ErrorAlert - (*EmptyRequest)(nil), // 5: monitor.EmptyRequest - (*EmptyResponse)(nil), // 6: monitor.EmptyResponse - (*BlockUpdate)(nil), // 7: monitor.BlockUpdate -} -var file_monitor_proto_depIdxs = []int32{ - 0, // 0: monitor.ErrorAlert.level:type_name -> monitor.Level - 3, // 1: monitor.ErrorAlert.fields:type_name -> monitor.Field - 1, // 2: monitor.Monitor.Hello:input_type -> monitor.SemverRequest - 5, // 3: monitor.Monitor.Bye:input_type -> monitor.EmptyRequest - 7, // 4: monitor.Monitor.NotifyBlock:input_type -> monitor.BlockUpdate - 2, // 5: monitor.Monitor.NotifySlowdown:input_type -> monitor.SlowdownAlert - 4, // 6: monitor.Monitor.NotifyError:input_type -> monitor.ErrorAlert - 6, // 7: monitor.Monitor.Hello:output_type -> monitor.EmptyResponse - 6, // 8: monitor.Monitor.Bye:output_type -> monitor.EmptyResponse - 6, // 9: monitor.Monitor.NotifyBlock:output_type -> monitor.EmptyResponse - 6, // 10: monitor.Monitor.NotifySlowdown:output_type -> monitor.EmptyResponse - 6, // 11: monitor.Monitor.NotifyError:output_type -> monitor.EmptyResponse - 7, // [7:12] is the sub-list for method output_type - 2, // [2:7] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_monitor_proto_init() } -func file_monitor_proto_init() { - if File_monitor_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_monitor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SemverRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_monitor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SlowdownAlert); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_monitor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Field); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_monitor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorAlert); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_monitor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmptyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_monitor_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmptyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_monitor_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockUpdate); 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_monitor_proto_rawDesc, - NumEnums: 1, - NumMessages: 7, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_monitor_proto_goTypes, - DependencyIndexes: file_monitor_proto_depIdxs, - EnumInfos: file_monitor_proto_enumTypes, - MessageInfos: file_monitor_proto_msgTypes, - }.Build() - File_monitor_proto = out.File - file_monitor_proto_rawDesc = nil - file_monitor_proto_goTypes = nil - file_monitor_proto_depIdxs = nil +func init() { + proto.RegisterEnum("monitor.Level", Level_name, Level_value) + proto.RegisterType((*SemverRequest)(nil), "monitor.SemverRequest") + proto.RegisterType((*SlowdownAlert)(nil), "monitor.SlowdownAlert") + proto.RegisterType((*Field)(nil), "monitor.Field") + proto.RegisterType((*ErrorAlert)(nil), "monitor.ErrorAlert") + proto.RegisterType((*EmptyRequest)(nil), "monitor.EmptyRequest") + proto.RegisterType((*EmptyResponse)(nil), "monitor.EmptyResponse") + proto.RegisterType((*BlockUpdate)(nil), "monitor.BlockUpdate") +} + +func init() { proto.RegisterFile("monitor.proto", fileDescriptor_44174b7b2a306b71) } + +var fileDescriptor_44174b7b2a306b71 = []byte{ + // 585 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xdb, 0x6e, 0xd3, 0x40, + 0x10, 0xad, 0xe3, 0x38, 0x6d, 0xa6, 0x75, 0x1a, 0x2d, 0x6d, 0x65, 0x55, 0x3c, 0x54, 0x56, 0x85, + 0x2a, 0x50, 0x1b, 0xa9, 0x45, 0x48, 0x48, 0xf0, 0xe0, 0xa0, 0x56, 0x45, 0xb4, 0x05, 0x36, 0x45, + 0x48, 0xbc, 0x39, 0xce, 0x26, 0x59, 0xba, 0xde, 0x35, 0xf6, 0xba, 0x21, 0x1f, 0x82, 0xf8, 0x1a, + 0x7e, 0x84, 0xaf, 0x41, 0x3b, 0x76, 0x9c, 0x8b, 0xa0, 0xbc, 0xcd, 0x39, 0xb3, 0xe3, 0x99, 0x73, + 0x66, 0xd7, 0xe0, 0xc6, 0x4a, 0x72, 0xad, 0xd2, 0x93, 0x24, 0x55, 0x5a, 0x91, 0xf5, 0x12, 0xfa, + 0x1f, 0xc1, 0xed, 0xb1, 0xf8, 0x9e, 0xa5, 0x94, 0x7d, 0xcb, 0x59, 0xa6, 0xc9, 0x0e, 0x38, 0x71, + 0xf8, 0x55, 0xa5, 0x9e, 0x75, 0x60, 0x1d, 0xb9, 0xb4, 0x00, 0xc8, 0x72, 0xa9, 0x52, 0xaf, 0x56, + 0xb2, 0x06, 0x18, 0x36, 0x09, 0x75, 0x34, 0xf6, 0xec, 0x82, 0x45, 0xe0, 0xff, 0xb0, 0xc0, 0xed, + 0x09, 0x35, 0x19, 0xa8, 0x89, 0x0c, 0x04, 0x4b, 0x35, 0x79, 0x0e, 0xbb, 0x9a, 0xc7, 0xac, 0xc7, + 0x65, 0xc4, 0xae, 0xc2, 0x4c, 0x77, 0x85, 0x8a, 0xee, 0x7a, 0x2c, 0x2a, 0x7b, 0xfc, 0x3d, 0x49, + 0x8e, 0x60, 0x5b, 0x84, 0x99, 0x7e, 0x27, 0xd5, 0x44, 0x5e, 0x32, 0x3e, 0x1a, 0x6b, 0xec, 0x5e, + 0xa7, 0xab, 0x34, 0x39, 0x04, 0x77, 0x4e, 0x85, 0x59, 0x31, 0xcf, 0x16, 0x5d, 0x26, 0xfd, 0x33, + 0x70, 0x2e, 0x38, 0x13, 0x03, 0x33, 0xf6, 0xd0, 0x04, 0xd8, 0xbe, 0x49, 0x0b, 0x60, 0xd8, 0xfb, + 0x50, 0xe4, 0x0c, 0x9b, 0x34, 0x69, 0x01, 0xfc, 0xdf, 0x16, 0xc0, 0x79, 0x9a, 0xaa, 0xb4, 0x50, + 0x72, 0x08, 0x8e, 0x60, 0xf7, 0x4c, 0x60, 0x69, 0xeb, 0xb4, 0x75, 0x32, 0xb3, 0xf5, 0xca, 0xb0, + 0xb4, 0x48, 0x92, 0x36, 0xd8, 0x71, 0x36, 0x2a, 0x3f, 0x64, 0x42, 0xa3, 0xc5, 0x88, 0xcc, 0x74, + 0x18, 0x27, 0xd7, 0x5c, 0x08, 0x9e, 0xe1, 0x8c, 0x4d, 0xba, 0x4a, 0x13, 0x02, 0xf5, 0x21, 0x17, + 0xcc, 0xab, 0x63, 0x1a, 0x63, 0xc3, 0x09, 0x2e, 0x99, 0xe7, 0xa0, 0x5d, 0x18, 0x93, 0x7d, 0xd8, + 0x18, 0xe6, 0x32, 0xd2, 0x5c, 0x49, 0xaf, 0x81, 0x67, 0x2b, 0x4c, 0x9e, 0x40, 0x03, 0x35, 0x65, + 0xde, 0xfa, 0x81, 0x7d, 0xb4, 0xb9, 0x30, 0x26, 0x1a, 0x40, 0xcb, 0xac, 0xdf, 0x82, 0xad, 0xf3, + 0x38, 0xd1, 0xd3, 0x72, 0xf7, 0xfe, 0x36, 0xb8, 0x25, 0xce, 0x12, 0x25, 0x33, 0xe6, 0xff, 0xb4, + 0x60, 0x13, 0xf7, 0xf1, 0x29, 0x19, 0x84, 0x9a, 0x91, 0x3d, 0x68, 0x8c, 0x8b, 0x4d, 0x58, 0xb8, + 0x89, 0x12, 0x99, 0x01, 0xc7, 0xc6, 0xf7, 0x1a, 0xfa, 0x8e, 0x31, 0x79, 0x0c, 0xcd, 0x4a, 0x1b, + 0x8a, 0xb5, 0xe9, 0x9c, 0x30, 0xe3, 0xeb, 0xef, 0x41, 0xac, 0x72, 0xa9, 0x51, 0xaa, 0x4b, 0x2b, + 0x4c, 0x7c, 0xd8, 0xea, 0x9b, 0xa6, 0xb7, 0xe6, 0x5a, 0xb0, 0xa8, 0x94, 0xbd, 0xc4, 0x3d, 0x3d, + 0x05, 0x07, 0x2d, 0x27, 0x1b, 0x50, 0xff, 0x1c, 0xd0, 0x9b, 0xf6, 0x1a, 0x69, 0x82, 0x73, 0x4e, + 0xe9, 0x7b, 0xda, 0xb6, 0x4c, 0x78, 0x11, 0xdc, 0x06, 0x57, 0xed, 0x9a, 0x09, 0x3f, 0x04, 0x37, + 0x6f, 0xdf, 0xb4, 0xed, 0xd3, 0x5f, 0x35, 0x58, 0xbf, 0x2e, 0x8c, 0x20, 0x2f, 0xc1, 0xb9, 0x64, + 0x42, 0x28, 0xb2, 0x57, 0x79, 0xb3, 0xf4, 0x0e, 0xf6, 0xe7, 0xfc, 0xb2, 0x25, 0x6b, 0xe4, 0x05, + 0xd8, 0xdd, 0x29, 0x23, 0xbb, 0xab, 0x07, 0xfe, 0x57, 0xf7, 0x1a, 0x36, 0x6f, 0x94, 0xe6, 0xc3, + 0x29, 0x3a, 0x4a, 0x76, 0xaa, 0x83, 0x0b, 0x0e, 0x3f, 0x50, 0xde, 0x85, 0x56, 0x51, 0x3e, 0x7b, + 0x5b, 0x8b, 0xa3, 0x2f, 0x3e, 0xb7, 0x07, 0xbe, 0xf1, 0x6a, 0x36, 0x02, 0x5e, 0x69, 0xf2, 0x68, + 0x7e, 0xb0, 0xba, 0xe2, 0xff, 0xae, 0xee, 0x1e, 0x7f, 0x79, 0x36, 0xe2, 0x7a, 0x9c, 0xf7, 0x4f, + 0x22, 0x15, 0x77, 0x06, 0x79, 0x76, 0x77, 0x8c, 0x7f, 0x93, 0x7e, 0x3e, 0xec, 0x84, 0xb9, 0x56, + 0x23, 0x26, 0x3b, 0x23, 0xd5, 0x29, 0xcb, 0xfb, 0x0d, 0x4c, 0x9e, 0xfd, 0x09, 0x00, 0x00, 0xff, + 0xff, 0x9f, 0xe1, 0x95, 0x0d, 0x7b, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // MonitorClient is the client API for Monitor service. // @@ -765,10 +499,10 @@ type MonitorClient interface { } type monitorClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient { +func NewMonitorClient(cc *grpc.ClientConn) MonitorClient { return &monitorClient{cc} } @@ -830,19 +564,19 @@ type MonitorServer interface { type UnimplementedMonitorServer struct { } -func (*UnimplementedMonitorServer) Hello(context.Context, *SemverRequest) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) Hello(ctx context.Context, req *SemverRequest) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented") } -func (*UnimplementedMonitorServer) Bye(context.Context, *EmptyRequest) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) Bye(ctx context.Context, req *EmptyRequest) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Bye not implemented") } -func (*UnimplementedMonitorServer) NotifyBlock(context.Context, *BlockUpdate) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) NotifyBlock(ctx context.Context, req *BlockUpdate) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NotifyBlock not implemented") } -func (*UnimplementedMonitorServer) NotifySlowdown(context.Context, *SlowdownAlert) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) NotifySlowdown(ctx context.Context, req *SlowdownAlert) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NotifySlowdown not implemented") } -func (*UnimplementedMonitorServer) NotifyError(context.Context, *ErrorAlert) (*EmptyResponse, error) { +func (*UnimplementedMonitorServer) NotifyError(ctx context.Context, req *ErrorAlert) (*EmptyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NotifyError not implemented") } diff --git a/autogen/go/node/mempool.pb.go b/autogen/go/node/mempool.pb.go index 06559f9..a32a8ae 100644 --- a/autogen/go/node/mempool.pb.go +++ b/autogen/go/node/mempool.pb.go @@ -1,29 +1,24 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: mempool.proto package node import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type TxType int32 @@ -49,411 +44,248 @@ const ( TxType_WITHDRAWBID TxType = 7 ) -// Enum value maps for TxType. -var ( - TxType_name = map[int32]string{ - 0: "STANDARD", - 1: "DISTRIBUTE", - 2: "WITHDRAWFEES", - 3: "BID", - 4: "STAKE", - 5: "SLASH", - 6: "WITHDRAWSTAKE", - 7: "WITHDRAWBID", - } - TxType_value = map[string]int32{ - "STANDARD": 0, - "DISTRIBUTE": 1, - "WITHDRAWFEES": 2, - "BID": 3, - "STAKE": 4, - "SLASH": 5, - "WITHDRAWSTAKE": 6, - "WITHDRAWBID": 7, - } -) +var TxType_name = map[int32]string{ + 0: "STANDARD", + 1: "DISTRIBUTE", + 2: "WITHDRAWFEES", + 3: "BID", + 4: "STAKE", + 5: "SLASH", + 6: "WITHDRAWSTAKE", + 7: "WITHDRAWBID", +} -func (x TxType) Enum() *TxType { - p := new(TxType) - *p = x - return p +var TxType_value = map[string]int32{ + "STANDARD": 0, + "DISTRIBUTE": 1, + "WITHDRAWFEES": 2, + "BID": 3, + "STAKE": 4, + "SLASH": 5, + "WITHDRAWSTAKE": 6, + "WITHDRAWBID": 7, } func (x TxType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(TxType_name, int32(x)) } -func (TxType) Descriptor() protoreflect.EnumDescriptor { - return file_mempool_proto_enumTypes[0].Descriptor() +func (TxType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a84c3667d8c2093a, []int{0} } -func (TxType) Type() protoreflect.EnumType { - return &file_mempool_proto_enumTypes[0] +type Tx struct { + Type TxType `protobuf:"varint,1,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + LockTime uint64 `protobuf:"fixed64,3,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x TxType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (m *Tx) Reset() { *m = Tx{} } +func (m *Tx) String() string { return proto.CompactTextString(m) } +func (*Tx) ProtoMessage() {} +func (*Tx) Descriptor() ([]byte, []int) { + return fileDescriptor_a84c3667d8c2093a, []int{0} } - -// Deprecated: Use TxType.Descriptor instead. -func (TxType) EnumDescriptor() ([]byte, []int) { - return file_mempool_proto_rawDescGZIP(), []int{0} +func (m *Tx) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Tx.Unmarshal(m, b) } - -type Tx struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type TxType `protobuf:"varint,1,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - LockTime uint64 `protobuf:"fixed64,3,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` +func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Tx.Marshal(b, m, deterministic) } - -func (x *Tx) Reset() { - *x = Tx{} - if protoimpl.UnsafeEnabled { - mi := &file_mempool_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Tx) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tx.Merge(m, src) } - -func (x *Tx) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Tx) XXX_Size() int { + return xxx_messageInfo_Tx.Size(m) } - -func (*Tx) ProtoMessage() {} - -func (x *Tx) ProtoReflect() protoreflect.Message { - mi := &file_mempool_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Tx) XXX_DiscardUnknown() { + xxx_messageInfo_Tx.DiscardUnknown(m) } -// Deprecated: Use Tx.ProtoReflect.Descriptor instead. -func (*Tx) Descriptor() ([]byte, []int) { - return file_mempool_proto_rawDescGZIP(), []int{0} -} +var xxx_messageInfo_Tx proto.InternalMessageInfo -func (x *Tx) GetType() TxType { - if x != nil { - return x.Type +func (m *Tx) GetType() TxType { + if m != nil { + return m.Type } return TxType_STANDARD } -func (x *Tx) GetId() string { - if x != nil { - return x.Id +func (m *Tx) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *Tx) GetLockTime() uint64 { - if x != nil { - return x.LockTime +func (m *Tx) GetLockTime() uint64 { + if m != nil { + return m.LockTime } return 0 } // SelectRequest can specify an ID or a transaction type or none type SelectRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Types []TxType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=node.TxType" json:"types,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Types []TxType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=node.TxType" json:"types,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SelectRequest) Reset() { - *x = SelectRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mempool_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SelectRequest) Reset() { *m = SelectRequest{} } +func (m *SelectRequest) String() string { return proto.CompactTextString(m) } +func (*SelectRequest) ProtoMessage() {} +func (*SelectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a84c3667d8c2093a, []int{1} } - -func (x *SelectRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SelectRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SelectRequest.Unmarshal(m, b) } - -func (*SelectRequest) ProtoMessage() {} - -func (x *SelectRequest) ProtoReflect() protoreflect.Message { - mi := &file_mempool_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SelectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SelectRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use SelectRequest.ProtoReflect.Descriptor instead. -func (*SelectRequest) Descriptor() ([]byte, []int) { - return file_mempool_proto_rawDescGZIP(), []int{1} +func (m *SelectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SelectRequest.Merge(m, src) +} +func (m *SelectRequest) XXX_Size() int { + return xxx_messageInfo_SelectRequest.Size(m) +} +func (m *SelectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SelectRequest.DiscardUnknown(m) } -func (x *SelectRequest) GetTypes() []TxType { - if x != nil { - return x.Types +var xxx_messageInfo_SelectRequest proto.InternalMessageInfo + +func (m *SelectRequest) GetTypes() []TxType { + if m != nil { + return m.Types } return nil } -func (x *SelectRequest) GetId() string { - if x != nil { - return x.Id +func (m *SelectRequest) GetId() string { + if m != nil { + return m.Id } return "" } type SelectResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - //Note: the response was a single string describing the transactions. //It should actually be responsibility of the caller to format the data or handle it otherwise //string msg = 1; - Result []*Tx `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` + Result []*Tx `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SelectResponse) Reset() { - *x = SelectResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mempool_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SelectResponse) Reset() { *m = SelectResponse{} } +func (m *SelectResponse) String() string { return proto.CompactTextString(m) } +func (*SelectResponse) ProtoMessage() {} +func (*SelectResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a84c3667d8c2093a, []int{2} } - -func (x *SelectResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SelectResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SelectResponse.Unmarshal(m, b) } - -func (*SelectResponse) ProtoMessage() {} - -func (x *SelectResponse) ProtoReflect() protoreflect.Message { - mi := &file_mempool_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SelectResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use SelectResponse.ProtoReflect.Descriptor instead. -func (*SelectResponse) Descriptor() ([]byte, []int) { - return file_mempool_proto_rawDescGZIP(), []int{2} +func (m *SelectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SelectResponse.Merge(m, src) +} +func (m *SelectResponse) XXX_Size() int { + return xxx_messageInfo_SelectResponse.Size(m) +} +func (m *SelectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SelectResponse.DiscardUnknown(m) } -func (x *SelectResponse) GetResult() []*Tx { - if x != nil { - return x.Result +var xxx_messageInfo_SelectResponse proto.InternalMessageInfo + +func (m *SelectResponse) GetResult() []*Tx { + if m != nil { + return m.Result } return nil } type GetUnconfirmedBalanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vk []byte `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` + Vk []byte `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetUnconfirmedBalanceRequest) Reset() { - *x = GetUnconfirmedBalanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mempool_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetUnconfirmedBalanceRequest) Reset() { *m = GetUnconfirmedBalanceRequest{} } +func (m *GetUnconfirmedBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*GetUnconfirmedBalanceRequest) ProtoMessage() {} +func (*GetUnconfirmedBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a84c3667d8c2093a, []int{3} } - -func (x *GetUnconfirmedBalanceRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetUnconfirmedBalanceRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetUnconfirmedBalanceRequest.Unmarshal(m, b) } - -func (*GetUnconfirmedBalanceRequest) ProtoMessage() {} - -func (x *GetUnconfirmedBalanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_mempool_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetUnconfirmedBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetUnconfirmedBalanceRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use GetUnconfirmedBalanceRequest.ProtoReflect.Descriptor instead. -func (*GetUnconfirmedBalanceRequest) Descriptor() ([]byte, []int) { - return file_mempool_proto_rawDescGZIP(), []int{3} +func (m *GetUnconfirmedBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetUnconfirmedBalanceRequest.Merge(m, src) +} +func (m *GetUnconfirmedBalanceRequest) XXX_Size() int { + return xxx_messageInfo_GetUnconfirmedBalanceRequest.Size(m) +} +func (m *GetUnconfirmedBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetUnconfirmedBalanceRequest.DiscardUnknown(m) } -func (x *GetUnconfirmedBalanceRequest) GetVk() []byte { - if x != nil { - return x.Vk +var xxx_messageInfo_GetUnconfirmedBalanceRequest proto.InternalMessageInfo + +func (m *GetUnconfirmedBalanceRequest) GetVk() []byte { + if m != nil { + return m.Vk } return nil } -var File_mempool_proto protoreflect.FileDescriptor - -var file_mempool_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x6d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0x53, 0x0a, 0x02, 0x54, 0x78, 0x12, 0x20, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, - 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, - 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x53, 0x65, - 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x2e, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x32, 0x0a, 0x0e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x20, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x08, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x78, 0x52, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x22, 0x2e, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x72, 0x6d, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x76, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x02, 0x76, 0x6b, 0x2a, 0x7b, 0x0a, 0x06, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, - 0x08, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, - 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x57, - 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x46, 0x45, 0x45, 0x53, 0x10, 0x02, 0x12, 0x07, 0x0a, - 0x03, 0x42, 0x49, 0x44, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x10, - 0x04, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x4c, 0x41, 0x53, 0x48, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, - 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x53, 0x54, 0x41, 0x4b, 0x45, 0x10, 0x06, 0x12, - 0x0f, 0x0a, 0x0b, 0x57, 0x49, 0x54, 0x48, 0x44, 0x52, 0x41, 0x57, 0x42, 0x49, 0x44, 0x10, 0x07, - 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, - 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, - 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mempool_proto_rawDescOnce sync.Once - file_mempool_proto_rawDescData = file_mempool_proto_rawDesc -) - -func file_mempool_proto_rawDescGZIP() []byte { - file_mempool_proto_rawDescOnce.Do(func() { - file_mempool_proto_rawDescData = protoimpl.X.CompressGZIP(file_mempool_proto_rawDescData) - }) - return file_mempool_proto_rawDescData -} - -var file_mempool_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_mempool_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_mempool_proto_goTypes = []interface{}{ - (TxType)(0), // 0: node.TxType - (*Tx)(nil), // 1: node.Tx - (*SelectRequest)(nil), // 2: node.SelectRequest - (*SelectResponse)(nil), // 3: node.SelectResponse - (*GetUnconfirmedBalanceRequest)(nil), // 4: node.GetUnconfirmedBalanceRequest -} -var file_mempool_proto_depIdxs = []int32{ - 0, // 0: node.Tx.type:type_name -> node.TxType - 0, // 1: node.SelectRequest.types:type_name -> node.TxType - 1, // 2: node.SelectResponse.result:type_name -> node.Tx - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_mempool_proto_init() } -func file_mempool_proto_init() { - if File_mempool_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_mempool_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Tx); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mempool_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SelectRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mempool_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SelectResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mempool_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUnconfirmedBalanceRequest); 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_mempool_proto_rawDesc, - NumEnums: 1, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_mempool_proto_goTypes, - DependencyIndexes: file_mempool_proto_depIdxs, - EnumInfos: file_mempool_proto_enumTypes, - MessageInfos: file_mempool_proto_msgTypes, - }.Build() - File_mempool_proto = out.File - file_mempool_proto_rawDesc = nil - file_mempool_proto_goTypes = nil - file_mempool_proto_depIdxs = nil +func init() { + proto.RegisterEnum("node.TxType", TxType_name, TxType_value) + proto.RegisterType((*Tx)(nil), "node.Tx") + proto.RegisterType((*SelectRequest)(nil), "node.SelectRequest") + proto.RegisterType((*SelectResponse)(nil), "node.SelectResponse") + proto.RegisterType((*GetUnconfirmedBalanceRequest)(nil), "node.GetUnconfirmedBalanceRequest") +} + +func init() { proto.RegisterFile("mempool.proto", fileDescriptor_a84c3667d8c2093a) } + +var fileDescriptor_a84c3667d8c2093a = []byte{ + // 346 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4d, 0xaf, 0x9a, 0x40, + 0x14, 0x86, 0x0b, 0x28, 0xea, 0x11, 0x29, 0x9d, 0x15, 0x49, 0xbb, 0x20, 0xac, 0x88, 0x49, 0x21, + 0xb1, 0xbf, 0x00, 0x0a, 0xad, 0xa4, 0x4d, 0x17, 0xc3, 0x18, 0x93, 0x6e, 0x1a, 0x85, 0xa3, 0x25, + 0x7c, 0x0c, 0x57, 0x06, 0xa3, 0xb9, 0x7f, 0xfe, 0x06, 0xbc, 0x6c, 0xee, 0xdd, 0x4d, 0xde, 0x27, + 0xe7, 0x39, 0xe7, 0xcd, 0xc0, 0xaa, 0xc2, 0xaa, 0xe1, 0xbc, 0x74, 0x9b, 0x0b, 0x17, 0x9c, 0x4c, + 0x6a, 0x9e, 0xa1, 0x9d, 0x80, 0xcc, 0x6e, 0xc4, 0x82, 0x89, 0xb8, 0x37, 0x68, 0x4a, 0x96, 0xe4, + 0xe8, 0x1b, 0xcd, 0xed, 0x91, 0xcb, 0x6e, 0xec, 0xde, 0x20, 0x1d, 0x08, 0xd1, 0x41, 0xce, 0x33, + 0x53, 0xb6, 0x24, 0x67, 0x41, 0xe5, 0x3c, 0x23, 0x9f, 0x61, 0x51, 0xf2, 0xb4, 0xf8, 0x27, 0xf2, + 0x0a, 0x4d, 0xc5, 0x92, 0x1c, 0x95, 0xce, 0xfb, 0x80, 0xe5, 0x15, 0xda, 0xdf, 0x61, 0x95, 0x60, + 0x89, 0xa9, 0xa0, 0xf8, 0xd4, 0x61, 0x2b, 0x88, 0x0d, 0xd3, 0xde, 0xd2, 0x9a, 0x92, 0xa5, 0xbc, + 0x5b, 0xf0, 0x40, 0x6f, 0x37, 0xd8, 0x1b, 0xd0, 0x47, 0x49, 0xdb, 0xf0, 0xba, 0x45, 0x62, 0x81, + 0x7a, 0xc1, 0xb6, 0x2b, 0xc5, 0xa0, 0x59, 0x6e, 0xe6, 0xa3, 0x86, 0xbe, 0xe6, 0xb6, 0x0b, 0x5f, + 0x7e, 0xa2, 0xd8, 0xd5, 0x29, 0xaf, 0x4f, 0xf9, 0xa5, 0xc2, 0x2c, 0x38, 0x94, 0x87, 0x3a, 0xc5, + 0xf1, 0x0e, 0x1d, 0xe4, 0x6b, 0x31, 0xb4, 0xd4, 0xa8, 0x7c, 0x2d, 0xd6, 0xcf, 0xa0, 0x3e, 0x8e, + 0x20, 0x1a, 0xcc, 0x13, 0xe6, 0xff, 0x09, 0x7d, 0x1a, 0x1a, 0x1f, 0x88, 0x0e, 0x10, 0xc6, 0x09, + 0xa3, 0x71, 0xb0, 0x63, 0x91, 0x21, 0x11, 0x03, 0xb4, 0x7d, 0xcc, 0xb6, 0x21, 0xf5, 0xf7, 0x3f, + 0xa2, 0x28, 0x31, 0x64, 0x32, 0x03, 0x25, 0x88, 0x43, 0x43, 0x21, 0x0b, 0x98, 0x26, 0xcc, 0xff, + 0x15, 0x19, 0x93, 0xe1, 0xf9, 0xdb, 0x4f, 0xb6, 0xc6, 0x94, 0x7c, 0x82, 0xd5, 0x38, 0xf0, 0xa0, + 0x2a, 0xf9, 0x08, 0xcb, 0x31, 0xea, 0x27, 0x67, 0xc1, 0xfa, 0xaf, 0x73, 0xce, 0xc5, 0xff, 0xee, + 0xe8, 0xa6, 0xbc, 0xf2, 0xb2, 0xae, 0x2d, 0xbe, 0x0e, 0x3f, 0x73, 0xec, 0x4e, 0xde, 0xa1, 0x13, + 0xfc, 0x8c, 0xb5, 0x77, 0xe6, 0x5e, 0xdf, 0xf1, 0xa8, 0x0e, 0xe4, 0xdb, 0x4b, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x54, 0x2d, 0xe8, 0xab, 0xc4, 0x01, 0x00, 0x00, } diff --git a/autogen/go/node/node.mock.go b/autogen/go/node/node.mock.go index 8aa09f1..fb41c82 100644 --- a/autogen/go/node/node.mock.go +++ b/autogen/go/node/node.mock.go @@ -20,14 +20,14 @@ type AuthMock struct{} func (m *AuthMock) CreateSession(ctx context.Context, req *SessionRequest) (*Session, error) { res := &Session{ - AccessToken: "qui", + AccessToken: "aut", } return res, nil } func (m *AuthMock) DropSession(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "eveniet", + Response: "omnis", } return res, nil } @@ -58,14 +58,14 @@ func (m *WalletMock) CreateFromSeed(ctx context.Context, req *CreateRequest) (*L func (m *WalletMock) ClearWalletDatabase(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "quia", + Response: "nobis", } return res, nil } func (m *WalletMock) GetWalletStatus(ctx context.Context, req *EmptyRequest) (*WalletStatusResponse, error) { res := &WalletStatusResponse{ - Loaded: true, + Loaded: false, } return res, nil } @@ -87,51 +87,51 @@ func (m *WalletMock) GetTxHistory(ctx context.Context, req *EmptyRequest) (*TxHi Records: []*TxRecord{ &TxRecord{ Direction: 1, - Timestamp: 265, - Type: 6, + Timestamp: 27, + Type: 5, Obfuscated: true, }, &TxRecord{ Direction: 0, - Timestamp: 512, - Type: 0, + Timestamp: 27, + Type: 1, Obfuscated: false, }, &TxRecord{ Direction: 1, - Timestamp: 560, - Type: 4, + Timestamp: 126, + Type: 1, Obfuscated: true, }, &TxRecord{ - Direction: 0, - Timestamp: 977, - Type: 2, + Direction: 1, + Timestamp: 11, + Type: 5, Obfuscated: true, }, &TxRecord{ - Direction: 1, - Timestamp: 135, - Type: 1, - Obfuscated: false, + Direction: 0, + Timestamp: 957, + Type: 4, + Obfuscated: true, }, &TxRecord{ Direction: 0, - Timestamp: 622, - Type: 0, + Timestamp: 355, + Type: 3, Obfuscated: true, }, &TxRecord{ Direction: 0, - Timestamp: 376, - Type: 2, - Obfuscated: false, + Timestamp: 456, + Type: 7, + Obfuscated: true, }, &TxRecord{ Direction: 0, - Timestamp: 518, - Type: 4, - Obfuscated: false, + Timestamp: 366, + Type: 7, + Obfuscated: true, }, }, } @@ -150,36 +150,36 @@ func (m *MempoolMock) SelectTx(ctx context.Context, req *SelectRequest) (*Select &SelectResponse{ Result: []*Tx{ &Tx{ - Type: 1, - Id: "e6d031f1-466e-461f-aea6-f83eb9755fcd", + Type: 2, + Id: "c35ad897-cba1-44ee-9073-3d6a38c76265", }, &Tx{ - Type: 5, - Id: "38cc848a-361b-423d-8a05-1f35aa1488e7", + Type: 6, + Id: "0b71b489-5227-44d1-a597-573398e8a998", }, &Tx{ - Type: 4, - Id: "df42e5fd-cdd8-4a99-9d94-ee75210e6859", + Type: 6, + Id: "20c1ae52-084f-4a44-8485-ecb300ea51c5", }, &Tx{ - Type: 0, - Id: "1e8903bc-dd2a-49a8-bb83-ff65c5d97a2f", + Type: 5, + Id: "3db7938b-3f0f-4863-875f-af7d7cdca71e", }, &Tx{ - Type: 1, - Id: "4f13d10b-8b95-475f-962f-22ff62a68cbb", + Type: 7, + Id: "bcc8702d-2435-4566-9f57-e48480735368", }, &Tx{ - Type: 2, - Id: "e82a7a74-31cd-469a-91e6-944fbdd0c0b0", + Type: 7, + Id: "5d6fa50c-6f0a-4478-90b2-58971a9ac4bc", }, &Tx{ Type: 1, - Id: "bf51657f-225e-4830-ad8c-0b46513b88f8", + Id: "732a6fad-d8a8-4abe-87cf-fe2fab253ffb", }, &Tx{ Type: 4, - Id: "8cdfb276-2b41-4948-8b6d-caefdfc99f99", + Id: "1d35628f-a3e7-448d-95df-f182f01355a9", }, }, } @@ -191,14 +191,14 @@ type ChainMock struct{} func (m *ChainMock) RebuildChain(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "officia", + Response: "voluptatem", } return res, nil } func (m *ChainMock) GetSyncProgress(ctx context.Context, req *EmptyRequest) (*SyncProgressResponse, error) { res := &SyncProgressResponse{ - Progress: 13.5251, + Progress: 557.3751, } return res, nil } @@ -231,7 +231,7 @@ type ProvisionerMock struct{} func (m *ProvisionerMock) AutomateStakes(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "earum", + Response: "voluptatibus", } return res, nil } @@ -241,7 +241,7 @@ type BlockGeneratorMock struct{} func (m *BlockGeneratorMock) AutomateBids(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { res := &GenericResponse{ - Response: "quo", + Response: "ut", } return res, nil } diff --git a/autogen/go/node/node.pb.go b/autogen/go/node/node.pb.go index 3d6d047..51932cb 100644 --- a/autogen/go/node/node.pb.go +++ b/autogen/go/node/node.pb.go @@ -1,360 +1,151 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: node.proto package node import ( context "context" - proto "github.com/golang/protobuf/proto" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type EmptyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *EmptyRequest) Reset() { - *x = EmptyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_node_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *EmptyRequest) Reset() { *m = EmptyRequest{} } +func (m *EmptyRequest) String() string { return proto.CompactTextString(m) } +func (*EmptyRequest) ProtoMessage() {} +func (*EmptyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_0c843d59d2d938e7, []int{0} } - -func (x *EmptyRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *EmptyRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EmptyRequest.Unmarshal(m, b) } - -func (*EmptyRequest) ProtoMessage() {} - -func (x *EmptyRequest) ProtoReflect() protoreflect.Message { - mi := &file_node_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EmptyRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead. -func (*EmptyRequest) Descriptor() ([]byte, []int) { - return file_node_proto_rawDescGZIP(), []int{0} +func (m *EmptyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmptyRequest.Merge(m, src) } - -type GenericResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` +func (m *EmptyRequest) XXX_Size() int { + return xxx_messageInfo_EmptyRequest.Size(m) } - -func (x *GenericResponse) Reset() { - *x = GenericResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_node_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenericResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *EmptyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EmptyRequest.DiscardUnknown(m) } -func (*GenericResponse) ProtoMessage() {} +var xxx_messageInfo_EmptyRequest proto.InternalMessageInfo -func (x *GenericResponse) ProtoReflect() protoreflect.Message { - mi := &file_node_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type GenericResponse struct { + Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -// Deprecated: Use GenericResponse.ProtoReflect.Descriptor instead. +func (m *GenericResponse) Reset() { *m = GenericResponse{} } +func (m *GenericResponse) String() string { return proto.CompactTextString(m) } +func (*GenericResponse) ProtoMessage() {} func (*GenericResponse) Descriptor() ([]byte, []int) { - return file_node_proto_rawDescGZIP(), []int{1} + return fileDescriptor_0c843d59d2d938e7, []int{1} +} +func (m *GenericResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenericResponse.Unmarshal(m, b) +} +func (m *GenericResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenericResponse.Marshal(b, m, deterministic) } +func (m *GenericResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenericResponse.Merge(m, src) +} +func (m *GenericResponse) XXX_Size() int { + return xxx_messageInfo_GenericResponse.Size(m) +} +func (m *GenericResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenericResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenericResponse proto.InternalMessageInfo -func (x *GenericResponse) GetResponse() string { - if x != nil { - return x.Response +func (m *GenericResponse) GetResponse() string { + if m != nil { + return m.Response } return "" } -var File_node_proto protoreflect.FileDescriptor - -var file_node_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6e, 0x6f, - 0x64, 0x65, 0x1a, 0x0c, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x0d, 0x6d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x0e, 0x0a, 0x0c, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x2d, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x7a, - 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x36, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x53, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x3a, - 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xf2, 0x03, 0x0a, 0x06, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x13, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x35, 0x0a, 0x0a, 0x4c, 0x6f, 0x61, 0x64, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x11, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x53, 0x65, 0x65, 0x64, 0x12, 0x13, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x13, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x57, 0x61, 0x6c, - 0x6c, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x12, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1a, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, - 0x0a, 0x47, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x3d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x54, 0x78, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, - 0x12, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x78, 0x48, 0x69, - 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, - 0x98, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x54, 0x0a, 0x15, 0x47, - 0x65, 0x74, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x42, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x37, 0x0a, 0x08, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x54, 0x78, 0x12, 0x13, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x89, 0x01, 0x0a, 0x05, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x12, 0x3b, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x43, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x84, 0x02, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x43, 0x61, 0x6c, - 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, - 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, - 0x03, 0x42, 0x69, 0x64, 0x12, 0x10, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x42, 0x69, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x12, 0x2e, 0x6e, - 0x6f, 0x64, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x19, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x4c, 0x0a, - 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0e, - 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x73, 0x12, 0x12, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, - 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x4d, 0x0a, 0x0e, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x3b, 0x0a, - 0x0c, 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x69, 0x64, 0x73, 0x12, 0x12, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x15, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, - 0x6f, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_node_proto_rawDescOnce sync.Once - file_node_proto_rawDescData = file_node_proto_rawDesc -) - -func file_node_proto_rawDescGZIP() []byte { - file_node_proto_rawDescOnce.Do(func() { - file_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_node_proto_rawDescData) - }) - return file_node_proto_rawDescData -} - -var file_node_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_node_proto_goTypes = []interface{}{ - (*EmptyRequest)(nil), // 0: node.EmptyRequest - (*GenericResponse)(nil), // 1: node.GenericResponse - (*SessionRequest)(nil), // 2: node.SessionRequest - (*CreateRequest)(nil), // 3: node.CreateRequest - (*LoadRequest)(nil), // 4: node.LoadRequest - (*GetUnconfirmedBalanceRequest)(nil), // 5: node.GetUnconfirmedBalanceRequest - (*SelectRequest)(nil), // 6: node.SelectRequest - (*CallContractRequest)(nil), // 7: node.CallContractRequest - (*TransferRequest)(nil), // 8: node.TransferRequest - (*BidRequest)(nil), // 9: node.BidRequest - (*StakeRequest)(nil), // 10: node.StakeRequest - (*Session)(nil), // 11: node.Session - (*LoadResponse)(nil), // 12: node.LoadResponse - (*WalletStatusResponse)(nil), // 13: node.WalletStatusResponse - (*BalanceResponse)(nil), // 14: node.BalanceResponse - (*TxHistoryResponse)(nil), // 15: node.TxHistoryResponse - (*SelectResponse)(nil), // 16: node.SelectResponse - (*SyncProgressResponse)(nil), // 17: node.SyncProgressResponse - (*TransactionResponse)(nil), // 18: node.TransactionResponse -} -var file_node_proto_depIdxs = []int32{ - 2, // 0: node.Auth.CreateSession:input_type -> node.SessionRequest - 0, // 1: node.Auth.DropSession:input_type -> node.EmptyRequest - 3, // 2: node.Wallet.CreateWallet:input_type -> node.CreateRequest - 4, // 3: node.Wallet.LoadWallet:input_type -> node.LoadRequest - 3, // 4: node.Wallet.CreateFromSeed:input_type -> node.CreateRequest - 0, // 5: node.Wallet.ClearWalletDatabase:input_type -> node.EmptyRequest - 0, // 6: node.Wallet.GetWalletStatus:input_type -> node.EmptyRequest - 0, // 7: node.Wallet.GetAddress:input_type -> node.EmptyRequest - 0, // 8: node.Wallet.GetBalance:input_type -> node.EmptyRequest - 0, // 9: node.Wallet.GetTxHistory:input_type -> node.EmptyRequest - 5, // 10: node.Mempool.GetUnconfirmedBalance:input_type -> node.GetUnconfirmedBalanceRequest - 6, // 11: node.Mempool.SelectTx:input_type -> node.SelectRequest - 0, // 12: node.Chain.RebuildChain:input_type -> node.EmptyRequest - 0, // 13: node.Chain.GetSyncProgress:input_type -> node.EmptyRequest - 7, // 14: node.Transactor.CallContract:input_type -> node.CallContractRequest - 8, // 15: node.Transactor.Transfer:input_type -> node.TransferRequest - 9, // 16: node.Transactor.Bid:input_type -> node.BidRequest - 10, // 17: node.Transactor.Stake:input_type -> node.StakeRequest - 0, // 18: node.Provisioner.AutomateStakes:input_type -> node.EmptyRequest - 0, // 19: node.BlockGenerator.AutomateBids:input_type -> node.EmptyRequest - 11, // 20: node.Auth.CreateSession:output_type -> node.Session - 1, // 21: node.Auth.DropSession:output_type -> node.GenericResponse - 12, // 22: node.Wallet.CreateWallet:output_type -> node.LoadResponse - 12, // 23: node.Wallet.LoadWallet:output_type -> node.LoadResponse - 12, // 24: node.Wallet.CreateFromSeed:output_type -> node.LoadResponse - 1, // 25: node.Wallet.ClearWalletDatabase:output_type -> node.GenericResponse - 13, // 26: node.Wallet.GetWalletStatus:output_type -> node.WalletStatusResponse - 12, // 27: node.Wallet.GetAddress:output_type -> node.LoadResponse - 14, // 28: node.Wallet.GetBalance:output_type -> node.BalanceResponse - 15, // 29: node.Wallet.GetTxHistory:output_type -> node.TxHistoryResponse - 14, // 30: node.Mempool.GetUnconfirmedBalance:output_type -> node.BalanceResponse - 16, // 31: node.Mempool.SelectTx:output_type -> node.SelectResponse - 1, // 32: node.Chain.RebuildChain:output_type -> node.GenericResponse - 17, // 33: node.Chain.GetSyncProgress:output_type -> node.SyncProgressResponse - 18, // 34: node.Transactor.CallContract:output_type -> node.TransactionResponse - 18, // 35: node.Transactor.Transfer:output_type -> node.TransactionResponse - 18, // 36: node.Transactor.Bid:output_type -> node.TransactionResponse - 18, // 37: node.Transactor.Stake:output_type -> node.TransactionResponse - 1, // 38: node.Provisioner.AutomateStakes:output_type -> node.GenericResponse - 1, // 39: node.BlockGenerator.AutomateBids:output_type -> node.GenericResponse - 20, // [20:40] is the sub-list for method output_type - 0, // [0:20] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_node_proto_init() } -func file_node_proto_init() { - if File_node_proto != nil { - return - } - file_wallet_proto_init() - file_mempool_proto_init() - if !protoimpl.UnsafeEnabled { - file_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmptyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_node_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenericResponse); 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_node_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 7, - }, - GoTypes: file_node_proto_goTypes, - DependencyIndexes: file_node_proto_depIdxs, - MessageInfos: file_node_proto_msgTypes, - }.Build() - File_node_proto = out.File - file_node_proto_rawDesc = nil - file_node_proto_goTypes = nil - file_node_proto_depIdxs = nil +func init() { + proto.RegisterType((*EmptyRequest)(nil), "node.EmptyRequest") + proto.RegisterType((*GenericResponse)(nil), "node.GenericResponse") +} + +func init() { proto.RegisterFile("node.proto", fileDescriptor_0c843d59d2d938e7) } + +var fileDescriptor_0c843d59d2d938e7 = []byte{ + // 573 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4f, 0x6f, 0xd3, 0x4e, + 0x10, 0x6d, 0x7e, 0xfd, 0xf3, 0x2b, 0x53, 0x27, 0xc0, 0xb6, 0x11, 0xe0, 0x13, 0xca, 0xa9, 0x42, + 0x6a, 0x22, 0x05, 0x28, 0x94, 0xa8, 0x48, 0xb1, 0x4b, 0xc3, 0xa1, 0x95, 0xaa, 0x38, 0x08, 0x89, + 0xdb, 0xc6, 0x9e, 0x24, 0x56, 0xec, 0xdd, 0xb0, 0x3b, 0x86, 0x86, 0x33, 0x17, 0xbe, 0x01, 0x9f, + 0x93, 0x4f, 0x80, 0xec, 0xb5, 0x83, 0x8b, 0x42, 0x49, 0xb8, 0xf9, 0xbd, 0x99, 0xf7, 0xf6, 0xed, + 0xce, 0x7a, 0x01, 0x84, 0x0c, 0xb0, 0x39, 0x53, 0x92, 0x24, 0xdb, 0x4a, 0xbf, 0x6d, 0xeb, 0x33, + 0x8f, 0x22, 0x24, 0xc3, 0xd9, 0xd5, 0x18, 0xe3, 0x99, 0x94, 0x91, 0x81, 0x8d, 0x1a, 0x58, 0x6f, + 0xe2, 0x19, 0xcd, 0xfb, 0xf8, 0x31, 0x41, 0x4d, 0x8d, 0x23, 0xb8, 0xdb, 0x43, 0x81, 0x2a, 0xf4, + 0xfb, 0xa8, 0x67, 0x52, 0x68, 0x64, 0x36, 0xec, 0xaa, 0xfc, 0xfb, 0x61, 0xe5, 0x71, 0xe5, 0xf0, + 0x4e, 0x7f, 0x81, 0xdb, 0x5f, 0x60, 0xab, 0x9b, 0xd0, 0x84, 0x1d, 0x43, 0xd5, 0x55, 0xc8, 0x09, + 0x3d, 0xd4, 0x3a, 0x94, 0x82, 0x1d, 0x34, 0xb3, 0x1c, 0x39, 0xcc, 0xdd, 0xed, 0xea, 0x0d, 0xb6, + 0xb1, 0xc1, 0x5e, 0xc1, 0xde, 0x99, 0x92, 0xb3, 0x42, 0xc5, 0x4c, 0xbd, 0x9c, 0xc8, 0xae, 0x1b, + 0xee, 0xb7, 0x54, 0x8d, 0x8d, 0xf6, 0x8f, 0x4d, 0xd8, 0x79, 0x9f, 0x6d, 0x8d, 0x9d, 0x80, 0x65, + 0x96, 0xcf, 0xf1, 0xbe, 0xd1, 0x18, 0xae, 0x30, 0xca, 0xcd, 0x2f, 0x24, 0x0f, 0x7e, 0xb9, 0xb0, + 0xe7, 0x00, 0x29, 0x93, 0x0b, 0xef, 0x97, 0x7b, 0x6e, 0x93, 0x75, 0xa0, 0x66, 0xdc, 0xcf, 0x95, + 0x8c, 0x3d, 0xc4, 0x60, 0x9d, 0x35, 0x1d, 0xd8, 0x77, 0x23, 0xe4, 0xca, 0x2c, 0x7a, 0xc6, 0x89, + 0x0f, 0xb9, 0xc6, 0xb5, 0x76, 0xcf, 0xdc, 0x74, 0x50, 0x64, 0x1c, 0x3c, 0xe2, 0x94, 0xe8, 0xa5, + 0x7a, 0xdb, 0x70, 0xe5, 0xbe, 0x92, 0xc9, 0x31, 0x40, 0x0f, 0xa9, 0x1b, 0x04, 0x0a, 0xf5, 0x72, + 0xfd, 0xf2, 0x0d, 0x9c, 0x64, 0x3a, 0x87, 0x47, 0x5c, 0xf8, 0xb7, 0xe6, 0xce, 0x5b, 0x4a, 0xd2, + 0x53, 0xb0, 0x7a, 0x48, 0x83, 0xeb, 0xb7, 0xa1, 0x26, 0xa9, 0xe6, 0x4b, 0xc5, 0x0f, 0x0c, 0xb7, + 0x68, 0x2a, 0x0d, 0xfd, 0x7b, 0x05, 0xfe, 0xbf, 0x34, 0x37, 0x98, 0x0d, 0xa0, 0xde, 0x43, 0x7a, + 0x27, 0x7c, 0x29, 0x46, 0xa1, 0x8a, 0x31, 0x28, 0x02, 0x35, 0x8a, 0x43, 0x5b, 0x52, 0xfc, 0x6b, + 0xc0, 0x17, 0xb0, 0xeb, 0x61, 0x84, 0x3e, 0x0d, 0xae, 0x8b, 0x99, 0x1a, 0x5c, 0x28, 0x0f, 0x6e, + 0x92, 0x8b, 0x68, 0xdf, 0x2a, 0xb0, 0xed, 0x4e, 0x78, 0x28, 0x58, 0x07, 0xac, 0x3e, 0x0e, 0x93, + 0x30, 0x0a, 0x0c, 0xfe, 0x87, 0xc1, 0x7a, 0x73, 0xe1, 0x5f, 0x29, 0x39, 0xfe, 0xe3, 0x60, 0xf2, + 0xc1, 0x96, 0xfb, 0x4a, 0x59, 0xbe, 0xfe, 0x07, 0x30, 0x50, 0x5c, 0x68, 0xee, 0x93, 0x54, 0xec, + 0x1c, 0x2c, 0x97, 0x47, 0x91, 0x2b, 0x05, 0x29, 0xee, 0x13, 0x7b, 0x94, 0xdf, 0xd5, 0x12, 0x57, + 0xf8, 0xe6, 0xa5, 0x42, 0x9c, 0xfd, 0xbc, 0x8b, 0x6c, 0xaf, 0x61, 0x37, 0x2b, 0x8c, 0x50, 0xb1, + 0x7a, 0xa9, 0x71, 0x84, 0x6a, 0x25, 0xfd, 0x33, 0xd8, 0x74, 0xc2, 0x80, 0xdd, 0xcb, 0xcf, 0x3e, + 0x0c, 0x56, 0x52, 0xbd, 0x84, 0x6d, 0x8f, 0xf8, 0x74, 0x71, 0xd1, 0x32, 0xb0, 0x8a, 0xb2, 0x7d, + 0x01, 0x7b, 0x57, 0x4a, 0x7e, 0x0a, 0xd3, 0xc7, 0x05, 0x15, 0x3b, 0x85, 0x5a, 0x37, 0x21, 0x19, + 0xa7, 0xef, 0x54, 0xea, 0xa1, 0xd7, 0x7b, 0x70, 0x2e, 0xa1, 0xe6, 0x44, 0xd2, 0x9f, 0x66, 0x15, + 0x9e, 0x9e, 0x6b, 0x07, 0xac, 0xc2, 0xd0, 0x09, 0x83, 0xf5, 0xec, 0x9c, 0x27, 0x1f, 0x0e, 0xc7, + 0x21, 0x4d, 0x92, 0x61, 0xd3, 0x97, 0x71, 0x2b, 0x48, 0xf4, 0xf4, 0x28, 0x7b, 0x93, 0x87, 0xc9, + 0xa8, 0xc5, 0x13, 0x92, 0x63, 0x14, 0xad, 0xb1, 0x6c, 0xa5, 0xea, 0xe1, 0x4e, 0x56, 0x79, 0xfa, + 0x33, 0x00, 0x00, 0xff, 0xff, 0xba, 0xd7, 0x94, 0xec, 0xde, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // AuthClient is the client API for Auth service. // @@ -365,10 +156,10 @@ type AuthClient interface { } type authClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewAuthClient(cc grpc.ClientConnInterface) AuthClient { +func NewAuthClient(cc *grpc.ClientConn) AuthClient { return &authClient{cc} } @@ -400,10 +191,10 @@ type AuthServer interface { type UnimplementedAuthServer struct { } -func (*UnimplementedAuthServer) CreateSession(context.Context, *SessionRequest) (*Session, error) { +func (*UnimplementedAuthServer) CreateSession(ctx context.Context, req *SessionRequest) (*Session, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateSession not implemented") } -func (*UnimplementedAuthServer) DropSession(context.Context, *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedAuthServer) DropSession(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DropSession not implemented") } @@ -479,10 +270,10 @@ type WalletClient interface { } type walletClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewWalletClient(cc grpc.ClientConnInterface) WalletClient { +func NewWalletClient(cc *grpc.ClientConn) WalletClient { return &walletClient{cc} } @@ -574,28 +365,28 @@ type WalletServer interface { type UnimplementedWalletServer struct { } -func (*UnimplementedWalletServer) CreateWallet(context.Context, *CreateRequest) (*LoadResponse, error) { +func (*UnimplementedWalletServer) CreateWallet(ctx context.Context, req *CreateRequest) (*LoadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateWallet not implemented") } -func (*UnimplementedWalletServer) LoadWallet(context.Context, *LoadRequest) (*LoadResponse, error) { +func (*UnimplementedWalletServer) LoadWallet(ctx context.Context, req *LoadRequest) (*LoadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LoadWallet not implemented") } -func (*UnimplementedWalletServer) CreateFromSeed(context.Context, *CreateRequest) (*LoadResponse, error) { +func (*UnimplementedWalletServer) CreateFromSeed(ctx context.Context, req *CreateRequest) (*LoadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateFromSeed not implemented") } -func (*UnimplementedWalletServer) ClearWalletDatabase(context.Context, *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedWalletServer) ClearWalletDatabase(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClearWalletDatabase not implemented") } -func (*UnimplementedWalletServer) GetWalletStatus(context.Context, *EmptyRequest) (*WalletStatusResponse, error) { +func (*UnimplementedWalletServer) GetWalletStatus(ctx context.Context, req *EmptyRequest) (*WalletStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetWalletStatus not implemented") } -func (*UnimplementedWalletServer) GetAddress(context.Context, *EmptyRequest) (*LoadResponse, error) { +func (*UnimplementedWalletServer) GetAddress(ctx context.Context, req *EmptyRequest) (*LoadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAddress not implemented") } -func (*UnimplementedWalletServer) GetBalance(context.Context, *EmptyRequest) (*BalanceResponse, error) { +func (*UnimplementedWalletServer) GetBalance(ctx context.Context, req *EmptyRequest) (*BalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBalance not implemented") } -func (*UnimplementedWalletServer) GetTxHistory(context.Context, *EmptyRequest) (*TxHistoryResponse, error) { +func (*UnimplementedWalletServer) GetTxHistory(ctx context.Context, req *EmptyRequest) (*TxHistoryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTxHistory not implemented") } @@ -797,10 +588,10 @@ type MempoolClient interface { } type mempoolClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewMempoolClient(cc grpc.ClientConnInterface) MempoolClient { +func NewMempoolClient(cc *grpc.ClientConn) MempoolClient { return &mempoolClient{cc} } @@ -832,10 +623,10 @@ type MempoolServer interface { type UnimplementedMempoolServer struct { } -func (*UnimplementedMempoolServer) GetUnconfirmedBalance(context.Context, *GetUnconfirmedBalanceRequest) (*BalanceResponse, error) { +func (*UnimplementedMempoolServer) GetUnconfirmedBalance(ctx context.Context, req *GetUnconfirmedBalanceRequest) (*BalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUnconfirmedBalance not implemented") } -func (*UnimplementedMempoolServer) SelectTx(context.Context, *SelectRequest) (*SelectResponse, error) { +func (*UnimplementedMempoolServer) SelectTx(ctx context.Context, req *SelectRequest) (*SelectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SelectTx not implemented") } @@ -905,10 +696,10 @@ type ChainClient interface { } type chainClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewChainClient(cc grpc.ClientConnInterface) ChainClient { +func NewChainClient(cc *grpc.ClientConn) ChainClient { return &chainClient{cc} } @@ -940,10 +731,10 @@ type ChainServer interface { type UnimplementedChainServer struct { } -func (*UnimplementedChainServer) RebuildChain(context.Context, *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedChainServer) RebuildChain(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RebuildChain not implemented") } -func (*UnimplementedChainServer) GetSyncProgress(context.Context, *EmptyRequest) (*SyncProgressResponse, error) { +func (*UnimplementedChainServer) GetSyncProgress(ctx context.Context, req *EmptyRequest) (*SyncProgressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSyncProgress not implemented") } @@ -1015,10 +806,10 @@ type TransactorClient interface { } type transactorClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewTransactorClient(cc grpc.ClientConnInterface) TransactorClient { +func NewTransactorClient(cc *grpc.ClientConn) TransactorClient { return &transactorClient{cc} } @@ -1070,16 +861,16 @@ type TransactorServer interface { type UnimplementedTransactorServer struct { } -func (*UnimplementedTransactorServer) CallContract(context.Context, *CallContractRequest) (*TransactionResponse, error) { +func (*UnimplementedTransactorServer) CallContract(ctx context.Context, req *CallContractRequest) (*TransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CallContract not implemented") } -func (*UnimplementedTransactorServer) Transfer(context.Context, *TransferRequest) (*TransactionResponse, error) { +func (*UnimplementedTransactorServer) Transfer(ctx context.Context, req *TransferRequest) (*TransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented") } -func (*UnimplementedTransactorServer) Bid(context.Context, *BidRequest) (*TransactionResponse, error) { +func (*UnimplementedTransactorServer) Bid(ctx context.Context, req *BidRequest) (*TransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Bid not implemented") } -func (*UnimplementedTransactorServer) Stake(context.Context, *StakeRequest) (*TransactionResponse, error) { +func (*UnimplementedTransactorServer) Stake(ctx context.Context, req *StakeRequest) (*TransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Stake not implemented") } @@ -1192,10 +983,10 @@ type ProvisionerClient interface { } type provisionerClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewProvisionerClient(cc grpc.ClientConnInterface) ProvisionerClient { +func NewProvisionerClient(cc *grpc.ClientConn) ProvisionerClient { return &provisionerClient{cc} } @@ -1217,7 +1008,7 @@ type ProvisionerServer interface { type UnimplementedProvisionerServer struct { } -func (*UnimplementedProvisionerServer) AutomateStakes(context.Context, *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedProvisionerServer) AutomateStakes(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AutomateStakes not implemented") } @@ -1264,10 +1055,10 @@ type BlockGeneratorClient interface { } type blockGeneratorClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewBlockGeneratorClient(cc grpc.ClientConnInterface) BlockGeneratorClient { +func NewBlockGeneratorClient(cc *grpc.ClientConn) BlockGeneratorClient { return &blockGeneratorClient{cc} } @@ -1289,7 +1080,7 @@ type BlockGeneratorServer interface { type UnimplementedBlockGeneratorServer struct { } -func (*UnimplementedBlockGeneratorServer) AutomateBids(context.Context, *EmptyRequest) (*GenericResponse, error) { +func (*UnimplementedBlockGeneratorServer) AutomateBids(ctx context.Context, req *EmptyRequest) (*GenericResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AutomateBids not implemented") } diff --git a/autogen/go/node/wallet.pb.go b/autogen/go/node/wallet.pb.go index 0b5cd90..df373b1 100644 --- a/autogen/go/node/wallet.pb.go +++ b/autogen/go/node/wallet.pb.go @@ -1,29 +1,24 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: wallet.proto package node import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Direction int32 @@ -32,1384 +27,905 @@ const ( Direction_IN Direction = 1 ) -// Enum value maps for Direction. -var ( - Direction_name = map[int32]string{ - 0: "OUT", - 1: "IN", - } - Direction_value = map[string]int32{ - "OUT": 0, - "IN": 1, - } -) +var Direction_name = map[int32]string{ + 0: "OUT", + 1: "IN", +} -func (x Direction) Enum() *Direction { - p := new(Direction) - *p = x - return p +var Direction_value = map[string]int32{ + "OUT": 0, + "IN": 1, } func (x Direction) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(Direction_name, int32(x)) } -func (Direction) Descriptor() protoreflect.EnumDescriptor { - return file_wallet_proto_enumTypes[0].Descriptor() +func (Direction) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{0} } -func (Direction) Type() protoreflect.EnumType { - return &file_wallet_proto_enumTypes[0] +type PubKey struct { + PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x Direction) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (m *PubKey) Reset() { *m = PubKey{} } +func (m *PubKey) String() string { return proto.CompactTextString(m) } +func (*PubKey) ProtoMessage() {} +func (*PubKey) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{0} } - -// Deprecated: Use Direction.Descriptor instead. -func (Direction) EnumDescriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{0} +func (m *PubKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PubKey.Unmarshal(m, b) } - -type PubKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` +func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PubKey.Marshal(b, m, deterministic) } - -func (x *PubKey) Reset() { - *x = PubKey{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PubKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_PubKey.Merge(m, src) } - -func (x *PubKey) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PubKey) XXX_Size() int { + return xxx_messageInfo_PubKey.Size(m) } - -func (*PubKey) ProtoMessage() {} - -func (x *PubKey) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *PubKey) XXX_DiscardUnknown() { + xxx_messageInfo_PubKey.DiscardUnknown(m) } -// Deprecated: Use PubKey.ProtoReflect.Descriptor instead. -func (*PubKey) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{0} -} +var xxx_messageInfo_PubKey proto.InternalMessageInfo -func (x *PubKey) GetPublicKey() []byte { - if x != nil { - return x.PublicKey +func (m *PubKey) GetPublicKey() []byte { + if m != nil { + return m.PublicKey } return nil } type CreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` - Seed []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` + Seed []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CreateRequest) Reset() { - *x = CreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CreateRequest) Reset() { *m = CreateRequest{} } +func (m *CreateRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRequest) ProtoMessage() {} +func (*CreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{1} } - -func (x *CreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateRequest.Unmarshal(m, b) } - -func (*CreateRequest) ProtoMessage() {} - -func (x *CreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead. -func (*CreateRequest) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{1} +func (m *CreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateRequest.Merge(m, src) +} +func (m *CreateRequest) XXX_Size() int { + return xxx_messageInfo_CreateRequest.Size(m) } +func (m *CreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateRequest proto.InternalMessageInfo -func (x *CreateRequest) GetPassword() string { - if x != nil { - return x.Password +func (m *CreateRequest) GetPassword() string { + if m != nil { + return m.Password } return "" } -func (x *CreateRequest) GetSeed() []byte { - if x != nil { - return x.Seed +func (m *CreateRequest) GetSeed() []byte { + if m != nil { + return m.Seed } return nil } type LoadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *LoadRequest) Reset() { - *x = LoadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *LoadRequest) Reset() { *m = LoadRequest{} } +func (m *LoadRequest) String() string { return proto.CompactTextString(m) } +func (*LoadRequest) ProtoMessage() {} +func (*LoadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{2} } - -func (x *LoadRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *LoadRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadRequest.Unmarshal(m, b) } - -func (*LoadRequest) ProtoMessage() {} - -func (x *LoadRequest) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *LoadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use LoadRequest.ProtoReflect.Descriptor instead. -func (*LoadRequest) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{2} +func (m *LoadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadRequest.Merge(m, src) +} +func (m *LoadRequest) XXX_Size() int { + return xxx_messageInfo_LoadRequest.Size(m) } +func (m *LoadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadRequest proto.InternalMessageInfo -func (x *LoadRequest) GetPassword() string { - if x != nil { - return x.Password +func (m *LoadRequest) GetPassword() string { + if m != nil { + return m.Password } return "" } type SessionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EdPk []byte `protobuf:"bytes,1,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` - EdSig []byte `protobuf:"bytes,2,opt,name=ed_sig,json=edSig,proto3" json:"ed_sig,omitempty"` + EdPk []byte `protobuf:"bytes,1,opt,name=ed_pk,json=edPk,proto3" json:"ed_pk,omitempty"` + EdSig []byte `protobuf:"bytes,2,opt,name=ed_sig,json=edSig,proto3" json:"ed_sig,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SessionRequest) Reset() { - *x = SessionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SessionRequest) Reset() { *m = SessionRequest{} } +func (m *SessionRequest) String() string { return proto.CompactTextString(m) } +func (*SessionRequest) ProtoMessage() {} +func (*SessionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{3} } - -func (x *SessionRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SessionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SessionRequest.Unmarshal(m, b) } - -func (*SessionRequest) ProtoMessage() {} - -func (x *SessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SessionRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use SessionRequest.ProtoReflect.Descriptor instead. -func (*SessionRequest) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{3} +func (m *SessionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SessionRequest.Merge(m, src) +} +func (m *SessionRequest) XXX_Size() int { + return xxx_messageInfo_SessionRequest.Size(m) +} +func (m *SessionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SessionRequest.DiscardUnknown(m) } -func (x *SessionRequest) GetEdPk() []byte { - if x != nil { - return x.EdPk +var xxx_messageInfo_SessionRequest proto.InternalMessageInfo + +func (m *SessionRequest) GetEdPk() []byte { + if m != nil { + return m.EdPk } return nil } -func (x *SessionRequest) GetEdSig() []byte { - if x != nil { - return x.EdSig +func (m *SessionRequest) GetEdSig() []byte { + if m != nil { + return m.EdSig } return nil } type Session struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Session) Reset() { - *x = Session{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Session) Reset() { *m = Session{} } +func (m *Session) String() string { return proto.CompactTextString(m) } +func (*Session) ProtoMessage() {} +func (*Session) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{4} } - -func (x *Session) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Session) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Session.Unmarshal(m, b) } - -func (*Session) ProtoMessage() {} - -func (x *Session) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Session.Marshal(b, m, deterministic) } - -// Deprecated: Use Session.ProtoReflect.Descriptor instead. -func (*Session) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{4} +func (m *Session) XXX_Merge(src proto.Message) { + xxx_messageInfo_Session.Merge(m, src) +} +func (m *Session) XXX_Size() int { + return xxx_messageInfo_Session.Size(m) +} +func (m *Session) XXX_DiscardUnknown() { + xxx_messageInfo_Session.DiscardUnknown(m) } -func (x *Session) GetAccessToken() string { - if x != nil { - return x.AccessToken +var xxx_messageInfo_Session proto.InternalMessageInfo + +func (m *Session) GetAccessToken() string { + if m != nil { + return m.AccessToken } return "" } type LoadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key *PubKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Key *PubKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *LoadResponse) Reset() { - *x = LoadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *LoadResponse) Reset() { *m = LoadResponse{} } +func (m *LoadResponse) String() string { return proto.CompactTextString(m) } +func (*LoadResponse) ProtoMessage() {} +func (*LoadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{5} } - -func (x *LoadResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *LoadResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadResponse.Unmarshal(m, b) } - -func (*LoadResponse) ProtoMessage() {} - -func (x *LoadResponse) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *LoadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use LoadResponse.ProtoReflect.Descriptor instead. -func (*LoadResponse) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{5} +func (m *LoadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadResponse.Merge(m, src) } +func (m *LoadResponse) XXX_Size() int { + return xxx_messageInfo_LoadResponse.Size(m) +} +func (m *LoadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadResponse proto.InternalMessageInfo -func (x *LoadResponse) GetKey() *PubKey { - if x != nil { - return x.Key +func (m *LoadResponse) GetKey() *PubKey { + if m != nil { + return m.Key } return nil } type ConsensusTxRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - LockTime uint64 `protobuf:"fixed64,2,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + LockTime uint64 `protobuf:"fixed64,2,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ConsensusTxRequest) Reset() { - *x = ConsensusTxRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ConsensusTxRequest) Reset() { *m = ConsensusTxRequest{} } +func (m *ConsensusTxRequest) String() string { return proto.CompactTextString(m) } +func (*ConsensusTxRequest) ProtoMessage() {} +func (*ConsensusTxRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{6} } - -func (x *ConsensusTxRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ConsensusTxRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConsensusTxRequest.Unmarshal(m, b) } - -func (*ConsensusTxRequest) ProtoMessage() {} - -func (x *ConsensusTxRequest) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ConsensusTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConsensusTxRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use ConsensusTxRequest.ProtoReflect.Descriptor instead. -func (*ConsensusTxRequest) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{6} +func (m *ConsensusTxRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConsensusTxRequest.Merge(m, src) +} +func (m *ConsensusTxRequest) XXX_Size() int { + return xxx_messageInfo_ConsensusTxRequest.Size(m) +} +func (m *ConsensusTxRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ConsensusTxRequest.DiscardUnknown(m) } -func (x *ConsensusTxRequest) GetAmount() uint64 { - if x != nil { - return x.Amount +var xxx_messageInfo_ConsensusTxRequest proto.InternalMessageInfo + +func (m *ConsensusTxRequest) GetAmount() uint64 { + if m != nil { + return m.Amount } return 0 } -func (x *ConsensusTxRequest) GetLockTime() uint64 { - if x != nil { - return x.LockTime +func (m *ConsensusTxRequest) GetLockTime() uint64 { + if m != nil { + return m.LockTime } return 0 } type CallContractRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CallContractRequest) Reset() { - *x = CallContractRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CallContractRequest) Reset() { *m = CallContractRequest{} } +func (m *CallContractRequest) String() string { return proto.CompactTextString(m) } +func (*CallContractRequest) ProtoMessage() {} +func (*CallContractRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{7} } - -func (x *CallContractRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CallContractRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CallContractRequest.Unmarshal(m, b) } - -func (*CallContractRequest) ProtoMessage() {} - -func (x *CallContractRequest) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CallContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CallContractRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use CallContractRequest.ProtoReflect.Descriptor instead. -func (*CallContractRequest) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{7} +func (m *CallContractRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CallContractRequest.Merge(m, src) } +func (m *CallContractRequest) XXX_Size() int { + return xxx_messageInfo_CallContractRequest.Size(m) +} +func (m *CallContractRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CallContractRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CallContractRequest proto.InternalMessageInfo -func (x *CallContractRequest) GetData() []byte { - if x != nil { - return x.Data +func (m *CallContractRequest) GetData() []byte { + if m != nil { + return m.Data } return nil } -func (x *CallContractRequest) GetAddress() []byte { - if x != nil { - return x.Address +func (m *CallContractRequest) GetAddress() []byte { + if m != nil { + return m.Address } return nil } -func (x *CallContractRequest) GetFee() uint64 { - if x != nil { - return x.Fee +func (m *CallContractRequest) GetFee() uint64 { + if m != nil { + return m.Fee } return 0 } type TransferRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Fee uint64 `protobuf:"fixed64,3,opt,name=fee,proto3" json:"fee,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *TransferRequest) Reset() { - *x = TransferRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TransferRequest) Reset() { *m = TransferRequest{} } +func (m *TransferRequest) String() string { return proto.CompactTextString(m) } +func (*TransferRequest) ProtoMessage() {} +func (*TransferRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{8} } - -func (x *TransferRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TransferRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransferRequest.Unmarshal(m, b) } - -func (*TransferRequest) ProtoMessage() {} - -func (x *TransferRequest) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransferRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. -func (*TransferRequest) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{8} +func (m *TransferRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferRequest.Merge(m, src) +} +func (m *TransferRequest) XXX_Size() int { + return xxx_messageInfo_TransferRequest.Size(m) } +func (m *TransferRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TransferRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TransferRequest proto.InternalMessageInfo -func (x *TransferRequest) GetAmount() uint64 { - if x != nil { - return x.Amount +func (m *TransferRequest) GetAmount() uint64 { + if m != nil { + return m.Amount } return 0 } -func (x *TransferRequest) GetAddress() []byte { - if x != nil { - return x.Address +func (m *TransferRequest) GetAddress() []byte { + if m != nil { + return m.Address } return nil } -func (x *TransferRequest) GetFee() uint64 { - if x != nil { - return x.Fee +func (m *TransferRequest) GetFee() uint64 { + if m != nil { + return m.Fee } return 0 } type BidRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` - Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` + Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *BidRequest) Reset() { - *x = BidRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *BidRequest) Reset() { *m = BidRequest{} } +func (m *BidRequest) String() string { return proto.CompactTextString(m) } +func (*BidRequest) ProtoMessage() {} +func (*BidRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{9} } - -func (x *BidRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *BidRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BidRequest.Unmarshal(m, b) } - -func (*BidRequest) ProtoMessage() {} - -func (x *BidRequest) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *BidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BidRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use BidRequest.ProtoReflect.Descriptor instead. -func (*BidRequest) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{9} +func (m *BidRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BidRequest.Merge(m, src) } +func (m *BidRequest) XXX_Size() int { + return xxx_messageInfo_BidRequest.Size(m) +} +func (m *BidRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BidRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BidRequest proto.InternalMessageInfo -func (x *BidRequest) GetAmount() uint64 { - if x != nil { - return x.Amount +func (m *BidRequest) GetAmount() uint64 { + if m != nil { + return m.Amount } return 0 } -func (x *BidRequest) GetFee() uint64 { - if x != nil { - return x.Fee +func (m *BidRequest) GetFee() uint64 { + if m != nil { + return m.Fee } return 0 } -func (x *BidRequest) GetLocktime() uint64 { - if x != nil { - return x.Locktime +func (m *BidRequest) GetLocktime() uint64 { + if m != nil { + return m.Locktime } return 0 } type StakeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` - Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + Fee uint64 `protobuf:"fixed64,2,opt,name=fee,proto3" json:"fee,omitempty"` + Locktime uint64 `protobuf:"fixed64,3,opt,name=locktime,proto3" json:"locktime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StakeRequest) Reset() { - *x = StakeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StakeRequest) Reset() { *m = StakeRequest{} } +func (m *StakeRequest) String() string { return proto.CompactTextString(m) } +func (*StakeRequest) ProtoMessage() {} +func (*StakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{10} } - -func (x *StakeRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StakeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StakeRequest.Unmarshal(m, b) } - -func (*StakeRequest) ProtoMessage() {} - -func (x *StakeRequest) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StakeRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use StakeRequest.ProtoReflect.Descriptor instead. -func (*StakeRequest) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{10} +func (m *StakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StakeRequest.Merge(m, src) +} +func (m *StakeRequest) XXX_Size() int { + return xxx_messageInfo_StakeRequest.Size(m) } +func (m *StakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StakeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StakeRequest proto.InternalMessageInfo -func (x *StakeRequest) GetAmount() uint64 { - if x != nil { - return x.Amount +func (m *StakeRequest) GetAmount() uint64 { + if m != nil { + return m.Amount } return 0 } -func (x *StakeRequest) GetFee() uint64 { - if x != nil { - return x.Fee +func (m *StakeRequest) GetFee() uint64 { + if m != nil { + return m.Fee } return 0 } -func (x *StakeRequest) GetLocktime() uint64 { - if x != nil { - return x.Locktime +func (m *StakeRequest) GetLocktime() uint64 { + if m != nil { + return m.Locktime } return 0 } type TransactionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *TransactionResponse) Reset() { - *x = TransactionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TransactionResponse) Reset() { *m = TransactionResponse{} } +func (m *TransactionResponse) String() string { return proto.CompactTextString(m) } +func (*TransactionResponse) ProtoMessage() {} +func (*TransactionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{11} } - -func (x *TransactionResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TransactionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionResponse.Unmarshal(m, b) } - -func (*TransactionResponse) ProtoMessage() {} - -func (x *TransactionResponse) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use TransactionResponse.ProtoReflect.Descriptor instead. -func (*TransactionResponse) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{11} +func (m *TransactionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionResponse.Merge(m, src) +} +func (m *TransactionResponse) XXX_Size() int { + return xxx_messageInfo_TransactionResponse.Size(m) } +func (m *TransactionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionResponse proto.InternalMessageInfo -func (x *TransactionResponse) GetHash() []byte { - if x != nil { - return x.Hash +func (m *TransactionResponse) GetHash() []byte { + if m != nil { + return m.Hash } return nil } type WalletStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Loaded bool `protobuf:"varint,1,opt,name=loaded,proto3" json:"loaded,omitempty"` + Loaded bool `protobuf:"varint,1,opt,name=loaded,proto3" json:"loaded,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *WalletStatusResponse) Reset() { - *x = WalletStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *WalletStatusResponse) Reset() { *m = WalletStatusResponse{} } +func (m *WalletStatusResponse) String() string { return proto.CompactTextString(m) } +func (*WalletStatusResponse) ProtoMessage() {} +func (*WalletStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{12} } - -func (x *WalletStatusResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *WalletStatusResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WalletStatusResponse.Unmarshal(m, b) } - -func (*WalletStatusResponse) ProtoMessage() {} - -func (x *WalletStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *WalletStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WalletStatusResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use WalletStatusResponse.ProtoReflect.Descriptor instead. -func (*WalletStatusResponse) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{12} +func (m *WalletStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WalletStatusResponse.Merge(m, src) +} +func (m *WalletStatusResponse) XXX_Size() int { + return xxx_messageInfo_WalletStatusResponse.Size(m) +} +func (m *WalletStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WalletStatusResponse.DiscardUnknown(m) } -func (x *WalletStatusResponse) GetLoaded() bool { - if x != nil { - return x.Loaded +var xxx_messageInfo_WalletStatusResponse proto.InternalMessageInfo + +func (m *WalletStatusResponse) GetLoaded() bool { + if m != nil { + return m.Loaded } return false } type SyncProgressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` + Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SyncProgressResponse) Reset() { - *x = SyncProgressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SyncProgressResponse) Reset() { *m = SyncProgressResponse{} } +func (m *SyncProgressResponse) String() string { return proto.CompactTextString(m) } +func (*SyncProgressResponse) ProtoMessage() {} +func (*SyncProgressResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{13} } - -func (x *SyncProgressResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SyncProgressResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SyncProgressResponse.Unmarshal(m, b) } - -func (*SyncProgressResponse) ProtoMessage() {} - -func (x *SyncProgressResponse) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SyncProgressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SyncProgressResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use SyncProgressResponse.ProtoReflect.Descriptor instead. -func (*SyncProgressResponse) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{13} +func (m *SyncProgressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncProgressResponse.Merge(m, src) +} +func (m *SyncProgressResponse) XXX_Size() int { + return xxx_messageInfo_SyncProgressResponse.Size(m) +} +func (m *SyncProgressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SyncProgressResponse.DiscardUnknown(m) } -func (x *SyncProgressResponse) GetProgress() float32 { - if x != nil { - return x.Progress +var xxx_messageInfo_SyncProgressResponse proto.InternalMessageInfo + +func (m *SyncProgressResponse) GetProgress() float32 { + if m != nil { + return m.Progress } return 0 } type BalanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UnlockedBalance uint64 `protobuf:"fixed64,1,opt,name=unlockedBalance,proto3" json:"unlockedBalance,omitempty"` - LockedBalance uint64 `protobuf:"fixed64,2,opt,name=lockedBalance,proto3" json:"lockedBalance,omitempty"` + UnlockedBalance uint64 `protobuf:"fixed64,1,opt,name=unlockedBalance,proto3" json:"unlockedBalance,omitempty"` + LockedBalance uint64 `protobuf:"fixed64,2,opt,name=lockedBalance,proto3" json:"lockedBalance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *BalanceResponse) Reset() { - *x = BalanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *BalanceResponse) Reset() { *m = BalanceResponse{} } +func (m *BalanceResponse) String() string { return proto.CompactTextString(m) } +func (*BalanceResponse) ProtoMessage() {} +func (*BalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{14} } - -func (x *BalanceResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *BalanceResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BalanceResponse.Unmarshal(m, b) } - -func (*BalanceResponse) ProtoMessage() {} - -func (x *BalanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *BalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BalanceResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use BalanceResponse.ProtoReflect.Descriptor instead. -func (*BalanceResponse) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{14} +func (m *BalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BalanceResponse.Merge(m, src) } +func (m *BalanceResponse) XXX_Size() int { + return xxx_messageInfo_BalanceResponse.Size(m) +} +func (m *BalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BalanceResponse proto.InternalMessageInfo -func (x *BalanceResponse) GetUnlockedBalance() uint64 { - if x != nil { - return x.UnlockedBalance +func (m *BalanceResponse) GetUnlockedBalance() uint64 { + if m != nil { + return m.UnlockedBalance } return 0 } -func (x *BalanceResponse) GetLockedBalance() uint64 { - if x != nil { - return x.LockedBalance +func (m *BalanceResponse) GetLockedBalance() uint64 { + if m != nil { + return m.LockedBalance } return 0 } type TxRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Height uint64 `protobuf:"fixed64,1,opt,name=height,proto3" json:"height,omitempty"` - Direction Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=node.Direction" json:"direction,omitempty"` - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Type TxType `protobuf:"varint,4,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` - Amount uint64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty"` - Fee uint64 `protobuf:"fixed64,6,opt,name=fee,proto3" json:"fee,omitempty"` - UnlockHeight uint64 `protobuf:"fixed64,7,opt,name=unlockHeight,proto3" json:"unlockHeight,omitempty"` - Hash []byte `protobuf:"bytes,8,opt,name=hash,proto3" json:"hash,omitempty"` - Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` - Obfuscated bool `protobuf:"varint,10,opt,name=obfuscated,proto3" json:"obfuscated,omitempty"` -} - -func (x *TxRecord) Reset() { - *x = TxRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + Height uint64 `protobuf:"fixed64,1,opt,name=height,proto3" json:"height,omitempty"` + Direction Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=node.Direction" json:"direction,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Type TxType `protobuf:"varint,4,opt,name=type,proto3,enum=node.TxType" json:"type,omitempty"` + Amount uint64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty"` + Fee uint64 `protobuf:"fixed64,6,opt,name=fee,proto3" json:"fee,omitempty"` + UnlockHeight uint64 `protobuf:"fixed64,7,opt,name=unlockHeight,proto3" json:"unlockHeight,omitempty"` + Hash []byte `protobuf:"bytes,8,opt,name=hash,proto3" json:"hash,omitempty"` + Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` + Obfuscated bool `protobuf:"varint,10,opt,name=obfuscated,proto3" json:"obfuscated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TxRecord) Reset() { *m = TxRecord{} } +func (m *TxRecord) String() string { return proto.CompactTextString(m) } +func (*TxRecord) ProtoMessage() {} +func (*TxRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{15} } - -func (x *TxRecord) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TxRecord) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TxRecord.Unmarshal(m, b) } - -func (*TxRecord) ProtoMessage() {} - -func (x *TxRecord) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TxRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TxRecord.Marshal(b, m, deterministic) } - -// Deprecated: Use TxRecord.ProtoReflect.Descriptor instead. -func (*TxRecord) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{15} +func (m *TxRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxRecord.Merge(m, src) +} +func (m *TxRecord) XXX_Size() int { + return xxx_messageInfo_TxRecord.Size(m) } +func (m *TxRecord) XXX_DiscardUnknown() { + xxx_messageInfo_TxRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_TxRecord proto.InternalMessageInfo -func (x *TxRecord) GetHeight() uint64 { - if x != nil { - return x.Height +func (m *TxRecord) GetHeight() uint64 { + if m != nil { + return m.Height } return 0 } -func (x *TxRecord) GetDirection() Direction { - if x != nil { - return x.Direction +func (m *TxRecord) GetDirection() Direction { + if m != nil { + return m.Direction } return Direction_OUT } -func (x *TxRecord) GetTimestamp() int64 { - if x != nil { - return x.Timestamp +func (m *TxRecord) GetTimestamp() int64 { + if m != nil { + return m.Timestamp } return 0 } -func (x *TxRecord) GetType() TxType { - if x != nil { - return x.Type +func (m *TxRecord) GetType() TxType { + if m != nil { + return m.Type } return TxType_STANDARD } -func (x *TxRecord) GetAmount() uint64 { - if x != nil { - return x.Amount +func (m *TxRecord) GetAmount() uint64 { + if m != nil { + return m.Amount } return 0 } -func (x *TxRecord) GetFee() uint64 { - if x != nil { - return x.Fee +func (m *TxRecord) GetFee() uint64 { + if m != nil { + return m.Fee } return 0 } -func (x *TxRecord) GetUnlockHeight() uint64 { - if x != nil { - return x.UnlockHeight +func (m *TxRecord) GetUnlockHeight() uint64 { + if m != nil { + return m.UnlockHeight } return 0 } -func (x *TxRecord) GetHash() []byte { - if x != nil { - return x.Hash +func (m *TxRecord) GetHash() []byte { + if m != nil { + return m.Hash } return nil } -func (x *TxRecord) GetData() []byte { - if x != nil { - return x.Data +func (m *TxRecord) GetData() []byte { + if m != nil { + return m.Data } return nil } -func (x *TxRecord) GetObfuscated() bool { - if x != nil { - return x.Obfuscated +func (m *TxRecord) GetObfuscated() bool { + if m != nil { + return m.Obfuscated } return false } type TxHistoryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Records []*TxRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` + Records []*TxRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *TxHistoryResponse) Reset() { - *x = TxHistoryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wallet_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TxHistoryResponse) Reset() { *m = TxHistoryResponse{} } +func (m *TxHistoryResponse) String() string { return proto.CompactTextString(m) } +func (*TxHistoryResponse) ProtoMessage() {} +func (*TxHistoryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b88fd140af4deb6f, []int{16} } - -func (x *TxHistoryResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TxHistoryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TxHistoryResponse.Unmarshal(m, b) } - -func (*TxHistoryResponse) ProtoMessage() {} - -func (x *TxHistoryResponse) ProtoReflect() protoreflect.Message { - mi := &file_wallet_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TxHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TxHistoryResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use TxHistoryResponse.ProtoReflect.Descriptor instead. -func (*TxHistoryResponse) Descriptor() ([]byte, []int) { - return file_wallet_proto_rawDescGZIP(), []int{16} +func (m *TxHistoryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxHistoryResponse.Merge(m, src) +} +func (m *TxHistoryResponse) XXX_Size() int { + return xxx_messageInfo_TxHistoryResponse.Size(m) } +func (m *TxHistoryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TxHistoryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TxHistoryResponse proto.InternalMessageInfo -func (x *TxHistoryResponse) GetRecords() []*TxRecord { - if x != nil { - return x.Records +func (m *TxHistoryResponse) GetRecords() []*TxRecord { + if m != nil { + return m.Records } return nil } -var File_wallet_proto protoreflect.FileDescriptor - -var file_wallet_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, - 0x6e, 0x6f, 0x64, 0x65, 0x1a, 0x0d, 0x6d, 0x65, 0x6d, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x3f, 0x0a, 0x0d, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, - 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, 0x29, 0x0a, - 0x0b, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x3c, 0x0a, 0x0e, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x65, 0x64, - 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x64, 0x50, 0x6b, 0x12, - 0x15, 0x0a, 0x06, 0x65, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x05, 0x65, 0x64, 0x53, 0x69, 0x67, 0x22, 0x2c, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2e, 0x0a, 0x0c, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x22, 0x49, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, - 0x73, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x22, - 0x55, 0x0a, 0x13, 0x43, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0x55, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x66, - 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x22, 0x52, 0x0a, - 0x0a, 0x42, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, - 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, - 0x65, 0x22, 0x54, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, - 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x6c, - 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, - 0x73, 0x68, 0x22, 0x2e, 0x0a, 0x14, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, - 0x61, 0x64, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x6f, 0x61, 0x64, - 0x65, 0x64, 0x22, 0x32, 0x0a, 0x14, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x70, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x61, 0x0a, 0x0f, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x6e, 0x6c, - 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x06, 0x52, 0x0f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x0d, 0x6c, 0x6f, 0x63, 0x6b, - 0x65, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xa7, 0x02, 0x0a, 0x08, 0x54, 0x78, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2d, - 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x0f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, - 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x54, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x06, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x6e, 0x6c, 0x6f, 0x63, - 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x06, 0x52, 0x0c, 0x75, - 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, - 0x61, 0x73, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, - 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6f, 0x62, 0x66, 0x75, 0x73, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x22, 0x3d, 0x0a, 0x11, 0x54, 0x78, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x54, 0x78, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x2a, 0x1c, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x07, 0x0a, 0x03, 0x4f, 0x55, 0x54, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, 0x01, - 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, - 0x75, 0x73, 0x6b, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x75, 0x74, - 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_wallet_proto_rawDescOnce sync.Once - file_wallet_proto_rawDescData = file_wallet_proto_rawDesc -) - -func file_wallet_proto_rawDescGZIP() []byte { - file_wallet_proto_rawDescOnce.Do(func() { - file_wallet_proto_rawDescData = protoimpl.X.CompressGZIP(file_wallet_proto_rawDescData) - }) - return file_wallet_proto_rawDescData -} - -var file_wallet_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_wallet_proto_goTypes = []interface{}{ - (Direction)(0), // 0: node.Direction - (*PubKey)(nil), // 1: node.PubKey - (*CreateRequest)(nil), // 2: node.CreateRequest - (*LoadRequest)(nil), // 3: node.LoadRequest - (*SessionRequest)(nil), // 4: node.SessionRequest - (*Session)(nil), // 5: node.Session - (*LoadResponse)(nil), // 6: node.LoadResponse - (*ConsensusTxRequest)(nil), // 7: node.ConsensusTxRequest - (*CallContractRequest)(nil), // 8: node.CallContractRequest - (*TransferRequest)(nil), // 9: node.TransferRequest - (*BidRequest)(nil), // 10: node.BidRequest - (*StakeRequest)(nil), // 11: node.StakeRequest - (*TransactionResponse)(nil), // 12: node.TransactionResponse - (*WalletStatusResponse)(nil), // 13: node.WalletStatusResponse - (*SyncProgressResponse)(nil), // 14: node.SyncProgressResponse - (*BalanceResponse)(nil), // 15: node.BalanceResponse - (*TxRecord)(nil), // 16: node.TxRecord - (*TxHistoryResponse)(nil), // 17: node.TxHistoryResponse - (TxType)(0), // 18: node.TxType -} -var file_wallet_proto_depIdxs = []int32{ - 1, // 0: node.LoadResponse.key:type_name -> node.PubKey - 0, // 1: node.TxRecord.direction:type_name -> node.Direction - 18, // 2: node.TxRecord.type:type_name -> node.TxType - 16, // 3: node.TxHistoryResponse.records:type_name -> node.TxRecord - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_wallet_proto_init() } -func file_wallet_proto_init() { - if File_wallet_proto != nil { - return - } - file_mempool_proto_init() - if !protoimpl.UnsafeEnabled { - file_wallet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PubKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SessionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Session); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConsensusTxRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CallContractRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BidRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StakeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WalletStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncProgressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BalanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TxRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wallet_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TxHistoryResponse); 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_wallet_proto_rawDesc, - NumEnums: 1, - NumMessages: 17, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_wallet_proto_goTypes, - DependencyIndexes: file_wallet_proto_depIdxs, - EnumInfos: file_wallet_proto_enumTypes, - MessageInfos: file_wallet_proto_msgTypes, - }.Build() - File_wallet_proto = out.File - file_wallet_proto_rawDesc = nil - file_wallet_proto_goTypes = nil - file_wallet_proto_depIdxs = nil +func init() { + proto.RegisterEnum("node.Direction", Direction_name, Direction_value) + proto.RegisterType((*PubKey)(nil), "node.PubKey") + proto.RegisterType((*CreateRequest)(nil), "node.CreateRequest") + proto.RegisterType((*LoadRequest)(nil), "node.LoadRequest") + proto.RegisterType((*SessionRequest)(nil), "node.SessionRequest") + proto.RegisterType((*Session)(nil), "node.Session") + proto.RegisterType((*LoadResponse)(nil), "node.LoadResponse") + proto.RegisterType((*ConsensusTxRequest)(nil), "node.ConsensusTxRequest") + proto.RegisterType((*CallContractRequest)(nil), "node.CallContractRequest") + proto.RegisterType((*TransferRequest)(nil), "node.TransferRequest") + proto.RegisterType((*BidRequest)(nil), "node.BidRequest") + proto.RegisterType((*StakeRequest)(nil), "node.StakeRequest") + proto.RegisterType((*TransactionResponse)(nil), "node.TransactionResponse") + proto.RegisterType((*WalletStatusResponse)(nil), "node.WalletStatusResponse") + proto.RegisterType((*SyncProgressResponse)(nil), "node.SyncProgressResponse") + proto.RegisterType((*BalanceResponse)(nil), "node.BalanceResponse") + proto.RegisterType((*TxRecord)(nil), "node.TxRecord") + proto.RegisterType((*TxHistoryResponse)(nil), "node.TxHistoryResponse") +} + +func init() { proto.RegisterFile("wallet.proto", fileDescriptor_b88fd140af4deb6f) } + +var fileDescriptor_b88fd140af4deb6f = []byte{ + // 690 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x5b, 0x6b, 0xdb, 0x4c, + 0x10, 0xfd, 0x62, 0x3b, 0xb2, 0x3d, 0x76, 0xe2, 0x7c, 0x9b, 0x34, 0x98, 0x34, 0x0d, 0xe9, 0x52, + 0xa8, 0x13, 0x1a, 0x1b, 0xdc, 0xd7, 0x96, 0x42, 0xdc, 0x87, 0x84, 0x94, 0x36, 0xc8, 0x0a, 0x85, + 0xbe, 0x98, 0xb5, 0x76, 0x6c, 0x0b, 0x5d, 0x56, 0xd5, 0xae, 0x48, 0xf4, 0x8b, 0xfa, 0x37, 0xcb, + 0xae, 0x2e, 0x76, 0x4a, 0x21, 0x2d, 0xf4, 0x6d, 0xe7, 0xcc, 0x45, 0x33, 0xe7, 0xcc, 0x08, 0xba, + 0xf7, 0x2c, 0x08, 0x50, 0x0d, 0xe3, 0x44, 0x28, 0x41, 0x1a, 0x91, 0xe0, 0x78, 0xb4, 0x13, 0x62, + 0x18, 0x0b, 0x11, 0xe4, 0x20, 0x7d, 0x0d, 0xd6, 0x6d, 0x3a, 0xbf, 0xc1, 0x8c, 0xbc, 0x00, 0x88, + 0xd3, 0x79, 0xe0, 0xb9, 0x33, 0x1f, 0xb3, 0xfe, 0xd6, 0xe9, 0xd6, 0xa0, 0x6b, 0xb7, 0x73, 0xe4, + 0x06, 0x33, 0xfa, 0x01, 0x76, 0x26, 0x09, 0x32, 0x85, 0x36, 0x7e, 0x4f, 0x51, 0x2a, 0x72, 0x04, + 0xad, 0x98, 0x49, 0x79, 0x2f, 0x12, 0x6e, 0xa2, 0xdb, 0x76, 0x65, 0x13, 0x02, 0x0d, 0x89, 0xc8, + 0xfb, 0x35, 0x53, 0xc5, 0xbc, 0xe9, 0x19, 0x74, 0x3e, 0x09, 0xc6, 0xff, 0x20, 0x9d, 0xbe, 0x83, + 0xdd, 0x29, 0x4a, 0xe9, 0x89, 0xa8, 0x8c, 0xde, 0x87, 0x6d, 0xe4, 0xb3, 0xd8, 0x2f, 0xfa, 0x6a, + 0x20, 0xbf, 0xf5, 0xc9, 0x33, 0xb0, 0x90, 0xcf, 0xa4, 0xb7, 0x2c, 0xbe, 0xb3, 0x8d, 0x7c, 0xea, + 0x2d, 0xe9, 0x1b, 0x68, 0x16, 0xd9, 0xe4, 0x25, 0x74, 0x99, 0xeb, 0xa2, 0x94, 0x33, 0x25, 0x7c, + 0x8c, 0x8a, 0x0f, 0x75, 0x72, 0xcc, 0xd1, 0x10, 0x1d, 0x42, 0x37, 0x6f, 0x4b, 0xc6, 0x22, 0x92, + 0x48, 0x4e, 0xa0, 0x5e, 0xce, 0xdf, 0x19, 0x77, 0x87, 0x9a, 0xb3, 0x61, 0xce, 0x90, 0xad, 0x1d, + 0xf4, 0x1a, 0xc8, 0x44, 0x07, 0x46, 0x32, 0x95, 0xce, 0x43, 0xd9, 0xdf, 0x21, 0x58, 0x2c, 0x14, + 0x69, 0xa4, 0x4c, 0xa2, 0x65, 0x17, 0x16, 0x79, 0x0e, 0xed, 0x40, 0xb8, 0xfe, 0x4c, 0x79, 0x21, + 0x9a, 0x2e, 0x2d, 0xbb, 0xa5, 0x01, 0xc7, 0x0b, 0x91, 0xde, 0xc1, 0xfe, 0x84, 0x05, 0xc1, 0x44, + 0x44, 0x2a, 0x61, 0xae, 0x2a, 0x6b, 0x11, 0x68, 0x70, 0xa6, 0x58, 0x39, 0xaa, 0x7e, 0x93, 0x3e, + 0x34, 0x19, 0xe7, 0x09, 0x4a, 0x59, 0xcc, 0x5a, 0x9a, 0x64, 0x0f, 0xea, 0x0b, 0xc4, 0x7e, 0xdd, + 0xd4, 0xd6, 0x4f, 0x7a, 0x07, 0x3d, 0x27, 0x61, 0x91, 0x5c, 0x60, 0xf2, 0x54, 0x7b, 0x7f, 0x53, + 0xd6, 0x06, 0xb8, 0xf4, 0xf8, 0x53, 0x15, 0x8b, 0xbc, 0x5a, 0x95, 0xa7, 0x85, 0xd6, 0x13, 0x1b, + 0x06, 0xea, 0x6b, 0x06, 0xb4, 0x4d, 0x1d, 0xe8, 0x4e, 0x15, 0xf3, 0xf1, 0xdf, 0x56, 0x3d, 0x83, + 0x7d, 0x43, 0x00, 0x73, 0x95, 0x59, 0xa1, 0x42, 0x59, 0x02, 0x8d, 0x15, 0x93, 0xab, 0x92, 0x57, + 0xfd, 0xa6, 0x43, 0x38, 0xf8, 0x6a, 0x6e, 0x64, 0xaa, 0x98, 0x4a, 0x65, 0x15, 0x7b, 0x08, 0x56, + 0x20, 0x18, 0xc7, 0x7c, 0x37, 0x5b, 0x76, 0x61, 0xd1, 0x31, 0x1c, 0x4c, 0xb3, 0xc8, 0xbd, 0x4d, + 0xc4, 0x52, 0xd3, 0x54, 0xc5, 0xeb, 0x6d, 0x2e, 0x30, 0x93, 0x51, 0xb3, 0x2b, 0x9b, 0x32, 0xe8, + 0x5d, 0xb2, 0x80, 0x45, 0x2e, 0x56, 0xe1, 0x03, 0xe8, 0xa5, 0x91, 0xee, 0x17, 0x79, 0xe1, 0x2a, + 0x06, 0xfe, 0x15, 0x26, 0xaf, 0x60, 0xe7, 0x71, 0x5c, 0xce, 0xc1, 0x63, 0x90, 0xfe, 0xa8, 0x41, + 0x4b, 0x2f, 0xa3, 0xab, 0x8f, 0xef, 0x10, 0xac, 0x15, 0x7a, 0xcb, 0x55, 0x45, 0x62, 0x6e, 0x91, + 0x0b, 0x68, 0x73, 0x2f, 0x41, 0x43, 0x8a, 0x29, 0xb3, 0x3b, 0xee, 0xe5, 0xfb, 0xfd, 0xb1, 0x84, + 0xed, 0x75, 0x04, 0x39, 0x86, 0xb6, 0x66, 0x53, 0x2a, 0x16, 0xc6, 0x86, 0xe2, 0xba, 0xbd, 0x06, + 0xc8, 0x29, 0x34, 0x54, 0x16, 0x63, 0xbf, 0x61, 0xea, 0x14, 0x77, 0xe2, 0x3c, 0x38, 0x59, 0x8c, + 0xb6, 0xf1, 0x6c, 0x68, 0xb9, 0xfd, 0x3b, 0x2d, 0xad, 0xb5, 0x96, 0x14, 0xba, 0xf9, 0xd8, 0x57, + 0x79, 0xdb, 0x4d, 0xe3, 0x7a, 0x84, 0x55, 0xe2, 0xb5, 0xd6, 0xe2, 0x55, 0x87, 0xd2, 0xde, 0x38, + 0x94, 0x13, 0x00, 0x31, 0x5f, 0xa4, 0xd2, 0x65, 0x0a, 0x79, 0x1f, 0x8c, 0x78, 0x1b, 0x08, 0x7d, + 0x0f, 0xff, 0x3b, 0x0f, 0x57, 0x9e, 0x54, 0x22, 0xc9, 0x36, 0xe4, 0x68, 0x26, 0x86, 0x3b, 0x2d, + 0x5e, 0x7d, 0xd0, 0x19, 0xef, 0x96, 0xf3, 0xe4, 0x94, 0xda, 0xa5, 0xfb, 0xfc, 0x18, 0xda, 0x15, + 0x59, 0xa4, 0x09, 0xf5, 0x2f, 0x77, 0xce, 0xde, 0x7f, 0xc4, 0x82, 0xda, 0xf5, 0xe7, 0xbd, 0xad, + 0xcb, 0xf3, 0x6f, 0x83, 0xa5, 0xa7, 0x56, 0xe9, 0x7c, 0xe8, 0x8a, 0x70, 0xc4, 0x53, 0xe9, 0x5f, + 0x98, 0xbf, 0xec, 0x3c, 0x5d, 0x8c, 0x58, 0xaa, 0xc4, 0x12, 0xa3, 0xd1, 0x52, 0x8c, 0x74, 0xed, + 0xb9, 0x65, 0x3c, 0x6f, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x56, 0xd3, 0x2a, 0xa4, 0x05, + 0x00, 0x00, } diff --git a/autogen/go/rusk/basic_fields.pb.go b/autogen/go/rusk/basic_fields.pb.go index 9a94448..284c9f5 100644 --- a/autogen/go/rusk/basic_fields.pb.go +++ b/autogen/go/rusk/basic_fields.pb.go @@ -1,397 +1,237 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: basic_fields.proto package rusk import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type BlsScalar struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *BlsScalar) Reset() { - *x = BlsScalar{} - if protoimpl.UnsafeEnabled { - mi := &file_basic_fields_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *BlsScalar) Reset() { *m = BlsScalar{} } +func (m *BlsScalar) String() string { return proto.CompactTextString(m) } +func (*BlsScalar) ProtoMessage() {} +func (*BlsScalar) Descriptor() ([]byte, []int) { + return fileDescriptor_d26fe2b44342a40e, []int{0} } - -func (x *BlsScalar) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *BlsScalar) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BlsScalar.Unmarshal(m, b) } - -func (*BlsScalar) ProtoMessage() {} - -func (x *BlsScalar) ProtoReflect() protoreflect.Message { - mi := &file_basic_fields_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *BlsScalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BlsScalar.Marshal(b, m, deterministic) } - -// Deprecated: Use BlsScalar.ProtoReflect.Descriptor instead. -func (*BlsScalar) Descriptor() ([]byte, []int) { - return file_basic_fields_proto_rawDescGZIP(), []int{0} +func (m *BlsScalar) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlsScalar.Merge(m, src) +} +func (m *BlsScalar) XXX_Size() int { + return xxx_messageInfo_BlsScalar.Size(m) +} +func (m *BlsScalar) XXX_DiscardUnknown() { + xxx_messageInfo_BlsScalar.DiscardUnknown(m) } -func (x *BlsScalar) GetData() []byte { - if x != nil { - return x.Data +var xxx_messageInfo_BlsScalar proto.InternalMessageInfo + +func (m *BlsScalar) GetData() []byte { + if m != nil { + return m.Data } return nil } type JubJubScalar struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *JubJubScalar) Reset() { - *x = JubJubScalar{} - if protoimpl.UnsafeEnabled { - mi := &file_basic_fields_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *JubJubScalar) Reset() { *m = JubJubScalar{} } +func (m *JubJubScalar) String() string { return proto.CompactTextString(m) } +func (*JubJubScalar) ProtoMessage() {} +func (*JubJubScalar) Descriptor() ([]byte, []int) { + return fileDescriptor_d26fe2b44342a40e, []int{1} } - -func (x *JubJubScalar) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *JubJubScalar) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JubJubScalar.Unmarshal(m, b) } - -func (*JubJubScalar) ProtoMessage() {} - -func (x *JubJubScalar) ProtoReflect() protoreflect.Message { - mi := &file_basic_fields_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *JubJubScalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JubJubScalar.Marshal(b, m, deterministic) } - -// Deprecated: Use JubJubScalar.ProtoReflect.Descriptor instead. -func (*JubJubScalar) Descriptor() ([]byte, []int) { - return file_basic_fields_proto_rawDescGZIP(), []int{1} +func (m *JubJubScalar) XXX_Merge(src proto.Message) { + xxx_messageInfo_JubJubScalar.Merge(m, src) +} +func (m *JubJubScalar) XXX_Size() int { + return xxx_messageInfo_JubJubScalar.Size(m) } +func (m *JubJubScalar) XXX_DiscardUnknown() { + xxx_messageInfo_JubJubScalar.DiscardUnknown(m) +} + +var xxx_messageInfo_JubJubScalar proto.InternalMessageInfo -func (x *JubJubScalar) GetData() []byte { - if x != nil { - return x.Data +func (m *JubJubScalar) GetData() []byte { + if m != nil { + return m.Data } return nil } type JubJubCompressed struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *JubJubCompressed) Reset() { - *x = JubJubCompressed{} - if protoimpl.UnsafeEnabled { - mi := &file_basic_fields_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *JubJubCompressed) Reset() { *m = JubJubCompressed{} } +func (m *JubJubCompressed) String() string { return proto.CompactTextString(m) } +func (*JubJubCompressed) ProtoMessage() {} +func (*JubJubCompressed) Descriptor() ([]byte, []int) { + return fileDescriptor_d26fe2b44342a40e, []int{2} } - -func (x *JubJubCompressed) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *JubJubCompressed) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_JubJubCompressed.Unmarshal(m, b) } - -func (*JubJubCompressed) ProtoMessage() {} - -func (x *JubJubCompressed) ProtoReflect() protoreflect.Message { - mi := &file_basic_fields_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *JubJubCompressed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_JubJubCompressed.Marshal(b, m, deterministic) } - -// Deprecated: Use JubJubCompressed.ProtoReflect.Descriptor instead. -func (*JubJubCompressed) Descriptor() ([]byte, []int) { - return file_basic_fields_proto_rawDescGZIP(), []int{2} +func (m *JubJubCompressed) XXX_Merge(src proto.Message) { + xxx_messageInfo_JubJubCompressed.Merge(m, src) +} +func (m *JubJubCompressed) XXX_Size() int { + return xxx_messageInfo_JubJubCompressed.Size(m) } +func (m *JubJubCompressed) XXX_DiscardUnknown() { + xxx_messageInfo_JubJubCompressed.DiscardUnknown(m) +} + +var xxx_messageInfo_JubJubCompressed proto.InternalMessageInfo -func (x *JubJubCompressed) GetData() []byte { - if x != nil { - return x.Data +func (m *JubJubCompressed) GetData() []byte { + if m != nil { + return m.Data } return nil } type PoseidonCipher struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PoseidonCipher) Reset() { - *x = PoseidonCipher{} - if protoimpl.UnsafeEnabled { - mi := &file_basic_fields_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PoseidonCipher) Reset() { *m = PoseidonCipher{} } +func (m *PoseidonCipher) String() string { return proto.CompactTextString(m) } +func (*PoseidonCipher) ProtoMessage() {} +func (*PoseidonCipher) Descriptor() ([]byte, []int) { + return fileDescriptor_d26fe2b44342a40e, []int{3} } - -func (x *PoseidonCipher) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PoseidonCipher) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PoseidonCipher.Unmarshal(m, b) } - -func (*PoseidonCipher) ProtoMessage() {} - -func (x *PoseidonCipher) ProtoReflect() protoreflect.Message { - mi := &file_basic_fields_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *PoseidonCipher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PoseidonCipher.Marshal(b, m, deterministic) } - -// Deprecated: Use PoseidonCipher.ProtoReflect.Descriptor instead. -func (*PoseidonCipher) Descriptor() ([]byte, []int) { - return file_basic_fields_proto_rawDescGZIP(), []int{3} +func (m *PoseidonCipher) XXX_Merge(src proto.Message) { + xxx_messageInfo_PoseidonCipher.Merge(m, src) +} +func (m *PoseidonCipher) XXX_Size() int { + return xxx_messageInfo_PoseidonCipher.Size(m) } +func (m *PoseidonCipher) XXX_DiscardUnknown() { + xxx_messageInfo_PoseidonCipher.DiscardUnknown(m) +} + +var xxx_messageInfo_PoseidonCipher proto.InternalMessageInfo -func (x *PoseidonCipher) GetData() []byte { - if x != nil { - return x.Data +func (m *PoseidonCipher) GetData() []byte { + if m != nil { + return m.Data } return nil } type Proof struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Proof) Reset() { - *x = Proof{} - if protoimpl.UnsafeEnabled { - mi := &file_basic_fields_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Proof) Reset() { *m = Proof{} } +func (m *Proof) String() string { return proto.CompactTextString(m) } +func (*Proof) ProtoMessage() {} +func (*Proof) Descriptor() ([]byte, []int) { + return fileDescriptor_d26fe2b44342a40e, []int{4} } - -func (x *Proof) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Proof) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Proof.Unmarshal(m, b) } - -func (*Proof) ProtoMessage() {} - -func (x *Proof) ProtoReflect() protoreflect.Message { - mi := &file_basic_fields_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Proof.Marshal(b, m, deterministic) } - -// Deprecated: Use Proof.ProtoReflect.Descriptor instead. -func (*Proof) Descriptor() ([]byte, []int) { - return file_basic_fields_proto_rawDescGZIP(), []int{4} +func (m *Proof) XXX_Merge(src proto.Message) { + xxx_messageInfo_Proof.Merge(m, src) } - -func (x *Proof) GetData() []byte { - if x != nil { - return x.Data - } - return nil +func (m *Proof) XXX_Size() int { + return xxx_messageInfo_Proof.Size(m) } - -var File_basic_fields_proto protoreflect.FileDescriptor - -var file_basic_fields_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, 0x73, 0x6b, 0x22, 0x1f, 0x0a, 0x09, 0x42, 0x6c, - 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x22, 0x0a, 0x0c, 0x4a, - 0x75, 0x62, 0x4a, 0x75, 0x62, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, - 0x26, 0x0a, 0x10, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, - 0x73, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x24, 0x0a, 0x0e, 0x50, 0x6f, 0x73, 0x65, 0x69, - 0x64, 0x6f, 0x6e, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x1b, 0x0a, - 0x05, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x6e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x3b, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func (m *Proof) XXX_DiscardUnknown() { + xxx_messageInfo_Proof.DiscardUnknown(m) } -var ( - file_basic_fields_proto_rawDescOnce sync.Once - file_basic_fields_proto_rawDescData = file_basic_fields_proto_rawDesc -) - -func file_basic_fields_proto_rawDescGZIP() []byte { - file_basic_fields_proto_rawDescOnce.Do(func() { - file_basic_fields_proto_rawDescData = protoimpl.X.CompressGZIP(file_basic_fields_proto_rawDescData) - }) - return file_basic_fields_proto_rawDescData -} +var xxx_messageInfo_Proof proto.InternalMessageInfo -var file_basic_fields_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_basic_fields_proto_goTypes = []interface{}{ - (*BlsScalar)(nil), // 0: rusk.BlsScalar - (*JubJubScalar)(nil), // 1: rusk.JubJubScalar - (*JubJubCompressed)(nil), // 2: rusk.JubJubCompressed - (*PoseidonCipher)(nil), // 3: rusk.PoseidonCipher - (*Proof)(nil), // 4: rusk.Proof -} -var file_basic_fields_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name +func (m *Proof) GetData() []byte { + if m != nil { + return m.Data + } + return nil } -func init() { file_basic_fields_proto_init() } -func file_basic_fields_proto_init() { - if File_basic_fields_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_basic_fields_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlsScalar); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_basic_fields_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*JubJubScalar); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_basic_fields_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*JubJubCompressed); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_basic_fields_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PoseidonCipher); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_basic_fields_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Proof); 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_basic_fields_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_basic_fields_proto_goTypes, - DependencyIndexes: file_basic_fields_proto_depIdxs, - MessageInfos: file_basic_fields_proto_msgTypes, - }.Build() - File_basic_fields_proto = out.File - file_basic_fields_proto_rawDesc = nil - file_basic_fields_proto_goTypes = nil - file_basic_fields_proto_depIdxs = nil +func init() { + proto.RegisterType((*BlsScalar)(nil), "rusk.BlsScalar") + proto.RegisterType((*JubJubScalar)(nil), "rusk.JubJubScalar") + proto.RegisterType((*JubJubCompressed)(nil), "rusk.JubJubCompressed") + proto.RegisterType((*PoseidonCipher)(nil), "rusk.PoseidonCipher") + proto.RegisterType((*Proof)(nil), "rusk.Proof") +} + +func init() { proto.RegisterFile("basic_fields.proto", fileDescriptor_d26fe2b44342a40e) } + +var fileDescriptor_d26fe2b44342a40e = []byte{ + // 183 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0x4a, 0x2c, 0xce, + 0x4c, 0x8e, 0x4f, 0xcb, 0x4c, 0xcd, 0x49, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, + 0x29, 0x2a, 0x2d, 0xce, 0x56, 0x92, 0xe7, 0xe2, 0x74, 0xca, 0x29, 0x0e, 0x4e, 0x4e, 0xcc, 0x49, + 0x2c, 0x12, 0x12, 0xe2, 0x62, 0x49, 0x49, 0x2c, 0x49, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, + 0x02, 0xb3, 0x95, 0x94, 0xb8, 0x78, 0xbc, 0x4a, 0x93, 0xbc, 0x4a, 0x93, 0xf0, 0xa8, 0x51, 0xe3, + 0x12, 0x80, 0xa8, 0x71, 0xce, 0xcf, 0x2d, 0x28, 0x4a, 0x2d, 0x2e, 0x4e, 0x4d, 0xc1, 0xaa, 0x4e, + 0x85, 0x8b, 0x2f, 0x20, 0xbf, 0x38, 0x35, 0x33, 0x25, 0x3f, 0xcf, 0x39, 0xb3, 0x20, 0x23, 0x15, + 0xbb, 0x69, 0xd2, 0x5c, 0xac, 0x01, 0x45, 0xf9, 0xf9, 0x69, 0xd8, 0x24, 0x9d, 0xb4, 0xa2, 0x34, + 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x53, 0x4a, 0x8b, 0xb3, 0x75, + 0xf3, 0x52, 0x4b, 0xca, 0xf3, 0x8b, 0xb2, 0xf5, 0x41, 0xfe, 0xd1, 0x2d, 0x4e, 0xce, 0x48, 0xcd, + 0x4d, 0xb4, 0x06, 0xb1, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x85, + 0x2b, 0x20, 0x3d, 0xfe, 0x00, 0x00, 0x00, } diff --git a/autogen/go/rusk/bid.mock.go b/autogen/go/rusk/bid.mock.go new file mode 100644 index 0000000..3f64701 --- /dev/null +++ b/autogen/go/rusk/bid.mock.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: bid.proto + +package rusk + +import ( + fmt "fmt" + math "math" + proto "github.com/gogo/protobuf/proto" + context "context" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type BidServiceMock struct{} + +func (m *BidServiceMock) NewBid(ctx context.Context, req *BidTransactionRequest) (*BidTransaction, error) { + res := + &BidTransaction{ + Bid: &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 654, + }, + BidHash: &BlsScalar{}, + } + return res, nil +} +func (m *BidServiceMock) FindBid(ctx context.Context, req *FindBidRequest) (*BidList, error) { + res := + &BidList{ + BidList: []*Bid{ + &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 961, + }, + &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 450, + }, + &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 231, + }, + &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 226, + }, + &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 598, + }, + &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 637, + }, + &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 516, + }, + &Bid{ + EncryptedData: &PoseidonCipher{}, + HashedSecret: &BlsScalar{}, + Nonce: &BlsScalar{}, + PkR: &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + }, + Commitment: &JubJubCompressed{}, + ElegibilityTs: &BlsScalar{}, + ExpirationTs: &BlsScalar{}, + BidTreeStorageIndex: 139, + }, + }, + BidHashList: []*BlsScalar{ + &BlsScalar{}, + &BlsScalar{}, + &BlsScalar{}, + &BlsScalar{}, + &BlsScalar{}, + &BlsScalar{}, + &BlsScalar{}, + &BlsScalar{}, + }, + } + return res, nil +} diff --git a/autogen/go/rusk/bid.pb.go b/autogen/go/rusk/bid.pb.go index bfcf876..90152c2 100644 --- a/autogen/go/rusk/bid.pb.go +++ b/autogen/go/rusk/bid.pb.go @@ -1,620 +1,401 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: bid.proto package rusk import ( context "context" - proto "github.com/golang/protobuf/proto" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Bid representation type Bid struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EncryptedData *PoseidonCipher `protobuf:"bytes,1,opt,name=encrypted_data,json=encryptedData,proto3" json:"encrypted_data,omitempty"` - HashedSecret *BlsScalar `protobuf:"bytes,2,opt,name=hashed_secret,json=hashedSecret,proto3" json:"hashed_secret,omitempty"` - Nonce *BlsScalar `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` - PkR *StealthAddress `protobuf:"bytes,4,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` - Commitment *JubJubCompressed `protobuf:"bytes,5,opt,name=commitment,proto3" json:"commitment,omitempty"` - ElegibilityTs *BlsScalar `protobuf:"bytes,6,opt,name=elegibility_ts,json=elegibilityTs,proto3" json:"elegibility_ts,omitempty"` - ExpirationTs *BlsScalar `protobuf:"bytes,7,opt,name=expiration_ts,json=expirationTs,proto3" json:"expiration_ts,omitempty"` - BidTreeStorageIndex uint64 `protobuf:"varint,8,opt,name=bid_tree_storage_index,json=bidTreeStorageIndex,proto3" json:"bid_tree_storage_index,omitempty"` -} - -func (x *Bid) Reset() { - *x = Bid{} - if protoimpl.UnsafeEnabled { - mi := &file_bid_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + EncryptedData *PoseidonCipher `protobuf:"bytes,1,opt,name=encrypted_data,json=encryptedData,proto3" json:"encrypted_data,omitempty"` + HashedSecret *BlsScalar `protobuf:"bytes,2,opt,name=hashed_secret,json=hashedSecret,proto3" json:"hashed_secret,omitempty"` + Nonce *BlsScalar `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` + PkR *StealthAddress `protobuf:"bytes,4,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` + Commitment *JubJubCompressed `protobuf:"bytes,5,opt,name=commitment,proto3" json:"commitment,omitempty"` + ElegibilityTs *BlsScalar `protobuf:"bytes,6,opt,name=elegibility_ts,json=elegibilityTs,proto3" json:"elegibility_ts,omitempty"` + ExpirationTs *BlsScalar `protobuf:"bytes,7,opt,name=expiration_ts,json=expirationTs,proto3" json:"expiration_ts,omitempty"` + BidTreeStorageIndex uint64 `protobuf:"varint,8,opt,name=bid_tree_storage_index,json=bidTreeStorageIndex,proto3" json:"bid_tree_storage_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Bid) Reset() { *m = Bid{} } +func (m *Bid) String() string { return proto.CompactTextString(m) } +func (*Bid) ProtoMessage() {} +func (*Bid) Descriptor() ([]byte, []int) { + return fileDescriptor_25b9ce1844b80bbf, []int{0} } - -func (x *Bid) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Bid) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bid.Unmarshal(m, b) } - -func (*Bid) ProtoMessage() {} - -func (x *Bid) ProtoReflect() protoreflect.Message { - mi := &file_bid_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Bid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bid.Marshal(b, m, deterministic) } - -// Deprecated: Use Bid.ProtoReflect.Descriptor instead. -func (*Bid) Descriptor() ([]byte, []int) { - return file_bid_proto_rawDescGZIP(), []int{0} +func (m *Bid) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bid.Merge(m, src) +} +func (m *Bid) XXX_Size() int { + return xxx_messageInfo_Bid.Size(m) } +func (m *Bid) XXX_DiscardUnknown() { + xxx_messageInfo_Bid.DiscardUnknown(m) +} + +var xxx_messageInfo_Bid proto.InternalMessageInfo -func (x *Bid) GetEncryptedData() *PoseidonCipher { - if x != nil { - return x.EncryptedData +func (m *Bid) GetEncryptedData() *PoseidonCipher { + if m != nil { + return m.EncryptedData } return nil } -func (x *Bid) GetHashedSecret() *BlsScalar { - if x != nil { - return x.HashedSecret +func (m *Bid) GetHashedSecret() *BlsScalar { + if m != nil { + return m.HashedSecret } return nil } -func (x *Bid) GetNonce() *BlsScalar { - if x != nil { - return x.Nonce +func (m *Bid) GetNonce() *BlsScalar { + if m != nil { + return m.Nonce } return nil } -func (x *Bid) GetPkR() *StealthAddress { - if x != nil { - return x.PkR +func (m *Bid) GetPkR() *StealthAddress { + if m != nil { + return m.PkR } return nil } -func (x *Bid) GetCommitment() *JubJubCompressed { - if x != nil { - return x.Commitment +func (m *Bid) GetCommitment() *JubJubCompressed { + if m != nil { + return m.Commitment } return nil } -func (x *Bid) GetElegibilityTs() *BlsScalar { - if x != nil { - return x.ElegibilityTs +func (m *Bid) GetElegibilityTs() *BlsScalar { + if m != nil { + return m.ElegibilityTs } return nil } -func (x *Bid) GetExpirationTs() *BlsScalar { - if x != nil { - return x.ExpirationTs +func (m *Bid) GetExpirationTs() *BlsScalar { + if m != nil { + return m.ExpirationTs } return nil } -func (x *Bid) GetBidTreeStorageIndex() uint64 { - if x != nil { - return x.BidTreeStorageIndex +func (m *Bid) GetBidTreeStorageIndex() uint64 { + if m != nil { + return m.BidTreeStorageIndex } return 0 } // Used to Request the creation of a Bid type BidTransactionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - K *BlsScalar `protobuf:"bytes,1,opt,name=k,proto3" json:"k,omitempty"` Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` Secret *JubJubCompressed `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` PkR *StealthAddress `protobuf:"bytes,4,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` Seed *BlsScalar `protobuf:"bytes,5,opt,name=seed,proto3" json:"seed,omitempty"` LatestConsensusRound uint64 `protobuf:"fixed64,6,opt,name=latest_consensus_round,json=latestConsensusRound,proto3" json:"latest_consensus_round,omitempty"` - LatestConsensusStep uint64 `protobuf:"fixed64,7,opt,name=latest_consensus_step,json=latestConsensusStep,proto3" json:"latest_consensus_step,omitempty"` //rusk.Transaction tx = 8; + LatestConsensusStep uint64 `protobuf:"fixed64,7,opt,name=latest_consensus_step,json=latestConsensusStep,proto3" json:"latest_consensus_step,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *BidTransactionRequest) Reset() { - *x = BidTransactionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_bid_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *BidTransactionRequest) Reset() { *m = BidTransactionRequest{} } +func (m *BidTransactionRequest) String() string { return proto.CompactTextString(m) } +func (*BidTransactionRequest) ProtoMessage() {} +func (*BidTransactionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25b9ce1844b80bbf, []int{1} } - -func (x *BidTransactionRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *BidTransactionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BidTransactionRequest.Unmarshal(m, b) } - -func (*BidTransactionRequest) ProtoMessage() {} - -func (x *BidTransactionRequest) ProtoReflect() protoreflect.Message { - mi := &file_bid_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *BidTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BidTransactionRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use BidTransactionRequest.ProtoReflect.Descriptor instead. -func (*BidTransactionRequest) Descriptor() ([]byte, []int) { - return file_bid_proto_rawDescGZIP(), []int{1} +func (m *BidTransactionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BidTransactionRequest.Merge(m, src) +} +func (m *BidTransactionRequest) XXX_Size() int { + return xxx_messageInfo_BidTransactionRequest.Size(m) +} +func (m *BidTransactionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BidTransactionRequest.DiscardUnknown(m) } -func (x *BidTransactionRequest) GetK() *BlsScalar { - if x != nil { - return x.K +var xxx_messageInfo_BidTransactionRequest proto.InternalMessageInfo + +func (m *BidTransactionRequest) GetK() *BlsScalar { + if m != nil { + return m.K } return nil } -func (x *BidTransactionRequest) GetValue() uint64 { - if x != nil { - return x.Value +func (m *BidTransactionRequest) GetValue() uint64 { + if m != nil { + return m.Value } return 0 } -func (x *BidTransactionRequest) GetSecret() *JubJubCompressed { - if x != nil { - return x.Secret +func (m *BidTransactionRequest) GetSecret() *JubJubCompressed { + if m != nil { + return m.Secret } return nil } -func (x *BidTransactionRequest) GetPkR() *StealthAddress { - if x != nil { - return x.PkR +func (m *BidTransactionRequest) GetPkR() *StealthAddress { + if m != nil { + return m.PkR } return nil } -func (x *BidTransactionRequest) GetSeed() *BlsScalar { - if x != nil { - return x.Seed +func (m *BidTransactionRequest) GetSeed() *BlsScalar { + if m != nil { + return m.Seed } return nil } -func (x *BidTransactionRequest) GetLatestConsensusRound() uint64 { - if x != nil { - return x.LatestConsensusRound +func (m *BidTransactionRequest) GetLatestConsensusRound() uint64 { + if m != nil { + return m.LatestConsensusRound } return 0 } -func (x *BidTransactionRequest) GetLatestConsensusStep() uint64 { - if x != nil { - return x.LatestConsensusStep +func (m *BidTransactionRequest) GetLatestConsensusStep() uint64 { + if m != nil { + return m.LatestConsensusStep } return 0 } type BidTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"` - BidHash *BlsScalar `protobuf:"bytes,2,opt,name=bid_hash,json=bidHash,proto3" json:"bid_hash,omitempty"` // rusk.Transaction tx = 3; + Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"` + BidHash *BlsScalar `protobuf:"bytes,2,opt,name=bid_hash,json=bidHash,proto3" json:"bid_hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *BidTransaction) Reset() { - *x = BidTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_bid_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *BidTransaction) Reset() { *m = BidTransaction{} } +func (m *BidTransaction) String() string { return proto.CompactTextString(m) } +func (*BidTransaction) ProtoMessage() {} +func (*BidTransaction) Descriptor() ([]byte, []int) { + return fileDescriptor_25b9ce1844b80bbf, []int{2} } - -func (x *BidTransaction) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *BidTransaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BidTransaction.Unmarshal(m, b) } - -func (*BidTransaction) ProtoMessage() {} - -func (x *BidTransaction) ProtoReflect() protoreflect.Message { - mi := &file_bid_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *BidTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BidTransaction.Marshal(b, m, deterministic) } - -// Deprecated: Use BidTransaction.ProtoReflect.Descriptor instead. -func (*BidTransaction) Descriptor() ([]byte, []int) { - return file_bid_proto_rawDescGZIP(), []int{2} +func (m *BidTransaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_BidTransaction.Merge(m, src) +} +func (m *BidTransaction) XXX_Size() int { + return xxx_messageInfo_BidTransaction.Size(m) } +func (m *BidTransaction) XXX_DiscardUnknown() { + xxx_messageInfo_BidTransaction.DiscardUnknown(m) +} + +var xxx_messageInfo_BidTransaction proto.InternalMessageInfo -func (x *BidTransaction) GetBid() *Bid { - if x != nil { - return x.Bid +func (m *BidTransaction) GetBid() *Bid { + if m != nil { + return m.Bid } return nil } -func (x *BidTransaction) GetBidHash() *BlsScalar { - if x != nil { - return x.BidHash +func (m *BidTransaction) GetBidHash() *BlsScalar { + if m != nil { + return m.BidHash } return nil } type FindBidRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *StealthAddress `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Addr *StealthAddress `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *FindBidRequest) Reset() { - *x = FindBidRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_bid_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *FindBidRequest) Reset() { *m = FindBidRequest{} } +func (m *FindBidRequest) String() string { return proto.CompactTextString(m) } +func (*FindBidRequest) ProtoMessage() {} +func (*FindBidRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25b9ce1844b80bbf, []int{3} } - -func (x *FindBidRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *FindBidRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FindBidRequest.Unmarshal(m, b) } - -func (*FindBidRequest) ProtoMessage() {} - -func (x *FindBidRequest) ProtoReflect() protoreflect.Message { - mi := &file_bid_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *FindBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FindBidRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use FindBidRequest.ProtoReflect.Descriptor instead. -func (*FindBidRequest) Descriptor() ([]byte, []int) { - return file_bid_proto_rawDescGZIP(), []int{3} +func (m *FindBidRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindBidRequest.Merge(m, src) +} +func (m *FindBidRequest) XXX_Size() int { + return xxx_messageInfo_FindBidRequest.Size(m) } +func (m *FindBidRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FindBidRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FindBidRequest proto.InternalMessageInfo -func (x *FindBidRequest) GetAddr() *StealthAddress { - if x != nil { - return x.Addr +func (m *FindBidRequest) GetAddr() *StealthAddress { + if m != nil { + return m.Addr } return nil } type BidList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BidList []*Bid `protobuf:"bytes,1,rep,name=bid_list,json=bidList,proto3" json:"bid_list,omitempty"` - BidHashList []*BlsScalar `protobuf:"bytes,2,rep,name=bid_hash_list,json=bidHashList,proto3" json:"bid_hash_list,omitempty"` + BidList []*Bid `protobuf:"bytes,1,rep,name=bid_list,json=bidList,proto3" json:"bid_list,omitempty"` + BidHashList []*BlsScalar `protobuf:"bytes,2,rep,name=bid_hash_list,json=bidHashList,proto3" json:"bid_hash_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *BidList) Reset() { - *x = BidList{} - if protoimpl.UnsafeEnabled { - mi := &file_bid_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *BidList) Reset() { *m = BidList{} } +func (m *BidList) String() string { return proto.CompactTextString(m) } +func (*BidList) ProtoMessage() {} +func (*BidList) Descriptor() ([]byte, []int) { + return fileDescriptor_25b9ce1844b80bbf, []int{4} } - -func (x *BidList) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *BidList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BidList.Unmarshal(m, b) } - -func (*BidList) ProtoMessage() {} - -func (x *BidList) ProtoReflect() protoreflect.Message { - mi := &file_bid_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *BidList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BidList.Marshal(b, m, deterministic) } - -// Deprecated: Use BidList.ProtoReflect.Descriptor instead. -func (*BidList) Descriptor() ([]byte, []int) { - return file_bid_proto_rawDescGZIP(), []int{4} +func (m *BidList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BidList.Merge(m, src) +} +func (m *BidList) XXX_Size() int { + return xxx_messageInfo_BidList.Size(m) +} +func (m *BidList) XXX_DiscardUnknown() { + xxx_messageInfo_BidList.DiscardUnknown(m) } -func (x *BidList) GetBidList() []*Bid { - if x != nil { - return x.BidList +var xxx_messageInfo_BidList proto.InternalMessageInfo + +func (m *BidList) GetBidList() []*Bid { + if m != nil { + return m.BidList } return nil } -func (x *BidList) GetBidHashList() []*BlsScalar { - if x != nil { - return x.BidHashList +func (m *BidList) GetBidHashList() []*BlsScalar { + if m != nil { + return m.BidHashList } return nil } -var File_bid_proto protoreflect.FileDescriptor - -var file_bid_proto_rawDesc = []byte{ - 0x0a, 0x09, 0x62, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, 0x73, - 0x6b, 0x1a, 0x12, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xa3, 0x03, 0x0a, 0x03, 0x42, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x0e, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x6f, 0x73, 0x65, 0x69, 0x64, 0x6f, - 0x6e, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, - 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0c, - 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x05, - 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, - 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x05, 0x6e, 0x6f, - 0x6e, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x70, 0x6b, 0x5f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x65, 0x61, 0x6c, 0x74, 0x68, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x03, 0x70, 0x6b, 0x52, 0x12, 0x36, 0x0a, 0x0a, - 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, - 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x0e, 0x65, 0x6c, 0x65, 0x67, 0x69, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x5f, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, - 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0d, 0x65, - 0x6c, 0x65, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x54, 0x73, 0x12, 0x34, 0x0a, 0x0d, - 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x73, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, - 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x73, 0x12, 0x33, 0x0a, 0x16, 0x62, 0x69, 0x64, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x13, 0x62, 0x69, 0x64, 0x54, 0x72, 0x65, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0xb4, 0x02, 0x0a, 0x15, 0x42, 0x69, 0x64, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1d, 0x0a, 0x01, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, - 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x01, 0x6b, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, - 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x06, - 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x27, 0x0a, 0x04, 0x70, 0x6b, 0x5f, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x65, 0x61, - 0x6c, 0x74, 0x68, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x03, 0x70, 0x6b, 0x52, 0x12, - 0x23, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x04, - 0x73, 0x65, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, - 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x06, 0x52, 0x14, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x6c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x73, - 0x74, 0x65, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x06, 0x52, 0x13, 0x6c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x53, 0x74, 0x65, 0x70, 0x22, 0x59, - 0x0a, 0x0e, 0x42, 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1b, 0x0a, 0x03, 0x62, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, - 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x69, 0x64, 0x52, 0x03, 0x62, 0x69, 0x64, 0x12, 0x2a, 0x0a, - 0x08, 0x62, 0x69, 0x64, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, - 0x52, 0x07, 0x62, 0x69, 0x64, 0x48, 0x61, 0x73, 0x68, 0x22, 0x3a, 0x0a, 0x0e, 0x46, 0x69, 0x6e, - 0x64, 0x42, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, - 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, - 0x2e, 0x53, 0x74, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x04, 0x61, 0x64, 0x64, 0x72, 0x22, 0x64, 0x0a, 0x07, 0x42, 0x69, 0x64, 0x4c, 0x69, 0x73, 0x74, - 0x12, 0x24, 0x0a, 0x08, 0x62, 0x69, 0x64, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x69, 0x64, 0x52, 0x07, 0x62, - 0x69, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x0d, 0x62, 0x69, 0x64, 0x5f, 0x68, 0x61, - 0x73, 0x68, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0b, - 0x62, 0x69, 0x64, 0x48, 0x61, 0x73, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x32, 0x7d, 0x0a, 0x0a, 0x42, - 0x69, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x4e, 0x65, 0x77, - 0x42, 0x69, 0x64, 0x12, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x69, 0x64, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x69, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x30, 0x0a, 0x07, 0x46, 0x69, 0x6e, 0x64, - 0x42, 0x69, 0x64, 0x12, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x42, - 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x72, 0x75, 0x73, 0x6b, - 0x2e, 0x42, 0x69, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x6e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x3b, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_bid_proto_rawDescOnce sync.Once - file_bid_proto_rawDescData = file_bid_proto_rawDesc -) - -func file_bid_proto_rawDescGZIP() []byte { - file_bid_proto_rawDescOnce.Do(func() { - file_bid_proto_rawDescData = protoimpl.X.CompressGZIP(file_bid_proto_rawDescData) - }) - return file_bid_proto_rawDescData -} - -var file_bid_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_bid_proto_goTypes = []interface{}{ - (*Bid)(nil), // 0: rusk.Bid - (*BidTransactionRequest)(nil), // 1: rusk.BidTransactionRequest - (*BidTransaction)(nil), // 2: rusk.BidTransaction - (*FindBidRequest)(nil), // 3: rusk.FindBidRequest - (*BidList)(nil), // 4: rusk.BidList - (*PoseidonCipher)(nil), // 5: rusk.PoseidonCipher - (*BlsScalar)(nil), // 6: rusk.BlsScalar - (*StealthAddress)(nil), // 7: rusk.StealthAddress - (*JubJubCompressed)(nil), // 8: rusk.JubJubCompressed -} -var file_bid_proto_depIdxs = []int32{ - 5, // 0: rusk.Bid.encrypted_data:type_name -> rusk.PoseidonCipher - 6, // 1: rusk.Bid.hashed_secret:type_name -> rusk.BlsScalar - 6, // 2: rusk.Bid.nonce:type_name -> rusk.BlsScalar - 7, // 3: rusk.Bid.pk_r:type_name -> rusk.StealthAddress - 8, // 4: rusk.Bid.commitment:type_name -> rusk.JubJubCompressed - 6, // 5: rusk.Bid.elegibility_ts:type_name -> rusk.BlsScalar - 6, // 6: rusk.Bid.expiration_ts:type_name -> rusk.BlsScalar - 6, // 7: rusk.BidTransactionRequest.k:type_name -> rusk.BlsScalar - 8, // 8: rusk.BidTransactionRequest.secret:type_name -> rusk.JubJubCompressed - 7, // 9: rusk.BidTransactionRequest.pk_r:type_name -> rusk.StealthAddress - 6, // 10: rusk.BidTransactionRequest.seed:type_name -> rusk.BlsScalar - 0, // 11: rusk.BidTransaction.bid:type_name -> rusk.Bid - 6, // 12: rusk.BidTransaction.bid_hash:type_name -> rusk.BlsScalar - 7, // 13: rusk.FindBidRequest.addr:type_name -> rusk.StealthAddress - 0, // 14: rusk.BidList.bid_list:type_name -> rusk.Bid - 6, // 15: rusk.BidList.bid_hash_list:type_name -> rusk.BlsScalar - 1, // 16: rusk.BidService.NewBid:input_type -> rusk.BidTransactionRequest - 3, // 17: rusk.BidService.FindBid:input_type -> rusk.FindBidRequest - 2, // 18: rusk.BidService.NewBid:output_type -> rusk.BidTransaction - 4, // 19: rusk.BidService.FindBid:output_type -> rusk.BidList - 18, // [18:20] is the sub-list for method output_type - 16, // [16:18] is the sub-list for method input_type - 16, // [16:16] is the sub-list for extension type_name - 16, // [16:16] is the sub-list for extension extendee - 0, // [0:16] is the sub-list for field type_name -} - -func init() { file_bid_proto_init() } -func file_bid_proto_init() { - if File_bid_proto != nil { - return - } - file_basic_fields_proto_init() - file_keys_proto_init() - if !protoimpl.UnsafeEnabled { - file_bid_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Bid); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bid_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BidTransactionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bid_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BidTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bid_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindBidRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bid_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BidList); 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_bid_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_bid_proto_goTypes, - DependencyIndexes: file_bid_proto_depIdxs, - MessageInfos: file_bid_proto_msgTypes, - }.Build() - File_bid_proto = out.File - file_bid_proto_rawDesc = nil - file_bid_proto_goTypes = nil - file_bid_proto_depIdxs = nil +func init() { + proto.RegisterType((*Bid)(nil), "rusk.Bid") + proto.RegisterType((*BidTransactionRequest)(nil), "rusk.BidTransactionRequest") + proto.RegisterType((*BidTransaction)(nil), "rusk.BidTransaction") + proto.RegisterType((*FindBidRequest)(nil), "rusk.FindBidRequest") + proto.RegisterType((*BidList)(nil), "rusk.BidList") +} + +func init() { proto.RegisterFile("bid.proto", fileDescriptor_25b9ce1844b80bbf) } + +var fileDescriptor_25b9ce1844b80bbf = []byte{ + // 618 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x4f, 0xdb, 0x4c, + 0x10, 0xc6, 0x09, 0x36, 0x09, 0x0c, 0x6f, 0xf2, 0x4a, 0x4b, 0x40, 0x56, 0x50, 0x25, 0xe4, 0xb6, + 0x6a, 0x84, 0x44, 0xa8, 0x00, 0x71, 0x28, 0xea, 0xa1, 0xa1, 0xaa, 0x5a, 0x54, 0x55, 0x95, 0xc3, + 0xa5, 0xbd, 0x58, 0x6b, 0xef, 0x14, 0xaf, 0xec, 0x78, 0xdd, 0x9d, 0x35, 0x7f, 0x0e, 0xfd, 0x34, + 0xfd, 0x0a, 0xfd, 0x80, 0xd5, 0xda, 0x86, 0x12, 0x12, 0xaa, 0xde, 0x1c, 0x3f, 0xbf, 0xc7, 0xf3, + 0xcc, 0xcc, 0x6e, 0x60, 0x2d, 0x92, 0x62, 0x54, 0x68, 0x65, 0x14, 0x73, 0x75, 0x49, 0xe9, 0x80, + 0x45, 0x9c, 0x64, 0x1c, 0x7e, 0x93, 0x98, 0x09, 0xaa, 0x95, 0x01, 0xa4, 0x78, 0xd3, 0x3c, 0xfb, + 0x3f, 0x1d, 0x70, 0xc6, 0x52, 0xb0, 0x13, 0xe8, 0x61, 0x1e, 0xeb, 0x9b, 0xc2, 0xa0, 0x08, 0x05, + 0x37, 0xdc, 0x6b, 0xed, 0xb4, 0x86, 0xeb, 0x07, 0xfd, 0x91, 0xfd, 0xcc, 0xe8, 0xb3, 0x22, 0x94, + 0x42, 0xe5, 0xa7, 0xb2, 0x48, 0x50, 0x07, 0xdd, 0x3b, 0xf6, 0x2d, 0x37, 0x9c, 0x1d, 0x41, 0x37, + 0xe1, 0x94, 0xa0, 0x08, 0x09, 0x63, 0x8d, 0xc6, 0x5b, 0xae, 0xbc, 0xff, 0xd7, 0xde, 0x71, 0x46, + 0x93, 0x98, 0x67, 0x5c, 0x07, 0xff, 0xd5, 0xd4, 0xa4, 0x82, 0xd8, 0x73, 0x58, 0xc9, 0x55, 0x1e, + 0xa3, 0xe7, 0x2c, 0xa6, 0x6b, 0x95, 0xbd, 0x00, 0xb7, 0x48, 0x43, 0xed, 0xb9, 0xf7, 0xf3, 0x4c, + 0x0c, 0xf2, 0xcc, 0x24, 0x6f, 0x84, 0xd0, 0x48, 0x14, 0x38, 0x45, 0x1a, 0xb0, 0x63, 0x80, 0x58, + 0x4d, 0xa7, 0xd2, 0x4c, 0x31, 0x37, 0xde, 0x4a, 0x85, 0x6f, 0xd5, 0xf8, 0x59, 0x19, 0x9d, 0x95, + 0xd1, 0xa9, 0x9a, 0x16, 0x16, 0x47, 0x11, 0xdc, 0x23, 0xd9, 0x31, 0xf4, 0x30, 0xc3, 0x0b, 0x19, + 0xc9, 0x4c, 0x9a, 0x9b, 0xd0, 0x90, 0xd7, 0x5e, 0x1c, 0xa8, 0x7b, 0x0f, 0x3b, 0x27, 0xdb, 0x35, + 0x5e, 0x17, 0x52, 0x73, 0x23, 0x55, 0x6e, 0x6d, 0x9d, 0x47, 0xba, 0xfe, 0x43, 0x9d, 0x13, 0x3b, + 0x84, 0xad, 0x48, 0x8a, 0xd0, 0x68, 0xc4, 0x90, 0x8c, 0xd2, 0xfc, 0x02, 0x43, 0x99, 0x0b, 0xbc, + 0xf6, 0x56, 0x77, 0x5a, 0x43, 0x37, 0xd8, 0x88, 0xa4, 0x38, 0xd7, 0x88, 0x93, 0x5a, 0xfb, 0x60, + 0x25, 0xff, 0xd7, 0x32, 0x6c, 0x8e, 0xed, 0x7b, 0x9e, 0x13, 0x8f, 0xed, 0x97, 0x02, 0xfc, 0x5e, + 0x22, 0x19, 0xf6, 0x04, 0x5a, 0x69, 0xb3, 0xaa, 0xb9, 0xc2, 0xad, 0x94, 0xf5, 0x61, 0xe5, 0x92, + 0x67, 0x25, 0x56, 0x1b, 0x71, 0x83, 0xfa, 0x07, 0x1b, 0x41, 0xbb, 0x59, 0x94, 0xf3, 0xd7, 0x29, + 0x35, 0xd4, 0xbf, 0xaf, 0xe0, 0x29, 0xb8, 0x84, 0x28, 0x9a, 0xe1, 0xcf, 0x05, 0xaa, 0x44, 0x76, + 0x04, 0x5b, 0x19, 0x37, 0x48, 0x26, 0x8c, 0x55, 0x4e, 0x98, 0x53, 0x49, 0xa1, 0x56, 0x65, 0x2e, + 0xaa, 0xb9, 0xb7, 0x83, 0x7e, 0xad, 0x9e, 0xde, 0x8a, 0x81, 0xd5, 0xd8, 0x01, 0x6c, 0xce, 0xb9, + 0xc8, 0x60, 0x51, 0x4d, 0xbd, 0x1d, 0x6c, 0x3c, 0x30, 0x4d, 0x0c, 0x16, 0xfe, 0x17, 0xe8, 0xcd, + 0x4e, 0x8d, 0x6d, 0x83, 0x13, 0x49, 0xd1, 0x0c, 0x6c, 0xad, 0xc9, 0x27, 0x45, 0x60, 0xdf, 0xb2, + 0x5d, 0x58, 0xb5, 0xab, 0xb1, 0x87, 0xf4, 0xb1, 0x13, 0xdc, 0x89, 0xa4, 0x78, 0xcf, 0x29, 0xf1, + 0x5f, 0x41, 0xef, 0x9d, 0xcc, 0x85, 0xf5, 0x36, 0x9b, 0x18, 0x82, 0xcb, 0x85, 0xd0, 0xb3, 0xf7, + 0xe6, 0xc1, 0x90, 0x2a, 0xc2, 0x17, 0xd0, 0x19, 0x4b, 0xf1, 0x51, 0x92, 0x61, 0xcf, 0xea, 0x92, + 0x99, 0x24, 0xe3, 0xb5, 0x76, 0x9c, 0xd9, 0x50, 0xb6, 0x58, 0x45, 0x1d, 0x42, 0xf7, 0x36, 0x58, + 0x8d, 0x2e, 0x57, 0xe8, 0x5c, 0xba, 0xf5, 0x26, 0x9d, 0x35, 0x1d, 0xfc, 0x00, 0x18, 0x4b, 0x31, + 0x41, 0x7d, 0x29, 0x63, 0x64, 0xaf, 0xa1, 0xfd, 0x09, 0xaf, 0xec, 0x4d, 0xdf, 0xbe, 0x2b, 0x30, + 0x7f, 0x9c, 0x06, 0xfd, 0x45, 0xa2, 0xbf, 0xc4, 0x5e, 0x42, 0xa7, 0x69, 0x97, 0x35, 0xc8, 0x6c, + 0xf7, 0x83, 0xee, 0x9d, 0xd1, 0x16, 0xf7, 0x97, 0xc6, 0xbb, 0x5f, 0x87, 0x17, 0xd2, 0x24, 0x65, + 0x34, 0x8a, 0xd5, 0x74, 0x5f, 0x94, 0x94, 0xee, 0xe5, 0x68, 0xae, 0x94, 0x4e, 0xf7, 0x2d, 0xb9, + 0x47, 0x71, 0x82, 0x53, 0x7e, 0x62, 0x9f, 0xa3, 0x76, 0xf5, 0x5f, 0x74, 0xf8, 0x3b, 0x00, 0x00, + 0xff, 0xff, 0x0a, 0x54, 0xa7, 0x98, 0xbe, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // BidServiceClient is the client API for BidService service. // @@ -627,10 +408,10 @@ type BidServiceClient interface { } type bidServiceClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewBidServiceClient(cc grpc.ClientConnInterface) BidServiceClient { +func NewBidServiceClient(cc *grpc.ClientConn) BidServiceClient { return &bidServiceClient{cc} } @@ -664,10 +445,10 @@ type BidServiceServer interface { type UnimplementedBidServiceServer struct { } -func (*UnimplementedBidServiceServer) NewBid(context.Context, *BidTransactionRequest) (*BidTransaction, error) { +func (*UnimplementedBidServiceServer) NewBid(ctx context.Context, req *BidTransactionRequest) (*BidTransaction, error) { return nil, status.Errorf(codes.Unimplemented, "method NewBid not implemented") } -func (*UnimplementedBidServiceServer) FindBid(context.Context, *FindBidRequest) (*BidList, error) { +func (*UnimplementedBidServiceServer) FindBid(ctx context.Context, req *FindBidRequest) (*BidList, error) { return nil, status.Errorf(codes.Unimplemented, "method FindBid not implemented") } diff --git a/autogen/go/rusk/blindbid.mock.go b/autogen/go/rusk/blindbid.mock.go new file mode 100644 index 0000000..d59f379 --- /dev/null +++ b/autogen/go/rusk/blindbid.mock.go @@ -0,0 +1,35 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: blindbid.proto + +package rusk + +import ( + fmt "fmt" + math "math" + proto "github.com/gogo/protobuf/proto" + context "context" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type BlindBidServiceMock struct{} + +func (m *BlindBidServiceMock) GenerateScore(ctx context.Context, req *GenerateScoreRequest) (*GenerateScoreResponse, error) { + res := + &GenerateScoreResponse{ + BlindbidProof: &Proof{}, + Score: &BlsScalar{}, + ProverIdentity: &BlsScalar{}, + } + return res, nil +} +func (m *BlindBidServiceMock) VerifyScore(ctx context.Context, req *VerifyScoreRequest) (*VerifyScoreResponse, error) { + res := + &VerifyScoreResponse{ + Success: true, + } + return res, nil +} diff --git a/autogen/go/rusk/blindbid.pb.go b/autogen/go/rusk/blindbid.pb.go index 76aef0c..1c2bb25 100644 --- a/autogen/go/rusk/blindbid.pb.go +++ b/autogen/go/rusk/blindbid.pb.go @@ -1,523 +1,335 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: blindbid.proto package rusk import ( context "context" - proto "github.com/golang/protobuf/proto" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type GenerateScoreRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - K *BlsScalar `protobuf:"bytes,1,opt,name=k,proto3" json:"k,omitempty"` - Seed *BlsScalar `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` - Secret *JubJubCompressed `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` - Round uint32 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` - Step uint32 `protobuf:"varint,5,opt,name=step,proto3" json:"step,omitempty"` - IndexStoredBid uint64 `protobuf:"varint,6,opt,name=index_stored_bid,json=indexStoredBid,proto3" json:"index_stored_bid,omitempty"` -} - -func (x *GenerateScoreRequest) Reset() { - *x = GenerateScoreRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_blindbid_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + K *BlsScalar `protobuf:"bytes,1,opt,name=k,proto3" json:"k,omitempty"` + Seed *BlsScalar `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` + Secret *JubJubCompressed `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` + Round uint32 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` + Step uint32 `protobuf:"varint,5,opt,name=step,proto3" json:"step,omitempty"` + IndexStoredBid uint64 `protobuf:"varint,6,opt,name=index_stored_bid,json=indexStoredBid,proto3" json:"index_stored_bid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateScoreRequest) Reset() { *m = GenerateScoreRequest{} } +func (m *GenerateScoreRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateScoreRequest) ProtoMessage() {} +func (*GenerateScoreRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_490c3399c7b8c3f4, []int{0} } - -func (x *GenerateScoreRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GenerateScoreRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateScoreRequest.Unmarshal(m, b) } - -func (*GenerateScoreRequest) ProtoMessage() {} - -func (x *GenerateScoreRequest) ProtoReflect() protoreflect.Message { - mi := &file_blindbid_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GenerateScoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateScoreRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use GenerateScoreRequest.ProtoReflect.Descriptor instead. -func (*GenerateScoreRequest) Descriptor() ([]byte, []int) { - return file_blindbid_proto_rawDescGZIP(), []int{0} +func (m *GenerateScoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateScoreRequest.Merge(m, src) } +func (m *GenerateScoreRequest) XXX_Size() int { + return xxx_messageInfo_GenerateScoreRequest.Size(m) +} +func (m *GenerateScoreRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateScoreRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateScoreRequest proto.InternalMessageInfo -func (x *GenerateScoreRequest) GetK() *BlsScalar { - if x != nil { - return x.K +func (m *GenerateScoreRequest) GetK() *BlsScalar { + if m != nil { + return m.K } return nil } -func (x *GenerateScoreRequest) GetSeed() *BlsScalar { - if x != nil { - return x.Seed +func (m *GenerateScoreRequest) GetSeed() *BlsScalar { + if m != nil { + return m.Seed } return nil } -func (x *GenerateScoreRequest) GetSecret() *JubJubCompressed { - if x != nil { - return x.Secret +func (m *GenerateScoreRequest) GetSecret() *JubJubCompressed { + if m != nil { + return m.Secret } return nil } -func (x *GenerateScoreRequest) GetRound() uint32 { - if x != nil { - return x.Round +func (m *GenerateScoreRequest) GetRound() uint32 { + if m != nil { + return m.Round } return 0 } -func (x *GenerateScoreRequest) GetStep() uint32 { - if x != nil { - return x.Step +func (m *GenerateScoreRequest) GetStep() uint32 { + if m != nil { + return m.Step } return 0 } -func (x *GenerateScoreRequest) GetIndexStoredBid() uint64 { - if x != nil { - return x.IndexStoredBid +func (m *GenerateScoreRequest) GetIndexStoredBid() uint64 { + if m != nil { + return m.IndexStoredBid } return 0 } type GenerateScoreResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BlindbidProof *Proof `protobuf:"bytes,1,opt,name=blindbid_proof,json=blindbidProof,proto3" json:"blindbid_proof,omitempty"` - Score *BlsScalar `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` - ProverIdentity *BlsScalar `protobuf:"bytes,4,opt,name=prover_identity,json=proverIdentity,proto3" json:"prover_identity,omitempty"` + BlindbidProof *Proof `protobuf:"bytes,1,opt,name=blindbid_proof,json=blindbidProof,proto3" json:"blindbid_proof,omitempty"` + Score *BlsScalar `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` + ProverIdentity *BlsScalar `protobuf:"bytes,4,opt,name=prover_identity,json=proverIdentity,proto3" json:"prover_identity,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GenerateScoreResponse) Reset() { - *x = GenerateScoreResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_blindbid_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GenerateScoreResponse) Reset() { *m = GenerateScoreResponse{} } +func (m *GenerateScoreResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateScoreResponse) ProtoMessage() {} +func (*GenerateScoreResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_490c3399c7b8c3f4, []int{1} } - -func (x *GenerateScoreResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GenerateScoreResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateScoreResponse.Unmarshal(m, b) } - -func (*GenerateScoreResponse) ProtoMessage() {} - -func (x *GenerateScoreResponse) ProtoReflect() protoreflect.Message { - mi := &file_blindbid_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GenerateScoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateScoreResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use GenerateScoreResponse.ProtoReflect.Descriptor instead. -func (*GenerateScoreResponse) Descriptor() ([]byte, []int) { - return file_blindbid_proto_rawDescGZIP(), []int{1} +func (m *GenerateScoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateScoreResponse.Merge(m, src) +} +func (m *GenerateScoreResponse) XXX_Size() int { + return xxx_messageInfo_GenerateScoreResponse.Size(m) } +func (m *GenerateScoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateScoreResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateScoreResponse proto.InternalMessageInfo -func (x *GenerateScoreResponse) GetBlindbidProof() *Proof { - if x != nil { - return x.BlindbidProof +func (m *GenerateScoreResponse) GetBlindbidProof() *Proof { + if m != nil { + return m.BlindbidProof } return nil } -func (x *GenerateScoreResponse) GetScore() *BlsScalar { - if x != nil { - return x.Score +func (m *GenerateScoreResponse) GetScore() *BlsScalar { + if m != nil { + return m.Score } return nil } -func (x *GenerateScoreResponse) GetProverIdentity() *BlsScalar { - if x != nil { - return x.ProverIdentity +func (m *GenerateScoreResponse) GetProverIdentity() *BlsScalar { + if m != nil { + return m.ProverIdentity } return nil } type VerifyScoreRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` - Score *BlsScalar `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` - Seed *BlsScalar `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` - ProverId *BlsScalar `protobuf:"bytes,4,opt,name=prover_id,json=proverId,proto3" json:"prover_id,omitempty"` - Round uint64 `protobuf:"fixed64,5,opt,name=round,proto3" json:"round,omitempty"` - Step uint32 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` - IndexStoredBid uint64 `protobuf:"varint,7,opt,name=index_stored_bid,json=indexStoredBid,proto3" json:"index_stored_bid,omitempty"` -} - -func (x *VerifyScoreRequest) Reset() { - *x = VerifyScoreRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_blindbid_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` + Score *BlsScalar `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` + Seed *BlsScalar `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + ProverId *BlsScalar `protobuf:"bytes,4,opt,name=prover_id,json=proverId,proto3" json:"prover_id,omitempty"` + Round uint64 `protobuf:"fixed64,5,opt,name=round,proto3" json:"round,omitempty"` + Step uint32 `protobuf:"varint,6,opt,name=step,proto3" json:"step,omitempty"` + IndexStoredBid uint64 `protobuf:"varint,7,opt,name=index_stored_bid,json=indexStoredBid,proto3" json:"index_stored_bid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VerifyScoreRequest) Reset() { *m = VerifyScoreRequest{} } +func (m *VerifyScoreRequest) String() string { return proto.CompactTextString(m) } +func (*VerifyScoreRequest) ProtoMessage() {} +func (*VerifyScoreRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_490c3399c7b8c3f4, []int{2} } - -func (x *VerifyScoreRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *VerifyScoreRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VerifyScoreRequest.Unmarshal(m, b) } - -func (*VerifyScoreRequest) ProtoMessage() {} - -func (x *VerifyScoreRequest) ProtoReflect() protoreflect.Message { - mi := &file_blindbid_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *VerifyScoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VerifyScoreRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use VerifyScoreRequest.ProtoReflect.Descriptor instead. -func (*VerifyScoreRequest) Descriptor() ([]byte, []int) { - return file_blindbid_proto_rawDescGZIP(), []int{2} +func (m *VerifyScoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifyScoreRequest.Merge(m, src) +} +func (m *VerifyScoreRequest) XXX_Size() int { + return xxx_messageInfo_VerifyScoreRequest.Size(m) +} +func (m *VerifyScoreRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VerifyScoreRequest.DiscardUnknown(m) } -func (x *VerifyScoreRequest) GetProof() *Proof { - if x != nil { - return x.Proof +var xxx_messageInfo_VerifyScoreRequest proto.InternalMessageInfo + +func (m *VerifyScoreRequest) GetProof() *Proof { + if m != nil { + return m.Proof } return nil } -func (x *VerifyScoreRequest) GetScore() *BlsScalar { - if x != nil { - return x.Score +func (m *VerifyScoreRequest) GetScore() *BlsScalar { + if m != nil { + return m.Score } return nil } -func (x *VerifyScoreRequest) GetSeed() *BlsScalar { - if x != nil { - return x.Seed +func (m *VerifyScoreRequest) GetSeed() *BlsScalar { + if m != nil { + return m.Seed } return nil } -func (x *VerifyScoreRequest) GetProverId() *BlsScalar { - if x != nil { - return x.ProverId +func (m *VerifyScoreRequest) GetProverId() *BlsScalar { + if m != nil { + return m.ProverId } return nil } -func (x *VerifyScoreRequest) GetRound() uint64 { - if x != nil { - return x.Round +func (m *VerifyScoreRequest) GetRound() uint64 { + if m != nil { + return m.Round } return 0 } -func (x *VerifyScoreRequest) GetStep() uint32 { - if x != nil { - return x.Step +func (m *VerifyScoreRequest) GetStep() uint32 { + if m != nil { + return m.Step } return 0 } -func (x *VerifyScoreRequest) GetIndexStoredBid() uint64 { - if x != nil { - return x.IndexStoredBid +func (m *VerifyScoreRequest) GetIndexStoredBid() uint64 { + if m != nil { + return m.IndexStoredBid } return 0 } type VerifyScoreResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *VerifyScoreResponse) Reset() { - *x = VerifyScoreResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_blindbid_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *VerifyScoreResponse) Reset() { *m = VerifyScoreResponse{} } +func (m *VerifyScoreResponse) String() string { return proto.CompactTextString(m) } +func (*VerifyScoreResponse) ProtoMessage() {} +func (*VerifyScoreResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_490c3399c7b8c3f4, []int{3} } - -func (x *VerifyScoreResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *VerifyScoreResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VerifyScoreResponse.Unmarshal(m, b) } - -func (*VerifyScoreResponse) ProtoMessage() {} - -func (x *VerifyScoreResponse) ProtoReflect() protoreflect.Message { - mi := &file_blindbid_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *VerifyScoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VerifyScoreResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use VerifyScoreResponse.ProtoReflect.Descriptor instead. -func (*VerifyScoreResponse) Descriptor() ([]byte, []int) { - return file_blindbid_proto_rawDescGZIP(), []int{3} +func (m *VerifyScoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifyScoreResponse.Merge(m, src) +} +func (m *VerifyScoreResponse) XXX_Size() int { + return xxx_messageInfo_VerifyScoreResponse.Size(m) +} +func (m *VerifyScoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VerifyScoreResponse.DiscardUnknown(m) } -func (x *VerifyScoreResponse) GetSuccess() bool { - if x != nil { - return x.Success +var xxx_messageInfo_VerifyScoreResponse proto.InternalMessageInfo + +func (m *VerifyScoreResponse) GetSuccess() bool { + if m != nil { + return m.Success } return false } -var File_blindbid_proto protoreflect.FileDescriptor - -var file_blindbid_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x62, 0x6c, 0x69, 0x6e, 0x64, 0x62, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x04, 0x72, 0x75, 0x73, 0x6b, 0x1a, 0x12, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6b, - 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, 0x01, 0x0a, 0x14, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x01, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x01, - 0x6b, 0x12, 0x23, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, - 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, - 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x06, - 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x74, 0x65, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, - 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x64, - 0x5f, 0x62, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x42, 0x69, 0x64, 0x22, 0xac, 0x01, 0x0a, 0x15, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0e, 0x62, 0x6c, 0x69, 0x6e, 0x64, 0x62, 0x69, 0x64, - 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x72, - 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x0d, 0x62, 0x6c, 0x69, 0x6e, 0x64, - 0x62, 0x69, 0x64, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, - 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, - 0x38, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, - 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x76, 0x65, - 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x85, 0x02, 0x0a, 0x12, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x21, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, - 0x6f, 0x6f, 0x66, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, - 0x6c, 0x61, 0x72, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x73, 0x65, - 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, - 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, - 0x2c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, - 0x6c, 0x61, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, - 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x72, 0x6f, - 0x75, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x5f, 0x62, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0e, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x42, 0x69, - 0x64, 0x22, 0x2f, 0x0a, 0x13, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x32, 0xa3, 0x01, 0x0a, 0x0f, 0x42, 0x6c, 0x69, 0x6e, 0x64, 0x42, 0x69, 0x64, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x1a, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x63, 0x6f, 0x72, - 0x65, 0x12, 0x18, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, - 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x75, - 0x73, 0x6b, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x6e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3b, - 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_blindbid_proto_rawDescOnce sync.Once - file_blindbid_proto_rawDescData = file_blindbid_proto_rawDesc -) - -func file_blindbid_proto_rawDescGZIP() []byte { - file_blindbid_proto_rawDescOnce.Do(func() { - file_blindbid_proto_rawDescData = protoimpl.X.CompressGZIP(file_blindbid_proto_rawDescData) - }) - return file_blindbid_proto_rawDescData -} - -var file_blindbid_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_blindbid_proto_goTypes = []interface{}{ - (*GenerateScoreRequest)(nil), // 0: rusk.GenerateScoreRequest - (*GenerateScoreResponse)(nil), // 1: rusk.GenerateScoreResponse - (*VerifyScoreRequest)(nil), // 2: rusk.VerifyScoreRequest - (*VerifyScoreResponse)(nil), // 3: rusk.VerifyScoreResponse - (*BlsScalar)(nil), // 4: rusk.BlsScalar - (*JubJubCompressed)(nil), // 5: rusk.JubJubCompressed - (*Proof)(nil), // 6: rusk.Proof -} -var file_blindbid_proto_depIdxs = []int32{ - 4, // 0: rusk.GenerateScoreRequest.k:type_name -> rusk.BlsScalar - 4, // 1: rusk.GenerateScoreRequest.seed:type_name -> rusk.BlsScalar - 5, // 2: rusk.GenerateScoreRequest.secret:type_name -> rusk.JubJubCompressed - 6, // 3: rusk.GenerateScoreResponse.blindbid_proof:type_name -> rusk.Proof - 4, // 4: rusk.GenerateScoreResponse.score:type_name -> rusk.BlsScalar - 4, // 5: rusk.GenerateScoreResponse.prover_identity:type_name -> rusk.BlsScalar - 6, // 6: rusk.VerifyScoreRequest.proof:type_name -> rusk.Proof - 4, // 7: rusk.VerifyScoreRequest.score:type_name -> rusk.BlsScalar - 4, // 8: rusk.VerifyScoreRequest.seed:type_name -> rusk.BlsScalar - 4, // 9: rusk.VerifyScoreRequest.prover_id:type_name -> rusk.BlsScalar - 0, // 10: rusk.BlindBidService.GenerateScore:input_type -> rusk.GenerateScoreRequest - 2, // 11: rusk.BlindBidService.VerifyScore:input_type -> rusk.VerifyScoreRequest - 1, // 12: rusk.BlindBidService.GenerateScore:output_type -> rusk.GenerateScoreResponse - 3, // 13: rusk.BlindBidService.VerifyScore:output_type -> rusk.VerifyScoreResponse - 12, // [12:14] is the sub-list for method output_type - 10, // [10:12] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name -} - -func init() { file_blindbid_proto_init() } -func file_blindbid_proto_init() { - if File_blindbid_proto != nil { - return - } - file_basic_fields_proto_init() - file_transaction_proto_init() - file_keys_proto_init() - if !protoimpl.UnsafeEnabled { - file_blindbid_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateScoreRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_blindbid_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateScoreResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_blindbid_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyScoreRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_blindbid_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyScoreResponse); 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_blindbid_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_blindbid_proto_goTypes, - DependencyIndexes: file_blindbid_proto_depIdxs, - MessageInfos: file_blindbid_proto_msgTypes, - }.Build() - File_blindbid_proto = out.File - file_blindbid_proto_rawDesc = nil - file_blindbid_proto_goTypes = nil - file_blindbid_proto_depIdxs = nil +func init() { + proto.RegisterType((*GenerateScoreRequest)(nil), "rusk.GenerateScoreRequest") + proto.RegisterType((*GenerateScoreResponse)(nil), "rusk.GenerateScoreResponse") + proto.RegisterType((*VerifyScoreRequest)(nil), "rusk.VerifyScoreRequest") + proto.RegisterType((*VerifyScoreResponse)(nil), "rusk.VerifyScoreResponse") +} + +func init() { proto.RegisterFile("blindbid.proto", fileDescriptor_490c3399c7b8c3f4) } + +var fileDescriptor_490c3399c7b8c3f4 = []byte{ + // 476 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x8e, 0xd3, 0x30, + 0x10, 0x86, 0xc9, 0x6e, 0xdb, 0x5d, 0xa6, 0x6a, 0x0b, 0x66, 0x41, 0xa1, 0x08, 0xa9, 0x14, 0x21, + 0x55, 0x88, 0x4d, 0xa5, 0x72, 0x41, 0xe2, 0x16, 0x90, 0x10, 0x3d, 0xa1, 0x54, 0xe2, 0xc0, 0x25, + 0x4a, 0xec, 0x29, 0x6b, 0xa5, 0x8d, 0x83, 0xc7, 0x59, 0xe8, 0x03, 0xf0, 0x24, 0x5c, 0x79, 0x26, + 0x9e, 0x05, 0xc5, 0x4e, 0x58, 0xba, 0xa4, 0xc0, 0xcd, 0x9e, 0xff, 0xf7, 0xf4, 0x9f, 0xf9, 0x1a, + 0x18, 0xa6, 0x1b, 0x99, 0x8b, 0x54, 0x8a, 0xa0, 0xd0, 0xca, 0x28, 0xd6, 0xd1, 0x25, 0x65, 0x63, + 0x96, 0x26, 0x24, 0x79, 0xbc, 0x96, 0xb8, 0x11, 0xe4, 0x94, 0xf1, 0x6d, 0xa3, 0x93, 0x9c, 0x12, + 0x6e, 0xa4, 0xca, 0xeb, 0x12, 0x64, 0xb8, 0xab, 0xe5, 0xe9, 0x0f, 0x0f, 0xce, 0xde, 0x60, 0x8e, + 0x3a, 0x31, 0xb8, 0xe2, 0x4a, 0x63, 0x84, 0x9f, 0x4a, 0x24, 0xc3, 0x1e, 0x82, 0x97, 0xf9, 0xde, + 0xc4, 0x9b, 0xf5, 0x17, 0xa3, 0xa0, 0xea, 0x1e, 0x84, 0x1b, 0x5a, 0xf1, 0x64, 0x93, 0xe8, 0xc8, + 0xcb, 0xd8, 0x63, 0xe8, 0x10, 0xa2, 0xf0, 0x8f, 0xda, 0x1d, 0x56, 0x64, 0x01, 0xf4, 0x08, 0xb9, + 0x46, 0xe3, 0x1f, 0x5b, 0xdb, 0x3d, 0x67, 0x5b, 0x96, 0xe9, 0xb2, 0x4c, 0x5f, 0xa9, 0x6d, 0xa1, + 0x91, 0x08, 0x45, 0x54, 0xbb, 0xd8, 0x19, 0x74, 0xb5, 0x2a, 0x73, 0xe1, 0x77, 0x26, 0xde, 0x6c, + 0x10, 0xb9, 0x0b, 0x63, 0xd0, 0x21, 0x83, 0x85, 0xdf, 0xb5, 0x45, 0x7b, 0x66, 0x33, 0xb8, 0x25, + 0x73, 0x81, 0x5f, 0x62, 0x32, 0x4a, 0xa3, 0x88, 0x53, 0x29, 0xfc, 0xde, 0xc4, 0x9b, 0x75, 0xa2, + 0xa1, 0xad, 0xaf, 0x6c, 0x39, 0x94, 0x62, 0xfa, 0xdd, 0x83, 0xbb, 0xd7, 0x06, 0xa4, 0x42, 0xe5, + 0x84, 0x6c, 0x71, 0xb5, 0xc5, 0xb8, 0xd0, 0x4a, 0xad, 0xeb, 0x71, 0xfb, 0x2e, 0xe5, 0xbb, 0xaa, + 0x14, 0x0d, 0x1a, 0x8b, 0xbd, 0xb2, 0x27, 0xd0, 0xa5, 0xaa, 0xc9, 0xa1, 0xb9, 0x9d, 0xca, 0x5e, + 0xc0, 0xa8, 0xd0, 0xea, 0x12, 0x75, 0x2c, 0x05, 0xe6, 0x46, 0x9a, 0x9d, 0x1d, 0xa9, 0xe5, 0xc1, + 0xd0, 0xf9, 0xde, 0xd6, 0xb6, 0xe9, 0xd7, 0x23, 0x60, 0xef, 0x51, 0xcb, 0xf5, 0x6e, 0x8f, 0xc6, + 0x23, 0xe8, 0x1e, 0x8c, 0xe8, 0x94, 0xff, 0x8d, 0xd6, 0x80, 0x3b, 0xfe, 0x1b, 0xb8, 0x67, 0x70, + 0xf3, 0x57, 0xfe, 0x43, 0xc9, 0x4f, 0x9b, 0xe4, 0x57, 0xd8, 0x2a, 0x42, 0xbd, 0xeb, 0xd8, 0x7a, + 0xff, 0xc0, 0x76, 0xd2, 0x8a, 0x6d, 0x0e, 0x77, 0xf6, 0xd6, 0x50, 0x33, 0xf3, 0xe1, 0x84, 0x4a, + 0xce, 0x91, 0xc8, 0x6e, 0xe2, 0x34, 0x6a, 0xae, 0x8b, 0x6f, 0x1e, 0x8c, 0xc2, 0x8a, 0x55, 0x28, + 0xc5, 0x0a, 0xf5, 0xa5, 0xe4, 0xc8, 0x96, 0x30, 0xd8, 0x43, 0xcf, 0xc6, 0x6e, 0x88, 0xb6, 0x3f, + 0xfc, 0xf8, 0x41, 0xab, 0xe6, 0x7e, 0x77, 0x7a, 0x83, 0xbd, 0x86, 0xfe, 0x6f, 0x81, 0x98, 0xef, + 0xdc, 0x7f, 0xa2, 0x1a, 0xdf, 0x6f, 0x51, 0x9a, 0x2e, 0xe1, 0xd3, 0x0f, 0xb3, 0x8f, 0xd2, 0x5c, + 0x94, 0x69, 0xc0, 0xd5, 0x76, 0x2e, 0x4a, 0xca, 0xce, 0x73, 0x34, 0x9f, 0x95, 0xce, 0xe6, 0xd5, + 0xab, 0x73, 0xe2, 0x17, 0xb8, 0x4d, 0x5e, 0x56, 0xe7, 0xb4, 0x67, 0xbf, 0xd0, 0xe7, 0x3f, 0x03, + 0x00, 0x00, 0xff, 0xff, 0x76, 0xff, 0x1a, 0x9d, 0xec, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // BlindBidServiceClient is the client API for BlindBidService service. // @@ -530,10 +342,10 @@ type BlindBidServiceClient interface { } type blindBidServiceClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewBlindBidServiceClient(cc grpc.ClientConnInterface) BlindBidServiceClient { +func NewBlindBidServiceClient(cc *grpc.ClientConn) BlindBidServiceClient { return &blindBidServiceClient{cc} } @@ -567,10 +379,10 @@ type BlindBidServiceServer interface { type UnimplementedBlindBidServiceServer struct { } -func (*UnimplementedBlindBidServiceServer) GenerateScore(context.Context, *GenerateScoreRequest) (*GenerateScoreResponse, error) { +func (*UnimplementedBlindBidServiceServer) GenerateScore(ctx context.Context, req *GenerateScoreRequest) (*GenerateScoreResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateScore not implemented") } -func (*UnimplementedBlindBidServiceServer) VerifyScore(context.Context, *VerifyScoreRequest) (*VerifyScoreResponse, error) { +func (*UnimplementedBlindBidServiceServer) VerifyScore(ctx context.Context, req *VerifyScoreRequest) (*VerifyScoreResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyScore not implemented") } diff --git a/autogen/go/rusk/echo.mock.go b/autogen/go/rusk/echo.mock.go new file mode 100644 index 0000000..6191685 --- /dev/null +++ b/autogen/go/rusk/echo.mock.go @@ -0,0 +1,26 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: echo.proto + +package rusk + +import ( + fmt "fmt" + math "math" + proto "github.com/gogo/protobuf/proto" + context "context" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type EchoerMock struct{} + +func (m *EchoerMock) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error) { + res := + &EchoResponse{ + Message: "quidem", + } + return res, nil +} diff --git a/autogen/go/rusk/echo.pb.go b/autogen/go/rusk/echo.pb.go index d74ff7f..4f2c1e5 100644 --- a/autogen/go/rusk/echo.pb.go +++ b/autogen/go/rusk/echo.pb.go @@ -1,232 +1,134 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: echo.proto package rusk import ( context "context" - proto "github.com/golang/protobuf/proto" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type EchoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *EchoRequest) Reset() { - *x = EchoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_echo_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *EchoRequest) Reset() { *m = EchoRequest{} } +func (m *EchoRequest) String() string { return proto.CompactTextString(m) } +func (*EchoRequest) ProtoMessage() {} +func (*EchoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_08134aea513e0001, []int{0} } - -func (x *EchoRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *EchoRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EchoRequest.Unmarshal(m, b) } - -func (*EchoRequest) ProtoMessage() {} - -func (x *EchoRequest) ProtoReflect() protoreflect.Message { - mi := &file_echo_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EchoRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead. -func (*EchoRequest) Descriptor() ([]byte, []int) { - return file_echo_proto_rawDescGZIP(), []int{0} +func (m *EchoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EchoRequest.Merge(m, src) +} +func (m *EchoRequest) XXX_Size() int { + return xxx_messageInfo_EchoRequest.Size(m) } +func (m *EchoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EchoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_EchoRequest proto.InternalMessageInfo -func (x *EchoRequest) GetMessage() string { - if x != nil { - return x.Message +func (m *EchoRequest) GetMessage() string { + if m != nil { + return m.Message } return "" } type EchoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *EchoResponse) Reset() { - *x = EchoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_echo_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *EchoResponse) Reset() { *m = EchoResponse{} } +func (m *EchoResponse) String() string { return proto.CompactTextString(m) } +func (*EchoResponse) ProtoMessage() {} +func (*EchoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_08134aea513e0001, []int{1} } - -func (x *EchoResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *EchoResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EchoResponse.Unmarshal(m, b) } - -func (*EchoResponse) ProtoMessage() {} - -func (x *EchoResponse) ProtoReflect() protoreflect.Message { - mi := &file_echo_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *EchoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EchoResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead. -func (*EchoResponse) Descriptor() ([]byte, []int) { - return file_echo_proto_rawDescGZIP(), []int{1} +func (m *EchoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EchoResponse.Merge(m, src) } - -func (x *EchoResponse) GetMessage() string { - if x != nil { - return x.Message - } - return "" +func (m *EchoResponse) XXX_Size() int { + return xxx_messageInfo_EchoResponse.Size(m) } - -var File_echo_proto protoreflect.FileDescriptor - -var file_echo_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, - 0x73, 0x6b, 0x22, 0x27, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x28, 0x0a, 0x0c, 0x45, - 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x37, 0x0a, 0x06, 0x45, 0x63, 0x68, 0x6f, 0x65, 0x72, 0x12, - 0x2d, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x45, - 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x72, 0x75, 0x73, - 0x6b, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2a, - 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, - 0x6b, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x2d, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3b, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +func (m *EchoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EchoResponse.DiscardUnknown(m) } -var ( - file_echo_proto_rawDescOnce sync.Once - file_echo_proto_rawDescData = file_echo_proto_rawDesc -) +var xxx_messageInfo_EchoResponse proto.InternalMessageInfo -func file_echo_proto_rawDescGZIP() []byte { - file_echo_proto_rawDescOnce.Do(func() { - file_echo_proto_rawDescData = protoimpl.X.CompressGZIP(file_echo_proto_rawDescData) - }) - return file_echo_proto_rawDescData +func (m *EchoResponse) GetMessage() string { + if m != nil { + return m.Message + } + return "" } -var file_echo_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_echo_proto_goTypes = []interface{}{ - (*EchoRequest)(nil), // 0: rusk.EchoRequest - (*EchoResponse)(nil), // 1: rusk.EchoResponse -} -var file_echo_proto_depIdxs = []int32{ - 0, // 0: rusk.Echoer.Echo:input_type -> rusk.EchoRequest - 1, // 1: rusk.Echoer.Echo:output_type -> rusk.EchoResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name +func init() { + proto.RegisterType((*EchoRequest)(nil), "rusk.EchoRequest") + proto.RegisterType((*EchoResponse)(nil), "rusk.EchoResponse") } -func init() { file_echo_proto_init() } -func file_echo_proto_init() { - if File_echo_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_echo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EchoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_echo_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EchoResponse); 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_echo_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_echo_proto_goTypes, - DependencyIndexes: file_echo_proto_depIdxs, - MessageInfos: file_echo_proto_msgTypes, - }.Build() - File_echo_proto = out.File - file_echo_proto_rawDesc = nil - file_echo_proto_goTypes = nil - file_echo_proto_depIdxs = nil +func init() { proto.RegisterFile("echo.proto", fileDescriptor_08134aea513e0001) } + +var fileDescriptor_08134aea513e0001 = []byte{ + // 164 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4d, 0xce, 0xc8, + 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x29, 0x2a, 0x2d, 0xce, 0x56, 0x52, 0xe7, 0xe2, + 0x76, 0x4d, 0xce, 0xc8, 0x0f, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x11, 0x92, 0xe0, 0x62, 0xcf, + 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x71, 0x95, + 0x34, 0xb8, 0x78, 0x20, 0x0a, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x71, 0xab, 0x34, 0x32, 0xe7, + 0x62, 0x03, 0xa9, 0x4c, 0x2d, 0x12, 0xd2, 0xe5, 0x62, 0x01, 0xb1, 0x84, 0x04, 0xf5, 0x40, 0x76, + 0xe9, 0x21, 0x59, 0x24, 0x25, 0x84, 0x2c, 0x04, 0x31, 0xd2, 0x49, 0x2b, 0x4a, 0x23, 0x3d, 0xb3, + 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0xa5, 0xb4, 0x38, 0x5b, 0x37, 0x2f, 0xb5, + 0xa4, 0x3c, 0xbf, 0x28, 0x5b, 0x1f, 0xa4, 0x58, 0xb7, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x1a, + 0xc4, 0x4e, 0x62, 0x03, 0x7b, 0xc2, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x15, 0x0a, 0x87, + 0xd2, 0x00, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // EchoerClient is the client API for Echoer service. // @@ -236,10 +138,10 @@ type EchoerClient interface { } type echoerClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewEchoerClient(cc grpc.ClientConnInterface) EchoerClient { +func NewEchoerClient(cc *grpc.ClientConn) EchoerClient { return &echoerClient{cc} } @@ -261,7 +163,7 @@ type EchoerServer interface { type UnimplementedEchoerServer struct { } -func (*UnimplementedEchoerServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error) { +func (*UnimplementedEchoerServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") } diff --git a/autogen/go/rusk/keys.mock.go b/autogen/go/rusk/keys.mock.go new file mode 100644 index 0000000..1376937 --- /dev/null +++ b/autogen/go/rusk/keys.mock.go @@ -0,0 +1,45 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: keys.proto + +package rusk + +import ( + fmt "fmt" + math "math" + proto "github.com/gogo/protobuf/proto" + context "context" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type KeysMock struct{} + +func (m *KeysMock) GenerateKeys(ctx context.Context, req *GenerateKeysRequest) (*GenerateKeysResponse, error) { + res := + &GenerateKeysResponse{ + Sk: &SecretKey{ + A: &JubJubScalar{}, + B: &JubJubScalar{}, + }, + Vk: &ViewKey{ + A: &JubJubScalar{}, + BG: &JubJubCompressed{}, + }, + Pk: &PublicKey{ + AG: &JubJubCompressed{}, + BG: &JubJubCompressed{}, + }, + } + return res, nil +} +func (m *KeysMock) GenerateStealthAddress(ctx context.Context, req *PublicKey) (*StealthAddress, error) { + res := + &StealthAddress{ + RG: &JubJubCompressed{}, + PkR: &JubJubCompressed{}, + } + return res, nil +} diff --git a/autogen/go/rusk/keys.pb.go b/autogen/go/rusk/keys.pb.go index ea65fdf..9d04090 100644 --- a/autogen/go/rusk/keys.pb.go +++ b/autogen/go/rusk/keys.pb.go @@ -1,560 +1,342 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: keys.proto package rusk import ( context "context" - proto "github.com/golang/protobuf/proto" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type SecretKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - A *JubJubScalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` - B *JubJubScalar `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` + A *JubJubScalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` + B *JubJubScalar `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SecretKey) Reset() { - *x = SecretKey{} - if protoimpl.UnsafeEnabled { - mi := &file_keys_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SecretKey) Reset() { *m = SecretKey{} } +func (m *SecretKey) String() string { return proto.CompactTextString(m) } +func (*SecretKey) ProtoMessage() {} +func (*SecretKey) Descriptor() ([]byte, []int) { + return fileDescriptor_9084e97af2346a26, []int{0} } - -func (x *SecretKey) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SecretKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecretKey.Unmarshal(m, b) } - -func (*SecretKey) ProtoMessage() {} - -func (x *SecretKey) ProtoReflect() protoreflect.Message { - mi := &file_keys_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SecretKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecretKey.Marshal(b, m, deterministic) } - -// Deprecated: Use SecretKey.ProtoReflect.Descriptor instead. -func (*SecretKey) Descriptor() ([]byte, []int) { - return file_keys_proto_rawDescGZIP(), []int{0} +func (m *SecretKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecretKey.Merge(m, src) +} +func (m *SecretKey) XXX_Size() int { + return xxx_messageInfo_SecretKey.Size(m) } +func (m *SecretKey) XXX_DiscardUnknown() { + xxx_messageInfo_SecretKey.DiscardUnknown(m) +} + +var xxx_messageInfo_SecretKey proto.InternalMessageInfo -func (x *SecretKey) GetA() *JubJubScalar { - if x != nil { - return x.A +func (m *SecretKey) GetA() *JubJubScalar { + if m != nil { + return m.A } return nil } -func (x *SecretKey) GetB() *JubJubScalar { - if x != nil { - return x.B +func (m *SecretKey) GetB() *JubJubScalar { + if m != nil { + return m.B } return nil } type ViewKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - A *JubJubScalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` - BG *JubJubCompressed `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"` + A *JubJubScalar `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` + BG *JubJubCompressed `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ViewKey) Reset() { - *x = ViewKey{} - if protoimpl.UnsafeEnabled { - mi := &file_keys_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ViewKey) Reset() { *m = ViewKey{} } +func (m *ViewKey) String() string { return proto.CompactTextString(m) } +func (*ViewKey) ProtoMessage() {} +func (*ViewKey) Descriptor() ([]byte, []int) { + return fileDescriptor_9084e97af2346a26, []int{1} } - -func (x *ViewKey) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ViewKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ViewKey.Unmarshal(m, b) } - -func (*ViewKey) ProtoMessage() {} - -func (x *ViewKey) ProtoReflect() protoreflect.Message { - mi := &file_keys_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ViewKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ViewKey.Marshal(b, m, deterministic) } - -// Deprecated: Use ViewKey.ProtoReflect.Descriptor instead. -func (*ViewKey) Descriptor() ([]byte, []int) { - return file_keys_proto_rawDescGZIP(), []int{1} +func (m *ViewKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_ViewKey.Merge(m, src) +} +func (m *ViewKey) XXX_Size() int { + return xxx_messageInfo_ViewKey.Size(m) } +func (m *ViewKey) XXX_DiscardUnknown() { + xxx_messageInfo_ViewKey.DiscardUnknown(m) +} + +var xxx_messageInfo_ViewKey proto.InternalMessageInfo -func (x *ViewKey) GetA() *JubJubScalar { - if x != nil { - return x.A +func (m *ViewKey) GetA() *JubJubScalar { + if m != nil { + return m.A } return nil } -func (x *ViewKey) GetBG() *JubJubCompressed { - if x != nil { - return x.BG +func (m *ViewKey) GetBG() *JubJubCompressed { + if m != nil { + return m.BG } return nil } type PublicKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AG *JubJubCompressed `protobuf:"bytes,1,opt,name=a_g,json=aG,proto3" json:"a_g,omitempty"` - BG *JubJubCompressed `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"` + AG *JubJubCompressed `protobuf:"bytes,1,opt,name=a_g,json=aG,proto3" json:"a_g,omitempty"` + BG *JubJubCompressed `protobuf:"bytes,2,opt,name=b_g,json=bG,proto3" json:"b_g,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PublicKey) Reset() { - *x = PublicKey{} - if protoimpl.UnsafeEnabled { - mi := &file_keys_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PublicKey) Reset() { *m = PublicKey{} } +func (m *PublicKey) String() string { return proto.CompactTextString(m) } +func (*PublicKey) ProtoMessage() {} +func (*PublicKey) Descriptor() ([]byte, []int) { + return fileDescriptor_9084e97af2346a26, []int{2} } - -func (x *PublicKey) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PublicKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublicKey.Unmarshal(m, b) } - -func (*PublicKey) ProtoMessage() {} - -func (x *PublicKey) ProtoReflect() protoreflect.Message { - mi := &file_keys_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublicKey.Marshal(b, m, deterministic) } - -// Deprecated: Use PublicKey.ProtoReflect.Descriptor instead. -func (*PublicKey) Descriptor() ([]byte, []int) { - return file_keys_proto_rawDescGZIP(), []int{2} +func (m *PublicKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublicKey.Merge(m, src) +} +func (m *PublicKey) XXX_Size() int { + return xxx_messageInfo_PublicKey.Size(m) +} +func (m *PublicKey) XXX_DiscardUnknown() { + xxx_messageInfo_PublicKey.DiscardUnknown(m) } -func (x *PublicKey) GetAG() *JubJubCompressed { - if x != nil { - return x.AG +var xxx_messageInfo_PublicKey proto.InternalMessageInfo + +func (m *PublicKey) GetAG() *JubJubCompressed { + if m != nil { + return m.AG } return nil } -func (x *PublicKey) GetBG() *JubJubCompressed { - if x != nil { - return x.BG +func (m *PublicKey) GetBG() *JubJubCompressed { + if m != nil { + return m.BG } return nil } type StealthAddress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RG *JubJubCompressed `protobuf:"bytes,1,opt,name=r_g,json=rG,proto3" json:"r_g,omitempty"` - PkR *JubJubCompressed `protobuf:"bytes,2,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` + RG *JubJubCompressed `protobuf:"bytes,1,opt,name=r_g,json=rG,proto3" json:"r_g,omitempty"` + PkR *JubJubCompressed `protobuf:"bytes,2,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StealthAddress) Reset() { - *x = StealthAddress{} - if protoimpl.UnsafeEnabled { - mi := &file_keys_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StealthAddress) Reset() { *m = StealthAddress{} } +func (m *StealthAddress) String() string { return proto.CompactTextString(m) } +func (*StealthAddress) ProtoMessage() {} +func (*StealthAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_9084e97af2346a26, []int{3} } - -func (x *StealthAddress) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StealthAddress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StealthAddress.Unmarshal(m, b) } - -func (*StealthAddress) ProtoMessage() {} - -func (x *StealthAddress) ProtoReflect() protoreflect.Message { - mi := &file_keys_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StealthAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StealthAddress.Marshal(b, m, deterministic) } - -// Deprecated: Use StealthAddress.ProtoReflect.Descriptor instead. -func (*StealthAddress) Descriptor() ([]byte, []int) { - return file_keys_proto_rawDescGZIP(), []int{3} +func (m *StealthAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_StealthAddress.Merge(m, src) +} +func (m *StealthAddress) XXX_Size() int { + return xxx_messageInfo_StealthAddress.Size(m) +} +func (m *StealthAddress) XXX_DiscardUnknown() { + xxx_messageInfo_StealthAddress.DiscardUnknown(m) } -func (x *StealthAddress) GetRG() *JubJubCompressed { - if x != nil { - return x.RG +var xxx_messageInfo_StealthAddress proto.InternalMessageInfo + +func (m *StealthAddress) GetRG() *JubJubCompressed { + if m != nil { + return m.RG } return nil } -func (x *StealthAddress) GetPkR() *JubJubCompressed { - if x != nil { - return x.PkR +func (m *StealthAddress) GetPkR() *JubJubCompressed { + if m != nil { + return m.PkR } return nil } type GenerateKeysRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GenerateKeysRequest) Reset() { - *x = GenerateKeysRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_keys_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GenerateKeysRequest) Reset() { *m = GenerateKeysRequest{} } +func (m *GenerateKeysRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateKeysRequest) ProtoMessage() {} +func (*GenerateKeysRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9084e97af2346a26, []int{4} } - -func (x *GenerateKeysRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GenerateKeysRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateKeysRequest.Unmarshal(m, b) } - -func (*GenerateKeysRequest) ProtoMessage() {} - -func (x *GenerateKeysRequest) ProtoReflect() protoreflect.Message { - mi := &file_keys_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GenerateKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateKeysRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use GenerateKeysRequest.ProtoReflect.Descriptor instead. -func (*GenerateKeysRequest) Descriptor() ([]byte, []int) { - return file_keys_proto_rawDescGZIP(), []int{4} +func (m *GenerateKeysRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateKeysRequest.Merge(m, src) } - -type GenerateKeysResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sk *SecretKey `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"` - Vk *ViewKey `protobuf:"bytes,2,opt,name=vk,proto3" json:"vk,omitempty"` - Pk *PublicKey `protobuf:"bytes,3,opt,name=pk,proto3" json:"pk,omitempty"` -} - -func (x *GenerateKeysResponse) Reset() { - *x = GenerateKeysResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_keys_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GenerateKeysRequest) XXX_Size() int { + return xxx_messageInfo_GenerateKeysRequest.Size(m) } - -func (x *GenerateKeysResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GenerateKeysRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateKeysRequest.DiscardUnknown(m) } -func (*GenerateKeysResponse) ProtoMessage() {} +var xxx_messageInfo_GenerateKeysRequest proto.InternalMessageInfo -func (x *GenerateKeysResponse) ProtoReflect() protoreflect.Message { - mi := &file_keys_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type GenerateKeysResponse struct { + Sk *SecretKey `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"` + Vk *ViewKey `protobuf:"bytes,2,opt,name=vk,proto3" json:"vk,omitempty"` + Pk *PublicKey `protobuf:"bytes,3,opt,name=pk,proto3" json:"pk,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -// Deprecated: Use GenerateKeysResponse.ProtoReflect.Descriptor instead. +func (m *GenerateKeysResponse) Reset() { *m = GenerateKeysResponse{} } +func (m *GenerateKeysResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateKeysResponse) ProtoMessage() {} func (*GenerateKeysResponse) Descriptor() ([]byte, []int) { - return file_keys_proto_rawDescGZIP(), []int{5} + return fileDescriptor_9084e97af2346a26, []int{5} +} +func (m *GenerateKeysResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateKeysResponse.Unmarshal(m, b) +} +func (m *GenerateKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateKeysResponse.Marshal(b, m, deterministic) +} +func (m *GenerateKeysResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateKeysResponse.Merge(m, src) +} +func (m *GenerateKeysResponse) XXX_Size() int { + return xxx_messageInfo_GenerateKeysResponse.Size(m) +} +func (m *GenerateKeysResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateKeysResponse.DiscardUnknown(m) } -func (x *GenerateKeysResponse) GetSk() *SecretKey { - if x != nil { - return x.Sk +var xxx_messageInfo_GenerateKeysResponse proto.InternalMessageInfo + +func (m *GenerateKeysResponse) GetSk() *SecretKey { + if m != nil { + return m.Sk } return nil } -func (x *GenerateKeysResponse) GetVk() *ViewKey { - if x != nil { - return x.Vk +func (m *GenerateKeysResponse) GetVk() *ViewKey { + if m != nil { + return m.Vk } return nil } -func (x *GenerateKeysResponse) GetPk() *PublicKey { - if x != nil { - return x.Pk +func (m *GenerateKeysResponse) GetPk() *PublicKey { + if m != nil { + return m.Pk } return nil } -var File_keys_proto protoreflect.FileDescriptor - -var file_keys_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, - 0x73, 0x6b, 0x1a, 0x12, 0x62, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x09, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, - 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x53, 0x63, 0x61, 0x6c, - 0x61, 0x72, 0x52, 0x01, 0x61, 0x12, 0x20, 0x0a, 0x01, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x53, 0x63, - 0x61, 0x6c, 0x61, 0x72, 0x52, 0x01, 0x62, 0x22, 0x54, 0x0a, 0x07, 0x56, 0x69, 0x65, 0x77, 0x4b, - 0x65, 0x79, 0x12, 0x20, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x53, 0x63, 0x61, 0x6c, 0x61, - 0x72, 0x52, 0x01, 0x61, 0x12, 0x27, 0x0a, 0x03, 0x62, 0x5f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, - 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x02, 0x62, 0x47, 0x22, 0x5d, 0x0a, - 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x03, 0x61, 0x5f, - 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, - 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, - 0x02, 0x61, 0x47, 0x12, 0x27, 0x0a, 0x03, 0x62, 0x5f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, - 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x02, 0x62, 0x47, 0x22, 0x64, 0x0a, 0x0e, - 0x53, 0x74, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, - 0x0a, 0x03, 0x72, 0x5f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, - 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, - 0x73, 0x65, 0x64, 0x52, 0x02, 0x72, 0x47, 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6b, 0x5f, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, - 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x03, 0x70, - 0x6b, 0x52, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x4b, 0x65, - 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x77, 0x0a, 0x14, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x1f, 0x0a, 0x02, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x02, - 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x02, 0x76, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, - 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4b, 0x65, 0x79, 0x52, 0x02, 0x76, - 0x6b, 0x12, 0x1f, 0x0a, 0x02, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x02, - 0x70, 0x6b, 0x32, 0x92, 0x01, 0x0a, 0x04, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x47, 0x0a, 0x0c, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x19, 0x2e, 0x72, 0x75, - 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x16, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x53, 0x74, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x0f, - 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x1a, - 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x72, 0x75, 0x73, 0x6b, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3b, 0x72, - 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_keys_proto_rawDescOnce sync.Once - file_keys_proto_rawDescData = file_keys_proto_rawDesc -) - -func file_keys_proto_rawDescGZIP() []byte { - file_keys_proto_rawDescOnce.Do(func() { - file_keys_proto_rawDescData = protoimpl.X.CompressGZIP(file_keys_proto_rawDescData) - }) - return file_keys_proto_rawDescData -} - -var file_keys_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_keys_proto_goTypes = []interface{}{ - (*SecretKey)(nil), // 0: rusk.SecretKey - (*ViewKey)(nil), // 1: rusk.ViewKey - (*PublicKey)(nil), // 2: rusk.PublicKey - (*StealthAddress)(nil), // 3: rusk.StealthAddress - (*GenerateKeysRequest)(nil), // 4: rusk.GenerateKeysRequest - (*GenerateKeysResponse)(nil), // 5: rusk.GenerateKeysResponse - (*JubJubScalar)(nil), // 6: rusk.JubJubScalar - (*JubJubCompressed)(nil), // 7: rusk.JubJubCompressed -} -var file_keys_proto_depIdxs = []int32{ - 6, // 0: rusk.SecretKey.a:type_name -> rusk.JubJubScalar - 6, // 1: rusk.SecretKey.b:type_name -> rusk.JubJubScalar - 6, // 2: rusk.ViewKey.a:type_name -> rusk.JubJubScalar - 7, // 3: rusk.ViewKey.b_g:type_name -> rusk.JubJubCompressed - 7, // 4: rusk.PublicKey.a_g:type_name -> rusk.JubJubCompressed - 7, // 5: rusk.PublicKey.b_g:type_name -> rusk.JubJubCompressed - 7, // 6: rusk.StealthAddress.r_g:type_name -> rusk.JubJubCompressed - 7, // 7: rusk.StealthAddress.pk_r:type_name -> rusk.JubJubCompressed - 0, // 8: rusk.GenerateKeysResponse.sk:type_name -> rusk.SecretKey - 1, // 9: rusk.GenerateKeysResponse.vk:type_name -> rusk.ViewKey - 2, // 10: rusk.GenerateKeysResponse.pk:type_name -> rusk.PublicKey - 4, // 11: rusk.Keys.GenerateKeys:input_type -> rusk.GenerateKeysRequest - 2, // 12: rusk.Keys.GenerateStealthAddress:input_type -> rusk.PublicKey - 5, // 13: rusk.Keys.GenerateKeys:output_type -> rusk.GenerateKeysResponse - 3, // 14: rusk.Keys.GenerateStealthAddress:output_type -> rusk.StealthAddress - 13, // [13:15] is the sub-list for method output_type - 11, // [11:13] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name -} - -func init() { file_keys_proto_init() } -func file_keys_proto_init() { - if File_keys_proto != nil { - return - } - file_basic_fields_proto_init() - if !protoimpl.UnsafeEnabled { - file_keys_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SecretKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keys_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ViewKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keys_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keys_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StealthAddress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keys_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateKeysRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_keys_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateKeysResponse); 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_keys_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_keys_proto_goTypes, - DependencyIndexes: file_keys_proto_depIdxs, - MessageInfos: file_keys_proto_msgTypes, - }.Build() - File_keys_proto = out.File - file_keys_proto_rawDesc = nil - file_keys_proto_goTypes = nil - file_keys_proto_depIdxs = nil +func init() { + proto.RegisterType((*SecretKey)(nil), "rusk.SecretKey") + proto.RegisterType((*ViewKey)(nil), "rusk.ViewKey") + proto.RegisterType((*PublicKey)(nil), "rusk.PublicKey") + proto.RegisterType((*StealthAddress)(nil), "rusk.StealthAddress") + proto.RegisterType((*GenerateKeysRequest)(nil), "rusk.GenerateKeysRequest") + proto.RegisterType((*GenerateKeysResponse)(nil), "rusk.GenerateKeysResponse") +} + +func init() { proto.RegisterFile("keys.proto", fileDescriptor_9084e97af2346a26) } + +var fileDescriptor_9084e97af2346a26 = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcd, 0x6a, 0xea, 0x40, + 0x14, 0x36, 0x89, 0xdc, 0x8b, 0xe7, 0xfe, 0xc1, 0x5c, 0x2b, 0x36, 0x50, 0x2a, 0xd9, 0x68, 0x0b, + 0x46, 0xb0, 0xcb, 0xae, 0x6c, 0x17, 0x01, 0x5d, 0xb4, 0xc4, 0xd2, 0x45, 0xa1, 0x84, 0x99, 0xe4, + 0x54, 0xc3, 0x44, 0x93, 0xce, 0x4c, 0x14, 0x5f, 0xa3, 0x4f, 0x5c, 0xa6, 0x49, 0x45, 0x45, 0xd1, + 0xdd, 0x70, 0xce, 0xf7, 0x37, 0xdf, 0x0c, 0x00, 0xc7, 0x95, 0x74, 0x33, 0x91, 0xaa, 0x94, 0x54, + 0x45, 0x2e, 0xb9, 0x4d, 0x18, 0x95, 0x71, 0x18, 0xbc, 0xc5, 0x98, 0x44, 0xe5, 0xc6, 0x79, 0x80, + 0xda, 0x18, 0x43, 0x81, 0x6a, 0x84, 0x2b, 0xd2, 0x02, 0x83, 0x36, 0x8d, 0x96, 0xd1, 0xf9, 0xd5, + 0x27, 0xae, 0xa6, 0xb8, 0xc3, 0x9c, 0x0d, 0x73, 0x36, 0x0e, 0x69, 0x42, 0x85, 0x6f, 0x50, 0x8d, + 0x60, 0x4d, 0xf3, 0x30, 0x82, 0x39, 0x4f, 0xf0, 0xf3, 0x39, 0xc6, 0xe5, 0x69, 0x72, 0x6d, 0xb0, + 0x58, 0x30, 0x29, 0x05, 0x1b, 0x9b, 0x98, 0xfb, 0x74, 0x96, 0x09, 0x94, 0x12, 0x23, 0xdf, 0x64, + 0x9e, 0xf3, 0x0a, 0xb5, 0xc7, 0x9c, 0x25, 0x71, 0xa8, 0x75, 0xdb, 0x60, 0xd1, 0x60, 0x52, 0x2a, + 0x1f, 0x64, 0x51, 0xef, 0x74, 0xf9, 0x08, 0xfe, 0x8e, 0x15, 0xd2, 0x44, 0x4d, 0x07, 0x51, 0xa4, + 0xe7, 0x9a, 0x2a, 0x8e, 0x7b, 0x08, 0x8f, 0x5c, 0x41, 0x35, 0xe3, 0x81, 0x38, 0x62, 0x62, 0x65, + 0xdc, 0x77, 0xce, 0xe0, 0xbf, 0x87, 0x73, 0x14, 0x54, 0xe1, 0x08, 0x57, 0xd2, 0xc7, 0xf7, 0x1c, + 0xa5, 0x72, 0x96, 0x50, 0xdf, 0x1e, 0xcb, 0x2c, 0x9d, 0x4b, 0x24, 0x97, 0x60, 0x4a, 0x5e, 0x26, + 0xf8, 0x57, 0xe8, 0xae, 0x9f, 0xca, 0x37, 0x25, 0x27, 0x17, 0x60, 0x2e, 0x78, 0x69, 0xfc, 0xa7, + 0x00, 0x94, 0xd5, 0xfb, 0xe6, 0x82, 0x6b, 0x7e, 0xc6, 0x9b, 0xd6, 0x26, 0x7f, 0xdd, 0xa1, 0x6f, + 0x66, 0xbc, 0xff, 0x61, 0x40, 0x55, 0x3b, 0x12, 0x0f, 0x7e, 0x6f, 0x26, 0x20, 0xe7, 0x05, 0x7a, + 0x4f, 0x58, 0xdb, 0xde, 0xb7, 0x2a, 0x02, 0x3b, 0x15, 0x32, 0x80, 0xc6, 0xf7, 0x66, 0xa7, 0xcf, + 0xdd, 0x00, 0x76, 0xbd, 0xbc, 0xd1, 0x16, 0xcc, 0xa9, 0xdc, 0x5d, 0xbf, 0x74, 0x26, 0xb1, 0x9a, + 0xe6, 0xcc, 0x0d, 0xd3, 0x59, 0x2f, 0xca, 0x25, 0xef, 0xce, 0x51, 0x2d, 0x53, 0xc1, 0x7b, 0x9a, + 0xd0, 0x95, 0xe1, 0x14, 0x67, 0xf4, 0x56, 0x9f, 0xd9, 0x8f, 0xaf, 0x3f, 0x7c, 0xf3, 0x19, 0x00, + 0x00, 0xff, 0xff, 0x95, 0x87, 0xae, 0x4c, 0xeb, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // KeysClient is the client API for Keys service. // @@ -565,10 +347,10 @@ type KeysClient interface { } type keysClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewKeysClient(cc grpc.ClientConnInterface) KeysClient { +func NewKeysClient(cc *grpc.ClientConn) KeysClient { return &keysClient{cc} } @@ -600,10 +382,10 @@ type KeysServer interface { type UnimplementedKeysServer struct { } -func (*UnimplementedKeysServer) GenerateKeys(context.Context, *GenerateKeysRequest) (*GenerateKeysResponse, error) { +func (*UnimplementedKeysServer) GenerateKeys(ctx context.Context, req *GenerateKeysRequest) (*GenerateKeysResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateKeys not implemented") } -func (*UnimplementedKeysServer) GenerateStealthAddress(context.Context, *PublicKey) (*StealthAddress, error) { +func (*UnimplementedKeysServer) GenerateStealthAddress(ctx context.Context, req *PublicKey) (*StealthAddress, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateStealthAddress not implemented") } diff --git a/autogen/go/rusk/rusk.mock.go b/autogen/go/rusk/rusk.mock.go new file mode 100644 index 0000000..74c9876 --- /dev/null +++ b/autogen/go/rusk/rusk.mock.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rusk.proto + +package rusk + +import ( + fmt "fmt" + math "math" + proto "github.com/gogo/protobuf/proto" + context "context" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type StateMock struct{} + +func (m *StateMock) VerifyStateTransition(ctx context.Context, req *VerifyStateTransitionRequest) (*VerifyStateTransitionResponse, error) { + res := + &VerifyStateTransitionResponse{} + return res, nil +} +func (m *StateMock) ExecuteStateTransition(ctx context.Context, req *ExecuteStateTransitionRequest) (*ExecuteStateTransitionResponse, error) { + res := + &ExecuteStateTransitionResponse{ + Success: true, + ErrorMessage: "nostrum", + } + return res, nil +} +func (m *StateMock) GetProvisioners(ctx context.Context, req *GetProvisionersRequest) (*GetProvisionersResponse, error) { + res := + &GetProvisionersResponse{ + Provisioners: []*Provisioner{ + &Provisioner{ + Stakes: []*Stake{ + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + }, + }, + &Provisioner{ + Stakes: []*Stake{ + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + }, + }, + &Provisioner{ + Stakes: []*Stake{ + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + }, + }, + &Provisioner{ + Stakes: []*Stake{ + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + }, + }, + &Provisioner{ + Stakes: []*Stake{ + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + }, + }, + &Provisioner{ + Stakes: []*Stake{ + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + }, + }, + &Provisioner{ + Stakes: []*Stake{ + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + }, + }, + &Provisioner{ + Stakes: []*Stake{ + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + &Stake{}, + }, + }, + }, + } + return res, nil +} diff --git a/autogen/go/rusk/rusk.pb.go b/autogen/go/rusk/rusk.pb.go index 2dd69d5..9d1250a 100644 --- a/autogen/go/rusk/rusk.pb.go +++ b/autogen/go/rusk/rusk.pb.go @@ -1,718 +1,444 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: rusk.proto package rusk import ( context "context" - proto "github.com/golang/protobuf/proto" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type VerifyStateTransitionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` - Height uint64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` - Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` + Height uint64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` + Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *VerifyStateTransitionRequest) Reset() { - *x = VerifyStateTransitionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_rusk_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *VerifyStateTransitionRequest) Reset() { *m = VerifyStateTransitionRequest{} } +func (m *VerifyStateTransitionRequest) String() string { return proto.CompactTextString(m) } +func (*VerifyStateTransitionRequest) ProtoMessage() {} +func (*VerifyStateTransitionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_211ec4e18343b18f, []int{0} } - -func (x *VerifyStateTransitionRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *VerifyStateTransitionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VerifyStateTransitionRequest.Unmarshal(m, b) } - -func (*VerifyStateTransitionRequest) ProtoMessage() {} - -func (x *VerifyStateTransitionRequest) ProtoReflect() protoreflect.Message { - mi := &file_rusk_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *VerifyStateTransitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VerifyStateTransitionRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use VerifyStateTransitionRequest.ProtoReflect.Descriptor instead. -func (*VerifyStateTransitionRequest) Descriptor() ([]byte, []int) { - return file_rusk_proto_rawDescGZIP(), []int{0} +func (m *VerifyStateTransitionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifyStateTransitionRequest.Merge(m, src) +} +func (m *VerifyStateTransitionRequest) XXX_Size() int { + return xxx_messageInfo_VerifyStateTransitionRequest.Size(m) } +func (m *VerifyStateTransitionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_VerifyStateTransitionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_VerifyStateTransitionRequest proto.InternalMessageInfo -func (x *VerifyStateTransitionRequest) GetTxs() []*Transaction { - if x != nil { - return x.Txs +func (m *VerifyStateTransitionRequest) GetTxs() []*Transaction { + if m != nil { + return m.Txs } return nil } -func (x *VerifyStateTransitionRequest) GetHeight() uint64 { - if x != nil { - return x.Height +func (m *VerifyStateTransitionRequest) GetHeight() uint64 { + if m != nil { + return m.Height } return 0 } -func (x *VerifyStateTransitionRequest) GetSeed() []byte { - if x != nil { - return x.Seed +func (m *VerifyStateTransitionRequest) GetSeed() []byte { + if m != nil { + return m.Seed } return nil } type VerifyStateTransitionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FailedCalls []uint64 `protobuf:"fixed64,1,rep,packed,name=failed_calls,json=failedCalls,proto3" json:"failed_calls,omitempty"` + FailedCalls []uint64 `protobuf:"fixed64,1,rep,packed,name=failed_calls,json=failedCalls,proto3" json:"failed_calls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *VerifyStateTransitionResponse) Reset() { - *x = VerifyStateTransitionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_rusk_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *VerifyStateTransitionResponse) Reset() { *m = VerifyStateTransitionResponse{} } +func (m *VerifyStateTransitionResponse) String() string { return proto.CompactTextString(m) } +func (*VerifyStateTransitionResponse) ProtoMessage() {} +func (*VerifyStateTransitionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_211ec4e18343b18f, []int{1} } - -func (x *VerifyStateTransitionResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *VerifyStateTransitionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VerifyStateTransitionResponse.Unmarshal(m, b) } - -func (*VerifyStateTransitionResponse) ProtoMessage() {} - -func (x *VerifyStateTransitionResponse) ProtoReflect() protoreflect.Message { - mi := &file_rusk_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *VerifyStateTransitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VerifyStateTransitionResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use VerifyStateTransitionResponse.ProtoReflect.Descriptor instead. -func (*VerifyStateTransitionResponse) Descriptor() ([]byte, []int) { - return file_rusk_proto_rawDescGZIP(), []int{1} +func (m *VerifyStateTransitionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifyStateTransitionResponse.Merge(m, src) +} +func (m *VerifyStateTransitionResponse) XXX_Size() int { + return xxx_messageInfo_VerifyStateTransitionResponse.Size(m) +} +func (m *VerifyStateTransitionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_VerifyStateTransitionResponse.DiscardUnknown(m) } -func (x *VerifyStateTransitionResponse) GetFailedCalls() []uint64 { - if x != nil { - return x.FailedCalls +var xxx_messageInfo_VerifyStateTransitionResponse proto.InternalMessageInfo + +func (m *VerifyStateTransitionResponse) GetFailedCalls() []uint64 { + if m != nil { + return m.FailedCalls } return nil } type ExecuteStateTransitionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` - Height uint64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` - Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` + Height uint64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` + Seed []byte `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ExecuteStateTransitionRequest) Reset() { - *x = ExecuteStateTransitionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_rusk_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ExecuteStateTransitionRequest) Reset() { *m = ExecuteStateTransitionRequest{} } +func (m *ExecuteStateTransitionRequest) String() string { return proto.CompactTextString(m) } +func (*ExecuteStateTransitionRequest) ProtoMessage() {} +func (*ExecuteStateTransitionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_211ec4e18343b18f, []int{2} } - -func (x *ExecuteStateTransitionRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ExecuteStateTransitionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecuteStateTransitionRequest.Unmarshal(m, b) } - -func (*ExecuteStateTransitionRequest) ProtoMessage() {} - -func (x *ExecuteStateTransitionRequest) ProtoReflect() protoreflect.Message { - mi := &file_rusk_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ExecuteStateTransitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecuteStateTransitionRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use ExecuteStateTransitionRequest.ProtoReflect.Descriptor instead. -func (*ExecuteStateTransitionRequest) Descriptor() ([]byte, []int) { - return file_rusk_proto_rawDescGZIP(), []int{2} +func (m *ExecuteStateTransitionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecuteStateTransitionRequest.Merge(m, src) } +func (m *ExecuteStateTransitionRequest) XXX_Size() int { + return xxx_messageInfo_ExecuteStateTransitionRequest.Size(m) +} +func (m *ExecuteStateTransitionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecuteStateTransitionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecuteStateTransitionRequest proto.InternalMessageInfo -func (x *ExecuteStateTransitionRequest) GetTxs() []*Transaction { - if x != nil { - return x.Txs +func (m *ExecuteStateTransitionRequest) GetTxs() []*Transaction { + if m != nil { + return m.Txs } return nil } -func (x *ExecuteStateTransitionRequest) GetHeight() uint64 { - if x != nil { - return x.Height +func (m *ExecuteStateTransitionRequest) GetHeight() uint64 { + if m != nil { + return m.Height } return 0 } -func (x *ExecuteStateTransitionRequest) GetSeed() []byte { - if x != nil { - return x.Seed +func (m *ExecuteStateTransitionRequest) GetSeed() []byte { + if m != nil { + return m.Seed } return nil } type ExecuteStateTransitionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ExecuteStateTransitionResponse) Reset() { - *x = ExecuteStateTransitionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_rusk_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ExecuteStateTransitionResponse) Reset() { *m = ExecuteStateTransitionResponse{} } +func (m *ExecuteStateTransitionResponse) String() string { return proto.CompactTextString(m) } +func (*ExecuteStateTransitionResponse) ProtoMessage() {} +func (*ExecuteStateTransitionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_211ec4e18343b18f, []int{3} } - -func (x *ExecuteStateTransitionResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ExecuteStateTransitionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecuteStateTransitionResponse.Unmarshal(m, b) } - -func (*ExecuteStateTransitionResponse) ProtoMessage() {} - -func (x *ExecuteStateTransitionResponse) ProtoReflect() protoreflect.Message { - mi := &file_rusk_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ExecuteStateTransitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecuteStateTransitionResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use ExecuteStateTransitionResponse.ProtoReflect.Descriptor instead. -func (*ExecuteStateTransitionResponse) Descriptor() ([]byte, []int) { - return file_rusk_proto_rawDescGZIP(), []int{3} +func (m *ExecuteStateTransitionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecuteStateTransitionResponse.Merge(m, src) +} +func (m *ExecuteStateTransitionResponse) XXX_Size() int { + return xxx_messageInfo_ExecuteStateTransitionResponse.Size(m) } +func (m *ExecuteStateTransitionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExecuteStateTransitionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecuteStateTransitionResponse proto.InternalMessageInfo -func (x *ExecuteStateTransitionResponse) GetSuccess() bool { - if x != nil { - return x.Success +func (m *ExecuteStateTransitionResponse) GetSuccess() bool { + if m != nil { + return m.Success } return false } -func (x *ExecuteStateTransitionResponse) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage +func (m *ExecuteStateTransitionResponse) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage } return "" } type Provisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PublicKeyBls []byte `protobuf:"bytes,1,opt,name=public_key_bls,json=publicKeyBls,proto3" json:"public_key_bls,omitempty"` - Stakes []*Stake `protobuf:"bytes,2,rep,name=stakes,proto3" json:"stakes,omitempty"` + PublicKeyBls []byte `protobuf:"bytes,1,opt,name=public_key_bls,json=publicKeyBls,proto3" json:"public_key_bls,omitempty"` + Stakes []*Stake `protobuf:"bytes,2,rep,name=stakes,proto3" json:"stakes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Provisioner) Reset() { - *x = Provisioner{} - if protoimpl.UnsafeEnabled { - mi := &file_rusk_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Provisioner) Reset() { *m = Provisioner{} } +func (m *Provisioner) String() string { return proto.CompactTextString(m) } +func (*Provisioner) ProtoMessage() {} +func (*Provisioner) Descriptor() ([]byte, []int) { + return fileDescriptor_211ec4e18343b18f, []int{4} } - -func (x *Provisioner) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Provisioner) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Provisioner.Unmarshal(m, b) } - -func (*Provisioner) ProtoMessage() {} - -func (x *Provisioner) ProtoReflect() protoreflect.Message { - mi := &file_rusk_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Provisioner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Provisioner.Marshal(b, m, deterministic) } - -// Deprecated: Use Provisioner.ProtoReflect.Descriptor instead. -func (*Provisioner) Descriptor() ([]byte, []int) { - return file_rusk_proto_rawDescGZIP(), []int{4} +func (m *Provisioner) XXX_Merge(src proto.Message) { + xxx_messageInfo_Provisioner.Merge(m, src) +} +func (m *Provisioner) XXX_Size() int { + return xxx_messageInfo_Provisioner.Size(m) +} +func (m *Provisioner) XXX_DiscardUnknown() { + xxx_messageInfo_Provisioner.DiscardUnknown(m) } -func (x *Provisioner) GetPublicKeyBls() []byte { - if x != nil { - return x.PublicKeyBls +var xxx_messageInfo_Provisioner proto.InternalMessageInfo + +func (m *Provisioner) GetPublicKeyBls() []byte { + if m != nil { + return m.PublicKeyBls } return nil } -func (x *Provisioner) GetStakes() []*Stake { - if x != nil { - return x.Stakes +func (m *Provisioner) GetStakes() []*Stake { + if m != nil { + return m.Stakes } return nil } type Stake struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` - StartHeight uint64 `protobuf:"fixed64,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` - EndHeight uint64 `protobuf:"fixed64,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` + Amount uint64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` + StartHeight uint64 `protobuf:"fixed64,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` + EndHeight uint64 `protobuf:"fixed64,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Stake) Reset() { - *x = Stake{} - if protoimpl.UnsafeEnabled { - mi := &file_rusk_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Stake) Reset() { *m = Stake{} } +func (m *Stake) String() string { return proto.CompactTextString(m) } +func (*Stake) ProtoMessage() {} +func (*Stake) Descriptor() ([]byte, []int) { + return fileDescriptor_211ec4e18343b18f, []int{5} } - -func (x *Stake) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Stake) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Stake.Unmarshal(m, b) } - -func (*Stake) ProtoMessage() {} - -func (x *Stake) ProtoReflect() protoreflect.Message { - mi := &file_rusk_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Stake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Stake.Marshal(b, m, deterministic) } - -// Deprecated: Use Stake.ProtoReflect.Descriptor instead. -func (*Stake) Descriptor() ([]byte, []int) { - return file_rusk_proto_rawDescGZIP(), []int{5} +func (m *Stake) XXX_Merge(src proto.Message) { + xxx_messageInfo_Stake.Merge(m, src) } +func (m *Stake) XXX_Size() int { + return xxx_messageInfo_Stake.Size(m) +} +func (m *Stake) XXX_DiscardUnknown() { + xxx_messageInfo_Stake.DiscardUnknown(m) +} + +var xxx_messageInfo_Stake proto.InternalMessageInfo -func (x *Stake) GetAmount() uint64 { - if x != nil { - return x.Amount +func (m *Stake) GetAmount() uint64 { + if m != nil { + return m.Amount } return 0 } -func (x *Stake) GetStartHeight() uint64 { - if x != nil { - return x.StartHeight +func (m *Stake) GetStartHeight() uint64 { + if m != nil { + return m.StartHeight } return 0 } -func (x *Stake) GetEndHeight() uint64 { - if x != nil { - return x.EndHeight +func (m *Stake) GetEndHeight() uint64 { + if m != nil { + return m.EndHeight } return 0 } type GetProvisionersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetProvisionersRequest) Reset() { - *x = GetProvisionersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_rusk_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetProvisionersRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetProvisionersRequest) Reset() { *m = GetProvisionersRequest{} } +func (m *GetProvisionersRequest) String() string { return proto.CompactTextString(m) } +func (*GetProvisionersRequest) ProtoMessage() {} +func (*GetProvisionersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_211ec4e18343b18f, []int{6} } - -func (*GetProvisionersRequest) ProtoMessage() {} - -func (x *GetProvisionersRequest) ProtoReflect() protoreflect.Message { - mi := &file_rusk_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetProvisionersRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetProvisionersRequest.Unmarshal(m, b) } - -// Deprecated: Use GetProvisionersRequest.ProtoReflect.Descriptor instead. -func (*GetProvisionersRequest) Descriptor() ([]byte, []int) { - return file_rusk_proto_rawDescGZIP(), []int{6} +func (m *GetProvisionersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetProvisionersRequest.Marshal(b, m, deterministic) } - -type GetProvisionersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Provisioners []*Provisioner `protobuf:"bytes,1,rep,name=provisioners,proto3" json:"provisioners,omitempty"` +func (m *GetProvisionersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetProvisionersRequest.Merge(m, src) } - -func (x *GetProvisionersResponse) Reset() { - *x = GetProvisionersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_rusk_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetProvisionersRequest) XXX_Size() int { + return xxx_messageInfo_GetProvisionersRequest.Size(m) } - -func (x *GetProvisionersResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetProvisionersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetProvisionersRequest.DiscardUnknown(m) } -func (*GetProvisionersResponse) ProtoMessage() {} +var xxx_messageInfo_GetProvisionersRequest proto.InternalMessageInfo -func (x *GetProvisionersResponse) ProtoReflect() protoreflect.Message { - mi := &file_rusk_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type GetProvisionersResponse struct { + Provisioners []*Provisioner `protobuf:"bytes,1,rep,name=provisioners,proto3" json:"provisioners,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -// Deprecated: Use GetProvisionersResponse.ProtoReflect.Descriptor instead. +func (m *GetProvisionersResponse) Reset() { *m = GetProvisionersResponse{} } +func (m *GetProvisionersResponse) String() string { return proto.CompactTextString(m) } +func (*GetProvisionersResponse) ProtoMessage() {} func (*GetProvisionersResponse) Descriptor() ([]byte, []int) { - return file_rusk_proto_rawDescGZIP(), []int{7} + return fileDescriptor_211ec4e18343b18f, []int{7} +} +func (m *GetProvisionersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetProvisionersResponse.Unmarshal(m, b) +} +func (m *GetProvisionersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetProvisionersResponse.Marshal(b, m, deterministic) +} +func (m *GetProvisionersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetProvisionersResponse.Merge(m, src) +} +func (m *GetProvisionersResponse) XXX_Size() int { + return xxx_messageInfo_GetProvisionersResponse.Size(m) +} +func (m *GetProvisionersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetProvisionersResponse.DiscardUnknown(m) } -func (x *GetProvisionersResponse) GetProvisioners() []*Provisioner { - if x != nil { - return x.Provisioners +var xxx_messageInfo_GetProvisionersResponse proto.InternalMessageInfo + +func (m *GetProvisionersResponse) GetProvisioners() []*Provisioner { + if m != nil { + return m.Provisioners } return nil } -var File_rusk_proto protoreflect.FileDescriptor - -var file_rusk_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, - 0x73, 0x6b, 0x1a, 0x0a, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x09, - 0x62, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x62, 0x6c, 0x69, 0x6e, 0x64, - 0x62, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6b, 0x65, - 0x79, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6f, 0x0a, 0x1c, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x74, 0x78, 0x73, 0x12, 0x16, 0x0a, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, 0x42, 0x0a, 0x1d, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, - 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x06, - 0x52, 0x0b, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x43, 0x61, 0x6c, 0x6c, 0x73, 0x22, 0x70, 0x0a, - 0x1d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, - 0x0a, 0x03, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, - 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, - 0x74, 0x78, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x06, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, - 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, - 0x5f, 0x0a, 0x1e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x22, 0x58, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, - 0x24, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x6c, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, - 0x65, 0x79, 0x42, 0x6c, 0x73, 0x12, 0x23, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, - 0x6b, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x73, 0x22, 0x61, 0x0a, 0x05, 0x53, 0x74, - 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x06, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x06, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x06, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x18, 0x0a, - 0x16, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, - 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x52, 0x0c, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x73, 0x32, 0xa4, 0x02, 0x0a, 0x05, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x62, 0x0a, 0x15, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x72, - 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x65, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x23, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x50, - 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, - 0x73, 0x12, 0x1c, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, - 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, - 0x75, 0x73, 0x6b, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x75, 0x73, 0x6b, - 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3b, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_rusk_proto_rawDescOnce sync.Once - file_rusk_proto_rawDescData = file_rusk_proto_rawDesc -) - -func file_rusk_proto_rawDescGZIP() []byte { - file_rusk_proto_rawDescOnce.Do(func() { - file_rusk_proto_rawDescData = protoimpl.X.CompressGZIP(file_rusk_proto_rawDescData) - }) - return file_rusk_proto_rawDescData -} - -var file_rusk_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_rusk_proto_goTypes = []interface{}{ - (*VerifyStateTransitionRequest)(nil), // 0: rusk.VerifyStateTransitionRequest - (*VerifyStateTransitionResponse)(nil), // 1: rusk.VerifyStateTransitionResponse - (*ExecuteStateTransitionRequest)(nil), // 2: rusk.ExecuteStateTransitionRequest - (*ExecuteStateTransitionResponse)(nil), // 3: rusk.ExecuteStateTransitionResponse - (*Provisioner)(nil), // 4: rusk.Provisioner - (*Stake)(nil), // 5: rusk.Stake - (*GetProvisionersRequest)(nil), // 6: rusk.GetProvisionersRequest - (*GetProvisionersResponse)(nil), // 7: rusk.GetProvisionersResponse - (*Transaction)(nil), // 8: rusk.Transaction -} -var file_rusk_proto_depIdxs = []int32{ - 8, // 0: rusk.VerifyStateTransitionRequest.txs:type_name -> rusk.Transaction - 8, // 1: rusk.ExecuteStateTransitionRequest.txs:type_name -> rusk.Transaction - 5, // 2: rusk.Provisioner.stakes:type_name -> rusk.Stake - 4, // 3: rusk.GetProvisionersResponse.provisioners:type_name -> rusk.Provisioner - 0, // 4: rusk.State.VerifyStateTransition:input_type -> rusk.VerifyStateTransitionRequest - 2, // 5: rusk.State.ExecuteStateTransition:input_type -> rusk.ExecuteStateTransitionRequest - 6, // 6: rusk.State.GetProvisioners:input_type -> rusk.GetProvisionersRequest - 1, // 7: rusk.State.VerifyStateTransition:output_type -> rusk.VerifyStateTransitionResponse - 3, // 8: rusk.State.ExecuteStateTransition:output_type -> rusk.ExecuteStateTransitionResponse - 7, // 9: rusk.State.GetProvisioners:output_type -> rusk.GetProvisionersResponse - 7, // [7:10] is the sub-list for method output_type - 4, // [4:7] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_rusk_proto_init() } -func file_rusk_proto_init() { - if File_rusk_proto != nil { - return - } - file_echo_proto_init() - file_bid_proto_init() - file_blindbid_proto_init() - file_transaction_proto_init() - file_keys_proto_init() - if !protoimpl.UnsafeEnabled { - file_rusk_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyStateTransitionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rusk_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyStateTransitionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rusk_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteStateTransitionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rusk_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteStateTransitionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rusk_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Provisioner); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rusk_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stake); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rusk_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProvisionersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rusk_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProvisionersResponse); 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_rusk_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_rusk_proto_goTypes, - DependencyIndexes: file_rusk_proto_depIdxs, - MessageInfos: file_rusk_proto_msgTypes, - }.Build() - File_rusk_proto = out.File - file_rusk_proto_rawDesc = nil - file_rusk_proto_goTypes = nil - file_rusk_proto_depIdxs = nil +func init() { + proto.RegisterType((*VerifyStateTransitionRequest)(nil), "rusk.VerifyStateTransitionRequest") + proto.RegisterType((*VerifyStateTransitionResponse)(nil), "rusk.VerifyStateTransitionResponse") + proto.RegisterType((*ExecuteStateTransitionRequest)(nil), "rusk.ExecuteStateTransitionRequest") + proto.RegisterType((*ExecuteStateTransitionResponse)(nil), "rusk.ExecuteStateTransitionResponse") + proto.RegisterType((*Provisioner)(nil), "rusk.Provisioner") + proto.RegisterType((*Stake)(nil), "rusk.Stake") + proto.RegisterType((*GetProvisionersRequest)(nil), "rusk.GetProvisionersRequest") + proto.RegisterType((*GetProvisionersResponse)(nil), "rusk.GetProvisionersResponse") +} + +func init() { proto.RegisterFile("rusk.proto", fileDescriptor_211ec4e18343b18f) } + +var fileDescriptor_211ec4e18343b18f = []byte{ + // 492 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x51, 0x6f, 0xd3, 0x30, + 0x10, 0xa6, 0xeb, 0x08, 0xf4, 0x1a, 0x86, 0x66, 0x89, 0x12, 0x55, 0x2b, 0x2a, 0xe9, 0x1e, 0x22, + 0xa4, 0x75, 0xd2, 0x10, 0x4f, 0xbc, 0x15, 0x21, 0x90, 0x10, 0x52, 0xe5, 0x4d, 0x08, 0xf1, 0x12, + 0x39, 0xc9, 0xad, 0xb1, 0x92, 0xc6, 0xc1, 0x76, 0x60, 0xfd, 0x3f, 0xfc, 0x50, 0x64, 0x3b, 0x65, + 0x2d, 0xb4, 0x7d, 0xe4, 0xed, 0xee, 0xbb, 0xcf, 0xdf, 0xdd, 0x7d, 0xb6, 0x0c, 0x20, 0x1b, 0x55, + 0x4c, 0x6b, 0x29, 0xb4, 0x20, 0xc7, 0x26, 0x1e, 0x02, 0xa6, 0xb9, 0x70, 0xc8, 0xb0, 0x97, 0xf0, + 0xac, 0x0d, 0x4f, 0x92, 0x92, 0x57, 0xd9, 0x7d, 0x7e, 0xaa, 0x25, 0xab, 0x14, 0x4b, 0x35, 0x17, + 0x55, 0x0b, 0x41, 0x81, 0x2b, 0xe5, 0xe2, 0x50, 0xc0, 0xd9, 0x17, 0x94, 0xfc, 0x76, 0x75, 0xad, + 0x99, 0xc6, 0x1b, 0xc3, 0xe5, 0x86, 0x4a, 0xf1, 0x7b, 0x83, 0x4a, 0x93, 0x09, 0x74, 0xf5, 0x9d, + 0x0a, 0x3a, 0xe3, 0x6e, 0xd4, 0xbf, 0x3a, 0x9d, 0xda, 0x29, 0x6e, 0xee, 0x15, 0xa9, 0xa9, 0x92, + 0x01, 0x78, 0x39, 0xf2, 0x45, 0xae, 0x83, 0xa3, 0x71, 0x27, 0xf2, 0x68, 0x9b, 0x11, 0x02, 0xc7, + 0x0a, 0x31, 0x0b, 0xba, 0xe3, 0x4e, 0xe4, 0x53, 0x1b, 0x87, 0x33, 0x18, 0xed, 0x69, 0xa8, 0x6a, + 0x51, 0x29, 0x24, 0x2f, 0xc1, 0xbf, 0x65, 0xbc, 0xc4, 0x2c, 0x4e, 0x59, 0x59, 0xba, 0xd6, 0x1e, + 0xed, 0x3b, 0xec, 0x9d, 0x81, 0xc2, 0x1a, 0x46, 0xef, 0xef, 0x30, 0x6d, 0x34, 0xfe, 0xaf, 0xa9, + 0x63, 0x78, 0xb1, 0xaf, 0x63, 0x3b, 0x76, 0x00, 0x8f, 0x54, 0x93, 0xa6, 0xa8, 0x4c, 0xdb, 0x4e, + 0xf4, 0x98, 0xae, 0x53, 0x32, 0x81, 0x27, 0x28, 0xa5, 0x90, 0xf1, 0x12, 0x95, 0x62, 0x0b, 0xb4, + 0xed, 0x7a, 0xd4, 0xb7, 0xe0, 0x67, 0x87, 0x85, 0x5f, 0xa1, 0x3f, 0x97, 0xe2, 0x07, 0x57, 0x5c, + 0x54, 0x28, 0xc9, 0x39, 0x9c, 0xd4, 0x4d, 0x52, 0xf2, 0x34, 0x2e, 0x70, 0x15, 0x27, 0xa5, 0x13, + 0xf5, 0xa9, 0xef, 0xd0, 0x4f, 0xb8, 0x9a, 0x95, 0x46, 0xd9, 0x53, 0x9a, 0x15, 0xa8, 0x82, 0x23, + 0xbb, 0x69, 0xdf, 0x6d, 0x7a, 0x6d, 0x30, 0xda, 0x96, 0x42, 0x06, 0x0f, 0x2d, 0x60, 0xf6, 0x65, + 0x4b, 0xd1, 0x54, 0xda, 0x6a, 0x79, 0xb4, 0xcd, 0x8c, 0xe1, 0x4a, 0x33, 0xa9, 0xe3, 0x2d, 0x37, + 0xfa, 0x16, 0xfb, 0xe8, 0x2c, 0x19, 0x01, 0x60, 0x95, 0xad, 0x09, 0x5d, 0x4b, 0xe8, 0x61, 0x95, + 0xb9, 0x72, 0x18, 0xc0, 0xe0, 0x03, 0xea, 0x8d, 0xf9, 0x55, 0x7b, 0x11, 0xe1, 0x1c, 0x9e, 0xff, + 0x53, 0x69, 0x0d, 0x7b, 0x03, 0x7e, 0xbd, 0x81, 0x6f, 0x5f, 0xd6, 0xc6, 0x09, 0xba, 0x45, 0xbb, + 0xfa, 0x75, 0x64, 0xf7, 0xd1, 0x48, 0x12, 0x78, 0xb6, 0xf3, 0x25, 0x91, 0xd0, 0x69, 0x1c, 0x7a, + 0xd7, 0xc3, 0xc9, 0x41, 0x8e, 0x1b, 0x31, 0x7c, 0x40, 0x10, 0x06, 0xbb, 0xef, 0x9d, 0xb4, 0x02, + 0x07, 0xdf, 0xe1, 0xf0, 0xfc, 0x30, 0xe9, 0x4f, 0x9b, 0x39, 0x3c, 0xfd, 0xcb, 0x26, 0x72, 0xe6, + 0x8e, 0xee, 0xf6, 0x75, 0x38, 0xda, 0x53, 0x5d, 0x2b, 0xce, 0x5e, 0x7d, 0x8b, 0x16, 0x5c, 0xe7, + 0x4d, 0x32, 0x4d, 0xc5, 0xf2, 0x32, 0x6b, 0x54, 0x71, 0x51, 0xa1, 0xfe, 0x29, 0x64, 0x71, 0x69, + 0x4e, 0x5e, 0xa8, 0x34, 0xc7, 0x25, 0x7b, 0x6b, 0xe2, 0xc4, 0xb3, 0x5f, 0xc1, 0xeb, 0xdf, 0x01, + 0x00, 0x00, 0xff, 0xff, 0xe9, 0xe4, 0xf8, 0xfb, 0x64, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // StateClient is the client API for State service. // @@ -724,10 +450,10 @@ type StateClient interface { } type stateClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewStateClient(cc grpc.ClientConnInterface) StateClient { +func NewStateClient(cc *grpc.ClientConn) StateClient { return &stateClient{cc} } @@ -769,13 +495,13 @@ type StateServer interface { type UnimplementedStateServer struct { } -func (*UnimplementedStateServer) VerifyStateTransition(context.Context, *VerifyStateTransitionRequest) (*VerifyStateTransitionResponse, error) { +func (*UnimplementedStateServer) VerifyStateTransition(ctx context.Context, req *VerifyStateTransitionRequest) (*VerifyStateTransitionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifyStateTransition not implemented") } -func (*UnimplementedStateServer) ExecuteStateTransition(context.Context, *ExecuteStateTransitionRequest) (*ExecuteStateTransitionResponse, error) { +func (*UnimplementedStateServer) ExecuteStateTransition(ctx context.Context, req *ExecuteStateTransitionRequest) (*ExecuteStateTransitionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ExecuteStateTransition not implemented") } -func (*UnimplementedStateServer) GetProvisioners(context.Context, *GetProvisionersRequest) (*GetProvisionersResponse, error) { +func (*UnimplementedStateServer) GetProvisioners(ctx context.Context, req *GetProvisionersRequest) (*GetProvisionersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetProvisioners not implemented") } diff --git a/autogen/go/rusk/transaction.pb.go b/autogen/go/rusk/transaction.pb.go index 8b2d229..6a5874f 100644 --- a/autogen/go/rusk/transaction.pb.go +++ b/autogen/go/rusk/transaction.pb.go @@ -1,608 +1,395 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.24.0 -// protoc v3.11.4 +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: transaction.proto package rusk import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Crossover struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ValueComm *JubJubCompressed `protobuf:"bytes,1,opt,name=value_comm,json=valueComm,proto3" json:"value_comm,omitempty"` - Nonce *BlsScalar `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` - EncyptedData *PoseidonCipher `protobuf:"bytes,3,opt,name=encypted_data,json=encyptedData,proto3" json:"encypted_data,omitempty"` + ValueComm *JubJubCompressed `protobuf:"bytes,1,opt,name=value_comm,json=valueComm,proto3" json:"value_comm,omitempty"` + Nonce *BlsScalar `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + EncyptedData *PoseidonCipher `protobuf:"bytes,3,opt,name=encypted_data,json=encyptedData,proto3" json:"encypted_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Crossover) Reset() { - *x = Crossover{} - if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Crossover) Reset() { *m = Crossover{} } +func (m *Crossover) String() string { return proto.CompactTextString(m) } +func (*Crossover) ProtoMessage() {} +func (*Crossover) Descriptor() ([]byte, []int) { + return fileDescriptor_2cc4e03d2c28c490, []int{0} } - -func (x *Crossover) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Crossover) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Crossover.Unmarshal(m, b) } - -func (*Crossover) ProtoMessage() {} - -func (x *Crossover) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Crossover) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Crossover.Marshal(b, m, deterministic) } - -// Deprecated: Use Crossover.ProtoReflect.Descriptor instead. -func (*Crossover) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{0} +func (m *Crossover) XXX_Merge(src proto.Message) { + xxx_messageInfo_Crossover.Merge(m, src) +} +func (m *Crossover) XXX_Size() int { + return xxx_messageInfo_Crossover.Size(m) +} +func (m *Crossover) XXX_DiscardUnknown() { + xxx_messageInfo_Crossover.DiscardUnknown(m) } -func (x *Crossover) GetValueComm() *JubJubCompressed { - if x != nil { - return x.ValueComm +var xxx_messageInfo_Crossover proto.InternalMessageInfo + +func (m *Crossover) GetValueComm() *JubJubCompressed { + if m != nil { + return m.ValueComm } return nil } -func (x *Crossover) GetNonce() *BlsScalar { - if x != nil { - return x.Nonce +func (m *Crossover) GetNonce() *BlsScalar { + if m != nil { + return m.Nonce } return nil } -func (x *Crossover) GetEncyptedData() *PoseidonCipher { - if x != nil { - return x.EncyptedData +func (m *Crossover) GetEncyptedData() *PoseidonCipher { + if m != nil { + return m.EncyptedData } return nil } type Fee struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GasLimit uint64 `protobuf:"varint,1,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` - GasPrice uint64 `protobuf:"varint,2,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` - R *JubJubCompressed `protobuf:"bytes,3,opt,name=R,proto3" json:"R,omitempty"` - PkR *JubJubCompressed `protobuf:"bytes,4,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` -} - -func (x *Fee) Reset() { - *x = Fee{} - if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + GasLimit uint64 `protobuf:"varint,1,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` + GasPrice uint64 `protobuf:"varint,2,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` + R *JubJubCompressed `protobuf:"bytes,3,opt,name=R,proto3" json:"R,omitempty"` + PkR *JubJubCompressed `protobuf:"bytes,4,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Fee) Reset() { *m = Fee{} } +func (m *Fee) String() string { return proto.CompactTextString(m) } +func (*Fee) ProtoMessage() {} +func (*Fee) Descriptor() ([]byte, []int) { + return fileDescriptor_2cc4e03d2c28c490, []int{1} } - -func (x *Fee) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Fee) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Fee.Unmarshal(m, b) } - -func (*Fee) ProtoMessage() {} - -func (x *Fee) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Fee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Fee.Marshal(b, m, deterministic) } - -// Deprecated: Use Fee.ProtoReflect.Descriptor instead. -func (*Fee) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{1} +func (m *Fee) XXX_Merge(src proto.Message) { + xxx_messageInfo_Fee.Merge(m, src) +} +func (m *Fee) XXX_Size() int { + return xxx_messageInfo_Fee.Size(m) } +func (m *Fee) XXX_DiscardUnknown() { + xxx_messageInfo_Fee.DiscardUnknown(m) +} + +var xxx_messageInfo_Fee proto.InternalMessageInfo -func (x *Fee) GetGasLimit() uint64 { - if x != nil { - return x.GasLimit +func (m *Fee) GetGasLimit() uint64 { + if m != nil { + return m.GasLimit } return 0 } -func (x *Fee) GetGasPrice() uint64 { - if x != nil { - return x.GasPrice +func (m *Fee) GetGasPrice() uint64 { + if m != nil { + return m.GasPrice } return 0 } -func (x *Fee) GetR() *JubJubCompressed { - if x != nil { - return x.R +func (m *Fee) GetR() *JubJubCompressed { + if m != nil { + return m.R } return nil } -func (x *Fee) GetPkR() *JubJubCompressed { - if x != nil { - return x.PkR +func (m *Fee) GetPkR() *JubJubCompressed { + if m != nil { + return m.PkR } return nil } type Note struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Randomness *JubJubCompressed `protobuf:"bytes,1,opt,name=randomness,proto3" json:"randomness,omitempty"` - PkR *JubJubCompressed `protobuf:"bytes,2,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` - Commitment *JubJubCompressed `protobuf:"bytes,3,opt,name=commitment,proto3" json:"commitment,omitempty"` - Nonce *BlsScalar `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` - EncyptedData *PoseidonCipher `protobuf:"bytes,5,opt,name=encypted_data,json=encyptedData,proto3" json:"encypted_data,omitempty"` -} - -func (x *Note) Reset() { - *x = Note{} - if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + Randomness *JubJubCompressed `protobuf:"bytes,1,opt,name=randomness,proto3" json:"randomness,omitempty"` + PkR *JubJubCompressed `protobuf:"bytes,2,opt,name=pk_r,json=pkR,proto3" json:"pk_r,omitempty"` + Commitment *JubJubCompressed `protobuf:"bytes,3,opt,name=commitment,proto3" json:"commitment,omitempty"` + Nonce *BlsScalar `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` + EncyptedData *PoseidonCipher `protobuf:"bytes,5,opt,name=encypted_data,json=encyptedData,proto3" json:"encypted_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Note) Reset() { *m = Note{} } +func (m *Note) String() string { return proto.CompactTextString(m) } +func (*Note) ProtoMessage() {} +func (*Note) Descriptor() ([]byte, []int) { + return fileDescriptor_2cc4e03d2c28c490, []int{2} } - -func (x *Note) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Note) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Note.Unmarshal(m, b) } - -func (*Note) ProtoMessage() {} - -func (x *Note) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Note) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Note.Marshal(b, m, deterministic) } - -// Deprecated: Use Note.ProtoReflect.Descriptor instead. -func (*Note) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{2} +func (m *Note) XXX_Merge(src proto.Message) { + xxx_messageInfo_Note.Merge(m, src) +} +func (m *Note) XXX_Size() int { + return xxx_messageInfo_Note.Size(m) } +func (m *Note) XXX_DiscardUnknown() { + xxx_messageInfo_Note.DiscardUnknown(m) +} + +var xxx_messageInfo_Note proto.InternalMessageInfo -func (x *Note) GetRandomness() *JubJubCompressed { - if x != nil { - return x.Randomness +func (m *Note) GetRandomness() *JubJubCompressed { + if m != nil { + return m.Randomness } return nil } -func (x *Note) GetPkR() *JubJubCompressed { - if x != nil { - return x.PkR +func (m *Note) GetPkR() *JubJubCompressed { + if m != nil { + return m.PkR } return nil } -func (x *Note) GetCommitment() *JubJubCompressed { - if x != nil { - return x.Commitment +func (m *Note) GetCommitment() *JubJubCompressed { + if m != nil { + return m.Commitment } return nil } -func (x *Note) GetNonce() *BlsScalar { - if x != nil { - return x.Nonce +func (m *Note) GetNonce() *BlsScalar { + if m != nil { + return m.Nonce } return nil } -func (x *Note) GetEncyptedData() *PoseidonCipher { - if x != nil { - return x.EncyptedData +func (m *Note) GetEncyptedData() *PoseidonCipher { + if m != nil { + return m.EncyptedData } return nil } type TransactionPayload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Anchor *BlsScalar `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"` - Nullifier []*BlsScalar `protobuf:"bytes,2,rep,name=nullifier,proto3" json:"nullifier,omitempty"` - Crossover *Crossover `protobuf:"bytes,3,opt,name=crossover,proto3" json:"crossover,omitempty"` - Notes []*Note `protobuf:"bytes,4,rep,name=notes,proto3" json:"notes,omitempty"` - Fee *Fee `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"` - SpendingProof *Proof `protobuf:"bytes,6,opt,name=spending_proof,json=spendingProof,proto3" json:"spending_proof,omitempty"` - CallData []byte `protobuf:"bytes,7,opt,name=call_data,json=callData,proto3" json:"call_data,omitempty"` -} - -func (x *TransactionPayload) Reset() { - *x = TransactionPayload{} - if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + Anchor *BlsScalar `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"` + Nullifier []*BlsScalar `protobuf:"bytes,2,rep,name=nullifier,proto3" json:"nullifier,omitempty"` + Crossover *Crossover `protobuf:"bytes,3,opt,name=crossover,proto3" json:"crossover,omitempty"` + Notes []*Note `protobuf:"bytes,4,rep,name=notes,proto3" json:"notes,omitempty"` + Fee *Fee `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,omitempty"` + SpendingProof *Proof `protobuf:"bytes,6,opt,name=spending_proof,json=spendingProof,proto3" json:"spending_proof,omitempty"` + CallData []byte `protobuf:"bytes,7,opt,name=call_data,json=callData,proto3" json:"call_data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransactionPayload) Reset() { *m = TransactionPayload{} } +func (m *TransactionPayload) String() string { return proto.CompactTextString(m) } +func (*TransactionPayload) ProtoMessage() {} +func (*TransactionPayload) Descriptor() ([]byte, []int) { + return fileDescriptor_2cc4e03d2c28c490, []int{3} } - -func (x *TransactionPayload) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TransactionPayload) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransactionPayload.Unmarshal(m, b) } - -func (*TransactionPayload) ProtoMessage() {} - -func (x *TransactionPayload) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TransactionPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransactionPayload.Marshal(b, m, deterministic) } - -// Deprecated: Use TransactionPayload.ProtoReflect.Descriptor instead. -func (*TransactionPayload) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{3} +func (m *TransactionPayload) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionPayload.Merge(m, src) +} +func (m *TransactionPayload) XXX_Size() int { + return xxx_messageInfo_TransactionPayload.Size(m) +} +func (m *TransactionPayload) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionPayload.DiscardUnknown(m) } -func (x *TransactionPayload) GetAnchor() *BlsScalar { - if x != nil { - return x.Anchor +var xxx_messageInfo_TransactionPayload proto.InternalMessageInfo + +func (m *TransactionPayload) GetAnchor() *BlsScalar { + if m != nil { + return m.Anchor } return nil } -func (x *TransactionPayload) GetNullifier() []*BlsScalar { - if x != nil { - return x.Nullifier +func (m *TransactionPayload) GetNullifier() []*BlsScalar { + if m != nil { + return m.Nullifier } return nil } -func (x *TransactionPayload) GetCrossover() *Crossover { - if x != nil { - return x.Crossover +func (m *TransactionPayload) GetCrossover() *Crossover { + if m != nil { + return m.Crossover } return nil } -func (x *TransactionPayload) GetNotes() []*Note { - if x != nil { - return x.Notes +func (m *TransactionPayload) GetNotes() []*Note { + if m != nil { + return m.Notes } return nil } -func (x *TransactionPayload) GetFee() *Fee { - if x != nil { - return x.Fee +func (m *TransactionPayload) GetFee() *Fee { + if m != nil { + return m.Fee } return nil } -func (x *TransactionPayload) GetSpendingProof() *Proof { - if x != nil { - return x.SpendingProof +func (m *TransactionPayload) GetSpendingProof() *Proof { + if m != nil { + return m.SpendingProof } return nil } -func (x *TransactionPayload) GetCallData() []byte { - if x != nil { - return x.CallData +func (m *TransactionPayload) GetCallData() []byte { + if m != nil { + return m.CallData } return nil } type Transaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` - TxPayload *TransactionPayload `protobuf:"bytes,3,opt,name=tx_payload,json=txPayload,proto3" json:"tx_payload,omitempty"` + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` + TxPayload *TransactionPayload `protobuf:"bytes,3,opt,name=tx_payload,json=txPayload,proto3" json:"tx_payload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Transaction) Reset() { - *x = Transaction{} - if protoimpl.UnsafeEnabled { - mi := &file_transaction_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Transaction) Reset() { *m = Transaction{} } +func (m *Transaction) String() string { return proto.CompactTextString(m) } +func (*Transaction) ProtoMessage() {} +func (*Transaction) Descriptor() ([]byte, []int) { + return fileDescriptor_2cc4e03d2c28c490, []int{4} } - -func (x *Transaction) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Transaction) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Transaction.Unmarshal(m, b) } - -func (*Transaction) ProtoMessage() {} - -func (x *Transaction) ProtoReflect() protoreflect.Message { - mi := &file_transaction_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Transaction.Marshal(b, m, deterministic) } - -// Deprecated: Use Transaction.ProtoReflect.Descriptor instead. -func (*Transaction) Descriptor() ([]byte, []int) { - return file_transaction_proto_rawDescGZIP(), []int{4} +func (m *Transaction) XXX_Merge(src proto.Message) { + xxx_messageInfo_Transaction.Merge(m, src) +} +func (m *Transaction) XXX_Size() int { + return xxx_messageInfo_Transaction.Size(m) +} +func (m *Transaction) XXX_DiscardUnknown() { + xxx_messageInfo_Transaction.DiscardUnknown(m) } -func (x *Transaction) GetVersion() uint32 { - if x != nil { - return x.Version +var xxx_messageInfo_Transaction proto.InternalMessageInfo + +func (m *Transaction) GetVersion() uint32 { + if m != nil { + return m.Version } return 0 } -func (x *Transaction) GetType() uint32 { - if x != nil { - return x.Type +func (m *Transaction) GetType() uint32 { + if m != nil { + return m.Type } return 0 } -func (x *Transaction) GetTxPayload() *TransactionPayload { - if x != nil { - return x.TxPayload +func (m *Transaction) GetTxPayload() *TransactionPayload { + if m != nil { + return m.TxPayload } return nil } -var File_transaction_proto protoreflect.FileDescriptor - -var file_transaction_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x72, 0x75, 0x73, 0x6b, 0x1a, 0x12, 0x62, 0x61, 0x73, 0x69, 0x63, - 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x01, - 0x0a, 0x09, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x6f, 0x76, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0a, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x6f, - 0x6d, 0x6d, 0x12, 0x25, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, - 0x61, 0x72, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x65, 0x6e, 0x63, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x6f, 0x73, 0x65, 0x69, 0x64, 0x6f, 0x6e, - 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x52, 0x0c, 0x65, 0x6e, 0x63, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x44, 0x61, 0x74, 0x61, 0x22, 0x90, 0x01, 0x0a, 0x03, 0x46, 0x65, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x67, 0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, - 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x67, 0x61, - 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x24, 0x0a, 0x01, 0x52, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, - 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x01, 0x52, 0x12, 0x29, 0x0a, 0x04, - 0x70, 0x6b, 0x5f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, - 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x64, 0x52, 0x03, 0x70, 0x6b, 0x52, 0x22, 0x83, 0x02, 0x0a, 0x04, 0x4e, 0x6f, 0x74, 0x65, - 0x12, 0x36, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, 0x62, 0x4a, - 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x0a, 0x72, 0x61, - 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6b, 0x5f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, 0x75, - 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, 0x03, - 0x70, 0x6b, 0x52, 0x12, 0x36, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x4a, - 0x75, 0x62, 0x4a, 0x75, 0x62, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x52, - 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x05, 0x6e, - 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, - 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x05, 0x6e, 0x6f, 0x6e, - 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x65, 0x6e, 0x63, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x72, 0x75, 0x73, 0x6b, - 0x2e, 0x50, 0x6f, 0x73, 0x65, 0x69, 0x64, 0x6f, 0x6e, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x52, - 0x0c, 0x65, 0x6e, 0x63, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0xab, 0x02, - 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x27, 0x0a, 0x06, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, - 0x63, 0x61, 0x6c, 0x61, 0x72, 0x52, 0x06, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x12, 0x2d, 0x0a, - 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x42, 0x6c, 0x73, 0x53, 0x63, 0x61, 0x6c, 0x61, - 0x72, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x09, - 0x63, 0x72, 0x6f, 0x73, 0x73, 0x6f, 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0f, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x6f, 0x76, 0x65, 0x72, - 0x52, 0x09, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x6f, 0x76, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x05, 0x6e, - 0x6f, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x72, 0x75, 0x73, - 0x6b, 0x2e, 0x4e, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x1b, 0x0a, - 0x03, 0x66, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x72, 0x75, 0x73, - 0x6b, 0x2e, 0x46, 0x65, 0x65, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x32, 0x0a, 0x0e, 0x73, 0x70, - 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x72, 0x75, 0x73, 0x6b, 0x2e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, - 0x0d, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x1b, - 0x0a, 0x09, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x08, 0x63, 0x61, 0x6c, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x22, 0x74, 0x0a, 0x0b, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x0a, 0x74, 0x78, 0x5f, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x72, - 0x75, 0x73, 0x6b, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x09, 0x74, 0x78, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, - 0x64, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x64, 0x75, 0x73, 0x6b, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x75, 0x73, - 0x6b, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3b, 0x72, 0x75, 0x73, 0x6b, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_transaction_proto_rawDescOnce sync.Once - file_transaction_proto_rawDescData = file_transaction_proto_rawDesc -) - -func file_transaction_proto_rawDescGZIP() []byte { - file_transaction_proto_rawDescOnce.Do(func() { - file_transaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_transaction_proto_rawDescData) - }) - return file_transaction_proto_rawDescData -} - -var file_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_transaction_proto_goTypes = []interface{}{ - (*Crossover)(nil), // 0: rusk.Crossover - (*Fee)(nil), // 1: rusk.Fee - (*Note)(nil), // 2: rusk.Note - (*TransactionPayload)(nil), // 3: rusk.TransactionPayload - (*Transaction)(nil), // 4: rusk.Transaction - (*JubJubCompressed)(nil), // 5: rusk.JubJubCompressed - (*BlsScalar)(nil), // 6: rusk.BlsScalar - (*PoseidonCipher)(nil), // 7: rusk.PoseidonCipher - (*Proof)(nil), // 8: rusk.Proof -} -var file_transaction_proto_depIdxs = []int32{ - 5, // 0: rusk.Crossover.value_comm:type_name -> rusk.JubJubCompressed - 6, // 1: rusk.Crossover.nonce:type_name -> rusk.BlsScalar - 7, // 2: rusk.Crossover.encypted_data:type_name -> rusk.PoseidonCipher - 5, // 3: rusk.Fee.R:type_name -> rusk.JubJubCompressed - 5, // 4: rusk.Fee.pk_r:type_name -> rusk.JubJubCompressed - 5, // 5: rusk.Note.randomness:type_name -> rusk.JubJubCompressed - 5, // 6: rusk.Note.pk_r:type_name -> rusk.JubJubCompressed - 5, // 7: rusk.Note.commitment:type_name -> rusk.JubJubCompressed - 6, // 8: rusk.Note.nonce:type_name -> rusk.BlsScalar - 7, // 9: rusk.Note.encypted_data:type_name -> rusk.PoseidonCipher - 6, // 10: rusk.TransactionPayload.anchor:type_name -> rusk.BlsScalar - 6, // 11: rusk.TransactionPayload.nullifier:type_name -> rusk.BlsScalar - 0, // 12: rusk.TransactionPayload.crossover:type_name -> rusk.Crossover - 2, // 13: rusk.TransactionPayload.notes:type_name -> rusk.Note - 1, // 14: rusk.TransactionPayload.fee:type_name -> rusk.Fee - 8, // 15: rusk.TransactionPayload.spending_proof:type_name -> rusk.Proof - 3, // 16: rusk.Transaction.tx_payload:type_name -> rusk.TransactionPayload - 17, // [17:17] is the sub-list for method output_type - 17, // [17:17] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name -} - -func init() { file_transaction_proto_init() } -func file_transaction_proto_init() { - if File_transaction_proto != nil { - return - } - file_basic_fields_proto_init() - if !protoimpl.UnsafeEnabled { - file_transaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Crossover); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_transaction_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Fee); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_transaction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Note); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_transaction_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_transaction_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transaction); 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_transaction_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_transaction_proto_goTypes, - DependencyIndexes: file_transaction_proto_depIdxs, - MessageInfos: file_transaction_proto_msgTypes, - }.Build() - File_transaction_proto = out.File - file_transaction_proto_rawDesc = nil - file_transaction_proto_goTypes = nil - file_transaction_proto_depIdxs = nil +func init() { + proto.RegisterType((*Crossover)(nil), "rusk.Crossover") + proto.RegisterType((*Fee)(nil), "rusk.Fee") + proto.RegisterType((*Note)(nil), "rusk.Note") + proto.RegisterType((*TransactionPayload)(nil), "rusk.TransactionPayload") + proto.RegisterType((*Transaction)(nil), "rusk.Transaction") +} + +func init() { proto.RegisterFile("transaction.proto", fileDescriptor_2cc4e03d2c28c490) } + +var fileDescriptor_2cc4e03d2c28c490 = []byte{ + // 532 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x41, 0x8b, 0x13, 0x31, + 0x14, 0xc7, 0x99, 0x76, 0xb6, 0xbb, 0xf3, 0xba, 0x55, 0x0c, 0x22, 0x83, 0x7b, 0x29, 0x45, 0xb1, + 0x0a, 0xed, 0xc2, 0x8a, 0x8a, 0x78, 0xdb, 0xca, 0x1e, 0x16, 0x91, 0x12, 0x3d, 0x79, 0x19, 0xd2, + 0x99, 0xd7, 0x36, 0x74, 0x26, 0x09, 0x49, 0xa6, 0x6e, 0xcf, 0x7e, 0x01, 0x3f, 0x84, 0x37, 0xbf, + 0xa4, 0x24, 0x99, 0x6e, 0x0b, 0xab, 0x56, 0x6f, 0x79, 0xf9, 0xff, 0xde, 0xbc, 0xbc, 0xff, 0x7b, + 0x0c, 0x3c, 0xb0, 0x9a, 0x09, 0xc3, 0x72, 0xcb, 0xa5, 0x18, 0x2b, 0x2d, 0xad, 0x24, 0xb1, 0xae, + 0xcd, 0xea, 0x31, 0x99, 0x31, 0xc3, 0xf3, 0x6c, 0xce, 0xb1, 0x2c, 0x4c, 0x50, 0x06, 0x3f, 0x22, + 0x48, 0x26, 0x5a, 0x1a, 0x23, 0xd7, 0xa8, 0xc9, 0x2b, 0x80, 0x35, 0x2b, 0x6b, 0xcc, 0x72, 0x59, + 0x55, 0x69, 0xd4, 0x8f, 0x86, 0xdd, 0x8b, 0x47, 0x63, 0x97, 0x3c, 0xbe, 0xae, 0x67, 0xd7, 0xf5, + 0x6c, 0x22, 0x2b, 0xa5, 0xd1, 0x18, 0x2c, 0x68, 0xe2, 0xc9, 0x89, 0xac, 0x2a, 0xf2, 0x14, 0x8e, + 0x84, 0x14, 0x39, 0xa6, 0x2d, 0x9f, 0x71, 0x3f, 0x64, 0x5c, 0x96, 0xe6, 0x53, 0xce, 0x4a, 0xa6, + 0x69, 0x50, 0xc9, 0x5b, 0xe8, 0xa1, 0xc8, 0x37, 0xca, 0x62, 0x91, 0x15, 0xcc, 0xb2, 0xb4, 0xed, + 0xf1, 0x87, 0x01, 0x9f, 0x4a, 0x83, 0xbc, 0x90, 0x62, 0xc2, 0xd5, 0x12, 0x35, 0x3d, 0xdd, 0xa2, + 0xef, 0x99, 0x65, 0x83, 0xef, 0x11, 0xb4, 0xaf, 0x10, 0xc9, 0x19, 0x24, 0x0b, 0x66, 0xb2, 0x92, + 0x57, 0xdc, 0xfa, 0xf7, 0xc5, 0xf4, 0x64, 0xc1, 0xcc, 0x07, 0x17, 0x6f, 0x45, 0xa5, 0x79, 0xf3, + 0x94, 0x20, 0x4e, 0x5d, 0x4c, 0x9e, 0x40, 0x44, 0x9b, 0x82, 0x7f, 0xea, 0x28, 0xa2, 0xe4, 0x39, + 0xc4, 0x6a, 0x95, 0xe9, 0x34, 0xfe, 0x2b, 0xd8, 0x56, 0x2b, 0x3a, 0xf8, 0xd6, 0x82, 0xf8, 0xa3, + 0xb4, 0x48, 0x5e, 0x03, 0x68, 0x26, 0x0a, 0x59, 0x09, 0x34, 0xe6, 0x80, 0x69, 0x7b, 0xe4, 0x6d, + 0xad, 0xd6, 0xc1, 0x5a, 0xae, 0x84, 0x9b, 0x08, 0xb7, 0x15, 0x0a, 0x7b, 0xa0, 0x8b, 0x3d, 0x72, + 0x37, 0x98, 0xf8, 0xff, 0x06, 0x73, 0xf4, 0xcf, 0x83, 0xf9, 0xd9, 0x02, 0xf2, 0x79, 0xb7, 0x6f, + 0x53, 0xb6, 0x29, 0x25, 0x2b, 0xc8, 0x33, 0xe8, 0x30, 0x91, 0x2f, 0xa5, 0x6e, 0xfc, 0xb8, 0x53, + 0xb9, 0x91, 0xc9, 0x08, 0x12, 0x51, 0x97, 0x25, 0x9f, 0x73, 0x74, 0x4e, 0xb4, 0x7f, 0xc7, 0xee, + 0x08, 0x87, 0xe7, 0xdb, 0x6d, 0x6d, 0x7c, 0x68, 0xf0, 0xdb, 0x25, 0xa6, 0x3b, 0x82, 0xf4, 0x5d, + 0xff, 0x16, 0x4d, 0x1a, 0xfb, 0x2f, 0x43, 0x40, 0xdd, 0xd4, 0x68, 0x10, 0xc8, 0x19, 0xb4, 0xe7, + 0x88, 0x4d, 0xc3, 0x49, 0xd0, 0xaf, 0x10, 0xa9, 0xbb, 0x25, 0x17, 0x70, 0xcf, 0x28, 0x14, 0x05, + 0x17, 0x8b, 0x4c, 0x69, 0x29, 0xe7, 0x69, 0xc7, 0x73, 0xdd, 0xc6, 0x18, 0x77, 0x45, 0x7b, 0x5b, + 0xc4, 0x87, 0x6e, 0x09, 0x73, 0x56, 0x96, 0xc1, 0xc7, 0xe3, 0x7e, 0x34, 0x3c, 0xa5, 0x27, 0xee, + 0xc2, 0xbb, 0x65, 0xa1, 0xbb, 0x67, 0x16, 0x49, 0xe1, 0x78, 0x8d, 0xda, 0x70, 0x29, 0xbc, 0x4d, + 0x3d, 0xba, 0x0d, 0x09, 0x81, 0xd8, 0x6e, 0x54, 0xd8, 0xe2, 0x1e, 0xf5, 0x67, 0xf2, 0x06, 0xc0, + 0xde, 0x64, 0x2a, 0x38, 0xdc, 0x34, 0x9f, 0x86, 0x97, 0xdc, 0x9d, 0x00, 0x4d, 0xec, 0x4d, 0x73, + 0xbc, 0x7c, 0xf1, 0x65, 0xb8, 0xe0, 0x76, 0x59, 0xcf, 0xc6, 0xb9, 0xac, 0xce, 0x8b, 0xda, 0xac, + 0x46, 0x02, 0xed, 0x57, 0xa9, 0x57, 0xe7, 0x2e, 0x7b, 0x64, 0xf2, 0x25, 0x56, 0xec, 0x9d, 0x3b, + 0xcf, 0x3a, 0xfe, 0xb7, 0xf0, 0xf2, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x3f, 0x10, 0xde, + 0x45, 0x04, 0x00, 0x00, }