diff --git a/nameservice/nameserviceproto/nameservice_aa.pb.go b/nameservice/nameserviceproto/nameservice_aa.pb.go index 61567fd5..7909dc16 100644 --- a/nameservice/nameserviceproto/nameservice_aa.pb.go +++ b/nameservice/nameserviceproto/nameservice_aa.pb.go @@ -471,6 +471,9 @@ type CreateUserOperationRequest struct { Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` OwnerEthAddress string `protobuf:"bytes,4,opt,name=ownerEthAddress,proto3" json:"ownerEthAddress,omitempty"` OwnerAnyID string `protobuf:"bytes,5,opt,name=ownerAnyID,proto3" json:"ownerAnyID,omitempty"` + // all operations currently are towards single name, please specify it + // we can use it for caching, etc purps. + FullName string `protobuf:"bytes,6,opt,name=fullName,proto3" json:"fullName,omitempty"` } func (m *CreateUserOperationRequest) Reset() { *m = CreateUserOperationRequest{} } @@ -541,6 +544,13 @@ func (m *CreateUserOperationRequest) GetOwnerAnyID() string { return "" } +func (m *CreateUserOperationRequest) GetFullName() string { + if m != nil { + return m.FullName + } + return "" +} + type CreateUserOperationRequestSigned struct { // CreateUserOperationRequest struct Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` @@ -783,54 +793,54 @@ func init() { } var fileDescriptor_c9d3f9b8b141e804 = []byte{ - // 744 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xd1, 0x4e, 0xdb, 0x48, - 0x14, 0x8d, 0x49, 0x58, 0xc8, 0x25, 0x1b, 0xc2, 0x04, 0xd8, 0x6c, 0x60, 0xbd, 0xc1, 0xbb, 0x5a, - 0x45, 0xfb, 0x60, 0x2a, 0x2a, 0xb5, 0xbc, 0x54, 0xaa, 0x1b, 0x20, 0x45, 0x54, 0x80, 0x4c, 0x51, - 0x25, 0x50, 0x55, 0x0d, 0xf1, 0x25, 0x8d, 0x9a, 0xcc, 0xa4, 0x33, 0x93, 0xd2, 0xfc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f3, 0x22, 0x6a, 0xb9, 0xf8, 0xba, 0x83, 0xf2, 0x67, 0x44, 0x33, 0x01, 0xae, - 0xc9, 0x68, 0x81, 0x52, 0x6e, 0x04, 0xb1, 0x8e, 0x61, 0x65, 0x44, 0xa3, 0x83, 0x46, 0x9d, 0xa1, - 0x47, 0x0a, 0x30, 0xd5, 0xa6, 0xdd, 0x26, 0xa7, 0x9e, 0x6e, 0x93, 0x71, 0x7b, 0x21, 0x59, 0x86, - 0xb4, 0x6c, 0xd4, 0x19, 0x55, 0x1d, 0x81, 0xba, 0x7a, 0xc6, 0xbd, 0x06, 0xac, 0xf7, 0x06, 0xfc, - 0x15, 0x56, 0xaf, 0x52, 0xb9, 0x17, 0x4e, 0xfa, 0x4b, 0x83, 0x68, 0xc8, 0x61, 0xdd, 0xed, 0x8d, - 0x60, 0xd3, 0x11, 0x44, 0x57, 0xea, 0x17, 0x52, 0x6f, 0x31, 0xe5, 0x0e, 0xc2, 0xd6, 0x73, 0xf8, - 0x67, 0x24, 0xa9, 0x5b, 0x0e, 0xed, 0xc0, 0x42, 0x15, 0xd5, 0x6d, 0x96, 0x66, 0xed, 0xc0, 0x52, - 0x15, 0xd5, 0x06, 0x55, 0x74, 0x97, 0xb6, 0xd0, 0xc5, 0x7a, 0x43, 0x2a, 0x14, 0x2e, 0xca, 0x36, - 0x67, 0x12, 0x09, 0x81, 0x94, 0x47, 0x15, 0x0d, 0x68, 0xe9, 0x67, 0x9f, 0x6d, 0x8d, 0x33, 0x85, - 0x6f, 0x55, 0xc0, 0xa8, 0x17, 0x5a, 0x9f, 0x0c, 0x28, 0x56, 0x04, 0x52, 0x85, 0x3e, 0xa7, 0x70, - 0xda, 0x1e, 0xab, 0xb8, 0x62, 0x26, 0x80, 0xd4, 0x22, 0xf8, 0x14, 0x82, 0x7a, 0x11, 0x24, 0xda, - 0x2c, 0xd9, 0xd7, 0x2c, 0x6e, 0xc6, 0xd4, 0x4d, 0xf6, 0x39, 0x39, 0xb8, 0x4f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 0x4c, 0x54, 0x27, 0x52, 0xb4, 0x87, 0xca, 0x56, 0x24, 0xf6, 0x0f, 0x9a, 0x58, 0x09, - 0xb2, 0x0f, 0xf3, 0x71, 0x06, 0x48, 0x2c, 0x7b, 0xac, 0x2f, 0x0e, 0xa9, 0xf8, 0x14, 0x16, 0xe3, - 0xfd, 0x85, 0xfc, 0x6b, 0xdf, 0xc0, 0x78, 0x86, 0x54, 0x5d, 0x87, 0x6c, 0xbf, 0xad, 0x90, 0x45, - 0x3b, 0xd6, 0x67, 0x8a, 0x19, 0x3b, 0x02, 0x5a, 0x09, 0xb2, 0x03, 0xf9, 0x18, 0x37, 0x21, 0xf3, - 0x76, 0xcc, 0x15, 0x28, 0x2e, 0xdb, 0x23, 0x9c, 0xc7, 0x4a, 0x90, 0x5d, 0xc8, 0xc7, 0x5c, 0x4b, - 0xb2, 0x62, 0x8f, 0xbb, 0xac, 0xf1, 0x63, 0x3d, 0xba, 0xf7, 0xf9, 0xc2, 0x34, 0xce, 0x2f, 0x4c, - 0xe3, 0xdb, 0x85, 0x69, 0xbc, 0xbb, 0x34, 0x13, 0xe7, 0x97, 0x66, 0xe2, 0xcb, 0xa5, 0x99, 0x38, - 0x5a, 0x1e, 0xf5, 0x13, 0xe3, 0xe4, 0x37, 0xfd, 0xef, 0xee, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x66, 0x80, 0x8a, 0xf8, 0x89, 0x08, 0x00, 0x00, + // 747 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x5d, 0x4f, 0x13, 0x4d, + 0x14, 0xee, 0xd2, 0xf2, 0xd1, 0x43, 0xdf, 0x52, 0xa6, 0xc0, 0xdb, 0xb7, 0xf0, 0xae, 0x65, 0x35, + 0xa6, 0xf1, 0x62, 0x31, 0x98, 0x28, 0x37, 0x26, 0xae, 0x05, 0x2a, 0xc1, 0x00, 0x59, 0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 0x6a, 0xf5, 0x67, 0x12, 0xfe, 0xb5, 0x58, 0x97, 0x09, 0xff, 0xae, 0x59, 0xc7, 0xc2, 0xdb, + 0xd3, 0x5e, 0x2f, 0xf2, 0x0c, 0x32, 0x61, 0x9f, 0x48, 0xd1, 0x1c, 0x68, 0x5b, 0x91, 0x98, 0xd7, + 0x3c, 0x31, 0x12, 0x64, 0x0f, 0xe6, 0xe2, 0x96, 0x23, 0x31, 0xcc, 0x91, 0x3b, 0x73, 0x40, 0xc5, + 0x57, 0xb0, 0x10, 0xbf, 0x7b, 0xc8, 0x3d, 0xf3, 0x06, 0x4b, 0x69, 0x40, 0xd5, 0x35, 0xc8, 0x46, + 0x57, 0x0e, 0x59, 0x30, 0x63, 0x77, 0x50, 0x31, 0x63, 0x86, 0x40, 0x23, 0x41, 0xb6, 0x21, 0x1f, + 0xb3, 0x69, 0xc8, 0x9c, 0x19, 0x73, 0x05, 0x8a, 0x4b, 0xe6, 0x90, 0xad, 0x64, 0x24, 0xc8, 0x0e, + 0xe4, 0x63, 0xae, 0x25, 0x59, 0x36, 0x47, 0x5d, 0xd6, 0x78, 0x59, 0xcf, 0x1f, 0x7f, 0x3f, 0xd7, + 0xb5, 0xb3, 0x73, 0x5d, 0xfb, 0x75, 0xae, 0x6b, 0x9f, 0x2f, 0xf4, 0xc4, 0xd9, 0x85, 0x9e, 0xf8, + 0x71, 0xa1, 0x27, 0x0e, 0x97, 0x86, 0xfd, 0xfc, 0x38, 0x9e, 0x50, 0xff, 0x1e, 0xfd, 0x0e, 0x00, + 0x00, 0xff, 0xff, 0xb6, 0xa8, 0xb9, 0x6c, 0xa5, 0x08, 0x00, 0x00, } func (m *UserAccount) Marshal() (dAtA []byte, err error) { @@ -1128,6 +1138,13 @@ func (m *CreateUserOperationRequest) MarshalToSizedBuffer(dAtA []byte) (int, err _ = i var l int _ = l + if len(m.FullName) > 0 { + i -= len(m.FullName) + copy(dAtA[i:], m.FullName) + i = encodeVarintNameserviceAa(dAtA, i, uint64(len(m.FullName))) + i-- + dAtA[i] = 0x32 + } if len(m.OwnerAnyID) > 0 { i -= len(m.OwnerAnyID) copy(dAtA[i:], m.OwnerAnyID) @@ -1482,6 +1499,10 @@ func (m *CreateUserOperationRequest) Size() (n int) { if l > 0 { n += 1 + l + sovNameserviceAa(uint64(l)) } + l = len(m.FullName) + if l > 0 { + n += 1 + l + sovNameserviceAa(uint64(l)) + } return n } @@ -2599,6 +2620,38 @@ func (m *CreateUserOperationRequest) Unmarshal(dAtA []byte) error { } m.OwnerAnyID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FullName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNameserviceAa + } + 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 ErrInvalidLengthNameserviceAa + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNameserviceAa + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FullName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNameserviceAa(dAtA[iNdEx:]) diff --git a/nameservice/nameserviceproto/protos/nameservice_aa.proto b/nameservice/nameserviceproto/protos/nameservice_aa.proto index 82d59bbe..29ae7692 100644 --- a/nameservice/nameserviceproto/protos/nameservice_aa.proto +++ b/nameservice/nameserviceproto/protos/nameservice_aa.proto @@ -80,6 +80,10 @@ message CreateUserOperationRequest { string ownerEthAddress = 4; string ownerAnyID = 5; + + // all operations currently are towards single name, please specify it + // we can use it for caching, etc purps. + string fullName = 6; } message CreateUserOperationRequestSigned {