From c9cbef9fd8e495fa41e0495a79f198080383fe70 Mon Sep 17 00:00:00 2001 From: Xiong Date: Thu, 11 Jul 2024 18:05:34 -0400 Subject: [PATCH 1/4] Update v1 protobuf to be compatible with v11 msgs. Add v1_1 protobuf for v12 original msgs. MsgCreateResourceNode MsgCreateMetaNode MsgUpdateResourceNode MsgUpdateMetaNode --- api/stratos/register/v1/tx.pulsar.go | 588 +-- api/stratos/register/v1_1/register.pulsar.go | 889 +++++ api/stratos/register/v1_1/tx.pulsar.go | 3553 ++++++++++++++++++ proto/buf.yaml | 1 + proto/stratos/register/v1/tx.proto | 56 +- proto/stratos/register/v1_1/register.proto | 34 + proto/stratos/register/v1_1/tx.proto | 156 + testutil/helpers.go | 3 + x/register/types/codec.go | 5 + x/register/types/tx.pb.go | 556 +-- x/register/types/v1_1/msg.go | 82 + x/register/types/v1_1/register.pb.go | 575 +++ x/register/types/v1_1/tx.pb.go | 1935 ++++++++++ 13 files changed, 7833 insertions(+), 600 deletions(-) create mode 100644 api/stratos/register/v1_1/register.pulsar.go create mode 100644 api/stratos/register/v1_1/tx.pulsar.go create mode 100644 proto/stratos/register/v1_1/register.proto create mode 100644 proto/stratos/register/v1_1/tx.proto create mode 100644 x/register/types/v1_1/msg.go create mode 100644 x/register/types/v1_1/register.pb.go create mode 100644 x/register/types/v1_1/tx.pb.go diff --git a/api/stratos/register/v1/tx.pulsar.go b/api/stratos/register/v1/tx.pulsar.go index bafa630c..e369bf8c 100644 --- a/api/stratos/register/v1/tx.pulsar.go +++ b/api/stratos/register/v1/tx.pulsar.go @@ -24,9 +24,9 @@ var ( fd_MsgCreateResourceNode_pubkey protoreflect.FieldDescriptor fd_MsgCreateResourceNode_value protoreflect.FieldDescriptor fd_MsgCreateResourceNode_owner_address protoreflect.FieldDescriptor - fd_MsgCreateResourceNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgCreateResourceNode_description protoreflect.FieldDescriptor fd_MsgCreateResourceNode_node_type protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { @@ -36,9 +36,9 @@ func init() { fd_MsgCreateResourceNode_pubkey = md_MsgCreateResourceNode.Fields().ByName("pubkey") fd_MsgCreateResourceNode_value = md_MsgCreateResourceNode.Fields().ByName("value") fd_MsgCreateResourceNode_owner_address = md_MsgCreateResourceNode.Fields().ByName("owner_address") - fd_MsgCreateResourceNode_beneficiary_address = md_MsgCreateResourceNode.Fields().ByName("beneficiary_address") fd_MsgCreateResourceNode_description = md_MsgCreateResourceNode.Fields().ByName("description") fd_MsgCreateResourceNode_node_type = md_MsgCreateResourceNode.Fields().ByName("node_type") + fd_MsgCreateResourceNode_beneficiary_address = md_MsgCreateResourceNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgCreateResourceNode)(nil) @@ -130,12 +130,6 @@ func (x *fastReflection_MsgCreateResourceNode) Range(f func(protoreflect.FieldDe return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgCreateResourceNode_beneficiary_address, value) { - return - } - } if x.Description != nil { value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) if !f(fd_MsgCreateResourceNode_description, value) { @@ -148,6 +142,12 @@ func (x *fastReflection_MsgCreateResourceNode) Range(f func(protoreflect.FieldDe return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgCreateResourceNode_beneficiary_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -171,12 +171,12 @@ func (x *fastReflection_MsgCreateResourceNode) Has(fd protoreflect.FieldDescript return x.Value != nil case "stratos.register.v1.MsgCreateResourceNode.owner_address": return x.OwnerAddress != "" - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - return x.BeneficiaryAddress != "" case "stratos.register.v1.MsgCreateResourceNode.description": return x.Description != nil case "stratos.register.v1.MsgCreateResourceNode.node_type": return x.NodeType != uint32(0) + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -201,12 +201,12 @@ func (x *fastReflection_MsgCreateResourceNode) Clear(fd protoreflect.FieldDescri x.Value = nil case "stratos.register.v1.MsgCreateResourceNode.owner_address": x.OwnerAddress = "" - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - x.BeneficiaryAddress = "" case "stratos.register.v1.MsgCreateResourceNode.description": x.Description = nil case "stratos.register.v1.MsgCreateResourceNode.node_type": x.NodeType = uint32(0) + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -235,15 +235,15 @@ func (x *fastReflection_MsgCreateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1.MsgCreateResourceNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgCreateResourceNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) case "stratos.register.v1.MsgCreateResourceNode.node_type": value := x.NodeType return protoreflect.ValueOfUint32(value) + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -272,12 +272,12 @@ func (x *fastReflection_MsgCreateResourceNode) Set(fd protoreflect.FieldDescript x.Value = value.Message().Interface().(*v1beta1.Coin) case "stratos.register.v1.MsgCreateResourceNode.owner_address": x.OwnerAddress = value.Interface().(string) - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1.MsgCreateResourceNode.description": x.Description = value.Message().Interface().(*Description) case "stratos.register.v1.MsgCreateResourceNode.node_type": x.NodeType = uint32(value.Uint()) + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -317,10 +317,10 @@ func (x *fastReflection_MsgCreateResourceNode) Mutable(fd protoreflect.FieldDesc panic(fmt.Errorf("field network_address of message stratos.register.v1.MsgCreateResourceNode is not mutable")) case "stratos.register.v1.MsgCreateResourceNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1.MsgCreateResourceNode is not mutable")) - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgCreateResourceNode is not mutable")) case "stratos.register.v1.MsgCreateResourceNode.node_type": panic(fmt.Errorf("field node_type of message stratos.register.v1.MsgCreateResourceNode is not mutable")) + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgCreateResourceNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -344,13 +344,13 @@ func (x *fastReflection_MsgCreateResourceNode) NewField(fd protoreflect.FieldDes return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1.MsgCreateResourceNode.owner_address": return protoreflect.ValueOfString("") - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - return protoreflect.ValueOfString("") case "stratos.register.v1.MsgCreateResourceNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1.MsgCreateResourceNode.node_type": return protoreflect.ValueOfUint32(uint32(0)) + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -436,10 +436,6 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.Description != nil { l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) @@ -447,6 +443,10 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method if x.NodeType != 0 { n += 1 + runtime.Sov(uint64(x.NodeType)) } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -476,10 +476,17 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x3a + } if x.NodeType != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.NodeType)) i-- - dAtA[i] = 0x38 + dAtA[i] = 0x30 } if x.Description != nil { encoded, err := options.Marshal(x.Description) @@ -493,13 +500,6 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x32 - } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- dAtA[i] = 0x2a } if len(x.OwnerAddress) > 0 { @@ -731,9 +731,9 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -743,29 +743,33 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var msglen int + x.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -775,33 +779,16 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Description == nil { - x.Description = &Description{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - x.NodeType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -811,11 +798,24 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - x.NodeType |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1213,8 +1213,8 @@ var ( fd_MsgCreateMetaNode_pubkey protoreflect.FieldDescriptor fd_MsgCreateMetaNode_value protoreflect.FieldDescriptor fd_MsgCreateMetaNode_owner_address protoreflect.FieldDescriptor - fd_MsgCreateMetaNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgCreateMetaNode_description protoreflect.FieldDescriptor + fd_MsgCreateMetaNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { @@ -1224,8 +1224,8 @@ func init() { fd_MsgCreateMetaNode_pubkey = md_MsgCreateMetaNode.Fields().ByName("pubkey") fd_MsgCreateMetaNode_value = md_MsgCreateMetaNode.Fields().ByName("value") fd_MsgCreateMetaNode_owner_address = md_MsgCreateMetaNode.Fields().ByName("owner_address") - fd_MsgCreateMetaNode_beneficiary_address = md_MsgCreateMetaNode.Fields().ByName("beneficiary_address") fd_MsgCreateMetaNode_description = md_MsgCreateMetaNode.Fields().ByName("description") + fd_MsgCreateMetaNode_beneficiary_address = md_MsgCreateMetaNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgCreateMetaNode)(nil) @@ -1317,18 +1317,18 @@ func (x *fastReflection_MsgCreateMetaNode) Range(f func(protoreflect.FieldDescri return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgCreateMetaNode_beneficiary_address, value) { - return - } - } if x.Description != nil { value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) if !f(fd_MsgCreateMetaNode_description, value) { return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgCreateMetaNode_beneficiary_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -1352,10 +1352,10 @@ func (x *fastReflection_MsgCreateMetaNode) Has(fd protoreflect.FieldDescriptor) return x.Value != nil case "stratos.register.v1.MsgCreateMetaNode.owner_address": return x.OwnerAddress != "" - case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": - return x.BeneficiaryAddress != "" case "stratos.register.v1.MsgCreateMetaNode.description": return x.Description != nil + case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": + return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1380,10 +1380,10 @@ func (x *fastReflection_MsgCreateMetaNode) Clear(fd protoreflect.FieldDescriptor x.Value = nil case "stratos.register.v1.MsgCreateMetaNode.owner_address": x.OwnerAddress = "" - case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": - x.BeneficiaryAddress = "" case "stratos.register.v1.MsgCreateMetaNode.description": x.Description = nil + case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": + x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1412,12 +1412,12 @@ func (x *fastReflection_MsgCreateMetaNode) Get(descriptor protoreflect.FieldDesc case "stratos.register.v1.MsgCreateMetaNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) - case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgCreateMetaNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1446,10 +1446,10 @@ func (x *fastReflection_MsgCreateMetaNode) Set(fd protoreflect.FieldDescriptor, x.Value = value.Message().Interface().(*v1beta1.Coin) case "stratos.register.v1.MsgCreateMetaNode.owner_address": x.OwnerAddress = value.Interface().(string) - case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1.MsgCreateMetaNode.description": x.Description = value.Message().Interface().(*Description) + case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1514,11 +1514,11 @@ func (x *fastReflection_MsgCreateMetaNode) NewField(fd protoreflect.FieldDescrip return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1.MsgCreateMetaNode.owner_address": return protoreflect.ValueOfString("") - case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": - return protoreflect.ValueOfString("") case "stratos.register.v1.MsgCreateMetaNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1604,14 +1604,14 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.Description != nil { l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1641,6 +1641,13 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x32 + } if x.Description != nil { encoded, err := options.Marshal(x.Description) if err != nil { @@ -1653,13 +1660,6 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x32 - } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- dAtA[i] = 0x2a } if len(x.OwnerAddress) > 0 { @@ -1891,9 +1891,9 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1903,29 +1903,33 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1935,27 +1939,23 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Description == nil { - x.Description = &Description{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4031,20 +4031,20 @@ func (x *fastReflection_MsgRemoveMetaNodeResponse) ProtoMethods() *protoiface.Me var ( md_MsgUpdateResourceNode protoreflect.MessageDescriptor fd_MsgUpdateResourceNode_description protoreflect.FieldDescriptor - fd_MsgUpdateResourceNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_network_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_owner_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_node_type protoreflect.FieldDescriptor + fd_MsgUpdateResourceNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { file_stratos_register_v1_tx_proto_init() md_MsgUpdateResourceNode = File_stratos_register_v1_tx_proto.Messages().ByName("MsgUpdateResourceNode") fd_MsgUpdateResourceNode_description = md_MsgUpdateResourceNode.Fields().ByName("description") - fd_MsgUpdateResourceNode_beneficiary_address = md_MsgUpdateResourceNode.Fields().ByName("beneficiary_address") fd_MsgUpdateResourceNode_network_address = md_MsgUpdateResourceNode.Fields().ByName("network_address") fd_MsgUpdateResourceNode_owner_address = md_MsgUpdateResourceNode.Fields().ByName("owner_address") fd_MsgUpdateResourceNode_node_type = md_MsgUpdateResourceNode.Fields().ByName("node_type") + fd_MsgUpdateResourceNode_beneficiary_address = md_MsgUpdateResourceNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgUpdateResourceNode)(nil) @@ -4118,12 +4118,6 @@ func (x *fastReflection_MsgUpdateResourceNode) Range(f func(protoreflect.FieldDe return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgUpdateResourceNode_beneficiary_address, value) { - return - } - } if x.NetworkAddress != "" { value := protoreflect.ValueOfString(x.NetworkAddress) if !f(fd_MsgUpdateResourceNode_network_address, value) { @@ -4142,6 +4136,12 @@ func (x *fastReflection_MsgUpdateResourceNode) Range(f func(protoreflect.FieldDe return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgUpdateResourceNode_beneficiary_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -4159,14 +4159,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Has(fd protoreflect.FieldDescript switch fd.FullName() { case "stratos.register.v1.MsgUpdateResourceNode.description": return x.Description != nil - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - return x.BeneficiaryAddress != "" case "stratos.register.v1.MsgUpdateResourceNode.network_address": return x.NetworkAddress != "" case "stratos.register.v1.MsgUpdateResourceNode.owner_address": return x.OwnerAddress != "" case "stratos.register.v1.MsgUpdateResourceNode.node_type": return x.NodeType != uint32(0) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4185,14 +4185,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Clear(fd protoreflect.FieldDescri switch fd.FullName() { case "stratos.register.v1.MsgUpdateResourceNode.description": x.Description = nil - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - x.BeneficiaryAddress = "" case "stratos.register.v1.MsgUpdateResourceNode.network_address": x.NetworkAddress = "" case "stratos.register.v1.MsgUpdateResourceNode.owner_address": x.OwnerAddress = "" case "stratos.register.v1.MsgUpdateResourceNode.node_type": x.NodeType = uint32(0) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4212,9 +4212,6 @@ func (x *fastReflection_MsgUpdateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1.MsgUpdateResourceNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgUpdateResourceNode.network_address": value := x.NetworkAddress return protoreflect.ValueOfString(value) @@ -4224,6 +4221,9 @@ func (x *fastReflection_MsgUpdateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1.MsgUpdateResourceNode.node_type": value := x.NodeType return protoreflect.ValueOfUint32(value) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4246,14 +4246,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Set(fd protoreflect.FieldDescript switch fd.FullName() { case "stratos.register.v1.MsgUpdateResourceNode.description": x.Description = value.Message().Interface().(*Description) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateResourceNode.network_address": x.NetworkAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateResourceNode.owner_address": x.OwnerAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateResourceNode.node_type": x.NodeType = uint32(value.Uint()) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4279,14 +4279,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Mutable(fd protoreflect.FieldDesc x.Description = new(Description) } return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1.MsgUpdateResourceNode.network_address": panic(fmt.Errorf("field network_address of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1.MsgUpdateResourceNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1.MsgUpdateResourceNode.node_type": panic(fmt.Errorf("field node_type of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4303,14 +4303,14 @@ func (x *fastReflection_MsgUpdateResourceNode) NewField(fd protoreflect.FieldDes case "stratos.register.v1.MsgUpdateResourceNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateResourceNode.network_address": return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateResourceNode.owner_address": return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateResourceNode.node_type": return protoreflect.ValueOfUint32(uint32(0)) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4384,10 +4384,6 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } l = len(x.NetworkAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -4399,6 +4395,10 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if x.NodeType != 0 { n += 1 + runtime.Sov(uint64(x.NodeType)) } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -4428,30 +4428,30 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } if x.NodeType != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.NodeType)) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x20 } if len(x.OwnerAddress) > 0 { i -= len(x.OwnerAddress) copy(dAtA[i:], x.OwnerAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(x.NetworkAddress) > 0 { i -= len(x.NetworkAddress) copy(dAtA[i:], x.NetworkAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) i-- - dAtA[i] = 0x1a - } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- dAtA[i] = 0x12 } if x.Description != nil { @@ -4555,7 +4555,7 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4583,11 +4583,11 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4615,13 +4615,13 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var stringLen uint64 + x.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4631,29 +4631,16 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.OwnerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - x.NodeType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4663,11 +4650,24 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - x.NodeType |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5062,18 +5062,18 @@ func (x *fastReflection_MsgUpdateResourceNodeResponse) ProtoMethods() *protoifac var ( md_MsgUpdateMetaNode protoreflect.MessageDescriptor fd_MsgUpdateMetaNode_description protoreflect.FieldDescriptor - fd_MsgUpdateMetaNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgUpdateMetaNode_network_address protoreflect.FieldDescriptor fd_MsgUpdateMetaNode_owner_address protoreflect.FieldDescriptor + fd_MsgUpdateMetaNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { file_stratos_register_v1_tx_proto_init() md_MsgUpdateMetaNode = File_stratos_register_v1_tx_proto.Messages().ByName("MsgUpdateMetaNode") fd_MsgUpdateMetaNode_description = md_MsgUpdateMetaNode.Fields().ByName("description") - fd_MsgUpdateMetaNode_beneficiary_address = md_MsgUpdateMetaNode.Fields().ByName("beneficiary_address") fd_MsgUpdateMetaNode_network_address = md_MsgUpdateMetaNode.Fields().ByName("network_address") fd_MsgUpdateMetaNode_owner_address = md_MsgUpdateMetaNode.Fields().ByName("owner_address") + fd_MsgUpdateMetaNode_beneficiary_address = md_MsgUpdateMetaNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgUpdateMetaNode)(nil) @@ -5147,12 +5147,6 @@ func (x *fastReflection_MsgUpdateMetaNode) Range(f func(protoreflect.FieldDescri return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgUpdateMetaNode_beneficiary_address, value) { - return - } - } if x.NetworkAddress != "" { value := protoreflect.ValueOfString(x.NetworkAddress) if !f(fd_MsgUpdateMetaNode_network_address, value) { @@ -5165,6 +5159,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Range(f func(protoreflect.FieldDescri return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgUpdateMetaNode_beneficiary_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -5182,12 +5182,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Has(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "stratos.register.v1.MsgUpdateMetaNode.description": return x.Description != nil - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - return x.BeneficiaryAddress != "" case "stratos.register.v1.MsgUpdateMetaNode.network_address": return x.NetworkAddress != "" case "stratos.register.v1.MsgUpdateMetaNode.owner_address": return x.OwnerAddress != "" + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5206,12 +5206,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Clear(fd protoreflect.FieldDescriptor switch fd.FullName() { case "stratos.register.v1.MsgUpdateMetaNode.description": x.Description = nil - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - x.BeneficiaryAddress = "" case "stratos.register.v1.MsgUpdateMetaNode.network_address": x.NetworkAddress = "" case "stratos.register.v1.MsgUpdateMetaNode.owner_address": x.OwnerAddress = "" + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5231,15 +5231,15 @@ func (x *fastReflection_MsgUpdateMetaNode) Get(descriptor protoreflect.FieldDesc case "stratos.register.v1.MsgUpdateMetaNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgUpdateMetaNode.network_address": value := x.NetworkAddress return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgUpdateMetaNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5262,12 +5262,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Set(fd protoreflect.FieldDescriptor, switch fd.FullName() { case "stratos.register.v1.MsgUpdateMetaNode.description": x.Description = value.Message().Interface().(*Description) - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateMetaNode.network_address": x.NetworkAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateMetaNode.owner_address": x.OwnerAddress = value.Interface().(string) + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5293,12 +5293,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Mutable(fd protoreflect.FieldDescript x.Description = new(Description) } return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgUpdateMetaNode is not mutable")) case "stratos.register.v1.MsgUpdateMetaNode.network_address": panic(fmt.Errorf("field network_address of message stratos.register.v1.MsgUpdateMetaNode is not mutable")) case "stratos.register.v1.MsgUpdateMetaNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1.MsgUpdateMetaNode is not mutable")) + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgUpdateMetaNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5315,12 +5315,12 @@ func (x *fastReflection_MsgUpdateMetaNode) NewField(fd protoreflect.FieldDescrip case "stratos.register.v1.MsgUpdateMetaNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateMetaNode.network_address": return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateMetaNode.owner_address": return protoreflect.ValueOfString("") + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5394,15 +5394,15 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) + l = len(x.NetworkAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NetworkAddress) + l = len(x.OwnerAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.OwnerAddress) + l = len(x.BeneficiaryAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -5435,25 +5435,25 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x22 + } if len(x.OwnerAddress) > 0 { i -= len(x.OwnerAddress) copy(dAtA[i:], x.OwnerAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(x.NetworkAddress) > 0 { i -= len(x.NetworkAddress) copy(dAtA[i:], x.NetworkAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) i-- - dAtA[i] = 0x1a - } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- dAtA[i] = 0x12 } if x.Description != nil { @@ -5557,7 +5557,7 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5585,11 +5585,11 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5617,11 +5617,11 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5649,7 +5649,7 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.OwnerAddress = string(dAtA[iNdEx:postIndex]) + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11826,9 +11826,9 @@ type MsgCreateResourceNode struct { Pubkey *anypb.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Value *v1beta1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` - Description *Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` - NodeType uint32 `protobuf:"varint,7,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` + Description *Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + NodeType uint32 `protobuf:"varint,6,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,7,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` } func (x *MsgCreateResourceNode) Reset() { @@ -11879,13 +11879,6 @@ func (x *MsgCreateResourceNode) GetOwnerAddress() string { return "" } -func (x *MsgCreateResourceNode) GetBeneficiaryAddress() string { - if x != nil { - return x.BeneficiaryAddress - } - return "" -} - func (x *MsgCreateResourceNode) GetDescription() *Description { if x != nil { return x.Description @@ -11900,6 +11893,13 @@ func (x *MsgCreateResourceNode) GetNodeType() uint32 { return 0 } +func (x *MsgCreateResourceNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + // MsgCreateResourceNodeResponse defines the CreateResourceNodeTx response type type MsgCreateResourceNodeResponse struct { state protoimpl.MessageState @@ -11937,8 +11937,8 @@ type MsgCreateMetaNode struct { Pubkey *anypb.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Value *v1beta1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` - Description *Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + Description *Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,6,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` } func (x *MsgCreateMetaNode) Reset() { @@ -11989,18 +11989,18 @@ func (x *MsgCreateMetaNode) GetOwnerAddress() string { return "" } -func (x *MsgCreateMetaNode) GetBeneficiaryAddress() string { +func (x *MsgCreateMetaNode) GetDescription() *Description { if x != nil { - return x.BeneficiaryAddress + return x.Description } - return "" + return nil } -func (x *MsgCreateMetaNode) GetDescription() *Description { +func (x *MsgCreateMetaNode) GetBeneficiaryAddress() string { if x != nil { - return x.Description + return x.BeneficiaryAddress } - return nil + return "" } // MsgCreateMetaNodeResponse defines the CreateMetaNode response type @@ -12179,10 +12179,10 @@ type MsgUpdateResourceNode struct { unknownFields protoimpl.UnknownFields Description *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` - NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` - OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - NodeType uint32 `protobuf:"varint,5,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` + NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + NodeType uint32 `protobuf:"varint,4,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` } func (x *MsgUpdateResourceNode) Reset() { @@ -12212,13 +12212,6 @@ func (x *MsgUpdateResourceNode) GetDescription() *Description { return nil } -func (x *MsgUpdateResourceNode) GetBeneficiaryAddress() string { - if x != nil { - return x.BeneficiaryAddress - } - return "" -} - func (x *MsgUpdateResourceNode) GetNetworkAddress() string { if x != nil { return x.NetworkAddress @@ -12240,6 +12233,13 @@ func (x *MsgUpdateResourceNode) GetNodeType() uint32 { return 0 } +func (x *MsgUpdateResourceNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + // MsgUpdateResourceNodeResponse defines the Msg/UpdateResourceNode response type. type MsgUpdateResourceNodeResponse struct { state protoimpl.MessageState @@ -12274,9 +12274,9 @@ type MsgUpdateMetaNode struct { unknownFields protoimpl.UnknownFields Description *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` - NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` - OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,4,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` } func (x *MsgUpdateMetaNode) Reset() { @@ -12306,23 +12306,23 @@ func (x *MsgUpdateMetaNode) GetDescription() *Description { return nil } -func (x *MsgUpdateMetaNode) GetBeneficiaryAddress() string { +func (x *MsgUpdateMetaNode) GetNetworkAddress() string { if x != nil { - return x.BeneficiaryAddress + return x.NetworkAddress } return "" } -func (x *MsgUpdateMetaNode) GetNetworkAddress() string { +func (x *MsgUpdateMetaNode) GetOwnerAddress() string { if x != nil { - return x.NetworkAddress + return x.OwnerAddress } return "" } -func (x *MsgUpdateMetaNode) GetOwnerAddress() string { +func (x *MsgUpdateMetaNode) GetBeneficiaryAddress() string { if x != nil { - return x.OwnerAddress + return x.BeneficiaryAddress } return "" } @@ -12898,26 +12898,26 @@ var file_stratos_register_v1_tx_proto_rawDesc = []byte{ 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, - 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, - 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, - 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, - 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, - 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, - 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, + 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x22, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x34, 0x82, + 0x70, 0x65, 0x22, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x7e, 0x0a, + 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, + 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, + 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, + 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, @@ -12949,22 +12949,22 @@ var file_stratos_register_v1_tx_proto_rawDesc = []byte{ 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, - 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, - 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, - 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, - 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, - 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, - 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x30, + 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7e, + 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, + 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, + 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, + 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, @@ -13021,32 +13021,32 @@ var file_stratos_register_v1_tx_proto_rawDesc = []byte{ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, - 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, - 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, - 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x08, - 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, + 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, + 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, + 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, + 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, + 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, + 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0x1f, @@ -13060,28 +13060,28 @@ var file_stratos_register_v1_tx_proto_rawDesc = []byte{ 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, - 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, - 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, - 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, - 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, - 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, + 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, + 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, diff --git a/api/stratos/register/v1_1/register.pulsar.go b/api/stratos/register/v1_1/register.pulsar.go new file mode 100644 index 00000000..153695c5 --- /dev/null +++ b/api/stratos/register/v1_1/register.pulsar.go @@ -0,0 +1,889 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package v1_1 + +import ( + _ "cosmossdk.io/api/amino" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + _ "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Description protoreflect.MessageDescriptor + fd_Description_moniker protoreflect.FieldDescriptor + fd_Description_identity protoreflect.FieldDescriptor + fd_Description_website protoreflect.FieldDescriptor + fd_Description_security_contact protoreflect.FieldDescriptor + fd_Description_details protoreflect.FieldDescriptor +) + +func init() { + file_stratos_register_v1_1_register_proto_init() + md_Description = File_stratos_register_v1_1_register_proto.Messages().ByName("Description") + fd_Description_moniker = md_Description.Fields().ByName("moniker") + fd_Description_identity = md_Description.Fields().ByName("identity") + fd_Description_website = md_Description.Fields().ByName("website") + fd_Description_security_contact = md_Description.Fields().ByName("security_contact") + fd_Description_details = md_Description.Fields().ByName("details") +} + +var _ protoreflect.Message = (*fastReflection_Description)(nil) + +type fastReflection_Description Description + +func (x *Description) ProtoReflect() protoreflect.Message { + return (*fastReflection_Description)(x) +} + +func (x *Description) slowProtoReflect() protoreflect.Message { + mi := &file_stratos_register_v1_1_register_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Description_messageType fastReflection_Description_messageType +var _ protoreflect.MessageType = fastReflection_Description_messageType{} + +type fastReflection_Description_messageType struct{} + +func (x fastReflection_Description_messageType) Zero() protoreflect.Message { + return (*fastReflection_Description)(nil) +} +func (x fastReflection_Description_messageType) New() protoreflect.Message { + return new(fastReflection_Description) +} +func (x fastReflection_Description_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Description +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Description) Descriptor() protoreflect.MessageDescriptor { + return md_Description +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Description) Type() protoreflect.MessageType { + return _fastReflection_Description_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Description) New() protoreflect.Message { + return new(fastReflection_Description) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Description) Interface() protoreflect.ProtoMessage { + return (*Description)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Description) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Moniker != "" { + value := protoreflect.ValueOfString(x.Moniker) + if !f(fd_Description_moniker, value) { + return + } + } + if x.Identity != "" { + value := protoreflect.ValueOfString(x.Identity) + if !f(fd_Description_identity, value) { + return + } + } + if x.Website != "" { + value := protoreflect.ValueOfString(x.Website) + if !f(fd_Description_website, value) { + return + } + } + if x.SecurityContact != "" { + value := protoreflect.ValueOfString(x.SecurityContact) + if !f(fd_Description_security_contact, value) { + return + } + } + if x.Details != "" { + value := protoreflect.ValueOfString(x.Details) + if !f(fd_Description_details, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Description) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "stratos.register.v1_1.Description.moniker": + return x.Moniker != "" + case "stratos.register.v1_1.Description.identity": + return x.Identity != "" + case "stratos.register.v1_1.Description.website": + return x.Website != "" + case "stratos.register.v1_1.Description.security_contact": + return x.SecurityContact != "" + case "stratos.register.v1_1.Description.details": + return x.Details != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.Description")) + } + panic(fmt.Errorf("message stratos.register.v1_1.Description does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Description) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "stratos.register.v1_1.Description.moniker": + x.Moniker = "" + case "stratos.register.v1_1.Description.identity": + x.Identity = "" + case "stratos.register.v1_1.Description.website": + x.Website = "" + case "stratos.register.v1_1.Description.security_contact": + x.SecurityContact = "" + case "stratos.register.v1_1.Description.details": + x.Details = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.Description")) + } + panic(fmt.Errorf("message stratos.register.v1_1.Description does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Description) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "stratos.register.v1_1.Description.moniker": + value := x.Moniker + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.Description.identity": + value := x.Identity + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.Description.website": + value := x.Website + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.Description.security_contact": + value := x.SecurityContact + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.Description.details": + value := x.Details + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.Description")) + } + panic(fmt.Errorf("message stratos.register.v1_1.Description does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Description) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "stratos.register.v1_1.Description.moniker": + x.Moniker = value.Interface().(string) + case "stratos.register.v1_1.Description.identity": + x.Identity = value.Interface().(string) + case "stratos.register.v1_1.Description.website": + x.Website = value.Interface().(string) + case "stratos.register.v1_1.Description.security_contact": + x.SecurityContact = value.Interface().(string) + case "stratos.register.v1_1.Description.details": + x.Details = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.Description")) + } + panic(fmt.Errorf("message stratos.register.v1_1.Description does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Description) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.Description.moniker": + panic(fmt.Errorf("field moniker of message stratos.register.v1_1.Description is not mutable")) + case "stratos.register.v1_1.Description.identity": + panic(fmt.Errorf("field identity of message stratos.register.v1_1.Description is not mutable")) + case "stratos.register.v1_1.Description.website": + panic(fmt.Errorf("field website of message stratos.register.v1_1.Description is not mutable")) + case "stratos.register.v1_1.Description.security_contact": + panic(fmt.Errorf("field security_contact of message stratos.register.v1_1.Description is not mutable")) + case "stratos.register.v1_1.Description.details": + panic(fmt.Errorf("field details of message stratos.register.v1_1.Description is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.Description")) + } + panic(fmt.Errorf("message stratos.register.v1_1.Description does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Description) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.Description.moniker": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.Description.identity": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.Description.website": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.Description.security_contact": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.Description.details": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.Description")) + } + panic(fmt.Errorf("message stratos.register.v1_1.Description does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Description) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in stratos.register.v1_1.Description", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Description) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Description) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Description) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Description) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Description) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Moniker) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Identity) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Website) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.SecurityContact) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Details) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Description) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Details) > 0 { + i -= len(x.Details) + copy(dAtA[i:], x.Details) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Details))) + i-- + dAtA[i] = 0x2a + } + if len(x.SecurityContact) > 0 { + i -= len(x.SecurityContact) + copy(dAtA[i:], x.SecurityContact) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.SecurityContact))) + i-- + dAtA[i] = 0x22 + } + if len(x.Website) > 0 { + i -= len(x.Website) + copy(dAtA[i:], x.Website) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Website))) + i-- + dAtA[i] = 0x1a + } + if len(x.Identity) > 0 { + i -= len(x.Identity) + copy(dAtA[i:], x.Identity) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Identity))) + i-- + dAtA[i] = 0x12 + } + if len(x.Moniker) > 0 { + i -= len(x.Moniker) + copy(dAtA[i:], x.Moniker) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Moniker))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Description) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Description: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Description: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Moniker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Moniker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Identity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Website", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Website = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SecurityContact", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.SecurityContact = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Details = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: stratos/register/v1_1/register.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Description struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"` + SecurityContact string `protobuf:"bytes,4,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"` + Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` +} + +func (x *Description) Reset() { + *x = Description{} + if protoimpl.UnsafeEnabled { + mi := &file_stratos_register_v1_1_register_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Description) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Description) ProtoMessage() {} + +// Deprecated: Use Description.ProtoReflect.Descriptor instead. +func (*Description) Descriptor() ([]byte, []int) { + return file_stratos_register_v1_1_register_proto_rawDescGZIP(), []int{0} +} + +func (x *Description) GetMoniker() string { + if x != nil { + return x.Moniker + } + return "" +} + +func (x *Description) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + +func (x *Description) GetWebsite() string { + if x != nil { + return x.Website + } + return "" +} + +func (x *Description) GetSecurityContact() string { + if x != nil { + return x.SecurityContact + } + return "" +} + +func (x *Description) GetDetails() string { + if x != nil { + return x.Details + } + return "" +} + +var File_stratos_register_v1_1_register_proto protoreflect.FileDescriptor + +var file_stratos_register_v1_1_register_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x2f, 0x76, 0x31, 0x5f, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x1a, 0x14, 0x67, + 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, + 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x02, 0x0a, + 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x07, + 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xea, + 0xde, 0x1f, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0xf2, 0xde, 0x1f, 0x0e, 0x79, 0x61, + 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x22, 0x52, 0x07, 0x6d, 0x6f, + 0x6e, 0x69, 0x6b, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xea, 0xde, 0x1f, 0x08, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0xf2, 0xde, 0x1f, 0x19, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, + 0x74, 0x79, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x41, 0x0a, 0x07, + 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xea, + 0xde, 0x1f, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0xf2, 0xde, 0x1f, 0x18, 0x79, 0x61, + 0x6d, 0x6c, 0x3a, 0x22, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x22, 0x2c, 0x6f, 0x6d, 0x69, + 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x07, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x12, + 0x64, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x39, 0xea, 0xde, 0x1f, 0x10, 0x73, + 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0xf2, + 0xde, 0x1f, 0x21, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, + 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x22, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x41, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xea, 0xde, 0x1f, 0x07, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0xf2, 0xde, 0x1f, 0x18, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x22, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x52, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x3a, 0x04, 0x98, 0xa0, 0x1f, 0x01, 0x42, 0xc8, + 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x42, 0x0d, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x2f, 0x76, 0x31, 0x5f, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x52, 0x56, 0xaa, 0x02, 0x14, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x56, + 0x31, 0x31, 0xca, 0x02, 0x14, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x31, 0xe2, 0x02, 0x20, 0x53, 0x74, 0x72, 0x61, + 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x53, + 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x3a, 0x3a, 0x56, 0x31, 0x31, 0xa8, 0xe2, 0x1e, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_stratos_register_v1_1_register_proto_rawDescOnce sync.Once + file_stratos_register_v1_1_register_proto_rawDescData = file_stratos_register_v1_1_register_proto_rawDesc +) + +func file_stratos_register_v1_1_register_proto_rawDescGZIP() []byte { + file_stratos_register_v1_1_register_proto_rawDescOnce.Do(func() { + file_stratos_register_v1_1_register_proto_rawDescData = protoimpl.X.CompressGZIP(file_stratos_register_v1_1_register_proto_rawDescData) + }) + return file_stratos_register_v1_1_register_proto_rawDescData +} + +var file_stratos_register_v1_1_register_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_stratos_register_v1_1_register_proto_goTypes = []interface{}{ + (*Description)(nil), // 0: stratos.register.v1_1.Description +} +var file_stratos_register_v1_1_register_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_stratos_register_v1_1_register_proto_init() } +func file_stratos_register_v1_1_register_proto_init() { + if File_stratos_register_v1_1_register_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_stratos_register_v1_1_register_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Description); 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_stratos_register_v1_1_register_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_stratos_register_v1_1_register_proto_goTypes, + DependencyIndexes: file_stratos_register_v1_1_register_proto_depIdxs, + MessageInfos: file_stratos_register_v1_1_register_proto_msgTypes, + }.Build() + File_stratos_register_v1_1_register_proto = out.File + file_stratos_register_v1_1_register_proto_rawDesc = nil + file_stratos_register_v1_1_register_proto_goTypes = nil + file_stratos_register_v1_1_register_proto_depIdxs = nil +} diff --git a/api/stratos/register/v1_1/tx.pulsar.go b/api/stratos/register/v1_1/tx.pulsar.go new file mode 100644 index 00000000..233a66ca --- /dev/null +++ b/api/stratos/register/v1_1/tx.pulsar.go @@ -0,0 +1,3553 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package v1_1 + +import ( + _ "cosmossdk.io/api/amino" + v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MsgCreateResourceNode protoreflect.MessageDescriptor + fd_MsgCreateResourceNode_network_address protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_pubkey protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_value protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_owner_address protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_beneficiary_address protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_description protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_node_type protoreflect.FieldDescriptor +) + +func init() { + file_stratos_register_v1_1_tx_proto_init() + md_MsgCreateResourceNode = File_stratos_register_v1_1_tx_proto.Messages().ByName("MsgCreateResourceNode") + fd_MsgCreateResourceNode_network_address = md_MsgCreateResourceNode.Fields().ByName("network_address") + fd_MsgCreateResourceNode_pubkey = md_MsgCreateResourceNode.Fields().ByName("pubkey") + fd_MsgCreateResourceNode_value = md_MsgCreateResourceNode.Fields().ByName("value") + fd_MsgCreateResourceNode_owner_address = md_MsgCreateResourceNode.Fields().ByName("owner_address") + fd_MsgCreateResourceNode_beneficiary_address = md_MsgCreateResourceNode.Fields().ByName("beneficiary_address") + fd_MsgCreateResourceNode_description = md_MsgCreateResourceNode.Fields().ByName("description") + fd_MsgCreateResourceNode_node_type = md_MsgCreateResourceNode.Fields().ByName("node_type") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateResourceNode)(nil) + +type fastReflection_MsgCreateResourceNode MsgCreateResourceNode + +func (x *MsgCreateResourceNode) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateResourceNode)(x) +} + +func (x *MsgCreateResourceNode) slowProtoReflect() protoreflect.Message { + mi := &file_stratos_register_v1_1_tx_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCreateResourceNode_messageType fastReflection_MsgCreateResourceNode_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateResourceNode_messageType{} + +type fastReflection_MsgCreateResourceNode_messageType struct{} + +func (x fastReflection_MsgCreateResourceNode_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateResourceNode)(nil) +} +func (x fastReflection_MsgCreateResourceNode_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateResourceNode) +} +func (x fastReflection_MsgCreateResourceNode_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateResourceNode +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateResourceNode) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateResourceNode +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgCreateResourceNode) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateResourceNode_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateResourceNode) New() protoreflect.Message { + return new(fastReflection_MsgCreateResourceNode) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateResourceNode) Interface() protoreflect.ProtoMessage { + return (*MsgCreateResourceNode)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgCreateResourceNode) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NetworkAddress != "" { + value := protoreflect.ValueOfString(x.NetworkAddress) + if !f(fd_MsgCreateResourceNode_network_address, value) { + return + } + } + if x.Pubkey != nil { + value := protoreflect.ValueOfMessage(x.Pubkey.ProtoReflect()) + if !f(fd_MsgCreateResourceNode_pubkey, value) { + return + } + } + if x.Value != nil { + value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + if !f(fd_MsgCreateResourceNode_value, value) { + return + } + } + if x.OwnerAddress != "" { + value := protoreflect.ValueOfString(x.OwnerAddress) + if !f(fd_MsgCreateResourceNode_owner_address, value) { + return + } + } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgCreateResourceNode_beneficiary_address, value) { + return + } + } + if x.Description != nil { + value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + if !f(fd_MsgCreateResourceNode_description, value) { + return + } + } + if x.NodeType != uint32(0) { + value := protoreflect.ValueOfUint32(x.NodeType) + if !f(fd_MsgCreateResourceNode_node_type, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgCreateResourceNode) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateResourceNode.network_address": + return x.NetworkAddress != "" + case "stratos.register.v1_1.MsgCreateResourceNode.pubkey": + return x.Pubkey != nil + case "stratos.register.v1_1.MsgCreateResourceNode.value": + return x.Value != nil + case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": + return x.OwnerAddress != "" + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + return x.BeneficiaryAddress != "" + case "stratos.register.v1_1.MsgCreateResourceNode.description": + return x.Description != nil + case "stratos.register.v1_1.MsgCreateResourceNode.node_type": + return x.NodeType != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateResourceNode does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateResourceNode) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateResourceNode.network_address": + x.NetworkAddress = "" + case "stratos.register.v1_1.MsgCreateResourceNode.pubkey": + x.Pubkey = nil + case "stratos.register.v1_1.MsgCreateResourceNode.value": + x.Value = nil + case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": + x.OwnerAddress = "" + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + x.BeneficiaryAddress = "" + case "stratos.register.v1_1.MsgCreateResourceNode.description": + x.Description = nil + case "stratos.register.v1_1.MsgCreateResourceNode.node_type": + x.NodeType = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateResourceNode does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgCreateResourceNode) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "stratos.register.v1_1.MsgCreateResourceNode.network_address": + value := x.NetworkAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgCreateResourceNode.pubkey": + value := x.Pubkey + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.value": + value := x.Value + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": + value := x.OwnerAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgCreateResourceNode.description": + value := x.Description + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.node_type": + value := x.NodeType + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateResourceNode does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateResourceNode) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateResourceNode.network_address": + x.NetworkAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgCreateResourceNode.pubkey": + x.Pubkey = value.Message().Interface().(*anypb.Any) + case "stratos.register.v1_1.MsgCreateResourceNode.value": + x.Value = value.Message().Interface().(*v1beta1.Coin) + case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": + x.OwnerAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgCreateResourceNode.description": + x.Description = value.Message().Interface().(*Description) + case "stratos.register.v1_1.MsgCreateResourceNode.node_type": + x.NodeType = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateResourceNode does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateResourceNode) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateResourceNode.pubkey": + if x.Pubkey == nil { + x.Pubkey = new(anypb.Any) + } + return protoreflect.ValueOfMessage(x.Pubkey.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.value": + if x.Value == nil { + x.Value = new(v1beta1.Coin) + } + return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.description": + if x.Description == nil { + x.Description = new(Description) + } + return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.network_address": + panic(fmt.Errorf("field network_address of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) + case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": + panic(fmt.Errorf("field owner_address of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) + case "stratos.register.v1_1.MsgCreateResourceNode.node_type": + panic(fmt.Errorf("field node_type of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateResourceNode does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCreateResourceNode) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateResourceNode.network_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgCreateResourceNode.pubkey": + m := new(anypb.Any) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.value": + m := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgCreateResourceNode.description": + m := new(Description) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateResourceNode.node_type": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateResourceNode does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgCreateResourceNode) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in stratos.register.v1_1.MsgCreateResourceNode", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgCreateResourceNode) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateResourceNode) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgCreateResourceNode) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateResourceNode) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.NetworkAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pubkey != nil { + l = options.Size(x.Pubkey) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Value != nil { + l = options.Size(x.Value) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OwnerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Description != nil { + l = options.Size(x.Description) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NodeType != 0 { + n += 1 + runtime.Sov(uint64(x.NodeType)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateResourceNode) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.NodeType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NodeType)) + i-- + dAtA[i] = 0x38 + } + if x.Description != nil { + encoded, err := options.Marshal(x.Description) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } + if len(x.OwnerAddress) > 0 { + i -= len(x.OwnerAddress) + copy(dAtA[i:], x.OwnerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) + i-- + dAtA[i] = 0x22 + } + if x.Value != nil { + encoded, err := options.Marshal(x.Value) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.Pubkey != nil { + encoded, err := options.Marshal(x.Pubkey) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.NetworkAddress) > 0 { + i -= len(x.NetworkAddress) + copy(dAtA[i:], x.NetworkAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateResourceNode) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateResourceNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateResourceNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pubkey == nil { + x.Pubkey = &anypb.Any{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pubkey); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Value == nil { + x.Value = &v1beta1.Coin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + } + x.NodeType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.NodeType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgCreateMetaNode protoreflect.MessageDescriptor + fd_MsgCreateMetaNode_network_address protoreflect.FieldDescriptor + fd_MsgCreateMetaNode_pubkey protoreflect.FieldDescriptor + fd_MsgCreateMetaNode_value protoreflect.FieldDescriptor + fd_MsgCreateMetaNode_owner_address protoreflect.FieldDescriptor + fd_MsgCreateMetaNode_beneficiary_address protoreflect.FieldDescriptor + fd_MsgCreateMetaNode_description protoreflect.FieldDescriptor +) + +func init() { + file_stratos_register_v1_1_tx_proto_init() + md_MsgCreateMetaNode = File_stratos_register_v1_1_tx_proto.Messages().ByName("MsgCreateMetaNode") + fd_MsgCreateMetaNode_network_address = md_MsgCreateMetaNode.Fields().ByName("network_address") + fd_MsgCreateMetaNode_pubkey = md_MsgCreateMetaNode.Fields().ByName("pubkey") + fd_MsgCreateMetaNode_value = md_MsgCreateMetaNode.Fields().ByName("value") + fd_MsgCreateMetaNode_owner_address = md_MsgCreateMetaNode.Fields().ByName("owner_address") + fd_MsgCreateMetaNode_beneficiary_address = md_MsgCreateMetaNode.Fields().ByName("beneficiary_address") + fd_MsgCreateMetaNode_description = md_MsgCreateMetaNode.Fields().ByName("description") +} + +var _ protoreflect.Message = (*fastReflection_MsgCreateMetaNode)(nil) + +type fastReflection_MsgCreateMetaNode MsgCreateMetaNode + +func (x *MsgCreateMetaNode) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateMetaNode)(x) +} + +func (x *MsgCreateMetaNode) slowProtoReflect() protoreflect.Message { + mi := &file_stratos_register_v1_1_tx_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgCreateMetaNode_messageType fastReflection_MsgCreateMetaNode_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateMetaNode_messageType{} + +type fastReflection_MsgCreateMetaNode_messageType struct{} + +func (x fastReflection_MsgCreateMetaNode_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateMetaNode)(nil) +} +func (x fastReflection_MsgCreateMetaNode_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateMetaNode) +} +func (x fastReflection_MsgCreateMetaNode_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateMetaNode +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgCreateMetaNode) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateMetaNode +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgCreateMetaNode) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateMetaNode_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgCreateMetaNode) New() protoreflect.Message { + return new(fastReflection_MsgCreateMetaNode) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgCreateMetaNode) Interface() protoreflect.ProtoMessage { + return (*MsgCreateMetaNode)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgCreateMetaNode) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NetworkAddress != "" { + value := protoreflect.ValueOfString(x.NetworkAddress) + if !f(fd_MsgCreateMetaNode_network_address, value) { + return + } + } + if x.Pubkey != nil { + value := protoreflect.ValueOfMessage(x.Pubkey.ProtoReflect()) + if !f(fd_MsgCreateMetaNode_pubkey, value) { + return + } + } + if x.Value != nil { + value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + if !f(fd_MsgCreateMetaNode_value, value) { + return + } + } + if x.OwnerAddress != "" { + value := protoreflect.ValueOfString(x.OwnerAddress) + if !f(fd_MsgCreateMetaNode_owner_address, value) { + return + } + } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgCreateMetaNode_beneficiary_address, value) { + return + } + } + if x.Description != nil { + value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + if !f(fd_MsgCreateMetaNode_description, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgCreateMetaNode) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateMetaNode.network_address": + return x.NetworkAddress != "" + case "stratos.register.v1_1.MsgCreateMetaNode.pubkey": + return x.Pubkey != nil + case "stratos.register.v1_1.MsgCreateMetaNode.value": + return x.Value != nil + case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": + return x.OwnerAddress != "" + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + return x.BeneficiaryAddress != "" + case "stratos.register.v1_1.MsgCreateMetaNode.description": + return x.Description != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateMetaNode does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMetaNode) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateMetaNode.network_address": + x.NetworkAddress = "" + case "stratos.register.v1_1.MsgCreateMetaNode.pubkey": + x.Pubkey = nil + case "stratos.register.v1_1.MsgCreateMetaNode.value": + x.Value = nil + case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": + x.OwnerAddress = "" + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + x.BeneficiaryAddress = "" + case "stratos.register.v1_1.MsgCreateMetaNode.description": + x.Description = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateMetaNode does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgCreateMetaNode) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "stratos.register.v1_1.MsgCreateMetaNode.network_address": + value := x.NetworkAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgCreateMetaNode.pubkey": + value := x.Pubkey + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.value": + value := x.Value + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": + value := x.OwnerAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgCreateMetaNode.description": + value := x.Description + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateMetaNode does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMetaNode) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateMetaNode.network_address": + x.NetworkAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgCreateMetaNode.pubkey": + x.Pubkey = value.Message().Interface().(*anypb.Any) + case "stratos.register.v1_1.MsgCreateMetaNode.value": + x.Value = value.Message().Interface().(*v1beta1.Coin) + case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": + x.OwnerAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgCreateMetaNode.description": + x.Description = value.Message().Interface().(*Description) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateMetaNode does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMetaNode) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateMetaNode.pubkey": + if x.Pubkey == nil { + x.Pubkey = new(anypb.Any) + } + return protoreflect.ValueOfMessage(x.Pubkey.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.value": + if x.Value == nil { + x.Value = new(v1beta1.Coin) + } + return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.description": + if x.Description == nil { + x.Description = new(Description) + } + return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.network_address": + panic(fmt.Errorf("field network_address of message stratos.register.v1_1.MsgCreateMetaNode is not mutable")) + case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": + panic(fmt.Errorf("field owner_address of message stratos.register.v1_1.MsgCreateMetaNode is not mutable")) + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgCreateMetaNode is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateMetaNode does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgCreateMetaNode) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.MsgCreateMetaNode.network_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgCreateMetaNode.pubkey": + m := new(anypb.Any) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.value": + m := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgCreateMetaNode.description": + m := new(Description) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgCreateMetaNode does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgCreateMetaNode) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in stratos.register.v1_1.MsgCreateMetaNode", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgCreateMetaNode) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgCreateMetaNode) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgCreateMetaNode) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgCreateMetaNode) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.NetworkAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pubkey != nil { + l = options.Size(x.Pubkey) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Value != nil { + l = options.Size(x.Value) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OwnerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Description != nil { + l = options.Size(x.Description) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateMetaNode) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Description != nil { + encoded, err := options.Marshal(x.Description) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } + if len(x.OwnerAddress) > 0 { + i -= len(x.OwnerAddress) + copy(dAtA[i:], x.OwnerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) + i-- + dAtA[i] = 0x22 + } + if x.Value != nil { + encoded, err := options.Marshal(x.Value) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.Pubkey != nil { + encoded, err := options.Marshal(x.Pubkey) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.NetworkAddress) > 0 { + i -= len(x.NetworkAddress) + copy(dAtA[i:], x.NetworkAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgCreateMetaNode) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMetaNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMetaNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pubkey == nil { + x.Pubkey = &anypb.Any{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pubkey); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Value == nil { + x.Value = &v1beta1.Coin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgUpdateResourceNode protoreflect.MessageDescriptor + fd_MsgUpdateResourceNode_description protoreflect.FieldDescriptor + fd_MsgUpdateResourceNode_beneficiary_address protoreflect.FieldDescriptor + fd_MsgUpdateResourceNode_network_address protoreflect.FieldDescriptor + fd_MsgUpdateResourceNode_owner_address protoreflect.FieldDescriptor + fd_MsgUpdateResourceNode_node_type protoreflect.FieldDescriptor +) + +func init() { + file_stratos_register_v1_1_tx_proto_init() + md_MsgUpdateResourceNode = File_stratos_register_v1_1_tx_proto.Messages().ByName("MsgUpdateResourceNode") + fd_MsgUpdateResourceNode_description = md_MsgUpdateResourceNode.Fields().ByName("description") + fd_MsgUpdateResourceNode_beneficiary_address = md_MsgUpdateResourceNode.Fields().ByName("beneficiary_address") + fd_MsgUpdateResourceNode_network_address = md_MsgUpdateResourceNode.Fields().ByName("network_address") + fd_MsgUpdateResourceNode_owner_address = md_MsgUpdateResourceNode.Fields().ByName("owner_address") + fd_MsgUpdateResourceNode_node_type = md_MsgUpdateResourceNode.Fields().ByName("node_type") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateResourceNode)(nil) + +type fastReflection_MsgUpdateResourceNode MsgUpdateResourceNode + +func (x *MsgUpdateResourceNode) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateResourceNode)(x) +} + +func (x *MsgUpdateResourceNode) slowProtoReflect() protoreflect.Message { + mi := &file_stratos_register_v1_1_tx_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateResourceNode_messageType fastReflection_MsgUpdateResourceNode_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateResourceNode_messageType{} + +type fastReflection_MsgUpdateResourceNode_messageType struct{} + +func (x fastReflection_MsgUpdateResourceNode_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateResourceNode)(nil) +} +func (x fastReflection_MsgUpdateResourceNode_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateResourceNode) +} +func (x fastReflection_MsgUpdateResourceNode_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateResourceNode +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateResourceNode) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateResourceNode +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpdateResourceNode) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateResourceNode_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateResourceNode) New() protoreflect.Message { + return new(fastReflection_MsgUpdateResourceNode) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateResourceNode) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateResourceNode)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpdateResourceNode) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Description != nil { + value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + if !f(fd_MsgUpdateResourceNode_description, value) { + return + } + } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgUpdateResourceNode_beneficiary_address, value) { + return + } + } + if x.NetworkAddress != "" { + value := protoreflect.ValueOfString(x.NetworkAddress) + if !f(fd_MsgUpdateResourceNode_network_address, value) { + return + } + } + if x.OwnerAddress != "" { + value := protoreflect.ValueOfString(x.OwnerAddress) + if !f(fd_MsgUpdateResourceNode_owner_address, value) { + return + } + } + if x.NodeType != uint32(0) { + value := protoreflect.ValueOfUint32(x.NodeType) + if !f(fd_MsgUpdateResourceNode_node_type, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpdateResourceNode) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateResourceNode.description": + return x.Description != nil + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + return x.BeneficiaryAddress != "" + case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": + return x.NetworkAddress != "" + case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": + return x.OwnerAddress != "" + case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": + return x.NodeType != uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateResourceNode does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateResourceNode) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateResourceNode.description": + x.Description = nil + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + x.BeneficiaryAddress = "" + case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": + x.NetworkAddress = "" + case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": + x.OwnerAddress = "" + case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": + x.NodeType = uint32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateResourceNode does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpdateResourceNode) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "stratos.register.v1_1.MsgUpdateResourceNode.description": + value := x.Description + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": + value := x.NetworkAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": + value := x.OwnerAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": + value := x.NodeType + return protoreflect.ValueOfUint32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateResourceNode does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateResourceNode) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateResourceNode.description": + x.Description = value.Message().Interface().(*Description) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": + x.NetworkAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": + x.OwnerAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": + x.NodeType = uint32(value.Uint()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateResourceNode does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateResourceNode) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateResourceNode.description": + if x.Description == nil { + x.Description = new(Description) + } + return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) + case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": + panic(fmt.Errorf("field network_address of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) + case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": + panic(fmt.Errorf("field owner_address of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) + case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": + panic(fmt.Errorf("field node_type of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateResourceNode does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpdateResourceNode) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateResourceNode.description": + m := new(Description) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": + return protoreflect.ValueOfUint32(uint32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateResourceNode does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpdateResourceNode) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in stratos.register.v1_1.MsgUpdateResourceNode", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpdateResourceNode) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateResourceNode) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpdateResourceNode) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateResourceNode) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Description != nil { + l = options.Size(x.Description) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NetworkAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OwnerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NodeType != 0 { + n += 1 + runtime.Sov(uint64(x.NodeType)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateResourceNode) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.NodeType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NodeType)) + i-- + dAtA[i] = 0x28 + } + if len(x.OwnerAddress) > 0 { + i -= len(x.OwnerAddress) + copy(dAtA[i:], x.OwnerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) + i-- + dAtA[i] = 0x22 + } + if len(x.NetworkAddress) > 0 { + i -= len(x.NetworkAddress) + copy(dAtA[i:], x.NetworkAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) + i-- + dAtA[i] = 0x1a + } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x12 + } + if x.Description != nil { + encoded, err := options.Marshal(x.Description) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateResourceNode) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateResourceNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateResourceNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + } + x.NodeType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.NodeType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgUpdateMetaNode protoreflect.MessageDescriptor + fd_MsgUpdateMetaNode_description protoreflect.FieldDescriptor + fd_MsgUpdateMetaNode_beneficiary_address protoreflect.FieldDescriptor + fd_MsgUpdateMetaNode_network_address protoreflect.FieldDescriptor + fd_MsgUpdateMetaNode_owner_address protoreflect.FieldDescriptor +) + +func init() { + file_stratos_register_v1_1_tx_proto_init() + md_MsgUpdateMetaNode = File_stratos_register_v1_1_tx_proto.Messages().ByName("MsgUpdateMetaNode") + fd_MsgUpdateMetaNode_description = md_MsgUpdateMetaNode.Fields().ByName("description") + fd_MsgUpdateMetaNode_beneficiary_address = md_MsgUpdateMetaNode.Fields().ByName("beneficiary_address") + fd_MsgUpdateMetaNode_network_address = md_MsgUpdateMetaNode.Fields().ByName("network_address") + fd_MsgUpdateMetaNode_owner_address = md_MsgUpdateMetaNode.Fields().ByName("owner_address") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateMetaNode)(nil) + +type fastReflection_MsgUpdateMetaNode MsgUpdateMetaNode + +func (x *MsgUpdateMetaNode) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateMetaNode)(x) +} + +func (x *MsgUpdateMetaNode) slowProtoReflect() protoreflect.Message { + mi := &file_stratos_register_v1_1_tx_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_MsgUpdateMetaNode_messageType fastReflection_MsgUpdateMetaNode_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateMetaNode_messageType{} + +type fastReflection_MsgUpdateMetaNode_messageType struct{} + +func (x fastReflection_MsgUpdateMetaNode_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateMetaNode)(nil) +} +func (x fastReflection_MsgUpdateMetaNode_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMetaNode) +} +func (x fastReflection_MsgUpdateMetaNode_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMetaNode +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateMetaNode) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateMetaNode +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgUpdateMetaNode) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateMetaNode_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateMetaNode) New() protoreflect.Message { + return new(fastReflection_MsgUpdateMetaNode) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateMetaNode) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateMetaNode)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgUpdateMetaNode) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Description != nil { + value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + if !f(fd_MsgUpdateMetaNode_description, value) { + return + } + } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgUpdateMetaNode_beneficiary_address, value) { + return + } + } + if x.NetworkAddress != "" { + value := protoreflect.ValueOfString(x.NetworkAddress) + if !f(fd_MsgUpdateMetaNode_network_address, value) { + return + } + } + if x.OwnerAddress != "" { + value := protoreflect.ValueOfString(x.OwnerAddress) + if !f(fd_MsgUpdateMetaNode_owner_address, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgUpdateMetaNode) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateMetaNode.description": + return x.Description != nil + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + return x.BeneficiaryAddress != "" + case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": + return x.NetworkAddress != "" + case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": + return x.OwnerAddress != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateMetaNode does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMetaNode) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateMetaNode.description": + x.Description = nil + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + x.BeneficiaryAddress = "" + case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": + x.NetworkAddress = "" + case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": + x.OwnerAddress = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateMetaNode does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgUpdateMetaNode) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "stratos.register.v1_1.MsgUpdateMetaNode.description": + value := x.Description + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": + value := x.NetworkAddress + return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": + value := x.OwnerAddress + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateMetaNode does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMetaNode) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateMetaNode.description": + x.Description = value.Message().Interface().(*Description) + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": + x.NetworkAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": + x.OwnerAddress = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateMetaNode does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMetaNode) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateMetaNode.description": + if x.Description == nil { + x.Description = new(Description) + } + return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgUpdateMetaNode is not mutable")) + case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": + panic(fmt.Errorf("field network_address of message stratos.register.v1_1.MsgUpdateMetaNode is not mutable")) + case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": + panic(fmt.Errorf("field owner_address of message stratos.register.v1_1.MsgUpdateMetaNode is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateMetaNode does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgUpdateMetaNode) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "stratos.register.v1_1.MsgUpdateMetaNode.description": + m := new(Description) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": + return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) + } + panic(fmt.Errorf("message stratos.register.v1_1.MsgUpdateMetaNode does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgUpdateMetaNode) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in stratos.register.v1_1.MsgUpdateMetaNode", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgUpdateMetaNode) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgUpdateMetaNode) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgUpdateMetaNode) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateMetaNode) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Description != nil { + l = options.Size(x.Description) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.NetworkAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.OwnerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateMetaNode) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.OwnerAddress) > 0 { + i -= len(x.OwnerAddress) + copy(dAtA[i:], x.OwnerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) + i-- + dAtA[i] = 0x22 + } + if len(x.NetworkAddress) > 0 { + i -= len(x.NetworkAddress) + copy(dAtA[i:], x.NetworkAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) + i-- + dAtA[i] = 0x1a + } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x12 + } + if x.Description != nil { + encoded, err := options.Marshal(x.Description) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgUpdateMetaNode) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, 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 protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMetaNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMetaNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: stratos/register/v1_1/tx.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// MsgCreateResourceNode encapsulates an MsgCreateResourceNodeTx transaction as an SDK message. +type MsgCreateResourceNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetworkAddress string `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + Pubkey *anypb.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + Value *v1beta1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + Description *Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + NodeType uint32 `protobuf:"varint,7,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` +} + +func (x *MsgCreateResourceNode) Reset() { + *x = MsgCreateResourceNode{} + if protoimpl.UnsafeEnabled { + mi := &file_stratos_register_v1_1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateResourceNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateResourceNode) ProtoMessage() {} + +// Deprecated: Use MsgCreateResourceNode.ProtoReflect.Descriptor instead. +func (*MsgCreateResourceNode) Descriptor() ([]byte, []int) { + return file_stratos_register_v1_1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgCreateResourceNode) GetNetworkAddress() string { + if x != nil { + return x.NetworkAddress + } + return "" +} + +func (x *MsgCreateResourceNode) GetPubkey() *anypb.Any { + if x != nil { + return x.Pubkey + } + return nil +} + +func (x *MsgCreateResourceNode) GetValue() *v1beta1.Coin { + if x != nil { + return x.Value + } + return nil +} + +func (x *MsgCreateResourceNode) GetOwnerAddress() string { + if x != nil { + return x.OwnerAddress + } + return "" +} + +func (x *MsgCreateResourceNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + +func (x *MsgCreateResourceNode) GetDescription() *Description { + if x != nil { + return x.Description + } + return nil +} + +func (x *MsgCreateResourceNode) GetNodeType() uint32 { + if x != nil { + return x.NodeType + } + return 0 +} + +// MsgCreateMetaNode encapsulates an MsgCreateMetaNodeTx transaction as an SDK message. +type MsgCreateMetaNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetworkAddress string `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + Pubkey *anypb.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + Value *v1beta1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + Description *Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *MsgCreateMetaNode) Reset() { + *x = MsgCreateMetaNode{} + if protoimpl.UnsafeEnabled { + mi := &file_stratos_register_v1_1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgCreateMetaNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgCreateMetaNode) ProtoMessage() {} + +// Deprecated: Use MsgCreateMetaNode.ProtoReflect.Descriptor instead. +func (*MsgCreateMetaNode) Descriptor() ([]byte, []int) { + return file_stratos_register_v1_1_tx_proto_rawDescGZIP(), []int{1} +} + +func (x *MsgCreateMetaNode) GetNetworkAddress() string { + if x != nil { + return x.NetworkAddress + } + return "" +} + +func (x *MsgCreateMetaNode) GetPubkey() *anypb.Any { + if x != nil { + return x.Pubkey + } + return nil +} + +func (x *MsgCreateMetaNode) GetValue() *v1beta1.Coin { + if x != nil { + return x.Value + } + return nil +} + +func (x *MsgCreateMetaNode) GetOwnerAddress() string { + if x != nil { + return x.OwnerAddress + } + return "" +} + +func (x *MsgCreateMetaNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + +func (x *MsgCreateMetaNode) GetDescription() *Description { + if x != nil { + return x.Description + } + return nil +} + +// MsgUpdateResourceNode defines a SDK message for updating an existing resource node. +type MsgUpdateResourceNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Description *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + NodeType uint32 `protobuf:"varint,5,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` +} + +func (x *MsgUpdateResourceNode) Reset() { + *x = MsgUpdateResourceNode{} + if protoimpl.UnsafeEnabled { + mi := &file_stratos_register_v1_1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateResourceNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateResourceNode) ProtoMessage() {} + +// Deprecated: Use MsgUpdateResourceNode.ProtoReflect.Descriptor instead. +func (*MsgUpdateResourceNode) Descriptor() ([]byte, []int) { + return file_stratos_register_v1_1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgUpdateResourceNode) GetDescription() *Description { + if x != nil { + return x.Description + } + return nil +} + +func (x *MsgUpdateResourceNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + +func (x *MsgUpdateResourceNode) GetNetworkAddress() string { + if x != nil { + return x.NetworkAddress + } + return "" +} + +func (x *MsgUpdateResourceNode) GetOwnerAddress() string { + if x != nil { + return x.OwnerAddress + } + return "" +} + +func (x *MsgUpdateResourceNode) GetNodeType() uint32 { + if x != nil { + return x.NodeType + } + return 0 +} + +// MsgUpdateMetaNode defines a SDK message for updating an existing meta node. +type MsgUpdateMetaNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Description *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` +} + +func (x *MsgUpdateMetaNode) Reset() { + *x = MsgUpdateMetaNode{} + if protoimpl.UnsafeEnabled { + mi := &file_stratos_register_v1_1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateMetaNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateMetaNode) ProtoMessage() {} + +// Deprecated: Use MsgUpdateMetaNode.ProtoReflect.Descriptor instead. +func (*MsgUpdateMetaNode) Descriptor() ([]byte, []int) { + return file_stratos_register_v1_1_tx_proto_rawDescGZIP(), []int{3} +} + +func (x *MsgUpdateMetaNode) GetDescription() *Description { + if x != nil { + return x.Description + } + return nil +} + +func (x *MsgUpdateMetaNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + +func (x *MsgUpdateMetaNode) GetNetworkAddress() string { + if x != nil { + return x.NetworkAddress + } + return "" +} + +func (x *MsgUpdateMetaNode) GetOwnerAddress() string { + if x != nil { + return x.OwnerAddress + } + return "" +} + +var File_stratos_register_v1_1_tx_proto protoreflect.FileDescriptor + +var file_stratos_register_v1_1_tx_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x2f, 0x76, 0x31, 0x5f, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x15, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, + 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, + 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x24, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x2f, 0x76, 0x31, 0x5f, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x06, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, + 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, + 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x61, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x33, 0xea, 0xde, 0x1f, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, + 0x79, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x6b, 0x65, + 0x79, 0x22, 0xca, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x12, 0x53, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x22, 0xc8, 0xde, + 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0xf2, 0xde, 0x1f, 0x0c, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, + 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, + 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, + 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, + 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x74, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x2e, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, + 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, + 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x08, 0x6e, 0x6f, 0x64, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0xcb, 0x05, 0x0a, 0x11, + 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, + 0x65, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, + 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x61, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x33, 0xea, 0xde, 0x1f, 0x06, 0x70, 0x75, 0x62, + 0x6b, 0x65, 0x79, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, 0x62, + 0x6b, 0x65, 0x79, 0x22, 0xca, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x70, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x12, 0x53, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x22, + 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0xf2, 0xde, 0x1f, + 0x0c, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, + 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, + 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x74, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x2e, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, + 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, + 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0xdb, 0x04, 0x0a, 0x15, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, + 0x6f, 0x64, 0x65, 0x12, 0x74, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, + 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, + 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, + 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, + 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, + 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, + 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, + 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x3e, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, + 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0x93, 0x04, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x74, 0x0a, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, + 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, + 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, + 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, + 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, + 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x30, 0x82, 0xe7, 0xb0, + 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, + 0xe7, 0xb0, 0x2a, 0x19, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0xc2, 0x01, + 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x26, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x5f, 0x31, 0xa2, 0x02, + 0x03, 0x53, 0x52, 0x56, 0xaa, 0x02, 0x14, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x31, 0xca, 0x02, 0x14, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, + 0x31, 0x31, 0xe2, 0x02, 0x20, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x53, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x3a, + 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x31, 0xa8, 0xe2, + 0x1e, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_stratos_register_v1_1_tx_proto_rawDescOnce sync.Once + file_stratos_register_v1_1_tx_proto_rawDescData = file_stratos_register_v1_1_tx_proto_rawDesc +) + +func file_stratos_register_v1_1_tx_proto_rawDescGZIP() []byte { + file_stratos_register_v1_1_tx_proto_rawDescOnce.Do(func() { + file_stratos_register_v1_1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_stratos_register_v1_1_tx_proto_rawDescData) + }) + return file_stratos_register_v1_1_tx_proto_rawDescData +} + +var file_stratos_register_v1_1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_stratos_register_v1_1_tx_proto_goTypes = []interface{}{ + (*MsgCreateResourceNode)(nil), // 0: stratos.register.v1_1.MsgCreateResourceNode + (*MsgCreateMetaNode)(nil), // 1: stratos.register.v1_1.MsgCreateMetaNode + (*MsgUpdateResourceNode)(nil), // 2: stratos.register.v1_1.MsgUpdateResourceNode + (*MsgUpdateMetaNode)(nil), // 3: stratos.register.v1_1.MsgUpdateMetaNode + (*anypb.Any)(nil), // 4: google.protobuf.Any + (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin + (*Description)(nil), // 6: stratos.register.v1_1.Description +} +var file_stratos_register_v1_1_tx_proto_depIdxs = []int32{ + 4, // 0: stratos.register.v1_1.MsgCreateResourceNode.pubkey:type_name -> google.protobuf.Any + 5, // 1: stratos.register.v1_1.MsgCreateResourceNode.value:type_name -> cosmos.base.v1beta1.Coin + 6, // 2: stratos.register.v1_1.MsgCreateResourceNode.description:type_name -> stratos.register.v1_1.Description + 4, // 3: stratos.register.v1_1.MsgCreateMetaNode.pubkey:type_name -> google.protobuf.Any + 5, // 4: stratos.register.v1_1.MsgCreateMetaNode.value:type_name -> cosmos.base.v1beta1.Coin + 6, // 5: stratos.register.v1_1.MsgCreateMetaNode.description:type_name -> stratos.register.v1_1.Description + 6, // 6: stratos.register.v1_1.MsgUpdateResourceNode.description:type_name -> stratos.register.v1_1.Description + 6, // 7: stratos.register.v1_1.MsgUpdateMetaNode.description:type_name -> stratos.register.v1_1.Description + 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_stratos_register_v1_1_tx_proto_init() } +func file_stratos_register_v1_1_tx_proto_init() { + if File_stratos_register_v1_1_tx_proto != nil { + return + } + file_stratos_register_v1_1_register_proto_init() + if !protoimpl.UnsafeEnabled { + file_stratos_register_v1_1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateResourceNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stratos_register_v1_1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgCreateMetaNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stratos_register_v1_1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateResourceNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stratos_register_v1_1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateMetaNode); 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_stratos_register_v1_1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_stratos_register_v1_1_tx_proto_goTypes, + DependencyIndexes: file_stratos_register_v1_1_tx_proto_depIdxs, + MessageInfos: file_stratos_register_v1_1_tx_proto_msgTypes, + }.Build() + File_stratos_register_v1_1_tx_proto = out.File + file_stratos_register_v1_1_tx_proto_rawDesc = nil + file_stratos_register_v1_1_tx_proto_goTypes = nil + file_stratos_register_v1_1_tx_proto_depIdxs = nil +} diff --git a/proto/buf.yaml b/proto/buf.yaml index 1144aacc..d6bce401 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -6,6 +6,7 @@ deps: - buf.build/cosmos/gogo-proto - buf.build/cosmos/ibc - buf.build/googleapis/googleapis + - buf.build/stratosnet/stratos-chain lint: use: - DEFAULT diff --git a/proto/stratos/register/v1/tx.proto b/proto/stratos/register/v1/tx.proto index f2ea8813..6094d862 100644 --- a/proto/stratos/register/v1/tx.proto +++ b/proto/stratos/register/v1/tx.proto @@ -61,21 +61,21 @@ message MsgCreateResourceNode { (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - string beneficiary_address = 5 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; - Description description = 6 [ + Description description = 5 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - uint32 node_type = 7 [ + uint32 node_type = 6 [ (gogoproto.jsontag) = "node_type", (gogoproto.moretags) = "yaml:\"node_type\"" ]; + string beneficiary_address = 7 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; } // MsgCreateResourceNodeResponse defines the CreateResourceNodeTx response type @@ -107,17 +107,17 @@ message MsgCreateMetaNode { (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - string beneficiary_address = 5 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; - Description description = 6 [ + Description description = 5 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; + string beneficiary_address = 6 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; } @@ -176,25 +176,25 @@ message MsgUpdateResourceNode { (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - string beneficiary_address = 2 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; - string network_address = 3 [ + string network_address = 2 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "network_address", (gogoproto.moretags) = "yaml:\"network_address\"" ]; - string owner_address = 4 [ + string owner_address = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - uint32 node_type = 5 [ + uint32 node_type = 4 [ (gogoproto.jsontag) = "node_type", (gogoproto.moretags) = "yaml:\"node_type\"" ]; + string beneficiary_address = 5 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; } // MsgUpdateResourceNodeResponse defines the Msg/UpdateResourceNode response type. @@ -212,21 +212,21 @@ message MsgUpdateMetaNode { (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - string beneficiary_address = 2 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; - string network_address = 3 [ + string network_address = 2 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "network_address", (gogoproto.moretags) = "yaml:\"network_address\"" ]; - string owner_address = 4 [ + string owner_address = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; + string beneficiary_address = 4 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; } // MsgUpdateMetaNodeResponse defines the Msg/UpdateMetaNode response type. diff --git a/proto/stratos/register/v1_1/register.proto b/proto/stratos/register/v1_1/register.proto new file mode 100644 index 00000000..2b56460b --- /dev/null +++ b/proto/stratos/register/v1_1/register.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; +package stratos.register.v1_1; + +import "gogoproto/gogo.proto"; +import "google/protobuf/any.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; + +option (gogoproto.equal_all) = true; +option go_package = "github.com/stratosnet/stratos-chain/x/register/types/v1_1"; + + +message Description { + option (gogoproto.goproto_stringer) = true; + + string moniker = 1 [ + (gogoproto.jsontag) = "moniker", + (gogoproto.moretags) = "yaml:\"moniker\"" + ]; + string identity = 2 [ + (gogoproto.jsontag) = "identity", + (gogoproto.moretags) = "yaml:\"identity\",omitempty" + ]; + string website = 3 [ + (gogoproto.jsontag) = "website", + (gogoproto.moretags) = "yaml:\"website\",omitempty" + ]; + string security_contact = 4 [ + (gogoproto.jsontag) = "security_contact", + (gogoproto.moretags) = "yaml:\"security_contact\",omitempty"]; + string details = 5 [ + (gogoproto.jsontag) = "details", + (gogoproto.moretags) = "yaml:\"details\",omitempty"]; +} \ No newline at end of file diff --git a/proto/stratos/register/v1_1/tx.proto b/proto/stratos/register/v1_1/tx.proto new file mode 100644 index 00000000..cb48f584 --- /dev/null +++ b/proto/stratos/register/v1_1/tx.proto @@ -0,0 +1,156 @@ +syntax = "proto3"; +package stratos.register.v1_1; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "google/protobuf/any.proto"; +import "stratos/register/v1_1/register.proto"; + +option (gogoproto.equal_all) = true; +option go_package = "github.com/stratosnet/stratos-chain/x/register/types/v1_1"; + + +// MsgCreateResourceNode encapsulates an MsgCreateResourceNodeTx transaction as an SDK message. +message MsgCreateResourceNode { + option (cosmos.msg.v1.signer) = "owner_address"; + option (amino.name) = "stratos/MsgCreateResourceNode"; + + string network_address = 1 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "network_address", + (gogoproto.moretags) = "yaml:\"network_address\"" + ]; + google.protobuf.Any pubkey = 2 [ + (cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey", + (gogoproto.jsontag) = "pubkey", + (gogoproto.moretags) = "yaml:\"pubkey\"" + ]; + cosmos.base.v1beta1.Coin value = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.jsontag) = "value", + (gogoproto.moretags) = "yaml:\"value\"" + ]; + string owner_address = 4 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "owner_address", + (gogoproto.moretags) = "yaml:\"owner_address\"" + ]; + string beneficiary_address = 5 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; + Description description = 6 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.jsontag) = "description", + (gogoproto.moretags) = "yaml:\"description\"" + ]; + uint32 node_type = 7 [ + (gogoproto.jsontag) = "node_type", + (gogoproto.moretags) = "yaml:\"node_type\"" + ]; +} + +// MsgCreateMetaNode encapsulates an MsgCreateMetaNodeTx transaction as an SDK message. +message MsgCreateMetaNode { + option (cosmos.msg.v1.signer) = "owner_address"; + option (amino.name) = "stratos/MsgCreateMetaNode"; + + string network_address = 1 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "network_address", + (gogoproto.moretags) = "yaml:\"network_address\"" + ]; + google.protobuf.Any pubkey = 2 [ + (cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey", + (gogoproto.jsontag) = "pubkey", + (gogoproto.moretags) = "yaml:\"pubkey\"" + ]; + cosmos.base.v1beta1.Coin value = 3 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.jsontag) = "value", + (gogoproto.moretags) = "yaml:\"value\"" + ]; + string owner_address = 4 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "owner_address", + (gogoproto.moretags) = "yaml:\"owner_address\"" + ]; + string beneficiary_address = 5 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; + Description description = 6 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.jsontag) = "description", + (gogoproto.moretags) = "yaml:\"description\"" + ]; +} + +// MsgUpdateResourceNode defines a SDK message for updating an existing resource node. +message MsgUpdateResourceNode { + option (cosmos.msg.v1.signer) = "owner_address"; + option (amino.name) = "stratos/MsgUpdateResourceNode"; + + Description description = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.jsontag) = "description", + (gogoproto.moretags) = "yaml:\"description\"" + ]; + string beneficiary_address = 2 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; + string network_address = 3 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "network_address", + (gogoproto.moretags) = "yaml:\"network_address\"" + ]; + string owner_address = 4 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "owner_address", + (gogoproto.moretags) = "yaml:\"owner_address\"" + ]; + uint32 node_type = 5 [ + (gogoproto.jsontag) = "node_type", + (gogoproto.moretags) = "yaml:\"node_type\"" + ]; +} + +// MsgUpdateMetaNode defines a SDK message for updating an existing meta node. +message MsgUpdateMetaNode { + option (cosmos.msg.v1.signer) = "owner_address"; + option (amino.name) = "stratos/MsgUpdateMetaNode"; + + Description description = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + (gogoproto.jsontag) = "description", + (gogoproto.moretags) = "yaml:\"description\"" + ]; + string beneficiary_address = 2 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; + string network_address = 3 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "network_address", + (gogoproto.moretags) = "yaml:\"network_address\"" + ]; + string owner_address = 4 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "owner_address", + (gogoproto.moretags) = "yaml:\"owner_address\"" + ]; +} \ No newline at end of file diff --git a/testutil/helpers.go b/testutil/helpers.go index 6bb47cfe..abf4d0ed 100644 --- a/testutil/helpers.go +++ b/testutil/helpers.go @@ -163,6 +163,9 @@ func SetupWithGenesisNodeSet(t *testing.T, initRemainingOzoneLimit, make([]registertypes.Slashing, 0), registertypes.DefaultDepositNozRate, + make([]registertypes.MetaNodeRegistrationVotePool, 0), + make([]registertypes.UnbondingNode, 0), + make([]registertypes.KickMetaNodeVotePool, 0), ) genesisState[registertypes.ModuleName] = app.AppCodec().MustMarshalJSON(registerGenesis) diff --git a/x/register/types/codec.go b/x/register/types/codec.go index 6af59123..64644bb5 100644 --- a/x/register/types/codec.go +++ b/x/register/types/codec.go @@ -10,6 +10,7 @@ import ( authzcodec "github.com/cosmos/cosmos-sdk/x/authz/codec" govcodec "github.com/cosmos/cosmos-sdk/x/gov/codec" groupcodec "github.com/cosmos/cosmos-sdk/x/group/codec" + "github.com/stratosnet/stratos-chain/x/register/types/v1_1" ) // RegisterLegacyAminoCodec registers concrete types on codec @@ -41,6 +42,10 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { &MsgUpdateMetaNodeDeposit{}, &MsgMetaNodeRegistrationVote{}, &MsgUpdateParams{}, + &v1_1.MsgCreateResourceNode{}, + &v1_1.MsgUpdateResourceNode{}, + &v1_1.MsgCreateMetaNode{}, + &v1_1.MsgUpdateMetaNode{}, ) registry.RegisterImplementations( (*authz.Authorization)(nil), diff --git a/x/register/types/tx.pb.go b/x/register/types/tx.pb.go index 36e822e6..30031379 100644 --- a/x/register/types/tx.pb.go +++ b/x/register/types/tx.pb.go @@ -40,9 +40,9 @@ type MsgCreateResourceNode struct { Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` Value types1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value" yaml:"value"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` - Description Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description" yaml:"description"` - NodeType uint32 `protobuf:"varint,7,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` + Description Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description" yaml:"description"` + NodeType uint32 `protobuf:"varint,6,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` + BeneficiaryAddress string `protobuf:"bytes,7,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` } func (m *MsgCreateResourceNode) Reset() { *m = MsgCreateResourceNode{} } @@ -106,13 +106,6 @@ func (m *MsgCreateResourceNode) GetOwnerAddress() string { return "" } -func (m *MsgCreateResourceNode) GetBeneficiaryAddress() string { - if m != nil { - return m.BeneficiaryAddress - } - return "" -} - func (m *MsgCreateResourceNode) GetDescription() Description { if m != nil { return m.Description @@ -127,6 +120,13 @@ func (m *MsgCreateResourceNode) GetNodeType() uint32 { return 0 } +func (m *MsgCreateResourceNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + // MsgCreateResourceNodeResponse defines the CreateResourceNodeTx response type type MsgCreateResourceNodeResponse struct { } @@ -170,8 +170,8 @@ type MsgCreateMetaNode struct { Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` Value types1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value" yaml:"value"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` - Description Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description" yaml:"description"` + Description Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description" yaml:"description"` + BeneficiaryAddress string `protobuf:"bytes,6,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` } func (m *MsgCreateMetaNode) Reset() { *m = MsgCreateMetaNode{} } @@ -235,18 +235,18 @@ func (m *MsgCreateMetaNode) GetOwnerAddress() string { return "" } -func (m *MsgCreateMetaNode) GetBeneficiaryAddress() string { +func (m *MsgCreateMetaNode) GetDescription() Description { if m != nil { - return m.BeneficiaryAddress + return m.Description } - return "" + return Description{} } -func (m *MsgCreateMetaNode) GetDescription() Description { +func (m *MsgCreateMetaNode) GetBeneficiaryAddress() string { if m != nil { - return m.Description + return m.BeneficiaryAddress } - return Description{} + return "" } // MsgCreateMetaNodeResponse defines the CreateMetaNode response type @@ -469,10 +469,10 @@ var xxx_messageInfo_MsgRemoveMetaNodeResponse proto.InternalMessageInfo // MsgUpdateResourceNode defines a SDK message for updating an existing resource node. type MsgUpdateResourceNode struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"` - BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` - NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` - OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - NodeType uint32 `protobuf:"varint,5,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` + NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + NodeType uint32 `protobuf:"varint,4,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` } func (m *MsgUpdateResourceNode) Reset() { *m = MsgUpdateResourceNode{} } @@ -515,13 +515,6 @@ func (m *MsgUpdateResourceNode) GetDescription() Description { return Description{} } -func (m *MsgUpdateResourceNode) GetBeneficiaryAddress() string { - if m != nil { - return m.BeneficiaryAddress - } - return "" -} - func (m *MsgUpdateResourceNode) GetNetworkAddress() string { if m != nil { return m.NetworkAddress @@ -543,6 +536,13 @@ func (m *MsgUpdateResourceNode) GetNodeType() uint32 { return 0 } +func (m *MsgUpdateResourceNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + // MsgUpdateResourceNodeResponse defines the Msg/UpdateResourceNode response type. type MsgUpdateResourceNodeResponse struct { } @@ -583,9 +583,9 @@ var xxx_messageInfo_MsgUpdateResourceNodeResponse proto.InternalMessageInfo // MsgUpdateMetaNode defines a SDK message for updating an existing meta node. type MsgUpdateMetaNode struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"` - BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` - NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` - OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + BeneficiaryAddress string `protobuf:"bytes,4,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` } func (m *MsgUpdateMetaNode) Reset() { *m = MsgUpdateMetaNode{} } @@ -628,23 +628,23 @@ func (m *MsgUpdateMetaNode) GetDescription() Description { return Description{} } -func (m *MsgUpdateMetaNode) GetBeneficiaryAddress() string { +func (m *MsgUpdateMetaNode) GetNetworkAddress() string { if m != nil { - return m.BeneficiaryAddress + return m.NetworkAddress } return "" } -func (m *MsgUpdateMetaNode) GetNetworkAddress() string { +func (m *MsgUpdateMetaNode) GetOwnerAddress() string { if m != nil { - return m.NetworkAddress + return m.OwnerAddress } return "" } -func (m *MsgUpdateMetaNode) GetOwnerAddress() string { +func (m *MsgUpdateMetaNode) GetBeneficiaryAddress() string { if m != nil { - return m.OwnerAddress + return m.BeneficiaryAddress } return "" } @@ -1323,113 +1323,113 @@ func init() { func init() { proto.RegisterFile("stratos/register/v1/tx.proto", fileDescriptor_75d4b90d7a185a31) } var fileDescriptor_75d4b90d7a185a31 = []byte{ - // 1681 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0x4f, 0x6c, 0x13, 0xc7, - 0x1a, 0xcf, 0xe6, 0x1f, 0x64, 0x48, 0x08, 0xd9, 0x24, 0xc4, 0x71, 0x88, 0x27, 0x59, 0x78, 0x51, - 0x14, 0xbd, 0xac, 0x49, 0xf8, 0x9f, 0x27, 0xa1, 0x87, 0x01, 0xe9, 0x21, 0x14, 0xe0, 0x19, 0x68, - 0xd5, 0x5e, 0xac, 0xb5, 0x3d, 0x31, 0xdb, 0xc4, 0x3b, 0xee, 0xee, 0x3a, 0xe0, 0x03, 0x55, 0x55, - 0xa9, 0x95, 0xa8, 0x54, 0xb5, 0x54, 0xea, 0x89, 0x43, 0x2f, 0x95, 0x4a, 0x6f, 0x1c, 0x7a, 0xad, - 0xd4, 0x5b, 0x69, 0x4f, 0xa8, 0xa7, 0xb6, 0x87, 0x51, 0x15, 0x0e, 0x48, 0x3e, 0xfa, 0xda, 0x4b, - 0xb5, 0x3b, 0xb3, 0x63, 0xef, 0xee, 0x8c, 0x71, 0x24, 0xb0, 0x50, 0x95, 0x0b, 0x64, 0xbf, 0xdf, - 0x6f, 0xe6, 0xfb, 0xe6, 0x9b, 0xdf, 0x7c, 0xf3, 0xc7, 0xe0, 0x88, 0xe3, 0xda, 0x86, 0x8b, 0x9d, - 0xb4, 0x8d, 0x4a, 0xa6, 0xe3, 0x22, 0x3b, 0xbd, 0xbd, 0x92, 0x76, 0xef, 0xe9, 0x15, 0x1b, 0xbb, - 0x58, 0x1d, 0x67, 0xa8, 0x1e, 0xa0, 0xfa, 0xf6, 0x4a, 0x72, 0xa2, 0x84, 0x4b, 0xd8, 0x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, 0x44, 0x39, 0xb7, 0x56, 0x41, - 0x89, 0x7d, 0x73, 0xca, 0xe2, 0x48, 0x66, 0xbe, 0x4e, 0x60, 0xd3, 0xd8, 0x20, 0xf0, 0x10, 0xd3, - 0x5d, 0x60, 0xd2, 0xb2, 0xfb, 0xbd, 0xbf, 0x6f, 0xd5, 0x2a, 0x68, 0xed, 0xe4, 0x47, 0x2f, 0x9e, - 0x2c, 0x85, 0x67, 0xe1, 0xd3, 0x17, 0x4f, 0x96, 0x66, 0x83, 0x85, 0x21, 0x54, 0xbe, 0x06, 0xc1, - 0xac, 0x10, 0xc8, 0x22, 0xa7, 0x82, 0x2d, 0x07, 0x69, 0x3f, 0x0f, 0x80, 0x31, 0xce, 0x58, 0x47, - 0xae, 0xb1, 0xb7, 0x60, 0xf6, 0x16, 0xcc, 0x9b, 0xb0, 0x60, 0xd6, 0x8e, 0x8b, 0x05, 0x3f, 0x1d, - 0x13, 0x7c, 0xa0, 0x5a, 0x6d, 0x06, 0x4c, 0xc7, 0x8c, 0x5c, 0xe8, 0x3f, 0xf4, 0xfa, 0xbb, 0x43, - 0x16, 0x95, 0xf1, 0x76, 0x78, 0x77, 0xf8, 0x58, 0x01, 0x93, 0x36, 0x33, 0xe4, 0xfc, 0xb5, 0x17, - 0xd6, 0xfc, 0xff, 0xeb, 0x04, 0x8a, 0x09, 0x0d, 0x02, 0x8f, 0xd0, 0xb1, 0x08, 0x61, 0x79, 0x8e, - 0xc7, 0xed, 0x96, 0x00, 0x82, 0x24, 0xc7, 0xc4, 0xd4, 0xfb, 0x5a, 0xc4, 0xd4, 0x49, 0x25, 0x89, - 0x67, 0x89, 0x55, 0x92, 0x38, 0xc0, 0x13, 0xfc, 0x4d, 0xaf, 0x5f, 0x49, 0x28, 0x83, 0x57, 0x92, - 0x2a, 0x18, 0x2b, 0x23, 0xd7, 0x10, 0xe5, 0xf5, 0x4a, 0x9d, 0xc0, 0x38, 0xd8, 0x20, 0x30, 0x41, - 0x07, 0x17, 0x83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b6, 0x93, 0x52, 0xfe, 0xdc, 0x49, 0x29, 0x5f, 0x3c, 0x4f, 0xf5, 0x3c, 0x7b, - 0x9e, 0xea, 0xf9, 0xed, 0x79, 0xaa, 0xe7, 0xdd, 0x93, 0x2d, 0x17, 0x59, 0xd6, 0xb9, 0x85, 0xdc, - 0xe0, 0xcf, 0xe5, 0xc2, 0x1d, 0xc3, 0xb4, 0x5a, 0xb7, 0x1d, 0xff, 0x6a, 0x9b, 0x1f, 0xf4, 0x7f, - 0xe4, 0x3b, 0xf1, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x7a, 0xc2, 0xf7, 0xaf, 0x20, 0x00, - 0x00, + // 1691 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0x4d, 0x6c, 0x13, 0x47, + 0x1b, 0xce, 0xc6, 0x4e, 0x20, 0x43, 0x42, 0xc8, 0x26, 0x21, 0x8e, 0x43, 0x3c, 0xc9, 0xc2, 0x17, + 0x45, 0xd1, 0x97, 0x35, 0x09, 0xff, 0xf9, 0x24, 0xf4, 0x61, 0x40, 0x2a, 0x42, 0x01, 0x6a, 0xa0, + 0x55, 0x7b, 0xb1, 0xd6, 0xf6, 0xc4, 0x6c, 0x13, 0xef, 0xba, 0xbb, 0xeb, 0x80, 0x0f, 0x54, 0x55, + 0xa5, 0x56, 0xa2, 0x52, 0xd5, 0x52, 0xa9, 0x27, 0x0e, 0xbd, 0x54, 0x2a, 0xbd, 0x71, 0xe8, 0xb5, + 0x52, 0x6f, 0xa5, 0x3d, 0xa1, 0x9e, 0xda, 0x1e, 0x46, 0x55, 0x38, 0x20, 0xf9, 0xb8, 0xd7, 0x5e, + 0xaa, 0xdd, 0x99, 0x1d, 0x7b, 0x77, 0x67, 0x8c, 0x23, 0x25, 0x11, 0x87, 0x5c, 0x20, 0xfb, 0xbe, + 0xcf, 0xcc, 0xfb, 0xf7, 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f2, 0xe5, 0xa8, 0x5b, + 0x07, 0x18, 0x8e, 0x52, 0xec, 0xc0, 0x88, 0x8f, 0x6e, 0xcf, 0xdf, 0xca, 0xff, 0x3d, 0x92, 0xf3, + 0x4c, 0x78, 0x54, 0x3f, 0xde, 0x46, 0x75, 0x11, 0x53, 0x95, 0xff, 0x80, 0xe3, 0x1d, 0xd4, 0x8c, + 0xf0, 0x4f, 0x92, 0x60, 0x74, 0xd5, 0xae, 0x5c, 0xd7, 0x4b, 0xeb, 0x01, 0xd6, 0x27, 0xfa, 0x23, + 0x09, 0x1c, 0x75, 0x34, 0xab, 0x82, 0x1c, 0x01, 0xcb, 0x6f, 0x37, 0x31, 0x14, 0x20, 0x5c, 0x0c, + 0xa7, 0x49, 0x1a, 0xf8, 0x7a, 0x71, 0x26, 0xc6, 0xc8, 0x80, 0x48, 0x2d, 0xda, 0xc8, 0xd4, 0xbb, + 0x43, 0x64, 0x4a, 0xbc, 0x09, 0x64, 0x4a, 0xee, 0x11, 0x99, 0xce, 0x77, 0x22, 0xd3, 0x54, 0x1b, + 0x99, 0xa2, 0x2c, 0x50, 0xa6, 0xfd, 0x6e, 0x18, 0x15, 0x33, 0xf2, 0xfc, 0x2c, 0x81, 0x61, 0xd6, + 0x52, 0x6f, 0x69, 0x96, 0x56, 0xb5, 0xe5, 0xb3, 0x60, 0x40, 0xab, 0x3b, 0xf7, 0x4c, 0x4b, 0x77, + 0x1a, 0x94, 0x2a, 0x29, 0xf1, 0xc9, 0x88, 0x41, 0xe5, 0x8b, 0xa0, 0xbf, 0xe6, 0xcf, 0x40, 0x1f, + 0x46, 0xa7, 0xb8, 0x17, 0x2f, 0x62, 0x24, 0x37, 0xe0, 0xed, 0x22, 0x64, 0x73, 0xa0, 0xa3, 0x56, + 0xce, 0x78, 0x41, 0xb6, 0xe6, 0xf3, 0x42, 0x63, 0x3f, 0xa5, 0x3c, 0x68, 0xfd, 0x98, 0x12, 0x71, + 0x57, 0x99, 0x04, 0x13, 0x11, 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0xe8, 0x3e, 0x98, 0x64, 0x0e, + 0xc5, 0x4e, 0x0e, 0xf3, 0xa2, 0x69, 0xa3, 0xc8, 0xf4, 0xc9, 0x6e, 0x91, 0xcc, 0x70, 0x11, 0x0c, + 0x86, 0x36, 0x9b, 0x13, 0x9d, 0x33, 0x4a, 0x50, 0xe9, 0xff, 0x76, 0x83, 0x0a, 0x6c, 0xa4, 0xfb, + 0x3e, 0xf6, 0xf6, 0x95, 0x5c, 0xfe, 0xe9, 0x56, 0x46, 0x7a, 0xbe, 0x95, 0x91, 0x5e, 0x6c, 0x65, + 0xa4, 0xbf, 0xb7, 0x32, 0xd2, 0x57, 0x2f, 0x33, 0x3d, 0x2f, 0x5e, 0x66, 0x7a, 0xfe, 0x78, 0x99, + 0xe9, 0x79, 0xff, 0x74, 0xdb, 0x45, 0x96, 0x4e, 0x6e, 0x20, 0x27, 0xf8, 0x73, 0xb1, 0x74, 0x4f, + 0xd3, 0x8d, 0xf6, 0x6d, 0xc7, 0xbf, 0xda, 0x16, 0xfb, 0xfd, 0x1f, 0xf9, 0x4e, 0xfd, 0x1b, 0x00, + 0x00, 0xff, 0xff, 0xc3, 0x46, 0x32, 0x8a, 0xaf, 0x20, 0x00, 0x00, } func (this *MsgCreateResourceNode) Equal(that interface{}) bool { @@ -1463,15 +1463,15 @@ func (this *MsgCreateResourceNode) Equal(that interface{}) bool { if this.OwnerAddress != that1.OwnerAddress { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { - return false - } if !this.Description.Equal(&that1.Description) { return false } if this.NodeType != that1.NodeType { return false } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } return true } func (this *MsgCreateResourceNodeResponse) Equal(that interface{}) bool { @@ -1526,10 +1526,10 @@ func (this *MsgCreateMetaNode) Equal(that interface{}) bool { if this.OwnerAddress != that1.OwnerAddress { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { + if !this.Description.Equal(&that1.Description) { return false } - if !this.Description.Equal(&that1.Description) { + if this.BeneficiaryAddress != that1.BeneficiaryAddress { return false } return true @@ -1673,9 +1673,6 @@ func (this *MsgUpdateResourceNode) Equal(that interface{}) bool { if !this.Description.Equal(&that1.Description) { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { - return false - } if this.NetworkAddress != that1.NetworkAddress { return false } @@ -1685,6 +1682,9 @@ func (this *MsgUpdateResourceNode) Equal(that interface{}) bool { if this.NodeType != that1.NodeType { return false } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } return true } func (this *MsgUpdateResourceNodeResponse) Equal(that interface{}) bool { @@ -1730,15 +1730,15 @@ func (this *MsgUpdateMetaNode) Equal(that interface{}) bool { if !this.Description.Equal(&that1.Description) { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { - return false - } if this.NetworkAddress != that1.NetworkAddress { return false } if this.OwnerAddress != that1.OwnerAddress { return false } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } return true } func (this *MsgUpdateMetaNodeResponse) Equal(that interface{}) bool { @@ -2590,10 +2590,17 @@ func (m *MsgCreateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x3a + } if m.NodeType != 0 { i = encodeVarintTx(dAtA, i, uint64(m.NodeType)) i-- - dAtA[i] = 0x38 + dAtA[i] = 0x30 } { size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) @@ -2604,14 +2611,7 @@ func (m *MsgCreateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- - dAtA[i] = 0x2a - } + dAtA[i] = 0x2a if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) @@ -2694,6 +2694,13 @@ func (m *MsgCreateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x32 + } { size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -2703,14 +2710,7 @@ func (m *MsgCreateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- - dAtA[i] = 0x2a - } + dAtA[i] = 0x2a if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) @@ -2913,30 +2913,30 @@ func (m *MsgUpdateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } if m.NodeType != 0 { i = encodeVarintTx(dAtA, i, uint64(m.NodeType)) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x20 } if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(m.NetworkAddress) > 0 { i -= len(m.NetworkAddress) copy(dAtA[i:], m.NetworkAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) i-- - dAtA[i] = 0x1a - } - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- dAtA[i] = 0x12 } { @@ -2995,25 +2995,25 @@ func (m *MsgUpdateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x22 + } if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(m.NetworkAddress) > 0 { i -= len(m.NetworkAddress) copy(dAtA[i:], m.NetworkAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) i-- - dAtA[i] = 0x1a - } - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- dAtA[i] = 0x12 } { @@ -3528,15 +3528,15 @@ func (m *MsgCreateResourceNode) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.BeneficiaryAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) if m.NodeType != 0 { n += 1 + sovTx(uint64(m.NodeType)) } + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -3569,12 +3569,12 @@ func (m *MsgCreateMetaNode) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = m.Description.Size() + n += 1 + l + sovTx(uint64(l)) l = len(m.BeneficiaryAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = m.Description.Size() - n += 1 + l + sovTx(uint64(l)) return n } @@ -3647,10 +3647,6 @@ func (m *MsgUpdateResourceNode) Size() (n int) { _ = l l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) - l = len(m.BeneficiaryAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } l = len(m.NetworkAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) @@ -3662,6 +3658,10 @@ func (m *MsgUpdateResourceNode) Size() (n int) { if m.NodeType != 0 { n += 1 + sovTx(uint64(m.NodeType)) } + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -3682,15 +3682,15 @@ func (m *MsgUpdateMetaNode) Size() (n int) { _ = l l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) - l = len(m.BeneficiaryAddress) + l = len(m.NetworkAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.NetworkAddress) + l = len(m.OwnerAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.OwnerAddress) + l = len(m.BeneficiaryAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -4062,9 +4062,9 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4074,29 +4074,30 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var msglen int + m.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4106,30 +4107,16 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - m.NodeType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4139,11 +4126,24 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeType |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -4379,9 +4379,9 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4391,29 +4391,30 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4423,24 +4424,23 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4905,7 +4905,7 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4933,11 +4933,11 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4965,13 +4965,13 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var stringLen uint64 + m.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4981,29 +4981,16 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - m.NodeType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5013,11 +5000,24 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeType |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -5153,7 +5153,7 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5181,11 +5181,11 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5213,11 +5213,11 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5245,7 +5245,7 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OwnerAddress = string(dAtA[iNdEx:postIndex]) + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/register/types/v1_1/msg.go b/x/register/types/v1_1/msg.go new file mode 100644 index 00000000..70b97c1b --- /dev/null +++ b/x/register/types/v1_1/msg.go @@ -0,0 +1,82 @@ +package v1_1 + +import ( + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +var ( + _ sdk.Msg = &MsgCreateResourceNode{} + _ sdk.Msg = &MsgUpdateResourceNode{} + _ sdk.Msg = &MsgCreateMetaNode{} + _ sdk.Msg = &MsgUpdateMetaNode{} +) + +// ValidateBasic validity check for the CreateResourceNode +func (msg MsgCreateResourceNode) ValidateBasic() error { + return nil +} + +func (msg MsgCreateResourceNode) GetSigners() []sdk.AccAddress { + // Owner pays the tx fees + addr, err := sdk.AccAddressFromBech32(msg.GetOwnerAddress()) + if err != nil { + panic(err) + } + return []sdk.AccAddress{addr.Bytes()} +} + +// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces +func (msg MsgCreateResourceNode) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { + var pk cryptotypes.PubKey + return unpacker.UnpackAny(msg.Pubkey, &pk) +} + +// ValidateBasic implements the sdk.Msg interface. +func (msg MsgUpdateResourceNode) ValidateBasic() error { + return nil +} + +// GetSigners implements the sdk.Msg interface. +func (msg MsgUpdateResourceNode) GetSigners() []sdk.AccAddress { + addr, err := sdk.AccAddressFromBech32(msg.OwnerAddress) + if err != nil { + panic(err) + } + return []sdk.AccAddress{addr.Bytes()} +} + +func (msg MsgCreateMetaNode) ValidateBasic() error { + return nil +} + +func (msg MsgCreateMetaNode) GetSigners() []sdk.AccAddress { + // Owner pays the tx fees + addr, err := sdk.AccAddressFromBech32(msg.GetOwnerAddress()) + if err != nil { + panic(err) + } + return []sdk.AccAddress{addr.Bytes()} + +} + +// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces +func (msg MsgCreateMetaNode) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { + var pk cryptotypes.PubKey + return unpacker.UnpackAny(msg.Pubkey, &pk) +} + +// GetSigners implements the sdk.Msg interface. +func (msg MsgUpdateMetaNode) GetSigners() []sdk.AccAddress { + addr, err := sdk.AccAddressFromBech32(msg.OwnerAddress) + if err != nil { + panic(err) + } + return []sdk.AccAddress{addr.Bytes()} +} + +// ValidateBasic implements the sdk.Msg interface. +func (msg MsgUpdateMetaNode) ValidateBasic() error { + return nil +} diff --git a/x/register/types/v1_1/register.pb.go b/x/register/types/v1_1/register.pb.go new file mode 100644 index 00000000..e41b5bae --- /dev/null +++ b/x/register/types/v1_1/register.pb.go @@ -0,0 +1,575 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stratos/register/v1_1/register.proto + +package v1_1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Description struct { + Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker" yaml:"moniker"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity" yaml:"identity",omitempty` + Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website" yaml:"website",omitempty` + SecurityContact string `protobuf:"bytes,4,opt,name=security_contact,json=securityContact,proto3" json:"security_contact" yaml:"security_contact",omitempty` + Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details" yaml:"details",omitempty` +} + +func (m *Description) Reset() { *m = Description{} } +func (m *Description) String() string { return proto.CompactTextString(m) } +func (*Description) ProtoMessage() {} +func (*Description) Descriptor() ([]byte, []int) { + return fileDescriptor_9b740b7b32b37484, []int{0} +} +func (m *Description) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Description) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Description.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Description) XXX_Merge(src proto.Message) { + xxx_messageInfo_Description.Merge(m, src) +} +func (m *Description) XXX_Size() int { + return m.Size() +} +func (m *Description) XXX_DiscardUnknown() { + xxx_messageInfo_Description.DiscardUnknown(m) +} + +var xxx_messageInfo_Description proto.InternalMessageInfo + +func (m *Description) GetMoniker() string { + if m != nil { + return m.Moniker + } + return "" +} + +func (m *Description) GetIdentity() string { + if m != nil { + return m.Identity + } + return "" +} + +func (m *Description) GetWebsite() string { + if m != nil { + return m.Website + } + return "" +} + +func (m *Description) GetSecurityContact() string { + if m != nil { + return m.SecurityContact + } + return "" +} + +func (m *Description) GetDetails() string { + if m != nil { + return m.Details + } + return "" +} + +func init() { + proto.RegisterType((*Description)(nil), "stratos.register.v1_1.Description") +} + +func init() { + proto.RegisterFile("stratos/register/v1_1/register.proto", fileDescriptor_9b740b7b32b37484) +} + +var fileDescriptor_9b740b7b32b37484 = []byte{ + // 395 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xcf, 0x4e, 0xdb, 0x40, + 0x10, 0xc6, 0xe3, 0x34, 0x6d, 0x5a, 0x57, 0xea, 0x1f, 0xab, 0x95, 0x9c, 0x48, 0xf5, 0xb6, 0x56, + 0xa5, 0xb6, 0x52, 0xc9, 0x2a, 0xe2, 0x80, 0x92, 0x1b, 0x01, 0x5e, 0x20, 0x17, 0x24, 0x2e, 0x91, + 0xed, 0x2c, 0xce, 0x8a, 0x78, 0xd7, 0xf2, 0x4e, 0x00, 0xbf, 0x05, 0x47, 0x8e, 0x1c, 0x79, 0x14, + 0x8e, 0x39, 0x72, 0xb2, 0x90, 0x73, 0xcb, 0xd1, 0x2f, 0x00, 0xf2, 0xee, 0xda, 0x09, 0x70, 0xb1, + 0x66, 0x7e, 0xdf, 0x37, 0x9f, 0x47, 0xda, 0x31, 0x7f, 0x0b, 0x48, 0x3c, 0xe0, 0x02, 0x27, 0x24, + 0xa4, 0x02, 0x48, 0x82, 0xcf, 0xfb, 0x93, 0x7e, 0xdd, 0xf5, 0xe2, 0x84, 0x03, 0xb7, 0xbe, 0x6b, + 0x57, 0xaf, 0xe6, 0xa5, 0xab, 0xfb, 0x2d, 0xe4, 0x21, 0x97, 0x0e, 0x5c, 0x56, 0xca, 0xdc, 0xed, + 0x84, 0x9c, 0x87, 0x73, 0x82, 0x65, 0xe7, 0x2f, 0x4e, 0xb1,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0x63, 0x74, 0x7c, 0x9b, 0x3b, 0xc6, 0x5d, 0xee, 0x18, 0xcb, 0xdc, 0x31, 0x1e, 0x72, 0xc7, + 0xb8, 0x5a, 0x39, 0x8d, 0xe5, 0xca, 0x69, 0xdc, 0xaf, 0x9c, 0xc6, 0xc9, 0x20, 0xa4, 0x30, 0x5b, + 0xf8, 0xbd, 0x80, 0x47, 0x58, 0x1f, 0x08, 0x23, 0x50, 0x95, 0x3b, 0xc1, 0xcc, 0xa3, 0x0c, 0x5f, + 0x6e, 0x2e, 0x0b, 0xd2, 0x98, 0x08, 0x79, 0x5f, 0xfe, 0x3b, 0xf9, 0xc2, 0xbb, 0x4f, 0x01, 0x00, + 0x00, 0xff, 0xff, 0xd4, 0xbe, 0x94, 0x11, 0x7f, 0x02, 0x00, 0x00, +} + +func (this *Description) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Description) + if !ok { + that2, ok := that.(Description) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Moniker != that1.Moniker { + return false + } + if this.Identity != that1.Identity { + return false + } + if this.Website != that1.Website { + return false + } + if this.SecurityContact != that1.SecurityContact { + return false + } + if this.Details != that1.Details { + return false + } + return true +} +func (m *Description) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Description) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Details) > 0 { + i -= len(m.Details) + copy(dAtA[i:], m.Details) + i = encodeVarintRegister(dAtA, i, uint64(len(m.Details))) + i-- + dAtA[i] = 0x2a + } + if len(m.SecurityContact) > 0 { + i -= len(m.SecurityContact) + copy(dAtA[i:], m.SecurityContact) + i = encodeVarintRegister(dAtA, i, uint64(len(m.SecurityContact))) + i-- + dAtA[i] = 0x22 + } + if len(m.Website) > 0 { + i -= len(m.Website) + copy(dAtA[i:], m.Website) + i = encodeVarintRegister(dAtA, i, uint64(len(m.Website))) + i-- + dAtA[i] = 0x1a + } + if len(m.Identity) > 0 { + i -= len(m.Identity) + copy(dAtA[i:], m.Identity) + i = encodeVarintRegister(dAtA, i, uint64(len(m.Identity))) + i-- + dAtA[i] = 0x12 + } + if len(m.Moniker) > 0 { + i -= len(m.Moniker) + copy(dAtA[i:], m.Moniker) + i = encodeVarintRegister(dAtA, i, uint64(len(m.Moniker))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintRegister(dAtA []byte, offset int, v uint64) int { + offset -= sovRegister(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Description) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Moniker) + if l > 0 { + n += 1 + l + sovRegister(uint64(l)) + } + l = len(m.Identity) + if l > 0 { + n += 1 + l + sovRegister(uint64(l)) + } + l = len(m.Website) + if l > 0 { + n += 1 + l + sovRegister(uint64(l)) + } + l = len(m.SecurityContact) + if l > 0 { + n += 1 + l + sovRegister(uint64(l)) + } + l = len(m.Details) + if l > 0 { + n += 1 + l + sovRegister(uint64(l)) + } + return n +} + +func sovRegister(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRegister(x uint64) (n int) { + return sovRegister(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Description) Unmarshal(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 ErrIntOverflowRegister + } + 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: Description: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Description: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Moniker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRegister + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRegister + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRegister + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Moniker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRegister + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRegister + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRegister + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Website", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRegister + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRegister + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRegister + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Website = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecurityContact", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRegister + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRegister + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRegister + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SecurityContact = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRegister + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRegister + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRegister + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Details = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRegister(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRegister + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRegister(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, ErrIntOverflowRegister + } + 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, ErrIntOverflowRegister + } + 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, ErrIntOverflowRegister + } + 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, ErrInvalidLengthRegister + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRegister + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRegister + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRegister = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRegister = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRegister = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/register/types/v1_1/tx.pb.go b/x/register/types/v1_1/tx.pb.go new file mode 100644 index 00000000..3307fa28 --- /dev/null +++ b/x/register/types/v1_1/tx.pb.go @@ -0,0 +1,1935 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stratos/register/v1_1/tx.proto + +package v1_1 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/codec/types" + types1 "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgCreateResourceNode encapsulates an MsgCreateResourceNodeTx transaction as an SDK message. +type MsgCreateResourceNode struct { + NetworkAddress string `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` + Value types1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value" yaml:"value"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + Description Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description" yaml:"description"` + NodeType uint32 `protobuf:"varint,7,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` +} + +func (m *MsgCreateResourceNode) Reset() { *m = MsgCreateResourceNode{} } +func (m *MsgCreateResourceNode) String() string { return proto.CompactTextString(m) } +func (*MsgCreateResourceNode) ProtoMessage() {} +func (*MsgCreateResourceNode) Descriptor() ([]byte, []int) { + return fileDescriptor_f8c1d106b648f05b, []int{0} +} +func (m *MsgCreateResourceNode) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateResourceNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateResourceNode.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateResourceNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateResourceNode.Merge(m, src) +} +func (m *MsgCreateResourceNode) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateResourceNode) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateResourceNode.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateResourceNode proto.InternalMessageInfo + +func (m *MsgCreateResourceNode) GetNetworkAddress() string { + if m != nil { + return m.NetworkAddress + } + return "" +} + +func (m *MsgCreateResourceNode) GetPubkey() *types.Any { + if m != nil { + return m.Pubkey + } + return nil +} + +func (m *MsgCreateResourceNode) GetValue() types1.Coin { + if m != nil { + return m.Value + } + return types1.Coin{} +} + +func (m *MsgCreateResourceNode) GetOwnerAddress() string { + if m != nil { + return m.OwnerAddress + } + return "" +} + +func (m *MsgCreateResourceNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + +func (m *MsgCreateResourceNode) GetDescription() Description { + if m != nil { + return m.Description + } + return Description{} +} + +func (m *MsgCreateResourceNode) GetNodeType() uint32 { + if m != nil { + return m.NodeType + } + return 0 +} + +// MsgCreateMetaNode encapsulates an MsgCreateMetaNodeTx transaction as an SDK message. +type MsgCreateMetaNode struct { + NetworkAddress string `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` + Value types1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value" yaml:"value"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + Description Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description" yaml:"description"` +} + +func (m *MsgCreateMetaNode) Reset() { *m = MsgCreateMetaNode{} } +func (m *MsgCreateMetaNode) String() string { return proto.CompactTextString(m) } +func (*MsgCreateMetaNode) ProtoMessage() {} +func (*MsgCreateMetaNode) Descriptor() ([]byte, []int) { + return fileDescriptor_f8c1d106b648f05b, []int{1} +} +func (m *MsgCreateMetaNode) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateMetaNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateMetaNode.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateMetaNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateMetaNode.Merge(m, src) +} +func (m *MsgCreateMetaNode) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateMetaNode) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateMetaNode.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateMetaNode proto.InternalMessageInfo + +func (m *MsgCreateMetaNode) GetNetworkAddress() string { + if m != nil { + return m.NetworkAddress + } + return "" +} + +func (m *MsgCreateMetaNode) GetPubkey() *types.Any { + if m != nil { + return m.Pubkey + } + return nil +} + +func (m *MsgCreateMetaNode) GetValue() types1.Coin { + if m != nil { + return m.Value + } + return types1.Coin{} +} + +func (m *MsgCreateMetaNode) GetOwnerAddress() string { + if m != nil { + return m.OwnerAddress + } + return "" +} + +func (m *MsgCreateMetaNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + +func (m *MsgCreateMetaNode) GetDescription() Description { + if m != nil { + return m.Description + } + return Description{} +} + +// MsgUpdateResourceNode defines a SDK message for updating an existing resource node. +type MsgUpdateResourceNode struct { + Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"` + BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + NodeType uint32 `protobuf:"varint,5,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` +} + +func (m *MsgUpdateResourceNode) Reset() { *m = MsgUpdateResourceNode{} } +func (m *MsgUpdateResourceNode) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateResourceNode) ProtoMessage() {} +func (*MsgUpdateResourceNode) Descriptor() ([]byte, []int) { + return fileDescriptor_f8c1d106b648f05b, []int{2} +} +func (m *MsgUpdateResourceNode) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateResourceNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateResourceNode.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateResourceNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateResourceNode.Merge(m, src) +} +func (m *MsgUpdateResourceNode) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateResourceNode) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateResourceNode.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateResourceNode proto.InternalMessageInfo + +func (m *MsgUpdateResourceNode) GetDescription() Description { + if m != nil { + return m.Description + } + return Description{} +} + +func (m *MsgUpdateResourceNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + +func (m *MsgUpdateResourceNode) GetNetworkAddress() string { + if m != nil { + return m.NetworkAddress + } + return "" +} + +func (m *MsgUpdateResourceNode) GetOwnerAddress() string { + if m != nil { + return m.OwnerAddress + } + return "" +} + +func (m *MsgUpdateResourceNode) GetNodeType() uint32 { + if m != nil { + return m.NodeType + } + return 0 +} + +// MsgUpdateMetaNode defines a SDK message for updating an existing meta node. +type MsgUpdateMetaNode struct { + Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"` + BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` +} + +func (m *MsgUpdateMetaNode) Reset() { *m = MsgUpdateMetaNode{} } +func (m *MsgUpdateMetaNode) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateMetaNode) ProtoMessage() {} +func (*MsgUpdateMetaNode) Descriptor() ([]byte, []int) { + return fileDescriptor_f8c1d106b648f05b, []int{3} +} +func (m *MsgUpdateMetaNode) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateMetaNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateMetaNode.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateMetaNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateMetaNode.Merge(m, src) +} +func (m *MsgUpdateMetaNode) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateMetaNode) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateMetaNode.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateMetaNode proto.InternalMessageInfo + +func (m *MsgUpdateMetaNode) GetDescription() Description { + if m != nil { + return m.Description + } + return Description{} +} + +func (m *MsgUpdateMetaNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + +func (m *MsgUpdateMetaNode) GetNetworkAddress() string { + if m != nil { + return m.NetworkAddress + } + return "" +} + +func (m *MsgUpdateMetaNode) GetOwnerAddress() string { + if m != nil { + return m.OwnerAddress + } + return "" +} + +func init() { + proto.RegisterType((*MsgCreateResourceNode)(nil), "stratos.register.v1_1.MsgCreateResourceNode") + proto.RegisterType((*MsgCreateMetaNode)(nil), "stratos.register.v1_1.MsgCreateMetaNode") + proto.RegisterType((*MsgUpdateResourceNode)(nil), "stratos.register.v1_1.MsgUpdateResourceNode") + proto.RegisterType((*MsgUpdateMetaNode)(nil), "stratos.register.v1_1.MsgUpdateMetaNode") +} + +func init() { proto.RegisterFile("stratos/register/v1_1/tx.proto", fileDescriptor_f8c1d106b648f05b) } + +var fileDescriptor_f8c1d106b648f05b = []byte{ + // 709 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x4f, 0xd4, 0x4c, + 0x18, 0xde, 0x02, 0xbb, 0xdf, 0x47, 0x81, 0xef, 0x93, 0xba, 0xe8, 0x42, 0x62, 0x07, 0x1b, 0x0f, + 0x84, 0x84, 0xa9, 0x2b, 0x5e, 0xe4, 0x60, 0xc2, 0xa2, 0x27, 0x83, 0x31, 0x8b, 0xc6, 0xc4, 0xcb, + 0xa6, 0xed, 0x0e, 0xa5, 0x81, 0x9d, 0x69, 0x3a, 0xb3, 0x0b, 0xbd, 0x78, 0xf0, 0xe8, 0xc9, 0x84, + 0x7f, 0x82, 0x23, 0x07, 0xff, 0x08, 0xa2, 0x17, 0xe2, 0xc9, 0xc4, 0x64, 0x62, 0x96, 0x03, 0xc9, + 0x1e, 0xfb, 0x17, 0x98, 0x9d, 0x99, 0xee, 0x2f, 0x4a, 0xe2, 0x05, 0x62, 0x0c, 0x97, 0xdd, 0x99, + 0xf7, 0x79, 0xda, 0xa7, 0xef, 0x3b, 0xef, 0xf3, 0xb6, 0xba, 0x49, 0x59, 0xe4, 0x30, 0x42, 0xed, + 0x08, 0xf9, 0x01, 0x65, 0x28, 0xb2, 0x5b, 0xe5, 0x5a, 0xd9, 0x66, 0x07, 0x30, 0x8c, 0x08, 0x23, + 0xc6, 0x9c, 0xc2, 0x61, 0x8a, 0xc3, 0x2e, 0xbe, 0x50, 0xf4, 0x89, 0x4f, 0x04, 0xc3, 0xee, 0xae, + 0x24, 0x79, 0x61, 0xde, 0x23, 0xb4, 0x41, 0x68, 0x4d, 0x02, 0x72, 0xa3, 0xa0, 0x59, 0xa7, 0x11, + 0x60, 0x62, 0x8b, 0x5f, 0x15, 0xba, 0x2b, 0x09, 0x76, 0x83, 0xfa, 0x76, 0xab, 0xdc, 0xfd, 0x53, + 0x80, 0xa9, 0x00, 0xd7, 0xa1, 0xc8, 0x6e, 0x95, 0x5d, 0xc4, 0x9c, 0xb2, 0xed, 0x91, 0x00, 0xa7, + 0x32, 0x3e, 0x21, 0xfe, 0x1e, 0xb2, 0xc5, 0xce, 0x6d, 0x6e, 0xdb, 0x0e, 0x8e, 0x15, 0xf4, 0x20, + 0x3b, 0x9d, 0xde, 0xc3, 0x0b, 0x96, 0x75, 0x58, 0xd0, 0xe7, 0x36, 0xa9, 0xbf, 0x11, 0x21, 0x87, + 0xa1, 0x2a, 0xa2, 0xa4, 0x19, 0x79, 0xe8, 0x25, 0xa9, 0x23, 0x03, 0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a, 0x7d, 0x7c, 0x5d, 0x7e, 0x18, 0x9a, 0x95, 0xf9, 0x2b, 0x99, + 0x95, 0x17, 0x7b, 0xc8, 0x3a, 0x9c, 0x10, 0xb3, 0x52, 0x22, 0xbd, 0x59, 0x79, 0xd3, 0x59, 0x7f, + 0x51, 0x67, 0xfd, 0xce, 0xcc, 0x19, 0x3e, 0xff, 0xca, 0xdb, 0xa3, 0xb6, 0xa9, 0x9d, 0xb4, 0x4d, + 0xed, 0xb4, 0x6d, 0x6a, 0x3f, 0xdb, 0xa6, 0xf6, 0xe9, 0xcc, 0xcc, 0x9d, 0x9e, 0x99, 0xb9, 0xef, + 0x67, 0x66, 0xee, 0xdd, 0x13, 0x3f, 0x60, 0x3b, 0x4d, 0x17, 0x7a, 0xa4, 0x61, 0xab, 0x7b, 0x60, + 0xc4, 0xd2, 0xe5, 0x8a, 0xb7, 0xe3, 0x04, 0xd8, 0x3e, 0xe8, 0x7f, 0xb9, 0x76, 0x3b, 0x95, 0x8a, + 0xef, 0x57, 0xb7, 0x20, 0x5e, 0x7e, 0xab, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x07, 0x18, 0x75, + 0x36, 0xae, 0x0b, 0x00, 0x00, +} + +func (this *MsgCreateResourceNode) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*MsgCreateResourceNode) + if !ok { + that2, ok := that.(MsgCreateResourceNode) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.NetworkAddress != that1.NetworkAddress { + return false + } + if !this.Pubkey.Equal(that1.Pubkey) { + return false + } + if !this.Value.Equal(&that1.Value) { + return false + } + if this.OwnerAddress != that1.OwnerAddress { + return false + } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } + if !this.Description.Equal(&that1.Description) { + return false + } + if this.NodeType != that1.NodeType { + return false + } + return true +} +func (this *MsgCreateMetaNode) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*MsgCreateMetaNode) + if !ok { + that2, ok := that.(MsgCreateMetaNode) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.NetworkAddress != that1.NetworkAddress { + return false + } + if !this.Pubkey.Equal(that1.Pubkey) { + return false + } + if !this.Value.Equal(&that1.Value) { + return false + } + if this.OwnerAddress != that1.OwnerAddress { + return false + } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } + if !this.Description.Equal(&that1.Description) { + return false + } + return true +} +func (this *MsgUpdateResourceNode) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*MsgUpdateResourceNode) + if !ok { + that2, ok := that.(MsgUpdateResourceNode) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.Description.Equal(&that1.Description) { + return false + } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } + if this.NetworkAddress != that1.NetworkAddress { + return false + } + if this.OwnerAddress != that1.OwnerAddress { + return false + } + if this.NodeType != that1.NodeType { + return false + } + return true +} +func (this *MsgUpdateMetaNode) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*MsgUpdateMetaNode) + if !ok { + that2, ok := that.(MsgUpdateMetaNode) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.Description.Equal(&that1.Description) { + return false + } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } + if this.NetworkAddress != that1.NetworkAddress { + return false + } + if this.OwnerAddress != that1.OwnerAddress { + return false + } + return true +} +func (m *MsgCreateResourceNode) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateResourceNode) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NodeType != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.NodeType)) + i-- + dAtA[i] = 0x38 + } + { + size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } + if len(m.OwnerAddress) > 0 { + i -= len(m.OwnerAddress) + copy(dAtA[i:], m.OwnerAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) + i-- + dAtA[i] = 0x22 + } + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.Pubkey != nil { + { + size, err := m.Pubkey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.NetworkAddress) > 0 { + i -= len(m.NetworkAddress) + copy(dAtA[i:], m.NetworkAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateMetaNode) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateMetaNode) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } + if len(m.OwnerAddress) > 0 { + i -= len(m.OwnerAddress) + copy(dAtA[i:], m.OwnerAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) + i-- + dAtA[i] = 0x22 + } + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.Pubkey != nil { + { + size, err := m.Pubkey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.NetworkAddress) > 0 { + i -= len(m.NetworkAddress) + copy(dAtA[i:], m.NetworkAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateResourceNode) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateResourceNode) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NodeType != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.NodeType)) + i-- + dAtA[i] = 0x28 + } + if len(m.OwnerAddress) > 0 { + i -= len(m.OwnerAddress) + copy(dAtA[i:], m.OwnerAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) + i-- + dAtA[i] = 0x22 + } + if len(m.NetworkAddress) > 0 { + i -= len(m.NetworkAddress) + copy(dAtA[i:], m.NetworkAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgUpdateMetaNode) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateMetaNode) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OwnerAddress) > 0 { + i -= len(m.OwnerAddress) + copy(dAtA[i:], m.OwnerAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) + i-- + dAtA[i] = 0x22 + } + if len(m.NetworkAddress) > 0 { + i -= len(m.NetworkAddress) + copy(dAtA[i:], m.NetworkAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgCreateResourceNode) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NetworkAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Pubkey != nil { + l = m.Pubkey.Size() + n += 1 + l + sovTx(uint64(l)) + } + l = m.Value.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.OwnerAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Description.Size() + n += 1 + l + sovTx(uint64(l)) + if m.NodeType != 0 { + n += 1 + sovTx(uint64(m.NodeType)) + } + return n +} + +func (m *MsgCreateMetaNode) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NetworkAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Pubkey != nil { + l = m.Pubkey.Size() + n += 1 + l + sovTx(uint64(l)) + } + l = m.Value.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.OwnerAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Description.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateResourceNode) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Description.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NetworkAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.OwnerAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.NodeType != 0 { + n += 1 + sovTx(uint64(m.NodeType)) + } + return n +} + +func (m *MsgUpdateMetaNode) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Description.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.NetworkAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.OwnerAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgCreateResourceNode) Unmarshal(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 ErrIntOverflowTx + } + 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: MsgCreateResourceNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateResourceNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pubkey == nil { + m.Pubkey = &types.Any{} + } + if err := m.Pubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + } + m.NodeType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodeType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateMetaNode) Unmarshal(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 ErrIntOverflowTx + } + 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: MsgCreateMetaNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateMetaNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pubkey == nil { + m.Pubkey = &types.Any{} + } + if err := m.Pubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateResourceNode) Unmarshal(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 ErrIntOverflowTx + } + 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: MsgUpdateResourceNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateResourceNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + } + m.NodeType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodeType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateMetaNode) Unmarshal(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 ErrIntOverflowTx + } + 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: MsgUpdateMetaNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateMetaNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(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, ErrIntOverflowTx + } + 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, ErrIntOverflowTx + } + 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, ErrIntOverflowTx + } + 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, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) From 56122dd5199768a1910143d4d301e6625ae688f0 Mon Sep 17 00:00:00 2001 From: Xiong Date: Fri, 12 Jul 2024 15:29:43 -0400 Subject: [PATCH 2/4] update go.mod --- go.mod | 4 ++-- go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 72216da5..44e58ea8 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.18.2 - github.com/stratosnet/stratos-chain/api v0.0.0-20240318144156-bf3328f863f6 + github.com/stratosnet/stratos-chain/api v0.0.0-20240711220534-c9cbef9fd8e4 github.com/stretchr/testify v1.9.0 github.com/tyler-smith/go-bip39 v1.1.0 golang.org/x/crypto v0.21.0 @@ -243,7 +243,7 @@ replace ( // use stratos fork of cometbft: fork/v0.37.5 github.com/cometbft/cometbft => github.com/stratosnet/cometbft v0.37.6-0.20240620154138-dc955d478115 // use stratos fork of cosmos-sdk: v0.47.x-stratos - github.com/cosmos/cosmos-sdk => github.com/stratosnet/cosmos-sdk v0.47.12-0.20240521173001-c32cdc9a1e54 + github.com/cosmos/cosmos-sdk => github.com/stratosnet/cosmos-sdk v0.47.12-0.20240711204239-ae99645b490a // Fix upstream GHSA-h395-qcrw-5vmq and GHSA-3vp4-m3rf-835h vulnerabilities. // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.1 diff --git a/go.sum b/go.sum index 2f5d5e64..c55bf77b 100644 --- a/go.sum +++ b/go.sum @@ -1038,12 +1038,12 @@ github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= github.com/stratosnet/cometbft v0.37.6-0.20240620154138-dc955d478115 h1:Mc90IpZrL2Wd6zLMhK342kRysRbb0vMMKnO5ptDc5Yw= github.com/stratosnet/cometbft v0.37.6-0.20240620154138-dc955d478115/go.mod h1:QC+mU0lBhKn8r9qvmnq53Dmf3DWBt4VtkcKw2C81wxY= -github.com/stratosnet/cosmos-sdk v0.47.12-0.20240521173001-c32cdc9a1e54 h1:8uIe3hXJaPg/cgd6FqHSdiy8ntQQtzuA2C+3aFZTtkI= -github.com/stratosnet/cosmos-sdk v0.47.12-0.20240521173001-c32cdc9a1e54/go.mod h1:c7xno1ENztUrUOqZ70W5gi0pTh3pT/3C6O0y1WzHSwU= +github.com/stratosnet/cosmos-sdk v0.47.12-0.20240711204239-ae99645b490a h1:2wf/13Pu9ZYf7tlaVF1x8rvQisPbMOAqgbeH6WWavbo= +github.com/stratosnet/cosmos-sdk v0.47.12-0.20240711204239-ae99645b490a/go.mod h1:c7xno1ENztUrUOqZ70W5gi0pTh3pT/3C6O0y1WzHSwU= github.com/stratosnet/ledger-stratos-go v0.0.0-20230728214905-432bf09f4b6c h1:EuJdqCo1DYeKjkXaIYNnU7WIFmu+FzJwJtzYhY3sQpQ= github.com/stratosnet/ledger-stratos-go v0.0.0-20230728214905-432bf09f4b6c/go.mod h1:9T0Ii/AMWWnJRtvKYKB4kDdraaOP76J+K5/IbRXQgyc= -github.com/stratosnet/stratos-chain/api v0.0.0-20240318144156-bf3328f863f6 h1:xrwEM+1tq/DEuHQCKr83C40SX61DEUALaWq7YEpR/uM= -github.com/stratosnet/stratos-chain/api v0.0.0-20240318144156-bf3328f863f6/go.mod h1:FN6crwtoVjf2errz8Nsj0y/zRxuIRtxs5w8qLHKVBqA= +github.com/stratosnet/stratos-chain/api v0.0.0-20240711220534-c9cbef9fd8e4 h1:ci6Hgh39u4FjCV9t+YIohc53v/gE1IpgxUpTTo4ggSY= +github.com/stratosnet/stratos-chain/api v0.0.0-20240711220534-c9cbef9fd8e4/go.mod h1:FN6crwtoVjf2errz8Nsj0y/zRxuIRtxs5w8qLHKVBqA= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= From ec9024ef5de0700cd12040eb8ed55d62c2846052 Mon Sep 17 00:00:00 2001 From: Xiong Date: Tue, 16 Jul 2024 12:03:41 -0400 Subject: [PATCH 3/4] make v1_1 proto compatible with stratos-chain v11 msgs. v1 proto compatible with stratos-chain v12 msgs. --- api/stratos/register/v1/tx.pulsar.go | 588 ++++++++++++------------- api/stratos/register/v1_1/tx.pulsar.go | 588 ++++++++++++------------- proto/stratos/register/v1/tx.proto | 60 +-- proto/stratos/register/v1_1/tx.proto | 60 +-- x/register/types/tx.pb.go | 556 +++++++++++------------ x/register/types/v1_1/tx.pb.go | 434 +++++++++--------- 6 files changed, 1143 insertions(+), 1143 deletions(-) diff --git a/api/stratos/register/v1/tx.pulsar.go b/api/stratos/register/v1/tx.pulsar.go index e369bf8c..bafa630c 100644 --- a/api/stratos/register/v1/tx.pulsar.go +++ b/api/stratos/register/v1/tx.pulsar.go @@ -24,9 +24,9 @@ var ( fd_MsgCreateResourceNode_pubkey protoreflect.FieldDescriptor fd_MsgCreateResourceNode_value protoreflect.FieldDescriptor fd_MsgCreateResourceNode_owner_address protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgCreateResourceNode_description protoreflect.FieldDescriptor fd_MsgCreateResourceNode_node_type protoreflect.FieldDescriptor - fd_MsgCreateResourceNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { @@ -36,9 +36,9 @@ func init() { fd_MsgCreateResourceNode_pubkey = md_MsgCreateResourceNode.Fields().ByName("pubkey") fd_MsgCreateResourceNode_value = md_MsgCreateResourceNode.Fields().ByName("value") fd_MsgCreateResourceNode_owner_address = md_MsgCreateResourceNode.Fields().ByName("owner_address") + fd_MsgCreateResourceNode_beneficiary_address = md_MsgCreateResourceNode.Fields().ByName("beneficiary_address") fd_MsgCreateResourceNode_description = md_MsgCreateResourceNode.Fields().ByName("description") fd_MsgCreateResourceNode_node_type = md_MsgCreateResourceNode.Fields().ByName("node_type") - fd_MsgCreateResourceNode_beneficiary_address = md_MsgCreateResourceNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgCreateResourceNode)(nil) @@ -130,6 +130,12 @@ func (x *fastReflection_MsgCreateResourceNode) Range(f func(protoreflect.FieldDe return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgCreateResourceNode_beneficiary_address, value) { + return + } + } if x.Description != nil { value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) if !f(fd_MsgCreateResourceNode_description, value) { @@ -142,12 +148,6 @@ func (x *fastReflection_MsgCreateResourceNode) Range(f func(protoreflect.FieldDe return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgCreateResourceNode_beneficiary_address, value) { - return - } - } } // Has reports whether a field is populated. @@ -171,12 +171,12 @@ func (x *fastReflection_MsgCreateResourceNode) Has(fd protoreflect.FieldDescript return x.Value != nil case "stratos.register.v1.MsgCreateResourceNode.owner_address": return x.OwnerAddress != "" + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + return x.BeneficiaryAddress != "" case "stratos.register.v1.MsgCreateResourceNode.description": return x.Description != nil case "stratos.register.v1.MsgCreateResourceNode.node_type": return x.NodeType != uint32(0) - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -201,12 +201,12 @@ func (x *fastReflection_MsgCreateResourceNode) Clear(fd protoreflect.FieldDescri x.Value = nil case "stratos.register.v1.MsgCreateResourceNode.owner_address": x.OwnerAddress = "" + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + x.BeneficiaryAddress = "" case "stratos.register.v1.MsgCreateResourceNode.description": x.Description = nil case "stratos.register.v1.MsgCreateResourceNode.node_type": x.NodeType = uint32(0) - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -235,15 +235,15 @@ func (x *fastReflection_MsgCreateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1.MsgCreateResourceNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgCreateResourceNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) case "stratos.register.v1.MsgCreateResourceNode.node_type": value := x.NodeType return protoreflect.ValueOfUint32(value) - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -272,12 +272,12 @@ func (x *fastReflection_MsgCreateResourceNode) Set(fd protoreflect.FieldDescript x.Value = value.Message().Interface().(*v1beta1.Coin) case "stratos.register.v1.MsgCreateResourceNode.owner_address": x.OwnerAddress = value.Interface().(string) + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1.MsgCreateResourceNode.description": x.Description = value.Message().Interface().(*Description) case "stratos.register.v1.MsgCreateResourceNode.node_type": x.NodeType = uint32(value.Uint()) - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -317,10 +317,10 @@ func (x *fastReflection_MsgCreateResourceNode) Mutable(fd protoreflect.FieldDesc panic(fmt.Errorf("field network_address of message stratos.register.v1.MsgCreateResourceNode is not mutable")) case "stratos.register.v1.MsgCreateResourceNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1.MsgCreateResourceNode is not mutable")) - case "stratos.register.v1.MsgCreateResourceNode.node_type": - panic(fmt.Errorf("field node_type of message stratos.register.v1.MsgCreateResourceNode is not mutable")) case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgCreateResourceNode is not mutable")) + case "stratos.register.v1.MsgCreateResourceNode.node_type": + panic(fmt.Errorf("field node_type of message stratos.register.v1.MsgCreateResourceNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -344,13 +344,13 @@ func (x *fastReflection_MsgCreateResourceNode) NewField(fd protoreflect.FieldDes return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1.MsgCreateResourceNode.owner_address": return protoreflect.ValueOfString("") + case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": + return protoreflect.ValueOfString("") case "stratos.register.v1.MsgCreateResourceNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1.MsgCreateResourceNode.node_type": return protoreflect.ValueOfUint32(uint32(0)) - case "stratos.register.v1.MsgCreateResourceNode.beneficiary_address": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateResourceNode")) @@ -436,6 +436,10 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.Description != nil { l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) @@ -443,10 +447,6 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method if x.NodeType != 0 { n += 1 + runtime.Sov(uint64(x.NodeType)) } - l = len(x.BeneficiaryAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -476,17 +476,10 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- - dAtA[i] = 0x3a - } if x.NodeType != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.NodeType)) i-- - dAtA[i] = 0x30 + dAtA[i] = 0x38 } if x.Description != nil { encoded, err := options.Marshal(x.Description) @@ -500,6 +493,13 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- + dAtA[i] = 0x32 + } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- dAtA[i] = 0x2a } if len(x.OwnerAddress) > 0 { @@ -731,9 +731,9 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -743,33 +743,29 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Description == nil { - x.Description = &Description{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - x.NodeType = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -779,16 +775,33 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - x.NodeType |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var stringLen uint64 + x.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -798,24 +811,11 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1213,8 +1213,8 @@ var ( fd_MsgCreateMetaNode_pubkey protoreflect.FieldDescriptor fd_MsgCreateMetaNode_value protoreflect.FieldDescriptor fd_MsgCreateMetaNode_owner_address protoreflect.FieldDescriptor - fd_MsgCreateMetaNode_description protoreflect.FieldDescriptor fd_MsgCreateMetaNode_beneficiary_address protoreflect.FieldDescriptor + fd_MsgCreateMetaNode_description protoreflect.FieldDescriptor ) func init() { @@ -1224,8 +1224,8 @@ func init() { fd_MsgCreateMetaNode_pubkey = md_MsgCreateMetaNode.Fields().ByName("pubkey") fd_MsgCreateMetaNode_value = md_MsgCreateMetaNode.Fields().ByName("value") fd_MsgCreateMetaNode_owner_address = md_MsgCreateMetaNode.Fields().ByName("owner_address") - fd_MsgCreateMetaNode_description = md_MsgCreateMetaNode.Fields().ByName("description") fd_MsgCreateMetaNode_beneficiary_address = md_MsgCreateMetaNode.Fields().ByName("beneficiary_address") + fd_MsgCreateMetaNode_description = md_MsgCreateMetaNode.Fields().ByName("description") } var _ protoreflect.Message = (*fastReflection_MsgCreateMetaNode)(nil) @@ -1317,18 +1317,18 @@ func (x *fastReflection_MsgCreateMetaNode) Range(f func(protoreflect.FieldDescri return } } - if x.Description != nil { - value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) - if !f(fd_MsgCreateMetaNode_description, value) { - return - } - } if x.BeneficiaryAddress != "" { value := protoreflect.ValueOfString(x.BeneficiaryAddress) if !f(fd_MsgCreateMetaNode_beneficiary_address, value) { return } } + if x.Description != nil { + value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + if !f(fd_MsgCreateMetaNode_description, value) { + return + } + } } // Has reports whether a field is populated. @@ -1352,10 +1352,10 @@ func (x *fastReflection_MsgCreateMetaNode) Has(fd protoreflect.FieldDescriptor) return x.Value != nil case "stratos.register.v1.MsgCreateMetaNode.owner_address": return x.OwnerAddress != "" - case "stratos.register.v1.MsgCreateMetaNode.description": - return x.Description != nil case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": return x.BeneficiaryAddress != "" + case "stratos.register.v1.MsgCreateMetaNode.description": + return x.Description != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1380,10 +1380,10 @@ func (x *fastReflection_MsgCreateMetaNode) Clear(fd protoreflect.FieldDescriptor x.Value = nil case "stratos.register.v1.MsgCreateMetaNode.owner_address": x.OwnerAddress = "" - case "stratos.register.v1.MsgCreateMetaNode.description": - x.Description = nil case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": x.BeneficiaryAddress = "" + case "stratos.register.v1.MsgCreateMetaNode.description": + x.Description = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1412,12 +1412,12 @@ func (x *fastReflection_MsgCreateMetaNode) Get(descriptor protoreflect.FieldDesc case "stratos.register.v1.MsgCreateMetaNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) - case "stratos.register.v1.MsgCreateMetaNode.description": - value := x.Description - return protoreflect.ValueOfMessage(value.ProtoReflect()) case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": value := x.BeneficiaryAddress return protoreflect.ValueOfString(value) + case "stratos.register.v1.MsgCreateMetaNode.description": + value := x.Description + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1446,10 +1446,10 @@ func (x *fastReflection_MsgCreateMetaNode) Set(fd protoreflect.FieldDescriptor, x.Value = value.Message().Interface().(*v1beta1.Coin) case "stratos.register.v1.MsgCreateMetaNode.owner_address": x.OwnerAddress = value.Interface().(string) - case "stratos.register.v1.MsgCreateMetaNode.description": - x.Description = value.Message().Interface().(*Description) case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": x.BeneficiaryAddress = value.Interface().(string) + case "stratos.register.v1.MsgCreateMetaNode.description": + x.Description = value.Message().Interface().(*Description) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1514,11 +1514,11 @@ func (x *fastReflection_MsgCreateMetaNode) NewField(fd protoreflect.FieldDescrip return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1.MsgCreateMetaNode.owner_address": return protoreflect.ValueOfString("") + case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": + return protoreflect.ValueOfString("") case "stratos.register.v1.MsgCreateMetaNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "stratos.register.v1.MsgCreateMetaNode.beneficiary_address": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgCreateMetaNode")) @@ -1604,14 +1604,14 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Description != nil { - l = options.Size(x.Description) - n += 1 + l + runtime.Sov(uint64(l)) - } l = len(x.BeneficiaryAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Description != nil { + l = options.Size(x.Description) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1641,13 +1641,6 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- - dAtA[i] = 0x32 - } if x.Description != nil { encoded, err := options.Marshal(x.Description) if err != nil { @@ -1660,6 +1653,13 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- + dAtA[i] = 0x32 + } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- dAtA[i] = 0x2a } if len(x.OwnerAddress) > 0 { @@ -1891,9 +1891,9 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1903,33 +1903,29 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Description == nil { - x.Description = &Description{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1939,23 +1935,27 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -4031,20 +4031,20 @@ func (x *fastReflection_MsgRemoveMetaNodeResponse) ProtoMethods() *protoiface.Me var ( md_MsgUpdateResourceNode protoreflect.MessageDescriptor fd_MsgUpdateResourceNode_description protoreflect.FieldDescriptor + fd_MsgUpdateResourceNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_network_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_owner_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_node_type protoreflect.FieldDescriptor - fd_MsgUpdateResourceNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { file_stratos_register_v1_tx_proto_init() md_MsgUpdateResourceNode = File_stratos_register_v1_tx_proto.Messages().ByName("MsgUpdateResourceNode") fd_MsgUpdateResourceNode_description = md_MsgUpdateResourceNode.Fields().ByName("description") + fd_MsgUpdateResourceNode_beneficiary_address = md_MsgUpdateResourceNode.Fields().ByName("beneficiary_address") fd_MsgUpdateResourceNode_network_address = md_MsgUpdateResourceNode.Fields().ByName("network_address") fd_MsgUpdateResourceNode_owner_address = md_MsgUpdateResourceNode.Fields().ByName("owner_address") fd_MsgUpdateResourceNode_node_type = md_MsgUpdateResourceNode.Fields().ByName("node_type") - fd_MsgUpdateResourceNode_beneficiary_address = md_MsgUpdateResourceNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgUpdateResourceNode)(nil) @@ -4118,6 +4118,12 @@ func (x *fastReflection_MsgUpdateResourceNode) Range(f func(protoreflect.FieldDe return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgUpdateResourceNode_beneficiary_address, value) { + return + } + } if x.NetworkAddress != "" { value := protoreflect.ValueOfString(x.NetworkAddress) if !f(fd_MsgUpdateResourceNode_network_address, value) { @@ -4136,12 +4142,6 @@ func (x *fastReflection_MsgUpdateResourceNode) Range(f func(protoreflect.FieldDe return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgUpdateResourceNode_beneficiary_address, value) { - return - } - } } // Has reports whether a field is populated. @@ -4159,14 +4159,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Has(fd protoreflect.FieldDescript switch fd.FullName() { case "stratos.register.v1.MsgUpdateResourceNode.description": return x.Description != nil + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + return x.BeneficiaryAddress != "" case "stratos.register.v1.MsgUpdateResourceNode.network_address": return x.NetworkAddress != "" case "stratos.register.v1.MsgUpdateResourceNode.owner_address": return x.OwnerAddress != "" case "stratos.register.v1.MsgUpdateResourceNode.node_type": return x.NodeType != uint32(0) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4185,14 +4185,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Clear(fd protoreflect.FieldDescri switch fd.FullName() { case "stratos.register.v1.MsgUpdateResourceNode.description": x.Description = nil + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + x.BeneficiaryAddress = "" case "stratos.register.v1.MsgUpdateResourceNode.network_address": x.NetworkAddress = "" case "stratos.register.v1.MsgUpdateResourceNode.owner_address": x.OwnerAddress = "" case "stratos.register.v1.MsgUpdateResourceNode.node_type": x.NodeType = uint32(0) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4212,6 +4212,9 @@ func (x *fastReflection_MsgUpdateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1.MsgUpdateResourceNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgUpdateResourceNode.network_address": value := x.NetworkAddress return protoreflect.ValueOfString(value) @@ -4221,9 +4224,6 @@ func (x *fastReflection_MsgUpdateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1.MsgUpdateResourceNode.node_type": value := x.NodeType return protoreflect.ValueOfUint32(value) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4246,14 +4246,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Set(fd protoreflect.FieldDescript switch fd.FullName() { case "stratos.register.v1.MsgUpdateResourceNode.description": x.Description = value.Message().Interface().(*Description) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateResourceNode.network_address": x.NetworkAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateResourceNode.owner_address": x.OwnerAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateResourceNode.node_type": x.NodeType = uint32(value.Uint()) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4279,14 +4279,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Mutable(fd protoreflect.FieldDesc x.Description = new(Description) } return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1.MsgUpdateResourceNode.network_address": panic(fmt.Errorf("field network_address of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1.MsgUpdateResourceNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1.MsgUpdateResourceNode.node_type": panic(fmt.Errorf("field node_type of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgUpdateResourceNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4303,14 +4303,14 @@ func (x *fastReflection_MsgUpdateResourceNode) NewField(fd protoreflect.FieldDes case "stratos.register.v1.MsgUpdateResourceNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": + return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateResourceNode.network_address": return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateResourceNode.owner_address": return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateResourceNode.node_type": return protoreflect.ValueOfUint32(uint32(0)) - case "stratos.register.v1.MsgUpdateResourceNode.beneficiary_address": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateResourceNode")) @@ -4384,6 +4384,10 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } l = len(x.NetworkAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -4395,10 +4399,6 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if x.NodeType != 0 { n += 1 + runtime.Sov(uint64(x.NodeType)) } - l = len(x.BeneficiaryAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -4428,30 +4428,30 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- - dAtA[i] = 0x2a - } if x.NodeType != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.NodeType)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x28 } if len(x.OwnerAddress) > 0 { i -= len(x.OwnerAddress) copy(dAtA[i:], x.OwnerAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } if len(x.NetworkAddress) > 0 { i -= len(x.NetworkAddress) copy(dAtA[i:], x.NetworkAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) i-- + dAtA[i] = 0x1a + } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- dAtA[i] = 0x12 } if x.Description != nil { @@ -4555,7 +4555,7 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4583,11 +4583,11 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4615,30 +4615,11 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.OwnerAddress = string(dAtA[iNdEx:postIndex]) + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) - } - x.NodeType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.NodeType |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4666,8 +4647,27 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + } + x.NodeType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.NodeType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5062,18 +5062,18 @@ func (x *fastReflection_MsgUpdateResourceNodeResponse) ProtoMethods() *protoifac var ( md_MsgUpdateMetaNode protoreflect.MessageDescriptor fd_MsgUpdateMetaNode_description protoreflect.FieldDescriptor + fd_MsgUpdateMetaNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgUpdateMetaNode_network_address protoreflect.FieldDescriptor fd_MsgUpdateMetaNode_owner_address protoreflect.FieldDescriptor - fd_MsgUpdateMetaNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { file_stratos_register_v1_tx_proto_init() md_MsgUpdateMetaNode = File_stratos_register_v1_tx_proto.Messages().ByName("MsgUpdateMetaNode") fd_MsgUpdateMetaNode_description = md_MsgUpdateMetaNode.Fields().ByName("description") + fd_MsgUpdateMetaNode_beneficiary_address = md_MsgUpdateMetaNode.Fields().ByName("beneficiary_address") fd_MsgUpdateMetaNode_network_address = md_MsgUpdateMetaNode.Fields().ByName("network_address") fd_MsgUpdateMetaNode_owner_address = md_MsgUpdateMetaNode.Fields().ByName("owner_address") - fd_MsgUpdateMetaNode_beneficiary_address = md_MsgUpdateMetaNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgUpdateMetaNode)(nil) @@ -5147,6 +5147,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Range(f func(protoreflect.FieldDescri return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgUpdateMetaNode_beneficiary_address, value) { + return + } + } if x.NetworkAddress != "" { value := protoreflect.ValueOfString(x.NetworkAddress) if !f(fd_MsgUpdateMetaNode_network_address, value) { @@ -5159,12 +5165,6 @@ func (x *fastReflection_MsgUpdateMetaNode) Range(f func(protoreflect.FieldDescri return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgUpdateMetaNode_beneficiary_address, value) { - return - } - } } // Has reports whether a field is populated. @@ -5182,12 +5182,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Has(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "stratos.register.v1.MsgUpdateMetaNode.description": return x.Description != nil + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + return x.BeneficiaryAddress != "" case "stratos.register.v1.MsgUpdateMetaNode.network_address": return x.NetworkAddress != "" case "stratos.register.v1.MsgUpdateMetaNode.owner_address": return x.OwnerAddress != "" - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5206,12 +5206,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Clear(fd protoreflect.FieldDescriptor switch fd.FullName() { case "stratos.register.v1.MsgUpdateMetaNode.description": x.Description = nil + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + x.BeneficiaryAddress = "" case "stratos.register.v1.MsgUpdateMetaNode.network_address": x.NetworkAddress = "" case "stratos.register.v1.MsgUpdateMetaNode.owner_address": x.OwnerAddress = "" - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5231,15 +5231,15 @@ func (x *fastReflection_MsgUpdateMetaNode) Get(descriptor protoreflect.FieldDesc case "stratos.register.v1.MsgUpdateMetaNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgUpdateMetaNode.network_address": value := x.NetworkAddress return protoreflect.ValueOfString(value) case "stratos.register.v1.MsgUpdateMetaNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5262,12 +5262,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Set(fd protoreflect.FieldDescriptor, switch fd.FullName() { case "stratos.register.v1.MsgUpdateMetaNode.description": x.Description = value.Message().Interface().(*Description) + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateMetaNode.network_address": x.NetworkAddress = value.Interface().(string) case "stratos.register.v1.MsgUpdateMetaNode.owner_address": x.OwnerAddress = value.Interface().(string) - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5293,12 +5293,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Mutable(fd protoreflect.FieldDescript x.Description = new(Description) } return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgUpdateMetaNode is not mutable")) case "stratos.register.v1.MsgUpdateMetaNode.network_address": panic(fmt.Errorf("field network_address of message stratos.register.v1.MsgUpdateMetaNode is not mutable")) case "stratos.register.v1.MsgUpdateMetaNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1.MsgUpdateMetaNode is not mutable")) - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1.MsgUpdateMetaNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5315,12 +5315,12 @@ func (x *fastReflection_MsgUpdateMetaNode) NewField(fd protoreflect.FieldDescrip case "stratos.register.v1.MsgUpdateMetaNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": + return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateMetaNode.network_address": return protoreflect.ValueOfString("") case "stratos.register.v1.MsgUpdateMetaNode.owner_address": return protoreflect.ValueOfString("") - case "stratos.register.v1.MsgUpdateMetaNode.beneficiary_address": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1.MsgUpdateMetaNode")) @@ -5394,15 +5394,15 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NetworkAddress) + l = len(x.BeneficiaryAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.OwnerAddress) + l = len(x.NetworkAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) + l = len(x.OwnerAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -5435,25 +5435,25 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- - dAtA[i] = 0x22 - } if len(x.OwnerAddress) > 0 { i -= len(x.OwnerAddress) copy(dAtA[i:], x.OwnerAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } if len(x.NetworkAddress) > 0 { i -= len(x.NetworkAddress) copy(dAtA[i:], x.NetworkAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) i-- + dAtA[i] = 0x1a + } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- dAtA[i] = 0x12 } if x.Description != nil { @@ -5557,7 +5557,7 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5585,11 +5585,11 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5617,11 +5617,11 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.OwnerAddress = string(dAtA[iNdEx:postIndex]) + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5649,7 +5649,7 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11826,9 +11826,9 @@ type MsgCreateResourceNode struct { Pubkey *anypb.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Value *v1beta1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - Description *Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - NodeType uint32 `protobuf:"varint,6,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,7,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + Description *Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + NodeType uint32 `protobuf:"varint,7,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` } func (x *MsgCreateResourceNode) Reset() { @@ -11879,6 +11879,13 @@ func (x *MsgCreateResourceNode) GetOwnerAddress() string { return "" } +func (x *MsgCreateResourceNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + func (x *MsgCreateResourceNode) GetDescription() *Description { if x != nil { return x.Description @@ -11893,13 +11900,6 @@ func (x *MsgCreateResourceNode) GetNodeType() uint32 { return 0 } -func (x *MsgCreateResourceNode) GetBeneficiaryAddress() string { - if x != nil { - return x.BeneficiaryAddress - } - return "" -} - // MsgCreateResourceNodeResponse defines the CreateResourceNodeTx response type type MsgCreateResourceNodeResponse struct { state protoimpl.MessageState @@ -11937,8 +11937,8 @@ type MsgCreateMetaNode struct { Pubkey *anypb.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Value *v1beta1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - Description *Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,6,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + Description *Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` } func (x *MsgCreateMetaNode) Reset() { @@ -11989,18 +11989,18 @@ func (x *MsgCreateMetaNode) GetOwnerAddress() string { return "" } -func (x *MsgCreateMetaNode) GetDescription() *Description { +func (x *MsgCreateMetaNode) GetBeneficiaryAddress() string { if x != nil { - return x.Description + return x.BeneficiaryAddress } - return nil + return "" } -func (x *MsgCreateMetaNode) GetBeneficiaryAddress() string { +func (x *MsgCreateMetaNode) GetDescription() *Description { if x != nil { - return x.BeneficiaryAddress + return x.Description } - return "" + return nil } // MsgCreateMetaNodeResponse defines the CreateMetaNode response type @@ -12179,10 +12179,10 @@ type MsgUpdateResourceNode struct { unknownFields protoimpl.UnknownFields Description *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` - OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - NodeType uint32 `protobuf:"varint,4,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + NodeType uint32 `protobuf:"varint,5,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` } func (x *MsgUpdateResourceNode) Reset() { @@ -12212,6 +12212,13 @@ func (x *MsgUpdateResourceNode) GetDescription() *Description { return nil } +func (x *MsgUpdateResourceNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + func (x *MsgUpdateResourceNode) GetNetworkAddress() string { if x != nil { return x.NetworkAddress @@ -12233,13 +12240,6 @@ func (x *MsgUpdateResourceNode) GetNodeType() uint32 { return 0 } -func (x *MsgUpdateResourceNode) GetBeneficiaryAddress() string { - if x != nil { - return x.BeneficiaryAddress - } - return "" -} - // MsgUpdateResourceNodeResponse defines the Msg/UpdateResourceNode response type. type MsgUpdateResourceNodeResponse struct { state protoimpl.MessageState @@ -12274,9 +12274,9 @@ type MsgUpdateMetaNode struct { unknownFields protoimpl.UnknownFields Description *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` - OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,4,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` + NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` } func (x *MsgUpdateMetaNode) Reset() { @@ -12306,23 +12306,23 @@ func (x *MsgUpdateMetaNode) GetDescription() *Description { return nil } -func (x *MsgUpdateMetaNode) GetNetworkAddress() string { +func (x *MsgUpdateMetaNode) GetBeneficiaryAddress() string { if x != nil { - return x.NetworkAddress + return x.BeneficiaryAddress } return "" } -func (x *MsgUpdateMetaNode) GetOwnerAddress() string { +func (x *MsgUpdateMetaNode) GetNetworkAddress() string { if x != nil { - return x.OwnerAddress + return x.NetworkAddress } return "" } -func (x *MsgUpdateMetaNode) GetBeneficiaryAddress() string { +func (x *MsgUpdateMetaNode) GetOwnerAddress() string { if x != nil { - return x.BeneficiaryAddress + return x.OwnerAddress } return "" } @@ -12898,26 +12898,26 @@ var file_stratos_register_v1_tx_proto_rawDesc = []byte{ 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, + 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, + 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, + 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, + 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, + 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, - 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, + 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x22, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x7e, 0x0a, - 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, - 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, - 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, - 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x34, 0x82, + 0x70, 0x65, 0x22, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, @@ -12949,22 +12949,22 @@ var file_stratos_register_v1_tx_proto_rawDesc = []byte{ 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, + 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, + 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, + 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, + 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, + 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x72, 0x0a, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, - 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7e, - 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, - 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, - 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, - 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x30, + 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, @@ -13021,32 +13021,32 @@ var file_stratos_register_v1_tx_proto_rawDesc = []byte{ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, + 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, + 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, + 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, + 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x08, - 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, - 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, - 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, - 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, - 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, - 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, + 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0x1f, @@ -13060,28 +13060,28 @@ var file_stratos_register_v1_tx_proto_rawDesc = []byte{ 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, + 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, + 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, + 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, + 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, + 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, - 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, - 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, - 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, diff --git a/api/stratos/register/v1_1/tx.pulsar.go b/api/stratos/register/v1_1/tx.pulsar.go index 233a66ca..db0b764c 100644 --- a/api/stratos/register/v1_1/tx.pulsar.go +++ b/api/stratos/register/v1_1/tx.pulsar.go @@ -24,9 +24,9 @@ var ( fd_MsgCreateResourceNode_pubkey protoreflect.FieldDescriptor fd_MsgCreateResourceNode_value protoreflect.FieldDescriptor fd_MsgCreateResourceNode_owner_address protoreflect.FieldDescriptor - fd_MsgCreateResourceNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgCreateResourceNode_description protoreflect.FieldDescriptor fd_MsgCreateResourceNode_node_type protoreflect.FieldDescriptor + fd_MsgCreateResourceNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { @@ -36,9 +36,9 @@ func init() { fd_MsgCreateResourceNode_pubkey = md_MsgCreateResourceNode.Fields().ByName("pubkey") fd_MsgCreateResourceNode_value = md_MsgCreateResourceNode.Fields().ByName("value") fd_MsgCreateResourceNode_owner_address = md_MsgCreateResourceNode.Fields().ByName("owner_address") - fd_MsgCreateResourceNode_beneficiary_address = md_MsgCreateResourceNode.Fields().ByName("beneficiary_address") fd_MsgCreateResourceNode_description = md_MsgCreateResourceNode.Fields().ByName("description") fd_MsgCreateResourceNode_node_type = md_MsgCreateResourceNode.Fields().ByName("node_type") + fd_MsgCreateResourceNode_beneficiary_address = md_MsgCreateResourceNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgCreateResourceNode)(nil) @@ -130,12 +130,6 @@ func (x *fastReflection_MsgCreateResourceNode) Range(f func(protoreflect.FieldDe return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgCreateResourceNode_beneficiary_address, value) { - return - } - } if x.Description != nil { value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) if !f(fd_MsgCreateResourceNode_description, value) { @@ -148,6 +142,12 @@ func (x *fastReflection_MsgCreateResourceNode) Range(f func(protoreflect.FieldDe return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgCreateResourceNode_beneficiary_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -171,12 +171,12 @@ func (x *fastReflection_MsgCreateResourceNode) Has(fd protoreflect.FieldDescript return x.Value != nil case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": return x.OwnerAddress != "" - case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": - return x.BeneficiaryAddress != "" case "stratos.register.v1_1.MsgCreateResourceNode.description": return x.Description != nil case "stratos.register.v1_1.MsgCreateResourceNode.node_type": return x.NodeType != uint32(0) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) @@ -201,12 +201,12 @@ func (x *fastReflection_MsgCreateResourceNode) Clear(fd protoreflect.FieldDescri x.Value = nil case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": x.OwnerAddress = "" - case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": - x.BeneficiaryAddress = "" case "stratos.register.v1_1.MsgCreateResourceNode.description": x.Description = nil case "stratos.register.v1_1.MsgCreateResourceNode.node_type": x.NodeType = uint32(0) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) @@ -235,15 +235,15 @@ func (x *fastReflection_MsgCreateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) - case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) case "stratos.register.v1_1.MsgCreateResourceNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) case "stratos.register.v1_1.MsgCreateResourceNode.node_type": value := x.NodeType return protoreflect.ValueOfUint32(value) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) @@ -272,12 +272,12 @@ func (x *fastReflection_MsgCreateResourceNode) Set(fd protoreflect.FieldDescript x.Value = value.Message().Interface().(*v1beta1.Coin) case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": x.OwnerAddress = value.Interface().(string) - case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1_1.MsgCreateResourceNode.description": x.Description = value.Message().Interface().(*Description) case "stratos.register.v1_1.MsgCreateResourceNode.node_type": x.NodeType = uint32(value.Uint()) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) @@ -317,10 +317,10 @@ func (x *fastReflection_MsgCreateResourceNode) Mutable(fd protoreflect.FieldDesc panic(fmt.Errorf("field network_address of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) - case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": - panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) case "stratos.register.v1_1.MsgCreateResourceNode.node_type": panic(fmt.Errorf("field node_type of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgCreateResourceNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) @@ -344,13 +344,13 @@ func (x *fastReflection_MsgCreateResourceNode) NewField(fd protoreflect.FieldDes return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1_1.MsgCreateResourceNode.owner_address": return protoreflect.ValueOfString("") - case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": - return protoreflect.ValueOfString("") case "stratos.register.v1_1.MsgCreateResourceNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1_1.MsgCreateResourceNode.node_type": return protoreflect.ValueOfUint32(uint32(0)) + case "stratos.register.v1_1.MsgCreateResourceNode.beneficiary_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateResourceNode")) @@ -436,10 +436,6 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.Description != nil { l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) @@ -447,6 +443,10 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method if x.NodeType != 0 { n += 1 + runtime.Sov(uint64(x.NodeType)) } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -476,10 +476,17 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x3a + } if x.NodeType != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.NodeType)) i-- - dAtA[i] = 0x38 + dAtA[i] = 0x30 } if x.Description != nil { encoded, err := options.Marshal(x.Description) @@ -493,13 +500,6 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x32 - } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- dAtA[i] = 0x2a } if len(x.OwnerAddress) > 0 { @@ -731,9 +731,9 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -743,29 +743,33 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var msglen int + x.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -775,33 +779,16 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Description == nil { - x.Description = &Description{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - x.NodeType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -811,11 +798,24 @@ func (x *fastReflection_MsgCreateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - x.NodeType |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -857,8 +857,8 @@ var ( fd_MsgCreateMetaNode_pubkey protoreflect.FieldDescriptor fd_MsgCreateMetaNode_value protoreflect.FieldDescriptor fd_MsgCreateMetaNode_owner_address protoreflect.FieldDescriptor - fd_MsgCreateMetaNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgCreateMetaNode_description protoreflect.FieldDescriptor + fd_MsgCreateMetaNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { @@ -868,8 +868,8 @@ func init() { fd_MsgCreateMetaNode_pubkey = md_MsgCreateMetaNode.Fields().ByName("pubkey") fd_MsgCreateMetaNode_value = md_MsgCreateMetaNode.Fields().ByName("value") fd_MsgCreateMetaNode_owner_address = md_MsgCreateMetaNode.Fields().ByName("owner_address") - fd_MsgCreateMetaNode_beneficiary_address = md_MsgCreateMetaNode.Fields().ByName("beneficiary_address") fd_MsgCreateMetaNode_description = md_MsgCreateMetaNode.Fields().ByName("description") + fd_MsgCreateMetaNode_beneficiary_address = md_MsgCreateMetaNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgCreateMetaNode)(nil) @@ -961,18 +961,18 @@ func (x *fastReflection_MsgCreateMetaNode) Range(f func(protoreflect.FieldDescri return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgCreateMetaNode_beneficiary_address, value) { - return - } - } if x.Description != nil { value := protoreflect.ValueOfMessage(x.Description.ProtoReflect()) if !f(fd_MsgCreateMetaNode_description, value) { return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgCreateMetaNode_beneficiary_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -996,10 +996,10 @@ func (x *fastReflection_MsgCreateMetaNode) Has(fd protoreflect.FieldDescriptor) return x.Value != nil case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": return x.OwnerAddress != "" - case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": - return x.BeneficiaryAddress != "" case "stratos.register.v1_1.MsgCreateMetaNode.description": return x.Description != nil + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) @@ -1024,10 +1024,10 @@ func (x *fastReflection_MsgCreateMetaNode) Clear(fd protoreflect.FieldDescriptor x.Value = nil case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": x.OwnerAddress = "" - case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": - x.BeneficiaryAddress = "" case "stratos.register.v1_1.MsgCreateMetaNode.description": x.Description = nil + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) @@ -1056,12 +1056,12 @@ func (x *fastReflection_MsgCreateMetaNode) Get(descriptor protoreflect.FieldDesc case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) - case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) case "stratos.register.v1_1.MsgCreateMetaNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) @@ -1090,10 +1090,10 @@ func (x *fastReflection_MsgCreateMetaNode) Set(fd protoreflect.FieldDescriptor, x.Value = value.Message().Interface().(*v1beta1.Coin) case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": x.OwnerAddress = value.Interface().(string) - case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1_1.MsgCreateMetaNode.description": x.Description = value.Message().Interface().(*Description) + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) @@ -1158,11 +1158,11 @@ func (x *fastReflection_MsgCreateMetaNode) NewField(fd protoreflect.FieldDescrip return protoreflect.ValueOfMessage(m.ProtoReflect()) case "stratos.register.v1_1.MsgCreateMetaNode.owner_address": return protoreflect.ValueOfString("") - case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": - return protoreflect.ValueOfString("") case "stratos.register.v1_1.MsgCreateMetaNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "stratos.register.v1_1.MsgCreateMetaNode.beneficiary_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgCreateMetaNode")) @@ -1248,14 +1248,14 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.Description != nil { l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1285,6 +1285,13 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x32 + } if x.Description != nil { encoded, err := options.Marshal(x.Description) if err != nil { @@ -1297,13 +1304,6 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x32 - } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- dAtA[i] = 0x2a } if len(x.OwnerAddress) > 0 { @@ -1535,9 +1535,9 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1547,29 +1547,33 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if x.Description == nil { + x.Description = &Description{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1579,27 +1583,23 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Description == nil { - x.Description = &Description{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Description); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1639,20 +1639,20 @@ func (x *fastReflection_MsgCreateMetaNode) ProtoMethods() *protoiface.Methods { var ( md_MsgUpdateResourceNode protoreflect.MessageDescriptor fd_MsgUpdateResourceNode_description protoreflect.FieldDescriptor - fd_MsgUpdateResourceNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_network_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_owner_address protoreflect.FieldDescriptor fd_MsgUpdateResourceNode_node_type protoreflect.FieldDescriptor + fd_MsgUpdateResourceNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { file_stratos_register_v1_1_tx_proto_init() md_MsgUpdateResourceNode = File_stratos_register_v1_1_tx_proto.Messages().ByName("MsgUpdateResourceNode") fd_MsgUpdateResourceNode_description = md_MsgUpdateResourceNode.Fields().ByName("description") - fd_MsgUpdateResourceNode_beneficiary_address = md_MsgUpdateResourceNode.Fields().ByName("beneficiary_address") fd_MsgUpdateResourceNode_network_address = md_MsgUpdateResourceNode.Fields().ByName("network_address") fd_MsgUpdateResourceNode_owner_address = md_MsgUpdateResourceNode.Fields().ByName("owner_address") fd_MsgUpdateResourceNode_node_type = md_MsgUpdateResourceNode.Fields().ByName("node_type") + fd_MsgUpdateResourceNode_beneficiary_address = md_MsgUpdateResourceNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgUpdateResourceNode)(nil) @@ -1726,12 +1726,6 @@ func (x *fastReflection_MsgUpdateResourceNode) Range(f func(protoreflect.FieldDe return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgUpdateResourceNode_beneficiary_address, value) { - return - } - } if x.NetworkAddress != "" { value := protoreflect.ValueOfString(x.NetworkAddress) if !f(fd_MsgUpdateResourceNode_network_address, value) { @@ -1750,6 +1744,12 @@ func (x *fastReflection_MsgUpdateResourceNode) Range(f func(protoreflect.FieldDe return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgUpdateResourceNode_beneficiary_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -1767,14 +1767,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Has(fd protoreflect.FieldDescript switch fd.FullName() { case "stratos.register.v1_1.MsgUpdateResourceNode.description": return x.Description != nil - case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": - return x.BeneficiaryAddress != "" case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": return x.NetworkAddress != "" case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": return x.OwnerAddress != "" case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": return x.NodeType != uint32(0) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) @@ -1793,14 +1793,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Clear(fd protoreflect.FieldDescri switch fd.FullName() { case "stratos.register.v1_1.MsgUpdateResourceNode.description": x.Description = nil - case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": - x.BeneficiaryAddress = "" case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": x.NetworkAddress = "" case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": x.OwnerAddress = "" case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": x.NodeType = uint32(0) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) @@ -1820,9 +1820,6 @@ func (x *fastReflection_MsgUpdateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1_1.MsgUpdateResourceNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": value := x.NetworkAddress return protoreflect.ValueOfString(value) @@ -1832,6 +1829,9 @@ func (x *fastReflection_MsgUpdateResourceNode) Get(descriptor protoreflect.Field case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": value := x.NodeType return protoreflect.ValueOfUint32(value) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) @@ -1854,14 +1854,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Set(fd protoreflect.FieldDescript switch fd.FullName() { case "stratos.register.v1_1.MsgUpdateResourceNode.description": x.Description = value.Message().Interface().(*Description) - case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": x.NetworkAddress = value.Interface().(string) case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": x.OwnerAddress = value.Interface().(string) case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": x.NodeType = uint32(value.Uint()) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) @@ -1887,14 +1887,14 @@ func (x *fastReflection_MsgUpdateResourceNode) Mutable(fd protoreflect.FieldDesc x.Description = new(Description) } return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) - case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": - panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": panic(fmt.Errorf("field network_address of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": panic(fmt.Errorf("field node_type of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgUpdateResourceNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) @@ -1911,14 +1911,14 @@ func (x *fastReflection_MsgUpdateResourceNode) NewField(fd protoreflect.FieldDes case "stratos.register.v1_1.MsgUpdateResourceNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": - return protoreflect.ValueOfString("") case "stratos.register.v1_1.MsgUpdateResourceNode.network_address": return protoreflect.ValueOfString("") case "stratos.register.v1_1.MsgUpdateResourceNode.owner_address": return protoreflect.ValueOfString("") case "stratos.register.v1_1.MsgUpdateResourceNode.node_type": return protoreflect.ValueOfUint32(uint32(0)) + case "stratos.register.v1_1.MsgUpdateResourceNode.beneficiary_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateResourceNode")) @@ -1992,10 +1992,6 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } l = len(x.NetworkAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -2007,6 +2003,10 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if x.NodeType != 0 { n += 1 + runtime.Sov(uint64(x.NodeType)) } + l = len(x.BeneficiaryAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2036,30 +2036,30 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } if x.NodeType != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.NodeType)) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x20 } if len(x.OwnerAddress) > 0 { i -= len(x.OwnerAddress) copy(dAtA[i:], x.OwnerAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(x.NetworkAddress) > 0 { i -= len(x.NetworkAddress) copy(dAtA[i:], x.NetworkAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) i-- - dAtA[i] = 0x1a - } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- dAtA[i] = 0x12 } if x.Description != nil { @@ -2163,7 +2163,7 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2191,11 +2191,11 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2223,13 +2223,13 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var stringLen uint64 + x.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2239,29 +2239,16 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.OwnerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - x.NodeType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2271,11 +2258,24 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method } b := dAtA[iNdEx] iNdEx++ - x.NodeType |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2314,18 +2314,18 @@ func (x *fastReflection_MsgUpdateResourceNode) ProtoMethods() *protoiface.Method var ( md_MsgUpdateMetaNode protoreflect.MessageDescriptor fd_MsgUpdateMetaNode_description protoreflect.FieldDescriptor - fd_MsgUpdateMetaNode_beneficiary_address protoreflect.FieldDescriptor fd_MsgUpdateMetaNode_network_address protoreflect.FieldDescriptor fd_MsgUpdateMetaNode_owner_address protoreflect.FieldDescriptor + fd_MsgUpdateMetaNode_beneficiary_address protoreflect.FieldDescriptor ) func init() { file_stratos_register_v1_1_tx_proto_init() md_MsgUpdateMetaNode = File_stratos_register_v1_1_tx_proto.Messages().ByName("MsgUpdateMetaNode") fd_MsgUpdateMetaNode_description = md_MsgUpdateMetaNode.Fields().ByName("description") - fd_MsgUpdateMetaNode_beneficiary_address = md_MsgUpdateMetaNode.Fields().ByName("beneficiary_address") fd_MsgUpdateMetaNode_network_address = md_MsgUpdateMetaNode.Fields().ByName("network_address") fd_MsgUpdateMetaNode_owner_address = md_MsgUpdateMetaNode.Fields().ByName("owner_address") + fd_MsgUpdateMetaNode_beneficiary_address = md_MsgUpdateMetaNode.Fields().ByName("beneficiary_address") } var _ protoreflect.Message = (*fastReflection_MsgUpdateMetaNode)(nil) @@ -2399,12 +2399,6 @@ func (x *fastReflection_MsgUpdateMetaNode) Range(f func(protoreflect.FieldDescri return } } - if x.BeneficiaryAddress != "" { - value := protoreflect.ValueOfString(x.BeneficiaryAddress) - if !f(fd_MsgUpdateMetaNode_beneficiary_address, value) { - return - } - } if x.NetworkAddress != "" { value := protoreflect.ValueOfString(x.NetworkAddress) if !f(fd_MsgUpdateMetaNode_network_address, value) { @@ -2417,6 +2411,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Range(f func(protoreflect.FieldDescri return } } + if x.BeneficiaryAddress != "" { + value := protoreflect.ValueOfString(x.BeneficiaryAddress) + if !f(fd_MsgUpdateMetaNode_beneficiary_address, value) { + return + } + } } // Has reports whether a field is populated. @@ -2434,12 +2434,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Has(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "stratos.register.v1_1.MsgUpdateMetaNode.description": return x.Description != nil - case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": - return x.BeneficiaryAddress != "" case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": return x.NetworkAddress != "" case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": return x.OwnerAddress != "" + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + return x.BeneficiaryAddress != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) @@ -2458,12 +2458,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Clear(fd protoreflect.FieldDescriptor switch fd.FullName() { case "stratos.register.v1_1.MsgUpdateMetaNode.description": x.Description = nil - case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": - x.BeneficiaryAddress = "" case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": x.NetworkAddress = "" case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": x.OwnerAddress = "" + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + x.BeneficiaryAddress = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) @@ -2483,15 +2483,15 @@ func (x *fastReflection_MsgUpdateMetaNode) Get(descriptor protoreflect.FieldDesc case "stratos.register.v1_1.MsgUpdateMetaNode.description": value := x.Description return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": - value := x.BeneficiaryAddress - return protoreflect.ValueOfString(value) case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": value := x.NetworkAddress return protoreflect.ValueOfString(value) case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": value := x.OwnerAddress return protoreflect.ValueOfString(value) + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + value := x.BeneficiaryAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) @@ -2514,12 +2514,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Set(fd protoreflect.FieldDescriptor, switch fd.FullName() { case "stratos.register.v1_1.MsgUpdateMetaNode.description": x.Description = value.Message().Interface().(*Description) - case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": - x.BeneficiaryAddress = value.Interface().(string) case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": x.NetworkAddress = value.Interface().(string) case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": x.OwnerAddress = value.Interface().(string) + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + x.BeneficiaryAddress = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) @@ -2545,12 +2545,12 @@ func (x *fastReflection_MsgUpdateMetaNode) Mutable(fd protoreflect.FieldDescript x.Description = new(Description) } return protoreflect.ValueOfMessage(x.Description.ProtoReflect()) - case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": - panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgUpdateMetaNode is not mutable")) case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": panic(fmt.Errorf("field network_address of message stratos.register.v1_1.MsgUpdateMetaNode is not mutable")) case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": panic(fmt.Errorf("field owner_address of message stratos.register.v1_1.MsgUpdateMetaNode is not mutable")) + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + panic(fmt.Errorf("field beneficiary_address of message stratos.register.v1_1.MsgUpdateMetaNode is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) @@ -2567,12 +2567,12 @@ func (x *fastReflection_MsgUpdateMetaNode) NewField(fd protoreflect.FieldDescrip case "stratos.register.v1_1.MsgUpdateMetaNode.description": m := new(Description) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": - return protoreflect.ValueOfString("") case "stratos.register.v1_1.MsgUpdateMetaNode.network_address": return protoreflect.ValueOfString("") case "stratos.register.v1_1.MsgUpdateMetaNode.owner_address": return protoreflect.ValueOfString("") + case "stratos.register.v1_1.MsgUpdateMetaNode.beneficiary_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: stratos.register.v1_1.MsgUpdateMetaNode")) @@ -2646,15 +2646,15 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { l = options.Size(x.Description) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BeneficiaryAddress) + l = len(x.NetworkAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.NetworkAddress) + l = len(x.OwnerAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.OwnerAddress) + l = len(x.BeneficiaryAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -2687,25 +2687,25 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.BeneficiaryAddress) > 0 { + i -= len(x.BeneficiaryAddress) + copy(dAtA[i:], x.BeneficiaryAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) + i-- + dAtA[i] = 0x22 + } if len(x.OwnerAddress) > 0 { i -= len(x.OwnerAddress) copy(dAtA[i:], x.OwnerAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(x.NetworkAddress) > 0 { i -= len(x.NetworkAddress) copy(dAtA[i:], x.NetworkAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NetworkAddress))) i-- - dAtA[i] = 0x1a - } - if len(x.BeneficiaryAddress) > 0 { - i -= len(x.BeneficiaryAddress) - copy(dAtA[i:], x.BeneficiaryAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BeneficiaryAddress))) - i-- dAtA[i] = 0x12 } if x.Description != nil { @@ -2809,7 +2809,7 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2837,11 +2837,11 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + x.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2869,11 +2869,11 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.NetworkAddress = string(dAtA[iNdEx:postIndex]) + x.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2901,7 +2901,7 @@ func (x *fastReflection_MsgUpdateMetaNode) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.OwnerAddress = string(dAtA[iNdEx:postIndex]) + x.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2961,9 +2961,9 @@ type MsgCreateResourceNode struct { Pubkey *anypb.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Value *v1beta1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` - Description *Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` - NodeType uint32 `protobuf:"varint,7,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` + Description *Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + NodeType uint32 `protobuf:"varint,6,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,7,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` } func (x *MsgCreateResourceNode) Reset() { @@ -3014,13 +3014,6 @@ func (x *MsgCreateResourceNode) GetOwnerAddress() string { return "" } -func (x *MsgCreateResourceNode) GetBeneficiaryAddress() string { - if x != nil { - return x.BeneficiaryAddress - } - return "" -} - func (x *MsgCreateResourceNode) GetDescription() *Description { if x != nil { return x.Description @@ -3035,6 +3028,13 @@ func (x *MsgCreateResourceNode) GetNodeType() uint32 { return 0 } +func (x *MsgCreateResourceNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + // MsgCreateMetaNode encapsulates an MsgCreateMetaNodeTx transaction as an SDK message. type MsgCreateMetaNode struct { state protoimpl.MessageState @@ -3045,8 +3045,8 @@ type MsgCreateMetaNode struct { Pubkey *anypb.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Value *v1beta1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` - Description *Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + Description *Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,6,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` } func (x *MsgCreateMetaNode) Reset() { @@ -3097,18 +3097,18 @@ func (x *MsgCreateMetaNode) GetOwnerAddress() string { return "" } -func (x *MsgCreateMetaNode) GetBeneficiaryAddress() string { +func (x *MsgCreateMetaNode) GetDescription() *Description { if x != nil { - return x.BeneficiaryAddress + return x.Description } - return "" + return nil } -func (x *MsgCreateMetaNode) GetDescription() *Description { +func (x *MsgCreateMetaNode) GetBeneficiaryAddress() string { if x != nil { - return x.Description + return x.BeneficiaryAddress } - return nil + return "" } // MsgUpdateResourceNode defines a SDK message for updating an existing resource node. @@ -3118,10 +3118,10 @@ type MsgUpdateResourceNode struct { unknownFields protoimpl.UnknownFields Description *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` - NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` - OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - NodeType uint32 `protobuf:"varint,5,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` + NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + NodeType uint32 `protobuf:"varint,4,opt,name=node_type,json=nodeType,proto3" json:"node_type,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` } func (x *MsgUpdateResourceNode) Reset() { @@ -3151,13 +3151,6 @@ func (x *MsgUpdateResourceNode) GetDescription() *Description { return nil } -func (x *MsgUpdateResourceNode) GetBeneficiaryAddress() string { - if x != nil { - return x.BeneficiaryAddress - } - return "" -} - func (x *MsgUpdateResourceNode) GetNetworkAddress() string { if x != nil { return x.NetworkAddress @@ -3179,6 +3172,13 @@ func (x *MsgUpdateResourceNode) GetNodeType() uint32 { return 0 } +func (x *MsgUpdateResourceNode) GetBeneficiaryAddress() string { + if x != nil { + return x.BeneficiaryAddress + } + return "" +} + // MsgUpdateMetaNode defines a SDK message for updating an existing meta node. type MsgUpdateMetaNode struct { state protoimpl.MessageState @@ -3186,9 +3186,9 @@ type MsgUpdateMetaNode struct { unknownFields protoimpl.UnknownFields Description *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` - NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` - OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address,omitempty"` + OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` + BeneficiaryAddress string `protobuf:"bytes,4,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address,omitempty"` } func (x *MsgUpdateMetaNode) Reset() { @@ -3218,23 +3218,23 @@ func (x *MsgUpdateMetaNode) GetDescription() *Description { return nil } -func (x *MsgUpdateMetaNode) GetBeneficiaryAddress() string { +func (x *MsgUpdateMetaNode) GetNetworkAddress() string { if x != nil { - return x.BeneficiaryAddress + return x.NetworkAddress } return "" } -func (x *MsgUpdateMetaNode) GetNetworkAddress() string { +func (x *MsgUpdateMetaNode) GetOwnerAddress() string { if x != nil { - return x.NetworkAddress + return x.OwnerAddress } return "" } -func (x *MsgUpdateMetaNode) GetOwnerAddress() string { +func (x *MsgUpdateMetaNode) GetBeneficiaryAddress() string { if x != nil { - return x.OwnerAddress + return x.BeneficiaryAddress } return "" } @@ -3284,15 +3284,7 @@ var file_stratos_register_v1_1_tx_proto_rawDesc = []byte{ 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, - 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, - 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, - 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x74, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, + 0x74, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, @@ -3300,10 +3292,18 @@ var file_stratos_register_v1_1_tx_proto_rawDesc = []byte{ 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, + 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x08, 0x6e, 0x6f, 0x64, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, + 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, + 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0xcb, 0x05, 0x0a, 0x11, @@ -3333,22 +3333,22 @@ var file_stratos_register_v1_1_tx_proto_rawDesc = []byte{ 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, - 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, - 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, - 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x74, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x5f, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x2e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, + 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, + 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, + 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, + 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0xdb, 0x04, 0x0a, 0x15, 0x4d, 0x73, @@ -3360,33 +3360,33 @@ var file_stratos_register_v1_1_tx_proto_rawDesc = []byte{ 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, - 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, - 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, - 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, - 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, - 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, - 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x3e, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, + 0x73, 0x12, 0x3e, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x21, 0xea, 0xde, 0x1f, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, + 0x65, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, + 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, + 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x3a, 0x34, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x1d, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0x93, 0x04, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x55, @@ -3398,28 +3398,28 @@ var file_stratos_register_v1_1_tx_proto_rawDesc = []byte{ 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xf2, 0xde, 0x1f, 0x12, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, - 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, - 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, - 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, + 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xea, 0xde, 0x1f, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xea, 0xde, 0x1f, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x30, 0x82, 0xe7, 0xb0, + 0x77, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x7e, 0x0a, 0x13, 0x62, + 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xea, 0xde, 0x1f, 0x13, 0x62, 0x65, + 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x65, 0x6e, 0x65, 0x66, + 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd2, + 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, + 0x69, 0x61, 0x72, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x30, 0x82, 0xe7, 0xb0, 0x2a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x8a, 0xe7, 0xb0, 0x2a, 0x19, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0xc2, 0x01, diff --git a/proto/stratos/register/v1/tx.proto b/proto/stratos/register/v1/tx.proto index 6094d862..4bd08ceb 100644 --- a/proto/stratos/register/v1/tx.proto +++ b/proto/stratos/register/v1/tx.proto @@ -61,21 +61,21 @@ message MsgCreateResourceNode { (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - Description description = 5 [ + string beneficiary_address = 5 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; + Description description = 6 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - uint32 node_type = 6 [ + uint32 node_type = 7 [ (gogoproto.jsontag) = "node_type", (gogoproto.moretags) = "yaml:\"node_type\"" ]; - string beneficiary_address = 7 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; } // MsgCreateResourceNodeResponse defines the CreateResourceNodeTx response type @@ -107,17 +107,17 @@ message MsgCreateMetaNode { (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - Description description = 5 [ + string beneficiary_address = 5 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; + Description description = 6 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - string beneficiary_address = 6 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; } @@ -170,31 +170,31 @@ message MsgUpdateResourceNode { option (cosmos.msg.v1.signer) = "owner_address"; option (amino.name) = "stratos/MsgUpdateResourceNode"; - Description description = 1 [ + Description description = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - string network_address = 2 [ + string beneficiary_address = 2 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; + string network_address = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "network_address", (gogoproto.moretags) = "yaml:\"network_address\"" ]; - string owner_address = 3 [ + string owner_address = 4 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - uint32 node_type = 4 [ + uint32 node_type = 5 [ (gogoproto.jsontag) = "node_type", (gogoproto.moretags) = "yaml:\"node_type\"" ]; - string beneficiary_address = 5 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; } // MsgUpdateResourceNodeResponse defines the Msg/UpdateResourceNode response type. @@ -206,27 +206,27 @@ message MsgUpdateMetaNode { option (cosmos.msg.v1.signer) = "owner_address"; option (amino.name) = "stratos/MsgUpdateMetaNode"; - Description description = 1 [ + Description description = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - string network_address = 2 [ + string beneficiary_address = 2 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; + string network_address = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "network_address", (gogoproto.moretags) = "yaml:\"network_address\"" ]; - string owner_address = 3 [ + string owner_address = 4 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - string beneficiary_address = 4 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; } // MsgUpdateMetaNodeResponse defines the Msg/UpdateMetaNode response type. diff --git a/proto/stratos/register/v1_1/tx.proto b/proto/stratos/register/v1_1/tx.proto index cb48f584..952da90f 100644 --- a/proto/stratos/register/v1_1/tx.proto +++ b/proto/stratos/register/v1_1/tx.proto @@ -12,7 +12,6 @@ import "stratos/register/v1_1/register.proto"; option (gogoproto.equal_all) = true; option go_package = "github.com/stratosnet/stratos-chain/x/register/types/v1_1"; - // MsgCreateResourceNode encapsulates an MsgCreateResourceNodeTx transaction as an SDK message. message MsgCreateResourceNode { option (cosmos.msg.v1.signer) = "owner_address"; @@ -39,21 +38,21 @@ message MsgCreateResourceNode { (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - string beneficiary_address = 5 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; - Description description = 6 [ + Description description = 5 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - uint32 node_type = 7 [ + uint32 node_type = 6 [ (gogoproto.jsontag) = "node_type", (gogoproto.moretags) = "yaml:\"node_type\"" ]; + string beneficiary_address = 7 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; } // MsgCreateMetaNode encapsulates an MsgCreateMetaNodeTx transaction as an SDK message. @@ -82,17 +81,17 @@ message MsgCreateMetaNode { (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - string beneficiary_address = 5 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; - Description description = 6 [ + Description description = 5 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; + string beneficiary_address = 6 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; } // MsgUpdateResourceNode defines a SDK message for updating an existing resource node. @@ -106,25 +105,25 @@ message MsgUpdateResourceNode { (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - string beneficiary_address = 2 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; - string network_address = 3 [ + string network_address = 2 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "network_address", (gogoproto.moretags) = "yaml:\"network_address\"" ]; - string owner_address = 4 [ + string owner_address = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; - uint32 node_type = 5 [ + uint32 node_type = 4 [ (gogoproto.jsontag) = "node_type", (gogoproto.moretags) = "yaml:\"node_type\"" ]; + string beneficiary_address = 5 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; } // MsgUpdateMetaNode defines a SDK message for updating an existing meta node. @@ -138,19 +137,20 @@ message MsgUpdateMetaNode { (gogoproto.jsontag) = "description", (gogoproto.moretags) = "yaml:\"description\"" ]; - string beneficiary_address = 2 [ - (cosmos_proto.scalar) = "cosmos.AddressString", - (gogoproto.jsontag) = "beneficiary_address", - (gogoproto.moretags) = "yaml:\"beneficiary_address\"" - ]; - string network_address = 3 [ + string network_address = 2 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "network_address", (gogoproto.moretags) = "yaml:\"network_address\"" ]; - string owner_address = 4 [ + string owner_address = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "owner_address", (gogoproto.moretags) = "yaml:\"owner_address\"" ]; -} \ No newline at end of file + string beneficiary_address = 4 [ + (cosmos_proto.scalar) = "cosmos.AddressString", + (gogoproto.jsontag) = "beneficiary_address", + (gogoproto.moretags) = "yaml:\"beneficiary_address\"" + ]; +} + diff --git a/x/register/types/tx.pb.go b/x/register/types/tx.pb.go index 30031379..36e822e6 100644 --- a/x/register/types/tx.pb.go +++ b/x/register/types/tx.pb.go @@ -40,9 +40,9 @@ type MsgCreateResourceNode struct { Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` Value types1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value" yaml:"value"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - Description Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description" yaml:"description"` - NodeType uint32 `protobuf:"varint,6,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` - BeneficiaryAddress string `protobuf:"bytes,7,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + Description Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description" yaml:"description"` + NodeType uint32 `protobuf:"varint,7,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` } func (m *MsgCreateResourceNode) Reset() { *m = MsgCreateResourceNode{} } @@ -106,6 +106,13 @@ func (m *MsgCreateResourceNode) GetOwnerAddress() string { return "" } +func (m *MsgCreateResourceNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + func (m *MsgCreateResourceNode) GetDescription() Description { if m != nil { return m.Description @@ -120,13 +127,6 @@ func (m *MsgCreateResourceNode) GetNodeType() uint32 { return 0 } -func (m *MsgCreateResourceNode) GetBeneficiaryAddress() string { - if m != nil { - return m.BeneficiaryAddress - } - return "" -} - // MsgCreateResourceNodeResponse defines the CreateResourceNodeTx response type type MsgCreateResourceNodeResponse struct { } @@ -170,8 +170,8 @@ type MsgCreateMetaNode struct { Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` Value types1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value" yaml:"value"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - Description Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description" yaml:"description"` - BeneficiaryAddress string `protobuf:"bytes,6,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + Description Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description" yaml:"description"` } func (m *MsgCreateMetaNode) Reset() { *m = MsgCreateMetaNode{} } @@ -235,18 +235,18 @@ func (m *MsgCreateMetaNode) GetOwnerAddress() string { return "" } -func (m *MsgCreateMetaNode) GetDescription() Description { +func (m *MsgCreateMetaNode) GetBeneficiaryAddress() string { if m != nil { - return m.Description + return m.BeneficiaryAddress } - return Description{} + return "" } -func (m *MsgCreateMetaNode) GetBeneficiaryAddress() string { +func (m *MsgCreateMetaNode) GetDescription() Description { if m != nil { - return m.BeneficiaryAddress + return m.Description } - return "" + return Description{} } // MsgCreateMetaNodeResponse defines the CreateMetaNode response type @@ -469,10 +469,10 @@ var xxx_messageInfo_MsgRemoveMetaNodeResponse proto.InternalMessageInfo // MsgUpdateResourceNode defines a SDK message for updating an existing resource node. type MsgUpdateResourceNode struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"` - NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` - OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - NodeType uint32 `protobuf:"varint,4,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + NodeType uint32 `protobuf:"varint,5,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` } func (m *MsgUpdateResourceNode) Reset() { *m = MsgUpdateResourceNode{} } @@ -515,6 +515,13 @@ func (m *MsgUpdateResourceNode) GetDescription() Description { return Description{} } +func (m *MsgUpdateResourceNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + func (m *MsgUpdateResourceNode) GetNetworkAddress() string { if m != nil { return m.NetworkAddress @@ -536,13 +543,6 @@ func (m *MsgUpdateResourceNode) GetNodeType() uint32 { return 0 } -func (m *MsgUpdateResourceNode) GetBeneficiaryAddress() string { - if m != nil { - return m.BeneficiaryAddress - } - return "" -} - // MsgUpdateResourceNodeResponse defines the Msg/UpdateResourceNode response type. type MsgUpdateResourceNodeResponse struct { } @@ -583,9 +583,9 @@ var xxx_messageInfo_MsgUpdateResourceNodeResponse proto.InternalMessageInfo // MsgUpdateMetaNode defines a SDK message for updating an existing meta node. type MsgUpdateMetaNode struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"` - NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` - OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - BeneficiaryAddress string `protobuf:"bytes,4,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` + NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` } func (m *MsgUpdateMetaNode) Reset() { *m = MsgUpdateMetaNode{} } @@ -628,23 +628,23 @@ func (m *MsgUpdateMetaNode) GetDescription() Description { return Description{} } -func (m *MsgUpdateMetaNode) GetNetworkAddress() string { +func (m *MsgUpdateMetaNode) GetBeneficiaryAddress() string { if m != nil { - return m.NetworkAddress + return m.BeneficiaryAddress } return "" } -func (m *MsgUpdateMetaNode) GetOwnerAddress() string { +func (m *MsgUpdateMetaNode) GetNetworkAddress() string { if m != nil { - return m.OwnerAddress + return m.NetworkAddress } return "" } -func (m *MsgUpdateMetaNode) GetBeneficiaryAddress() string { +func (m *MsgUpdateMetaNode) GetOwnerAddress() string { if m != nil { - return m.BeneficiaryAddress + return m.OwnerAddress } return "" } @@ -1323,113 +1323,113 @@ func init() { func init() { proto.RegisterFile("stratos/register/v1/tx.proto", fileDescriptor_75d4b90d7a185a31) } var fileDescriptor_75d4b90d7a185a31 = []byte{ - // 1691 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0x4d, 0x6c, 0x13, 0x47, - 0x1b, 0xce, 0xc6, 0x4e, 0x20, 0x43, 0x42, 0xc8, 0x26, 0x21, 0x8e, 0x43, 0x3c, 0xc9, 0xc2, 0x17, - 0x45, 0xd1, 0x97, 0x35, 0x09, 0xff, 0xf9, 0x24, 0xf4, 0x61, 0x40, 0x2a, 0x42, 0x01, 0x6a, 0xa0, - 0x55, 0x7b, 0xb1, 0xd6, 0xf6, 0xc4, 0x6c, 0x13, 0xef, 0xba, 0xbb,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x80, 0x59, 0xd3, 0x0d, 0xef, 0x1c, 0xe5, 0x51, 0xe2, 0x60, 0x6e, 0xba, 0x89, 0x61, - 0x20, 0x72, 0x31, 0x3c, 0x4c, 0x49, 0x47, 0x04, 0x4a, 0x3e, 0x50, 0xf9, 0x57, 0xd4, 0x4d, 0xd3, - 0x5b, 0xa1, 0xd1, 0xe4, 0x26, 0x5b, 0x57, 0x54, 0x2e, 0xa0, 0x75, 0x45, 0xe5, 0xaa, 0x3b, 0x5c, - 0x51, 0x7d, 0x7c, 0x24, 0xa1, 0x0f, 0x01, 0x11, 0x47, 0x72, 0xd9, 0x76, 0xf2, 0xe5, 0xa8, 0x5b, - 0x07, 0x18, 0x8e, 0x52, 0xec, 0xc0, 0x88, 0x8f, 0x6e, 0xcf, 0xdf, 0xca, 0xff, 0x3d, 0x92, 0xf3, - 0x4c, 0x78, 0x54, 0x3f, 0xde, 0x46, 0x75, 0x11, 0x53, 0x95, 0xff, 0x80, 0xe3, 0x1d, 0xd4, 0x8c, - 0xf0, 0x4f, 0x92, 0x60, 0x74, 0xd5, 0xae, 0x5c, 0xd7, 0x4b, 0xeb, 0x01, 0xd6, 0x27, 0xfa, 0x23, - 0x09, 0x1c, 0x75, 0x34, 0xab, 0x82, 0x1c, 0x01, 0xcb, 0x6f, 0x37, 0x31, 0x14, 0x20, 0x5c, 0x0c, - 0xa7, 0x49, 0x1a, 0xf8, 0x7a, 0x71, 0x26, 0xc6, 0xc8, 0x80, 0x48, 0x2d, 0xda, 0xc8, 0xd4, 0xbb, - 0x43, 0x64, 0x4a, 0xbc, 0x09, 0x64, 0x4a, 0xee, 0x11, 0x99, 0xce, 0x77, 0x22, 0xd3, 0x54, 0x1b, - 0x99, 0xa2, 0x2c, 0x50, 0xa6, 0xfd, 0x6e, 0x18, 0x15, 0x33, 0xf2, 0xfc, 0x2c, 0x81, 0x61, 0xd6, - 0x52, 0x6f, 0x69, 0x96, 0x56, 0xb5, 0xe5, 0xb3, 0x60, 0x40, 0xab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6, 0x7a, 0x93, 0xfc, 0xe7, 0xc2, 0x90, 0xc9, 0xc8, 0xb3, 0xcd, 0x5c, 0xe7, 0xc4, 0xbd, - 0xde, 0x24, 0xff, 0xce, 0x2f, 0x7f, 0x26, 0x81, 0x8c, 0xc0, 0x66, 0x50, 0xe3, 0xc5, 0xee, 0xa6, - 0x0c, 0x4a, 0x7c, 0x66, 0x5b, 0x70, 0xe6, 0xc8, 0x97, 0x12, 0x98, 0x65, 0x8e, 0x08, 0x4f, 0xa6, - 0x27, 0x45, 0x93, 0x8b, 0x46, 0xa4, 0xcf, 0x6f, 0x77, 0x04, 0xf3, 0xe8, 0x3e, 0x98, 0x64, 0x0e, - 0xc5, 0x4e, 0x0e, 0xf3, 0xa2, 0x69, 0xa3, 0xc8, 0xf4, 0xc9, 0x6e, 0x91, 0xcc, 0x70, 0x11, 0x0c, - 0x86, 0x36, 0x9b, 0x13, 0x9d, 0x33, 0x4a, 0x50, 0xe9, 0xff, 0x76, 0x83, 0x0a, 0x6c, 0xa4, 0xfb, - 0x3e, 0xf6, 0xf6, 0x95, 0x5c, 0xfe, 0xe9, 0x56, 0x46, 0x7a, 0xbe, 0x95, 0x91, 0x5e, 0x6c, 0x65, - 0xa4, 0xbf, 0xb7, 0x32, 0xd2, 0x57, 0x2f, 0x33, 0x3d, 0x2f, 0x5e, 0x66, 0x7a, 0xfe, 0x78, 0x99, - 0xe9, 0x79, 0xff, 0x74, 0xdb, 0x45, 0x96, 0x4e, 0x6e, 0x20, 0x27, 0xf8, 0x73, 0xb1, 0x74, 0x4f, - 0xd3, 0x8d, 0xf6, 0x6d, 0xc7, 0xbf, 0xda, 0x16, 0xfb, 0xfd, 0x1f, 0xf9, 0x4e, 0xfd, 0x1b, 0x00, - 0x00, 0xff, 0xff, 0xc3, 0x46, 0x32, 0x8a, 0xaf, 0x20, 0x00, 0x00, + // 1681 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 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68, 0xed, 0xe4, 0x47, 0x2f, 0x9e, + 0x2c, 0x85, 0x67, 0xe1, 0xd3, 0x17, 0x4f, 0x96, 0x66, 0x83, 0x85, 0x21, 0x54, 0xbe, 0x06, 0xc1, + 0xac, 0x10, 0xc8, 0x22, 0xa7, 0x82, 0x2d, 0x07, 0x69, 0x3f, 0x0f, 0x80, 0x31, 0xce, 0x58, 0x47, + 0xae, 0xb1, 0xb7, 0x60, 0xf6, 0x16, 0xcc, 0x9b, 0xb0, 0x60, 0xd6, 0x8e, 0x8b, 0x05, 0x3f, 0x1d, + 0x13, 0x7c, 0xa0, 0x5a, 0x6d, 0x06, 0x4c, 0xc7, 0x8c, 0x5c, 0xe8, 0x3f, 0xf4, 0xfa, 0xbb, 0x43, + 0x16, 0x95, 0xf1, 0x76, 0x78, 0x77, 0xf8, 0x58, 0x01, 0x93, 0x36, 0x33, 0xe4, 0xfc, 0xb5, 0x17, + 0xd6, 0xfc, 0xff, 0xeb, 0x04, 0x8a, 0x09, 0x0d, 0x02, 0x8f, 0xd0, 0xb1, 0x08, 0x61, 0x79, 0x8e, + 0xc7, 0xed, 0x96, 0x00, 0x82, 0x24, 0xc7, 0xc4, 0xd4, 0xfb, 0x5a, 0xc4, 0xd4, 0x49, 0x25, 0x89, + 0x67, 0x89, 0x55, 0x92, 0x38, 0xc0, 0x13, 0xfc, 0x4d, 0xaf, 0x5f, 0x49, 0x28, 0x83, 0x57, 0x92, + 0x2a, 0x18, 0x2b, 0x23, 0xd7, 0x10, 0xe5, 0xf5, 0x4a, 0x9d, 0xc0, 0x38, 0xd8, 0x20, 0x30, 0x41, + 0x07, 0x17, 0x83, 0xe4, 0x03, 0x1c, 0x2d, 0x33, 0x7f, 0xdd, 0xce, 0x65, 0x07, 0x22, 0x0d, 0x27, + 0x84, 0x89, 0x34, 0x6c, 0xe4, 0x39, 0xfc, 0xbd, 0xdf, 0x17, 0xe9, 0xed, 0x4a, 0x31, 0x7a, 0x84, + 0x89, 0xac, 0x40, 0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, 0xc2, 0x1d, 0xc3, 0xb4, 0x5a, 0xb7, 0x1d, 0xff, 0x6a, 0x9b, 0x1f, 0xf4, 0x7f, + 0xe4, 0x3b, 0xf1, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x7a, 0xc2, 0xf7, 0xaf, 0x20, 0x00, + 0x00, } func (this *MsgCreateResourceNode) Equal(that interface{}) bool { @@ -1463,13 +1463,13 @@ func (this *MsgCreateResourceNode) Equal(that interface{}) bool { if this.OwnerAddress != that1.OwnerAddress { return false } - if !this.Description.Equal(&that1.Description) { + if this.BeneficiaryAddress != that1.BeneficiaryAddress { return false } - if this.NodeType != that1.NodeType { + if !this.Description.Equal(&that1.Description) { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { + if this.NodeType != that1.NodeType { return false } return true @@ -1526,10 +1526,10 @@ func (this *MsgCreateMetaNode) Equal(that interface{}) bool { if this.OwnerAddress != that1.OwnerAddress { return false } - if !this.Description.Equal(&that1.Description) { + if this.BeneficiaryAddress != that1.BeneficiaryAddress { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { + if !this.Description.Equal(&that1.Description) { return false } return true @@ -1673,6 +1673,9 @@ func (this *MsgUpdateResourceNode) Equal(that interface{}) bool { if !this.Description.Equal(&that1.Description) { return false } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } if this.NetworkAddress != that1.NetworkAddress { return false } @@ -1682,9 +1685,6 @@ func (this *MsgUpdateResourceNode) Equal(that interface{}) bool { if this.NodeType != that1.NodeType { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { - return false - } return true } func (this *MsgUpdateResourceNodeResponse) Equal(that interface{}) bool { @@ -1730,13 +1730,13 @@ func (this *MsgUpdateMetaNode) Equal(that interface{}) bool { if !this.Description.Equal(&that1.Description) { return false } - if this.NetworkAddress != that1.NetworkAddress { + if this.BeneficiaryAddress != that1.BeneficiaryAddress { return false } - if this.OwnerAddress != that1.OwnerAddress { + if this.NetworkAddress != that1.NetworkAddress { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { + if this.OwnerAddress != that1.OwnerAddress { return false } return true @@ -2590,17 +2590,10 @@ func (m *MsgCreateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- - dAtA[i] = 0x3a - } if m.NodeType != 0 { i = encodeVarintTx(dAtA, i, uint64(m.NodeType)) i-- - dAtA[i] = 0x30 + dAtA[i] = 0x38 } { size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) @@ -2611,7 +2604,14 @@ func (m *MsgCreateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x32 + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) @@ -2694,13 +2694,6 @@ func (m *MsgCreateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- - dAtA[i] = 0x32 - } { size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -2710,7 +2703,14 @@ func (m *MsgCreateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x32 + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) @@ -2913,30 +2913,30 @@ func (m *MsgUpdateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- - dAtA[i] = 0x2a - } if m.NodeType != 0 { i = encodeVarintTx(dAtA, i, uint64(m.NodeType)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x28 } if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } if len(m.NetworkAddress) > 0 { i -= len(m.NetworkAddress) copy(dAtA[i:], m.NetworkAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) i-- + dAtA[i] = 0x1a + } + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- dAtA[i] = 0x12 } { @@ -2995,25 +2995,25 @@ func (m *MsgUpdateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- - dAtA[i] = 0x22 - } if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } if len(m.NetworkAddress) > 0 { i -= len(m.NetworkAddress) copy(dAtA[i:], m.NetworkAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) i-- + dAtA[i] = 0x1a + } + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- dAtA[i] = 0x12 } { @@ -3528,15 +3528,15 @@ func (m *MsgCreateResourceNode) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) if m.NodeType != 0 { n += 1 + sovTx(uint64(m.NodeType)) } - l = len(m.BeneficiaryAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } return n } @@ -3569,12 +3569,12 @@ func (m *MsgCreateMetaNode) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = m.Description.Size() - n += 1 + l + sovTx(uint64(l)) l = len(m.BeneficiaryAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = m.Description.Size() + n += 1 + l + sovTx(uint64(l)) return n } @@ -3647,6 +3647,10 @@ func (m *MsgUpdateResourceNode) Size() (n int) { _ = l l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } l = len(m.NetworkAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) @@ -3658,10 +3662,6 @@ func (m *MsgUpdateResourceNode) Size() (n int) { if m.NodeType != 0 { n += 1 + sovTx(uint64(m.NodeType)) } - l = len(m.BeneficiaryAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } return n } @@ -3682,15 +3682,15 @@ func (m *MsgUpdateMetaNode) Size() (n int) { _ = l l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) - l = len(m.NetworkAddress) + l = len(m.BeneficiaryAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.OwnerAddress) + l = len(m.NetworkAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.BeneficiaryAddress) + l = len(m.OwnerAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -4062,9 +4062,9 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4074,30 +4074,29 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - m.NodeType = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4107,16 +4106,30 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeType |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var stringLen uint64 + m.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4126,24 +4139,11 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -4379,9 +4379,9 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4391,30 +4391,29 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -4424,23 +4423,24 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -4905,7 +4905,7 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4933,11 +4933,11 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4965,30 +4965,11 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OwnerAddress = string(dAtA[iNdEx:postIndex]) + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) - } - m.NodeType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NodeType |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5016,8 +4997,27 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + } + m.NodeType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodeType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -5153,7 +5153,7 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5181,11 +5181,11 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5213,11 +5213,11 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OwnerAddress = string(dAtA[iNdEx:postIndex]) + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5245,7 +5245,7 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/register/types/v1_1/tx.pb.go b/x/register/types/v1_1/tx.pb.go index 3307fa28..520378a7 100644 --- a/x/register/types/v1_1/tx.pb.go +++ b/x/register/types/v1_1/tx.pb.go @@ -34,9 +34,9 @@ type MsgCreateResourceNode struct { Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` Value types1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value" yaml:"value"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` - Description Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description" yaml:"description"` - NodeType uint32 `protobuf:"varint,7,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` + Description Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description" yaml:"description"` + NodeType uint32 `protobuf:"varint,6,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` + BeneficiaryAddress string `protobuf:"bytes,7,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` } func (m *MsgCreateResourceNode) Reset() { *m = MsgCreateResourceNode{} } @@ -100,13 +100,6 @@ func (m *MsgCreateResourceNode) GetOwnerAddress() string { return "" } -func (m *MsgCreateResourceNode) GetBeneficiaryAddress() string { - if m != nil { - return m.BeneficiaryAddress - } - return "" -} - func (m *MsgCreateResourceNode) GetDescription() Description { if m != nil { return m.Description @@ -121,14 +114,21 @@ func (m *MsgCreateResourceNode) GetNodeType() uint32 { return 0 } +func (m *MsgCreateResourceNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + // MsgCreateMetaNode encapsulates an MsgCreateMetaNodeTx transaction as an SDK message. type MsgCreateMetaNode struct { NetworkAddress string `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` Pubkey *types.Any `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` Value types1.Coin `protobuf:"bytes,3,opt,name=value,proto3" json:"value" yaml:"value"` OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` - Description Description `protobuf:"bytes,6,opt,name=description,proto3" json:"description" yaml:"description"` + Description Description `protobuf:"bytes,5,opt,name=description,proto3" json:"description" yaml:"description"` + BeneficiaryAddress string `protobuf:"bytes,6,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` } func (m *MsgCreateMetaNode) Reset() { *m = MsgCreateMetaNode{} } @@ -192,27 +192,27 @@ func (m *MsgCreateMetaNode) GetOwnerAddress() string { return "" } -func (m *MsgCreateMetaNode) GetBeneficiaryAddress() string { +func (m *MsgCreateMetaNode) GetDescription() Description { if m != nil { - return m.BeneficiaryAddress + return m.Description } - return "" + return Description{} } -func (m *MsgCreateMetaNode) GetDescription() Description { +func (m *MsgCreateMetaNode) GetBeneficiaryAddress() string { if m != nil { - return m.Description + return m.BeneficiaryAddress } - return Description{} + return "" } // MsgUpdateResourceNode defines a SDK message for updating an existing resource node. type MsgUpdateResourceNode struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"` - BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` - NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` - OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` - NodeType uint32 `protobuf:"varint,5,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` + NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + NodeType uint32 `protobuf:"varint,4,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"` + BeneficiaryAddress string `protobuf:"bytes,5,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` } func (m *MsgUpdateResourceNode) Reset() { *m = MsgUpdateResourceNode{} } @@ -255,13 +255,6 @@ func (m *MsgUpdateResourceNode) GetDescription() Description { return Description{} } -func (m *MsgUpdateResourceNode) GetBeneficiaryAddress() string { - if m != nil { - return m.BeneficiaryAddress - } - return "" -} - func (m *MsgUpdateResourceNode) GetNetworkAddress() string { if m != nil { return m.NetworkAddress @@ -283,12 +276,19 @@ func (m *MsgUpdateResourceNode) GetNodeType() uint32 { return 0 } +func (m *MsgUpdateResourceNode) GetBeneficiaryAddress() string { + if m != nil { + return m.BeneficiaryAddress + } + return "" +} + // MsgUpdateMetaNode defines a SDK message for updating an existing meta node. type MsgUpdateMetaNode struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description" yaml:"description"` - BeneficiaryAddress string `protobuf:"bytes,2,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` - NetworkAddress string `protobuf:"bytes,3,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` - OwnerAddress string `protobuf:"bytes,4,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + NetworkAddress string `protobuf:"bytes,2,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"` + OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"` + BeneficiaryAddress string `protobuf:"bytes,4,opt,name=beneficiary_address,json=beneficiaryAddress,proto3" json:"beneficiary_address" yaml:"beneficiary_address"` } func (m *MsgUpdateMetaNode) Reset() { *m = MsgUpdateMetaNode{} } @@ -331,23 +331,23 @@ func (m *MsgUpdateMetaNode) GetDescription() Description { return Description{} } -func (m *MsgUpdateMetaNode) GetBeneficiaryAddress() string { +func (m *MsgUpdateMetaNode) GetNetworkAddress() string { if m != nil { - return m.BeneficiaryAddress + return m.NetworkAddress } return "" } -func (m *MsgUpdateMetaNode) GetNetworkAddress() string { +func (m *MsgUpdateMetaNode) GetOwnerAddress() string { if m != nil { - return m.NetworkAddress + return m.OwnerAddress } return "" } -func (m *MsgUpdateMetaNode) GetOwnerAddress() string { +func (m *MsgUpdateMetaNode) GetBeneficiaryAddress() string { if m != nil { - return m.OwnerAddress + return m.BeneficiaryAddress } return "" } @@ -362,52 +362,52 @@ func init() { func init() { proto.RegisterFile("stratos/register/v1_1/tx.proto", fileDescriptor_f8c1d106b648f05b) } var fileDescriptor_f8c1d106b648f05b = []byte{ - // 709 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x4f, 0xd4, 0x4c, - 0x18, 0xde, 0x02, 0xbb, 0xdf, 0x47, 0x81, 0xef, 0x93, 0xba, 0xe8, 0x42, 0x62, 0x07, 0x1b, 0x0f, - 0x84, 0x84, 0xa9, 0x2b, 0x5e, 0xe4, 0x60, 0xc2, 0xa2, 0x27, 0x83, 0x31, 0x8b, 0xc6, 0xc4, 0xcb, - 0xa6, 0xed, 0x0e, 0xa5, 0x81, 0x9d, 0x69, 0x3a, 0xb3, 0x0b, 0xbd, 0x78, 0xf0, 0xe8, 0xc9, 0x84, - 0x7f, 0x82, 0x23, 0x07, 0xff, 0x08, 0xa2, 0x17, 0xe2, 0xc9, 0xc4, 0x64, 0x62, 0x96, 0x03, 0xc9, - 0x1e, 0xfb, 0x17, 0x98, 0x9d, 0x99, 0xee, 0x2f, 0x4a, 0xe2, 0x05, 0x62, 0x0c, 0x97, 0xdd, 0x99, - 0xf7, 0x79, 0xda, 0xa7, 0xef, 0x3b, 0xef, 0xf3, 0xb6, 0xba, 0x49, 0x59, 0xe4, 0x30, 0x42, 0xed, - 0x08, 0xf9, 0x01, 0x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0x13, 0x3f, 0x60, 0x3b, 0x4d, 0x17, 0x7a, 0xa4, 0x61, 0xab, 0x7b, 0x60, - 0xc4, 0xd2, 0xe5, 0x8a, 0xb7, 0xe3, 0x04, 0xd8, 0x3e, 0xe8, 0x7f, 0xb9, 0x76, 0x3b, 0x95, 0x8a, - 0xef, 0x57, 0xb7, 0x20, 0x5e, 0x7e, 0xab, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x07, 0x18, 0x75, - 0x36, 0xae, 0x0b, 0x00, 0x00, + // 716 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x3f, 0x4f, 0xdb, 0x4e, + 0x18, 0x8e, 0x21, 0xc9, 0xef, 0x87, 0x81, 0xb6, 0xb8, 0xa1, 0x0d, 0x48, 0xf5, 0x51, 0xab, 0x03, + 0x42, 0xe2, 0xdc, 0x94, 0x2e, 0x65, 0xa8, 0x44, 0x68, 0xa7, 0x8a, 0xaa, 0x0a, 0xad, 0x2a, 0x75, + 0x89, 0x6c, 0xe7, 0x30, 0x16, 0xe4, 0xce, 0xb2, 0x2f, 0x01, 0x2f, 0x1d, 0x3a, 0x76, 0xaa, 0xc4, + 0x97, 0x60, 0x64, 0xe8, 0x87, 0x40, 0xed, 0x82, 0x3a, 0x55, 0xaa, 0x74, 0xaa, 0xc2, 0x80, 0x94, + 0xd1, 0x9f, 0xa0, 0xca, 0xdd, 0x39, 0xff, 0x70, 0x36, 0x40, 0x0c, 0x59, 0xe0, 0xee, 0x7d, 0x1e, + 0xdf, 0xeb, 0xf7, 0xb9, 0xe7, 0x7d, 0x63, 0x55, 0x0f, 0x69, 0x60, 0x51, 0x12, 0x9a, 0x01, 0x72, + 0xbd, 0x90, 0xa2, 0xc0, 0x6c, 0x96, 0xaa, 0x25, 0x93, 0x1e, 0x42, 0x3f, 0x20, 0x94, 0x68, 0xf3, + 0x12, 0x87, 0x09, 0x0e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 0x40, 0xf2, 0x62, 0x06, 0x66, + 0x45, 0x4e, 0xb1, 0x37, 0x7e, 0xf4, 0x52, 0x39, 0x41, 0xe4, 0x53, 0x02, 0xdf, 0x35, 0xec, 0x37, + 0x28, 0xaa, 0xc8, 0x07, 0xb4, 0x6d, 0x35, 0xd7, 0xb4, 0xf6, 0x1b, 0xa8, 0x38, 0xc9, 0x33, 0x2c, + 0x40, 0xc9, 0xee, 0xa8, 0x0b, 0xa5, 0xba, 0x70, 0x93, 0x78, 0xb8, 0x6c, 0x9c, 0x32, 0x90, 0x69, + 0x33, 0x20, 0xf8, 0x31, 0x03, 0x33, 0x22, 0x13, 0xdf, 0x1a, 0xc7, 0x17, 0x27, 0x2b, 0x4a, 0x45, + 0x60, 0xda, 0x8e, 0x3a, 0x4b, 0x0e, 0x30, 0x0a, 0xba, 0x2a, 0x65, 0xb9, 0x4a, 0x1b, 0x6d, 0x06, + 0x06, 0x81, 0x98, 0x81, 0x82, 0x38, 0x65, 0x20, 0x3c, 0x5a, 0xa1, 0x19, 0xce, 0x4b, 0xf4, 0xa1, + 0xea, 0x74, 0x0d, 0x85, 0x4e, 0xe0, 0xf9, 0xd4, 0x23, 0xb8, 0x98, 0xe3, 0x25, 0x18, 0x30, 0xd5, + 0x94, 0xf0, 0x55, 0x8f, 0x59, 0x86, 0xb2, 0x96, 0xfe, 0xc7, 0x63, 0x06, 0x34, 0xf1, 0x2e, 0x7d, + 0x41, 0x59, 0x57, 0x3f, 0x4f, 0x7b, 0xa9, 0x4e, 0x61, 0x52, 0x43, 0x55, 0x1a, 0xf9, 0xa8, 0x98, + 0x5f, 0x52, 0x96, 0x67, 0xcb, 0x8f, 0xdb, 0x0c, 0xf4, 0x82, 0x31, 0x03, 0xf7, 0xe4, 0xcd, 0x27, + 0x21, 0xa3, 0xf2, 0x7f, 0x67, 0xfd, 0x3e, 0xf2, 0x91, 0xf6, 0x59, 0xbd, 0x6f, 0x23, 0x8c, 0x76, + 0x3c, 0xc7, 0xb3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e5, 0xaa, 0xb3, 0x6b, 0x79, 0xd8, 0x3c, + 0xec, 0x7d, 0xb9, 0x76, 0x3a, 0x25, 0xe4, 0xdf, 0xaf, 0x76, 0x9e, 0xff, 0xf8, 0xad, 0xfd, 0x0b, + 0x00, 0x00, 0xff, 0xff, 0xef, 0x11, 0xe2, 0x2f, 0xae, 0x0b, 0x00, 0x00, } func (this *MsgCreateResourceNode) Equal(that interface{}) bool { @@ -441,15 +441,15 @@ func (this *MsgCreateResourceNode) Equal(that interface{}) bool { if this.OwnerAddress != that1.OwnerAddress { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { - return false - } if !this.Description.Equal(&that1.Description) { return false } if this.NodeType != that1.NodeType { return false } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } return true } func (this *MsgCreateMetaNode) Equal(that interface{}) bool { @@ -483,10 +483,10 @@ func (this *MsgCreateMetaNode) Equal(that interface{}) bool { if this.OwnerAddress != that1.OwnerAddress { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { + if !this.Description.Equal(&that1.Description) { return false } - if !this.Description.Equal(&that1.Description) { + if this.BeneficiaryAddress != that1.BeneficiaryAddress { return false } return true @@ -513,9 +513,6 @@ func (this *MsgUpdateResourceNode) Equal(that interface{}) bool { if !this.Description.Equal(&that1.Description) { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { - return false - } if this.NetworkAddress != that1.NetworkAddress { return false } @@ -525,6 +522,9 @@ func (this *MsgUpdateResourceNode) Equal(that interface{}) bool { if this.NodeType != that1.NodeType { return false } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } return true } func (this *MsgUpdateMetaNode) Equal(that interface{}) bool { @@ -549,15 +549,15 @@ func (this *MsgUpdateMetaNode) Equal(that interface{}) bool { if !this.Description.Equal(&that1.Description) { return false } - if this.BeneficiaryAddress != that1.BeneficiaryAddress { - return false - } if this.NetworkAddress != that1.NetworkAddress { return false } if this.OwnerAddress != that1.OwnerAddress { return false } + if this.BeneficiaryAddress != that1.BeneficiaryAddress { + return false + } return true } func (m *MsgCreateResourceNode) Marshal() (dAtA []byte, err error) { @@ -580,10 +580,17 @@ func (m *MsgCreateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x3a + } if m.NodeType != 0 { i = encodeVarintTx(dAtA, i, uint64(m.NodeType)) i-- - dAtA[i] = 0x38 + dAtA[i] = 0x30 } { size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) @@ -594,14 +601,7 @@ func (m *MsgCreateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- - dAtA[i] = 0x2a - } + dAtA[i] = 0x2a if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) @@ -661,6 +661,13 @@ func (m *MsgCreateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x32 + } { size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -670,14 +677,7 @@ func (m *MsgCreateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- - dAtA[i] = 0x2a - } + dAtA[i] = 0x2a if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) @@ -737,30 +737,30 @@ func (m *MsgUpdateResourceNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x2a + } if m.NodeType != 0 { i = encodeVarintTx(dAtA, i, uint64(m.NodeType)) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x20 } if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(m.NetworkAddress) > 0 { i -= len(m.NetworkAddress) copy(dAtA[i:], m.NetworkAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) i-- - dAtA[i] = 0x1a - } - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- dAtA[i] = 0x12 } { @@ -796,25 +796,25 @@ func (m *MsgUpdateMetaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.BeneficiaryAddress) > 0 { + i -= len(m.BeneficiaryAddress) + copy(dAtA[i:], m.BeneficiaryAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) + i-- + dAtA[i] = 0x22 + } if len(m.OwnerAddress) > 0 { i -= len(m.OwnerAddress) copy(dAtA[i:], m.OwnerAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.OwnerAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(m.NetworkAddress) > 0 { i -= len(m.NetworkAddress) copy(dAtA[i:], m.NetworkAddress) i = encodeVarintTx(dAtA, i, uint64(len(m.NetworkAddress))) i-- - dAtA[i] = 0x1a - } - if len(m.BeneficiaryAddress) > 0 { - i -= len(m.BeneficiaryAddress) - copy(dAtA[i:], m.BeneficiaryAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.BeneficiaryAddress))) - i-- dAtA[i] = 0x12 } { @@ -861,15 +861,15 @@ func (m *MsgCreateResourceNode) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.BeneficiaryAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) if m.NodeType != 0 { n += 1 + sovTx(uint64(m.NodeType)) } + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -893,12 +893,12 @@ func (m *MsgCreateMetaNode) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = m.Description.Size() + n += 1 + l + sovTx(uint64(l)) l = len(m.BeneficiaryAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = m.Description.Size() - n += 1 + l + sovTx(uint64(l)) return n } @@ -910,10 +910,6 @@ func (m *MsgUpdateResourceNode) Size() (n int) { _ = l l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) - l = len(m.BeneficiaryAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } l = len(m.NetworkAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) @@ -925,6 +921,10 @@ func (m *MsgUpdateResourceNode) Size() (n int) { if m.NodeType != 0 { n += 1 + sovTx(uint64(m.NodeType)) } + l = len(m.BeneficiaryAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -936,15 +936,15 @@ func (m *MsgUpdateMetaNode) Size() (n int) { _ = l l = m.Description.Size() n += 1 + l + sovTx(uint64(l)) - l = len(m.BeneficiaryAddress) + l = len(m.NetworkAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.NetworkAddress) + l = len(m.OwnerAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.OwnerAddress) + l = len(m.BeneficiaryAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1121,9 +1121,9 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1133,29 +1133,30 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var msglen int + m.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1165,30 +1166,16 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - m.NodeType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1198,11 +1185,24 @@ func (m *MsgCreateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeType |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -1388,9 +1388,9 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1400,29 +1400,30 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1432,24 +1433,23 @@ func (m *MsgCreateMetaNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthTx } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthTx } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1536,7 +1536,7 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1564,11 +1564,11 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1596,13 +1596,13 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) } - var stringLen uint64 + m.NodeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1612,29 +1612,16 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.NodeType |= uint32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeType", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } - m.NodeType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -1644,11 +1631,24 @@ func (m *MsgUpdateResourceNode) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeType |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -1734,7 +1734,7 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1762,11 +1762,11 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) + m.NetworkAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1794,11 +1794,11 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NetworkAddress = string(dAtA[iNdEx:postIndex]) + m.OwnerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1826,7 +1826,7 @@ func (m *MsgUpdateMetaNode) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OwnerAddress = string(dAtA[iNdEx:postIndex]) + m.BeneficiaryAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex From bf53be2a4deb397c59810345a021ae5f773bf5aa Mon Sep 17 00:00:00 2001 From: Xiong Date: Tue, 16 Jul 2024 12:09:12 -0400 Subject: [PATCH 4/4] update go.mod --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 44e58ea8..d7974a3a 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.18.2 - github.com/stratosnet/stratos-chain/api v0.0.0-20240711220534-c9cbef9fd8e4 + github.com/stratosnet/stratos-chain/api v0.0.0-20240716160341-ec9024ef5de0 github.com/stretchr/testify v1.9.0 github.com/tyler-smith/go-bip39 v1.1.0 golang.org/x/crypto v0.21.0 diff --git a/go.sum b/go.sum index c55bf77b..dc4419f5 100644 --- a/go.sum +++ b/go.sum @@ -1042,8 +1042,8 @@ github.com/stratosnet/cosmos-sdk v0.47.12-0.20240711204239-ae99645b490a h1:2wf/1 github.com/stratosnet/cosmos-sdk v0.47.12-0.20240711204239-ae99645b490a/go.mod h1:c7xno1ENztUrUOqZ70W5gi0pTh3pT/3C6O0y1WzHSwU= github.com/stratosnet/ledger-stratos-go v0.0.0-20230728214905-432bf09f4b6c h1:EuJdqCo1DYeKjkXaIYNnU7WIFmu+FzJwJtzYhY3sQpQ= github.com/stratosnet/ledger-stratos-go v0.0.0-20230728214905-432bf09f4b6c/go.mod h1:9T0Ii/AMWWnJRtvKYKB4kDdraaOP76J+K5/IbRXQgyc= -github.com/stratosnet/stratos-chain/api v0.0.0-20240711220534-c9cbef9fd8e4 h1:ci6Hgh39u4FjCV9t+YIohc53v/gE1IpgxUpTTo4ggSY= -github.com/stratosnet/stratos-chain/api v0.0.0-20240711220534-c9cbef9fd8e4/go.mod h1:FN6crwtoVjf2errz8Nsj0y/zRxuIRtxs5w8qLHKVBqA= +github.com/stratosnet/stratos-chain/api v0.0.0-20240716160341-ec9024ef5de0 h1:WtXepCWm3FFya8L19INO/0bSxlsNqYNgkn5v5d+XHQQ= +github.com/stratosnet/stratos-chain/api v0.0.0-20240716160341-ec9024ef5de0/go.mod h1:FN6crwtoVjf2errz8Nsj0y/zRxuIRtxs5w8qLHKVBqA= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=