@leofcoin/lib 1.2.36 → 1.2.37

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.
@@ -1,12 +1,12 @@
1
1
  import Storage from '@leofcoin/storage';
2
2
  declare global {
3
3
  var transactionPoolStore: Storage;
4
+ var stateStore: Storage;
4
5
  var accountsStore: Storage;
5
6
  var contractStore: Storage;
6
7
  }
7
8
  declare const _default: (config?: {
8
9
  network: string;
9
- networkName: string;
10
10
  networkVersion: string;
11
11
  }) => Promise<void>;
12
12
  export default _default;
@@ -1,8 +1,7 @@
1
- import { ContractMessage, TransactionMessage, BlockMessage, BWMessage, BWRequestMessage, ValidatorMessage } from '@leofcoin/messages';
1
+ import { ContractMessage, TransactionMessage, BlockMessage, BWMessage, BWRequestMessage, ValidatorMessage, StateMessage } from '@leofcoin/messages';
2
2
 
3
3
  var nodeConfig = async (config = {
4
4
  network: 'leofcoin:peach',
5
- networkName: 'leofcoin:peach',
6
5
  networkVersion: 'v1.0.0'
7
6
  }) => {
8
7
  await peernet.addProto('contract-message', ContractMessage);
@@ -11,6 +10,7 @@ var nodeConfig = async (config = {
11
10
  await peernet.addProto('bw-message', BWMessage);
12
11
  await peernet.addProto('bw-request-message', BWRequestMessage);
13
12
  await peernet.addProto('validator-message', ValidatorMessage);
13
+ await peernet.addProto('state-message', StateMessage);
14
14
  let name = `.${config.network}`;
15
15
  const parts = config.network.split(':');
16
16
  if (parts[1])
@@ -18,6 +18,7 @@ var nodeConfig = async (config = {
18
18
  await peernet.addStore('contract', 'lfc', name, false);
19
19
  await peernet.addStore('accounts', 'lfc', name, false);
20
20
  await peernet.addStore('transactionPool', 'lfc', name, false);
21
+ await peernet.addStore('state', 'lfc', name, false);
21
22
  // private stores
22
23
  await peernet.addStore('wallet', 'lfc', name, true);
23
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/lib",
3
- "version": "1.2.36",
3
+ "version": "1.2.37",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "typings": "./exports/typings/index.d.ts",