@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.
- package/exports/browser/chain.js +5 -0
- package/exports/chain.js +5 -0
- package/exports/state.d.ts +1 -0
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -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;
|
package/exports/state.d.ts
CHANGED