You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Defined in [state/stateManager.ts:554](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L554)*
223
-
224
-
Checks if the `account` corresponding to `address` is empty as defined in [EIP-161](https://eips.ethereum.org/EIPS/eip-161).
213
+
*Defined in [state/stateManager.ts:573](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L573)*
225
214
226
215
**Parameters:**
227
216
@@ -239,9 +228,7 @@ ___
239
228
240
229
▸ **checkpoint**(cb: *`any`*): `void`
241
230
242
-
*Defined in [state/stateManager.ts:334](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L334)*
243
-
244
-
Checkpoints the current state of the StateManager instance. State changes that follow can then be committed by calling `commit` or `reverted` by calling rollback.
231
+
*Defined in [state/stateManager.ts:346](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L346)*
245
232
246
233
**Parameters:**
247
234
@@ -258,9 +245,7 @@ ___
258
245
259
246
▸ **cleanupTouchedAccounts**(cb: *`any`*): `void`
260
247
261
-
*Defined in [state/stateManager.ts:575](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L575)*
262
-
263
-
Removes accounts form the state trie that have been touched, as defined in [EIP-161](https://eips.ethereum.org/EIPS/eip-161).
248
+
*Defined in [state/stateManager.ts:594](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L594)*
*Defined in [state/stateManager.ts:500](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L500)*
353
-
354
-
Generates a canonical genesis state on the instance based on the configured chain parameters. Will error if there are uncommitted checkpoints on the instance.
329
+
*Defined in [state/stateManager.ts:519](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L519)*
*Defined in [state/stateManager.ts:89](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L89)*
392
-
393
-
Gets the [`ethereumjs-account`](https://github.com/ethereumjs/ethereumjs-account) associated with `address`. Returns an empty account if the account does not exist.
364
+
*Defined in [state/stateManager.ts:90](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L90)*
*Defined in [state/stateManager.ts:230](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L230)*
453
-
454
-
Caches the storage value associated with the provided `address` and `key` on first invocation, and returns the cached (original) value from then onwards. This is used to get the original value of a storage slot for computing gas costs according to EIP-1283.
419
+
*Defined in [state/stateManager.ts:242](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L242)*
455
420
456
421
**Parameters:**
457
422
@@ -470,9 +435,7 @@ ___
470
435
471
436
▸ **getStateRoot**(cb: *`any`*): `void`
472
437
473
-
*Defined in [state/stateManager.ts:396](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L396)*
474
-
475
-
Gets the state-root of the Merkle-Patricia trie representation of the state of this StateManager. Will error if there are uncommitted checkpoints on the instance.
438
+
*Defined in [state/stateManager.ts:415](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L415)*
476
439
477
440
**Parameters:**
478
441
@@ -489,9 +452,7 @@ ___
489
452
490
453
▸ **hasGenesisState**(cb: *`any`*): `void`
491
454
492
-
*Defined in [state/stateManager.ts:489](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L489)*
493
-
494
-
Checks whether the current instance has the canonical genesis state for the configured chain parameters.
455
+
*Defined in [state/stateManager.ts:508](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L508)*
*Defined in [state/stateManager.ts:418](https://github.com/ethereumjs/ethereumjs-vm/blob/439570a/lib/state/stateManager.ts#L418)*
595
-
596
-
Sets the state of the instance to that represented by the provided `stateRoot`. Will error if there are uncommitted checkpoints on the instance or if the state root does not exist in the state trie.
547
+
*Defined in [state/stateManager.ts:437](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L437)*
597
548
598
549
**Parameters:**
599
550
@@ -605,4 +556,21 @@ Sets the state of the instance to that represented by the provided `stateRoot`.
605
556
**Returns:**`void`
606
557
607
558
___
559
+
<aid="touchaccount"></a>
560
+
561
+
### touchAccount
562
+
563
+
▸ **touchAccount**(address: *`Buffer`*): `void`
564
+
565
+
*Defined in [state/stateManager.ts:118](https://github.com/ethereumjs/ethereumjs-vm/blob/c389bbb/lib/state/stateManager.ts#L118)*
0 commit comments