test havenod 1.0.1 and update dist

This commit is contained in:
woodser 2024-04-18 14:24:47 -04:00
parent 9e228fc865
commit 4ae2155f41
7 changed files with 406 additions and 406 deletions

View File

@ -2818,6 +2818,9 @@ export class ContractInfo extends jspb.Message {
getSellerNodeAddress(): string; getSellerNodeAddress(): string;
setSellerNodeAddress(value: string): ContractInfo; setSellerNodeAddress(value: string): ContractInfo;
getArbitratorNodeAddress(): string;
setArbitratorNodeAddress(value: string): ContractInfo;
getIsBuyerMakerAndSellerTaker(): boolean; getIsBuyerMakerAndSellerTaker(): boolean;
setIsBuyerMakerAndSellerTaker(value: boolean): ContractInfo; setIsBuyerMakerAndSellerTaker(value: boolean): ContractInfo;
@ -2846,9 +2849,6 @@ export class ContractInfo extends jspb.Message {
getLockTime(): number; getLockTime(): number;
setLockTime(value: number): ContractInfo; setLockTime(value: number): ContractInfo;
getArbitratorNodeAddress(): string;
setArbitratorNodeAddress(value: string): ContractInfo;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ContractInfo.AsObject; toObject(includeInstance?: boolean): ContractInfo.AsObject;
static toObject(includeInstance: boolean, msg: ContractInfo): ContractInfo.AsObject; static toObject(includeInstance: boolean, msg: ContractInfo): ContractInfo.AsObject;
@ -2861,6 +2861,7 @@ export namespace ContractInfo {
export type AsObject = { export type AsObject = {
buyerNodeAddress: string, buyerNodeAddress: string,
sellerNodeAddress: string, sellerNodeAddress: string,
arbitratorNodeAddress: string,
isBuyerMakerAndSellerTaker: boolean, isBuyerMakerAndSellerTaker: boolean,
makerAccountId: string, makerAccountId: string,
takerAccountId: string, takerAccountId: string,
@ -2869,7 +2870,6 @@ export namespace ContractInfo {
makerPayoutAddressString: string, makerPayoutAddressString: string,
takerPayoutAddressString: string, takerPayoutAddressString: string,
lockTime: number, lockTime: number,
arbitratorNodeAddress: string,
} }
} }

View File

@ -24480,15 +24480,15 @@ proto.io.haveno.protobuffer.ContractInfo.toObject = function(includeInstance, ms
var f, obj = { var f, obj = {
buyerNodeAddress: jspb.Message.getFieldWithDefault(msg, 1, ""), buyerNodeAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
sellerNodeAddress: jspb.Message.getFieldWithDefault(msg, 2, ""), sellerNodeAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
isBuyerMakerAndSellerTaker: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), arbitratorNodeAddress: jspb.Message.getFieldWithDefault(msg, 3, ""),
makerAccountId: jspb.Message.getFieldWithDefault(msg, 6, ""), isBuyerMakerAndSellerTaker: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
takerAccountId: jspb.Message.getFieldWithDefault(msg, 7, ""), makerAccountId: jspb.Message.getFieldWithDefault(msg, 7, ""),
takerAccountId: jspb.Message.getFieldWithDefault(msg, 8, ""),
makerPaymentAccountPayload: (f = msg.getMakerPaymentAccountPayload()) && pb_pb.PaymentAccountPayload.toObject(includeInstance, f), makerPaymentAccountPayload: (f = msg.getMakerPaymentAccountPayload()) && pb_pb.PaymentAccountPayload.toObject(includeInstance, f),
takerPaymentAccountPayload: (f = msg.getTakerPaymentAccountPayload()) && pb_pb.PaymentAccountPayload.toObject(includeInstance, f), takerPaymentAccountPayload: (f = msg.getTakerPaymentAccountPayload()) && pb_pb.PaymentAccountPayload.toObject(includeInstance, f),
makerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 10, ""), makerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 11, ""),
takerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 11, ""), takerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 12, ""),
lockTime: jspb.Message.getFieldWithDefault(msg, 12, 0), lockTime: jspb.Message.getFieldWithDefault(msg, 13, 0)
arbitratorNodeAddress: jspb.Message.getFieldWithDefault(msg, 100, "")
}; };
if (includeInstance) { if (includeInstance) {
@ -24533,44 +24533,44 @@ proto.io.haveno.protobuffer.ContractInfo.deserializeBinaryFromReader = function(
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setSellerNodeAddress(value); msg.setSellerNodeAddress(value);
break; break;
case 5: case 3:
var value = /** @type {string} */ (reader.readString());
msg.setArbitratorNodeAddress(value);
break;
case 6:
var value = /** @type {boolean} */ (reader.readBool()); var value = /** @type {boolean} */ (reader.readBool());
msg.setIsBuyerMakerAndSellerTaker(value); msg.setIsBuyerMakerAndSellerTaker(value);
break; break;
case 6: case 7:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setMakerAccountId(value); msg.setMakerAccountId(value);
break; break;
case 7: case 8:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setTakerAccountId(value); msg.setTakerAccountId(value);
break; break;
case 8:
var value = new pb_pb.PaymentAccountPayload;
reader.readMessage(value,pb_pb.PaymentAccountPayload.deserializeBinaryFromReader);
msg.setMakerPaymentAccountPayload(value);
break;
case 9: case 9:
var value = new pb_pb.PaymentAccountPayload; var value = new pb_pb.PaymentAccountPayload;
reader.readMessage(value,pb_pb.PaymentAccountPayload.deserializeBinaryFromReader); reader.readMessage(value,pb_pb.PaymentAccountPayload.deserializeBinaryFromReader);
msg.setTakerPaymentAccountPayload(value); msg.setMakerPaymentAccountPayload(value);
break; break;
case 10: case 10:
var value = /** @type {string} */ (reader.readString()); var value = new pb_pb.PaymentAccountPayload;
msg.setMakerPayoutAddressString(value); reader.readMessage(value,pb_pb.PaymentAccountPayload.deserializeBinaryFromReader);
msg.setTakerPaymentAccountPayload(value);
break; break;
case 11: case 11:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setTakerPayoutAddressString(value); msg.setMakerPayoutAddressString(value);
break; break;
case 12: case 12:
var value = /** @type {string} */ (reader.readString());
msg.setTakerPayoutAddressString(value);
break;
case 13:
var value = /** @type {number} */ (reader.readUint64()); var value = /** @type {number} */ (reader.readUint64());
msg.setLockTime(value); msg.setLockTime(value);
break; break;
case 100:
var value = /** @type {string} */ (reader.readString());
msg.setArbitratorNodeAddress(value);
break;
default: default:
reader.skipField(); reader.skipField();
break; break;
@ -24614,36 +24614,35 @@ proto.io.haveno.protobuffer.ContractInfo.serializeBinaryToWriter = function(mess
f f
); );
} }
f = message.getArbitratorNodeAddress();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getIsBuyerMakerAndSellerTaker(); f = message.getIsBuyerMakerAndSellerTaker();
if (f) { if (f) {
writer.writeBool( writer.writeBool(
5, 6,
f f
); );
} }
f = message.getMakerAccountId(); f = message.getMakerAccountId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(
6, 7,
f f
); );
} }
f = message.getTakerAccountId(); f = message.getTakerAccountId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(
7, 8,
f f
); );
} }
f = message.getMakerPaymentAccountPayload(); f = message.getMakerPaymentAccountPayload();
if (f != null) {
writer.writeMessage(
8,
f,
pb_pb.PaymentAccountPayload.serializeBinaryToWriter
);
}
f = message.getTakerPaymentAccountPayload();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
9, 9,
@ -24651,31 +24650,32 @@ proto.io.haveno.protobuffer.ContractInfo.serializeBinaryToWriter = function(mess
pb_pb.PaymentAccountPayload.serializeBinaryToWriter pb_pb.PaymentAccountPayload.serializeBinaryToWriter
); );
} }
f = message.getMakerPayoutAddressString(); f = message.getTakerPaymentAccountPayload();
if (f.length > 0) { if (f != null) {
writer.writeString( writer.writeMessage(
10, 10,
f f,
pb_pb.PaymentAccountPayload.serializeBinaryToWriter
); );
} }
f = message.getTakerPayoutAddressString(); f = message.getMakerPayoutAddressString();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(
11, 11,
f f
); );
} }
f = message.getLockTime(); f = message.getTakerPayoutAddressString();
if (f !== 0) { if (f.length > 0) {
writer.writeUint64( writer.writeString(
12, 12,
f f
); );
} }
f = message.getArbitratorNodeAddress(); f = message.getLockTime();
if (f.length > 0) { if (f !== 0) {
writer.writeString( writer.writeUint64(
100, 13,
f f
); );
} }
@ -24719,11 +24719,29 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.setSellerNodeAddress = functi
/** /**
* optional bool is_buyer_maker_and_seller_taker = 5; * optional string arbitrator_node_address = 3;
* @return {string}
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.getArbitratorNodeAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.setArbitratorNodeAddress = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional bool is_buyer_maker_and_seller_taker = 6;
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.getIsBuyerMakerAndSellerTaker = function() { proto.io.haveno.protobuffer.ContractInfo.prototype.getIsBuyerMakerAndSellerTaker = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
}; };
@ -24732,33 +24750,15 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.getIsBuyerMakerAndSellerTaker
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this * @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.setIsBuyerMakerAndSellerTaker = function(value) { proto.io.haveno.protobuffer.ContractInfo.prototype.setIsBuyerMakerAndSellerTaker = function(value) {
return jspb.Message.setProto3BooleanField(this, 5, value); return jspb.Message.setProto3BooleanField(this, 6, value);
}; };
/** /**
* optional string maker_account_id = 6; * optional string maker_account_id = 7;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.getMakerAccountId = function() { proto.io.haveno.protobuffer.ContractInfo.prototype.getMakerAccountId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.setMakerAccountId = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional string taker_account_id = 7;
* @return {string}
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerAccountId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
}; };
@ -24767,18 +24767,36 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerAccountId = function(
* @param {string} value * @param {string} value
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this * @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.setTakerAccountId = function(value) { proto.io.haveno.protobuffer.ContractInfo.prototype.setMakerAccountId = function(value) {
return jspb.Message.setProto3StringField(this, 7, value); return jspb.Message.setProto3StringField(this, 7, value);
}; };
/** /**
* optional PaymentAccountPayload maker_payment_account_payload = 8; * optional string taker_account_id = 8;
* @return {string}
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerAccountId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.setTakerAccountId = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* optional PaymentAccountPayload maker_payment_account_payload = 9;
* @return {?proto.io.haveno.protobuffer.PaymentAccountPayload} * @return {?proto.io.haveno.protobuffer.PaymentAccountPayload}
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.getMakerPaymentAccountPayload = function() { proto.io.haveno.protobuffer.ContractInfo.prototype.getMakerPaymentAccountPayload = function() {
return /** @type{?proto.io.haveno.protobuffer.PaymentAccountPayload} */ ( return /** @type{?proto.io.haveno.protobuffer.PaymentAccountPayload} */ (
jspb.Message.getWrapperField(this, pb_pb.PaymentAccountPayload, 8)); jspb.Message.getWrapperField(this, pb_pb.PaymentAccountPayload, 9));
}; };
@ -24787,7 +24805,7 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.getMakerPaymentAccountPayload
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this * @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.setMakerPaymentAccountPayload = function(value) { proto.io.haveno.protobuffer.ContractInfo.prototype.setMakerPaymentAccountPayload = function(value) {
return jspb.Message.setWrapperField(this, 8, value); return jspb.Message.setWrapperField(this, 9, value);
}; };
@ -24805,17 +24823,17 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.clearMakerPaymentAccountPaylo
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.hasMakerPaymentAccountPayload = function() { proto.io.haveno.protobuffer.ContractInfo.prototype.hasMakerPaymentAccountPayload = function() {
return jspb.Message.getField(this, 8) != null; return jspb.Message.getField(this, 9) != null;
}; };
/** /**
* optional PaymentAccountPayload taker_payment_account_payload = 9; * optional PaymentAccountPayload taker_payment_account_payload = 10;
* @return {?proto.io.haveno.protobuffer.PaymentAccountPayload} * @return {?proto.io.haveno.protobuffer.PaymentAccountPayload}
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerPaymentAccountPayload = function() { proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerPaymentAccountPayload = function() {
return /** @type{?proto.io.haveno.protobuffer.PaymentAccountPayload} */ ( return /** @type{?proto.io.haveno.protobuffer.PaymentAccountPayload} */ (
jspb.Message.getWrapperField(this, pb_pb.PaymentAccountPayload, 9)); jspb.Message.getWrapperField(this, pb_pb.PaymentAccountPayload, 10));
}; };
@ -24824,7 +24842,7 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerPaymentAccountPayload
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this * @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.setTakerPaymentAccountPayload = function(value) { proto.io.haveno.protobuffer.ContractInfo.prototype.setTakerPaymentAccountPayload = function(value) {
return jspb.Message.setWrapperField(this, 9, value); return jspb.Message.setWrapperField(this, 10, value);
}; };
@ -24842,33 +24860,15 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.clearTakerPaymentAccountPaylo
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.hasTakerPaymentAccountPayload = function() { proto.io.haveno.protobuffer.ContractInfo.prototype.hasTakerPaymentAccountPayload = function() {
return jspb.Message.getField(this, 9) != null; return jspb.Message.getField(this, 10) != null;
}; };
/** /**
* optional string maker_payout_address_string = 10; * optional string maker_payout_address_string = 11;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.getMakerPayoutAddressString = function() { proto.io.haveno.protobuffer.ContractInfo.prototype.getMakerPayoutAddressString = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.setMakerPayoutAddressString = function(value) {
return jspb.Message.setProto3StringField(this, 10, value);
};
/**
* optional string taker_payout_address_string = 11;
* @return {string}
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerPayoutAddressString = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
}; };
@ -24877,17 +24877,35 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerPayoutAddressString =
* @param {string} value * @param {string} value
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this * @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.setTakerPayoutAddressString = function(value) { proto.io.haveno.protobuffer.ContractInfo.prototype.setMakerPayoutAddressString = function(value) {
return jspb.Message.setProto3StringField(this, 11, value); return jspb.Message.setProto3StringField(this, 11, value);
}; };
/** /**
* optional uint64 lock_time = 12; * optional string taker_payout_address_string = 12;
* @return {string}
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerPayoutAddressString = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.setTakerPayoutAddressString = function(value) {
return jspb.Message.setProto3StringField(this, 12, value);
};
/**
* optional uint64 lock_time = 13;
* @return {number} * @return {number}
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.getLockTime = function() { proto.io.haveno.protobuffer.ContractInfo.prototype.getLockTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
}; };
@ -24896,25 +24914,7 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.getLockTime = function() {
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this * @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/ */
proto.io.haveno.protobuffer.ContractInfo.prototype.setLockTime = function(value) { proto.io.haveno.protobuffer.ContractInfo.prototype.setLockTime = function(value) {
return jspb.Message.setProto3IntField(this, 12, value); return jspb.Message.setProto3IntField(this, 13, value);
};
/**
* optional string arbitrator_node_address = 100;
* @return {string}
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.getArbitratorNodeAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 100, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.ContractInfo} returns this
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.setArbitratorNodeAddress = function(value) {
return jspb.Message.setProto3StringField(this, 100, value);
}; };

File diff suppressed because one or more lines are too long

View File

@ -5439,9 +5439,9 @@ export namespace PersistableEnvelope {
MAILBOX_MESSAGE_LIST = 15, MAILBOX_MESSAGE_LIST = 15,
IGNORED_MAILBOX_MAP = 16, IGNORED_MAILBOX_MAP = 16,
REMOVED_PAYLOADS_MAP = 17, REMOVED_PAYLOADS_MAP = 17,
XMR_ADDRESS_ENTRY_LIST = 1001, XMR_ADDRESS_ENTRY_LIST = 18,
SIGNED_OFFER_LIST = 1002, SIGNED_OFFER_LIST = 19,
ENCRYPTED_CONNECTION_LIST = 1003, ENCRYPTED_CONNECTION_LIST = 20,
} }
} }
@ -5994,6 +5994,11 @@ export class Tradable extends jspb.Message {
hasOpenOffer(): boolean; hasOpenOffer(): boolean;
clearOpenOffer(): Tradable; clearOpenOffer(): Tradable;
getSignedOffer(): SignedOffer | undefined;
setSignedOffer(value?: SignedOffer): Tradable;
hasSignedOffer(): boolean;
clearSignedOffer(): Tradable;
getBuyerAsMakerTrade(): BuyerAsMakerTrade | undefined; getBuyerAsMakerTrade(): BuyerAsMakerTrade | undefined;
setBuyerAsMakerTrade(value?: BuyerAsMakerTrade): Tradable; setBuyerAsMakerTrade(value?: BuyerAsMakerTrade): Tradable;
hasBuyerAsMakerTrade(): boolean; hasBuyerAsMakerTrade(): boolean;
@ -6019,11 +6024,6 @@ export class Tradable extends jspb.Message {
hasArbitratorTrade(): boolean; hasArbitratorTrade(): boolean;
clearArbitratorTrade(): Tradable; clearArbitratorTrade(): Tradable;
getSignedOffer(): SignedOffer | undefined;
setSignedOffer(value?: SignedOffer): Tradable;
hasSignedOffer(): boolean;
clearSignedOffer(): Tradable;
getMessageCase(): Tradable.MessageCase; getMessageCase(): Tradable.MessageCase;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
@ -6037,23 +6037,23 @@ export class Tradable extends jspb.Message {
export namespace Tradable { export namespace Tradable {
export type AsObject = { export type AsObject = {
openOffer?: OpenOffer.AsObject, openOffer?: OpenOffer.AsObject,
signedOffer?: SignedOffer.AsObject,
buyerAsMakerTrade?: BuyerAsMakerTrade.AsObject, buyerAsMakerTrade?: BuyerAsMakerTrade.AsObject,
buyerAsTakerTrade?: BuyerAsTakerTrade.AsObject, buyerAsTakerTrade?: BuyerAsTakerTrade.AsObject,
sellerAsMakerTrade?: SellerAsMakerTrade.AsObject, sellerAsMakerTrade?: SellerAsMakerTrade.AsObject,
sellerAsTakerTrade?: SellerAsTakerTrade.AsObject, sellerAsTakerTrade?: SellerAsTakerTrade.AsObject,
arbitratorTrade?: ArbitratorTrade.AsObject, arbitratorTrade?: ArbitratorTrade.AsObject,
signedOffer?: SignedOffer.AsObject,
} }
export enum MessageCase { export enum MessageCase {
MESSAGE_NOT_SET = 0, MESSAGE_NOT_SET = 0,
OPEN_OFFER = 1, OPEN_OFFER = 1,
BUYER_AS_MAKER_TRADE = 2, SIGNED_OFFER = 2,
BUYER_AS_TAKER_TRADE = 3, BUYER_AS_MAKER_TRADE = 3,
SELLER_AS_MAKER_TRADE = 4, BUYER_AS_TAKER_TRADE = 4,
SELLER_AS_TAKER_TRADE = 5, SELLER_AS_MAKER_TRADE = 5,
ARBITRATOR_TRADE = 6, SELLER_AS_TAKER_TRADE = 6,
SIGNED_OFFER = 1001, ARBITRATOR_TRADE = 7,
} }
} }

532
dist/protobuf/pb_pb.js vendored
View File

@ -1567,7 +1567,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.OfferPayload = function(opt_data) { proto.io.haveno.protobuffer.OfferPayload = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, 500, proto.io.haveno.protobuffer.OfferPayload.repeatedFields_, null); jspb.Message.initialize(this, opt_data, 0, -1, proto.io.haveno.protobuffer.OfferPayload.repeatedFields_, null);
}; };
goog.inherits(proto.io.haveno.protobuffer.OfferPayload, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.OfferPayload, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
@ -3016,7 +3016,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope = function(opt_data) { proto.io.haveno.protobuffer.PersistableEnvelope = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, 500, null, proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_); jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_);
}; };
goog.inherits(proto.io.haveno.protobuffer.PersistableEnvelope, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.PersistableEnvelope, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
@ -3436,7 +3436,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor * @constructor
*/ */
proto.io.haveno.protobuffer.Tradable = function(opt_data) { proto.io.haveno.protobuffer.Tradable = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, 500, null, proto.io.haveno.protobuffer.Tradable.oneofGroups_); jspb.Message.initialize(this, opt_data, 0, -1, null, proto.io.haveno.protobuffer.Tradable.oneofGroups_);
}; };
goog.inherits(proto.io.haveno.protobuffer.Tradable, jspb.Message); goog.inherits(proto.io.haveno.protobuffer.Tradable, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
@ -25329,7 +25329,7 @@ proto.io.haveno.protobuffer.MailboxStoragePayload.prototype.clearExtraDataMap =
* @private {!Array<number>} * @private {!Array<number>}
* @const * @const
*/ */
proto.io.haveno.protobuffer.OfferPayload.repeatedFields_ = [21,23,1003]; proto.io.haveno.protobuffer.OfferPayload.repeatedFields_ = [21,23,38];
@ -25399,7 +25399,7 @@ proto.io.haveno.protobuffer.OfferPayload.toObject = function(includeInstance, ms
protocolVersion: jspb.Message.getFieldWithDefault(msg, 35, 0), protocolVersion: jspb.Message.getFieldWithDefault(msg, 35, 0),
arbitratorSigner: (f = msg.getArbitratorSigner()) && proto.io.haveno.protobuffer.NodeAddress.toObject(includeInstance, f), arbitratorSigner: (f = msg.getArbitratorSigner()) && proto.io.haveno.protobuffer.NodeAddress.toObject(includeInstance, f),
arbitratorSignature: msg.getArbitratorSignature_asB64(), arbitratorSignature: msg.getArbitratorSignature_asB64(),
reserveTxKeyImagesList: (f = jspb.Message.getRepeatedField(msg, 1003)) == null ? undefined : f reserveTxKeyImagesList: (f = jspb.Message.getRepeatedField(msg, 38)) == null ? undefined : f
}; };
if (includeInstance) { if (includeInstance) {
@ -25580,16 +25580,16 @@ proto.io.haveno.protobuffer.OfferPayload.deserializeBinaryFromReader = function(
var value = /** @type {number} */ (reader.readInt32()); var value = /** @type {number} */ (reader.readInt32());
msg.setProtocolVersion(value); msg.setProtocolVersion(value);
break; break;
case 1001: case 36:
var value = new proto.io.haveno.protobuffer.NodeAddress; var value = new proto.io.haveno.protobuffer.NodeAddress;
reader.readMessage(value,proto.io.haveno.protobuffer.NodeAddress.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.NodeAddress.deserializeBinaryFromReader);
msg.setArbitratorSigner(value); msg.setArbitratorSigner(value);
break; break;
case 1002: case 37:
var value = /** @type {!Uint8Array} */ (reader.readBytes()); var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setArbitratorSignature(value); msg.setArbitratorSignature(value);
break; break;
case 1003: case 38:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.addReserveTxKeyImages(value); msg.addReserveTxKeyImages(value);
break; break;
@ -25869,7 +25869,7 @@ proto.io.haveno.protobuffer.OfferPayload.serializeBinaryToWriter = function(mess
f = message.getArbitratorSigner(); f = message.getArbitratorSigner();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
1001, 36,
f, f,
proto.io.haveno.protobuffer.NodeAddress.serializeBinaryToWriter proto.io.haveno.protobuffer.NodeAddress.serializeBinaryToWriter
); );
@ -25877,14 +25877,14 @@ proto.io.haveno.protobuffer.OfferPayload.serializeBinaryToWriter = function(mess
f = message.getArbitratorSignature_asU8(); f = message.getArbitratorSignature_asU8();
if (f.length > 0) { if (f.length > 0) {
writer.writeBytes( writer.writeBytes(
1002, 37,
f f
); );
} }
f = message.getReserveTxKeyImagesList(); f = message.getReserveTxKeyImagesList();
if (f.length > 0) { if (f.length > 0) {
writer.writeRepeatedString( writer.writeRepeatedString(
1003, 38,
f f
); );
} }
@ -26602,12 +26602,12 @@ proto.io.haveno.protobuffer.OfferPayload.prototype.setProtocolVersion = function
/** /**
* optional NodeAddress arbitrator_signer = 1001; * optional NodeAddress arbitrator_signer = 36;
* @return {?proto.io.haveno.protobuffer.NodeAddress} * @return {?proto.io.haveno.protobuffer.NodeAddress}
*/ */
proto.io.haveno.protobuffer.OfferPayload.prototype.getArbitratorSigner = function() { proto.io.haveno.protobuffer.OfferPayload.prototype.getArbitratorSigner = function() {
return /** @type{?proto.io.haveno.protobuffer.NodeAddress} */ ( return /** @type{?proto.io.haveno.protobuffer.NodeAddress} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.NodeAddress, 1001)); jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.NodeAddress, 36));
}; };
@ -26616,7 +26616,7 @@ proto.io.haveno.protobuffer.OfferPayload.prototype.getArbitratorSigner = functio
* @return {!proto.io.haveno.protobuffer.OfferPayload} returns this * @return {!proto.io.haveno.protobuffer.OfferPayload} returns this
*/ */
proto.io.haveno.protobuffer.OfferPayload.prototype.setArbitratorSigner = function(value) { proto.io.haveno.protobuffer.OfferPayload.prototype.setArbitratorSigner = function(value) {
return jspb.Message.setWrapperField(this, 1001, value); return jspb.Message.setWrapperField(this, 36, value);
}; };
@ -26634,21 +26634,21 @@ proto.io.haveno.protobuffer.OfferPayload.prototype.clearArbitratorSigner = funct
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.OfferPayload.prototype.hasArbitratorSigner = function() { proto.io.haveno.protobuffer.OfferPayload.prototype.hasArbitratorSigner = function() {
return jspb.Message.getField(this, 1001) != null; return jspb.Message.getField(this, 36) != null;
}; };
/** /**
* optional bytes arbitrator_signature = 1002; * optional bytes arbitrator_signature = 37;
* @return {!(string|Uint8Array)} * @return {!(string|Uint8Array)}
*/ */
proto.io.haveno.protobuffer.OfferPayload.prototype.getArbitratorSignature = function() { proto.io.haveno.protobuffer.OfferPayload.prototype.getArbitratorSignature = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1002, "")); return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
}; };
/** /**
* optional bytes arbitrator_signature = 1002; * optional bytes arbitrator_signature = 37;
* This is a type-conversion wrapper around `getArbitratorSignature()` * This is a type-conversion wrapper around `getArbitratorSignature()`
* @return {string} * @return {string}
*/ */
@ -26659,7 +26659,7 @@ proto.io.haveno.protobuffer.OfferPayload.prototype.getArbitratorSignature_asB64
/** /**
* optional bytes arbitrator_signature = 1002; * optional bytes arbitrator_signature = 37;
* Note that Uint8Array is not supported on all browsers. * Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array * @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getArbitratorSignature()` * This is a type-conversion wrapper around `getArbitratorSignature()`
@ -26676,16 +26676,16 @@ proto.io.haveno.protobuffer.OfferPayload.prototype.getArbitratorSignature_asU8 =
* @return {!proto.io.haveno.protobuffer.OfferPayload} returns this * @return {!proto.io.haveno.protobuffer.OfferPayload} returns this
*/ */
proto.io.haveno.protobuffer.OfferPayload.prototype.setArbitratorSignature = function(value) { proto.io.haveno.protobuffer.OfferPayload.prototype.setArbitratorSignature = function(value) {
return jspb.Message.setProto3BytesField(this, 1002, value); return jspb.Message.setProto3BytesField(this, 37, value);
}; };
/** /**
* repeated string reserve_tx_key_images = 1003; * repeated string reserve_tx_key_images = 38;
* @return {!Array<string>} * @return {!Array<string>}
*/ */
proto.io.haveno.protobuffer.OfferPayload.prototype.getReserveTxKeyImagesList = function() { proto.io.haveno.protobuffer.OfferPayload.prototype.getReserveTxKeyImagesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1003)); return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 38));
}; };
@ -26694,7 +26694,7 @@ proto.io.haveno.protobuffer.OfferPayload.prototype.getReserveTxKeyImagesList = f
* @return {!proto.io.haveno.protobuffer.OfferPayload} returns this * @return {!proto.io.haveno.protobuffer.OfferPayload} returns this
*/ */
proto.io.haveno.protobuffer.OfferPayload.prototype.setReserveTxKeyImagesList = function(value) { proto.io.haveno.protobuffer.OfferPayload.prototype.setReserveTxKeyImagesList = function(value) {
return jspb.Message.setField(this, 1003, value || []); return jspb.Message.setField(this, 38, value || []);
}; };
@ -26704,7 +26704,7 @@ proto.io.haveno.protobuffer.OfferPayload.prototype.setReserveTxKeyImagesList = f
* @return {!proto.io.haveno.protobuffer.OfferPayload} returns this * @return {!proto.io.haveno.protobuffer.OfferPayload} returns this
*/ */
proto.io.haveno.protobuffer.OfferPayload.prototype.addReserveTxKeyImages = function(value, opt_index) { proto.io.haveno.protobuffer.OfferPayload.prototype.addReserveTxKeyImages = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1003, value, opt_index); return jspb.Message.addToRepeatedField(this, 38, value, opt_index);
}; };
@ -43967,7 +43967,7 @@ proto.io.haveno.protobuffer.SwiftAccountPayload.prototype.setIntermediaryAddress
* @private {!Array<!Array<number>>} * @private {!Array<!Array<number>>}
* @const * @const
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1001,1002,1003]]; proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]];
/** /**
* @enum {number} * @enum {number}
@ -43991,9 +43991,9 @@ proto.io.haveno.protobuffer.PersistableEnvelope.MessageCase = {
MAILBOX_MESSAGE_LIST: 15, MAILBOX_MESSAGE_LIST: 15,
IGNORED_MAILBOX_MAP: 16, IGNORED_MAILBOX_MAP: 16,
REMOVED_PAYLOADS_MAP: 17, REMOVED_PAYLOADS_MAP: 17,
XMR_ADDRESS_ENTRY_LIST: 1001, XMR_ADDRESS_ENTRY_LIST: 18,
SIGNED_OFFER_LIST: 1002, SIGNED_OFFER_LIST: 19,
ENCRYPTED_CONNECTION_LIST: 1003 ENCRYPTED_CONNECTION_LIST: 20
}; };
/** /**
@ -44175,17 +44175,17 @@ proto.io.haveno.protobuffer.PersistableEnvelope.deserializeBinaryFromReader = fu
reader.readMessage(value,proto.io.haveno.protobuffer.RemovedPayloadsMap.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.RemovedPayloadsMap.deserializeBinaryFromReader);
msg.setRemovedPayloadsMap(value); msg.setRemovedPayloadsMap(value);
break; break;
case 1001: case 18:
var value = new proto.io.haveno.protobuffer.XmrAddressEntryList; var value = new proto.io.haveno.protobuffer.XmrAddressEntryList;
reader.readMessage(value,proto.io.haveno.protobuffer.XmrAddressEntryList.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.XmrAddressEntryList.deserializeBinaryFromReader);
msg.setXmrAddressEntryList(value); msg.setXmrAddressEntryList(value);
break; break;
case 1002: case 19:
var value = new proto.io.haveno.protobuffer.SignedOfferList; var value = new proto.io.haveno.protobuffer.SignedOfferList;
reader.readMessage(value,proto.io.haveno.protobuffer.SignedOfferList.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.SignedOfferList.deserializeBinaryFromReader);
msg.setSignedOfferList(value); msg.setSignedOfferList(value);
break; break;
case 1003: case 20:
var value = new proto.io.haveno.protobuffer.EncryptedConnectionList; var value = new proto.io.haveno.protobuffer.EncryptedConnectionList;
reader.readMessage(value,proto.io.haveno.protobuffer.EncryptedConnectionList.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.EncryptedConnectionList.deserializeBinaryFromReader);
msg.setEncryptedConnectionList(value); msg.setEncryptedConnectionList(value);
@ -44358,7 +44358,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.serializeBinaryToWriter = functi
f = message.getXmrAddressEntryList(); f = message.getXmrAddressEntryList();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
1001, 18,
f, f,
proto.io.haveno.protobuffer.XmrAddressEntryList.serializeBinaryToWriter proto.io.haveno.protobuffer.XmrAddressEntryList.serializeBinaryToWriter
); );
@ -44366,7 +44366,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.serializeBinaryToWriter = functi
f = message.getSignedOfferList(); f = message.getSignedOfferList();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
1002, 19,
f, f,
proto.io.haveno.protobuffer.SignedOfferList.serializeBinaryToWriter proto.io.haveno.protobuffer.SignedOfferList.serializeBinaryToWriter
); );
@ -44374,7 +44374,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.serializeBinaryToWriter = functi
f = message.getEncryptedConnectionList(); f = message.getEncryptedConnectionList();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
1003, 20,
f, f,
proto.io.haveno.protobuffer.EncryptedConnectionList.serializeBinaryToWriter proto.io.haveno.protobuffer.EncryptedConnectionList.serializeBinaryToWriter
); );
@ -45012,12 +45012,12 @@ proto.io.haveno.protobuffer.PersistableEnvelope.prototype.hasRemovedPayloadsMap
/** /**
* optional XmrAddressEntryList xmr_address_entry_list = 1001; * optional XmrAddressEntryList xmr_address_entry_list = 18;
* @return {?proto.io.haveno.protobuffer.XmrAddressEntryList} * @return {?proto.io.haveno.protobuffer.XmrAddressEntryList}
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getXmrAddressEntryList = function() { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getXmrAddressEntryList = function() {
return /** @type{?proto.io.haveno.protobuffer.XmrAddressEntryList} */ ( return /** @type{?proto.io.haveno.protobuffer.XmrAddressEntryList} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.XmrAddressEntryList, 1001)); jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.XmrAddressEntryList, 18));
}; };
@ -45026,7 +45026,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getXmrAddressEntryList
* @return {!proto.io.haveno.protobuffer.PersistableEnvelope} returns this * @return {!proto.io.haveno.protobuffer.PersistableEnvelope} returns this
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.setXmrAddressEntryList = function(value) { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.setXmrAddressEntryList = function(value) {
return jspb.Message.setOneofWrapperField(this, 1001, proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_[0], value); return jspb.Message.setOneofWrapperField(this, 18, proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_[0], value);
}; };
@ -45044,17 +45044,17 @@ proto.io.haveno.protobuffer.PersistableEnvelope.prototype.clearXmrAddressEntryLi
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.hasXmrAddressEntryList = function() { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.hasXmrAddressEntryList = function() {
return jspb.Message.getField(this, 1001) != null; return jspb.Message.getField(this, 18) != null;
}; };
/** /**
* optional SignedOfferList signed_offer_list = 1002; * optional SignedOfferList signed_offer_list = 19;
* @return {?proto.io.haveno.protobuffer.SignedOfferList} * @return {?proto.io.haveno.protobuffer.SignedOfferList}
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getSignedOfferList = function() { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getSignedOfferList = function() {
return /** @type{?proto.io.haveno.protobuffer.SignedOfferList} */ ( return /** @type{?proto.io.haveno.protobuffer.SignedOfferList} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.SignedOfferList, 1002)); jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.SignedOfferList, 19));
}; };
@ -45063,7 +45063,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getSignedOfferList = f
* @return {!proto.io.haveno.protobuffer.PersistableEnvelope} returns this * @return {!proto.io.haveno.protobuffer.PersistableEnvelope} returns this
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.setSignedOfferList = function(value) { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.setSignedOfferList = function(value) {
return jspb.Message.setOneofWrapperField(this, 1002, proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_[0], value); return jspb.Message.setOneofWrapperField(this, 19, proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_[0], value);
}; };
@ -45081,17 +45081,17 @@ proto.io.haveno.protobuffer.PersistableEnvelope.prototype.clearSignedOfferList =
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.hasSignedOfferList = function() { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.hasSignedOfferList = function() {
return jspb.Message.getField(this, 1002) != null; return jspb.Message.getField(this, 19) != null;
}; };
/** /**
* optional EncryptedConnectionList encrypted_connection_list = 1003; * optional EncryptedConnectionList encrypted_connection_list = 20;
* @return {?proto.io.haveno.protobuffer.EncryptedConnectionList} * @return {?proto.io.haveno.protobuffer.EncryptedConnectionList}
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getEncryptedConnectionList = function() { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getEncryptedConnectionList = function() {
return /** @type{?proto.io.haveno.protobuffer.EncryptedConnectionList} */ ( return /** @type{?proto.io.haveno.protobuffer.EncryptedConnectionList} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.EncryptedConnectionList, 1003)); jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.EncryptedConnectionList, 20));
}; };
@ -45100,7 +45100,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getEncryptedConnection
* @return {!proto.io.haveno.protobuffer.PersistableEnvelope} returns this * @return {!proto.io.haveno.protobuffer.PersistableEnvelope} returns this
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.setEncryptedConnectionList = function(value) { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.setEncryptedConnectionList = function(value) {
return jspb.Message.setOneofWrapperField(this, 1003, proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_[0], value); return jspb.Message.setOneofWrapperField(this, 20, proto.io.haveno.protobuffer.PersistableEnvelope.oneofGroups_[0], value);
}; };
@ -45118,7 +45118,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.prototype.clearEncryptedConnecti
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.hasEncryptedConnectionList = function() { proto.io.haveno.protobuffer.PersistableEnvelope.prototype.hasEncryptedConnectionList = function() {
return jspb.Message.getField(this, 1003) != null; return jspb.Message.getField(this, 20) != null;
}; };
@ -49110,7 +49110,7 @@ proto.io.haveno.protobuffer.OpenOffer.prototype.setReserveTxKey = function(value
* @private {!Array<!Array<number>>} * @private {!Array<!Array<number>>}
* @const * @const
*/ */
proto.io.haveno.protobuffer.Tradable.oneofGroups_ = [[1,2,3,4,5,6,1001]]; proto.io.haveno.protobuffer.Tradable.oneofGroups_ = [[1,2,3,4,5,6,7]];
/** /**
* @enum {number} * @enum {number}
@ -49118,12 +49118,12 @@ proto.io.haveno.protobuffer.Tradable.oneofGroups_ = [[1,2,3,4,5,6,1001]];
proto.io.haveno.protobuffer.Tradable.MessageCase = { proto.io.haveno.protobuffer.Tradable.MessageCase = {
MESSAGE_NOT_SET: 0, MESSAGE_NOT_SET: 0,
OPEN_OFFER: 1, OPEN_OFFER: 1,
BUYER_AS_MAKER_TRADE: 2, SIGNED_OFFER: 2,
BUYER_AS_TAKER_TRADE: 3, BUYER_AS_MAKER_TRADE: 3,
SELLER_AS_MAKER_TRADE: 4, BUYER_AS_TAKER_TRADE: 4,
SELLER_AS_TAKER_TRADE: 5, SELLER_AS_MAKER_TRADE: 5,
ARBITRATOR_TRADE: 6, SELLER_AS_TAKER_TRADE: 6,
SIGNED_OFFER: 1001 ARBITRATOR_TRADE: 7
}; };
/** /**
@ -49165,12 +49165,12 @@ proto.io.haveno.protobuffer.Tradable.prototype.toObject = function(opt_includeIn
proto.io.haveno.protobuffer.Tradable.toObject = function(includeInstance, msg) { proto.io.haveno.protobuffer.Tradable.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
openOffer: (f = msg.getOpenOffer()) && proto.io.haveno.protobuffer.OpenOffer.toObject(includeInstance, f), openOffer: (f = msg.getOpenOffer()) && proto.io.haveno.protobuffer.OpenOffer.toObject(includeInstance, f),
signedOffer: (f = msg.getSignedOffer()) && proto.io.haveno.protobuffer.SignedOffer.toObject(includeInstance, f),
buyerAsMakerTrade: (f = msg.getBuyerAsMakerTrade()) && proto.io.haveno.protobuffer.BuyerAsMakerTrade.toObject(includeInstance, f), buyerAsMakerTrade: (f = msg.getBuyerAsMakerTrade()) && proto.io.haveno.protobuffer.BuyerAsMakerTrade.toObject(includeInstance, f),
buyerAsTakerTrade: (f = msg.getBuyerAsTakerTrade()) && proto.io.haveno.protobuffer.BuyerAsTakerTrade.toObject(includeInstance, f), buyerAsTakerTrade: (f = msg.getBuyerAsTakerTrade()) && proto.io.haveno.protobuffer.BuyerAsTakerTrade.toObject(includeInstance, f),
sellerAsMakerTrade: (f = msg.getSellerAsMakerTrade()) && proto.io.haveno.protobuffer.SellerAsMakerTrade.toObject(includeInstance, f), sellerAsMakerTrade: (f = msg.getSellerAsMakerTrade()) && proto.io.haveno.protobuffer.SellerAsMakerTrade.toObject(includeInstance, f),
sellerAsTakerTrade: (f = msg.getSellerAsTakerTrade()) && proto.io.haveno.protobuffer.SellerAsTakerTrade.toObject(includeInstance, f), sellerAsTakerTrade: (f = msg.getSellerAsTakerTrade()) && proto.io.haveno.protobuffer.SellerAsTakerTrade.toObject(includeInstance, f),
arbitratorTrade: (f = msg.getArbitratorTrade()) && proto.io.haveno.protobuffer.ArbitratorTrade.toObject(includeInstance, f), arbitratorTrade: (f = msg.getArbitratorTrade()) && proto.io.haveno.protobuffer.ArbitratorTrade.toObject(includeInstance, f)
signedOffer: (f = msg.getSignedOffer()) && proto.io.haveno.protobuffer.SignedOffer.toObject(includeInstance, f)
}; };
if (includeInstance) { if (includeInstance) {
@ -49213,35 +49213,35 @@ proto.io.haveno.protobuffer.Tradable.deserializeBinaryFromReader = function(msg,
msg.setOpenOffer(value); msg.setOpenOffer(value);
break; break;
case 2: case 2:
var value = new proto.io.haveno.protobuffer.SignedOffer;
reader.readMessage(value,proto.io.haveno.protobuffer.SignedOffer.deserializeBinaryFromReader);
msg.setSignedOffer(value);
break;
case 3:
var value = new proto.io.haveno.protobuffer.BuyerAsMakerTrade; var value = new proto.io.haveno.protobuffer.BuyerAsMakerTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.BuyerAsMakerTrade.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.BuyerAsMakerTrade.deserializeBinaryFromReader);
msg.setBuyerAsMakerTrade(value); msg.setBuyerAsMakerTrade(value);
break; break;
case 3: case 4:
var value = new proto.io.haveno.protobuffer.BuyerAsTakerTrade; var value = new proto.io.haveno.protobuffer.BuyerAsTakerTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.BuyerAsTakerTrade.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.BuyerAsTakerTrade.deserializeBinaryFromReader);
msg.setBuyerAsTakerTrade(value); msg.setBuyerAsTakerTrade(value);
break; break;
case 4: case 5:
var value = new proto.io.haveno.protobuffer.SellerAsMakerTrade; var value = new proto.io.haveno.protobuffer.SellerAsMakerTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.SellerAsMakerTrade.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.SellerAsMakerTrade.deserializeBinaryFromReader);
msg.setSellerAsMakerTrade(value); msg.setSellerAsMakerTrade(value);
break; break;
case 5: case 6:
var value = new proto.io.haveno.protobuffer.SellerAsTakerTrade; var value = new proto.io.haveno.protobuffer.SellerAsTakerTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.SellerAsTakerTrade.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.SellerAsTakerTrade.deserializeBinaryFromReader);
msg.setSellerAsTakerTrade(value); msg.setSellerAsTakerTrade(value);
break; break;
case 6: case 7:
var value = new proto.io.haveno.protobuffer.ArbitratorTrade; var value = new proto.io.haveno.protobuffer.ArbitratorTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.ArbitratorTrade.deserializeBinaryFromReader); reader.readMessage(value,proto.io.haveno.protobuffer.ArbitratorTrade.deserializeBinaryFromReader);
msg.setArbitratorTrade(value); msg.setArbitratorTrade(value);
break; break;
case 1001:
var value = new proto.io.haveno.protobuffer.SignedOffer;
reader.readMessage(value,proto.io.haveno.protobuffer.SignedOffer.deserializeBinaryFromReader);
msg.setSignedOffer(value);
break;
default: default:
reader.skipField(); reader.skipField();
break; break;
@ -49279,18 +49279,26 @@ proto.io.haveno.protobuffer.Tradable.serializeBinaryToWriter = function(message,
proto.io.haveno.protobuffer.OpenOffer.serializeBinaryToWriter proto.io.haveno.protobuffer.OpenOffer.serializeBinaryToWriter
); );
} }
f = message.getBuyerAsMakerTrade(); f = message.getSignedOffer();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
2, 2,
f, f,
proto.io.haveno.protobuffer.SignedOffer.serializeBinaryToWriter
);
}
f = message.getBuyerAsMakerTrade();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.haveno.protobuffer.BuyerAsMakerTrade.serializeBinaryToWriter proto.io.haveno.protobuffer.BuyerAsMakerTrade.serializeBinaryToWriter
); );
} }
f = message.getBuyerAsTakerTrade(); f = message.getBuyerAsTakerTrade();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
3, 4,
f, f,
proto.io.haveno.protobuffer.BuyerAsTakerTrade.serializeBinaryToWriter proto.io.haveno.protobuffer.BuyerAsTakerTrade.serializeBinaryToWriter
); );
@ -49298,7 +49306,7 @@ proto.io.haveno.protobuffer.Tradable.serializeBinaryToWriter = function(message,
f = message.getSellerAsMakerTrade(); f = message.getSellerAsMakerTrade();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
4, 5,
f, f,
proto.io.haveno.protobuffer.SellerAsMakerTrade.serializeBinaryToWriter proto.io.haveno.protobuffer.SellerAsMakerTrade.serializeBinaryToWriter
); );
@ -49306,7 +49314,7 @@ proto.io.haveno.protobuffer.Tradable.serializeBinaryToWriter = function(message,
f = message.getSellerAsTakerTrade(); f = message.getSellerAsTakerTrade();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
5, 6,
f, f,
proto.io.haveno.protobuffer.SellerAsTakerTrade.serializeBinaryToWriter proto.io.haveno.protobuffer.SellerAsTakerTrade.serializeBinaryToWriter
); );
@ -49314,19 +49322,11 @@ proto.io.haveno.protobuffer.Tradable.serializeBinaryToWriter = function(message,
f = message.getArbitratorTrade(); f = message.getArbitratorTrade();
if (f != null) { if (f != null) {
writer.writeMessage( writer.writeMessage(
6, 7,
f, f,
proto.io.haveno.protobuffer.ArbitratorTrade.serializeBinaryToWriter proto.io.haveno.protobuffer.ArbitratorTrade.serializeBinaryToWriter
); );
} }
f = message.getSignedOffer();
if (f != null) {
writer.writeMessage(
1001,
f,
proto.io.haveno.protobuffer.SignedOffer.serializeBinaryToWriter
);
}
}; };
@ -49368,197 +49368,12 @@ proto.io.haveno.protobuffer.Tradable.prototype.hasOpenOffer = function() {
/** /**
* optional BuyerAsMakerTrade buyer_as_maker_trade = 2; * optional SignedOffer signed_offer = 2;
* @return {?proto.io.haveno.protobuffer.BuyerAsMakerTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getBuyerAsMakerTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.BuyerAsMakerTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.BuyerAsMakerTrade, 2));
};
/**
* @param {?proto.io.haveno.protobuffer.BuyerAsMakerTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setBuyerAsMakerTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearBuyerAsMakerTrade = function() {
return this.setBuyerAsMakerTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasBuyerAsMakerTrade = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional BuyerAsTakerTrade buyer_as_taker_trade = 3;
* @return {?proto.io.haveno.protobuffer.BuyerAsTakerTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getBuyerAsTakerTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.BuyerAsTakerTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.BuyerAsTakerTrade, 3));
};
/**
* @param {?proto.io.haveno.protobuffer.BuyerAsTakerTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setBuyerAsTakerTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearBuyerAsTakerTrade = function() {
return this.setBuyerAsTakerTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasBuyerAsTakerTrade = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional SellerAsMakerTrade seller_as_maker_trade = 4;
* @return {?proto.io.haveno.protobuffer.SellerAsMakerTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getSellerAsMakerTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.SellerAsMakerTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.SellerAsMakerTrade, 4));
};
/**
* @param {?proto.io.haveno.protobuffer.SellerAsMakerTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setSellerAsMakerTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearSellerAsMakerTrade = function() {
return this.setSellerAsMakerTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasSellerAsMakerTrade = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional SellerAsTakerTrade seller_as_taker_trade = 5;
* @return {?proto.io.haveno.protobuffer.SellerAsTakerTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getSellerAsTakerTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.SellerAsTakerTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.SellerAsTakerTrade, 5));
};
/**
* @param {?proto.io.haveno.protobuffer.SellerAsTakerTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setSellerAsTakerTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 5, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearSellerAsTakerTrade = function() {
return this.setSellerAsTakerTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasSellerAsTakerTrade = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional ArbitratorTrade arbitrator_trade = 6;
* @return {?proto.io.haveno.protobuffer.ArbitratorTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getArbitratorTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.ArbitratorTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.ArbitratorTrade, 6));
};
/**
* @param {?proto.io.haveno.protobuffer.ArbitratorTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setArbitratorTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearArbitratorTrade = function() {
return this.setArbitratorTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasArbitratorTrade = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional SignedOffer signed_offer = 1001;
* @return {?proto.io.haveno.protobuffer.SignedOffer} * @return {?proto.io.haveno.protobuffer.SignedOffer}
*/ */
proto.io.haveno.protobuffer.Tradable.prototype.getSignedOffer = function() { proto.io.haveno.protobuffer.Tradable.prototype.getSignedOffer = function() {
return /** @type{?proto.io.haveno.protobuffer.SignedOffer} */ ( return /** @type{?proto.io.haveno.protobuffer.SignedOffer} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.SignedOffer, 1001)); jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.SignedOffer, 2));
}; };
@ -49567,7 +49382,7 @@ proto.io.haveno.protobuffer.Tradable.prototype.getSignedOffer = function() {
* @return {!proto.io.haveno.protobuffer.Tradable} returns this * @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/ */
proto.io.haveno.protobuffer.Tradable.prototype.setSignedOffer = function(value) { proto.io.haveno.protobuffer.Tradable.prototype.setSignedOffer = function(value) {
return jspb.Message.setOneofWrapperField(this, 1001, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value); return jspb.Message.setOneofWrapperField(this, 2, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
}; };
@ -49585,7 +49400,192 @@ proto.io.haveno.protobuffer.Tradable.prototype.clearSignedOffer = function() {
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.Tradable.prototype.hasSignedOffer = function() { proto.io.haveno.protobuffer.Tradable.prototype.hasSignedOffer = function() {
return jspb.Message.getField(this, 1001) != null; return jspb.Message.getField(this, 2) != null;
};
/**
* optional BuyerAsMakerTrade buyer_as_maker_trade = 3;
* @return {?proto.io.haveno.protobuffer.BuyerAsMakerTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getBuyerAsMakerTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.BuyerAsMakerTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.BuyerAsMakerTrade, 3));
};
/**
* @param {?proto.io.haveno.protobuffer.BuyerAsMakerTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setBuyerAsMakerTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearBuyerAsMakerTrade = function() {
return this.setBuyerAsMakerTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasBuyerAsMakerTrade = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional BuyerAsTakerTrade buyer_as_taker_trade = 4;
* @return {?proto.io.haveno.protobuffer.BuyerAsTakerTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getBuyerAsTakerTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.BuyerAsTakerTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.BuyerAsTakerTrade, 4));
};
/**
* @param {?proto.io.haveno.protobuffer.BuyerAsTakerTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setBuyerAsTakerTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearBuyerAsTakerTrade = function() {
return this.setBuyerAsTakerTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasBuyerAsTakerTrade = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional SellerAsMakerTrade seller_as_maker_trade = 5;
* @return {?proto.io.haveno.protobuffer.SellerAsMakerTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getSellerAsMakerTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.SellerAsMakerTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.SellerAsMakerTrade, 5));
};
/**
* @param {?proto.io.haveno.protobuffer.SellerAsMakerTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setSellerAsMakerTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 5, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearSellerAsMakerTrade = function() {
return this.setSellerAsMakerTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasSellerAsMakerTrade = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional SellerAsTakerTrade seller_as_taker_trade = 6;
* @return {?proto.io.haveno.protobuffer.SellerAsTakerTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getSellerAsTakerTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.SellerAsTakerTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.SellerAsTakerTrade, 6));
};
/**
* @param {?proto.io.haveno.protobuffer.SellerAsTakerTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setSellerAsTakerTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearSellerAsTakerTrade = function() {
return this.setSellerAsTakerTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasSellerAsTakerTrade = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional ArbitratorTrade arbitrator_trade = 7;
* @return {?proto.io.haveno.protobuffer.ArbitratorTrade}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getArbitratorTrade = function() {
return /** @type{?proto.io.haveno.protobuffer.ArbitratorTrade} */ (
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.ArbitratorTrade, 7));
};
/**
* @param {?proto.io.haveno.protobuffer.ArbitratorTrade|undefined} value
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.setArbitratorTrade = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.io.haveno.protobuffer.Tradable.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.io.haveno.protobuffer.Tradable} returns this
*/
proto.io.haveno.protobuffer.Tradable.prototype.clearArbitratorTrade = function() {
return this.setArbitratorTrade(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.io.haveno.protobuffer.Tradable.prototype.hasArbitratorTrade = function() {
return jspb.Message.getField(this, 7) != null;
}; };

File diff suppressed because one or more lines are too long

View File

@ -353,7 +353,7 @@ const TestConfig = {
testDataDir: "./testdata", testDataDir: "./testdata",
haveno: { haveno: {
path: "../haveno", path: "../haveno",
version: "1.0.21" version: "1.0.1"
}, },
monerod: { monerod: {
url: "http://localhost:" + getNetworkStartPort() + "8081", // 18081, 28081, 38081 for mainnet, testnet, and stagenet, respectively url: "http://localhost:" + getNetworkStartPort() + "8081", // 18081, 28081, 38081 for mainnet, testnet, and stagenet, respectively