@lemii/lisk-manager-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@lemii/lisk-manager-plugin

This plugin is meant to be used in conjunction with the Lisk Manager Client (coming Soon™).

The Lisk Manager Plugin provides system and forger statistics of your Lisk node and allows you to easily manage it through an external client.

Installation

Install package

$ npm install --save @lemii/lisk-manager-plugin

Import plugin

import { ManagerPlugin } from '@lemii/lisk-manager-plugin';

Register plugin

app.registerPlugin(ManagerPlugin);

Register plugin with custom options

app.registerPlugin(ManagerPlugin, {
  interval: 3000,
  // The frequency of the polling interval in milliseconds
  logFileName: 'lmp.log',
  // The filename of the log file
  configFileName: 'lmp-config.json',
  // The filename of the config file
  saveExternalChanges: false,
  // Enables persistence of changes triggered by an external source (eg: changing interval frequency from the Lisk Manager Client)
  overruleFile: false
  // Ignore (overrule) any existing persistent config file (where applicable)
});

Usage

This plugin is meant to be used in conjunction with the Lisk Manager Client (coming Soon™).

  • Establish a WebSocket connection to the node
  • Monitor published messages on the following channels:
    • manager:statsUpdate
    • manager:queueUpdate
    • manager:toggleForging
  • Invocate actions using the following keywords:
    • manager:updateInterval
    • manager:toggleForging

Example manager:updateInterval payload:

{
  ms: 3000;
}

Example manager:toggleForging payload:

{
  address: "9cabee3d27426676b852ce6b804cb2fdff7cd0b5",
  password: "elephant tree paris dragon chair galaxy",
  forging: true,
  height: 0,
  maxHeightPreviouslyForged: 0,
  maxHeightPrevoted: 0,
}
{
  address: "9cabee3d27426676b852ce6b804cb2fdff7cd0b5",
  password: "elephant tree paris dragon chair galaxy",
  forging: false,
}

Readme

Keywords

Package Sidebar

Install

npm i @lemii/lisk-manager-plugin

Weekly Downloads

1

Version

0.1.0

License

GPL-3.0-or-later

Unpacked Size

23.8 kB

Total Files

22

Last publish

Collaborators

  • lemii