From aa60bf920d4d00d28f19d68a8ebff665bbc71402 Mon Sep 17 00:00:00 2001 From: esuwu Date: Fri, 19 Sep 2025 15:17:36 +0300 Subject: [PATCH 1/8] Added block finality schemas --- go.mod | 1 + pkg/grpc/generated/waves/amount.pb.go | 69 +- pkg/grpc/generated/waves/amount_vtproto.pb.go | 128 +- pkg/grpc/generated/waves/block.pb.go | 525 +++--- pkg/grpc/generated/waves/block_vtproto.pb.go | 911 ++++++++-- pkg/grpc/generated/waves/events/events.pb.go | 1500 ++++++----------- .../waves/events/events_vtproto.pb.go | 1207 ++++++------- .../events/grpc/blockchain_updates.pb.go | 288 +--- .../events/grpc/blockchain_updates_grpc.pb.go | 90 +- .../waves/invoke_script_result.pb.go | 721 +++----- .../waves/invoke_script_result_vtproto.pb.go | 491 +++--- .../waves/node/grpc/accounts_api.pb.go | 511 ++---- .../waves/node/grpc/accounts_api_grpc.pb.go | 186 +- .../waves/node/grpc/assets_api.pb.go | 246 +-- .../waves/node/grpc/assets_api_grpc.pb.go | 84 +- .../waves/node/grpc/blockchain_api.pb.go | 288 +--- .../waves/node/grpc/blockchain_api_grpc.pb.go | 48 +- .../waves/node/grpc/blocks_api.pb.go | 254 +-- .../waves/node/grpc/blocks_api_grpc.pb.go | 90 +- .../waves/node/grpc/transactions_api.pb.go | 499 ++---- .../node/grpc/transactions_api_grpc.pb.go | 282 ++-- pkg/grpc/generated/waves/order.pb.go | 227 +-- pkg/grpc/generated/waves/order_vtproto.pb.go | 153 +- pkg/grpc/generated/waves/recipient.pb.go | 95 +- .../generated/waves/recipient_vtproto.pb.go | 29 +- pkg/grpc/generated/waves/reward_share.pb.go | 69 +- .../waves/reward_share_vtproto.pb.go | 25 +- pkg/grpc/generated/waves/state_snapshot.pb.go | 117 +- .../waves/state_snapshot_vtproto.pb.go | 55 +- pkg/grpc/generated/waves/transaction.pb.go | 1268 +++++--------- .../waves/transaction_state_snapshot.pb.go | 713 +++----- .../transaction_state_snapshot_vtproto.pb.go | 515 +++--- .../generated/waves/transaction_vtproto.pb.go | 785 ++++----- pkg/ride/meta/generated/dapp_meta.pb.go | 157 +- .../meta/generated/dapp_meta_vtproto.pb.go | 190 +-- 35 files changed, 5185 insertions(+), 7632 deletions(-) diff --git a/go.mod b/go.mod index 49b87d458..d56cdc55a 100644 --- a/go.mod +++ b/go.mod @@ -20,6 +20,7 @@ require ( github.com/go-chi/chi/v5 v5.2.3 github.com/go-test/deep v1.1.1 github.com/golang/mock v1.6.0 + github.com/golang/protobuf v1.5.4 github.com/gorilla/mux v1.8.1 github.com/howeyc/gopass v0.0.0-20210920133722-c8aef6fb66ef github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab diff --git a/pkg/grpc/generated/waves/amount.pb.go b/pkg/grpc/generated/waves/amount.pb.go index 590070f0a..98447e0a0 100644 --- a/pkg/grpc/generated/waves/amount.pb.go +++ b/pkg/grpc/generated/waves/amount.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/amount.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type Amount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Amount) Reset() { *x = Amount{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_amount_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_amount_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Amount) String() string { @@ -46,7 +44,7 @@ func (*Amount) ProtoMessage() {} func (x *Amount) ProtoReflect() protoreflect.Message { mi := &file_waves_amount_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -77,36 +75,28 @@ func (x *Amount) GetAmount() int64 { var File_waves_amount_proto protoreflect.FileDescriptor -var file_waves_amount_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, 0x76, 0x65, 0x73, 0x22, 0x3b, 0x0a, 0x06, 0x41, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, - 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x5f, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, - 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, - 0x73, 0xaa, 0x02, 0x05, 0x57, 0x61, 0x76, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} +const file_waves_amount_proto_rawDesc = "" + + "\n" + + "\x12waves/amount.proto\x12\x05waves\";\n" + + "\x06Amount\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x03R\x06amountB_\n" + + "\x1acom.wavesplatform.protobufZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_amount_proto_rawDescOnce sync.Once - file_waves_amount_proto_rawDescData = file_waves_amount_proto_rawDesc + file_waves_amount_proto_rawDescData []byte ) func file_waves_amount_proto_rawDescGZIP() []byte { file_waves_amount_proto_rawDescOnce.Do(func() { - file_waves_amount_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_amount_proto_rawDescData) + file_waves_amount_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_amount_proto_rawDesc), len(file_waves_amount_proto_rawDesc))) }) return file_waves_amount_proto_rawDescData } var file_waves_amount_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_waves_amount_proto_goTypes = []interface{}{ +var file_waves_amount_proto_goTypes = []any{ (*Amount)(nil), // 0: waves.Amount } var file_waves_amount_proto_depIdxs = []int32{ @@ -122,25 +112,11 @@ func file_waves_amount_proto_init() { if File_waves_amount_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_amount_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Amount); 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_waves_amount_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_amount_proto_rawDesc), len(file_waves_amount_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, @@ -151,7 +127,6 @@ func file_waves_amount_proto_init() { MessageInfos: file_waves_amount_proto_msgTypes, }.Build() File_waves_amount_proto = out.File - file_waves_amount_proto_rawDesc = nil file_waves_amount_proto_goTypes = nil file_waves_amount_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/amount_vtproto.pb.go b/pkg/grpc/generated/waves/amount_vtproto.pb.go index 4ea244d90..3d7902d5a 100644 --- a/pkg/grpc/generated/waves/amount_vtproto.pb.go +++ b/pkg/grpc/generated/waves/amount_vtproto.pb.go @@ -1,14 +1,14 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/amount.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" - bits "math/bits" ) const ( @@ -49,31 +49,20 @@ func (m *Amount) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { copy(dAtA[i:], m.unknownFields) } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x10 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarint(dAtA []byte, offset int, v uint64) int { - offset -= sov(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} func (m *Amount) SizeVT() (n int) { if m == nil { return 0 @@ -82,21 +71,15 @@ func (m *Amount) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } n += len(m.unknownFields) return n } -func sov(x uint64) (n int) { - return (bits.Len64(x|1) + 6) / 7 -} -func soz(x uint64) (n int) { - return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} func (m *Amount) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -105,7 +88,7 @@ func (m *Amount) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -133,7 +116,7 @@ func (m *Amount) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -146,11 +129,11 @@ func (m *Amount) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -167,7 +150,7 @@ func (m *Amount) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -181,12 +164,12 @@ func (m *Amount) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -201,88 +184,3 @@ func (m *Amount) UnmarshalVT(dAtA []byte) error { } return nil } - -func skip(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLength - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroup - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLength - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/grpc/generated/waves/block.pb.go b/pkg/grpc/generated/waves/block.pb.go index 16cbdfc56..2441211b2 100644 --- a/pkg/grpc/generated/waves/block.pb.go +++ b/pkg/grpc/generated/waves/block.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/block.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,22 +22,19 @@ const ( ) type Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Header *Block_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Transactions []*SignedTransaction `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` unknownFields protoimpl.UnknownFields - - Header *Block_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - Transactions []*SignedTransaction `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Block) Reset() { *x = Block{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_block_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_block_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block) String() string { @@ -47,7 +45,7 @@ func (*Block) ProtoMessage() {} func (x *Block) ProtoReflect() protoreflect.Message { mi := &file_waves_block_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -84,25 +82,22 @@ func (x *Block) GetTransactions() []*SignedTransaction { } type MicroBlock struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Reference []byte `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` - UpdatedBlockSignature []byte `protobuf:"bytes,3,opt,name=updated_block_signature,json=updatedBlockSignature,proto3" json:"updated_block_signature,omitempty"` - SenderPublicKey []byte `protobuf:"bytes,4,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` - Transactions []*SignedTransaction `protobuf:"bytes,5,rep,name=transactions,proto3" json:"transactions,omitempty"` - StateHash []byte `protobuf:"bytes,6,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + Reference []byte `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` + UpdatedBlockSignature []byte `protobuf:"bytes,3,opt,name=updated_block_signature,json=updatedBlockSignature,proto3" json:"updated_block_signature,omitempty"` + SenderPublicKey []byte `protobuf:"bytes,4,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` + Transactions []*SignedTransaction `protobuf:"bytes,5,rep,name=transactions,proto3" json:"transactions,omitempty"` + StateHash []byte `protobuf:"bytes,6,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MicroBlock) Reset() { *x = MicroBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_block_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_block_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MicroBlock) String() string { @@ -113,7 +108,7 @@ func (*MicroBlock) ProtoMessage() {} func (x *MicroBlock) ProtoReflect() protoreflect.Message { mi := &file_waves_block_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -171,22 +166,19 @@ func (x *MicroBlock) GetStateHash() []byte { } type SignedMicroBlock struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + MicroBlock *MicroBlock `protobuf:"bytes,1,opt,name=micro_block,json=microBlock,proto3" json:"micro_block,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + TotalBlockId []byte `protobuf:"bytes,3,opt,name=total_block_id,json=totalBlockId,proto3" json:"total_block_id,omitempty"` unknownFields protoimpl.UnknownFields - - MicroBlock *MicroBlock `protobuf:"bytes,1,opt,name=micro_block,json=microBlock,proto3" json:"micro_block,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - TotalBlockId []byte `protobuf:"bytes,3,opt,name=total_block_id,json=totalBlockId,proto3" json:"total_block_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SignedMicroBlock) Reset() { *x = SignedMicroBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_block_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_block_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignedMicroBlock) String() string { @@ -197,7 +189,7 @@ func (*SignedMicroBlock) ProtoMessage() {} func (x *SignedMicroBlock) ProtoReflect() protoreflect.Message { mi := &file_waves_block_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -233,11 +225,144 @@ func (x *SignedMicroBlock) GetTotalBlockId() []byte { return nil } -type Block_Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type EndorseBlock struct { + state protoimpl.MessageState `protogen:"open.v1"` + EndorserIndex int32 `protobuf:"varint,1,opt,name=endorser_index,json=endorserIndex,proto3" json:"endorser_index,omitempty"` + FinalizedBlockId []byte `protobuf:"bytes,2,opt,name=finalized_block_id,json=finalizedBlockId,proto3" json:"finalized_block_id,omitempty"` + BlockId []byte `protobuf:"bytes,3,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + BlockHeight uint32 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EndorseBlock) Reset() { + *x = EndorseBlock{} + mi := &file_waves_block_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EndorseBlock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EndorseBlock) ProtoMessage() {} +func (x *EndorseBlock) ProtoReflect() protoreflect.Message { + mi := &file_waves_block_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EndorseBlock.ProtoReflect.Descriptor instead. +func (*EndorseBlock) Descriptor() ([]byte, []int) { + return file_waves_block_proto_rawDescGZIP(), []int{3} +} + +func (x *EndorseBlock) GetEndorserIndex() int32 { + if x != nil { + return x.EndorserIndex + } + return 0 +} + +func (x *EndorseBlock) GetFinalizedBlockId() []byte { + if x != nil { + return x.FinalizedBlockId + } + return nil +} + +func (x *EndorseBlock) GetBlockId() []byte { + if x != nil { + return x.BlockId + } + return nil +} + +func (x *EndorseBlock) GetBlockHeight() uint32 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *EndorseBlock) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +type FinalizationVoting struct { + state protoimpl.MessageState `protogen:"open.v1"` + EndorserIndexes []int32 `protobuf:"varint,1,rep,packed,name=endorser_indexes,json=endorserIndexes,proto3" json:"endorser_indexes,omitempty"` + AggregatedEndorsementSignature []byte `protobuf:"bytes,2,opt,name=aggregated_endorsement_signature,json=aggregatedEndorsementSignature,proto3" json:"aggregated_endorsement_signature,omitempty"` + ConflictEndorsements []*EndorseBlock `protobuf:"bytes,3,rep,name=conflict_endorsements,json=conflictEndorsements,proto3" json:"conflict_endorsements,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FinalizationVoting) Reset() { + *x = FinalizationVoting{} + mi := &file_waves_block_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FinalizationVoting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FinalizationVoting) ProtoMessage() {} + +func (x *FinalizationVoting) ProtoReflect() protoreflect.Message { + mi := &file_waves_block_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FinalizationVoting.ProtoReflect.Descriptor instead. +func (*FinalizationVoting) Descriptor() ([]byte, []int) { + return file_waves_block_proto_rawDescGZIP(), []int{4} +} + +func (x *FinalizationVoting) GetEndorserIndexes() []int32 { + if x != nil { + return x.EndorserIndexes + } + return nil +} + +func (x *FinalizationVoting) GetAggregatedEndorsementSignature() []byte { + if x != nil { + return x.AggregatedEndorsementSignature + } + return nil +} + +func (x *FinalizationVoting) GetConflictEndorsements() []*EndorseBlock { + if x != nil { + return x.ConflictEndorsements + } + return nil +} + +type Block_Header struct { + state protoimpl.MessageState `protogen:"open.v1"` ChainId int32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Reference []byte `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` BaseTarget int64 `protobuf:"varint,3,opt,name=base_target,json=baseTarget,proto3" json:"base_target,omitempty"` @@ -250,15 +375,15 @@ type Block_Header struct { TransactionsRoot []byte `protobuf:"bytes,10,opt,name=transactions_root,json=transactionsRoot,proto3" json:"transactions_root,omitempty"` StateHash []byte `protobuf:"bytes,11,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` ChallengedHeader *Block_Header_ChallengedHeader `protobuf:"bytes,12,opt,name=challenged_header,json=challengedHeader,proto3" json:"challenged_header,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Block_Header) Reset() { *x = Block_Header{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_block_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_block_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block_Header) String() string { @@ -268,8 +393,8 @@ func (x *Block_Header) String() string { func (*Block_Header) ProtoMessage() {} func (x *Block_Header) ProtoReflect() protoreflect.Message { - mi := &file_waves_block_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_waves_block_proto_msgTypes[5] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -369,27 +494,24 @@ func (x *Block_Header) GetChallengedHeader() *Block_Header_ChallengedHeader { } type Block_Header_ChallengedHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BaseTarget int64 `protobuf:"varint,1,opt,name=base_target,json=baseTarget,proto3" json:"base_target,omitempty"` - GenerationSignature []byte `protobuf:"bytes,2,opt,name=generation_signature,json=generationSignature,proto3" json:"generation_signature,omitempty"` - FeatureVotes []uint32 `protobuf:"varint,3,rep,packed,name=feature_votes,json=featureVotes,proto3" json:"feature_votes,omitempty"` - Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Generator []byte `protobuf:"bytes,5,opt,name=generator,proto3" json:"generator,omitempty"` - RewardVote int64 `protobuf:"varint,6,opt,name=reward_vote,json=rewardVote,proto3" json:"reward_vote,omitempty"` - StateHash []byte `protobuf:"bytes,7,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` - HeaderSignature []byte `protobuf:"bytes,8,opt,name=header_signature,json=headerSignature,proto3" json:"header_signature,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + BaseTarget int64 `protobuf:"varint,1,opt,name=base_target,json=baseTarget,proto3" json:"base_target,omitempty"` + GenerationSignature []byte `protobuf:"bytes,2,opt,name=generation_signature,json=generationSignature,proto3" json:"generation_signature,omitempty"` + FeatureVotes []uint32 `protobuf:"varint,3,rep,packed,name=feature_votes,json=featureVotes,proto3" json:"feature_votes,omitempty"` + Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Generator []byte `protobuf:"bytes,5,opt,name=generator,proto3" json:"generator,omitempty"` + RewardVote int64 `protobuf:"varint,6,opt,name=reward_vote,json=rewardVote,proto3" json:"reward_vote,omitempty"` + StateHash []byte `protobuf:"bytes,7,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` + HeaderSignature []byte `protobuf:"bytes,8,opt,name=header_signature,json=headerSignature,proto3" json:"header_signature,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Block_Header_ChallengedHeader) Reset() { *x = Block_Header_ChallengedHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_block_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_block_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Block_Header_ChallengedHeader) String() string { @@ -399,8 +521,8 @@ func (x *Block_Header_ChallengedHeader) String() string { func (*Block_Header_ChallengedHeader) ProtoMessage() {} func (x *Block_Header_ChallengedHeader) ProtoReflect() protoreflect.Message { - mi := &file_waves_block_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_waves_block_proto_msgTypes[6] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -473,135 +595,103 @@ func (x *Block_Header_ChallengedHeader) GetHeaderSignature() []byte { var File_waves_block_proto protoreflect.FileDescriptor -var file_waves_block_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, 0x76, 0x65, 0x73, 0x1a, 0x17, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x07, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2b, 0x0a, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x85, 0x06, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, - 0x73, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0a, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x31, 0x0a, 0x14, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x18, - 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0c, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x56, 0x6f, - 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x5f, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, - 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x56, 0x6f, 0x74, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x51, 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, - 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, - 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, - 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, - 0x67, 0x65, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0xb2, 0x02, 0x0a, 0x10, 0x43, 0x68, - 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1f, - 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, - 0x31, 0x0a, 0x14, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x76, 0x6f, - 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0c, 0x66, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x76, 0x6f, - 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x56, 0x6f, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x61, - 0x73, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x48, - 0x61, 0x73, 0x68, 0x12, 0x29, 0x0a, 0x10, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x85, - 0x02, 0x0a, 0x0a, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2a, 0x0a, - 0x11, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x3c, 0x0a, 0x0c, 0x74, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x18, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x48, 0x61, 0x73, 0x68, 0x22, 0x8a, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x32, 0x0a, 0x0b, 0x6d, - 0x69, 0x63, 0x72, 0x6f, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x11, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x52, 0x0a, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x24, 0x0a, - 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x49, 0x64, 0x42, 0x65, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, - 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, - 0x65, 0x73, 0xaa, 0x02, 0x05, 0x57, 0x61, 0x76, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} +const file_waves_block_proto_rawDesc = "" + + "\n" + + "\x11waves/block.proto\x12\x05waves\x1a\x17waves/transaction.proto\"\x98\a\n" + + "\x05Block\x12+\n" + + "\x06header\x18\x01 \x01(\v2\x13.waves.Block.HeaderR\x06header\x12\x1c\n" + + "\tsignature\x18\x02 \x01(\fR\tsignature\x12<\n" + + "\ftransactions\x18\x03 \x03(\v2\x18.waves.SignedTransactionR\ftransactions\x1a\x85\x06\n" + + "\x06Header\x12\x19\n" + + "\bchain_id\x18\x01 \x01(\x05R\achainId\x12\x1c\n" + + "\treference\x18\x02 \x01(\fR\treference\x12\x1f\n" + + "\vbase_target\x18\x03 \x01(\x03R\n" + + "baseTarget\x121\n" + + "\x14generation_signature\x18\x04 \x01(\fR\x13generationSignature\x12#\n" + + "\rfeature_votes\x18\x05 \x03(\rR\ffeatureVotes\x12\x1c\n" + + "\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\x12\x18\n" + + "\aversion\x18\a \x01(\x05R\aversion\x12\x1c\n" + + "\tgenerator\x18\b \x01(\fR\tgenerator\x12\x1f\n" + + "\vreward_vote\x18\t \x01(\x03R\n" + + "rewardVote\x12+\n" + + "\x11transactions_root\x18\n" + + " \x01(\fR\x10transactionsRoot\x12\x1d\n" + + "\n" + + "state_hash\x18\v \x01(\fR\tstateHash\x12Q\n" + + "\x11challenged_header\x18\f \x01(\v2$.waves.Block.Header.ChallengedHeaderR\x10challengedHeader\x1a\xb2\x02\n" + + "\x10ChallengedHeader\x12\x1f\n" + + "\vbase_target\x18\x01 \x01(\x03R\n" + + "baseTarget\x121\n" + + "\x14generation_signature\x18\x02 \x01(\fR\x13generationSignature\x12#\n" + + "\rfeature_votes\x18\x03 \x03(\rR\ffeatureVotes\x12\x1c\n" + + "\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\x12\x1c\n" + + "\tgenerator\x18\x05 \x01(\fR\tgenerator\x12\x1f\n" + + "\vreward_vote\x18\x06 \x01(\x03R\n" + + "rewardVote\x12\x1d\n" + + "\n" + + "state_hash\x18\a \x01(\fR\tstateHash\x12)\n" + + "\x10header_signature\x18\b \x01(\fR\x0fheaderSignature\"\x85\x02\n" + + "\n" + + "MicroBlock\x12\x18\n" + + "\aversion\x18\x01 \x01(\x05R\aversion\x12\x1c\n" + + "\treference\x18\x02 \x01(\fR\treference\x126\n" + + "\x17updated_block_signature\x18\x03 \x01(\fR\x15updatedBlockSignature\x12*\n" + + "\x11sender_public_key\x18\x04 \x01(\fR\x0fsenderPublicKey\x12<\n" + + "\ftransactions\x18\x05 \x03(\v2\x18.waves.SignedTransactionR\ftransactions\x12\x1d\n" + + "\n" + + "state_hash\x18\x06 \x01(\fR\tstateHash\"\x8a\x01\n" + + "\x10SignedMicroBlock\x122\n" + + "\vmicro_block\x18\x01 \x01(\v2\x11.waves.MicroBlockR\n" + + "microBlock\x12\x1c\n" + + "\tsignature\x18\x02 \x01(\fR\tsignature\x12$\n" + + "\x0etotal_block_id\x18\x03 \x01(\fR\ftotalBlockId\"\xbf\x01\n" + + "\fEndorseBlock\x12%\n" + + "\x0eendorser_index\x18\x01 \x01(\x05R\rendorserIndex\x12,\n" + + "\x12finalized_block_id\x18\x02 \x01(\fR\x10finalizedBlockId\x12\x19\n" + + "\bblock_id\x18\x03 \x01(\fR\ablockId\x12!\n" + + "\fblock_height\x18\x04 \x01(\rR\vblockHeight\x12\x1c\n" + + "\tsignature\x18\x05 \x01(\fR\tsignature\"\xd3\x01\n" + + "\x12FinalizationVoting\x12)\n" + + "\x10endorser_indexes\x18\x01 \x03(\x05R\x0fendorserIndexes\x12H\n" + + " aggregated_endorsement_signature\x18\x02 \x01(\fR\x1eaggregatedEndorsementSignature\x12H\n" + + "\x15conflict_endorsements\x18\x03 \x03(\v2\x13.waves.EndorseBlockR\x14conflictEndorsementsBe\n" + + " com.wavesplatform.protobuf.blockZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_block_proto_rawDescOnce sync.Once - file_waves_block_proto_rawDescData = file_waves_block_proto_rawDesc + file_waves_block_proto_rawDescData []byte ) func file_waves_block_proto_rawDescGZIP() []byte { file_waves_block_proto_rawDescOnce.Do(func() { - file_waves_block_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_block_proto_rawDescData) + file_waves_block_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_block_proto_rawDesc), len(file_waves_block_proto_rawDesc))) }) return file_waves_block_proto_rawDescData } -var file_waves_block_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_waves_block_proto_goTypes = []interface{}{ +var file_waves_block_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_waves_block_proto_goTypes = []any{ (*Block)(nil), // 0: waves.Block (*MicroBlock)(nil), // 1: waves.MicroBlock (*SignedMicroBlock)(nil), // 2: waves.SignedMicroBlock - (*Block_Header)(nil), // 3: waves.Block.Header - (*Block_Header_ChallengedHeader)(nil), // 4: waves.Block.Header.ChallengedHeader - (*SignedTransaction)(nil), // 5: waves.SignedTransaction + (*EndorseBlock)(nil), // 3: waves.EndorseBlock + (*FinalizationVoting)(nil), // 4: waves.FinalizationVoting + (*Block_Header)(nil), // 5: waves.Block.Header + (*Block_Header_ChallengedHeader)(nil), // 6: waves.Block.Header.ChallengedHeader + (*SignedTransaction)(nil), // 7: waves.SignedTransaction } var file_waves_block_proto_depIdxs = []int32{ - 3, // 0: waves.Block.header:type_name -> waves.Block.Header - 5, // 1: waves.Block.transactions:type_name -> waves.SignedTransaction - 5, // 2: waves.MicroBlock.transactions:type_name -> waves.SignedTransaction + 5, // 0: waves.Block.header:type_name -> waves.Block.Header + 7, // 1: waves.Block.transactions:type_name -> waves.SignedTransaction + 7, // 2: waves.MicroBlock.transactions:type_name -> waves.SignedTransaction 1, // 3: waves.SignedMicroBlock.micro_block:type_name -> waves.MicroBlock - 4, // 4: waves.Block.Header.challenged_header:type_name -> waves.Block.Header.ChallengedHeader - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 3, // 4: waves.FinalizationVoting.conflict_endorsements:type_name -> waves.EndorseBlock + 6, // 5: waves.Block.Header.challenged_header:type_name -> waves.Block.Header.ChallengedHeader + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_waves_block_proto_init() } @@ -610,75 +700,13 @@ func file_waves_block_proto_init() { return } file_waves_transaction_proto_init() - if !protoimpl.UnsafeEnabled { - file_waves_block_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_block_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MicroBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_block_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignedMicroBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_block_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block_Header); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_block_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Block_Header_ChallengedHeader); 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_waves_block_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_block_proto_rawDesc), len(file_waves_block_proto_rawDesc)), NumEnums: 0, - NumMessages: 5, + NumMessages: 7, NumExtensions: 0, NumServices: 0, }, @@ -687,7 +715,6 @@ func file_waves_block_proto_init() { MessageInfos: file_waves_block_proto_msgTypes, }.Build() File_waves_block_proto = out.File - file_waves_block_proto_rawDesc = nil file_waves_block_proto_goTypes = nil file_waves_block_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/block_vtproto.pb.go b/pkg/grpc/generated/waves/block_vtproto.pb.go index 2849a6751..e8334635f 100644 --- a/pkg/grpc/generated/waves/block_vtproto.pb.go +++ b/pkg/grpc/generated/waves/block_vtproto.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/block.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -50,38 +51,38 @@ func (m *Block_Header_ChallengedHeader) MarshalToSizedBufferVTStrict(dAtA []byte if len(m.HeaderSignature) > 0 { i -= len(m.HeaderSignature) copy(dAtA[i:], m.HeaderSignature) - i = encodeVarint(dAtA, i, uint64(len(m.HeaderSignature))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.HeaderSignature))) i-- dAtA[i] = 0x42 } if len(m.StateHash) > 0 { i -= len(m.StateHash) copy(dAtA[i:], m.StateHash) - i = encodeVarint(dAtA, i, uint64(len(m.StateHash))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StateHash))) i-- dAtA[i] = 0x3a } if m.RewardVote != 0 { - i = encodeVarint(dAtA, i, uint64(m.RewardVote)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RewardVote)) i-- dAtA[i] = 0x30 } if len(m.Generator) > 0 { i -= len(m.Generator) copy(dAtA[i:], m.Generator) - i = encodeVarint(dAtA, i, uint64(len(m.Generator))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Generator))) i-- dAtA[i] = 0x2a } if m.Timestamp != 0 { - i = encodeVarint(dAtA, i, uint64(m.Timestamp)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x20 } if len(m.FeatureVotes) > 0 { var pksize2 int for _, num := range m.FeatureVotes { - pksize2 += sov(uint64(num)) + pksize2 += protohelpers.SizeOfVarint(uint64(num)) } i -= pksize2 j1 := i @@ -94,19 +95,19 @@ func (m *Block_Header_ChallengedHeader) MarshalToSizedBufferVTStrict(dAtA []byte dAtA[j1] = uint8(num) j1++ } - i = encodeVarint(dAtA, i, uint64(pksize2)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) i-- dAtA[i] = 0x1a } if len(m.GenerationSignature) > 0 { i -= len(m.GenerationSignature) copy(dAtA[i:], m.GenerationSignature) - i = encodeVarint(dAtA, i, uint64(len(m.GenerationSignature))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.GenerationSignature))) i-- dAtA[i] = 0x12 } if m.BaseTarget != 0 { - i = encodeVarint(dAtA, i, uint64(m.BaseTarget)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BaseTarget)) i-- dAtA[i] = 0x8 } @@ -149,50 +150,50 @@ func (m *Block_Header) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x62 } if len(m.StateHash) > 0 { i -= len(m.StateHash) copy(dAtA[i:], m.StateHash) - i = encodeVarint(dAtA, i, uint64(len(m.StateHash))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StateHash))) i-- dAtA[i] = 0x5a } if len(m.TransactionsRoot) > 0 { i -= len(m.TransactionsRoot) copy(dAtA[i:], m.TransactionsRoot) - i = encodeVarint(dAtA, i, uint64(len(m.TransactionsRoot))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TransactionsRoot))) i-- dAtA[i] = 0x52 } if m.RewardVote != 0 { - i = encodeVarint(dAtA, i, uint64(m.RewardVote)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RewardVote)) i-- dAtA[i] = 0x48 } if len(m.Generator) > 0 { i -= len(m.Generator) copy(dAtA[i:], m.Generator) - i = encodeVarint(dAtA, i, uint64(len(m.Generator))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Generator))) i-- dAtA[i] = 0x42 } if m.Version != 0 { - i = encodeVarint(dAtA, i, uint64(m.Version)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x38 } if m.Timestamp != 0 { - i = encodeVarint(dAtA, i, uint64(m.Timestamp)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x30 } if len(m.FeatureVotes) > 0 { var pksize2 int for _, num := range m.FeatureVotes { - pksize2 += sov(uint64(num)) + pksize2 += protohelpers.SizeOfVarint(uint64(num)) } i -= pksize2 j1 := i @@ -205,31 +206,31 @@ func (m *Block_Header) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { dAtA[j1] = uint8(num) j1++ } - i = encodeVarint(dAtA, i, uint64(pksize2)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) i-- dAtA[i] = 0x2a } if len(m.GenerationSignature) > 0 { i -= len(m.GenerationSignature) copy(dAtA[i:], m.GenerationSignature) - i = encodeVarint(dAtA, i, uint64(len(m.GenerationSignature))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.GenerationSignature))) i-- dAtA[i] = 0x22 } if m.BaseTarget != 0 { - i = encodeVarint(dAtA, i, uint64(m.BaseTarget)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BaseTarget)) i-- dAtA[i] = 0x18 } if len(m.Reference) > 0 { i -= len(m.Reference) copy(dAtA[i:], m.Reference) - i = encodeVarint(dAtA, i, uint64(len(m.Reference))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Reference))) i-- dAtA[i] = 0x12 } if m.ChainId != 0 { - i = encodeVarint(dAtA, i, uint64(m.ChainId)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ChainId)) i-- dAtA[i] = 0x8 } @@ -273,7 +274,7 @@ func (m *Block) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -281,7 +282,7 @@ func (m *Block) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if len(m.Signature) > 0 { i -= len(m.Signature) copy(dAtA[i:], m.Signature) - i = encodeVarint(dAtA, i, uint64(len(m.Signature))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Signature))) i-- dAtA[i] = 0x12 } @@ -291,7 +292,7 @@ func (m *Block) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -331,7 +332,7 @@ func (m *MicroBlock) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if len(m.StateHash) > 0 { i -= len(m.StateHash) copy(dAtA[i:], m.StateHash) - i = encodeVarint(dAtA, i, uint64(len(m.StateHash))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StateHash))) i-- dAtA[i] = 0x32 } @@ -342,7 +343,7 @@ func (m *MicroBlock) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } @@ -350,26 +351,26 @@ func (m *MicroBlock) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if len(m.SenderPublicKey) > 0 { i -= len(m.SenderPublicKey) copy(dAtA[i:], m.SenderPublicKey) - i = encodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) i-- dAtA[i] = 0x22 } if len(m.UpdatedBlockSignature) > 0 { i -= len(m.UpdatedBlockSignature) copy(dAtA[i:], m.UpdatedBlockSignature) - i = encodeVarint(dAtA, i, uint64(len(m.UpdatedBlockSignature))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UpdatedBlockSignature))) i-- dAtA[i] = 0x1a } if len(m.Reference) > 0 { i -= len(m.Reference) copy(dAtA[i:], m.Reference) - i = encodeVarint(dAtA, i, uint64(len(m.Reference))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Reference))) i-- dAtA[i] = 0x12 } if m.Version != 0 { - i = encodeVarint(dAtA, i, uint64(m.Version)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x8 } @@ -409,14 +410,14 @@ func (m *SignedMicroBlock) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error if len(m.TotalBlockId) > 0 { i -= len(m.TotalBlockId) copy(dAtA[i:], m.TotalBlockId) - i = encodeVarint(dAtA, i, uint64(len(m.TotalBlockId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TotalBlockId))) i-- dAtA[i] = 0x1a } if len(m.Signature) > 0 { i -= len(m.Signature) copy(dAtA[i:], m.Signature) - i = encodeVarint(dAtA, i, uint64(len(m.Signature))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Signature))) i-- dAtA[i] = 0x12 } @@ -426,7 +427,144 @@ func (m *SignedMicroBlock) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EndorseBlock) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EndorseBlock) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *EndorseBlock) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x2a + } + if m.BlockHeight != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x1a + } + if len(m.FinalizedBlockId) > 0 { + i -= len(m.FinalizedBlockId) + copy(dAtA[i:], m.FinalizedBlockId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FinalizedBlockId))) + i-- + dAtA[i] = 0x12 + } + if m.EndorserIndex != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EndorserIndex)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FinalizationVoting) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FinalizationVoting) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *FinalizationVoting) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ConflictEndorsements) > 0 { + for iNdEx := len(m.ConflictEndorsements) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ConflictEndorsements[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.AggregatedEndorsementSignature) > 0 { + i -= len(m.AggregatedEndorsementSignature) + copy(dAtA[i:], m.AggregatedEndorsementSignature) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AggregatedEndorsementSignature))) + i-- + dAtA[i] = 0x12 + } + if len(m.EndorserIndexes) > 0 { + var pksize2 int + for _, num := range m.EndorserIndexes { + pksize2 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.EndorserIndexes { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) i-- dAtA[i] = 0xa } @@ -440,36 +578,36 @@ func (m *Block_Header_ChallengedHeader) SizeVT() (n int) { var l int _ = l if m.BaseTarget != 0 { - n += 1 + sov(uint64(m.BaseTarget)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.BaseTarget)) } l = len(m.GenerationSignature) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.FeatureVotes) > 0 { l = 0 for _, e := range m.FeatureVotes { - l += sov(uint64(e)) + l += protohelpers.SizeOfVarint(uint64(e)) } - n += 1 + sov(uint64(l)) + l + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l } if m.Timestamp != 0 { - n += 1 + sov(uint64(m.Timestamp)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) } l = len(m.Generator) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.RewardVote != 0 { - n += 1 + sov(uint64(m.RewardVote)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.RewardVote)) } l = len(m.StateHash) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.HeaderSignature) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -482,50 +620,50 @@ func (m *Block_Header) SizeVT() (n int) { var l int _ = l if m.ChainId != 0 { - n += 1 + sov(uint64(m.ChainId)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.ChainId)) } l = len(m.Reference) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.BaseTarget != 0 { - n += 1 + sov(uint64(m.BaseTarget)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.BaseTarget)) } l = len(m.GenerationSignature) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.FeatureVotes) > 0 { l = 0 for _, e := range m.FeatureVotes { - l += sov(uint64(e)) + l += protohelpers.SizeOfVarint(uint64(e)) } - n += 1 + sov(uint64(l)) + l + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l } if m.Timestamp != 0 { - n += 1 + sov(uint64(m.Timestamp)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) } if m.Version != 0 { - n += 1 + sov(uint64(m.Version)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) } l = len(m.Generator) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.RewardVote != 0 { - n += 1 + sov(uint64(m.RewardVote)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.RewardVote)) } l = len(m.TransactionsRoot) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.StateHash) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.ChallengedHeader != nil { l = m.ChallengedHeader.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -539,16 +677,16 @@ func (m *Block) SizeVT() (n int) { _ = l if m.Header != nil { l = m.Header.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Signature) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Transactions) > 0 { for _, e := range m.Transactions { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -562,29 +700,29 @@ func (m *MicroBlock) SizeVT() (n int) { var l int _ = l if m.Version != 0 { - n += 1 + sov(uint64(m.Version)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) } l = len(m.Reference) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.UpdatedBlockSignature) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.SenderPublicKey) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Transactions) > 0 { for _, e := range m.Transactions { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } l = len(m.StateHash) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -598,15 +736,70 @@ func (m *SignedMicroBlock) SizeVT() (n int) { _ = l if m.MicroBlock != nil { l = m.MicroBlock.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Signature) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.TotalBlockId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *EndorseBlock) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EndorserIndex != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.EndorserIndex)) + } + l = len(m.FinalizedBlockId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.BlockHeight != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.BlockHeight)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *FinalizationVoting) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.EndorserIndexes) > 0 { + l = 0 + for _, e := range m.EndorserIndexes { + l += protohelpers.SizeOfVarint(uint64(e)) + } + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l + } + l = len(m.AggregatedEndorsementSignature) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.ConflictEndorsements) > 0 { + for _, e := range m.ConflictEndorsements { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n @@ -620,7 +813,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -648,7 +841,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { m.BaseTarget = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -667,7 +860,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -680,11 +873,11 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -699,7 +892,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { var v uint32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -716,7 +909,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -729,11 +922,11 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -753,7 +946,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { var v uint32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -777,7 +970,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -796,7 +989,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -809,11 +1002,11 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -830,7 +1023,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { m.RewardVote = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -849,7 +1042,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -862,11 +1055,11 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -883,7 +1076,7 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -896,11 +1089,11 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -912,12 +1105,12 @@ func (m *Block_Header_ChallengedHeader) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -940,7 +1133,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -968,7 +1161,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { m.ChainId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -987,7 +1180,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1000,11 +1193,11 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1021,7 +1214,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { m.BaseTarget = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1040,7 +1233,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1053,11 +1246,11 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1072,7 +1265,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var v uint32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1089,7 +1282,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1102,11 +1295,11 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1126,7 +1319,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var v uint32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1150,7 +1343,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1169,7 +1362,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1188,7 +1381,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1201,11 +1394,11 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1222,7 +1415,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { m.RewardVote = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1241,7 +1434,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1254,11 +1447,11 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1275,7 +1468,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1288,11 +1481,11 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1309,7 +1502,7 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1322,11 +1515,11 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1340,12 +1533,12 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1368,7 +1561,7 @@ func (m *Block) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1396,7 +1589,7 @@ func (m *Block) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1409,11 +1602,11 @@ func (m *Block) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1432,7 +1625,7 @@ func (m *Block) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1445,11 +1638,11 @@ func (m *Block) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1466,7 +1659,7 @@ func (m *Block) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1479,11 +1672,11 @@ func (m *Block) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1495,12 +1688,12 @@ func (m *Block) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1523,7 +1716,7 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1551,7 +1744,7 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1570,7 +1763,7 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1583,11 +1776,11 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1604,7 +1797,7 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1617,11 +1810,11 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1638,7 +1831,7 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1651,11 +1844,11 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1672,7 +1865,7 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1685,11 +1878,11 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1706,7 +1899,7 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1719,11 +1912,11 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1735,12 +1928,12 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1763,7 +1956,7 @@ func (m *SignedMicroBlock) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1791,7 +1984,7 @@ func (m *SignedMicroBlock) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1804,11 +1997,11 @@ func (m *SignedMicroBlock) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1827,7 +2020,7 @@ func (m *SignedMicroBlock) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1840,11 +2033,11 @@ func (m *SignedMicroBlock) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1861,7 +2054,7 @@ func (m *SignedMicroBlock) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1874,11 +2067,11 @@ func (m *SignedMicroBlock) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1890,12 +2083,398 @@ func (m *SignedMicroBlock) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EndorseBlock) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EndorseBlock: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EndorseBlock: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndorserIndex", wireType) + } + m.EndorserIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndorserIndex |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FinalizedBlockId", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FinalizedBlockId = append(m.FinalizedBlockId[:0], dAtA[iNdEx:postIndex]...) + if m.FinalizedBlockId == nil { + m.FinalizedBlockId = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlockId = append(m.BlockId[:0], dAtA[iNdEx:postIndex]...) + if m.BlockId == nil { + m.BlockId = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FinalizationVoting) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FinalizationVoting: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FinalizationVoting: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EndorserIndexes = append(m.EndorserIndexes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.EndorserIndexes) == 0 { + m.EndorserIndexes = make([]int32, 0, elementCount) + } + for iNdEx < postIndex { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EndorserIndexes = append(m.EndorserIndexes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field EndorserIndexes", wireType) + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregatedEndorsementSignature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AggregatedEndorsementSignature = append(m.AggregatedEndorsementSignature[:0], dAtA[iNdEx:postIndex]...) + if m.AggregatedEndorsementSignature == nil { + m.AggregatedEndorsementSignature = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConflictEndorsements", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConflictEndorsements = append(m.ConflictEndorsements, &EndorseBlock{}) + if err := m.ConflictEndorsements[len(m.ConflictEndorsements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF diff --git a/pkg/grpc/generated/waves/events/events.pb.go b/pkg/grpc/generated/waves/events/events.pb.go index 466e592c0..95face9f3 100644 --- a/pkg/grpc/generated/waves/events/events.pb.go +++ b/pkg/grpc/generated/waves/events/events.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/events/events.proto package events @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -114,26 +115,24 @@ func (StateUpdate_LeaseUpdate_LeaseStatus) EnumDescriptor() ([]byte, []int) { } type BlockchainUpdated struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` - // Types that are assignable to Update: + state protoimpl.MessageState `protogen:"open.v1"` + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + // Types that are valid to be assigned to Update: + // // *BlockchainUpdated_Append_ // *BlockchainUpdated_Rollback_ Update isBlockchainUpdated_Update `protobuf_oneof:"update"` ReferencedAssets []*StateUpdate_AssetInfo `protobuf:"bytes,21,rep,name=referenced_assets,json=referencedAssets,proto3" json:"referenced_assets,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BlockchainUpdated) Reset() { *x = BlockchainUpdated{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockchainUpdated) String() string { @@ -144,7 +143,7 @@ func (*BlockchainUpdated) ProtoMessage() {} func (x *BlockchainUpdated) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -173,23 +172,27 @@ func (x *BlockchainUpdated) GetHeight() int32 { return 0 } -func (m *BlockchainUpdated) GetUpdate() isBlockchainUpdated_Update { - if m != nil { - return m.Update +func (x *BlockchainUpdated) GetUpdate() isBlockchainUpdated_Update { + if x != nil { + return x.Update } return nil } func (x *BlockchainUpdated) GetAppend() *BlockchainUpdated_Append { - if x, ok := x.GetUpdate().(*BlockchainUpdated_Append_); ok { - return x.Append + if x != nil { + if x, ok := x.Update.(*BlockchainUpdated_Append_); ok { + return x.Append + } } return nil } func (x *BlockchainUpdated) GetRollback() *BlockchainUpdated_Rollback { - if x, ok := x.GetUpdate().(*BlockchainUpdated_Rollback_); ok { - return x.Rollback + if x != nil { + if x, ok := x.Update.(*BlockchainUpdated_Rollback_); ok { + return x.Rollback + } } return nil } @@ -218,10 +221,7 @@ func (*BlockchainUpdated_Append_) isBlockchainUpdated_Update() {} func (*BlockchainUpdated_Rollback_) isBlockchainUpdated_Update() {} type StateUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Balances []*StateUpdate_BalanceUpdate `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` LeasingForAddress []*StateUpdate_LeasingUpdate `protobuf:"bytes,2,rep,name=leasing_for_address,json=leasingForAddress,proto3" json:"leasing_for_address,omitempty"` DataEntries []*StateUpdate_DataEntryUpdate `protobuf:"bytes,3,rep,name=data_entries,json=dataEntries,proto3" json:"data_entries,omitempty"` @@ -229,15 +229,15 @@ type StateUpdate struct { IndividualLeases []*StateUpdate_LeaseUpdate `protobuf:"bytes,5,rep,name=individual_leases,json=individualLeases,proto3" json:"individual_leases,omitempty"` Scripts []*StateUpdate_ScriptUpdate `protobuf:"bytes,6,rep,name=scripts,proto3" json:"scripts,omitempty"` DeletedAliases []string `protobuf:"bytes,7,rep,name=deleted_aliases,json=deletedAliases,proto3" json:"deleted_aliases,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StateUpdate) Reset() { *x = StateUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate) String() string { @@ -248,7 +248,7 @@ func (*StateUpdate) ProtoMessage() {} func (x *StateUpdate) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -313,28 +313,26 @@ func (x *StateUpdate) GetDeletedAliases() []string { } type TransactionMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SenderAddress []byte `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` - // Types that are assignable to Metadata: + state protoimpl.MessageState `protogen:"open.v1"` + SenderAddress []byte `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` + // Types that are valid to be assigned to Metadata: + // // *TransactionMetadata_Transfer // *TransactionMetadata_Exchange // *TransactionMetadata_MassTransfer // *TransactionMetadata_InvokeScript // *TransactionMetadata_Lease // *TransactionMetadata_Ethereum - Metadata isTransactionMetadata_Metadata `protobuf_oneof:"metadata"` + Metadata isTransactionMetadata_Metadata `protobuf_oneof:"metadata"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata) Reset() { *x = TransactionMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata) String() string { @@ -345,7 +343,7 @@ func (*TransactionMetadata) ProtoMessage() {} func (x *TransactionMetadata) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -367,51 +365,63 @@ func (x *TransactionMetadata) GetSenderAddress() []byte { return nil } -func (m *TransactionMetadata) GetMetadata() isTransactionMetadata_Metadata { - if m != nil { - return m.Metadata +func (x *TransactionMetadata) GetMetadata() isTransactionMetadata_Metadata { + if x != nil { + return x.Metadata } return nil } func (x *TransactionMetadata) GetTransfer() *TransactionMetadata_TransferMetadata { - if x, ok := x.GetMetadata().(*TransactionMetadata_Transfer); ok { - return x.Transfer + if x != nil { + if x, ok := x.Metadata.(*TransactionMetadata_Transfer); ok { + return x.Transfer + } } return nil } func (x *TransactionMetadata) GetExchange() *TransactionMetadata_ExchangeMetadata { - if x, ok := x.GetMetadata().(*TransactionMetadata_Exchange); ok { - return x.Exchange + if x != nil { + if x, ok := x.Metadata.(*TransactionMetadata_Exchange); ok { + return x.Exchange + } } return nil } func (x *TransactionMetadata) GetMassTransfer() *TransactionMetadata_MassTransferMetadata { - if x, ok := x.GetMetadata().(*TransactionMetadata_MassTransfer); ok { - return x.MassTransfer + if x != nil { + if x, ok := x.Metadata.(*TransactionMetadata_MassTransfer); ok { + return x.MassTransfer + } } return nil } func (x *TransactionMetadata) GetInvokeScript() *TransactionMetadata_InvokeScriptMetadata { - if x, ok := x.GetMetadata().(*TransactionMetadata_InvokeScript); ok { - return x.InvokeScript + if x != nil { + if x, ok := x.Metadata.(*TransactionMetadata_InvokeScript); ok { + return x.InvokeScript + } } return nil } func (x *TransactionMetadata) GetLease() *TransactionMetadata_LeaseMetadata { - if x, ok := x.GetMetadata().(*TransactionMetadata_Lease); ok { - return x.Lease + if x != nil { + if x, ok := x.Metadata.(*TransactionMetadata_Lease); ok { + return x.Lease + } } return nil } func (x *TransactionMetadata) GetEthereum() *TransactionMetadata_EthereumMetadata { - if x, ok := x.GetMetadata().(*TransactionMetadata_Ethereum); ok { - return x.Ethereum + if x != nil { + if x, ok := x.Metadata.(*TransactionMetadata_Ethereum); ok { + return x.Ethereum + } } return nil } @@ -457,11 +467,9 @@ func (*TransactionMetadata_Lease) isTransactionMetadata_Metadata() {} func (*TransactionMetadata_Ethereum) isTransactionMetadata_Metadata() {} type BlockchainUpdated_Append struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Body: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Body: + // // *BlockchainUpdated_Append_Block // *BlockchainUpdated_Append_MicroBlock Body isBlockchainUpdated_Append_Body `protobuf_oneof:"body"` @@ -469,15 +477,15 @@ type BlockchainUpdated_Append struct { TransactionsMetadata []*TransactionMetadata `protobuf:"bytes,4,rep,name=transactions_metadata,json=transactionsMetadata,proto3" json:"transactions_metadata,omitempty"` StateUpdate *StateUpdate `protobuf:"bytes,11,opt,name=state_update,json=stateUpdate,proto3" json:"state_update,omitempty"` TransactionStateUpdates []*StateUpdate `protobuf:"bytes,12,rep,name=transaction_state_updates,json=transactionStateUpdates,proto3" json:"transaction_state_updates,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BlockchainUpdated_Append) Reset() { *x = BlockchainUpdated_Append{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockchainUpdated_Append) String() string { @@ -488,7 +496,7 @@ func (*BlockchainUpdated_Append) ProtoMessage() {} func (x *BlockchainUpdated_Append) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -503,23 +511,27 @@ func (*BlockchainUpdated_Append) Descriptor() ([]byte, []int) { return file_waves_events_events_proto_rawDescGZIP(), []int{0, 0} } -func (m *BlockchainUpdated_Append) GetBody() isBlockchainUpdated_Append_Body { - if m != nil { - return m.Body +func (x *BlockchainUpdated_Append) GetBody() isBlockchainUpdated_Append_Body { + if x != nil { + return x.Body } return nil } func (x *BlockchainUpdated_Append) GetBlock() *BlockchainUpdated_Append_BlockAppend { - if x, ok := x.GetBody().(*BlockchainUpdated_Append_Block); ok { - return x.Block + if x != nil { + if x, ok := x.Body.(*BlockchainUpdated_Append_Block); ok { + return x.Block + } } return nil } func (x *BlockchainUpdated_Append) GetMicroBlock() *BlockchainUpdated_Append_MicroBlockAppend { - if x, ok := x.GetBody().(*BlockchainUpdated_Append_MicroBlock); ok { - return x.MicroBlock + if x != nil { + if x, ok := x.Body.(*BlockchainUpdated_Append_MicroBlock); ok { + return x.MicroBlock + } } return nil } @@ -569,24 +581,21 @@ func (*BlockchainUpdated_Append_Block) isBlockchainUpdated_Append_Body() {} func (*BlockchainUpdated_Append_MicroBlock) isBlockchainUpdated_Append_Body() {} type BlockchainUpdated_Rollback struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Type BlockchainUpdated_Rollback_RollbackType `protobuf:"varint,1,opt,name=type,proto3,enum=waves.events.BlockchainUpdated_Rollback_RollbackType" json:"type,omitempty"` RemovedTransactionIds [][]byte `protobuf:"bytes,2,rep,name=removed_transaction_ids,json=removedTransactionIds,proto3" json:"removed_transaction_ids,omitempty"` RemovedBlocks []*waves.Block `protobuf:"bytes,3,rep,name=removed_blocks,json=removedBlocks,proto3" json:"removed_blocks,omitempty"` RollbackStateUpdate *StateUpdate `protobuf:"bytes,4,opt,name=rollback_state_update,json=rollbackStateUpdate,proto3" json:"rollback_state_update,omitempty"` DeactivatedFeatures []int32 `protobuf:"varint,5,rep,packed,name=deactivated_features,json=deactivatedFeatures,proto3" json:"deactivated_features,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BlockchainUpdated_Rollback) Reset() { *x = BlockchainUpdated_Rollback{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockchainUpdated_Rollback) String() string { @@ -597,7 +606,7 @@ func (*BlockchainUpdated_Rollback) ProtoMessage() {} func (x *BlockchainUpdated_Rollback) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -648,24 +657,21 @@ func (x *BlockchainUpdated_Rollback) GetDeactivatedFeatures() []int32 { } type BlockchainUpdated_Append_BlockAppend struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Block *waves.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` - UpdatedWavesAmount int64 `protobuf:"varint,2,opt,name=updated_waves_amount,json=updatedWavesAmount,proto3" json:"updated_waves_amount,omitempty"` - ActivatedFeatures []int32 `protobuf:"varint,3,rep,packed,name=activated_features,json=activatedFeatures,proto3" json:"activated_features,omitempty"` - Vrf []byte `protobuf:"bytes,4,opt,name=vrf,proto3" json:"vrf,omitempty"` - RewardShares []*waves.RewardShare `protobuf:"bytes,5,rep,name=reward_shares,json=rewardShares,proto3" json:"reward_shares,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Block *waves.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` + UpdatedWavesAmount int64 `protobuf:"varint,2,opt,name=updated_waves_amount,json=updatedWavesAmount,proto3" json:"updated_waves_amount,omitempty"` + ActivatedFeatures []int32 `protobuf:"varint,3,rep,packed,name=activated_features,json=activatedFeatures,proto3" json:"activated_features,omitempty"` + Vrf []byte `protobuf:"bytes,4,opt,name=vrf,proto3" json:"vrf,omitempty"` + RewardShares []*waves.RewardShare `protobuf:"bytes,5,rep,name=reward_shares,json=rewardShares,proto3" json:"reward_shares,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BlockchainUpdated_Append_BlockAppend) Reset() { *x = BlockchainUpdated_Append_BlockAppend{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockchainUpdated_Append_BlockAppend) String() string { @@ -676,7 +682,7 @@ func (*BlockchainUpdated_Append_BlockAppend) ProtoMessage() {} func (x *BlockchainUpdated_Append_BlockAppend) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -727,21 +733,18 @@ func (x *BlockchainUpdated_Append_BlockAppend) GetRewardShares() []*waves.Reward } type BlockchainUpdated_Append_MicroBlockAppend struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` MicroBlock *waves.SignedMicroBlock `protobuf:"bytes,1,opt,name=micro_block,json=microBlock,proto3" json:"micro_block,omitempty"` UpdatedTransactionsRoot []byte `protobuf:"bytes,2,opt,name=updated_transactions_root,json=updatedTransactionsRoot,proto3" json:"updated_transactions_root,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BlockchainUpdated_Append_MicroBlockAppend) Reset() { *x = BlockchainUpdated_Append_MicroBlockAppend{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockchainUpdated_Append_MicroBlockAppend) String() string { @@ -752,7 +755,7 @@ func (*BlockchainUpdated_Append_MicroBlockAppend) ProtoMessage() {} func (x *BlockchainUpdated_Append_MicroBlockAppend) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -782,22 +785,19 @@ func (x *BlockchainUpdated_Append_MicroBlockAppend) GetUpdatedTransactionsRoot() } type StateUpdate_BalanceUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + AmountAfter *waves.Amount `protobuf:"bytes,2,opt,name=amount_after,json=amountAfter,proto3" json:"amount_after,omitempty"` + AmountBefore int64 `protobuf:"varint,3,opt,name=amount_before,json=amountBefore,proto3" json:"amount_before,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - AmountAfter *waves.Amount `protobuf:"bytes,2,opt,name=amount_after,json=amountAfter,proto3" json:"amount_after,omitempty"` - AmountBefore int64 `protobuf:"varint,3,opt,name=amount_before,json=amountBefore,proto3" json:"amount_before,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StateUpdate_BalanceUpdate) Reset() { *x = StateUpdate_BalanceUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_BalanceUpdate) String() string { @@ -808,7 +808,7 @@ func (*StateUpdate_BalanceUpdate) ProtoMessage() {} func (x *StateUpdate_BalanceUpdate) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -845,24 +845,21 @@ func (x *StateUpdate_BalanceUpdate) GetAmountBefore() int64 { } type StateUpdate_LeasingUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + InAfter int64 `protobuf:"varint,2,opt,name=in_after,json=inAfter,proto3" json:"in_after,omitempty"` + OutAfter int64 `protobuf:"varint,3,opt,name=out_after,json=outAfter,proto3" json:"out_after,omitempty"` + InBefore int64 `protobuf:"varint,4,opt,name=in_before,json=inBefore,proto3" json:"in_before,omitempty"` + OutBefore int64 `protobuf:"varint,5,opt,name=out_before,json=outBefore,proto3" json:"out_before,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - InAfter int64 `protobuf:"varint,2,opt,name=in_after,json=inAfter,proto3" json:"in_after,omitempty"` - OutAfter int64 `protobuf:"varint,3,opt,name=out_after,json=outAfter,proto3" json:"out_after,omitempty"` - InBefore int64 `protobuf:"varint,4,opt,name=in_before,json=inBefore,proto3" json:"in_before,omitempty"` - OutBefore int64 `protobuf:"varint,5,opt,name=out_before,json=outBefore,proto3" json:"out_before,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StateUpdate_LeasingUpdate) Reset() { *x = StateUpdate_LeasingUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_LeasingUpdate) String() string { @@ -873,7 +870,7 @@ func (*StateUpdate_LeasingUpdate) ProtoMessage() {} func (x *StateUpdate_LeasingUpdate) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -924,25 +921,22 @@ func (x *StateUpdate_LeasingUpdate) GetOutBefore() int64 { } type StateUpdate_LeaseUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` StatusAfter StateUpdate_LeaseUpdate_LeaseStatus `protobuf:"varint,2,opt,name=status_after,json=statusAfter,proto3,enum=waves.events.StateUpdate_LeaseUpdate_LeaseStatus" json:"status_after,omitempty"` Amount int64 `protobuf:"varint,10,opt,name=amount,proto3" json:"amount,omitempty"` Sender []byte `protobuf:"bytes,11,opt,name=sender,proto3" json:"sender,omitempty"` Recipient []byte `protobuf:"bytes,12,opt,name=recipient,proto3" json:"recipient,omitempty"` OriginTransactionId []byte `protobuf:"bytes,13,opt,name=origin_transaction_id,json=originTransactionId,proto3" json:"origin_transaction_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StateUpdate_LeaseUpdate) Reset() { *x = StateUpdate_LeaseUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_LeaseUpdate) String() string { @@ -953,7 +947,7 @@ func (*StateUpdate_LeaseUpdate) ProtoMessage() {} func (x *StateUpdate_LeaseUpdate) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1011,22 +1005,19 @@ func (x *StateUpdate_LeaseUpdate) GetOriginTransactionId() []byte { } type StateUpdate_DataEntryUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - DataEntry *waves.DataEntry `protobuf:"bytes,2,opt,name=data_entry,json=dataEntry,proto3" json:"data_entry,omitempty"` - DataEntryBefore *waves.DataEntry `protobuf:"bytes,10,opt,name=data_entry_before,json=dataEntryBefore,proto3" json:"data_entry_before,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + DataEntry *waves.DataEntry `protobuf:"bytes,2,opt,name=data_entry,json=dataEntry,proto3" json:"data_entry,omitempty"` + DataEntryBefore *waves.DataEntry `protobuf:"bytes,10,opt,name=data_entry_before,json=dataEntryBefore,proto3" json:"data_entry_before,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StateUpdate_DataEntryUpdate) Reset() { *x = StateUpdate_DataEntryUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_DataEntryUpdate) String() string { @@ -1037,7 +1028,7 @@ func (*StateUpdate_DataEntryUpdate) ProtoMessage() {} func (x *StateUpdate_DataEntryUpdate) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1074,21 +1065,18 @@ func (x *StateUpdate_DataEntryUpdate) GetDataEntryBefore() *waves.DataEntry { } type StateUpdate_AssetStateUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Before *StateUpdate_AssetDetails `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"` + After *StateUpdate_AssetDetails `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"` unknownFields protoimpl.UnknownFields - - Before *StateUpdate_AssetDetails `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"` - After *StateUpdate_AssetDetails `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StateUpdate_AssetStateUpdate) Reset() { *x = StateUpdate_AssetStateUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_AssetStateUpdate) String() string { @@ -1099,7 +1087,7 @@ func (*StateUpdate_AssetStateUpdate) ProtoMessage() {} func (x *StateUpdate_AssetStateUpdate) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1129,10 +1117,7 @@ func (x *StateUpdate_AssetStateUpdate) GetAfter() *StateUpdate_AssetDetails { } type StateUpdate_AssetDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` Issuer []byte `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` Decimals int32 `protobuf:"varint,3,opt,name=decimals,proto3" json:"decimals,omitempty"` @@ -1151,16 +1136,16 @@ type StateUpdate_AssetDetails struct { // This field represents accurate volume even for those assets. // Can be ignored if the target system does not need such accuracy. // Encoding: like Java BigInteger, https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html#toByteArray() - SafeVolume []byte `protobuf:"bytes,20,opt,name=safe_volume,json=safeVolume,proto3" json:"safe_volume,omitempty"` + SafeVolume []byte `protobuf:"bytes,20,opt,name=safe_volume,json=safeVolume,proto3" json:"safe_volume,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StateUpdate_AssetDetails) Reset() { *x = StateUpdate_AssetDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_AssetDetails) String() string { @@ -1171,7 +1156,7 @@ func (*StateUpdate_AssetDetails) ProtoMessage() {} func (x *StateUpdate_AssetDetails) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1285,22 +1270,19 @@ func (x *StateUpdate_AssetDetails) GetSafeVolume() []byte { } type StateUpdate_AssetInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Decimals int32 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Decimals int32 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StateUpdate_AssetInfo) Reset() { *x = StateUpdate_AssetInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_AssetInfo) String() string { @@ -1311,7 +1293,7 @@ func (*StateUpdate_AssetInfo) ProtoMessage() {} func (x *StateUpdate_AssetInfo) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1348,22 +1330,19 @@ func (x *StateUpdate_AssetInfo) GetName() string { } type StateUpdate_ScriptUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Before []byte `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"` + After []byte `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Before []byte `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"` - After []byte `protobuf:"bytes,3,opt,name=after,proto3" json:"after,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StateUpdate_ScriptUpdate) Reset() { *x = StateUpdate_ScriptUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_ScriptUpdate) String() string { @@ -1374,7 +1353,7 @@ func (*StateUpdate_ScriptUpdate) ProtoMessage() {} func (x *StateUpdate_ScriptUpdate) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1411,21 +1390,18 @@ func (x *StateUpdate_ScriptUpdate) GetAfter() []byte { } type StateUpdate_AssetDetails_AssetScriptInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Script []byte `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` + Complexity int64 `protobuf:"varint,2,opt,name=complexity,proto3" json:"complexity,omitempty"` unknownFields protoimpl.UnknownFields - - Script []byte `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` - Complexity int64 `protobuf:"varint,2,opt,name=complexity,proto3" json:"complexity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StateUpdate_AssetDetails_AssetScriptInfo) Reset() { *x = StateUpdate_AssetDetails_AssetScriptInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StateUpdate_AssetDetails_AssetScriptInfo) String() string { @@ -1436,7 +1412,7 @@ func (*StateUpdate_AssetDetails_AssetScriptInfo) ProtoMessage() {} func (x *StateUpdate_AssetDetails_AssetScriptInfo) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1466,20 +1442,17 @@ func (x *StateUpdate_AssetDetails_AssetScriptInfo) GetComplexity() int64 { } type TransactionMetadata_TransferMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_TransferMetadata) Reset() { *x = TransactionMetadata_TransferMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_TransferMetadata) String() string { @@ -1490,7 +1463,7 @@ func (*TransactionMetadata_TransferMetadata) ProtoMessage() {} func (x *TransactionMetadata_TransferMetadata) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1513,20 +1486,17 @@ func (x *TransactionMetadata_TransferMetadata) GetRecipientAddress() []byte { } type TransactionMetadata_MassTransferMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RecipientsAddresses [][]byte `protobuf:"bytes,1,rep,name=recipients_addresses,json=recipientsAddresses,proto3" json:"recipients_addresses,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RecipientsAddresses [][]byte `protobuf:"bytes,1,rep,name=recipients_addresses,json=recipientsAddresses,proto3" json:"recipients_addresses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_MassTransferMetadata) Reset() { *x = TransactionMetadata_MassTransferMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_MassTransferMetadata) String() string { @@ -1537,7 +1507,7 @@ func (*TransactionMetadata_MassTransferMetadata) ProtoMessage() {} func (x *TransactionMetadata_MassTransferMetadata) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1560,25 +1530,22 @@ func (x *TransactionMetadata_MassTransferMetadata) GetRecipientsAddresses() [][] } type TransactionMetadata_ExchangeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Fields starting with `order_*` represent order metadata. // Each of them is a collection of exactly 2 elements. // Element indexes correspond to their parent order indexes in the exchange transaction. OrderIds [][]byte `protobuf:"bytes,1,rep,name=order_ids,json=orderIds,proto3" json:"order_ids,omitempty"` OrderSenderAddresses [][]byte `protobuf:"bytes,2,rep,name=order_sender_addresses,json=orderSenderAddresses,proto3" json:"order_sender_addresses,omitempty"` OrderSenderPublicKeys [][]byte `protobuf:"bytes,3,rep,name=order_sender_public_keys,json=orderSenderPublicKeys,proto3" json:"order_sender_public_keys,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_ExchangeMetadata) Reset() { *x = TransactionMetadata_ExchangeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_ExchangeMetadata) String() string { @@ -1589,7 +1556,7 @@ func (*TransactionMetadata_ExchangeMetadata) ProtoMessage() {} func (x *TransactionMetadata_ExchangeMetadata) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1626,24 +1593,21 @@ func (x *TransactionMetadata_ExchangeMetadata) GetOrderSenderPublicKeys() [][]by } type TransactionMetadata_InvokeScriptMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DAppAddress []byte `protobuf:"bytes,1,opt,name=d_app_address,json=dAppAddress,proto3" json:"d_app_address,omitempty"` + FunctionName string `protobuf:"bytes,2,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` + Arguments []*waves.InvokeScriptResult_Call_Argument `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"` + Payments []*waves.Amount `protobuf:"bytes,4,rep,name=payments,proto3" json:"payments,omitempty"` + Result *waves.InvokeScriptResult `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - DAppAddress []byte `protobuf:"bytes,1,opt,name=d_app_address,json=dAppAddress,proto3" json:"d_app_address,omitempty"` - FunctionName string `protobuf:"bytes,2,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` - Arguments []*waves.InvokeScriptResult_Call_Argument `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"` - Payments []*waves.Amount `protobuf:"bytes,4,rep,name=payments,proto3" json:"payments,omitempty"` - Result *waves.InvokeScriptResult `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_InvokeScriptMetadata) Reset() { *x = TransactionMetadata_InvokeScriptMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_InvokeScriptMetadata) String() string { @@ -1654,7 +1618,7 @@ func (*TransactionMetadata_InvokeScriptMetadata) ProtoMessage() {} func (x *TransactionMetadata_InvokeScriptMetadata) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1705,20 +1669,17 @@ func (x *TransactionMetadata_InvokeScriptMetadata) GetResult() *waves.InvokeScri } type TransactionMetadata_LeaseMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_LeaseMetadata) Reset() { *x = TransactionMetadata_LeaseMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_LeaseMetadata) String() string { @@ -1729,7 +1690,7 @@ func (*TransactionMetadata_LeaseMetadata) ProtoMessage() {} func (x *TransactionMetadata_LeaseMetadata) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1752,21 +1713,18 @@ func (x *TransactionMetadata_LeaseMetadata) GetRecipientAddress() []byte { } type TransactionMetadata_EthereumTransferMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` - Amount *waves.Amount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` + Amount *waves.Amount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_EthereumTransferMetadata) Reset() { *x = TransactionMetadata_EthereumTransferMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_EthereumTransferMetadata) String() string { @@ -1777,7 +1735,7 @@ func (*TransactionMetadata_EthereumTransferMetadata) ProtoMessage() {} func (x *TransactionMetadata_EthereumTransferMetadata) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1807,27 +1765,25 @@ func (x *TransactionMetadata_EthereumTransferMetadata) GetAmount() *waves.Amount } type TransactionMetadata_EthereumMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // bytes sender_address = 1; Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Fee int64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` SenderPublicKey []byte `protobuf:"bytes,4,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` - // Types that are assignable to Action: + // Types that are valid to be assigned to Action: + // // *TransactionMetadata_EthereumMetadata_Transfer // *TransactionMetadata_EthereumMetadata_Invoke - Action isTransactionMetadata_EthereumMetadata_Action `protobuf_oneof:"Action"` + Action isTransactionMetadata_EthereumMetadata_Action `protobuf_oneof:"Action"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_EthereumMetadata) Reset() { *x = TransactionMetadata_EthereumMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_EthereumMetadata) String() string { @@ -1838,7 +1794,7 @@ func (*TransactionMetadata_EthereumMetadata) ProtoMessage() {} func (x *TransactionMetadata_EthereumMetadata) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1874,23 +1830,27 @@ func (x *TransactionMetadata_EthereumMetadata) GetSenderPublicKey() []byte { return nil } -func (m *TransactionMetadata_EthereumMetadata) GetAction() isTransactionMetadata_EthereumMetadata_Action { - if m != nil { - return m.Action +func (x *TransactionMetadata_EthereumMetadata) GetAction() isTransactionMetadata_EthereumMetadata_Action { + if x != nil { + return x.Action } return nil } func (x *TransactionMetadata_EthereumMetadata) GetTransfer() *TransactionMetadata_EthereumTransferMetadata { - if x, ok := x.GetAction().(*TransactionMetadata_EthereumMetadata_Transfer); ok { - return x.Transfer + if x != nil { + if x, ok := x.Action.(*TransactionMetadata_EthereumMetadata_Transfer); ok { + return x.Transfer + } } return nil } func (x *TransactionMetadata_EthereumMetadata) GetInvoke() *TransactionMetadata_InvokeScriptMetadata { - if x, ok := x.GetAction().(*TransactionMetadata_EthereumMetadata_Invoke); ok { - return x.Invoke + if x != nil { + if x, ok := x.Action.(*TransactionMetadata_EthereumMetadata_Invoke); ok { + return x.Invoke + } } return nil } @@ -1913,26 +1873,24 @@ func (*TransactionMetadata_EthereumMetadata_Transfer) isTransactionMetadata_Ethe func (*TransactionMetadata_EthereumMetadata_Invoke) isTransactionMetadata_EthereumMetadata_Action() {} type TransactionMetadata_InvokeScriptMetadata_Argument struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Value: + // // *TransactionMetadata_InvokeScriptMetadata_Argument_IntegerValue // *TransactionMetadata_InvokeScriptMetadata_Argument_BinaryValue // *TransactionMetadata_InvokeScriptMetadata_Argument_StringValue // *TransactionMetadata_InvokeScriptMetadata_Argument_BooleanValue // *TransactionMetadata_InvokeScriptMetadata_Argument_List_ - Value isTransactionMetadata_InvokeScriptMetadata_Argument_Value `protobuf_oneof:"value"` + Value isTransactionMetadata_InvokeScriptMetadata_Argument_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_InvokeScriptMetadata_Argument) Reset() { *x = TransactionMetadata_InvokeScriptMetadata_Argument{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_InvokeScriptMetadata_Argument) String() string { @@ -1943,7 +1901,7 @@ func (*TransactionMetadata_InvokeScriptMetadata_Argument) ProtoMessage() {} func (x *TransactionMetadata_InvokeScriptMetadata_Argument) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1958,44 +1916,54 @@ func (*TransactionMetadata_InvokeScriptMetadata_Argument) Descriptor() ([]byte, return file_waves_events_events_proto_rawDescGZIP(), []int{2, 3, 0} } -func (m *TransactionMetadata_InvokeScriptMetadata_Argument) GetValue() isTransactionMetadata_InvokeScriptMetadata_Argument_Value { - if m != nil { - return m.Value +func (x *TransactionMetadata_InvokeScriptMetadata_Argument) GetValue() isTransactionMetadata_InvokeScriptMetadata_Argument_Value { + if x != nil { + return x.Value } return nil } func (x *TransactionMetadata_InvokeScriptMetadata_Argument) GetIntegerValue() int64 { - if x, ok := x.GetValue().(*TransactionMetadata_InvokeScriptMetadata_Argument_IntegerValue); ok { - return x.IntegerValue + if x != nil { + if x, ok := x.Value.(*TransactionMetadata_InvokeScriptMetadata_Argument_IntegerValue); ok { + return x.IntegerValue + } } return 0 } func (x *TransactionMetadata_InvokeScriptMetadata_Argument) GetBinaryValue() []byte { - if x, ok := x.GetValue().(*TransactionMetadata_InvokeScriptMetadata_Argument_BinaryValue); ok { - return x.BinaryValue + if x != nil { + if x, ok := x.Value.(*TransactionMetadata_InvokeScriptMetadata_Argument_BinaryValue); ok { + return x.BinaryValue + } } return nil } func (x *TransactionMetadata_InvokeScriptMetadata_Argument) GetStringValue() string { - if x, ok := x.GetValue().(*TransactionMetadata_InvokeScriptMetadata_Argument_StringValue); ok { - return x.StringValue + if x != nil { + if x, ok := x.Value.(*TransactionMetadata_InvokeScriptMetadata_Argument_StringValue); ok { + return x.StringValue + } } return "" } func (x *TransactionMetadata_InvokeScriptMetadata_Argument) GetBooleanValue() bool { - if x, ok := x.GetValue().(*TransactionMetadata_InvokeScriptMetadata_Argument_BooleanValue); ok { - return x.BooleanValue + if x != nil { + if x, ok := x.Value.(*TransactionMetadata_InvokeScriptMetadata_Argument_BooleanValue); ok { + return x.BooleanValue + } } return false } func (x *TransactionMetadata_InvokeScriptMetadata_Argument) GetList() *TransactionMetadata_InvokeScriptMetadata_Argument_List { - if x, ok := x.GetValue().(*TransactionMetadata_InvokeScriptMetadata_Argument_List_); ok { - return x.List + if x != nil { + if x, ok := x.Value.(*TransactionMetadata_InvokeScriptMetadata_Argument_List_); ok { + return x.List + } } return nil } @@ -2040,20 +2008,17 @@ func (*TransactionMetadata_InvokeScriptMetadata_Argument_List_) isTransactionMet } type TransactionMetadata_InvokeScriptMetadata_Argument_List struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*TransactionMetadata_InvokeScriptMetadata_Argument `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*TransactionMetadata_InvokeScriptMetadata_Argument `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionMetadata_InvokeScriptMetadata_Argument_List) Reset() { *x = TransactionMetadata_InvokeScriptMetadata_Argument_List{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_events_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_events_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionMetadata_InvokeScriptMetadata_Argument_List) String() string { @@ -2064,7 +2029,7 @@ func (*TransactionMetadata_InvokeScriptMetadata_Argument_List) ProtoMessage() {} func (x *TransactionMetadata_InvokeScriptMetadata_Argument_List) ProtoReflect() protoreflect.Message { mi := &file_waves_events_events_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2088,392 +2053,182 @@ func (x *TransactionMetadata_InvokeScriptMetadata_Argument_List) GetItems() []*T var File_waves_events_events_proto protoreflect.FileDescriptor -var file_waves_events_events_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x11, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x17, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2f, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x0b, 0x0a, 0x11, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x06, 0x61, - 0x70, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x46, 0x0a, 0x08, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, - 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, - 0x6b, 0x48, 0x00, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x50, 0x0a, - 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x72, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x1a, - 0xb9, 0x06, 0x0a, 0x06, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x4a, 0x0a, 0x05, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x65, 0x6e, - 0x64, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x48, 0x00, 0x52, - 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x5a, 0x0a, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x5f, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x41, 0x70, 0x70, - 0x65, 0x6e, 0x64, 0x2e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x70, - 0x70, 0x65, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x74, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x12, 0x56, 0x0a, 0x15, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x14, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x3c, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x12, 0x55, 0x0a, 0x19, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x18, 0x0c, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x17, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x1a, 0xdd, 0x01, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x30, 0x0a, 0x14, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x5f, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x57, 0x61, 0x76, 0x65, 0x73, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2d, - 0x0a, 0x12, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x10, 0x0a, - 0x03, 0x76, 0x72, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x76, 0x72, 0x66, 0x12, - 0x37, 0x0a, 0x0d, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x1a, 0x88, 0x01, 0x0a, 0x10, 0x4d, 0x69, 0x63, - 0x72, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x38, 0x0a, - 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x0a, 0x6d, 0x69, 0x63, - 0x72, 0x6f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3a, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, - 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x17, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x6f, 0x6f, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x1a, 0xef, 0x02, 0x0a, 0x08, - 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x49, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, - 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0c, 0x52, 0x15, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x12, 0x33, 0x0a, 0x0e, 0x72, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x52, 0x0d, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, - 0x12, 0x4d, 0x0a, 0x15, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x13, 0x72, 0x6f, 0x6c, 0x6c, - 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, - 0x31, 0x0a, 0x14, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05, 0x52, 0x13, 0x64, - 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x73, 0x22, 0x29, 0x0a, 0x0c, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x10, 0x00, 0x12, 0x0e, 0x0a, - 0x0a, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x10, 0x01, 0x42, 0x08, 0x0a, - 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x22, 0xd9, 0x10, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13, - 0x6c, 0x65, 0x61, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x69, 0x6e, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x11, 0x6c, 0x65, 0x61, 0x73, 0x69, 0x6e, 0x67, 0x46, 0x6f, 0x72, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4c, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, - 0x69, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x52, 0x0a, 0x11, 0x69, 0x6e, 0x64, 0x69, 0x76, - 0x69, 0x64, 0x75, 0x61, 0x6c, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x65, - 0x61, 0x73, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x10, 0x69, 0x6e, 0x64, 0x69, 0x76, - 0x69, 0x64, 0x75, 0x61, 0x6c, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x07, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x73, 0x12, 0x27, 0x0a, - 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, - 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, - 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x1a, 0x80, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x30, 0x0a, 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x66, 0x74, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x41, - 0x66, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x62, - 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x1a, 0x9d, 0x01, 0x0a, 0x0d, 0x4c, 0x65, - 0x61, 0x73, 0x69, 0x6e, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6e, 0x5f, 0x61, 0x66, 0x74, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x69, 0x6e, 0x41, 0x66, 0x74, 0x65, 0x72, - 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x75, 0x74, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x08, 0x6f, 0x75, 0x74, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, - 0x09, 0x69, 0x6e, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x08, 0x69, 0x6e, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x75, - 0x74, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, - 0x6f, 0x75, 0x74, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x1a, 0xa9, 0x02, 0x0a, 0x0b, 0x4c, 0x65, - 0x61, 0x73, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x65, 0x61, - 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x65, 0x61, - 0x73, 0x65, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x61, - 0x66, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, - 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, - 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x27, 0x0a, 0x0b, - 0x4c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0c, 0x0a, 0x08, 0x49, - 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, - 0x49, 0x56, 0x45, 0x10, 0x01, 0x1a, 0x9a, 0x01, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x74, 0x72, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x3c, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x74, - 0x72, 0x79, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x65, 0x66, 0x6f, - 0x72, 0x65, 0x1a, 0x90, 0x01, 0x0a, 0x10, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x3c, 0x0a, 0x05, 0x61, 0x66, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x05, - 0x61, 0x66, 0x74, 0x65, 0x72, 0x1a, 0xb6, 0x04, 0x0a, 0x0c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, - 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, - 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, - 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x72, - 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0a, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x0b, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x69, 0x6e, - 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x0a, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x68, 0x69, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0b, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x10, - 0x0a, 0x03, 0x6e, 0x66, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6e, 0x66, 0x74, - 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, - 0x69, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x61, 0x66, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x61, 0x66, 0x65, 0x56, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x1a, 0x49, 0x0a, 0x0f, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x1e, - 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x1a, 0x4b, - 0x0a, 0x09, 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, - 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, - 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x56, 0x0a, 0x0c, 0x53, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x61, 0x66, - 0x74, 0x65, 0x72, 0x22, 0xb8, 0x0f, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x73, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x50, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x18, 0x68, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x65, 0x78, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x5d, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x73, 0x5f, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x4d, 0x61, 0x73, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x73, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x5d, 0x0a, 0x0d, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x5f, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x74, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x12, 0x47, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x75, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x51, 0x0a, - 0x08, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x18, 0xad, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x32, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, - 0x1a, 0x3f, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, - 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x1a, 0x49, 0x0a, 0x14, 0x4d, 0x61, 0x73, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x14, 0x72, 0x65, 0x63, - 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x13, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, - 0x6e, 0x74, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x1a, 0x9e, 0x01, 0x0a, - 0x10, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0c, 0x52, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x34, - 0x0a, 0x16, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x14, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x15, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x1a, 0xed, 0x04, - 0x0a, 0x14, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0d, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x64, - 0x41, 0x70, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x45, 0x0a, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, - 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x43, 0x61, - 0x6c, 0x6c, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x61, 0x72, 0x67, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x29, 0x0a, 0x08, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x31, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, - 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x1a, 0xe6, 0x02, 0x0a, 0x08, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, - 0x74, 0x12, 0x25, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x65, - 0x67, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x61, - 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, - 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, - 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, - 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x5a, 0x0a, 0x04, 0x6c, 0x69, 0x73, - 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, - 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x00, 0x52, - 0x04, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x5d, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x55, 0x0a, - 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x69, - 0x74, 0x65, 0x6d, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x3c, 0x0a, - 0x0d, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, - 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, - 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x6e, 0x0a, 0x18, 0x45, - 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, - 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0xa4, 0x02, 0x0a, 0x10, - 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x10, - 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, - 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x58, 0x0a, 0x08, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x06, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, - 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, - 0x52, 0x06, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x42, 0x0a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x65, - 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_events_events_proto_rawDesc = "" + + "\n" + + "\x19waves/events/events.proto\x12\fwaves.events\x1a\x11waves/block.proto\x1a\x12waves/amount.proto\x1a\x17waves/transaction.proto\x1a waves/invoke_script_result.proto\x1a\x18waves/reward_share.proto\"\xcf\v\n" + + "\x11BlockchainUpdated\x12\x0e\n" + + "\x02id\x18\x01 \x01(\fR\x02id\x12\x16\n" + + "\x06height\x18\x02 \x01(\x05R\x06height\x12@\n" + + "\x06append\x18\v \x01(\v2&.waves.events.BlockchainUpdated.AppendH\x00R\x06append\x12F\n" + + "\brollback\x18\f \x01(\v2(.waves.events.BlockchainUpdated.RollbackH\x00R\brollback\x12P\n" + + "\x11referenced_assets\x18\x15 \x03(\v2#.waves.events.StateUpdate.AssetInfoR\x10referencedAssets\x1a\xb9\x06\n" + + "\x06Append\x12J\n" + + "\x05block\x18\x01 \x01(\v22.waves.events.BlockchainUpdated.Append.BlockAppendH\x00R\x05block\x12Z\n" + + "\vmicro_block\x18\x02 \x01(\v27.waves.events.BlockchainUpdated.Append.MicroBlockAppendH\x00R\n" + + "microBlock\x12'\n" + + "\x0ftransaction_ids\x18\x03 \x03(\fR\x0etransactionIds\x12V\n" + + "\x15transactions_metadata\x18\x04 \x03(\v2!.waves.events.TransactionMetadataR\x14transactionsMetadata\x12<\n" + + "\fstate_update\x18\v \x01(\v2\x19.waves.events.StateUpdateR\vstateUpdate\x12U\n" + + "\x19transaction_state_updates\x18\f \x03(\v2\x19.waves.events.StateUpdateR\x17transactionStateUpdates\x1a\xdd\x01\n" + + "\vBlockAppend\x12\"\n" + + "\x05block\x18\x01 \x01(\v2\f.waves.BlockR\x05block\x120\n" + + "\x14updated_waves_amount\x18\x02 \x01(\x03R\x12updatedWavesAmount\x12-\n" + + "\x12activated_features\x18\x03 \x03(\x05R\x11activatedFeatures\x12\x10\n" + + "\x03vrf\x18\x04 \x01(\fR\x03vrf\x127\n" + + "\rreward_shares\x18\x05 \x03(\v2\x12.waves.RewardShareR\frewardShares\x1a\x88\x01\n" + + "\x10MicroBlockAppend\x128\n" + + "\vmicro_block\x18\x01 \x01(\v2\x17.waves.SignedMicroBlockR\n" + + "microBlock\x12:\n" + + "\x19updated_transactions_root\x18\x02 \x01(\fR\x17updatedTransactionsRootB\x06\n" + + "\x04body\x1a\xef\x02\n" + + "\bRollback\x12I\n" + + "\x04type\x18\x01 \x01(\x0e25.waves.events.BlockchainUpdated.Rollback.RollbackTypeR\x04type\x126\n" + + "\x17removed_transaction_ids\x18\x02 \x03(\fR\x15removedTransactionIds\x123\n" + + "\x0eremoved_blocks\x18\x03 \x03(\v2\f.waves.BlockR\rremovedBlocks\x12M\n" + + "\x15rollback_state_update\x18\x04 \x01(\v2\x19.waves.events.StateUpdateR\x13rollbackStateUpdate\x121\n" + + "\x14deactivated_features\x18\x05 \x03(\x05R\x13deactivatedFeatures\")\n" + + "\fRollbackType\x12\t\n" + + "\x05BLOCK\x10\x00\x12\x0e\n" + + "\n" + + "MICROBLOCK\x10\x01B\b\n" + + "\x06update\"\xd9\x10\n" + + "\vStateUpdate\x12C\n" + + "\bbalances\x18\x01 \x03(\v2'.waves.events.StateUpdate.BalanceUpdateR\bbalances\x12W\n" + + "\x13leasing_for_address\x18\x02 \x03(\v2'.waves.events.StateUpdate.LeasingUpdateR\x11leasingForAddress\x12L\n" + + "\fdata_entries\x18\x03 \x03(\v2).waves.events.StateUpdate.DataEntryUpdateR\vdataEntries\x12B\n" + + "\x06assets\x18\x04 \x03(\v2*.waves.events.StateUpdate.AssetStateUpdateR\x06assets\x12R\n" + + "\x11individual_leases\x18\x05 \x03(\v2%.waves.events.StateUpdate.LeaseUpdateR\x10individualLeases\x12@\n" + + "\ascripts\x18\x06 \x03(\v2&.waves.events.StateUpdate.ScriptUpdateR\ascripts\x12'\n" + + "\x0fdeleted_aliases\x18\a \x03(\tR\x0edeletedAliases\x1a\x80\x01\n" + + "\rBalanceUpdate\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x120\n" + + "\famount_after\x18\x02 \x01(\v2\r.waves.AmountR\vamountAfter\x12#\n" + + "\ramount_before\x18\x03 \x01(\x03R\famountBefore\x1a\x9d\x01\n" + + "\rLeasingUpdate\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12\x19\n" + + "\bin_after\x18\x02 \x01(\x03R\ainAfter\x12\x1b\n" + + "\tout_after\x18\x03 \x01(\x03R\boutAfter\x12\x1b\n" + + "\tin_before\x18\x04 \x01(\x03R\binBefore\x12\x1d\n" + + "\n" + + "out_before\x18\x05 \x01(\x03R\toutBefore\x1a\xa9\x02\n" + + "\vLeaseUpdate\x12\x19\n" + + "\blease_id\x18\x01 \x01(\fR\aleaseId\x12T\n" + + "\fstatus_after\x18\x02 \x01(\x0e21.waves.events.StateUpdate.LeaseUpdate.LeaseStatusR\vstatusAfter\x12\x16\n" + + "\x06amount\x18\n" + + " \x01(\x03R\x06amount\x12\x16\n" + + "\x06sender\x18\v \x01(\fR\x06sender\x12\x1c\n" + + "\trecipient\x18\f \x01(\fR\trecipient\x122\n" + + "\x15origin_transaction_id\x18\r \x01(\fR\x13originTransactionId\"'\n" + + "\vLeaseStatus\x12\f\n" + + "\bINACTIVE\x10\x00\x12\n" + + "\n" + + "\x06ACTIVE\x10\x01\x1a\x9a\x01\n" + + "\x0fDataEntryUpdate\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12/\n" + + "\n" + + "data_entry\x18\x02 \x01(\v2\x10.waves.DataEntryR\tdataEntry\x12<\n" + + "\x11data_entry_before\x18\n" + + " \x01(\v2\x10.waves.DataEntryR\x0fdataEntryBefore\x1a\x90\x01\n" + + "\x10AssetStateUpdate\x12>\n" + + "\x06before\x18\x01 \x01(\v2&.waves.events.StateUpdate.AssetDetailsR\x06before\x12<\n" + + "\x05after\x18\x02 \x01(\v2&.waves.events.StateUpdate.AssetDetailsR\x05after\x1a\xb6\x04\n" + + "\fAssetDetails\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x16\n" + + "\x06issuer\x18\x02 \x01(\fR\x06issuer\x12\x1a\n" + + "\bdecimals\x18\x03 \x01(\x05R\bdecimals\x12\x12\n" + + "\x04name\x18\x04 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x05 \x01(\tR\vdescription\x12\x1e\n" + + "\n" + + "reissuable\x18\x06 \x01(\bR\n" + + "reissuable\x12\x16\n" + + "\x06volume\x18\a \x01(\x03R\x06volume\x12W\n" + + "\vscript_info\x18\b \x01(\v26.waves.events.StateUpdate.AssetDetails.AssetScriptInfoR\n" + + "scriptInfo\x12 \n" + + "\vsponsorship\x18\t \x01(\x03R\vsponsorship\x12\x10\n" + + "\x03nft\x18\n" + + " \x01(\bR\x03nft\x12!\n" + + "\flast_updated\x18\v \x01(\x05R\vlastUpdated\x12*\n" + + "\x11sequence_in_block\x18\f \x01(\x05R\x0fsequenceInBlock\x12!\n" + + "\fissue_height\x18\r \x01(\x05R\vissueHeight\x12\x1f\n" + + "\vsafe_volume\x18\x14 \x01(\fR\n" + + "safeVolume\x1aI\n" + + "\x0fAssetScriptInfo\x12\x16\n" + + "\x06script\x18\x01 \x01(\fR\x06script\x12\x1e\n" + + "\n" + + "complexity\x18\x02 \x01(\x03R\n" + + "complexity\x1aK\n" + + "\tAssetInfo\x12\x0e\n" + + "\x02id\x18\x01 \x01(\fR\x02id\x12\x1a\n" + + "\bdecimals\x18\x02 \x01(\x05R\bdecimals\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\x1aV\n" + + "\fScriptUpdate\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12\x16\n" + + "\x06before\x18\x02 \x01(\fR\x06before\x12\x14\n" + + "\x05after\x18\x03 \x01(\fR\x05after\"\xb8\x0f\n" + + "\x13TransactionMetadata\x12%\n" + + "\x0esender_address\x18\x01 \x01(\fR\rsenderAddress\x12P\n" + + "\btransfer\x18h \x01(\v22.waves.events.TransactionMetadata.TransferMetadataH\x00R\btransfer\x12P\n" + + "\bexchange\x18k \x01(\v22.waves.events.TransactionMetadata.ExchangeMetadataH\x00R\bexchange\x12]\n" + + "\rmass_transfer\x18o \x01(\v26.waves.events.TransactionMetadata.MassTransferMetadataH\x00R\fmassTransfer\x12]\n" + + "\rinvoke_script\x18t \x01(\v26.waves.events.TransactionMetadata.InvokeScriptMetadataH\x00R\finvokeScript\x12G\n" + + "\x05lease\x18u \x01(\v2/.waves.events.TransactionMetadata.LeaseMetadataH\x00R\x05lease\x12Q\n" + + "\bethereum\x18\xad\x02 \x01(\v22.waves.events.TransactionMetadata.EthereumMetadataH\x00R\bethereum\x1a?\n" + + "\x10TransferMetadata\x12+\n" + + "\x11recipient_address\x18\x01 \x01(\fR\x10recipientAddress\x1aI\n" + + "\x14MassTransferMetadata\x121\n" + + "\x14recipients_addresses\x18\x01 \x03(\fR\x13recipientsAddresses\x1a\x9e\x01\n" + + "\x10ExchangeMetadata\x12\x1b\n" + + "\torder_ids\x18\x01 \x03(\fR\borderIds\x124\n" + + "\x16order_sender_addresses\x18\x02 \x03(\fR\x14orderSenderAddresses\x127\n" + + "\x18order_sender_public_keys\x18\x03 \x03(\fR\x15orderSenderPublicKeys\x1a\xed\x04\n" + + "\x14InvokeScriptMetadata\x12\"\n" + + "\rd_app_address\x18\x01 \x01(\fR\vdAppAddress\x12#\n" + + "\rfunction_name\x18\x02 \x01(\tR\ffunctionName\x12E\n" + + "\targuments\x18\x03 \x03(\v2'.waves.InvokeScriptResult.Call.ArgumentR\targuments\x12)\n" + + "\bpayments\x18\x04 \x03(\v2\r.waves.AmountR\bpayments\x121\n" + + "\x06result\x18\x05 \x01(\v2\x19.waves.InvokeScriptResultR\x06result\x1a\xe6\x02\n" + + "\bArgument\x12%\n" + + "\rinteger_value\x18\x01 \x01(\x03H\x00R\fintegerValue\x12#\n" + + "\fbinary_value\x18\x02 \x01(\fH\x00R\vbinaryValue\x12#\n" + + "\fstring_value\x18\x03 \x01(\tH\x00R\vstringValue\x12%\n" + + "\rboolean_value\x18\x04 \x01(\bH\x00R\fbooleanValue\x12Z\n" + + "\x04list\x18\n" + + " \x01(\v2D.waves.events.TransactionMetadata.InvokeScriptMetadata.Argument.ListH\x00R\x04list\x1a]\n" + + "\x04List\x12U\n" + + "\x05items\x18\x01 \x03(\v2?.waves.events.TransactionMetadata.InvokeScriptMetadata.ArgumentR\x05itemsB\a\n" + + "\x05value\x1a<\n" + + "\rLeaseMetadata\x12+\n" + + "\x11recipient_address\x18\x01 \x01(\fR\x10recipientAddress\x1an\n" + + "\x18EthereumTransferMetadata\x12+\n" + + "\x11recipient_address\x18\x01 \x01(\fR\x10recipientAddress\x12%\n" + + "\x06amount\x18\x02 \x01(\v2\r.waves.AmountR\x06amount\x1a\xa4\x02\n" + + "\x10EthereumMetadata\x12\x1c\n" + + "\ttimestamp\x18\x02 \x01(\x03R\ttimestamp\x12\x10\n" + + "\x03fee\x18\x03 \x01(\x03R\x03fee\x12*\n" + + "\x11sender_public_key\x18\x04 \x01(\fR\x0fsenderPublicKey\x12X\n" + + "\btransfer\x18\n" + + " \x01(\v2:.waves.events.TransactionMetadata.EthereumTransferMetadataH\x00R\btransfer\x12P\n" + + "\x06invoke\x18\v \x01(\v26.waves.events.TransactionMetadata.InvokeScriptMetadataH\x00R\x06invokeB\b\n" + + "\x06ActionB\n" + + "\n" + + "\bmetadataBe\n" + + "!com.wavesplatform.events.protobufZ@github.com/wavesplatform/gowaves/pkg/grpc/generated/waves/eventsb\x06proto3" var ( file_waves_events_events_proto_rawDescOnce sync.Once - file_waves_events_events_proto_rawDescData = file_waves_events_events_proto_rawDesc + file_waves_events_events_proto_rawDescData []byte ) func file_waves_events_events_proto_rawDescGZIP() []byte { file_waves_events_events_proto_rawDescOnce.Do(func() { - file_waves_events_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_events_events_proto_rawDescData) + file_waves_events_events_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_events_events_proto_rawDesc), len(file_waves_events_events_proto_rawDesc))) }) return file_waves_events_events_proto_rawDescData } var file_waves_events_events_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_waves_events_events_proto_msgTypes = make([]protoimpl.MessageInfo, 25) -var file_waves_events_events_proto_goTypes = []interface{}{ +var file_waves_events_events_proto_goTypes = []any{ (BlockchainUpdated_Rollback_RollbackType)(0), // 0: waves.events.BlockchainUpdated.Rollback.RollbackType (StateUpdate_LeaseUpdate_LeaseStatus)(0), // 1: waves.events.StateUpdate.LeaseUpdate.LeaseStatus (*BlockchainUpdated)(nil), // 2: waves.events.BlockchainUpdated @@ -2563,313 +2318,11 @@ func file_waves_events_events_proto_init() { if File_waves_events_events_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_events_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockchainUpdated); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockchainUpdated_Append); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockchainUpdated_Rollback); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockchainUpdated_Append_BlockAppend); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockchainUpdated_Append_MicroBlockAppend); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_BalanceUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_LeasingUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_LeaseUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_DataEntryUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_AssetStateUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_AssetDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_AssetInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_ScriptUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StateUpdate_AssetDetails_AssetScriptInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_TransferMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_MassTransferMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_ExchangeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_InvokeScriptMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_LeaseMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_EthereumTransferMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_EthereumMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_InvokeScriptMetadata_Argument); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_events_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionMetadata_InvokeScriptMetadata_Argument_List); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_waves_events_events_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_waves_events_events_proto_msgTypes[0].OneofWrappers = []any{ (*BlockchainUpdated_Append_)(nil), (*BlockchainUpdated_Rollback_)(nil), } - file_waves_events_events_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_waves_events_events_proto_msgTypes[2].OneofWrappers = []any{ (*TransactionMetadata_Transfer)(nil), (*TransactionMetadata_Exchange)(nil), (*TransactionMetadata_MassTransfer)(nil), @@ -2877,15 +2330,15 @@ func file_waves_events_events_proto_init() { (*TransactionMetadata_Lease)(nil), (*TransactionMetadata_Ethereum)(nil), } - file_waves_events_events_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_waves_events_events_proto_msgTypes[3].OneofWrappers = []any{ (*BlockchainUpdated_Append_Block)(nil), (*BlockchainUpdated_Append_MicroBlock)(nil), } - file_waves_events_events_proto_msgTypes[22].OneofWrappers = []interface{}{ + file_waves_events_events_proto_msgTypes[22].OneofWrappers = []any{ (*TransactionMetadata_EthereumMetadata_Transfer)(nil), (*TransactionMetadata_EthereumMetadata_Invoke)(nil), } - file_waves_events_events_proto_msgTypes[23].OneofWrappers = []interface{}{ + file_waves_events_events_proto_msgTypes[23].OneofWrappers = []any{ (*TransactionMetadata_InvokeScriptMetadata_Argument_IntegerValue)(nil), (*TransactionMetadata_InvokeScriptMetadata_Argument_BinaryValue)(nil), (*TransactionMetadata_InvokeScriptMetadata_Argument_StringValue)(nil), @@ -2896,7 +2349,7 @@ func file_waves_events_events_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_waves_events_events_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_events_events_proto_rawDesc), len(file_waves_events_events_proto_rawDesc)), NumEnums: 2, NumMessages: 25, NumExtensions: 0, @@ -2908,7 +2361,6 @@ func file_waves_events_events_proto_init() { MessageInfos: file_waves_events_events_proto_msgTypes, }.Build() File_waves_events_events_proto = out.File - file_waves_events_events_proto_rawDesc = nil file_waves_events_events_proto_goTypes = nil file_waves_events_events_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/events/events_vtproto.pb.go b/pkg/grpc/generated/waves/events/events_vtproto.pb.go index f805d4934..44fb225b3 100644 --- a/pkg/grpc/generated/waves/events/events_vtproto.pb.go +++ b/pkg/grpc/generated/waves/events/events_vtproto.pb.go @@ -1,16 +1,16 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/events/events.proto package events import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" waves "github.com/wavesplatform/gowaves/pkg/grpc/generated/waves" proto "google.golang.org/protobuf/proto" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" - bits "math/bits" ) const ( @@ -60,7 +60,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) MarshalToSizedBufferVTStrict(dAtA return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.RewardShares[iNdEx]) if err != nil { @@ -68,7 +68,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) MarshalToSizedBufferVTStrict(dAtA } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x2a @@ -77,14 +77,14 @@ func (m *BlockchainUpdated_Append_BlockAppend) MarshalToSizedBufferVTStrict(dAtA if len(m.Vrf) > 0 { i -= len(m.Vrf) copy(dAtA[i:], m.Vrf) - i = encodeVarint(dAtA, i, uint64(len(m.Vrf))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Vrf))) i-- dAtA[i] = 0x22 } if len(m.ActivatedFeatures) > 0 { var pksize2 int for _, num := range m.ActivatedFeatures { - pksize2 += sov(uint64(num)) + pksize2 += protohelpers.SizeOfVarint(uint64(num)) } i -= pksize2 j1 := i @@ -98,12 +98,12 @@ func (m *BlockchainUpdated_Append_BlockAppend) MarshalToSizedBufferVTStrict(dAtA dAtA[j1] = uint8(num) j1++ } - i = encodeVarint(dAtA, i, uint64(pksize2)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) i-- dAtA[i] = 0x1a } if m.UpdatedWavesAmount != 0 { - i = encodeVarint(dAtA, i, uint64(m.UpdatedWavesAmount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.UpdatedWavesAmount)) i-- dAtA[i] = 0x10 } @@ -116,7 +116,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) MarshalToSizedBufferVTStrict(dAtA return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.Block) if err != nil { @@ -124,7 +124,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) MarshalToSizedBufferVTStrict(dAtA } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0xa @@ -165,7 +165,7 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) MarshalToSizedBufferVTStrict if len(m.UpdatedTransactionsRoot) > 0 { i -= len(m.UpdatedTransactionsRoot) copy(dAtA[i:], m.UpdatedTransactionsRoot) - i = encodeVarint(dAtA, i, uint64(len(m.UpdatedTransactionsRoot))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UpdatedTransactionsRoot))) i-- dAtA[i] = 0x12 } @@ -178,7 +178,7 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) MarshalToSizedBufferVTStrict return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.MicroBlock) if err != nil { @@ -186,7 +186,7 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) MarshalToSizedBufferVTStrict } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0xa @@ -231,7 +231,7 @@ func (m *BlockchainUpdated_Append) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x62 } @@ -242,7 +242,7 @@ func (m *BlockchainUpdated_Append) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x5a } @@ -253,7 +253,7 @@ func (m *BlockchainUpdated_Append) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } @@ -262,7 +262,7 @@ func (m *BlockchainUpdated_Append) MarshalToSizedBufferVTStrict(dAtA []byte) (in for iNdEx := len(m.TransactionIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.TransactionIds[iNdEx]) copy(dAtA[i:], m.TransactionIds[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.TransactionIds[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TransactionIds[iNdEx]))) i-- dAtA[i] = 0x1a } @@ -297,7 +297,7 @@ func (m *BlockchainUpdated_Append_Block) MarshalToSizedBufferVTStrict(dAtA []byt return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -316,7 +316,7 @@ func (m *BlockchainUpdated_Append_MicroBlock) MarshalToSizedBufferVTStrict(dAtA return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -355,7 +355,7 @@ func (m *BlockchainUpdated_Rollback) MarshalToSizedBufferVTStrict(dAtA []byte) ( if len(m.DeactivatedFeatures) > 0 { var pksize2 int for _, num := range m.DeactivatedFeatures { - pksize2 += sov(uint64(num)) + pksize2 += protohelpers.SizeOfVarint(uint64(num)) } i -= pksize2 j1 := i @@ -369,7 +369,7 @@ func (m *BlockchainUpdated_Rollback) MarshalToSizedBufferVTStrict(dAtA []byte) ( dAtA[j1] = uint8(num) j1++ } - i = encodeVarint(dAtA, i, uint64(pksize2)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) i-- dAtA[i] = 0x2a } @@ -379,7 +379,7 @@ func (m *BlockchainUpdated_Rollback) MarshalToSizedBufferVTStrict(dAtA []byte) ( return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } @@ -393,7 +393,7 @@ func (m *BlockchainUpdated_Rollback) MarshalToSizedBufferVTStrict(dAtA []byte) ( return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.RemovedBlocks[iNdEx]) if err != nil { @@ -401,7 +401,7 @@ func (m *BlockchainUpdated_Rollback) MarshalToSizedBufferVTStrict(dAtA []byte) ( } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x1a @@ -411,13 +411,13 @@ func (m *BlockchainUpdated_Rollback) MarshalToSizedBufferVTStrict(dAtA []byte) ( for iNdEx := len(m.RemovedTransactionIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.RemovedTransactionIds[iNdEx]) copy(dAtA[i:], m.RemovedTransactionIds[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.RemovedTransactionIds[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RemovedTransactionIds[iNdEx]))) i-- dAtA[i] = 0x12 } } if m.Type != 0 { - i = encodeVarint(dAtA, i, uint64(m.Type)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) i-- dAtA[i] = 0x8 } @@ -461,7 +461,7 @@ func (m *BlockchainUpdated) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1 i-- @@ -483,14 +483,14 @@ func (m *BlockchainUpdated) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro i -= size } if m.Height != 0 { - i = encodeVarint(dAtA, i, uint64(m.Height)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Height)) i-- dAtA[i] = 0x10 } if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) - i = encodeVarint(dAtA, i, uint64(len(m.Id))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } @@ -510,7 +510,7 @@ func (m *BlockchainUpdated_Append_) MarshalToSizedBufferVTStrict(dAtA []byte) (i return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x5a } @@ -529,7 +529,7 @@ func (m *BlockchainUpdated_Rollback_) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x62 } @@ -566,7 +566,7 @@ func (m *StateUpdate_BalanceUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (i copy(dAtA[i:], m.unknownFields) } if m.AmountBefore != 0 { - i = encodeVarint(dAtA, i, uint64(m.AmountBefore)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AmountBefore)) i-- dAtA[i] = 0x18 } @@ -579,7 +579,7 @@ func (m *StateUpdate_BalanceUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (i return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.AmountAfter) if err != nil { @@ -587,7 +587,7 @@ func (m *StateUpdate_BalanceUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (i } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x12 @@ -595,7 +595,7 @@ func (m *StateUpdate_BalanceUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (i if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -633,29 +633,29 @@ func (m *StateUpdate_LeasingUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (i copy(dAtA[i:], m.unknownFields) } if m.OutBefore != 0 { - i = encodeVarint(dAtA, i, uint64(m.OutBefore)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OutBefore)) i-- dAtA[i] = 0x28 } if m.InBefore != 0 { - i = encodeVarint(dAtA, i, uint64(m.InBefore)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.InBefore)) i-- dAtA[i] = 0x20 } if m.OutAfter != 0 { - i = encodeVarint(dAtA, i, uint64(m.OutAfter)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OutAfter)) i-- dAtA[i] = 0x18 } if m.InAfter != 0 { - i = encodeVarint(dAtA, i, uint64(m.InAfter)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.InAfter)) i-- dAtA[i] = 0x10 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -695,38 +695,38 @@ func (m *StateUpdate_LeaseUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (int if len(m.OriginTransactionId) > 0 { i -= len(m.OriginTransactionId) copy(dAtA[i:], m.OriginTransactionId) - i = encodeVarint(dAtA, i, uint64(len(m.OriginTransactionId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OriginTransactionId))) i-- dAtA[i] = 0x6a } if len(m.Recipient) > 0 { i -= len(m.Recipient) copy(dAtA[i:], m.Recipient) - i = encodeVarint(dAtA, i, uint64(len(m.Recipient))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Recipient))) i-- dAtA[i] = 0x62 } if len(m.Sender) > 0 { i -= len(m.Sender) copy(dAtA[i:], m.Sender) - i = encodeVarint(dAtA, i, uint64(len(m.Sender))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Sender))) i-- dAtA[i] = 0x5a } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x50 } if m.StatusAfter != 0 { - i = encodeVarint(dAtA, i, uint64(m.StatusAfter)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.StatusAfter)) i-- dAtA[i] = 0x10 } if len(m.LeaseId) > 0 { i -= len(m.LeaseId) copy(dAtA[i:], m.LeaseId) - i = encodeVarint(dAtA, i, uint64(len(m.LeaseId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LeaseId))) i-- dAtA[i] = 0xa } @@ -772,7 +772,7 @@ func (m *StateUpdate_DataEntryUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.DataEntryBefore) if err != nil { @@ -780,7 +780,7 @@ func (m *StateUpdate_DataEntryUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x52 @@ -794,7 +794,7 @@ func (m *StateUpdate_DataEntryUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.DataEntry) if err != nil { @@ -802,7 +802,7 @@ func (m *StateUpdate_DataEntryUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x12 @@ -810,7 +810,7 @@ func (m *StateUpdate_DataEntryUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -853,7 +853,7 @@ func (m *StateUpdate_AssetStateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -863,7 +863,7 @@ func (m *StateUpdate_AssetStateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -901,14 +901,14 @@ func (m *StateUpdate_AssetDetails_AssetScriptInfo) MarshalToSizedBufferVTStrict( copy(dAtA[i:], m.unknownFields) } if m.Complexity != 0 { - i = encodeVarint(dAtA, i, uint64(m.Complexity)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Complexity)) i-- dAtA[i] = 0x10 } if len(m.Script) > 0 { i -= len(m.Script) copy(dAtA[i:], m.Script) - i = encodeVarint(dAtA, i, uint64(len(m.Script))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Script))) i-- dAtA[i] = 0xa } @@ -948,24 +948,24 @@ func (m *StateUpdate_AssetDetails) MarshalToSizedBufferVTStrict(dAtA []byte) (in if len(m.SafeVolume) > 0 { i -= len(m.SafeVolume) copy(dAtA[i:], m.SafeVolume) - i = encodeVarint(dAtA, i, uint64(len(m.SafeVolume))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SafeVolume))) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xa2 } if m.IssueHeight != 0 { - i = encodeVarint(dAtA, i, uint64(m.IssueHeight)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.IssueHeight)) i-- dAtA[i] = 0x68 } if m.SequenceInBlock != 0 { - i = encodeVarint(dAtA, i, uint64(m.SequenceInBlock)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SequenceInBlock)) i-- dAtA[i] = 0x60 } if m.LastUpdated != 0 { - i = encodeVarint(dAtA, i, uint64(m.LastUpdated)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LastUpdated)) i-- dAtA[i] = 0x58 } @@ -980,7 +980,7 @@ func (m *StateUpdate_AssetDetails) MarshalToSizedBufferVTStrict(dAtA []byte) (in dAtA[i] = 0x50 } if m.Sponsorship != 0 { - i = encodeVarint(dAtA, i, uint64(m.Sponsorship)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Sponsorship)) i-- dAtA[i] = 0x48 } @@ -990,12 +990,12 @@ func (m *StateUpdate_AssetDetails) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x42 } if m.Volume != 0 { - i = encodeVarint(dAtA, i, uint64(m.Volume)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Volume)) i-- dAtA[i] = 0x38 } @@ -1012,33 +1012,33 @@ func (m *StateUpdate_AssetDetails) MarshalToSizedBufferVTStrict(dAtA []byte) (in if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarint(dAtA, i, uint64(len(m.Description))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) i-- dAtA[i] = 0x2a } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x22 } if m.Decimals != 0 { - i = encodeVarint(dAtA, i, uint64(m.Decimals)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Decimals)) i-- dAtA[i] = 0x18 } if len(m.Issuer) > 0 { i -= len(m.Issuer) copy(dAtA[i:], m.Issuer) - i = encodeVarint(dAtA, i, uint64(len(m.Issuer))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Issuer))) i-- dAtA[i] = 0x12 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -1078,19 +1078,19 @@ func (m *StateUpdate_AssetInfo) MarshalToSizedBufferVTStrict(dAtA []byte) (int, if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x1a } if m.Decimals != 0 { - i = encodeVarint(dAtA, i, uint64(m.Decimals)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Decimals)) i-- dAtA[i] = 0x10 } if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) - i = encodeVarint(dAtA, i, uint64(len(m.Id))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } @@ -1130,21 +1130,21 @@ func (m *StateUpdate_ScriptUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (in if len(m.After) > 0 { i -= len(m.After) copy(dAtA[i:], m.After) - i = encodeVarint(dAtA, i, uint64(len(m.After))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.After))) i-- dAtA[i] = 0x1a } if len(m.Before) > 0 { i -= len(m.Before) copy(dAtA[i:], m.Before) - i = encodeVarint(dAtA, i, uint64(len(m.Before))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Before))) i-- dAtA[i] = 0x12 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -1185,7 +1185,7 @@ func (m *StateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { for iNdEx := len(m.DeletedAliases) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.DeletedAliases[iNdEx]) copy(dAtA[i:], m.DeletedAliases[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.DeletedAliases[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DeletedAliases[iNdEx]))) i-- dAtA[i] = 0x3a } @@ -1197,7 +1197,7 @@ func (m *StateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x32 } @@ -1209,7 +1209,7 @@ func (m *StateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } @@ -1221,7 +1221,7 @@ func (m *StateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } @@ -1233,7 +1233,7 @@ func (m *StateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -1245,7 +1245,7 @@ func (m *StateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -1257,7 +1257,7 @@ func (m *StateUpdate) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1298,7 +1298,7 @@ func (m *TransactionMetadata_TransferMetadata) MarshalToSizedBufferVTStrict(dAtA if len(m.RecipientAddress) > 0 { i -= len(m.RecipientAddress) copy(dAtA[i:], m.RecipientAddress) - i = encodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) i-- dAtA[i] = 0xa } @@ -1339,7 +1339,7 @@ func (m *TransactionMetadata_MassTransferMetadata) MarshalToSizedBufferVTStrict( for iNdEx := len(m.RecipientsAddresses) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.RecipientsAddresses[iNdEx]) copy(dAtA[i:], m.RecipientsAddresses[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.RecipientsAddresses[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientsAddresses[iNdEx]))) i-- dAtA[i] = 0xa } @@ -1381,7 +1381,7 @@ func (m *TransactionMetadata_ExchangeMetadata) MarshalToSizedBufferVTStrict(dAtA for iNdEx := len(m.OrderSenderPublicKeys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.OrderSenderPublicKeys[iNdEx]) copy(dAtA[i:], m.OrderSenderPublicKeys[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.OrderSenderPublicKeys[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderSenderPublicKeys[iNdEx]))) i-- dAtA[i] = 0x1a } @@ -1390,7 +1390,7 @@ func (m *TransactionMetadata_ExchangeMetadata) MarshalToSizedBufferVTStrict(dAtA for iNdEx := len(m.OrderSenderAddresses) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.OrderSenderAddresses[iNdEx]) copy(dAtA[i:], m.OrderSenderAddresses[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.OrderSenderAddresses[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderSenderAddresses[iNdEx]))) i-- dAtA[i] = 0x12 } @@ -1399,7 +1399,7 @@ func (m *TransactionMetadata_ExchangeMetadata) MarshalToSizedBufferVTStrict(dAtA for iNdEx := len(m.OrderIds) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.OrderIds[iNdEx]) copy(dAtA[i:], m.OrderIds[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.OrderIds[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderIds[iNdEx]))) i-- dAtA[i] = 0xa } @@ -1444,7 +1444,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_List) MarshalToSizedB return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1527,7 +1527,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_IntegerValue) Marshal func (m *TransactionMetadata_InvokeScriptMetadata_Argument_IntegerValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i := len(dAtA) - i = encodeVarint(dAtA, i, uint64(m.IntegerValue)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.IntegerValue)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil @@ -1541,7 +1541,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_BinaryValue) MarshalT i := len(dAtA) i -= len(m.BinaryValue) copy(dAtA[i:], m.BinaryValue) - i = encodeVarint(dAtA, i, uint64(len(m.BinaryValue))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.BinaryValue))) i-- dAtA[i] = 0x12 return len(dAtA) - i, nil @@ -1555,7 +1555,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_StringValue) MarshalT i := len(dAtA) i -= len(m.StringValue) copy(dAtA[i:], m.StringValue) - i = encodeVarint(dAtA, i, uint64(len(m.StringValue))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) i-- dAtA[i] = 0x1a return len(dAtA) - i, nil @@ -1590,7 +1590,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_List_) MarshalToSized return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x52 } @@ -1635,7 +1635,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) MarshalToSizedBufferVTStrict( return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.Result) if err != nil { @@ -1643,7 +1643,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) MarshalToSizedBufferVTStrict( } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x2a @@ -1658,7 +1658,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) MarshalToSizedBufferVTStrict( return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.Payments[iNdEx]) if err != nil { @@ -1666,7 +1666,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) MarshalToSizedBufferVTStrict( } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x22 @@ -1682,7 +1682,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) MarshalToSizedBufferVTStrict( return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.Arguments[iNdEx]) if err != nil { @@ -1690,7 +1690,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) MarshalToSizedBufferVTStrict( } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x1a @@ -1699,14 +1699,14 @@ func (m *TransactionMetadata_InvokeScriptMetadata) MarshalToSizedBufferVTStrict( if len(m.FunctionName) > 0 { i -= len(m.FunctionName) copy(dAtA[i:], m.FunctionName) - i = encodeVarint(dAtA, i, uint64(len(m.FunctionName))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FunctionName))) i-- dAtA[i] = 0x12 } if len(m.DAppAddress) > 0 { i -= len(m.DAppAddress) copy(dAtA[i:], m.DAppAddress) - i = encodeVarint(dAtA, i, uint64(len(m.DAppAddress))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DAppAddress))) i-- dAtA[i] = 0xa } @@ -1746,7 +1746,7 @@ func (m *TransactionMetadata_LeaseMetadata) MarshalToSizedBufferVTStrict(dAtA [] if len(m.RecipientAddress) > 0 { i -= len(m.RecipientAddress) copy(dAtA[i:], m.RecipientAddress) - i = encodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) i-- dAtA[i] = 0xa } @@ -1792,7 +1792,7 @@ func (m *TransactionMetadata_EthereumTransferMetadata) MarshalToSizedBufferVTStr return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.Amount) if err != nil { @@ -1800,7 +1800,7 @@ func (m *TransactionMetadata_EthereumTransferMetadata) MarshalToSizedBufferVTStr } i -= len(encoded) copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x12 @@ -1808,7 +1808,7 @@ func (m *TransactionMetadata_EthereumTransferMetadata) MarshalToSizedBufferVTStr if len(m.RecipientAddress) > 0 { i -= len(m.RecipientAddress) copy(dAtA[i:], m.RecipientAddress) - i = encodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) i-- dAtA[i] = 0xa } @@ -1862,17 +1862,17 @@ func (m *TransactionMetadata_EthereumMetadata) MarshalToSizedBufferVTStrict(dAtA if len(m.SenderPublicKey) > 0 { i -= len(m.SenderPublicKey) copy(dAtA[i:], m.SenderPublicKey) - i = encodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) i-- dAtA[i] = 0x22 } if m.Fee != 0 { - i = encodeVarint(dAtA, i, uint64(m.Fee)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Fee)) i-- dAtA[i] = 0x18 } if m.Timestamp != 0 { - i = encodeVarint(dAtA, i, uint64(m.Timestamp)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x10 } @@ -1892,7 +1892,7 @@ func (m *TransactionMetadata_EthereumMetadata_Transfer) MarshalToSizedBufferVTSt return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x52 } @@ -1911,7 +1911,7 @@ func (m *TransactionMetadata_EthereumMetadata_Invoke) MarshalToSizedBufferVTStri return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x5a } @@ -1992,7 +1992,7 @@ func (m *TransactionMetadata) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er if len(m.SenderAddress) > 0 { i -= len(m.SenderAddress) copy(dAtA[i:], m.SenderAddress) - i = encodeVarint(dAtA, i, uint64(len(m.SenderAddress))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SenderAddress))) i-- dAtA[i] = 0xa } @@ -2012,7 +2012,7 @@ func (m *TransactionMetadata_Transfer) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -2033,7 +2033,7 @@ func (m *TransactionMetadata_Exchange) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -2054,7 +2054,7 @@ func (m *TransactionMetadata_MassTransfer) MarshalToSizedBufferVTStrict(dAtA []b return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -2075,7 +2075,7 @@ func (m *TransactionMetadata_InvokeScript) MarshalToSizedBufferVTStrict(dAtA []b return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -2096,7 +2096,7 @@ func (m *TransactionMetadata_Lease) MarshalToSizedBufferVTStrict(dAtA []byte) (i return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -2117,7 +2117,7 @@ func (m *TransactionMetadata_Ethereum) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 i-- @@ -2125,17 +2125,6 @@ func (m *TransactionMetadata_Ethereum) MarshalToSizedBufferVTStrict(dAtA []byte) } return len(dAtA) - i, nil } -func encodeVarint(dAtA []byte, offset int, v uint64) int { - offset -= sov(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} func (m *BlockchainUpdated_Append_BlockAppend) SizeVT() (n int) { if m == nil { return 0 @@ -2150,21 +2139,21 @@ func (m *BlockchainUpdated_Append_BlockAppend) SizeVT() (n int) { } else { l = proto.Size(m.Block) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.UpdatedWavesAmount != 0 { - n += 1 + sov(uint64(m.UpdatedWavesAmount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.UpdatedWavesAmount)) } if len(m.ActivatedFeatures) > 0 { l = 0 for _, e := range m.ActivatedFeatures { - l += sov(uint64(e)) + l += protohelpers.SizeOfVarint(uint64(e)) } - n += 1 + sov(uint64(l)) + l + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l } l = len(m.Vrf) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.RewardShares) > 0 { for _, e := range m.RewardShares { @@ -2175,7 +2164,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) SizeVT() (n int) { } else { l = proto.Size(e) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2196,11 +2185,11 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) SizeVT() (n int) { } else { l = proto.Size(m.MicroBlock) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.UpdatedTransactionsRoot) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2218,23 +2207,23 @@ func (m *BlockchainUpdated_Append) SizeVT() (n int) { if len(m.TransactionIds) > 0 { for _, b := range m.TransactionIds { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.TransactionsMetadata) > 0 { for _, e := range m.TransactionsMetadata { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.StateUpdate != nil { l = m.StateUpdate.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.TransactionStateUpdates) > 0 { for _, e := range m.TransactionStateUpdates { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2249,7 +2238,7 @@ func (m *BlockchainUpdated_Append_Block) SizeVT() (n int) { _ = l if m.Block != nil { l = m.Block.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2261,7 +2250,7 @@ func (m *BlockchainUpdated_Append_MicroBlock) SizeVT() (n int) { _ = l if m.MicroBlock != nil { l = m.MicroBlock.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2272,12 +2261,12 @@ func (m *BlockchainUpdated_Rollback) SizeVT() (n int) { var l int _ = l if m.Type != 0 { - n += 1 + sov(uint64(m.Type)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Type)) } if len(m.RemovedTransactionIds) > 0 { for _, b := range m.RemovedTransactionIds { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.RemovedBlocks) > 0 { @@ -2289,19 +2278,19 @@ func (m *BlockchainUpdated_Rollback) SizeVT() (n int) { } else { l = proto.Size(e) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.RollbackStateUpdate != nil { l = m.RollbackStateUpdate.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.DeactivatedFeatures) > 0 { l = 0 for _, e := range m.DeactivatedFeatures { - l += sov(uint64(e)) + l += protohelpers.SizeOfVarint(uint64(e)) } - n += 1 + sov(uint64(l)) + l + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l } n += len(m.unknownFields) return n @@ -2315,10 +2304,10 @@ func (m *BlockchainUpdated) SizeVT() (n int) { _ = l l = len(m.Id) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Height != 0 { - n += 1 + sov(uint64(m.Height)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Height)) } if vtmsg, ok := m.Update.(interface{ SizeVT() int }); ok { n += vtmsg.SizeVT() @@ -2326,7 +2315,7 @@ func (m *BlockchainUpdated) SizeVT() (n int) { if len(m.ReferencedAssets) > 0 { for _, e := range m.ReferencedAssets { l = e.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2341,7 +2330,7 @@ func (m *BlockchainUpdated_Append_) SizeVT() (n int) { _ = l if m.Append != nil { l = m.Append.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2353,7 +2342,7 @@ func (m *BlockchainUpdated_Rollback_) SizeVT() (n int) { _ = l if m.Rollback != nil { l = m.Rollback.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2365,7 +2354,7 @@ func (m *StateUpdate_BalanceUpdate) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.AmountAfter != nil { if size, ok := interface{}(m.AmountAfter).(interface { @@ -2375,10 +2364,10 @@ func (m *StateUpdate_BalanceUpdate) SizeVT() (n int) { } else { l = proto.Size(m.AmountAfter) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.AmountBefore != 0 { - n += 1 + sov(uint64(m.AmountBefore)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.AmountBefore)) } n += len(m.unknownFields) return n @@ -2392,19 +2381,19 @@ func (m *StateUpdate_LeasingUpdate) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.InAfter != 0 { - n += 1 + sov(uint64(m.InAfter)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.InAfter)) } if m.OutAfter != 0 { - n += 1 + sov(uint64(m.OutAfter)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.OutAfter)) } if m.InBefore != 0 { - n += 1 + sov(uint64(m.InBefore)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.InBefore)) } if m.OutBefore != 0 { - n += 1 + sov(uint64(m.OutBefore)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.OutBefore)) } n += len(m.unknownFields) return n @@ -2418,25 +2407,25 @@ func (m *StateUpdate_LeaseUpdate) SizeVT() (n int) { _ = l l = len(m.LeaseId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.StatusAfter != 0 { - n += 1 + sov(uint64(m.StatusAfter)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.StatusAfter)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } l = len(m.Sender) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Recipient) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.OriginTransactionId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2450,7 +2439,7 @@ func (m *StateUpdate_DataEntryUpdate) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.DataEntry != nil { if size, ok := interface{}(m.DataEntry).(interface { @@ -2460,7 +2449,7 @@ func (m *StateUpdate_DataEntryUpdate) SizeVT() (n int) { } else { l = proto.Size(m.DataEntry) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.DataEntryBefore != nil { if size, ok := interface{}(m.DataEntryBefore).(interface { @@ -2470,7 +2459,7 @@ func (m *StateUpdate_DataEntryUpdate) SizeVT() (n int) { } else { l = proto.Size(m.DataEntryBefore) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2484,11 +2473,11 @@ func (m *StateUpdate_AssetStateUpdate) SizeVT() (n int) { _ = l if m.Before != nil { l = m.Before.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.After != nil { l = m.After.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2502,10 +2491,10 @@ func (m *StateUpdate_AssetDetails_AssetScriptInfo) SizeVT() (n int) { _ = l l = len(m.Script) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Complexity != 0 { - n += 1 + sov(uint64(m.Complexity)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Complexity)) } n += len(m.unknownFields) return n @@ -2519,51 +2508,51 @@ func (m *StateUpdate_AssetDetails) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Issuer) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Decimals != 0 { - n += 1 + sov(uint64(m.Decimals)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Decimals)) } l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Reissuable { n += 2 } if m.Volume != 0 { - n += 1 + sov(uint64(m.Volume)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Volume)) } if m.ScriptInfo != nil { l = m.ScriptInfo.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Sponsorship != 0 { - n += 1 + sov(uint64(m.Sponsorship)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Sponsorship)) } if m.Nft { n += 2 } if m.LastUpdated != 0 { - n += 1 + sov(uint64(m.LastUpdated)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.LastUpdated)) } if m.SequenceInBlock != 0 { - n += 1 + sov(uint64(m.SequenceInBlock)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.SequenceInBlock)) } if m.IssueHeight != 0 { - n += 1 + sov(uint64(m.IssueHeight)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.IssueHeight)) } l = len(m.SafeVolume) if l > 0 { - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2577,14 +2566,14 @@ func (m *StateUpdate_AssetInfo) SizeVT() (n int) { _ = l l = len(m.Id) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Decimals != 0 { - n += 1 + sov(uint64(m.Decimals)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Decimals)) } l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2598,15 +2587,15 @@ func (m *StateUpdate_ScriptUpdate) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Before) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.After) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2621,43 +2610,43 @@ func (m *StateUpdate) SizeVT() (n int) { if len(m.Balances) > 0 { for _, e := range m.Balances { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.LeasingForAddress) > 0 { for _, e := range m.LeasingForAddress { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.DataEntries) > 0 { for _, e := range m.DataEntries { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Assets) > 0 { for _, e := range m.Assets { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.IndividualLeases) > 0 { for _, e := range m.IndividualLeases { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Scripts) > 0 { for _, e := range m.Scripts { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.DeletedAliases) > 0 { for _, s := range m.DeletedAliases { l = len(s) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2672,7 +2661,7 @@ func (m *TransactionMetadata_TransferMetadata) SizeVT() (n int) { _ = l l = len(m.RecipientAddress) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2687,7 +2676,7 @@ func (m *TransactionMetadata_MassTransferMetadata) SizeVT() (n int) { if len(m.RecipientsAddresses) > 0 { for _, b := range m.RecipientsAddresses { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2703,19 +2692,19 @@ func (m *TransactionMetadata_ExchangeMetadata) SizeVT() (n int) { if len(m.OrderIds) > 0 { for _, b := range m.OrderIds { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.OrderSenderAddresses) > 0 { for _, b := range m.OrderSenderAddresses { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.OrderSenderPublicKeys) > 0 { for _, b := range m.OrderSenderPublicKeys { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2731,7 +2720,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_List) SizeVT() (n int if len(m.Items) > 0 { for _, e := range m.Items { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2757,7 +2746,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_IntegerValue) SizeVT( } var l int _ = l - n += 1 + sov(uint64(m.IntegerValue)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.IntegerValue)) return n } func (m *TransactionMetadata_InvokeScriptMetadata_Argument_BinaryValue) SizeVT() (n int) { @@ -2767,7 +2756,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_BinaryValue) SizeVT() var l int _ = l l = len(m.BinaryValue) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *TransactionMetadata_InvokeScriptMetadata_Argument_StringValue) SizeVT() (n int) { @@ -2777,7 +2766,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_StringValue) SizeVT() var l int _ = l l = len(m.StringValue) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *TransactionMetadata_InvokeScriptMetadata_Argument_BooleanValue) SizeVT() (n int) { @@ -2797,7 +2786,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_List_) SizeVT() (n in _ = l if m.List != nil { l = m.List.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2809,11 +2798,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata) SizeVT() (n int) { _ = l l = len(m.DAppAddress) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.FunctionName) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Arguments) > 0 { for _, e := range m.Arguments { @@ -2824,7 +2813,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) SizeVT() (n int) { } else { l = proto.Size(e) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Payments) > 0 { @@ -2836,7 +2825,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) SizeVT() (n int) { } else { l = proto.Size(e) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.Result != nil { @@ -2847,7 +2836,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) SizeVT() (n int) { } else { l = proto.Size(m.Result) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2861,7 +2850,7 @@ func (m *TransactionMetadata_LeaseMetadata) SizeVT() (n int) { _ = l l = len(m.RecipientAddress) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2875,7 +2864,7 @@ func (m *TransactionMetadata_EthereumTransferMetadata) SizeVT() (n int) { _ = l l = len(m.RecipientAddress) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != nil { if size, ok := interface{}(m.Amount).(interface { @@ -2885,7 +2874,7 @@ func (m *TransactionMetadata_EthereumTransferMetadata) SizeVT() (n int) { } else { l = proto.Size(m.Amount) } - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2898,14 +2887,14 @@ func (m *TransactionMetadata_EthereumMetadata) SizeVT() (n int) { var l int _ = l if m.Timestamp != 0 { - n += 1 + sov(uint64(m.Timestamp)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) } if m.Fee != 0 { - n += 1 + sov(uint64(m.Fee)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Fee)) } l = len(m.SenderPublicKey) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if vtmsg, ok := m.Action.(interface{ SizeVT() int }); ok { n += vtmsg.SizeVT() @@ -2922,7 +2911,7 @@ func (m *TransactionMetadata_EthereumMetadata_Transfer) SizeVT() (n int) { _ = l if m.Transfer != nil { l = m.Transfer.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2934,7 +2923,7 @@ func (m *TransactionMetadata_EthereumMetadata_Invoke) SizeVT() (n int) { _ = l if m.Invoke != nil { l = m.Invoke.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2946,7 +2935,7 @@ func (m *TransactionMetadata) SizeVT() (n int) { _ = l l = len(m.SenderAddress) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if vtmsg, ok := m.Metadata.(interface{ SizeVT() int }); ok { n += vtmsg.SizeVT() @@ -2963,7 +2952,7 @@ func (m *TransactionMetadata_Transfer) SizeVT() (n int) { _ = l if m.Transfer != nil { l = m.Transfer.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2975,7 +2964,7 @@ func (m *TransactionMetadata_Exchange) SizeVT() (n int) { _ = l if m.Exchange != nil { l = m.Exchange.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2987,7 +2976,7 @@ func (m *TransactionMetadata_MassTransfer) SizeVT() (n int) { _ = l if m.MassTransfer != nil { l = m.MassTransfer.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2999,7 +2988,7 @@ func (m *TransactionMetadata_InvokeScript) SizeVT() (n int) { _ = l if m.InvokeScript != nil { l = m.InvokeScript.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -3011,7 +3000,7 @@ func (m *TransactionMetadata_Lease) SizeVT() (n int) { _ = l if m.Lease != nil { l = m.Lease.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -3023,17 +3012,10 @@ func (m *TransactionMetadata_Ethereum) SizeVT() (n int) { _ = l if m.Ethereum != nil { l = m.Ethereum.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } - -func sov(x uint64) (n int) { - return (bits.Len64(x|1) + 6) / 7 -} -func soz(x uint64) (n int) { - return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3042,7 +3024,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3070,7 +3052,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3083,11 +3065,11 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3114,7 +3096,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { m.UpdatedWavesAmount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3131,7 +3113,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { var v int32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3148,7 +3130,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3161,11 +3143,11 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3185,7 +3167,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { var v int32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3209,7 +3191,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3222,11 +3204,11 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3243,7 +3225,7 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3256,11 +3238,11 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3280,12 +3262,12 @@ func (m *BlockchainUpdated_Append_BlockAppend) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3308,7 +3290,7 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) UnmarshalVT(dAtA []byte) err var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3336,7 +3318,7 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) UnmarshalVT(dAtA []byte) err var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3349,11 +3331,11 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) UnmarshalVT(dAtA []byte) err } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3380,7 +3362,7 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) UnmarshalVT(dAtA []byte) err var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3393,11 +3375,11 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) UnmarshalVT(dAtA []byte) err } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3409,12 +3391,12 @@ func (m *BlockchainUpdated_Append_MicroBlockAppend) UnmarshalVT(dAtA []byte) err iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3437,7 +3419,7 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3465,7 +3447,7 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3478,11 +3460,11 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3506,7 +3488,7 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3519,11 +3501,11 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3547,7 +3529,7 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3560,11 +3542,11 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3579,7 +3561,7 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3592,11 +3574,11 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3613,7 +3595,7 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3626,11 +3608,11 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3649,7 +3631,7 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3662,11 +3644,11 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3678,12 +3660,12 @@ func (m *BlockchainUpdated_Append) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3706,7 +3688,7 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3734,7 +3716,7 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { m.Type = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3753,7 +3735,7 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3766,11 +3748,11 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3785,7 +3767,7 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3798,11 +3780,11 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3827,7 +3809,7 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3840,11 +3822,11 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3861,7 +3843,7 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { var v int32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3878,7 +3860,7 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3891,11 +3873,11 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3915,7 +3897,7 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { var v int32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3934,12 +3916,12 @@ func (m *BlockchainUpdated_Rollback) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3962,7 +3944,7 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3990,7 +3972,7 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4003,11 +3985,11 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4024,7 +4006,7 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4043,7 +4025,7 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4056,11 +4038,11 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4084,7 +4066,7 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4097,11 +4079,11 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4125,7 +4107,7 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4138,11 +4120,11 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4154,12 +4136,12 @@ func (m *BlockchainUpdated) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4182,7 +4164,7 @@ func (m *StateUpdate_BalanceUpdate) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4210,7 +4192,7 @@ func (m *StateUpdate_BalanceUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4223,11 +4205,11 @@ func (m *StateUpdate_BalanceUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4244,7 +4226,7 @@ func (m *StateUpdate_BalanceUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4257,11 +4239,11 @@ func (m *StateUpdate_BalanceUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4288,7 +4270,7 @@ func (m *StateUpdate_BalanceUpdate) UnmarshalVT(dAtA []byte) error { m.AmountBefore = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4302,12 +4284,12 @@ func (m *StateUpdate_BalanceUpdate) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4330,7 +4312,7 @@ func (m *StateUpdate_LeasingUpdate) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4358,7 +4340,7 @@ func (m *StateUpdate_LeasingUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4371,11 +4353,11 @@ func (m *StateUpdate_LeasingUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4392,7 +4374,7 @@ func (m *StateUpdate_LeasingUpdate) UnmarshalVT(dAtA []byte) error { m.InAfter = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4411,7 +4393,7 @@ func (m *StateUpdate_LeasingUpdate) UnmarshalVT(dAtA []byte) error { m.OutAfter = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4430,7 +4412,7 @@ func (m *StateUpdate_LeasingUpdate) UnmarshalVT(dAtA []byte) error { m.InBefore = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4449,7 +4431,7 @@ func (m *StateUpdate_LeasingUpdate) UnmarshalVT(dAtA []byte) error { m.OutBefore = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4463,12 +4445,12 @@ func (m *StateUpdate_LeasingUpdate) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4491,7 +4473,7 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4519,7 +4501,7 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4532,11 +4514,11 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4553,7 +4535,7 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { m.StatusAfter = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4572,7 +4554,7 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4591,7 +4573,7 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4604,11 +4586,11 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4625,7 +4607,7 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4638,11 +4620,11 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4659,7 +4641,7 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4672,11 +4654,11 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4688,12 +4670,12 @@ func (m *StateUpdate_LeaseUpdate) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4716,7 +4698,7 @@ func (m *StateUpdate_DataEntryUpdate) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4744,7 +4726,7 @@ func (m *StateUpdate_DataEntryUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4757,11 +4739,11 @@ func (m *StateUpdate_DataEntryUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4778,7 +4760,7 @@ func (m *StateUpdate_DataEntryUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4791,11 +4773,11 @@ func (m *StateUpdate_DataEntryUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4822,7 +4804,7 @@ func (m *StateUpdate_DataEntryUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4835,11 +4817,11 @@ func (m *StateUpdate_DataEntryUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4861,12 +4843,12 @@ func (m *StateUpdate_DataEntryUpdate) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4889,7 +4871,7 @@ func (m *StateUpdate_AssetStateUpdate) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4917,7 +4899,7 @@ func (m *StateUpdate_AssetStateUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4930,11 +4912,11 @@ func (m *StateUpdate_AssetStateUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4953,7 +4935,7 @@ func (m *StateUpdate_AssetStateUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4966,11 +4948,11 @@ func (m *StateUpdate_AssetStateUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4984,12 +4966,12 @@ func (m *StateUpdate_AssetStateUpdate) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5012,7 +4994,7 @@ func (m *StateUpdate_AssetDetails_AssetScriptInfo) UnmarshalVT(dAtA []byte) erro var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5040,7 +5022,7 @@ func (m *StateUpdate_AssetDetails_AssetScriptInfo) UnmarshalVT(dAtA []byte) erro var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5053,11 +5035,11 @@ func (m *StateUpdate_AssetDetails_AssetScriptInfo) UnmarshalVT(dAtA []byte) erro } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5074,7 +5056,7 @@ func (m *StateUpdate_AssetDetails_AssetScriptInfo) UnmarshalVT(dAtA []byte) erro m.Complexity = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5088,12 +5070,12 @@ func (m *StateUpdate_AssetDetails_AssetScriptInfo) UnmarshalVT(dAtA []byte) erro } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5116,7 +5098,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5144,7 +5126,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5157,11 +5139,11 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5178,7 +5160,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5191,11 +5173,11 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5212,7 +5194,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { m.Decimals = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5231,7 +5213,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5245,11 +5227,11 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5263,7 +5245,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5277,11 +5259,11 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5295,7 +5277,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5315,7 +5297,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { m.Volume = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5334,7 +5316,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5347,11 +5329,11 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5370,7 +5352,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { m.Sponsorship = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5389,7 +5371,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5409,7 +5391,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { m.LastUpdated = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5428,7 +5410,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { m.SequenceInBlock = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5447,7 +5429,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { m.IssueHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5466,7 +5448,7 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5479,11 +5461,11 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5495,12 +5477,12 @@ func (m *StateUpdate_AssetDetails) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5523,7 +5505,7 @@ func (m *StateUpdate_AssetInfo) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5551,7 +5533,7 @@ func (m *StateUpdate_AssetInfo) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5564,11 +5546,11 @@ func (m *StateUpdate_AssetInfo) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5585,7 +5567,7 @@ func (m *StateUpdate_AssetInfo) UnmarshalVT(dAtA []byte) error { m.Decimals = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5604,7 +5586,7 @@ func (m *StateUpdate_AssetInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5618,11 +5600,11 @@ func (m *StateUpdate_AssetInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5631,12 +5613,12 @@ func (m *StateUpdate_AssetInfo) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5659,7 +5641,7 @@ func (m *StateUpdate_ScriptUpdate) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5687,7 +5669,7 @@ func (m *StateUpdate_ScriptUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5700,11 +5682,11 @@ func (m *StateUpdate_ScriptUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5721,7 +5703,7 @@ func (m *StateUpdate_ScriptUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5734,11 +5716,11 @@ func (m *StateUpdate_ScriptUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5755,7 +5737,7 @@ func (m *StateUpdate_ScriptUpdate) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5768,11 +5750,11 @@ func (m *StateUpdate_ScriptUpdate) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5784,12 +5766,12 @@ func (m *StateUpdate_ScriptUpdate) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5812,7 +5794,7 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5840,7 +5822,7 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5853,11 +5835,11 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5874,7 +5856,7 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5887,11 +5869,11 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5908,7 +5890,7 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5921,11 +5903,11 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5942,7 +5924,7 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5955,11 +5937,11 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5976,7 +5958,7 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5989,11 +5971,11 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6010,7 +5992,7 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6023,11 +6005,11 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6044,7 +6026,7 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6058,11 +6040,11 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6071,12 +6053,12 @@ func (m *StateUpdate) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6099,7 +6081,7 @@ func (m *TransactionMetadata_TransferMetadata) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6127,7 +6109,7 @@ func (m *TransactionMetadata_TransferMetadata) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6140,11 +6122,11 @@ func (m *TransactionMetadata_TransferMetadata) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6156,12 +6138,12 @@ func (m *TransactionMetadata_TransferMetadata) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6184,7 +6166,7 @@ func (m *TransactionMetadata_MassTransferMetadata) UnmarshalVT(dAtA []byte) erro var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6212,7 +6194,7 @@ func (m *TransactionMetadata_MassTransferMetadata) UnmarshalVT(dAtA []byte) erro var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6225,11 +6207,11 @@ func (m *TransactionMetadata_MassTransferMetadata) UnmarshalVT(dAtA []byte) erro } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6239,12 +6221,12 @@ func (m *TransactionMetadata_MassTransferMetadata) UnmarshalVT(dAtA []byte) erro iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6267,7 +6249,7 @@ func (m *TransactionMetadata_ExchangeMetadata) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6295,7 +6277,7 @@ func (m *TransactionMetadata_ExchangeMetadata) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6308,11 +6290,11 @@ func (m *TransactionMetadata_ExchangeMetadata) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6327,7 +6309,7 @@ func (m *TransactionMetadata_ExchangeMetadata) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6340,11 +6322,11 @@ func (m *TransactionMetadata_ExchangeMetadata) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6359,7 +6341,7 @@ func (m *TransactionMetadata_ExchangeMetadata) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6372,11 +6354,11 @@ func (m *TransactionMetadata_ExchangeMetadata) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6386,12 +6368,12 @@ func (m *TransactionMetadata_ExchangeMetadata) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6414,7 +6396,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_List) UnmarshalVT(dAt var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6442,7 +6424,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_List) UnmarshalVT(dAt var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6455,11 +6437,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_List) UnmarshalVT(dAt } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6471,12 +6453,12 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument_List) UnmarshalVT(dAt iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6499,7 +6481,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6527,7 +6509,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6547,7 +6529,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6560,11 +6542,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6580,7 +6562,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6594,11 +6576,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6612,7 +6594,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6633,7 +6615,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6646,11 +6628,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6669,12 +6651,12 @@ func (m *TransactionMetadata_InvokeScriptMetadata_Argument) UnmarshalVT(dAtA []b iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6697,7 +6679,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6725,7 +6707,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6738,11 +6720,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6759,7 +6741,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6773,11 +6755,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6791,7 +6773,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6804,11 +6786,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6833,7 +6815,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6846,11 +6828,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6875,7 +6857,7 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6888,11 +6870,11 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6914,12 +6896,12 @@ func (m *TransactionMetadata_InvokeScriptMetadata) UnmarshalVT(dAtA []byte) erro iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6942,7 +6924,7 @@ func (m *TransactionMetadata_LeaseMetadata) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6970,7 +6952,7 @@ func (m *TransactionMetadata_LeaseMetadata) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6983,11 +6965,11 @@ func (m *TransactionMetadata_LeaseMetadata) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6999,12 +6981,12 @@ func (m *TransactionMetadata_LeaseMetadata) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -7027,7 +7009,7 @@ func (m *TransactionMetadata_EthereumTransferMetadata) UnmarshalVT(dAtA []byte) var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7055,7 +7037,7 @@ func (m *TransactionMetadata_EthereumTransferMetadata) UnmarshalVT(dAtA []byte) var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7068,11 +7050,11 @@ func (m *TransactionMetadata_EthereumTransferMetadata) UnmarshalVT(dAtA []byte) } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7089,7 +7071,7 @@ func (m *TransactionMetadata_EthereumTransferMetadata) UnmarshalVT(dAtA []byte) var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7102,11 +7084,11 @@ func (m *TransactionMetadata_EthereumTransferMetadata) UnmarshalVT(dAtA []byte) } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7128,12 +7110,12 @@ func (m *TransactionMetadata_EthereumTransferMetadata) UnmarshalVT(dAtA []byte) iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -7156,7 +7138,7 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7184,7 +7166,7 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7203,7 +7185,7 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { m.Fee = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7222,7 +7204,7 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7235,11 +7217,11 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7256,7 +7238,7 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7269,11 +7251,11 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7297,7 +7279,7 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7310,11 +7292,11 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7333,12 +7315,12 @@ func (m *TransactionMetadata_EthereumMetadata) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -7361,7 +7343,7 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7389,7 +7371,7 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7402,11 +7384,11 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7423,7 +7405,7 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7436,11 +7418,11 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7464,7 +7446,7 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7477,11 +7459,11 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7505,7 +7487,7 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7518,11 +7500,11 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7546,7 +7528,7 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7559,11 +7541,11 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7587,7 +7569,7 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7600,11 +7582,11 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7628,7 +7610,7 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -7641,11 +7623,11 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -7664,12 +7646,12 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -7684,88 +7666,3 @@ func (m *TransactionMetadata) UnmarshalVT(dAtA []byte) error { } return nil } - -func skip(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLength - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroup - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLength - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/grpc/generated/waves/events/grpc/blockchain_updates.pb.go b/pkg/grpc/generated/waves/events/grpc/blockchain_updates.pb.go index ea86ca77e..f1d657ca6 100644 --- a/pkg/grpc/generated/waves/events/grpc/blockchain_updates.pb.go +++ b/pkg/grpc/generated/waves/events/grpc/blockchain_updates.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/events/grpc/blockchain_updates.proto package grpc @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,20 +23,17 @@ const ( ) type GetBlockUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` unknownFields protoimpl.UnknownFields - - Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetBlockUpdateRequest) Reset() { *x = GetBlockUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetBlockUpdateRequest) String() string { @@ -46,7 +44,7 @@ func (*GetBlockUpdateRequest) ProtoMessage() {} func (x *GetBlockUpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -69,20 +67,17 @@ func (x *GetBlockUpdateRequest) GetHeight() int32 { } type GetBlockUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Update *events.BlockchainUpdated `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"` unknownFields protoimpl.UnknownFields - - Update *events.BlockchainUpdated `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetBlockUpdateResponse) Reset() { *x = GetBlockUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetBlockUpdateResponse) String() string { @@ -93,7 +88,7 @@ func (*GetBlockUpdateResponse) ProtoMessage() {} func (x *GetBlockUpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -116,22 +111,19 @@ func (x *GetBlockUpdateResponse) GetUpdate() *events.BlockchainUpdated { } type GetBlockUpdatesRangeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // both required, inclusive - FromHeight int32 `protobuf:"varint,1,opt,name=from_height,json=fromHeight,proto3" json:"from_height,omitempty"` - ToHeight int32 `protobuf:"varint,2,opt,name=to_height,json=toHeight,proto3" json:"to_height,omitempty"` + FromHeight int32 `protobuf:"varint,1,opt,name=from_height,json=fromHeight,proto3" json:"from_height,omitempty"` + ToHeight int32 `protobuf:"varint,2,opt,name=to_height,json=toHeight,proto3" json:"to_height,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetBlockUpdatesRangeRequest) Reset() { *x = GetBlockUpdatesRangeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetBlockUpdatesRangeRequest) String() string { @@ -142,7 +134,7 @@ func (*GetBlockUpdatesRangeRequest) ProtoMessage() {} func (x *GetBlockUpdatesRangeRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -172,20 +164,17 @@ func (x *GetBlockUpdatesRangeRequest) GetToHeight() int32 { } type GetBlockUpdatesRangeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Updates []*events.BlockchainUpdated `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` unknownFields protoimpl.UnknownFields - - Updates []*events.BlockchainUpdated `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetBlockUpdatesRangeResponse) Reset() { *x = GetBlockUpdatesRangeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetBlockUpdatesRangeResponse) String() string { @@ -196,7 +185,7 @@ func (*GetBlockUpdatesRangeResponse) ProtoMessage() {} func (x *GetBlockUpdatesRangeResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -219,23 +208,20 @@ func (x *GetBlockUpdatesRangeResponse) GetUpdates() []*events.BlockchainUpdated } type SubscribeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Optional. Default: start at the genesis, height 1. FromHeight int32 `protobuf:"varint,1,opt,name=from_height,json=fromHeight,proto3" json:"from_height,omitempty"` // Optional. Default: stream historical, then switch to current events. - ToHeight int32 `protobuf:"varint,2,opt,name=to_height,json=toHeight,proto3" json:"to_height,omitempty"` + ToHeight int32 `protobuf:"varint,2,opt,name=to_height,json=toHeight,proto3" json:"to_height,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubscribeRequest) Reset() { *x = SubscribeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubscribeRequest) String() string { @@ -246,7 +232,7 @@ func (*SubscribeRequest) ProtoMessage() {} func (x *SubscribeRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -276,20 +262,17 @@ func (x *SubscribeRequest) GetToHeight() int32 { } type SubscribeEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Update *events.BlockchainUpdated `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"` unknownFields protoimpl.UnknownFields - - Update *events.BlockchainUpdated `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SubscribeEvent) Reset() { *x = SubscribeEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubscribeEvent) String() string { @@ -300,7 +283,7 @@ func (*SubscribeEvent) ProtoMessage() {} func (x *SubscribeEvent) ProtoReflect() protoreflect.Message { mi := &file_waves_events_grpc_blockchain_updates_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -324,89 +307,45 @@ func (x *SubscribeEvent) GetUpdate() *events.BlockchainUpdated { var File_waves_events_grpc_blockchain_updates_proto protoreflect.FileDescriptor -var file_waves_events_grpc_blockchain_updates_proto_rawDesc = []byte{ - 0x0a, 0x2a, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x67, - 0x72, 0x70, 0x63, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x1a, - 0x19, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2f, 0x0a, 0x15, 0x47, 0x65, - 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x51, 0x0a, 0x16, 0x47, - 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x22, 0x5b, - 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x73, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, - 0x0b, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1b, - 0x0a, 0x09, 0x74, 0x6f, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x08, 0x74, 0x6f, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x59, 0x0a, 0x1c, 0x47, - 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x61, - 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x07, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x22, 0x50, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x72, - 0x6f, 0x6d, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, - 0x6f, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, - 0x74, 0x6f, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x49, 0x0a, 0x0e, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x06, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x32, 0xcd, 0x02, 0x0a, 0x14, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x41, 0x70, 0x69, 0x12, 0x65, 0x0a, 0x0e, - 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x28, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2e, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, - 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, - 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x09, - 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x23, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x30, 0x01, 0x42, 0x87, 0x01, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0xaa, 0x02, 0x11, 0x57, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_events_grpc_blockchain_updates_proto_rawDesc = "" + + "\n" + + "*waves/events/grpc/blockchain_updates.proto\x12\x11waves.events.grpc\x1a\x19waves/events/events.proto\"/\n" + + "\x15GetBlockUpdateRequest\x12\x16\n" + + "\x06height\x18\x01 \x01(\x05R\x06height\"Q\n" + + "\x16GetBlockUpdateResponse\x127\n" + + "\x06update\x18\x01 \x01(\v2\x1f.waves.events.BlockchainUpdatedR\x06update\"[\n" + + "\x1bGetBlockUpdatesRangeRequest\x12\x1f\n" + + "\vfrom_height\x18\x01 \x01(\x05R\n" + + "fromHeight\x12\x1b\n" + + "\tto_height\x18\x02 \x01(\x05R\btoHeight\"Y\n" + + "\x1cGetBlockUpdatesRangeResponse\x129\n" + + "\aupdates\x18\x01 \x03(\v2\x1f.waves.events.BlockchainUpdatedR\aupdates\"P\n" + + "\x10SubscribeRequest\x12\x1f\n" + + "\vfrom_height\x18\x01 \x01(\x05R\n" + + "fromHeight\x12\x1b\n" + + "\tto_height\x18\x02 \x01(\x05R\btoHeight\"I\n" + + "\x0eSubscribeEvent\x127\n" + + "\x06update\x18\x01 \x01(\v2\x1f.waves.events.BlockchainUpdatedR\x06update2\xcd\x02\n" + + "\x14BlockchainUpdatesApi\x12e\n" + + "\x0eGetBlockUpdate\x12(.waves.events.grpc.GetBlockUpdateRequest\x1a).waves.events.grpc.GetBlockUpdateResponse\x12w\n" + + "\x14GetBlockUpdatesRange\x12..waves.events.grpc.GetBlockUpdatesRangeRequest\x1a/.waves.events.grpc.GetBlockUpdatesRangeResponse\x12U\n" + + "\tSubscribe\x12#.waves.events.grpc.SubscribeRequest\x1a!.waves.events.grpc.SubscribeEvent0\x01B\x87\x01\n" + + "*com.wavesplatform.events.api.grpc.protobufZEgithub.com/wavesplatform/gowaves/pkg/grpc/generated/waves/events/grpc\xaa\x02\x11Waves.Events.Grpcb\x06proto3" var ( file_waves_events_grpc_blockchain_updates_proto_rawDescOnce sync.Once - file_waves_events_grpc_blockchain_updates_proto_rawDescData = file_waves_events_grpc_blockchain_updates_proto_rawDesc + file_waves_events_grpc_blockchain_updates_proto_rawDescData []byte ) func file_waves_events_grpc_blockchain_updates_proto_rawDescGZIP() []byte { file_waves_events_grpc_blockchain_updates_proto_rawDescOnce.Do(func() { - file_waves_events_grpc_blockchain_updates_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_events_grpc_blockchain_updates_proto_rawDescData) + file_waves_events_grpc_blockchain_updates_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_events_grpc_blockchain_updates_proto_rawDesc), len(file_waves_events_grpc_blockchain_updates_proto_rawDesc))) }) return file_waves_events_grpc_blockchain_updates_proto_rawDescData } var file_waves_events_grpc_blockchain_updates_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_waves_events_grpc_blockchain_updates_proto_goTypes = []interface{}{ +var file_waves_events_grpc_blockchain_updates_proto_goTypes = []any{ (*GetBlockUpdateRequest)(nil), // 0: waves.events.grpc.GetBlockUpdateRequest (*GetBlockUpdateResponse)(nil), // 1: waves.events.grpc.GetBlockUpdateResponse (*GetBlockUpdatesRangeRequest)(nil), // 2: waves.events.grpc.GetBlockUpdatesRangeRequest @@ -437,85 +376,11 @@ func file_waves_events_grpc_blockchain_updates_proto_init() { if File_waves_events_grpc_blockchain_updates_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_events_grpc_blockchain_updates_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBlockUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_grpc_blockchain_updates_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBlockUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_grpc_blockchain_updates_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBlockUpdatesRangeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_grpc_blockchain_updates_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBlockUpdatesRangeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_grpc_blockchain_updates_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubscribeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_events_grpc_blockchain_updates_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubscribeEvent); 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_waves_events_grpc_blockchain_updates_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_events_grpc_blockchain_updates_proto_rawDesc), len(file_waves_events_grpc_blockchain_updates_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, @@ -526,7 +391,6 @@ func file_waves_events_grpc_blockchain_updates_proto_init() { MessageInfos: file_waves_events_grpc_blockchain_updates_proto_msgTypes, }.Build() File_waves_events_grpc_blockchain_updates_proto = out.File - file_waves_events_grpc_blockchain_updates_proto_rawDesc = nil file_waves_events_grpc_blockchain_updates_proto_goTypes = nil file_waves_events_grpc_blockchain_updates_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/events/grpc/blockchain_updates_grpc.pb.go b/pkg/grpc/generated/waves/events/grpc/blockchain_updates_grpc.pb.go index a05bcf071..6d5e10be2 100644 --- a/pkg/grpc/generated/waves/events/grpc/blockchain_updates_grpc.pb.go +++ b/pkg/grpc/generated/waves/events/grpc/blockchain_updates_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.0 // source: waves/events/grpc/blockchain_updates.proto package grpc @@ -15,8 +15,14 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + BlockchainUpdatesApi_GetBlockUpdate_FullMethodName = "/waves.events.grpc.BlockchainUpdatesApi/GetBlockUpdate" + BlockchainUpdatesApi_GetBlockUpdatesRange_FullMethodName = "/waves.events.grpc.BlockchainUpdatesApi/GetBlockUpdatesRange" + BlockchainUpdatesApi_Subscribe_FullMethodName = "/waves.events.grpc.BlockchainUpdatesApi/Subscribe" +) // BlockchainUpdatesApiClient is the client API for BlockchainUpdatesApi service. // @@ -24,7 +30,7 @@ const _ = grpc.SupportPackageIsVersion7 type BlockchainUpdatesApiClient interface { GetBlockUpdate(ctx context.Context, in *GetBlockUpdateRequest, opts ...grpc.CallOption) (*GetBlockUpdateResponse, error) GetBlockUpdatesRange(ctx context.Context, in *GetBlockUpdatesRangeRequest, opts ...grpc.CallOption) (*GetBlockUpdatesRangeResponse, error) - Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (BlockchainUpdatesApi_SubscribeClient, error) + Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SubscribeEvent], error) } type blockchainUpdatesApiClient struct { @@ -36,8 +42,9 @@ func NewBlockchainUpdatesApiClient(cc grpc.ClientConnInterface) BlockchainUpdate } func (c *blockchainUpdatesApiClient) GetBlockUpdate(ctx context.Context, in *GetBlockUpdateRequest, opts ...grpc.CallOption) (*GetBlockUpdateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetBlockUpdateResponse) - err := c.cc.Invoke(ctx, "/waves.events.grpc.BlockchainUpdatesApi/GetBlockUpdate", in, out, opts...) + err := c.cc.Invoke(ctx, BlockchainUpdatesApi_GetBlockUpdate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -45,20 +52,22 @@ func (c *blockchainUpdatesApiClient) GetBlockUpdate(ctx context.Context, in *Get } func (c *blockchainUpdatesApiClient) GetBlockUpdatesRange(ctx context.Context, in *GetBlockUpdatesRangeRequest, opts ...grpc.CallOption) (*GetBlockUpdatesRangeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetBlockUpdatesRangeResponse) - err := c.cc.Invoke(ctx, "/waves.events.grpc.BlockchainUpdatesApi/GetBlockUpdatesRange", in, out, opts...) + err := c.cc.Invoke(ctx, BlockchainUpdatesApi_GetBlockUpdatesRange_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *blockchainUpdatesApiClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (BlockchainUpdatesApi_SubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &BlockchainUpdatesApi_ServiceDesc.Streams[0], "/waves.events.grpc.BlockchainUpdatesApi/Subscribe", opts...) +func (c *blockchainUpdatesApiClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SubscribeEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &BlockchainUpdatesApi_ServiceDesc.Streams[0], BlockchainUpdatesApi_Subscribe_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &blockchainUpdatesApiSubscribeClient{stream} + x := &grpc.GenericClientStream[SubscribeRequest, SubscribeEvent]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -68,35 +77,24 @@ func (c *blockchainUpdatesApiClient) Subscribe(ctx context.Context, in *Subscrib return x, nil } -type BlockchainUpdatesApi_SubscribeClient interface { - Recv() (*SubscribeEvent, error) - grpc.ClientStream -} - -type blockchainUpdatesApiSubscribeClient struct { - grpc.ClientStream -} - -func (x *blockchainUpdatesApiSubscribeClient) Recv() (*SubscribeEvent, error) { - m := new(SubscribeEvent) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type BlockchainUpdatesApi_SubscribeClient = grpc.ServerStreamingClient[SubscribeEvent] // BlockchainUpdatesApiServer is the server API for BlockchainUpdatesApi service. // All implementations should embed UnimplementedBlockchainUpdatesApiServer -// for forward compatibility +// for forward compatibility. type BlockchainUpdatesApiServer interface { GetBlockUpdate(context.Context, *GetBlockUpdateRequest) (*GetBlockUpdateResponse, error) GetBlockUpdatesRange(context.Context, *GetBlockUpdatesRangeRequest) (*GetBlockUpdatesRangeResponse, error) - Subscribe(*SubscribeRequest, BlockchainUpdatesApi_SubscribeServer) error + Subscribe(*SubscribeRequest, grpc.ServerStreamingServer[SubscribeEvent]) error } -// UnimplementedBlockchainUpdatesApiServer should be embedded to have forward compatible implementations. -type UnimplementedBlockchainUpdatesApiServer struct { -} +// UnimplementedBlockchainUpdatesApiServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedBlockchainUpdatesApiServer struct{} func (UnimplementedBlockchainUpdatesApiServer) GetBlockUpdate(context.Context, *GetBlockUpdateRequest) (*GetBlockUpdateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBlockUpdate not implemented") @@ -104,9 +102,10 @@ func (UnimplementedBlockchainUpdatesApiServer) GetBlockUpdate(context.Context, * func (UnimplementedBlockchainUpdatesApiServer) GetBlockUpdatesRange(context.Context, *GetBlockUpdatesRangeRequest) (*GetBlockUpdatesRangeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBlockUpdatesRange not implemented") } -func (UnimplementedBlockchainUpdatesApiServer) Subscribe(*SubscribeRequest, BlockchainUpdatesApi_SubscribeServer) error { +func (UnimplementedBlockchainUpdatesApiServer) Subscribe(*SubscribeRequest, grpc.ServerStreamingServer[SubscribeEvent]) error { return status.Errorf(codes.Unimplemented, "method Subscribe not implemented") } +func (UnimplementedBlockchainUpdatesApiServer) testEmbeddedByValue() {} // UnsafeBlockchainUpdatesApiServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BlockchainUpdatesApiServer will @@ -116,6 +115,13 @@ type UnsafeBlockchainUpdatesApiServer interface { } func RegisterBlockchainUpdatesApiServer(s grpc.ServiceRegistrar, srv BlockchainUpdatesApiServer) { + // If the following call pancis, it indicates UnimplementedBlockchainUpdatesApiServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&BlockchainUpdatesApi_ServiceDesc, srv) } @@ -129,7 +135,7 @@ func _BlockchainUpdatesApi_GetBlockUpdate_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.events.grpc.BlockchainUpdatesApi/GetBlockUpdate", + FullMethod: BlockchainUpdatesApi_GetBlockUpdate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BlockchainUpdatesApiServer).GetBlockUpdate(ctx, req.(*GetBlockUpdateRequest)) @@ -147,7 +153,7 @@ func _BlockchainUpdatesApi_GetBlockUpdatesRange_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.events.grpc.BlockchainUpdatesApi/GetBlockUpdatesRange", + FullMethod: BlockchainUpdatesApi_GetBlockUpdatesRange_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BlockchainUpdatesApiServer).GetBlockUpdatesRange(ctx, req.(*GetBlockUpdatesRangeRequest)) @@ -160,21 +166,11 @@ func _BlockchainUpdatesApi_Subscribe_Handler(srv interface{}, stream grpc.Server if err := stream.RecvMsg(m); err != nil { return err } - return srv.(BlockchainUpdatesApiServer).Subscribe(m, &blockchainUpdatesApiSubscribeServer{stream}) -} - -type BlockchainUpdatesApi_SubscribeServer interface { - Send(*SubscribeEvent) error - grpc.ServerStream -} - -type blockchainUpdatesApiSubscribeServer struct { - grpc.ServerStream + return srv.(BlockchainUpdatesApiServer).Subscribe(m, &grpc.GenericServerStream[SubscribeRequest, SubscribeEvent]{ServerStream: stream}) } -func (x *blockchainUpdatesApiSubscribeServer) Send(m *SubscribeEvent) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type BlockchainUpdatesApi_SubscribeServer = grpc.ServerStreamingServer[SubscribeEvent] // BlockchainUpdatesApi_ServiceDesc is the grpc.ServiceDesc for BlockchainUpdatesApi service. // It's only intended for direct use with grpc.RegisterService, diff --git a/pkg/grpc/generated/waves/invoke_script_result.pb.go b/pkg/grpc/generated/waves/invoke_script_result.pb.go index 4360b390e..d861e72c4 100644 --- a/pkg/grpc/generated/waves/invoke_script_result.pb.go +++ b/pkg/grpc/generated/waves/invoke_script_result.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/invoke_script_result.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,29 +22,26 @@ const ( ) type InvokeScriptResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*DataEntry `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Transfers []*InvokeScriptResult_Payment `protobuf:"bytes,2,rep,name=transfers,proto3" json:"transfers,omitempty"` + Issues []*InvokeScriptResult_Issue `protobuf:"bytes,3,rep,name=issues,proto3" json:"issues,omitempty"` + Reissues []*InvokeScriptResult_Reissue `protobuf:"bytes,4,rep,name=reissues,proto3" json:"reissues,omitempty"` + Burns []*InvokeScriptResult_Burn `protobuf:"bytes,5,rep,name=burns,proto3" json:"burns,omitempty"` + ErrorMessage *InvokeScriptResult_ErrorMessage `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + SponsorFees []*InvokeScriptResult_SponsorFee `protobuf:"bytes,7,rep,name=sponsor_fees,json=sponsorFees,proto3" json:"sponsor_fees,omitempty"` + Leases []*InvokeScriptResult_Lease `protobuf:"bytes,8,rep,name=leases,proto3" json:"leases,omitempty"` + LeaseCancels []*InvokeScriptResult_LeaseCancel `protobuf:"bytes,9,rep,name=lease_cancels,json=leaseCancels,proto3" json:"lease_cancels,omitempty"` + Invokes []*InvokeScriptResult_Invocation `protobuf:"bytes,10,rep,name=invokes,proto3" json:"invokes,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*DataEntry `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Transfers []*InvokeScriptResult_Payment `protobuf:"bytes,2,rep,name=transfers,proto3" json:"transfers,omitempty"` - Issues []*InvokeScriptResult_Issue `protobuf:"bytes,3,rep,name=issues,proto3" json:"issues,omitempty"` - Reissues []*InvokeScriptResult_Reissue `protobuf:"bytes,4,rep,name=reissues,proto3" json:"reissues,omitempty"` - Burns []*InvokeScriptResult_Burn `protobuf:"bytes,5,rep,name=burns,proto3" json:"burns,omitempty"` - ErrorMessage *InvokeScriptResult_ErrorMessage `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` - SponsorFees []*InvokeScriptResult_SponsorFee `protobuf:"bytes,7,rep,name=sponsor_fees,json=sponsorFees,proto3" json:"sponsor_fees,omitempty"` - Leases []*InvokeScriptResult_Lease `protobuf:"bytes,8,rep,name=leases,proto3" json:"leases,omitempty"` - LeaseCancels []*InvokeScriptResult_LeaseCancel `protobuf:"bytes,9,rep,name=lease_cancels,json=leaseCancels,proto3" json:"lease_cancels,omitempty"` - Invokes []*InvokeScriptResult_Invocation `protobuf:"bytes,10,rep,name=invokes,proto3" json:"invokes,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult) Reset() { *x = InvokeScriptResult{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult) String() string { @@ -54,7 +52,7 @@ func (*InvokeScriptResult) ProtoMessage() {} func (x *InvokeScriptResult) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -140,21 +138,18 @@ func (x *InvokeScriptResult) GetInvokes() []*InvokeScriptResult_Invocation { } type InvokeScriptResult_Payment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Amount *Amount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Amount *Amount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Payment) Reset() { *x = InvokeScriptResult_Payment{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Payment) String() string { @@ -165,7 +160,7 @@ func (*InvokeScriptResult_Payment) ProtoMessage() {} func (x *InvokeScriptResult_Payment) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -195,27 +190,24 @@ func (x *InvokeScriptResult_Payment) GetAmount() *Amount { } type InvokeScriptResult_Issue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` + Decimals int32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"` + Reissuable bool `protobuf:"varint,6,opt,name=reissuable,proto3" json:"reissuable,omitempty"` + Script []byte `protobuf:"bytes,7,opt,name=script,proto3" json:"script,omitempty"` + Nonce int64 `protobuf:"varint,8,opt,name=nonce,proto3" json:"nonce,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` - Decimals int32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"` - Reissuable bool `protobuf:"varint,6,opt,name=reissuable,proto3" json:"reissuable,omitempty"` - Script []byte `protobuf:"bytes,7,opt,name=script,proto3" json:"script,omitempty"` - Nonce int64 `protobuf:"varint,8,opt,name=nonce,proto3" json:"nonce,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Issue) Reset() { *x = InvokeScriptResult_Issue{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Issue) String() string { @@ -226,7 +218,7 @@ func (*InvokeScriptResult_Issue) ProtoMessage() {} func (x *InvokeScriptResult_Issue) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -298,22 +290,19 @@ func (x *InvokeScriptResult_Issue) GetNonce() int64 { } type InvokeScriptResult_Reissue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + IsReissuable bool `protobuf:"varint,3,opt,name=is_reissuable,json=isReissuable,proto3" json:"is_reissuable,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` - IsReissuable bool `protobuf:"varint,3,opt,name=is_reissuable,json=isReissuable,proto3" json:"is_reissuable,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Reissue) Reset() { *x = InvokeScriptResult_Reissue{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Reissue) String() string { @@ -324,7 +313,7 @@ func (*InvokeScriptResult_Reissue) ProtoMessage() {} func (x *InvokeScriptResult_Reissue) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -361,21 +350,18 @@ func (x *InvokeScriptResult_Reissue) GetIsReissuable() bool { } type InvokeScriptResult_Burn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Burn) Reset() { *x = InvokeScriptResult_Burn{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Burn) String() string { @@ -386,7 +372,7 @@ func (*InvokeScriptResult_Burn) ProtoMessage() {} func (x *InvokeScriptResult_Burn) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -416,20 +402,17 @@ func (x *InvokeScriptResult_Burn) GetAmount() int64 { } type InvokeScriptResult_SponsorFee struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + MinFee *Amount `protobuf:"bytes,1,opt,name=min_fee,json=minFee,proto3" json:"min_fee,omitempty"` unknownFields protoimpl.UnknownFields - - MinFee *Amount `protobuf:"bytes,1,opt,name=min_fee,json=minFee,proto3" json:"min_fee,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_SponsorFee) Reset() { *x = InvokeScriptResult_SponsorFee{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_SponsorFee) String() string { @@ -440,7 +423,7 @@ func (*InvokeScriptResult_SponsorFee) ProtoMessage() {} func (x *InvokeScriptResult_SponsorFee) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -463,23 +446,20 @@ func (x *InvokeScriptResult_SponsorFee) GetMinFee() *Amount { } type InvokeScriptResult_Lease struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + Nonce int64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` + LeaseId []byte `protobuf:"bytes,4,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` unknownFields protoimpl.UnknownFields - - Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` - Nonce int64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` - LeaseId []byte `protobuf:"bytes,4,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Lease) Reset() { *x = InvokeScriptResult_Lease{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Lease) String() string { @@ -490,7 +470,7 @@ func (*InvokeScriptResult_Lease) ProtoMessage() {} func (x *InvokeScriptResult_Lease) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -534,20 +514,17 @@ func (x *InvokeScriptResult_Lease) GetLeaseId() []byte { } type InvokeScriptResult_LeaseCancel struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` unknownFields protoimpl.UnknownFields - - LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_LeaseCancel) Reset() { *x = InvokeScriptResult_LeaseCancel{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_LeaseCancel) String() string { @@ -558,7 +535,7 @@ func (*InvokeScriptResult_LeaseCancel) ProtoMessage() {} func (x *InvokeScriptResult_LeaseCancel) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -581,21 +558,18 @@ func (x *InvokeScriptResult_LeaseCancel) GetLeaseId() []byte { } type InvokeScriptResult_ErrorMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` unknownFields protoimpl.UnknownFields - - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_ErrorMessage) Reset() { *x = InvokeScriptResult_ErrorMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_ErrorMessage) String() string { @@ -606,7 +580,7 @@ func (*InvokeScriptResult_ErrorMessage) ProtoMessage() {} func (x *InvokeScriptResult_ErrorMessage) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -636,23 +610,20 @@ func (x *InvokeScriptResult_ErrorMessage) GetText() string { } type InvokeScriptResult_Call struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Function string `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"` + // Deprecated: Marked as deprecated in waves/invoke_script_result.proto. + ArgsBytes [][]byte `protobuf:"bytes,2,rep,name=args_bytes,json=argsBytes,proto3" json:"args_bytes,omitempty"` + Args []*InvokeScriptResult_Call_Argument `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` unknownFields protoimpl.UnknownFields - - Function string `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"` - // Deprecated: Do not use. - ArgsBytes [][]byte `protobuf:"bytes,2,rep,name=args_bytes,json=argsBytes,proto3" json:"args_bytes,omitempty"` - Args []*InvokeScriptResult_Call_Argument `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Call) Reset() { *x = InvokeScriptResult_Call{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Call) String() string { @@ -663,7 +634,7 @@ func (*InvokeScriptResult_Call) ProtoMessage() {} func (x *InvokeScriptResult_Call) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -685,7 +656,7 @@ func (x *InvokeScriptResult_Call) GetFunction() string { return "" } -// Deprecated: Do not use. +// Deprecated: Marked as deprecated in waves/invoke_script_result.proto. func (x *InvokeScriptResult_Call) GetArgsBytes() [][]byte { if x != nil { return x.ArgsBytes @@ -701,23 +672,20 @@ func (x *InvokeScriptResult_Call) GetArgs() []*InvokeScriptResult_Call_Argument } type InvokeScriptResult_Invocation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DApp []byte `protobuf:"bytes,1,opt,name=dApp,proto3" json:"dApp,omitempty"` + Call *InvokeScriptResult_Call `protobuf:"bytes,2,opt,name=call,proto3" json:"call,omitempty"` + Payments []*Amount `protobuf:"bytes,3,rep,name=payments,proto3" json:"payments,omitempty"` + StateChanges *InvokeScriptResult `protobuf:"bytes,4,opt,name=stateChanges,proto3" json:"stateChanges,omitempty"` unknownFields protoimpl.UnknownFields - - DApp []byte `protobuf:"bytes,1,opt,name=dApp,proto3" json:"dApp,omitempty"` - Call *InvokeScriptResult_Call `protobuf:"bytes,2,opt,name=call,proto3" json:"call,omitempty"` - Payments []*Amount `protobuf:"bytes,3,rep,name=payments,proto3" json:"payments,omitempty"` - StateChanges *InvokeScriptResult `protobuf:"bytes,4,opt,name=stateChanges,proto3" json:"stateChanges,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Invocation) Reset() { *x = InvokeScriptResult_Invocation{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Invocation) String() string { @@ -728,7 +696,7 @@ func (*InvokeScriptResult_Invocation) ProtoMessage() {} func (x *InvokeScriptResult_Invocation) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -772,27 +740,25 @@ func (x *InvokeScriptResult_Invocation) GetStateChanges() *InvokeScriptResult { } type InvokeScriptResult_Call_Argument struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Value: + // // *InvokeScriptResult_Call_Argument_IntegerValue // *InvokeScriptResult_Call_Argument_BinaryValue // *InvokeScriptResult_Call_Argument_StringValue // *InvokeScriptResult_Call_Argument_BooleanValue // *InvokeScriptResult_Call_Argument_CaseObj // *InvokeScriptResult_Call_Argument_List_ - Value isInvokeScriptResult_Call_Argument_Value `protobuf_oneof:"value"` + Value isInvokeScriptResult_Call_Argument_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Call_Argument) Reset() { *x = InvokeScriptResult_Call_Argument{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Call_Argument) String() string { @@ -803,7 +769,7 @@ func (*InvokeScriptResult_Call_Argument) ProtoMessage() {} func (x *InvokeScriptResult_Call_Argument) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -818,51 +784,63 @@ func (*InvokeScriptResult_Call_Argument) Descriptor() ([]byte, []int) { return file_waves_invoke_script_result_proto_rawDescGZIP(), []int{0, 8, 0} } -func (m *InvokeScriptResult_Call_Argument) GetValue() isInvokeScriptResult_Call_Argument_Value { - if m != nil { - return m.Value +func (x *InvokeScriptResult_Call_Argument) GetValue() isInvokeScriptResult_Call_Argument_Value { + if x != nil { + return x.Value } return nil } func (x *InvokeScriptResult_Call_Argument) GetIntegerValue() int64 { - if x, ok := x.GetValue().(*InvokeScriptResult_Call_Argument_IntegerValue); ok { - return x.IntegerValue + if x != nil { + if x, ok := x.Value.(*InvokeScriptResult_Call_Argument_IntegerValue); ok { + return x.IntegerValue + } } return 0 } func (x *InvokeScriptResult_Call_Argument) GetBinaryValue() []byte { - if x, ok := x.GetValue().(*InvokeScriptResult_Call_Argument_BinaryValue); ok { - return x.BinaryValue + if x != nil { + if x, ok := x.Value.(*InvokeScriptResult_Call_Argument_BinaryValue); ok { + return x.BinaryValue + } } return nil } func (x *InvokeScriptResult_Call_Argument) GetStringValue() string { - if x, ok := x.GetValue().(*InvokeScriptResult_Call_Argument_StringValue); ok { - return x.StringValue + if x != nil { + if x, ok := x.Value.(*InvokeScriptResult_Call_Argument_StringValue); ok { + return x.StringValue + } } return "" } func (x *InvokeScriptResult_Call_Argument) GetBooleanValue() bool { - if x, ok := x.GetValue().(*InvokeScriptResult_Call_Argument_BooleanValue); ok { - return x.BooleanValue + if x != nil { + if x, ok := x.Value.(*InvokeScriptResult_Call_Argument_BooleanValue); ok { + return x.BooleanValue + } } return false } func (x *InvokeScriptResult_Call_Argument) GetCaseObj() []byte { - if x, ok := x.GetValue().(*InvokeScriptResult_Call_Argument_CaseObj); ok { - return x.CaseObj + if x != nil { + if x, ok := x.Value.(*InvokeScriptResult_Call_Argument_CaseObj); ok { + return x.CaseObj + } } return nil } func (x *InvokeScriptResult_Call_Argument) GetList() *InvokeScriptResult_Call_Argument_List { - if x, ok := x.GetValue().(*InvokeScriptResult_Call_Argument_List_); ok { - return x.List + if x != nil { + if x, ok := x.Value.(*InvokeScriptResult_Call_Argument_List_); ok { + return x.List + } } return nil } @@ -908,20 +886,17 @@ func (*InvokeScriptResult_Call_Argument_CaseObj) isInvokeScriptResult_Call_Argum func (*InvokeScriptResult_Call_Argument_List_) isInvokeScriptResult_Call_Argument_Value() {} type InvokeScriptResult_Call_Argument_List struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*InvokeScriptResult_Call_Argument `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*InvokeScriptResult_Call_Argument `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResult_Call_Argument_List) Reset() { *x = InvokeScriptResult_Call_Argument_List{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_invoke_script_result_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_invoke_script_result_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResult_Call_Argument_List) String() string { @@ -932,7 +907,7 @@ func (*InvokeScriptResult_Call_Argument_List) ProtoMessage() {} func (x *InvokeScriptResult_Call_Argument_List) ProtoReflect() protoreflect.Message { mi := &file_waves_invoke_script_result_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -956,166 +931,93 @@ func (x *InvokeScriptResult_Call_Argument_List) GetItems() []*InvokeScriptResult var File_waves_invoke_script_result_proto protoreflect.FileDescriptor -var file_waves_invoke_script_result_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x5f, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, 0x76, 0x65, 0x73, 0x1a, 0x17, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x12, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x72, 0x65, - 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x10, - 0x0a, 0x12, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x09, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x12, 0x37, 0x0a, 0x06, 0x69, - 0x73, 0x73, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x52, 0x06, 0x69, 0x73, - 0x73, 0x75, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x08, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, - 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x2e, 0x52, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x52, 0x08, 0x72, 0x65, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x62, 0x75, 0x72, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, - 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x42, 0x75, - 0x72, 0x6e, 0x52, 0x05, 0x62, 0x75, 0x72, 0x6e, 0x73, 0x12, 0x4b, 0x0a, 0x0d, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x47, 0x0a, 0x0c, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x6f, - 0x72, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x46, - 0x65, 0x65, 0x52, 0x0b, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x46, 0x65, 0x65, 0x73, 0x12, - 0x37, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, - 0x52, 0x06, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, - 0x65, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, - 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x73, 0x18, - 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, - 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x69, 0x6e, 0x76, - 0x6f, 0x6b, 0x65, 0x73, 0x1a, 0x4a, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x1a, 0xda, 0x01, 0x0a, 0x05, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, - 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, - 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, - 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x1a, 0x61, 0x0a, - 0x07, 0x52, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x69, - 0x73, 0x5f, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x52, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, - 0x1a, 0x39, 0x0a, 0x04, 0x42, 0x75, 0x72, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x34, 0x0a, 0x0a, 0x53, - 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x46, 0x65, 0x65, 0x12, 0x26, 0x0a, 0x07, 0x6d, 0x69, 0x6e, - 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x46, 0x65, - 0x65, 0x1a, 0x80, 0x01, 0x0a, 0x05, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x72, - 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x65, 0x61, - 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x65, 0x61, - 0x73, 0x65, 0x49, 0x64, 0x1a, 0x28, 0x0a, 0x0b, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x64, 0x1a, 0x36, - 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x1a, 0xd8, 0x03, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 0x12, - 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0a, 0x61, - 0x72, 0x67, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x42, - 0x02, 0x18, 0x01, 0x52, 0x09, 0x61, 0x72, 0x67, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x3b, - 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x2e, 0x41, 0x72, 0x67, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x1a, 0xd3, 0x02, 0x0a, 0x08, - 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, - 0x67, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, - 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x23, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, - 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x1b, 0x0a, 0x08, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x63, 0x61, 0x73, 0x65, 0x4f, 0x62, 0x6a, 0x12, 0x42, 0x0a, - 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x2e, 0x41, 0x72, 0x67, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x69, 0x73, - 0x74, 0x1a, 0x45, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x05, 0x69, 0x74, 0x65, - 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x1a, 0xbe, 0x01, 0x0a, 0x0a, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x12, 0x0a, 0x04, 0x64, 0x41, 0x70, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x64, 0x41, 0x70, 0x70, 0x12, 0x32, 0x0a, 0x04, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, - 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x43, 0x61, - 0x6c, 0x6c, 0x52, 0x04, 0x63, 0x61, 0x6c, 0x6c, 0x12, 0x29, 0x0a, 0x08, 0x70, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x73, 0x42, 0x6b, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5a, 0x39, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, - 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0xaa, 0x02, 0x05, 0x57, 0x61, 0x76, 0x65, 0x73, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_invoke_script_result_proto_rawDesc = "" + + "\n" + + " waves/invoke_script_result.proto\x12\x05waves\x1a\x17waves/transaction.proto\x1a\x12waves/amount.proto\x1a\x15waves/recipient.proto\"\x82\x10\n" + + "\x12InvokeScriptResult\x12$\n" + + "\x04data\x18\x01 \x03(\v2\x10.waves.DataEntryR\x04data\x12?\n" + + "\ttransfers\x18\x02 \x03(\v2!.waves.InvokeScriptResult.PaymentR\ttransfers\x127\n" + + "\x06issues\x18\x03 \x03(\v2\x1f.waves.InvokeScriptResult.IssueR\x06issues\x12=\n" + + "\breissues\x18\x04 \x03(\v2!.waves.InvokeScriptResult.ReissueR\breissues\x124\n" + + "\x05burns\x18\x05 \x03(\v2\x1e.waves.InvokeScriptResult.BurnR\x05burns\x12K\n" + + "\rerror_message\x18\x06 \x01(\v2&.waves.InvokeScriptResult.ErrorMessageR\ferrorMessage\x12G\n" + + "\fsponsor_fees\x18\a \x03(\v2$.waves.InvokeScriptResult.SponsorFeeR\vsponsorFees\x127\n" + + "\x06leases\x18\b \x03(\v2\x1f.waves.InvokeScriptResult.LeaseR\x06leases\x12J\n" + + "\rlease_cancels\x18\t \x03(\v2%.waves.InvokeScriptResult.LeaseCancelR\fleaseCancels\x12>\n" + + "\ainvokes\x18\n" + + " \x03(\v2$.waves.InvokeScriptResult.InvocationR\ainvokes\x1aJ\n" + + "\aPayment\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12%\n" + + "\x06amount\x18\x02 \x01(\v2\r.waves.AmountR\x06amount\x1a\xda\x01\n" + + "\x05Issue\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x16\n" + + "\x06amount\x18\x04 \x01(\x03R\x06amount\x12\x1a\n" + + "\bdecimals\x18\x05 \x01(\x05R\bdecimals\x12\x1e\n" + + "\n" + + "reissuable\x18\x06 \x01(\bR\n" + + "reissuable\x12\x16\n" + + "\x06script\x18\a \x01(\fR\x06script\x12\x14\n" + + "\x05nonce\x18\b \x01(\x03R\x05nonce\x1aa\n" + + "\aReissue\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x03R\x06amount\x12#\n" + + "\ris_reissuable\x18\x03 \x01(\bR\fisReissuable\x1a9\n" + + "\x04Burn\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x03R\x06amount\x1a4\n" + + "\n" + + "SponsorFee\x12&\n" + + "\amin_fee\x18\x01 \x01(\v2\r.waves.AmountR\x06minFee\x1a\x80\x01\n" + + "\x05Lease\x12.\n" + + "\trecipient\x18\x01 \x01(\v2\x10.waves.RecipientR\trecipient\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x03R\x06amount\x12\x14\n" + + "\x05nonce\x18\x03 \x01(\x03R\x05nonce\x12\x19\n" + + "\blease_id\x18\x04 \x01(\fR\aleaseId\x1a(\n" + + "\vLeaseCancel\x12\x19\n" + + "\blease_id\x18\x01 \x01(\fR\aleaseId\x1a6\n" + + "\fErrorMessage\x12\x12\n" + + "\x04code\x18\x01 \x01(\x05R\x04code\x12\x12\n" + + "\x04text\x18\x02 \x01(\tR\x04text\x1a\xd8\x03\n" + + "\x04Call\x12\x1a\n" + + "\bfunction\x18\x01 \x01(\tR\bfunction\x12!\n" + + "\n" + + "args_bytes\x18\x02 \x03(\fB\x02\x18\x01R\targsBytes\x12;\n" + + "\x04args\x18\x03 \x03(\v2'.waves.InvokeScriptResult.Call.ArgumentR\x04args\x1a\xd3\x02\n" + + "\bArgument\x12%\n" + + "\rinteger_value\x18\x01 \x01(\x03H\x00R\fintegerValue\x12#\n" + + "\fbinary_value\x18\x02 \x01(\fH\x00R\vbinaryValue\x12#\n" + + "\fstring_value\x18\x03 \x01(\tH\x00R\vstringValue\x12%\n" + + "\rboolean_value\x18\x04 \x01(\bH\x00R\fbooleanValue\x12\x1b\n" + + "\bcase_obj\x18\x05 \x01(\fH\x00R\acaseObj\x12B\n" + + "\x04list\x18\n" + + " \x01(\v2,.waves.InvokeScriptResult.Call.Argument.ListH\x00R\x04list\x1aE\n" + + "\x04List\x12=\n" + + "\x05items\x18\x01 \x03(\v2'.waves.InvokeScriptResult.Call.ArgumentR\x05itemsB\a\n" + + "\x05value\x1a\xbe\x01\n" + + "\n" + + "Invocation\x12\x12\n" + + "\x04dApp\x18\x01 \x01(\fR\x04dApp\x122\n" + + "\x04call\x18\x02 \x01(\v2\x1e.waves.InvokeScriptResult.CallR\x04call\x12)\n" + + "\bpayments\x18\x03 \x03(\v2\r.waves.AmountR\bpayments\x12=\n" + + "\fstateChanges\x18\x04 \x01(\v2\x19.waves.InvokeScriptResultR\fstateChangesBk\n" + + "&com.wavesplatform.protobuf.transactionZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_invoke_script_result_proto_rawDescOnce sync.Once - file_waves_invoke_script_result_proto_rawDescData = file_waves_invoke_script_result_proto_rawDesc + file_waves_invoke_script_result_proto_rawDescData []byte ) func file_waves_invoke_script_result_proto_rawDescGZIP() []byte { file_waves_invoke_script_result_proto_rawDescOnce.Do(func() { - file_waves_invoke_script_result_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_invoke_script_result_proto_rawDescData) + file_waves_invoke_script_result_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_invoke_script_result_proto_rawDesc), len(file_waves_invoke_script_result_proto_rawDesc))) }) return file_waves_invoke_script_result_proto_rawDescData } var file_waves_invoke_script_result_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_waves_invoke_script_result_proto_goTypes = []interface{}{ +var file_waves_invoke_script_result_proto_goTypes = []any{ (*InvokeScriptResult)(nil), // 0: waves.InvokeScriptResult (*InvokeScriptResult_Payment)(nil), // 1: waves.InvokeScriptResult.Payment (*InvokeScriptResult_Issue)(nil), // 2: waves.InvokeScriptResult.Issue @@ -1168,165 +1070,7 @@ func file_waves_invoke_script_result_proto_init() { file_waves_transaction_proto_init() file_waves_amount_proto_init() file_waves_recipient_proto_init() - if !protoimpl.UnsafeEnabled { - file_waves_invoke_script_result_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Payment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Issue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Reissue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Burn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_SponsorFee); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Lease); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_LeaseCancel); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_ErrorMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Call); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Invocation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Call_Argument); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_invoke_script_result_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResult_Call_Argument_List); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_waves_invoke_script_result_proto_msgTypes[11].OneofWrappers = []interface{}{ + file_waves_invoke_script_result_proto_msgTypes[11].OneofWrappers = []any{ (*InvokeScriptResult_Call_Argument_IntegerValue)(nil), (*InvokeScriptResult_Call_Argument_BinaryValue)(nil), (*InvokeScriptResult_Call_Argument_StringValue)(nil), @@ -1338,7 +1082,7 @@ func file_waves_invoke_script_result_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_waves_invoke_script_result_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_invoke_script_result_proto_rawDesc), len(file_waves_invoke_script_result_proto_rawDesc)), NumEnums: 0, NumMessages: 13, NumExtensions: 0, @@ -1349,7 +1093,6 @@ func file_waves_invoke_script_result_proto_init() { MessageInfos: file_waves_invoke_script_result_proto_msgTypes, }.Build() File_waves_invoke_script_result_proto = out.File - file_waves_invoke_script_result_proto_rawDesc = nil file_waves_invoke_script_result_proto_goTypes = nil file_waves_invoke_script_result_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/invoke_script_result_vtproto.pb.go b/pkg/grpc/generated/waves/invoke_script_result_vtproto.pb.go index 71789b023..613085a10 100644 --- a/pkg/grpc/generated/waves/invoke_script_result_vtproto.pb.go +++ b/pkg/grpc/generated/waves/invoke_script_result_vtproto.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/invoke_script_result.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -53,14 +54,14 @@ func (m *InvokeScriptResult_Payment) MarshalToSizedBufferVTStrict(dAtA []byte) ( return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -98,14 +99,14 @@ func (m *InvokeScriptResult_Issue) MarshalToSizedBufferVTStrict(dAtA []byte) (in copy(dAtA[i:], m.unknownFields) } if m.Nonce != 0 { - i = encodeVarint(dAtA, i, uint64(m.Nonce)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Nonce)) i-- dAtA[i] = 0x40 } if len(m.Script) > 0 { i -= len(m.Script) copy(dAtA[i:], m.Script) - i = encodeVarint(dAtA, i, uint64(len(m.Script))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Script))) i-- dAtA[i] = 0x3a } @@ -120,33 +121,33 @@ func (m *InvokeScriptResult_Issue) MarshalToSizedBufferVTStrict(dAtA []byte) (in dAtA[i] = 0x30 } if m.Decimals != 0 { - i = encodeVarint(dAtA, i, uint64(m.Decimals)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Decimals)) i-- dAtA[i] = 0x28 } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x20 } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarint(dAtA, i, uint64(len(m.Description))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) i-- dAtA[i] = 0x1a } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -194,14 +195,14 @@ func (m *InvokeScriptResult_Reissue) MarshalToSizedBufferVTStrict(dAtA []byte) ( dAtA[i] = 0x18 } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x10 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -239,14 +240,14 @@ func (m *InvokeScriptResult_Burn) MarshalToSizedBufferVTStrict(dAtA []byte) (int copy(dAtA[i:], m.unknownFields) } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x10 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -289,7 +290,7 @@ func (m *InvokeScriptResult_SponsorFee) MarshalToSizedBufferVTStrict(dAtA []byte return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -329,17 +330,17 @@ func (m *InvokeScriptResult_Lease) MarshalToSizedBufferVTStrict(dAtA []byte) (in if len(m.LeaseId) > 0 { i -= len(m.LeaseId) copy(dAtA[i:], m.LeaseId) - i = encodeVarint(dAtA, i, uint64(len(m.LeaseId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LeaseId))) i-- dAtA[i] = 0x22 } if m.Nonce != 0 { - i = encodeVarint(dAtA, i, uint64(m.Nonce)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Nonce)) i-- dAtA[i] = 0x18 } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x10 } @@ -349,7 +350,7 @@ func (m *InvokeScriptResult_Lease) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -389,7 +390,7 @@ func (m *InvokeScriptResult_LeaseCancel) MarshalToSizedBufferVTStrict(dAtA []byt if len(m.LeaseId) > 0 { i -= len(m.LeaseId) copy(dAtA[i:], m.LeaseId) - i = encodeVarint(dAtA, i, uint64(len(m.LeaseId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LeaseId))) i-- dAtA[i] = 0xa } @@ -429,12 +430,12 @@ func (m *InvokeScriptResult_ErrorMessage) MarshalToSizedBufferVTStrict(dAtA []by if len(m.Text) > 0 { i -= len(m.Text) copy(dAtA[i:], m.Text) - i = encodeVarint(dAtA, i, uint64(len(m.Text))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Text))) i-- dAtA[i] = 0x12 } if m.Code != 0 { - i = encodeVarint(dAtA, i, uint64(m.Code)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Code)) i-- dAtA[i] = 0x8 } @@ -478,7 +479,7 @@ func (m *InvokeScriptResult_Call_Argument_List) MarshalToSizedBufferVTStrict(dAt return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -568,7 +569,7 @@ func (m *InvokeScriptResult_Call_Argument_IntegerValue) MarshalToVTStrict(dAtA [ func (m *InvokeScriptResult_Call_Argument_IntegerValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i := len(dAtA) - i = encodeVarint(dAtA, i, uint64(m.IntegerValue)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.IntegerValue)) i-- dAtA[i] = 0x8 return len(dAtA) - i, nil @@ -582,7 +583,7 @@ func (m *InvokeScriptResult_Call_Argument_BinaryValue) MarshalToSizedBufferVTStr i := len(dAtA) i -= len(m.BinaryValue) copy(dAtA[i:], m.BinaryValue) - i = encodeVarint(dAtA, i, uint64(len(m.BinaryValue))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.BinaryValue))) i-- dAtA[i] = 0x12 return len(dAtA) - i, nil @@ -596,7 +597,7 @@ func (m *InvokeScriptResult_Call_Argument_StringValue) MarshalToSizedBufferVTStr i := len(dAtA) i -= len(m.StringValue) copy(dAtA[i:], m.StringValue) - i = encodeVarint(dAtA, i, uint64(len(m.StringValue))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) i-- dAtA[i] = 0x1a return len(dAtA) - i, nil @@ -627,7 +628,7 @@ func (m *InvokeScriptResult_Call_Argument_CaseObj) MarshalToSizedBufferVTStrict( i := len(dAtA) i -= len(m.CaseObj) copy(dAtA[i:], m.CaseObj) - i = encodeVarint(dAtA, i, uint64(len(m.CaseObj))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CaseObj))) i-- dAtA[i] = 0x2a return len(dAtA) - i, nil @@ -645,7 +646,7 @@ func (m *InvokeScriptResult_Call_Argument_List_) MarshalToSizedBufferVTStrict(dA return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x52 } @@ -688,7 +689,7 @@ func (m *InvokeScriptResult_Call) MarshalToSizedBufferVTStrict(dAtA []byte) (int return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -697,7 +698,7 @@ func (m *InvokeScriptResult_Call) MarshalToSizedBufferVTStrict(dAtA []byte) (int for iNdEx := len(m.ArgsBytes) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ArgsBytes[iNdEx]) copy(dAtA[i:], m.ArgsBytes[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.ArgsBytes[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ArgsBytes[iNdEx]))) i-- dAtA[i] = 0x12 } @@ -705,7 +706,7 @@ func (m *InvokeScriptResult_Call) MarshalToSizedBufferVTStrict(dAtA []byte) (int if len(m.Function) > 0 { i -= len(m.Function) copy(dAtA[i:], m.Function) - i = encodeVarint(dAtA, i, uint64(len(m.Function))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Function))) i-- dAtA[i] = 0xa } @@ -748,7 +749,7 @@ func (m *InvokeScriptResult_Invocation) MarshalToSizedBufferVTStrict(dAtA []byte return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } @@ -759,7 +760,7 @@ func (m *InvokeScriptResult_Invocation) MarshalToSizedBufferVTStrict(dAtA []byte return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -770,14 +771,14 @@ func (m *InvokeScriptResult_Invocation) MarshalToSizedBufferVTStrict(dAtA []byte return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } if len(m.DApp) > 0 { i -= len(m.DApp) copy(dAtA[i:], m.DApp) - i = encodeVarint(dAtA, i, uint64(len(m.DApp))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DApp))) i-- dAtA[i] = 0xa } @@ -821,7 +822,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x52 } @@ -833,7 +834,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x4a } @@ -845,7 +846,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x42 } @@ -857,7 +858,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x3a } @@ -868,7 +869,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x32 } @@ -879,7 +880,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } @@ -891,7 +892,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } @@ -903,7 +904,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -915,7 +916,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -927,7 +928,7 @@ func (m *InvokeScriptResult) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -943,11 +944,11 @@ func (m *InvokeScriptResult_Payment) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != nil { l = m.Amount.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -961,31 +962,31 @@ func (m *InvokeScriptResult_Issue) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } if m.Decimals != 0 { - n += 1 + sov(uint64(m.Decimals)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Decimals)) } if m.Reissuable { n += 2 } l = len(m.Script) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Nonce != 0 { - n += 1 + sov(uint64(m.Nonce)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Nonce)) } n += len(m.unknownFields) return n @@ -999,10 +1000,10 @@ func (m *InvokeScriptResult_Reissue) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } if m.IsReissuable { n += 2 @@ -1019,10 +1020,10 @@ func (m *InvokeScriptResult_Burn) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } n += len(m.unknownFields) return n @@ -1036,7 +1037,7 @@ func (m *InvokeScriptResult_SponsorFee) SizeVT() (n int) { _ = l if m.MinFee != nil { l = m.MinFee.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1050,17 +1051,17 @@ func (m *InvokeScriptResult_Lease) SizeVT() (n int) { _ = l if m.Recipient != nil { l = m.Recipient.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } if m.Nonce != 0 { - n += 1 + sov(uint64(m.Nonce)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Nonce)) } l = len(m.LeaseId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1074,7 +1075,7 @@ func (m *InvokeScriptResult_LeaseCancel) SizeVT() (n int) { _ = l l = len(m.LeaseId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1087,11 +1088,11 @@ func (m *InvokeScriptResult_ErrorMessage) SizeVT() (n int) { var l int _ = l if m.Code != 0 { - n += 1 + sov(uint64(m.Code)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Code)) } l = len(m.Text) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1106,7 +1107,7 @@ func (m *InvokeScriptResult_Call_Argument_List) SizeVT() (n int) { if len(m.Items) > 0 { for _, e := range m.Items { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1132,7 +1133,7 @@ func (m *InvokeScriptResult_Call_Argument_IntegerValue) SizeVT() (n int) { } var l int _ = l - n += 1 + sov(uint64(m.IntegerValue)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.IntegerValue)) return n } func (m *InvokeScriptResult_Call_Argument_BinaryValue) SizeVT() (n int) { @@ -1142,7 +1143,7 @@ func (m *InvokeScriptResult_Call_Argument_BinaryValue) SizeVT() (n int) { var l int _ = l l = len(m.BinaryValue) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *InvokeScriptResult_Call_Argument_StringValue) SizeVT() (n int) { @@ -1152,7 +1153,7 @@ func (m *InvokeScriptResult_Call_Argument_StringValue) SizeVT() (n int) { var l int _ = l l = len(m.StringValue) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *InvokeScriptResult_Call_Argument_BooleanValue) SizeVT() (n int) { @@ -1171,7 +1172,7 @@ func (m *InvokeScriptResult_Call_Argument_CaseObj) SizeVT() (n int) { var l int _ = l l = len(m.CaseObj) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *InvokeScriptResult_Call_Argument_List_) SizeVT() (n int) { @@ -1182,7 +1183,7 @@ func (m *InvokeScriptResult_Call_Argument_List_) SizeVT() (n int) { _ = l if m.List != nil { l = m.List.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1194,18 +1195,18 @@ func (m *InvokeScriptResult_Call) SizeVT() (n int) { _ = l l = len(m.Function) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.ArgsBytes) > 0 { for _, b := range m.ArgsBytes { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Args) > 0 { for _, e := range m.Args { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1220,21 +1221,21 @@ func (m *InvokeScriptResult_Invocation) SizeVT() (n int) { _ = l l = len(m.DApp) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Call != nil { l = m.Call.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Payments) > 0 { for _, e := range m.Payments { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.StateChanges != nil { l = m.StateChanges.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1249,59 +1250,59 @@ func (m *InvokeScriptResult) SizeVT() (n int) { if len(m.Data) > 0 { for _, e := range m.Data { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Transfers) > 0 { for _, e := range m.Transfers { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Issues) > 0 { for _, e := range m.Issues { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Reissues) > 0 { for _, e := range m.Reissues { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Burns) > 0 { for _, e := range m.Burns { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.ErrorMessage != nil { l = m.ErrorMessage.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.SponsorFees) > 0 { for _, e := range m.SponsorFees { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Leases) > 0 { for _, e := range m.Leases { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.LeaseCancels) > 0 { for _, e := range m.LeaseCancels { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Invokes) > 0 { for _, e := range m.Invokes { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1316,7 +1317,7 @@ func (m *InvokeScriptResult_Payment) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1344,7 +1345,7 @@ func (m *InvokeScriptResult_Payment) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1357,11 +1358,11 @@ func (m *InvokeScriptResult_Payment) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1378,7 +1379,7 @@ func (m *InvokeScriptResult_Payment) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1391,11 +1392,11 @@ func (m *InvokeScriptResult_Payment) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1409,12 +1410,12 @@ func (m *InvokeScriptResult_Payment) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1437,7 +1438,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1465,7 +1466,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1478,11 +1479,11 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1499,7 +1500,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1513,11 +1514,11 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1531,7 +1532,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1545,11 +1546,11 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1563,7 +1564,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1582,7 +1583,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { m.Decimals = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1601,7 +1602,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1621,7 +1622,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1634,11 +1635,11 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1655,7 +1656,7 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { m.Nonce = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1669,12 +1670,12 @@ func (m *InvokeScriptResult_Issue) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1697,7 +1698,7 @@ func (m *InvokeScriptResult_Reissue) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1725,7 +1726,7 @@ func (m *InvokeScriptResult_Reissue) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1738,11 +1739,11 @@ func (m *InvokeScriptResult_Reissue) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1759,7 +1760,7 @@ func (m *InvokeScriptResult_Reissue) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1778,7 +1779,7 @@ func (m *InvokeScriptResult_Reissue) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1793,12 +1794,12 @@ func (m *InvokeScriptResult_Reissue) UnmarshalVT(dAtA []byte) error { m.IsReissuable = bool(v != 0) default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1821,7 +1822,7 @@ func (m *InvokeScriptResult_Burn) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1849,7 +1850,7 @@ func (m *InvokeScriptResult_Burn) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1862,11 +1863,11 @@ func (m *InvokeScriptResult_Burn) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1883,7 +1884,7 @@ func (m *InvokeScriptResult_Burn) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1897,12 +1898,12 @@ func (m *InvokeScriptResult_Burn) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1925,7 +1926,7 @@ func (m *InvokeScriptResult_SponsorFee) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1953,7 +1954,7 @@ func (m *InvokeScriptResult_SponsorFee) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1966,11 +1967,11 @@ func (m *InvokeScriptResult_SponsorFee) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1984,12 +1985,12 @@ func (m *InvokeScriptResult_SponsorFee) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2012,7 +2013,7 @@ func (m *InvokeScriptResult_Lease) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2040,7 +2041,7 @@ func (m *InvokeScriptResult_Lease) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2053,11 +2054,11 @@ func (m *InvokeScriptResult_Lease) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2076,7 +2077,7 @@ func (m *InvokeScriptResult_Lease) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2095,7 +2096,7 @@ func (m *InvokeScriptResult_Lease) UnmarshalVT(dAtA []byte) error { m.Nonce = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2114,7 +2115,7 @@ func (m *InvokeScriptResult_Lease) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2127,11 +2128,11 @@ func (m *InvokeScriptResult_Lease) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2143,12 +2144,12 @@ func (m *InvokeScriptResult_Lease) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2171,7 +2172,7 @@ func (m *InvokeScriptResult_LeaseCancel) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2199,7 +2200,7 @@ func (m *InvokeScriptResult_LeaseCancel) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2212,11 +2213,11 @@ func (m *InvokeScriptResult_LeaseCancel) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2228,12 +2229,12 @@ func (m *InvokeScriptResult_LeaseCancel) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2256,7 +2257,7 @@ func (m *InvokeScriptResult_ErrorMessage) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2284,7 +2285,7 @@ func (m *InvokeScriptResult_ErrorMessage) UnmarshalVT(dAtA []byte) error { m.Code = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2303,7 +2304,7 @@ func (m *InvokeScriptResult_ErrorMessage) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2317,11 +2318,11 @@ func (m *InvokeScriptResult_ErrorMessage) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2330,12 +2331,12 @@ func (m *InvokeScriptResult_ErrorMessage) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2358,7 +2359,7 @@ func (m *InvokeScriptResult_Call_Argument_List) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2386,7 +2387,7 @@ func (m *InvokeScriptResult_Call_Argument_List) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2399,11 +2400,11 @@ func (m *InvokeScriptResult_Call_Argument_List) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2415,12 +2416,12 @@ func (m *InvokeScriptResult_Call_Argument_List) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2443,7 +2444,7 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2471,7 +2472,7 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2491,7 +2492,7 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2504,11 +2505,11 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2524,7 +2525,7 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2538,11 +2539,11 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2556,7 +2557,7 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2577,7 +2578,7 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2590,11 +2591,11 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2610,7 +2611,7 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2623,11 +2624,11 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2646,12 +2647,12 @@ func (m *InvokeScriptResult_Call_Argument) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2674,7 +2675,7 @@ func (m *InvokeScriptResult_Call) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2702,7 +2703,7 @@ func (m *InvokeScriptResult_Call) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2716,11 +2717,11 @@ func (m *InvokeScriptResult_Call) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2734,7 +2735,7 @@ func (m *InvokeScriptResult_Call) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2747,11 +2748,11 @@ func (m *InvokeScriptResult_Call) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2766,7 +2767,7 @@ func (m *InvokeScriptResult_Call) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2779,11 +2780,11 @@ func (m *InvokeScriptResult_Call) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2795,12 +2796,12 @@ func (m *InvokeScriptResult_Call) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2823,7 +2824,7 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2851,7 +2852,7 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2864,11 +2865,11 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2885,7 +2886,7 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2898,11 +2899,11 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2921,7 +2922,7 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2934,11 +2935,11 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2955,7 +2956,7 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2968,11 +2969,11 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2986,12 +2987,12 @@ func (m *InvokeScriptResult_Invocation) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3014,7 +3015,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3042,7 +3043,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3055,11 +3056,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3076,7 +3077,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3089,11 +3090,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3110,7 +3111,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3123,11 +3124,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3144,7 +3145,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3157,11 +3158,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3178,7 +3179,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3191,11 +3192,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3212,7 +3213,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3225,11 +3226,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3248,7 +3249,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3261,11 +3262,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3282,7 +3283,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3295,11 +3296,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3316,7 +3317,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3329,11 +3330,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3350,7 +3351,7 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3363,11 +3364,11 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3379,12 +3380,12 @@ func (m *InvokeScriptResult) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF diff --git a/pkg/grpc/generated/waves/node/grpc/accounts_api.pb.go b/pkg/grpc/generated/waves/node/grpc/accounts_api.pb.go index 35f02ab6d..fd250fc23 100644 --- a/pkg/grpc/generated/waves/node/grpc/accounts_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/accounts_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/node/grpc/accounts_api.proto package grpc @@ -13,6 +13,7 @@ import ( wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -23,20 +24,17 @@ const ( ) type AccountRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AccountRequest) Reset() { *x = AccountRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccountRequest) String() string { @@ -47,7 +45,7 @@ func (*AccountRequest) ProtoMessage() {} func (x *AccountRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -70,21 +68,18 @@ func (x *AccountRequest) GetAddress() []byte { } type DataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DataRequest) Reset() { *x = DataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataRequest) String() string { @@ -95,7 +90,7 @@ func (*DataRequest) ProtoMessage() {} func (x *DataRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -125,21 +120,18 @@ func (x *DataRequest) GetKey() string { } type BalancesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Assets [][]byte `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Assets [][]byte `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BalancesRequest) Reset() { *x = BalancesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BalancesRequest) String() string { @@ -150,7 +142,7 @@ func (*BalancesRequest) ProtoMessage() {} func (x *BalancesRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -180,23 +172,21 @@ func (x *BalancesRequest) GetAssets() [][]byte { } type BalanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Balance: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Balance: + // // *BalanceResponse_Waves // *BalanceResponse_Asset - Balance isBalanceResponse_Balance `protobuf_oneof:"balance"` + Balance isBalanceResponse_Balance `protobuf_oneof:"balance"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BalanceResponse) Reset() { *x = BalanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BalanceResponse) String() string { @@ -207,7 +197,7 @@ func (*BalanceResponse) ProtoMessage() {} func (x *BalanceResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -222,23 +212,27 @@ func (*BalanceResponse) Descriptor() ([]byte, []int) { return file_waves_node_grpc_accounts_api_proto_rawDescGZIP(), []int{3} } -func (m *BalanceResponse) GetBalance() isBalanceResponse_Balance { - if m != nil { - return m.Balance +func (x *BalanceResponse) GetBalance() isBalanceResponse_Balance { + if x != nil { + return x.Balance } return nil } func (x *BalanceResponse) GetWaves() *BalanceResponse_WavesBalances { - if x, ok := x.GetBalance().(*BalanceResponse_Waves); ok { - return x.Waves + if x != nil { + if x, ok := x.Balance.(*BalanceResponse_Waves); ok { + return x.Waves + } } return nil } func (x *BalanceResponse) GetAsset() *waves.Amount { - if x, ok := x.GetBalance().(*BalanceResponse_Asset); ok { - return x.Asset + if x != nil { + if x, ok := x.Balance.(*BalanceResponse_Asset); ok { + return x.Asset + } } return nil } @@ -260,21 +254,18 @@ func (*BalanceResponse_Waves) isBalanceResponse_Balance() {} func (*BalanceResponse_Asset) isBalanceResponse_Balance() {} type DataEntryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Entry *waves.DataEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Entry *waves.DataEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DataEntryResponse) Reset() { *x = DataEntryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataEntryResponse) String() string { @@ -285,7 +276,7 @@ func (*DataEntryResponse) ProtoMessage() {} func (x *DataEntryResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -315,22 +306,19 @@ func (x *DataEntryResponse) GetEntry() *waves.DataEntry { } type ScriptData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ScriptBytes []byte `protobuf:"bytes,1,opt,name=script_bytes,json=scriptBytes,proto3" json:"script_bytes,omitempty"` + ScriptText string `protobuf:"bytes,2,opt,name=script_text,json=scriptText,proto3" json:"script_text,omitempty"` + Complexity int64 `protobuf:"varint,3,opt,name=complexity,proto3" json:"complexity,omitempty"` unknownFields protoimpl.UnknownFields - - ScriptBytes []byte `protobuf:"bytes,1,opt,name=script_bytes,json=scriptBytes,proto3" json:"script_bytes,omitempty"` - ScriptText string `protobuf:"bytes,2,opt,name=script_text,json=scriptText,proto3" json:"script_text,omitempty"` - Complexity int64 `protobuf:"varint,3,opt,name=complexity,proto3" json:"complexity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ScriptData) Reset() { *x = ScriptData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScriptData) String() string { @@ -341,7 +329,7 @@ func (*ScriptData) ProtoMessage() {} func (x *ScriptData) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -378,23 +366,20 @@ func (x *ScriptData) GetComplexity() int64 { } type ScriptResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ScriptBytes []byte `protobuf:"bytes,1,opt,name=script_bytes,json=scriptBytes,proto3" json:"script_bytes,omitempty"` + ScriptText string `protobuf:"bytes,2,opt,name=script_text,json=scriptText,proto3" json:"script_text,omitempty"` + Complexity int64 `protobuf:"varint,3,opt,name=complexity,proto3" json:"complexity,omitempty"` + PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` unknownFields protoimpl.UnknownFields - - ScriptBytes []byte `protobuf:"bytes,1,opt,name=script_bytes,json=scriptBytes,proto3" json:"script_bytes,omitempty"` - ScriptText string `protobuf:"bytes,2,opt,name=script_text,json=scriptText,proto3" json:"script_text,omitempty"` - Complexity int64 `protobuf:"varint,3,opt,name=complexity,proto3" json:"complexity,omitempty"` - PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ScriptResponse) Reset() { *x = ScriptResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScriptResponse) String() string { @@ -405,7 +390,7 @@ func (*ScriptResponse) ProtoMessage() {} func (x *ScriptResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -449,25 +434,22 @@ func (x *ScriptResponse) GetPublicKey() []byte { } type LeaseResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LeaseId []byte `protobuf:"bytes,1,opt,name=leaseId,proto3" json:"leaseId,omitempty"` - OriginTransactionId []byte `protobuf:"bytes,2,opt,name=originTransactionId,proto3" json:"originTransactionId,omitempty"` - Sender []byte `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` - Recipient *waves.Recipient `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"` - Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` - Height int64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + LeaseId []byte `protobuf:"bytes,1,opt,name=leaseId,proto3" json:"leaseId,omitempty"` + OriginTransactionId []byte `protobuf:"bytes,2,opt,name=originTransactionId,proto3" json:"originTransactionId,omitempty"` + Sender []byte `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` + Recipient *waves.Recipient `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"` + Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` + Height int64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LeaseResponse) Reset() { *x = LeaseResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LeaseResponse) String() string { @@ -478,7 +460,7 @@ func (*LeaseResponse) ProtoMessage() {} func (x *LeaseResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -536,25 +518,22 @@ func (x *LeaseResponse) GetHeight() int64 { } type BalanceResponse_WavesBalances struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Regular int64 `protobuf:"varint,1,opt,name=regular,proto3" json:"regular,omitempty"` + Generating int64 `protobuf:"varint,2,opt,name=generating,proto3" json:"generating,omitempty"` + Available int64 `protobuf:"varint,3,opt,name=available,proto3" json:"available,omitempty"` + Effective int64 `protobuf:"varint,4,opt,name=effective,proto3" json:"effective,omitempty"` + LeaseIn int64 `protobuf:"varint,5,opt,name=lease_in,json=leaseIn,proto3" json:"lease_in,omitempty"` + LeaseOut int64 `protobuf:"varint,6,opt,name=lease_out,json=leaseOut,proto3" json:"lease_out,omitempty"` unknownFields protoimpl.UnknownFields - - Regular int64 `protobuf:"varint,1,opt,name=regular,proto3" json:"regular,omitempty"` - Generating int64 `protobuf:"varint,2,opt,name=generating,proto3" json:"generating,omitempty"` - Available int64 `protobuf:"varint,3,opt,name=available,proto3" json:"available,omitempty"` - Effective int64 `protobuf:"varint,4,opt,name=effective,proto3" json:"effective,omitempty"` - LeaseIn int64 `protobuf:"varint,5,opt,name=lease_in,json=leaseIn,proto3" json:"lease_in,omitempty"` - LeaseOut int64 `protobuf:"varint,6,opt,name=lease_out,json=leaseOut,proto3" json:"lease_out,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BalanceResponse_WavesBalances) Reset() { *x = BalanceResponse_WavesBalances{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BalanceResponse_WavesBalances) String() string { @@ -565,7 +544,7 @@ func (*BalanceResponse_WavesBalances) ProtoMessage() {} func (x *BalanceResponse_WavesBalances) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_accounts_api_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -624,134 +603,79 @@ func (x *BalanceResponse_WavesBalances) GetLeaseOut() int64 { var File_waves_node_grpc_accounts_api_proto protoreflect.FileDescriptor -var file_waves_node_grpc_accounts_api_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, - 0x63, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x1a, 0x12, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x15, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, - 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, - 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2a, 0x0a, 0x0e, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x39, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x22, 0x43, 0x0a, 0x0f, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, - 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0xcb, 0x02, 0x0a, 0x0f, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x57, 0x61, 0x76, 0x65, 0x73, - 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x48, 0x00, 0x52, 0x05, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x12, 0x25, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x48, - 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x1a, 0xbd, 0x01, 0x0a, 0x0d, 0x57, 0x61, 0x76, - 0x65, 0x73, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, - 0x67, 0x75, 0x6c, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x72, 0x65, 0x67, - 0x75, 0x6c, 0x61, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, - 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6c, - 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, - 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4f, 0x75, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x22, 0x55, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x26, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x70, 0x0a, 0x0a, 0x53, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x54, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, - 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x22, 0x93, 0x01, 0x0a, - 0x0e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x21, 0x0a, 0x0c, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x42, 0x79, 0x74, - 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x74, 0x65, 0x78, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x54, - 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, - 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, - 0x65, 0x79, 0x22, 0xd3, 0x01, 0x0a, 0x0d, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x64, 0x12, 0x30, - 0x0a, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, - 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x72, - 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x32, 0xa8, 0x03, 0x0a, 0x0b, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x41, 0x70, 0x69, 0x12, 0x53, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x4d, 0x0a, - 0x09, 0x47, 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x1f, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0f, - 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, - 0x1f, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1e, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x30, 0x01, 0x12, 0x54, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, - 0x72, 0x69, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x49, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x42, 0x73, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, - 0x65, 0x2f, 0x67, 0x72, 0x70, 0x63, 0xaa, 0x02, 0x0f, 0x57, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4e, - 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_node_grpc_accounts_api_proto_rawDesc = "" + + "\n" + + "\"waves/node/grpc/accounts_api.proto\x12\x0fwaves.node.grpc\x1a\x12waves/amount.proto\x1a\x17waves/transaction.proto\x1a\x15waves/recipient.proto\x1a\x1egoogle/protobuf/wrappers.proto\"*\n" + + "\x0eAccountRequest\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\"9\n" + + "\vDataRequest\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12\x10\n" + + "\x03key\x18\x02 \x01(\tR\x03key\"C\n" + + "\x0fBalancesRequest\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12\x16\n" + + "\x06assets\x18\x04 \x03(\fR\x06assets\"\xcb\x02\n" + + "\x0fBalanceResponse\x12F\n" + + "\x05waves\x18\x01 \x01(\v2..waves.node.grpc.BalanceResponse.WavesBalancesH\x00R\x05waves\x12%\n" + + "\x05asset\x18\x02 \x01(\v2\r.waves.AmountH\x00R\x05asset\x1a\xbd\x01\n" + + "\rWavesBalances\x12\x18\n" + + "\aregular\x18\x01 \x01(\x03R\aregular\x12\x1e\n" + + "\n" + + "generating\x18\x02 \x01(\x03R\n" + + "generating\x12\x1c\n" + + "\tavailable\x18\x03 \x01(\x03R\tavailable\x12\x1c\n" + + "\teffective\x18\x04 \x01(\x03R\teffective\x12\x19\n" + + "\blease_in\x18\x05 \x01(\x03R\aleaseIn\x12\x1b\n" + + "\tlease_out\x18\x06 \x01(\x03R\bleaseOutB\t\n" + + "\abalance\"U\n" + + "\x11DataEntryResponse\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12&\n" + + "\x05entry\x18\x02 \x01(\v2\x10.waves.DataEntryR\x05entry\"p\n" + + "\n" + + "ScriptData\x12!\n" + + "\fscript_bytes\x18\x01 \x01(\fR\vscriptBytes\x12\x1f\n" + + "\vscript_text\x18\x02 \x01(\tR\n" + + "scriptText\x12\x1e\n" + + "\n" + + "complexity\x18\x03 \x01(\x03R\n" + + "complexity\"\x93\x01\n" + + "\x0eScriptResponse\x12!\n" + + "\fscript_bytes\x18\x01 \x01(\fR\vscriptBytes\x12\x1f\n" + + "\vscript_text\x18\x02 \x01(\tR\n" + + "scriptText\x12\x1e\n" + + "\n" + + "complexity\x18\x03 \x01(\x03R\n" + + "complexity\x12\x1d\n" + + "\n" + + "public_key\x18\x04 \x01(\fR\tpublicKey\"\xd3\x01\n" + + "\rLeaseResponse\x12\x18\n" + + "\aleaseId\x18\x01 \x01(\fR\aleaseId\x120\n" + + "\x13originTransactionId\x18\x02 \x01(\fR\x13originTransactionId\x12\x16\n" + + "\x06sender\x18\x03 \x01(\fR\x06sender\x12.\n" + + "\trecipient\x18\x04 \x01(\v2\x10.waves.RecipientR\trecipient\x12\x16\n" + + "\x06amount\x18\x05 \x01(\x03R\x06amount\x12\x16\n" + + "\x06height\x18\x06 \x01(\x03R\x06height2\xa8\x03\n" + + "\vAccountsApi\x12S\n" + + "\vGetBalances\x12 .waves.node.grpc.BalancesRequest\x1a .waves.node.grpc.BalanceResponse0\x01\x12M\n" + + "\tGetScript\x12\x1f.waves.node.grpc.AccountRequest\x1a\x1f.waves.node.grpc.ScriptResponse\x12T\n" + + "\x0fGetActiveLeases\x12\x1f.waves.node.grpc.AccountRequest\x1a\x1e.waves.node.grpc.LeaseResponse0\x01\x12T\n" + + "\x0eGetDataEntries\x12\x1c.waves.node.grpc.DataRequest\x1a\".waves.node.grpc.DataEntryResponse0\x01\x12I\n" + + "\fResolveAlias\x12\x1c.google.protobuf.StringValue\x1a\x1b.google.protobuf.BytesValueBs\n" + + "\x1acom.wavesplatform.api.grpcZCgithub.com/wavesplatform/gowaves/pkg/grpc/generated/waves/node/grpc\xaa\x02\x0fWaves.Node.Grpcb\x06proto3" var ( file_waves_node_grpc_accounts_api_proto_rawDescOnce sync.Once - file_waves_node_grpc_accounts_api_proto_rawDescData = file_waves_node_grpc_accounts_api_proto_rawDesc + file_waves_node_grpc_accounts_api_proto_rawDescData []byte ) func file_waves_node_grpc_accounts_api_proto_rawDescGZIP() []byte { file_waves_node_grpc_accounts_api_proto_rawDescOnce.Do(func() { - file_waves_node_grpc_accounts_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_node_grpc_accounts_api_proto_rawDescData) + file_waves_node_grpc_accounts_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_node_grpc_accounts_api_proto_rawDesc), len(file_waves_node_grpc_accounts_api_proto_rawDesc))) }) return file_waves_node_grpc_accounts_api_proto_rawDescData } var file_waves_node_grpc_accounts_api_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_waves_node_grpc_accounts_api_proto_goTypes = []interface{}{ +var file_waves_node_grpc_accounts_api_proto_goTypes = []any{ (*AccountRequest)(nil), // 0: waves.node.grpc.AccountRequest (*DataRequest)(nil), // 1: waves.node.grpc.DataRequest (*BalancesRequest)(nil), // 2: waves.node.grpc.BalancesRequest @@ -794,117 +718,7 @@ func file_waves_node_grpc_accounts_api_proto_init() { if File_waves_node_grpc_accounts_api_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_node_grpc_accounts_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccountRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_accounts_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_accounts_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BalancesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_accounts_api_proto_msgTypes[3].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_waves_node_grpc_accounts_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataEntryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_accounts_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScriptData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_accounts_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScriptResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_accounts_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LeaseResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_accounts_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BalanceResponse_WavesBalances); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_waves_node_grpc_accounts_api_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_waves_node_grpc_accounts_api_proto_msgTypes[3].OneofWrappers = []any{ (*BalanceResponse_Waves)(nil), (*BalanceResponse_Asset)(nil), } @@ -912,7 +726,7 @@ func file_waves_node_grpc_accounts_api_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_waves_node_grpc_accounts_api_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_node_grpc_accounts_api_proto_rawDesc), len(file_waves_node_grpc_accounts_api_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, @@ -923,7 +737,6 @@ func file_waves_node_grpc_accounts_api_proto_init() { MessageInfos: file_waves_node_grpc_accounts_api_proto_msgTypes, }.Build() File_waves_node_grpc_accounts_api_proto = out.File - file_waves_node_grpc_accounts_api_proto_rawDesc = nil file_waves_node_grpc_accounts_api_proto_goTypes = nil file_waves_node_grpc_accounts_api_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/node/grpc/accounts_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/accounts_api_grpc.pb.go index ba5bc1d13..ab0b4f166 100644 --- a/pkg/grpc/generated/waves/node/grpc/accounts_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/accounts_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.0 // source: waves/node/grpc/accounts_api.proto package grpc @@ -16,17 +16,25 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + AccountsApi_GetBalances_FullMethodName = "/waves.node.grpc.AccountsApi/GetBalances" + AccountsApi_GetScript_FullMethodName = "/waves.node.grpc.AccountsApi/GetScript" + AccountsApi_GetActiveLeases_FullMethodName = "/waves.node.grpc.AccountsApi/GetActiveLeases" + AccountsApi_GetDataEntries_FullMethodName = "/waves.node.grpc.AccountsApi/GetDataEntries" + AccountsApi_ResolveAlias_FullMethodName = "/waves.node.grpc.AccountsApi/ResolveAlias" +) // AccountsApiClient is the client API for AccountsApi service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type AccountsApiClient interface { - GetBalances(ctx context.Context, in *BalancesRequest, opts ...grpc.CallOption) (AccountsApi_GetBalancesClient, error) + GetBalances(ctx context.Context, in *BalancesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[BalanceResponse], error) GetScript(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*ScriptResponse, error) - GetActiveLeases(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (AccountsApi_GetActiveLeasesClient, error) - GetDataEntries(ctx context.Context, in *DataRequest, opts ...grpc.CallOption) (AccountsApi_GetDataEntriesClient, error) + GetActiveLeases(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LeaseResponse], error) + GetDataEntries(ctx context.Context, in *DataRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DataEntryResponse], error) ResolveAlias(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*wrapperspb.BytesValue, error) } @@ -38,12 +46,13 @@ func NewAccountsApiClient(cc grpc.ClientConnInterface) AccountsApiClient { return &accountsApiClient{cc} } -func (c *accountsApiClient) GetBalances(ctx context.Context, in *BalancesRequest, opts ...grpc.CallOption) (AccountsApi_GetBalancesClient, error) { - stream, err := c.cc.NewStream(ctx, &AccountsApi_ServiceDesc.Streams[0], "/waves.node.grpc.AccountsApi/GetBalances", opts...) +func (c *accountsApiClient) GetBalances(ctx context.Context, in *BalancesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[BalanceResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &AccountsApi_ServiceDesc.Streams[0], AccountsApi_GetBalances_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &accountsApiGetBalancesClient{stream} + x := &grpc.GenericClientStream[BalancesRequest, BalanceResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -53,38 +62,26 @@ func (c *accountsApiClient) GetBalances(ctx context.Context, in *BalancesRequest return x, nil } -type AccountsApi_GetBalancesClient interface { - Recv() (*BalanceResponse, error) - grpc.ClientStream -} - -type accountsApiGetBalancesClient struct { - grpc.ClientStream -} - -func (x *accountsApiGetBalancesClient) Recv() (*BalanceResponse, error) { - m := new(BalanceResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AccountsApi_GetBalancesClient = grpc.ServerStreamingClient[BalanceResponse] func (c *accountsApiClient) GetScript(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*ScriptResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ScriptResponse) - err := c.cc.Invoke(ctx, "/waves.node.grpc.AccountsApi/GetScript", in, out, opts...) + err := c.cc.Invoke(ctx, AccountsApi_GetScript_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *accountsApiClient) GetActiveLeases(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (AccountsApi_GetActiveLeasesClient, error) { - stream, err := c.cc.NewStream(ctx, &AccountsApi_ServiceDesc.Streams[1], "/waves.node.grpc.AccountsApi/GetActiveLeases", opts...) +func (c *accountsApiClient) GetActiveLeases(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LeaseResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &AccountsApi_ServiceDesc.Streams[1], AccountsApi_GetActiveLeases_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &accountsApiGetActiveLeasesClient{stream} + x := &grpc.GenericClientStream[AccountRequest, LeaseResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -94,29 +91,16 @@ func (c *accountsApiClient) GetActiveLeases(ctx context.Context, in *AccountRequ return x, nil } -type AccountsApi_GetActiveLeasesClient interface { - Recv() (*LeaseResponse, error) - grpc.ClientStream -} - -type accountsApiGetActiveLeasesClient struct { - grpc.ClientStream -} - -func (x *accountsApiGetActiveLeasesClient) Recv() (*LeaseResponse, error) { - m := new(LeaseResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AccountsApi_GetActiveLeasesClient = grpc.ServerStreamingClient[LeaseResponse] -func (c *accountsApiClient) GetDataEntries(ctx context.Context, in *DataRequest, opts ...grpc.CallOption) (AccountsApi_GetDataEntriesClient, error) { - stream, err := c.cc.NewStream(ctx, &AccountsApi_ServiceDesc.Streams[2], "/waves.node.grpc.AccountsApi/GetDataEntries", opts...) +func (c *accountsApiClient) GetDataEntries(ctx context.Context, in *DataRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DataEntryResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &AccountsApi_ServiceDesc.Streams[2], AccountsApi_GetDataEntries_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &accountsApiGetDataEntriesClient{stream} + x := &grpc.GenericClientStream[DataRequest, DataEntryResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -126,26 +110,13 @@ func (c *accountsApiClient) GetDataEntries(ctx context.Context, in *DataRequest, return x, nil } -type AccountsApi_GetDataEntriesClient interface { - Recv() (*DataEntryResponse, error) - grpc.ClientStream -} - -type accountsApiGetDataEntriesClient struct { - grpc.ClientStream -} - -func (x *accountsApiGetDataEntriesClient) Recv() (*DataEntryResponse, error) { - m := new(DataEntryResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AccountsApi_GetDataEntriesClient = grpc.ServerStreamingClient[DataEntryResponse] func (c *accountsApiClient) ResolveAlias(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*wrapperspb.BytesValue, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(wrapperspb.BytesValue) - err := c.cc.Invoke(ctx, "/waves.node.grpc.AccountsApi/ResolveAlias", in, out, opts...) + err := c.cc.Invoke(ctx, AccountsApi_ResolveAlias_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -154,34 +125,38 @@ func (c *accountsApiClient) ResolveAlias(ctx context.Context, in *wrapperspb.Str // AccountsApiServer is the server API for AccountsApi service. // All implementations should embed UnimplementedAccountsApiServer -// for forward compatibility +// for forward compatibility. type AccountsApiServer interface { - GetBalances(*BalancesRequest, AccountsApi_GetBalancesServer) error + GetBalances(*BalancesRequest, grpc.ServerStreamingServer[BalanceResponse]) error GetScript(context.Context, *AccountRequest) (*ScriptResponse, error) - GetActiveLeases(*AccountRequest, AccountsApi_GetActiveLeasesServer) error - GetDataEntries(*DataRequest, AccountsApi_GetDataEntriesServer) error + GetActiveLeases(*AccountRequest, grpc.ServerStreamingServer[LeaseResponse]) error + GetDataEntries(*DataRequest, grpc.ServerStreamingServer[DataEntryResponse]) error ResolveAlias(context.Context, *wrapperspb.StringValue) (*wrapperspb.BytesValue, error) } -// UnimplementedAccountsApiServer should be embedded to have forward compatible implementations. -type UnimplementedAccountsApiServer struct { -} +// UnimplementedAccountsApiServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAccountsApiServer struct{} -func (UnimplementedAccountsApiServer) GetBalances(*BalancesRequest, AccountsApi_GetBalancesServer) error { +func (UnimplementedAccountsApiServer) GetBalances(*BalancesRequest, grpc.ServerStreamingServer[BalanceResponse]) error { return status.Errorf(codes.Unimplemented, "method GetBalances not implemented") } func (UnimplementedAccountsApiServer) GetScript(context.Context, *AccountRequest) (*ScriptResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetScript not implemented") } -func (UnimplementedAccountsApiServer) GetActiveLeases(*AccountRequest, AccountsApi_GetActiveLeasesServer) error { +func (UnimplementedAccountsApiServer) GetActiveLeases(*AccountRequest, grpc.ServerStreamingServer[LeaseResponse]) error { return status.Errorf(codes.Unimplemented, "method GetActiveLeases not implemented") } -func (UnimplementedAccountsApiServer) GetDataEntries(*DataRequest, AccountsApi_GetDataEntriesServer) error { +func (UnimplementedAccountsApiServer) GetDataEntries(*DataRequest, grpc.ServerStreamingServer[DataEntryResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDataEntries not implemented") } func (UnimplementedAccountsApiServer) ResolveAlias(context.Context, *wrapperspb.StringValue) (*wrapperspb.BytesValue, error) { return nil, status.Errorf(codes.Unimplemented, "method ResolveAlias not implemented") } +func (UnimplementedAccountsApiServer) testEmbeddedByValue() {} // UnsafeAccountsApiServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AccountsApiServer will @@ -191,6 +166,13 @@ type UnsafeAccountsApiServer interface { } func RegisterAccountsApiServer(s grpc.ServiceRegistrar, srv AccountsApiServer) { + // If the following call pancis, it indicates UnimplementedAccountsApiServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AccountsApi_ServiceDesc, srv) } @@ -199,21 +181,11 @@ func _AccountsApi_GetBalances_Handler(srv interface{}, stream grpc.ServerStream) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(AccountsApiServer).GetBalances(m, &accountsApiGetBalancesServer{stream}) + return srv.(AccountsApiServer).GetBalances(m, &grpc.GenericServerStream[BalancesRequest, BalanceResponse]{ServerStream: stream}) } -type AccountsApi_GetBalancesServer interface { - Send(*BalanceResponse) error - grpc.ServerStream -} - -type accountsApiGetBalancesServer struct { - grpc.ServerStream -} - -func (x *accountsApiGetBalancesServer) Send(m *BalanceResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AccountsApi_GetBalancesServer = grpc.ServerStreamingServer[BalanceResponse] func _AccountsApi_GetScript_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AccountRequest) @@ -225,7 +197,7 @@ func _AccountsApi_GetScript_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.AccountsApi/GetScript", + FullMethod: AccountsApi_GetScript_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountsApiServer).GetScript(ctx, req.(*AccountRequest)) @@ -238,42 +210,22 @@ func _AccountsApi_GetActiveLeases_Handler(srv interface{}, stream grpc.ServerStr if err := stream.RecvMsg(m); err != nil { return err } - return srv.(AccountsApiServer).GetActiveLeases(m, &accountsApiGetActiveLeasesServer{stream}) + return srv.(AccountsApiServer).GetActiveLeases(m, &grpc.GenericServerStream[AccountRequest, LeaseResponse]{ServerStream: stream}) } -type AccountsApi_GetActiveLeasesServer interface { - Send(*LeaseResponse) error - grpc.ServerStream -} - -type accountsApiGetActiveLeasesServer struct { - grpc.ServerStream -} - -func (x *accountsApiGetActiveLeasesServer) Send(m *LeaseResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AccountsApi_GetActiveLeasesServer = grpc.ServerStreamingServer[LeaseResponse] func _AccountsApi_GetDataEntries_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(DataRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(AccountsApiServer).GetDataEntries(m, &accountsApiGetDataEntriesServer{stream}) + return srv.(AccountsApiServer).GetDataEntries(m, &grpc.GenericServerStream[DataRequest, DataEntryResponse]{ServerStream: stream}) } -type AccountsApi_GetDataEntriesServer interface { - Send(*DataEntryResponse) error - grpc.ServerStream -} - -type accountsApiGetDataEntriesServer struct { - grpc.ServerStream -} - -func (x *accountsApiGetDataEntriesServer) Send(m *DataEntryResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AccountsApi_GetDataEntriesServer = grpc.ServerStreamingServer[DataEntryResponse] func _AccountsApi_ResolveAlias_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(wrapperspb.StringValue) @@ -285,7 +237,7 @@ func _AccountsApi_ResolveAlias_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.AccountsApi/ResolveAlias", + FullMethod: AccountsApi_ResolveAlias_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountsApiServer).ResolveAlias(ctx, req.(*wrapperspb.StringValue)) diff --git a/pkg/grpc/generated/waves/node/grpc/assets_api.pb.go b/pkg/grpc/generated/waves/node/grpc/assets_api.pb.go index 7e405e023..d276de131 100644 --- a/pkg/grpc/generated/waves/node/grpc/assets_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/assets_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/node/grpc/assets_api.proto package grpc @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,20 +23,17 @@ const ( ) type AssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AssetRequest) Reset() { *x = AssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_assets_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_assets_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetRequest) String() string { @@ -46,7 +44,7 @@ func (*AssetRequest) ProtoMessage() {} func (x *AssetRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_assets_api_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -69,22 +67,19 @@ func (x *AssetRequest) GetAssetId() []byte { } type NFTRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + AfterAssetId []byte `protobuf:"bytes,3,opt,name=after_asset_id,json=afterAssetId,proto3" json:"after_asset_id,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - AfterAssetId []byte `protobuf:"bytes,3,opt,name=after_asset_id,json=afterAssetId,proto3" json:"after_asset_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NFTRequest) Reset() { *x = NFTRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_assets_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_assets_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NFTRequest) String() string { @@ -95,7 +90,7 @@ func (*NFTRequest) ProtoMessage() {} func (x *NFTRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_assets_api_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -132,21 +127,18 @@ func (x *NFTRequest) GetAfterAssetId() []byte { } type NFTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + AssetInfo *AssetInfoResponse `protobuf:"bytes,2,opt,name=asset_info,json=assetInfo,proto3" json:"asset_info,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - AssetInfo *AssetInfoResponse `protobuf:"bytes,2,opt,name=asset_info,json=assetInfo,proto3" json:"asset_info,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NFTResponse) Reset() { *x = NFTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_assets_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_assets_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NFTResponse) String() string { @@ -157,7 +149,7 @@ func (*NFTResponse) ProtoMessage() {} func (x *NFTResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_assets_api_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -187,10 +179,7 @@ func (x *NFTResponse) GetAssetInfo() *AssetInfoResponse { } type AssetInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Issuer []byte `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` @@ -203,15 +192,15 @@ type AssetInfoResponse struct { SponsorBalance int64 `protobuf:"varint,10,opt,name=sponsor_balance,json=sponsorBalance,proto3" json:"sponsor_balance,omitempty"` SequenceInBlock int32 `protobuf:"varint,12,opt,name=sequence_in_block,json=sequenceInBlock,proto3" json:"sequence_in_block,omitempty"` IssueHeight int32 `protobuf:"varint,13,opt,name=issue_height,json=issueHeight,proto3" json:"issue_height,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AssetInfoResponse) Reset() { *x = AssetInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_assets_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_assets_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetInfoResponse) String() string { @@ -222,7 +211,7 @@ func (*AssetInfoResponse) ProtoMessage() {} func (x *AssetInfoResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_assets_api_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -323,94 +312,56 @@ func (x *AssetInfoResponse) GetIssueHeight() int32 { var File_waves_node_grpc_assets_api_proto protoreflect.FileDescriptor -var file_waves_node_grpc_assets_api_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, - 0x63, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x1a, 0x17, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x29, 0x0a, 0x0c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0x62, 0x0a, 0x0a, 0x4e, - 0x46, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x66, 0x74, - 0x65, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0c, 0x61, 0x66, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, - 0x6b, 0x0a, 0x0b, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, - 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0a, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x52, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xd6, 0x03, 0x0a, - 0x11, 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x1e, 0x0a, 0x0a, - 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0a, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, - 0x33, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x06, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x73, - 0x68, 0x69, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x6f, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x45, 0x0a, 0x11, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, - 0x0f, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, - 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x32, 0xa4, 0x01, 0x0a, 0x09, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x41, 0x70, 0x69, 0x12, 0x4c, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4e, 0x46, 0x54, 0x4c, 0x69, 0x73, 0x74, 0x12, - 0x1b, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x4e, 0x46, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4e, - 0x46, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x73, 0x0a, 0x1a, - 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, - 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, 0x63, 0xaa, - 0x02, 0x0f, 0x57, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x72, 0x70, - 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_node_grpc_assets_api_proto_rawDesc = "" + + "\n" + + " waves/node/grpc/assets_api.proto\x12\x0fwaves.node.grpc\x1a\x17waves/transaction.proto\x1a\"waves/node/grpc/accounts_api.proto\")\n" + + "\fAssetRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\"b\n" + + "\n" + + "NFTRequest\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12\x14\n" + + "\x05limit\x18\x02 \x01(\x05R\x05limit\x12$\n" + + "\x0eafter_asset_id\x18\x03 \x01(\fR\fafterAssetId\"k\n" + + "\vNFTResponse\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12A\n" + + "\n" + + "asset_info\x18\x02 \x01(\v2\".waves.node.grpc.AssetInfoResponseR\tassetInfo\"\xd6\x03\n" + + "\x11AssetInfoResponse\x12\x16\n" + + "\x06issuer\x18\x01 \x01(\fR\x06issuer\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1a\n" + + "\bdecimals\x18\x04 \x01(\x05R\bdecimals\x12\x1e\n" + + "\n" + + "reissuable\x18\x05 \x01(\bR\n" + + "reissuable\x12!\n" + + "\ftotal_volume\x18\x06 \x01(\x03R\vtotalVolume\x123\n" + + "\x06script\x18\a \x01(\v2\x1b.waves.node.grpc.ScriptDataR\x06script\x12 \n" + + "\vsponsorship\x18\b \x01(\x03R\vsponsorship\x12E\n" + + "\x11issue_transaction\x18\v \x01(\v2\x18.waves.SignedTransactionR\x10issueTransaction\x12'\n" + + "\x0fsponsor_balance\x18\n" + + " \x01(\x03R\x0esponsorBalance\x12*\n" + + "\x11sequence_in_block\x18\f \x01(\x05R\x0fsequenceInBlock\x12!\n" + + "\fissue_height\x18\r \x01(\x05R\vissueHeight2\xa4\x01\n" + + "\tAssetsApi\x12L\n" + + "\aGetInfo\x12\x1d.waves.node.grpc.AssetRequest\x1a\".waves.node.grpc.AssetInfoResponse\x12I\n" + + "\n" + + "GetNFTList\x12\x1b.waves.node.grpc.NFTRequest\x1a\x1c.waves.node.grpc.NFTResponse0\x01Bs\n" + + "\x1acom.wavesplatform.api.grpcZCgithub.com/wavesplatform/gowaves/pkg/grpc/generated/waves/node/grpc\xaa\x02\x0fWaves.Node.Grpcb\x06proto3" var ( file_waves_node_grpc_assets_api_proto_rawDescOnce sync.Once - file_waves_node_grpc_assets_api_proto_rawDescData = file_waves_node_grpc_assets_api_proto_rawDesc + file_waves_node_grpc_assets_api_proto_rawDescData []byte ) func file_waves_node_grpc_assets_api_proto_rawDescGZIP() []byte { file_waves_node_grpc_assets_api_proto_rawDescOnce.Do(func() { - file_waves_node_grpc_assets_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_node_grpc_assets_api_proto_rawDescData) + file_waves_node_grpc_assets_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_node_grpc_assets_api_proto_rawDesc), len(file_waves_node_grpc_assets_api_proto_rawDesc))) }) return file_waves_node_grpc_assets_api_proto_rawDescData } var file_waves_node_grpc_assets_api_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_waves_node_grpc_assets_api_proto_goTypes = []interface{}{ +var file_waves_node_grpc_assets_api_proto_goTypes = []any{ (*AssetRequest)(nil), // 0: waves.node.grpc.AssetRequest (*NFTRequest)(nil), // 1: waves.node.grpc.NFTRequest (*NFTResponse)(nil), // 2: waves.node.grpc.NFTResponse @@ -439,61 +390,11 @@ func file_waves_node_grpc_assets_api_proto_init() { return } file_waves_node_grpc_accounts_api_proto_init() - if !protoimpl.UnsafeEnabled { - file_waves_node_grpc_assets_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_assets_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NFTRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_assets_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NFTResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_assets_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetInfoResponse); 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_waves_node_grpc_assets_api_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_node_grpc_assets_api_proto_rawDesc), len(file_waves_node_grpc_assets_api_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 0, @@ -504,7 +405,6 @@ func file_waves_node_grpc_assets_api_proto_init() { MessageInfos: file_waves_node_grpc_assets_api_proto_msgTypes, }.Build() File_waves_node_grpc_assets_api_proto = out.File - file_waves_node_grpc_assets_api_proto_rawDesc = nil file_waves_node_grpc_assets_api_proto_goTypes = nil file_waves_node_grpc_assets_api_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/node/grpc/assets_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/assets_api_grpc.pb.go index 15cfae734..534aebb6f 100644 --- a/pkg/grpc/generated/waves/node/grpc/assets_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/assets_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.0 // source: waves/node/grpc/assets_api.proto package grpc @@ -15,15 +15,20 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + AssetsApi_GetInfo_FullMethodName = "/waves.node.grpc.AssetsApi/GetInfo" + AssetsApi_GetNFTList_FullMethodName = "/waves.node.grpc.AssetsApi/GetNFTList" +) // AssetsApiClient is the client API for AssetsApi service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type AssetsApiClient interface { GetInfo(ctx context.Context, in *AssetRequest, opts ...grpc.CallOption) (*AssetInfoResponse, error) - GetNFTList(ctx context.Context, in *NFTRequest, opts ...grpc.CallOption) (AssetsApi_GetNFTListClient, error) + GetNFTList(ctx context.Context, in *NFTRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[NFTResponse], error) } type assetsApiClient struct { @@ -35,20 +40,22 @@ func NewAssetsApiClient(cc grpc.ClientConnInterface) AssetsApiClient { } func (c *assetsApiClient) GetInfo(ctx context.Context, in *AssetRequest, opts ...grpc.CallOption) (*AssetInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetInfoResponse) - err := c.cc.Invoke(ctx, "/waves.node.grpc.AssetsApi/GetInfo", in, out, opts...) + err := c.cc.Invoke(ctx, AssetsApi_GetInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *assetsApiClient) GetNFTList(ctx context.Context, in *NFTRequest, opts ...grpc.CallOption) (AssetsApi_GetNFTListClient, error) { - stream, err := c.cc.NewStream(ctx, &AssetsApi_ServiceDesc.Streams[0], "/waves.node.grpc.AssetsApi/GetNFTList", opts...) +func (c *assetsApiClient) GetNFTList(ctx context.Context, in *NFTRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[NFTResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &AssetsApi_ServiceDesc.Streams[0], AssetsApi_GetNFTList_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &assetsApiGetNFTListClient{stream} + x := &grpc.GenericClientStream[NFTRequest, NFTResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -58,41 +65,31 @@ func (c *assetsApiClient) GetNFTList(ctx context.Context, in *NFTRequest, opts . return x, nil } -type AssetsApi_GetNFTListClient interface { - Recv() (*NFTResponse, error) - grpc.ClientStream -} - -type assetsApiGetNFTListClient struct { - grpc.ClientStream -} - -func (x *assetsApiGetNFTListClient) Recv() (*NFTResponse, error) { - m := new(NFTResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AssetsApi_GetNFTListClient = grpc.ServerStreamingClient[NFTResponse] // AssetsApiServer is the server API for AssetsApi service. // All implementations should embed UnimplementedAssetsApiServer -// for forward compatibility +// for forward compatibility. type AssetsApiServer interface { GetInfo(context.Context, *AssetRequest) (*AssetInfoResponse, error) - GetNFTList(*NFTRequest, AssetsApi_GetNFTListServer) error + GetNFTList(*NFTRequest, grpc.ServerStreamingServer[NFTResponse]) error } -// UnimplementedAssetsApiServer should be embedded to have forward compatible implementations. -type UnimplementedAssetsApiServer struct { -} +// UnimplementedAssetsApiServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAssetsApiServer struct{} func (UnimplementedAssetsApiServer) GetInfo(context.Context, *AssetRequest) (*AssetInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented") } -func (UnimplementedAssetsApiServer) GetNFTList(*NFTRequest, AssetsApi_GetNFTListServer) error { +func (UnimplementedAssetsApiServer) GetNFTList(*NFTRequest, grpc.ServerStreamingServer[NFTResponse]) error { return status.Errorf(codes.Unimplemented, "method GetNFTList not implemented") } +func (UnimplementedAssetsApiServer) testEmbeddedByValue() {} // UnsafeAssetsApiServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AssetsApiServer will @@ -102,6 +99,13 @@ type UnsafeAssetsApiServer interface { } func RegisterAssetsApiServer(s grpc.ServiceRegistrar, srv AssetsApiServer) { + // If the following call pancis, it indicates UnimplementedAssetsApiServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AssetsApi_ServiceDesc, srv) } @@ -115,7 +119,7 @@ func _AssetsApi_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.AssetsApi/GetInfo", + FullMethod: AssetsApi_GetInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AssetsApiServer).GetInfo(ctx, req.(*AssetRequest)) @@ -128,21 +132,11 @@ func _AssetsApi_GetNFTList_Handler(srv interface{}, stream grpc.ServerStream) er if err := stream.RecvMsg(m); err != nil { return err } - return srv.(AssetsApiServer).GetNFTList(m, &assetsApiGetNFTListServer{stream}) -} - -type AssetsApi_GetNFTListServer interface { - Send(*NFTResponse) error - grpc.ServerStream -} - -type assetsApiGetNFTListServer struct { - grpc.ServerStream + return srv.(AssetsApiServer).GetNFTList(m, &grpc.GenericServerStream[NFTRequest, NFTResponse]{ServerStream: stream}) } -func (x *assetsApiGetNFTListServer) Send(m *NFTResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AssetsApi_GetNFTListServer = grpc.ServerStreamingServer[NFTResponse] // AssetsApi_ServiceDesc is the grpc.ServiceDesc for AssetsApi service. // It's only intended for direct use with grpc.RegisterService, diff --git a/pkg/grpc/generated/waves/node/grpc/blockchain_api.pb.go b/pkg/grpc/generated/waves/node/grpc/blockchain_api.pb.go index 4d169a564..fff0545fe 100644 --- a/pkg/grpc/generated/waves/node/grpc/blockchain_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/blockchain_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/node/grpc/blockchain_api.proto package grpc @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -120,20 +121,17 @@ func (FeatureActivationStatus_NodeFeatureStatus) EnumDescriptor() ([]byte, []int } type ActivationStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` unknownFields protoimpl.UnknownFields - - Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ActivationStatusRequest) Reset() { *x = ActivationStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivationStatusRequest) String() string { @@ -144,7 +142,7 @@ func (*ActivationStatusRequest) ProtoMessage() {} func (x *ActivationStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -167,24 +165,21 @@ func (x *ActivationStatusRequest) GetHeight() int32 { } type ActivationStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` VotingInterval int32 `protobuf:"varint,2,opt,name=voting_interval,json=votingInterval,proto3" json:"voting_interval,omitempty"` VotingThreshold int32 `protobuf:"varint,3,opt,name=voting_threshold,json=votingThreshold,proto3" json:"voting_threshold,omitempty"` NextCheck int32 `protobuf:"varint,4,opt,name=next_check,json=nextCheck,proto3" json:"next_check,omitempty"` Features []*FeatureActivationStatus `protobuf:"bytes,5,rep,name=features,proto3" json:"features,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ActivationStatusResponse) Reset() { *x = ActivationStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivationStatusResponse) String() string { @@ -195,7 +190,7 @@ func (*ActivationStatusResponse) ProtoMessage() {} func (x *ActivationStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -246,25 +241,22 @@ func (x *ActivationStatusResponse) GetFeatures() []*FeatureActivationStatus { } type FeatureActivationStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` BlockchainStatus FeatureActivationStatus_BlockchainFeatureStatus `protobuf:"varint,3,opt,name=blockchain_status,json=blockchainStatus,proto3,enum=waves.node.grpc.FeatureActivationStatus_BlockchainFeatureStatus" json:"blockchain_status,omitempty"` NodeStatus FeatureActivationStatus_NodeFeatureStatus `protobuf:"varint,4,opt,name=node_status,json=nodeStatus,proto3,enum=waves.node.grpc.FeatureActivationStatus_NodeFeatureStatus" json:"node_status,omitempty"` ActivationHeight int32 `protobuf:"varint,5,opt,name=activation_height,json=activationHeight,proto3" json:"activation_height,omitempty"` SupportingBlocks int32 `protobuf:"varint,6,opt,name=supporting_blocks,json=supportingBlocks,proto3" json:"supporting_blocks,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FeatureActivationStatus) Reset() { *x = FeatureActivationStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeatureActivationStatus) String() string { @@ -275,7 +267,7 @@ func (*FeatureActivationStatus) ProtoMessage() {} func (x *FeatureActivationStatus) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -333,20 +325,17 @@ func (x *FeatureActivationStatus) GetSupportingBlocks() int32 { } type BaseTargetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BaseTarget int64 `protobuf:"varint,1,opt,name=base_target,json=baseTarget,proto3" json:"base_target,omitempty"` unknownFields protoimpl.UnknownFields - - BaseTarget int64 `protobuf:"varint,1,opt,name=base_target,json=baseTarget,proto3" json:"base_target,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BaseTargetResponse) Reset() { *x = BaseTargetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BaseTargetResponse) String() string { @@ -357,7 +346,7 @@ func (*BaseTargetResponse) ProtoMessage() {} func (x *BaseTargetResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -380,20 +369,17 @@ func (x *BaseTargetResponse) GetBaseTarget() int64 { } type ScoreResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Score []byte `protobuf:"bytes,1,opt,name=score,proto3" json:"score,omitempty"` // BigInt unknownFields protoimpl.UnknownFields - - Score []byte `protobuf:"bytes,1,opt,name=score,proto3" json:"score,omitempty"` // BigInt + sizeCache protoimpl.SizeCache } func (x *ScoreResponse) Reset() { *x = ScoreResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScoreResponse) String() string { @@ -404,7 +390,7 @@ func (*ScoreResponse) ProtoMessage() {} func (x *ScoreResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_blockchain_api_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -428,111 +414,60 @@ func (x *ScoreResponse) GetScore() []byte { var File_waves_node_grpc_blockchain_api_proto protoreflect.FileDescriptor -var file_waves_node_grpc_blockchain_api_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, - 0x63, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x70, 0x69, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x31, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xeb, 0x01, 0x0a, 0x18, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x27, 0x0a, 0x0f, - 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x29, 0x0a, 0x10, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x5f, - 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0f, 0x76, 0x6f, 0x74, 0x69, 0x6e, 0x67, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, - 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, - 0x44, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x08, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0xfe, 0x03, 0x0a, 0x17, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x6d, 0x0a, 0x11, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x40, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x10, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x5b, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x2b, 0x0a, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2b, 0x0a, 0x11, - 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, - 0x69, 0x6e, 0x67, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x22, 0x45, 0x0a, 0x17, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, - 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, - 0x22, 0x44, 0x0a, 0x11, 0x4e, 0x6f, 0x64, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4d, 0x50, - 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4d, - 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x56, - 0x4f, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x35, 0x0a, 0x12, 0x42, 0x61, 0x73, 0x65, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, - 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x25, 0x0a, - 0x0d, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, - 0x63, 0x6f, 0x72, 0x65, 0x32, 0x97, 0x02, 0x0a, 0x0d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x41, 0x70, 0x69, 0x12, 0x6a, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x23, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x61, - 0x73, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4c, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, - 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x73, - 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x5a, 0x43, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, - 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, - 0x63, 0xaa, 0x02, 0x0f, 0x57, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x47, - 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_node_grpc_blockchain_api_proto_rawDesc = "" + + "\n" + + "$waves/node/grpc/blockchain_api.proto\x12\x0fwaves.node.grpc\x1a\x1bgoogle/protobuf/empty.proto\"1\n" + + "\x17ActivationStatusRequest\x12\x16\n" + + "\x06height\x18\x01 \x01(\x05R\x06height\"\xeb\x01\n" + + "\x18ActivationStatusResponse\x12\x16\n" + + "\x06height\x18\x01 \x01(\x05R\x06height\x12'\n" + + "\x0fvoting_interval\x18\x02 \x01(\x05R\x0evotingInterval\x12)\n" + + "\x10voting_threshold\x18\x03 \x01(\x05R\x0fvotingThreshold\x12\x1d\n" + + "\n" + + "next_check\x18\x04 \x01(\x05R\tnextCheck\x12D\n" + + "\bfeatures\x18\x05 \x03(\v2(.waves.node.grpc.FeatureActivationStatusR\bfeatures\"\xfe\x03\n" + + "\x17FeatureActivationStatus\x12\x0e\n" + + "\x02id\x18\x01 \x01(\x05R\x02id\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12m\n" + + "\x11blockchain_status\x18\x03 \x01(\x0e2@.waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatusR\x10blockchainStatus\x12[\n" + + "\vnode_status\x18\x04 \x01(\x0e2:.waves.node.grpc.FeatureActivationStatus.NodeFeatureStatusR\n" + + "nodeStatus\x12+\n" + + "\x11activation_height\x18\x05 \x01(\x05R\x10activationHeight\x12+\n" + + "\x11supporting_blocks\x18\x06 \x01(\x05R\x10supportingBlocks\"E\n" + + "\x17BlockchainFeatureStatus\x12\r\n" + + "\tUNDEFINED\x10\x00\x12\f\n" + + "\bAPPROVED\x10\x01\x12\r\n" + + "\tACTIVATED\x10\x02\"D\n" + + "\x11NodeFeatureStatus\x12\x13\n" + + "\x0fNOT_IMPLEMENTED\x10\x00\x12\x0f\n" + + "\vIMPLEMENTED\x10\x01\x12\t\n" + + "\x05VOTED\x10\x02\"5\n" + + "\x12BaseTargetResponse\x12\x1f\n" + + "\vbase_target\x18\x01 \x01(\x03R\n" + + "baseTarget\"%\n" + + "\rScoreResponse\x12\x14\n" + + "\x05score\x18\x01 \x01(\fR\x05score2\x97\x02\n" + + "\rBlockchainApi\x12j\n" + + "\x13GetActivationStatus\x12(.waves.node.grpc.ActivationStatusRequest\x1a).waves.node.grpc.ActivationStatusResponse\x12L\n" + + "\rGetBaseTarget\x12\x16.google.protobuf.Empty\x1a#.waves.node.grpc.BaseTargetResponse\x12L\n" + + "\x12GetCumulativeScore\x12\x16.google.protobuf.Empty\x1a\x1e.waves.node.grpc.ScoreResponseBs\n" + + "\x1acom.wavesplatform.api.grpcZCgithub.com/wavesplatform/gowaves/pkg/grpc/generated/waves/node/grpc\xaa\x02\x0fWaves.Node.Grpcb\x06proto3" var ( file_waves_node_grpc_blockchain_api_proto_rawDescOnce sync.Once - file_waves_node_grpc_blockchain_api_proto_rawDescData = file_waves_node_grpc_blockchain_api_proto_rawDesc + file_waves_node_grpc_blockchain_api_proto_rawDescData []byte ) func file_waves_node_grpc_blockchain_api_proto_rawDescGZIP() []byte { file_waves_node_grpc_blockchain_api_proto_rawDescOnce.Do(func() { - file_waves_node_grpc_blockchain_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_node_grpc_blockchain_api_proto_rawDescData) + file_waves_node_grpc_blockchain_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_node_grpc_blockchain_api_proto_rawDesc), len(file_waves_node_grpc_blockchain_api_proto_rawDesc))) }) return file_waves_node_grpc_blockchain_api_proto_rawDescData } var file_waves_node_grpc_blockchain_api_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_waves_node_grpc_blockchain_api_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_waves_node_grpc_blockchain_api_proto_goTypes = []interface{}{ +var file_waves_node_grpc_blockchain_api_proto_goTypes = []any{ (FeatureActivationStatus_BlockchainFeatureStatus)(0), // 0: waves.node.grpc.FeatureActivationStatus.BlockchainFeatureStatus (FeatureActivationStatus_NodeFeatureStatus)(0), // 1: waves.node.grpc.FeatureActivationStatus.NodeFeatureStatus (*ActivationStatusRequest)(nil), // 2: waves.node.grpc.ActivationStatusRequest @@ -564,73 +499,11 @@ func file_waves_node_grpc_blockchain_api_proto_init() { if File_waves_node_grpc_blockchain_api_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_node_grpc_blockchain_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_blockchain_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivationStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_blockchain_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FeatureActivationStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_blockchain_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BaseTargetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_blockchain_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScoreResponse); 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_waves_node_grpc_blockchain_api_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_node_grpc_blockchain_api_proto_rawDesc), len(file_waves_node_grpc_blockchain_api_proto_rawDesc)), NumEnums: 2, NumMessages: 5, NumExtensions: 0, @@ -642,7 +515,6 @@ func file_waves_node_grpc_blockchain_api_proto_init() { MessageInfos: file_waves_node_grpc_blockchain_api_proto_msgTypes, }.Build() File_waves_node_grpc_blockchain_api_proto = out.File - file_waves_node_grpc_blockchain_api_proto_rawDesc = nil file_waves_node_grpc_blockchain_api_proto_goTypes = nil file_waves_node_grpc_blockchain_api_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/node/grpc/blockchain_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/blockchain_api_grpc.pb.go index 25badd519..f12fa4fad 100644 --- a/pkg/grpc/generated/waves/node/grpc/blockchain_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/blockchain_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.0 // source: waves/node/grpc/blockchain_api.proto package grpc @@ -16,8 +16,14 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + BlockchainApi_GetActivationStatus_FullMethodName = "/waves.node.grpc.BlockchainApi/GetActivationStatus" + BlockchainApi_GetBaseTarget_FullMethodName = "/waves.node.grpc.BlockchainApi/GetBaseTarget" + BlockchainApi_GetCumulativeScore_FullMethodName = "/waves.node.grpc.BlockchainApi/GetCumulativeScore" +) // BlockchainApiClient is the client API for BlockchainApi service. // @@ -37,8 +43,9 @@ func NewBlockchainApiClient(cc grpc.ClientConnInterface) BlockchainApiClient { } func (c *blockchainApiClient) GetActivationStatus(ctx context.Context, in *ActivationStatusRequest, opts ...grpc.CallOption) (*ActivationStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ActivationStatusResponse) - err := c.cc.Invoke(ctx, "/waves.node.grpc.BlockchainApi/GetActivationStatus", in, out, opts...) + err := c.cc.Invoke(ctx, BlockchainApi_GetActivationStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -46,8 +53,9 @@ func (c *blockchainApiClient) GetActivationStatus(ctx context.Context, in *Activ } func (c *blockchainApiClient) GetBaseTarget(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BaseTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BaseTargetResponse) - err := c.cc.Invoke(ctx, "/waves.node.grpc.BlockchainApi/GetBaseTarget", in, out, opts...) + err := c.cc.Invoke(ctx, BlockchainApi_GetBaseTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +63,9 @@ func (c *blockchainApiClient) GetBaseTarget(ctx context.Context, in *emptypb.Emp } func (c *blockchainApiClient) GetCumulativeScore(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ScoreResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ScoreResponse) - err := c.cc.Invoke(ctx, "/waves.node.grpc.BlockchainApi/GetCumulativeScore", in, out, opts...) + err := c.cc.Invoke(ctx, BlockchainApi_GetCumulativeScore_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -65,16 +74,19 @@ func (c *blockchainApiClient) GetCumulativeScore(ctx context.Context, in *emptyp // BlockchainApiServer is the server API for BlockchainApi service. // All implementations should embed UnimplementedBlockchainApiServer -// for forward compatibility +// for forward compatibility. type BlockchainApiServer interface { GetActivationStatus(context.Context, *ActivationStatusRequest) (*ActivationStatusResponse, error) GetBaseTarget(context.Context, *emptypb.Empty) (*BaseTargetResponse, error) GetCumulativeScore(context.Context, *emptypb.Empty) (*ScoreResponse, error) } -// UnimplementedBlockchainApiServer should be embedded to have forward compatible implementations. -type UnimplementedBlockchainApiServer struct { -} +// UnimplementedBlockchainApiServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedBlockchainApiServer struct{} func (UnimplementedBlockchainApiServer) GetActivationStatus(context.Context, *ActivationStatusRequest) (*ActivationStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetActivationStatus not implemented") @@ -85,6 +97,7 @@ func (UnimplementedBlockchainApiServer) GetBaseTarget(context.Context, *emptypb. func (UnimplementedBlockchainApiServer) GetCumulativeScore(context.Context, *emptypb.Empty) (*ScoreResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCumulativeScore not implemented") } +func (UnimplementedBlockchainApiServer) testEmbeddedByValue() {} // UnsafeBlockchainApiServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BlockchainApiServer will @@ -94,6 +107,13 @@ type UnsafeBlockchainApiServer interface { } func RegisterBlockchainApiServer(s grpc.ServiceRegistrar, srv BlockchainApiServer) { + // If the following call pancis, it indicates UnimplementedBlockchainApiServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&BlockchainApi_ServiceDesc, srv) } @@ -107,7 +127,7 @@ func _BlockchainApi_GetActivationStatus_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.BlockchainApi/GetActivationStatus", + FullMethod: BlockchainApi_GetActivationStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BlockchainApiServer).GetActivationStatus(ctx, req.(*ActivationStatusRequest)) @@ -125,7 +145,7 @@ func _BlockchainApi_GetBaseTarget_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.BlockchainApi/GetBaseTarget", + FullMethod: BlockchainApi_GetBaseTarget_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BlockchainApiServer).GetBaseTarget(ctx, req.(*emptypb.Empty)) @@ -143,7 +163,7 @@ func _BlockchainApi_GetCumulativeScore_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.BlockchainApi/GetCumulativeScore", + FullMethod: BlockchainApi_GetCumulativeScore_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BlockchainApiServer).GetCumulativeScore(ctx, req.(*emptypb.Empty)) diff --git a/pkg/grpc/generated/waves/node/grpc/blocks_api.pb.go b/pkg/grpc/generated/waves/node/grpc/blocks_api.pb.go index 7f1e8242e..c9b9ac928 100644 --- a/pkg/grpc/generated/waves/node/grpc/blocks_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/blocks_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/node/grpc/blocks_api.proto package grpc @@ -14,6 +14,7 @@ import ( wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -24,24 +25,22 @@ const ( ) type BlockRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Request: + // // *BlockRequest_BlockId // *BlockRequest_Height Request isBlockRequest_Request `protobuf_oneof:"request"` IncludeTransactions bool `protobuf:"varint,100,opt,name=include_transactions,json=includeTransactions,proto3" json:"include_transactions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BlockRequest) Reset() { *x = BlockRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockRequest) String() string { @@ -52,7 +51,7 @@ func (*BlockRequest) ProtoMessage() {} func (x *BlockRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -67,23 +66,27 @@ func (*BlockRequest) Descriptor() ([]byte, []int) { return file_waves_node_grpc_blocks_api_proto_rawDescGZIP(), []int{0} } -func (m *BlockRequest) GetRequest() isBlockRequest_Request { - if m != nil { - return m.Request +func (x *BlockRequest) GetRequest() isBlockRequest_Request { + if x != nil { + return x.Request } return nil } func (x *BlockRequest) GetBlockId() []byte { - if x, ok := x.GetRequest().(*BlockRequest_BlockId); ok { - return x.BlockId + if x != nil { + if x, ok := x.Request.(*BlockRequest_BlockId); ok { + return x.BlockId + } } return nil } func (x *BlockRequest) GetHeight() int32 { - if x, ok := x.GetRequest().(*BlockRequest_Height); ok { - return x.Height + if x != nil { + if x, ok := x.Request.(*BlockRequest_Height); ok { + return x.Height + } } return 0 } @@ -112,26 +115,24 @@ func (*BlockRequest_BlockId) isBlockRequest_Request() {} func (*BlockRequest_Height) isBlockRequest_Request() {} type BlockRangeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FromHeight uint32 `protobuf:"varint,1,opt,name=from_height,json=fromHeight,proto3" json:"from_height,omitempty"` - ToHeight uint32 `protobuf:"varint,2,opt,name=to_height,json=toHeight,proto3" json:"to_height,omitempty"` - // Types that are assignable to Filter: + state protoimpl.MessageState `protogen:"open.v1"` + FromHeight uint32 `protobuf:"varint,1,opt,name=from_height,json=fromHeight,proto3" json:"from_height,omitempty"` + ToHeight uint32 `protobuf:"varint,2,opt,name=to_height,json=toHeight,proto3" json:"to_height,omitempty"` + // Types that are valid to be assigned to Filter: + // // *BlockRangeRequest_GeneratorPublicKey // *BlockRangeRequest_GeneratorAddress Filter isBlockRangeRequest_Filter `protobuf_oneof:"filter"` IncludeTransactions bool `protobuf:"varint,100,opt,name=include_transactions,json=includeTransactions,proto3" json:"include_transactions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BlockRangeRequest) Reset() { *x = BlockRangeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockRangeRequest) String() string { @@ -142,7 +143,7 @@ func (*BlockRangeRequest) ProtoMessage() {} func (x *BlockRangeRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -171,23 +172,27 @@ func (x *BlockRangeRequest) GetToHeight() uint32 { return 0 } -func (m *BlockRangeRequest) GetFilter() isBlockRangeRequest_Filter { - if m != nil { - return m.Filter +func (x *BlockRangeRequest) GetFilter() isBlockRangeRequest_Filter { + if x != nil { + return x.Filter } return nil } func (x *BlockRangeRequest) GetGeneratorPublicKey() []byte { - if x, ok := x.GetFilter().(*BlockRangeRequest_GeneratorPublicKey); ok { - return x.GeneratorPublicKey + if x != nil { + if x, ok := x.Filter.(*BlockRangeRequest_GeneratorPublicKey); ok { + return x.GeneratorPublicKey + } } return nil } func (x *BlockRangeRequest) GetGeneratorAddress() []byte { - if x, ok := x.GetFilter().(*BlockRangeRequest_GeneratorAddress); ok { - return x.GeneratorAddress + if x != nil { + if x, ok := x.Filter.(*BlockRangeRequest_GeneratorAddress); ok { + return x.GeneratorAddress + } } return nil } @@ -216,23 +221,20 @@ func (*BlockRangeRequest_GeneratorPublicKey) isBlockRangeRequest_Filter() {} func (*BlockRangeRequest_GeneratorAddress) isBlockRangeRequest_Filter() {} type BlockWithHeight struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Block *waves.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` + Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Vrf []byte `protobuf:"bytes,3,opt,name=vrf,proto3" json:"vrf,omitempty"` + RewardShares []*waves.RewardShare `protobuf:"bytes,4,rep,name=reward_shares,json=rewardShares,proto3" json:"reward_shares,omitempty"` unknownFields protoimpl.UnknownFields - - Block *waves.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` - Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` - Vrf []byte `protobuf:"bytes,3,opt,name=vrf,proto3" json:"vrf,omitempty"` - RewardShares []*waves.RewardShare `protobuf:"bytes,4,rep,name=reward_shares,json=rewardShares,proto3" json:"reward_shares,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BlockWithHeight) Reset() { *x = BlockWithHeight{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockWithHeight) String() string { @@ -243,7 +245,7 @@ func (*BlockWithHeight) ProtoMessage() {} func (x *BlockWithHeight) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_blocks_api_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -288,90 +290,47 @@ func (x *BlockWithHeight) GetRewardShares() []*waves.RewardShare { var File_waves_node_grpc_blocks_api_proto protoreflect.FileDescriptor -var file_waves_node_grpc_blocks_api_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, - 0x63, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, - 0x72, 0x70, 0x63, 0x1a, 0x11, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x72, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, - 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x01, - 0x0a, 0x0c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, - 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x48, 0x00, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x06, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x06, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x31, 0x0a, 0x14, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, - 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x64, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0xf1, 0x01, 0x0a, 0x11, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x61, 0x6e, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x72, 0x6f, - 0x6d, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, - 0x66, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x74, - 0x6f, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x32, 0x0a, 0x14, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x11, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x69, 0x6e, - 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x64, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, - 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x08, 0x0a, - 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x98, 0x01, 0x0a, 0x0f, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x57, 0x69, 0x74, 0x68, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x72, 0x66, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x76, 0x72, 0x66, 0x12, 0x37, 0x0a, 0x0d, 0x72, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x73, 0x32, 0xfb, 0x01, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x41, 0x70, 0x69, - 0x12, 0x4b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1d, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x57, 0x69, 0x74, 0x68, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x57, 0x0a, - 0x0d, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x22, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x69, 0x74, 0x68, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x30, 0x01, 0x12, 0x48, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x42, 0x73, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x5a, 0x43, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, - 0x72, 0x70, 0x63, 0xaa, 0x02, 0x0f, 0x57, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, - 0x2e, 0x47, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_node_grpc_blocks_api_proto_rawDesc = "" + + "\n" + + " waves/node/grpc/blocks_api.proto\x12\x0fwaves.node.grpc\x1a\x11waves/block.proto\x1a\x18waves/reward_share.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x83\x01\n" + + "\fBlockRequest\x12\x1b\n" + + "\bblock_id\x18\x01 \x01(\fH\x00R\ablockId\x12\x18\n" + + "\x06height\x18\x02 \x01(\x05H\x00R\x06height\x121\n" + + "\x14include_transactions\x18d \x01(\bR\x13includeTransactionsB\t\n" + + "\arequest\"\xf1\x01\n" + + "\x11BlockRangeRequest\x12\x1f\n" + + "\vfrom_height\x18\x01 \x01(\rR\n" + + "fromHeight\x12\x1b\n" + + "\tto_height\x18\x02 \x01(\rR\btoHeight\x122\n" + + "\x14generator_public_key\x18\x03 \x01(\fH\x00R\x12generatorPublicKey\x12-\n" + + "\x11generator_address\x18\x04 \x01(\fH\x00R\x10generatorAddress\x121\n" + + "\x14include_transactions\x18d \x01(\bR\x13includeTransactionsB\b\n" + + "\x06filter\"\x98\x01\n" + + "\x0fBlockWithHeight\x12\"\n" + + "\x05block\x18\x01 \x01(\v2\f.waves.BlockR\x05block\x12\x16\n" + + "\x06height\x18\x02 \x01(\rR\x06height\x12\x10\n" + + "\x03vrf\x18\x03 \x01(\fR\x03vrf\x127\n" + + "\rreward_shares\x18\x04 \x03(\v2\x12.waves.RewardShareR\frewardShares2\xfb\x01\n" + + "\tBlocksApi\x12K\n" + + "\bGetBlock\x12\x1d.waves.node.grpc.BlockRequest\x1a .waves.node.grpc.BlockWithHeight\x12W\n" + + "\rGetBlockRange\x12\".waves.node.grpc.BlockRangeRequest\x1a .waves.node.grpc.BlockWithHeight0\x01\x12H\n" + + "\x10GetCurrentHeight\x12\x16.google.protobuf.Empty\x1a\x1c.google.protobuf.UInt32ValueBs\n" + + "\x1acom.wavesplatform.api.grpcZCgithub.com/wavesplatform/gowaves/pkg/grpc/generated/waves/node/grpc\xaa\x02\x0fWaves.Node.Grpcb\x06proto3" var ( file_waves_node_grpc_blocks_api_proto_rawDescOnce sync.Once - file_waves_node_grpc_blocks_api_proto_rawDescData = file_waves_node_grpc_blocks_api_proto_rawDesc + file_waves_node_grpc_blocks_api_proto_rawDescData []byte ) func file_waves_node_grpc_blocks_api_proto_rawDescGZIP() []byte { file_waves_node_grpc_blocks_api_proto_rawDescOnce.Do(func() { - file_waves_node_grpc_blocks_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_node_grpc_blocks_api_proto_rawDescData) + file_waves_node_grpc_blocks_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_node_grpc_blocks_api_proto_rawDesc), len(file_waves_node_grpc_blocks_api_proto_rawDesc))) }) return file_waves_node_grpc_blocks_api_proto_rawDescData } var file_waves_node_grpc_blocks_api_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_waves_node_grpc_blocks_api_proto_goTypes = []interface{}{ +var file_waves_node_grpc_blocks_api_proto_goTypes = []any{ (*BlockRequest)(nil), // 0: waves.node.grpc.BlockRequest (*BlockRangeRequest)(nil), // 1: waves.node.grpc.BlockRangeRequest (*BlockWithHeight)(nil), // 2: waves.node.grpc.BlockWithHeight @@ -401,49 +360,11 @@ func file_waves_node_grpc_blocks_api_proto_init() { if File_waves_node_grpc_blocks_api_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_node_grpc_blocks_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_blocks_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockRangeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_blocks_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockWithHeight); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_waves_node_grpc_blocks_api_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_waves_node_grpc_blocks_api_proto_msgTypes[0].OneofWrappers = []any{ (*BlockRequest_BlockId)(nil), (*BlockRequest_Height)(nil), } - file_waves_node_grpc_blocks_api_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_waves_node_grpc_blocks_api_proto_msgTypes[1].OneofWrappers = []any{ (*BlockRangeRequest_GeneratorPublicKey)(nil), (*BlockRangeRequest_GeneratorAddress)(nil), } @@ -451,7 +372,7 @@ func file_waves_node_grpc_blocks_api_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_waves_node_grpc_blocks_api_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_node_grpc_blocks_api_proto_rawDesc), len(file_waves_node_grpc_blocks_api_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, @@ -462,7 +383,6 @@ func file_waves_node_grpc_blocks_api_proto_init() { MessageInfos: file_waves_node_grpc_blocks_api_proto_msgTypes, }.Build() File_waves_node_grpc_blocks_api_proto = out.File - file_waves_node_grpc_blocks_api_proto_rawDesc = nil file_waves_node_grpc_blocks_api_proto_goTypes = nil file_waves_node_grpc_blocks_api_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/node/grpc/blocks_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/blocks_api_grpc.pb.go index b08e1a7cb..e6b4881eb 100644 --- a/pkg/grpc/generated/waves/node/grpc/blocks_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/blocks_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.0 // source: waves/node/grpc/blocks_api.proto package grpc @@ -17,15 +17,21 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + BlocksApi_GetBlock_FullMethodName = "/waves.node.grpc.BlocksApi/GetBlock" + BlocksApi_GetBlockRange_FullMethodName = "/waves.node.grpc.BlocksApi/GetBlockRange" + BlocksApi_GetCurrentHeight_FullMethodName = "/waves.node.grpc.BlocksApi/GetCurrentHeight" +) // BlocksApiClient is the client API for BlocksApi service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type BlocksApiClient interface { GetBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*BlockWithHeight, error) - GetBlockRange(ctx context.Context, in *BlockRangeRequest, opts ...grpc.CallOption) (BlocksApi_GetBlockRangeClient, error) + GetBlockRange(ctx context.Context, in *BlockRangeRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[BlockWithHeight], error) GetCurrentHeight(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.UInt32Value, error) } @@ -38,20 +44,22 @@ func NewBlocksApiClient(cc grpc.ClientConnInterface) BlocksApiClient { } func (c *blocksApiClient) GetBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*BlockWithHeight, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockWithHeight) - err := c.cc.Invoke(ctx, "/waves.node.grpc.BlocksApi/GetBlock", in, out, opts...) + err := c.cc.Invoke(ctx, BlocksApi_GetBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *blocksApiClient) GetBlockRange(ctx context.Context, in *BlockRangeRequest, opts ...grpc.CallOption) (BlocksApi_GetBlockRangeClient, error) { - stream, err := c.cc.NewStream(ctx, &BlocksApi_ServiceDesc.Streams[0], "/waves.node.grpc.BlocksApi/GetBlockRange", opts...) +func (c *blocksApiClient) GetBlockRange(ctx context.Context, in *BlockRangeRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[BlockWithHeight], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &BlocksApi_ServiceDesc.Streams[0], BlocksApi_GetBlockRange_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &blocksApiGetBlockRangeClient{stream} + x := &grpc.GenericClientStream[BlockRangeRequest, BlockWithHeight]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -61,26 +69,13 @@ func (c *blocksApiClient) GetBlockRange(ctx context.Context, in *BlockRangeReque return x, nil } -type BlocksApi_GetBlockRangeClient interface { - Recv() (*BlockWithHeight, error) - grpc.ClientStream -} - -type blocksApiGetBlockRangeClient struct { - grpc.ClientStream -} - -func (x *blocksApiGetBlockRangeClient) Recv() (*BlockWithHeight, error) { - m := new(BlockWithHeight) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type BlocksApi_GetBlockRangeClient = grpc.ServerStreamingClient[BlockWithHeight] func (c *blocksApiClient) GetCurrentHeight(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.UInt32Value, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(wrapperspb.UInt32Value) - err := c.cc.Invoke(ctx, "/waves.node.grpc.BlocksApi/GetCurrentHeight", in, out, opts...) + err := c.cc.Invoke(ctx, BlocksApi_GetCurrentHeight_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -89,26 +84,30 @@ func (c *blocksApiClient) GetCurrentHeight(ctx context.Context, in *emptypb.Empt // BlocksApiServer is the server API for BlocksApi service. // All implementations should embed UnimplementedBlocksApiServer -// for forward compatibility +// for forward compatibility. type BlocksApiServer interface { GetBlock(context.Context, *BlockRequest) (*BlockWithHeight, error) - GetBlockRange(*BlockRangeRequest, BlocksApi_GetBlockRangeServer) error + GetBlockRange(*BlockRangeRequest, grpc.ServerStreamingServer[BlockWithHeight]) error GetCurrentHeight(context.Context, *emptypb.Empty) (*wrapperspb.UInt32Value, error) } -// UnimplementedBlocksApiServer should be embedded to have forward compatible implementations. -type UnimplementedBlocksApiServer struct { -} +// UnimplementedBlocksApiServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedBlocksApiServer struct{} func (UnimplementedBlocksApiServer) GetBlock(context.Context, *BlockRequest) (*BlockWithHeight, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBlock not implemented") } -func (UnimplementedBlocksApiServer) GetBlockRange(*BlockRangeRequest, BlocksApi_GetBlockRangeServer) error { +func (UnimplementedBlocksApiServer) GetBlockRange(*BlockRangeRequest, grpc.ServerStreamingServer[BlockWithHeight]) error { return status.Errorf(codes.Unimplemented, "method GetBlockRange not implemented") } func (UnimplementedBlocksApiServer) GetCurrentHeight(context.Context, *emptypb.Empty) (*wrapperspb.UInt32Value, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCurrentHeight not implemented") } +func (UnimplementedBlocksApiServer) testEmbeddedByValue() {} // UnsafeBlocksApiServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BlocksApiServer will @@ -118,6 +117,13 @@ type UnsafeBlocksApiServer interface { } func RegisterBlocksApiServer(s grpc.ServiceRegistrar, srv BlocksApiServer) { + // If the following call pancis, it indicates UnimplementedBlocksApiServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&BlocksApi_ServiceDesc, srv) } @@ -131,7 +137,7 @@ func _BlocksApi_GetBlock_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.BlocksApi/GetBlock", + FullMethod: BlocksApi_GetBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BlocksApiServer).GetBlock(ctx, req.(*BlockRequest)) @@ -144,21 +150,11 @@ func _BlocksApi_GetBlockRange_Handler(srv interface{}, stream grpc.ServerStream) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(BlocksApiServer).GetBlockRange(m, &blocksApiGetBlockRangeServer{stream}) -} - -type BlocksApi_GetBlockRangeServer interface { - Send(*BlockWithHeight) error - grpc.ServerStream -} - -type blocksApiGetBlockRangeServer struct { - grpc.ServerStream + return srv.(BlocksApiServer).GetBlockRange(m, &grpc.GenericServerStream[BlockRangeRequest, BlockWithHeight]{ServerStream: stream}) } -func (x *blocksApiGetBlockRangeServer) Send(m *BlockWithHeight) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type BlocksApi_GetBlockRangeServer = grpc.ServerStreamingServer[BlockWithHeight] func _BlocksApi_GetCurrentHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(emptypb.Empty) @@ -170,7 +166,7 @@ func _BlocksApi_GetCurrentHeight_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.BlocksApi/GetCurrentHeight", + FullMethod: BlocksApi_GetCurrentHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BlocksApiServer).GetCurrentHeight(ctx, req.(*emptypb.Empty)) diff --git a/pkg/grpc/generated/waves/node/grpc/transactions_api.pb.go b/pkg/grpc/generated/waves/node/grpc/transactions_api.pb.go index e65b71db3..6310d5e40 100644 --- a/pkg/grpc/generated/waves/node/grpc/transactions_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/transactions_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/node/grpc/transactions_api.proto package grpc @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -123,23 +124,20 @@ func (TransactionStatus_Status) EnumDescriptor() ([]byte, []int) { } type TransactionStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status TransactionStatus_Status `protobuf:"varint,2,opt,name=status,proto3,enum=waves.node.grpc.TransactionStatus_Status" json:"status,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` ApplicationStatus ApplicationStatus `protobuf:"varint,4,opt,name=application_status,json=applicationStatus,proto3,enum=waves.node.grpc.ApplicationStatus" json:"application_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionStatus) Reset() { *x = TransactionStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStatus) String() string { @@ -150,7 +148,7 @@ func (*TransactionStatus) ProtoMessage() {} func (x *TransactionStatus) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -194,24 +192,21 @@ func (x *TransactionStatus) GetApplicationStatus() ApplicationStatus { } type TransactionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Transaction *waves.SignedTransaction `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` ApplicationStatus ApplicationStatus `protobuf:"varint,4,opt,name=application_status,json=applicationStatus,proto3,enum=waves.node.grpc.ApplicationStatus" json:"application_status,omitempty"` InvokeScriptResult *waves.InvokeScriptResult `protobuf:"bytes,5,opt,name=invoke_script_result,json=invokeScriptResult,proto3" json:"invoke_script_result,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionResponse) Reset() { *x = TransactionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionResponse) String() string { @@ -222,7 +217,7 @@ func (*TransactionResponse) ProtoMessage() {} func (x *TransactionResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -273,22 +268,19 @@ func (x *TransactionResponse) GetInvokeScriptResult() *waves.InvokeScriptResult } type TransactionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sender []byte `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - Recipient *waves.Recipient `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` - TransactionIds [][]byte `protobuf:"bytes,3,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Sender []byte `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + Recipient *waves.Recipient `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` + TransactionIds [][]byte `protobuf:"bytes,3,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionsRequest) Reset() { *x = TransactionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionsRequest) String() string { @@ -299,7 +291,7 @@ func (*TransactionsRequest) ProtoMessage() {} func (x *TransactionsRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -336,21 +328,18 @@ func (x *TransactionsRequest) GetTransactionIds() [][]byte { } type TransactionSnapshotResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Snapshot *waves.TransactionStateSnapshot `protobuf:"bytes,2,opt,name=snapshot,proto3" json:"snapshot,omitempty"` unknownFields protoimpl.UnknownFields - - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Snapshot *waves.TransactionStateSnapshot `protobuf:"bytes,2,opt,name=snapshot,proto3" json:"snapshot,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionSnapshotResponse) Reset() { *x = TransactionSnapshotResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionSnapshotResponse) String() string { @@ -361,7 +350,7 @@ func (*TransactionSnapshotResponse) ProtoMessage() {} func (x *TransactionSnapshotResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -391,20 +380,17 @@ func (x *TransactionSnapshotResponse) GetSnapshot() *waves.TransactionStateSnaps } type TransactionSnapshotsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TransactionIds [][]byte `protobuf:"bytes,1,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TransactionIds [][]byte `protobuf:"bytes,1,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionSnapshotsRequest) Reset() { *x = TransactionSnapshotsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionSnapshotsRequest) String() string { @@ -415,7 +401,7 @@ func (*TransactionSnapshotsRequest) ProtoMessage() {} func (x *TransactionSnapshotsRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -438,20 +424,17 @@ func (x *TransactionSnapshotsRequest) GetTransactionIds() [][]byte { } type TransactionsByIdRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TransactionIds [][]byte `protobuf:"bytes,3,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TransactionIds [][]byte `protobuf:"bytes,3,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionsByIdRequest) Reset() { *x = TransactionsByIdRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionsByIdRequest) String() string { @@ -462,7 +445,7 @@ func (*TransactionsByIdRequest) ProtoMessage() {} func (x *TransactionsByIdRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -485,21 +468,18 @@ func (x *TransactionsByIdRequest) GetTransactionIds() [][]byte { } type CalculateFeeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CalculateFeeResponse) Reset() { *x = CalculateFeeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CalculateFeeResponse) String() string { @@ -510,7 +490,7 @@ func (*CalculateFeeResponse) ProtoMessage() {} func (x *CalculateFeeResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -540,21 +520,18 @@ func (x *CalculateFeeResponse) GetAmount() uint64 { } type SignRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Transaction *waves.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` - SignerPublicKey []byte `protobuf:"bytes,2,opt,name=signer_public_key,json=signerPublicKey,proto3" json:"signer_public_key,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Transaction *waves.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + SignerPublicKey []byte `protobuf:"bytes,2,opt,name=signer_public_key,json=signerPublicKey,proto3" json:"signer_public_key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignRequest) Reset() { *x = SignRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignRequest) String() string { @@ -565,7 +542,7 @@ func (*SignRequest) ProtoMessage() {} func (x *SignRequest) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -595,21 +572,18 @@ func (x *SignRequest) GetSignerPublicKey() []byte { } type InvokeScriptResultResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transaction *waves.SignedTransaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + Result *waves.InvokeScriptResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` unknownFields protoimpl.UnknownFields - - Transaction *waves.SignedTransaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` - Result *waves.InvokeScriptResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptResultResponse) Reset() { *x = InvokeScriptResultResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptResultResponse) String() string { @@ -620,7 +594,7 @@ func (*InvokeScriptResultResponse) ProtoMessage() {} func (x *InvokeScriptResultResponse) ProtoReflect() protoreflect.Message { mi := &file_waves_node_grpc_transactions_api_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -651,170 +625,76 @@ func (x *InvokeScriptResultResponse) GetResult() *waves.InvokeScriptResult { var File_waves_node_grpc_transactions_api_proto protoreflect.FileDescriptor -var file_waves_node_grpc_transactions_api_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, - 0x63, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x61, - 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x1a, 0x15, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x17, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x20, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x5f, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x02, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x41, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x12, 0x51, 0x0a, 0x12, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x22, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x38, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, - 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, - 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x45, 0x44, 0x10, - 0x02, 0x22, 0x99, 0x02, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, - 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, - 0x12, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x4b, 0x0a, 0x14, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x12, 0x69, 0x6e, 0x76, 0x6f, 0x6b, - 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x86, 0x01, - 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, - 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, - 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x6a, 0x0a, 0x1b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x22, 0x46, 0x0a, 0x1b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x42, 0x0a, 0x17, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x49, - 0x0a, 0x14, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x46, 0x65, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, - 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x6f, 0x0a, 0x0b, 0x53, 0x69, 0x67, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, - 0x0a, 0x11, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x8b, 0x01, 0x0a, 0x1a, 0x49, - 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x74, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, - 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2a, 0x58, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, - 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, - 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x43, 0x52, - 0x49, 0x50, 0x54, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, - 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x4c, 0x49, 0x44, 0x45, 0x44, - 0x10, 0x03, 0x32, 0x98, 0x05, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x41, 0x70, 0x69, 0x12, 0x5f, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, - 0x63, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x77, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x73, 0x12, 0x2c, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x67, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2c, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, - 0x70, 0x63, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, - 0x12, 0x6b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x76, 0x6f, - 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x30, 0x01, 0x12, 0x5d, 0x0a, - 0x0b, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x77, - 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, - 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x30, 0x01, 0x12, 0x5e, 0x0a, 0x0e, - 0x47, 0x65, 0x74, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x24, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, - 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x3e, 0x0a, 0x04, - 0x53, 0x69, 0x67, 0x6e, 0x12, 0x1c, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x09, - 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x12, 0x18, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x1a, 0x18, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, - 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x73, 0x0a, - 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x5a, 0x43, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, - 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, - 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x67, 0x72, 0x70, 0x63, - 0xaa, 0x02, 0x0f, 0x57, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x47, 0x72, - 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_node_grpc_transactions_api_proto_rawDesc = "" + + "\n" + + "&waves/node/grpc/transactions_api.proto\x12\x0fwaves.node.grpc\x1a\x15waves/recipient.proto\x1a\x17waves/transaction.proto\x1a&waves/transaction_state_snapshot.proto\x1a waves/invoke_script_result.proto\"\x8b\x02\n" + + "\x11TransactionStatus\x12\x0e\n" + + "\x02id\x18\x01 \x01(\fR\x02id\x12A\n" + + "\x06status\x18\x02 \x01(\x0e2).waves.node.grpc.TransactionStatus.StatusR\x06status\x12\x16\n" + + "\x06height\x18\x03 \x01(\x03R\x06height\x12Q\n" + + "\x12application_status\x18\x04 \x01(\x0e2\".waves.node.grpc.ApplicationStatusR\x11applicationStatus\"8\n" + + "\x06Status\x12\x0e\n" + + "\n" + + "NOT_EXISTS\x10\x00\x12\x0f\n" + + "\vUNCONFIRMED\x10\x01\x12\r\n" + + "\tCONFIRMED\x10\x02\"\x99\x02\n" + + "\x13TransactionResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\fR\x02id\x12\x16\n" + + "\x06height\x18\x02 \x01(\x03R\x06height\x12:\n" + + "\vtransaction\x18\x03 \x01(\v2\x18.waves.SignedTransactionR\vtransaction\x12Q\n" + + "\x12application_status\x18\x04 \x01(\x0e2\".waves.node.grpc.ApplicationStatusR\x11applicationStatus\x12K\n" + + "\x14invoke_script_result\x18\x05 \x01(\v2\x19.waves.InvokeScriptResultR\x12invokeScriptResult\"\x86\x01\n" + + "\x13TransactionsRequest\x12\x16\n" + + "\x06sender\x18\x01 \x01(\fR\x06sender\x12.\n" + + "\trecipient\x18\x02 \x01(\v2\x10.waves.RecipientR\trecipient\x12'\n" + + "\x0ftransaction_ids\x18\x03 \x03(\fR\x0etransactionIds\"j\n" + + "\x1bTransactionSnapshotResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\fR\x02id\x12;\n" + + "\bsnapshot\x18\x02 \x01(\v2\x1f.waves.TransactionStateSnapshotR\bsnapshot\"F\n" + + "\x1bTransactionSnapshotsRequest\x12'\n" + + "\x0ftransaction_ids\x18\x01 \x03(\fR\x0etransactionIds\"B\n" + + "\x17TransactionsByIdRequest\x12'\n" + + "\x0ftransaction_ids\x18\x03 \x03(\fR\x0etransactionIds\"I\n" + + "\x14CalculateFeeResponse\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x04R\x06amount\"o\n" + + "\vSignRequest\x124\n" + + "\vtransaction\x18\x01 \x01(\v2\x12.waves.TransactionR\vtransaction\x12*\n" + + "\x11signer_public_key\x18\x02 \x01(\fR\x0fsignerPublicKey\"\x8b\x01\n" + + "\x1aInvokeScriptResultResponse\x12:\n" + + "\vtransaction\x18\x01 \x01(\v2\x18.waves.SignedTransactionR\vtransaction\x121\n" + + "\x06result\x18\x02 \x01(\v2\x19.waves.InvokeScriptResultR\x06result*X\n" + + "\x11ApplicationStatus\x12\v\n" + + "\aUNKNOWN\x10\x00\x12\r\n" + + "\tSUCCEEDED\x10\x01\x12\x1b\n" + + "\x17SCRIPT_EXECUTION_FAILED\x10\x02\x12\n" + + "\n" + + "\x06ELIDED\x10\x032\x98\x05\n" + + "\x0fTransactionsApi\x12_\n" + + "\x0fGetTransactions\x12$.waves.node.grpc.TransactionsRequest\x1a$.waves.node.grpc.TransactionResponse0\x01\x12w\n" + + "\x17GetTransactionSnapshots\x12,.waves.node.grpc.TransactionSnapshotsRequest\x1a,.waves.node.grpc.TransactionSnapshotResponse0\x01\x12k\n" + + "\x0fGetStateChanges\x12$.waves.node.grpc.TransactionsRequest\x1a+.waves.node.grpc.InvokeScriptResultResponse\"\x03\x88\x02\x010\x01\x12]\n" + + "\vGetStatuses\x12(.waves.node.grpc.TransactionsByIdRequest\x1a\".waves.node.grpc.TransactionStatus0\x01\x12^\n" + + "\x0eGetUnconfirmed\x12$.waves.node.grpc.TransactionsRequest\x1a$.waves.node.grpc.TransactionResponse0\x01\x12>\n" + + "\x04Sign\x12\x1c.waves.node.grpc.SignRequest\x1a\x18.waves.SignedTransaction\x12?\n" + + "\tBroadcast\x12\x18.waves.SignedTransaction\x1a\x18.waves.SignedTransactionBs\n" + + "\x1acom.wavesplatform.api.grpcZCgithub.com/wavesplatform/gowaves/pkg/grpc/generated/waves/node/grpc\xaa\x02\x0fWaves.Node.Grpcb\x06proto3" var ( file_waves_node_grpc_transactions_api_proto_rawDescOnce sync.Once - file_waves_node_grpc_transactions_api_proto_rawDescData = file_waves_node_grpc_transactions_api_proto_rawDesc + file_waves_node_grpc_transactions_api_proto_rawDescData []byte ) func file_waves_node_grpc_transactions_api_proto_rawDescGZIP() []byte { file_waves_node_grpc_transactions_api_proto_rawDescOnce.Do(func() { - file_waves_node_grpc_transactions_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_node_grpc_transactions_api_proto_rawDescData) + file_waves_node_grpc_transactions_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_node_grpc_transactions_api_proto_rawDesc), len(file_waves_node_grpc_transactions_api_proto_rawDesc))) }) return file_waves_node_grpc_transactions_api_proto_rawDescData } var file_waves_node_grpc_transactions_api_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_waves_node_grpc_transactions_api_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_waves_node_grpc_transactions_api_proto_goTypes = []interface{}{ +var file_waves_node_grpc_transactions_api_proto_goTypes = []any{ (ApplicationStatus)(0), // 0: waves.node.grpc.ApplicationStatus (TransactionStatus_Status)(0), // 1: waves.node.grpc.TransactionStatus.Status (*TransactionStatus)(nil), // 2: waves.node.grpc.TransactionStatus @@ -869,121 +749,11 @@ func file_waves_node_grpc_transactions_api_proto_init() { if File_waves_node_grpc_transactions_api_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_node_grpc_transactions_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_transactions_api_proto_msgTypes[1].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_waves_node_grpc_transactions_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_transactions_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionSnapshotResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_transactions_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionSnapshotsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_transactions_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionsByIdRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_transactions_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CalculateFeeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_transactions_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_node_grpc_transactions_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptResultResponse); 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_waves_node_grpc_transactions_api_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_node_grpc_transactions_api_proto_rawDesc), len(file_waves_node_grpc_transactions_api_proto_rawDesc)), NumEnums: 2, NumMessages: 9, NumExtensions: 0, @@ -995,7 +765,6 @@ func file_waves_node_grpc_transactions_api_proto_init() { MessageInfos: file_waves_node_grpc_transactions_api_proto_msgTypes, }.Build() File_waves_node_grpc_transactions_api_proto = out.File - file_waves_node_grpc_transactions_api_proto_rawDesc = nil file_waves_node_grpc_transactions_api_proto_goTypes = nil file_waves_node_grpc_transactions_api_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/node/grpc/transactions_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/transactions_api_grpc.pb.go index f91f7848e..912d118a2 100644 --- a/pkg/grpc/generated/waves/node/grpc/transactions_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/transactions_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v6.32.0 // source: waves/node/grpc/transactions_api.proto package grpc @@ -16,19 +16,29 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + TransactionsApi_GetTransactions_FullMethodName = "/waves.node.grpc.TransactionsApi/GetTransactions" + TransactionsApi_GetTransactionSnapshots_FullMethodName = "/waves.node.grpc.TransactionsApi/GetTransactionSnapshots" + TransactionsApi_GetStateChanges_FullMethodName = "/waves.node.grpc.TransactionsApi/GetStateChanges" + TransactionsApi_GetStatuses_FullMethodName = "/waves.node.grpc.TransactionsApi/GetStatuses" + TransactionsApi_GetUnconfirmed_FullMethodName = "/waves.node.grpc.TransactionsApi/GetUnconfirmed" + TransactionsApi_Sign_FullMethodName = "/waves.node.grpc.TransactionsApi/Sign" + TransactionsApi_Broadcast_FullMethodName = "/waves.node.grpc.TransactionsApi/Broadcast" +) // TransactionsApiClient is the client API for TransactionsApi service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type TransactionsApiClient interface { - GetTransactions(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (TransactionsApi_GetTransactionsClient, error) - GetTransactionSnapshots(ctx context.Context, in *TransactionSnapshotsRequest, opts ...grpc.CallOption) (TransactionsApi_GetTransactionSnapshotsClient, error) + GetTransactions(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionResponse], error) + GetTransactionSnapshots(ctx context.Context, in *TransactionSnapshotsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionSnapshotResponse], error) // Deprecated: Do not use. - GetStateChanges(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (TransactionsApi_GetStateChangesClient, error) - GetStatuses(ctx context.Context, in *TransactionsByIdRequest, opts ...grpc.CallOption) (TransactionsApi_GetStatusesClient, error) - GetUnconfirmed(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (TransactionsApi_GetUnconfirmedClient, error) + GetStateChanges(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[InvokeScriptResultResponse], error) + GetStatuses(ctx context.Context, in *TransactionsByIdRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionStatus], error) + GetUnconfirmed(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionResponse], error) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*waves.SignedTransaction, error) Broadcast(ctx context.Context, in *waves.SignedTransaction, opts ...grpc.CallOption) (*waves.SignedTransaction, error) } @@ -41,12 +51,13 @@ func NewTransactionsApiClient(cc grpc.ClientConnInterface) TransactionsApiClient return &transactionsApiClient{cc} } -func (c *transactionsApiClient) GetTransactions(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (TransactionsApi_GetTransactionsClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[0], "/waves.node.grpc.TransactionsApi/GetTransactions", opts...) +func (c *transactionsApiClient) GetTransactions(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[0], TransactionsApi_GetTransactions_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionsApiGetTransactionsClient{stream} + x := &grpc.GenericClientStream[TransactionsRequest, TransactionResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -56,29 +67,16 @@ func (c *transactionsApiClient) GetTransactions(ctx context.Context, in *Transac return x, nil } -type TransactionsApi_GetTransactionsClient interface { - Recv() (*TransactionResponse, error) - grpc.ClientStream -} - -type transactionsApiGetTransactionsClient struct { - grpc.ClientStream -} - -func (x *transactionsApiGetTransactionsClient) Recv() (*TransactionResponse, error) { - m := new(TransactionResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetTransactionsClient = grpc.ServerStreamingClient[TransactionResponse] -func (c *transactionsApiClient) GetTransactionSnapshots(ctx context.Context, in *TransactionSnapshotsRequest, opts ...grpc.CallOption) (TransactionsApi_GetTransactionSnapshotsClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[1], "/waves.node.grpc.TransactionsApi/GetTransactionSnapshots", opts...) +func (c *transactionsApiClient) GetTransactionSnapshots(ctx context.Context, in *TransactionSnapshotsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionSnapshotResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[1], TransactionsApi_GetTransactionSnapshots_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionsApiGetTransactionSnapshotsClient{stream} + x := &grpc.GenericClientStream[TransactionSnapshotsRequest, TransactionSnapshotResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -88,30 +86,17 @@ func (c *transactionsApiClient) GetTransactionSnapshots(ctx context.Context, in return x, nil } -type TransactionsApi_GetTransactionSnapshotsClient interface { - Recv() (*TransactionSnapshotResponse, error) - grpc.ClientStream -} - -type transactionsApiGetTransactionSnapshotsClient struct { - grpc.ClientStream -} - -func (x *transactionsApiGetTransactionSnapshotsClient) Recv() (*TransactionSnapshotResponse, error) { - m := new(TransactionSnapshotResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetTransactionSnapshotsClient = grpc.ServerStreamingClient[TransactionSnapshotResponse] // Deprecated: Do not use. -func (c *transactionsApiClient) GetStateChanges(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (TransactionsApi_GetStateChangesClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[2], "/waves.node.grpc.TransactionsApi/GetStateChanges", opts...) +func (c *transactionsApiClient) GetStateChanges(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[InvokeScriptResultResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[2], TransactionsApi_GetStateChanges_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionsApiGetStateChangesClient{stream} + x := &grpc.GenericClientStream[TransactionsRequest, InvokeScriptResultResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -121,29 +106,16 @@ func (c *transactionsApiClient) GetStateChanges(ctx context.Context, in *Transac return x, nil } -type TransactionsApi_GetStateChangesClient interface { - Recv() (*InvokeScriptResultResponse, error) - grpc.ClientStream -} - -type transactionsApiGetStateChangesClient struct { - grpc.ClientStream -} - -func (x *transactionsApiGetStateChangesClient) Recv() (*InvokeScriptResultResponse, error) { - m := new(InvokeScriptResultResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetStateChangesClient = grpc.ServerStreamingClient[InvokeScriptResultResponse] -func (c *transactionsApiClient) GetStatuses(ctx context.Context, in *TransactionsByIdRequest, opts ...grpc.CallOption) (TransactionsApi_GetStatusesClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[3], "/waves.node.grpc.TransactionsApi/GetStatuses", opts...) +func (c *transactionsApiClient) GetStatuses(ctx context.Context, in *TransactionsByIdRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionStatus], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[3], TransactionsApi_GetStatuses_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionsApiGetStatusesClient{stream} + x := &grpc.GenericClientStream[TransactionsByIdRequest, TransactionStatus]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -153,29 +125,16 @@ func (c *transactionsApiClient) GetStatuses(ctx context.Context, in *Transaction return x, nil } -type TransactionsApi_GetStatusesClient interface { - Recv() (*TransactionStatus, error) - grpc.ClientStream -} - -type transactionsApiGetStatusesClient struct { - grpc.ClientStream -} - -func (x *transactionsApiGetStatusesClient) Recv() (*TransactionStatus, error) { - m := new(TransactionStatus) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetStatusesClient = grpc.ServerStreamingClient[TransactionStatus] -func (c *transactionsApiClient) GetUnconfirmed(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (TransactionsApi_GetUnconfirmedClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[4], "/waves.node.grpc.TransactionsApi/GetUnconfirmed", opts...) +func (c *transactionsApiClient) GetUnconfirmed(ctx context.Context, in *TransactionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TransactionResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionsApi_ServiceDesc.Streams[4], TransactionsApi_GetUnconfirmed_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionsApiGetUnconfirmedClient{stream} + x := &grpc.GenericClientStream[TransactionsRequest, TransactionResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -185,26 +144,13 @@ func (c *transactionsApiClient) GetUnconfirmed(ctx context.Context, in *Transact return x, nil } -type TransactionsApi_GetUnconfirmedClient interface { - Recv() (*TransactionResponse, error) - grpc.ClientStream -} - -type transactionsApiGetUnconfirmedClient struct { - grpc.ClientStream -} - -func (x *transactionsApiGetUnconfirmedClient) Recv() (*TransactionResponse, error) { - m := new(TransactionResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetUnconfirmedClient = grpc.ServerStreamingClient[TransactionResponse] func (c *transactionsApiClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*waves.SignedTransaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(waves.SignedTransaction) - err := c.cc.Invoke(ctx, "/waves.node.grpc.TransactionsApi/Sign", in, out, opts...) + err := c.cc.Invoke(ctx, TransactionsApi_Sign_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -212,8 +158,9 @@ func (c *transactionsApiClient) Sign(ctx context.Context, in *SignRequest, opts } func (c *transactionsApiClient) Broadcast(ctx context.Context, in *waves.SignedTransaction, opts ...grpc.CallOption) (*waves.SignedTransaction, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(waves.SignedTransaction) - err := c.cc.Invoke(ctx, "/waves.node.grpc.TransactionsApi/Broadcast", in, out, opts...) + err := c.cc.Invoke(ctx, TransactionsApi_Broadcast_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -222,35 +169,38 @@ func (c *transactionsApiClient) Broadcast(ctx context.Context, in *waves.SignedT // TransactionsApiServer is the server API for TransactionsApi service. // All implementations should embed UnimplementedTransactionsApiServer -// for forward compatibility +// for forward compatibility. type TransactionsApiServer interface { - GetTransactions(*TransactionsRequest, TransactionsApi_GetTransactionsServer) error - GetTransactionSnapshots(*TransactionSnapshotsRequest, TransactionsApi_GetTransactionSnapshotsServer) error + GetTransactions(*TransactionsRequest, grpc.ServerStreamingServer[TransactionResponse]) error + GetTransactionSnapshots(*TransactionSnapshotsRequest, grpc.ServerStreamingServer[TransactionSnapshotResponse]) error // Deprecated: Do not use. - GetStateChanges(*TransactionsRequest, TransactionsApi_GetStateChangesServer) error - GetStatuses(*TransactionsByIdRequest, TransactionsApi_GetStatusesServer) error - GetUnconfirmed(*TransactionsRequest, TransactionsApi_GetUnconfirmedServer) error + GetStateChanges(*TransactionsRequest, grpc.ServerStreamingServer[InvokeScriptResultResponse]) error + GetStatuses(*TransactionsByIdRequest, grpc.ServerStreamingServer[TransactionStatus]) error + GetUnconfirmed(*TransactionsRequest, grpc.ServerStreamingServer[TransactionResponse]) error Sign(context.Context, *SignRequest) (*waves.SignedTransaction, error) Broadcast(context.Context, *waves.SignedTransaction) (*waves.SignedTransaction, error) } -// UnimplementedTransactionsApiServer should be embedded to have forward compatible implementations. -type UnimplementedTransactionsApiServer struct { -} +// UnimplementedTransactionsApiServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTransactionsApiServer struct{} -func (UnimplementedTransactionsApiServer) GetTransactions(*TransactionsRequest, TransactionsApi_GetTransactionsServer) error { +func (UnimplementedTransactionsApiServer) GetTransactions(*TransactionsRequest, grpc.ServerStreamingServer[TransactionResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTransactions not implemented") } -func (UnimplementedTransactionsApiServer) GetTransactionSnapshots(*TransactionSnapshotsRequest, TransactionsApi_GetTransactionSnapshotsServer) error { +func (UnimplementedTransactionsApiServer) GetTransactionSnapshots(*TransactionSnapshotsRequest, grpc.ServerStreamingServer[TransactionSnapshotResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTransactionSnapshots not implemented") } -func (UnimplementedTransactionsApiServer) GetStateChanges(*TransactionsRequest, TransactionsApi_GetStateChangesServer) error { +func (UnimplementedTransactionsApiServer) GetStateChanges(*TransactionsRequest, grpc.ServerStreamingServer[InvokeScriptResultResponse]) error { return status.Errorf(codes.Unimplemented, "method GetStateChanges not implemented") } -func (UnimplementedTransactionsApiServer) GetStatuses(*TransactionsByIdRequest, TransactionsApi_GetStatusesServer) error { +func (UnimplementedTransactionsApiServer) GetStatuses(*TransactionsByIdRequest, grpc.ServerStreamingServer[TransactionStatus]) error { return status.Errorf(codes.Unimplemented, "method GetStatuses not implemented") } -func (UnimplementedTransactionsApiServer) GetUnconfirmed(*TransactionsRequest, TransactionsApi_GetUnconfirmedServer) error { +func (UnimplementedTransactionsApiServer) GetUnconfirmed(*TransactionsRequest, grpc.ServerStreamingServer[TransactionResponse]) error { return status.Errorf(codes.Unimplemented, "method GetUnconfirmed not implemented") } func (UnimplementedTransactionsApiServer) Sign(context.Context, *SignRequest) (*waves.SignedTransaction, error) { @@ -259,6 +209,7 @@ func (UnimplementedTransactionsApiServer) Sign(context.Context, *SignRequest) (* func (UnimplementedTransactionsApiServer) Broadcast(context.Context, *waves.SignedTransaction) (*waves.SignedTransaction, error) { return nil, status.Errorf(codes.Unimplemented, "method Broadcast not implemented") } +func (UnimplementedTransactionsApiServer) testEmbeddedByValue() {} // UnsafeTransactionsApiServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TransactionsApiServer will @@ -268,6 +219,13 @@ type UnsafeTransactionsApiServer interface { } func RegisterTransactionsApiServer(s grpc.ServiceRegistrar, srv TransactionsApiServer) { + // If the following call pancis, it indicates UnimplementedTransactionsApiServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TransactionsApi_ServiceDesc, srv) } @@ -276,105 +234,55 @@ func _TransactionsApi_GetTransactions_Handler(srv interface{}, stream grpc.Serve if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionsApiServer).GetTransactions(m, &transactionsApiGetTransactionsServer{stream}) -} - -type TransactionsApi_GetTransactionsServer interface { - Send(*TransactionResponse) error - grpc.ServerStream -} - -type transactionsApiGetTransactionsServer struct { - grpc.ServerStream + return srv.(TransactionsApiServer).GetTransactions(m, &grpc.GenericServerStream[TransactionsRequest, TransactionResponse]{ServerStream: stream}) } -func (x *transactionsApiGetTransactionsServer) Send(m *TransactionResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetTransactionsServer = grpc.ServerStreamingServer[TransactionResponse] func _TransactionsApi_GetTransactionSnapshots_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(TransactionSnapshotsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionsApiServer).GetTransactionSnapshots(m, &transactionsApiGetTransactionSnapshotsServer{stream}) -} - -type TransactionsApi_GetTransactionSnapshotsServer interface { - Send(*TransactionSnapshotResponse) error - grpc.ServerStream -} - -type transactionsApiGetTransactionSnapshotsServer struct { - grpc.ServerStream + return srv.(TransactionsApiServer).GetTransactionSnapshots(m, &grpc.GenericServerStream[TransactionSnapshotsRequest, TransactionSnapshotResponse]{ServerStream: stream}) } -func (x *transactionsApiGetTransactionSnapshotsServer) Send(m *TransactionSnapshotResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetTransactionSnapshotsServer = grpc.ServerStreamingServer[TransactionSnapshotResponse] func _TransactionsApi_GetStateChanges_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(TransactionsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionsApiServer).GetStateChanges(m, &transactionsApiGetStateChangesServer{stream}) -} - -type TransactionsApi_GetStateChangesServer interface { - Send(*InvokeScriptResultResponse) error - grpc.ServerStream -} - -type transactionsApiGetStateChangesServer struct { - grpc.ServerStream + return srv.(TransactionsApiServer).GetStateChanges(m, &grpc.GenericServerStream[TransactionsRequest, InvokeScriptResultResponse]{ServerStream: stream}) } -func (x *transactionsApiGetStateChangesServer) Send(m *InvokeScriptResultResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetStateChangesServer = grpc.ServerStreamingServer[InvokeScriptResultResponse] func _TransactionsApi_GetStatuses_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(TransactionsByIdRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionsApiServer).GetStatuses(m, &transactionsApiGetStatusesServer{stream}) -} - -type TransactionsApi_GetStatusesServer interface { - Send(*TransactionStatus) error - grpc.ServerStream + return srv.(TransactionsApiServer).GetStatuses(m, &grpc.GenericServerStream[TransactionsByIdRequest, TransactionStatus]{ServerStream: stream}) } -type transactionsApiGetStatusesServer struct { - grpc.ServerStream -} - -func (x *transactionsApiGetStatusesServer) Send(m *TransactionStatus) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetStatusesServer = grpc.ServerStreamingServer[TransactionStatus] func _TransactionsApi_GetUnconfirmed_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(TransactionsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionsApiServer).GetUnconfirmed(m, &transactionsApiGetUnconfirmedServer{stream}) -} - -type TransactionsApi_GetUnconfirmedServer interface { - Send(*TransactionResponse) error - grpc.ServerStream -} - -type transactionsApiGetUnconfirmedServer struct { - grpc.ServerStream + return srv.(TransactionsApiServer).GetUnconfirmed(m, &grpc.GenericServerStream[TransactionsRequest, TransactionResponse]{ServerStream: stream}) } -func (x *transactionsApiGetUnconfirmedServer) Send(m *TransactionResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionsApi_GetUnconfirmedServer = grpc.ServerStreamingServer[TransactionResponse] func _TransactionsApi_Sign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SignRequest) @@ -386,7 +294,7 @@ func _TransactionsApi_Sign_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.TransactionsApi/Sign", + FullMethod: TransactionsApi_Sign_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TransactionsApiServer).Sign(ctx, req.(*SignRequest)) @@ -404,7 +312,7 @@ func _TransactionsApi_Broadcast_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/waves.node.grpc.TransactionsApi/Broadcast", + FullMethod: TransactionsApi_Broadcast_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TransactionsApiServer).Broadcast(ctx, req.(*waves.SignedTransaction)) diff --git a/pkg/grpc/generated/waves/order.pb.go b/pkg/grpc/generated/waves/order.pb.go index b8a5fdeaf..36edb2bb6 100644 --- a/pkg/grpc/generated/waves/order.pb.go +++ b/pkg/grpc/generated/waves/order.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/order.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -116,21 +117,18 @@ func (Order_PriceMode) EnumDescriptor() ([]byte, []int) { } type AssetPair struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AmountAssetId []byte `protobuf:"bytes,1,opt,name=amount_asset_id,json=amountAssetId,proto3" json:"amount_asset_id,omitempty"` + PriceAssetId []byte `protobuf:"bytes,2,opt,name=price_asset_id,json=priceAssetId,proto3" json:"price_asset_id,omitempty"` unknownFields protoimpl.UnknownFields - - AmountAssetId []byte `protobuf:"bytes,1,opt,name=amount_asset_id,json=amountAssetId,proto3" json:"amount_asset_id,omitempty"` - PriceAssetId []byte `protobuf:"bytes,2,opt,name=price_asset_id,json=priceAssetId,proto3" json:"price_asset_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AssetPair) Reset() { *x = AssetPair{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_order_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_order_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetPair) String() string { @@ -141,7 +139,7 @@ func (*AssetPair) ProtoMessage() {} func (x *AssetPair) ProtoReflect() protoreflect.Message { mi := &file_waves_order_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -171,36 +169,34 @@ func (x *AssetPair) GetPriceAssetId() []byte { } type Order struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChainId int32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - MatcherPublicKey []byte `protobuf:"bytes,3,opt,name=matcher_public_key,json=matcherPublicKey,proto3" json:"matcher_public_key,omitempty"` - AssetPair *AssetPair `protobuf:"bytes,4,opt,name=asset_pair,json=assetPair,proto3" json:"asset_pair,omitempty"` - OrderSide Order_Side `protobuf:"varint,5,opt,name=order_side,json=orderSide,proto3,enum=waves.Order_Side" json:"order_side,omitempty"` - Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"` - Price int64 `protobuf:"varint,7,opt,name=price,proto3" json:"price,omitempty"` - Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Expiration int64 `protobuf:"varint,9,opt,name=expiration,proto3" json:"expiration,omitempty"` - MatcherFee *Amount `protobuf:"bytes,10,opt,name=matcher_fee,json=matcherFee,proto3" json:"matcher_fee,omitempty"` - Version int32 `protobuf:"varint,11,opt,name=version,proto3" json:"version,omitempty"` - Proofs [][]byte `protobuf:"bytes,12,rep,name=proofs,proto3" json:"proofs,omitempty"` - PriceMode Order_PriceMode `protobuf:"varint,14,opt,name=price_mode,json=priceMode,proto3,enum=waves.Order_PriceMode" json:"price_mode,omitempty"` - Attachment []byte `protobuf:"bytes,15,opt,name=attachment,proto3" json:"attachment,omitempty"` - // Types that are assignable to Sender: + state protoimpl.MessageState `protogen:"open.v1"` + ChainId int32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + MatcherPublicKey []byte `protobuf:"bytes,3,opt,name=matcher_public_key,json=matcherPublicKey,proto3" json:"matcher_public_key,omitempty"` + AssetPair *AssetPair `protobuf:"bytes,4,opt,name=asset_pair,json=assetPair,proto3" json:"asset_pair,omitempty"` + OrderSide Order_Side `protobuf:"varint,5,opt,name=order_side,json=orderSide,proto3,enum=waves.Order_Side" json:"order_side,omitempty"` + Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"` + Price int64 `protobuf:"varint,7,opt,name=price,proto3" json:"price,omitempty"` + Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Expiration int64 `protobuf:"varint,9,opt,name=expiration,proto3" json:"expiration,omitempty"` + MatcherFee *Amount `protobuf:"bytes,10,opt,name=matcher_fee,json=matcherFee,proto3" json:"matcher_fee,omitempty"` + Version int32 `protobuf:"varint,11,opt,name=version,proto3" json:"version,omitempty"` + Proofs [][]byte `protobuf:"bytes,12,rep,name=proofs,proto3" json:"proofs,omitempty"` + PriceMode Order_PriceMode `protobuf:"varint,14,opt,name=price_mode,json=priceMode,proto3,enum=waves.Order_PriceMode" json:"price_mode,omitempty"` + Attachment []byte `protobuf:"bytes,15,opt,name=attachment,proto3" json:"attachment,omitempty"` + // Types that are valid to be assigned to Sender: + // // *Order_SenderPublicKey // *Order_Eip712Signature - Sender isOrder_Sender `protobuf_oneof:"sender"` + Sender isOrder_Sender `protobuf_oneof:"sender"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Order) Reset() { *x = Order{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_order_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_order_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Order) String() string { @@ -211,7 +207,7 @@ func (*Order) ProtoMessage() {} func (x *Order) ProtoReflect() protoreflect.Message { mi := &file_waves_order_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -317,23 +313,27 @@ func (x *Order) GetAttachment() []byte { return nil } -func (m *Order) GetSender() isOrder_Sender { - if m != nil { - return m.Sender +func (x *Order) GetSender() isOrder_Sender { + if x != nil { + return x.Sender } return nil } func (x *Order) GetSenderPublicKey() []byte { - if x, ok := x.GetSender().(*Order_SenderPublicKey); ok { - return x.SenderPublicKey + if x != nil { + if x, ok := x.Sender.(*Order_SenderPublicKey); ok { + return x.SenderPublicKey + } } return nil } func (x *Order) GetEip712Signature() []byte { - if x, ok := x.GetSender().(*Order_Eip712Signature); ok { - return x.Eip712Signature + if x != nil { + if x, ok := x.Sender.(*Order_Eip712Signature); ok { + return x.Eip712Signature + } } return nil } @@ -356,82 +356,62 @@ func (*Order_Eip712Signature) isOrder_Sender() {} var File_waves_order_proto protoreflect.FileDescriptor -var file_waves_order_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, 0x76, 0x65, 0x73, 0x1a, 0x12, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, - 0x0a, 0x09, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x69, 0x72, 0x12, 0x26, 0x0a, 0x0f, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0x9a, 0x05, 0x0a, 0x05, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x2c, - 0x0a, 0x12, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x0a, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, - 0x69, 0x72, 0x52, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x69, 0x72, 0x12, 0x30, 0x0a, - 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x11, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, - 0x53, 0x69, 0x64, 0x65, 0x52, 0x09, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x69, 0x64, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, - 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x65, - 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x0b, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x46, 0x65, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x18, - 0x0c, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x12, 0x35, 0x0a, - 0x0a, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x16, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x2e, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, - 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, - 0x00, 0x52, 0x0f, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, - 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x10, 0x65, 0x69, 0x70, 0x37, 0x31, 0x32, 0x5f, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, - 0x65, 0x69, 0x70, 0x37, 0x31, 0x32, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, - 0x19, 0x0a, 0x04, 0x53, 0x69, 0x64, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x55, 0x59, 0x10, 0x00, - 0x12, 0x08, 0x0a, 0x04, 0x53, 0x45, 0x4c, 0x4c, 0x10, 0x01, 0x22, 0x40, 0x0a, 0x09, 0x50, 0x72, - 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, - 0x4c, 0x54, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x58, 0x45, 0x44, 0x5f, 0x44, 0x45, - 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x53, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x53, 0x53, 0x45, - 0x54, 0x5f, 0x44, 0x45, 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x53, 0x10, 0x02, 0x42, 0x08, 0x0a, 0x06, - 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x65, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, - 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, - 0x77, 0x61, 0x76, 0x65, 0x73, 0xaa, 0x02, 0x05, 0x57, 0x61, 0x76, 0x65, 0x73, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_order_proto_rawDesc = "" + + "\n" + + "\x11waves/order.proto\x12\x05waves\x1a\x12waves/amount.proto\"Y\n" + + "\tAssetPair\x12&\n" + + "\x0famount_asset_id\x18\x01 \x01(\fR\ramountAssetId\x12$\n" + + "\x0eprice_asset_id\x18\x02 \x01(\fR\fpriceAssetId\"\x9a\x05\n" + + "\x05Order\x12\x19\n" + + "\bchain_id\x18\x01 \x01(\x05R\achainId\x12,\n" + + "\x12matcher_public_key\x18\x03 \x01(\fR\x10matcherPublicKey\x12/\n" + + "\n" + + "asset_pair\x18\x04 \x01(\v2\x10.waves.AssetPairR\tassetPair\x120\n" + + "\n" + + "order_side\x18\x05 \x01(\x0e2\x11.waves.Order.SideR\torderSide\x12\x16\n" + + "\x06amount\x18\x06 \x01(\x03R\x06amount\x12\x14\n" + + "\x05price\x18\a \x01(\x03R\x05price\x12\x1c\n" + + "\ttimestamp\x18\b \x01(\x03R\ttimestamp\x12\x1e\n" + + "\n" + + "expiration\x18\t \x01(\x03R\n" + + "expiration\x12.\n" + + "\vmatcher_fee\x18\n" + + " \x01(\v2\r.waves.AmountR\n" + + "matcherFee\x12\x18\n" + + "\aversion\x18\v \x01(\x05R\aversion\x12\x16\n" + + "\x06proofs\x18\f \x03(\fR\x06proofs\x125\n" + + "\n" + + "price_mode\x18\x0e \x01(\x0e2\x16.waves.Order.PriceModeR\tpriceMode\x12\x1e\n" + + "\n" + + "attachment\x18\x0f \x01(\fR\n" + + "attachment\x12,\n" + + "\x11sender_public_key\x18\x02 \x01(\fH\x00R\x0fsenderPublicKey\x12+\n" + + "\x10eip712_signature\x18\r \x01(\fH\x00R\x0feip712Signature\"\x19\n" + + "\x04Side\x12\a\n" + + "\x03BUY\x10\x00\x12\b\n" + + "\x04SELL\x10\x01\"@\n" + + "\tPriceMode\x12\v\n" + + "\aDEFAULT\x10\x00\x12\x12\n" + + "\x0eFIXED_DECIMALS\x10\x01\x12\x12\n" + + "\x0eASSET_DECIMALS\x10\x02B\b\n" + + "\x06senderBe\n" + + " com.wavesplatform.protobuf.orderZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_order_proto_rawDescOnce sync.Once - file_waves_order_proto_rawDescData = file_waves_order_proto_rawDesc + file_waves_order_proto_rawDescData []byte ) func file_waves_order_proto_rawDescGZIP() []byte { file_waves_order_proto_rawDescOnce.Do(func() { - file_waves_order_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_order_proto_rawDescData) + file_waves_order_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_order_proto_rawDesc), len(file_waves_order_proto_rawDesc))) }) return file_waves_order_proto_rawDescData } var file_waves_order_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_waves_order_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_waves_order_proto_goTypes = []interface{}{ +var file_waves_order_proto_goTypes = []any{ (Order_Side)(0), // 0: waves.Order.Side (Order_PriceMode)(0), // 1: waves.Order.PriceMode (*AssetPair)(nil), // 2: waves.AssetPair @@ -456,33 +436,7 @@ func file_waves_order_proto_init() { return } file_waves_amount_proto_init() - if !protoimpl.UnsafeEnabled { - file_waves_order_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetPair); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_order_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Order); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_waves_order_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_waves_order_proto_msgTypes[1].OneofWrappers = []any{ (*Order_SenderPublicKey)(nil), (*Order_Eip712Signature)(nil), } @@ -490,7 +444,7 @@ func file_waves_order_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_waves_order_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_order_proto_rawDesc), len(file_waves_order_proto_rawDesc)), NumEnums: 2, NumMessages: 2, NumExtensions: 0, @@ -502,7 +456,6 @@ func file_waves_order_proto_init() { MessageInfos: file_waves_order_proto_msgTypes, }.Build() File_waves_order_proto = out.File - file_waves_order_proto_rawDesc = nil file_waves_order_proto_goTypes = nil file_waves_order_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/order_vtproto.pb.go b/pkg/grpc/generated/waves/order_vtproto.pb.go index a640e6b4f..011147658 100644 --- a/pkg/grpc/generated/waves/order_vtproto.pb.go +++ b/pkg/grpc/generated/waves/order_vtproto.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/order.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -50,14 +51,14 @@ func (m *AssetPair) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if len(m.PriceAssetId) > 0 { i -= len(m.PriceAssetId) copy(dAtA[i:], m.PriceAssetId) - i = encodeVarint(dAtA, i, uint64(len(m.PriceAssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PriceAssetId))) i-- dAtA[i] = 0x12 } if len(m.AmountAssetId) > 0 { i -= len(m.AmountAssetId) copy(dAtA[i:], m.AmountAssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AmountAssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AmountAssetId))) i-- dAtA[i] = 0xa } @@ -97,12 +98,12 @@ func (m *Order) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if len(m.Attachment) > 0 { i -= len(m.Attachment) copy(dAtA[i:], m.Attachment) - i = encodeVarint(dAtA, i, uint64(len(m.Attachment))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Attachment))) i-- dAtA[i] = 0x7a } if m.PriceMode != 0 { - i = encodeVarint(dAtA, i, uint64(m.PriceMode)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PriceMode)) i-- dAtA[i] = 0x70 } @@ -117,13 +118,13 @@ func (m *Order) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { for iNdEx := len(m.Proofs) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Proofs[iNdEx]) copy(dAtA[i:], m.Proofs[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Proofs[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Proofs[iNdEx]))) i-- dAtA[i] = 0x62 } } if m.Version != 0 { - i = encodeVarint(dAtA, i, uint64(m.Version)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x58 } @@ -133,32 +134,32 @@ func (m *Order) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x52 } if m.Expiration != 0 { - i = encodeVarint(dAtA, i, uint64(m.Expiration)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Expiration)) i-- dAtA[i] = 0x48 } if m.Timestamp != 0 { - i = encodeVarint(dAtA, i, uint64(m.Timestamp)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x40 } if m.Price != 0 { - i = encodeVarint(dAtA, i, uint64(m.Price)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Price)) i-- dAtA[i] = 0x38 } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x30 } if m.OrderSide != 0 { - i = encodeVarint(dAtA, i, uint64(m.OrderSide)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OrderSide)) i-- dAtA[i] = 0x28 } @@ -168,14 +169,14 @@ func (m *Order) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } if len(m.MatcherPublicKey) > 0 { i -= len(m.MatcherPublicKey) copy(dAtA[i:], m.MatcherPublicKey) - i = encodeVarint(dAtA, i, uint64(len(m.MatcherPublicKey))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.MatcherPublicKey))) i-- dAtA[i] = 0x1a } @@ -187,7 +188,7 @@ func (m *Order) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= size } if m.ChainId != 0 { - i = encodeVarint(dAtA, i, uint64(m.ChainId)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ChainId)) i-- dAtA[i] = 0x8 } @@ -203,7 +204,7 @@ func (m *Order_SenderPublicKey) MarshalToSizedBufferVTStrict(dAtA []byte) (int, i := len(dAtA) i -= len(m.SenderPublicKey) copy(dAtA[i:], m.SenderPublicKey) - i = encodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) i-- dAtA[i] = 0x12 return len(dAtA) - i, nil @@ -217,7 +218,7 @@ func (m *Order_Eip712Signature) MarshalToSizedBufferVTStrict(dAtA []byte) (int, i := len(dAtA) i -= len(m.Eip712Signature) copy(dAtA[i:], m.Eip712Signature) - i = encodeVarint(dAtA, i, uint64(len(m.Eip712Signature))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Eip712Signature))) i-- dAtA[i] = 0x6a return len(dAtA) - i, nil @@ -230,11 +231,11 @@ func (m *AssetPair) SizeVT() (n int) { _ = l l = len(m.AmountAssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.PriceAssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -247,53 +248,53 @@ func (m *Order) SizeVT() (n int) { var l int _ = l if m.ChainId != 0 { - n += 1 + sov(uint64(m.ChainId)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.ChainId)) } if vtmsg, ok := m.Sender.(interface{ SizeVT() int }); ok { n += vtmsg.SizeVT() } l = len(m.MatcherPublicKey) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.AssetPair != nil { l = m.AssetPair.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.OrderSide != 0 { - n += 1 + sov(uint64(m.OrderSide)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.OrderSide)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } if m.Price != 0 { - n += 1 + sov(uint64(m.Price)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Price)) } if m.Timestamp != 0 { - n += 1 + sov(uint64(m.Timestamp)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) } if m.Expiration != 0 { - n += 1 + sov(uint64(m.Expiration)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Expiration)) } if m.MatcherFee != nil { l = m.MatcherFee.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Version != 0 { - n += 1 + sov(uint64(m.Version)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) } if len(m.Proofs) > 0 { for _, b := range m.Proofs { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.PriceMode != 0 { - n += 1 + sov(uint64(m.PriceMode)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.PriceMode)) } l = len(m.Attachment) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -306,7 +307,7 @@ func (m *Order_SenderPublicKey) SizeVT() (n int) { var l int _ = l l = len(m.SenderPublicKey) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *Order_Eip712Signature) SizeVT() (n int) { @@ -316,7 +317,7 @@ func (m *Order_Eip712Signature) SizeVT() (n int) { var l int _ = l l = len(m.Eip712Signature) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *AssetPair) UnmarshalVT(dAtA []byte) error { @@ -327,7 +328,7 @@ func (m *AssetPair) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -355,7 +356,7 @@ func (m *AssetPair) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -368,11 +369,11 @@ func (m *AssetPair) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -389,7 +390,7 @@ func (m *AssetPair) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -402,11 +403,11 @@ func (m *AssetPair) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -418,12 +419,12 @@ func (m *AssetPair) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -446,7 +447,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -474,7 +475,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { m.ChainId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -493,7 +494,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -506,11 +507,11 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -526,7 +527,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -539,11 +540,11 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -560,7 +561,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -573,11 +574,11 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -596,7 +597,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { m.OrderSide = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -615,7 +616,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -634,7 +635,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { m.Price = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -653,7 +654,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -672,7 +673,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { m.Expiration = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -691,7 +692,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -704,11 +705,11 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -727,7 +728,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -746,7 +747,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -759,11 +760,11 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -778,7 +779,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -791,11 +792,11 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -811,7 +812,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { m.PriceMode = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -830,7 +831,7 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -843,11 +844,11 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -859,12 +860,12 @@ func (m *Order) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF diff --git a/pkg/grpc/generated/waves/recipient.pb.go b/pkg/grpc/generated/waves/recipient.pb.go index ca928bbde..fdec6ac1f 100644 --- a/pkg/grpc/generated/waves/recipient.pb.go +++ b/pkg/grpc/generated/waves/recipient.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/recipient.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,23 +22,21 @@ const ( ) type Recipient struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Recipient: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Recipient: + // // *Recipient_PublicKeyHash // *Recipient_Alias - Recipient isRecipient_Recipient `protobuf_oneof:"recipient"` + Recipient isRecipient_Recipient `protobuf_oneof:"recipient"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Recipient) Reset() { *x = Recipient{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_recipient_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_recipient_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Recipient) String() string { @@ -48,7 +47,7 @@ func (*Recipient) ProtoMessage() {} func (x *Recipient) ProtoReflect() protoreflect.Message { mi := &file_waves_recipient_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -63,23 +62,27 @@ func (*Recipient) Descriptor() ([]byte, []int) { return file_waves_recipient_proto_rawDescGZIP(), []int{0} } -func (m *Recipient) GetRecipient() isRecipient_Recipient { - if m != nil { - return m.Recipient +func (x *Recipient) GetRecipient() isRecipient_Recipient { + if x != nil { + return x.Recipient } return nil } func (x *Recipient) GetPublicKeyHash() []byte { - if x, ok := x.GetRecipient().(*Recipient_PublicKeyHash); ok { - return x.PublicKeyHash + if x != nil { + if x, ok := x.Recipient.(*Recipient_PublicKeyHash); ok { + return x.PublicKeyHash + } } return nil } func (x *Recipient) GetAlias() string { - if x, ok := x.GetRecipient().(*Recipient_Alias); ok { - return x.Alias + if x != nil { + if x, ok := x.Recipient.(*Recipient_Alias); ok { + return x.Alias + } } return "" } @@ -103,38 +106,29 @@ func (*Recipient_Alias) isRecipient_Recipient() {} var File_waves_recipient_proto protoreflect.FileDescriptor -var file_waves_recipient_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, 0x76, 0x65, 0x73, 0x22, 0x5a, - 0x0a, 0x09, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, - 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x42, 0x0b, 0x0a, - 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x6b, 0x0a, 0x26, 0x63, 0x6f, - 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, - 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0xaa, - 0x02, 0x05, 0x57, 0x61, 0x76, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_recipient_proto_rawDesc = "" + + "\n" + + "\x15waves/recipient.proto\x12\x05waves\"Z\n" + + "\tRecipient\x12(\n" + + "\x0fpublic_key_hash\x18\x01 \x01(\fH\x00R\rpublicKeyHash\x12\x16\n" + + "\x05alias\x18\x02 \x01(\tH\x00R\x05aliasB\v\n" + + "\trecipientBk\n" + + "&com.wavesplatform.protobuf.transactionZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_recipient_proto_rawDescOnce sync.Once - file_waves_recipient_proto_rawDescData = file_waves_recipient_proto_rawDesc + file_waves_recipient_proto_rawDescData []byte ) func file_waves_recipient_proto_rawDescGZIP() []byte { file_waves_recipient_proto_rawDescOnce.Do(func() { - file_waves_recipient_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_recipient_proto_rawDescData) + file_waves_recipient_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_recipient_proto_rawDesc), len(file_waves_recipient_proto_rawDesc))) }) return file_waves_recipient_proto_rawDescData } var file_waves_recipient_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_waves_recipient_proto_goTypes = []interface{}{ +var file_waves_recipient_proto_goTypes = []any{ (*Recipient)(nil), // 0: waves.Recipient } var file_waves_recipient_proto_depIdxs = []int32{ @@ -150,21 +144,7 @@ func file_waves_recipient_proto_init() { if File_waves_recipient_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_recipient_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Recipient); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_waves_recipient_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_waves_recipient_proto_msgTypes[0].OneofWrappers = []any{ (*Recipient_PublicKeyHash)(nil), (*Recipient_Alias)(nil), } @@ -172,7 +152,7 @@ func file_waves_recipient_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_waves_recipient_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_recipient_proto_rawDesc), len(file_waves_recipient_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, @@ -183,7 +163,6 @@ func file_waves_recipient_proto_init() { MessageInfos: file_waves_recipient_proto_msgTypes, }.Build() File_waves_recipient_proto = out.File - file_waves_recipient_proto_rawDesc = nil file_waves_recipient_proto_goTypes = nil file_waves_recipient_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/recipient_vtproto.pb.go b/pkg/grpc/generated/waves/recipient_vtproto.pb.go index c00f07726..15089a364 100644 --- a/pkg/grpc/generated/waves/recipient_vtproto.pb.go +++ b/pkg/grpc/generated/waves/recipient_vtproto.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/recipient.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -73,7 +74,7 @@ func (m *Recipient_PublicKeyHash) MarshalToSizedBufferVTStrict(dAtA []byte) (int i := len(dAtA) i -= len(m.PublicKeyHash) copy(dAtA[i:], m.PublicKeyHash) - i = encodeVarint(dAtA, i, uint64(len(m.PublicKeyHash))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PublicKeyHash))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil @@ -87,7 +88,7 @@ func (m *Recipient_Alias) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) i := len(dAtA) i -= len(m.Alias) copy(dAtA[i:], m.Alias) - i = encodeVarint(dAtA, i, uint64(len(m.Alias))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Alias))) i-- dAtA[i] = 0x12 return len(dAtA) - i, nil @@ -112,7 +113,7 @@ func (m *Recipient_PublicKeyHash) SizeVT() (n int) { var l int _ = l l = len(m.PublicKeyHash) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *Recipient_Alias) SizeVT() (n int) { @@ -122,7 +123,7 @@ func (m *Recipient_Alias) SizeVT() (n int) { var l int _ = l l = len(m.Alias) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *Recipient) UnmarshalVT(dAtA []byte) error { @@ -133,7 +134,7 @@ func (m *Recipient) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -161,7 +162,7 @@ func (m *Recipient) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -174,11 +175,11 @@ func (m *Recipient) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -194,7 +195,7 @@ func (m *Recipient) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -208,11 +209,11 @@ func (m *Recipient) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -221,12 +222,12 @@ func (m *Recipient) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF diff --git a/pkg/grpc/generated/waves/reward_share.pb.go b/pkg/grpc/generated/waves/reward_share.pb.go index 9b970fa65..0b136711e 100644 --- a/pkg/grpc/generated/waves/reward_share.pb.go +++ b/pkg/grpc/generated/waves/reward_share.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/reward_share.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type RewardShare struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Reward int64 `protobuf:"varint,2,opt,name=reward,proto3" json:"reward,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Reward int64 `protobuf:"varint,2,opt,name=reward,proto3" json:"reward,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RewardShare) Reset() { *x = RewardShare{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_reward_share_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_reward_share_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RewardShare) String() string { @@ -46,7 +44,7 @@ func (*RewardShare) ProtoMessage() {} func (x *RewardShare) ProtoReflect() protoreflect.Message { mi := &file_waves_reward_share_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -77,36 +75,28 @@ func (x *RewardShare) GetReward() int64 { var File_waves_reward_share_proto protoreflect.FileDescriptor -var file_waves_reward_share_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x22, 0x3f, 0x0a, 0x0b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x42, 0x5f, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0xaa, 0x02, 0x05, 0x57, 0x61, - 0x76, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_reward_share_proto_rawDesc = "" + + "\n" + + "\x18waves/reward_share.proto\x12\x05waves\"?\n" + + "\vRewardShare\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12\x16\n" + + "\x06reward\x18\x02 \x01(\x03R\x06rewardB_\n" + + "\x1acom.wavesplatform.protobufZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_reward_share_proto_rawDescOnce sync.Once - file_waves_reward_share_proto_rawDescData = file_waves_reward_share_proto_rawDesc + file_waves_reward_share_proto_rawDescData []byte ) func file_waves_reward_share_proto_rawDescGZIP() []byte { file_waves_reward_share_proto_rawDescOnce.Do(func() { - file_waves_reward_share_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_reward_share_proto_rawDescData) + file_waves_reward_share_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_reward_share_proto_rawDesc), len(file_waves_reward_share_proto_rawDesc))) }) return file_waves_reward_share_proto_rawDescData } var file_waves_reward_share_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_waves_reward_share_proto_goTypes = []interface{}{ +var file_waves_reward_share_proto_goTypes = []any{ (*RewardShare)(nil), // 0: waves.RewardShare } var file_waves_reward_share_proto_depIdxs = []int32{ @@ -122,25 +112,11 @@ func file_waves_reward_share_proto_init() { if File_waves_reward_share_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_reward_share_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RewardShare); 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_waves_reward_share_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_reward_share_proto_rawDesc), len(file_waves_reward_share_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, @@ -151,7 +127,6 @@ func file_waves_reward_share_proto_init() { MessageInfos: file_waves_reward_share_proto_msgTypes, }.Build() File_waves_reward_share_proto = out.File - file_waves_reward_share_proto_rawDesc = nil file_waves_reward_share_proto_goTypes = nil file_waves_reward_share_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/reward_share_vtproto.pb.go b/pkg/grpc/generated/waves/reward_share_vtproto.pb.go index 775c0c887..fff84e158 100644 --- a/pkg/grpc/generated/waves/reward_share_vtproto.pb.go +++ b/pkg/grpc/generated/waves/reward_share_vtproto.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/reward_share.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -48,14 +49,14 @@ func (m *RewardShare) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { copy(dAtA[i:], m.unknownFields) } if m.Reward != 0 { - i = encodeVarint(dAtA, i, uint64(m.Reward)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Reward)) i-- dAtA[i] = 0x10 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -70,10 +71,10 @@ func (m *RewardShare) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Reward != 0 { - n += 1 + sov(uint64(m.Reward)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Reward)) } n += len(m.unknownFields) return n @@ -87,7 +88,7 @@ func (m *RewardShare) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -115,7 +116,7 @@ func (m *RewardShare) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -128,11 +129,11 @@ func (m *RewardShare) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -149,7 +150,7 @@ func (m *RewardShare) UnmarshalVT(dAtA []byte) error { m.Reward = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -163,12 +164,12 @@ func (m *RewardShare) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF diff --git a/pkg/grpc/generated/waves/state_snapshot.pb.go b/pkg/grpc/generated/waves/state_snapshot.pb.go index 8f4856cc2..5fd4281e8 100644 --- a/pkg/grpc/generated/waves/state_snapshot.pb.go +++ b/pkg/grpc/generated/waves/state_snapshot.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/state_snapshot.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type BlockSnapshot struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + Snapshots []*TransactionStateSnapshot `protobuf:"bytes,2,rep,name=snapshots,proto3" json:"snapshots,omitempty"` unknownFields protoimpl.UnknownFields - - BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - Snapshots []*TransactionStateSnapshot `protobuf:"bytes,2,rep,name=snapshots,proto3" json:"snapshots,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BlockSnapshot) Reset() { *x = BlockSnapshot{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_state_snapshot_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_state_snapshot_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockSnapshot) String() string { @@ -46,7 +44,7 @@ func (*BlockSnapshot) ProtoMessage() {} func (x *BlockSnapshot) ProtoReflect() protoreflect.Message { mi := &file_waves_state_snapshot_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -76,21 +74,18 @@ func (x *BlockSnapshot) GetSnapshots() []*TransactionStateSnapshot { } type MicroBlockSnapshot struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TotalBlockId []byte `protobuf:"bytes,1,opt,name=total_block_id,json=totalBlockId,proto3" json:"total_block_id,omitempty"` + Snapshots []*TransactionStateSnapshot `protobuf:"bytes,2,rep,name=snapshots,proto3" json:"snapshots,omitempty"` unknownFields protoimpl.UnknownFields - - TotalBlockId []byte `protobuf:"bytes,1,opt,name=total_block_id,json=totalBlockId,proto3" json:"total_block_id,omitempty"` - Snapshots []*TransactionStateSnapshot `protobuf:"bytes,2,rep,name=snapshots,proto3" json:"snapshots,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MicroBlockSnapshot) Reset() { *x = MicroBlockSnapshot{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_state_snapshot_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_state_snapshot_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MicroBlockSnapshot) String() string { @@ -101,7 +96,7 @@ func (*MicroBlockSnapshot) ProtoMessage() {} func (x *MicroBlockSnapshot) ProtoReflect() protoreflect.Message { mi := &file_waves_state_snapshot_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -132,50 +127,31 @@ func (x *MicroBlockSnapshot) GetSnapshots() []*TransactionStateSnapshot { var File_waves_state_snapshot_proto protoreflect.FileDescriptor -var file_waves_state_snapshot_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x1a, 0x26, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x69, 0x0a, 0x0d, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x19, 0x0a, 0x08, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x09, 0x73, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x22, 0x79, 0x0a, 0x12, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x24, 0x0a, 0x0e, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x73, 0x42, 0x68, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, - 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, - 0x76, 0x65, 0x73, 0xaa, 0x02, 0x05, 0x57, 0x61, 0x76, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} +const file_waves_state_snapshot_proto_rawDesc = "" + + "\n" + + "\x1awaves/state_snapshot.proto\x12\x05waves\x1a&waves/transaction_state_snapshot.proto\"i\n" + + "\rBlockSnapshot\x12\x19\n" + + "\bblock_id\x18\x01 \x01(\fR\ablockId\x12=\n" + + "\tsnapshots\x18\x02 \x03(\v2\x1f.waves.TransactionStateSnapshotR\tsnapshots\"y\n" + + "\x12MicroBlockSnapshot\x12$\n" + + "\x0etotal_block_id\x18\x01 \x01(\fR\ftotalBlockId\x12=\n" + + "\tsnapshots\x18\x02 \x03(\v2\x1f.waves.TransactionStateSnapshotR\tsnapshotsBh\n" + + "#com.wavesplatform.protobuf.snapshotZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_state_snapshot_proto_rawDescOnce sync.Once - file_waves_state_snapshot_proto_rawDescData = file_waves_state_snapshot_proto_rawDesc + file_waves_state_snapshot_proto_rawDescData []byte ) func file_waves_state_snapshot_proto_rawDescGZIP() []byte { file_waves_state_snapshot_proto_rawDescOnce.Do(func() { - file_waves_state_snapshot_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_state_snapshot_proto_rawDescData) + file_waves_state_snapshot_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_state_snapshot_proto_rawDesc), len(file_waves_state_snapshot_proto_rawDesc))) }) return file_waves_state_snapshot_proto_rawDescData } var file_waves_state_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_waves_state_snapshot_proto_goTypes = []interface{}{ +var file_waves_state_snapshot_proto_goTypes = []any{ (*BlockSnapshot)(nil), // 0: waves.BlockSnapshot (*MicroBlockSnapshot)(nil), // 1: waves.MicroBlockSnapshot (*TransactionStateSnapshot)(nil), // 2: waves.TransactionStateSnapshot @@ -196,37 +172,11 @@ func file_waves_state_snapshot_proto_init() { return } file_waves_transaction_state_snapshot_proto_init() - if !protoimpl.UnsafeEnabled { - file_waves_state_snapshot_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockSnapshot); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_state_snapshot_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MicroBlockSnapshot); 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_waves_state_snapshot_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_state_snapshot_proto_rawDesc), len(file_waves_state_snapshot_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -237,7 +187,6 @@ func file_waves_state_snapshot_proto_init() { MessageInfos: file_waves_state_snapshot_proto_msgTypes, }.Build() File_waves_state_snapshot_proto = out.File - file_waves_state_snapshot_proto_rawDesc = nil file_waves_state_snapshot_proto_goTypes = nil file_waves_state_snapshot_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/state_snapshot_vtproto.pb.go b/pkg/grpc/generated/waves/state_snapshot_vtproto.pb.go index 58c9bf347..cb9405617 100644 --- a/pkg/grpc/generated/waves/state_snapshot_vtproto.pb.go +++ b/pkg/grpc/generated/waves/state_snapshot_vtproto.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/state_snapshot.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -54,7 +55,7 @@ func (m *BlockSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -62,7 +63,7 @@ func (m *BlockSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if len(m.BlockId) > 0 { i -= len(m.BlockId) copy(dAtA[i:], m.BlockId) - i = encodeVarint(dAtA, i, uint64(len(m.BlockId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.BlockId))) i-- dAtA[i] = 0xa } @@ -106,7 +107,7 @@ func (m *MicroBlockSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -114,7 +115,7 @@ func (m *MicroBlockSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err if len(m.TotalBlockId) > 0 { i -= len(m.TotalBlockId) copy(dAtA[i:], m.TotalBlockId) - i = encodeVarint(dAtA, i, uint64(len(m.TotalBlockId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TotalBlockId))) i-- dAtA[i] = 0xa } @@ -129,12 +130,12 @@ func (m *BlockSnapshot) SizeVT() (n int) { _ = l l = len(m.BlockId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Snapshots) > 0 { for _, e := range m.Snapshots { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -149,12 +150,12 @@ func (m *MicroBlockSnapshot) SizeVT() (n int) { _ = l l = len(m.TotalBlockId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Snapshots) > 0 { for _, e := range m.Snapshots { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -169,7 +170,7 @@ func (m *BlockSnapshot) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -197,7 +198,7 @@ func (m *BlockSnapshot) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -210,11 +211,11 @@ func (m *BlockSnapshot) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -231,7 +232,7 @@ func (m *BlockSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -244,11 +245,11 @@ func (m *BlockSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -260,12 +261,12 @@ func (m *BlockSnapshot) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -288,7 +289,7 @@ func (m *MicroBlockSnapshot) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -316,7 +317,7 @@ func (m *MicroBlockSnapshot) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -329,11 +330,11 @@ func (m *MicroBlockSnapshot) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -350,7 +351,7 @@ func (m *MicroBlockSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -363,11 +364,11 @@ func (m *MicroBlockSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -379,12 +380,12 @@ func (m *MicroBlockSnapshot) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF diff --git a/pkg/grpc/generated/waves/transaction.pb.go b/pkg/grpc/generated/waves/transaction.pb.go index 48803199c..3ee31b7d5 100644 --- a/pkg/grpc/generated/waves/transaction.pb.go +++ b/pkg/grpc/generated/waves/transaction.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/transaction.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,24 +22,22 @@ const ( ) type SignedTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Transaction: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Transaction: + // // *SignedTransaction_WavesTransaction // *SignedTransaction_EthereumTransaction - Transaction isSignedTransaction_Transaction `protobuf_oneof:"transaction"` - Proofs [][]byte `protobuf:"bytes,2,rep,name=proofs,proto3" json:"proofs,omitempty"` + Transaction isSignedTransaction_Transaction `protobuf_oneof:"transaction"` + Proofs [][]byte `protobuf:"bytes,2,rep,name=proofs,proto3" json:"proofs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignedTransaction) Reset() { *x = SignedTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignedTransaction) String() string { @@ -49,7 +48,7 @@ func (*SignedTransaction) ProtoMessage() {} func (x *SignedTransaction) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -64,23 +63,27 @@ func (*SignedTransaction) Descriptor() ([]byte, []int) { return file_waves_transaction_proto_rawDescGZIP(), []int{0} } -func (m *SignedTransaction) GetTransaction() isSignedTransaction_Transaction { - if m != nil { - return m.Transaction +func (x *SignedTransaction) GetTransaction() isSignedTransaction_Transaction { + if x != nil { + return x.Transaction } return nil } func (x *SignedTransaction) GetWavesTransaction() *Transaction { - if x, ok := x.GetTransaction().(*SignedTransaction_WavesTransaction); ok { - return x.WavesTransaction + if x != nil { + if x, ok := x.Transaction.(*SignedTransaction_WavesTransaction); ok { + return x.WavesTransaction + } } return nil } func (x *SignedTransaction) GetEthereumTransaction() []byte { - if x, ok := x.GetTransaction().(*SignedTransaction_EthereumTransaction); ok { - return x.EthereumTransaction + if x != nil { + if x, ok := x.Transaction.(*SignedTransaction_EthereumTransaction); ok { + return x.EthereumTransaction + } } return nil } @@ -109,16 +112,14 @@ func (*SignedTransaction_WavesTransaction) isSignedTransaction_Transaction() {} func (*SignedTransaction_EthereumTransaction) isSignedTransaction_Transaction() {} type Transaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChainId int32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - SenderPublicKey []byte `protobuf:"bytes,2,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` - Fee *Amount `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` - Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Version int32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + ChainId int32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + SenderPublicKey []byte `protobuf:"bytes,2,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` + Fee *Amount `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` + Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Version int32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` + // Types that are valid to be assigned to Data: + // // *Transaction_Genesis // *Transaction_Payment // *Transaction_Issue @@ -137,16 +138,16 @@ type Transaction struct { // *Transaction_InvokeScript // *Transaction_UpdateAssetInfo // *Transaction_InvokeExpression - Data isTransaction_Data `protobuf_oneof:"data"` + Data isTransaction_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Transaction) Reset() { *x = Transaction{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Transaction) String() string { @@ -157,7 +158,7 @@ func (*Transaction) ProtoMessage() {} func (x *Transaction) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -207,135 +208,171 @@ func (x *Transaction) GetVersion() int32 { return 0 } -func (m *Transaction) GetData() isTransaction_Data { - if m != nil { - return m.Data +func (x *Transaction) GetData() isTransaction_Data { + if x != nil { + return x.Data } return nil } func (x *Transaction) GetGenesis() *GenesisTransactionData { - if x, ok := x.GetData().(*Transaction_Genesis); ok { - return x.Genesis + if x != nil { + if x, ok := x.Data.(*Transaction_Genesis); ok { + return x.Genesis + } } return nil } func (x *Transaction) GetPayment() *PaymentTransactionData { - if x, ok := x.GetData().(*Transaction_Payment); ok { - return x.Payment + if x != nil { + if x, ok := x.Data.(*Transaction_Payment); ok { + return x.Payment + } } return nil } func (x *Transaction) GetIssue() *IssueTransactionData { - if x, ok := x.GetData().(*Transaction_Issue); ok { - return x.Issue + if x != nil { + if x, ok := x.Data.(*Transaction_Issue); ok { + return x.Issue + } } return nil } func (x *Transaction) GetTransfer() *TransferTransactionData { - if x, ok := x.GetData().(*Transaction_Transfer); ok { - return x.Transfer + if x != nil { + if x, ok := x.Data.(*Transaction_Transfer); ok { + return x.Transfer + } } return nil } func (x *Transaction) GetReissue() *ReissueTransactionData { - if x, ok := x.GetData().(*Transaction_Reissue); ok { - return x.Reissue + if x != nil { + if x, ok := x.Data.(*Transaction_Reissue); ok { + return x.Reissue + } } return nil } func (x *Transaction) GetBurn() *BurnTransactionData { - if x, ok := x.GetData().(*Transaction_Burn); ok { - return x.Burn + if x != nil { + if x, ok := x.Data.(*Transaction_Burn); ok { + return x.Burn + } } return nil } func (x *Transaction) GetExchange() *ExchangeTransactionData { - if x, ok := x.GetData().(*Transaction_Exchange); ok { - return x.Exchange + if x != nil { + if x, ok := x.Data.(*Transaction_Exchange); ok { + return x.Exchange + } } return nil } func (x *Transaction) GetLease() *LeaseTransactionData { - if x, ok := x.GetData().(*Transaction_Lease); ok { - return x.Lease + if x != nil { + if x, ok := x.Data.(*Transaction_Lease); ok { + return x.Lease + } } return nil } func (x *Transaction) GetLeaseCancel() *LeaseCancelTransactionData { - if x, ok := x.GetData().(*Transaction_LeaseCancel); ok { - return x.LeaseCancel + if x != nil { + if x, ok := x.Data.(*Transaction_LeaseCancel); ok { + return x.LeaseCancel + } } return nil } func (x *Transaction) GetCreateAlias() *CreateAliasTransactionData { - if x, ok := x.GetData().(*Transaction_CreateAlias); ok { - return x.CreateAlias + if x != nil { + if x, ok := x.Data.(*Transaction_CreateAlias); ok { + return x.CreateAlias + } } return nil } func (x *Transaction) GetMassTransfer() *MassTransferTransactionData { - if x, ok := x.GetData().(*Transaction_MassTransfer); ok { - return x.MassTransfer + if x != nil { + if x, ok := x.Data.(*Transaction_MassTransfer); ok { + return x.MassTransfer + } } return nil } func (x *Transaction) GetDataTransaction() *DataTransactionData { - if x, ok := x.GetData().(*Transaction_DataTransaction); ok { - return x.DataTransaction + if x != nil { + if x, ok := x.Data.(*Transaction_DataTransaction); ok { + return x.DataTransaction + } } return nil } func (x *Transaction) GetSetScript() *SetScriptTransactionData { - if x, ok := x.GetData().(*Transaction_SetScript); ok { - return x.SetScript + if x != nil { + if x, ok := x.Data.(*Transaction_SetScript); ok { + return x.SetScript + } } return nil } func (x *Transaction) GetSponsorFee() *SponsorFeeTransactionData { - if x, ok := x.GetData().(*Transaction_SponsorFee); ok { - return x.SponsorFee + if x != nil { + if x, ok := x.Data.(*Transaction_SponsorFee); ok { + return x.SponsorFee + } } return nil } func (x *Transaction) GetSetAssetScript() *SetAssetScriptTransactionData { - if x, ok := x.GetData().(*Transaction_SetAssetScript); ok { - return x.SetAssetScript + if x != nil { + if x, ok := x.Data.(*Transaction_SetAssetScript); ok { + return x.SetAssetScript + } } return nil } func (x *Transaction) GetInvokeScript() *InvokeScriptTransactionData { - if x, ok := x.GetData().(*Transaction_InvokeScript); ok { - return x.InvokeScript + if x != nil { + if x, ok := x.Data.(*Transaction_InvokeScript); ok { + return x.InvokeScript + } } return nil } func (x *Transaction) GetUpdateAssetInfo() *UpdateAssetInfoTransactionData { - if x, ok := x.GetData().(*Transaction_UpdateAssetInfo); ok { - return x.UpdateAssetInfo + if x != nil { + if x, ok := x.Data.(*Transaction_UpdateAssetInfo); ok { + return x.UpdateAssetInfo + } } return nil } func (x *Transaction) GetInvokeExpression() *InvokeExpressionTransactionData { - if x, ok := x.GetData().(*Transaction_InvokeExpression); ok { - return x.InvokeExpression + if x != nil { + if x, ok := x.Data.(*Transaction_InvokeExpression); ok { + return x.InvokeExpression + } } return nil } @@ -453,21 +490,18 @@ func (*Transaction_UpdateAssetInfo) isTransaction_Data() {} func (*Transaction_InvokeExpression) isTransaction_Data() {} type GenesisTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GenesisTransactionData) Reset() { *x = GenesisTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenesisTransactionData) String() string { @@ -478,7 +512,7 @@ func (*GenesisTransactionData) ProtoMessage() {} func (x *GenesisTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -508,21 +542,18 @@ func (x *GenesisTransactionData) GetAmount() int64 { } type PaymentTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PaymentTransactionData) Reset() { *x = PaymentTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PaymentTransactionData) String() string { @@ -533,7 +564,7 @@ func (*PaymentTransactionData) ProtoMessage() {} func (x *PaymentTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -563,22 +594,19 @@ func (x *PaymentTransactionData) GetAmount() int64 { } type TransferTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` + Amount *Amount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + Attachment []byte `protobuf:"bytes,3,opt,name=attachment,proto3" json:"attachment,omitempty"` unknownFields protoimpl.UnknownFields - - Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` - Amount *Amount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` - Attachment []byte `protobuf:"bytes,3,opt,name=attachment,proto3" json:"attachment,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransferTransactionData) Reset() { *x = TransferTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransferTransactionData) String() string { @@ -589,7 +617,7 @@ func (*TransferTransactionData) ProtoMessage() {} func (x *TransferTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -626,20 +654,17 @@ func (x *TransferTransactionData) GetAttachment() []byte { } type CreateAliasTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` unknownFields protoimpl.UnknownFields - - Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateAliasTransactionData) Reset() { *x = CreateAliasTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateAliasTransactionData) String() string { @@ -650,7 +675,7 @@ func (*CreateAliasTransactionData) ProtoMessage() {} func (x *CreateAliasTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -673,26 +698,24 @@ func (x *CreateAliasTransactionData) GetAlias() string { } type DataEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // Types that are assignable to Value: + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Types that are valid to be assigned to Value: + // // *DataEntry_IntValue // *DataEntry_BoolValue // *DataEntry_BinaryValue // *DataEntry_StringValue - Value isDataEntry_Value `protobuf_oneof:"value"` + Value isDataEntry_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DataEntry) Reset() { *x = DataEntry{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataEntry) String() string { @@ -703,7 +726,7 @@ func (*DataEntry) ProtoMessage() {} func (x *DataEntry) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -725,37 +748,45 @@ func (x *DataEntry) GetKey() string { return "" } -func (m *DataEntry) GetValue() isDataEntry_Value { - if m != nil { - return m.Value +func (x *DataEntry) GetValue() isDataEntry_Value { + if x != nil { + return x.Value } return nil } func (x *DataEntry) GetIntValue() int64 { - if x, ok := x.GetValue().(*DataEntry_IntValue); ok { - return x.IntValue + if x != nil { + if x, ok := x.Value.(*DataEntry_IntValue); ok { + return x.IntValue + } } return 0 } func (x *DataEntry) GetBoolValue() bool { - if x, ok := x.GetValue().(*DataEntry_BoolValue); ok { - return x.BoolValue + if x != nil { + if x, ok := x.Value.(*DataEntry_BoolValue); ok { + return x.BoolValue + } } return false } func (x *DataEntry) GetBinaryValue() []byte { - if x, ok := x.GetValue().(*DataEntry_BinaryValue); ok { - return x.BinaryValue + if x != nil { + if x, ok := x.Value.(*DataEntry_BinaryValue); ok { + return x.BinaryValue + } } return nil } func (x *DataEntry) GetStringValue() string { - if x, ok := x.GetValue().(*DataEntry_StringValue); ok { - return x.StringValue + if x != nil { + if x, ok := x.Value.(*DataEntry_StringValue); ok { + return x.StringValue + } } return "" } @@ -789,20 +820,17 @@ func (*DataEntry_BinaryValue) isDataEntry_Value() {} func (*DataEntry_StringValue) isDataEntry_Value() {} type DataTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*DataEntry `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*DataEntry `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DataTransactionData) Reset() { *x = DataTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataTransactionData) String() string { @@ -813,7 +841,7 @@ func (*DataTransactionData) ProtoMessage() {} func (x *DataTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -836,22 +864,19 @@ func (x *DataTransactionData) GetData() []*DataEntry { } type MassTransferTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Transfers []*MassTransferTransactionData_Transfer `protobuf:"bytes,2,rep,name=transfers,proto3" json:"transfers,omitempty"` + Attachment []byte `protobuf:"bytes,3,opt,name=attachment,proto3" json:"attachment,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Transfers []*MassTransferTransactionData_Transfer `protobuf:"bytes,2,rep,name=transfers,proto3" json:"transfers,omitempty"` - Attachment []byte `protobuf:"bytes,3,opt,name=attachment,proto3" json:"attachment,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MassTransferTransactionData) Reset() { *x = MassTransferTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MassTransferTransactionData) String() string { @@ -862,7 +887,7 @@ func (*MassTransferTransactionData) ProtoMessage() {} func (x *MassTransferTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -899,21 +924,18 @@ func (x *MassTransferTransactionData) GetAttachment() []byte { } type LeaseTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LeaseTransactionData) Reset() { *x = LeaseTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LeaseTransactionData) String() string { @@ -924,7 +946,7 @@ func (*LeaseTransactionData) ProtoMessage() {} func (x *LeaseTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -954,20 +976,17 @@ func (x *LeaseTransactionData) GetAmount() int64 { } type LeaseCancelTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` unknownFields protoimpl.UnknownFields - - LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *LeaseCancelTransactionData) Reset() { *x = LeaseCancelTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LeaseCancelTransactionData) String() string { @@ -978,7 +997,7 @@ func (*LeaseCancelTransactionData) ProtoMessage() {} func (x *LeaseCancelTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1001,20 +1020,17 @@ func (x *LeaseCancelTransactionData) GetLeaseId() []byte { } type BurnTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetAmount *Amount `protobuf:"bytes,1,opt,name=asset_amount,json=assetAmount,proto3" json:"asset_amount,omitempty"` unknownFields protoimpl.UnknownFields - - AssetAmount *Amount `protobuf:"bytes,1,opt,name=asset_amount,json=assetAmount,proto3" json:"asset_amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BurnTransactionData) Reset() { *x = BurnTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BurnTransactionData) String() string { @@ -1025,7 +1041,7 @@ func (*BurnTransactionData) ProtoMessage() {} func (x *BurnTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1048,25 +1064,22 @@ func (x *BurnTransactionData) GetAssetAmount() *Amount { } type IssueTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + Decimals int32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"` + Reissuable bool `protobuf:"varint,5,opt,name=reissuable,proto3" json:"reissuable,omitempty"` + Script []byte `protobuf:"bytes,6,opt,name=script,proto3" json:"script,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` - Decimals int32 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"` - Reissuable bool `protobuf:"varint,5,opt,name=reissuable,proto3" json:"reissuable,omitempty"` - Script []byte `protobuf:"bytes,6,opt,name=script,proto3" json:"script,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IssueTransactionData) Reset() { *x = IssueTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IssueTransactionData) String() string { @@ -1077,7 +1090,7 @@ func (*IssueTransactionData) ProtoMessage() {} func (x *IssueTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1135,21 +1148,18 @@ func (x *IssueTransactionData) GetScript() []byte { } type ReissueTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetAmount *Amount `protobuf:"bytes,1,opt,name=asset_amount,json=assetAmount,proto3" json:"asset_amount,omitempty"` + Reissuable bool `protobuf:"varint,2,opt,name=reissuable,proto3" json:"reissuable,omitempty"` unknownFields protoimpl.UnknownFields - - AssetAmount *Amount `protobuf:"bytes,1,opt,name=asset_amount,json=assetAmount,proto3" json:"asset_amount,omitempty"` - Reissuable bool `protobuf:"varint,2,opt,name=reissuable,proto3" json:"reissuable,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ReissueTransactionData) Reset() { *x = ReissueTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReissueTransactionData) String() string { @@ -1160,7 +1170,7 @@ func (*ReissueTransactionData) ProtoMessage() {} func (x *ReissueTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1190,21 +1200,18 @@ func (x *ReissueTransactionData) GetReissuable() bool { } type SetAssetScriptTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetAssetScriptTransactionData) Reset() { *x = SetAssetScriptTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetAssetScriptTransactionData) String() string { @@ -1215,7 +1222,7 @@ func (*SetAssetScriptTransactionData) ProtoMessage() {} func (x *SetAssetScriptTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1245,20 +1252,17 @@ func (x *SetAssetScriptTransactionData) GetScript() []byte { } type SetScriptTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Script []byte `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` unknownFields protoimpl.UnknownFields - - Script []byte `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SetScriptTransactionData) Reset() { *x = SetScriptTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetScriptTransactionData) String() string { @@ -1269,7 +1273,7 @@ func (*SetScriptTransactionData) ProtoMessage() {} func (x *SetScriptTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1292,24 +1296,21 @@ func (x *SetScriptTransactionData) GetScript() []byte { } type ExchangeTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` - Price int64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` - BuyMatcherFee int64 `protobuf:"varint,3,opt,name=buy_matcher_fee,json=buyMatcherFee,proto3" json:"buy_matcher_fee,omitempty"` - SellMatcherFee int64 `protobuf:"varint,4,opt,name=sell_matcher_fee,json=sellMatcherFee,proto3" json:"sell_matcher_fee,omitempty"` - Orders []*Order `protobuf:"bytes,5,rep,name=orders,proto3" json:"orders,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + Price int64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` + BuyMatcherFee int64 `protobuf:"varint,3,opt,name=buy_matcher_fee,json=buyMatcherFee,proto3" json:"buy_matcher_fee,omitempty"` + SellMatcherFee int64 `protobuf:"varint,4,opt,name=sell_matcher_fee,json=sellMatcherFee,proto3" json:"sell_matcher_fee,omitempty"` + Orders []*Order `protobuf:"bytes,5,rep,name=orders,proto3" json:"orders,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExchangeTransactionData) Reset() { *x = ExchangeTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExchangeTransactionData) String() string { @@ -1320,7 +1321,7 @@ func (*ExchangeTransactionData) ProtoMessage() {} func (x *ExchangeTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1371,20 +1372,17 @@ func (x *ExchangeTransactionData) GetOrders() []*Order { } type SponsorFeeTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + MinFee *Amount `protobuf:"bytes,1,opt,name=min_fee,json=minFee,proto3" json:"min_fee,omitempty"` unknownFields protoimpl.UnknownFields - - MinFee *Amount `protobuf:"bytes,1,opt,name=min_fee,json=minFee,proto3" json:"min_fee,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SponsorFeeTransactionData) Reset() { *x = SponsorFeeTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SponsorFeeTransactionData) String() string { @@ -1395,7 +1393,7 @@ func (*SponsorFeeTransactionData) ProtoMessage() {} func (x *SponsorFeeTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1418,22 +1416,19 @@ func (x *SponsorFeeTransactionData) GetMinFee() *Amount { } type InvokeScriptTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DApp *Recipient `protobuf:"bytes,1,opt,name=d_app,json=dApp,proto3" json:"d_app,omitempty"` + FunctionCall []byte `protobuf:"bytes,2,opt,name=function_call,json=functionCall,proto3" json:"function_call,omitempty"` + Payments []*Amount `protobuf:"bytes,3,rep,name=payments,proto3" json:"payments,omitempty"` unknownFields protoimpl.UnknownFields - - DApp *Recipient `protobuf:"bytes,1,opt,name=d_app,json=dApp,proto3" json:"d_app,omitempty"` - FunctionCall []byte `protobuf:"bytes,2,opt,name=function_call,json=functionCall,proto3" json:"function_call,omitempty"` - Payments []*Amount `protobuf:"bytes,3,rep,name=payments,proto3" json:"payments,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeScriptTransactionData) Reset() { *x = InvokeScriptTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeScriptTransactionData) String() string { @@ -1444,7 +1439,7 @@ func (*InvokeScriptTransactionData) ProtoMessage() {} func (x *InvokeScriptTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1481,22 +1476,19 @@ func (x *InvokeScriptTransactionData) GetPayments() []*Amount { } type UpdateAssetInfoTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateAssetInfoTransactionData) Reset() { *x = UpdateAssetInfoTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateAssetInfoTransactionData) String() string { @@ -1507,7 +1499,7 @@ func (*UpdateAssetInfoTransactionData) ProtoMessage() {} func (x *UpdateAssetInfoTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1544,20 +1536,17 @@ func (x *UpdateAssetInfoTransactionData) GetDescription() string { } type InvokeExpressionTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Expression []byte `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"` unknownFields protoimpl.UnknownFields - - Expression []byte `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"` + sizeCache protoimpl.SizeCache } func (x *InvokeExpressionTransactionData) Reset() { *x = InvokeExpressionTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvokeExpressionTransactionData) String() string { @@ -1568,7 +1557,7 @@ func (*InvokeExpressionTransactionData) ProtoMessage() {} func (x *InvokeExpressionTransactionData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1591,21 +1580,18 @@ func (x *InvokeExpressionTransactionData) GetExpression() []byte { } type MassTransferTransactionData_Transfer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MassTransferTransactionData_Transfer) Reset() { *x = MassTransferTransactionData_Transfer{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MassTransferTransactionData_Transfer) String() string { @@ -1616,7 +1602,7 @@ func (*MassTransferTransactionData_Transfer) ProtoMessage() {} func (x *MassTransferTransactionData_Transfer) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1647,269 +1633,138 @@ func (x *MassTransferTransactionData_Transfer) GetAmount() int64 { var File_waves_transaction_proto protoreflect.FileDescriptor -var file_waves_transaction_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x1a, 0x12, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x63, 0x69, - 0x70, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, - 0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x11, 0x77, 0x61, 0x76, 0x65, 0x73, 0x5f, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x10, 0x77, 0x61, 0x76, 0x65, 0x73, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x14, 0x65, 0x74, 0x68, 0x65, 0x72, - 0x65, 0x75, 0x6d, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x13, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, - 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, - 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, - 0x6f, 0x6f, 0x66, 0x73, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0xf2, 0x0a, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x2a, - 0x0a, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x03, 0x66, 0x65, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, 0x65, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x6e, - 0x65, 0x73, 0x69, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, - 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x39, - 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, - 0x52, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x05, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12, 0x3c, - 0x0a, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, - 0x48, 0x00, 0x52, 0x08, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, - 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, - 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x62, 0x75, 0x72, 0x6e, 0x18, - 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x42, 0x75, - 0x72, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, - 0x61, 0x48, 0x00, 0x52, 0x04, 0x62, 0x75, 0x72, 0x6e, 0x12, 0x3c, 0x0a, 0x08, 0x65, 0x78, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x65, - 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4c, - 0x65, 0x61, 0x73, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, - 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x05, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0c, - 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x18, 0x6d, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, - 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0b, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x46, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, - 0x6c, 0x69, 0x61, 0x73, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, - 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x49, 0x0a, 0x0d, - 0x6d, 0x61, 0x73, 0x73, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x18, 0x6f, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4d, 0x61, 0x73, 0x73, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x73, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x10, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x70, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, - 0x0f, 0x64, 0x61, 0x74, 0x61, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x40, 0x0a, 0x0a, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x71, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x65, 0x74, - 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x09, 0x73, 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x12, 0x43, 0x0a, 0x0b, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x5f, 0x66, 0x65, - 0x65, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x53, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x46, 0x65, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x6f, 0x72, 0x46, 0x65, 0x65, 0x12, 0x50, 0x0a, 0x10, 0x73, 0x65, 0x74, 0x5f, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x73, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x65, 0x74, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x49, 0x0a, 0x0d, 0x69, 0x6e, 0x76, - 0x6f, 0x6b, 0x65, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x74, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x22, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x12, 0x53, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x75, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x55, 0x0a, 0x11, 0x69, 0x6e, 0x76, - 0x6f, 0x6b, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x77, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x76, - 0x6f, 0x6b, 0x65, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x10, - 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x16, 0x47, 0x65, 0x6e, 0x65, - 0x73, 0x69, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x72, - 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x5d, 0x0a, 0x16, 0x50, 0x61, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x72, 0x65, - 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, - 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x90, 0x01, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x2e, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, - 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, - 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, - 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x61, - 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x32, 0x0a, 0x1a, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0xb0, 0x01, - 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, - 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, - 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, - 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, - 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x3b, 0x0a, 0x13, 0x44, 0x61, 0x74, 0x61, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xf7, 0x01, - 0x0a, 0x1b, 0x4d, 0x61, 0x73, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, - 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x4d, 0x61, 0x73, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x2e, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, - 0x65, 0x6e, 0x74, 0x1a, 0x52, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, - 0x2e, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x69, 0x70, - 0x69, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x5e, 0x0a, 0x14, 0x4c, 0x65, 0x61, 0x73, 0x65, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x2e, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x69, 0x70, - 0x69, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x37, 0x0a, 0x1a, 0x4c, 0x65, 0x61, 0x73, 0x65, - 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x64, - 0x22, 0x47, 0x0a, 0x13, 0x42, 0x75, 0x72, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, - 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x73, - 0x73, 0x65, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb8, 0x01, 0x0a, 0x14, 0x49, 0x73, - 0x73, 0x75, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x1e, 0x0a, 0x0a, - 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0a, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x22, 0x6a, 0x0a, 0x16, 0x52, 0x65, 0x69, 0x73, 0x73, 0x75, 0x65, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x30, - 0x0a, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, - 0x22, 0x52, 0x0a, 0x1d, 0x53, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x22, 0x32, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x22, 0xbf, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x75, 0x79, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x72, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x62, 0x75, 0x79, - 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x46, 0x65, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x65, - 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x65, 0x6c, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x72, 0x46, 0x65, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x52, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x22, 0x43, 0x0a, 0x19, 0x53, 0x70, - 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x46, 0x65, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x66, - 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x22, - 0x94, 0x01, 0x0a, 0x1b, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x25, 0x0a, 0x05, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x04, 0x64, 0x41, 0x70, 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x29, 0x0a, 0x08, 0x70, - 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x71, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x41, 0x0a, 0x1f, 0x49, 0x6e, 0x76, - 0x6f, 0x6b, 0x65, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, - 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x6b, 0x0a, 0x26, - 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, - 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, - 0x73, 0xaa, 0x02, 0x05, 0x57, 0x61, 0x76, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} +const file_waves_transaction_proto_rawDesc = "" + + "\n" + + "\x17waves/transaction.proto\x12\x05waves\x1a\x12waves/amount.proto\x1a\x15waves/recipient.proto\x1a\x11waves/order.proto\"\xb2\x01\n" + + "\x11SignedTransaction\x12A\n" + + "\x11waves_transaction\x18\x01 \x01(\v2\x12.waves.TransactionH\x00R\x10wavesTransaction\x123\n" + + "\x14ethereum_transaction\x18\x03 \x01(\fH\x00R\x13ethereumTransaction\x12\x16\n" + + "\x06proofs\x18\x02 \x03(\fR\x06proofsB\r\n" + + "\vtransaction\"\xf2\n" + + "\n" + + "\vTransaction\x12\x19\n" + + "\bchain_id\x18\x01 \x01(\x05R\achainId\x12*\n" + + "\x11sender_public_key\x18\x02 \x01(\fR\x0fsenderPublicKey\x12\x1f\n" + + "\x03fee\x18\x03 \x01(\v2\r.waves.AmountR\x03fee\x12\x1c\n" + + "\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\x12\x18\n" + + "\aversion\x18\x05 \x01(\x05R\aversion\x129\n" + + "\agenesis\x18e \x01(\v2\x1d.waves.GenesisTransactionDataH\x00R\agenesis\x129\n" + + "\apayment\x18f \x01(\v2\x1d.waves.PaymentTransactionDataH\x00R\apayment\x123\n" + + "\x05issue\x18g \x01(\v2\x1b.waves.IssueTransactionDataH\x00R\x05issue\x12<\n" + + "\btransfer\x18h \x01(\v2\x1e.waves.TransferTransactionDataH\x00R\btransfer\x129\n" + + "\areissue\x18i \x01(\v2\x1d.waves.ReissueTransactionDataH\x00R\areissue\x120\n" + + "\x04burn\x18j \x01(\v2\x1a.waves.BurnTransactionDataH\x00R\x04burn\x12<\n" + + "\bexchange\x18k \x01(\v2\x1e.waves.ExchangeTransactionDataH\x00R\bexchange\x123\n" + + "\x05lease\x18l \x01(\v2\x1b.waves.LeaseTransactionDataH\x00R\x05lease\x12F\n" + + "\flease_cancel\x18m \x01(\v2!.waves.LeaseCancelTransactionDataH\x00R\vleaseCancel\x12F\n" + + "\fcreate_alias\x18n \x01(\v2!.waves.CreateAliasTransactionDataH\x00R\vcreateAlias\x12I\n" + + "\rmass_transfer\x18o \x01(\v2\".waves.MassTransferTransactionDataH\x00R\fmassTransfer\x12G\n" + + "\x10data_transaction\x18p \x01(\v2\x1a.waves.DataTransactionDataH\x00R\x0fdataTransaction\x12@\n" + + "\n" + + "set_script\x18q \x01(\v2\x1f.waves.SetScriptTransactionDataH\x00R\tsetScript\x12C\n" + + "\vsponsor_fee\x18r \x01(\v2 .waves.SponsorFeeTransactionDataH\x00R\n" + + "sponsorFee\x12P\n" + + "\x10set_asset_script\x18s \x01(\v2$.waves.SetAssetScriptTransactionDataH\x00R\x0esetAssetScript\x12I\n" + + "\rinvoke_script\x18t \x01(\v2\".waves.InvokeScriptTransactionDataH\x00R\finvokeScript\x12S\n" + + "\x11update_asset_info\x18u \x01(\v2%.waves.UpdateAssetInfoTransactionDataH\x00R\x0fupdateAssetInfo\x12U\n" + + "\x11invoke_expression\x18w \x01(\v2&.waves.InvokeExpressionTransactionDataH\x00R\x10invokeExpressionB\x06\n" + + "\x04data\"]\n" + + "\x16GenesisTransactionData\x12+\n" + + "\x11recipient_address\x18\x01 \x01(\fR\x10recipientAddress\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x03R\x06amount\"]\n" + + "\x16PaymentTransactionData\x12+\n" + + "\x11recipient_address\x18\x01 \x01(\fR\x10recipientAddress\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x03R\x06amount\"\x90\x01\n" + + "\x17TransferTransactionData\x12.\n" + + "\trecipient\x18\x01 \x01(\v2\x10.waves.RecipientR\trecipient\x12%\n" + + "\x06amount\x18\x02 \x01(\v2\r.waves.AmountR\x06amount\x12\x1e\n" + + "\n" + + "attachment\x18\x03 \x01(\fR\n" + + "attachment\"2\n" + + "\x1aCreateAliasTransactionData\x12\x14\n" + + "\x05alias\x18\x01 \x01(\tR\x05alias\"\xb0\x01\n" + + "\tDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x1d\n" + + "\tint_value\x18\n" + + " \x01(\x03H\x00R\bintValue\x12\x1f\n" + + "\n" + + "bool_value\x18\v \x01(\bH\x00R\tboolValue\x12#\n" + + "\fbinary_value\x18\f \x01(\fH\x00R\vbinaryValue\x12#\n" + + "\fstring_value\x18\r \x01(\tH\x00R\vstringValueB\a\n" + + "\x05value\";\n" + + "\x13DataTransactionData\x12$\n" + + "\x04data\x18\x01 \x03(\v2\x10.waves.DataEntryR\x04data\"\xf7\x01\n" + + "\x1bMassTransferTransactionData\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12I\n" + + "\ttransfers\x18\x02 \x03(\v2+.waves.MassTransferTransactionData.TransferR\ttransfers\x12\x1e\n" + + "\n" + + "attachment\x18\x03 \x01(\fR\n" + + "attachment\x1aR\n" + + "\bTransfer\x12.\n" + + "\trecipient\x18\x01 \x01(\v2\x10.waves.RecipientR\trecipient\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x03R\x06amount\"^\n" + + "\x14LeaseTransactionData\x12.\n" + + "\trecipient\x18\x01 \x01(\v2\x10.waves.RecipientR\trecipient\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x03R\x06amount\"7\n" + + "\x1aLeaseCancelTransactionData\x12\x19\n" + + "\blease_id\x18\x01 \x01(\fR\aleaseId\"G\n" + + "\x13BurnTransactionData\x120\n" + + "\fasset_amount\x18\x01 \x01(\v2\r.waves.AmountR\vassetAmount\"\xb8\x01\n" + + "\x14IssueTransactionData\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x16\n" + + "\x06amount\x18\x03 \x01(\x03R\x06amount\x12\x1a\n" + + "\bdecimals\x18\x04 \x01(\x05R\bdecimals\x12\x1e\n" + + "\n" + + "reissuable\x18\x05 \x01(\bR\n" + + "reissuable\x12\x16\n" + + "\x06script\x18\x06 \x01(\fR\x06script\"j\n" + + "\x16ReissueTransactionData\x120\n" + + "\fasset_amount\x18\x01 \x01(\v2\r.waves.AmountR\vassetAmount\x12\x1e\n" + + "\n" + + "reissuable\x18\x02 \x01(\bR\n" + + "reissuable\"R\n" + + "\x1dSetAssetScriptTransactionData\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x16\n" + + "\x06script\x18\x02 \x01(\fR\x06script\"2\n" + + "\x18SetScriptTransactionData\x12\x16\n" + + "\x06script\x18\x01 \x01(\fR\x06script\"\xbf\x01\n" + + "\x17ExchangeTransactionData\x12\x16\n" + + "\x06amount\x18\x01 \x01(\x03R\x06amount\x12\x14\n" + + "\x05price\x18\x02 \x01(\x03R\x05price\x12&\n" + + "\x0fbuy_matcher_fee\x18\x03 \x01(\x03R\rbuyMatcherFee\x12(\n" + + "\x10sell_matcher_fee\x18\x04 \x01(\x03R\x0esellMatcherFee\x12$\n" + + "\x06orders\x18\x05 \x03(\v2\f.waves.OrderR\x06orders\"C\n" + + "\x19SponsorFeeTransactionData\x12&\n" + + "\amin_fee\x18\x01 \x01(\v2\r.waves.AmountR\x06minFee\"\x94\x01\n" + + "\x1bInvokeScriptTransactionData\x12%\n" + + "\x05d_app\x18\x01 \x01(\v2\x10.waves.RecipientR\x04dApp\x12#\n" + + "\rfunction_call\x18\x02 \x01(\fR\ffunctionCall\x12)\n" + + "\bpayments\x18\x03 \x03(\v2\r.waves.AmountR\bpayments\"q\n" + + "\x1eUpdateAssetInfoTransactionData\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\"A\n" + + "\x1fInvokeExpressionTransactionData\x12\x1e\n" + + "\n" + + "expression\x18\x01 \x01(\fR\n" + + "expressionBk\n" + + "&com.wavesplatform.protobuf.transactionZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_transaction_proto_rawDescOnce sync.Once - file_waves_transaction_proto_rawDescData = file_waves_transaction_proto_rawDesc + file_waves_transaction_proto_rawDescData []byte ) func file_waves_transaction_proto_rawDescGZIP() []byte { file_waves_transaction_proto_rawDescOnce.Do(func() { - file_waves_transaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_transaction_proto_rawDescData) + file_waves_transaction_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_transaction_proto_rawDesc), len(file_waves_transaction_proto_rawDesc))) }) return file_waves_transaction_proto_rawDescData } var file_waves_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 22) -var file_waves_transaction_proto_goTypes = []interface{}{ +var file_waves_transaction_proto_goTypes = []any{ (*SignedTransaction)(nil), // 0: waves.SignedTransaction (*Transaction)(nil), // 1: waves.Transaction (*GenesisTransactionData)(nil), // 2: waves.GenesisTransactionData @@ -1984,277 +1839,11 @@ func file_waves_transaction_proto_init() { file_waves_amount_proto_init() file_waves_recipient_proto_init() file_waves_order_proto_init() - if !protoimpl.UnsafeEnabled { - file_waves_transaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignedTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[1].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 - } - } - file_waves_transaction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PaymentTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateAliasTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataEntry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MassTransferTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LeaseTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LeaseCancelTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BurnTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IssueTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReissueTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetAssetScriptTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetScriptTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExchangeTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SponsorFeeTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeScriptTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateAssetInfoTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvokeExpressionTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MassTransferTransactionData_Transfer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_waves_transaction_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_waves_transaction_proto_msgTypes[0].OneofWrappers = []any{ (*SignedTransaction_WavesTransaction)(nil), (*SignedTransaction_EthereumTransaction)(nil), } - file_waves_transaction_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_waves_transaction_proto_msgTypes[1].OneofWrappers = []any{ (*Transaction_Genesis)(nil), (*Transaction_Payment)(nil), (*Transaction_Issue)(nil), @@ -2274,7 +1863,7 @@ func file_waves_transaction_proto_init() { (*Transaction_UpdateAssetInfo)(nil), (*Transaction_InvokeExpression)(nil), } - file_waves_transaction_proto_msgTypes[6].OneofWrappers = []interface{}{ + file_waves_transaction_proto_msgTypes[6].OneofWrappers = []any{ (*DataEntry_IntValue)(nil), (*DataEntry_BoolValue)(nil), (*DataEntry_BinaryValue)(nil), @@ -2284,7 +1873,7 @@ func file_waves_transaction_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_waves_transaction_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_transaction_proto_rawDesc), len(file_waves_transaction_proto_rawDesc)), NumEnums: 0, NumMessages: 22, NumExtensions: 0, @@ -2295,7 +1884,6 @@ func file_waves_transaction_proto_init() { MessageInfos: file_waves_transaction_proto_msgTypes, }.Build() File_waves_transaction_proto = out.File - file_waves_transaction_proto_rawDesc = nil file_waves_transaction_proto_goTypes = nil file_waves_transaction_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/transaction_state_snapshot.pb.go b/pkg/grpc/generated/waves/transaction_state_snapshot.pb.go index ccf968698..2226f4fa2 100644 --- a/pkg/grpc/generated/waves/transaction_state_snapshot.pb.go +++ b/pkg/grpc/generated/waves/transaction_state_snapshot.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/transaction_state_snapshot.proto package waves @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -70,10 +71,7 @@ func (TransactionStatus) EnumDescriptor() ([]byte, []int) { } type TransactionStateSnapshot struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Balances []*TransactionStateSnapshot_Balance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` LeaseBalances []*TransactionStateSnapshot_LeaseBalance `protobuf:"bytes,2,rep,name=lease_balances,json=leaseBalances,proto3" json:"lease_balances,omitempty"` NewLeases []*TransactionStateSnapshot_NewLease `protobuf:"bytes,3,rep,name=new_leases,json=newLeases,proto3" json:"new_leases,omitempty"` @@ -88,15 +86,15 @@ type TransactionStateSnapshot struct { AccountData []*TransactionStateSnapshot_AccountData `protobuf:"bytes,12,rep,name=account_data,json=accountData,proto3" json:"account_data,omitempty"` Sponsorships []*TransactionStateSnapshot_Sponsorship `protobuf:"bytes,13,rep,name=sponsorships,proto3" json:"sponsorships,omitempty"` TransactionStatus TransactionStatus `protobuf:"varint,14,opt,name=transaction_status,json=transactionStatus,proto3,enum=waves.TransactionStatus" json:"transaction_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot) Reset() { *x = TransactionStateSnapshot{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot) String() string { @@ -107,7 +105,7 @@ func (*TransactionStateSnapshot) ProtoMessage() {} func (x *TransactionStateSnapshot) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -221,21 +219,18 @@ func (x *TransactionStateSnapshot) GetTransactionStatus() TransactionStatus { } type TransactionStateSnapshot_Balance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Amount *Amount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Amount *Amount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_Balance) Reset() { *x = TransactionStateSnapshot_Balance{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_Balance) String() string { @@ -246,7 +241,7 @@ func (*TransactionStateSnapshot_Balance) ProtoMessage() {} func (x *TransactionStateSnapshot_Balance) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -276,22 +271,19 @@ func (x *TransactionStateSnapshot_Balance) GetAmount() *Amount { } type TransactionStateSnapshot_LeaseBalance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + In int64 `protobuf:"varint,2,opt,name=in,proto3" json:"in,omitempty"` + Out int64 `protobuf:"varint,3,opt,name=out,proto3" json:"out,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - In int64 `protobuf:"varint,2,opt,name=in,proto3" json:"in,omitempty"` - Out int64 `protobuf:"varint,3,opt,name=out,proto3" json:"out,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_LeaseBalance) Reset() { *x = TransactionStateSnapshot_LeaseBalance{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_LeaseBalance) String() string { @@ -302,7 +294,7 @@ func (*TransactionStateSnapshot_LeaseBalance) ProtoMessage() {} func (x *TransactionStateSnapshot_LeaseBalance) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -339,23 +331,20 @@ func (x *TransactionStateSnapshot_LeaseBalance) GetOut() int64 { } type TransactionStateSnapshot_NewLease struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` - SenderPublicKey []byte `protobuf:"bytes,2,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` - RecipientAddress []byte `protobuf:"bytes,3,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` - Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` + SenderPublicKey []byte `protobuf:"bytes,2,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` + RecipientAddress []byte `protobuf:"bytes,3,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` + Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_NewLease) Reset() { *x = TransactionStateSnapshot_NewLease{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_NewLease) String() string { @@ -366,7 +355,7 @@ func (*TransactionStateSnapshot_NewLease) ProtoMessage() {} func (x *TransactionStateSnapshot_NewLease) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -410,20 +399,17 @@ func (x *TransactionStateSnapshot_NewLease) GetAmount() int64 { } type TransactionStateSnapshot_CancelledLease struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` unknownFields protoimpl.UnknownFields - - LeaseId []byte `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_CancelledLease) Reset() { *x = TransactionStateSnapshot_CancelledLease{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_CancelledLease) String() string { @@ -434,7 +420,7 @@ func (*TransactionStateSnapshot_CancelledLease) ProtoMessage() {} func (x *TransactionStateSnapshot_CancelledLease) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -457,23 +443,20 @@ func (x *TransactionStateSnapshot_CancelledLease) GetLeaseId() []byte { } type TransactionStateSnapshot_NewAsset struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - IssuerPublicKey []byte `protobuf:"bytes,2,opt,name=issuer_public_key,json=issuerPublicKey,proto3" json:"issuer_public_key,omitempty"` - Decimals int32 `protobuf:"varint,3,opt,name=decimals,proto3" json:"decimals,omitempty"` - Nft bool `protobuf:"varint,4,opt,name=nft,proto3" json:"nft,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + IssuerPublicKey []byte `protobuf:"bytes,2,opt,name=issuer_public_key,json=issuerPublicKey,proto3" json:"issuer_public_key,omitempty"` + Decimals int32 `protobuf:"varint,3,opt,name=decimals,proto3" json:"decimals,omitempty"` + Nft bool `protobuf:"varint,4,opt,name=nft,proto3" json:"nft,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_NewAsset) Reset() { *x = TransactionStateSnapshot_NewAsset{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_NewAsset) String() string { @@ -484,7 +467,7 @@ func (*TransactionStateSnapshot_NewAsset) ProtoMessage() {} func (x *TransactionStateSnapshot_NewAsset) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -528,22 +511,19 @@ func (x *TransactionStateSnapshot_NewAsset) GetNft() bool { } type TransactionStateSnapshot_AssetVolume struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Reissuable bool `protobuf:"varint,2,opt,name=reissuable,proto3" json:"reissuable,omitempty"` + Volume []byte `protobuf:"bytes,3,opt,name=volume,proto3" json:"volume,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Reissuable bool `protobuf:"varint,2,opt,name=reissuable,proto3" json:"reissuable,omitempty"` - Volume []byte `protobuf:"bytes,3,opt,name=volume,proto3" json:"volume,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_AssetVolume) Reset() { *x = TransactionStateSnapshot_AssetVolume{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_AssetVolume) String() string { @@ -554,7 +534,7 @@ func (*TransactionStateSnapshot_AssetVolume) ProtoMessage() {} func (x *TransactionStateSnapshot_AssetVolume) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -591,22 +571,19 @@ func (x *TransactionStateSnapshot_AssetVolume) GetVolume() []byte { } type TransactionStateSnapshot_AssetNameAndDescription struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_AssetNameAndDescription) Reset() { *x = TransactionStateSnapshot_AssetNameAndDescription{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_AssetNameAndDescription) String() string { @@ -617,7 +594,7 @@ func (*TransactionStateSnapshot_AssetNameAndDescription) ProtoMessage() {} func (x *TransactionStateSnapshot_AssetNameAndDescription) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -654,21 +631,18 @@ func (x *TransactionStateSnapshot_AssetNameAndDescription) GetDescription() stri } type TransactionStateSnapshot_AssetScript struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_AssetScript) Reset() { *x = TransactionStateSnapshot_AssetScript{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_AssetScript) String() string { @@ -679,7 +653,7 @@ func (*TransactionStateSnapshot_AssetScript) ProtoMessage() {} func (x *TransactionStateSnapshot_AssetScript) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -709,21 +683,18 @@ func (x *TransactionStateSnapshot_AssetScript) GetScript() []byte { } type TransactionStateSnapshot_Alias struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_Alias) Reset() { *x = TransactionStateSnapshot_Alias{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_Alias) String() string { @@ -734,7 +705,7 @@ func (*TransactionStateSnapshot_Alias) ProtoMessage() {} func (x *TransactionStateSnapshot_Alias) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -764,22 +735,19 @@ func (x *TransactionStateSnapshot_Alias) GetAlias() string { } type TransactionStateSnapshot_OrderFill struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OrderId []byte `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + Volume int64 `protobuf:"varint,2,opt,name=volume,proto3" json:"volume,omitempty"` + Fee int64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` unknownFields protoimpl.UnknownFields - - OrderId []byte `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - Volume int64 `protobuf:"varint,2,opt,name=volume,proto3" json:"volume,omitempty"` - Fee int64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_OrderFill) Reset() { *x = TransactionStateSnapshot_OrderFill{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_OrderFill) String() string { @@ -790,7 +758,7 @@ func (*TransactionStateSnapshot_OrderFill) ProtoMessage() {} func (x *TransactionStateSnapshot_OrderFill) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -827,22 +795,19 @@ func (x *TransactionStateSnapshot_OrderFill) GetFee() int64 { } type TransactionStateSnapshot_AccountScript struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SenderPublicKey []byte `protobuf:"bytes,1,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` - Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` - VerifierComplexity int64 `protobuf:"varint,3,opt,name=verifier_complexity,json=verifierComplexity,proto3" json:"verifier_complexity,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SenderPublicKey []byte `protobuf:"bytes,1,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` + Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` + VerifierComplexity int64 `protobuf:"varint,3,opt,name=verifier_complexity,json=verifierComplexity,proto3" json:"verifier_complexity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_AccountScript) Reset() { *x = TransactionStateSnapshot_AccountScript{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_AccountScript) String() string { @@ -853,7 +818,7 @@ func (*TransactionStateSnapshot_AccountScript) ProtoMessage() {} func (x *TransactionStateSnapshot_AccountScript) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -890,21 +855,18 @@ func (x *TransactionStateSnapshot_AccountScript) GetVerifierComplexity() int64 { } type TransactionStateSnapshot_AccountData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Entries []*DataEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` unknownFields protoimpl.UnknownFields - - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Entries []*DataEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_AccountData) Reset() { *x = TransactionStateSnapshot_AccountData{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_AccountData) String() string { @@ -915,7 +877,7 @@ func (*TransactionStateSnapshot_AccountData) ProtoMessage() {} func (x *TransactionStateSnapshot_AccountData) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -945,21 +907,18 @@ func (x *TransactionStateSnapshot_AccountData) GetEntries() []*DataEntry { } type TransactionStateSnapshot_Sponsorship struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + MinFee int64 `protobuf:"varint,2,opt,name=min_fee,json=minFee,proto3" json:"min_fee,omitempty"` unknownFields protoimpl.UnknownFields - - AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - MinFee int64 `protobuf:"varint,2,opt,name=min_fee,json=minFee,proto3" json:"min_fee,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStateSnapshot_Sponsorship) Reset() { *x = TransactionStateSnapshot_Sponsorship{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_transaction_state_snapshot_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_transaction_state_snapshot_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStateSnapshot_Sponsorship) String() string { @@ -970,7 +929,7 @@ func (*TransactionStateSnapshot_Sponsorship) ProtoMessage() {} func (x *TransactionStateSnapshot_Sponsorship) ProtoReflect() protoreflect.Message { mi := &file_waves_transaction_state_snapshot_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1001,188 +960,99 @@ func (x *TransactionStateSnapshot_Sponsorship) GetMinFee() int64 { var File_waves_transaction_state_snapshot_proto protoreflect.FileDescriptor -var file_waves_transaction_state_snapshot_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, 0x76, 0x65, 0x73, 0x1a, - 0x12, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x12, 0x0a, - 0x18, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x43, 0x0a, 0x08, 0x62, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x42, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x53, - 0x0a, 0x0e, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x42, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x52, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x4e, 0x65, 0x77, 0x4c, 0x65, 0x61, 0x73, - 0x65, 0x52, 0x09, 0x6e, 0x65, 0x77, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x10, - 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, - 0x64, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, - 0x64, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x61, 0x73, 0x73, 0x65, 0x74, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, - 0x4e, 0x65, 0x77, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x69, 0x63, 0x73, 0x12, 0x50, 0x0a, 0x0d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x0c, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x12, 0x78, 0x0a, 0x1c, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x44, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x19, 0x61, 0x73, 0x73, 0x65, 0x74, 0x4e, 0x61, - 0x6d, 0x65, 0x73, 0x41, 0x6e, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x50, 0x0a, 0x0d, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x73, 0x12, 0x3f, 0x0a, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x07, 0x61, 0x6c, - 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x66, - 0x69, 0x6c, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x46, 0x69, 0x6c, 0x6c, 0x52, 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x6c, - 0x73, 0x12, 0x56, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x61, 0x76, - 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x73, 0x12, 0x4e, 0x0a, 0x0c, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x2b, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x4f, 0x0a, 0x0c, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x2b, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x2e, 0x53, 0x70, 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x0c, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x12, 0x47, 0x0a, 0x12, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x1a, 0x4a, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, - 0x2e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x1a, - 0x4a, 0x0a, 0x0c, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x75, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6f, 0x75, 0x74, 0x1a, 0x96, 0x01, 0x0a, 0x08, - 0x4e, 0x65, 0x77, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x65, 0x61, 0x73, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x73, - 0x65, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, - 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, - 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, - 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x2b, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, - 0x64, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, - 0x64, 0x1a, 0x7f, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x19, 0x0a, - 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x73, 0x75, - 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, - 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x66, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6e, - 0x66, 0x74, 0x1a, 0x60, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, - 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0a, 0x72, 0x65, 0x69, 0x73, 0x73, 0x75, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x76, 0x6f, - 0x6c, 0x75, 0x6d, 0x65, 0x1a, 0x6a, 0x0a, 0x17, 0x41, 0x73, 0x73, 0x65, 0x74, 0x4e, 0x61, 0x6d, - 0x65, 0x41, 0x6e, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x1a, 0x40, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, - 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x1a, 0x37, 0x0a, 0x05, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x1a, 0x50, 0x0a, 0x09, 0x4f, - 0x72, 0x64, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x66, - 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x66, 0x65, 0x65, 0x1a, 0x84, 0x01, - 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, - 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x12, 0x2f, 0x0a, 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, - 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x12, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x78, 0x69, 0x74, 0x79, 0x1a, 0x53, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2a, 0x0a, - 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x41, 0x0a, 0x0b, 0x53, 0x70, 0x6f, - 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x46, 0x65, 0x65, 0x2a, 0x3a, 0x0a, 0x11, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, - 0x45, 0x4c, 0x49, 0x44, 0x45, 0x44, 0x10, 0x02, 0x42, 0x68, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, - 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5a, - 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x65, 0x64, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0xaa, 0x02, 0x05, 0x57, 0x61, 0x76, - 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_waves_transaction_state_snapshot_proto_rawDesc = "" + + "\n" + + "&waves/transaction_state_snapshot.proto\x12\x05waves\x1a\x12waves/amount.proto\x1a\x17waves/transaction.proto\"\xad\x12\n" + + "\x18TransactionStateSnapshot\x12C\n" + + "\bbalances\x18\x01 \x03(\v2'.waves.TransactionStateSnapshot.BalanceR\bbalances\x12S\n" + + "\x0elease_balances\x18\x02 \x03(\v2,.waves.TransactionStateSnapshot.LeaseBalanceR\rleaseBalances\x12G\n" + + "\n" + + "new_leases\x18\x03 \x03(\v2(.waves.TransactionStateSnapshot.NewLeaseR\tnewLeases\x12Y\n" + + "\x10cancelled_leases\x18\x04 \x03(\v2..waves.TransactionStateSnapshot.CancelledLeaseR\x0fcancelledLeases\x12M\n" + + "\rasset_statics\x18\x05 \x03(\v2(.waves.TransactionStateSnapshot.NewAssetR\fassetStatics\x12P\n" + + "\rasset_volumes\x18\x06 \x03(\v2+.waves.TransactionStateSnapshot.AssetVolumeR\fassetVolumes\x12x\n" + + "\x1casset_names_and_descriptions\x18\a \x03(\v27.waves.TransactionStateSnapshot.AssetNameAndDescriptionR\x19assetNamesAndDescriptions\x12P\n" + + "\rasset_scripts\x18\b \x01(\v2+.waves.TransactionStateSnapshot.AssetScriptR\fassetScripts\x12?\n" + + "\aaliases\x18\t \x01(\v2%.waves.TransactionStateSnapshot.AliasR\aaliases\x12J\n" + + "\vorder_fills\x18\n" + + " \x03(\v2).waves.TransactionStateSnapshot.OrderFillR\n" + + "orderFills\x12V\n" + + "\x0faccount_scripts\x18\v \x01(\v2-.waves.TransactionStateSnapshot.AccountScriptR\x0eaccountScripts\x12N\n" + + "\faccount_data\x18\f \x03(\v2+.waves.TransactionStateSnapshot.AccountDataR\vaccountData\x12O\n" + + "\fsponsorships\x18\r \x03(\v2+.waves.TransactionStateSnapshot.SponsorshipR\fsponsorships\x12G\n" + + "\x12transaction_status\x18\x0e \x01(\x0e2\x18.waves.TransactionStatusR\x11transactionStatus\x1aJ\n" + + "\aBalance\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12%\n" + + "\x06amount\x18\x02 \x01(\v2\r.waves.AmountR\x06amount\x1aJ\n" + + "\fLeaseBalance\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12\x0e\n" + + "\x02in\x18\x02 \x01(\x03R\x02in\x12\x10\n" + + "\x03out\x18\x03 \x01(\x03R\x03out\x1a\x96\x01\n" + + "\bNewLease\x12\x19\n" + + "\blease_id\x18\x01 \x01(\fR\aleaseId\x12*\n" + + "\x11sender_public_key\x18\x02 \x01(\fR\x0fsenderPublicKey\x12+\n" + + "\x11recipient_address\x18\x03 \x01(\fR\x10recipientAddress\x12\x16\n" + + "\x06amount\x18\x04 \x01(\x03R\x06amount\x1a+\n" + + "\x0eCancelledLease\x12\x19\n" + + "\blease_id\x18\x01 \x01(\fR\aleaseId\x1a\x7f\n" + + "\bNewAsset\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12*\n" + + "\x11issuer_public_key\x18\x02 \x01(\fR\x0fissuerPublicKey\x12\x1a\n" + + "\bdecimals\x18\x03 \x01(\x05R\bdecimals\x12\x10\n" + + "\x03nft\x18\x04 \x01(\bR\x03nft\x1a`\n" + + "\vAssetVolume\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x1e\n" + + "\n" + + "reissuable\x18\x02 \x01(\bR\n" + + "reissuable\x12\x16\n" + + "\x06volume\x18\x03 \x01(\fR\x06volume\x1aj\n" + + "\x17AssetNameAndDescription\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x1a@\n" + + "\vAssetScript\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x16\n" + + "\x06script\x18\x02 \x01(\fR\x06script\x1a7\n" + + "\x05Alias\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12\x14\n" + + "\x05alias\x18\x02 \x01(\tR\x05alias\x1aP\n" + + "\tOrderFill\x12\x19\n" + + "\border_id\x18\x01 \x01(\fR\aorderId\x12\x16\n" + + "\x06volume\x18\x02 \x01(\x03R\x06volume\x12\x10\n" + + "\x03fee\x18\x03 \x01(\x03R\x03fee\x1a\x84\x01\n" + + "\rAccountScript\x12*\n" + + "\x11sender_public_key\x18\x01 \x01(\fR\x0fsenderPublicKey\x12\x16\n" + + "\x06script\x18\x02 \x01(\fR\x06script\x12/\n" + + "\x13verifier_complexity\x18\x03 \x01(\x03R\x12verifierComplexity\x1aS\n" + + "\vAccountData\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x12*\n" + + "\aentries\x18\x02 \x03(\v2\x10.waves.DataEntryR\aentries\x1aA\n" + + "\vSponsorship\x12\x19\n" + + "\basset_id\x18\x01 \x01(\fR\aassetId\x12\x17\n" + + "\amin_fee\x18\x02 \x01(\x03R\x06minFee*:\n" + + "\x11TransactionStatus\x12\r\n" + + "\tSUCCEEDED\x10\x00\x12\n" + + "\n" + + "\x06FAILED\x10\x01\x12\n" + + "\n" + + "\x06ELIDED\x10\x02Bh\n" + + "#com.wavesplatform.protobuf.snapshotZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_transaction_state_snapshot_proto_rawDescOnce sync.Once - file_waves_transaction_state_snapshot_proto_rawDescData = file_waves_transaction_state_snapshot_proto_rawDesc + file_waves_transaction_state_snapshot_proto_rawDescData []byte ) func file_waves_transaction_state_snapshot_proto_rawDescGZIP() []byte { file_waves_transaction_state_snapshot_proto_rawDescOnce.Do(func() { - file_waves_transaction_state_snapshot_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_transaction_state_snapshot_proto_rawDescData) + file_waves_transaction_state_snapshot_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_transaction_state_snapshot_proto_rawDesc), len(file_waves_transaction_state_snapshot_proto_rawDesc))) }) return file_waves_transaction_state_snapshot_proto_rawDescData } var file_waves_transaction_state_snapshot_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_waves_transaction_state_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_waves_transaction_state_snapshot_proto_goTypes = []interface{}{ +var file_waves_transaction_state_snapshot_proto_goTypes = []any{ (TransactionStatus)(0), // 0: waves.TransactionStatus (*TransactionStateSnapshot)(nil), // 1: waves.TransactionStateSnapshot (*TransactionStateSnapshot_Balance)(nil), // 2: waves.TransactionStateSnapshot.Balance @@ -1232,181 +1102,11 @@ func file_waves_transaction_state_snapshot_proto_init() { } file_waves_amount_proto_init() file_waves_transaction_proto_init() - if !protoimpl.UnsafeEnabled { - file_waves_transaction_state_snapshot_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_Balance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_LeaseBalance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_NewLease); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_CancelledLease); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_NewAsset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_AssetVolume); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_AssetNameAndDescription); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_AssetScript); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_Alias); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_OrderFill); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_AccountScript); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_AccountData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_transaction_state_snapshot_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransactionStateSnapshot_Sponsorship); 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_waves_transaction_state_snapshot_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_transaction_state_snapshot_proto_rawDesc), len(file_waves_transaction_state_snapshot_proto_rawDesc)), NumEnums: 1, NumMessages: 14, NumExtensions: 0, @@ -1418,7 +1118,6 @@ func file_waves_transaction_state_snapshot_proto_init() { MessageInfos: file_waves_transaction_state_snapshot_proto_msgTypes, }.Build() File_waves_transaction_state_snapshot_proto = out.File - file_waves_transaction_state_snapshot_proto_rawDesc = nil file_waves_transaction_state_snapshot_proto_goTypes = nil file_waves_transaction_state_snapshot_proto_depIdxs = nil } diff --git a/pkg/grpc/generated/waves/transaction_state_snapshot_vtproto.pb.go b/pkg/grpc/generated/waves/transaction_state_snapshot_vtproto.pb.go index d697161b2..fc3153a62 100644 --- a/pkg/grpc/generated/waves/transaction_state_snapshot_vtproto.pb.go +++ b/pkg/grpc/generated/waves/transaction_state_snapshot_vtproto.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/transaction_state_snapshot.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -53,14 +54,14 @@ func (m *TransactionStateSnapshot_Balance) MarshalToSizedBufferVTStrict(dAtA []b return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -98,19 +99,19 @@ func (m *TransactionStateSnapshot_LeaseBalance) MarshalToSizedBufferVTStrict(dAt copy(dAtA[i:], m.unknownFields) } if m.Out != 0 { - i = encodeVarint(dAtA, i, uint64(m.Out)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Out)) i-- dAtA[i] = 0x18 } if m.In != 0 { - i = encodeVarint(dAtA, i, uint64(m.In)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.In)) i-- dAtA[i] = 0x10 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -148,28 +149,28 @@ func (m *TransactionStateSnapshot_NewLease) MarshalToSizedBufferVTStrict(dAtA [] copy(dAtA[i:], m.unknownFields) } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x20 } if len(m.RecipientAddress) > 0 { i -= len(m.RecipientAddress) copy(dAtA[i:], m.RecipientAddress) - i = encodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) i-- dAtA[i] = 0x1a } if len(m.SenderPublicKey) > 0 { i -= len(m.SenderPublicKey) copy(dAtA[i:], m.SenderPublicKey) - i = encodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) i-- dAtA[i] = 0x12 } if len(m.LeaseId) > 0 { i -= len(m.LeaseId) copy(dAtA[i:], m.LeaseId) - i = encodeVarint(dAtA, i, uint64(len(m.LeaseId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LeaseId))) i-- dAtA[i] = 0xa } @@ -209,7 +210,7 @@ func (m *TransactionStateSnapshot_CancelledLease) MarshalToSizedBufferVTStrict(d if len(m.LeaseId) > 0 { i -= len(m.LeaseId) copy(dAtA[i:], m.LeaseId) - i = encodeVarint(dAtA, i, uint64(len(m.LeaseId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LeaseId))) i-- dAtA[i] = 0xa } @@ -257,21 +258,21 @@ func (m *TransactionStateSnapshot_NewAsset) MarshalToSizedBufferVTStrict(dAtA [] dAtA[i] = 0x20 } if m.Decimals != 0 { - i = encodeVarint(dAtA, i, uint64(m.Decimals)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Decimals)) i-- dAtA[i] = 0x18 } if len(m.IssuerPublicKey) > 0 { i -= len(m.IssuerPublicKey) copy(dAtA[i:], m.IssuerPublicKey) - i = encodeVarint(dAtA, i, uint64(len(m.IssuerPublicKey))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.IssuerPublicKey))) i-- dAtA[i] = 0x12 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -311,7 +312,7 @@ func (m *TransactionStateSnapshot_AssetVolume) MarshalToSizedBufferVTStrict(dAtA if len(m.Volume) > 0 { i -= len(m.Volume) copy(dAtA[i:], m.Volume) - i = encodeVarint(dAtA, i, uint64(len(m.Volume))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Volume))) i-- dAtA[i] = 0x1a } @@ -328,7 +329,7 @@ func (m *TransactionStateSnapshot_AssetVolume) MarshalToSizedBufferVTStrict(dAtA if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -368,21 +369,21 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) MarshalToSizedBufferV if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarint(dAtA, i, uint64(len(m.Description))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) i-- dAtA[i] = 0x1a } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -422,14 +423,14 @@ func (m *TransactionStateSnapshot_AssetScript) MarshalToSizedBufferVTStrict(dAtA if len(m.Script) > 0 { i -= len(m.Script) copy(dAtA[i:], m.Script) - i = encodeVarint(dAtA, i, uint64(len(m.Script))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Script))) i-- dAtA[i] = 0x12 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -469,14 +470,14 @@ func (m *TransactionStateSnapshot_Alias) MarshalToSizedBufferVTStrict(dAtA []byt if len(m.Alias) > 0 { i -= len(m.Alias) copy(dAtA[i:], m.Alias) - i = encodeVarint(dAtA, i, uint64(len(m.Alias))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Alias))) i-- dAtA[i] = 0x12 } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -514,19 +515,19 @@ func (m *TransactionStateSnapshot_OrderFill) MarshalToSizedBufferVTStrict(dAtA [ copy(dAtA[i:], m.unknownFields) } if m.Fee != 0 { - i = encodeVarint(dAtA, i, uint64(m.Fee)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Fee)) i-- dAtA[i] = 0x18 } if m.Volume != 0 { - i = encodeVarint(dAtA, i, uint64(m.Volume)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Volume)) i-- dAtA[i] = 0x10 } if len(m.OrderId) > 0 { i -= len(m.OrderId) copy(dAtA[i:], m.OrderId) - i = encodeVarint(dAtA, i, uint64(len(m.OrderId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrderId))) i-- dAtA[i] = 0xa } @@ -564,21 +565,21 @@ func (m *TransactionStateSnapshot_AccountScript) MarshalToSizedBufferVTStrict(dA copy(dAtA[i:], m.unknownFields) } if m.VerifierComplexity != 0 { - i = encodeVarint(dAtA, i, uint64(m.VerifierComplexity)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.VerifierComplexity)) i-- dAtA[i] = 0x18 } if len(m.Script) > 0 { i -= len(m.Script) copy(dAtA[i:], m.Script) - i = encodeVarint(dAtA, i, uint64(len(m.Script))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Script))) i-- dAtA[i] = 0x12 } if len(m.SenderPublicKey) > 0 { i -= len(m.SenderPublicKey) copy(dAtA[i:], m.SenderPublicKey) - i = encodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) i-- dAtA[i] = 0xa } @@ -622,7 +623,7 @@ func (m *TransactionStateSnapshot_AccountData) MarshalToSizedBufferVTStrict(dAtA return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -630,7 +631,7 @@ func (m *TransactionStateSnapshot_AccountData) MarshalToSizedBufferVTStrict(dAtA if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) - i = encodeVarint(dAtA, i, uint64(len(m.Address))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } @@ -668,14 +669,14 @@ func (m *TransactionStateSnapshot_Sponsorship) MarshalToSizedBufferVTStrict(dAtA copy(dAtA[i:], m.unknownFields) } if m.MinFee != 0 { - i = encodeVarint(dAtA, i, uint64(m.MinFee)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinFee)) i-- dAtA[i] = 0x10 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -713,7 +714,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in copy(dAtA[i:], m.unknownFields) } if m.TransactionStatus != 0 { - i = encodeVarint(dAtA, i, uint64(m.TransactionStatus)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TransactionStatus)) i-- dAtA[i] = 0x70 } @@ -724,7 +725,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6a } @@ -736,7 +737,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x62 } @@ -747,7 +748,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x5a } @@ -758,7 +759,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x52 } @@ -769,7 +770,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x4a } @@ -779,7 +780,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x42 } @@ -790,7 +791,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x3a } @@ -802,7 +803,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x32 } @@ -814,7 +815,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } @@ -826,7 +827,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } @@ -838,7 +839,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -850,7 +851,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -862,7 +863,7 @@ func (m *TransactionStateSnapshot) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -878,11 +879,11 @@ func (m *TransactionStateSnapshot_Balance) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != nil { l = m.Amount.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -896,13 +897,13 @@ func (m *TransactionStateSnapshot_LeaseBalance) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.In != 0 { - n += 1 + sov(uint64(m.In)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.In)) } if m.Out != 0 { - n += 1 + sov(uint64(m.Out)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Out)) } n += len(m.unknownFields) return n @@ -916,18 +917,18 @@ func (m *TransactionStateSnapshot_NewLease) SizeVT() (n int) { _ = l l = len(m.LeaseId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.SenderPublicKey) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.RecipientAddress) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } n += len(m.unknownFields) return n @@ -941,7 +942,7 @@ func (m *TransactionStateSnapshot_CancelledLease) SizeVT() (n int) { _ = l l = len(m.LeaseId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -955,14 +956,14 @@ func (m *TransactionStateSnapshot_NewAsset) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.IssuerPublicKey) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Decimals != 0 { - n += 1 + sov(uint64(m.Decimals)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Decimals)) } if m.Nft { n += 2 @@ -979,14 +980,14 @@ func (m *TransactionStateSnapshot_AssetVolume) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Reissuable { n += 2 } l = len(m.Volume) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1000,15 +1001,15 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1022,11 +1023,11 @@ func (m *TransactionStateSnapshot_AssetScript) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Script) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1040,11 +1041,11 @@ func (m *TransactionStateSnapshot_Alias) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Alias) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1058,13 +1059,13 @@ func (m *TransactionStateSnapshot_OrderFill) SizeVT() (n int) { _ = l l = len(m.OrderId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Volume != 0 { - n += 1 + sov(uint64(m.Volume)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Volume)) } if m.Fee != 0 { - n += 1 + sov(uint64(m.Fee)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Fee)) } n += len(m.unknownFields) return n @@ -1078,14 +1079,14 @@ func (m *TransactionStateSnapshot_AccountScript) SizeVT() (n int) { _ = l l = len(m.SenderPublicKey) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Script) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.VerifierComplexity != 0 { - n += 1 + sov(uint64(m.VerifierComplexity)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.VerifierComplexity)) } n += len(m.unknownFields) return n @@ -1099,12 +1100,12 @@ func (m *TransactionStateSnapshot_AccountData) SizeVT() (n int) { _ = l l = len(m.Address) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Entries) > 0 { for _, e := range m.Entries { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1119,10 +1120,10 @@ func (m *TransactionStateSnapshot_Sponsorship) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.MinFee != 0 { - n += 1 + sov(uint64(m.MinFee)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.MinFee)) } n += len(m.unknownFields) return n @@ -1137,77 +1138,77 @@ func (m *TransactionStateSnapshot) SizeVT() (n int) { if len(m.Balances) > 0 { for _, e := range m.Balances { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.LeaseBalances) > 0 { for _, e := range m.LeaseBalances { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.NewLeases) > 0 { for _, e := range m.NewLeases { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.CancelledLeases) > 0 { for _, e := range m.CancelledLeases { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.AssetStatics) > 0 { for _, e := range m.AssetStatics { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.AssetVolumes) > 0 { for _, e := range m.AssetVolumes { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.AssetNamesAndDescriptions) > 0 { for _, e := range m.AssetNamesAndDescriptions { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.AssetScripts != nil { l = m.AssetScripts.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Aliases != nil { l = m.Aliases.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.OrderFills) > 0 { for _, e := range m.OrderFills { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.AccountScripts != nil { l = m.AccountScripts.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.AccountData) > 0 { for _, e := range m.AccountData { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Sponsorships) > 0 { for _, e := range m.Sponsorships { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.TransactionStatus != 0 { - n += 1 + sov(uint64(m.TransactionStatus)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.TransactionStatus)) } n += len(m.unknownFields) return n @@ -1221,7 +1222,7 @@ func (m *TransactionStateSnapshot_Balance) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1249,7 +1250,7 @@ func (m *TransactionStateSnapshot_Balance) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1262,11 +1263,11 @@ func (m *TransactionStateSnapshot_Balance) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1283,7 +1284,7 @@ func (m *TransactionStateSnapshot_Balance) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1296,11 +1297,11 @@ func (m *TransactionStateSnapshot_Balance) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1314,12 +1315,12 @@ func (m *TransactionStateSnapshot_Balance) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1342,7 +1343,7 @@ func (m *TransactionStateSnapshot_LeaseBalance) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1370,7 +1371,7 @@ func (m *TransactionStateSnapshot_LeaseBalance) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1383,11 +1384,11 @@ func (m *TransactionStateSnapshot_LeaseBalance) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1404,7 +1405,7 @@ func (m *TransactionStateSnapshot_LeaseBalance) UnmarshalVT(dAtA []byte) error { m.In = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1423,7 +1424,7 @@ func (m *TransactionStateSnapshot_LeaseBalance) UnmarshalVT(dAtA []byte) error { m.Out = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1437,12 +1438,12 @@ func (m *TransactionStateSnapshot_LeaseBalance) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1465,7 +1466,7 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1493,7 +1494,7 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1506,11 +1507,11 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1527,7 +1528,7 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1540,11 +1541,11 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1561,7 +1562,7 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1574,11 +1575,11 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1595,7 +1596,7 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1609,12 +1610,12 @@ func (m *TransactionStateSnapshot_NewLease) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1637,7 +1638,7 @@ func (m *TransactionStateSnapshot_CancelledLease) UnmarshalVT(dAtA []byte) error var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1665,7 +1666,7 @@ func (m *TransactionStateSnapshot_CancelledLease) UnmarshalVT(dAtA []byte) error var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1678,11 +1679,11 @@ func (m *TransactionStateSnapshot_CancelledLease) UnmarshalVT(dAtA []byte) error } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1694,12 +1695,12 @@ func (m *TransactionStateSnapshot_CancelledLease) UnmarshalVT(dAtA []byte) error iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1722,7 +1723,7 @@ func (m *TransactionStateSnapshot_NewAsset) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1750,7 +1751,7 @@ func (m *TransactionStateSnapshot_NewAsset) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1763,11 +1764,11 @@ func (m *TransactionStateSnapshot_NewAsset) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1784,7 +1785,7 @@ func (m *TransactionStateSnapshot_NewAsset) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1797,11 +1798,11 @@ func (m *TransactionStateSnapshot_NewAsset) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1818,7 +1819,7 @@ func (m *TransactionStateSnapshot_NewAsset) UnmarshalVT(dAtA []byte) error { m.Decimals = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1837,7 +1838,7 @@ func (m *TransactionStateSnapshot_NewAsset) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1852,12 +1853,12 @@ func (m *TransactionStateSnapshot_NewAsset) UnmarshalVT(dAtA []byte) error { m.Nft = bool(v != 0) default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1880,7 +1881,7 @@ func (m *TransactionStateSnapshot_AssetVolume) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1908,7 +1909,7 @@ func (m *TransactionStateSnapshot_AssetVolume) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1921,11 +1922,11 @@ func (m *TransactionStateSnapshot_AssetVolume) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1942,7 +1943,7 @@ func (m *TransactionStateSnapshot_AssetVolume) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1962,7 +1963,7 @@ func (m *TransactionStateSnapshot_AssetVolume) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1975,11 +1976,11 @@ func (m *TransactionStateSnapshot_AssetVolume) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -1991,12 +1992,12 @@ func (m *TransactionStateSnapshot_AssetVolume) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2019,7 +2020,7 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) UnmarshalVT(dAtA []by var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2047,7 +2048,7 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) UnmarshalVT(dAtA []by var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2060,11 +2061,11 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) UnmarshalVT(dAtA []by } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2081,7 +2082,7 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) UnmarshalVT(dAtA []by var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2095,11 +2096,11 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) UnmarshalVT(dAtA []by } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2113,7 +2114,7 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) UnmarshalVT(dAtA []by var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2127,11 +2128,11 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) UnmarshalVT(dAtA []by } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2140,12 +2141,12 @@ func (m *TransactionStateSnapshot_AssetNameAndDescription) UnmarshalVT(dAtA []by iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2168,7 +2169,7 @@ func (m *TransactionStateSnapshot_AssetScript) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2196,7 +2197,7 @@ func (m *TransactionStateSnapshot_AssetScript) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2209,11 +2210,11 @@ func (m *TransactionStateSnapshot_AssetScript) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2230,7 +2231,7 @@ func (m *TransactionStateSnapshot_AssetScript) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2243,11 +2244,11 @@ func (m *TransactionStateSnapshot_AssetScript) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2259,12 +2260,12 @@ func (m *TransactionStateSnapshot_AssetScript) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2287,7 +2288,7 @@ func (m *TransactionStateSnapshot_Alias) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2315,7 +2316,7 @@ func (m *TransactionStateSnapshot_Alias) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2328,11 +2329,11 @@ func (m *TransactionStateSnapshot_Alias) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2349,7 +2350,7 @@ func (m *TransactionStateSnapshot_Alias) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2363,11 +2364,11 @@ func (m *TransactionStateSnapshot_Alias) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2376,12 +2377,12 @@ func (m *TransactionStateSnapshot_Alias) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2404,7 +2405,7 @@ func (m *TransactionStateSnapshot_OrderFill) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2432,7 +2433,7 @@ func (m *TransactionStateSnapshot_OrderFill) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2445,11 +2446,11 @@ func (m *TransactionStateSnapshot_OrderFill) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2466,7 +2467,7 @@ func (m *TransactionStateSnapshot_OrderFill) UnmarshalVT(dAtA []byte) error { m.Volume = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2485,7 +2486,7 @@ func (m *TransactionStateSnapshot_OrderFill) UnmarshalVT(dAtA []byte) error { m.Fee = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2499,12 +2500,12 @@ func (m *TransactionStateSnapshot_OrderFill) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2527,7 +2528,7 @@ func (m *TransactionStateSnapshot_AccountScript) UnmarshalVT(dAtA []byte) error var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2555,7 +2556,7 @@ func (m *TransactionStateSnapshot_AccountScript) UnmarshalVT(dAtA []byte) error var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2568,11 +2569,11 @@ func (m *TransactionStateSnapshot_AccountScript) UnmarshalVT(dAtA []byte) error } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2589,7 +2590,7 @@ func (m *TransactionStateSnapshot_AccountScript) UnmarshalVT(dAtA []byte) error var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2602,11 +2603,11 @@ func (m *TransactionStateSnapshot_AccountScript) UnmarshalVT(dAtA []byte) error } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2623,7 +2624,7 @@ func (m *TransactionStateSnapshot_AccountScript) UnmarshalVT(dAtA []byte) error m.VerifierComplexity = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2637,12 +2638,12 @@ func (m *TransactionStateSnapshot_AccountScript) UnmarshalVT(dAtA []byte) error } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2665,7 +2666,7 @@ func (m *TransactionStateSnapshot_AccountData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2693,7 +2694,7 @@ func (m *TransactionStateSnapshot_AccountData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2706,11 +2707,11 @@ func (m *TransactionStateSnapshot_AccountData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2727,7 +2728,7 @@ func (m *TransactionStateSnapshot_AccountData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2740,11 +2741,11 @@ func (m *TransactionStateSnapshot_AccountData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2756,12 +2757,12 @@ func (m *TransactionStateSnapshot_AccountData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2784,7 +2785,7 @@ func (m *TransactionStateSnapshot_Sponsorship) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2812,7 +2813,7 @@ func (m *TransactionStateSnapshot_Sponsorship) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2825,11 +2826,11 @@ func (m *TransactionStateSnapshot_Sponsorship) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2846,7 +2847,7 @@ func (m *TransactionStateSnapshot_Sponsorship) UnmarshalVT(dAtA []byte) error { m.MinFee = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2860,12 +2861,12 @@ func (m *TransactionStateSnapshot_Sponsorship) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2888,7 +2889,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2916,7 +2917,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2929,11 +2930,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2950,7 +2951,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2963,11 +2964,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2984,7 +2985,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2997,11 +2998,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3018,7 +3019,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3031,11 +3032,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3052,7 +3053,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3065,11 +3066,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3086,7 +3087,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3099,11 +3100,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3120,7 +3121,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3133,11 +3134,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3154,7 +3155,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3167,11 +3168,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3190,7 +3191,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3203,11 +3204,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3226,7 +3227,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3239,11 +3240,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3260,7 +3261,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3273,11 +3274,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3296,7 +3297,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3309,11 +3310,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3330,7 +3331,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3343,11 +3344,11 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3364,7 +3365,7 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { m.TransactionStatus = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3378,12 +3379,12 @@ func (m *TransactionStateSnapshot) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF diff --git a/pkg/grpc/generated/waves/transaction_vtproto.pb.go b/pkg/grpc/generated/waves/transaction_vtproto.pb.go index 541d9699f..d5d083e89 100644 --- a/pkg/grpc/generated/waves/transaction_vtproto.pb.go +++ b/pkg/grpc/generated/waves/transaction_vtproto.pb.go @@ -1,11 +1,12 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/transaction.proto package waves import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -58,7 +59,7 @@ func (m *SignedTransaction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro for iNdEx := len(m.Proofs) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Proofs[iNdEx]) copy(dAtA[i:], m.Proofs[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Proofs[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Proofs[iNdEx]))) i-- dAtA[i] = 0x12 } @@ -86,7 +87,7 @@ func (m *SignedTransaction_WavesTransaction) MarshalToSizedBufferVTStrict(dAtA [ return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -101,7 +102,7 @@ func (m *SignedTransaction_EthereumTransaction) MarshalToSizedBufferVTStrict(dAt i := len(dAtA) i -= len(m.EthereumTransaction) copy(dAtA[i:], m.EthereumTransaction) - i = encodeVarint(dAtA, i, uint64(len(m.EthereumTransaction))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EthereumTransaction))) i-- dAtA[i] = 0x1a return len(dAtA) - i, nil @@ -263,12 +264,12 @@ func (m *Transaction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= size } if m.Version != 0 { - i = encodeVarint(dAtA, i, uint64(m.Version)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x28 } if m.Timestamp != 0 { - i = encodeVarint(dAtA, i, uint64(m.Timestamp)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x20 } @@ -278,19 +279,19 @@ func (m *Transaction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } if len(m.SenderPublicKey) > 0 { i -= len(m.SenderPublicKey) copy(dAtA[i:], m.SenderPublicKey) - i = encodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SenderPublicKey))) i-- dAtA[i] = 0x12 } if m.ChainId != 0 { - i = encodeVarint(dAtA, i, uint64(m.ChainId)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ChainId)) i-- dAtA[i] = 0x8 } @@ -310,7 +311,7 @@ func (m *Transaction_Genesis) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -331,7 +332,7 @@ func (m *Transaction_Payment) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -352,7 +353,7 @@ func (m *Transaction_Issue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -373,7 +374,7 @@ func (m *Transaction_Transfer) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -394,7 +395,7 @@ func (m *Transaction_Reissue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -415,7 +416,7 @@ func (m *Transaction_Burn) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -436,7 +437,7 @@ func (m *Transaction_Exchange) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -457,7 +458,7 @@ func (m *Transaction_Lease) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -478,7 +479,7 @@ func (m *Transaction_LeaseCancel) MarshalToSizedBufferVTStrict(dAtA []byte) (int return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -499,7 +500,7 @@ func (m *Transaction_CreateAlias) MarshalToSizedBufferVTStrict(dAtA []byte) (int return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -520,7 +521,7 @@ func (m *Transaction_MassTransfer) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x6 i-- @@ -541,7 +542,7 @@ func (m *Transaction_DataTransaction) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -562,7 +563,7 @@ func (m *Transaction_SetScript) MarshalToSizedBufferVTStrict(dAtA []byte) (int, return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -583,7 +584,7 @@ func (m *Transaction_SponsorFee) MarshalToSizedBufferVTStrict(dAtA []byte) (int, return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -604,7 +605,7 @@ func (m *Transaction_SetAssetScript) MarshalToSizedBufferVTStrict(dAtA []byte) ( return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -625,7 +626,7 @@ func (m *Transaction_InvokeScript) MarshalToSizedBufferVTStrict(dAtA []byte) (in return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -646,7 +647,7 @@ func (m *Transaction_UpdateAssetInfo) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -667,7 +668,7 @@ func (m *Transaction_InvokeExpression) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7 i-- @@ -706,14 +707,14 @@ func (m *GenesisTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, copy(dAtA[i:], m.unknownFields) } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x10 } if len(m.RecipientAddress) > 0 { i -= len(m.RecipientAddress) copy(dAtA[i:], m.RecipientAddress) - i = encodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) i-- dAtA[i] = 0xa } @@ -751,14 +752,14 @@ func (m *PaymentTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, copy(dAtA[i:], m.unknownFields) } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x10 } if len(m.RecipientAddress) > 0 { i -= len(m.RecipientAddress) copy(dAtA[i:], m.RecipientAddress) - i = encodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientAddress))) i-- dAtA[i] = 0xa } @@ -798,7 +799,7 @@ func (m *TransferTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int if len(m.Attachment) > 0 { i -= len(m.Attachment) copy(dAtA[i:], m.Attachment) - i = encodeVarint(dAtA, i, uint64(len(m.Attachment))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Attachment))) i-- dAtA[i] = 0x1a } @@ -808,7 +809,7 @@ func (m *TransferTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -818,7 +819,7 @@ func (m *TransferTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -858,7 +859,7 @@ func (m *CreateAliasTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) ( if len(m.Alias) > 0 { i -= len(m.Alias) copy(dAtA[i:], m.Alias) - i = encodeVarint(dAtA, i, uint64(len(m.Alias))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Alias))) i-- dAtA[i] = 0xa } @@ -926,7 +927,7 @@ func (m *DataEntry) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if len(m.Key) > 0 { i -= len(m.Key) copy(dAtA[i:], m.Key) - i = encodeVarint(dAtA, i, uint64(len(m.Key))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Key))) i-- dAtA[i] = 0xa } @@ -940,7 +941,7 @@ func (m *DataEntry_IntValue) MarshalToVTStrict(dAtA []byte) (int, error) { func (m *DataEntry_IntValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i := len(dAtA) - i = encodeVarint(dAtA, i, uint64(m.IntValue)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.IntValue)) i-- dAtA[i] = 0x50 return len(dAtA) - i, nil @@ -971,7 +972,7 @@ func (m *DataEntry_BinaryValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, i := len(dAtA) i -= len(m.BinaryValue) copy(dAtA[i:], m.BinaryValue) - i = encodeVarint(dAtA, i, uint64(len(m.BinaryValue))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.BinaryValue))) i-- dAtA[i] = 0x62 return len(dAtA) - i, nil @@ -985,7 +986,7 @@ func (m *DataEntry_StringValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, i := len(dAtA) i -= len(m.StringValue) copy(dAtA[i:], m.StringValue) - i = encodeVarint(dAtA, i, uint64(len(m.StringValue))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.StringValue))) i-- dAtA[i] = 0x6a return len(dAtA) - i, nil @@ -1027,7 +1028,7 @@ func (m *DataTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1066,7 +1067,7 @@ func (m *MassTransferTransactionData_Transfer) MarshalToSizedBufferVTStrict(dAtA copy(dAtA[i:], m.unknownFields) } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x10 } @@ -1076,7 +1077,7 @@ func (m *MassTransferTransactionData_Transfer) MarshalToSizedBufferVTStrict(dAtA return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1116,7 +1117,7 @@ func (m *MassTransferTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) if len(m.Attachment) > 0 { i -= len(m.Attachment) copy(dAtA[i:], m.Attachment) - i = encodeVarint(dAtA, i, uint64(len(m.Attachment))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Attachment))) i-- dAtA[i] = 0x1a } @@ -1127,7 +1128,7 @@ func (m *MassTransferTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -1135,7 +1136,7 @@ func (m *MassTransferTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -1173,7 +1174,7 @@ func (m *LeaseTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e copy(dAtA[i:], m.unknownFields) } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x10 } @@ -1183,7 +1184,7 @@ func (m *LeaseTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1223,7 +1224,7 @@ func (m *LeaseCancelTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) ( if len(m.LeaseId) > 0 { i -= len(m.LeaseId) copy(dAtA[i:], m.LeaseId) - i = encodeVarint(dAtA, i, uint64(len(m.LeaseId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LeaseId))) i-- dAtA[i] = 0xa } @@ -1266,7 +1267,7 @@ func (m *BurnTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1306,7 +1307,7 @@ func (m *IssueTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e if len(m.Script) > 0 { i -= len(m.Script) copy(dAtA[i:], m.Script) - i = encodeVarint(dAtA, i, uint64(len(m.Script))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Script))) i-- dAtA[i] = 0x32 } @@ -1321,26 +1322,26 @@ func (m *IssueTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e dAtA[i] = 0x28 } if m.Decimals != 0 { - i = encodeVarint(dAtA, i, uint64(m.Decimals)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Decimals)) i-- dAtA[i] = 0x20 } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x18 } if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarint(dAtA, i, uint64(len(m.Description))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) i-- dAtA[i] = 0x12 } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } @@ -1393,7 +1394,7 @@ func (m *ReissueTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1433,14 +1434,14 @@ func (m *SetAssetScriptTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte if len(m.Script) > 0 { i -= len(m.Script) copy(dAtA[i:], m.Script) - i = encodeVarint(dAtA, i, uint64(len(m.Script))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Script))) i-- dAtA[i] = 0x12 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -1480,7 +1481,7 @@ func (m *SetScriptTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (in if len(m.Script) > 0 { i -= len(m.Script) copy(dAtA[i:], m.Script) - i = encodeVarint(dAtA, i, uint64(len(m.Script))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Script))) i-- dAtA[i] = 0xa } @@ -1524,28 +1525,28 @@ func (m *ExchangeTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } } if m.SellMatcherFee != 0 { - i = encodeVarint(dAtA, i, uint64(m.SellMatcherFee)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SellMatcherFee)) i-- dAtA[i] = 0x20 } if m.BuyMatcherFee != 0 { - i = encodeVarint(dAtA, i, uint64(m.BuyMatcherFee)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BuyMatcherFee)) i-- dAtA[i] = 0x18 } if m.Price != 0 { - i = encodeVarint(dAtA, i, uint64(m.Price)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Price)) i-- dAtA[i] = 0x10 } if m.Amount != 0 { - i = encodeVarint(dAtA, i, uint64(m.Amount)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Amount)) i-- dAtA[i] = 0x8 } @@ -1588,7 +1589,7 @@ func (m *SponsorFeeTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (i return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1632,7 +1633,7 @@ func (m *InvokeScriptTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -1640,7 +1641,7 @@ func (m *InvokeScriptTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) if len(m.FunctionCall) > 0 { i -= len(m.FunctionCall) copy(dAtA[i:], m.FunctionCall) - i = encodeVarint(dAtA, i, uint64(len(m.FunctionCall))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FunctionCall))) i-- dAtA[i] = 0x12 } @@ -1650,7 +1651,7 @@ func (m *InvokeScriptTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -1690,21 +1691,21 @@ func (m *UpdateAssetInfoTransactionData) MarshalToSizedBufferVTStrict(dAtA []byt if len(m.Description) > 0 { i -= len(m.Description) copy(dAtA[i:], m.Description) - i = encodeVarint(dAtA, i, uint64(len(m.Description))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) i-- dAtA[i] = 0x1a } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x12 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) - i = encodeVarint(dAtA, i, uint64(len(m.AssetId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } @@ -1744,7 +1745,7 @@ func (m *InvokeExpressionTransactionData) MarshalToSizedBufferVTStrict(dAtA []by if len(m.Expression) > 0 { i -= len(m.Expression) copy(dAtA[i:], m.Expression) - i = encodeVarint(dAtA, i, uint64(len(m.Expression))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Expression))) i-- dAtA[i] = 0xa } @@ -1763,7 +1764,7 @@ func (m *SignedTransaction) SizeVT() (n int) { if len(m.Proofs) > 0 { for _, b := range m.Proofs { l = len(b) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1778,7 +1779,7 @@ func (m *SignedTransaction_WavesTransaction) SizeVT() (n int) { _ = l if m.WavesTransaction != nil { l = m.WavesTransaction.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1789,7 +1790,7 @@ func (m *SignedTransaction_EthereumTransaction) SizeVT() (n int) { var l int _ = l l = len(m.EthereumTransaction) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *Transaction) SizeVT() (n int) { @@ -1799,21 +1800,21 @@ func (m *Transaction) SizeVT() (n int) { var l int _ = l if m.ChainId != 0 { - n += 1 + sov(uint64(m.ChainId)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.ChainId)) } l = len(m.SenderPublicKey) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Fee != nil { l = m.Fee.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Timestamp != 0 { - n += 1 + sov(uint64(m.Timestamp)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) } if m.Version != 0 { - n += 1 + sov(uint64(m.Version)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) } if vtmsg, ok := m.Data.(interface{ SizeVT() int }); ok { n += vtmsg.SizeVT() @@ -1830,7 +1831,7 @@ func (m *Transaction_Genesis) SizeVT() (n int) { _ = l if m.Genesis != nil { l = m.Genesis.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1842,7 +1843,7 @@ func (m *Transaction_Payment) SizeVT() (n int) { _ = l if m.Payment != nil { l = m.Payment.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1854,7 +1855,7 @@ func (m *Transaction_Issue) SizeVT() (n int) { _ = l if m.Issue != nil { l = m.Issue.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1866,7 +1867,7 @@ func (m *Transaction_Transfer) SizeVT() (n int) { _ = l if m.Transfer != nil { l = m.Transfer.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1878,7 +1879,7 @@ func (m *Transaction_Reissue) SizeVT() (n int) { _ = l if m.Reissue != nil { l = m.Reissue.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1890,7 +1891,7 @@ func (m *Transaction_Burn) SizeVT() (n int) { _ = l if m.Burn != nil { l = m.Burn.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1902,7 +1903,7 @@ func (m *Transaction_Exchange) SizeVT() (n int) { _ = l if m.Exchange != nil { l = m.Exchange.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1914,7 +1915,7 @@ func (m *Transaction_Lease) SizeVT() (n int) { _ = l if m.Lease != nil { l = m.Lease.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1926,7 +1927,7 @@ func (m *Transaction_LeaseCancel) SizeVT() (n int) { _ = l if m.LeaseCancel != nil { l = m.LeaseCancel.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1938,7 +1939,7 @@ func (m *Transaction_CreateAlias) SizeVT() (n int) { _ = l if m.CreateAlias != nil { l = m.CreateAlias.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1950,7 +1951,7 @@ func (m *Transaction_MassTransfer) SizeVT() (n int) { _ = l if m.MassTransfer != nil { l = m.MassTransfer.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1962,7 +1963,7 @@ func (m *Transaction_DataTransaction) SizeVT() (n int) { _ = l if m.DataTransaction != nil { l = m.DataTransaction.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1974,7 +1975,7 @@ func (m *Transaction_SetScript) SizeVT() (n int) { _ = l if m.SetScript != nil { l = m.SetScript.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1986,7 +1987,7 @@ func (m *Transaction_SponsorFee) SizeVT() (n int) { _ = l if m.SponsorFee != nil { l = m.SponsorFee.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -1998,7 +1999,7 @@ func (m *Transaction_SetAssetScript) SizeVT() (n int) { _ = l if m.SetAssetScript != nil { l = m.SetAssetScript.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2010,7 +2011,7 @@ func (m *Transaction_InvokeScript) SizeVT() (n int) { _ = l if m.InvokeScript != nil { l = m.InvokeScript.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2022,7 +2023,7 @@ func (m *Transaction_UpdateAssetInfo) SizeVT() (n int) { _ = l if m.UpdateAssetInfo != nil { l = m.UpdateAssetInfo.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2034,7 +2035,7 @@ func (m *Transaction_InvokeExpression) SizeVT() (n int) { _ = l if m.InvokeExpression != nil { l = m.InvokeExpression.SizeVT() - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } return n } @@ -2046,10 +2047,10 @@ func (m *GenesisTransactionData) SizeVT() (n int) { _ = l l = len(m.RecipientAddress) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } n += len(m.unknownFields) return n @@ -2063,10 +2064,10 @@ func (m *PaymentTransactionData) SizeVT() (n int) { _ = l l = len(m.RecipientAddress) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } n += len(m.unknownFields) return n @@ -2080,15 +2081,15 @@ func (m *TransferTransactionData) SizeVT() (n int) { _ = l if m.Recipient != nil { l = m.Recipient.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != nil { l = m.Amount.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Attachment) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2102,7 +2103,7 @@ func (m *CreateAliasTransactionData) SizeVT() (n int) { _ = l l = len(m.Alias) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2116,7 +2117,7 @@ func (m *DataEntry) SizeVT() (n int) { _ = l l = len(m.Key) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if vtmsg, ok := m.Value.(interface{ SizeVT() int }); ok { n += vtmsg.SizeVT() @@ -2131,7 +2132,7 @@ func (m *DataEntry_IntValue) SizeVT() (n int) { } var l int _ = l - n += 1 + sov(uint64(m.IntValue)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.IntValue)) return n } func (m *DataEntry_BoolValue) SizeVT() (n int) { @@ -2150,7 +2151,7 @@ func (m *DataEntry_BinaryValue) SizeVT() (n int) { var l int _ = l l = len(m.BinaryValue) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *DataEntry_StringValue) SizeVT() (n int) { @@ -2160,7 +2161,7 @@ func (m *DataEntry_StringValue) SizeVT() (n int) { var l int _ = l l = len(m.StringValue) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) return n } func (m *DataTransactionData) SizeVT() (n int) { @@ -2172,7 +2173,7 @@ func (m *DataTransactionData) SizeVT() (n int) { if len(m.Data) > 0 { for _, e := range m.Data { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2187,10 +2188,10 @@ func (m *MassTransferTransactionData_Transfer) SizeVT() (n int) { _ = l if m.Recipient != nil { l = m.Recipient.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } n += len(m.unknownFields) return n @@ -2204,17 +2205,17 @@ func (m *MassTransferTransactionData) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Transfers) > 0 { for _, e := range m.Transfers { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } l = len(m.Attachment) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2228,10 +2229,10 @@ func (m *LeaseTransactionData) SizeVT() (n int) { _ = l if m.Recipient != nil { l = m.Recipient.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } n += len(m.unknownFields) return n @@ -2245,7 +2246,7 @@ func (m *LeaseCancelTransactionData) SizeVT() (n int) { _ = l l = len(m.LeaseId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2259,7 +2260,7 @@ func (m *BurnTransactionData) SizeVT() (n int) { _ = l if m.AssetAmount != nil { l = m.AssetAmount.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2273,24 +2274,24 @@ func (m *IssueTransactionData) SizeVT() (n int) { _ = l l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } if m.Decimals != 0 { - n += 1 + sov(uint64(m.Decimals)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Decimals)) } if m.Reissuable { n += 2 } l = len(m.Script) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2304,7 +2305,7 @@ func (m *ReissueTransactionData) SizeVT() (n int) { _ = l if m.AssetAmount != nil { l = m.AssetAmount.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Reissuable { n += 2 @@ -2321,11 +2322,11 @@ func (m *SetAssetScriptTransactionData) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Script) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2339,7 +2340,7 @@ func (m *SetScriptTransactionData) SizeVT() (n int) { _ = l l = len(m.Script) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2352,21 +2353,21 @@ func (m *ExchangeTransactionData) SizeVT() (n int) { var l int _ = l if m.Amount != 0 { - n += 1 + sov(uint64(m.Amount)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Amount)) } if m.Price != 0 { - n += 1 + sov(uint64(m.Price)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Price)) } if m.BuyMatcherFee != 0 { - n += 1 + sov(uint64(m.BuyMatcherFee)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.BuyMatcherFee)) } if m.SellMatcherFee != 0 { - n += 1 + sov(uint64(m.SellMatcherFee)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.SellMatcherFee)) } if len(m.Orders) > 0 { for _, e := range m.Orders { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2381,7 +2382,7 @@ func (m *SponsorFeeTransactionData) SizeVT() (n int) { _ = l if m.MinFee != nil { l = m.MinFee.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2395,16 +2396,16 @@ func (m *InvokeScriptTransactionData) SizeVT() (n int) { _ = l if m.DApp != nil { l = m.DApp.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.FunctionCall) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Payments) > 0 { for _, e := range m.Payments { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2419,15 +2420,15 @@ func (m *UpdateAssetInfoTransactionData) SizeVT() (n int) { _ = l l = len(m.AssetId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Description) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2441,7 +2442,7 @@ func (m *InvokeExpressionTransactionData) SizeVT() (n int) { _ = l l = len(m.Expression) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -2455,7 +2456,7 @@ func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2483,7 +2484,7 @@ func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2496,11 +2497,11 @@ func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2524,7 +2525,7 @@ func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2537,11 +2538,11 @@ func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2556,7 +2557,7 @@ func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2569,11 +2570,11 @@ func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2584,12 +2585,12 @@ func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2612,7 +2613,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2640,7 +2641,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { m.ChainId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2659,7 +2660,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2672,11 +2673,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2693,7 +2694,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2706,11 +2707,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2729,7 +2730,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2748,7 +2749,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2767,7 +2768,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2780,11 +2781,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2808,7 +2809,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2821,11 +2822,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2849,7 +2850,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2862,11 +2863,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2890,7 +2891,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2903,11 +2904,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2931,7 +2932,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2944,11 +2945,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2972,7 +2973,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2985,11 +2986,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3013,7 +3014,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3026,11 +3027,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3054,7 +3055,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3067,11 +3068,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3095,7 +3096,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3108,11 +3109,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3136,7 +3137,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3149,11 +3150,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3177,7 +3178,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3190,11 +3191,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3218,7 +3219,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3231,11 +3232,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3259,7 +3260,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3272,11 +3273,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3300,7 +3301,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3313,11 +3314,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3341,7 +3342,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3354,11 +3355,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3382,7 +3383,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3395,11 +3396,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3423,7 +3424,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3436,11 +3437,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3464,7 +3465,7 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3477,11 +3478,11 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3500,12 +3501,12 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3528,7 +3529,7 @@ func (m *GenesisTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3556,7 +3557,7 @@ func (m *GenesisTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3569,11 +3570,11 @@ func (m *GenesisTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3590,7 +3591,7 @@ func (m *GenesisTransactionData) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3604,12 +3605,12 @@ func (m *GenesisTransactionData) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3632,7 +3633,7 @@ func (m *PaymentTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3660,7 +3661,7 @@ func (m *PaymentTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3673,11 +3674,11 @@ func (m *PaymentTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3694,7 +3695,7 @@ func (m *PaymentTransactionData) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3708,12 +3709,12 @@ func (m *PaymentTransactionData) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3736,7 +3737,7 @@ func (m *TransferTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3764,7 +3765,7 @@ func (m *TransferTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3777,11 +3778,11 @@ func (m *TransferTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3800,7 +3801,7 @@ func (m *TransferTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3813,11 +3814,11 @@ func (m *TransferTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3836,7 +3837,7 @@ func (m *TransferTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3849,11 +3850,11 @@ func (m *TransferTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3865,12 +3866,12 @@ func (m *TransferTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3893,7 +3894,7 @@ func (m *CreateAliasTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3921,7 +3922,7 @@ func (m *CreateAliasTransactionData) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3935,11 +3936,11 @@ func (m *CreateAliasTransactionData) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3948,12 +3949,12 @@ func (m *CreateAliasTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3976,7 +3977,7 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4004,7 +4005,7 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4018,11 +4019,11 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4036,7 +4037,7 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4056,7 +4057,7 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4077,7 +4078,7 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4090,11 +4091,11 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4110,7 +4111,7 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4124,11 +4125,11 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4137,12 +4138,12 @@ func (m *DataEntry) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4165,7 +4166,7 @@ func (m *DataTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4193,7 +4194,7 @@ func (m *DataTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4206,11 +4207,11 @@ func (m *DataTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4222,12 +4223,12 @@ func (m *DataTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4250,7 +4251,7 @@ func (m *MassTransferTransactionData_Transfer) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4278,7 +4279,7 @@ func (m *MassTransferTransactionData_Transfer) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4291,11 +4292,11 @@ func (m *MassTransferTransactionData_Transfer) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4314,7 +4315,7 @@ func (m *MassTransferTransactionData_Transfer) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4328,12 +4329,12 @@ func (m *MassTransferTransactionData_Transfer) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4356,7 +4357,7 @@ func (m *MassTransferTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4384,7 +4385,7 @@ func (m *MassTransferTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4397,11 +4398,11 @@ func (m *MassTransferTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4418,7 +4419,7 @@ func (m *MassTransferTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4431,11 +4432,11 @@ func (m *MassTransferTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4452,7 +4453,7 @@ func (m *MassTransferTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4465,11 +4466,11 @@ func (m *MassTransferTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4481,12 +4482,12 @@ func (m *MassTransferTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4509,7 +4510,7 @@ func (m *LeaseTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4537,7 +4538,7 @@ func (m *LeaseTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4550,11 +4551,11 @@ func (m *LeaseTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4573,7 +4574,7 @@ func (m *LeaseTransactionData) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4587,12 +4588,12 @@ func (m *LeaseTransactionData) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4615,7 +4616,7 @@ func (m *LeaseCancelTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4643,7 +4644,7 @@ func (m *LeaseCancelTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4656,11 +4657,11 @@ func (m *LeaseCancelTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4672,12 +4673,12 @@ func (m *LeaseCancelTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4700,7 +4701,7 @@ func (m *BurnTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4728,7 +4729,7 @@ func (m *BurnTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4741,11 +4742,11 @@ func (m *BurnTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4759,12 +4760,12 @@ func (m *BurnTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4787,7 +4788,7 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4815,7 +4816,7 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4829,11 +4830,11 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4847,7 +4848,7 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4861,11 +4862,11 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4879,7 +4880,7 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4898,7 +4899,7 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { m.Decimals = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4917,7 +4918,7 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4937,7 +4938,7 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4950,11 +4951,11 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4966,12 +4967,12 @@ func (m *IssueTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4994,7 +4995,7 @@ func (m *ReissueTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5022,7 +5023,7 @@ func (m *ReissueTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5035,11 +5036,11 @@ func (m *ReissueTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5058,7 +5059,7 @@ func (m *ReissueTransactionData) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5073,12 +5074,12 @@ func (m *ReissueTransactionData) UnmarshalVT(dAtA []byte) error { m.Reissuable = bool(v != 0) default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5101,7 +5102,7 @@ func (m *SetAssetScriptTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5129,7 +5130,7 @@ func (m *SetAssetScriptTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5142,11 +5143,11 @@ func (m *SetAssetScriptTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5163,7 +5164,7 @@ func (m *SetAssetScriptTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5176,11 +5177,11 @@ func (m *SetAssetScriptTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5192,12 +5193,12 @@ func (m *SetAssetScriptTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5220,7 +5221,7 @@ func (m *SetScriptTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5248,7 +5249,7 @@ func (m *SetScriptTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5261,11 +5262,11 @@ func (m *SetScriptTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5277,12 +5278,12 @@ func (m *SetScriptTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5305,7 +5306,7 @@ func (m *ExchangeTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5333,7 +5334,7 @@ func (m *ExchangeTransactionData) UnmarshalVT(dAtA []byte) error { m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5352,7 +5353,7 @@ func (m *ExchangeTransactionData) UnmarshalVT(dAtA []byte) error { m.Price = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5371,7 +5372,7 @@ func (m *ExchangeTransactionData) UnmarshalVT(dAtA []byte) error { m.BuyMatcherFee = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5390,7 +5391,7 @@ func (m *ExchangeTransactionData) UnmarshalVT(dAtA []byte) error { m.SellMatcherFee = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5409,7 +5410,7 @@ func (m *ExchangeTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5422,11 +5423,11 @@ func (m *ExchangeTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5438,12 +5439,12 @@ func (m *ExchangeTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5466,7 +5467,7 @@ func (m *SponsorFeeTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5494,7 +5495,7 @@ func (m *SponsorFeeTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5507,11 +5508,11 @@ func (m *SponsorFeeTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5525,12 +5526,12 @@ func (m *SponsorFeeTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5553,7 +5554,7 @@ func (m *InvokeScriptTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5581,7 +5582,7 @@ func (m *InvokeScriptTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5594,11 +5595,11 @@ func (m *InvokeScriptTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5617,7 +5618,7 @@ func (m *InvokeScriptTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5630,11 +5631,11 @@ func (m *InvokeScriptTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5651,7 +5652,7 @@ func (m *InvokeScriptTransactionData) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5664,11 +5665,11 @@ func (m *InvokeScriptTransactionData) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5680,12 +5681,12 @@ func (m *InvokeScriptTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5708,7 +5709,7 @@ func (m *UpdateAssetInfoTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5736,7 +5737,7 @@ func (m *UpdateAssetInfoTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5749,11 +5750,11 @@ func (m *UpdateAssetInfoTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5770,7 +5771,7 @@ func (m *UpdateAssetInfoTransactionData) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5784,11 +5785,11 @@ func (m *UpdateAssetInfoTransactionData) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5802,7 +5803,7 @@ func (m *UpdateAssetInfoTransactionData) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5816,11 +5817,11 @@ func (m *UpdateAssetInfoTransactionData) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5829,12 +5830,12 @@ func (m *UpdateAssetInfoTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5857,7 +5858,7 @@ func (m *InvokeExpressionTransactionData) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5885,7 +5886,7 @@ func (m *InvokeExpressionTransactionData) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5898,11 +5899,11 @@ func (m *InvokeExpressionTransactionData) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5914,12 +5915,12 @@ func (m *InvokeExpressionTransactionData) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF diff --git a/pkg/ride/meta/generated/dapp_meta.pb.go b/pkg/ride/meta/generated/dapp_meta.pb.go index b9bcacaa5..1e4ae2491 100644 --- a/pkg/ride/meta/generated/dapp_meta.pb.go +++ b/pkg/ride/meta/generated/dapp_meta.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v5.26.1 +// protoc-gen-go v1.36.9 +// protoc v6.32.0 // source: waves/lang/dapp_meta.proto package generated @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,23 +22,20 @@ const ( ) type DAppMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Funcs []*DAppMeta_CallableFuncSignature `protobuf:"bytes,2,rep,name=funcs,proto3" json:"funcs,omitempty"` CompactNameAndOriginalNamePairList []*DAppMeta_CompactNameAndOriginalNamePair `protobuf:"bytes,3,rep,name=compactNameAndOriginalNamePairList,proto3" json:"compactNameAndOriginalNamePairList,omitempty"` OriginalNames []string `protobuf:"bytes,4,rep,name=originalNames,proto3" json:"originalNames,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DAppMeta) Reset() { *x = DAppMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_lang_dapp_meta_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_lang_dapp_meta_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DAppMeta) String() string { @@ -48,7 +46,7 @@ func (*DAppMeta) ProtoMessage() {} func (x *DAppMeta) ProtoReflect() protoreflect.Message { mi := &file_waves_lang_dapp_meta_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -92,20 +90,17 @@ func (x *DAppMeta) GetOriginalNames() []string { } type DAppMeta_CallableFuncSignature struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Types []byte `protobuf:"bytes,1,opt,name=types,proto3" json:"types,omitempty"` unknownFields protoimpl.UnknownFields - - Types []byte `protobuf:"bytes,1,opt,name=types,proto3" json:"types,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DAppMeta_CallableFuncSignature) Reset() { *x = DAppMeta_CallableFuncSignature{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_lang_dapp_meta_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_lang_dapp_meta_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DAppMeta_CallableFuncSignature) String() string { @@ -116,7 +111,7 @@ func (*DAppMeta_CallableFuncSignature) ProtoMessage() {} func (x *DAppMeta_CallableFuncSignature) ProtoReflect() protoreflect.Message { mi := &file_waves_lang_dapp_meta_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -139,21 +134,18 @@ func (x *DAppMeta_CallableFuncSignature) GetTypes() []byte { } type DAppMeta_CompactNameAndOriginalNamePair struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CompactName string `protobuf:"bytes,1,opt,name=compactName,proto3" json:"compactName,omitempty"` + OriginalName string `protobuf:"bytes,2,opt,name=originalName,proto3" json:"originalName,omitempty"` unknownFields protoimpl.UnknownFields - - CompactName string `protobuf:"bytes,1,opt,name=compactName,proto3" json:"compactName,omitempty"` - OriginalName string `protobuf:"bytes,2,opt,name=originalName,proto3" json:"originalName,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DAppMeta_CompactNameAndOriginalNamePair) Reset() { *x = DAppMeta_CompactNameAndOriginalNamePair{} - if protoimpl.UnsafeEnabled { - mi := &file_waves_lang_dapp_meta_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_waves_lang_dapp_meta_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DAppMeta_CompactNameAndOriginalNamePair) String() string { @@ -164,7 +156,7 @@ func (*DAppMeta_CompactNameAndOriginalNamePair) ProtoMessage() {} func (x *DAppMeta_CompactNameAndOriginalNamePair) ProtoReflect() protoreflect.Message { mi := &file_waves_lang_dapp_meta_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -195,59 +187,35 @@ func (x *DAppMeta_CompactNameAndOriginalNamePair) GetOriginalName() string { var File_waves_lang_dapp_meta_proto protoreflect.FileDescriptor -var file_waves_lang_dapp_meta_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x64, 0x61, 0x70, - 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x77, 0x61, - 0x76, 0x65, 0x73, 0x22, 0x9e, 0x03, 0x0a, 0x08, 0x44, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x74, 0x61, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x05, 0x66, 0x75, - 0x6e, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x2e, 0x44, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x61, - 0x62, 0x6c, 0x65, 0x46, 0x75, 0x6e, 0x63, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x52, 0x05, 0x66, 0x75, 0x6e, 0x63, 0x73, 0x12, 0x7e, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, - 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x69, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2e, 0x44, 0x41, 0x70, 0x70, - 0x4d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x41, 0x6e, 0x64, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x50, - 0x61, 0x69, 0x72, 0x52, 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x41, 0x6e, 0x64, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x50, - 0x61, 0x69, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x1a, 0x2d, 0x0a, - 0x15, 0x43, 0x61, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x75, 0x6e, 0x63, 0x53, 0x69, 0x67, - 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x66, 0x0a, 0x1e, - 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x4f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x69, 0x72, 0x12, 0x20, - 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, - 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x63, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x76, 0x65, - 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x64, 0x61, 0x70, 0x70, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2f, 0x67, 0x6f, 0x77, 0x61, 0x76, 0x65, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x72, 0x69, - 0x64, 0x65, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x64, 0xaa, 0x02, 0x05, 0x57, 0x61, 0x76, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} +const file_waves_lang_dapp_meta_proto_rawDesc = "" + + "\n" + + "\x1awaves/lang/dapp_meta.proto\x12\x05waves\"\x9e\x03\n" + + "\bDAppMeta\x12\x18\n" + + "\aversion\x18\x01 \x01(\x05R\aversion\x12;\n" + + "\x05funcs\x18\x02 \x03(\v2%.waves.DAppMeta.CallableFuncSignatureR\x05funcs\x12~\n" + + "\"compactNameAndOriginalNamePairList\x18\x03 \x03(\v2..waves.DAppMeta.CompactNameAndOriginalNamePairR\"compactNameAndOriginalNamePairList\x12$\n" + + "\roriginalNames\x18\x04 \x03(\tR\roriginalNames\x1a-\n" + + "\x15CallableFuncSignature\x12\x14\n" + + "\x05types\x18\x01 \x01(\fR\x05types\x1af\n" + + "\x1eCompactNameAndOriginalNamePair\x12 \n" + + "\vcompactName\x18\x01 \x01(\tR\vcompactName\x12\"\n" + + "\foriginalName\x18\x02 \x01(\tR\foriginalNameBc\n" + + "\x1fcom.wavesplatform.protobuf.dappZ8github.com/wavesplatform/gowaves/pkg/ride/meta/generated\xaa\x02\x05Wavesb\x06proto3" var ( file_waves_lang_dapp_meta_proto_rawDescOnce sync.Once - file_waves_lang_dapp_meta_proto_rawDescData = file_waves_lang_dapp_meta_proto_rawDesc + file_waves_lang_dapp_meta_proto_rawDescData []byte ) func file_waves_lang_dapp_meta_proto_rawDescGZIP() []byte { file_waves_lang_dapp_meta_proto_rawDescOnce.Do(func() { - file_waves_lang_dapp_meta_proto_rawDescData = protoimpl.X.CompressGZIP(file_waves_lang_dapp_meta_proto_rawDescData) + file_waves_lang_dapp_meta_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waves_lang_dapp_meta_proto_rawDesc), len(file_waves_lang_dapp_meta_proto_rawDesc))) }) return file_waves_lang_dapp_meta_proto_rawDescData } var file_waves_lang_dapp_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_waves_lang_dapp_meta_proto_goTypes = []interface{}{ +var file_waves_lang_dapp_meta_proto_goTypes = []any{ (*DAppMeta)(nil), // 0: waves.DAppMeta (*DAppMeta_CallableFuncSignature)(nil), // 1: waves.DAppMeta.CallableFuncSignature (*DAppMeta_CompactNameAndOriginalNamePair)(nil), // 2: waves.DAppMeta.CompactNameAndOriginalNamePair @@ -267,49 +235,11 @@ func file_waves_lang_dapp_meta_proto_init() { if File_waves_lang_dapp_meta_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_waves_lang_dapp_meta_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DAppMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_lang_dapp_meta_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DAppMeta_CallableFuncSignature); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_waves_lang_dapp_meta_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DAppMeta_CompactNameAndOriginalNamePair); 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_waves_lang_dapp_meta_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_lang_dapp_meta_proto_rawDesc), len(file_waves_lang_dapp_meta_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, @@ -320,7 +250,6 @@ func file_waves_lang_dapp_meta_proto_init() { MessageInfos: file_waves_lang_dapp_meta_proto_msgTypes, }.Build() File_waves_lang_dapp_meta_proto = out.File - file_waves_lang_dapp_meta_proto_rawDesc = nil file_waves_lang_dapp_meta_proto_goTypes = nil file_waves_lang_dapp_meta_proto_depIdxs = nil } diff --git a/pkg/ride/meta/generated/dapp_meta_vtproto.pb.go b/pkg/ride/meta/generated/dapp_meta_vtproto.pb.go index 88269da2c..97cd84dd3 100644 --- a/pkg/ride/meta/generated/dapp_meta_vtproto.pb.go +++ b/pkg/ride/meta/generated/dapp_meta_vtproto.pb.go @@ -1,14 +1,14 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.4.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: waves/lang/dapp_meta.proto package generated import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" - bits "math/bits" ) const ( @@ -51,7 +51,7 @@ func (m *DAppMeta_CallableFuncSignature) MarshalToSizedBufferVTStrict(dAtA []byt if len(m.Types) > 0 { i -= len(m.Types) copy(dAtA[i:], m.Types) - i = encodeVarint(dAtA, i, uint64(len(m.Types))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Types))) i-- dAtA[i] = 0xa } @@ -91,14 +91,14 @@ func (m *DAppMeta_CompactNameAndOriginalNamePair) MarshalToSizedBufferVTStrict(d if len(m.OriginalName) > 0 { i -= len(m.OriginalName) copy(dAtA[i:], m.OriginalName) - i = encodeVarint(dAtA, i, uint64(len(m.OriginalName))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OriginalName))) i-- dAtA[i] = 0x12 } if len(m.CompactName) > 0 { i -= len(m.CompactName) copy(dAtA[i:], m.CompactName) - i = encodeVarint(dAtA, i, uint64(len(m.CompactName))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CompactName))) i-- dAtA[i] = 0xa } @@ -139,7 +139,7 @@ func (m *DAppMeta) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { for iNdEx := len(m.OriginalNames) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.OriginalNames[iNdEx]) copy(dAtA[i:], m.OriginalNames[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.OriginalNames[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OriginalNames[iNdEx]))) i-- dAtA[i] = 0x22 } @@ -151,7 +151,7 @@ func (m *DAppMeta) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -163,30 +163,19 @@ func (m *DAppMeta) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } } if m.Version != 0 { - i = encodeVarint(dAtA, i, uint64(m.Version)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarint(dAtA []byte, offset int, v uint64) int { - offset -= sov(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} func (m *DAppMeta_CallableFuncSignature) SizeVT() (n int) { if m == nil { return 0 @@ -195,7 +184,7 @@ func (m *DAppMeta_CallableFuncSignature) SizeVT() (n int) { _ = l l = len(m.Types) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -209,11 +198,11 @@ func (m *DAppMeta_CompactNameAndOriginalNamePair) SizeVT() (n int) { _ = l l = len(m.CompactName) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.OriginalName) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -226,36 +215,30 @@ func (m *DAppMeta) SizeVT() (n int) { var l int _ = l if m.Version != 0 { - n += 1 + sov(uint64(m.Version)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Version)) } if len(m.Funcs) > 0 { for _, e := range m.Funcs { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.CompactNameAndOriginalNamePairList) > 0 { for _, e := range m.CompactNameAndOriginalNamePairList { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.OriginalNames) > 0 { for _, s := range m.OriginalNames { l = len(s) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } -func sov(x uint64) (n int) { - return (bits.Len64(x|1) + 6) / 7 -} -func soz(x uint64) (n int) { - return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} func (m *DAppMeta_CallableFuncSignature) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -264,7 +247,7 @@ func (m *DAppMeta_CallableFuncSignature) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -292,7 +275,7 @@ func (m *DAppMeta_CallableFuncSignature) UnmarshalVT(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -305,11 +288,11 @@ func (m *DAppMeta_CallableFuncSignature) UnmarshalVT(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -321,12 +304,12 @@ func (m *DAppMeta_CallableFuncSignature) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -349,7 +332,7 @@ func (m *DAppMeta_CompactNameAndOriginalNamePair) UnmarshalVT(dAtA []byte) error var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -377,7 +360,7 @@ func (m *DAppMeta_CompactNameAndOriginalNamePair) UnmarshalVT(dAtA []byte) error var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -391,11 +374,11 @@ func (m *DAppMeta_CompactNameAndOriginalNamePair) UnmarshalVT(dAtA []byte) error } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -409,7 +392,7 @@ func (m *DAppMeta_CompactNameAndOriginalNamePair) UnmarshalVT(dAtA []byte) error var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -423,11 +406,11 @@ func (m *DAppMeta_CompactNameAndOriginalNamePair) UnmarshalVT(dAtA []byte) error } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -436,12 +419,12 @@ func (m *DAppMeta_CompactNameAndOriginalNamePair) UnmarshalVT(dAtA []byte) error iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -464,7 +447,7 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -492,7 +475,7 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -511,7 +494,7 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -524,11 +507,11 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -545,7 +528,7 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -558,11 +541,11 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -579,7 +562,7 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -593,11 +576,11 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -606,12 +589,12 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -626,88 +609,3 @@ func (m *DAppMeta) UnmarshalVT(dAtA []byte) error { } return nil } - -func skip(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLength - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroup - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLength - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") -) From c2050d8244b4429c6936b0f8f7d0efb69a0e0734 Mon Sep 17 00:00:00 2001 From: esuwu Date: Fri, 19 Sep 2025 15:26:03 +0300 Subject: [PATCH 2/8] Added protobuf schemas --- go.mod | 1 - 1 file changed, 1 deletion(-) diff --git a/go.mod b/go.mod index d56cdc55a..49b87d458 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,6 @@ require ( github.com/go-chi/chi/v5 v5.2.3 github.com/go-test/deep v1.1.1 github.com/golang/mock v1.6.0 - github.com/golang/protobuf v1.5.4 github.com/gorilla/mux v1.8.1 github.com/howeyc/gopass v0.0.0-20210920133722-c8aef6fb66ef github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab From cf7abf17763f9b5f9f5f1633edc050be5abe984d Mon Sep 17 00:00:00 2001 From: esuwu Date: Fri, 19 Sep 2025 15:46:07 +0300 Subject: [PATCH 3/8] Updated protobuf generated files --- pkg/grpc/generated/waves/block.pb.go | 52 +++- pkg/grpc/generated/waves/block_vtproto.pb.go | 100 ++++++ pkg/grpc/generated/waves/transaction.pb.go | 143 +++++++-- .../generated/waves/transaction_vtproto.pb.go | 292 ++++++++++++++++++ pkg/grpc/protobuf-schemas | 2 +- 5 files changed, 542 insertions(+), 47 deletions(-) diff --git a/pkg/grpc/generated/waves/block.pb.go b/pkg/grpc/generated/waves/block.pb.go index 2441211b2..80fec4bdd 100644 --- a/pkg/grpc/generated/waves/block.pb.go +++ b/pkg/grpc/generated/waves/block.pb.go @@ -89,6 +89,7 @@ type MicroBlock struct { SenderPublicKey []byte `protobuf:"bytes,4,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` Transactions []*SignedTransaction `protobuf:"bytes,5,rep,name=transactions,proto3" json:"transactions,omitempty"` StateHash []byte `protobuf:"bytes,6,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` + FinalizationVoting *FinalizationVoting `protobuf:"bytes,7,opt,name=finalization_voting,json=finalizationVoting,proto3" json:"finalization_voting,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -165,6 +166,13 @@ func (x *MicroBlock) GetStateHash() []byte { return nil } +func (x *MicroBlock) GetFinalizationVoting() *FinalizationVoting { + if x != nil { + return x.FinalizationVoting + } + return nil +} + type SignedMicroBlock struct { state protoimpl.MessageState `protogen:"open.v1"` MicroBlock *MicroBlock `protobuf:"bytes,1,opt,name=micro_block,json=microBlock,proto3" json:"micro_block,omitempty"` @@ -303,9 +311,9 @@ func (x *EndorseBlock) GetSignature() []byte { type FinalizationVoting struct { state protoimpl.MessageState `protogen:"open.v1"` - EndorserIndexes []int32 `protobuf:"varint,1,rep,packed,name=endorser_indexes,json=endorserIndexes,proto3" json:"endorser_indexes,omitempty"` - AggregatedEndorsementSignature []byte `protobuf:"bytes,2,opt,name=aggregated_endorsement_signature,json=aggregatedEndorsementSignature,proto3" json:"aggregated_endorsement_signature,omitempty"` - ConflictEndorsements []*EndorseBlock `protobuf:"bytes,3,rep,name=conflict_endorsements,json=conflictEndorsements,proto3" json:"conflict_endorsements,omitempty"` + EndorserIndexes []int32 `protobuf:"varint,1,rep,packed,name=endorser_indexes,json=endorserIndexes,proto3" json:"endorser_indexes,omitempty"` // In insertion order + AggregatedEndorsementSignature []byte `protobuf:"bytes,2,opt,name=aggregated_endorsement_signature,json=aggregatedEndorsementSignature,proto3" json:"aggregated_endorsement_signature,omitempty"` // BLS + ConflictEndorsements []*EndorseBlock `protobuf:"bytes,3,rep,name=conflict_endorsements,json=conflictEndorsements,proto3" json:"conflict_endorsements,omitempty"` // Without block_height unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -375,6 +383,7 @@ type Block_Header struct { TransactionsRoot []byte `protobuf:"bytes,10,opt,name=transactions_root,json=transactionsRoot,proto3" json:"transactions_root,omitempty"` StateHash []byte `protobuf:"bytes,11,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` ChallengedHeader *Block_Header_ChallengedHeader `protobuf:"bytes,12,opt,name=challenged_header,json=challengedHeader,proto3" json:"challenged_header,omitempty"` + FinalizationVoting *FinalizationVoting `protobuf:"bytes,13,opt,name=finalization_voting,json=finalizationVoting,proto3" json:"finalization_voting,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -493,6 +502,13 @@ func (x *Block_Header) GetChallengedHeader() *Block_Header_ChallengedHeader { return nil } +func (x *Block_Header) GetFinalizationVoting() *FinalizationVoting { + if x != nil { + return x.FinalizationVoting + } + return nil +} + type Block_Header_ChallengedHeader struct { state protoimpl.MessageState `protogen:"open.v1"` BaseTarget int64 `protobuf:"varint,1,opt,name=base_target,json=baseTarget,proto3" json:"base_target,omitempty"` @@ -597,11 +613,11 @@ var File_waves_block_proto protoreflect.FileDescriptor const file_waves_block_proto_rawDesc = "" + "\n" + - "\x11waves/block.proto\x12\x05waves\x1a\x17waves/transaction.proto\"\x98\a\n" + + "\x11waves/block.proto\x12\x05waves\x1a\x17waves/transaction.proto\"\xe4\a\n" + "\x05Block\x12+\n" + "\x06header\x18\x01 \x01(\v2\x13.waves.Block.HeaderR\x06header\x12\x1c\n" + "\tsignature\x18\x02 \x01(\fR\tsignature\x12<\n" + - "\ftransactions\x18\x03 \x03(\v2\x18.waves.SignedTransactionR\ftransactions\x1a\x85\x06\n" + + "\ftransactions\x18\x03 \x03(\v2\x18.waves.SignedTransactionR\ftransactions\x1a\xd1\x06\n" + "\x06Header\x12\x19\n" + "\bchain_id\x18\x01 \x01(\x05R\achainId\x12\x1c\n" + "\treference\x18\x02 \x01(\fR\treference\x12\x1f\n" + @@ -618,7 +634,8 @@ const file_waves_block_proto_rawDesc = "" + " \x01(\fR\x10transactionsRoot\x12\x1d\n" + "\n" + "state_hash\x18\v \x01(\fR\tstateHash\x12Q\n" + - "\x11challenged_header\x18\f \x01(\v2$.waves.Block.Header.ChallengedHeaderR\x10challengedHeader\x1a\xb2\x02\n" + + "\x11challenged_header\x18\f \x01(\v2$.waves.Block.Header.ChallengedHeaderR\x10challengedHeader\x12J\n" + + "\x13finalization_voting\x18\r \x01(\v2\x19.waves.FinalizationVotingR\x12finalizationVoting\x1a\xb2\x02\n" + "\x10ChallengedHeader\x12\x1f\n" + "\vbase_target\x18\x01 \x01(\x03R\n" + "baseTarget\x121\n" + @@ -630,7 +647,7 @@ const file_waves_block_proto_rawDesc = "" + "rewardVote\x12\x1d\n" + "\n" + "state_hash\x18\a \x01(\fR\tstateHash\x12)\n" + - "\x10header_signature\x18\b \x01(\fR\x0fheaderSignature\"\x85\x02\n" + + "\x10header_signature\x18\b \x01(\fR\x0fheaderSignature\"\xd1\x02\n" + "\n" + "MicroBlock\x12\x18\n" + "\aversion\x18\x01 \x01(\x05R\aversion\x12\x1c\n" + @@ -639,7 +656,8 @@ const file_waves_block_proto_rawDesc = "" + "\x11sender_public_key\x18\x04 \x01(\fR\x0fsenderPublicKey\x12<\n" + "\ftransactions\x18\x05 \x03(\v2\x18.waves.SignedTransactionR\ftransactions\x12\x1d\n" + "\n" + - "state_hash\x18\x06 \x01(\fR\tstateHash\"\x8a\x01\n" + + "state_hash\x18\x06 \x01(\fR\tstateHash\x12J\n" + + "\x13finalization_voting\x18\a \x01(\v2\x19.waves.FinalizationVotingR\x12finalizationVoting\"\x8a\x01\n" + "\x10SignedMicroBlock\x122\n" + "\vmicro_block\x18\x01 \x01(\v2\x11.waves.MicroBlockR\n" + "microBlock\x12\x1c\n" + @@ -684,14 +702,16 @@ var file_waves_block_proto_depIdxs = []int32{ 5, // 0: waves.Block.header:type_name -> waves.Block.Header 7, // 1: waves.Block.transactions:type_name -> waves.SignedTransaction 7, // 2: waves.MicroBlock.transactions:type_name -> waves.SignedTransaction - 1, // 3: waves.SignedMicroBlock.micro_block:type_name -> waves.MicroBlock - 3, // 4: waves.FinalizationVoting.conflict_endorsements:type_name -> waves.EndorseBlock - 6, // 5: waves.Block.Header.challenged_header:type_name -> waves.Block.Header.ChallengedHeader - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 4, // 3: waves.MicroBlock.finalization_voting:type_name -> waves.FinalizationVoting + 1, // 4: waves.SignedMicroBlock.micro_block:type_name -> waves.MicroBlock + 3, // 5: waves.FinalizationVoting.conflict_endorsements:type_name -> waves.EndorseBlock + 6, // 6: waves.Block.Header.challenged_header:type_name -> waves.Block.Header.ChallengedHeader + 4, // 7: waves.Block.Header.finalization_voting:type_name -> waves.FinalizationVoting + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_waves_block_proto_init() } diff --git a/pkg/grpc/generated/waves/block_vtproto.pb.go b/pkg/grpc/generated/waves/block_vtproto.pb.go index e8334635f..9afa93831 100644 --- a/pkg/grpc/generated/waves/block_vtproto.pb.go +++ b/pkg/grpc/generated/waves/block_vtproto.pb.go @@ -144,6 +144,16 @@ func (m *Block_Header) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.FinalizationVoting != nil { + size, err := m.FinalizationVoting.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x6a + } if m.ChallengedHeader != nil { size, err := m.ChallengedHeader.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { @@ -329,6 +339,16 @@ func (m *MicroBlock) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.FinalizationVoting != nil { + size, err := m.FinalizationVoting.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } if len(m.StateHash) > 0 { i -= len(m.StateHash) copy(dAtA[i:], m.StateHash) @@ -665,6 +685,10 @@ func (m *Block_Header) SizeVT() (n int) { l = m.ChallengedHeader.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.FinalizationVoting != nil { + l = m.FinalizationVoting.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } @@ -724,6 +748,10 @@ func (m *MicroBlock) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.FinalizationVoting != nil { + l = m.FinalizationVoting.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } @@ -1531,6 +1559,42 @@ func (m *Block_Header) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FinalizationVoting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FinalizationVoting == nil { + m.FinalizationVoting = &FinalizationVoting{} + } + if err := m.FinalizationVoting.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -1926,6 +1990,42 @@ func (m *MicroBlock) UnmarshalVT(dAtA []byte) error { m.StateHash = []byte{} } iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FinalizationVoting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FinalizationVoting == nil { + m.FinalizationVoting = &FinalizationVoting{} + } + if err := m.FinalizationVoting.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) diff --git a/pkg/grpc/generated/waves/transaction.pb.go b/pkg/grpc/generated/waves/transaction.pb.go index 3ee31b7d5..fca86c48e 100644 --- a/pkg/grpc/generated/waves/transaction.pb.go +++ b/pkg/grpc/generated/waves/transaction.pb.go @@ -138,6 +138,7 @@ type Transaction struct { // *Transaction_InvokeScript // *Transaction_UpdateAssetInfo // *Transaction_InvokeExpression + // *Transaction_CommitToGeneration Data isTransaction_Data `protobuf_oneof:"data"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -377,6 +378,15 @@ func (x *Transaction) GetInvokeExpression() *InvokeExpressionTransactionData { return nil } +func (x *Transaction) GetCommitToGeneration() *CommitToGenerationTransactionData { + if x != nil { + if x, ok := x.Data.(*Transaction_CommitToGeneration); ok { + return x.CommitToGeneration + } + } + return nil +} + type isTransaction_Data interface { isTransaction_Data() } @@ -453,6 +463,10 @@ type Transaction_InvokeExpression struct { InvokeExpression *InvokeExpressionTransactionData `protobuf:"bytes,119,opt,name=invoke_expression,json=invokeExpression,proto3,oneof"` } +type Transaction_CommitToGeneration struct { + CommitToGeneration *CommitToGenerationTransactionData `protobuf:"bytes,120,opt,name=commit_to_generation,json=commitToGeneration,proto3,oneof"` +} + func (*Transaction_Genesis) isTransaction_Data() {} func (*Transaction_Payment) isTransaction_Data() {} @@ -489,6 +503,8 @@ func (*Transaction_UpdateAssetInfo) isTransaction_Data() {} func (*Transaction_InvokeExpression) isTransaction_Data() {} +func (*Transaction_CommitToGeneration) isTransaction_Data() {} + type GenesisTransactionData struct { state protoimpl.MessageState `protogen:"open.v1"` RecipientAddress []byte `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` @@ -1579,6 +1595,66 @@ func (x *InvokeExpressionTransactionData) GetExpression() []byte { return nil } +type CommitToGenerationTransactionData struct { + state protoimpl.MessageState `protogen:"open.v1"` + GenerationPeriodStart uint32 `protobuf:"varint,1,opt,name=generation_period_start,json=generationPeriodStart,proto3" json:"generation_period_start,omitempty"` + EndorsementKey []byte `protobuf:"bytes,2,opt,name=endorsement_key,json=endorsementKey,proto3" json:"endorsement_key,omitempty"` + EndorsementKeySignature []byte `protobuf:"bytes,3,opt,name=endorsement_key_signature,json=endorsementKeySignature,proto3" json:"endorsement_key_signature,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CommitToGenerationTransactionData) Reset() { + *x = CommitToGenerationTransactionData{} + mi := &file_waves_transaction_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CommitToGenerationTransactionData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommitToGenerationTransactionData) ProtoMessage() {} + +func (x *CommitToGenerationTransactionData) ProtoReflect() protoreflect.Message { + mi := &file_waves_transaction_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CommitToGenerationTransactionData.ProtoReflect.Descriptor instead. +func (*CommitToGenerationTransactionData) Descriptor() ([]byte, []int) { + return file_waves_transaction_proto_rawDescGZIP(), []int{21} +} + +func (x *CommitToGenerationTransactionData) GetGenerationPeriodStart() uint32 { + if x != nil { + return x.GenerationPeriodStart + } + return 0 +} + +func (x *CommitToGenerationTransactionData) GetEndorsementKey() []byte { + if x != nil { + return x.EndorsementKey + } + return nil +} + +func (x *CommitToGenerationTransactionData) GetEndorsementKeySignature() []byte { + if x != nil { + return x.EndorsementKeySignature + } + return nil +} + type MassTransferTransactionData_Transfer struct { state protoimpl.MessageState `protogen:"open.v1"` Recipient *Recipient `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` @@ -1589,7 +1665,7 @@ type MassTransferTransactionData_Transfer struct { func (x *MassTransferTransactionData_Transfer) Reset() { *x = MassTransferTransactionData_Transfer{} - mi := &file_waves_transaction_proto_msgTypes[21] + mi := &file_waves_transaction_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1601,7 +1677,7 @@ func (x *MassTransferTransactionData_Transfer) String() string { func (*MassTransferTransactionData_Transfer) ProtoMessage() {} func (x *MassTransferTransactionData_Transfer) ProtoReflect() protoreflect.Message { - mi := &file_waves_transaction_proto_msgTypes[21] + mi := &file_waves_transaction_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1640,8 +1716,7 @@ const file_waves_transaction_proto_rawDesc = "" + "\x11waves_transaction\x18\x01 \x01(\v2\x12.waves.TransactionH\x00R\x10wavesTransaction\x123\n" + "\x14ethereum_transaction\x18\x03 \x01(\fH\x00R\x13ethereumTransaction\x12\x16\n" + "\x06proofs\x18\x02 \x03(\fR\x06proofsB\r\n" + - "\vtransaction\"\xf2\n" + - "\n" + + "\vtransaction\"\xd0\v\n" + "\vTransaction\x12\x19\n" + "\bchain_id\x18\x01 \x01(\x05R\achainId\x12*\n" + "\x11sender_public_key\x18\x02 \x01(\fR\x0fsenderPublicKey\x12\x1f\n" + @@ -1667,7 +1742,8 @@ const file_waves_transaction_proto_rawDesc = "" + "\x10set_asset_script\x18s \x01(\v2$.waves.SetAssetScriptTransactionDataH\x00R\x0esetAssetScript\x12I\n" + "\rinvoke_script\x18t \x01(\v2\".waves.InvokeScriptTransactionDataH\x00R\finvokeScript\x12S\n" + "\x11update_asset_info\x18u \x01(\v2%.waves.UpdateAssetInfoTransactionDataH\x00R\x0fupdateAssetInfo\x12U\n" + - "\x11invoke_expression\x18w \x01(\v2&.waves.InvokeExpressionTransactionDataH\x00R\x10invokeExpressionB\x06\n" + + "\x11invoke_expression\x18w \x01(\v2&.waves.InvokeExpressionTransactionDataH\x00R\x10invokeExpression\x12\\\n" + + "\x14commit_to_generation\x18x \x01(\v2(.waves.CommitToGenerationTransactionDataH\x00R\x12commitToGenerationB\x06\n" + "\x04data\"]\n" + "\x16GenesisTransactionData\x12+\n" + "\x11recipient_address\x18\x01 \x01(\fR\x10recipientAddress\x12\x16\n" + @@ -1748,7 +1824,11 @@ const file_waves_transaction_proto_rawDesc = "" + "\x1fInvokeExpressionTransactionData\x12\x1e\n" + "\n" + "expression\x18\x01 \x01(\fR\n" + - "expressionBk\n" + + "expression\"\xc0\x01\n" + + "!CommitToGenerationTransactionData\x126\n" + + "\x17generation_period_start\x18\x01 \x01(\rR\x15generationPeriodStart\x12'\n" + + "\x0fendorsement_key\x18\x02 \x01(\fR\x0eendorsementKey\x12:\n" + + "\x19endorsement_key_signature\x18\x03 \x01(\fR\x17endorsementKeySignatureBk\n" + "&com.wavesplatform.protobuf.transactionZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( @@ -1763,7 +1843,7 @@ func file_waves_transaction_proto_rawDescGZIP() []byte { return file_waves_transaction_proto_rawDescData } -var file_waves_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_waves_transaction_proto_msgTypes = make([]protoimpl.MessageInfo, 23) var file_waves_transaction_proto_goTypes = []any{ (*SignedTransaction)(nil), // 0: waves.SignedTransaction (*Transaction)(nil), // 1: waves.Transaction @@ -1786,14 +1866,15 @@ var file_waves_transaction_proto_goTypes = []any{ (*InvokeScriptTransactionData)(nil), // 18: waves.InvokeScriptTransactionData (*UpdateAssetInfoTransactionData)(nil), // 19: waves.UpdateAssetInfoTransactionData (*InvokeExpressionTransactionData)(nil), // 20: waves.InvokeExpressionTransactionData - (*MassTransferTransactionData_Transfer)(nil), // 21: waves.MassTransferTransactionData.Transfer - (*Amount)(nil), // 22: waves.Amount - (*Recipient)(nil), // 23: waves.Recipient - (*Order)(nil), // 24: waves.Order + (*CommitToGenerationTransactionData)(nil), // 21: waves.CommitToGenerationTransactionData + (*MassTransferTransactionData_Transfer)(nil), // 22: waves.MassTransferTransactionData.Transfer + (*Amount)(nil), // 23: waves.Amount + (*Recipient)(nil), // 24: waves.Recipient + (*Order)(nil), // 25: waves.Order } var file_waves_transaction_proto_depIdxs = []int32{ 1, // 0: waves.SignedTransaction.waves_transaction:type_name -> waves.Transaction - 22, // 1: waves.Transaction.fee:type_name -> waves.Amount + 23, // 1: waves.Transaction.fee:type_name -> waves.Amount 2, // 2: waves.Transaction.genesis:type_name -> waves.GenesisTransactionData 3, // 3: waves.Transaction.payment:type_name -> waves.PaymentTransactionData 12, // 4: waves.Transaction.issue:type_name -> waves.IssueTransactionData @@ -1812,23 +1893,24 @@ var file_waves_transaction_proto_depIdxs = []int32{ 18, // 17: waves.Transaction.invoke_script:type_name -> waves.InvokeScriptTransactionData 19, // 18: waves.Transaction.update_asset_info:type_name -> waves.UpdateAssetInfoTransactionData 20, // 19: waves.Transaction.invoke_expression:type_name -> waves.InvokeExpressionTransactionData - 23, // 20: waves.TransferTransactionData.recipient:type_name -> waves.Recipient - 22, // 21: waves.TransferTransactionData.amount:type_name -> waves.Amount - 6, // 22: waves.DataTransactionData.data:type_name -> waves.DataEntry - 21, // 23: waves.MassTransferTransactionData.transfers:type_name -> waves.MassTransferTransactionData.Transfer - 23, // 24: waves.LeaseTransactionData.recipient:type_name -> waves.Recipient - 22, // 25: waves.BurnTransactionData.asset_amount:type_name -> waves.Amount - 22, // 26: waves.ReissueTransactionData.asset_amount:type_name -> waves.Amount - 24, // 27: waves.ExchangeTransactionData.orders:type_name -> waves.Order - 22, // 28: waves.SponsorFeeTransactionData.min_fee:type_name -> waves.Amount - 23, // 29: waves.InvokeScriptTransactionData.d_app:type_name -> waves.Recipient - 22, // 30: waves.InvokeScriptTransactionData.payments:type_name -> waves.Amount - 23, // 31: waves.MassTransferTransactionData.Transfer.recipient:type_name -> waves.Recipient - 32, // [32:32] is the sub-list for method output_type - 32, // [32:32] is the sub-list for method input_type - 32, // [32:32] is the sub-list for extension type_name - 32, // [32:32] is the sub-list for extension extendee - 0, // [0:32] is the sub-list for field type_name + 21, // 20: waves.Transaction.commit_to_generation:type_name -> waves.CommitToGenerationTransactionData + 24, // 21: waves.TransferTransactionData.recipient:type_name -> waves.Recipient + 23, // 22: waves.TransferTransactionData.amount:type_name -> waves.Amount + 6, // 23: waves.DataTransactionData.data:type_name -> waves.DataEntry + 22, // 24: waves.MassTransferTransactionData.transfers:type_name -> waves.MassTransferTransactionData.Transfer + 24, // 25: waves.LeaseTransactionData.recipient:type_name -> waves.Recipient + 23, // 26: waves.BurnTransactionData.asset_amount:type_name -> waves.Amount + 23, // 27: waves.ReissueTransactionData.asset_amount:type_name -> waves.Amount + 25, // 28: waves.ExchangeTransactionData.orders:type_name -> waves.Order + 23, // 29: waves.SponsorFeeTransactionData.min_fee:type_name -> waves.Amount + 24, // 30: waves.InvokeScriptTransactionData.d_app:type_name -> waves.Recipient + 23, // 31: waves.InvokeScriptTransactionData.payments:type_name -> waves.Amount + 24, // 32: waves.MassTransferTransactionData.Transfer.recipient:type_name -> waves.Recipient + 33, // [33:33] is the sub-list for method output_type + 33, // [33:33] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name } func init() { file_waves_transaction_proto_init() } @@ -1862,6 +1944,7 @@ func file_waves_transaction_proto_init() { (*Transaction_InvokeScript)(nil), (*Transaction_UpdateAssetInfo)(nil), (*Transaction_InvokeExpression)(nil), + (*Transaction_CommitToGeneration)(nil), } file_waves_transaction_proto_msgTypes[6].OneofWrappers = []any{ (*DataEntry_IntValue)(nil), @@ -1875,7 +1958,7 @@ func file_waves_transaction_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_waves_transaction_proto_rawDesc), len(file_waves_transaction_proto_rawDesc)), NumEnums: 0, - NumMessages: 22, + NumMessages: 23, NumExtensions: 0, NumServices: 0, }, diff --git a/pkg/grpc/generated/waves/transaction_vtproto.pb.go b/pkg/grpc/generated/waves/transaction_vtproto.pb.go index d5d083e89..12df1ec0b 100644 --- a/pkg/grpc/generated/waves/transaction_vtproto.pb.go +++ b/pkg/grpc/generated/waves/transaction_vtproto.pb.go @@ -137,6 +137,13 @@ func (m *Transaction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if msg, ok := m.Data.(*Transaction_CommitToGeneration); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } if msg, ok := m.Data.(*Transaction_InvokeExpression); ok { size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { @@ -676,6 +683,27 @@ func (m *Transaction_InvokeExpression) MarshalToSizedBufferVTStrict(dAtA []byte) } return len(dAtA) - i, nil } +func (m *Transaction_CommitToGeneration) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *Transaction_CommitToGeneration) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.CommitToGeneration != nil { + size, err := m.CommitToGeneration.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} func (m *GenesisTransactionData) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -1752,6 +1780,58 @@ func (m *InvokeExpressionTransactionData) MarshalToSizedBufferVTStrict(dAtA []by return len(dAtA) - i, nil } +func (m *CommitToGenerationTransactionData) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CommitToGenerationTransactionData) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CommitToGenerationTransactionData) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.EndorsementKeySignature) > 0 { + i -= len(m.EndorsementKeySignature) + copy(dAtA[i:], m.EndorsementKeySignature) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EndorsementKeySignature))) + i-- + dAtA[i] = 0x1a + } + if len(m.EndorsementKey) > 0 { + i -= len(m.EndorsementKey) + copy(dAtA[i:], m.EndorsementKey) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EndorsementKey))) + i-- + dAtA[i] = 0x12 + } + if m.GenerationPeriodStart != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GenerationPeriodStart)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *SignedTransaction) SizeVT() (n int) { if m == nil { return 0 @@ -2039,6 +2119,18 @@ func (m *Transaction_InvokeExpression) SizeVT() (n int) { } return n } +func (m *Transaction_CommitToGeneration) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CommitToGeneration != nil { + l = m.CommitToGeneration.SizeVT() + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + return n +} func (m *GenesisTransactionData) SizeVT() (n int) { if m == nil { return 0 @@ -2448,6 +2540,27 @@ func (m *InvokeExpressionTransactionData) SizeVT() (n int) { return n } +func (m *CommitToGenerationTransactionData) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GenerationPeriodStart != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.GenerationPeriodStart)) + } + l = len(m.EndorsementKey) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.EndorsementKeySignature) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + func (m *SignedTransaction) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3499,6 +3612,47 @@ func (m *Transaction) UnmarshalVT(dAtA []byte) error { m.Data = &Transaction_InvokeExpression{InvokeExpression: v} } iNdEx = postIndex + case 120: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommitToGeneration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Data.(*Transaction_CommitToGeneration); ok { + if err := oneof.CommitToGeneration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &CommitToGenerationTransactionData{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Data = &Transaction_CommitToGeneration{CommitToGeneration: v} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -5935,3 +6089,141 @@ func (m *InvokeExpressionTransactionData) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *CommitToGenerationTransactionData) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CommitToGenerationTransactionData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CommitToGenerationTransactionData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GenerationPeriodStart", wireType) + } + m.GenerationPeriodStart = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GenerationPeriodStart |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndorsementKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EndorsementKey = append(m.EndorsementKey[:0], dAtA[iNdEx:postIndex]...) + if m.EndorsementKey == nil { + m.EndorsementKey = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndorsementKeySignature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EndorsementKeySignature = append(m.EndorsementKeySignature[:0], dAtA[iNdEx:postIndex]...) + if m.EndorsementKeySignature == nil { + m.EndorsementKeySignature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} diff --git a/pkg/grpc/protobuf-schemas b/pkg/grpc/protobuf-schemas index ac207a97a..2de7e02e2 160000 --- a/pkg/grpc/protobuf-schemas +++ b/pkg/grpc/protobuf-schemas @@ -1 +1 @@ -Subproject commit ac207a97a883a4212c602a9898026aacf0d5820d +Subproject commit 2de7e02e27d89177be060b9015871e9da498ab4c From 9d29d63eb7e64a5039eed048a6c3303635f797ac Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Mon, 22 Sep 2025 10:09:02 +0400 Subject: [PATCH 4/8] Gosec option to exclued generated files added to security workflow. --- .github/workflows/security.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 47777bfd4..27d22e085 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -35,7 +35,7 @@ jobs: uses: securego/gosec@c9453023c4e81ebdb6dde29e22d9cd5e2285fb16 # v2.22.8 with: # with '-no-fail' we let the report trigger content trigger a failure using the GitHub Security features. - args: "-no-fail -fmt sarif -out gosec.sarif ./..." + args: "-no-fail -exclude-generated -fmt sarif -out gosec.sarif ./..." - name: Upload SARIF file for GitHub Advanced Security Dashboard uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3 with: From 6842edb534e4389bce4101f8c89af5836e97d9ec Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Mon, 22 Sep 2025 12:52:07 +0400 Subject: [PATCH 5/8] Set protobuf-schemas submodule to track the branch. Submodule updated to the latest commit. --- .gitmodules | 1 + pkg/grpc/protobuf-schemas | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index bca288e7a..22a349d6f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ [submodule "pkg/grpc/protobuf-schemas"] path = pkg/grpc/protobuf-schemas url = https://github.com/wavesplatform/protobuf-schemas + branch = deterministic-finality diff --git a/pkg/grpc/protobuf-schemas b/pkg/grpc/protobuf-schemas index 2de7e02e2..f4d4d693e 160000 --- a/pkg/grpc/protobuf-schemas +++ b/pkg/grpc/protobuf-schemas @@ -1 +1 @@ -Subproject commit 2de7e02e27d89177be060b9015871e9da498ab4c +Subproject commit f4d4d693eb73a9b2017df0da7f2a9883afec3d43 From c5282083850b720d2d3cd6040420b4c6b5ee3426 Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Mon, 22 Sep 2025 13:25:41 +0400 Subject: [PATCH 6/8] Generated protobuf code updated to the latest schema. --- go.mod | 4 +- go.sum | 4 ++ pkg/grpc/generated/waves/amount.pb.go | 2 +- pkg/grpc/generated/waves/block.pb.go | 38 +++++----- pkg/grpc/generated/waves/block_vtproto.pb.go | 70 +++++++++---------- pkg/grpc/generated/waves/events/events.pb.go | 2 +- .../events/grpc/blockchain_updates.pb.go | 2 +- .../events/grpc/blockchain_updates_grpc.pb.go | 2 +- .../waves/invoke_script_result.pb.go | 2 +- .../waves/node/grpc/accounts_api.pb.go | 2 +- .../waves/node/grpc/accounts_api_grpc.pb.go | 2 +- .../waves/node/grpc/assets_api.pb.go | 2 +- .../waves/node/grpc/assets_api_grpc.pb.go | 2 +- .../waves/node/grpc/blockchain_api.pb.go | 2 +- .../waves/node/grpc/blockchain_api_grpc.pb.go | 2 +- .../waves/node/grpc/blocks_api.pb.go | 2 +- .../waves/node/grpc/blocks_api_grpc.pb.go | 2 +- .../waves/node/grpc/transactions_api.pb.go | 2 +- .../node/grpc/transactions_api_grpc.pb.go | 2 +- pkg/grpc/generated/waves/order.pb.go | 2 +- pkg/grpc/generated/waves/recipient.pb.go | 2 +- pkg/grpc/generated/waves/reward_share.pb.go | 2 +- pkg/grpc/generated/waves/state_snapshot.pb.go | 2 +- pkg/grpc/generated/waves/transaction.pb.go | 2 +- .../waves/transaction_state_snapshot.pb.go | 2 +- pkg/ride/meta/generated/dapp_meta.pb.go | 2 +- 26 files changed, 82 insertions(+), 78 deletions(-) diff --git a/go.mod b/go.mod index e45fd9f39..996e10b71 100644 --- a/go.mod +++ b/go.mod @@ -117,11 +117,11 @@ require ( github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect go.yaml.in/yaml/v2 v2.4.2 // indirect - golang.org/x/net v0.43.0 // indirect + golang.org/x/net v0.44.0 // indirect golang.org/x/term v0.35.0 // indirect golang.org/x/text v0.29.0 // indirect golang.org/x/time v0.13.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 31570dcfe..f942686c5 100644 --- a/go.sum +++ b/go.sum @@ -398,6 +398,8 @@ golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= +golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I= +golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -468,6 +470,8 @@ gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 h1:pFyd6EwwL2TqFf8emdthzeX+gZE1ElRq3iM8pui4KBY= google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090 h1:/OQuEa4YWtDt7uQWHd3q3sUMb+QOLQUg1xa8CEsRv5w= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090/go.mod h1:GmFNa4BdJZ2a8G+wCe9Bg3wwThLrJun751XstdJt5Og= google.golang.org/grpc v1.75.1 h1:/ODCNEuf9VghjgO3rqLcfg8fiOP0nSluljWFlDxELLI= google.golang.org/grpc v1.75.1/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= diff --git a/pkg/grpc/generated/waves/amount.pb.go b/pkg/grpc/generated/waves/amount.pb.go index 98447e0a0..90a60dfb2 100644 --- a/pkg/grpc/generated/waves/amount.pb.go +++ b/pkg/grpc/generated/waves/amount.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/amount.proto package waves diff --git a/pkg/grpc/generated/waves/block.pb.go b/pkg/grpc/generated/waves/block.pb.go index 80fec4bdd..aeb95d9da 100644 --- a/pkg/grpc/generated/waves/block.pb.go +++ b/pkg/grpc/generated/waves/block.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/block.proto package waves @@ -234,14 +234,14 @@ func (x *SignedMicroBlock) GetTotalBlockId() []byte { } type EndorseBlock struct { - state protoimpl.MessageState `protogen:"open.v1"` - EndorserIndex int32 `protobuf:"varint,1,opt,name=endorser_index,json=endorserIndex,proto3" json:"endorser_index,omitempty"` - FinalizedBlockId []byte `protobuf:"bytes,2,opt,name=finalized_block_id,json=finalizedBlockId,proto3" json:"finalized_block_id,omitempty"` - BlockId []byte `protobuf:"bytes,3,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - BlockHeight uint32 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EndorserIndex int32 `protobuf:"varint,1,opt,name=endorser_index,json=endorserIndex,proto3" json:"endorser_index,omitempty"` + FinalizedBlockId []byte `protobuf:"bytes,2,opt,name=finalized_block_id,json=finalizedBlockId,proto3" json:"finalized_block_id,omitempty"` + FinalizedBlockHeight uint32 `protobuf:"varint,3,opt,name=finalized_block_height,json=finalizedBlockHeight,proto3" json:"finalized_block_height,omitempty"` + EndorsedBlockId []byte `protobuf:"bytes,4,opt,name=endorsed_block_id,json=endorsedBlockId,proto3" json:"endorsed_block_id,omitempty"` + Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // BLS + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EndorseBlock) Reset() { @@ -288,18 +288,18 @@ func (x *EndorseBlock) GetFinalizedBlockId() []byte { return nil } -func (x *EndorseBlock) GetBlockId() []byte { +func (x *EndorseBlock) GetFinalizedBlockHeight() uint32 { if x != nil { - return x.BlockId + return x.FinalizedBlockHeight } - return nil + return 0 } -func (x *EndorseBlock) GetBlockHeight() uint32 { +func (x *EndorseBlock) GetEndorsedBlockId() []byte { if x != nil { - return x.BlockHeight + return x.EndorsedBlockId } - return 0 + return nil } func (x *EndorseBlock) GetSignature() []byte { @@ -662,12 +662,12 @@ const file_waves_block_proto_rawDesc = "" + "\vmicro_block\x18\x01 \x01(\v2\x11.waves.MicroBlockR\n" + "microBlock\x12\x1c\n" + "\tsignature\x18\x02 \x01(\fR\tsignature\x12$\n" + - "\x0etotal_block_id\x18\x03 \x01(\fR\ftotalBlockId\"\xbf\x01\n" + + "\x0etotal_block_id\x18\x03 \x01(\fR\ftotalBlockId\"\xe3\x01\n" + "\fEndorseBlock\x12%\n" + "\x0eendorser_index\x18\x01 \x01(\x05R\rendorserIndex\x12,\n" + - "\x12finalized_block_id\x18\x02 \x01(\fR\x10finalizedBlockId\x12\x19\n" + - "\bblock_id\x18\x03 \x01(\fR\ablockId\x12!\n" + - "\fblock_height\x18\x04 \x01(\rR\vblockHeight\x12\x1c\n" + + "\x12finalized_block_id\x18\x02 \x01(\fR\x10finalizedBlockId\x124\n" + + "\x16finalized_block_height\x18\x03 \x01(\rR\x14finalizedBlockHeight\x12*\n" + + "\x11endorsed_block_id\x18\x04 \x01(\fR\x0fendorsedBlockId\x12\x1c\n" + "\tsignature\x18\x05 \x01(\fR\tsignature\"\xd3\x01\n" + "\x12FinalizationVoting\x12)\n" + "\x10endorser_indexes\x18\x01 \x03(\x05R\x0fendorserIndexes\x12H\n" + diff --git a/pkg/grpc/generated/waves/block_vtproto.pb.go b/pkg/grpc/generated/waves/block_vtproto.pb.go index 9afa93831..627936f50 100644 --- a/pkg/grpc/generated/waves/block_vtproto.pb.go +++ b/pkg/grpc/generated/waves/block_vtproto.pb.go @@ -491,17 +491,17 @@ func (m *EndorseBlock) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if m.BlockHeight != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BlockHeight)) + if len(m.EndorsedBlockId) > 0 { + i -= len(m.EndorsedBlockId) + copy(dAtA[i:], m.EndorsedBlockId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EndorsedBlockId))) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x22 } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.BlockId))) + if m.FinalizedBlockHeight != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.FinalizedBlockHeight)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } if len(m.FinalizedBlockId) > 0 { i -= len(m.FinalizedBlockId) @@ -791,13 +791,13 @@ func (m *EndorseBlock) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.BlockId) + if m.FinalizedBlockHeight != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.FinalizedBlockHeight)) + } + l = len(m.EndorsedBlockId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.BlockHeight != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.BlockHeight)) - } l = len(m.Signature) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) @@ -2286,10 +2286,10 @@ func (m *EndorseBlock) UnmarshalVT(dAtA []byte) error { } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FinalizedBlockHeight", wireType) } - var byteLen int + m.FinalizedBlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -2299,31 +2299,16 @@ func (m *EndorseBlock) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.FinalizedBlockHeight |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockId = append(m.BlockId[:0], dAtA[iNdEx:postIndex]...) - if m.BlockId == nil { - m.BlockId = []byte{} - } - iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndorsedBlockId", wireType) } - m.BlockHeight = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -2333,11 +2318,26 @@ func (m *EndorseBlock) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BlockHeight |= uint32(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EndorsedBlockId = append(m.EndorsedBlockId[:0], dAtA[iNdEx:postIndex]...) + if m.EndorsedBlockId == nil { + m.EndorsedBlockId = []byte{} + } + iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) diff --git a/pkg/grpc/generated/waves/events/events.pb.go b/pkg/grpc/generated/waves/events/events.pb.go index 95face9f3..3ba4f0fd4 100644 --- a/pkg/grpc/generated/waves/events/events.pb.go +++ b/pkg/grpc/generated/waves/events/events.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/events/events.proto package events diff --git a/pkg/grpc/generated/waves/events/grpc/blockchain_updates.pb.go b/pkg/grpc/generated/waves/events/grpc/blockchain_updates.pb.go index f1d657ca6..7ef216ccf 100644 --- a/pkg/grpc/generated/waves/events/grpc/blockchain_updates.pb.go +++ b/pkg/grpc/generated/waves/events/grpc/blockchain_updates.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/events/grpc/blockchain_updates.proto package grpc diff --git a/pkg/grpc/generated/waves/events/grpc/blockchain_updates_grpc.pb.go b/pkg/grpc/generated/waves/events/grpc/blockchain_updates_grpc.pb.go index 6d5e10be2..5ab4a96b5 100644 --- a/pkg/grpc/generated/waves/events/grpc/blockchain_updates_grpc.pb.go +++ b/pkg/grpc/generated/waves/events/grpc/blockchain_updates_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.0 +// - protoc v6.32.1 // source: waves/events/grpc/blockchain_updates.proto package grpc diff --git a/pkg/grpc/generated/waves/invoke_script_result.pb.go b/pkg/grpc/generated/waves/invoke_script_result.pb.go index d861e72c4..b3d51d0f1 100644 --- a/pkg/grpc/generated/waves/invoke_script_result.pb.go +++ b/pkg/grpc/generated/waves/invoke_script_result.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/invoke_script_result.proto package waves diff --git a/pkg/grpc/generated/waves/node/grpc/accounts_api.pb.go b/pkg/grpc/generated/waves/node/grpc/accounts_api.pb.go index fd250fc23..b9e56088d 100644 --- a/pkg/grpc/generated/waves/node/grpc/accounts_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/accounts_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/node/grpc/accounts_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/accounts_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/accounts_api_grpc.pb.go index ab0b4f166..552da11e9 100644 --- a/pkg/grpc/generated/waves/node/grpc/accounts_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/accounts_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.0 +// - protoc v6.32.1 // source: waves/node/grpc/accounts_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/assets_api.pb.go b/pkg/grpc/generated/waves/node/grpc/assets_api.pb.go index d276de131..e5e97c73b 100644 --- a/pkg/grpc/generated/waves/node/grpc/assets_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/assets_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/node/grpc/assets_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/assets_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/assets_api_grpc.pb.go index 534aebb6f..581be38dd 100644 --- a/pkg/grpc/generated/waves/node/grpc/assets_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/assets_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.0 +// - protoc v6.32.1 // source: waves/node/grpc/assets_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/blockchain_api.pb.go b/pkg/grpc/generated/waves/node/grpc/blockchain_api.pb.go index fff0545fe..cb26c224e 100644 --- a/pkg/grpc/generated/waves/node/grpc/blockchain_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/blockchain_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/node/grpc/blockchain_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/blockchain_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/blockchain_api_grpc.pb.go index f12fa4fad..91a60235e 100644 --- a/pkg/grpc/generated/waves/node/grpc/blockchain_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/blockchain_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.0 +// - protoc v6.32.1 // source: waves/node/grpc/blockchain_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/blocks_api.pb.go b/pkg/grpc/generated/waves/node/grpc/blocks_api.pb.go index c9b9ac928..4ec1d5f8f 100644 --- a/pkg/grpc/generated/waves/node/grpc/blocks_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/blocks_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/node/grpc/blocks_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/blocks_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/blocks_api_grpc.pb.go index e6b4881eb..3f938cb41 100644 --- a/pkg/grpc/generated/waves/node/grpc/blocks_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/blocks_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.0 +// - protoc v6.32.1 // source: waves/node/grpc/blocks_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/transactions_api.pb.go b/pkg/grpc/generated/waves/node/grpc/transactions_api.pb.go index 6310d5e40..6b4ac28b5 100644 --- a/pkg/grpc/generated/waves/node/grpc/transactions_api.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/transactions_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/node/grpc/transactions_api.proto package grpc diff --git a/pkg/grpc/generated/waves/node/grpc/transactions_api_grpc.pb.go b/pkg/grpc/generated/waves/node/grpc/transactions_api_grpc.pb.go index 912d118a2..2a0a019fb 100644 --- a/pkg/grpc/generated/waves/node/grpc/transactions_api_grpc.pb.go +++ b/pkg/grpc/generated/waves/node/grpc/transactions_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v6.32.0 +// - protoc v6.32.1 // source: waves/node/grpc/transactions_api.proto package grpc diff --git a/pkg/grpc/generated/waves/order.pb.go b/pkg/grpc/generated/waves/order.pb.go index 36edb2bb6..eac7d7af1 100644 --- a/pkg/grpc/generated/waves/order.pb.go +++ b/pkg/grpc/generated/waves/order.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/order.proto package waves diff --git a/pkg/grpc/generated/waves/recipient.pb.go b/pkg/grpc/generated/waves/recipient.pb.go index fdec6ac1f..2d135a2fb 100644 --- a/pkg/grpc/generated/waves/recipient.pb.go +++ b/pkg/grpc/generated/waves/recipient.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/recipient.proto package waves diff --git a/pkg/grpc/generated/waves/reward_share.pb.go b/pkg/grpc/generated/waves/reward_share.pb.go index 0b136711e..2b7f17120 100644 --- a/pkg/grpc/generated/waves/reward_share.pb.go +++ b/pkg/grpc/generated/waves/reward_share.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/reward_share.proto package waves diff --git a/pkg/grpc/generated/waves/state_snapshot.pb.go b/pkg/grpc/generated/waves/state_snapshot.pb.go index 5fd4281e8..06f37a25e 100644 --- a/pkg/grpc/generated/waves/state_snapshot.pb.go +++ b/pkg/grpc/generated/waves/state_snapshot.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/state_snapshot.proto package waves diff --git a/pkg/grpc/generated/waves/transaction.pb.go b/pkg/grpc/generated/waves/transaction.pb.go index fca86c48e..e0390508e 100644 --- a/pkg/grpc/generated/waves/transaction.pb.go +++ b/pkg/grpc/generated/waves/transaction.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/transaction.proto package waves diff --git a/pkg/grpc/generated/waves/transaction_state_snapshot.pb.go b/pkg/grpc/generated/waves/transaction_state_snapshot.pb.go index 2226f4fa2..e673f4896 100644 --- a/pkg/grpc/generated/waves/transaction_state_snapshot.pb.go +++ b/pkg/grpc/generated/waves/transaction_state_snapshot.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/transaction_state_snapshot.proto package waves diff --git a/pkg/ride/meta/generated/dapp_meta.pb.go b/pkg/ride/meta/generated/dapp_meta.pb.go index 1e4ae2491..ed5f0dc71 100644 --- a/pkg/ride/meta/generated/dapp_meta.pb.go +++ b/pkg/ride/meta/generated/dapp_meta.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.9 -// protoc v6.32.0 +// protoc v6.32.1 // source: waves/lang/dapp_meta.proto package generated From c9545474155ff0aeafe46bbfc0823557043a129c Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Wed, 24 Sep 2025 14:46:17 +0400 Subject: [PATCH 7/8] Protobuf schemas updated and code regenerated. --- pkg/grpc/generated/waves/transaction.pb.go | 28 +++++++-------- .../generated/waves/transaction_vtproto.pb.go | 36 +++++++++---------- pkg/grpc/protobuf-schemas | 2 +- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/pkg/grpc/generated/waves/transaction.pb.go b/pkg/grpc/generated/waves/transaction.pb.go index e0390508e..4ec374f58 100644 --- a/pkg/grpc/generated/waves/transaction.pb.go +++ b/pkg/grpc/generated/waves/transaction.pb.go @@ -1596,12 +1596,12 @@ func (x *InvokeExpressionTransactionData) GetExpression() []byte { } type CommitToGenerationTransactionData struct { - state protoimpl.MessageState `protogen:"open.v1"` - GenerationPeriodStart uint32 `protobuf:"varint,1,opt,name=generation_period_start,json=generationPeriodStart,proto3" json:"generation_period_start,omitempty"` - EndorsementKey []byte `protobuf:"bytes,2,opt,name=endorsement_key,json=endorsementKey,proto3" json:"endorsement_key,omitempty"` - EndorsementKeySignature []byte `protobuf:"bytes,3,opt,name=endorsement_key_signature,json=endorsementKeySignature,proto3" json:"endorsement_key_signature,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + GenerationPeriodStart uint32 `protobuf:"varint,1,opt,name=generation_period_start,json=generationPeriodStart,proto3" json:"generation_period_start,omitempty"` + EndorserPublicKey []byte `protobuf:"bytes,2,opt,name=endorser_public_key,json=endorserPublicKey,proto3" json:"endorser_public_key,omitempty"` // BLS + CommitmentSignature []byte `protobuf:"bytes,3,opt,name=commitment_signature,json=commitmentSignature,proto3" json:"commitment_signature,omitempty"` // BLS signature for endorser_public_key ++ generation_period_start + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CommitToGenerationTransactionData) Reset() { @@ -1641,16 +1641,16 @@ func (x *CommitToGenerationTransactionData) GetGenerationPeriodStart() uint32 { return 0 } -func (x *CommitToGenerationTransactionData) GetEndorsementKey() []byte { +func (x *CommitToGenerationTransactionData) GetEndorserPublicKey() []byte { if x != nil { - return x.EndorsementKey + return x.EndorserPublicKey } return nil } -func (x *CommitToGenerationTransactionData) GetEndorsementKeySignature() []byte { +func (x *CommitToGenerationTransactionData) GetCommitmentSignature() []byte { if x != nil { - return x.EndorsementKeySignature + return x.CommitmentSignature } return nil } @@ -1824,11 +1824,11 @@ const file_waves_transaction_proto_rawDesc = "" + "\x1fInvokeExpressionTransactionData\x12\x1e\n" + "\n" + "expression\x18\x01 \x01(\fR\n" + - "expression\"\xc0\x01\n" + + "expression\"\xbe\x01\n" + "!CommitToGenerationTransactionData\x126\n" + - "\x17generation_period_start\x18\x01 \x01(\rR\x15generationPeriodStart\x12'\n" + - "\x0fendorsement_key\x18\x02 \x01(\fR\x0eendorsementKey\x12:\n" + - "\x19endorsement_key_signature\x18\x03 \x01(\fR\x17endorsementKeySignatureBk\n" + + "\x17generation_period_start\x18\x01 \x01(\rR\x15generationPeriodStart\x12.\n" + + "\x13endorser_public_key\x18\x02 \x01(\fR\x11endorserPublicKey\x121\n" + + "\x14commitment_signature\x18\x03 \x01(\fR\x13commitmentSignatureBk\n" + "&com.wavesplatform.protobuf.transactionZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/waves\xaa\x02\x05Wavesb\x06proto3" var ( diff --git a/pkg/grpc/generated/waves/transaction_vtproto.pb.go b/pkg/grpc/generated/waves/transaction_vtproto.pb.go index 12df1ec0b..c94592bd0 100644 --- a/pkg/grpc/generated/waves/transaction_vtproto.pb.go +++ b/pkg/grpc/generated/waves/transaction_vtproto.pb.go @@ -1810,17 +1810,17 @@ func (m *CommitToGenerationTransactionData) MarshalToSizedBufferVTStrict(dAtA [] i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.EndorsementKeySignature) > 0 { - i -= len(m.EndorsementKeySignature) - copy(dAtA[i:], m.EndorsementKeySignature) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EndorsementKeySignature))) + if len(m.CommitmentSignature) > 0 { + i -= len(m.CommitmentSignature) + copy(dAtA[i:], m.CommitmentSignature) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CommitmentSignature))) i-- dAtA[i] = 0x1a } - if len(m.EndorsementKey) > 0 { - i -= len(m.EndorsementKey) - copy(dAtA[i:], m.EndorsementKey) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EndorsementKey))) + if len(m.EndorserPublicKey) > 0 { + i -= len(m.EndorserPublicKey) + copy(dAtA[i:], m.EndorserPublicKey) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EndorserPublicKey))) i-- dAtA[i] = 0x12 } @@ -2549,11 +2549,11 @@ func (m *CommitToGenerationTransactionData) SizeVT() (n int) { if m.GenerationPeriodStart != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.GenerationPeriodStart)) } - l = len(m.EndorsementKey) + l = len(m.EndorserPublicKey) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.EndorsementKeySignature) + l = len(m.CommitmentSignature) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -6139,7 +6139,7 @@ func (m *CommitToGenerationTransactionData) UnmarshalVT(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndorsementKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EndorserPublicKey", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6166,14 +6166,14 @@ func (m *CommitToGenerationTransactionData) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndorsementKey = append(m.EndorsementKey[:0], dAtA[iNdEx:postIndex]...) - if m.EndorsementKey == nil { - m.EndorsementKey = []byte{} + m.EndorserPublicKey = append(m.EndorserPublicKey[:0], dAtA[iNdEx:postIndex]...) + if m.EndorserPublicKey == nil { + m.EndorserPublicKey = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndorsementKeySignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CommitmentSignature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6200,9 +6200,9 @@ func (m *CommitToGenerationTransactionData) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndorsementKeySignature = append(m.EndorsementKeySignature[:0], dAtA[iNdEx:postIndex]...) - if m.EndorsementKeySignature == nil { - m.EndorsementKeySignature = []byte{} + m.CommitmentSignature = append(m.CommitmentSignature[:0], dAtA[iNdEx:postIndex]...) + if m.CommitmentSignature == nil { + m.CommitmentSignature = []byte{} } iNdEx = postIndex default: diff --git a/pkg/grpc/protobuf-schemas b/pkg/grpc/protobuf-schemas index f4d4d693e..6e44dc324 160000 --- a/pkg/grpc/protobuf-schemas +++ b/pkg/grpc/protobuf-schemas @@ -1 +1 @@ -Subproject commit f4d4d693eb73a9b2017df0da7f2a9883afec3d43 +Subproject commit 6e44dc324e0cb7d075779042cef12e53dce6f583 From 3fd39ea6cace9097d9e109e9986eb6280087e5b7 Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Wed, 24 Sep 2025 17:09:03 +0400 Subject: [PATCH 8/8] Tidy go modules. --- go.sum | 4 ---- 1 file changed, 4 deletions(-) diff --git a/go.sum b/go.sum index 06cf1a71f..ed9f5d6e5 100644 --- a/go.sum +++ b/go.sum @@ -396,8 +396,6 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= -golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I= golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -468,8 +466,6 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 h1:pFyd6EwwL2TqFf8emdthzeX+gZE1ElRq3iM8pui4KBY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090 h1:/OQuEa4YWtDt7uQWHd3q3sUMb+QOLQUg1xa8CEsRv5w= google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090/go.mod h1:GmFNa4BdJZ2a8G+wCe9Bg3wwThLrJun751XstdJt5Og= google.golang.org/grpc v1.75.1 h1:/ODCNEuf9VghjgO3rqLcfg8fiOP0nSluljWFlDxELLI=