@ethereumjs/common / StateManagerInterface
StateManagerInterface
▸ checkpoint(): Promise
<void
>
Promise
<void
>
▸ clearContractStorage(address
): Promise
<void
>
Name | Type |
---|---|
address |
Address |
Promise
<void
>
▸ commit(): Promise
<void
>
Promise
<void
>
▸ deleteAccount(address
): Promise
<void
>
Name | Type |
---|---|
address |
Address |
Promise
<void
>
▸ getAccount(address
): Promise
<undefined
| Account
>
Name | Type |
---|---|
address |
Address |
Promise
<undefined
| Account
>
▸ Optional
getAppliedKey(address
): Uint8Array
Name | Type |
---|---|
address |
Uint8Array |
Uint8Array
▸ getContractCode(address
): Promise
<Uint8Array
>
Name | Type |
---|---|
address |
Address |
Promise
<Uint8Array
>
▸ getContractStorage(address
, key
): Promise
<Uint8Array
>
Name | Type |
---|---|
address |
Address |
key |
Uint8Array |
Promise
<Uint8Array
>
▸ Optional
getProof(address
, storageSlots
): Promise
<Proof
>
Name | Type |
---|---|
address |
Address |
storageSlots |
Uint8Array [] |
Promise
<Proof
>
▸ getStateRoot(): Promise
<Uint8Array
>
Promise
<Uint8Array
>
▸ hasStateRoot(root
): Promise
<boolean
>
Name | Type |
---|---|
root |
Uint8Array |
Promise
<boolean
>
▸ modifyAccountFields(address
, accountFields
): Promise
<void
>
Name | Type |
---|---|
address |
Address |
accountFields |
Partial <Pick <Account , "nonce" | "balance" | "storageRoot" | "codeHash" >> |
Promise
<void
>
▸ putAccount(address
, account?
): Promise
<void
>
Name | Type |
---|---|
address |
Address |
account? |
Account |
Promise
<void
>
▸ putContractCode(address
, value
): Promise
<void
>
Name | Type |
---|---|
address |
Address |
value |
Uint8Array |
Promise
<void
>
▸ putContractStorage(address
, key
, value
): Promise
<void
>
Name | Type |
---|---|
address |
Address |
key |
Uint8Array |
value |
Uint8Array |
Promise
<void
>
▸ revert(): Promise
<void
>
Promise
<void
>
▸ setStateRoot(stateRoot
, clearCache?
): Promise
<void
>
Name | Type |
---|---|
stateRoot |
Uint8Array |
clearCache? |
boolean |
Promise
<void
>
▸ shallowCopy(downlevelCaches?
): StateManagerInterface
Name | Type |
---|---|
downlevelCaches? |
boolean |