@leofcoin/chain 1.10.9 → 1.10.11
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/beacon-envelope.js +68 -0
- package/exports/beacon-epoch.js +117 -0
- package/exports/beacon-lifecycle.js +155 -0
- package/exports/beacon-round.js +77 -0
- package/exports/beacon-wire.js +98 -0
- package/exports/beacon.js +141 -0
- package/exports/browser/beacon-envelope.js +163 -0
- package/exports/browser/beacon-epoch.js +116 -0
- package/exports/browser/beacon-lifecycle.js +154 -0
- package/exports/browser/beacon-round.js +76 -0
- package/exports/browser/beacon-wire.js +99 -0
- package/exports/browser/beacon.js +1706 -0
- package/exports/browser/{browser-D-r0O9Qn-BZDYY6cg.js → browser-CWeoyGUw-BabtHowB.js} +4 -2
- package/exports/browser/{browser-_hiyXwPp-DYI1tyUr.js → browser-DvU1xNFS-sdlKNCJc.js} +4 -2
- package/exports/browser/chain.js +174 -5008
- package/exports/browser/{client-BVhUamQG-D-D1e_x8.js → client-B-jyclOB-CsNYfj4Z.js} +6 -4
- package/exports/browser/constants-Cv0p224A.js +130 -0
- package/exports/browser/hkdf-DhdhLAAv.js +147 -0
- package/exports/browser/{index-BD0Anx7_-Dg4_tCeN.js → index-Bxr5Iztg-C6xBk0rK.js} +4 -2
- package/exports/browser/index-CvKt4UDE.js +464 -0
- package/exports/browser/index-D7FUx7Dd.js +4996 -0
- package/exports/browser/{messages-UKnuelZ7-DJT-98q-.js → messages-FMRAS8QX-CvlZBzy5.js} +4 -2
- package/exports/browser/{node-browser-DlzZ5CP_.js → node-browser-xlqSBOaN.js} +12 -5
- package/exports/browser/node-browser.js +4 -2
- package/exports/browser/{constants-gMYZLHKp.js → proposal.proto-BcUgd885.js} +61 -620
- package/exports/browser/quorum-S_qdgiAY.js +8 -0
- package/exports/browser/weierstrass-C-jX_jly.js +2156 -0
- package/exports/browser/workers/block-worker.js +1 -1
- package/exports/browser/workers/machine-worker.js +7142 -72
- package/exports/browser/workers/{worker-CZqErLI7-BxofVJAn.js → worker-DMCj1e6z-CTYVa2yX.js} +30 -1
- package/exports/chain.js +158 -75
- package/exports/{constants-D6gWzJZg.js → constants-CMYKv-Rt.js} +1 -1
- package/exports/node.js +1 -1
- package/exports/quorum-S_qdgiAY.js +8 -0
- package/exports/workers/block-worker.js +1 -1
- package/exports/workers/machine-worker.js +7142 -72
- package/exports/workers/{worker-CZqErLI7-BxofVJAn.js → worker-DMCj1e6z-CTYVa2yX.js} +30 -1
- package/package.json +29 -2
- package/types/beacon-envelope.d.ts +27 -0
- package/types/beacon-epoch.d.ts +28 -0
- package/types/beacon-lifecycle.d.ts +40 -0
- package/types/beacon-round.d.ts +18 -0
- package/types/beacon-wire.d.ts +31 -0
- package/types/beacon.d.ts +24 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { F as FormatInterface } from './node-browser-
|
|
1
|
+
import { F as FormatInterface } from './node-browser-xlqSBOaN.js';
|
|
2
2
|
import 'crypto';
|
|
3
|
-
import './constants-
|
|
3
|
+
import './constants-Cv0p224A.js';
|
|
4
|
+
import './proposal.proto-BcUgd885.js';
|
|
5
|
+
import './index-CvKt4UDE.js';
|
|
4
6
|
|
|
5
7
|
var proto$b = {
|
|
6
8
|
data: new Uint8Array(),
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createHash as createHash$1 } from 'crypto';
|
|
2
|
-
import {
|
|
2
|
+
import { B as BlockMessage, a as BWMessage, V as ValidatorMessage, S as StateMessage, L as LastBlockMessage, D as DEFAULT_NODE_OPTIONS } from './constants-Cv0p224A.js';
|
|
3
|
+
import './index-CvKt4UDE.js';
|
|
4
|
+
import { F as FormatInterface$2, T as TransactionMessage, C as ContractMessage } from './proposal.proto-BcUgd885.js';
|
|
3
5
|
|
|
4
6
|
var proto = {};
|
|
5
7
|
|
|
@@ -8376,7 +8378,12 @@ class Identity {
|
|
|
8376
8378
|
const importee = await import('./password-oDixGC8h.js');
|
|
8377
8379
|
password = await importee.default();
|
|
8378
8380
|
}
|
|
8379
|
-
|
|
8381
|
+
// LevelDB opens lazily. Touch both stores before freshIdentity clears them;
|
|
8382
|
+
// clearing a brand-new, unopened store throws LEVEL_DATABASE_NOT_OPEN.
|
|
8383
|
+
const [accountExists] = await Promise.all([
|
|
8384
|
+
globalThis.accountStore.has('public'),
|
|
8385
|
+
globalThis.walletStore.has('identity')
|
|
8386
|
+
]);
|
|
8380
8387
|
if (accountExists && !fresh) {
|
|
8381
8388
|
const pub = await globalThis.accountStore.get('public');
|
|
8382
8389
|
this.id = JSON.parse(new TextDecoder().decode(pub)).walletId;
|
|
@@ -8384,7 +8391,7 @@ class Identity {
|
|
|
8384
8391
|
this.selectedAccount = new TextDecoder().decode(selected);
|
|
8385
8392
|
}
|
|
8386
8393
|
else {
|
|
8387
|
-
const importee = await import(/* webpackChunkName: "generate-account" */ './index-
|
|
8394
|
+
const importee = await import(/* webpackChunkName: "generate-account" */ './index-Bxr5Iztg-C6xBk0rK.js');
|
|
8388
8395
|
const { identity, accounts } = await importee.default(password, this.network);
|
|
8389
8396
|
if (fresh) {
|
|
8390
8397
|
await globalThis.accountStore.clear();
|
|
@@ -17133,7 +17140,7 @@ class Peernet {
|
|
|
17133
17140
|
await getAddress();
|
|
17134
17141
|
this.storePrefix = options.storePrefix;
|
|
17135
17142
|
this.root = options.root;
|
|
17136
|
-
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile } = await import(/* webpackChunkName: "messages" */ './messages-
|
|
17143
|
+
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile } = await import(/* webpackChunkName: "messages" */ './messages-FMRAS8QX-CvlZBzy5.js');
|
|
17137
17144
|
/**
|
|
17138
17145
|
* proto Object containing protos
|
|
17139
17146
|
* @type {Object}
|
|
@@ -17180,7 +17187,7 @@ class Peernet {
|
|
|
17180
17187
|
if (this.#starting || this.#started)
|
|
17181
17188
|
return;
|
|
17182
17189
|
this.#starting = true;
|
|
17183
|
-
const importee = await import('./client-
|
|
17190
|
+
const importee = await import('./client-B-jyclOB-CsNYfj4Z.js');
|
|
17184
17191
|
/**
|
|
17185
17192
|
* @access public
|
|
17186
17193
|
* @type {PeernetClient}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { N as default } from './node-browser-
|
|
1
|
+
export { N as default } from './node-browser-xlqSBOaN.js';
|
|
2
2
|
import 'crypto';
|
|
3
|
-
import './constants-
|
|
3
|
+
import './constants-Cv0p224A.js';
|
|
4
|
+
import './index-CvKt4UDE.js';
|
|
5
|
+
import './proposal.proto-BcUgd885.js';
|