UNPKG

2.48 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const emitter_1 = require("./emitter");
4exports.plugin = {
5 pkg: require("../package.json"),
6 required: true,
7 alias: "event-emitter",
8 register() {
9 return new emitter_1.EventEmitter();
10 },
11};
12var ApplicationEvents;
13(function (ApplicationEvents) {
14 ApplicationEvents["ApplicationShutdown"] = "shutdown";
15 ApplicationEvents["BlockApplied"] = "block.applied";
16 ApplicationEvents["BlockDisregarded"] = "block.disregarded";
17 ApplicationEvents["BlockForged"] = "block.forged";
18 ApplicationEvents["BlockReceived"] = "block.received";
19 ApplicationEvents["BlockReverted"] = "block.reverted";
20 ApplicationEvents["DelegateRegistered"] = "delegate.registered";
21 ApplicationEvents["DelegateResigned"] = "delegate.resigned";
22 ApplicationEvents["ForgerFailed"] = "forger.failed";
23 ApplicationEvents["ForgerMissing"] = "forger.missing";
24 ApplicationEvents["ForgerStarted"] = "forger.started";
25 ApplicationEvents["InternalMilestoneChanged"] = "internal.milestone.changed";
26 ApplicationEvents["PeerAdded"] = "peer.added";
27 ApplicationEvents["PeerRemoved"] = "peer.removed";
28 ApplicationEvents["RoundApplied"] = "round.applied";
29 ApplicationEvents["RoundCreated"] = "round.created";
30 ApplicationEvents["RoundMissed"] = "round.missed";
31 ApplicationEvents["SnapshotStart"] = "snapshot.start";
32 ApplicationEvents["SnapshotProgress"] = "snapshot.progress";
33 ApplicationEvents["SnapshotComplete"] = "snapshot.complete";
34 ApplicationEvents["StateBuilderFinished"] = "stateBuilder.finished";
35 ApplicationEvents["StateStarting"] = "state.starting";
36 ApplicationEvents["StateStarted"] = "state.started";
37 ApplicationEvents["TransactionApplied"] = "transaction.applied";
38 ApplicationEvents["TransactionExpired"] = "transaction.expired";
39 ApplicationEvents["TransactionForged"] = "transaction.forged";
40 ApplicationEvents["TransactionPoolAdded"] = "transaction.pool.added";
41 ApplicationEvents["TransactionPoolRejected"] = "transaction.pool.rejected";
42 ApplicationEvents["TransactionPoolRemoved"] = "transaction.pool.removed";
43 ApplicationEvents["TransactionReverted"] = "transaction.reverted";
44 ApplicationEvents["WalletVote"] = "wallet.vote";
45 ApplicationEvents["WalletUnvote"] = "wallet.unvote";
46})(ApplicationEvents = exports.ApplicationEvents || (exports.ApplicationEvents = {}));
47//# sourceMappingURL=index.js.map
\No newline at end of file