mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-02-23 16:09:57 -05:00
test havenod 1.0.2, update dist
This commit is contained in:
parent
d0da85167a
commit
0d51340033
6
dist/protobuf/pb_pb.d.ts
vendored
6
dist/protobuf/pb_pb.d.ts
vendored
@ -6158,11 +6158,6 @@ export class Trade extends jspb.Message {
|
|||||||
getIsCompleted(): boolean;
|
getIsCompleted(): boolean;
|
||||||
setIsCompleted(value: boolean): Trade;
|
setIsCompleted(value: boolean): Trade;
|
||||||
|
|
||||||
getImportedMultisigHexesList(): Array<string>;
|
|
||||||
setImportedMultisigHexesList(value: Array<string>): Trade;
|
|
||||||
clearImportedMultisigHexesList(): Trade;
|
|
||||||
addImportedMultisigHexes(value: string, index?: number): Trade;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
serializeBinary(): Uint8Array;
|
||||||
toObject(includeInstance?: boolean): Trade.AsObject;
|
toObject(includeInstance?: boolean): Trade.AsObject;
|
||||||
static toObject(includeInstance: boolean, msg: Trade): Trade.AsObject;
|
static toObject(includeInstance: boolean, msg: Trade): Trade.AsObject;
|
||||||
@ -6201,7 +6196,6 @@ export namespace Trade {
|
|||||||
counterCurrencyExtraData: string,
|
counterCurrencyExtraData: string,
|
||||||
uid: string,
|
uid: string,
|
||||||
isCompleted: boolean,
|
isCompleted: boolean,
|
||||||
importedMultisigHexesList: Array<string>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum State {
|
export enum State {
|
||||||
|
53
dist/protobuf/pb_pb.js
vendored
53
dist/protobuf/pb_pb.js
vendored
@ -49595,7 +49595,7 @@ proto.io.haveno.protobuffer.Tradable.prototype.hasArbitratorTrade = function() {
|
|||||||
* @private {!Array<number>}
|
* @private {!Array<number>}
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
proto.io.haveno.protobuffer.Trade.repeatedFields_ = [20,29];
|
proto.io.haveno.protobuffer.Trade.repeatedFields_ = [20];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -49656,8 +49656,7 @@ proto.io.haveno.protobuffer.Trade.toObject = function(includeInstance, msg) {
|
|||||||
refundResultState: jspb.Message.getFieldWithDefault(msg, 25, 0),
|
refundResultState: jspb.Message.getFieldWithDefault(msg, 25, 0),
|
||||||
counterCurrencyExtraData: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
counterCurrencyExtraData: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
||||||
uid: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
uid: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
||||||
isCompleted: jspb.Message.getBooleanFieldWithDefault(msg, 28, false),
|
isCompleted: jspb.Message.getBooleanFieldWithDefault(msg, 28, false)
|
||||||
importedMultisigHexesList: (f = jspb.Message.getRepeatedField(msg, 29)) == null ? undefined : f
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeInstance) {
|
if (includeInstance) {
|
||||||
@ -49813,10 +49812,6 @@ proto.io.haveno.protobuffer.Trade.deserializeBinaryFromReader = function(msg, re
|
|||||||
var value = /** @type {boolean} */ (reader.readBool());
|
var value = /** @type {boolean} */ (reader.readBool());
|
||||||
msg.setIsCompleted(value);
|
msg.setIsCompleted(value);
|
||||||
break;
|
break;
|
||||||
case 29:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.addImportedMultisigHexes(value);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
reader.skipField();
|
reader.skipField();
|
||||||
break;
|
break;
|
||||||
@ -50049,13 +50044,6 @@ proto.io.haveno.protobuffer.Trade.serializeBinaryToWriter = function(message, wr
|
|||||||
f
|
f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
f = message.getImportedMultisigHexesList();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeRepeatedString(
|
|
||||||
29,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -50809,43 +50797,6 @@ proto.io.haveno.protobuffer.Trade.prototype.setIsCompleted = function(value) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* repeated string imported_multisig_hexes = 29;
|
|
||||||
* @return {!Array<string>}
|
|
||||||
*/
|
|
||||||
proto.io.haveno.protobuffer.Trade.prototype.getImportedMultisigHexesList = function() {
|
|
||||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 29));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!Array<string>} value
|
|
||||||
* @return {!proto.io.haveno.protobuffer.Trade} returns this
|
|
||||||
*/
|
|
||||||
proto.io.haveno.protobuffer.Trade.prototype.setImportedMultisigHexesList = function(value) {
|
|
||||||
return jspb.Message.setField(this, 29, value || []);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} value
|
|
||||||
* @param {number=} opt_index
|
|
||||||
* @return {!proto.io.haveno.protobuffer.Trade} returns this
|
|
||||||
*/
|
|
||||||
proto.io.haveno.protobuffer.Trade.prototype.addImportedMultisigHexes = function(value, opt_index) {
|
|
||||||
return jspb.Message.addToRepeatedField(this, 29, value, opt_index);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the list making it empty but non-null.
|
|
||||||
* @return {!proto.io.haveno.protobuffer.Trade} returns this
|
|
||||||
*/
|
|
||||||
proto.io.haveno.protobuffer.Trade.prototype.clearImportedMultisigHexesList = function() {
|
|
||||||
return this.setImportedMultisigHexesList([]);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2
dist/protobuf/pb_pb.js.map
vendored
2
dist/protobuf/pb_pb.js.map
vendored
File diff suppressed because one or more lines are too long
8
dist/utils/TaskLooper.d.ts
vendored
8
dist/utils/TaskLooper.d.ts
vendored
@ -16,12 +16,14 @@ export default class TaskLooper {
|
|||||||
/**
|
/**
|
||||||
* Start the task loop.
|
* Start the task loop.
|
||||||
*
|
*
|
||||||
* @param {int} periodInMs the loop period in milliseconds
|
* @param {number} periodInMs the loop period in milliseconds
|
||||||
|
* @param {boolean} targetFixedPeriod specifies if the task should target a fixed period by accounting for run time (default false)
|
||||||
|
* @return {TaskLooper} this instance for chaining
|
||||||
*/
|
*/
|
||||||
start(periodInMs: number): void;
|
start(periodInMs: number, targetFixedPeriod: boolean): void;
|
||||||
/**
|
/**
|
||||||
* Stop the task loop.
|
* Stop the task loop.
|
||||||
*/
|
*/
|
||||||
stop(): void;
|
stop(): void;
|
||||||
_runLoop(periodInMs: number): Promise<void>;
|
_runLoop(periodInMs: number, targetFixedPeriod: boolean): Promise<void>;
|
||||||
}
|
}
|
||||||
|
12
dist/utils/TaskLooper.js
vendored
12
dist/utils/TaskLooper.js
vendored
@ -32,15 +32,17 @@ class TaskLooper {
|
|||||||
/**
|
/**
|
||||||
* Start the task loop.
|
* Start the task loop.
|
||||||
*
|
*
|
||||||
* @param {int} periodInMs the loop period in milliseconds
|
* @param {number} periodInMs the loop period in milliseconds
|
||||||
|
* @param {boolean} targetFixedPeriod specifies if the task should target a fixed period by accounting for run time (default false)
|
||||||
|
* @return {TaskLooper} this instance for chaining
|
||||||
*/
|
*/
|
||||||
start(periodInMs) {
|
start(periodInMs, targetFixedPeriod) {
|
||||||
if (periodInMs <= 0)
|
if (periodInMs <= 0)
|
||||||
throw new Error("Looper period must be greater than 0 ms");
|
throw new Error("Looper period must be greater than 0 ms");
|
||||||
if (this._isStarted)
|
if (this._isStarted)
|
||||||
return;
|
return;
|
||||||
this._isStarted = true;
|
this._isStarted = true;
|
||||||
this._runLoop(periodInMs);
|
this._runLoop(periodInMs, targetFixedPeriod);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Stop the task loop.
|
* Stop the task loop.
|
||||||
@ -52,13 +54,13 @@ class TaskLooper {
|
|||||||
clearTimeout(this._timeout);
|
clearTimeout(this._timeout);
|
||||||
this._timeout = undefined;
|
this._timeout = undefined;
|
||||||
}
|
}
|
||||||
async _runLoop(periodInMs) {
|
async _runLoop(periodInMs, targetFixedPeriod) {
|
||||||
this._isLooping = true;
|
this._isLooping = true;
|
||||||
while (this._isStarted) {
|
while (this._isStarted) {
|
||||||
const startTime = Date.now();
|
const startTime = Date.now();
|
||||||
await this._fn();
|
await this._fn();
|
||||||
if (this._isStarted)
|
if (this._isStarted)
|
||||||
await new Promise((resolve) => { this._timeout = setTimeout(resolve, periodInMs - (Date.now() - startTime)); });
|
await new Promise((resolve) => { this._timeout = setTimeout(resolve, periodInMs - (targetFixedPeriod ? (Date.now() - startTime) : 0)); });
|
||||||
}
|
}
|
||||||
this._isLooping = false;
|
this._isLooping = false;
|
||||||
}
|
}
|
||||||
|
2
dist/utils/TaskLooper.js.map
vendored
2
dist/utils/TaskLooper.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"TaskLooper.js","sourceRoot":"","sources":["../../src/utils/TaskLooper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH;;GAEG;AACH,MAAqB,UAAU;IAO7B;;;;OAIG;IACH,YAAY,EAAuB;QACjC,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,UAAkB;QACtB,IAAI,UAAU,IAAI,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAChF,IAAI,IAAI,CAAC,UAAU;YAAE,OAAO;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,IAAI;QACF,IAAI,CAAC,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAA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,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,IAAI;QACF,IAAI,CAAC,IAAI,CAAC,UAAU;YAAE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACzF,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,YAAY,CAAC,IAAI,CAAC,QAAS,CAAC,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,UAAkB,EAAE,iBAA0B;QAC3D,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,OAAO,IAAI,CAAC,UAAU,EAAE;YACtB,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7B,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;YACjB,IAAI,IAAI,CAAC,UAAU;gBAAE,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAChK;QACD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;CACF;AAnDD,6BAmDC"}
|
@ -355,7 +355,7 @@ const TestConfig = {
|
|||||||
testDataDir: "./testdata",
|
testDataDir: "./testdata",
|
||||||
haveno: {
|
haveno: {
|
||||||
path: "../haveno",
|
path: "../haveno",
|
||||||
version: "1.0.1"
|
version: "1.0.2"
|
||||||
},
|
},
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user