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

ns: add registerPeriodMonths field

This commit is contained in:
Anton Akentev 2024-02-26 15:09:05 +00:00
parent 2a2061d756
commit fad2e59f37
3 changed files with 137 additions and 61 deletions

View file

@ -619,6 +619,8 @@ type NameRegisterRequest struct {
// if false -> name ownership will belong to ownerEthAddress // if false -> name ownership will belong to ownerEthAddress
// if true -> name ownership will belong to SCW of ownerEthAddress (AccountAbstraction) // if true -> name ownership will belong to SCW of ownerEthAddress (AccountAbstraction)
RegisterToSmartContractWallet bool `protobuf:"varint,4,opt,name=registerToSmartContractWallet,proto3" json:"registerToSmartContractWallet,omitempty"` RegisterToSmartContractWallet bool `protobuf:"varint,4,opt,name=registerToSmartContractWallet,proto3" json:"registerToSmartContractWallet,omitempty"`
// How many months to register the name for
RegisterPeriodMonths uint32 `protobuf:"varint,5,opt,name=registerPeriodMonths,proto3" json:"registerPeriodMonths,omitempty"`
} }
func (m *NameRegisterRequest) Reset() { *m = NameRegisterRequest{} } func (m *NameRegisterRequest) Reset() { *m = NameRegisterRequest{} }
@ -682,6 +684,13 @@ func (m *NameRegisterRequest) GetRegisterToSmartContractWallet() bool {
return false return false
} }
func (m *NameRegisterRequest) GetRegisterPeriodMonths() uint32 {
if m != nil {
return m.RegisterPeriodMonths
}
return 0
}
type NameRegisterRequestSigned struct { type NameRegisterRequestSigned struct {
// NameRegisterRequest struct // NameRegisterRequest struct
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
@ -747,6 +756,8 @@ type NameRegisterForSpaceRequest struct {
OwnerEthAddress string `protobuf:"bytes,3,opt,name=ownerEthAddress,proto3" json:"ownerEthAddress,omitempty"` OwnerEthAddress string `protobuf:"bytes,3,opt,name=ownerEthAddress,proto3" json:"ownerEthAddress,omitempty"`
// A SpaceID attached to this name // A SpaceID attached to this name
SpaceId string `protobuf:"bytes,4,opt,name=spaceId,proto3" json:"spaceId,omitempty"` SpaceId string `protobuf:"bytes,4,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
// How many months to register the name for
RegisterPeriodMonths uint32 `protobuf:"varint,5,opt,name=registerPeriodMonths,proto3" json:"registerPeriodMonths,omitempty"`
} }
func (m *NameRegisterForSpaceRequest) Reset() { *m = NameRegisterForSpaceRequest{} } func (m *NameRegisterForSpaceRequest) Reset() { *m = NameRegisterForSpaceRequest{} }
@ -810,6 +821,13 @@ func (m *NameRegisterForSpaceRequest) GetSpaceId() string {
return "" return ""
} }
func (m *NameRegisterForSpaceRequest) GetRegisterPeriodMonths() uint32 {
if m != nil {
return m.RegisterPeriodMonths
}
return 0
}
type GetOperationStatusRequest struct { type GetOperationStatusRequest struct {
OperationId string `protobuf:"bytes,1,opt,name=operationId,proto3" json:"operationId,omitempty"` OperationId string `protobuf:"bytes,1,opt,name=operationId,proto3" json:"operationId,omitempty"`
} }
@ -929,58 +947,59 @@ func init() {
} }
var fileDescriptor_c9d3f9b8b141e804 = []byte{ var fileDescriptor_c9d3f9b8b141e804 = []byte{
// 808 bytes of a gzipped FileDescriptorProto // 831 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xdd, 0x4e, 0xe3, 0x46, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x51, 0x6f, 0x1b, 0x45,
0x14, 0x8e, 0x89, 0xf9, 0xc9, 0x21, 0x0d, 0x61, 0x02, 0x34, 0x84, 0xe0, 0x06, 0xb7, 0xaa, 0xa2, 0x10, 0xf6, 0xc5, 0x97, 0x26, 0x9e, 0xb8, 0xae, 0xbb, 0x4e, 0x8b, 0xeb, 0xb8, 0x87, 0x7b, 0x20,
0x5e, 0x98, 0x8a, 0x4a, 0x2d, 0x37, 0x95, 0xea, 0x26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x06, 0x3f, 0x86, 0x4a, 0xc6, 0x18, 0x26, 0xf7, 0xbc, 0x75, 0xc3, 0x39, 0x5b, 0xb3, 0xaf, 0x3e,
0x8b, 0xe2, 0xa4, 0x9f, 0x81, 0x57, 0x0b, 0xf2, 0xdf, 0x77, 0xef, 0x03, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xf3, 0xdc, 0xb1, 0xce, 0xce, 0x1d, 0xeb, 0x9f, 0x73, 0xc7, 0xfa, 0xf5, 0xc2, 0xc9, 0x9d,
0x6c, 0x4e, 0x44, 0x59, 0x2d, 0x0a, 0x00, 0x00, 0x5d, 0x38, 0xb9, 0xbf, 0x2e, 0x9c, 0xdc, 0xb3, 0xfa, 0xaa, 0x9f, 0x9b, 0xcf, 0xaf, 0xe9, 0x7f,
0x9f, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x3c, 0xfb, 0x3d, 0x95, 0x0a, 0x00, 0x00,
} }
func (m *UserAccount) Marshal() (dAtA []byte, err error) { func (m *UserAccount) Marshal() (dAtA []byte, err error) {
@ -1380,6 +1399,11 @@ func (m *NameRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if m.RegisterPeriodMonths != 0 {
i = encodeVarintNameserviceAa(dAtA, i, uint64(m.RegisterPeriodMonths))
i--
dAtA[i] = 0x28
}
if m.RegisterToSmartContractWallet { if m.RegisterToSmartContractWallet {
i-- i--
if m.RegisterToSmartContractWallet { if m.RegisterToSmartContractWallet {
@ -1471,6 +1495,11 @@ func (m *NameRegisterForSpaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, er
_ = i _ = i
var l int var l int
_ = l _ = l
if m.RegisterPeriodMonths != 0 {
i = encodeVarintNameserviceAa(dAtA, i, uint64(m.RegisterPeriodMonths))
i--
dAtA[i] = 0x28
}
if len(m.SpaceId) > 0 { if len(m.SpaceId) > 0 {
i -= len(m.SpaceId) i -= len(m.SpaceId)
copy(dAtA[i:], m.SpaceId) copy(dAtA[i:], m.SpaceId)
@ -1775,6 +1804,9 @@ func (m *NameRegisterRequest) Size() (n int) {
if m.RegisterToSmartContractWallet { if m.RegisterToSmartContractWallet {
n += 2 n += 2
} }
if m.RegisterPeriodMonths != 0 {
n += 1 + sovNameserviceAa(uint64(m.RegisterPeriodMonths))
}
return n return n
} }
@ -1817,6 +1849,9 @@ func (m *NameRegisterForSpaceRequest) Size() (n int) {
if l > 0 { if l > 0 {
n += 1 + l + sovNameserviceAa(uint64(l)) n += 1 + l + sovNameserviceAa(uint64(l))
} }
if m.RegisterPeriodMonths != 0 {
n += 1 + sovNameserviceAa(uint64(m.RegisterPeriodMonths))
}
return n return n
} }
@ -3208,6 +3243,25 @@ func (m *NameRegisterRequest) Unmarshal(dAtA []byte) error {
} }
} }
m.RegisterToSmartContractWallet = bool(v != 0) m.RegisterToSmartContractWallet = bool(v != 0)
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field RegisterPeriodMonths", wireType)
}
m.RegisterPeriodMonths = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowNameserviceAa
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.RegisterPeriodMonths |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipNameserviceAa(dAtA[iNdEx:]) skippy, err := skipNameserviceAa(dAtA[iNdEx:])
@ -3504,6 +3558,25 @@ func (m *NameRegisterForSpaceRequest) Unmarshal(dAtA []byte) error {
} }
m.SpaceId = string(dAtA[iNdEx:postIndex]) m.SpaceId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field RegisterPeriodMonths", wireType)
}
m.RegisterPeriodMonths = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowNameserviceAa
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.RegisterPeriodMonths |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipNameserviceAa(dAtA[iNdEx:]) skippy, err := skipNameserviceAa(dAtA[iNdEx:])

View file

@ -112,6 +112,9 @@ message NameRegisterRequest {
// if true -> name ownership will belong to SCW of ownerEthAddress (AccountAbstraction) // if true -> name ownership will belong to SCW of ownerEthAddress (AccountAbstraction)
bool registerToSmartContractWallet = 4; bool registerToSmartContractWallet = 4;
// How many months to register the name for
uint32 registerPeriodMonths = 5;
// Example: // Example:
// 1 - register alice.any -> ANYID123123 // 1 - register alice.any -> ANYID123123
// 2 - register xxxx.any -> ANYID123123 // 2 - register xxxx.any -> ANYID123123
@ -143,6 +146,9 @@ message NameRegisterForSpaceRequest {
// A SpaceID attached to this name // A SpaceID attached to this name
string spaceId = 4; string spaceId = 4;
// How many months to register the name for
uint32 registerPeriodMonths = 5;
} }
message GetOperationStatusRequest { message GetOperationStatusRequest {

View file

@ -237,12 +237,10 @@ type GetSubscriptionResponse struct {
// (dateEnds) but then he will be on nextTier until nextTierEnds // (dateEnds) but then he will be on nextTier until nextTierEnds
// //
// if Tier0_Unknown -> then no next tier // if Tier0_Unknown -> then no next tier
NextTier SubscriptionTier `protobuf:"varint,6,opt,name=nextTier,proto3,enum=SubscriptionTier" json:"nextTier,omitempty"` NextTier SubscriptionTier `protobuf:"varint,6,opt,name=nextTier,proto3,enum=SubscriptionTier" json:"nextTier,omitempty"`
NextTierEnds uint64 `protobuf:"varint,7,opt,name=nextTierEnds,proto3" json:"nextTierEnds,omitempty"` NextTierEnds uint64 `protobuf:"varint,7,opt,name=nextTierEnds,proto3" json:"nextTierEnds,omitempty"`
PaymentMethod PaymentMethod `protobuf:"varint,8,opt,name=paymentMethod,proto3,enum=PaymentMethod" json:"paymentMethod,omitempty"` PaymentMethod PaymentMethod `protobuf:"varint,8,opt,name=paymentMethod,proto3,enum=PaymentMethod" json:"paymentMethod,omitempty"`
// if name was requested - it will be here RequestedAnyName string `protobuf:"bytes,9,opt,name=requestedAnyName,proto3" json:"requestedAnyName,omitempty"`
// seeBuySubscriptionRequest.requestedAnyName field
RequestedAnyName string `protobuf:"bytes,9,opt,name=requestedAnyName,proto3" json:"requestedAnyName,omitempty"`
// if user verified her email OR provided it while buying a subscription, it will be here // if user verified her email OR provided it while buying a subscription, it will be here
UserEmail string `protobuf:"bytes,10,opt,name=userEmail,proto3" json:"userEmail,omitempty"` UserEmail string `protobuf:"bytes,10,opt,name=userEmail,proto3" json:"userEmail,omitempty"`
SubscribeToNewsletter bool `protobuf:"varint,11,opt,name=subscribeToNewsletter,proto3" json:"subscribeToNewsletter,omitempty"` SubscribeToNewsletter bool `protobuf:"varint,11,opt,name=subscribeToNewsletter,proto3" json:"subscribeToNewsletter,omitempty"`
@ -370,9 +368,8 @@ type BuySubscriptionRequest struct {
OwnerEthAddress string `protobuf:"bytes,2,opt,name=ownerEthAddress,proto3" json:"ownerEthAddress,omitempty"` OwnerEthAddress string `protobuf:"bytes,2,opt,name=ownerEthAddress,proto3" json:"ownerEthAddress,omitempty"`
RequestedTier SubscriptionTier `protobuf:"varint,3,opt,name=requestedTier,proto3,enum=SubscriptionTier" json:"requestedTier,omitempty"` RequestedTier SubscriptionTier `protobuf:"varint,3,opt,name=requestedTier,proto3,enum=SubscriptionTier" json:"requestedTier,omitempty"`
PaymentMethod PaymentMethod `protobuf:"varint,4,opt,name=paymentMethod,proto3,enum=PaymentMethod" json:"paymentMethod,omitempty"` PaymentMethod PaymentMethod `protobuf:"varint,4,opt,name=paymentMethod,proto3,enum=PaymentMethod" json:"paymentMethod,omitempty"`
// this is just to store the requested name in the DB // if empty - then no name requested
// and then you will be able to retrieve it via GetSubscriptionRequest // if non-empty - PP node will register that name on behalf of the user
// PP won't register the name in NS!
RequestedAnyName string `protobuf:"bytes,5,opt,name=requestedAnyName,proto3" json:"requestedAnyName,omitempty"` RequestedAnyName string `protobuf:"bytes,5,opt,name=requestedAnyName,proto3" json:"requestedAnyName,omitempty"`
} }