// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.4.0 // - protoc v5.27.1 // source: walletSystem/v1/wallet.proto package v1 import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.62.0 or later. const _ = grpc.SupportPackageIsVersion8 const ( Wallet_GenerateAddress_FullMethodName = "/walletSystem.v1.Wallet/GenerateAddress" Wallet_SignatureTrc20Grpc_FullMethodName = "/walletSystem.v1.Wallet/SignatureTrc20Grpc" Wallet_GetAllAddress_FullMethodName = "/walletSystem.v1.Wallet/GetAllAddress" Wallet_GetAllAddressAndPrivateKey_FullMethodName = "/walletSystem.v1.Wallet/GetAllAddressAndPrivateKey" Wallet_GetPrivateKeyByAddress_FullMethodName = "/walletSystem.v1.Wallet/GetPrivateKeyByAddress" Wallet_DeleteAddress_FullMethodName = "/walletSystem.v1.Wallet/DeleteAddress" Wallet_WalletApprove_FullMethodName = "/walletSystem.v1.Wallet/WalletApprove" ) // WalletClient is the client API for Wallet service. // // 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. // // The greeting service definition. type WalletClient interface { // GenerateAddress Generate wallet address GenerateAddress(ctx context.Context, in *GenerateAddressRequest, opts ...grpc.CallOption) (*WalletReply, error) // SignatureTrc20Grpc GrpcTrc20 Wallet Signature SignatureTrc20Grpc(ctx context.Context, in *SignatureTrc20Request, opts ...grpc.CallOption) (*SignatureTrc20Reply, error) // GetAllAddress Check all wallet addresses GetAllAddress(ctx context.Context, in *WalletRequest, opts ...grpc.CallOption) (*WalletReply, error) // GetAllAddressAndPrivateKey Query all private keys GetAllAddressAndPrivateKey(ctx context.Context, in *WalletRequest, opts ...grpc.CallOption) (*WalletKeyReply, error) // GetPrivateKeyByAddress Query private key through wallet address GetPrivateKeyByAddress(ctx context.Context, in *GetPrivateKeyByAddressRequest, opts ...grpc.CallOption) (*WalletPKeysReply, error) // DeleteAddress Clean all wallets DeleteAddress(ctx context.Context, in *WalletRequest, opts ...grpc.CallOption) (*WalletReply, error) // WalletApprove Wallet authorization WalletApprove(ctx context.Context, in *WalletApproveRequest, opts ...grpc.CallOption) (*WalletApproveReply, error) } type walletClient struct { cc grpc.ClientConnInterface } func NewWalletClient(cc grpc.ClientConnInterface) WalletClient { return &walletClient{cc} } func (c *walletClient) GenerateAddress(ctx context.Context, in *GenerateAddressRequest, opts ...grpc.CallOption) (*WalletReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WalletReply) err := c.cc.Invoke(ctx, Wallet_GenerateAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletClient) SignatureTrc20Grpc(ctx context.Context, in *SignatureTrc20Request, opts ...grpc.CallOption) (*SignatureTrc20Reply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignatureTrc20Reply) err := c.cc.Invoke(ctx, Wallet_SignatureTrc20Grpc_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletClient) GetAllAddress(ctx context.Context, in *WalletRequest, opts ...grpc.CallOption) (*WalletReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WalletReply) err := c.cc.Invoke(ctx, Wallet_GetAllAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletClient) GetAllAddressAndPrivateKey(ctx context.Context, in *WalletRequest, opts ...grpc.CallOption) (*WalletKeyReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WalletKeyReply) err := c.cc.Invoke(ctx, Wallet_GetAllAddressAndPrivateKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletClient) GetPrivateKeyByAddress(ctx context.Context, in *GetPrivateKeyByAddressRequest, opts ...grpc.CallOption) (*WalletPKeysReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WalletPKeysReply) err := c.cc.Invoke(ctx, Wallet_GetPrivateKeyByAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletClient) DeleteAddress(ctx context.Context, in *WalletRequest, opts ...grpc.CallOption) (*WalletReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WalletReply) err := c.cc.Invoke(ctx, Wallet_DeleteAddress_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletClient) WalletApprove(ctx context.Context, in *WalletApproveRequest, opts ...grpc.CallOption) (*WalletApproveReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WalletApproveReply) err := c.cc.Invoke(ctx, Wallet_WalletApprove_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // WalletServer is the server API for Wallet service. // All implementations must embed UnimplementedWalletServer // for forward compatibility // // The greeting service definition. type WalletServer interface { // GenerateAddress Generate wallet address GenerateAddress(context.Context, *GenerateAddressRequest) (*WalletReply, error) // SignatureTrc20Grpc GrpcTrc20 Wallet Signature SignatureTrc20Grpc(context.Context, *SignatureTrc20Request) (*SignatureTrc20Reply, error) // GetAllAddress Check all wallet addresses GetAllAddress(context.Context, *WalletRequest) (*WalletReply, error) // GetAllAddressAndPrivateKey Query all private keys GetAllAddressAndPrivateKey(context.Context, *WalletRequest) (*WalletKeyReply, error) // GetPrivateKeyByAddress Query private key through wallet address GetPrivateKeyByAddress(context.Context, *GetPrivateKeyByAddressRequest) (*WalletPKeysReply, error) // DeleteAddress Clean all wallets DeleteAddress(context.Context, *WalletRequest) (*WalletReply, error) // WalletApprove Wallet authorization WalletApprove(context.Context, *WalletApproveRequest) (*WalletApproveReply, error) mustEmbedUnimplementedWalletServer() } // UnimplementedWalletServer must be embedded to have forward compatible implementations. type UnimplementedWalletServer struct { } func (UnimplementedWalletServer) GenerateAddress(context.Context, *GenerateAddressRequest) (*WalletReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateAddress not implemented") } func (UnimplementedWalletServer) SignatureTrc20Grpc(context.Context, *SignatureTrc20Request) (*SignatureTrc20Reply, error) { return nil, status.Errorf(codes.Unimplemented, "method SignatureTrc20Grpc not implemented") } func (UnimplementedWalletServer) GetAllAddress(context.Context, *WalletRequest) (*WalletReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAllAddress not implemented") } func (UnimplementedWalletServer) GetAllAddressAndPrivateKey(context.Context, *WalletRequest) (*WalletKeyReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAllAddressAndPrivateKey not implemented") } func (UnimplementedWalletServer) GetPrivateKeyByAddress(context.Context, *GetPrivateKeyByAddressRequest) (*WalletPKeysReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPrivateKeyByAddress not implemented") } func (UnimplementedWalletServer) DeleteAddress(context.Context, *WalletRequest) (*WalletReply, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAddress not implemented") } func (UnimplementedWalletServer) WalletApprove(context.Context, *WalletApproveRequest) (*WalletApproveReply, error) { return nil, status.Errorf(codes.Unimplemented, "method WalletApprove not implemented") } func (UnimplementedWalletServer) mustEmbedUnimplementedWalletServer() {} // UnsafeWalletServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WalletServer will // result in compilation errors. type UnsafeWalletServer interface { mustEmbedUnimplementedWalletServer() } func RegisterWalletServer(s grpc.ServiceRegistrar, srv WalletServer) { s.RegisterService(&Wallet_ServiceDesc, srv) } func _Wallet_GenerateAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GenerateAddressRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServer).GenerateAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Wallet_GenerateAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GenerateAddress(ctx, req.(*GenerateAddressRequest)) } return interceptor(ctx, in, info, handler) } func _Wallet_SignatureTrc20Grpc_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SignatureTrc20Request) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServer).SignatureTrc20Grpc(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Wallet_SignatureTrc20Grpc_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).SignatureTrc20Grpc(ctx, req.(*SignatureTrc20Request)) } return interceptor(ctx, in, info, handler) } func _Wallet_GetAllAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WalletRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServer).GetAllAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Wallet_GetAllAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAllAddress(ctx, req.(*WalletRequest)) } return interceptor(ctx, in, info, handler) } func _Wallet_GetAllAddressAndPrivateKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WalletRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServer).GetAllAddressAndPrivateKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Wallet_GetAllAddressAndPrivateKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetAllAddressAndPrivateKey(ctx, req.(*WalletRequest)) } return interceptor(ctx, in, info, handler) } func _Wallet_GetPrivateKeyByAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetPrivateKeyByAddressRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServer).GetPrivateKeyByAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Wallet_GetPrivateKeyByAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).GetPrivateKeyByAddress(ctx, req.(*GetPrivateKeyByAddressRequest)) } return interceptor(ctx, in, info, handler) } func _Wallet_DeleteAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WalletRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServer).DeleteAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Wallet_DeleteAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).DeleteAddress(ctx, req.(*WalletRequest)) } return interceptor(ctx, in, info, handler) } func _Wallet_WalletApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WalletApproveRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServer).WalletApprove(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Wallet_WalletApprove_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServer).WalletApprove(ctx, req.(*WalletApproveRequest)) } return interceptor(ctx, in, info, handler) } // Wallet_ServiceDesc is the grpc.ServiceDesc for Wallet service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Wallet_ServiceDesc = grpc.ServiceDesc{ ServiceName: "walletSystem.v1.Wallet", HandlerType: (*WalletServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateAddress", Handler: _Wallet_GenerateAddress_Handler, }, { MethodName: "SignatureTrc20Grpc", Handler: _Wallet_SignatureTrc20Grpc_Handler, }, { MethodName: "GetAllAddress", Handler: _Wallet_GetAllAddress_Handler, }, { MethodName: "GetAllAddressAndPrivateKey", Handler: _Wallet_GetAllAddressAndPrivateKey_Handler, }, { MethodName: "GetPrivateKeyByAddress", Handler: _Wallet_GetPrivateKeyByAddress_Handler, }, { MethodName: "DeleteAddress", Handler: _Wallet_DeleteAddress_Handler, }, { MethodName: "WalletApprove", Handler: _Wallet_WalletApprove_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "walletSystem/v1/wallet.proto", }