evernode-js-client 0.6.56 → 0.6.57
Sign up to get free protection for your applications and to get access to all the features.
package/index.js
CHANGED
@@ -9189,7 +9189,7 @@ module.exports = { mask, unmask };
|
|
9189
9189
|
|
9190
9190
|
|
9191
9191
|
try {
|
9192
|
-
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.
|
9192
|
+
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.napi.node");
|
9193
9193
|
} catch (e) {
|
9194
9194
|
module.exports = __nccwpck_require__(9467);
|
9195
9195
|
}
|
@@ -38321,7 +38321,7 @@ module.exports = isValidUTF8;
|
|
38321
38321
|
|
38322
38322
|
|
38323
38323
|
try {
|
38324
|
-
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.
|
38324
|
+
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.napi1.node");
|
38325
38325
|
} catch (e) {
|
38326
38326
|
module.exports = __nccwpck_require__(6982);
|
38327
38327
|
}
|
@@ -61684,10 +61684,11 @@ class HostClient extends BaseEvernodeClient {
|
|
61684
61684
|
|
61685
61685
|
/**
|
61686
61686
|
* Send reputation scores to the reputation hook.
|
61687
|
-
* @param {
|
61687
|
+
* @param {number} scoreVersion Version of the scores.
|
61688
|
+
* @param {number} clusterSize Size of the cluster.
|
61688
61689
|
* @param {object} scores [Optional] Score object in { host: score } format.
|
61689
61690
|
*/
|
61690
|
-
async sendReputations(clusterSize, scores = null, options = {}) {
|
61691
|
+
async sendReputations(scoreVersion, clusterSize, scores = null, options = {}) {
|
61691
61692
|
let buffer = Buffer.alloc(1);
|
61692
61693
|
if (scores) {
|
61693
61694
|
const preparedScores = await this.prepareHostReputationScores(scores);
|
@@ -61702,7 +61703,7 @@ class HostClient extends BaseEvernodeClient {
|
|
61702
61703
|
}
|
61703
61704
|
}
|
61704
61705
|
|
61705
|
-
buffer.writeUIntLE(
|
61706
|
+
buffer.writeUIntLE(scoreVersion, 0, 1);
|
61706
61707
|
|
61707
61708
|
const paramData = codec.decodeAccountID(this.xrplAcc.address);
|
61708
61709
|
|
@@ -63579,7 +63580,6 @@ const ErrorReasons = {
|
|
63579
63580
|
}
|
63580
63581
|
|
63581
63582
|
const ReputationConstants = {
|
63582
|
-
SCORE_VERSION: 1,
|
63583
63583
|
REP_INFO_BUFFER_SIZE: 43,
|
63584
63584
|
REP_INFO_PUBKEY_OFFSET: 0,
|
63585
63585
|
REP_INFO_PEER_PORT_OFFSET: 33,
|
package/package.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
],
|
7
7
|
"homepage": "https://github.com/HotPocketDev/evernode-js-client",
|
8
8
|
"license": "SEE LICENSE IN https://raw.githubusercontent.com/EvernodeXRPL/evernode-resources/main/license/evernode-license.pdf",
|
9
|
-
"version": "0.6.
|
9
|
+
"version": "0.6.57",
|
10
10
|
"dependencies": {
|
11
11
|
"elliptic": "6.5.4",
|
12
12
|
"libsodium-wrappers": "0.7.10",
|
Binary file
|
Binary file
|