1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-10 18:10:54 +09:00

Add registerToSmartContractWallet param

This commit is contained in:
Anton Akentev 2024-02-21 11:29:48 +00:00
parent b93dd30913
commit f544d2d08b
2 changed files with 99 additions and 51 deletions

View file

@ -616,6 +616,9 @@ type NameRegisterRequest struct {
OwnerAnyAddress string `protobuf:"bytes,2,opt,name=ownerAnyAddress,proto3" json:"ownerAnyAddress,omitempty"` OwnerAnyAddress string `protobuf:"bytes,2,opt,name=ownerAnyAddress,proto3" json:"ownerAnyAddress,omitempty"`
// An Ethereum address that owns that name // An Ethereum address that owns that name
OwnerEthAddress string `protobuf:"bytes,3,opt,name=ownerEthAddress,proto3" json:"ownerEthAddress,omitempty"` 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)
RegisterToSmartContractWallet bool `protobuf:"varint,4,opt,name=registerToSmartContractWallet,proto3" json:"registerToSmartContractWallet,omitempty"`
} }
func (m *NameRegisterRequest) Reset() { *m = NameRegisterRequest{} } func (m *NameRegisterRequest) Reset() { *m = NameRegisterRequest{} }
@ -672,6 +675,13 @@ func (m *NameRegisterRequest) GetOwnerEthAddress() string {
return "" return ""
} }
func (m *NameRegisterRequest) GetRegisterToSmartContractWallet() bool {
if m != nil {
return m.RegisterToSmartContractWallet
}
return false
}
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"`
@ -919,57 +929,58 @@ func init() {
} }
var fileDescriptor_c9d3f9b8b141e804 = []byte{ var fileDescriptor_c9d3f9b8b141e804 = []byte{
// 787 bytes of a gzipped FileDescriptorProto // 808 bytes of a gzipped FileD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 0x68, 0x1f, 0x56, 0xdf, 0x7b, 0xa5, 0xc3, 0xe7, 0x36, 0xed, 0x53, 0x3f, 0xb0, 0x25, 0xfb, 0xca, 0x97, 0x27,
0x16, 0xa2, 0xbe, 0x00, 0x48, 0x37, 0x46, 0x7e, 0x18, 0x06, 0x54, 0x7c, 0x09, 0x4b, 0xd1, 0x06, 0xc5, 0x63, 0x14, 0xfd, 0x04, 0x69, 0x55, 0x27, 0x54, 0xb0, 0xc6, 0xca, 0x56, 0x40, 0xd6, 0x13,
0x8b, 0xee, 0x1a, 0x37, 0x70, 0xde, 0x01, 0x55, 0x37, 0x20, 0x15, 0xf6, 0x55, 0xb4, 0x64, 0x44, 0x4d, 0xcc, 0x04, 0x3a, 0x85, 0xb5, 0xb8, 0xef, 0x08, 0x32, 0xad, 0xa9, 0x9f, 0x97, 0x31, 0x19,
0x1a, 0x6d, 0x2e, 0x69, 0x04, 0x40, 0x3d, 0x86, 0x76, 0x20, 0x13, 0x61, 0xa7, 0x68, 0xc1, 0x88, 0xcf, 0x60, 0x23, 0xde, 0xa6, 0xd1, 0x57, 0xd6, 0x33, 0xfc, 0x7b, 0x4c, 0xd6, 0x7d, 0xc8, 0x44,
0x38, 0x60, 0xb9, 0xbc, 0x31, 0xc4, 0x7a, 0xf5, 0x18, 0x3a, 0x8a, 0xf4, 0xe6, 0xde, 0x41, 0x42, 0xdd, 0x19, 0x6d, 0x58, 0xb1, 0x76, 0x5d, 0x48, 0x5b, 0x0a, 0x68, 0x26, 0xd0, 0x11, 0xe4, 0x62,
0x79, 0x63, 0xc8, 0xf9, 0x1a, 0x59, 0x7c, 0x17, 0x32, 0x11, 0xc6, 0x86, 0x56, 0x8d, 0x51, 0x76, 0x4c, 0x19, 0xad, 0x59, 0x31, 0x17, 0xac, 0x50, 0xb4, 0x26, 0x18, 0xb8, 0x99, 0x40, 0x97, 0xb1,
0x17, 0xad, 0xd9, 0xb3, 0x47, 0x3f, 0xce, 0x35, 0xe5, 0xec, 0x5c, 0x53, 0x7e, 0x9d, 0x6b, 0xca, 0x0e, 0x3f, 0xbc, 0x48, 0xa8, 0x68, 0x4d, 0xb8, 0x5f, 0x53, 0x93, 0x1f, 0x43, 0x2e, 0xc6, 0x1e,
0xe7, 0x0b, 0x2d, 0x76, 0x76, 0xa1, 0xc5, 0x7e, 0x5e, 0x68, 0xb1, 0xc3, 0xfc, 0xb0, 0x1f, 0x70, 0xd1, 0x8e, 0x35, 0xcd, 0x34, 0xe3, 0x35, 0xfb, 0xf9, 0xfb, 0xd7, 0x77, 0x86, 0x76, 0x7b, 0x67,
0xc7, 0x53, 0xf2, 0xdf, 0xc3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x8f, 0x92, 0xa9, 0xe7, 0x68, 0xef, 0xee, 0x0c, 0xed, 0xbf, 0x7b, 0x23, 0x71, 0x7b, 0x6f, 0x24, 0xde, 0xde, 0x1b, 0x89,
0x09, 0x00, 0x00, 0x8b, 0xe2, 0xa4, 0x9f, 0x81, 0x57, 0x0b, 0xf2, 0xdf, 0x77, 0xef, 0x03, 0x00, 0x00, 0xff, 0xff,
0x6c, 0x4e, 0x44, 0x59, 0x2d, 0x0a, 0x00, 0x00,
} }
func (m *UserAccount) Marshal() (dAtA []byte, err error) { func (m *UserAccount) Marshal() (dAtA []byte, err error) {
@ -1369,6 +1380,16 @@ func (m *NameRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i _ = i
var l int var l int
_ = l _ = l
if m.RegisterToSmartContractWallet {
i--
if m.RegisterToSmartContractWallet {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x20
}
if len(m.OwnerEthAddress) > 0 { if len(m.OwnerEthAddress) > 0 {
i -= len(m.OwnerEthAddress) i -= len(m.OwnerEthAddress)
copy(dAtA[i:], m.OwnerEthAddress) copy(dAtA[i:], m.OwnerEthAddress)
@ -1751,6 +1772,9 @@ func (m *NameRegisterRequest) Size() (n int) {
if l > 0 { if l > 0 {
n += 1 + l + sovNameserviceAa(uint64(l)) n += 1 + l + sovNameserviceAa(uint64(l))
} }
if m.RegisterToSmartContractWallet {
n += 2
}
return n return n
} }
@ -3164,6 +3188,26 @@ func (m *NameRegisterRequest) Unmarshal(dAtA []byte) error {
} }
m.OwnerEthAddress = string(dAtA[iNdEx:postIndex]) m.OwnerEthAddress = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field RegisterToSmartContractWallet", 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.RegisterToSmartContractWallet = bool(v != 0)
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipNameserviceAa(dAtA[iNdEx:]) skippy, err := skipNameserviceAa(dAtA[iNdEx:])

View file

@ -108,6 +108,10 @@ message NameRegisterRequest {
// An Ethereum address that owns that name // An Ethereum address that owns that name
string ownerEthAddress = 3; string ownerEthAddress = 3;
// if false -> name ownership will belong to ownerEthAddress
// if true -> name ownership will belong to SCW of ownerEthAddress (AccountAbstraction)
bool registerToSmartContractWallet = 4;
// Example: // Example:
// 1 - register alice.any -> ANYID123123 // 1 - register alice.any -> ANYID123123
// 2 - register xxxx.any -> ANYID123123 // 2 - register xxxx.any -> ANYID123123