diff --git a/proto/osmosis/smartaccount/v1beta1/query.proto b/proto/osmosis/smartaccount/v1beta1/query.proto index d8edb9b3f32..74ab0d7b527 100644 --- a/proto/osmosis/smartaccount/v1beta1/query.proto +++ b/proto/osmosis/smartaccount/v1beta1/query.proto @@ -49,7 +49,7 @@ message GetAuthenticatorsResponse { // MsgGetAuthenticatorRequest defines the Msg/GetAuthenticator request type. message GetAuthenticatorRequest { string account = 1; - string authenticator_id = 2; + uint64 authenticator_id = 2; } // MsgGetAuthenticatorResponse defines the Msg/GetAuthenticator response type. diff --git a/x/smart-account/types/query.pb.go b/x/smart-account/types/query.pb.go index ca8c7270952..bff97868e15 100644 --- a/x/smart-account/types/query.pb.go +++ b/x/smart-account/types/query.pb.go @@ -206,7 +206,7 @@ func (m *GetAuthenticatorsResponse) GetAccountAuthenticators() []*AccountAuthent // MsgGetAuthenticatorRequest defines the Msg/GetAuthenticator request type. type GetAuthenticatorRequest struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - AuthenticatorId string `protobuf:"bytes,2,opt,name=authenticator_id,json=authenticatorId,proto3" json:"authenticator_id,omitempty"` + AuthenticatorId uint64 `protobuf:"varint,2,opt,name=authenticator_id,json=authenticatorId,proto3" json:"authenticator_id,omitempty"` } func (m *GetAuthenticatorRequest) Reset() { *m = GetAuthenticatorRequest{} } @@ -249,11 +249,11 @@ func (m *GetAuthenticatorRequest) GetAccount() string { return "" } -func (m *GetAuthenticatorRequest) GetAuthenticatorId() string { +func (m *GetAuthenticatorRequest) GetAuthenticatorId() uint64 { if m != nil { return m.AuthenticatorId } - return "" + return 0 } // MsgGetAuthenticatorResponse defines the Msg/GetAuthenticator response type. @@ -315,40 +315,40 @@ func init() { } var fileDescriptor_aab2e1fc442f3cc3 = []byte{ - // 517 bytes of a gzipped FileDescriptorProto + // 519 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54,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, 0x55, 0xa0, 0x4d, 0xe4, 0x5e, 0x20, 0x90, 0xf8, 0x93, 0xa8, + 0xff, 0xea, 0x74, 0x64, 0x83, 0xb3, 0x91, 0x0d, 0x7e, 0x8e, 0x6c, 0xf0, 0x69, 0x6c, 0xd7, 0xce, + 0xc6, 0x76, 0xed, 0xfb, 0xd8, 0xae, 0xbd, 0x79, 0x1c, 0x31, 0xb9, 0x97, 0x07, 0x6e, 0xc8, 0xe3, + 0x49, 0xcf, 0x8d, 0x21, 0x09, 0xc4, 0x54, 0xe0, 0xc0, 0xdb, 0xc2, 0xef, 0xb4, 0xcc, 0xc6, 0x44, + 0x47, 0x1e, 0xa6, 0x54, 0x04, 0x0d, 0xf5, 0x79, 0x7a, 0xf0, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x9a, + 0x94, 0x72, 0xfa, 0x9e, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -648,12 +648,10 @@ func (m *GetAuthenticatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if len(m.AuthenticatorId) > 0 { - i -= len(m.AuthenticatorId) - copy(dAtA[i:], m.AuthenticatorId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.AuthenticatorId))) + if m.AuthenticatorId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.AuthenticatorId)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if len(m.Account) > 0 { i -= len(m.Account) @@ -769,9 +767,8 @@ func (m *GetAuthenticatorRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.AuthenticatorId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if m.AuthenticatorId != 0 { + n += 1 + sovQuery(uint64(m.AuthenticatorId)) } return n } @@ -1156,10 +1153,10 @@ func (m *GetAuthenticatorRequest) Unmarshal(dAtA []byte) error { m.Account = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { + if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field AuthenticatorId", wireType) } - var stringLen uint64 + m.AuthenticatorId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -1169,24 +1166,11 @@ func (m *GetAuthenticatorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.AuthenticatorId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuthenticatorId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/smart-account/types/query.pb.gw.go b/x/smart-account/types/query.pb.gw.go index 8fc76b5184a..9f9d6b207dc 100644 --- a/x/smart-account/types/query.pb.gw.go +++ b/x/smart-account/types/query.pb.gw.go @@ -78,7 +78,7 @@ func request_Query_GetAuthenticator_0(ctx context.Context, marshaler runtime.Mar return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "authenticator_id") } - protoReq.AuthenticatorId, err = runtime.String(val) + protoReq.AuthenticatorId, err = runtime.Uint64(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "authenticator_id", err) @@ -116,7 +116,7 @@ func local_request_Query_GetAuthenticator_0(ctx context.Context, marshaler runti return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "authenticator_id") } - protoReq.AuthenticatorId, err = runtime.String(val) + protoReq.AuthenticatorId, err = runtime.Uint64(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "authenticator_id", err)