@leofcoin/chain 1.5.18 → 1.5.19

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.
@@ -1584,6 +1584,11 @@ class State extends Contract {
1584
1584
  const latest = await this.#getLatestBlock();
1585
1585
  return this.syncChain(latest);
1586
1586
  }
1587
+ async triggerLoad() {
1588
+ if (this.#blocks.length > 0) {
1589
+ this.#machine = await new Machine(this.#blocks);
1590
+ }
1591
+ }
1587
1592
  }
1588
1593
 
1589
1594
  globalThis.BigNumber = BigNumber;
package/exports/chain.js CHANGED
@@ -1020,6 +1020,11 @@ class State extends Contract {
1020
1020
  const latest = await this.#getLatestBlock();
1021
1021
  return this.syncChain(latest);
1022
1022
  }
1023
+ async triggerLoad() {
1024
+ if (this.#blocks.length > 0) {
1025
+ this.#machine = await new Machine(this.#blocks);
1026
+ }
1027
+ }
1023
1028
  }
1024
1029
 
1025
1030
  globalThis.BigNumber = BigNumber;
@@ -37,5 +37,6 @@ export default class State extends Contract {
37
37
  get canSync(): boolean;
38
38
  get shouldSync(): boolean;
39
39
  triggerSync(): Promise<SyncState>;
40
+ triggerLoad(): Promise<void>;
40
41
  }
41
42
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.5.18",
3
+ "version": "1.5.19",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": {