@leofcoin/chain 1.8.30 → 1.9.0

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,4 +1,5 @@
1
1
  export declare const PROTOCOL_VERSION = "0.1.1";
2
+ export declare const MACHINE_STATE_VERSION = "1";
2
3
  export declare const REACHED_ONE_ZERO_ZERO = false;
3
4
  export type NodeOptions = {
4
5
  network?: string;
@@ -3,4 +3,5 @@ export declare class VersionControl extends State {
3
3
  #private;
4
4
  constructor(config: any);
5
5
  init(): Promise<void>;
6
+ protected isVersionCompatible(peerVersion?: string): boolean;
6
7
  }
@@ -1,4 +1,4 @@
1
- import { E as EasyWorker, B as BlockMessage } from './worker-iOnLaHA--iOnLaHA-.js';
1
+ import { E as EasyWorker, B as BlockMessage } from './worker-BrtyXRJ7-BrtyXRJ7.js';
2
2
 
3
3
  const worker = new EasyWorker();
4
4
  globalThis.BigNumber = BigNumber;
@@ -1,4 +1,4 @@
1
- import { E as EasyWorker, C as ContractMessage, T as TransactionMessage } from './worker-iOnLaHA--iOnLaHA-.js';
1
+ import { E as EasyWorker, C as ContractMessage, T as TransactionMessage } from './worker-BrtyXRJ7-BrtyXRJ7.js';
2
2
 
3
3
  /* Do NOT modify this file; see /src.ts/_admin/update-version.ts */
4
4
  /**
@@ -57,7 +57,7 @@ while (Zeros.length < 80) {
57
57
  }
58
58
 
59
59
  const jsonStringifyBigInt = (key, value) => (typeof value === 'bigint' ? { $bigint: value.toString() } : value);
60
- const jsonParseBigInt = (key, value) => typeof value === 'object' && value.$bigint ? BigInt(value.$bigint) : value;
60
+ const jsonParseBigInt = (key, value) => typeof value === 'object' && value?.$bigint ? BigInt(value.$bigint) : value;
61
61
 
62
62
  const byteFormats = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
63
63
  const formatBytes = (bytes, decimals = 2) => {