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

View File

@ -24480,15 +24480,15 @@ proto.io.haveno.protobuffer.ContractInfo.toObject = function(includeInstance, ms
var f, obj = {
buyerNodeAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
sellerNodeAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
isBuyerMakerAndSellerTaker: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
makerAccountId: jspb.Message.getFieldWithDefault(msg, 6, ""),
takerAccountId: jspb.Message.getFieldWithDefault(msg, 7, ""),
arbitratorNodeAddress: jspb.Message.getFieldWithDefault(msg, 3, ""),
isBuyerMakerAndSellerTaker: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
makerAccountId: jspb.Message.getFieldWithDefault(msg, 7, ""),
takerAccountId: jspb.Message.getFieldWithDefault(msg, 8, ""),
makerPaymentAccountPayload: (f = msg.getMakerPaymentAccountPayload()) && pb_pb.PaymentAccountPayload.toObject(includeInstance, f),
takerPaymentAccountPayload: (f = msg.getTakerPaymentAccountPayload()) && pb_pb.PaymentAccountPayload.toObject(includeInstance, f),
makerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 10, ""),
takerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 11, ""),
lockTime: jspb.Message.getFieldWithDefault(msg, 12, 0),
arbitratorNodeAddress: jspb.Message.getFieldWithDefault(msg, 100, "")
makerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 11, ""),
takerPayoutAddressString: jspb.Message.getFieldWithDefault(msg, 12, ""),
lockTime: jspb.Message.getFieldWithDefault(msg, 13, 0)
};
if (includeInstance) {
@ -24533,44 +24533,44 @@ proto.io.haveno.protobuffer.ContractInfo.deserializeBinaryFromReader = function(
var value = /** @type {string} */ (reader.readString());
msg.setSellerNodeAddress(value);
break;
case 5:
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setArbitratorNodeAddress(value);
break;
case 6:
var value = /** @type {boolean} */ (reader.readBool());
msg.setIsBuyerMakerAndSellerTaker(value);
break;
case 6:
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setMakerAccountId(value);
break;
case 7:
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setTakerAccountId(value);
break;
case 8:
var value = new pb_pb.PaymentAccountPayload;
reader.readMessage(value,pb_pb.PaymentAccountPayload.deserializeBinaryFromReader);
msg.setMakerPaymentAccountPayload(value);
break;
case 9:
var value = new pb_pb.PaymentAccountPayload;
reader.readMessage(value,pb_pb.PaymentAccountPayload.deserializeBinaryFromReader);
msg.setTakerPaymentAccountPayload(value);
msg.setMakerPaymentAccountPayload(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setMakerPayoutAddressString(value);
var value = new pb_pb.PaymentAccountPayload;
reader.readMessage(value,pb_pb.PaymentAccountPayload.deserializeBinaryFromReader);
msg.setTakerPaymentAccountPayload(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.setTakerPayoutAddressString(value);
msg.setMakerPayoutAddressString(value);
break;
case 12:
var value = /** @type {string} */ (reader.readString());
msg.setTakerPayoutAddressString(value);
break;
case 13:
var value = /** @type {number} */ (reader.readUint64());
msg.setLockTime(value);
break;
case 100:
var value = /** @type {string} */ (reader.readString());
msg.setArbitratorNodeAddress(value);
break;
default:
reader.skipField();
break;
@ -24614,36 +24614,35 @@ proto.io.haveno.protobuffer.ContractInfo.serializeBinaryToWriter = function(mess
f
);
}
f = message.getArbitratorNodeAddress();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getIsBuyerMakerAndSellerTaker();
if (f) {
writer.writeBool(
5,
6,
f
);
}
f = message.getMakerAccountId();
if (f.length > 0) {
writer.writeString(
6,
7,
f
);
}
f = message.getTakerAccountId();
if (f.length > 0) {
writer.writeString(
7,
8,
f
);
}
f = message.getMakerPaymentAccountPayload();
if (f != null) {
writer.writeMessage(
8,
f,
pb_pb.PaymentAccountPayload.serializeBinaryToWriter
);
}
f = message.getTakerPaymentAccountPayload();
if (f != null) {
writer.writeMessage(
9,
@ -24651,31 +24650,32 @@ proto.io.haveno.protobuffer.ContractInfo.serializeBinaryToWriter = function(mess
pb_pb.PaymentAccountPayload.serializeBinaryToWriter
);
}
f = message.getMakerPayoutAddressString();
if (f.length > 0) {
writer.writeString(
f = message.getTakerPaymentAccountPayload();
if (f != null) {
writer.writeMessage(
10,
f
f,
pb_pb.PaymentAccountPayload.serializeBinaryToWriter
);
}
f = message.getTakerPayoutAddressString();
f = message.getMakerPayoutAddressString();
if (f.length > 0) {
writer.writeString(
11,
f
);
}
f = message.getLockTime();
if (f !== 0) {
writer.writeUint64(
f = message.getTakerPayoutAddressString();
if (f.length > 0) {
writer.writeString(
12,
f
);
}
f = message.getArbitratorNodeAddress();
if (f.length > 0) {
writer.writeString(
100,
f = message.getLockTime();
if (f !== 0) {
writer.writeUint64(
13,
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}
*/
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
*/
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}
*/
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, ""));
};
@ -24767,18 +24767,36 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerAccountId = function(
* @param {string} value
* @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);
};
/**
* 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}
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.getMakerPaymentAccountPayload = function() {
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
*/
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}
*/
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}
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerPaymentAccountPayload = function() {
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
*/
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}
*/
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}
*/
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, ""));
};
@ -24877,17 +24877,35 @@ proto.io.haveno.protobuffer.ContractInfo.prototype.getTakerPayoutAddressString =
* @param {string} value
* @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);
};
/**
* 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}
*/
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
*/
proto.io.haveno.protobuffer.ContractInfo.prototype.setLockTime = function(value) {
return jspb.Message.setProto3IntField(this, 12, 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);
return jspb.Message.setProto3IntField(this, 13, 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,
IGNORED_MAILBOX_MAP = 16,
REMOVED_PAYLOADS_MAP = 17,
XMR_ADDRESS_ENTRY_LIST = 1001,
SIGNED_OFFER_LIST = 1002,
ENCRYPTED_CONNECTION_LIST = 1003,
XMR_ADDRESS_ENTRY_LIST = 18,
SIGNED_OFFER_LIST = 19,
ENCRYPTED_CONNECTION_LIST = 20,
}
}
@ -5994,6 +5994,11 @@ export class Tradable extends jspb.Message {
hasOpenOffer(): boolean;
clearOpenOffer(): Tradable;
getSignedOffer(): SignedOffer | undefined;
setSignedOffer(value?: SignedOffer): Tradable;
hasSignedOffer(): boolean;
clearSignedOffer(): Tradable;
getBuyerAsMakerTrade(): BuyerAsMakerTrade | undefined;
setBuyerAsMakerTrade(value?: BuyerAsMakerTrade): Tradable;
hasBuyerAsMakerTrade(): boolean;
@ -6019,11 +6024,6 @@ export class Tradable extends jspb.Message {
hasArbitratorTrade(): boolean;
clearArbitratorTrade(): Tradable;
getSignedOffer(): SignedOffer | undefined;
setSignedOffer(value?: SignedOffer): Tradable;
hasSignedOffer(): boolean;
clearSignedOffer(): Tradable;
getMessageCase(): Tradable.MessageCase;
serializeBinary(): Uint8Array;
@ -6037,23 +6037,23 @@ export class Tradable extends jspb.Message {
export namespace Tradable {
export type AsObject = {
openOffer?: OpenOffer.AsObject,
signedOffer?: SignedOffer.AsObject,
buyerAsMakerTrade?: BuyerAsMakerTrade.AsObject,
buyerAsTakerTrade?: BuyerAsTakerTrade.AsObject,
sellerAsMakerTrade?: SellerAsMakerTrade.AsObject,
sellerAsTakerTrade?: SellerAsTakerTrade.AsObject,
arbitratorTrade?: ArbitratorTrade.AsObject,
signedOffer?: SignedOffer.AsObject,
}
export enum MessageCase {
MESSAGE_NOT_SET = 0,
OPEN_OFFER = 1,
BUYER_AS_MAKER_TRADE = 2,
BUYER_AS_TAKER_TRADE = 3,
SELLER_AS_MAKER_TRADE = 4,
SELLER_AS_TAKER_TRADE = 5,
ARBITRATOR_TRADE = 6,
SIGNED_OFFER = 1001,
SIGNED_OFFER = 2,
BUYER_AS_MAKER_TRADE = 3,
BUYER_AS_TAKER_TRADE = 4,
SELLER_AS_MAKER_TRADE = 5,
SELLER_AS_TAKER_TRADE = 6,
ARBITRATOR_TRADE = 7,
}
}

532
dist/protobuf/pb_pb.js vendored
View File

@ -1567,7 +1567,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor
*/
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);
if (goog.DEBUG && !COMPILED) {
@ -3016,7 +3016,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor
*/
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);
if (goog.DEBUG && !COMPILED) {
@ -3436,7 +3436,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor
*/
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);
if (goog.DEBUG && !COMPILED) {
@ -25329,7 +25329,7 @@ proto.io.haveno.protobuffer.MailboxStoragePayload.prototype.clearExtraDataMap =
* @private {!Array<number>}
* @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),
arbitratorSigner: (f = msg.getArbitratorSigner()) && proto.io.haveno.protobuffer.NodeAddress.toObject(includeInstance, f),
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) {
@ -25580,16 +25580,16 @@ proto.io.haveno.protobuffer.OfferPayload.deserializeBinaryFromReader = function(
var value = /** @type {number} */ (reader.readInt32());
msg.setProtocolVersion(value);
break;
case 1001:
case 36:
var value = new proto.io.haveno.protobuffer.NodeAddress;
reader.readMessage(value,proto.io.haveno.protobuffer.NodeAddress.deserializeBinaryFromReader);
msg.setArbitratorSigner(value);
break;
case 1002:
case 37:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setArbitratorSignature(value);
break;
case 1003:
case 38:
var value = /** @type {string} */ (reader.readString());
msg.addReserveTxKeyImages(value);
break;
@ -25869,7 +25869,7 @@ proto.io.haveno.protobuffer.OfferPayload.serializeBinaryToWriter = function(mess
f = message.getArbitratorSigner();
if (f != null) {
writer.writeMessage(
1001,
36,
f,
proto.io.haveno.protobuffer.NodeAddress.serializeBinaryToWriter
);
@ -25877,14 +25877,14 @@ proto.io.haveno.protobuffer.OfferPayload.serializeBinaryToWriter = function(mess
f = message.getArbitratorSignature_asU8();
if (f.length > 0) {
writer.writeBytes(
1002,
37,
f
);
}
f = message.getReserveTxKeyImagesList();
if (f.length > 0) {
writer.writeRepeatedString(
1003,
38,
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}
*/
proto.io.haveno.protobuffer.OfferPayload.prototype.getArbitratorSigner = function() {
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
*/
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}
*/
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)}
*/
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()`
* @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.
* @see http://caniuse.com/Uint8Array
* 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
*/
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>}
*/
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
*/
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
*/
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>>}
* @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}
@ -43991,9 +43991,9 @@ proto.io.haveno.protobuffer.PersistableEnvelope.MessageCase = {
MAILBOX_MESSAGE_LIST: 15,
IGNORED_MAILBOX_MAP: 16,
REMOVED_PAYLOADS_MAP: 17,
XMR_ADDRESS_ENTRY_LIST: 1001,
SIGNED_OFFER_LIST: 1002,
ENCRYPTED_CONNECTION_LIST: 1003
XMR_ADDRESS_ENTRY_LIST: 18,
SIGNED_OFFER_LIST: 19,
ENCRYPTED_CONNECTION_LIST: 20
};
/**
@ -44175,17 +44175,17 @@ proto.io.haveno.protobuffer.PersistableEnvelope.deserializeBinaryFromReader = fu
reader.readMessage(value,proto.io.haveno.protobuffer.RemovedPayloadsMap.deserializeBinaryFromReader);
msg.setRemovedPayloadsMap(value);
break;
case 1001:
case 18:
var value = new proto.io.haveno.protobuffer.XmrAddressEntryList;
reader.readMessage(value,proto.io.haveno.protobuffer.XmrAddressEntryList.deserializeBinaryFromReader);
msg.setXmrAddressEntryList(value);
break;
case 1002:
case 19:
var value = new proto.io.haveno.protobuffer.SignedOfferList;
reader.readMessage(value,proto.io.haveno.protobuffer.SignedOfferList.deserializeBinaryFromReader);
msg.setSignedOfferList(value);
break;
case 1003:
case 20:
var value = new proto.io.haveno.protobuffer.EncryptedConnectionList;
reader.readMessage(value,proto.io.haveno.protobuffer.EncryptedConnectionList.deserializeBinaryFromReader);
msg.setEncryptedConnectionList(value);
@ -44358,7 +44358,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.serializeBinaryToWriter = functi
f = message.getXmrAddressEntryList();
if (f != null) {
writer.writeMessage(
1001,
18,
f,
proto.io.haveno.protobuffer.XmrAddressEntryList.serializeBinaryToWriter
);
@ -44366,7 +44366,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.serializeBinaryToWriter = functi
f = message.getSignedOfferList();
if (f != null) {
writer.writeMessage(
1002,
19,
f,
proto.io.haveno.protobuffer.SignedOfferList.serializeBinaryToWriter
);
@ -44374,7 +44374,7 @@ proto.io.haveno.protobuffer.PersistableEnvelope.serializeBinaryToWriter = functi
f = message.getEncryptedConnectionList();
if (f != null) {
writer.writeMessage(
1003,
20,
f,
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}
*/
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getXmrAddressEntryList = function() {
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
*/
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}
*/
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}
*/
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getSignedOfferList = function() {
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
*/
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}
*/
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}
*/
proto.io.haveno.protobuffer.PersistableEnvelope.prototype.getEncryptedConnectionList = function() {
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
*/
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}
*/
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>>}
* @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}
@ -49118,12 +49118,12 @@ proto.io.haveno.protobuffer.Tradable.oneofGroups_ = [[1,2,3,4,5,6,1001]];
proto.io.haveno.protobuffer.Tradable.MessageCase = {
MESSAGE_NOT_SET: 0,
OPEN_OFFER: 1,
BUYER_AS_MAKER_TRADE: 2,
BUYER_AS_TAKER_TRADE: 3,
SELLER_AS_MAKER_TRADE: 4,
SELLER_AS_TAKER_TRADE: 5,
ARBITRATOR_TRADE: 6,
SIGNED_OFFER: 1001
SIGNED_OFFER: 2,
BUYER_AS_MAKER_TRADE: 3,
BUYER_AS_TAKER_TRADE: 4,
SELLER_AS_MAKER_TRADE: 5,
SELLER_AS_TAKER_TRADE: 6,
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) {
var f, obj = {
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),
buyerAsTakerTrade: (f = msg.getBuyerAsTakerTrade()) && proto.io.haveno.protobuffer.BuyerAsTakerTrade.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),
arbitratorTrade: (f = msg.getArbitratorTrade()) && proto.io.haveno.protobuffer.ArbitratorTrade.toObject(includeInstance, f),
signedOffer: (f = msg.getSignedOffer()) && proto.io.haveno.protobuffer.SignedOffer.toObject(includeInstance, f)
arbitratorTrade: (f = msg.getArbitratorTrade()) && proto.io.haveno.protobuffer.ArbitratorTrade.toObject(includeInstance, f)
};
if (includeInstance) {
@ -49213,35 +49213,35 @@ proto.io.haveno.protobuffer.Tradable.deserializeBinaryFromReader = function(msg,
msg.setOpenOffer(value);
break;
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;
reader.readMessage(value,proto.io.haveno.protobuffer.BuyerAsMakerTrade.deserializeBinaryFromReader);
msg.setBuyerAsMakerTrade(value);
break;
case 3:
case 4:
var value = new proto.io.haveno.protobuffer.BuyerAsTakerTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.BuyerAsTakerTrade.deserializeBinaryFromReader);
msg.setBuyerAsTakerTrade(value);
break;
case 4:
case 5:
var value = new proto.io.haveno.protobuffer.SellerAsMakerTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.SellerAsMakerTrade.deserializeBinaryFromReader);
msg.setSellerAsMakerTrade(value);
break;
case 5:
case 6:
var value = new proto.io.haveno.protobuffer.SellerAsTakerTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.SellerAsTakerTrade.deserializeBinaryFromReader);
msg.setSellerAsTakerTrade(value);
break;
case 6:
case 7:
var value = new proto.io.haveno.protobuffer.ArbitratorTrade;
reader.readMessage(value,proto.io.haveno.protobuffer.ArbitratorTrade.deserializeBinaryFromReader);
msg.setArbitratorTrade(value);
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:
reader.skipField();
break;
@ -49279,18 +49279,26 @@ proto.io.haveno.protobuffer.Tradable.serializeBinaryToWriter = function(message,
proto.io.haveno.protobuffer.OpenOffer.serializeBinaryToWriter
);
}
f = message.getBuyerAsMakerTrade();
f = message.getSignedOffer();
if (f != null) {
writer.writeMessage(
2,
f,
proto.io.haveno.protobuffer.SignedOffer.serializeBinaryToWriter
);
}
f = message.getBuyerAsMakerTrade();
if (f != null) {
writer.writeMessage(
3,
f,
proto.io.haveno.protobuffer.BuyerAsMakerTrade.serializeBinaryToWriter
);
}
f = message.getBuyerAsTakerTrade();
if (f != null) {
writer.writeMessage(
3,
4,
f,
proto.io.haveno.protobuffer.BuyerAsTakerTrade.serializeBinaryToWriter
);
@ -49298,7 +49306,7 @@ proto.io.haveno.protobuffer.Tradable.serializeBinaryToWriter = function(message,
f = message.getSellerAsMakerTrade();
if (f != null) {
writer.writeMessage(
4,
5,
f,
proto.io.haveno.protobuffer.SellerAsMakerTrade.serializeBinaryToWriter
);
@ -49306,7 +49314,7 @@ proto.io.haveno.protobuffer.Tradable.serializeBinaryToWriter = function(message,
f = message.getSellerAsTakerTrade();
if (f != null) {
writer.writeMessage(
5,
6,
f,
proto.io.haveno.protobuffer.SellerAsTakerTrade.serializeBinaryToWriter
);
@ -49314,19 +49322,11 @@ proto.io.haveno.protobuffer.Tradable.serializeBinaryToWriter = function(message,
f = message.getArbitratorTrade();
if (f != null) {
writer.writeMessage(
6,
7,
f,
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;
* @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;
* optional SignedOffer signed_offer = 2;
* @return {?proto.io.haveno.protobuffer.SignedOffer}
*/
proto.io.haveno.protobuffer.Tradable.prototype.getSignedOffer = function() {
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
*/
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}
*/
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",
haveno: {
path: "../haveno",
version: "1.0.21"
version: "1.0.1"
},
monerod: {
url: "http://localhost:" + getNetworkStartPort() + "8081", // 18081, 28081, 38081 for mainnet, testnet, and stagenet, respectively