@leofcoin/chain 1.5.18 → 1.5.20

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/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 {};