1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Merge pull request #289 from anyproto/GO-3995-ns-renew

nameservice: new method - AdminNameRenewSigned
This commit is contained in:
Anthony Akentiev 2024-09-02 12:51:00 +01:00 committed by GitHub
commit cc0461bef9
Signed by: github
GPG key ID: B5690EEEBB952194
7 changed files with 793 additions and 95 deletions

View file

@ -5,6 +5,7 @@
// //
// mockgen -source nameservice/nameserviceclient/nameserviceclient.go // mockgen -source nameservice/nameserviceclient/nameserviceclient.go
// //
// Package mock_nameserviceclient is a generated GoMock package. // Package mock_nameserviceclient is a generated GoMock package.
package mock_nameserviceclient package mock_nameserviceclient
@ -211,6 +212,21 @@ func (mr *MockAnyNsClientServiceMockRecorder) AdminRegisterName(ctx, in any) *go
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRegisterName", reflect.TypeOf((*MockAnyNsClientService)(nil).AdminRegisterName), ctx, in) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRegisterName", reflect.TypeOf((*MockAnyNsClientService)(nil).AdminRegisterName), ctx, in)
} }
// AdminRenewName mocks base method.
func (m *MockAnyNsClientService) AdminRenewName(ctx context.Context, in *nameserviceproto.NameRenewRequestSigned) (*nameserviceproto.OperationResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AdminRenewName", ctx, in)
ret0, _ := ret[0].(*nameserviceproto.OperationResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AdminRenewName indicates an expected call of AdminRenewName.
func (mr *MockAnyNsClientServiceMockRecorder) AdminRenewName(ctx, in any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRenewName", reflect.TypeOf((*MockAnyNsClientService)(nil).AdminRenewName), ctx, in)
}
// BatchGetNameByAddress mocks base method. // BatchGetNameByAddress mocks base method.
func (m *MockAnyNsClientService) BatchGetNameByAddress(ctx context.Context, in *nameserviceproto.BatchNameByAddressRequest) (*nameserviceproto.BatchNameByAddressResponse, error) { func (m *MockAnyNsClientService) BatchGetNameByAddress(ctx context.Context, in *nameserviceproto.BatchNameByAddressRequest) (*nameserviceproto.BatchNameByAddressResponse, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()

View file

@ -42,6 +42,7 @@ type AnyNsClientService interface {
AdminFundUserAccount(ctx context.Context, in *nsp.AdminFundUserAccountRequestSigned) (out *nsp.OperationResponse, err error) AdminFundUserAccount(ctx context.Context, in *nsp.AdminFundUserAccountRequestSigned) (out *nsp.OperationResponse, err error)
AdminRegisterName(ctx context.Context, in *nsp.NameRegisterRequestSigned) (out *nsp.OperationResponse, err error) AdminRegisterName(ctx context.Context, in *nsp.NameRegisterRequestSigned) (out *nsp.OperationResponse, err error)
AdminRenewName(ctx context.Context, in *nsp.NameRenewRequestSigned) (out *nsp.OperationResponse, err error)
GetOperation(ctx context.Context, in *nsp.GetOperationStatusRequest) (out *nsp.OperationResponse, err error) GetOperation(ctx context.Context, in *nsp.GetOperationStatusRequest) (out *nsp.OperationResponse, err error)
CreateOperation(ctx context.Context, in *nsp.CreateUserOperationRequestSigned) (out *nsp.OperationResponse, err error) CreateOperation(ctx context.Context, in *nsp.CreateUserOperationRequestSigned) (out *nsp.OperationResponse, err error)
@ -205,6 +206,16 @@ func (s *service) AdminRegisterName(ctx context.Context, in *nsp.NameRegisterReq
return return
} }
func (s *service) AdminRenewName(ctx context.Context, in *nsp.NameRenewRequestSigned) (out *nsp.OperationResponse, err error) {
err = s.doClient(ctx, func(cl nsp.DRPCAnynsClient) error {
if out, err = cl.AdminNameRenewSigned(ctx, in); err != nil {
return rpcerr.Unwrap(err)
}
return nil
})
return
}
func (s *service) GetOperation(ctx context.Context, in *nsp.GetOperationStatusRequest) (out *nsp.OperationResponse, err error) { func (s *service) GetOperation(ctx context.Context, in *nsp.GetOperationStatusRequest) (out *nsp.OperationResponse, err error) {
err = s.doClientAA(ctx, func(cl nsp.DRPCAnynsAccountAbstractionClient) error { err = s.doClientAA(ctx, func(cl nsp.DRPCAnynsAccountAbstractionClient) error {
if out, err = cl.GetOperation(ctx, in); err != nil { if out, err = cl.GetOperation(ctx, in); err != nil {

View file

@ -623,43 +623,43 @@ func init() {
} }
var fileDescriptor_06bca2ea4304f305 = []byte{ var fileDescriptor_06bca2ea4304f305 = []byte{
// 562 bytes of a gzipped FileDescriptorProto // 576 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4d, 0x6f, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0xb5, 0x49, 0xd2, 0x36, 0x53, 0x44, 0xd1, 0x36, 0xa1, 0xc6, 0xad, 0xac, 0x68, 0x4f, 0x39, 0x10, 0xb5, 0x69, 0xd2, 0x36, 0x53, 0x44, 0xd1, 0x36, 0x21, 0xc6, 0xad, 0xac, 0x68, 0x4f, 0x39,
0x6d, 0x51, 0xf8, 0x10, 0x1c, 0x10, 0x72, 0x50, 0x41, 0x11, 0x52, 0x2a, 0xdc, 0x1b, 0x17, 0xb4, 0x6d, 0x51, 0xf8, 0x10, 0x1c, 0x10, 0x72, 0x50, 0x40, 0x11, 0x52, 0x2a, 0xdc, 0x1b, 0x17, 0xb4,
0x8d, 0xb7, 0xad, 0xa5, 0x64, 0x1d, 0xbc, 0x4e, 0x4b, 0xfe, 0x05, 0x17, 0xfe, 0x13, 0xc7, 0x1e, 0x8d, 0xb7, 0xad, 0xa5, 0x64, 0x1d, 0xbc, 0x4e, 0x43, 0xfe, 0x05, 0x3f, 0x8b, 0x63, 0x8f, 0x1c,
0x39, 0xa2, 0xe4, 0x37, 0x70, 0x47, 0x5e, 0xdb, 0xf1, 0xfa, 0xab, 0xa8, 0x97, 0xd6, 0xfb, 0xe6, 0x38, 0xa0, 0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, 0xfe, 0x8b, 0xef, 0x2b, 0x4b, 0xbf, 0x5d, 0x59, 0xfa, 0xaf, 0x95, 0xa5, 0x7f, 0x5b, 0x5b,
0xb7, 0xe4, 0xbf, 0xe7, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x04, 0xfe, 0x4d, 0x21, 0x06, 0xda, 0xed, 0xda, 0xd2, 0x7e, 0xac, 0x2d, 0xed, 0xd3, 0xc9, 0x5d, 0x3f, 0x05, 0x17, 0xbb, 0xf2,
0x00, 0x00, 0xdf, 0xd3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x02, 0x69, 0x35, 0xe2, 0x68, 0x06, 0x00, 0x00,
} }
func (m *NameAvailableRequest) Marshal() (dAtA []byte, err error) { func (m *NameAvailableRequest) Marshal() (dAtA []byte, err error) {

View file

@ -833,6 +833,160 @@ func (m *NameRegisterRequestSigned) GetSignature() []byte {
return nil return nil
} }
type NameRenewRequest struct {
FullName string `protobuf:"bytes,1,opt,name=fullName,proto3" json:"fullName,omitempty"`
// A content hash attached to this name
// This should not be empty!
// in the following format: "A5k2d9sFZw84yisTxRnz2bPRd1YPfVfhxqymZ6yESprFTG65"
// you can get it with Account().SignKey.GetPublic().Account()
OwnerAnyAddress string `protobuf:"bytes,2,opt,name=ownerAnyAddress,proto3" json:"ownerAnyAddress,omitempty"`
// An Ethereum address that owns that name
OwnerEthAddress string `protobuf:"bytes,3,opt,name=ownerEthAddress,proto3" json:"ownerEthAddress,omitempty"`
// if false -> name ownership will belong to ownerEthAddress
// if true -> name ownership will belong to SCW of ownerEthAddress (AccountAbstraction)
RenewToSmartContractWallet bool `protobuf:"varint,4,opt,name=renewToSmartContractWallet,proto3" json:"renewToSmartContractWallet,omitempty"`
// How many months to register the name for
RenewPeriodMonths uint32 `protobuf:"varint,5,opt,name=renewPeriodMonths,proto3" json:"renewPeriodMonths,omitempty"`
}
func (m *NameRenewRequest) Reset() { *m = NameRenewRequest{} }
func (m *NameRenewRequest) String() string { return proto.CompactTextString(m) }
func (*NameRenewRequest) ProtoMessage() {}
func (*NameRenewRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9d3f9b8b141e804, []int{11}
}
func (m *NameRenewRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *NameRenewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_NameRenewRequest.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 *NameRenewRequest) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
b = b[:newLen]
_, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b, nil
}
func (m *NameRenewRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_NameRenewRequest.Merge(m, src)
}
func (m *NameRenewRequest) XXX_Size() int {
return m.Size()
}
func (m *NameRenewRequest) XXX_DiscardUnknown() {
xxx_messageInfo_NameRenewRequest.DiscardUnknown(m)
}
var xxx_messageInfo_NameRenewRequest proto.InternalMessageInfo
func (m *NameRenewRequest) GetFullName() string {
if m != nil {
return m.FullName
}
return ""
}
func (m *NameRenewRequest) GetOwnerAnyAddress() string {
if m != nil {
return m.OwnerAnyAddress
}
return ""
}
func (m *NameRenewRequest) GetOwnerEthAddress() string {
if m != nil {
return m.OwnerEthAddress
}
return ""
}
func (m *NameRenewRequest) GetRenewToSmartContractWallet() bool {
if m != nil {
return m.RenewToSmartContractWallet
}
return false
}
func (m *NameRenewRequest) GetRenewPeriodMonths() uint32 {
if m != nil {
return m.RenewPeriodMonths
}
return 0
}
type NameRenewRequestSigned struct {
// NameRenewRequest struct
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
// payload signed by payload.ownerEthAddress
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
}
func (m *NameRenewRequestSigned) Reset() { *m = NameRenewRequestSigned{} }
func (m *NameRenewRequestSigned) String() string { return proto.CompactTextString(m) }
func (*NameRenewRequestSigned) ProtoMessage() {}
func (*NameRenewRequestSigned) Descriptor() ([]byte, []int) {
return fileDescriptor_c9d3f9b8b141e804, []int{12}
}
func (m *NameRenewRequestSigned) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *NameRenewRequestSigned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_NameRenewRequestSigned.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 *NameRenewRequestSigned) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error) {
b = b[:newLen]
_, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b, nil
}
func (m *NameRenewRequestSigned) XXX_Merge(src proto.Message) {
xxx_messageInfo_NameRenewRequestSigned.Merge(m, src)
}
func (m *NameRenewRequestSigned) XXX_Size() int {
return m.Size()
}
func (m *NameRenewRequestSigned) XXX_DiscardUnknown() {
xxx_messageInfo_NameRenewRequestSigned.DiscardUnknown(m)
}
var xxx_messageInfo_NameRenewRequestSigned proto.InternalMessageInfo
func (m *NameRenewRequestSigned) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
func (m *NameRenewRequestSigned) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
type NameRegisterForSpaceRequest struct { type NameRegisterForSpaceRequest struct {
FullName string `protobuf:"bytes,1,opt,name=fullName,proto3" json:"fullName,omitempty"` FullName string `protobuf:"bytes,1,opt,name=fullName,proto3" json:"fullName,omitempty"`
// A content hash attached to this name // A content hash attached to this name
@ -852,7 +1006,7 @@ func (m *NameRegisterForSpaceRequest) Reset() { *m = NameRegisterForSpac
func (m *NameRegisterForSpaceRequest) String() string { return proto.CompactTextString(m) } func (m *NameRegisterForSpaceRequest) String() string { return proto.CompactTextString(m) }
func (*NameRegisterForSpaceRequest) ProtoMessage() {} func (*NameRegisterForSpaceRequest) ProtoMessage() {}
func (*NameRegisterForSpaceRequest) Descriptor() ([]byte, []int) { func (*NameRegisterForSpaceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9d3f9b8b141e804, []int{11} return fileDescriptor_c9d3f9b8b141e804, []int{13}
} }
func (m *NameRegisterForSpaceRequest) XXX_Unmarshal(b []byte) error { func (m *NameRegisterForSpaceRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -932,7 +1086,7 @@ func (m *GetOperationStatusRequest) Reset() { *m = GetOperationStatusReq
func (m *GetOperationStatusRequest) String() string { return proto.CompactTextString(m) } func (m *GetOperationStatusRequest) String() string { return proto.CompactTextString(m) }
func (*GetOperationStatusRequest) ProtoMessage() {} func (*GetOperationStatusRequest) ProtoMessage() {}
func (*GetOperationStatusRequest) Descriptor() ([]byte, []int) { func (*GetOperationStatusRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c9d3f9b8b141e804, []int{12} return fileDescriptor_c9d3f9b8b141e804, []int{14}
} }
func (m *GetOperationStatusRequest) XXX_Unmarshal(b []byte) error { func (m *GetOperationStatusRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -985,7 +1139,7 @@ func (m *OperationResponse) Reset() { *m = OperationResponse{} }
func (m *OperationResponse) String() string { return proto.CompactTextString(m) } func (m *OperationResponse) String() string { return proto.CompactTextString(m) }
func (*OperationResponse) ProtoMessage() {} func (*OperationResponse) ProtoMessage() {}
func (*OperationResponse) Descriptor() ([]byte, []int) { func (*OperationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c9d3f9b8b141e804, []int{13} return fileDescriptor_c9d3f9b8b141e804, []int{15}
} }
func (m *OperationResponse) XXX_Unmarshal(b []byte) error { func (m *OperationResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b) return m.Unmarshal(b)
@ -1049,6 +1203,8 @@ func init() {
proto.RegisterType((*CreateUserOperationRequestSigned)(nil), "CreateUserOperationRequestSigned") proto.RegisterType((*CreateUserOperationRequestSigned)(nil), "CreateUserOperationRequestSigned")
proto.RegisterType((*NameRegisterRequest)(nil), "NameRegisterRequest") proto.RegisterType((*NameRegisterRequest)(nil), "NameRegisterRequest")
proto.RegisterType((*NameRegisterRequestSigned)(nil), "NameRegisterRequestSigned") proto.RegisterType((*NameRegisterRequestSigned)(nil), "NameRegisterRequestSigned")
proto.RegisterType((*NameRenewRequest)(nil), "NameRenewRequest")
proto.RegisterType((*NameRenewRequestSigned)(nil), "NameRenewRequestSigned")
proto.RegisterType((*NameRegisterForSpaceRequest)(nil), "NameRegisterForSpaceRequest") proto.RegisterType((*NameRegisterForSpaceRequest)(nil), "NameRegisterForSpaceRequest")
proto.RegisterType((*GetOperationStatusRequest)(nil), "GetOperationStatusRequest") proto.RegisterType((*GetOperationStatusRequest)(nil), "GetOperationStatusRequest")
proto.RegisterType((*OperationResponse)(nil), "OperationResponse") proto.RegisterType((*OperationResponse)(nil), "OperationResponse")
@ -1059,59 +1215,62 @@ func init() {
} }
var fileDescriptor_c9d3f9b8b141e804 = []byte{ var fileDescriptor_c9d3f9b8b141e804 = []byte{
// 831 bytes of a gzipped FileDescriptorProto // 872 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x51, 0x6f, 0x1b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
0x10, 0xf6, 0xc5, 0x97, 0x26, 0x9e, 0xb8, 0xae, 0xbb, 0x4e, 0x8b, 0xeb, 0xb8, 0x87, 0x7b, 0x20, 0x14, 0xf6, 0x26, 0x4e, 0x93, 0x9c, 0xa4, 0xae, 0x33, 0x49, 0x83, 0xeb, 0xa4, 0x8b, 0xb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0x4a, 0xc6, 0x18, 0x26, 0xf7, 0xbc, 0x75, 0xc3, 0x39, 0x5b, 0xb3, 0xaf, 0x3e, 0xa5, 0x64, 0xd3, 0xb7, 0x6a, 0x6b, 0x7d, 0xd5, 0x37, 0x40, 0xaf, 0x44, 0x1e, 0xc1, 0xba, 0x45,
0xfb, 0xf3, 0xdc, 0xb1, 0xce, 0xce, 0x1d, 0xeb, 0x9f, 0x73, 0xc7, 0xfa, 0xf5, 0xc2, 0xc9, 0x9d, 0x41, 0xc9, 0x86, 0x6f, 0x99, 0x6c, 0xf5, 0x6d, 0xbf, 0x40, 0x6d, 0xbd, 0x12, 0x39, 0xb5, 0xca,
0x5d, 0x38, 0xb9, 0xbf, 0x2e, 0x9c, 0xdc, 0xb3, 0xfa, 0xaa, 0x9f, 0x9b, 0xcf, 0xaf, 0xe9, 0x7f, 0xf1, 0xe8, 0xf2, 0x91, 0x6d, 0xbf, 0xe0, 0x4e, 0x4e, 0x75, 0x7e, 0x0c, 0xeb, 0x16, 0x2d, 0x23,
0x9f, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x3c, 0xfb, 0x3d, 0x95, 0x0a, 0x00, 0x00, 0xf7, 0xfc, 0x69, 0x0a, 0x67, 0xe7, 0xec, 0xab, 0x4f, 0xff, 0xbc, 0x70, 0x9d, 0xf3, 0x0b, 0xd7,
0xf9, 0xe7, 0xc2, 0x75, 0x7e, 0xbd, 0x74, 0x4b, 0xe7, 0x97, 0x6e, 0xe9, 0xaf, 0x4b, 0xb7, 0xf4,
0x6c, 0xbb, 0xe8, 0x9b, 0xfd, 0xf9, 0x0d, 0xfd, 0xf7, 0xc9, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff,
0x58, 0x1a, 0x82, 0x1c, 0xda, 0x0b, 0x00, 0x00,
} }
func (m *UserAccount) Marshal() (dAtA []byte, err error) { func (m *UserAccount) Marshal() (dAtA []byte, err error) {
@ -1587,6 +1746,102 @@ func (m *NameRegisterRequestSigned) MarshalToSizedBuffer(dAtA []byte) (int, erro
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
func (m *NameRenewRequest) 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 *NameRenewRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *NameRenewRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.RenewPeriodMonths != 0 {
i = encodeVarintNameserviceAa(dAtA, i, uint64(m.RenewPeriodMonths))
i--
dAtA[i] = 0x28
}
if m.RenewToSmartContractWallet {
i--
if m.RenewToSmartContractWallet {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x20
}
if len(m.OwnerEthAddress) > 0 {
i -= len(m.OwnerEthAddress)
copy(dAtA[i:], m.OwnerEthAddress)
i = encodeVarintNameserviceAa(dAtA, i, uint64(len(m.OwnerEthAddress)))
i--
dAtA[i] = 0x1a
}
if len(m.OwnerAnyAddress) > 0 {
i -= len(m.OwnerAnyAddress)
copy(dAtA[i:], m.OwnerAnyAddress)
i = encodeVarintNameserviceAa(dAtA, i, uint64(len(m.OwnerAnyAddress)))
i--
dAtA[i] = 0x12
}
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] = 0xa
}
return len(dAtA) - i, nil
}
func (m *NameRenewRequestSigned) 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 *NameRenewRequestSigned) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *NameRenewRequestSigned) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Signature) > 0 {
i -= len(m.Signature)
copy(dAtA[i:], m.Signature)
i = encodeVarintNameserviceAa(dAtA, i, uint64(len(m.Signature)))
i--
dAtA[i] = 0x12
}
if len(m.Payload) > 0 {
i -= len(m.Payload)
copy(dAtA[i:], m.Payload)
i = encodeVarintNameserviceAa(dAtA, i, uint64(len(m.Payload)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *NameRegisterForSpaceRequest) Marshal() (dAtA []byte, err error) { func (m *NameRegisterForSpaceRequest) Marshal() (dAtA []byte, err error) {
size := m.Size() size := m.Size()
dAtA = make([]byte, size) dAtA = make([]byte, size)
@ -1939,6 +2194,50 @@ func (m *NameRegisterRequestSigned) Size() (n int) {
return n return n
} }
func (m *NameRenewRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.FullName)
if l > 0 {
n += 1 + l + sovNameserviceAa(uint64(l))
}
l = len(m.OwnerAnyAddress)
if l > 0 {
n += 1 + l + sovNameserviceAa(uint64(l))
}
l = len(m.OwnerEthAddress)
if l > 0 {
n += 1 + l + sovNameserviceAa(uint64(l))
}
if m.RenewToSmartContractWallet {
n += 2
}
if m.RenewPeriodMonths != 0 {
n += 1 + sovNameserviceAa(uint64(m.RenewPeriodMonths))
}
return n
}
func (m *NameRenewRequestSigned) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Payload)
if l > 0 {
n += 1 + l + sovNameserviceAa(uint64(l))
}
l = len(m.Signature)
if l > 0 {
n += 1 + l + sovNameserviceAa(uint64(l))
}
return n
}
func (m *NameRegisterForSpaceRequest) Size() (n int) { func (m *NameRegisterForSpaceRequest) Size() (n int) {
if m == nil { if m == nil {
return 0 return 0
@ -3513,6 +3812,309 @@ func (m *NameRegisterRequestSigned) Unmarshal(dAtA []byte) error {
} }
return nil return nil
} }
func (m *NameRenewRequest) 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 ErrIntOverflowNameserviceAa
}
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: NameRenewRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: NameRenewRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
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
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field OwnerAnyAddress", 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.OwnerAnyAddress = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field OwnerEthAddress", 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.OwnerEthAddress = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field RenewToSmartContractWallet", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowNameserviceAa
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.RenewToSmartContractWallet = bool(v != 0)
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field RenewPeriodMonths", wireType)
}
m.RenewPeriodMonths = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowNameserviceAa
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.RenewPeriodMonths |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipNameserviceAa(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthNameserviceAa
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *NameRenewRequestSigned) 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 ErrIntOverflowNameserviceAa
}
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: NameRenewRequestSigned: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: NameRenewRequestSigned: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowNameserviceAa
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthNameserviceAa
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthNameserviceAa
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...)
if m.Payload == nil {
m.Payload = []byte{}
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowNameserviceAa
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthNameserviceAa
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthNameserviceAa
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...)
if m.Signature == nil {
m.Signature = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipNameserviceAa(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthNameserviceAa
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *NameRegisterForSpaceRequest) Unmarshal(dAtA []byte) error { func (m *NameRegisterForSpaceRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA) l := len(dAtA)
iNdEx := 0 iNdEx := 0

View file

@ -47,6 +47,7 @@ type DRPCAnynsClient interface {
GetNameByAnyId(ctx context.Context, in *NameByAnyIdRequest) (*NameByAddressResponse, error) GetNameByAnyId(ctx context.Context, in *NameByAnyIdRequest) (*NameByAddressResponse, error)
BatchGetNameByAnyId(ctx context.Context, in *BatchNameByAnyIdRequest) (*BatchNameByAddressResponse, error) BatchGetNameByAnyId(ctx context.Context, in *BatchNameByAnyIdRequest) (*BatchNameByAddressResponse, error)
AdminNameRegisterSigned(ctx context.Context, in *NameRegisterRequestSigned) (*OperationResponse, error) AdminNameRegisterSigned(ctx context.Context, in *NameRegisterRequestSigned) (*OperationResponse, error)
AdminNameRenewSigned(ctx context.Context, in *NameRenewRequestSigned) (*OperationResponse, error)
} }
type drpcAnynsClient struct { type drpcAnynsClient struct {
@ -122,6 +123,15 @@ func (c *drpcAnynsClient) AdminNameRegisterSigned(ctx context.Context, in *NameR
return out, nil return out, nil
} }
func (c *drpcAnynsClient) AdminNameRenewSigned(ctx context.Context, in *NameRenewRequestSigned) (*OperationResponse, error) {
out := new(OperationResponse)
err := c.cc.Invoke(ctx, "/Anyns/AdminNameRenewSigned", drpcEncoding_File_nameservice_nameserviceproto_protos_nameservice_proto{}, in, out)
if err != nil {
return nil, err
}
return out, nil
}
type DRPCAnynsServer interface { type DRPCAnynsServer interface {
IsNameAvailable(context.Context, *NameAvailableRequest) (*NameAvailableResponse, error) IsNameAvailable(context.Context, *NameAvailableRequest) (*NameAvailableResponse, error)
BatchIsNameAvailable(context.Context, *BatchNameAvailableRequest) (*BatchNameAvailableResponse, error) BatchIsNameAvailable(context.Context, *BatchNameAvailableRequest) (*BatchNameAvailableResponse, error)
@ -130,6 +140,7 @@ type DRPCAnynsServer interface {
GetNameByAnyId(context.Context, *NameByAnyIdRequest) (*NameByAddressResponse, error) GetNameByAnyId(context.Context, *NameByAnyIdRequest) (*NameByAddressResponse, error)
BatchGetNameByAnyId(context.Context, *BatchNameByAnyIdRequest) (*BatchNameByAddressResponse, error) BatchGetNameByAnyId(context.Context, *BatchNameByAnyIdRequest) (*BatchNameByAddressResponse, error)
AdminNameRegisterSigned(context.Context, *NameRegisterRequestSigned) (*OperationResponse, error) AdminNameRegisterSigned(context.Context, *NameRegisterRequestSigned) (*OperationResponse, error)
AdminNameRenewSigned(context.Context, *NameRenewRequestSigned) (*OperationResponse, error)
} }
type DRPCAnynsUnimplementedServer struct{} type DRPCAnynsUnimplementedServer struct{}
@ -162,9 +173,13 @@ func (s *DRPCAnynsUnimplementedServer) AdminNameRegisterSigned(context.Context,
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented) return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
} }
func (s *DRPCAnynsUnimplementedServer) AdminNameRenewSigned(context.Context, *NameRenewRequestSigned) (*OperationResponse, error) {
return nil, drpcerr.WithCode(errors.New("Unimplemented"), drpcerr.Unimplemented)
}
type DRPCAnynsDescription struct{} type DRPCAnynsDescription struct{}
func (DRPCAnynsDescription) NumMethods() int { return 7 } func (DRPCAnynsDescription) NumMethods() int { return 8 }
func (DRPCAnynsDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) { func (DRPCAnynsDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) {
switch n { switch n {
@ -231,6 +246,15 @@ func (DRPCAnynsDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver,
in1.(*NameRegisterRequestSigned), in1.(*NameRegisterRequestSigned),
) )
}, DRPCAnynsServer.AdminNameRegisterSigned, true }, DRPCAnynsServer.AdminNameRegisterSigned, true
case 7:
return "/Anyns/AdminNameRenewSigned", drpcEncoding_File_nameservice_nameserviceproto_protos_nameservice_proto{},
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
return srv.(DRPCAnynsServer).
AdminNameRenewSigned(
ctx,
in1.(*NameRenewRequestSigned),
)
}, DRPCAnynsServer.AdminNameRenewSigned, true
default: default:
return "", nil, nil, nil, false return "", nil, nil, nil, false
} }
@ -351,3 +375,19 @@ func (x *drpcAnyns_AdminNameRegisterSignedStream) SendAndClose(m *OperationRespo
} }
return x.CloseSend() return x.CloseSend()
} }
type DRPCAnyns_AdminNameRenewSignedStream interface {
drpc.Stream
SendAndClose(*OperationResponse) error
}
type drpcAnyns_AdminNameRenewSignedStream struct {
drpc.Stream
}
func (x *drpcAnyns_AdminNameRenewSignedStream) SendAndClose(m *OperationResponse) error {
if err := x.MsgSend(m, drpcEncoding_File_nameservice_nameserviceproto_protos_nameservice_proto{}); err != nil {
return err
}
return x.CloseSend()
}

View file

@ -85,6 +85,7 @@ service Anyns {
rpc BatchGetNameByAnyId(BatchNameByAnyIdRequest) returns (BatchNameByAddressResponse) {} rpc BatchGetNameByAnyId(BatchNameByAnyIdRequest) returns (BatchNameByAddressResponse) {}
// Register new name for the user (on behalf of the user) // Register new name for the user (on behalf of the user)
// Anytype CAN only register names for users, but can not transfer or update them! // Anytype CAN only register names for users, but can not transfer!
rpc AdminNameRegisterSigned(NameRegisterRequestSigned) returns (OperationResponse) {} rpc AdminNameRegisterSigned(NameRegisterRequestSigned) returns (OperationResponse) {}
rpc AdminNameRenewSigned(NameRenewRequestSigned) returns (OperationResponse) {}
} }

View file

@ -132,6 +132,34 @@ message NameRegisterRequestSigned {
bytes signature = 2; bytes signature = 2;
} }
message NameRenewRequest {
string fullName = 1;
// A content hash attached to this name
// This should not be empty!
// in the following format: "A5k2d9sFZw84yisTxRnz2bPRd1YPfVfhxqymZ6yESprFTG65"
// you can get it with Account().SignKey.GetPublic().Account()
string ownerAnyAddress = 2;
// An Ethereum address that owns that name
string ownerEthAddress = 3;
// if false -> name ownership will belong to ownerEthAddress
// if true -> name ownership will belong to SCW of ownerEthAddress (AccountAbstraction)
bool renewToSmartContractWallet = 4;
// How many months to register the name for
uint32 renewPeriodMonths = 5;
}
message NameRenewRequestSigned {
// NameRenewRequest struct
bytes payload = 1;
// payload signed by payload.ownerEthAddress
bytes signature = 2;
}
message NameRegisterForSpaceRequest { message NameRegisterForSpaceRequest {
string fullName = 1; string fullName = 1;