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.
- package/index.js +9 -9
- 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.
|
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
|
-
|
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
|
-
|
14491
|
-
|
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
|
-
|
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.
|
15349
|
-
status = '
|
15348
|
+
case EvernodeConstants.CandidateStatuses.CANDIDATE_PURGED:
|
15349
|
+
status = 'purged';
|
15350
15350
|
break;
|
15351
|
-
case EvernodeConstants.CandidateStatuses.
|
15352
|
-
status = '
|
15351
|
+
case EvernodeConstants.CandidateStatuses.CANDIDATE_WITHDRAWN:
|
15352
|
+
status = 'withdrawn';
|
15353
15353
|
break;
|
15354
15354
|
default:
|
15355
15355
|
status = 'rejected';
|