test havenod 1.0.4

This commit is contained in:
woodser 2024-05-17 06:55:43 -04:00
parent a97ccc8082
commit 16cc202c25
4 changed files with 83 additions and 13 deletions

View File

@ -1133,6 +1133,9 @@ export class InitMultisigRequest extends jspb.Message {
getExchangedMultisigHex(): string; getExchangedMultisigHex(): string;
setExchangedMultisigHex(value: string): InitMultisigRequest; setExchangedMultisigHex(value: string): InitMultisigRequest;
getTradeFeeAddress(): string;
setTradeFeeAddress(value: string): InitMultisigRequest;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): InitMultisigRequest.AsObject; toObject(includeInstance?: boolean): InitMultisigRequest.AsObject;
static toObject(includeInstance: boolean, msg: InitMultisigRequest): InitMultisigRequest.AsObject; static toObject(includeInstance: boolean, msg: InitMultisigRequest): InitMultisigRequest.AsObject;
@ -1149,6 +1152,7 @@ export namespace InitMultisigRequest {
preparedMultisigHex: string, preparedMultisigHex: string,
madeMultisigHex: string, madeMultisigHex: string,
exchangedMultisigHex: string, exchangedMultisigHex: string,
tradeFeeAddress: string,
} }
} }
@ -5835,6 +5839,7 @@ export namespace Offer {
NOT_AVAILABLE = 4, NOT_AVAILABLE = 4,
REMOVED = 5, REMOVED = 5,
MAKER_OFFLINE = 6, MAKER_OFFLINE = 6,
INVALID = 7,
} }
} }
@ -6440,8 +6445,11 @@ export class ProcessModel extends jspb.Message {
getSellerPayoutAmountFromMediation(): number; getSellerPayoutAmountFromMediation(): number;
setSellerPayoutAmountFromMediation(value: number): ProcessModel; setSellerPayoutAmountFromMediation(value: number): ProcessModel;
getDeleteBackupsHeight(): number; getTradeProtocolErrorHeight(): number;
setDeleteBackupsHeight(value: number): ProcessModel; setTradeProtocolErrorHeight(value: number): ProcessModel;
getTradeFeeAddress(): string;
setTradeFeeAddress(value: string): ProcessModel;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ProcessModel.AsObject; toObject(includeInstance?: boolean): ProcessModel.AsObject;
@ -6470,7 +6478,8 @@ export namespace ProcessModel {
mediatedPayoutTxSignature: Uint8Array | string, mediatedPayoutTxSignature: Uint8Array | string,
buyerPayoutAmountFromMediation: number, buyerPayoutAmountFromMediation: number,
sellerPayoutAmountFromMediation: number, sellerPayoutAmountFromMediation: number,
deleteBackupsHeight: number, tradeProtocolErrorHeight: number,
tradeFeeAddress: string,
} }
} }

View File

