update dist

This commit is contained in:
woodser 2025-07-31 16:24:39 -04:00 committed by woodser
parent 7358419791
commit d34b2d3ad7
12 changed files with 704 additions and 118 deletions

View file

@ -326,15 +326,23 @@ export default class HavenoClient {
/**
* Create but do not relay a transaction to send funds from the Monero wallet.
*
* @param {XmrDestination[]} destinations - the destinations to send funds to
* @return {XmrTx} the created transaction
*/
createXmrTx(destinations: XmrDestination[]): Promise<XmrTx>;
/**
* Create but do not relay transactions to sweep all funds from the Monero wallet.
*
* @param {string} address - the address to sweep funds to
* @return {XmrTx} the created transactions
*/
createXmrSweepTxs(address: string): Promise<XmrTx[]>;
/**
* Relay a previously created transaction to send funds from the Monero wallet.
*
* @return {string} the hash of the relayed transaction
*/
relayXmrTx(metadata: string): Promise<string>;
relayXmrTxs(metadatas: string[]): Promise<string[]>;
/**
* Get all asset codes with price information.
*
@ -411,9 +419,10 @@ export default class HavenoClient {
* @param {string} accountName - description of the account
* @param {string} assetCode - traded asset code
* @param {string} address - payment address of the account
* @param {boolean} [instant] - whether to use instant trades (default false)
* @return {PaymentAccount} the created payment account
*/
createCryptoPaymentAccount(accountName: string, assetCode: string, address: string): Promise<PaymentAccount>;
createCryptoPaymentAccount(accountName: string, assetCode: string, address: string, instant?: boolean): Promise<PaymentAccount>;
/**
* Delete a payment account.
*

29
dist/HavenoClient.js vendored
View file

@ -735,6 +735,7 @@ class HavenoClient {
/**
* Create but do not relay a transaction to send funds from the Monero wallet.
*
* @param {XmrDestination[]} destinations - the destinations to send funds to
* @return {XmrTx} the created transaction
*/
async createXmrTx(destinations) {
@ -745,14 +746,28 @@ class HavenoClient {
throw new HavenoError_1.default(e.message, e.code);
}
}
/**
* Create but do not relay transactions to sweep all funds from the Monero wallet.
*
* @param {string} address - the address to sweep funds to
* @return {XmrTx} the created transactions
*/
async createXmrSweepTxs(address) {
try {
return (await this._walletsClient.createXmrSweepTxs(new grpc_pb_1.CreateXmrSweepTxsRequest().setAddress(address), { password: this._password })).getTxsList();
}
catch (e) {
throw new HavenoError_1.default(e.message, e.code);
}
}
/**
* Relay a previously created transaction to send funds from the Monero wallet.
*
* @return {string} the hash of the relayed transaction
*/
async relayXmrTx(metadata) {
async relayXmrTxs(metadatas) {
try {
return (await this._walletsClient.relayXmrTx(new grpc_pb_1.RelayXmrTxRequest().setMetadata(metadata), { password: this._password })).getHash();
return (await this._walletsClient.relayXmrTxs(new grpc_pb_1.RelayXmrTxsRequest().setMetadatasList(metadatas), { password: this._password })).getHashesList();
}
catch (e) {
throw new HavenoError_1.default(e.message, e.code);
@ -782,7 +797,7 @@ class HavenoClient {
return (await this._priceClient.getMarketPrice(new grpc_pb_1.MarketPriceRequest().setCurrencyCode(assetCode), { password: this._password })).getPrice();
}
catch (e) {
if (e.message.indexOf("not found") >= 0)
if (e.message.indexOf("not found") >= 0 || e.message.indexOf("not available") >= 0)
return undefined; // TODO: return unknown price server side (0?)
throw new HavenoError_1.default(e.message, e.code);
}
@ -934,15 +949,17 @@ class HavenoClient {
* @param {string} accountName - description of the account
* @param {string} assetCode - traded asset code
* @param {string} address - payment address of the account
* @param {boolean} [instant] - whether to use instant trades (default false)
* @return {PaymentAccount} the created payment account
*/
async createCryptoPaymentAccount(accountName, assetCode, address) {
async createCryptoPaymentAccount(accountName, assetCode, address, instant) {
try {
const request = new grpc_pb_1.CreateCryptoCurrencyPaymentAccountRequest()
.setAccountName(accountName)
.setCurrencyCode(assetCode)
.setAddress(address)
.setTradeInstant(false); // not using instant trades
.setAddress(address);
if (instant !== undefined)
request.setTradeInstant(instant);
return (await this._paymentAccountsClient.createCryptoCurrencyPaymentAccount(request, { password: this._password })).getPaymentAccount();
}
catch (e) {

File diff suppressed because one or more lines are too long

View file

@ -443,9 +443,12 @@ export declare class WalletsClient {
methodDescriptorCreateXmrTx: grpcWeb.MethodDescriptor<grpc_pb.CreateXmrTxRequest, grpc_pb.CreateXmrTxReply>;
createXmrTx(request: grpc_pb.CreateXmrTxRequest, metadata?: grpcWeb.Metadata | null): Promise<grpc_pb.CreateXmrTxReply>;
createXmrTx(request: grpc_pb.CreateXmrTxRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.CreateXmrTxReply) => void): grpcWeb.ClientReadableStream<grpc_pb.CreateXmrTxReply>;
methodDescriptorrelayXmrTx: grpcWeb.MethodDescriptor<grpc_pb.RelayXmrTxRequest, grpc_pb.RelayXmrTxReply>;
relayXmrTx(request: grpc_pb.RelayXmrTxRequest, metadata?: grpcWeb.Metadata | null): Promise<grpc_pb.RelayXmrTxReply>;
relayXmrTx(request: grpc_pb.RelayXmrTxRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.RelayXmrTxReply) => void): grpcWeb.ClientReadableStream<grpc_pb.RelayXmrTxReply>;
methodDescriptorCreateXmrSweepTxs: grpcWeb.MethodDescriptor<grpc_pb.CreateXmrSweepTxsRequest, grpc_pb.CreateXmrSweepTxsReply>;
createXmrSweepTxs(request: grpc_pb.CreateXmrSweepTxsRequest, metadata?: grpcWeb.Metadata | null): Promise<grpc_pb.CreateXmrSweepTxsReply>;
createXmrSweepTxs(request: grpc_pb.CreateXmrSweepTxsRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.CreateXmrSweepTxsReply) => void): grpcWeb.ClientReadableStream<grpc_pb.CreateXmrSweepTxsReply>;
methodDescriptorRelayXmrTxs: grpcWeb.MethodDescriptor<grpc_pb.RelayXmrTxsRequest, grpc_pb.RelayXmrTxsReply>;
relayXmrTxs(request: grpc_pb.RelayXmrTxsRequest, metadata?: grpcWeb.Metadata | null): Promise<grpc_pb.RelayXmrTxsReply>;
relayXmrTxs(request: grpc_pb.RelayXmrTxsRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.RelayXmrTxsReply) => void): grpcWeb.ClientReadableStream<grpc_pb.RelayXmrTxsReply>;
methodDescriptorGetAddressBalance: grpcWeb.MethodDescriptor<grpc_pb.GetAddressBalanceRequest, grpc_pb.GetAddressBalanceReply>;
getAddressBalance(request: grpc_pb.GetAddressBalanceRequest, metadata?: grpcWeb.Metadata | null): Promise<grpc_pb.GetAddressBalanceReply>;
getAddressBalance(request: grpc_pb.GetAddressBalanceRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: grpc_pb.GetAddressBalanceReply) => void): grpcWeb.ClientReadableStream<grpc_pb.GetAddressBalanceReply>;

View file

@ -972,9 +972,12 @@ class WalletsClient {
this.methodDescriptorCreateXmrTx = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/CreateXmrTx', grpcWeb.MethodType.UNARY, grpc_pb.CreateXmrTxRequest, grpc_pb.CreateXmrTxReply, (request) => {
return request.serializeBinary();
}, grpc_pb.CreateXmrTxReply.deserializeBinary);
this.methodDescriptorrelayXmrTx = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/relayXmrTx', grpcWeb.MethodType.UNARY, grpc_pb.RelayXmrTxRequest, grpc_pb.RelayXmrTxReply, (request) => {
this.methodDescriptorCreateXmrSweepTxs = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/CreateXmrSweepTxs', grpcWeb.MethodType.UNARY, grpc_pb.CreateXmrSweepTxsRequest, grpc_pb.CreateXmrSweepTxsReply, (request) => {
return request.serializeBinary();
}, grpc_pb.RelayXmrTxReply.deserializeBinary);
}, grpc_pb.CreateXmrSweepTxsReply.deserializeBinary);
this.methodDescriptorRelayXmrTxs = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/RelayXmrTxs', grpcWeb.MethodType.UNARY, grpc_pb.RelayXmrTxsRequest, grpc_pb.RelayXmrTxsReply, (request) => {
return request.serializeBinary();
}, grpc_pb.RelayXmrTxsReply.deserializeBinary);
this.methodDescriptorGetAddressBalance = new grpcWeb.MethodDescriptor('/io.haveno.protobuffer.Wallets/GetAddressBalance', grpcWeb.MethodType.UNARY, grpc_pb.GetAddressBalanceRequest, grpc_pb.GetAddressBalanceReply, (request) => {
return request.serializeBinary();
}, grpc_pb.GetAddressBalanceReply.deserializeBinary);
@ -1051,13 +1054,21 @@ class WalletsClient {
return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.Wallets/CreateXmrTx', request, metadata || {}, this.methodDescriptorCreateXmrTx);
}
relayXmrTx(request, metadata, callback) {
createXmrSweepTxs(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.Wallets/relayXmrTx', request, metadata || {}, this.methodDescriptorrelayXmrTx, callback);
'/io.haveno.protobuffer.Wallets/CreateXmrSweepTxs', request, metadata || {}, this.methodDescriptorCreateXmrSweepTxs, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.Wallets/relayXmrTx', request, metadata || {}, this.methodDescriptorrelayXmrTx);
'/io.haveno.protobuffer.Wallets/CreateXmrSweepTxs', request, metadata || {}, this.methodDescriptorCreateXmrSweepTxs);
}
relayXmrTxs(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/io.haveno.protobuffer.Wallets/RelayXmrTxs', request, metadata || {}, this.methodDescriptorRelayXmrTxs, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/io.haveno.protobuffer.Wallets/RelayXmrTxs', request, metadata || {}, this.methodDescriptorRelayXmrTxs);
}
getAddressBalance(request, metadata, callback) {
if (callback !== undefined) {

File diff suppressed because one or more lines are too long

View file

@ -2855,6 +2855,15 @@ export class TradeInfo extends jspb.Message {
getPayoutTxId(): string;
setPayoutTxId(value: string): TradeInfo;
getStartTime(): number;
setStartTime(value: number): TradeInfo;
getMaxDurationMs(): number;
setMaxDurationMs(value: number): TradeInfo;
getDeadlineTime(): number;
setDeadlineTime(value: number): TradeInfo;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TradeInfo.AsObject;
static toObject(includeInstance: boolean, msg: TradeInfo): TradeInfo.AsObject;
@ -2904,6 +2913,9 @@ export namespace TradeInfo {
makerDepositTxId: string,
takerDepositTxId: string,
payoutTxId: string,
startTime: number,
maxDurationMs: number,
deadlineTime: number,
}
}
@ -3321,39 +3333,81 @@ export namespace CreateXmrTxReply {
}
}
export class RelayXmrTxRequest extends jspb.Message {
getMetadata(): string;
setMetadata(value: string): RelayXmrTxRequest;
export class CreateXmrSweepTxsRequest extends jspb.Message {
getAddress(): string;
setAddress(value: string): CreateXmrSweepTxsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): RelayXmrTxRequest.AsObject;
static toObject(includeInstance: boolean, msg: RelayXmrTxRequest): RelayXmrTxRequest.AsObject;
static serializeBinaryToWriter(message: RelayXmrTxRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): RelayXmrTxRequest;
static deserializeBinaryFromReader(message: RelayXmrTxRequest, reader: jspb.BinaryReader): RelayXmrTxRequest;
toObject(includeInstance?: boolean): CreateXmrSweepTxsRequest.AsObject;
static toObject(includeInstance: boolean, msg: CreateXmrSweepTxsRequest): CreateXmrSweepTxsRequest.AsObject;
static serializeBinaryToWriter(message: CreateXmrSweepTxsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateXmrSweepTxsRequest;
static deserializeBinaryFromReader(message: CreateXmrSweepTxsRequest, reader: jspb.BinaryReader): CreateXmrSweepTxsRequest;
}
export namespace RelayXmrTxRequest {
export namespace CreateXmrSweepTxsRequest {
export type AsObject = {
metadata: string,
address: string,
}
}
export class RelayXmrTxReply extends jspb.Message {
getHash(): string;
setHash(value: string): RelayXmrTxReply;
export class CreateXmrSweepTxsReply extends jspb.Message {
getTxsList(): Array<XmrTx>;
setTxsList(value: Array<XmrTx>): CreateXmrSweepTxsReply;
clearTxsList(): CreateXmrSweepTxsReply;
addTxs(value?: XmrTx, index?: number): XmrTx;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): RelayXmrTxReply.AsObject;
static toObject(includeInstance: boolean, msg: RelayXmrTxReply): RelayXmrTxReply.AsObject;
static serializeBinaryToWriter(message: RelayXmrTxReply, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): RelayXmrTxReply;
static deserializeBinaryFromReader(message: RelayXmrTxReply, reader: jspb.BinaryReader): RelayXmrTxReply;
toObject(includeInstance?: boolean): CreateXmrSweepTxsReply.AsObject;
static toObject(includeInstance: boolean, msg: CreateXmrSweepTxsReply): CreateXmrSweepTxsReply.AsObject;
static serializeBinaryToWriter(message: CreateXmrSweepTxsReply, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CreateXmrSweepTxsReply;
static deserializeBinaryFromReader(message: CreateXmrSweepTxsReply, reader: jspb.BinaryReader): CreateXmrSweepTxsReply;
}
export namespace RelayXmrTxReply {
export namespace CreateXmrSweepTxsReply {
export type AsObject = {
hash: string,
txsList: Array<XmrTx.AsObject>,
}
}
export class RelayXmrTxsRequest extends jspb.Message {
getMetadatasList(): Array<string>;
setMetadatasList(value: Array<string>): RelayXmrTxsRequest;
clearMetadatasList(): RelayXmrTxsRequest;
addMetadatas(value: string, index?: number): RelayXmrTxsRequest;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): RelayXmrTxsRequest.AsObject;
static toObject(includeInstance: boolean, msg: RelayXmrTxsRequest): RelayXmrTxsRequest.AsObject;
static serializeBinaryToWriter(message: RelayXmrTxsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): RelayXmrTxsRequest;
static deserializeBinaryFromReader(message: RelayXmrTxsRequest, reader: jspb.BinaryReader): RelayXmrTxsRequest;
}
export namespace RelayXmrTxsRequest {
export type AsObject = {
metadatasList: Array<string>,
}
}
export class RelayXmrTxsReply extends jspb.Message {
getHashesList(): Array<string>;
setHashesList(value: Array<string>): RelayXmrTxsReply;
clearHashesList(): RelayXmrTxsReply;
addHashes(value: string, index?: number): RelayXmrTxsReply;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): RelayXmrTxsReply.AsObject;
static toObject(includeInstance: boolean, msg: RelayXmrTxsReply): RelayXmrTxsReply.AsObject;
static serializeBinaryToWriter(message: RelayXmrTxsReply, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): RelayXmrTxsReply;
static deserializeBinaryFromReader(message: RelayXmrTxsReply, reader: jspb.BinaryReader): RelayXmrTxsReply;
}
export namespace RelayXmrTxsReply {
export type AsObject = {
hashesList: Array<string>,
}
}

View file

@ -56,6 +56,8 @@ goog.exportSymbol('proto.io.haveno.protobuffer.CreateCryptoCurrencyPaymentAccoun
goog.exportSymbol('proto.io.haveno.protobuffer.CreateCryptoCurrencyPaymentAccountRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.CreatePaymentAccountReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.CreatePaymentAccountRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.CreateXmrSweepTxsReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.CreateXmrTxReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.CreateXmrTxRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.DeleteAccountReply', null, global);
@ -149,8 +151,8 @@ goog.exportSymbol('proto.io.haveno.protobuffer.PostOfferRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RegisterDisputeAgentReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RegisterDisputeAgentRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RegisterNotificationListenerRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RelayXmrTxReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RelayXmrTxRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RelayXmrTxsReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RelayXmrTxsRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RemoveConnectionReply', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RemoveConnectionRequest', null, global);
goog.exportSymbol('proto.io.haveno.protobuffer.RemoveWalletPasswordReply', null, global);
@ -3466,16 +3468,16 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message}
* @constructor
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest = function(opt_data) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.io.haveno.protobuffer.RelayXmrTxRequest, jspb.Message);
goog.inherits(proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.displayName = 'proto.io.haveno.protobuffer.RelayXmrTxRequest';
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.displayName = 'proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest';
}
/**
* Generated by JsPbCodeGenerator.
@ -3487,16 +3489,58 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message}
* @constructor
*/
proto.io.haveno.protobuffer.RelayXmrTxReply = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.repeatedFields_, null);
};
goog.inherits(proto.io.haveno.protobuffer.RelayXmrTxReply, jspb.Message);
goog.inherits(proto.io.haveno.protobuffer.CreateXmrSweepTxsReply, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.displayName = 'proto.io.haveno.protobuffer.RelayXmrTxReply';
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.displayName = 'proto.io.haveno.protobuffer.CreateXmrSweepTxsReply';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.haveno.protobuffer.RelayXmrTxsRequest.repeatedFields_, null);
};
goog.inherits(proto.io.haveno.protobuffer.RelayXmrTxsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.displayName = 'proto.io.haveno.protobuffer.RelayXmrTxsRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.io.haveno.protobuffer.RelayXmrTxsReply.repeatedFields_, null);
};
goog.inherits(proto.io.haveno.protobuffer.RelayXmrTxsReply, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.displayName = 'proto.io.haveno.protobuffer.RelayXmrTxsReply';
}
/**
* Generated by JsPbCodeGenerator.
@ -24000,7 +24044,10 @@ contract: (f = msg.getContract()) && proto.io.haveno.protobuffer.ContractInfo.to
tradeVolume: jspb.Message.getFieldWithDefault(msg, 36, ""),
makerDepositTxId: jspb.Message.getFieldWithDefault(msg, 37, ""),
takerDepositTxId: jspb.Message.getFieldWithDefault(msg, 38, ""),
payoutTxId: jspb.Message.getFieldWithDefault(msg, 39, "")
payoutTxId: jspb.Message.getFieldWithDefault(msg, 39, ""),
startTime: jspb.Message.getFieldWithDefault(msg, 40, 0),
maxDurationMs: jspb.Message.getFieldWithDefault(msg, 41, 0),
deadlineTime: jspb.Message.getFieldWithDefault(msg, 42, 0)
};
if (includeInstance) {
@ -24195,6 +24242,18 @@ proto.io.haveno.protobuffer.TradeInfo.deserializeBinaryFromReader = function(msg
var value = /** @type {string} */ (reader.readString());
msg.setPayoutTxId(value);
break;
case 40:
var value = /** @type {number} */ (reader.readUint64());
msg.setStartTime(value);
break;
case 41:
var value = /** @type {number} */ (reader.readUint64());
msg.setMaxDurationMs(value);
break;
case 42:
var value = /** @type {number} */ (reader.readUint64());
msg.setDeadlineTime(value);
break;
default:
reader.skipField();
break;
@ -24499,6 +24558,27 @@ proto.io.haveno.protobuffer.TradeInfo.serializeBinaryToWriter = function(message
f
);
}
f = message.getStartTime();
if (f !== 0) {
writer.writeUint64(
40,
f
);
}
f = message.getMaxDurationMs();
if (f !== 0) {
writer.writeUint64(
41,
f
);
}
f = message.getDeadlineTime();
if (f !== 0) {
writer.writeUint64(
42,
f
);
}
};
@ -25242,6 +25322,60 @@ proto.io.haveno.protobuffer.TradeInfo.prototype.setPayoutTxId = function(value)
};
/**
* optional uint64 start_time = 40;
* @return {number}
*/
proto.io.haveno.protobuffer.TradeInfo.prototype.getStartTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 40, 0));
};
/**
* @param {number} value
* @return {!proto.io.haveno.protobuffer.TradeInfo} returns this
*/
proto.io.haveno.protobuffer.TradeInfo.prototype.setStartTime = function(value) {
return jspb.Message.setProto3IntField(this, 40, value);
};
/**
* optional uint64 max_duration_ms = 41;
* @return {number}
*/
proto.io.haveno.protobuffer.TradeInfo.prototype.getMaxDurationMs = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 41, 0));
};
/**
* @param {number} value
* @return {!proto.io.haveno.protobuffer.TradeInfo} returns this
*/
proto.io.haveno.protobuffer.TradeInfo.prototype.setMaxDurationMs = function(value) {
return jspb.Message.setProto3IntField(this, 41, value);
};
/**
* optional uint64 deadline_time = 42;
* @return {number}
*/
proto.io.haveno.protobuffer.TradeInfo.prototype.getDeadlineTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 42, 0));
};
/**
* @param {number} value
* @return {!proto.io.haveno.protobuffer.TradeInfo} returns this
*/
proto.io.haveno.protobuffer.TradeInfo.prototype.setDeadlineTime = function(value) {
return jspb.Message.setProto3IntField(this, 42, value);
};
@ -28378,8 +28512,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.RelayXmrTxRequest.toObject(opt_includeInstance, this);
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.toObject(opt_includeInstance, this);
};
@ -28388,13 +28522,13 @@ proto.io.haveno.protobuffer.RelayXmrTxRequest.prototype.toObject = function(opt_
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.RelayXmrTxRequest} msg The msg instance to transform.
* @param {!proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.toObject = function(includeInstance, msg) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
metadata: jspb.Message.getFieldWithDefault(msg, 1, "")
address: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
@ -28408,23 +28542,23 @@ metadata: jspb.Message.getFieldWithDefault(msg, 1, "")
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxRequest}
* @return {!proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest}
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.deserializeBinary = function(bytes) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.RelayXmrTxRequest;
return proto.io.haveno.protobuffer.RelayXmrTxRequest.deserializeBinaryFromReader(msg, reader);
var msg = new proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest;
return proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.RelayXmrTxRequest} msg The message object to deserialize into.
* @param {!proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxRequest}
* @return {!proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest}
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.deserializeBinaryFromReader = function(msg, reader) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
@ -28433,7 +28567,7 @@ proto.io.haveno.protobuffer.RelayXmrTxRequest.deserializeBinaryFromReader = func
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setMetadata(value);
msg.setAddress(value);
break;
default:
reader.skipField();
@ -28448,9 +28582,9 @@ proto.io.haveno.protobuffer.RelayXmrTxRequest.deserializeBinaryFromReader = func
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.prototype.serializeBinary = function() {
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.RelayXmrTxRequest.serializeBinaryToWriter(this, writer);
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
@ -28458,13 +28592,13 @@ proto.io.haveno.protobuffer.RelayXmrTxRequest.prototype.serializeBinary = functi
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.RelayXmrTxRequest} message
* @param {!proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.serializeBinaryToWriter = function(message, writer) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMetadata();
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
1,
@ -28475,24 +28609,31 @@ proto.io.haveno.protobuffer.RelayXmrTxRequest.serializeBinaryToWriter = function
/**
* optional string metadata = 1;
* optional string address = 1;
* @return {string}
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.prototype.getMetadata = function() {
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.RelayXmrTxRequest} returns this
* @return {!proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest} returns this
*/
proto.io.haveno.protobuffer.RelayXmrTxRequest.prototype.setMetadata = function(value) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsRequest.prototype.setAddress = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
@ -28508,8 +28649,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.RelayXmrTxReply.toObject(opt_includeInstance, this);
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.toObject(opt_includeInstance, this);
};
@ -28518,13 +28659,14 @@ proto.io.haveno.protobuffer.RelayXmrTxReply.prototype.toObject = function(opt_in
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.RelayXmrTxReply} msg The msg instance to transform.
* @param {!proto.io.haveno.protobuffer.CreateXmrSweepTxsReply} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.toObject = function(includeInstance, msg) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.toObject = function(includeInstance, msg) {
var f, obj = {
hash: jspb.Message.getFieldWithDefault(msg, 1, "")
txsList: jspb.Message.toObjectList(msg.getTxsList(),
proto.io.haveno.protobuffer.XmrTx.toObject, includeInstance)
};
if (includeInstance) {
@ -28538,23 +28680,23 @@ hash: jspb.Message.getFieldWithDefault(msg, 1, "")
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxReply}
* @return {!proto.io.haveno.protobuffer.CreateXmrSweepTxsReply}
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.deserializeBinary = function(bytes) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.RelayXmrTxReply;
return proto.io.haveno.protobuffer.RelayXmrTxReply.deserializeBinaryFromReader(msg, reader);
var msg = new proto.io.haveno.protobuffer.CreateXmrSweepTxsReply;
return proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.RelayXmrTxReply} msg The message object to deserialize into.
* @param {!proto.io.haveno.protobuffer.CreateXmrSweepTxsReply} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxReply}
* @return {!proto.io.haveno.protobuffer.CreateXmrSweepTxsReply}
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.deserializeBinaryFromReader = function(msg, reader) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
@ -28562,8 +28704,9 @@ proto.io.haveno.protobuffer.RelayXmrTxReply.deserializeBinaryFromReader = functi
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setHash(value);
var value = new proto.io.haveno.protobuffer.XmrTx;
reader.readMessage(value,proto.io.haveno.protobuffer.XmrTx.deserializeBinaryFromReader);
msg.addTxs(value);
break;
default:
reader.skipField();
@ -28578,9 +28721,9 @@ proto.io.haveno.protobuffer.RelayXmrTxReply.deserializeBinaryFromReader = functi
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.prototype.serializeBinary = function() {
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.RelayXmrTxReply.serializeBinaryToWriter(this, writer);
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
@ -28588,15 +28731,173 @@ proto.io.haveno.protobuffer.RelayXmrTxReply.prototype.serializeBinary = function
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.RelayXmrTxReply} message
* @param {!proto.io.haveno.protobuffer.CreateXmrSweepTxsReply} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.serializeBinaryToWriter = function(message, writer) {
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHash();
f = message.getTxsList();
if (f.length > 0) {
writer.writeString(
writer.writeRepeatedMessage(
1,
f,
proto.io.haveno.protobuffer.XmrTx.serializeBinaryToWriter
);
}
};
/**
* repeated XmrTx txs = 1;
* @return {!Array<!proto.io.haveno.protobuffer.XmrTx>}
*/
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.prototype.getTxsList = function() {
return /** @type{!Array<!proto.io.haveno.protobuffer.XmrTx>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.io.haveno.protobuffer.XmrTx, 1));
};
/**
* @param {!Array<!proto.io.haveno.protobuffer.XmrTx>} value
* @return {!proto.io.haveno.protobuffer.CreateXmrSweepTxsReply} returns this
*/
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.prototype.setTxsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.io.haveno.protobuffer.XmrTx=} opt_value
* @param {number=} opt_index
* @return {!proto.io.haveno.protobuffer.XmrTx}
*/
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.prototype.addTxs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.io.haveno.protobuffer.XmrTx, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.haveno.protobuffer.CreateXmrSweepTxsReply} returns this
*/
proto.io.haveno.protobuffer.CreateXmrSweepTxsReply.prototype.clearTxsList = function() {
return this.setTxsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.RelayXmrTxsRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.RelayXmrTxsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
metadatasList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsRequest}
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.RelayXmrTxsRequest;
return proto.io.haveno.protobuffer.RelayXmrTxsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.RelayXmrTxsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsRequest}
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.addMetadatas(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.RelayXmrTxsRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.RelayXmrTxsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMetadatasList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
@ -28605,20 +28906,195 @@ proto.io.haveno.protobuffer.RelayXmrTxReply.serializeBinaryToWriter = function(m
/**
* optional string hash = 1;
* @return {string}
* repeated string metadatas = 1;
* @return {!Array<string>}
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.prototype.getHash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
proto.io.haveno.protobuffer.RelayXmrTxsRequest.prototype.getMetadatasList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsRequest} returns this
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.prototype.setMetadatasList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.RelayXmrTxReply} returns this
* @param {number=} opt_index
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsRequest} returns this
*/
proto.io.haveno.protobuffer.RelayXmrTxReply.prototype.setHash = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
proto.io.haveno.protobuffer.RelayXmrTxsRequest.prototype.addMetadatas = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsRequest} returns this
*/
proto.io.haveno.protobuffer.RelayXmrTxsRequest.prototype.clearMetadatasList = function() {
return this.setMetadatasList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.prototype.toObject = function(opt_includeInstance) {
return proto.io.haveno.protobuffer.RelayXmrTxsReply.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.io.haveno.protobuffer.RelayXmrTxsReply} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.toObject = function(includeInstance, msg) {
var f, obj = {
hashesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsReply}
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.io.haveno.protobuffer.RelayXmrTxsReply;
return proto.io.haveno.protobuffer.RelayXmrTxsReply.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.io.haveno.protobuffer.RelayXmrTxsReply} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsReply}
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addHashes(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.io.haveno.protobuffer.RelayXmrTxsReply.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.io.haveno.protobuffer.RelayXmrTxsReply} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHashesList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
};
/**
* repeated string hashes = 2;
* @return {!Array<string>}
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.prototype.getHashesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};
/**
* @param {!Array<string>} value
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsReply} returns this
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.prototype.setHashesList = function(value) {
return jspb.Message.setField(this, 2, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsReply} returns this
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.prototype.addHashes = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.io.haveno.protobuffer.RelayXmrTxsReply} returns this
*/
proto.io.haveno.protobuffer.RelayXmrTxsReply.prototype.clearHashesList = function() {
return this.setHashesList([]);
};

