// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 // - protoc v3.20.3 // source: service.proto package nockchain 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.64.0 or later. const _ = grpc.SupportPackageIsVersion9 const ( WalletService_Keygen_FullMethodName = "/nockchain.public.v1.WalletService/Keygen" WalletService_ImportKeys_FullMethodName = "/nockchain.public.v1.WalletService/ImportKeys" WalletService_DeriveChild_FullMethodName = "/nockchain.public.v1.WalletService/DeriveChild" WalletService_CreateTx_FullMethodName = "/nockchain.public.v1.WalletService/CreateTx" WalletService_SignTx_FullMethodName = "/nockchain.public.v1.WalletService/SignTx" WalletService_Scan_FullMethodName = "/nockchain.public.v1.WalletService/Scan" WalletService_WalletGetBalance_FullMethodName = "/nockchain.public.v1.WalletService/WalletGetBalance" WalletService_WalletSendTransaction_FullMethodName = "/nockchain.public.v1.WalletService/WalletSendTransaction" WalletService_TransactionAccepted_FullMethodName = "/nockchain.public.v1.WalletService/TransactionAccepted" ) // WalletServiceClient is the client API for WalletService 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. type WalletServiceClient interface { Keygen(ctx context.Context, in *KeygenRequest, opts ...grpc.CallOption) (*KeygenResponse, error) ImportKeys(ctx context.Context, in *ImportKeysRequest, opts ...grpc.CallOption) (*ImportKeysResponse, error) DeriveChild(ctx context.Context, in *DeriveChildRequest, opts ...grpc.CallOption) (*DeriveChildResponse, error) CreateTx(ctx context.Context, in *CreateTxRequest, opts ...grpc.CallOption) (*CreateTxResponse, error) SignTx(ctx context.Context, in *SignTxRequest, opts ...grpc.CallOption) (*SignTxResponse, error) Scan(ctx context.Context, in *ScanRequest, opts ...grpc.CallOption) (*ScanResponse, error) WalletGetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) WalletSendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) TransactionAccepted(ctx context.Context, in *TransactionAcceptedRequest, opts ...grpc.CallOption) (*TransactionAcceptedResponse, error) } type walletServiceClient struct { cc grpc.ClientConnInterface } func NewWalletServiceClient(cc grpc.ClientConnInterface) WalletServiceClient { return &walletServiceClient{cc} } func (c *walletServiceClient) Keygen(ctx context.Context, in *KeygenRequest, opts ...grpc.CallOption) (*KeygenResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(KeygenResponse) err := c.cc.Invoke(ctx, WalletService_Keygen_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) ImportKeys(ctx context.Context, in *ImportKeysRequest, opts ...grpc.CallOption) (*ImportKeysResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ImportKeysResponse) err := c.cc.Invoke(ctx, WalletService_ImportKeys_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) DeriveChild(ctx context.Context, in *DeriveChildRequest, opts ...grpc.CallOption) (*DeriveChildResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeriveChildResponse) err := c.cc.Invoke(ctx, WalletService_DeriveChild_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) CreateTx(ctx context.Context, in *CreateTxRequest, opts ...grpc.CallOption) (*CreateTxResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateTxResponse) err := c.cc.Invoke(ctx, WalletService_CreateTx_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) SignTx(ctx context.Context, in *SignTxRequest, opts ...grpc.CallOption) (*SignTxResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignTxResponse) err := c.cc.Invoke(ctx, WalletService_SignTx_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) Scan(ctx context.Context, in *ScanRequest, opts ...grpc.CallOption) (*ScanResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ScanResponse) err := c.cc.Invoke(ctx, WalletService_Scan_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) WalletGetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetBalanceResponse) err := c.cc.Invoke(ctx, WalletService_WalletGetBalance_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) WalletSendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SendTransactionResponse) err := c.cc.Invoke(ctx, WalletService_WalletSendTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) TransactionAccepted(ctx context.Context, in *TransactionAcceptedRequest, opts ...grpc.CallOption) (*TransactionAcceptedResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TransactionAcceptedResponse) err := c.cc.Invoke(ctx, WalletService_TransactionAccepted_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // WalletServiceServer is the server API for WalletService service. // All implementations must embed UnimplementedWalletServiceServer // for forward compatibility. type WalletServiceServer interface { Keygen(context.Context, *KeygenRequest) (*KeygenResponse, error) ImportKeys(context.Context, *ImportKeysRequest) (*ImportKeysResponse, error) DeriveChild(context.Context, *DeriveChildRequest) (*DeriveChildResponse, error) CreateTx(context.Context, *CreateTxRequest) (*CreateTxResponse, error) SignTx(context.Context, *SignTxRequest) (*SignTxResponse, error) Scan(context.Context, *ScanRequest) (*ScanResponse, error) WalletGetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) WalletSendTransaction(context.Context, *SendTransactionRequest) (*SendTransactionResponse, error) TransactionAccepted(context.Context, *TransactionAcceptedRequest) (*TransactionAcceptedResponse, error) mustEmbedUnimplementedWalletServiceServer() } // UnimplementedWalletServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedWalletServiceServer struct{} func (UnimplementedWalletServiceServer) Keygen(context.Context, *KeygenRequest) (*KeygenResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Keygen not implemented") } func (UnimplementedWalletServiceServer) ImportKeys(context.Context, *ImportKeysRequest) (*ImportKeysResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ImportKeys not implemented") } func (UnimplementedWalletServiceServer) DeriveChild(context.Context, *DeriveChildRequest) (*DeriveChildResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeriveChild not implemented") } func (UnimplementedWalletServiceServer) CreateTx(context.Context, *CreateTxRequest) (*CreateTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTx not implemented") } func (UnimplementedWalletServiceServer) SignTx(context.Context, *SignTxRequest) (*SignTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SignTx not implemented") } func (UnimplementedWalletServiceServer) Scan(context.Context, *ScanRequest) (*ScanResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Scan not implemented") } func (UnimplementedWalletServiceServer) WalletGetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WalletGetBalance not implemented") } func (UnimplementedWalletServiceServer) WalletSendTransaction(context.Context, *SendTransactionRequest) (*SendTransactionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WalletSendTransaction not implemented") } func (UnimplementedWalletServiceServer) TransactionAccepted(context.Context, *TransactionAcceptedRequest) (*TransactionAcceptedResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TransactionAccepted not implemented") } func (UnimplementedWalletServiceServer) mustEmbedUnimplementedWalletServiceServer() {} func (UnimplementedWalletServiceServer) testEmbeddedByValue() {} // UnsafeWalletServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WalletServiceServer will // result in compilation errors. type UnsafeWalletServiceServer interface { mustEmbedUnimplementedWalletServiceServer() } func RegisterWalletServiceServer(s grpc.ServiceRegistrar, srv WalletServiceServer) { // If the following call pancis, it indicates UnimplementedWalletServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&WalletService_ServiceDesc, srv) } func _WalletService_Keygen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(KeygenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).Keygen(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_Keygen_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Keygen(ctx, req.(*KeygenRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_ImportKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ImportKeysRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).ImportKeys(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_ImportKeys_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).ImportKeys(ctx, req.(*ImportKeysRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_DeriveChild_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeriveChildRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).DeriveChild(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_DeriveChild_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).DeriveChild(ctx, req.(*DeriveChildRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_CreateTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateTxRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).CreateTx(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_CreateTx_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).CreateTx(ctx, req.(*CreateTxRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_SignTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SignTxRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).SignTx(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_SignTx_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).SignTx(ctx, req.(*SignTxRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_Scan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ScanRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).Scan(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_Scan_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Scan(ctx, req.(*ScanRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_WalletGetBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBalanceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).WalletGetBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_WalletGetBalance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).WalletGetBalance(ctx, req.(*GetBalanceRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_WalletSendTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SendTransactionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).WalletSendTransaction(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_WalletSendTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).WalletSendTransaction(ctx, req.(*SendTransactionRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_TransactionAccepted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TransactionAcceptedRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).TransactionAccepted(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: WalletService_TransactionAccepted_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).TransactionAccepted(ctx, req.(*TransactionAcceptedRequest)) } return interceptor(ctx, in, info, handler) } // WalletService_ServiceDesc is the grpc.ServiceDesc for WalletService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var WalletService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nockchain.public.v1.WalletService", HandlerType: (*WalletServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Keygen", Handler: _WalletService_Keygen_Handler, }, { MethodName: "ImportKeys", Handler: _WalletService_ImportKeys_Handler, }, { MethodName: "DeriveChild", Handler: _WalletService_DeriveChild_Handler, }, { MethodName: "CreateTx", Handler: _WalletService_CreateTx_Handler, }, { MethodName: "SignTx", Handler: _WalletService_SignTx_Handler, }, { MethodName: "Scan", Handler: _WalletService_Scan_Handler, }, { MethodName: "WalletGetBalance", Handler: _WalletService_WalletGetBalance_Handler, }, { MethodName: "WalletSendTransaction", Handler: _WalletService_WalletSendTransaction_Handler, }, { MethodName: "TransactionAccepted", Handler: _WalletService_TransactionAccepted_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }