// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package arkv1 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.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // WalletInitializerServiceClient is the client API for WalletInitializerService 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 WalletInitializerServiceClient interface { GenSeed(ctx context.Context, in *GenSeedRequest, opts ...grpc.CallOption) (*GenSeedResponse, error) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*RestoreResponse, error) Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*UnlockResponse, error) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) } type walletInitializerServiceClient struct { cc grpc.ClientConnInterface } func NewWalletInitializerServiceClient(cc grpc.ClientConnInterface) WalletInitializerServiceClient { return &walletInitializerServiceClient{cc} } func (c *walletInitializerServiceClient) GenSeed(ctx context.Context, in *GenSeedRequest, opts ...grpc.CallOption) (*GenSeedResponse, error) { out := new(GenSeedResponse) err := c.cc.Invoke(ctx, "/ark.v1.WalletInitializerService/GenSeed", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *walletInitializerServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { out := new(CreateResponse) err := c.cc.Invoke(ctx, "/ark.v1.WalletInitializerService/Create", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *walletInitializerServiceClient) Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*RestoreResponse, error) { out := new(RestoreResponse) err := c.cc.Invoke(ctx, "/ark.v1.WalletInitializerService/Restore", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *walletInitializerServiceClient) Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*UnlockResponse, error) { out := new(UnlockResponse) err := c.cc.Invoke(ctx, "/ark.v1.WalletInitializerService/Unlock", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *walletInitializerServiceClient) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) { out := new(GetStatusResponse) err := c.cc.Invoke(ctx, "/ark.v1.WalletInitializerService/GetStatus", in, out, opts...) if err != nil { return nil, err } return out, nil } // WalletInitializerServiceServer is the server API for WalletInitializerService service. // All implementations should embed UnimplementedWalletInitializerServiceServer // for forward compatibility type WalletInitializerServiceServer interface { GenSeed(context.Context, *GenSeedRequest) (*GenSeedResponse, error) Create(context.Context, *CreateRequest) (*CreateResponse, error) Restore(context.Context, *RestoreRequest) (*RestoreResponse, error) Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) } // UnimplementedWalletInitializerServiceServer should be embedded to have forward compatible implementations. type UnimplementedWalletInitializerServiceServer struct { } func (UnimplementedWalletInitializerServiceServer) GenSeed(context.Context, *GenSeedRequest) (*GenSeedResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenSeed not implemented") } func (UnimplementedWalletInitializerServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } func (UnimplementedWalletInitializerServiceServer) Restore(context.Context, *RestoreRequest) (*RestoreResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Restore not implemented") } func (UnimplementedWalletInitializerServiceServer) Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Unlock not implemented") } func (UnimplementedWalletInitializerServiceServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented") } // UnsafeWalletInitializerServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WalletInitializerServiceServer will // result in compilation errors. type UnsafeWalletInitializerServiceServer interface { mustEmbedUnimplementedWalletInitializerServiceServer() } func RegisterWalletInitializerServiceServer(s grpc.ServiceRegistrar, srv WalletInitializerServiceServer) { s.RegisterService(&WalletInitializerService_ServiceDesc, srv) } func _WalletInitializerService_GenSeed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GenSeedRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletInitializerServiceServer).GenSeed(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ark.v1.WalletInitializerService/GenSeed", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletInitializerServiceServer).GenSeed(ctx, req.(*GenSeedRequest)) } return interceptor(ctx, in, info, handler) } func _WalletInitializerService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletInitializerServiceServer).Create(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ark.v1.WalletInitializerService/Create", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletInitializerServiceServer).Create(ctx, req.(*CreateRequest)) } return interceptor(ctx, in, info, handler) } func _WalletInitializerService_Restore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RestoreRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletInitializerServiceServer).Restore(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ark.v1.WalletInitializerService/Restore", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletInitializerServiceServer).Restore(ctx, req.(*RestoreRequest)) } return interceptor(ctx, in, info, handler) } func _WalletInitializerService_Unlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnlockRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletInitializerServiceServer).Unlock(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ark.v1.WalletInitializerService/Unlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletInitializerServiceServer).Unlock(ctx, req.(*UnlockRequest)) } return interceptor(ctx, in, info, handler) } func _WalletInitializerService_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletInitializerServiceServer).GetStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ark.v1.WalletInitializerService/GetStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletInitializerServiceServer).GetStatus(ctx, req.(*GetStatusRequest)) } return interceptor(ctx, in, info, handler) } // WalletInitializerService_ServiceDesc is the grpc.ServiceDesc for WalletInitializerService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var WalletInitializerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ark.v1.WalletInitializerService", HandlerType: (*WalletInitializerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenSeed", Handler: _WalletInitializerService_GenSeed_Handler, }, { MethodName: "Create", Handler: _WalletInitializerService_Create_Handler, }, { MethodName: "Restore", Handler: _WalletInitializerService_Restore_Handler, }, { MethodName: "Unlock", Handler: _WalletInitializerService_Unlock_Handler, }, { MethodName: "GetStatus", Handler: _WalletInitializerService_GetStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ark/v1/wallet.proto", } // 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 { Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*LockResponse, error) DeriveAddress(ctx context.Context, in *DeriveAddressRequest, opts ...grpc.CallOption) (*DeriveAddressResponse, error) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) } type walletServiceClient struct { cc grpc.ClientConnInterface } func NewWalletServiceClient(cc grpc.ClientConnInterface) WalletServiceClient { return &walletServiceClient{cc} } func (c *walletServiceClient) Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*LockResponse, error) { out := new(LockResponse) err := c.cc.Invoke(ctx, "/ark.v1.WalletService/Lock", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) DeriveAddress(ctx context.Context, in *DeriveAddressRequest, opts ...grpc.CallOption) (*DeriveAddressResponse, error) { out := new(DeriveAddressResponse) err := c.cc.Invoke(ctx, "/ark.v1.WalletService/DeriveAddress", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *walletServiceClient) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) { out := new(GetBalanceResponse) err := c.cc.Invoke(ctx, "/ark.v1.WalletService/GetBalance", in, out, opts...) if err != nil { return nil, err } return out, nil } // WalletServiceServer is the server API for WalletService service. // All implementations should embed UnimplementedWalletServiceServer // for forward compatibility type WalletServiceServer interface { Lock(context.Context, *LockRequest) (*LockResponse, error) DeriveAddress(context.Context, *DeriveAddressRequest) (*DeriveAddressResponse, error) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) } // UnimplementedWalletServiceServer should be embedded to have forward compatible implementations. type UnimplementedWalletServiceServer struct { } func (UnimplementedWalletServiceServer) Lock(context.Context, *LockRequest) (*LockResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Lock not implemented") } func (UnimplementedWalletServiceServer) DeriveAddress(context.Context, *DeriveAddressRequest) (*DeriveAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeriveAddress not implemented") } func (UnimplementedWalletServiceServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBalance not implemented") } // 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) { s.RegisterService(&WalletService_ServiceDesc, srv) } func _WalletService_Lock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LockRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).Lock(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ark.v1.WalletService/Lock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).Lock(ctx, req.(*LockRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_DeriveAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeriveAddressRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WalletServiceServer).DeriveAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ark.v1.WalletService/DeriveAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).DeriveAddress(ctx, req.(*DeriveAddressRequest)) } return interceptor(ctx, in, info, handler) } func _WalletService_GetBalance_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).GetBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ark.v1.WalletService/GetBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WalletServiceServer).GetBalance(ctx, req.(*GetBalanceRequest)) } 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: "ark.v1.WalletService", HandlerType: (*WalletServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Lock", Handler: _WalletService_Lock_Handler, }, { MethodName: "DeriveAddress", Handler: _WalletService_DeriveAddress_Handler, }, { MethodName: "GetBalance", Handler: _WalletService_GetBalance_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ark/v1/wallet.proto", }