@ -12730,7 +12730,8 @@ proto.io.haveno.protobuffer.InitMultisigRequest.toObject = function(includeInsta
currentDate: jspb.Message.getFieldWithDefault(msg, 3, 0), currentDate: jspb.Message.getFieldWithDefault(msg, 3, 0),
preparedMultisigHex: jspb.Message.getFieldWithDefault(msg, 4, ""), preparedMultisigHex: jspb.Message.getFieldWithDefault(msg, 4, ""),
madeMultisigHex: jspb.Message.getFieldWithDefault(msg, 5, ""), madeMultisigHex: jspb.Message.getFieldWithDefault(msg, 5, ""),
exchangedMultisigHex: jspb.Message.getFieldWithDefault(msg, 6, "") exchangedMultisigHex: jspb.Message.getFieldWithDefault(msg, 6, ""),
tradeFeeAddress: jspb.Message.getFieldWithDefault(msg, 7, "")
}; };
if (includeInstance) { if (includeInstance) {
@ -12791,6 +12792,10 @@ proto.io.haveno.protobuffer.InitMultisigRequest.deserializeBinaryFromReader = fu
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setExchangedMultisigHex(value); msg.setExchangedMultisigHex(value);
break; break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setTradeFeeAddress(value);
break;
default: default:
reader.skipField(); reader.skipField();
break; break;
@ -12862,6 +12867,13 @@ proto.io.haveno.protobuffer.InitMultisigRequest.serializeBinaryToWriter = functi
f f
); );
} }
f = message.getTradeFeeAddress();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
}; };
@ -12973,6 +12985,24 @@ proto.io.haveno.protobuffer.InitMultisigRequest.prototype.setExchangedMultisigHe
}; };
/**
* optional string trade_fee_address = 7;
* @return {string}
*/
proto.io.haveno.protobuffer.InitMultisigRequest.prototype.getTradeFeeAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.InitMultisigRequest} returns this
*/
proto.io.haveno.protobuffer.InitMultisigRequest.prototype.setTradeFeeAddress = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
@ -47961,7 +47991,8 @@ proto.io.haveno.protobuffer.Offer.State = {
AVAILABLE: 3, AVAILABLE: 3,
NOT_AVAILABLE: 4, NOT_AVAILABLE: 4,
REMOVED: 5, REMOVED: 5,
MAKER_OFFLINE: 6 MAKER_OFFLINE: 6,
INVALID: 7
}; };
/** /**
@ -51601,7 +51632,8 @@ proto.io.haveno.protobuffer.ProcessModel.toObject = function(includeInstance, ms
mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(), mediatedPayoutTxSignature: msg.getMediatedPayoutTxSignature_asB64(),
buyerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 16, 0), buyerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 16, 0),
sellerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 17, 0), sellerPayoutAmountFromMediation: jspb.Message.getFieldWithDefault(msg, 17, 0),
deleteBackupsHeight: jspb.Message.getFieldWithDefault(msg, 18, 0) tradeProtocolErrorHeight: jspb.Message.getFieldWithDefault(msg, 18, 0),
tradeFeeAddress: jspb.Message.getFieldWithDefault(msg, 19, "")
}; };
if (includeInstance) { if (includeInstance) {
@ -51713,7 +51745,11 @@ proto.io.haveno.protobuffer.ProcessModel.deserializeBinaryFromReader = function(
break; break;
case 18: case 18:
var value = /** @type {number} */ (reader.readInt64()); var value = /** @type {number} */ (reader.readInt64());
msg.setDeleteBackupsHeight(value); msg.setTradeProtocolErrorHeight(value);
break;
case 19:
var value = /** @type {string} */ (reader.readString());
msg.setTradeFeeAddress(value);
break; break;
default: default:
reader.skipField(); reader.skipField();
@ -51868,13 +51904,20 @@ proto.io.haveno.protobuffer.ProcessModel.serializeBinaryToWriter = function(mess
f f
); );
} }
f = message.getDeleteBackupsHeight(); f = message.getTradeProtocolErrorHeight();
if (f !== 0) { if (f !== 0) {
writer.writeInt64( writer.writeInt64(
18, 18,
f f
); );
} }
f = message.getTradeFeeAddress();
if (f.length > 0) {
writer.writeString(
19,
f
);
}
}; };
@ -52352,10 +52395,10 @@ proto.io.haveno.protobuffer.ProcessModel.prototype.setSellerPayoutAmountFromMedi
/** /**
* optional int64 delete_backups_height = 18; * optional int64 trade_protocol_error_height = 18;
* @return {number} * @return {number}
*/ */
proto.io.haveno.protobuffer.ProcessModel.prototype.getDeleteBackupsHeight = function() { proto.io.haveno.protobuffer.ProcessModel.prototype.getTradeProtocolErrorHeight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
}; };
@ -52364,11 +52407,29 @@ proto.io.haveno.protobuffer.ProcessModel.prototype.getDeleteBackupsHeight = func
* @param {number} value * @param {number} value
* @return {!proto.io.haveno.protobuffer.ProcessModel} returns this * @return {!proto.io.haveno.protobuffer.ProcessModel} returns this
*/ */
proto.io.haveno.protobuffer.ProcessModel.prototype.setDeleteBackupsHeight = function(value) { proto.io.haveno.protobuffer.ProcessModel.prototype.setTradeProtocolErrorHeight = function(value) {
return jspb.Message.setProto3IntField(this, 18, value); return jspb.Message.setProto3IntField(this, 18, value);
}; };
/**
* optional string trade_fee_address = 19;
* @return {string}
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.getTradeFeeAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.ProcessModel} returns this
*/
proto.io.haveno.protobuffer.ProcessModel.prototype.setTradeFeeAddress = function(value) {
return jspb.Message.setProto3StringField(this, 19, value);
};
/** /**
* List of repeated fields within this message type. * List of repeated fields within this message type.

File diff suppressed because one or more lines are too long

View File

@ -355,7 +355,7 @@ const TestConfig = {
testDataDir: "./testdata", testDataDir: "./testdata",
haveno: { haveno: {
path: "../haveno", path: "../haveno",
version: "1.0.3" version: "1.0.4"
}, },
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