chore: change id to use uint64 in `AccountAddressByID` (#13411)

This commit is contained in:
atheeshp 2022-09-28 22:12:53 +05:30 committed by GitHub
parent 9b48c68a1f
commit 3d0e214446
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 80 additions and 91 deletions

View File

@ -148,6 +148,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (codec) [#12964](https://github.com/cosmos/cosmos-sdk/pull/12964) `ProtoCodec.MarshalInterface` now returns an error when serializing unregistered types and a subsequent `ProtoCodec.UnmarshalInterface` would fail.
* (x/staking) [#12973](https://github.com/cosmos/cosmos-sdk/pull/12973) Removed `stakingkeeper.RandomValidator`. Use `testutil.RandSliceElem(r, sk.GetAllValidators(ctx))` instead.
* (x/gov) [13160](https://github.com/cosmos/cosmos-sdk/pull/13160) Remove custom marshaling of proposl and voteoption.
* (x/auth) [13411](https://github.com/cosmos/cosmos-sdk/pull/13411) Change account id to use uint64 in `AccountAddressByID` grpc query.
### CLI Breaking Changes

View File

@ -6058,8 +6058,8 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Interface() protoreflect
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryAccountAddressByIDRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != int64(0) {
value := protoreflect.ValueOfInt64(x.Id)
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_QueryAccountAddressByIDRequest_id, value) {
return
}
@ -6080,7 +6080,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Range(f func(protoreflec
func (x *fastReflection_QueryAccountAddressByIDRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
return x.Id != int64(0)
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
@ -6098,7 +6098,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Has(fd protoreflect.Fiel
func (x *fastReflection_QueryAccountAddressByIDRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
x.Id = int64(0)
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
@ -6117,7 +6117,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Get(descriptor protorefl
switch descriptor.FullName() {
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
value := x.Id
return protoreflect.ValueOfInt64(value)
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
@ -6139,7 +6139,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Get(descriptor protorefl
func (x *fastReflection_QueryAccountAddressByIDRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
x.Id = value.Int()
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
@ -6176,7 +6176,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Mutable(fd protoreflect.
func (x *fastReflection_QueryAccountAddressByIDRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
return protoreflect.ValueOfInt64(int64(0))
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
@ -6346,7 +6346,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) ProtoMethods() *protoifa
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= int64(b&0x7F) << shift
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
@ -8191,7 +8191,7 @@ type QueryAccountAddressByIDRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *QueryAccountAddressByIDRequest) Reset() {
@ -8214,7 +8214,7 @@ func (*QueryAccountAddressByIDRequest) Descriptor() ([]byte, []int) {
return file_cosmos_auth_v1beta1_query_proto_rawDescGZIP(), []int{14}
}
func (x *QueryAccountAddressByIDRequest) GetId() int64 {
func (x *QueryAccountAddressByIDRequest) GetId() uint64 {
if x != nil {
return x.Id
}
@ -8417,7 +8417,7 @@ var file_cosmos_auth_v1beta1_query_proto_rawDesc = []byte{
0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x30, 0x0a, 0x1e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x64,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x64,
0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x41, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64,

View File

@ -181,7 +181,7 @@ message AddressStringToBytesResponse {
// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
message QueryAccountAddressByIDRequest {
int64 id = 1;
uint64 id = 1;
}
// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method

View File

@ -139,9 +139,9 @@ func GetAccountAddressByIDCmd() *cobra.Command {
return err
}
id, err := strconv.ParseInt(args[0], 10, 64)
id, err := strconv.ParseUint(args[0], 10, 64)
if err != nil {
return err
return fmt.Errorf("id %s not a valid uint, please input a valid account-id", args[0])
}
queryClient := types.NewQueryClient(clientCtx)

View File

@ -24,12 +24,8 @@ func (ak AccountKeeper) AccountAddressByID(c context.Context, req *types.QueryAc
return nil, status.Errorf(codes.InvalidArgument, "empty request")
}
if req.Id < 0 {
return nil, status.Error(codes.InvalidArgument, "Invalid account id")
}
ctx := sdk.UnwrapSDKContext(c)
address := ak.GetAccountAddressByID(ctx, uint64(req.GetId()))
address := ak.GetAccountAddressByID(ctx, req.Id)
if len(address) == 0 {
return nil, status.Errorf(codes.NotFound, "account address not found with id %d", req.Id)
}

View File

@ -166,14 +166,6 @@ func (suite *KeeperTestSuite) TestGRPCQueryAccountAddressByID() {
expPass bool
posttests func(res *types.QueryAccountAddressByIDResponse)
}{
{
"invalid request",
func() {
req = &types.QueryAccountAddressByIDRequest{Id: -1}
},
false,
func(res *types.QueryAccountAddressByIDResponse) {},
},
{
"account address not found",
func() {
@ -187,7 +179,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryAccountAddressByID() {
func() {
account := suite.accountKeeper.NewAccountWithAddress(suite.ctx, addr)
suite.accountKeeper.SetAccount(suite.ctx, account)
req = &types.QueryAccountAddressByIDRequest{Id: int64(account.GetAccountNumber())}
req = &types.QueryAccountAddressByIDRequest{Id: account.GetAccountNumber()}
},
true,
func(res *types.QueryAccountAddressByIDResponse) {

View File

@ -667,7 +667,7 @@ func (m *AddressStringToBytesResponse) GetAddressBytes() []byte {
// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
type QueryAccountAddressByIDRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *QueryAccountAddressByIDRequest) Reset() { *m = QueryAccountAddressByIDRequest{} }
@ -703,7 +703,7 @@ func (m *QueryAccountAddressByIDRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_QueryAccountAddressByIDRequest proto.InternalMessageInfo
func (m *QueryAccountAddressByIDRequest) GetId() int64 {
func (m *QueryAccountAddressByIDRequest) GetId() uint64 {
if m != nil {
return m.Id
}
@ -873,66 +873,66 @@ func init() { proto.RegisterFile("cosmos/auth/v1beta1/query.proto", fileDescript
var fileDescriptor_c451370b3929a27c = []byte{
// 971 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcf, 0x6f, 0x1b, 0x45,
0x14, 0xc7, 0xbd, 0x69, 0x49, 0xc2, 0x8b, 0x1b, 0xa4, 0x89, 0x2b, 0xc2, 0x3a, 0xb5, 0xa3, 0x2d,
0x34, 0x4e, 0xa8, 0x77, 0x1b, 0x27, 0x07, 0x0a, 0x08, 0x29, 0x6e, 0x00, 0xe5, 0x50, 0xc9, 0x6c,
0x73, 0xe2, 0x80, 0xb5, 0xf6, 0x6e, 0x36, 0x2b, 0x9a, 0x1d, 0xd7, 0xb3, 0x46, 0x8d, 0xaa, 0x5c,
0x90, 0x90, 0x7a, 0xa9, 0x84, 0x04, 0x7f, 0x40, 0x0e, 0x88, 0x33, 0x87, 0xc0, 0x95, 0x6b, 0xd5,
0x53, 0x04, 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0x0f, 0x1b, 0xaf, 0xa4, 0x9a, 0xda, 0x44, 0x9d, 0x8d, 0x31, 0x8f, 0x84, 0xbe, 0x71, 0x05, 0x0f,
0xe4, 0x7c, 0x3f, 0xe1, 0xac, 0x93, 0xf7, 0xc6, 0x70, 0xc6, 0x57, 0x45, 0x4c, 0xeb, 0x63, 0xf2,
0x6b, 0xc2, 0x9d, 0x19, 0xf0, 0xe3, 0xb9, 0x55, 0x2f, 0xca, 0x78, 0x6e, 0xe5, 0xeb, 0x61, 0xdc,
0x4d, 0xb8, 0x4d, 0x72, 0x3b, 0x17, 0xb7, 0x78, 0xac, 0x8e, 0xc9, 0x8f, 0x1a, 0xcc, 0xa7, 0x06,
0x2d, 0xb9, 0x3d, 0xf1, 0xb6, 0xa6, 0xc6, 0xbb, 0x5e, 0xcf, 0x69, 0x9d, 0x3f, 0xbf, 0xf2, 0x2d,
0x1a, 0xce, 0xed, 0x64, 0x20, 0x35, 0xef, 0x3d, 0x3f, 0xab, 0x68, 0x2f, 0xcf, 0x2a, 0xda, 0xdf,
0x67, 0x15, 0xed, 0xbb, 0xf3, 0x4a, 0xe1, 0xe5, 0x79, 0xa5, 0xf0, 0xe7, 0x79, 0xa5, 0xf0, 0xc5,
0x9a, 0x1f, 0x44, 0x07, 0x83, 0x8e, 0xd9, 0xa5, 0x87, 0x52, 0x50, 0xfc, 0xa9, 0x33, 0xf7, 0x2b,
0xeb, 0xb1, 0x50, 0x8f, 0x8e, 0x7a, 0x1e, 0xeb, 0xcc, 0xf0, 0xff, 0x6a, 0x36, 0xff, 0x0f, 0x00,
0x00, 0xff, 0xff, 0x3a, 0xad, 0x37, 0x28, 0x54, 0x0c, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@ -3304,7 +3304,7 @@ func (m *QueryAccountAddressByIDRequest) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= int64(b&0x7F) << shift
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}

View File

@ -139,7 +139,7 @@ func request_Query_AccountAddressByID_0(ctx context.Context, marshaler runtime.M
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.Int64(val)
protoReq.Id, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
@ -166,7 +166,7 @@ func local_request_Query_AccountAddressByID_0(ctx context.Context, marshaler run
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.Int64(val)
protoReq.Id, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)