evernode-js-client 0.6.39 → 0.6.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +10 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -63572,17 +63572,19 @@ class StateHelpers {
63572
63572
  }
63573
63573
  }
63574
63574
  else if (Buffer.from(HookStateKeys.REWARD_INFO, 'hex').compare(stateKey) === 0) {
63575
+ let value = {
63576
+ epoch: stateData.readUInt8(EPOCH_OFFSET),
63577
+ savedMoment: stateData.readUInt32LE(SAVED_MOMENT_OFFSET),
63578
+ prevMomentActiveHostCount: stateData.readUInt32LE(PREV_MOMENT_ACTIVE_HOST_COUNT_OFFSET),
63579
+ curMomentActiveHostCount: stateData.readUInt32LE(CUR_MOMENT_ACTIVE_HOST_COUNT_OFFSET),
63580
+ epochPool: XflHelpers.toString(stateData.readBigInt64LE(EPOCH_POOL_OFFSET)),
63581
+ };
63582
+ if (stateData.length > HOST_MAX_LEASE_AMOUNT_OFFSET)
63583
+ value.hostMaxLeaseAmount = XflHelpers.toString(stateData.readBigInt64LE(HOST_MAX_LEASE_AMOUNT_OFFSET));
63575
63584
  return {
63576
63585
  type: this.StateTypes.SIGLETON,
63577
63586
  key: hexKey,
63578
- value: {
63579
- epoch: stateData.readUInt8(EPOCH_OFFSET),
63580
- savedMoment: stateData.readUInt32LE(SAVED_MOMENT_OFFSET),
63581
- prevMomentActiveHostCount: stateData.readUInt32LE(PREV_MOMENT_ACTIVE_HOST_COUNT_OFFSET),
63582
- curMomentActiveHostCount: stateData.readUInt32LE(CUR_MOMENT_ACTIVE_HOST_COUNT_OFFSET),
63583
- epochPool: XflHelpers.toString(stateData.readBigInt64LE(EPOCH_POOL_OFFSET)),
63584
- hostMaxLeaseAmount: XflHelpers.toString(stateData.readBigInt64LE(HOST_MAX_LEASE_AMOUNT_OFFSET))
63585
- }
63587
+ value: value
63586
63588
  }
63587
63589
  }
63588
63590
  else if (Buffer.from(HookStateKeys.MAX_TOLERABLE_DOWNTIME, 'hex').compare(stateKey) === 0) {
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.39",
9
+ "version": "0.6.40",
10
10
  "dependencies": {
11
11
  "elliptic": "6.5.4",
12
12
  "libsodium-wrappers": "0.7.10",