@leofcoin/chain 1.1.0 → 1.1.1

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/dist/chain.js CHANGED
@@ -6,11 +6,8 @@ var _BN = require('bn.js');
6
6
  require('@ethersproject/bytes');
7
7
  var logger = require('@ethersproject/logger');
8
8
  require('@ethersproject/bignumber');
9
- var worker_threads = require('worker_threads');
10
9
  var crypto = require('crypto');
11
- require('path');
12
10
  var child_process = require('child_process');
13
- require('express');
14
11
  var MultiWallet = require('@leofcoin/multi-wallet');
15
12
  var index = require('@leofcoin/codec-format-interface/dist/index');
16
13
  var bs32 = require('@vandeurenglenn/base32');
@@ -195,7 +192,7 @@ const formatBytes = (bytes, decimals = 2) => {
195
192
  };
196
193
 
197
194
  // import State from './state'
198
- new worker_threads.MessageChannel();
195
+
199
196
  class Machine {
200
197
  #contracts = {}
201
198
  #nonces = {}
@@ -4,11 +4,8 @@ import _BN from 'bn.js';
4
4
  import '@ethersproject/bytes';
5
5
  import { Logger } from '@ethersproject/logger';
6
6
  import '@ethersproject/bignumber';
7
- import { MessageChannel } from 'worker_threads';
8
7
  import { randomBytes } from 'crypto';
9
- import 'path';
10
8
  import { fork } from 'child_process';
11
- import 'express';
12
9
  import MultiWallet from '@leofcoin/multi-wallet';
13
10
  import { CodecHash } from '@leofcoin/codec-format-interface/dist/index';
14
11
  import bs32 from '@vandeurenglenn/base32';
@@ -187,7 +184,7 @@ const formatBytes = (bytes, decimals = 2) => {
187
184
  };
188
185
 
189
186
  // import State from './state'
190
- new MessageChannel();
187
+
191
188
  class Machine {
192
189
  #contracts = {}
193
190
  #nonces = {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc/4.0/\"><img alt=\"Creative Commons Licence\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-nc/4.0/88x31.png\" /></a><br />This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc/4.0/\">Creative Commons Attribution-NonCommercial 4.0 International License</a>.",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/chain.esm",
@@ -30,6 +30,7 @@
30
30
  "@ethersproject/bignumber": "^5.6.0",
31
31
  "@ethersproject/units": "^5.6.0",
32
32
  "@leofcoin/addresses": "^1.0.0-beta.1",
33
+ "@leofcoin/chain": "^1.1.0",
33
34
  "@leofcoin/codec-format-interface": "^1.4.0",
34
35
  "@leofcoin/lib": "^1.0.11",
35
36
  "@leofcoin/messages": "^1.2.0",
package/src/machine.js CHANGED
@@ -1,13 +1,10 @@
1
1
  import { BlockMessage, ContractMessage, TransactionMessage } from './../../messages/src/messages'
2
2
  import { contractFactory, nativeToken, validators, nameService } from './../../addresses/src/addresses.js'
3
3
  import { formatBytes } from './../../utils/src/utils'
4
- import { Worker, workerData, MessageChannel } from 'worker_threads'
5
4
  import { randomBytes } from 'crypto'
6
- import { resolve } from 'path'
7
5
  import { fork } from 'child_process'
8
- import e from 'express'
9
6
  // import State from './state'
10
- const {port1, port2} = new MessageChannel()
7
+
11
8
  export default class Machine {
12
9
  #contracts = {}
13
10
  #nonces = {}