rename grpc service clients from Monero to Xmr for consistency

This commit is contained in:
woodser 2023-11-25 14:48:58 -05:00
parent 5d55a0bd4f
commit 6725b44792
14 changed files with 621 additions and 621 deletions

View file

@ -1,7 +1,7 @@
import type * as grpcWeb from "grpc-web"; import type * as grpcWeb from "grpc-web";
import { GetVersionClient, AccountClient, MoneroConnectionsClient, DisputesClient, DisputeAgentsClient, NotificationsClient, WalletsClient, PriceClient, OffersClient, PaymentAccountsClient, TradesClient, ShutdownServerClient, MoneroNodeClient } from './protobuf/GrpcServiceClientPb'; import { GetVersionClient, AccountClient, XmrConnectionsClient, DisputesClient, DisputeAgentsClient, NotificationsClient, WalletsClient, PriceClient, OffersClient, PaymentAccountsClient, TradesClient, ShutdownServerClient, XmrNodeClient } from './protobuf/GrpcServiceClientPb';
import { MarketPriceInfo, MarketDepthInfo, XmrBalanceInfo, OfferInfo, TradeInfo, XmrTx, XmrDestination, NotificationMessage, UrlConnection } from "./protobuf/grpc_pb"; import { MarketPriceInfo, MarketDepthInfo, XmrBalanceInfo, OfferInfo, TradeInfo, XmrTx, XmrDestination, NotificationMessage, UrlConnection } from "./protobuf/grpc_pb";
import { OfferDirection, PaymentMethod, PaymentAccountForm, PaymentAccountFormField, PaymentAccount, PaymentAccountPayload, Attachment, DisputeResult, Dispute, ChatMessage, MoneroNodeSettings } from "./protobuf/pb_pb"; import { OfferDirection, PaymentMethod, PaymentAccountForm, PaymentAccountFormField, PaymentAccount, PaymentAccountPayload, Attachment, DisputeResult, Dispute, ChatMessage, XmrNodeSettings } from "./protobuf/pb_pb";
/** /**
* Haveno daemon client. * Haveno daemon client.
*/ */
@ -12,8 +12,8 @@ export default class HavenoClient {
/** @private */ _disputesClient: DisputesClient; /** @private */ _disputesClient: DisputesClient;
/** @private */ _notificationsClient: NotificationsClient; /** @private */ _notificationsClient: NotificationsClient;
/** @private */ _notificationStream: grpcWeb.ClientReadableStream<NotificationMessage> | undefined; /** @private */ _notificationStream: grpcWeb.ClientReadableStream<NotificationMessage> | undefined;
/** @private */ _moneroConnectionsClient: MoneroConnectionsClient; /** @private */ _xmrConnectionsClient: XmrConnectionsClient;
/** @private */ _moneroNodeClient: MoneroNodeClient; /** @private */ _xmrNodeClient: XmrNodeClient;
/** @private */ _walletsClient: WalletsClient; /** @private */ _walletsClient: WalletsClient;
/** @private */ _priceClient: PriceClient; /** @private */ _priceClient: PriceClient;
/** @private */ _paymentAccountsClient: PaymentAccountsClient; /** @private */ _paymentAccountsClient: PaymentAccountsClient;
@ -236,13 +236,13 @@ export default class HavenoClient {
/** /**
* Gets the current local monero node settings. * Gets the current local monero node settings.
*/ */
getMoneroNodeSettings(): Promise<MoneroNodeSettings | undefined>; getMoneroNodeSettings(): Promise<XmrNodeSettings | undefined>;
/** /**
* Starts the local monero node. * Starts the local monero node.
* *
* @param {MoneroNodeSettings} settings - the settings to start the local node with * @param {MoneroNodeSettings} settings - the settings to start the local node with
*/ */
startMoneroNode(settings: MoneroNodeSettings): Promise<void>; startMoneroNode(settings: XmrNodeSettings): Promise<void>;
/** /**
* Stops the local monero node. * Stops the local monero node.
*/ */

38
dist/HavenoClient.js vendored
View file

@ -45,8 +45,8 @@ class HavenoClient {
this._password = password; this._password = password;
this._getVersionClient = new GrpcServiceClientPb_1.GetVersionClient(this._url); this._getVersionClient = new GrpcServiceClientPb_1.GetVersionClient(this._url);
this._accountClient = new GrpcServiceClientPb_1.AccountClient(this._url); this._accountClient = new GrpcServiceClientPb_1.AccountClient(this._url);
this._moneroConnectionsClient = new GrpcServiceClientPb_1.MoneroConnectionsClient(this._url); this._xmrConnectionsClient = new GrpcServiceClientPb_1.XmrConnectionsClient(this._url);
this._moneroNodeClient = new GrpcServiceClientPb_1.MoneroNodeClient(this._url); this._xmrNodeClient = new GrpcServiceClientPb_1.XmrNodeClient(this._url);
this._disputeAgentsClient = new GrpcServiceClientPb_1.DisputeAgentsClient(this._url); this._disputeAgentsClient = new GrpcServiceClientPb_1.DisputeAgentsClient(this._url);
this._disputesClient = new GrpcServiceClientPb_1.DisputesClient(this._url); this._disputesClient = new GrpcServiceClientPb_1.DisputesClient(this._url);
this._walletsClient = new GrpcServiceClientPb_1.WalletsClient(this._url); this._walletsClient = new GrpcServiceClientPb_1.WalletsClient(this._url);
@ -400,7 +400,7 @@ class HavenoClient {
*/ */
async addMoneroConnection(connection) { async addMoneroConnection(connection) {
try { try {
await this._moneroConnectionsClient.addConnection(new grpc_pb_1.AddConnectionRequest().setConnection(typeof connection === "string" ? new grpc_pb_1.UrlConnection().setUrl(connection) : connection), { password: this._password }); await this._xmrConnectionsClient.addConnection(new grpc_pb_1.AddConnectionRequest().setConnection(typeof connection === "string" ? new grpc_pb_1.UrlConnection().setUrl(connection) : connection), { password: this._password });
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -413,7 +413,7 @@ class HavenoClient {
*/ */
async removeMoneroConnection(url) { async removeMoneroConnection(url) {
try { try {
await this._moneroConnectionsClient.removeConnection(new grpc_pb_1.RemoveConnectionRequest().setUrl(url), { password: this._password }); await this._xmrConnectionsClient.removeConnection(new grpc_pb_1.RemoveConnectionRequest().setUrl(url), { password: this._password });
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -426,7 +426,7 @@ class HavenoClient {
*/ */
async getMoneroConnection() { async getMoneroConnection() {
try { try {
return await (await this._moneroConnectionsClient.getConnection(new grpc_pb_1.GetConnectionRequest(), { password: this._password })).getConnection(); return await (await this._xmrConnectionsClient.getConnection(new grpc_pb_1.GetConnectionRequest(), { password: this._password })).getConnection();
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -439,7 +439,7 @@ class HavenoClient {
*/ */
async getMoneroConnections() { async getMoneroConnections() {
try { try {
return (await this._moneroConnectionsClient.getConnections(new grpc_pb_1.GetConnectionsRequest(), { password: this._password })).getConnectionsList(); return (await this._xmrConnectionsClient.getConnections(new grpc_pb_1.GetConnectionsRequest(), { password: this._password })).getConnectionsList();
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -462,7 +462,7 @@ class HavenoClient {
else else
request.setConnection(connection); request.setConnection(connection);
try { try {
await this._moneroConnectionsClient.setConnection(request, { password: this._password }); await this._xmrConnectionsClient.setConnection(request, { password: this._password });
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -477,7 +477,7 @@ class HavenoClient {
*/ */
async checkMoneroConnection() { async checkMoneroConnection() {
try { try {
return (await this._moneroConnectionsClient.checkConnection(new grpc_pb_1.CheckConnectionRequest(), { password: this._password })).getConnection(); return (await this._xmrConnectionsClient.checkConnection(new grpc_pb_1.CheckConnectionRequest(), { password: this._password })).getConnection();
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -490,7 +490,7 @@ class HavenoClient {
*/ */
async checkMoneroConnections() { async checkMoneroConnections() {
try { try {
return (await this._moneroConnectionsClient.checkConnections(new grpc_pb_1.CheckConnectionsRequest(), { password: this._password })).getConnectionsList(); return (await this._xmrConnectionsClient.checkConnections(new grpc_pb_1.CheckConnectionsRequest(), { password: this._password })).getConnectionsList();
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -503,7 +503,7 @@ class HavenoClient {
*/ */
async startCheckingConnection(refreshPeriod) { async startCheckingConnection(refreshPeriod) {
try { try {
await this._moneroConnectionsClient.startCheckingConnections(new grpc_pb_1.StartCheckingConnectionsRequest().setRefreshPeriod(refreshPeriod), { password: this._password }); await this._xmrConnectionsClient.startCheckingConnections(new grpc_pb_1.StartCheckingConnectionsRequest().setRefreshPeriod(refreshPeriod), { password: this._password });
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -514,7 +514,7 @@ class HavenoClient {
*/ */
async stopCheckingConnection() { async stopCheckingConnection() {
try { try {
await this._moneroConnectionsClient.stopCheckingConnections(new grpc_pb_1.StopCheckingConnectionsRequest(), { password: this._password }); await this._xmrConnectionsClient.stopCheckingConnections(new grpc_pb_1.StopCheckingConnectionsRequest(), { password: this._password });
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -527,7 +527,7 @@ class HavenoClient {
*/ */
async getBestAvailableConnection() { async getBestAvailableConnection() {
try { try {
return (await this._moneroConnectionsClient.getBestAvailableConnection(new grpc_pb_1.GetBestAvailableConnectionRequest(), { password: this._password })).getConnection(); return (await this._xmrConnectionsClient.getBestAvailableConnection(new grpc_pb_1.GetBestAvailableConnectionRequest(), { password: this._password })).getConnection();
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -540,7 +540,7 @@ class HavenoClient {
*/ */
async setAutoSwitch(autoSwitch) { async setAutoSwitch(autoSwitch) {
try { try {
await this._moneroConnectionsClient.setAutoSwitch(new grpc_pb_1.SetAutoSwitchRequest().setAutoSwitch(autoSwitch), { password: this._password }); await this._xmrConnectionsClient.setAutoSwitch(new grpc_pb_1.SetAutoSwitchRequest().setAutoSwitch(autoSwitch), { password: this._password });
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -551,7 +551,7 @@ class HavenoClient {
*/ */
async isMoneroNodeOnline() { async isMoneroNodeOnline() {
try { try {
return (await this._moneroNodeClient.isMoneroNodeOnline(new grpc_pb_1.IsMoneroNodeOnlineRequest(), { password: this._password })).getIsRunning(); return (await this._xmrNodeClient.isXmrNodeOnline(new grpc_pb_1.IsXmrNodeOnlineRequest(), { password: this._password })).getIsRunning();
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -562,8 +562,8 @@ class HavenoClient {
*/ */
async getMoneroNodeSettings() { async getMoneroNodeSettings() {
try { try {
const request = new grpc_pb_1.GetMoneroNodeSettingsRequest(); const request = new grpc_pb_1.GetXmrNodeSettingsRequest();
return (await this._moneroNodeClient.getMoneroNodeSettings(request, { password: this._password })).getSettings(); return (await this._xmrNodeClient.getXmrNodeSettings(request, { password: this._password })).getSettings();
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -576,8 +576,8 @@ class HavenoClient {
*/ */
async startMoneroNode(settings) { async startMoneroNode(settings) {
try { try {
const request = new grpc_pb_1.StartMoneroNodeRequest().setSettings(settings); const request = new grpc_pb_1.StartXmrNodeRequest().setSettings(settings);
await this._moneroNodeClient.startMoneroNode(request, { password: this._password }); await this._xmrNodeClient.startXmrNode(request, { password: this._password });
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);
@ -588,7 +588,7 @@ class HavenoClient {
*/ */
async stopMoneroNode() { async stopMoneroNode() {
try { try {
await this._moneroNodeClient.stopMoneroNode(new grpc_pb_1.StopMoneroNodeRequest(), { password: this._password }); await this._xmrNodeClient.stopXmrNode(new grpc_pb_1.StopXmrNodeRequest(), { password: this._password });
} }
catch (e) { catch (e) {
throw new HavenoError_1.default(e.message, e.code); throw new HavenoError_1.default(e.message, e.code);

File diff suppressed because one or more lines are too long

View file

@ -156,7 +156,7 @@ export declare class NotificationsClient {
sendNotification(request: grpc_pb.SendNotificationRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.SendNotificationReply>; sendNotification(request: grpc_pb.SendNotificationRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.SendNotificationReply>;
sendNotification(request: grpc_pb.SendNotificationRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.SendNotificationReply) => void): grpcWeb.ClientReadableStream<grpc_pb.SendNotificationReply>; sendNotification(request: grpc_pb.SendNotificationRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.SendNotificationReply) => void): grpcWeb.ClientReadableStream<grpc_pb.SendNotificationReply>;
} }
export declare class MoneroConnectionsClient { export declare class XmrConnectionsClient {
client_: grpcWeb.AbstractClientBase; client_: grpcWeb.AbstractClientBase;
hostname_: string; hostname_: string;
credentials_: null | { credentials_: null | {
@ -204,7 +204,7 @@ export declare class MoneroConnectionsClient {
setAutoSwitch(request: grpc_pb.SetAutoSwitchRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.SetAutoSwitchReply>; setAutoSwitch(request: grpc_pb.SetAutoSwitchRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.SetAutoSwitchReply>;
setAutoSwitch(request: grpc_pb.SetAutoSwitchRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.SetAutoSwitchReply) => void): grpcWeb.ClientReadableStream<grpc_pb.SetAutoSwitchReply>; setAutoSwitch(request: grpc_pb.SetAutoSwitchRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.SetAutoSwitchReply) => void): grpcWeb.ClientReadableStream<grpc_pb.SetAutoSwitchReply>;
} }
export declare class MoneroNodeClient { export declare class XmrNodeClient {
client_: grpcWeb.AbstractClientBase; client_: grpcWeb.AbstractClientBase;
hostname_: string; hostname_: string;
credentials_: null | { credentials_: null | {
@ -218,18 +218,18 @@ export declare class MoneroNodeClient {
}, options?: null | { }, options?: null | {
[index: string]: any; [index: string]: any;
}); });
methodDescriptorIsMoneroNodeOnline: grpcWeb.MethodDescriptor<grpc_pb.IsMoneroNodeOnlineRequest, grpc_pb.IsMoneroNodeOnlineReply>; methodDescriptorIsXmrNodeOnline: grpcWeb.MethodDescriptor<grpc_pb.IsXmrNodeOnlineRequest, grpc_pb.IsXmrNodeOnlineReply>;
isMoneroNodeOnline(request: grpc_pb.IsMoneroNodeOnlineRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.IsMoneroNodeOnlineReply>; isXmrNodeOnline(request: grpc_pb.IsXmrNodeOnlineRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.IsXmrNodeOnlineReply>;
isMoneroNodeOnline(request: grpc_pb.IsMoneroNodeOnlineRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.IsMoneroNodeOnlineReply) => void): grpcWeb.ClientReadableStream<grpc_pb.IsMoneroNodeOnlineReply>; isXmrNodeOnline(request: grpc_pb.IsXmrNodeOnlineRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.IsXmrNodeOnlineReply) => void): grpcWeb.ClientReadableStream<grpc_pb.IsXmrNodeOnlineReply>;
methodDescriptorGetMoneroNodeSettings: grpcWeb.MethodDescriptor<grpc_pb.GetMoneroNodeSettingsRequest, grpc_pb.GetMoneroNodeSettingsReply>; methodDescriptorGetXmrNodeSettings: grpcWeb.MethodDescriptor<grpc_pb.GetXmrNodeSettingsRequest, grpc_pb.GetXmrNodeSettingsReply>;
getMoneroNodeSettings(request: grpc_pb.GetMoneroNodeSettingsRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.GetMoneroNodeSettingsReply>; getXmrNodeSettings(request: grpc_pb.GetXmrNodeSettingsRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.GetXmrNodeSettingsReply>;
getMoneroNodeSettings(request: grpc_pb.GetMoneroNodeSettingsRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.GetMoneroNodeSettingsReply) => void): grpcWeb.ClientReadableStream<grpc_pb.GetMoneroNodeSettingsReply>; getXmrNodeSettings(request: grpc_pb.GetXmrNodeSettingsRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.GetXmrNodeSettingsReply) => void): grpcWeb.ClientReadableStream<grpc_pb.GetXmrNodeSettingsReply>;
methodDescriptorStartMoneroNode: grpcWeb.MethodDescriptor<grpc_pb.StartMoneroNodeRequest, grpc_pb.StartMoneroNodeReply>; methodDescriptorStartXmrNode: grpcWeb.MethodDescriptor<grpc_pb.StartXmrNodeRequest, grpc_pb.StartXmrNodeReply>;
startMoneroNode(request: grpc_pb.StartMoneroNodeRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.StartMoneroNodeReply>; startXmrNode(request: grpc_pb.StartXmrNodeRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.StartXmrNodeReply>;
startMoneroNode(request: grpc_pb.StartMoneroNodeRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.StartMoneroNodeReply) => void): grpcWeb.ClientReadableStream<grpc_pb.StartMoneroNodeReply>; startXmrNode(request: grpc_pb.StartXmrNodeRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.StartXmrNodeReply) => void): grpcWeb.ClientReadableStream<grpc_pb.StartXmrNodeReply>;
methodDescriptorStopMoneroNode: grpcWeb.MethodDescriptor<grpc_pb.StopMoneroNodeRequest, grpc_pb.StopMoneroNodeReply>; methodDescriptorStopXmrNode: grpcWeb.MethodDescriptor<grpc_pb.StopXmrNodeRequest, grpc_pb.StopXmrNodeReply>;
stopMoneroNode(request: grpc_pb.StopMoneroNodeRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.StopMoneroNodeReply>; stopXmrNode(request: grpc_pb.StopXmrNodeRequest, metadata: grpcWeb.Metadata | null): Promise<grpc_pb.StopXmrNodeReply>;
stopMoneroNode(request: grpc_pb.StopMoneroNodeRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.StopMoneroNodeReply) => void): grpcWeb.ClientReadableStream<grpc_pb.StopMoneroNodeReply>; stopXmrNode(request: grpc_pb.StopXmrNodeRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.StopXmrNodeReply) => void): grpcWeb.ClientReadableStream<grpc_pb.StopXmrNodeReply>;
} }
export declare class OffersClient { export declare class OffersClient {
client_: grpcWeb.AbstractClientBase; client_: grpcWeb.AbstractClientBase;

View file

@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); 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; exports.WalletsClient = exports.TradesClient = exports.ShutdownServerClient = exports.GetTradeStatisticsClient = exports.PriceClient = exports.PaymentAccountsClient = exports.OffersClient = exports.XmrNodeClient = exports.XmrConnectionsClient = exports.NotificationsClient = exports.DisputeAgentsClient = exports.DisputesClient = exports.AccountClient = exports.GetVersionClient = exports.HelpClient = void 0;
// GENERATED CODE -- DO NOT EDIT! // GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */ /* eslint-disable */
// @ts-nocheck // @ts-nocheck
@ -341,39 +341,39 @@ class NotificationsClient {
} }
} }
exports.NotificationsClient = NotificationsClient; exports.NotificationsClient = NotificationsClient;
class MoneroConnectionsClient { class XmrConnectionsClient {
constructor(hostname, credentials, options) { constructor(hostname, credentials, options) {
this.methodDescriptorAddConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/AddConnection', grpcWeb.MethodType.UNARY, grpc_pb.AddConnectionRequest, grpc_pb.AddConnectionReply, (request) => { this.methodDescriptorAddConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/AddConnection', grpcWeb.MethodType.UNARY, grpc_pb.AddConnectionRequest, grpc_pb.AddConnectionReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.AddConnectionReply.deserializeBinary); }, grpc_pb.AddConnectionReply.deserializeBinary);
this.methodDescriptorRemoveConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/RemoveConnection', grpcWeb.MethodType.UNARY, grpc_pb.RemoveConnectionRequest, grpc_pb.RemoveConnectionReply, (request) => { this.methodDescriptorRemoveConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/RemoveConnection', grpcWeb.MethodType.UNARY, grpc_pb.RemoveConnectionRequest, grpc_pb.RemoveConnectionReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.RemoveConnectionReply.deserializeBinary); }, grpc_pb.RemoveConnectionReply.deserializeBinary);
this.methodDescriptorGetConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/GetConnection', grpcWeb.MethodType.UNARY, grpc_pb.GetConnectionRequest, grpc_pb.GetConnectionReply, (request) => { this.methodDescriptorGetConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/GetConnection', grpcWeb.MethodType.UNARY, grpc_pb.GetConnectionRequest, grpc_pb.GetConnectionReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.GetConnectionReply.deserializeBinary); }, grpc_pb.GetConnectionReply.deserializeBinary);
this.methodDescriptorGetConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/GetConnections', grpcWeb.MethodType.UNARY, grpc_pb.GetConnectionsRequest, grpc_pb.GetConnectionsReply, (request) => { this.methodDescriptorGetConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/GetConnections', grpcWeb.MethodType.UNARY, grpc_pb.GetConnectionsRequest, grpc_pb.GetConnectionsReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.GetConnectionsReply.deserializeBinary); }, grpc_pb.GetConnectionsReply.deserializeBinary);
this.methodDescriptorSetConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/SetConnection', grpcWeb.MethodType.UNARY, grpc_pb.SetConnectionRequest, grpc_pb.SetConnectionReply, (request) => { this.methodDescriptorSetConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/SetConnection', grpcWeb.MethodType.UNARY, grpc_pb.SetConnectionRequest, grpc_pb.SetConnectionReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.SetConnectionReply.deserializeBinary); }, grpc_pb.SetConnectionReply.deserializeBinary);
this.methodDescriptorCheckConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/CheckConnection', grpcWeb.MethodType.UNARY, grpc_pb.CheckConnectionRequest, grpc_pb.CheckConnectionReply, (request) => { this.methodDescriptorCheckConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/CheckConnection', grpcWeb.MethodType.UNARY, grpc_pb.CheckConnectionRequest, grpc_pb.CheckConnectionReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.CheckConnectionReply.deserializeBinary); }, grpc_pb.CheckConnectionReply.deserializeBinary);
this.methodDescriptorCheckConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/CheckConnections', grpcWeb.MethodType.UNARY, grpc_pb.CheckConnectionsRequest, grpc_pb.CheckConnectionsReply, (request) => { this.methodDescriptorCheckConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/CheckConnections', grpcWeb.MethodType.UNARY, grpc_pb.CheckConnectionsRequest, grpc_pb.CheckConnectionsReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.CheckConnectionsReply.deserializeBinary); }, grpc_pb.CheckConnectionsReply.deserializeBinary);
this.methodDescriptorStartCheckingConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/StartCheckingConnections', grpcWeb.MethodType.UNARY, grpc_pb.StartCheckingConnectionsRequest, grpc_pb.StartCheckingConnectionsReply, (request) => { this.methodDescriptorStartCheckingConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/StartCheckingConnections', grpcWeb.MethodType.UNARY, grpc_pb.StartCheckingConnectionsRequest, grpc_pb.StartCheckingConnectionsReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.StartCheckingConnectionsReply.deserializeBinary); }, grpc_pb.StartCheckingConnectionsReply.deserializeBinary);
this.methodDescriptorStopCheckingConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/StopCheckingConnections', grpcWeb.MethodType.UNARY, grpc_pb.StopCheckingConnectionsRequest, grpc_pb.StopCheckingConnectionsReply, (request) => { this.methodDescriptorStopCheckingConnections = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/StopCheckingConnections', grpcWeb.MethodType.UNARY, grpc_pb.StopCheckingConnectionsRequest, grpc_pb.StopCheckingConnectionsReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.StopCheckingConnectionsReply.deserializeBinary); }, grpc_pb.StopCheckingConnectionsReply.deserializeBinary);
this.methodDescriptorGetBestAvailableConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/GetBestAvailableConnection', grpcWeb.MethodType.UNARY, grpc_pb.GetBestAvailableConnectionRequest, grpc_pb.GetBestAvailableConnectionReply, (request) => { this.methodDescriptorGetBestAvailableConnection = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/GetBestAvailableConnection', grpcWeb.MethodType.UNARY, grpc_pb.GetBestAvailableConnectionRequest, grpc_pb.GetBestAvailableConnectionReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.GetBestAvailableConnectionReply.deserializeBinary); }, grpc_pb.GetBestAvailableConnectionReply.deserializeBinary);
this.methodDescriptorSetAutoSwitch = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroConnections/SetAutoSwitch', grpcWeb.MethodType.UNARY, grpc_pb.SetAutoSwitchRequest, grpc_pb.SetAutoSwitchReply, (request) => { this.methodDescriptorSetAutoSwitch = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrConnections/SetAutoSwitch', grpcWeb.MethodType.UNARY, grpc_pb.SetAutoSwitchRequest, grpc_pb.SetAutoSwitchReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.SetAutoSwitchReply.deserializeBinary); }, grpc_pb.SetAutoSwitchReply.deserializeBinary);
if (!options) if (!options)
@ -389,107 +389,107 @@ class MoneroConnectionsClient {
addConnection(request, metadata, callback) { addConnection(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/AddConnection', request, metadata || {}, this.methodDescriptorAddConnection, callback); '/io.haveno.protobuffer.XmrConnections/AddConnection', request, metadata || {}, this.methodDescriptorAddConnection, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/AddConnection', request, metadata || {}, this.methodDescriptorAddConnection); '/io.haveno.protobuffer.XmrConnections/AddConnection', request, metadata || {}, this.methodDescriptorAddConnection);
} }
removeConnection(request, metadata, callback) { removeConnection(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/RemoveConnection', request, metadata || {}, this.methodDescriptorRemoveConnection, callback); '/io.haveno.protobuffer.XmrConnections/RemoveConnection', request, metadata || {}, this.methodDescriptorRemoveConnection, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/RemoveConnection', request, metadata || {}, this.methodDescriptorRemoveConnection); '/io.haveno.protobuffer.XmrConnections/RemoveConnection', request, metadata || {}, this.methodDescriptorRemoveConnection);
} }
getConnection(request, metadata, callback) { getConnection(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/GetConnection', request, metadata || {}, this.methodDescriptorGetConnection, callback); '/io.haveno.protobuffer.XmrConnections/GetConnection', request, metadata || {}, this.methodDescriptorGetConnection, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/GetConnection', request, metadata || {}, this.methodDescriptorGetConnection); '/io.haveno.protobuffer.XmrConnections/GetConnection', request, metadata || {}, this.methodDescriptorGetConnection);
} }
getConnections(request, metadata, callback) { getConnections(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/GetConnections', request, metadata || {}, this.methodDescriptorGetConnections, callback); '/io.haveno.protobuffer.XmrConnections/GetConnections', request, metadata || {}, this.methodDescriptorGetConnections, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/GetConnections', request, metadata || {}, this.methodDescriptorGetConnections); '/io.haveno.protobuffer.XmrConnections/GetConnections', request, metadata || {}, this.methodDescriptorGetConnections);
} }
setConnection(request, metadata, callback) { setConnection(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/SetConnection', request, metadata || {}, this.methodDescriptorSetConnection, callback); '/io.haveno.protobuffer.XmrConnections/SetConnection', request, metadata || {}, this.methodDescriptorSetConnection, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/SetConnection', request, metadata || {}, this.methodDescriptorSetConnection); '/io.haveno.protobuffer.XmrConnections/SetConnection', request, metadata || {}, this.methodDescriptorSetConnection);
} }
checkConnection(request, metadata, callback) { checkConnection(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/CheckConnection', request, metadata || {}, this.methodDescriptorCheckConnection, callback); '/io.haveno.protobuffer.XmrConnections/CheckConnection', request, metadata || {}, this.methodDescriptorCheckConnection, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/CheckConnection', request, metadata || {}, this.methodDescriptorCheckConnection); '/io.haveno.protobuffer.XmrConnections/CheckConnection', request, metadata || {}, this.methodDescriptorCheckConnection);
} }
checkConnections(request, metadata, callback) { checkConnections(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/CheckConnections', request, metadata || {}, this.methodDescriptorCheckConnections, callback); '/io.haveno.protobuffer.XmrConnections/CheckConnections', request, metadata || {}, this.methodDescriptorCheckConnections, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/CheckConnections', request, metadata || {}, this.methodDescriptorCheckConnections); '/io.haveno.protobuffer.XmrConnections/CheckConnections', request, metadata || {}, this.methodDescriptorCheckConnections);
} }
startCheckingConnections(request, metadata, callback) { startCheckingConnections(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/StartCheckingConnections', request, metadata || {}, this.methodDescriptorStartCheckingConnections, callback); '/io.haveno.protobuffer.XmrConnections/StartCheckingConnections', request, metadata || {}, this.methodDescriptorStartCheckingConnections, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/StartCheckingConnections', request, metadata || {}, this.methodDescriptorStartCheckingConnections); '/io.haveno.protobuffer.XmrConnections/StartCheckingConnections', request, metadata || {}, this.methodDescriptorStartCheckingConnections);
} }
stopCheckingConnections(request, metadata, callback) { stopCheckingConnections(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/StopCheckingConnections', request, metadata || {}, this.methodDescriptorStopCheckingConnections, callback); '/io.haveno.protobuffer.XmrConnections/StopCheckingConnections', request, metadata || {}, this.methodDescriptorStopCheckingConnections, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/StopCheckingConnections', request, metadata || {}, this.methodDescriptorStopCheckingConnections); '/io.haveno.protobuffer.XmrConnections/StopCheckingConnections', request, metadata || {}, this.methodDescriptorStopCheckingConnections);
} }
getBestAvailableConnection(request, metadata, callback) { getBestAvailableConnection(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/GetBestAvailableConnection', request, metadata || {}, this.methodDescriptorGetBestAvailableConnection, callback); '/io.haveno.protobuffer.XmrConnections/GetBestAvailableConnection', request, metadata || {}, this.methodDescriptorGetBestAvailableConnection, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/GetBestAvailableConnection', request, metadata || {}, this.methodDescriptorGetBestAvailableConnection); '/io.haveno.protobuffer.XmrConnections/GetBestAvailableConnection', request, metadata || {}, this.methodDescriptorGetBestAvailableConnection);
} }
setAutoSwitch(request, metadata, callback) { setAutoSwitch(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/SetAutoSwitch', request, metadata || {}, this.methodDescriptorSetAutoSwitch, callback); '/io.haveno.protobuffer.XmrConnections/SetAutoSwitch', request, metadata || {}, this.methodDescriptorSetAutoSwitch, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroConnections/SetAutoSwitch', request, metadata || {}, this.methodDescriptorSetAutoSwitch); '/io.haveno.protobuffer.XmrConnections/SetAutoSwitch', request, metadata || {}, this.methodDescriptorSetAutoSwitch);
} }
} }
exports.MoneroConnectionsClient = MoneroConnectionsClient; exports.XmrConnectionsClient = XmrConnectionsClient;
class MoneroNodeClient { class XmrNodeClient {
constructor(hostname, credentials, options) { constructor(hostname, credentials, options) {
this.methodDescriptorIsMoneroNodeOnline = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroNode/IsMoneroNodeOnline', grpcWeb.MethodType.UNARY, grpc_pb.IsMoneroNodeOnlineRequest, grpc_pb.IsMoneroNodeOnlineReply, (request) => { this.methodDescriptorIsXmrNodeOnline = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrNode/IsXmrNodeOnline', grpcWeb.MethodType.UNARY, grpc_pb.IsXmrNodeOnlineRequest, grpc_pb.IsXmrNodeOnlineReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.IsMoneroNodeOnlineReply.deserializeBinary); }, grpc_pb.IsXmrNodeOnlineReply.deserializeBinary);
this.methodDescriptorGetMoneroNodeSettings = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroNode/GetMoneroNodeSettings', grpcWeb.MethodType.UNARY, grpc_pb.GetMoneroNodeSettingsRequest, grpc_pb.GetMoneroNodeSettingsReply, (request) => { this.methodDescriptorGetXmrNodeSettings = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrNode/GetXmrNodeSettings', grpcWeb.MethodType.UNARY, grpc_pb.GetXmrNodeSettingsRequest, grpc_pb.GetXmrNodeSettingsReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.GetMoneroNodeSettingsReply.deserializeBinary); }, grpc_pb.GetXmrNodeSettingsReply.deserializeBinary);
this.methodDescriptorStartMoneroNode = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroNode/StartMoneroNode', grpcWeb.MethodType.UNARY, grpc_pb.StartMoneroNodeRequest, grpc_pb.StartMoneroNodeReply, (request) => { this.methodDescriptorStartXmrNode = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrNode/StartXmrNode', grpcWeb.MethodType.UNARY, grpc_pb.StartXmrNodeRequest, grpc_pb.StartXmrNodeReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.StartMoneroNodeReply.deserializeBinary); }, grpc_pb.StartXmrNodeReply.deserializeBinary);
this.methodDescriptorStopMoneroNode = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.MoneroNode/StopMoneroNode', grpcWeb.MethodType.UNARY, grpc_pb.StopMoneroNodeRequest, grpc_pb.StopMoneroNodeReply, (request) => { this.methodDescriptorStopXmrNode = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.XmrNode/StopXmrNode', grpcWeb.MethodType.UNARY, grpc_pb.StopXmrNodeRequest, grpc_pb.StopXmrNodeReply, (request) => {
return request.serializeBinary(); return request.serializeBinary();
}, grpc_pb.StopMoneroNodeReply.deserializeBinary); }, grpc_pb.StopXmrNodeReply.deserializeBinary);
if (!options) if (!options)
options = {}; options = {};
if (!credentials) if (!credentials)
@ -500,40 +500,40 @@ class MoneroNodeClient {
this.credentials_ = credentials; this.credentials_ = credentials;
this.options_ = options; this.options_ = options;
} }
isMoneroNodeOnline(request, metadata, callback) { isXmrNodeOnline(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroNode/IsMoneroNodeOnline', request, metadata || {}, this.methodDescriptorIsMoneroNodeOnline, callback); '/io.haveno.protobuffer.XmrNode/IsXmrNodeOnline', request, metadata || {}, this.methodDescriptorIsXmrNodeOnline, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroNode/IsMoneroNodeOnline', request, metadata || {}, this.methodDescriptorIsMoneroNodeOnline); '/io.haveno.protobuffer.XmrNode/IsXmrNodeOnline', request, metadata || {}, this.methodDescriptorIsXmrNodeOnline);
} }
getMoneroNodeSettings(request, metadata, callback) { getXmrNodeSettings(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroNode/GetMoneroNodeSettings', request, metadata || {}, this.methodDescriptorGetMoneroNodeSettings, callback); '/io.haveno.protobuffer.XmrNode/GetXmrNodeSettings', request, metadata || {}, this.methodDescriptorGetXmrNodeSettings, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroNode/GetMoneroNodeSettings', request, metadata || {}, this.methodDescriptorGetMoneroNodeSettings); '/io.haveno.protobuffer.XmrNode/GetXmrNodeSettings', request, metadata || {}, this.methodDescriptorGetXmrNodeSettings);
} }
startMoneroNode(request, metadata, callback) { startXmrNode(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroNode/StartMoneroNode', request, metadata || {}, this.methodDescriptorStartMoneroNode, callback); '/io.haveno.protobuffer.XmrNode/StartXmrNode', request, metadata || {}, this.methodDescriptorStartXmrNode, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroNode/StartMoneroNode', request, metadata || {}, this.methodDescriptorStartMoneroNode); '/io.haveno.protobuffer.XmrNode/StartXmrNode', request, metadata || {}, this.methodDescriptorStartXmrNode);
} }
stopMoneroNode(request, metadata, callback) { stopXmrNode(request, metadata, callback) {
if (callback !== undefined) { if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ + return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroNode/StopMoneroNode', request, metadata || {}, this.methodDescriptorStopMoneroNode, callback); '/io.haveno.protobuffer.XmrNode/StopXmrNode', request, metadata || {}, this.methodDescriptorStopXmrNode, callback);
} }
return this.client_.unaryCall(this.hostname_ + return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.MoneroNode/StopMoneroNode', request, metadata || {}, this.methodDescriptorStopMoneroNode); '/io.haveno.protobuffer.XmrNode/StopXmrNode', request, metadata || {}, this.methodDescriptorStopXmrNode);
} }
} }
exports.MoneroNodeClient = MoneroNodeClient; exports.XmrNodeClient = XmrNodeClient;
class OffersClient { class OffersClient {
constructor(hostname, credentials, options) { constructor(hostname, credentials, options) {
this.methodDescriptorGetOffer = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Offers/GetOffer', grpcWeb.MethodType.UNARY, grpc_pb.GetOfferRequest, grpc_pb.GetOfferReply, (request) => { this.methodDescriptorGetOffer = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Offers/GetOffer', grpcWeb.MethodType.UNARY, grpc_pb.GetOfferRequest, grpc_pb.GetOfferReply, (request) => {

File diff suppressed because one or more lines are too long

View file

@ -1183,130 +1183,130 @@ export namespace SetAutoSwitchReply {
} }
} }
export class IsMoneroNodeOnlineRequest extends jspb.Message { export class IsXmrNodeOnlineRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): IsMoneroNodeOnlineRequest.AsObject; toObject(includeInstance?: boolean): IsXmrNodeOnlineRequest.AsObject;
static toObject(includeInstance: boolean, msg: IsMoneroNodeOnlineRequest): IsMoneroNodeOnlineRequest.AsObject; static toObject(includeInstance: boolean, msg: IsXmrNodeOnlineRequest): IsXmrNodeOnlineRequest.AsObject;
static serializeBinaryToWriter(message: IsMoneroNodeOnlineRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: IsXmrNodeOnlineRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): IsMoneroNodeOnlineRequest; static deserializeBinary(bytes: Uint8Array): IsXmrNodeOnlineRequest;
static deserializeBinaryFromReader(message: IsMoneroNodeOnlineRequest, reader: jspb.BinaryReader): IsMoneroNodeOnlineRequest; static deserializeBinaryFromReader(message: IsXmrNodeOnlineRequest, reader: jspb.BinaryReader): IsXmrNodeOnlineRequest;
} }
export namespace IsMoneroNodeOnlineRequest { export namespace IsXmrNodeOnlineRequest {
export type AsObject = { export type AsObject = {
} }
} }
export class IsMoneroNodeOnlineReply extends jspb.Message { export class IsXmrNodeOnlineReply extends jspb.Message {
getIsRunning(): boolean; getIsRunning(): boolean;
setIsRunning(value: boolean): IsMoneroNodeOnlineReply; setIsRunning(value: boolean): IsXmrNodeOnlineReply;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): IsMoneroNodeOnlineReply.AsObject; toObject(includeInstance?: boolean): IsXmrNodeOnlineReply.AsObject;
static toObject(includeInstance: boolean, msg: IsMoneroNodeOnlineReply): IsMoneroNodeOnlineReply.AsObject; static toObject(includeInstance: boolean, msg: IsXmrNodeOnlineReply): IsXmrNodeOnlineReply.AsObject;
static serializeBinaryToWriter(message: IsMoneroNodeOnlineReply, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: IsXmrNodeOnlineReply, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): IsMoneroNodeOnlineReply; static deserializeBinary(bytes: Uint8Array): IsXmrNodeOnlineReply;
static deserializeBinaryFromReader(message: IsMoneroNodeOnlineReply, reader: jspb.BinaryReader): IsMoneroNodeOnlineReply; static deserializeBinaryFromReader(message: IsXmrNodeOnlineReply, reader: jspb.BinaryReader): IsXmrNodeOnlineReply;
} }
export namespace IsMoneroNodeOnlineReply { export namespace IsXmrNodeOnlineReply {
export type AsObject = { export type AsObject = {
isRunning: boolean, isRunning: boolean,
} }
} }
export class GetMoneroNodeSettingsRequest extends jspb.Message { export class GetXmrNodeSettingsRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMoneroNodeSettingsRequest.AsObject; toObject(includeInstance?: boolean): GetXmrNodeSettingsRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetMoneroNodeSettingsRequest): GetMoneroNodeSettingsRequest.AsObject; static toObject(includeInstance: boolean, msg: GetXmrNodeSettingsRequest): GetXmrNodeSettingsRequest.AsObject;
static serializeBinaryToWriter(message: GetMoneroNodeSettingsRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: GetXmrNodeSettingsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetMoneroNodeSettingsRequest; static deserializeBinary(bytes: Uint8Array): GetXmrNodeSettingsRequest;
static deserializeBinaryFromReader(message: GetMoneroNodeSettingsRequest, reader: jspb.BinaryReader): GetMoneroNodeSettingsRequest; static deserializeBinaryFromReader(message: GetXmrNodeSettingsRequest, reader: jspb.BinaryReader): GetXmrNodeSettingsRequest;
} }
export namespace GetMoneroNodeSettingsRequest { export namespace GetXmrNodeSettingsRequest {
export type AsObject = { export type AsObject = {
} }
} }
export class GetMoneroNodeSettingsReply extends jspb.Message { export class GetXmrNodeSettingsReply extends jspb.Message {
getSettings(): pb_pb.MoneroNodeSettings | undefined; getSettings(): pb_pb.XmrNodeSettings | undefined;
setSettings(value?: pb_pb.MoneroNodeSettings): GetMoneroNodeSettingsReply; setSettings(value?: pb_pb.XmrNodeSettings): GetXmrNodeSettingsReply;
hasSettings(): boolean; hasSettings(): boolean;
clearSettings(): GetMoneroNodeSettingsReply; clearSettings(): GetXmrNodeSettingsReply;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMoneroNodeSettingsReply.AsObject; toObject(includeInstance?: boolean): GetXmrNodeSettingsReply.AsObject;
static toObject(includeInstance: boolean, msg: GetMoneroNodeSettingsReply): GetMoneroNodeSettingsReply.AsObject; static toObject(includeInstance: boolean, msg: GetXmrNodeSettingsReply): GetXmrNodeSettingsReply.AsObject;
static serializeBinaryToWriter(message: GetMoneroNodeSettingsReply, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: GetXmrNodeSettingsReply, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetMoneroNodeSettingsReply; static deserializeBinary(bytes: Uint8Array): GetXmrNodeSettingsReply;
static deserializeBinaryFromReader(message: GetMoneroNodeSettingsReply, reader: jspb.BinaryReader): GetMoneroNodeSettingsReply; static deserializeBinaryFromReader(message: GetXmrNodeSettingsReply, reader: jspb.BinaryReader): GetXmrNodeSettingsReply;
} }
export namespace GetMoneroNodeSettingsReply { export namespace GetXmrNodeSettingsReply {
export type AsObject = { export type AsObject = {
settings?: pb_pb.MoneroNodeSettings.AsObject, settings?: pb_pb.XmrNodeSettings.AsObject,
} }
} }
export class StartMoneroNodeRequest extends jspb.Message { export class StartXmrNodeRequest extends jspb.Message {
getSettings(): pb_pb.MoneroNodeSettings | undefined; getSettings(): pb_pb.XmrNodeSettings | undefined;
setSettings(value?: pb_pb.MoneroNodeSettings): StartMoneroNodeRequest; setSettings(value?: pb_pb.XmrNodeSettings): StartXmrNodeRequest;
hasSettings(): boolean; hasSettings(): boolean;
clearSettings(): StartMoneroNodeRequest; clearSettings(): StartXmrNodeRequest;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StartMoneroNodeRequest.AsObject; toObject(includeInstance?: boolean): StartXmrNodeRequest.AsObject;
static toObject(includeInstance: boolean, msg: StartMoneroNodeRequest): StartMoneroNodeRequest.AsObject; static toObject(includeInstance: boolean, msg: StartXmrNodeRequest): StartXmrNodeRequest.AsObject;
static serializeBinaryToWriter(message: StartMoneroNodeRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: StartXmrNodeRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StartMoneroNodeRequest; static deserializeBinary(bytes: Uint8Array): StartXmrNodeRequest;
static deserializeBinaryFromReader(message: StartMoneroNodeRequest, reader: jspb.BinaryReader): StartMoneroNodeRequest; static deserializeBinaryFromReader(message: StartXmrNodeRequest, reader: jspb.BinaryReader): StartXmrNodeRequest;
} }
export namespace StartMoneroNodeRequest { export namespace StartXmrNodeRequest {
export type AsObject = { export type AsObject = {
settings?: pb_pb.MoneroNodeSettings.AsObject, settings?: pb_pb.XmrNodeSettings.AsObject,
} }
} }
export class StartMoneroNodeReply extends jspb.Message { export class StartXmrNodeReply extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StartMoneroNodeReply.AsObject; toObject(includeInstance?: boolean): StartXmrNodeReply.AsObject;
static toObject(includeInstance: boolean, msg: StartMoneroNodeReply): StartMoneroNodeReply.AsObject; static toObject(includeInstance: boolean, msg: StartXmrNodeReply): StartXmrNodeReply.AsObject;
static serializeBinaryToWriter(message: StartMoneroNodeReply, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: StartXmrNodeReply, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StartMoneroNodeReply; static deserializeBinary(bytes: Uint8Array): StartXmrNodeReply;
static deserializeBinaryFromReader(message: StartMoneroNodeReply, reader: jspb.BinaryReader): StartMoneroNodeReply; static deserializeBinaryFromReader(message: StartXmrNodeReply, reader: jspb.BinaryReader): StartXmrNodeReply;
} }
export namespace StartMoneroNodeReply { export namespace StartXmrNodeReply {
export type AsObject = { export type AsObject = {
} }
} }
export class StopMoneroNodeRequest extends jspb.Message { export class StopXmrNodeRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StopMoneroNodeRequest.AsObject; toObject(includeInstance?: boolean): StopXmrNodeRequest.AsObject;
static toObject(includeInstance: boolean, msg: StopMoneroNodeRequest): StopMoneroNodeRequest.AsObject; static toObject(includeInstance: boolean, msg: StopXmrNodeRequest): StopXmrNodeRequest.AsObject;
static serializeBinaryToWriter(message: StopMoneroNodeRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: StopXmrNodeRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StopMoneroNodeRequest; static deserializeBinary(bytes: Uint8Array): StopXmrNodeRequest;
static deserializeBinaryFromReader(message: StopMoneroNodeRequest, reader: jspb.BinaryReader): StopMoneroNodeRequest; static deserializeBinaryFromReader(message: StopXmrNodeRequest, reader: jspb.BinaryReader): StopXmrNodeRequest;
} }
export namespace StopMoneroNodeRequest { export namespace StopXmrNodeRequest {
export type AsObject = { export type AsObject = {
} }
} }
export class StopMoneroNodeReply extends jspb.Message { export class StopXmrNodeReply extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StopMoneroNodeReply.AsObject; toObject(includeInstance?: boolean): StopXmrNodeReply.AsObject;
static toObject(includeInstance: boolean, msg: StopMoneroNodeReply): StopMoneroNodeReply.AsObject; static toObject(includeInstance: boolean, msg: StopXmrNodeReply): StopXmrNodeReply.AsObject;
static serializeBinaryToWriter(message: StopMoneroNodeReply, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: StopXmrNodeReply, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StopMoneroNodeReply; static deserializeBinary(bytes: Uint8Array): StopXmrNodeReply;
static deserializeBinaryFromReader(message: StopMoneroNodeReply, reader: jspb.BinaryReader): StopMoneroNodeReply; static deserializeBinaryFromReader(message: StopXmrNodeReply, reader: jspb.BinaryReader): StopXmrNodeReply;
} }
export namespace StopMoneroNodeReply { export namespace StopXmrNodeReply {
export type AsObject = { export type AsObject = {
} }
} }

View file

@ -76,8 +76,6 @@ goog.exportSymbol('proto.io.haveno.protobuffer.GetFundingAddressesReply', null,
goog.exportSymbol('proto.io.haveno.protobuffer.GetFundingAddressesRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetFundingAddressesRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetMethodHelpReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetMethodHelpReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetMethodHelpRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetMethodHelpRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetMyOfferReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetMyOfferReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetMyOfferRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetMyOfferRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetMyOffersReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetMyOffersReply', null, global);
@ -105,6 +103,8 @@ goog.exportSymbol('proto.io.haveno.protobuffer.GetVersionReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetVersionRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetVersionRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrNewSubaddressReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrNewSubaddressReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrNewSubaddressRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrNewSubaddressRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrNodeSettingsReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrPrimaryAddressReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrPrimaryAddressReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrPrimaryAddressRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrPrimaryAddressRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrSeedReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.GetXmrSeedReply', null, global);
@ -115,8 +115,8 @@ goog.exportSymbol('proto.io.haveno.protobuffer.IsAccountOpenReply', null, global
goog.exportSymbol('proto.io.haveno.protobuffer.IsAccountOpenRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.IsAccountOpenRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.IsAppInitializedReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.IsAppInitializedReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.IsAppInitializedRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.IsAppInitializedRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.IsXmrNodeOnlineReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.LockWalletReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.LockWalletReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.LockWalletRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.LockWalletRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.MarketDepthInfo', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.MarketDepthInfo', null, global);
@ -164,14 +164,14 @@ goog.exportSymbol('proto.io.haveno.protobuffer.SetWalletPasswordReply', null, gl
goog.exportSymbol('proto.io.haveno.protobuffer.SetWalletPasswordRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.SetWalletPasswordRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StartCheckingConnectionsReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.StartCheckingConnectionsReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StartCheckingConnectionsRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.StartCheckingConnectionsRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StartMoneroNodeReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.StartXmrNodeReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StartMoneroNodeRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.StartXmrNodeRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StopCheckingConnectionsReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.StopCheckingConnectionsReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StopCheckingConnectionsRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.StopCheckingConnectionsRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StopMoneroNodeReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StopMoneroNodeRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StopReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.StopReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StopRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.StopRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StopXmrNodeReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.StopXmrNodeRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.TakeOfferReply', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.TakeOfferReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.TakeOfferRequest', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.TakeOfferRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.TradeInfo', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.TradeInfo', null, global);
@ -1566,16 +1566,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest = function(opt_data) { proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.displayName = 'proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest'; proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.displayName = 'proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -1587,16 +1587,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply = function(opt_data) { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.IsXmrNodeOnlineReply, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.displayName = 'proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply'; proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.displayName = 'proto.io.haveno.protobuffer.IsXmrNodeOnlineReply';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -1608,16 +1608,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest = function(opt_data) { proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.displayName = 'proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest'; proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.displayName = 'proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -1629,16 +1629,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply = function(opt_data) { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.GetXmrNodeSettingsReply, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.displayName = 'proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply'; proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.displayName = 'proto.io.haveno.protobuffer.GetXmrNodeSettingsReply';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -1650,16 +1650,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest = function(opt_data) { proto.io.haveno.protobuffer.StartXmrNodeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.StartMoneroNodeRequest, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.StartXmrNodeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.displayName = 'proto.io.haveno.protobuffer.StartMoneroNodeRequest'; proto.io.haveno.protobuffer.StartXmrNodeRequest.displayName = 'proto.io.haveno.protobuffer.StartXmrNodeRequest';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -1671,16 +1671,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeReply = function(opt_data) { proto.io.haveno.protobuffer.StartXmrNodeReply = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.StartMoneroNodeReply, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.StartXmrNodeReply, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeReply.displayName = 'proto.io.haveno.protobuffer.StartMoneroNodeReply'; proto.io.haveno.protobuffer.StartXmrNodeReply.displayName = 'proto.io.haveno.protobuffer.StartXmrNodeReply';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -1692,16 +1692,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeRequest = function(opt_data) { proto.io.haveno.protobuffer.StopXmrNodeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.StopMoneroNodeRequest, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.StopXmrNodeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeRequest.displayName = 'proto.io.haveno.protobuffer.StopMoneroNodeRequest'; proto.io.haveno.protobuffer.StopXmrNodeRequest.displayName = 'proto.io.haveno.protobuffer.StopXmrNodeRequest';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -1713,16 +1713,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeReply = function(opt_data) { proto.io.haveno.protobuffer.StopXmrNodeReply = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.StopMoneroNodeReply, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.StopXmrNodeReply, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeReply.displayName = 'proto.io.haveno.protobuffer.StopMoneroNodeReply'; proto.io.haveno.protobuffer.StopXmrNodeReply.displayName = 'proto.io.haveno.protobuffer.StopXmrNodeReply';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -12346,8 +12346,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.toObject(opt_includeInstance, this);
}; };
@ -12356,11 +12356,11 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.prototype.toObject = funct
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
}; };
@ -12376,23 +12376,23 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.toObject = function(includ
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest} * @return {!proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest; var msg = new proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest;
return proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest} * @return {!proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -12412,9 +12412,9 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.deserializeBinaryFromReade
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -12422,11 +12422,11 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.prototype.serializeBinary
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest} message * @param {!proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineRequest.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.IsXmrNodeOnlineRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
}; };
@ -12447,8 +12447,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.toObject(opt_includeInstance, this);
}; };
@ -12457,11 +12457,11 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.prototype.toObject = functio
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.IsXmrNodeOnlineReply} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
isRunning: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) isRunning: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
}; };
@ -12477,23 +12477,23 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.toObject = function(includeI
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply} * @return {!proto.io.haveno.protobuffer.IsXmrNodeOnlineReply}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply; var msg = new proto.io.haveno.protobuffer.IsXmrNodeOnlineReply;
return proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.IsXmrNodeOnlineReply} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply} * @return {!proto.io.haveno.protobuffer.IsXmrNodeOnlineReply}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -12517,9 +12517,9 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.deserializeBinaryFromReader
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -12527,11 +12527,11 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.prototype.serializeBinary =
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply} message * @param {!proto.io.haveno.protobuffer.IsXmrNodeOnlineReply} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
f = message.getIsRunning(); f = message.getIsRunning();
if (f) { if (f) {
@ -12547,16 +12547,16 @@ proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.serializeBinaryToWriter = fu
* optional bool is_running = 1; * optional bool is_running = 1;
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.prototype.getIsRunning = function() { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.prototype.getIsRunning = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
}; };
/** /**
* @param {boolean} value * @param {boolean} value
* @return {!proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply} returns this * @return {!proto.io.haveno.protobuffer.IsXmrNodeOnlineReply} returns this
*/ */
proto.io.haveno.protobuffer.IsMoneroNodeOnlineReply.prototype.setIsRunning = function(value) { proto.io.haveno.protobuffer.IsXmrNodeOnlineReply.prototype.setIsRunning = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value); return jspb.Message.setProto3BooleanField(this, 1, value);
}; };
@ -12577,8 +12577,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.toObject(opt_includeInstance, this);
}; };
@ -12587,11 +12587,11 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.prototype.toObject = fu
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
}; };
@ -12607,23 +12607,23 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.toObject = function(inc
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest} * @return {!proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest; var msg = new proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest;
return proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest} * @return {!proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -12643,9 +12643,9 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.deserializeBinaryFromRe
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -12653,11 +12653,11 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.prototype.serializeBina
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest} message * @param {!proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsRequest.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.GetXmrNodeSettingsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
}; };
@ -12678,8 +12678,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.toObject(opt_includeInstance, this);
}; };
@ -12688,13 +12688,13 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.toObject = func
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.GetXmrNodeSettingsReply} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
settings: (f = msg.getSettings()) && pb_pb.MoneroNodeSettings.toObject(includeInstance, f) settings: (f = msg.getSettings()) && pb_pb.XmrNodeSettings.toObject(includeInstance, f)
}; };
if (includeInstance) { if (includeInstance) {
@ -12708,23 +12708,23 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.toObject = function(inclu
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply} * @return {!proto.io.haveno.protobuffer.GetXmrNodeSettingsReply}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply; var msg = new proto.io.haveno.protobuffer.GetXmrNodeSettingsReply;
return proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.GetXmrNodeSettingsReply} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply} * @return {!proto.io.haveno.protobuffer.GetXmrNodeSettingsReply}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -12732,8 +12732,8 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.deserializeBinaryFromRead
var field = reader.getFieldNumber(); var field = reader.getFieldNumber();
switch (field) { switch (field) {
case 1: case 1:
var value = new pb_pb.MoneroNodeSettings; var value = new pb_pb.XmrNodeSettings;
reader.readMessage(value,pb_pb.MoneroNodeSettings.deserializeBinaryFromReader); reader.readMessage(value,pb_pb.XmrNodeSettings.deserializeBinaryFromReader);
msg.setSettings(value); msg.setSettings(value);
break; break;
default: default:
@ -12749,9 +12749,9 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.deserializeBinaryFromRead
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -12759,47 +12759,47 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.serializeBinary
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply} message * @param {!proto.io.haveno.protobuffer.GetXmrNodeSettingsReply} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
f = message.getSettings(); f = message.getSettings();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
1, 1,
f, f,
pb_pb.MoneroNodeSettings.serializeBinaryToWriter pb_pb.XmrNodeSettings.serializeBinaryToWriter
); );
} }
}; };
/** /**
* optional MoneroNodeSettings settings = 1; * optional XmrNodeSettings settings = 1;
* @return {?proto.io.haveno.protobuffer.MoneroNodeSettings} * @return {?proto.io.haveno.protobuffer.XmrNodeSettings}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.getSettings = function() { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.prototype.getSettings = function() {
return /** @type{?proto.io.haveno.protobuffer.MoneroNodeSettings} */ ( return /** @type{?proto.io.haveno.protobuffer.XmrNodeSettings} */ (
jspb.Message.getWrapperField(this, pb_pb.MoneroNodeSettings, 1)); jspb.Message.getWrapperField(this, pb_pb.XmrNodeSettings, 1));
}; };
/** /**
* @param {?proto.io.haveno.protobuffer.MoneroNodeSettings|undefined} value * @param {?proto.io.haveno.protobuffer.XmrNodeSettings|undefined} value
* @return {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply} returns this * @return {!proto.io.haveno.protobuffer.GetXmrNodeSettingsReply} returns this
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.setSettings = function(value) { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.prototype.setSettings = function(value) {
return jspb.Message.setWrapperField(this, 1, value); return jspb.Message.setWrapperField(this, 1, value);
}; };
/** /**
* Clears the message field making it undefined. * Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply} returns this * @return {!proto.io.haveno.protobuffer.GetXmrNodeSettingsReply} returns this
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.clearSettings = function() { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.prototype.clearSettings = function() {
return this.setSettings(undefined); return this.setSettings(undefined);
}; };
@ -12808,7 +12808,7 @@ proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.clearSettings =
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.GetMoneroNodeSettingsReply.prototype.hasSettings = function() { proto.io.haveno.protobuffer.GetXmrNodeSettingsReply.prototype.hasSettings = function() {
return jspb.Message.getField(this, 1) != null; return jspb.Message.getField(this, 1) != null;
}; };
@ -12829,8 +12829,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.StartXmrNodeRequest.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.StartMoneroNodeRequest.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.StartXmrNodeRequest.toObject(opt_includeInstance, this);
}; };
@ -12839,13 +12839,13 @@ proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.toObject = function
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.StartMoneroNodeRequest} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.StartXmrNodeRequest} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.StartXmrNodeRequest.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
settings: (f = msg.getSettings()) && pb_pb.MoneroNodeSettings.toObject(includeInstance, f) settings: (f = msg.getSettings()) && pb_pb.XmrNodeSettings.toObject(includeInstance, f)
}; };
if (includeInstance) { if (includeInstance) {
@ -12859,23 +12859,23 @@ proto.io.haveno.protobuffer.StartMoneroNodeRequest.toObject = function(includeIn
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.StartMoneroNodeRequest} * @return {!proto.io.haveno.protobuffer.StartXmrNodeRequest}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.StartXmrNodeRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.StartMoneroNodeRequest; var msg = new proto.io.haveno.protobuffer.StartXmrNodeRequest;
return proto.io.haveno.protobuffer.StartMoneroNodeRequest.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.StartXmrNodeRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.StartMoneroNodeRequest} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.StartXmrNodeRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.StartMoneroNodeRequest} * @return {!proto.io.haveno.protobuffer.StartXmrNodeRequest}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.StartXmrNodeRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -12883,8 +12883,8 @@ proto.io.haveno.protobuffer.StartMoneroNodeRequest.deserializeBinaryFromReader =
var field = reader.getFieldNumber(); var field = reader.getFieldNumber();
switch (field) { switch (field) {
case 1: case 1:
var value = new pb_pb.MoneroNodeSettings; var value = new pb_pb.XmrNodeSettings;
reader.readMessage(value,pb_pb.MoneroNodeSettings.deserializeBinaryFromReader); reader.readMessage(value,pb_pb.XmrNodeSettings.deserializeBinaryFromReader);
msg.setSettings(value); msg.setSettings(value);
break; break;
default: default:
@ -12900,9 +12900,9 @@ proto.io.haveno.protobuffer.StartMoneroNodeRequest.deserializeBinaryFromReader =
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.StartXmrNodeRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.StartMoneroNodeRequest.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.StartXmrNodeRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -12910,47 +12910,47 @@ proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.serializeBinary = f
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.StartMoneroNodeRequest} message * @param {!proto.io.haveno.protobuffer.StartXmrNodeRequest} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.StartXmrNodeRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
f = message.getSettings(); f = message.getSettings();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
1, 1,
f, f,
pb_pb.MoneroNodeSettings.serializeBinaryToWriter pb_pb.XmrNodeSettings.serializeBinaryToWriter
); );
} }
}; };
/** /**
* optional MoneroNodeSettings settings = 1; * optional XmrNodeSettings settings = 1;
* @return {?proto.io.haveno.protobuffer.MoneroNodeSettings} * @return {?proto.io.haveno.protobuffer.XmrNodeSettings}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.getSettings = function() { proto.io.haveno.protobuffer.StartXmrNodeRequest.prototype.getSettings = function() {
return /** @type{?proto.io.haveno.protobuffer.MoneroNodeSettings} */ ( return /** @type{?proto.io.haveno.protobuffer.XmrNodeSettings} */ (
jspb.Message.getWrapperField(this, pb_pb.MoneroNodeSettings, 1)); jspb.Message.getWrapperField(this, pb_pb.XmrNodeSettings, 1));
}; };
/** /**
* @param {?proto.io.haveno.protobuffer.MoneroNodeSettings|undefined} value * @param {?proto.io.haveno.protobuffer.XmrNodeSettings|undefined} value
* @return {!proto.io.haveno.protobuffer.StartMoneroNodeRequest} returns this * @return {!proto.io.haveno.protobuffer.StartXmrNodeRequest} returns this
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.setSettings = function(value) { proto.io.haveno.protobuffer.StartXmrNodeRequest.prototype.setSettings = function(value) {
return jspb.Message.setWrapperField(this, 1, value); return jspb.Message.setWrapperField(this, 1, value);
}; };
/** /**
* Clears the message field making it undefined. * Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.StartMoneroNodeRequest} returns this * @return {!proto.io.haveno.protobuffer.StartXmrNodeRequest} returns this
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.clearSettings = function() { proto.io.haveno.protobuffer.StartXmrNodeRequest.prototype.clearSettings = function() {
return this.setSettings(undefined); return this.setSettings(undefined);
}; };
@ -12959,7 +12959,7 @@ proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.clearSettings = fun
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeRequest.prototype.hasSettings = function() { proto.io.haveno.protobuffer.StartXmrNodeRequest.prototype.hasSettings = function() {
return jspb.Message.getField(this, 1) != null; return jspb.Message.getField(this, 1) != null;
}; };
@ -12980,8 +12980,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeReply.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.StartXmrNodeReply.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.StartMoneroNodeReply.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.StartXmrNodeReply.toObject(opt_includeInstance, this);
}; };
@ -12990,11 +12990,11 @@ proto.io.haveno.protobuffer.StartMoneroNodeReply.prototype.toObject = function(o
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.StartMoneroNodeReply} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.StartXmrNodeReply} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeReply.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.StartXmrNodeReply.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
}; };
@ -13010,23 +13010,23 @@ proto.io.haveno.protobuffer.StartMoneroNodeReply.toObject = function(includeInst
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.StartMoneroNodeReply} * @return {!proto.io.haveno.protobuffer.StartXmrNodeReply}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeReply.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.StartXmrNodeReply.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.StartMoneroNodeReply; var msg = new proto.io.haveno.protobuffer.StartXmrNodeReply;
return proto.io.haveno.protobuffer.StartMoneroNodeReply.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.StartXmrNodeReply.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.StartMoneroNodeReply} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.StartXmrNodeReply} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.StartMoneroNodeReply} * @return {!proto.io.haveno.protobuffer.StartXmrNodeReply}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeReply.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.StartXmrNodeReply.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -13046,9 +13046,9 @@ proto.io.haveno.protobuffer.StartMoneroNodeReply.deserializeBinaryFromReader = f
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeReply.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.StartXmrNodeReply.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.StartMoneroNodeReply.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.StartXmrNodeReply.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -13056,11 +13056,11 @@ proto.io.haveno.protobuffer.StartMoneroNodeReply.prototype.serializeBinary = fun
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.StartMoneroNodeReply} message * @param {!proto.io.haveno.protobuffer.StartXmrNodeReply} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.StartMoneroNodeReply.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.StartXmrNodeReply.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
}; };
@ -13081,8 +13081,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeRequest.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.StopXmrNodeRequest.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.StopMoneroNodeRequest.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.StopXmrNodeRequest.toObject(opt_includeInstance, this);
}; };
@ -13091,11 +13091,11 @@ proto.io.haveno.protobuffer.StopMoneroNodeRequest.prototype.toObject = function(
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.StopMoneroNodeRequest} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.StopXmrNodeRequest} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeRequest.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.StopXmrNodeRequest.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
}; };
@ -13111,23 +13111,23 @@ proto.io.haveno.protobuffer.StopMoneroNodeRequest.toObject = function(includeIns
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.StopMoneroNodeRequest} * @return {!proto.io.haveno.protobuffer.StopXmrNodeRequest}
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeRequest.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.StopXmrNodeRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.StopMoneroNodeRequest; var msg = new proto.io.haveno.protobuffer.StopXmrNodeRequest;
return proto.io.haveno.protobuffer.StopMoneroNodeRequest.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.StopXmrNodeRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.StopMoneroNodeRequest} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.StopXmrNodeRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.StopMoneroNodeRequest} * @return {!proto.io.haveno.protobuffer.StopXmrNodeRequest}
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeRequest.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.StopXmrNodeRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -13147,9 +13147,9 @@ proto.io.haveno.protobuffer.StopMoneroNodeRequest.deserializeBinaryFromReader =
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeRequest.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.StopXmrNodeRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.StopMoneroNodeRequest.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.StopXmrNodeRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -13157,11 +13157,11 @@ proto.io.haveno.protobuffer.StopMoneroNodeRequest.prototype.serializeBinary = fu
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.StopMoneroNodeRequest} message * @param {!proto.io.haveno.protobuffer.StopXmrNodeRequest} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeRequest.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.StopXmrNodeRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
}; };
@ -13182,8 +13182,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeReply.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.StopXmrNodeReply.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.StopMoneroNodeReply.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.StopXmrNodeReply.toObject(opt_includeInstance, this);
}; };
@ -13192,11 +13192,11 @@ proto.io.haveno.protobuffer.StopMoneroNodeReply.prototype.toObject = function(op
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.StopMoneroNodeReply} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.StopXmrNodeReply} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeReply.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.StopXmrNodeReply.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
}; };
@ -13212,23 +13212,23 @@ proto.io.haveno.protobuffer.StopMoneroNodeReply.toObject = function(includeInsta
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.StopMoneroNodeReply} * @return {!proto.io.haveno.protobuffer.StopXmrNodeReply}
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeReply.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.StopXmrNodeReply.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.StopMoneroNodeReply; var msg = new proto.io.haveno.protobuffer.StopXmrNodeReply;
return proto.io.haveno.protobuffer.StopMoneroNodeReply.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.StopXmrNodeReply.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.StopMoneroNodeReply} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.StopXmrNodeReply} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.StopMoneroNodeReply} * @return {!proto.io.haveno.protobuffer.StopXmrNodeReply}
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeReply.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.StopXmrNodeReply.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -13248,9 +13248,9 @@ proto.io.haveno.protobuffer.StopMoneroNodeReply.deserializeBinaryFromReader = fu
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeReply.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.StopXmrNodeReply.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.StopMoneroNodeReply.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.StopXmrNodeReply.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -13258,11 +13258,11 @@ proto.io.haveno.protobuffer.StopMoneroNodeReply.prototype.serializeBinary = func
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.StopMoneroNodeReply} message * @param {!proto.io.haveno.protobuffer.StopXmrNodeReply} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.StopMoneroNodeReply.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.StopXmrNodeReply.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
}; };

File diff suppressed because one or more lines are too long

View file

@ -6379,21 +6379,6 @@ export class ProcessModel extends jspb.Message {
getMultisigAddress(): string; getMultisigAddress(): string;
setMultisigAddress(value: string): ProcessModel; setMultisigAddress(value: string): ProcessModel;
getPaymentSentMessage(): PaymentSentMessage | undefined;
setPaymentSentMessage(value?: PaymentSentMessage): ProcessModel;
hasPaymentSentMessage(): boolean;
clearPaymentSentMessage(): ProcessModel;
getPaymentReceivedMessage(): PaymentReceivedMessage | undefined;
setPaymentReceivedMessage(value?: PaymentReceivedMessage): ProcessModel;
hasPaymentReceivedMessage(): boolean;
clearPaymentReceivedMessage(): ProcessModel;
getDisputeClosedMessage(): DisputeClosedMessage | undefined;
setDisputeClosedMessage(value?: DisputeClosedMessage): ProcessModel;
hasDisputeClosedMessage(): boolean;
clearDisputeClosedMessage(): ProcessModel;
getMediatedPayoutTxSignature(): Uint8Array | string; getMediatedPayoutTxSignature(): Uint8Array | string;
getMediatedPayoutTxSignature_asU8(): Uint8Array; getMediatedPayoutTxSignature_asU8(): Uint8Array;
getMediatedPayoutTxSignature_asB64(): string; getMediatedPayoutTxSignature_asB64(): string;
@ -6428,9 +6413,6 @@ export namespace ProcessModel {
arbitrator?: TradePeer.AsObject, arbitrator?: TradePeer.AsObject,
tempTradePeerNodeAddress?: NodeAddress.AsObject, tempTradePeerNodeAddress?: NodeAddress.AsObject,
multisigAddress: string, multisigAddress: string,
paymentSentMessage?: PaymentSentMessage.AsObject,
paymentReceivedMessage?: PaymentReceivedMessage.AsObject,
disputeClosedMessage?: DisputeClosedMessage.AsObject,
mediatedPayoutTxSignature: Uint8Array | string, mediatedPayoutTxSignature: Uint8Array | string,
buyerPayoutAmountFromMediation: number, buyerPayoutAmountFromMediation: number,
sellerPayoutAmountFromMediation: number, sellerPayoutAmountFromMediation: number,
@ -6511,6 +6493,21 @@ export class TradePeer extends jspb.Message {
getMediatedPayoutTxSignature_asB64(): string; getMediatedPayoutTxSignature_asB64(): string;
setMediatedPayoutTxSignature(value: Uint8Array | string): TradePeer; setMediatedPayoutTxSignature(value: Uint8Array | string): TradePeer;
getPaymentSentMessage(): PaymentSentMessage | undefined;
setPaymentSentMessage(value?: PaymentSentMessage): TradePeer;
hasPaymentSentMessage(): boolean;
clearPaymentSentMessage(): TradePeer;
getPaymentReceivedMessage(): PaymentReceivedMessage | undefined;
setPaymentReceivedMessage(value?: PaymentReceivedMessage): TradePeer;
hasPaymentReceivedMessage(): boolean;
clearPaymentReceivedMessage(): TradePeer;
getDisputeClosedMessage(): DisputeClosedMessage | undefined;
setDisputeClosedMessage(value?: DisputeClosedMessage): TradePeer;
hasDisputeClosedMessage(): boolean;
clearDisputeClosedMessage(): TradePeer;
getReserveTxHash(): string; getReserveTxHash(): string;
setReserveTxHash(value: string): TradePeer; setReserveTxHash(value: string): TradePeer;
@ -6582,6 +6579,9 @@ export namespace TradePeer {
accountAgeWitness?: AccountAgeWitness.AsObject, accountAgeWitness?: AccountAgeWitness.AsObject,
currentDate: number, currentDate: number,
mediatedPayoutTxSignature: Uint8Array | string, mediatedPayoutTxSignature: Uint8Array | string,
paymentSentMessage?: PaymentSentMessage.AsObject,
paymentReceivedMessage?: PaymentReceivedMessage.AsObject,
disputeClosedMessage?: DisputeClosedMessage.AsObject,
reserveTxHash: string, reserveTxHash: string,
reserveTxHex: string, reserveTxHex: string,
reserveTxKey: string, reserveTxKey: string,
@ -6927,10 +6927,10 @@ export class PreferencesPayload extends jspb.Message {
getNotifyOnPreRelease(): boolean; getNotifyOnPreRelease(): boolean;
setNotifyOnPreRelease(value: boolean): PreferencesPayload; setNotifyOnPreRelease(value: boolean): PreferencesPayload;
getMoneroNodeSettings(): MoneroNodeSettings | undefined; getXmrNodeSettings(): XmrNodeSettings | undefined;
setMoneroNodeSettings(value?: MoneroNodeSettings): PreferencesPayload; setXmrNodeSettings(value?: XmrNodeSettings): PreferencesPayload;
hasMoneroNodeSettings(): boolean; hasXmrNodeSettings(): boolean;
clearMoneroNodeSettings(): PreferencesPayload; clearXmrNodeSettings(): PreferencesPayload;
getClearDataAfterDays(): number; getClearDataAfterDays(): number;
setClearDataAfterDays(value: number): PreferencesPayload; setClearDataAfterDays(value: number): PreferencesPayload;
@ -7011,7 +7011,7 @@ export namespace PreferencesPayload {
showOffersMatchingMyAccounts: boolean, showOffersMatchingMyAccounts: boolean,
denyApiTaker: boolean, denyApiTaker: boolean,
notifyOnPreRelease: boolean, notifyOnPreRelease: boolean,
moneroNodeSettings?: MoneroNodeSettings.AsObject, xmrNodeSettings?: XmrNodeSettings.AsObject,
clearDataAfterDays: number, clearDataAfterDays: number,
buyScreenCryptoCurrencyCode: string, buyScreenCryptoCurrencyCode: string,
sellScreenCryptoCurrencyCode: string, sellScreenCryptoCurrencyCode: string,
@ -7055,27 +7055,27 @@ export namespace AutoConfirmSettings {
} }
} }
export class MoneroNodeSettings extends jspb.Message { export class XmrNodeSettings extends jspb.Message {
getBlockchainPath(): string; getBlockchainPath(): string;
setBlockchainPath(value: string): MoneroNodeSettings; setBlockchainPath(value: string): XmrNodeSettings;
getBootstrapUrl(): string; getBootstrapUrl(): string;
setBootstrapUrl(value: string): MoneroNodeSettings; setBootstrapUrl(value: string): XmrNodeSettings;
getStartupFlagsList(): Array<string>; getStartupFlagsList(): Array<string>;
setStartupFlagsList(value: Array<string>): MoneroNodeSettings; setStartupFlagsList(value: Array<string>): XmrNodeSettings;
clearStartupFlagsList(): MoneroNodeSettings; clearStartupFlagsList(): XmrNodeSettings;
addStartupFlags(value: string, index?: number): MoneroNodeSettings; addStartupFlags(value: string, index?: number): XmrNodeSettings;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MoneroNodeSettings.AsObject; toObject(includeInstance?: boolean): XmrNodeSettings.AsObject;
static toObject(includeInstance: boolean, msg: MoneroNodeSettings): MoneroNodeSettings.AsObject; static toObject(includeInstance: boolean, msg: XmrNodeSettings): XmrNodeSettings.AsObject;
static serializeBinaryToWriter(message: MoneroNodeSettings, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: XmrNodeSettings, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): MoneroNodeSettings; static deserializeBinary(bytes: Uint8Array): XmrNodeSettings;
static deserializeBinaryFromReader(message: MoneroNodeSettings, reader: jspb.BinaryReader): MoneroNodeSettings; static deserializeBinaryFromReader(message: XmrNodeSettings, reader: jspb.BinaryReader): XmrNodeSettings;
} }
export namespace MoneroNodeSettings { export namespace XmrNodeSettings {
export type AsObject = { export type AsObject = {
blockchainPath: string, blockchainPath: string,
bootstrapUrl: string, bootstrapUrl: string,

406
dist/protobuf/pb_pb.js vendored
View file

@ -105,7 +105,6 @@ goog.exportSymbol('proto.io.haveno.protobuffer.MediationResultState', null, glob
goog.exportSymbol('proto.io.haveno.protobuffer.Mediator', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.Mediator', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.MockMailboxPayload', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.MockMailboxPayload', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.MockPayload', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.MockPayload', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.MoneroNodeSettings', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.MoneseAccountPayload', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.MoneseAccountPayload', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.MoneyBeamAccountPayload', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.MoneyBeamAccountPayload', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.MoneyGramAccountPayload', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.MoneyGramAccountPayload', null, global);
@ -231,6 +230,7 @@ goog.exportSymbol('proto.io.haveno.protobuffer.WesternUnionAccountPayload', null
goog.exportSymbol('proto.io.haveno.protobuffer.XmrAddressEntry', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.XmrAddressEntry', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.XmrAddressEntry.Context', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.XmrAddressEntry.Context', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.XmrAddressEntryList', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.XmrAddressEntryList', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.XmrNodeSettings', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.ZelleAccountPayload', null, global); goog.exportSymbol('proto.io.haveno.protobuffer.ZelleAccountPayload', null, global);
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -3749,16 +3749,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings = function(opt_data) { proto.io.haveno.protobuffer.XmrNodeSettings = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.haveno.protobuffer.MoneroNodeSettings.repeatedFields_, null); jspb.Message.initialize(this, opt_data, 0, -1, proto.io.haveno.protobuffer.XmrNodeSettings.repeatedFields_, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.MoneroNodeSettings, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.XmrNodeSettings, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.displayName = 'proto.io.haveno.protobuffer.MoneroNodeSettings'; proto.io.haveno.protobuffer.XmrNodeSettings.displayName = 'proto.io.haveno.protobuffer.XmrNodeSettings';
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -51200,9 +51200,6 @@ proto.io.haveno.protobuffer.ProcessModel.toObject = function(includeInstance, ms
arbitrator: (f = msg.getArbitrator()) && proto.io.haveno.protobuffer.TradePeer.toObject(includeInstance, f), arbitrator: (f = msg.getArbitrator()) && proto.io.haveno.protobuffer.TradePeer.toObject(includeInstance, f),
tempTradePeerNodeAddress: (f = msg.getTempTradePeerNodeAddress()) && proto.io.haveno.protobuffer.NodeAddress.toObject(includeInstance, f), tempTradePeerNodeAddress: (f = msg.getTempTradePeerNodeAddress()) && proto.io.haveno.protobuffer.NodeAddress.toObject(includeInstance, f),
multisigAddress: jspb.Message.getFieldWithDefault(msg, 13, ""), multisigAddress: jspb.Message.getFieldWithDefault(msg, 13, ""),
paymentSentMessage: (f = msg.getPaymentSentMessage()) && proto.io.haveno.protobuffer.PaymentSentMessage.toObject(includeInstance, f),
paymentReceivedMessage: (f = msg.getPaymentReceivedMessage()) && proto.io.haveno.protobuffer.PaymentReceivedMessage.toObject(includeInstance, f),
disputeClosedMessage: (f = msg.getDisputeClosedMessage()) && proto.io.haveno.protobuffer.DisputeClosedMessage.toObject(includeInstance, f),
mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(), mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(),
buyerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 18, 0), buyerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 18, 0),
sellerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 19, 0) sellerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 19, 0)
@ -51299,21 +51296,6 @@ proto.io.haveno.protobuffer.ProcessModel.deserializeBinaryFromReader = function(
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setMultisigAddress(value); msg.setMultisigAddress(value);
break; break;
case 14:
var value = new proto.io.haveno.protobuffer.PaymentSentMessage;
reader.readMessage(value,proto.io.haveno.protobuffer.PaymentSentMessage.deserializeBinaryFromReader);
msg.setPaymentSentMessage(value);
break;
case 15:
var value = new proto.io.haveno.protobuffer.PaymentReceivedMessage;
reader.readMessage(value,proto.io.haveno.protobuffer.PaymentReceivedMessage.deserializeBinaryFromReader);
msg.setPaymentReceivedMessage(value);
break;
case 16:
var value = new proto.io.haveno.protobuffer.DisputeClosedMessage;
reader.readMessage(value,proto.io.haveno.protobuffer.DisputeClosedMessage.deserializeBinaryFromReader);
msg.setDisputeClosedMessage(value);
break;
case 17: case 17:
var value = /** @type {!Uint8Array} */ (reader.readBytes()); var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setMediatedPayoutTxSignature(value); msg.setMediatedPayoutTxSignature(value);
@ -51451,30 +51433,6 @@ proto.io.haveno.protobuffer.ProcessModel.serializeBinaryToWriter = function(mess
f f
); );
} }
f = message.getPaymentSentMessage();
if (f != null) {
writer.writeMessage(
14,
f,
proto.io.haveno.protobuffer.PaymentSentMessage.serializeBinaryToWriter
);
}
f = message.getPaymentReceivedMessage();
if (f != null) {
writer.writeMessage(
15,
f,
proto.io.haveno.protobuffer.PaymentReceivedMessage.serializeBinaryToWriter
);
}
f = message.getDisputeClosedMessage();
if (f != null) {
writer.writeMessage(
16,
f,
proto.io.haveno.protobuffer.DisputeClosedMessage.serializeBinaryToWriter
);
}
f = message.getMediatedPayoutTxSignature_asU8(); f = message.getMediatedPayoutTxSignature_asU8();
if (f.length > 0) { if (f.length > 0) {
writer.writeBytes( writer.writeBytes(
@ -51876,117 +51834,6 @@ proto.io.haveno.protobuffer.ProcessModel.prototype.setMultisigAddress = function
}; };
/**
* optional PaymentSentMessage payment_sent_message = 14;
* @return {?proto.io.haveno.protobuffer.PaymentSentMessage}
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.getPaymentSentMessage = function() {
return /** @type{?proto.io.haveno.protobuffer.PaymentSentMessage} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.PaymentSentMessage, 14));
};
/**
* @param {?proto.io.haveno.protobuffer.PaymentSentMessage|undefined} value
* @return {!proto.io.haveno.protobuffer.ProcessModel} returns this
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.setPaymentSentMessage = function(value) {
return jspb.Message.setWrapperField(this, 14, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.ProcessModel} returns this
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.clearPaymentSentMessage = function() {
return this.setPaymentSentMessage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.hasPaymentSentMessage = function() {
return jspb.Message.getField(this, 14) != null;
};
/**
* optional PaymentReceivedMessage payment_received_message = 15;
* @return {?proto.io.haveno.protobuffer.PaymentReceivedMessage}
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.getPaymentReceivedMessage = function() {
return /** @type{?proto.io.haveno.protobuffer.PaymentReceivedMessage} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.PaymentReceivedMessage, 15));
};
/**
* @param {?proto.io.haveno.protobuffer.PaymentReceivedMessage|undefined} value
* @return {!proto.io.haveno.protobuffer.ProcessModel} returns this
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.setPaymentReceivedMessage = function(value) {
return jspb.Message.setWrapperField(this, 15, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.ProcessModel} returns this
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.clearPaymentReceivedMessage = function() {
return this.setPaymentReceivedMessage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.hasPaymentReceivedMessage = function() {
return jspb.Message.getField(this, 15) != null;
};
/**
* optional DisputeClosedMessage dispute_closed_message = 16;
* @return {?proto.io.haveno.protobuffer.DisputeClosedMessage}
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.getDisputeClosedMessage = function() {
return /** @type{?proto.io.haveno.protobuffer.DisputeClosedMessage} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.DisputeClosedMessage, 16));
};
/**
* @param {?proto.io.haveno.protobuffer.DisputeClosedMessage|undefined} value
* @return {!proto.io.haveno.protobuffer.ProcessModel} returns this
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.setDisputeClosedMessage = function(value) {
return jspb.Message.setWrapperField(this, 16, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.ProcessModel} returns this
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.clearDisputeClosedMessage = function() {
return this.setDisputeClosedMessage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.hasDisputeClosedMessage = function() {
return jspb.Message.getField(this, 16) != null;
};
/** /**
* optional bytes mediated_payout_tx_signature = 17; * optional bytes mediated_payout_tx_signature = 17;
* @return {!(string|Uint8Array)} * @return {!(string|Uint8Array)}
@ -52121,6 +51968,9 @@ proto.io.haveno.protobuffer.TradePeer.toObject = function(includeInstance, msg)
accountAgeWitness: (f = msg.getAccountAgeWitness()) && proto.io.haveno.protobuffer.AccountAgeWitness.toObject(includeInstance, f), accountAgeWitness: (f = msg.getAccountAgeWitness()) && proto.io.haveno.protobuffer.AccountAgeWitness.toObject(includeInstance, f),
currentDate: jspb.Message.getFieldWithDefault(msg, 21, 0), currentDate: jspb.Message.getFieldWithDefault(msg, 21, 0),
mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(), mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(),
paymentSentMessage: (f = msg.getPaymentSentMessage()) && proto.io.haveno.protobuffer.PaymentSentMessage.toObject(includeInstance, f),
paymentReceivedMessage: (f = msg.getPaymentReceivedMessage()) && proto.io.haveno.protobuffer.PaymentReceivedMessage.toObject(includeInstance, f),
disputeClosedMessage: (f = msg.getDisputeClosedMessage()) && proto.io.haveno.protobuffer.DisputeClosedMessage.toObject(includeInstance, f),
reserveTxHash: jspb.Message.getFieldWithDefault(msg, 1001, ""), reserveTxHash: jspb.Message.getFieldWithDefault(msg, 1001, ""),
reserveTxHex: jspb.Message.getFieldWithDefault(msg, 1002, ""), reserveTxHex: jspb.Message.getFieldWithDefault(msg, 1002, ""),
reserveTxKey: jspb.Message.getFieldWithDefault(msg, 1003, ""), reserveTxKey: jspb.Message.getFieldWithDefault(msg, 1003, ""),
@ -52243,6 +52093,21 @@ proto.io.haveno.protobuffer.TradePeer.deserializeBinaryFromReader = function(msg
var value = /** @type {!Uint8Array} */ (reader.readBytes()); var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setMediatedPayoutTxSignature(value); msg.setMediatedPayoutTxSignature(value);
break; break;
case 23:
var value = new proto.io.haveno.protobuffer.PaymentSentMessage;
reader.readMessage(value,proto.io.haveno.protobuffer.PaymentSentMessage.deserializeBinaryFromReader);
msg.setPaymentSentMessage(value);
break;
case 24:
var value = new proto.io.haveno.protobuffer.PaymentReceivedMessage;
reader.readMessage(value,proto.io.haveno.protobuffer.PaymentReceivedMessage.deserializeBinaryFromReader);
msg.setPaymentReceivedMessage(value);
break;
case 25:
var value = new proto.io.haveno.protobuffer.DisputeClosedMessage;
reader.readMessage(value,proto.io.haveno.protobuffer.DisputeClosedMessage.deserializeBinaryFromReader);
msg.setDisputeClosedMessage(value);
break;
case 1001: case 1001:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setReserveTxHash(value); msg.setReserveTxHash(value);
@ -52451,6 +52316,30 @@ proto.io.haveno.protobuffer.TradePeer.serializeBinaryToWriter = function(message
f f
); );
} }
f = message.getPaymentSentMessage();
if (f != null) {
writer.writeMessage(
23,
f,
proto.io.haveno.protobuffer.PaymentSentMessage.serializeBinaryToWriter
);
}
f = message.getPaymentReceivedMessage();
if (f != null) {
writer.writeMessage(
24,
f,
proto.io.haveno.protobuffer.PaymentReceivedMessage.serializeBinaryToWriter
);
}
f = message.getDisputeClosedMessage();
if (f != null) {
writer.writeMessage(
25,
f,
proto.io.haveno.protobuffer.DisputeClosedMessage.serializeBinaryToWriter
);
}
f = message.getReserveTxHash(); f = message.getReserveTxHash();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(
@ -53102,6 +52991,117 @@ proto.io.haveno.protobuffer.TradePeer.prototype.setMediatedPayoutTxSignature = f
}; };
/**
* optional PaymentSentMessage payment_sent_message = 23;
* @return {?proto.io.haveno.protobuffer.PaymentSentMessage}
*/
proto.io.haveno.protobuffer.TradePeer.prototype.getPaymentSentMessage = function() {
return /** @type{?proto.io.haveno.protobuffer.PaymentSentMessage} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.PaymentSentMessage, 23));
};
/**
* @param {?proto.io.haveno.protobuffer.PaymentSentMessage|undefined} value
* @return {!proto.io.haveno.protobuffer.TradePeer} returns this
*/
proto.io.haveno.protobuffer.TradePeer.prototype.setPaymentSentMessage = function(value) {
return jspb.Message.setWrapperField(this, 23, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.TradePeer} returns this
*/
proto.io.haveno.protobuffer.TradePeer.prototype.clearPaymentSentMessage = function() {
return this.setPaymentSentMessage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.TradePeer.prototype.hasPaymentSentMessage = function() {
return jspb.Message.getField(this, 23) != null;
};
/**
* optional PaymentReceivedMessage payment_received_message = 24;
* @return {?proto.io.haveno.protobuffer.PaymentReceivedMessage}
*/
proto.io.haveno.protobuffer.TradePeer.prototype.getPaymentReceivedMessage = function() {
return /** @type{?proto.io.haveno.protobuffer.PaymentReceivedMessage} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.PaymentReceivedMessage, 24));
};
/**
* @param {?proto.io.haveno.protobuffer.PaymentReceivedMessage|undefined} value
* @return {!proto.io.haveno.protobuffer.TradePeer} returns this
*/
proto.io.haveno.protobuffer.TradePeer.prototype.setPaymentReceivedMessage = function(value) {
return jspb.Message.setWrapperField(this, 24, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.TradePeer} returns this
*/
proto.io.haveno.protobuffer.TradePeer.prototype.clearPaymentReceivedMessage = function() {
return this.setPaymentReceivedMessage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.TradePeer.prototype.hasPaymentReceivedMessage = function() {
return jspb.Message.getField(this, 24) != null;
};
/**
* optional DisputeClosedMessage dispute_closed_message = 25;
* @return {?proto.io.haveno.protobuffer.DisputeClosedMessage}
*/
proto.io.haveno.protobuffer.TradePeer.prototype.getDisputeClosedMessage = function() {
return /** @type{?proto.io.haveno.protobuffer.DisputeClosedMessage} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.DisputeClosedMessage, 25));
};
/**
* @param {?proto.io.haveno.protobuffer.DisputeClosedMessage|undefined} value
* @return {!proto.io.haveno.protobuffer.TradePeer} returns this
*/
proto.io.haveno.protobuffer.TradePeer.prototype.setDisputeClosedMessage = function(value) {
return jspb.Message.setWrapperField(this, 25, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.TradePeer} returns this
*/
proto.io.haveno.protobuffer.TradePeer.prototype.clearDisputeClosedMessage = function() {
return this.setDisputeClosedMessage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.TradePeer.prototype.hasDisputeClosedMessage = function() {
return jspb.Message.getField(this, 25) != null;
};
/** /**
* optional string reserve_tx_hash = 1001; * optional string reserve_tx_hash = 1001;
* @return {string} * @return {string}
@ -54554,7 +54554,7 @@ proto.io.haveno.protobuffer.PreferencesPayload.toObject = function(includeInstan
showOffersMatchingMyAccounts: jspb.Message.getBooleanFieldWithDefault(msg, 55, false), showOffersMatchingMyAccounts: jspb.Message.getBooleanFieldWithDefault(msg, 55, false),
denyApiTaker: jspb.Message.getBooleanFieldWithDefault(msg, 56, false), denyApiTaker: jspb.Message.getBooleanFieldWithDefault(msg, 56, false),
notifyOnPreRelease: jspb.Message.getBooleanFieldWithDefault(msg, 57, false), notifyOnPreRelease: jspb.Message.getBooleanFieldWithDefault(msg, 57, false),
moneroNodeSettings: (f = msg.getMoneroNodeSettings()) && proto.io.haveno.protobuffer.MoneroNodeSettings.toObject(includeInstance, f), xmrNodeSettings: (f = msg.getXmrNodeSettings()) && proto.io.haveno.protobuffer.XmrNodeSettings.toObject(includeInstance, f),
clearDataAfterDays: jspb.Message.getFieldWithDefault(msg, 59, 0), clearDataAfterDays: jspb.Message.getFieldWithDefault(msg, 59, 0),
buyScreenCryptoCurrencyCode: jspb.Message.getFieldWithDefault(msg, 60, ""), buyScreenCryptoCurrencyCode: jspb.Message.getFieldWithDefault(msg, 60, ""),
sellScreenCryptoCurrencyCode: jspb.Message.getFieldWithDefault(msg, 61, ""), sellScreenCryptoCurrencyCode: jspb.Message.getFieldWithDefault(msg, 61, ""),
@ -54836,9 +54836,9 @@ proto.io.haveno.protobuffer.PreferencesPayload.deserializeBinaryFromReader = fun
msg.setNotifyOnPreRelease(value); msg.setNotifyOnPreRelease(value);
break; break;
case 58: case 58:
var value = new proto.io.haveno.protobuffer.MoneroNodeSettings; var value = new proto.io.haveno.protobuffer.XmrNodeSettings;
reader.readMessage(value,proto.io.haveno.protobuffer.MoneroNodeSettings.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.XmrNodeSettings.deserializeBinaryFromReader);
msg.setMoneroNodeSettings(value); msg.setXmrNodeSettings(value);
break; break;
case 59: case 59:
var value = /** @type {number} */ (reader.readInt32()); var value = /** @type {number} */ (reader.readInt32());
@ -55286,12 +55286,12 @@ proto.io.haveno.protobuffer.PreferencesPayload.serializeBinaryToWriter = functio
f f
); );
} }
f = message.getMoneroNodeSettings(); f = message.getXmrNodeSettings();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
58, 58,
f, f,
proto.io.haveno.protobuffer.MoneroNodeSettings.serializeBinaryToWriter proto.io.haveno.protobuffer.XmrNodeSettings.serializeBinaryToWriter
); );
} }
f = message.getClearDataAfterDays(); f = message.getClearDataAfterDays();
@ -56553,20 +56553,20 @@ proto.io.haveno.protobuffer.PreferencesPayload.prototype.setNotifyOnPreRelease =
/** /**
* optional MoneroNodeSettings monero_node_settings = 58; * optional XmrNodeSettings xmr_node_settings = 58;
* @return {?proto.io.haveno.protobuffer.MoneroNodeSettings} * @return {?proto.io.haveno.protobuffer.XmrNodeSettings}
*/ */
proto.io.haveno.protobuffer.PreferencesPayload.prototype.getMoneroNodeSettings = function() { proto.io.haveno.protobuffer.PreferencesPayload.prototype.getXmrNodeSettings = function() {
return /** @type{?proto.io.haveno.protobuffer.MoneroNodeSettings} */ ( return /** @type{?proto.io.haveno.protobuffer.XmrNodeSettings} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.MoneroNodeSettings, 58)); jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.XmrNodeSettings, 58));
}; };
/** /**
* @param {?proto.io.haveno.protobuffer.MoneroNodeSettings|undefined} value * @param {?proto.io.haveno.protobuffer.XmrNodeSettings|undefined} value
* @return {!proto.io.haveno.protobuffer.PreferencesPayload} returns this * @return {!proto.io.haveno.protobuffer.PreferencesPayload} returns this
*/ */
proto.io.haveno.protobuffer.PreferencesPayload.prototype.setMoneroNodeSettings = function(value) { proto.io.haveno.protobuffer.PreferencesPayload.prototype.setXmrNodeSettings = function(value) {
return jspb.Message.setWrapperField(this, 58, value); return jspb.Message.setWrapperField(this, 58, value);
}; };
@ -56575,8 +56575,8 @@ proto.io.haveno.protobuffer.PreferencesPayload.prototype.setMoneroNodeSettings =
* Clears the message field making it undefined. * Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.PreferencesPayload} returns this * @return {!proto.io.haveno.protobuffer.PreferencesPayload} returns this
*/ */
proto.io.haveno.protobuffer.PreferencesPayload.prototype.clearMoneroNodeSettings = function() { proto.io.haveno.protobuffer.PreferencesPayload.prototype.clearXmrNodeSettings = function() {
return this.setMoneroNodeSettings(undefined); return this.setXmrNodeSettings(undefined);
}; };
@ -56584,7 +56584,7 @@ proto.io.haveno.protobuffer.PreferencesPayload.prototype.clearMoneroNodeSettings
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.PreferencesPayload.prototype.hasMoneroNodeSettings = function() { proto.io.haveno.protobuffer.PreferencesPayload.prototype.hasXmrNodeSettings = function() {
return jspb.Message.getField(this, 58) != null; return jspb.Message.getField(this, 58) != null;
}; };
@ -56943,7 +56943,7 @@ proto.io.haveno.protobuffer.AutoConfirmSettings.prototype.setCurrencyCode = func
* @private {!Array<number>} * @private {!Array<number>}
* @const * @const
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.repeatedFields_ = [3]; proto.io.haveno.protobuffer.XmrNodeSettings.repeatedFields_ = [3];
@ -56960,8 +56960,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.toObject = function(opt_includeInstance) { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.MoneroNodeSettings.toObject(opt_includeInstance, this); return proto.io.haveno.protobuffer.XmrNodeSettings.toObject(opt_includeInstance, this);
}; };
@ -56970,11 +56970,11 @@ proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.toObject = function(opt
* @param {boolean|undefined} includeInstance Deprecated. Whether to include * @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support: * the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.MoneroNodeSettings} msg The msg instance to transform. * @param {!proto.io.haveno.protobuffer.XmrNodeSettings} msg The msg instance to transform.
* @return {!Object} * @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.XmrNodeSettings.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
blockchainPath: jspb.Message.getFieldWithDefault(msg, 1, ""), blockchainPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
bootstrapUrl: jspb.Message.getFieldWithDefault(msg, 2, ""), bootstrapUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
@ -56992,23 +56992,23 @@ proto.io.haveno.protobuffer.MoneroNodeSettings.toObject = function(includeInstan
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.MoneroNodeSettings} * @return {!proto.io.haveno.protobuffer.XmrNodeSettings}
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.deserializeBinary = function(bytes) { proto.io.haveno.protobuffer.XmrNodeSettings.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.MoneroNodeSettings; var msg = new proto.io.haveno.protobuffer.XmrNodeSettings;
return proto.io.haveno.protobuffer.MoneroNodeSettings.deserializeBinaryFromReader(msg, reader); return proto.io.haveno.protobuffer.XmrNodeSettings.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.MoneroNodeSettings} msg The message object to deserialize into. * @param {!proto.io.haveno.protobuffer.XmrNodeSettings} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.MoneroNodeSettings} * @return {!proto.io.haveno.protobuffer.XmrNodeSettings}
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.deserializeBinaryFromReader = function(msg, reader) { proto.io.haveno.protobuffer.XmrNodeSettings.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
@ -57040,9 +57040,9 @@ proto.io.haveno.protobuffer.MoneroNodeSettings.deserializeBinaryFromReader = fun
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.serializeBinary = function() { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.MoneroNodeSettings.serializeBinaryToWriter(this, writer); proto.io.haveno.protobuffer.XmrNodeSettings.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
@ -57050,11 +57050,11 @@ proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.serializeBinary = funct
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.MoneroNodeSettings} message * @param {!proto.io.haveno.protobuffer.XmrNodeSettings} message
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.serializeBinaryToWriter = function(message, writer) { proto.io.haveno.protobuffer.XmrNodeSettings.serializeBinaryToWriter = function(message, writer) {
var f = undefined; var f = undefined;
f = message.getBlockchainPath(); f = message.getBlockchainPath();
if (f.length > 0) { if (f.length > 0) {
@ -57084,16 +57084,16 @@ proto.io.haveno.protobuffer.MoneroNodeSettings.serializeBinaryToWriter = functio
* optional string blockchain_path = 1; * optional string blockchain_path = 1;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.getBlockchainPath = function() { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.getBlockchainPath = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.io.haveno.protobuffer.MoneroNodeSettings} returns this * @return {!proto.io.haveno.protobuffer.XmrNodeSettings} returns this
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.setBlockchainPath = function(value) { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.setBlockchainPath = function(value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
@ -57102,16 +57102,16 @@ proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.setBlockchainPath = fun
* optional string bootstrap_url = 2; * optional string bootstrap_url = 2;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.getBootstrapUrl = function() { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.getBootstrapUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.io.haveno.protobuffer.MoneroNodeSettings} returns this * @return {!proto.io.haveno.protobuffer.XmrNodeSettings} returns this
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.setBootstrapUrl = function(value) { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.setBootstrapUrl = function(value) {
return jspb.Message.setProto3StringField(this, 2, value); return jspb.Message.setProto3StringField(this, 2, value);
}; };
@ -57120,16 +57120,16 @@ proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.setBootstrapUrl = funct
* repeated string startup_flags = 3; * repeated string startup_flags = 3;
* @return {!Array<string>} * @return {!Array<string>}
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.getStartupFlagsList = function() { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.getStartupFlagsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3)); return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
}; };
/** /**
* @param {!Array<string>} value * @param {!Array<string>} value
* @return {!proto.io.haveno.protobuffer.MoneroNodeSettings} returns this * @return {!proto.io.haveno.protobuffer.XmrNodeSettings} returns this
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.setStartupFlagsList = function(value) { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.setStartupFlagsList = function(value) {
return jspb.Message.setField(this, 3, value || []); return jspb.Message.setField(this, 3, value || []);
}; };
@ -57137,18 +57137,18 @@ proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.setStartupFlagsList = f
/** /**
* @param {string} value * @param {string} value
* @param {number=} opt_index * @param {number=} opt_index
* @return {!proto.io.haveno.protobuffer.MoneroNodeSettings} returns this * @return {!proto.io.haveno.protobuffer.XmrNodeSettings} returns this
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.addStartupFlags = function(value, opt_index) { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.addStartupFlags = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index); return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
}; };
/** /**
* Clears the list making it empty but non-null. * Clears the list making it empty but non-null.
* @return {!proto.io.haveno.protobuffer.MoneroNodeSettings} returns this * @return {!proto.io.haveno.protobuffer.XmrNodeSettings} returns this
*/ */
proto.io.haveno.protobuffer.MoneroNodeSettings.prototype.clearStartupFlagsList = function() { proto.io.haveno.protobuffer.XmrNodeSettings.prototype.clearStartupFlagsList = function() {
return this.setStartupFlagsList([]); return this.setStartupFlagsList([]);
}; };

File diff suppressed because one or more lines are too long

View file

@ -18,8 +18,8 @@ import {
PaymentAccountForm, PaymentAccountForm,
PaymentAccountFormField, PaymentAccountFormField,
PaymentAccount, PaymentAccount,
MoneroNodeSettings,
XmrDestination, XmrDestination,
XmrNodeSettings,
XmrTx, XmrTx,
XmrIncomingTransfer, XmrIncomingTransfer,
XmrOutgoingTransfer, XmrOutgoingTransfer,
@ -857,7 +857,7 @@ test("Can start and stop a local Monero node (CI)", async() => {
HavenoUtils.log(0, "Warning: local Monero node is already running, skipping start and stop local Monero node tests"); HavenoUtils.log(0, "Warning: local Monero node is already running, skipping start and stop local Monero node tests");
// expect error due to existing running node // expect error due to existing running node
const newSettings = new MoneroNodeSettings(); const newSettings = new XmrNodeSettings();
try { try {
await user1.startMoneroNode(newSettings); await user1.startMoneroNode(newSettings);
throw new Error("should have thrown"); throw new Error("should have thrown");
@ -868,7 +868,7 @@ test("Can start and stop a local Monero node (CI)", async() => {
} else { } else {
// expect error when passing in bad arguments // expect error when passing in bad arguments
const badSettings = new MoneroNodeSettings(); const badSettings = new XmrNodeSettings();
badSettings.setStartupFlagsList(["--invalid-flag"]); badSettings.setStartupFlagsList(["--invalid-flag"]);
try { try {
await user1.startMoneroNode(badSettings); await user1.startMoneroNode(badSettings);
@ -879,7 +879,7 @@ test("Can start and stop a local Monero node (CI)", async() => {
// expect successful start with custom settings // expect successful start with custom settings
const connectionsBefore = await user1.getMoneroConnections(); const connectionsBefore = await user1.getMoneroConnections();
const settings: MoneroNodeSettings = new MoneroNodeSettings(); const settings: XmrNodeSettings = new XmrNodeSettings();
const dataDir = TestConfig.moneroBinsDir + "/" + TestConfig.baseCurrencyNetwork + "/node1"; const dataDir = TestConfig.moneroBinsDir + "/" + TestConfig.baseCurrencyNetwork + "/node1";
const logFile = dataDir + "/test.log"; const logFile = dataDir + "/test.log";
const p2pPort = 38086; const p2pPort = 38086;
@ -901,7 +901,7 @@ test("Can start and stop a local Monero node (CI)", async() => {
assert(height >= 0); assert(height >= 0);
// expect error due to existing running node // expect error due to existing running node
const newSettings = new MoneroNodeSettings(); const newSettings = new XmrNodeSettings();
try { try {
await user1.startMoneroNode(newSettings); await user1.startMoneroNode(newSettings);
throw new Error("should have thrown"); throw new Error("should have thrown");
@ -3689,7 +3689,7 @@ function testOffer(offer: OfferInfo, ctx?: Partial<TradeContext>) {
} }
} }
function testMoneroNodeSettingsEqual(settingsBefore: MoneroNodeSettings, settingsAfter: MoneroNodeSettings) { function testMoneroNodeSettingsEqual(settingsBefore: XmrNodeSettings, settingsAfter: XmrNodeSettings) {
expect(settingsBefore.getBlockchainPath()).toEqual(settingsAfter.getBlockchainPath()); expect(settingsBefore.getBlockchainPath()).toEqual(settingsAfter.getBlockchainPath());
expect(settingsBefore.getBootstrapUrl()).toEqual(settingsAfter.getBootstrapUrl()); expect(settingsBefore.getBootstrapUrl()).toEqual(settingsAfter.getBootstrapUrl());
expect(settingsBefore.getStartupFlagsList()).toEqual(settingsAfter.getStartupFlagsList()); expect(settingsBefore.getStartupFlagsList()).toEqual(settingsAfter.getStartupFlagsList());

View file

@ -3,9 +3,9 @@ import HavenoError from "./types/HavenoError";
import HavenoUtils from "./utils/HavenoUtils"; import HavenoUtils from "./utils/HavenoUtils";
import TaskLooper from "./utils/TaskLooper"; import TaskLooper from "./utils/TaskLooper";
import type * as grpcWeb from "grpc-web"; import type * as grpcWeb from "grpc-web";
import { GetVersionClient, AccountClient, MoneroConnectionsClient, DisputesClient, DisputeAgentsClient, NotificationsClient, WalletsClient, PriceClient, OffersClient, PaymentAccountsClient, TradesClient, ShutdownServerClient, MoneroNodeClient } from './protobuf/GrpcServiceClientPb'; import { GetVersionClient, AccountClient, XmrConnectionsClient, DisputesClient, DisputeAgentsClient, NotificationsClient, WalletsClient, PriceClient, OffersClient, PaymentAccountsClient, TradesClient, ShutdownServerClient, XmrNodeClient } from './protobuf/GrpcServiceClientPb';
import { GetVersionRequest, GetVersionReply, IsAppInitializedRequest, IsAppInitializedReply, RegisterDisputeAgentRequest, UnregisterDisputeAgentRequest, MarketPriceRequest, MarketPriceReply, MarketPricesRequest, MarketPricesReply, MarketPriceInfo, MarketDepthRequest, MarketDepthReply, MarketDepthInfo, GetBalancesRequest, GetBalancesReply, XmrBalanceInfo, GetMyOfferRequest, GetMyOfferReply, GetOffersRequest, GetOffersReply, OfferInfo, GetPaymentMethodsRequest, GetPaymentMethodsReply, GetPaymentAccountFormRequest, CreatePaymentAccountRequest, ValidateFormFieldRequest, CreatePaymentAccountReply, GetPaymentAccountFormReply, GetPaymentAccountsRequest, GetPaymentAccountsReply, CreateCryptoCurrencyPaymentAccountRequest, CreateCryptoCurrencyPaymentAccountReply, PostOfferRequest, PostOfferReply, CancelOfferRequest, TakeOfferRequest, TakeOfferReply, TradeInfo, GetTradeRequest, GetTradeReply, GetTradesRequest, GetTradesReply, GetXmrSeedRequest, GetXmrSeedReply, GetXmrPrimaryAddressRequest, GetXmrPrimaryAddressReply, GetXmrNewSubaddressRequest, GetXmrNewSubaddressReply, ConfirmPaymentSentRequest, ConfirmPaymentReceivedRequest, CompleteTradeRequest, XmrTx, GetXmrTxsRequest, GetXmrTxsReply, XmrDestination, CreateXmrTxRequest, CreateXmrTxReply, RelayXmrTxRequest, RelayXmrTxReply, CreateAccountRequest, AccountExistsRequest, AccountExistsReply, DeleteAccountRequest, OpenAccountRequest, IsAccountOpenRequest, IsAccountOpenReply, CloseAccountRequest, ChangePasswordRequest, BackupAccountRequest, BackupAccountReply, RestoreAccountRequest, StopRequest, NotificationMessage, RegisterNotificationListenerRequest, SendNotificationRequest, UrlConnection, AddConnectionRequest, RemoveConnectionRequest, GetConnectionRequest, GetConnectionsRequest, SetConnectionRequest, CheckConnectionRequest, CheckConnectionsReply, CheckConnectionsRequest, StartCheckingConnectionsRequest, StopCheckingConnectionsRequest, GetBestAvailableConnectionRequest, SetAutoSwitchRequest, CheckConnectionReply, GetConnectionsReply, GetConnectionReply, GetBestAvailableConnectionReply, GetDisputeRequest, GetDisputeReply, GetDisputesRequest, GetDisputesReply, OpenDisputeRequest, ResolveDisputeRequest, SendDisputeChatMessageRequest, SendChatMessageRequest, GetChatMessagesRequest, GetChatMessagesReply, StartMoneroNodeRequest, StopMoneroNodeRequest, IsMoneroNodeOnlineRequest, IsMoneroNodeOnlineReply, GetMoneroNodeSettingsRequest, GetMoneroNodeSettingsReply } from "./protobuf/grpc_pb"; import { GetVersionRequest, GetVersionReply, IsAppInitializedRequest, IsAppInitializedReply, RegisterDisputeAgentRequest, UnregisterDisputeAgentRequest, MarketPriceRequest, MarketPriceReply, MarketPricesRequest, MarketPricesReply, MarketPriceInfo, MarketDepthRequest, MarketDepthReply, MarketDepthInfo, GetBalancesRequest, GetBalancesReply, XmrBalanceInfo, GetMyOfferRequest, GetMyOfferReply, GetOffersRequest, GetOffersReply, OfferInfo, GetPaymentMethodsRequest, GetPaymentMethodsReply, GetPaymentAccountFormRequest, CreatePaymentAccountRequest, ValidateFormFieldRequest, CreatePaymentAccountReply, GetPaymentAccountFormReply, GetPaymentAccountsRequest, GetPaymentAccountsReply, CreateCryptoCurrencyPaymentAccountRequest, CreateCryptoCurrencyPaymentAccountReply, PostOfferRequest, PostOfferReply, CancelOfferRequest, TakeOfferRequest, TakeOfferReply, TradeInfo, GetTradeRequest, GetTradeReply, GetTradesRequest, GetTradesReply, GetXmrSeedRequest, GetXmrSeedReply, GetXmrPrimaryAddressRequest, GetXmrPrimaryAddressReply, GetXmrNewSubaddressRequest, GetXmrNewSubaddressReply, ConfirmPaymentSentRequest, ConfirmPaymentReceivedRequest, CompleteTradeRequest, XmrTx, GetXmrTxsRequest, GetXmrTxsReply, XmrDestination, CreateXmrTxRequest, CreateXmrTxReply, RelayXmrTxRequest, RelayXmrTxReply, CreateAccountRequest, AccountExistsRequest, AccountExistsReply, DeleteAccountRequest, OpenAccountRequest, IsAccountOpenRequest, IsAccountOpenReply, CloseAccountRequest, ChangePasswordRequest, BackupAccountRequest, BackupAccountReply, RestoreAccountRequest, StopRequest, NotificationMessage, RegisterNotificationListenerRequest, SendNotificationRequest, UrlConnection, AddConnectionRequest, RemoveConnectionRequest, GetConnectionRequest, GetConnectionsRequest, SetConnectionRequest, CheckConnectionRequest, CheckConnectionsReply, CheckConnectionsRequest, StartCheckingConnectionsRequest, StopCheckingConnectionsRequest, GetBestAvailableConnectionRequest, SetAutoSwitchRequest, CheckConnectionReply, GetConnectionsReply, GetConnectionReply, GetBestAvailableConnectionReply, GetDisputeRequest, GetDisputeReply, GetDisputesRequest, GetDisputesReply, OpenDisputeRequest, ResolveDisputeRequest, SendDisputeChatMessageRequest, SendChatMessageRequest, GetChatMessagesRequest, GetChatMessagesReply, StartXmrNodeRequest, StopXmrNodeRequest, IsXmrNodeOnlineRequest, IsXmrNodeOnlineReply, GetXmrNodeSettingsRequest, GetXmrNodeSettingsReply } from "./protobuf/grpc_pb";
import { OfferDirection, PaymentMethod, PaymentAccountForm, PaymentAccountFormField, PaymentAccount, PaymentAccountPayload, AvailabilityResult, Attachment, DisputeResult, Dispute, ChatMessage, MoneroNodeSettings } from "./protobuf/pb_pb"; import { OfferDirection, PaymentMethod, PaymentAccountForm, PaymentAccountFormField, PaymentAccount, PaymentAccountPayload, AvailabilityResult, Attachment, DisputeResult, Dispute, ChatMessage, XmrNodeSettings } from "./protobuf/pb_pb";
/** /**
* Haveno daemon client. * Haveno daemon client.
@ -19,8 +19,8 @@ export default class HavenoClient {
/** @private */ _disputesClient: DisputesClient; /** @private */ _disputesClient: DisputesClient;
/** @private */ _notificationsClient: NotificationsClient; /** @private */ _notificationsClient: NotificationsClient;
/** @private */ _notificationStream: grpcWeb.ClientReadableStream<NotificationMessage> | undefined; /** @private */ _notificationStream: grpcWeb.ClientReadableStream<NotificationMessage> | undefined;
/** @private */ _moneroConnectionsClient: MoneroConnectionsClient; /** @private */ _xmrConnectionsClient: XmrConnectionsClient;
/** @private */ _moneroNodeClient: MoneroNodeClient; /** @private */ _xmrNodeClient: XmrNodeClient;
/** @private */ _walletsClient: WalletsClient; /** @private */ _walletsClient: WalletsClient;
/** @private */ _priceClient: PriceClient; /** @private */ _priceClient: PriceClient;
/** @private */ _paymentAccountsClient: PaymentAccountsClient; /** @private */ _paymentAccountsClient: PaymentAccountsClient;
@ -59,8 +59,8 @@ export default class HavenoClient {
this._password = password; this._password = password;
this._getVersionClient = new GetVersionClient(this._url); this._getVersionClient = new GetVersionClient(this._url);
this._accountClient = new AccountClient(this._url); this._accountClient = new AccountClient(this._url);
this._moneroConnectionsClient = new MoneroConnectionsClient(this._url); this._xmrConnectionsClient = new XmrConnectionsClient(this._url);
this._moneroNodeClient = new MoneroNodeClient(this._url); this._xmrNodeClient = new XmrNodeClient(this._url);
this._disputeAgentsClient = new DisputeAgentsClient(this._url); this._disputeAgentsClient = new DisputeAgentsClient(this._url);
this._disputesClient = new DisputesClient(this._url); this._disputesClient = new DisputesClient(this._url);
this._walletsClient = new WalletsClient(this._url); this._walletsClient = new WalletsClient(this._url);
@ -426,7 +426,7 @@ export default class HavenoClient {
*/ */
async addMoneroConnection(connection: string | UrlConnection): Promise<void> { async addMoneroConnection(connection: string | UrlConnection): Promise<void> {
try { try {
await this._moneroConnectionsClient.addConnection(new AddConnectionRequest().setConnection(typeof connection === "string" ? new UrlConnection().setUrl(connection) : connection), {password: this._password}); await this._xmrConnectionsClient.addConnection(new AddConnectionRequest().setConnection(typeof connection === "string" ? new UrlConnection().setUrl(connection) : connection), {password: this._password});
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -439,7 +439,7 @@ export default class HavenoClient {
*/ */
async removeMoneroConnection(url: string): Promise<void> { async removeMoneroConnection(url: string): Promise<void> {
try { try {
await this._moneroConnectionsClient.removeConnection(new RemoveConnectionRequest().setUrl(url), {password: this._password}); await this._xmrConnectionsClient.removeConnection(new RemoveConnectionRequest().setUrl(url), {password: this._password});
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -452,7 +452,7 @@ export default class HavenoClient {
*/ */
async getMoneroConnection(): Promise<UrlConnection | undefined> { async getMoneroConnection(): Promise<UrlConnection | undefined> {
try { try {
return await (await this._moneroConnectionsClient.getConnection(new GetConnectionRequest(), {password: this._password})).getConnection(); return await (await this._xmrConnectionsClient.getConnection(new GetConnectionRequest(), {password: this._password})).getConnection();
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -465,7 +465,7 @@ export default class HavenoClient {
*/ */
async getMoneroConnections(): Promise<UrlConnection[]> { async getMoneroConnections(): Promise<UrlConnection[]> {
try { try {
return (await this._moneroConnectionsClient.getConnections(new GetConnectionsRequest(), {password: this._password})).getConnectionsList(); return (await this._xmrConnectionsClient.getConnections(new GetConnectionsRequest(), {password: this._password})).getConnectionsList();
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -486,7 +486,7 @@ export default class HavenoClient {
if (typeof connection === "string") request.setUrl(connection); if (typeof connection === "string") request.setUrl(connection);
else request.setConnection(connection); else request.setConnection(connection);
try { try {
await this._moneroConnectionsClient.setConnection(request, {password: this._password}); await this._xmrConnectionsClient.setConnection(request, {password: this._password});
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -501,7 +501,7 @@ export default class HavenoClient {
*/ */
async checkMoneroConnection(): Promise<UrlConnection | undefined> { async checkMoneroConnection(): Promise<UrlConnection | undefined> {
try { try {
return (await this._moneroConnectionsClient.checkConnection(new CheckConnectionRequest(), {password: this._password})).getConnection(); return (await this._xmrConnectionsClient.checkConnection(new CheckConnectionRequest(), {password: this._password})).getConnection();
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -514,7 +514,7 @@ export default class HavenoClient {
*/ */
async checkMoneroConnections(): Promise<UrlConnection[]> { async checkMoneroConnections(): Promise<UrlConnection[]> {
try { try {
return (await this._moneroConnectionsClient.checkConnections(new CheckConnectionsRequest(), {password: this._password})).getConnectionsList(); return (await this._xmrConnectionsClient.checkConnections(new CheckConnectionsRequest(), {password: this._password})).getConnectionsList();
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -527,7 +527,7 @@ export default class HavenoClient {
*/ */
async startCheckingConnection(refreshPeriod: number): Promise<void> { async startCheckingConnection(refreshPeriod: number): Promise<void> {
try { try {
await this._moneroConnectionsClient.startCheckingConnections(new StartCheckingConnectionsRequest().setRefreshPeriod(refreshPeriod), {password: this._password}); await this._xmrConnectionsClient.startCheckingConnections(new StartCheckingConnectionsRequest().setRefreshPeriod(refreshPeriod), {password: this._password});
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -538,7 +538,7 @@ export default class HavenoClient {
*/ */
async stopCheckingConnection(): Promise<void> { async stopCheckingConnection(): Promise<void> {
try { try {
await this._moneroConnectionsClient.stopCheckingConnections(new StopCheckingConnectionsRequest(), {password: this._password}); await this._xmrConnectionsClient.stopCheckingConnections(new StopCheckingConnectionsRequest(), {password: this._password});
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -551,7 +551,7 @@ export default class HavenoClient {
*/ */
async getBestAvailableConnection(): Promise<UrlConnection | undefined> { async getBestAvailableConnection(): Promise<UrlConnection | undefined> {
try { try {
return (await this._moneroConnectionsClient.getBestAvailableConnection(new GetBestAvailableConnectionRequest(), {password: this._password})).getConnection(); return (await this._xmrConnectionsClient.getBestAvailableConnection(new GetBestAvailableConnectionRequest(), {password: this._password})).getConnection();
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -564,7 +564,7 @@ export default class HavenoClient {
*/ */
async setAutoSwitch(autoSwitch: boolean): Promise<void> { async setAutoSwitch(autoSwitch: boolean): Promise<void> {
try { try {
await this._moneroConnectionsClient.setAutoSwitch(new SetAutoSwitchRequest().setAutoSwitch(autoSwitch), {password: this._password}); await this._xmrConnectionsClient.setAutoSwitch(new SetAutoSwitchRequest().setAutoSwitch(autoSwitch), {password: this._password});
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -575,7 +575,7 @@ export default class HavenoClient {
*/ */
async isMoneroNodeOnline(): Promise<boolean> { async isMoneroNodeOnline(): Promise<boolean> {
try { try {
return (await this._moneroNodeClient.isMoneroNodeOnline(new IsMoneroNodeOnlineRequest(), {password: this._password})).getIsRunning(); return (await this._xmrNodeClient.isXmrNodeOnline(new IsXmrNodeOnlineRequest(), {password: this._password})).getIsRunning();
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -584,10 +584,10 @@ export default class HavenoClient {
/** /**
* Gets the current local monero node settings. * Gets the current local monero node settings.
*/ */
async getMoneroNodeSettings(): Promise<MoneroNodeSettings | undefined> { async getMoneroNodeSettings(): Promise<XmrNodeSettings | undefined> {
try { try {
const request = new GetMoneroNodeSettingsRequest(); const request = new GetXmrNodeSettingsRequest();
return (await this._moneroNodeClient.getMoneroNodeSettings(request, {password: this._password})).getSettings(); return (await this._xmrNodeClient.getXmrNodeSettings(request, {password: this._password})).getSettings();
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -598,10 +598,10 @@ export default class HavenoClient {
* *
* @param {MoneroNodeSettings} settings - the settings to start the local node with * @param {MoneroNodeSettings} settings - the settings to start the local node with
*/ */
async startMoneroNode(settings: MoneroNodeSettings): Promise<void> { async startMoneroNode(settings: XmrNodeSettings): Promise<void> {
try { try {
const request = new StartMoneroNodeRequest().setSettings(settings); const request = new StartXmrNodeRequest().setSettings(settings);
await this._moneroNodeClient.startMoneroNode(request, {password: this._password}); await this._xmrNodeClient.startXmrNode(request, {password: this._password});
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }
@ -612,7 +612,7 @@ export default class HavenoClient {
*/ */
async stopMoneroNode(): Promise<void> { async stopMoneroNode(): Promise<void> {
try { try {
await this._moneroNodeClient.stopMoneroNode(new StopMoneroNodeRequest(), {password: this._password}); await this._xmrNodeClient.stopXmrNode(new StopXmrNodeRequest(), {password: this._password});
} catch (e: any) { } catch (e: any) {
throw new HavenoError(e.message, e.code); throw new HavenoError(e.message, e.code);
} }