File diff suppressed because one or more lines are too long

View file

@ -4507,8 +4507,8 @@ export namespace FasterPaymentsAccountPayload {
}
export class InteracETransferAccountPayload extends jspb.Message {
getEmail(): string;
setEmail(value: string): InteracETransferAccountPayload;
getEmailOrMobileNr(): string;
setEmailOrMobileNr(value: string): InteracETransferAccountPayload;
getHolderName(): string;
setHolderName(value: string): InteracETransferAccountPayload;
@ -4529,7 +4529,7 @@ export class InteracETransferAccountPayload extends jspb.Message {
export namespace InteracETransferAccountPayload {
export type AsObject = {
email: string,
emailOrMobileNr: string,
holderName: string,
question: string,
answer: string,
@ -5020,8 +5020,8 @@ export class TransferwiseUsdAccountPayload extends jspb.Message {
getHolderName(): string;
setHolderName(value: string): TransferwiseUsdAccountPayload;
getBeneficiaryAddress(): string;
setBeneficiaryAddress(value: string): TransferwiseUsdAccountPayload;
getHolderAddress(): string;
setHolderAddress(value: string): TransferwiseUsdAccountPayload;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TransferwiseUsdAccountPayload.AsObject;
@ -5035,7 +5035,7 @@ export namespace TransferwiseUsdAccountPayload {
export type AsObject = {
email: string,
holderName: string,
beneficiaryAddress: string,
holderAddress: string,
}
}
@ -7796,6 +7796,14 @@ export namespace PaymentAccountForm {
PAYPAL = 17,
VENMO = 18,
PAYSAFE = 19,
WECHAT_PAY = 20,
ALI_PAY = 21,
SWISH = 22,
TRANSFERWISE_USD = 23,
AMAZON_GIFT_CARD = 24,
ACH_TRANSFER = 25,
INTERAC_E_TRANSFER = 26,
US_POSTAL_MONEY_ORDER = 27,
}
}

View file

@ -38400,7 +38400,7 @@ proto.io.haveno.protobuffer.InteracETransferAccountPayload.prototype.toObject =
*/
proto.io.haveno.protobuffer.InteracETransferAccountPayload.toObject = function(includeInstance, msg) {
var f, obj = {
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
emailOrMobileNr: jspb.Message.getFieldWithDefault(msg, 1, ""),
holderName: jspb.Message.getFieldWithDefault(msg, 2, ""),
question: jspb.Message.getFieldWithDefault(msg, 3, ""),
answer: jspb.Message.getFieldWithDefault(msg, 4, "")
@ -38442,7 +38442,7 @@ proto.io.haveno.protobuffer.InteracETransferAccountPayload.deserializeBinaryFrom
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setEmail(value);
msg.setEmailOrMobileNr(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
@ -38485,7 +38485,7 @@ proto.io.haveno.protobuffer.InteracETransferAccountPayload.prototype.serializeBi
*/
proto.io.haveno.protobuffer.InteracETransferAccountPayload.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEmail();
f = message.getEmailOrMobileNr();
if (f.length > 0) {
writer.writeString(
1,
@ -38517,10 +38517,10 @@ proto.io.haveno.protobuffer.InteracETransferAccountPayload.serializeBinaryToWrit
/**
* optional string email = 1;
* optional string email_or_mobile_nr = 1;
* @return {string}
*/
proto.io.haveno.protobuffer.InteracETransferAccountPayload.prototype.getEmail = function() {
proto.io.haveno.protobuffer.InteracETransferAccountPayload.prototype.getEmailOrMobileNr = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
@ -38529,7 +38529,7 @@ proto.io.haveno.protobuffer.InteracETransferAccountPayload.prototype.getEmail =
* @param {string} value
* @return {!proto.io.haveno.protobuffer.InteracETransferAccountPayload} returns this
*/
proto.io.haveno.protobuffer.InteracETransferAccountPayload.prototype.setEmail = function(value) {
proto.io.haveno.protobuffer.InteracETransferAccountPayload.prototype.setEmailOrMobileNr = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
@ -42065,7 +42065,7 @@ proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.toObject = function(in
var f, obj = {
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
holderName: jspb.Message.getFieldWithDefault(msg, 2, ""),
beneficiaryAddress: jspb.Message.getFieldWithDefault(msg, 3, "")
holderAddress: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
@ -42112,7 +42112,7 @@ proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.deserializeBinaryFromR
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setBeneficiaryAddress(value);
msg.setHolderAddress(value);
break;
default:
reader.skipField();
@ -42157,7 +42157,7 @@ proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.serializeBinaryToWrite
f
);
}
f = message.getBeneficiaryAddress();
f = message.getHolderAddress();
if (f.length > 0) {
writer.writeString(
3,
@ -42204,10 +42204,10 @@ proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.prototype.setHolderNam
/**
* optional string beneficiary_address = 3;
* optional string holder_address = 3;
* @return {string}
*/
proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.prototype.getBeneficiaryAddress = function() {
proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.prototype.getHolderAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
@ -42216,7 +42216,7 @@ proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.prototype.getBeneficia
* @param {string} value
* @return {!proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload} returns this
*/
proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.prototype.setBeneficiaryAddress = function(value) {
proto.io.haveno.protobuffer.TransferwiseUsdAccountPayload.prototype.setHolderAddress = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
@ -62484,7 +62484,15 @@ proto.io.haveno.protobuffer.PaymentAccountForm.FormId = {
CASH_APP: 16,
PAYPAL: 17,
VENMO: 18,
PAYSAFE: 19
PAYSAFE: 19,
WECHAT_PAY: 20,
ALI_PAY: 21,
SWISH: 22,
TRANSFERWISE_USD: 23,
AMAZON_GIFT_CARD: 24,
ACH_TRANSFER: 25,
INTERAC_E_TRANSFER: 26,
US_POSTAL_MONEY_ORDER: 27
};
/**

File diff suppressed because one or more lines are too long