@leofcoin/chain 1.5.67 → 1.5.69

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,5 +1,5 @@
1
- import { L as LittlePubSub } from './node-browser-DqIklEKv.js';
2
- import './_polyfill-node.child_process-BsjYmFff.js';
1
+ import { L as LittlePubSub } from './node-browser-CeM_F-HL.js';
2
+ import './_polyfill-node.child_process-CblghArn.js';
3
3
 
4
4
  class Api {
5
5
  _pubsub;
@@ -206,7 +206,7 @@ class SocketRequestClient {
206
206
  const init = async () => {
207
207
  // @ts-ignore
208
208
  if (!globalThis.WebSocket)
209
- globalThis.WebSocket = (await import('./browser-Ei0BXMlu-C1_XUL9Y.js').then(function (n) { return n.b; })).default.w3cwebsocket;
209
+ globalThis.WebSocket = (await import('./browser-Ei0BXMlu-C0woTcHa.js').then(function (n) { return n.b; })).default.w3cwebsocket;
210
210
  const client = new WebSocket(this.#url, this.#protocol);
211
211
  client.onmessage = this.onmessage;
212
212
  client.onerror = this.onerror;
@@ -280,7 +280,7 @@ const iceServers = [
280
280
  credential: 'openrelayproject'
281
281
  }
282
282
  ];
283
- const SimplePeer = (await import('./index-YQrIDBUQ-c7011Ab4.js').then(function (n) { return n.i; })).default;
283
+ const SimplePeer = (await import('./index-YQrIDBUQ-APwDgUUG.js').then(function (n) { return n.i; })).default;
284
284
  class Peer extends SimplePeer {
285
285
  peerId;
286
286
  channelName;
@@ -1,5 +1,5 @@
1
- import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-DqIklEKv.js';
2
- import './_polyfill-node.child_process-BsjYmFff.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-CeM_F-HL.js';
2
+ import './_polyfill-node.child_process-CblghArn.js';
3
3
 
4
4
  /**
5
5
  * @params {String} network
@@ -1,5 +1,5 @@
1
- import { i as inherits_browserExports, c as commonjsGlobal, g as getDefaultExportFromCjs, r as require$$3 } from './node-browser-DqIklEKv.js';
2
- import './_polyfill-node.child_process-BsjYmFff.js';
1
+ import { i as inherits_browserExports, c as commonjsGlobal, g as getDefaultExportFromCjs, r as require$$3 } from './node-browser-CeM_F-HL.js';
2
+ import './_polyfill-node.child_process-CblghArn.js';
3
3
 
4
4
  var browser$2 = {exports: {}};
5
5
 
@@ -1,5 +1,5 @@
1
- import { F as FormatInterface } from './node-browser-DqIklEKv.js';
2
- import './_polyfill-node.child_process-BsjYmFff.js';
1
+ import { F as FormatInterface } from './node-browser-CeM_F-HL.js';
2
+ import './_polyfill-node.child_process-CblghArn.js';
3
3
 
4
4
  var proto$b = {
5
5
  data: new Uint8Array(),
@@ -1,4 +1,21 @@
1
- import { C as ContractMessage, T as TransactionMessage, B as BlockMessage, a as BWMessage, b as BWRequestMessage, V as ValidatorMessage } from './_polyfill-node.child_process-BsjYmFff.js';
1
+ import { F as FormatInterface$3, C as ContractMessage, T as TransactionMessage, B as BlockMessage, a as BWMessage, b as BWRequestMessage, V as ValidatorMessage } from './_polyfill-node.child_process-CblghArn.js';
2
+
3
+ var proto = {
4
+ lastblock: Object(),
5
+ values: Object()
6
+ };
7
+
8
+ class StateMessage extends FormatInterface$3 {
9
+ get messageName() {
10
+ return 'StateMessage';
11
+ }
12
+ constructor(buffer) {
13
+ if (buffer instanceof StateMessage)
14
+ return buffer;
15
+ const name = 'state-message';
16
+ super(buffer, proto, { name });
17
+ }
18
+ }
2
19
 
3
20
  var nodeConfig = async (config = {
4
21
  network: 'leofcoin:peach',
@@ -10,6 +27,7 @@ var nodeConfig = async (config = {
10
27
  await peernet.addProto('bw-message', BWMessage);
11
28
  await peernet.addProto('bw-request-message', BWRequestMessage);
12
29
  await peernet.addProto('validator-message', ValidatorMessage);
30
+ await peernet.addProto('state-message', StateMessage);
13
31
  let name = `.${config.network}`;
14
32
  const parts = config.network.split(':');
15
33
  if (parts[1])
@@ -17,6 +35,7 @@ var nodeConfig = async (config = {
17
35
  await peernet.addStore('contract', 'lfc', name, false);
18
36
  await peernet.addStore('accounts', 'lfc', name, false);
19
37
  await peernet.addStore('transactionPool', 'lfc', name, false);
38
+ await peernet.addStore('state', 'lfc', name, false);
20
39
  // private stores
21
40
  await peernet.addStore('wallet', 'lfc', name, true);
22
41
  };
@@ -27198,7 +27217,7 @@ class Identity {
27198
27217
  this.selectedAccount = new TextDecoder().decode(selected);
27199
27218
  }
27200
27219
  else {
27201
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-G74WLzL7-Dt2dwaXq.js');
27220
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-G74WLzL7-BnLRqHoy.js');
27202
27221
  const { identity, accounts } = await importee.default(password, this.network);
27203
27222
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
27204
27223
  await globalThis.walletStore.put('version', String(1));
@@ -27390,7 +27409,7 @@ class Peernet {
27390
27409
  this.root = options.root;
27391
27410
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
27392
27411
  // FolderMessageResponse
27393
- } = await import(/* webpackChunkName: "messages" */ './messages-lWRTai7t-ClhClfC1.js');
27412
+ } = await import(/* webpackChunkName: "messages" */ './messages-lWRTai7t-DJnHZSdM.js');
27394
27413
  /**
27395
27414
  * proto Object containing protos
27396
27415
  * @type {Object}
@@ -27484,7 +27503,7 @@ class Peernet {
27484
27503
  if (this.#starting || this.#started)
27485
27504
  return;
27486
27505
  this.#starting = true;
27487
- const importee = await import('./client-A009z8av-DQfd3vOY.js');
27506
+ const importee = await import('./client-A009z8av-Ssch8Yea.js');
27488
27507
  /**
27489
27508
  * @access public
27490
27509
  * @type {PeernetClient}
@@ -1,2 +1,2 @@
1
- export { N as default } from './node-browser-DqIklEKv.js';
2
- import './_polyfill-node.child_process-BsjYmFff.js';
1
+ export { N as default } from './node-browser-CeM_F-HL.js';
2
+ import './_polyfill-node.child_process-CblghArn.js';
@@ -1,4 +1,4 @@
1
- import { E as EasyWorker, B as BigNumber, a as BlockMessage } from './worker-CltAyHf1.js';
1
+ import { E as EasyWorker, B as BigNumber, a as BlockMessage } from './worker-CbAak_hM.js';
2
2
 
3
3
  const worker = new EasyWorker();
4
4