haveno-ts/dist/protobuf/GrpcServiceClientPb.js

1086 lines
70 KiB
JavaScript
Raw Normal View History

2022-05-12 17:25:46 -04:00
"use strict";
2022-05-04 21:30:48 -04:00
/**
2023-04-26 11:43:48 -04:00
* @fileoverview gRPC-Web generated client stub for io.haveno.protobuffer
2022-05-04 21:30:48 -04:00
* @enhanceable
* @public
*/
2022-05-12 17:25:46 -04:00
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.WalletsClient = exports.TradesClient = exports.ShutdownServerClient = exports.GetTradeStatisticsClient = exports.PriceClient = exports.PaymentAccountsClient = exports.OffersClient = exports.MoneroNodeClient = exports.MoneroConnectionsClient = exports.NotificationsClient = exports.DisputeAgentsClient = exports.DisputesClient = exports.AccountClient = exports.GetVersionClient = exports.HelpClient = void 0;
2022-05-04 21:30:48 -04:00
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
2022-05-12 17:25:46 -04:00
const grpcWeb = __importStar(require("grpc-web"));
const grpc_pb = __importStar(require("./grpc_pb"));
class HelpClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetMethodHelp = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Help/GetMethodHelp', grpcWeb.MethodType.UNARY, grpc_pb.GetMethodHelpRequest, grpc_pb.GetMethodHelpReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetMethodHelpReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getMethodHelp(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Help/GetMethodHelp', request, metadata || {}, this.methodDescriptorGetMethodHelp, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Help/GetMethodHelp', request, metadata || {}, this.methodDescriptorGetMethodHelp);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.HelpClient = HelpClient;
class GetVersionClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetVersion = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.GetVersion/GetVersion', grpcWeb.MethodType.UNARY, grpc_pb.GetVersionRequest, grpc_pb.GetVersionReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetVersionReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getVersion(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.GetVersion/GetVersion', request, metadata || {}, this.methodDescriptorGetVersion, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.GetVersion/GetVersion', request, metadata || {}, this.methodDescriptorGetVersion);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.GetVersionClient = GetVersionClient;
class AccountClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorAccountExists = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/AccountExists', grpcWeb.MethodType.UNARY, grpc_pb.AccountExistsRequest, grpc_pb.AccountExistsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.AccountExistsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorIsAccountOpen = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/IsAccountOpen', grpcWeb.MethodType.UNARY, grpc_pb.IsAccountOpenRequest, grpc_pb.IsAccountOpenReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.IsAccountOpenReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorCreateAccount = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/CreateAccount', grpcWeb.MethodType.UNARY, grpc_pb.CreateAccountRequest, grpc_pb.CreateAccountReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.CreateAccountReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorOpenAccount = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/OpenAccount', grpcWeb.MethodType.UNARY, grpc_pb.OpenAccountRequest, grpc_pb.OpenAccountReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.OpenAccountReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorIsAppInitialized = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/IsAppInitialized', grpcWeb.MethodType.UNARY, grpc_pb.IsAppInitializedRequest, grpc_pb.IsAppInitializedReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.IsAppInitializedReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorChangePassword = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/ChangePassword', grpcWeb.MethodType.UNARY, grpc_pb.ChangePasswordRequest, grpc_pb.ChangePasswordReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.ChangePasswordReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorCloseAccount = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/CloseAccount', grpcWeb.MethodType.UNARY, grpc_pb.CloseAccountRequest, grpc_pb.CloseAccountReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.CloseAccountReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorDeleteAccount = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/DeleteAccount', grpcWeb.MethodType.UNARY, grpc_pb.DeleteAccountRequest, grpc_pb.DeleteAccountReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.DeleteAccountReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorBackupAccount = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/BackupAccount', grpcWeb.MethodType.SERVER_STREAMING, grpc_pb.BackupAccountRequest, grpc_pb.BackupAccountReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.BackupAccountReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorRestoreAccount = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Account/RestoreAccount', grpcWeb.MethodType.UNARY, grpc_pb.RestoreAccountRequest, grpc_pb.RestoreAccountReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.RestoreAccountReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
accountExists(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/AccountExists', request, metadata || {}, this.methodDescriptorAccountExists, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/AccountExists', request, metadata || {}, this.methodDescriptorAccountExists);
2022-05-04 21:30:48 -04:00
}
isAccountOpen(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/IsAccountOpen', request, metadata || {}, this.methodDescriptorIsAccountOpen, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/IsAccountOpen', request, metadata || {}, this.methodDescriptorIsAccountOpen);
2022-05-04 21:30:48 -04:00
}
createAccount(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/CreateAccount', request, metadata || {}, this.methodDescriptorCreateAccount, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/CreateAccount', request, metadata || {}, this.methodDescriptorCreateAccount);
2022-05-04 21:30:48 -04:00
}
openAccount(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/OpenAccount', request, metadata || {}, this.methodDescriptorOpenAccount, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/OpenAccount', request, metadata || {}, this.methodDescriptorOpenAccount);
2022-05-04 21:30:48 -04:00
}
isAppInitialized(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/IsAppInitialized', request, metadata || {}, this.methodDescriptorIsAppInitialized, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/IsAppInitialized', request, metadata || {}, this.methodDescriptorIsAppInitialized);
2022-05-04 21:30:48 -04:00
}
changePassword(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/ChangePassword', request, metadata || {}, this.methodDescriptorChangePassword, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/ChangePassword', request, metadata || {}, this.methodDescriptorChangePassword);
2022-05-04 21:30:48 -04:00
}
closeAccount(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/CloseAccount', request, metadata || {}, this.methodDescriptorCloseAccount, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/CloseAccount', request, metadata || {}, this.methodDescriptorCloseAccount);
2022-05-04 21:30:48 -04:00
}
deleteAccount(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/DeleteAccount', request, metadata || {}, this.methodDescriptorDeleteAccount, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/DeleteAccount', request, metadata || {}, this.methodDescriptorDeleteAccount);
2022-05-04 21:30:48 -04:00
}
backupAccount(request, metadata) {
return this.client_.serverStreaming(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/BackupAccount', request, metadata || {}, this.methodDescriptorBackupAccount);
2022-05-04 21:30:48 -04:00
}
restoreAccount(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/RestoreAccount', request, metadata || {}, this.methodDescriptorRestoreAccount, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Account/RestoreAccount', request, metadata || {}, this.methodDescriptorRestoreAccount);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.AccountClient = AccountClient;
class DisputesClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetDispute = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Disputes/GetDispute', grpcWeb.MethodType.UNARY, grpc_pb.GetDisputeRequest, grpc_pb.GetDisputeReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetDisputeReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetDisputes = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Disputes/GetDisputes', grpcWeb.MethodType.UNARY, grpc_pb.GetDisputesRequest, grpc_pb.GetDisputesReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetDisputesReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorOpenDispute = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Disputes/OpenDispute', grpcWeb.MethodType.UNARY, grpc_pb.OpenDisputeRequest, grpc_pb.OpenDisputeReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.OpenDisputeReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorResolveDispute = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Disputes/ResolveDispute', grpcWeb.MethodType.UNARY, grpc_pb.ResolveDisputeRequest, grpc_pb.ResolveDisputeReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.ResolveDisputeReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorSendDisputeChatMessage = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Disputes/SendDisputeChatMessage', grpcWeb.MethodType.UNARY, grpc_pb.SendDisputeChatMessageRequest, grpc_pb.SendDisputeChatMessageReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.SendDisputeChatMessageReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getDispute(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/GetDispute', request, metadata || {}, this.methodDescriptorGetDispute, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/GetDispute', request, metadata || {}, this.methodDescriptorGetDispute);
2022-05-04 21:30:48 -04:00
}
getDisputes(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/GetDisputes', request, metadata || {}, this.methodDescriptorGetDisputes, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/GetDisputes', request, metadata || {}, this.methodDescriptorGetDisputes);
2022-05-04 21:30:48 -04:00
}
openDispute(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/OpenDispute', request, metadata || {}, this.methodDescriptorOpenDispute, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/OpenDispute', request, metadata || {}, this.methodDescriptorOpenDispute);
2022-05-04 21:30:48 -04:00
}
resolveDispute(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/ResolveDispute', request, metadata || {}, this.methodDescriptorResolveDispute, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/ResolveDispute', request, metadata || {}, this.methodDescriptorResolveDispute);
2022-05-04 21:30:48 -04:00
}
sendDisputeChatMessage(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/SendDisputeChatMessage', request, metadata || {}, this.methodDescriptorSendDisputeChatMessage, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Disputes/SendDisputeChatMessage', request, metadata || {}, this.methodDescriptorSendDisputeChatMessage);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.DisputesClient = DisputesClient;
class DisputeAgentsClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorRegisterDisputeAgent = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.DisputeAgents/RegisterDisputeAgent', grpcWeb.MethodType.UNARY, grpc_pb.RegisterDisputeAgentRequest, grpc_pb.RegisterDisputeAgentReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.RegisterDisputeAgentReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorUnregisterDisputeAgent = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.DisputeAgents/UnregisterDisputeAgent', grpcWeb.MethodType.UNARY, grpc_pb.UnregisterDisputeAgentRequest, grpc_pb.UnregisterDisputeAgentReply, (request) => {
2022-09-21 10:41:36 -04:00
return request.serializeBinary();
}, grpc_pb.UnregisterDisputeAgentReply.deserializeBinary);
2022-05-04 21:30:48 -04:00
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
registerDisputeAgent(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.DisputeAgents/RegisterDisputeAgent', request, metadata || {}, this.methodDescriptorRegisterDisputeAgent, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.DisputeAgents/RegisterDisputeAgent', request, metadata || {}, this.methodDescriptorRegisterDisputeAgent);
2022-09-21 10:41:36 -04:00
}
unregisterDisputeAgent(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.DisputeAgents/UnregisterDisputeAgent', request, metadata || {}, this.methodDescriptorUnregisterDisputeAgent, callback);
2022-09-21 10:41:36 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.DisputeAgents/UnregisterDisputeAgent', request, metadata || {}, this.methodDescriptorUnregisterDisputeAgent);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.DisputeAgentsClient = DisputeAgentsClient;
class NotificationsClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorRegisterNotificationListener = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Notifications/RegisterNotificationListener', grpcWeb.MethodType.SERVER_STREAMING, grpc_pb.RegisterNotificationListenerRequest, grpc_pb.NotificationMessage, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.NotificationMessage.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorSendNotification = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Notifications/SendNotification', grpcWeb.MethodType.UNARY, grpc_pb.SendNotificationRequest, grpc_pb.SendNotificationReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.SendNotificationReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
registerNotificationListener(request, metadata) {
return this.client_.serverStreaming(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Notifications/RegisterNotificationListener', request, metadata || {}, this.methodDescriptorRegisterNotificationListener);
2022-05-04 21:30:48 -04:00
}
sendNotification(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Notifications/SendNotification', request, metadata || {}, this.methodDescriptorSendNotification, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Notifications/SendNotification', request, metadata || {}, this.methodDescriptorSendNotification);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.NotificationsClient = NotificationsClient;
class MoneroConnectionsClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorAddConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/AddConnection', grpcWeb.MethodType.UNARY, grpc_pb.AddConnectionRequest, grpc_pb.AddConnectionReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.AddConnectionReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorRemoveConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/RemoveConnection', grpcWeb.MethodType.UNARY, grpc_pb.RemoveConnectionRequest, grpc_pb.RemoveConnectionReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.RemoveConnectionReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/GetConnection', grpcWeb.MethodType.UNARY, grpc_pb.GetConnectionRequest, grpc_pb.GetConnectionReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetConnectionReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/GetConnections', grpcWeb.MethodType.UNARY, grpc_pb.GetConnectionsRequest, grpc_pb.GetConnectionsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetConnectionsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorSetConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/SetConnection', grpcWeb.MethodType.UNARY, grpc_pb.SetConnectionRequest, grpc_pb.SetConnectionReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.SetConnectionReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorCheckConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/CheckConnection', grpcWeb.MethodType.UNARY, grpc_pb.CheckConnectionRequest, grpc_pb.CheckConnectionReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.CheckConnectionReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorCheckConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/CheckConnections', grpcWeb.MethodType.UNARY, grpc_pb.CheckConnectionsRequest, grpc_pb.CheckConnectionsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.CheckConnectionsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorStartCheckingConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/StartCheckingConnections', grpcWeb.MethodType.UNARY, grpc_pb.StartCheckingConnectionsRequest, grpc_pb.StartCheckingConnectionsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.StartCheckingConnectionsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorStopCheckingConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/StopCheckingConnections', grpcWeb.MethodType.UNARY, grpc_pb.StopCheckingConnectionsRequest, grpc_pb.StopCheckingConnectionsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.StopCheckingConnectionsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetBestAvailableConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/GetBestAvailableConnection', grpcWeb.MethodType.UNARY, grpc_pb.GetBestAvailableConnectionRequest, grpc_pb.GetBestAvailableConnectionReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetBestAvailableConnectionReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorSetAutoSwitch = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/SetAutoSwitch', grpcWeb.MethodType.UNARY, grpc_pb.SetAutoSwitchRequest, grpc_pb.SetAutoSwitchReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.SetAutoSwitchReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
addConnection(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/AddConnection', request, metadata || {}, this.methodDescriptorAddConnection, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/AddConnection', request, metadata || {}, this.methodDescriptorAddConnection);
2022-05-04 21:30:48 -04:00
}
removeConnection(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/RemoveConnection', request, metadata || {}, this.methodDescriptorRemoveConnection, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/RemoveConnection', request, metadata || {}, this.methodDescriptorRemoveConnection);
2022-05-04 21:30:48 -04:00
}
getConnection(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/GetConnection', request, metadata || {}, this.methodDescriptorGetConnection, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/GetConnection', request, metadata || {}, this.methodDescriptorGetConnection);
2022-05-04 21:30:48 -04:00
}
getConnections(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/GetConnections', request, metadata || {}, this.methodDescriptorGetConnections, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/GetConnections', request, metadata || {}, this.methodDescriptorGetConnections);
2022-05-04 21:30:48 -04:00
}
setConnection(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/SetConnection', request, metadata || {}, this.methodDescriptorSetConnection, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/SetConnection', request, metadata || {}, this.methodDescriptorSetConnection);
2022-05-04 21:30:48 -04:00
}
checkConnection(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/CheckConnection', request, metadata || {}, this.methodDescriptorCheckConnection, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/CheckConnection', request, metadata || {}, this.methodDescriptorCheckConnection);
2022-05-04 21:30:48 -04:00
}
checkConnections(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/CheckConnections', request, metadata || {}, this.methodDescriptorCheckConnections, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/CheckConnections', request, metadata || {}, this.methodDescriptorCheckConnections);
2022-05-04 21:30:48 -04:00
}
startCheckingConnections(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/StartCheckingConnections', request, metadata || {}, this.methodDescriptorStartCheckingConnections, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/StartCheckingConnections', request, metadata || {}, this.methodDescriptorStartCheckingConnections);
2022-05-04 21:30:48 -04:00
}
stopCheckingConnections(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/StopCheckingConnections', request, metadata || {}, this.methodDescriptorStopCheckingConnections, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/StopCheckingConnections', request, metadata || {}, this.methodDescriptorStopCheckingConnections);
2022-05-04 21:30:48 -04:00
}
getBestAvailableConnection(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/GetBestAvailableConnection', request, metadata || {}, this.methodDescriptorGetBestAvailableConnection, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/GetBestAvailableConnection', request, metadata || {}, this.methodDescriptorGetBestAvailableConnection);
2022-05-04 21:30:48 -04:00
}
setAutoSwitch(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/SetAutoSwitch', request, metadata || {}, this.methodDescriptorSetAutoSwitch, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroConnections/SetAutoSwitch', request, metadata || {}, this.methodDescriptorSetAutoSwitch);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.MoneroConnectionsClient = MoneroConnectionsClient;
class MoneroNodeClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorIsMoneroNodeOnline = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroNode/IsMoneroNodeOnline', grpcWeb.MethodType.UNARY, grpc_pb.IsMoneroNodeOnlineRequest, grpc_pb.IsMoneroNodeOnlineReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
2022-09-21 10:41:36 -04:00
}, grpc_pb.IsMoneroNodeOnlineReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetMoneroNodeSettings = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroNode/GetMoneroNodeSettings', grpcWeb.MethodType.UNARY, grpc_pb.GetMoneroNodeSettingsRequest, grpc_pb.GetMoneroNodeSettingsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetMoneroNodeSettingsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorStartMoneroNode = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroNode/StartMoneroNode', grpcWeb.MethodType.UNARY, grpc_pb.StartMoneroNodeRequest, grpc_pb.StartMoneroNodeReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.StartMoneroNodeReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorStopMoneroNode = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroNode/StopMoneroNode', grpcWeb.MethodType.UNARY, grpc_pb.StopMoneroNodeRequest, grpc_pb.StopMoneroNodeReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.StopMoneroNodeReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
2022-09-21 10:41:36 -04:00
isMoneroNodeOnline(request, metadata, callback) {
2022-05-04 21:30:48 -04:00
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroNode/IsMoneroNodeOnline', request, metadata || {}, this.methodDescriptorIsMoneroNodeOnline, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroNode/IsMoneroNodeOnline', request, metadata || {}, this.methodDescriptorIsMoneroNodeOnline);
2022-05-04 21:30:48 -04:00
}
getMoneroNodeSettings(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroNode/GetMoneroNodeSettings', request, metadata || {}, this.methodDescriptorGetMoneroNodeSettings, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroNode/GetMoneroNodeSettings', request, metadata || {}, this.methodDescriptorGetMoneroNodeSettings);
2022-05-04 21:30:48 -04:00
}
startMoneroNode(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroNode/StartMoneroNode', request, metadata || {}, this.methodDescriptorStartMoneroNode, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroNode/StartMoneroNode', request, metadata || {}, this.methodDescriptorStartMoneroNode);
2022-05-04 21:30:48 -04:00
}
stopMoneroNode(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroNode/StopMoneroNode', request, metadata || {}, this.methodDescriptorStopMoneroNode, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.MoneroNode/StopMoneroNode', request, metadata || {}, this.methodDescriptorStopMoneroNode);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.MoneroNodeClient = MoneroNodeClient;
class OffersClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetOffer = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Offers/GetOffer', grpcWeb.MethodType.UNARY, grpc_pb.GetOfferRequest, grpc_pb.GetOfferReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetOfferReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetMyOffer = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Offers/GetMyOffer', grpcWeb.MethodType.UNARY, grpc_pb.GetMyOfferRequest, grpc_pb.GetMyOfferReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetMyOfferReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetOffers = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Offers/GetOffers', grpcWeb.MethodType.UNARY, grpc_pb.GetOffersRequest, grpc_pb.GetOffersReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetOffersReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetMyOffers = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Offers/GetMyOffers', grpcWeb.MethodType.UNARY, grpc_pb.GetMyOffersRequest, grpc_pb.GetMyOffersReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetMyOffersReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorPostOffer = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Offers/PostOffer', grpcWeb.MethodType.UNARY, grpc_pb.PostOfferRequest, grpc_pb.PostOfferReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
2022-12-17 05:06:40 -05:00
}, grpc_pb.PostOfferReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorCancelOffer = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Offers/CancelOffer', grpcWeb.MethodType.UNARY, grpc_pb.CancelOfferRequest, grpc_pb.CancelOfferReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.CancelOfferReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getOffer(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/GetOffer', request, metadata || {}, this.methodDescriptorGetOffer, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/GetOffer', request, metadata || {}, this.methodDescriptorGetOffer);
2022-05-04 21:30:48 -04:00
}
getMyOffer(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/GetMyOffer', request, metadata || {}, this.methodDescriptorGetMyOffer, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/GetMyOffer', request, metadata || {}, this.methodDescriptorGetMyOffer);
2022-05-04 21:30:48 -04:00
}
getOffers(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/GetOffers', request, metadata || {}, this.methodDescriptorGetOffers, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/GetOffers', request, metadata || {}, this.methodDescriptorGetOffers);
2022-05-04 21:30:48 -04:00
}
getMyOffers(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/GetMyOffers', request, metadata || {}, this.methodDescriptorGetMyOffers, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/GetMyOffers', request, metadata || {}, this.methodDescriptorGetMyOffers);
2022-05-04 21:30:48 -04:00
}
2022-12-17 05:06:40 -05:00
postOffer(request, metadata, callback) {
2022-05-04 21:30:48 -04:00
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/PostOffer', request, metadata || {}, this.methodDescriptorPostOffer, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/PostOffer', request, metadata || {}, this.methodDescriptorPostOffer);
2022-05-04 21:30:48 -04:00
}
cancelOffer(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/CancelOffer', request, metadata || {}, this.methodDescriptorCancelOffer, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Offers/CancelOffer', request, metadata || {}, this.methodDescriptorCancelOffer);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.OffersClient = OffersClient;
class PaymentAccountsClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorCreatePaymentAccount = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.PaymentAccounts/CreatePaymentAccount', grpcWeb.MethodType.UNARY, grpc_pb.CreatePaymentAccountRequest, grpc_pb.CreatePaymentAccountReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.CreatePaymentAccountReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetPaymentAccounts = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccounts', grpcWeb.MethodType.UNARY, grpc_pb.GetPaymentAccountsRequest, grpc_pb.GetPaymentAccountsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetPaymentAccountsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetPaymentMethods = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.PaymentAccounts/GetPaymentMethods', grpcWeb.MethodType.UNARY, grpc_pb.GetPaymentMethodsRequest, grpc_pb.GetPaymentMethodsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetPaymentMethodsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetPaymentAccountForm = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccountForm', grpcWeb.MethodType.UNARY, grpc_pb.GetPaymentAccountFormRequest, grpc_pb.GetPaymentAccountFormReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetPaymentAccountFormReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetPaymentAccountFormAsJson = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccountFormAsJson', grpcWeb.MethodType.UNARY, grpc_pb.GetPaymentAccountFormAsJsonRequest, grpc_pb.GetPaymentAccountFormAsJsonReply, (request) => {
2022-09-21 10:41:36 -04:00
return request.serializeBinary();
}, grpc_pb.GetPaymentAccountFormAsJsonReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorCreateCryptoCurrencyPaymentAccount = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', grpcWeb.MethodType.UNARY, grpc_pb.CreateCryptoCurrencyPaymentAccountRequest, grpc_pb.CreateCryptoCurrencyPaymentAccountReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.CreateCryptoCurrencyPaymentAccountReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetCryptoCurrencyPaymentMethods = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', grpcWeb.MethodType.UNARY, grpc_pb.GetCryptoCurrencyPaymentMethodsRequest, grpc_pb.GetCryptoCurrencyPaymentMethodsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetCryptoCurrencyPaymentMethodsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorValidateFormField = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.PaymentAccounts/ValidateFormField', grpcWeb.MethodType.UNARY, grpc_pb.ValidateFormFieldRequest, grpc_pb.ValidateFormFieldReply, (request) => {
2022-09-21 10:41:36 -04:00
return request.serializeBinary();
}, grpc_pb.ValidateFormFieldReply.deserializeBinary);
2022-05-04 21:30:48 -04:00
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
createPaymentAccount(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/CreatePaymentAccount', request, metadata || {}, this.methodDescriptorCreatePaymentAccount, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/CreatePaymentAccount', request, metadata || {}, this.methodDescriptorCreatePaymentAccount);
2022-05-04 21:30:48 -04:00
}
getPaymentAccounts(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccounts', request, metadata || {}, this.methodDescriptorGetPaymentAccounts, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccounts', request, metadata || {}, this.methodDescriptorGetPaymentAccounts);
2022-05-04 21:30:48 -04:00
}
getPaymentMethods(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetPaymentMethods', request, metadata || {}, this.methodDescriptorGetPaymentMethods, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetPaymentMethods', request, metadata || {}, this.methodDescriptorGetPaymentMethods);
2022-05-04 21:30:48 -04:00
}
getPaymentAccountForm(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccountForm', request, metadata || {}, this.methodDescriptorGetPaymentAccountForm, callback);
2022-09-21 10:41:36 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccountForm', request, metadata || {}, this.methodDescriptorGetPaymentAccountForm);
2022-09-21 10:41:36 -04:00
}
getPaymentAccountFormAsJson(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccountFormAsJson', request, metadata || {}, this.methodDescriptorGetPaymentAccountFormAsJson, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetPaymentAccountFormAsJson', request, metadata || {}, this.methodDescriptorGetPaymentAccountFormAsJson);
2022-05-04 21:30:48 -04:00
}
createCryptoCurrencyPaymentAccount(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', request, metadata || {}, this.methodDescriptorCreateCryptoCurrencyPaymentAccount, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', request, metadata || {}, this.methodDescriptorCreateCryptoCurrencyPaymentAccount);
2022-05-04 21:30:48 -04:00
}
getCryptoCurrencyPaymentMethods(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', request, metadata || {}, this.methodDescriptorGetCryptoCurrencyPaymentMethods, callback);
2022-09-21 10:41:36 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', request, metadata || {}, this.methodDescriptorGetCryptoCurrencyPaymentMethods);
2022-09-21 10:41:36 -04:00
}
validateFormField(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/ValidateFormField', request, metadata || {}, this.methodDescriptorValidateFormField, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.PaymentAccounts/ValidateFormField', request, metadata || {}, this.methodDescriptorValidateFormField);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.PaymentAccountsClient = PaymentAccountsClient;
class PriceClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetMarketPrice = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Price/GetMarketPrice', grpcWeb.MethodType.UNARY, grpc_pb.MarketPriceRequest, grpc_pb.MarketPriceReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.MarketPriceReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetMarketPrices = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Price/GetMarketPrices', grpcWeb.MethodType.UNARY, grpc_pb.MarketPricesRequest, grpc_pb.MarketPricesReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.MarketPricesReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetMarketDepth = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Price/GetMarketDepth', grpcWeb.MethodType.UNARY, grpc_pb.MarketDepthRequest, grpc_pb.MarketDepthReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.MarketDepthReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getMarketPrice(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Price/GetMarketPrice', request, metadata || {}, this.methodDescriptorGetMarketPrice, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Price/GetMarketPrice', request, metadata || {}, this.methodDescriptorGetMarketPrice);
2022-05-04 21:30:48 -04:00
}
getMarketPrices(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Price/GetMarketPrices', request, metadata || {}, this.methodDescriptorGetMarketPrices, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Price/GetMarketPrices', request, metadata || {}, this.methodDescriptorGetMarketPrices);
2022-05-04 21:30:48 -04:00
}
getMarketDepth(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Price/GetMarketDepth', request, metadata || {}, this.methodDescriptorGetMarketDepth, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Price/GetMarketDepth', request, metadata || {}, this.methodDescriptorGetMarketDepth);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.PriceClient = PriceClient;
class GetTradeStatisticsClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetTradeStatistics = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.GetTradeStatistics/GetTradeStatistics', grpcWeb.MethodType.UNARY, grpc_pb.GetTradeStatisticsRequest, grpc_pb.GetTradeStatisticsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetTradeStatisticsReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getTradeStatistics(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.GetTradeStatistics/GetTradeStatistics', request, metadata || {}, this.methodDescriptorGetTradeStatistics, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.GetTradeStatistics/GetTradeStatistics', request, metadata || {}, this.methodDescriptorGetTradeStatistics);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.GetTradeStatisticsClient = GetTradeStatisticsClient;
class ShutdownServerClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorStop = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.ShutdownServer/Stop', grpcWeb.MethodType.UNARY, grpc_pb.StopRequest, grpc_pb.StopReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.StopReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
stop(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.ShutdownServer/Stop', request, metadata || {}, this.methodDescriptorStop, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.ShutdownServer/Stop', request, metadata || {}, this.methodDescriptorStop);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.ShutdownServerClient = ShutdownServerClient;
class TradesClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetTrade = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/GetTrade', grpcWeb.MethodType.UNARY, grpc_pb.GetTradeRequest, grpc_pb.GetTradeReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetTradeReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetTrades = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/GetTrades', grpcWeb.MethodType.UNARY, grpc_pb.GetTradesRequest, grpc_pb.GetTradesReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetTradesReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorTakeOffer = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/TakeOffer', grpcWeb.MethodType.UNARY, grpc_pb.TakeOfferRequest, grpc_pb.TakeOfferReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.TakeOfferReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorConfirmPaymentSent = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/ConfirmPaymentSent', grpcWeb.MethodType.UNARY, grpc_pb.ConfirmPaymentSentRequest, grpc_pb.ConfirmPaymentSentReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
2023-02-27 10:23:01 -05:00
}, grpc_pb.ConfirmPaymentSentReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorConfirmPaymentReceived = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/ConfirmPaymentReceived', grpcWeb.MethodType.UNARY, grpc_pb.ConfirmPaymentReceivedRequest, grpc_pb.ConfirmPaymentReceivedReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.ConfirmPaymentReceivedReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorCompleteTrade = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/CompleteTrade', grpcWeb.MethodType.UNARY, grpc_pb.CompleteTradeRequest, grpc_pb.CompleteTradeReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
2022-12-17 05:06:40 -05:00
}, grpc_pb.CompleteTradeReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorWithdrawFunds = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/WithdrawFunds', grpcWeb.MethodType.UNARY, grpc_pb.WithdrawFundsRequest, grpc_pb.WithdrawFundsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.WithdrawFundsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetChatMessages = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/GetChatMessages', grpcWeb.MethodType.UNARY, grpc_pb.GetChatMessagesRequest, grpc_pb.GetChatMessagesReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetChatMessagesReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorSendChatMessage = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Trades/SendChatMessage', grpcWeb.MethodType.UNARY, grpc_pb.SendChatMessageRequest, grpc_pb.SendChatMessageReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.SendChatMessageReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getTrade(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/GetTrade', request, metadata || {}, this.methodDescriptorGetTrade, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/GetTrade', request, metadata || {}, this.methodDescriptorGetTrade);
2022-05-04 21:30:48 -04:00
}
getTrades(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/GetTrades', request, metadata || {}, this.methodDescriptorGetTrades, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/GetTrades', request, metadata || {}, this.methodDescriptorGetTrades);
2022-05-04 21:30:48 -04:00
}
takeOffer(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/TakeOffer', request, metadata || {}, this.methodDescriptorTakeOffer, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/TakeOffer', request, metadata || {}, this.methodDescriptorTakeOffer);
2022-05-04 21:30:48 -04:00
}
2023-02-27 10:23:01 -05:00
confirmPaymentSent(request, metadata, callback) {
2022-05-04 21:30:48 -04:00
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/ConfirmPaymentSent', request, metadata || {}, this.methodDescriptorConfirmPaymentSent, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/ConfirmPaymentSent', request, metadata || {}, this.methodDescriptorConfirmPaymentSent);
2022-05-04 21:30:48 -04:00
}
confirmPaymentReceived(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/ConfirmPaymentReceived', request, metadata || {}, this.methodDescriptorConfirmPaymentReceived, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/ConfirmPaymentReceived', request, metadata || {}, this.methodDescriptorConfirmPaymentReceived);
2022-05-04 21:30:48 -04:00
}
2022-12-17 05:06:40 -05:00
completeTrade(request, metadata, callback) {
2022-05-04 21:30:48 -04:00
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/CompleteTrade', request, metadata || {}, this.methodDescriptorCompleteTrade, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/CompleteTrade', request, metadata || {}, this.methodDescriptorCompleteTrade);
2022-05-04 21:30:48 -04:00
}
withdrawFunds(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/WithdrawFunds', request, metadata || {}, this.methodDescriptorWithdrawFunds, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/WithdrawFunds', request, metadata || {}, this.methodDescriptorWithdrawFunds);
2022-05-04 21:30:48 -04:00
}
getChatMessages(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/GetChatMessages', request, metadata || {}, this.methodDescriptorGetChatMessages, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/GetChatMessages', request, metadata || {}, this.methodDescriptorGetChatMessages);
2022-05-04 21:30:48 -04:00
}
sendChatMessage(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/SendChatMessage', request, metadata || {}, this.methodDescriptorSendChatMessage, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Trades/SendChatMessage', request, metadata || {}, this.methodDescriptorSendChatMessage);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.TradesClient = TradesClient;
class WalletsClient {
2022-05-04 21:30:48 -04:00
constructor(hostname, credentials, options) {
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetBalances = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/GetBalances', grpcWeb.MethodType.UNARY, grpc_pb.GetBalancesRequest, grpc_pb.GetBalancesReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetBalancesReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetXmrSeed = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/GetXmrSeed', grpcWeb.MethodType.UNARY, grpc_pb.GetXmrSeedRequest, grpc_pb.GetXmrSeedReply, (request) => {
2022-05-10 14:57:20 -04:00
return request.serializeBinary();
}, grpc_pb.GetXmrSeedReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetXmrPrimaryAddress = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/GetXmrPrimaryAddress', grpcWeb.MethodType.UNARY, grpc_pb.GetXmrPrimaryAddressRequest, grpc_pb.GetXmrPrimaryAddressReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetXmrPrimaryAddressReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetXmrNewSubaddress = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/GetXmrNewSubaddress', grpcWeb.MethodType.UNARY, grpc_pb.GetXmrNewSubaddressRequest, grpc_pb.GetXmrNewSubaddressReply, (request) => {
return request.serializeBinary();
}, grpc_pb.GetXmrNewSubaddressReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetXmrTxs = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/GetXmrTxs', grpcWeb.MethodType.UNARY, grpc_pb.GetXmrTxsRequest, grpc_pb.GetXmrTxsReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetXmrTxsReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorCreateXmrTx = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/CreateXmrTx', grpcWeb.MethodType.UNARY, grpc_pb.CreateXmrTxRequest, grpc_pb.CreateXmrTxReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.CreateXmrTxReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorrelayXmrTx = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/relayXmrTx', grpcWeb.MethodType.UNARY, grpc_pb.RelayXmrTxRequest, grpc_pb.RelayXmrTxReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.RelayXmrTxReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetAddressBalance = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/GetAddressBalance', grpcWeb.MethodType.UNARY, grpc_pb.GetAddressBalanceRequest, grpc_pb.GetAddressBalanceReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetAddressBalanceReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorGetFundingAddresses = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/GetFundingAddresses', grpcWeb.MethodType.UNARY, grpc_pb.GetFundingAddressesRequest, grpc_pb.GetFundingAddressesReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.GetFundingAddressesReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorSetWalletPassword = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/SetWalletPassword', grpcWeb.MethodType.UNARY, grpc_pb.SetWalletPasswordRequest, grpc_pb.SetWalletPasswordReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.SetWalletPasswordReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorRemoveWalletPassword = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/RemoveWalletPassword', grpcWeb.MethodType.UNARY, grpc_pb.RemoveWalletPasswordRequest, grpc_pb.RemoveWalletPasswordReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.RemoveWalletPasswordReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorLockWallet = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/LockWallet', grpcWeb.MethodType.UNARY, grpc_pb.LockWalletRequest, grpc_pb.LockWalletReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.LockWalletReply.deserializeBinary);
2023-04-26 11:43:48 -04:00
this.methodDescriptorUnlockWallet = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/UnlockWallet', grpcWeb.MethodType.UNARY, grpc_pb.UnlockWalletRequest, grpc_pb.UnlockWalletReply, (request) => {
2022-05-04 21:30:48 -04:00
return request.serializeBinary();
}, grpc_pb.UnlockWalletReply.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'text';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getBalances(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetBalances', request, metadata || {}, this.methodDescriptorGetBalances, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetBalances', request, metadata || {}, this.methodDescriptorGetBalances);
2022-05-04 21:30:48 -04:00
}
2022-05-10 14:57:20 -04:00
getXmrSeed(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetXmrSeed', request, metadata || {}, this.methodDescriptorGetXmrSeed, callback);
2022-05-10 14:57:20 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetXmrSeed', request, metadata || {}, this.methodDescriptorGetXmrSeed);
2022-05-10 14:57:20 -04:00
}
getXmrPrimaryAddress(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetXmrPrimaryAddress', request, metadata || {}, this.methodDescriptorGetXmrPrimaryAddress, callback);
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetXmrPrimaryAddress', request, metadata || {}, this.methodDescriptorGetXmrPrimaryAddress);
}
getXmrNewSubaddress(request, metadata, callback) {
2022-05-04 21:30:48 -04:00
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetXmrNewSubaddress', request, metadata || {}, this.methodDescriptorGetXmrNewSubaddress, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetXmrNewSubaddress', request, metadata || {}, this.methodDescriptorGetXmrNewSubaddress);
2022-05-04 21:30:48 -04:00
}
getXmrTxs(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetXmrTxs', request, metadata || {}, this.methodDescriptorGetXmrTxs, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetXmrTxs', request, metadata || {}, this.methodDescriptorGetXmrTxs);
2022-05-04 21:30:48 -04:00
}
createXmrTx(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/CreateXmrTx', request, metadata || {}, this.methodDescriptorCreateXmrTx, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/CreateXmrTx', request, metadata || {}, this.methodDescriptorCreateXmrTx);
2022-05-04 21:30:48 -04:00
}
relayXmrTx(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/relayXmrTx', request, metadata || {}, this.methodDescriptorrelayXmrTx, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/relayXmrTx', request, metadata || {}, this.methodDescriptorrelayXmrTx);
2022-05-04 21:30:48 -04:00
}
getAddressBalance(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetAddressBalance', request, metadata || {}, this.methodDescriptorGetAddressBalance, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetAddressBalance', request, metadata || {}, this.methodDescriptorGetAddressBalance);
2022-05-04 21:30:48 -04:00
}
getFundingAddresses(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetFundingAddresses', request, metadata || {}, this.methodDescriptorGetFundingAddresses, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/GetFundingAddresses', request, metadata || {}, this.methodDescriptorGetFundingAddresses);
2022-05-04 21:30:48 -04:00
}
setWalletPassword(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/SetWalletPassword', request, metadata || {}, this.methodDescriptorSetWalletPassword, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/SetWalletPassword', request, metadata || {}, this.methodDescriptorSetWalletPassword);
2022-05-04 21:30:48 -04:00
}
removeWalletPassword(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/RemoveWalletPassword', request, metadata || {}, this.methodDescriptorRemoveWalletPassword, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/RemoveWalletPassword', request, metadata || {}, this.methodDescriptorRemoveWalletPassword);
2022-05-04 21:30:48 -04:00
}
lockWallet(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/LockWallet', request, metadata || {}, this.methodDescriptorLockWallet, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/LockWallet', request, metadata || {}, this.methodDescriptorLockWallet);
2022-05-04 21:30:48 -04:00
}
unlockWallet(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/UnlockWallet', request, metadata || {}, this.methodDescriptorUnlockWallet, callback);
2022-05-04 21:30:48 -04:00
}
return this.client_.unaryCall(this.hostname_ +
2023-04-26 11:43:48 -04:00
'/io.haveno.protobuffer.Wallets/UnlockWallet', request, metadata || {}, this.methodDescriptorUnlockWallet);
2022-05-04 21:30:48 -04:00
}
}
2022-05-12 17:25:46 -04:00
exports.WalletsClient = WalletsClient;
2022-05-04 21:30:48 -04:00
//# sourceMappingURL=GrpcServiceClientPb.js.map