mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 04:15:54 +00:00
79c6bdc214
* Initial implementation of eth_getProof endpoint. * Implemented generation of account and storage proofs. * Minor fixes and additional tests. * Refactor getBranch code into a separate file. * Improve usage of test data. * Fix copyright year. * Return zero hash for codeHash and storageHash if account doesn't exist. * Update copyright notice and moved trie key hashing to inside getBranch proc.
37 lines
952 B
Nim
37 lines
952 B
Nim
# Nimbus
|
|
# Copyright (c) 2018-2024 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
## Read only source, import `state_db/read_write` for full functionality.
|
|
##
|
|
## Note that the writable mode is only partially supported by the `Aristo`
|
|
## backend of `CoreDb` (read-only mode is fully supported.)
|
|
|
|
import
|
|
state_db/[base, read_only]
|
|
|
|
export
|
|
AccountStateDB,
|
|
ReadOnlyStateDB,
|
|
accountExists,
|
|
getAccount,
|
|
getBalance,
|
|
getCode,
|
|
getCodeHash,
|
|
getNonce,
|
|
getStorage,
|
|
getStorageRoot,
|
|
getTrie,
|
|
hasCodeOrNonce,
|
|
isDeadAccount,
|
|
isEmptyAccount,
|
|
newAccountStateDB,
|
|
rootHash,
|
|
getAccountProof,
|
|
getStorageProof
|
|
|
|
# End
|