evernode-js-client 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +9 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -12215,7 +12215,7 @@ class BaseEvernodeClient {
12215
12215
  }
12216
12216
  else if (eventType === EventTypes.CANDIDATE_WITHDRAW && eventData) {
12217
12217
  return {
12218
- name: EvernodeEvents.CandidateWithdrew,
12218
+ name: EvernodeEvents.CandidateWithdrawn,
12219
12219
  data: {
12220
12220
  transaction: tx,
12221
12221
  owner: tx.Account,
@@ -12895,7 +12895,7 @@ const { EvernodeEvents } = __nccwpck_require__(9849);
12895
12895
  const GovernorEvents = {
12896
12896
  Initialized: EvernodeEvents.Initialized,
12897
12897
  CandidateProposed: EvernodeEvents.CandidateProposed,
12898
- CandidateWithdrew: EvernodeEvents.CandidateWithdrew,
12898
+ CandidateWithdrawn: EvernodeEvents.CandidateWithdrawn,
12899
12899
  ChildHookUpdated: EvernodeEvents.ChildHookUpdated,
12900
12900
  GovernanceModeChanged: EvernodeEvents.GovernanceModeChanged,
12901
12901
  DudHostReported: EvernodeEvents.DudHostReported,
@@ -14487,8 +14487,8 @@ const EvernodeConstants = {
14487
14487
  CANDIDATE_REJECTED: 0,
14488
14488
  CANDIDATE_SUPPORTED: 1,
14489
14489
  CANDIDATE_ELECTED: 2,
14490
- CANDIDATE_VETOED: 3,
14491
- CANDIDATE_EXPIRED: 4
14490
+ CANDIDATE_PURGED: 3,
14491
+ CANDIDATE_WITHDRAWN: 4
14492
14492
  }
14493
14493
  }
14494
14494
 
@@ -14608,7 +14608,7 @@ const EvernodeEvents = {
14608
14608
  DeadHostPrune: "DeadHostPrune",
14609
14609
  HostRebate: "HostRebate",
14610
14610
  CandidateProposed: "CandidateProposed",
14611
- CandidateWithdrew: "CandidateWithdrew",
14611
+ CandidateWithdrawn: "CandidateWithdrawn",
14612
14612
  ChildHookUpdated: "ChildHookUpdated",
14613
14613
  GovernanceModeChanged: "GovernanceModeChanged",
14614
14614
  FoundationVoted: "FoundationVoted",
@@ -15345,11 +15345,11 @@ class StateHelpers {
15345
15345
  case EvernodeConstants.CandidateStatuses.CANDIDATE_ELECTED:
15346
15346
  status = 'elected';
15347
15347
  break;
15348
- case EvernodeConstants.CandidateStatuses.CANDIDATE_VETOED:
15349
- status = 'vetoed';
15348
+ case EvernodeConstants.CandidateStatuses.CANDIDATE_PURGED:
15349
+ status = 'purged';
15350
15350
  break;
15351
- case EvernodeConstants.CandidateStatuses.CANDIDATE_EXPIRED:
15352
- status = 'expired';
15351
+ case EvernodeConstants.CandidateStatuses.CANDIDATE_WITHDRAWN:
15352
+ status = 'withdrawn';
15353
15353
  break;
15354
15354
  default:
15355
15355
  status = 'rejected';
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.5",
9
+ "version": "0.6.6",
10
10
  "dependencies": {
11
11
  "elliptic": "6.5.4",
12
12
  "libsodium-wrappers": "0.7.10",