evernode-js-client 0.6.7 → 0.6.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.
Files changed (2) hide show
  1. package/index.js +7 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -13102,7 +13102,8 @@ const HOST_UPDATE_TOT_INS_COUNT_PARAM_OFFSET = 46;
13102
13102
  const HOST_UPDATE_ACT_INS_COUNT_PARAM_OFFSET = 50;
13103
13103
  const HOST_UPDATE_DESCRIPTION_PARAM_OFFSET = 54;
13104
13104
  const HOST_UPDATE_VERSION_PARAM_OFFSET = 80;
13105
- const HOST_UPDATE_PARAM_SIZE = 83;
13105
+ const HOST_UPDATE_EMAIL_ADDRESS_PARAM_OFFSET = 83;
13106
+ const HOST_UPDATE_PARAM_SIZE = 123;
13106
13107
 
13107
13108
  const VOTE_VALIDATION_ERR = "VOTE_VALIDATION_ERR";
13108
13109
 
@@ -13368,8 +13369,8 @@ class HostClient extends BaseEvernodeClient {
13368
13369
  return await this.isRegistered();
13369
13370
  }
13370
13371
 
13371
- async updateRegInfo(activeInstanceCount = null, version = null, totalInstanceCount = null, tokenID = null, countryCode = null, cpuMicroSec = null, ramMb = null, diskMb = null, description = null, options = {}) {
13372
- // <token_id(32)><country_code(2)><cpu_microsec(4)><ram_mb(4)><disk_mb(4)><total_instance_count(4)><active_instances(4)><description(26)><version(3)>
13372
+ async updateRegInfo(activeInstanceCount = null, version = null, totalInstanceCount = null, tokenID = null, countryCode = null, cpuMicroSec = null, ramMb = null, diskMb = null, description = null, emailAddress = null, options = {}) {
13373
+ // <token_id(32)><country_code(2)><cpu_microsec(4)><ram_mb(4)><disk_mb(4)><total_instance_count(4)><active_instances(4)><description(26)><version(3)><email(40)>
13373
13374
  const paramBuf = Buffer.alloc(HOST_UPDATE_PARAM_SIZE, 0);
13374
13375
  if (tokenID)
13375
13376
  Buffer.from(tokenID.substr(0, 32), "hex").copy(paramBuf, HOST_UPDATE_TOKEN_ID_PARAM_OFFSET);
@@ -13387,6 +13388,8 @@ class HostClient extends BaseEvernodeClient {
13387
13388
  paramBuf.writeUInt32LE(activeInstanceCount, HOST_UPDATE_ACT_INS_COUNT_PARAM_OFFSET);
13388
13389
  if (description)
13389
13390
  Buffer.from(description.substr(0, 26), "utf-8").copy(paramBuf, HOST_UPDATE_DESCRIPTION_PARAM_OFFSET);
13391
+ if (emailAddress)
13392
+ Buffer.from(emailAddress.substr(0, 40), "utf-8").copy(paramBuf, HOST_UPDATE_EMAIL_ADDRESS_PARAM_OFFSET);
13390
13393
  if (version) {
13391
13394
  const components = version.split('.').map(v => parseInt(v));
13392
13395
  if (components.length != 3)
@@ -15176,7 +15179,6 @@ const FOUNDATION_LAST_VOTED_TIMESTAMP_OFFSET = 21;
15176
15179
  const ELECTED_PROPOSAL_UNIQUE_ID_OFFSET = 29;
15177
15180
  const PROPOSAL_ELECTED_TIMESTAMP_OFFSET = 61;
15178
15181
  const UPDATED_HOOK_COUNT_OFFSET = 69;
15179
- const FOUNDATION_SUPPORT_VOTE_FLAG_OFFSET = 70;
15180
15182
 
15181
15183
  const FEE_BASE_AVG_OFFSET = 0;
15182
15184
  const FEE_BASE_AVG_CHANGED_IDX_OFFSET = 4;
@@ -15578,8 +15580,7 @@ class StateHelpers {
15578
15580
  foundationLastVotedTimestamp: Number(stateData.readBigUInt64LE(FOUNDATION_LAST_VOTED_TIMESTAMP_OFFSET)),
15579
15581
  electedProposalUniqueId: stateData.slice(ELECTED_PROPOSAL_UNIQUE_ID_OFFSET, PROPOSAL_ELECTED_TIMESTAMP_OFFSET).toString('hex').toUpperCase(),
15580
15582
  proposalElectedTimestamp: Number(stateData.readBigUInt64LE(PROPOSAL_ELECTED_TIMESTAMP_OFFSET)),
15581
- updatedHookCount: stateData.readUInt8(UPDATED_HOOK_COUNT_OFFSET),
15582
- supportVoteSent: stateData.readUInt8(FOUNDATION_SUPPORT_VOTE_FLAG_OFFSET)
15583
+ updatedHookCount: stateData.readUInt8(UPDATED_HOOK_COUNT_OFFSET)
15583
15584
  }
15584
15585
  }
15585
15586
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  ],
7
7
  "homepage": "https://github.com/HotPocketDev/evernode-js-client",
8
8
  "license": "MIT",
9
- "version": "0.6.7",
9
+ "version": "0.6.9",
10
10
  "dependencies": {
11
11
  "elliptic": "6.5.4",
12
12
  "libsodium-wrappers": "0.7.10",