diff --git a/api/irismod/token/v1/query.pulsar.go b/api/irismod/token/v1/query.pulsar.go index f8ac0bd0..e08b51c3 100644 --- a/api/irismod/token/v1/query.pulsar.go +++ b/api/irismod/token/v1/query.pulsar.go @@ -6209,23 +6209,23 @@ var file_irismod_token_v1_query_proto_rawDesc = []byte{ 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x32, 0xb9, 0x06, 0x0a, 0x05, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x84, 0x01, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x7c, 0x0a, 0x06, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2e, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x88, 0xe7, 0xb0, 0x2a, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, - 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, - 0x2f, 0x7b, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x3d, 0x2a, 0x2a, 0x7d, 0x12, 0x7c, 0x0a, 0x06, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2e, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x72, - 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x25, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, - 0x18, 0x2f, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, - 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x04, 0x46, 0x65, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2e, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x88, 0xe7, 0xb0, + 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x69, 0x72, 0x69, 0x73, 0x6d, + 0x6f, 0x64, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x2e, 0x69, + 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2e, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x2f, 0x7b, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x3d, 0x2a, 0x2a, 0x7d, 0x12, 0x84, 0x01, 0x0a, 0x04, 0x46, 0x65, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x65, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x69, 0x72, 0x69, 0x73, 0x6d, 0x6f, 0x64, @@ -6318,14 +6318,14 @@ var file_irismod_token_v1_query_proto_depIdxs = []int32{ 14, // 7: irismod.token.v1.QueryParamsResponse.res:type_name -> cosmos.base.query.v1beta1.PageResponse 15, // 8: irismod.token.v1.QueryTotalBurnResponse.burned_coins:type_name -> cosmos.base.v1beta1.Coin 15, // 9: irismod.token.v1.QueryBalancesResponse.balances:type_name -> cosmos.base.v1beta1.Coin - 0, // 10: irismod.token.v1.Query.Token:input_type -> irismod.token.v1.QueryTokenRequest - 2, // 11: irismod.token.v1.Query.Tokens:input_type -> irismod.token.v1.QueryTokensRequest + 2, // 10: irismod.token.v1.Query.Tokens:input_type -> irismod.token.v1.QueryTokensRequest + 0, // 11: irismod.token.v1.Query.Token:input_type -> irismod.token.v1.QueryTokenRequest 4, // 12: irismod.token.v1.Query.Fees:input_type -> irismod.token.v1.QueryFeesRequest 6, // 13: irismod.token.v1.Query.Params:input_type -> irismod.token.v1.QueryParamsRequest 8, // 14: irismod.token.v1.Query.TotalBurn:input_type -> irismod.token.v1.QueryTotalBurnRequest 10, // 15: irismod.token.v1.Query.Balances:input_type -> irismod.token.v1.QueryBalancesRequest - 1, // 16: irismod.token.v1.Query.Token:output_type -> irismod.token.v1.QueryTokenResponse - 3, // 17: irismod.token.v1.Query.Tokens:output_type -> irismod.token.v1.QueryTokensResponse + 3, // 16: irismod.token.v1.Query.Tokens:output_type -> irismod.token.v1.QueryTokensResponse + 1, // 17: irismod.token.v1.Query.Token:output_type -> irismod.token.v1.QueryTokenResponse 5, // 18: irismod.token.v1.Query.Fees:output_type -> irismod.token.v1.QueryFeesResponse 7, // 19: irismod.token.v1.Query.Params:output_type -> irismod.token.v1.QueryParamsResponse 9, // 20: irismod.token.v1.Query.TotalBurn:output_type -> irismod.token.v1.QueryTotalBurnResponse diff --git a/api/irismod/token/v1/query_grpc.pb.go b/api/irismod/token/v1/query_grpc.pb.go index 4b3b5d1f..634dc66a 100644 --- a/api/irismod/token/v1/query_grpc.pb.go +++ b/api/irismod/token/v1/query_grpc.pb.go @@ -19,8 +19,8 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Token_FullMethodName = "/irismod.token.v1.Query/Token" Query_Tokens_FullMethodName = "/irismod.token.v1.Query/Tokens" + Query_Token_FullMethodName = "/irismod.token.v1.Query/Token" Query_Fees_FullMethodName = "/irismod.token.v1.Query/Fees" Query_Params_FullMethodName = "/irismod.token.v1.Query/Params" Query_TotalBurn_FullMethodName = "/irismod.token.v1.Query/TotalBurn" @@ -31,10 +31,10 @@ const ( // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type QueryClient interface { - // Token returns token with token name - Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) // Tokens returns the token list Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) + // Token returns token with token name + Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) // Fees returns the fees to issue or mint a token Fees(ctx context.Context, in *QueryFeesRequest, opts ...grpc.CallOption) (*QueryFeesResponse, error) // Params queries the token parameters @@ -54,18 +54,18 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { return &queryClient{cc} } -func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { - out := new(QueryTokenResponse) - err := c.cc.Invoke(ctx, Query_Token_FullMethodName, in, out, opts...) +func (c *queryClient) Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) { + out := new(QueryTokensResponse) + err := c.cc.Invoke(ctx, Query_Tokens_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) { - out := new(QueryTokensResponse) - err := c.cc.Invoke(ctx, Query_Tokens_FullMethodName, in, out, opts...) +func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { + out := new(QueryTokenResponse) + err := c.cc.Invoke(ctx, Query_Token_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -112,10 +112,10 @@ func (c *queryClient) Balances(ctx context.Context, in *QueryBalancesRequest, op // All implementations must embed UnimplementedQueryServer // for forward compatibility type QueryServer interface { - // Token returns token with token name - Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) // Tokens returns the token list Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, error) + // Token returns token with token name + Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) // Fees returns the fees to issue or mint a token Fees(context.Context, *QueryFeesRequest) (*QueryFeesResponse, error) // Params queries the token parameters @@ -132,12 +132,12 @@ type QueryServer interface { type UnimplementedQueryServer struct { } -func (UnimplementedQueryServer) Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") -} func (UnimplementedQueryServer) Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Tokens not implemented") } +func (UnimplementedQueryServer) Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") +} func (UnimplementedQueryServer) Fees(context.Context, *QueryFeesRequest) (*QueryFeesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Fees not implemented") } @@ -163,38 +163,38 @@ func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { s.RegisterService(&Query_ServiceDesc, srv) } -func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenRequest) +func _Query_Tokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokensRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Token(ctx, in) + return srv.(QueryServer).Tokens(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_Token_FullMethodName, + FullMethod: Query_Tokens_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) + return srv.(QueryServer).Tokens(ctx, req.(*QueryTokensRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_Tokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokensRequest) +func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Tokens(ctx, in) + return srv.(QueryServer).Token(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_Tokens_FullMethodName, + FullMethod: Query_Token_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Tokens(ctx, req.(*QueryTokensRequest)) + return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) } return interceptor(ctx, in, info, handler) } @@ -278,14 +278,14 @@ var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "irismod.token.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "Token", - Handler: _Query_Token_Handler, - }, { MethodName: "Tokens", Handler: _Query_Tokens_Handler, }, + { + MethodName: "Token", + Handler: _Query_Token_Handler, + }, { MethodName: "Fees", Handler: _Query_Fees_Handler, diff --git a/modules/token/types/v1/query.pb.go b/modules/token/types/v1/query.pb.go index 6a5b340e..d9ef5019 100644 --- a/modules/token/types/v1/query.pb.go +++ b/modules/token/types/v1/query.pb.go @@ -628,64 +628,64 @@ func init() { func init() { proto.RegisterFile("irismod/token/v1/query.proto", fileDescriptor_47c4517e4b9aaaa2) } var fileDescriptor_47c4517e4b9aaaa2 = []byte{ - // 912 bytes of a gzipped FileDescriptorProto + // 911 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xce, 0x36, 0xb5, 0xeb, 0x4c, 0x7b, 0x68, 0x07, 0x53, 0x9c, 0x25, 0xda, 0x54, 0x1b, 0xf2, - 0xa3, 0x96, 0xb2, 0x83, 0x53, 0x81, 0x00, 0xc1, 0xa1, 0x5b, 0x29, 0x08, 0x21, 0xa1, 0xb2, 0x70, - 0x42, 0x48, 0x61, 0x1c, 0x4f, 0x96, 0x55, 0xbd, 0x33, 0xee, 0xce, 0x6c, 0x20, 0x6a, 0x73, 0x41, - 0x20, 0x95, 0x1b, 0x12, 0x27, 0xf8, 0x0b, 0x10, 0x27, 0x0e, 0xbd, 0xf0, 0x1f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 0x80, 0x97, 0xce, 0xd2, 0x44, 0xd1, 0xfe, 0x8e, 0x36, 0x24, 0xfe, 0xce, 0x43, - 0x0d, 0x67, 0x11, 0xbc, 0x36, 0x01, 0xe1, 0x84, 0x4d, 0xfd, 0xf5, 0x99, 0x71, 0x40, 0xe4, 0xcd, - 0x11, 0x91, 0x0e, 0x26, 0xa7, 0x89, 0x38, 0x9b, 0x90, 0x7b, 0xe0, 0xdb, 0xc3, 0xca, 0x53, 0x8d, - 0xdf, 0x7d, 0x74, 0x14, 0x78, 0x8f, 0x8f, 0x02, 0xef, 0xcf, 0xa3, 0xc0, 0xfb, 0xe6, 0x38, 0x98, - 0x7b, 0x7c, 0x1c, 0xcc, 0xfd, 0x7e, 0x1c, 0xcc, 0x7d, 0xd4, 0xa9, 0xd8, 0x51, 0x17, 0xe5, 0x4c, - 0x0d, 0x8b, 0xe7, 0xa2, 0x57, 0xf6, 0x99, 0x04, 0x10, 0x63, 0x4d, 0xfd, 0x8b, 0xa7, 0x6e, 0xbe, - 0x1f, 0x6f, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x21, 0x82, 0xee, 0x7b, 0x09, 0x00, 0x00, + 0x14, 0xce, 0x36, 0xb5, 0xeb, 0x4c, 0x7b, 0x68, 0x07, 0x53, 0x9c, 0x25, 0xda, 0x54, 0x9b, 0xe6, + 0x47, 0x2d, 0x65, 0x07, 0xa7, 0x02, 0x01, 0x82, 0x43, 0xb7, 0x52, 0x10, 0x42, 0x42, 0x65, 0xe1, + 0x84, 0x90, 0xc2, 0x38, 0x9e, 0x2c, 0xab, 0x7a, 0x67, 0xdc, 0x9d, 0xd9, 0x40, 0xd4, 0xe6, 0x82, + 0x40, 0x2a, 0x37, 0x24, 0x4e, 0xf0, 0x17, 0x20, 0x4e, 0x1c, 0x7a, 0xe1, 0x3f, 0xa8, 0x38, 0x55, + 0x70, 0xe1, 0x54, 0x50, 0x82, 0xc4, 0xdf, 0x00, 0x27, 0x34, 0x33, 0x6f, 0xec, 0x75, 0x12, 0xdb, + 0x45, 0xe2, 0x92, 0x78, 0xe6, 0xbd, 0xf7, 0x7d, 0xdf, 0xbc, 0x37, 0xdf, 0xd8, 0x68, 0x29, 0x2b, + 0x32, 0x99, 0x8b, 0x1e, 0x51, 0xe2, 0x2e, 0xe3, 0x64, 0xbf, 0x43, 0xee, 0x95, 0xac, 0x38, 0x88, + 0x06, 0x85, 0x50, 0x02, 0x5f, 0x86, 0x68, 0x64, 0xa2, 0xd1, 0x7e, 0xc7, 0x0f, 0x76, 0x85, 0xcc, + 0x85, 0x24, 0x5d, 0x2a, 0x19, 0xd9, 0xef, 0x74, 0x99, 0xa2, 0x1d, 0xb2, 0x2b, 0x32, 0x6e, 0x2b, + 0xfc, 0x45, 0x1b, 0xdf, 0x31, 0x2b, 0x62, 0x17, 0x10, 0x6a, 0x57, 0x4b, 0x0d, 0xcb, 0x10, 0x60, + 0x40, 0xd3, 0x8c, 0x53, 0x95, 0x09, 0x07, 0xf3, 0x22, 0xe4, 0xba, 0xb4, 0xaa, 0x2a, 0xbf, 0x99, + 0x8a, 0x54, 0x58, 0x02, 0xfd, 0x09, 0x76, 0x97, 0x52, 0x21, 0xd2, 0x3e, 0x23, 0x74, 0x90, 0x11, + 0xca, 0xb9, 0x50, 0x06, 0xcf, 0x91, 0x2f, 0x42, 0xd4, 0xac, 0xba, 0xe5, 0x1e, 0xa1, 0xdc, 0xc1, + 0x5d, 0xa1, 0x79, 0xc6, 0x05, 0x31, 0x7f, 0x1d, 0xd6, 0xa9, 0xae, 0xd8, 0x06, 0x98, 0x68, 0x78, + 0x03, 0x5d, 0x79, 0x4f, 0xcb, 0xf9, 0x40, 0xef, 0x25, 0xec, 0x5e, 0xc9, 0xa4, 0xc2, 0x4d, 0x54, + 0xeb, 0x31, 0x2e, 0xf2, 0x96, 0x77, 0xcd, 0xdb, 0x58, 0x48, 0xec, 0x22, 0x7c, 0x17, 0xe1, 0x6a, + 0xaa, 0x1c, 0x08, 0x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x04, 0x86, 0x13, 0x36, 0xf5, 0xd7, 0x67, 0xe6, 0x81, 0x90, 0x37, 0x46, + 0x42, 0x3a, 0x98, 0x9c, 0x16, 0xe2, 0x6c, 0x42, 0xee, 0x83, 0x6f, 0x0f, 0x2b, 0x97, 0x25, 0x7e, + 0xe7, 0xf1, 0x51, 0xe0, 0x3d, 0x39, 0x0a, 0xbc, 0x3f, 0x8e, 0x02, 0xef, 0xeb, 0xe3, 0x60, 0xee, + 0xc9, 0x71, 0x30, 0xf7, 0xdb, 0x71, 0x30, 0xf7, 0x61, 0xa7, 0x62, 0x47, 0x0d, 0xca, 0x99, 0x1a, + 0x82, 0xe7, 0xa2, 0x57, 0xf6, 0x99, 0x04, 0x12, 0x63, 0x4d, 0xfd, 0x8b, 0xa7, 0x6e, 0xbe, 0x1f, + 0x6f, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x0c, 0x39, 0x80, 0x7b, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -700,10 +700,10 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Token returns token with token name - Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) // Tokens returns the token list Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) + // Token returns token with token name + Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) // Fees returns the fees to issue or mint a token Fees(ctx context.Context, in *QueryFeesRequest, opts ...grpc.CallOption) (*QueryFeesResponse, error) // Params queries the token parameters @@ -723,18 +723,18 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { return &queryClient{cc} } -func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { - out := new(QueryTokenResponse) - err := c.cc.Invoke(ctx, "/irismod.token.v1.Query/Token", in, out, opts...) +func (c *queryClient) Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) { + out := new(QueryTokensResponse) + err := c.cc.Invoke(ctx, "/irismod.token.v1.Query/Tokens", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error) { - out := new(QueryTokensResponse) - err := c.cc.Invoke(ctx, "/irismod.token.v1.Query/Tokens", in, out, opts...) +func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { + out := new(QueryTokenResponse) + err := c.cc.Invoke(ctx, "/irismod.token.v1.Query/Token", in, out, opts...) if err != nil { return nil, err } @@ -779,10 +779,10 @@ func (c *queryClient) Balances(ctx context.Context, in *QueryBalancesRequest, op // QueryServer is the server API for Query service. type QueryServer interface { - // Token returns token with token name - Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) // Tokens returns the token list Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, error) + // Token returns token with token name + Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) // Fees returns the fees to issue or mint a token Fees(context.Context, *QueryFeesRequest) (*QueryFeesResponse, error) // Params queries the token parameters @@ -798,12 +798,12 @@ type QueryServer interface { type UnimplementedQueryServer struct { } -func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") -} func (*UnimplementedQueryServer) Tokens(ctx context.Context, req *QueryTokensRequest) (*QueryTokensResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Tokens not implemented") } +func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") +} func (*UnimplementedQueryServer) Fees(ctx context.Context, req *QueryFeesRequest) (*QueryFeesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Fees not implemented") } @@ -821,38 +821,38 @@ func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } -func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokenRequest) +func _Query_Tokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokensRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Token(ctx, in) + return srv.(QueryServer).Tokens(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/irismod.token.v1.Query/Token", + FullMethod: "/irismod.token.v1.Query/Tokens", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) + return srv.(QueryServer).Tokens(ctx, req.(*QueryTokensRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_Tokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTokensRequest) +func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTokenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Tokens(ctx, in) + return srv.(QueryServer).Token(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/irismod.token.v1.Query/Tokens", + FullMethod: "/irismod.token.v1.Query/Token", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Tokens(ctx, req.(*QueryTokensRequest)) + return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) } return interceptor(ctx, in, info, handler) } @@ -933,14 +933,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "irismod.token.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "Token", - Handler: _Query_Token_Handler, - }, { MethodName: "Tokens", Handler: _Query_Tokens_Handler, }, + { + MethodName: "Token", + Handler: _Query_Token_Handler, + }, { MethodName: "Fees", Handler: _Query_Fees_Handler, diff --git a/modules/token/types/v1/query.pb.gw.go b/modules/token/types/v1/query.pb.gw.go index dc9976f0..a282d0c5 100644 --- a/modules/token/types/v1/query.pb.gw.go +++ b/modules/token/types/v1/query.pb.gw.go @@ -33,6 +33,42 @@ var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage var _ = metadata.Join +var ( + filter_Query_Tokens_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_Tokens_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokensRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Tokens_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Tokens(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Tokens_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryTokensRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Tokens_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Tokens(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_Token_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryTokenRequest var metadata runtime.ServerMetadata @@ -87,42 +123,6 @@ func local_request_Query_Token_0(ctx context.Context, marshaler runtime.Marshale } -var ( - filter_Query_Tokens_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_Tokens_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokensRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Tokens_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Tokens(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Tokens_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTokensRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Tokens_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.Tokens(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_Fees_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryFeesRequest var metadata runtime.ServerMetadata @@ -295,7 +295,7 @@ func local_request_Query_Balances_0(ctx context.Context, marshaler runtime.Marsh // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - mux.Handle("GET", pattern_Query_Token_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Tokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -306,7 +306,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Token_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Tokens_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -314,11 +314,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Token_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Tokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_Tokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Token_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -329,7 +329,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Tokens_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Token_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -337,7 +337,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Tokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Token_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -474,7 +474,7 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // "QueryClient" to call the correct interceptors. func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - mux.Handle("GET", pattern_Query_Token_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Tokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -483,18 +483,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_Token_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_Tokens_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_Token_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Tokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_Tokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Token_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -503,14 +503,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_Tokens_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_Token_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_Tokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Token_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -598,10 +598,10 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Token_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 3, 0, 4, 1, 5, 4}, []string{"irismod", "token", "v1", "tokens", "denom"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Tokens_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"irismod", "token", "v1", "tokens"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Token_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 3, 0, 4, 1, 5, 4}, []string{"irismod", "token", "v1", "tokens", "denom"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Fees_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"irismod", "token", "v1", "tokens", "symbol", "fees"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"irismod", "token", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) @@ -612,10 +612,10 @@ var ( ) var ( - forward_Query_Token_0 = runtime.ForwardResponseMessage - forward_Query_Tokens_0 = runtime.ForwardResponseMessage + forward_Query_Token_0 = runtime.ForwardResponseMessage + forward_Query_Fees_0 = runtime.ForwardResponseMessage forward_Query_Params_0 = runtime.ForwardResponseMessage diff --git a/proto/irismod/token/v1/query.proto b/proto/irismod/token/v1/query.proto index 88c5dde9..97272f59 100644 --- a/proto/irismod/token/v1/query.proto +++ b/proto/irismod/token/v1/query.proto @@ -15,16 +15,18 @@ option go_package = "github.com/irisnet/irismod/modules/token/types/v1"; // Query creates service with token as RPC service Query { - // Token returns token with token name - rpc Token(QueryTokenRequest) returns (QueryTokenResponse) { - option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/irismod/token/v1/tokens/{denom=**}"; - } // Tokens returns the token list rpc Tokens(QueryTokensRequest) returns (QueryTokensResponse) { option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/irismod/token/v1/tokens"; } + + // Token returns token with token name + rpc Token(QueryTokenRequest) returns (QueryTokenResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/irismod/token/v1/tokens/{denom=**}"; + } + // Fees returns the fees to issue or mint a token rpc Fees(QueryFeesRequest) returns (QueryFeesResponse) { option (cosmos.query.v1.module_query_safe) = true; @@ -50,7 +52,7 @@ service Query { } // QueryTokenRequest is request type for the Query/Token RPC method -message QueryTokenRequest { string denom = 1; } +message QueryTokenRequest { string denom = 1 ; } // QueryTokenResponse is response type for the Query/Token RPC method message QueryTokenResponse {