evernode-js-client 0.5.8 → 0.5.9
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.
- package/index.js +19 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -11905,7 +11905,8 @@ class BaseEvernodeClient {
|
|
|
11905
11905
|
rewardInfo: HookStateKeys.REWARD_INFO,
|
|
11906
11906
|
rewardConfiguration: HookStateKeys.REWARD_CONFIGURATION,
|
|
11907
11907
|
hostCount: HookStateKeys.HOST_COUNT,
|
|
11908
|
-
momentTransitInfo: HookStateKeys.MOMENT_TRANSIT_INFO
|
|
11908
|
+
momentTransitInfo: HookStateKeys.MOMENT_TRANSIT_INFO,
|
|
11909
|
+
registryMaxTrxEmitFee: HookStateKeys.MAX_TRX_EMISSION_FEE
|
|
11909
11910
|
}
|
|
11910
11911
|
let config = {};
|
|
11911
11912
|
for (const [key, value] of Object.entries(configStateKeys)) {
|
|
@@ -13634,6 +13635,8 @@ const HookStateKeys = {
|
|
|
13634
13635
|
REWARD_CONFIGURATION: "4556520100000000000000000000000000000000000000000000000000000009",
|
|
13635
13636
|
MAX_TOLERABLE_DOWNTIME: "455652010000000000000000000000000000000000000000000000000000000A",
|
|
13636
13637
|
MOMENT_TRANSIT_INFO: "455652010000000000000000000000000000000000000000000000000000000B",
|
|
13638
|
+
MAX_TRX_EMISSION_FEE: "455652010000000000000000000000000000000000000000000000000000000C",
|
|
13639
|
+
|
|
13637
13640
|
|
|
13638
13641
|
// Singleton
|
|
13639
13642
|
HOST_COUNT: "4556523200000000000000000000000000000000000000000000000000000000",
|
|
@@ -14329,6 +14332,13 @@ class StateHelpers {
|
|
|
14329
14332
|
}
|
|
14330
14333
|
}
|
|
14331
14334
|
}
|
|
14335
|
+
else if (Buffer.from(HookStateKeys.MAX_TRX_EMISSION_FEE, 'hex').compare(stateKey) === 0) {
|
|
14336
|
+
return {
|
|
14337
|
+
type: this.StateTypes.CONFIGURATION,
|
|
14338
|
+
key: hexKey,
|
|
14339
|
+
value: Number(stateData.readBigUInt64BE())
|
|
14340
|
+
}
|
|
14341
|
+
}
|
|
14332
14342
|
else
|
|
14333
14343
|
throw { type: 'Validation Error', message: 'Invalid state key.' };
|
|
14334
14344
|
}
|
|
@@ -14347,6 +14357,12 @@ class StateHelpers {
|
|
|
14347
14357
|
type: this.StateTypes.TOKEN_ID
|
|
14348
14358
|
};
|
|
14349
14359
|
}
|
|
14360
|
+
else if (Buffer.from(HookStateKeys.PREFIX_TRANSFEREE_ADDR, 'hex').compare(stateKey, 0, 4) === 0) {
|
|
14361
|
+
return {
|
|
14362
|
+
key: hexKey,
|
|
14363
|
+
type: this.StateTypes.TRANSFEREE_ADDR
|
|
14364
|
+
};
|
|
14365
|
+
}
|
|
14350
14366
|
else if (Buffer.from(HookStateKeys.HOST_COUNT, 'hex').compare(stateKey) === 0 ||
|
|
14351
14367
|
Buffer.from(HookStateKeys.MOMENT_BASE_INFO, 'hex').compare(stateKey) === 0 ||
|
|
14352
14368
|
Buffer.from(HookStateKeys.HOST_REG_FEE, 'hex').compare(stateKey) === 0 ||
|
|
@@ -14367,7 +14383,8 @@ class StateHelpers {
|
|
|
14367
14383
|
Buffer.from(HookStateKeys.LEASE_ACQUIRE_WINDOW, 'hex').compare(stateKey) === 0 ||
|
|
14368
14384
|
Buffer.from(HookStateKeys.REWARD_CONFIGURATION, 'hex').compare(stateKey) === 0 ||
|
|
14369
14385
|
Buffer.from(HookStateKeys.MAX_TOLERABLE_DOWNTIME, 'hex').compare(stateKey) === 0 ||
|
|
14370
|
-
Buffer.from(HookStateKeys.MOMENT_TRANSIT_INFO, 'hex').compare(stateKey) === 0
|
|
14386
|
+
Buffer.from(HookStateKeys.MOMENT_TRANSIT_INFO, 'hex').compare(stateKey) === 0 ||
|
|
14387
|
+
Buffer.from(HookStateKeys.MAX_TRX_EMISSION_FEE, 'hex').compare(stateKey) === 0) {
|
|
14371
14388
|
return {
|
|
14372
14389
|
key: hexKey,
|
|
14373
14390
|
type: this.STATE_TYPES.CONFIGURATION
|