@leofcoin/chain 1.4.23 → 1.4.24

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.
package/exports/node.js CHANGED
@@ -4,16 +4,16 @@ import networks from '@leofcoin/networks';
4
4
 
5
5
  // import config from './config/config'
6
6
  class Node {
7
- constructor() {
8
- return this._init();
7
+ constructor(config, password) {
8
+ return this._init(config, password);
9
9
  }
10
10
  async _init(config = {
11
11
  network: 'leofcoin:peach',
12
12
  networkName: 'leofcoin:peach',
13
13
  networkVersion: 'peach',
14
14
  stars: networks.leofcoin.peach.stars
15
- }) {
16
- globalThis.Peernet ? await new globalThis.Peernet(config) : await new Peernet(config);
15
+ }, password) {
16
+ globalThis.Peernet ? await new globalThis.Peernet(config, password) : await new Peernet(config, password);
17
17
  await nodeConfig(config);
18
18
  return this;
19
19
  // this.config = await config()
@@ -1,9 +1,9 @@
1
1
  export default class Node {
2
- constructor();
3
- _init(config?: {
2
+ constructor(config: any, password: string);
3
+ _init(config: {
4
4
  network: string;
5
5
  networkName: string;
6
6
  networkVersion: string;
7
7
  stars: any;
8
- }): Promise<this>;
8
+ }, password: string): Promise<this>;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.4.23",
3
+ "version": "1.4.24",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": "./exports/node.js",