package
0.0.0-20250106071849-df598f952530
Repository: https://github.com/fantom-foundation/aida.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

ClearAccountStorage clears storage of all input accounts.
CopyDir copies a whole directory recursively.
DeleteDestroyedAccountsFromStateDB performs suicide operations on previously self-destructed accounts.
DeleteDestroyedAccountsFromWorldState removes previously suicided accounts from the world state.
DownloadPatchesJson downloads list of available patches from aida-db generation server.
FindBlockRangeInSubstate if AidaDb does not yet have metadata.
FindEpochNumber via RPC request GetBlockByNumber.
FindHeadEpochNumber via RPC request GetBlockByNumber.
GenerateUpdateSet generates an update set for a block range.
GenerateWorldStateFromUpdateDB generates an initial world-state from pre-computed update-set.
GetDirectorySize iterates over all files inside given directory (including subdirectories) and returns size in bytes.
GetFilesWithinDirectories iterates all paths and returns array of paths of every file within these paths.
GetFirstStateHash returns the first block number for which we have a state hash.
GetFreeSpace returns the amount of free space in bytes on the filesystem containing the given path.
No description provided by the author
GetLastStateHash returns the last block number for which we have a state hash.
No description provided by the author
GetRandom generates random number in from given range.
No description provided by the author
HasStateHashPatch checks whether given db has already acquired patch with StateHashes.
MakeAccountStorage generates randomized account storage with testAccountStorageSize length.
No description provided by the author
MakeRandomByteSlice creates byte slice of given length with randomized values.
No description provided by the author
MakeTestConfig creates a config struct for testing.
MakeWorldState generates randomized world state containing 100 accounts.
MemoryBreakdown prints memory usage details of statedb if applicable.
NewAidaDbMetadata creates new instance of AidaDbMetadata.
NewConfig creates and initializes Config with commandline arguments.
No description provided by the author
No description provided by the author
NewMockStateHashProvider creates a new mock instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewProgressTracker creates a new progress tracer.
No description provided by the author
NewTestConfig creates a new config for test purpose.
OverwriteDbPathsByAidaDb overwrites the paths of the DBs by the AidaDb path.
PrepareStateDB creates stateDB or load existing stateDB Use this function when both opening existing and creating new StateDB.
PrintEvmStatistics prints EVM implementation specific statical information to the console.
ProcessCloneLikeMetadata inserts every metadata from sourceDb, only epochs are excluded.
No description provided by the author
ProcessMergeMetadata decides the type according to the types of merged Dbs and inserts every metadata.
ProcessPatchLikeMetadata decides whether patch is new or not.
ReadStateDbInfo reads meta file of loaded stateDB.
RenameTempStateDbDirectory renames a temp directory to a meaningful name.
No description provided by the author
SaveStateRoot saves the state root hash to the database.
No description provided by the author
SetBlockRange checks the validity of a block range and return the first and last block as numbers.
No description provided by the author
No description provided by the author
StateHashKeyToUint64 converts a state hash key to a uint64.
StateHashScraper scrapes state hashes from a node and saves them to a leveldb database.
No description provided by the author
ToTitleCase adjusts fork names to title case.
WriteStateDbInfo writes stateDB implementation info and block height to a file for a compatibility check when reloading.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
requires 2 arguments: first block and last block.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
confirms whether a substate and StateDB are identical.
No description provided by the author
EthTestsChainID is a mock ChainID which is necessary for setting the chain rules to allow any block number for any fork.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
requires 1 argument: last block.
No description provided by the author
No description provided by the author
No description provided by the author
requires no arguments.
No description provided by the author
requires at least one argument, but accepts up to N.
threshold for wrapping a bulk load and reporting a priming progress.
No description provided by the author
requires 1 argument: path to file.
No description provided by the author
No description provided by the author
No description provided by the author
special transaction number for pseudo transactions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
confirms whether a substate is contained in stateDB.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Command line options for common flags in record and replay.
url of the Aida DB repository.
No description provided by the author
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
id of the first block in substate.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
GitCommit represents the GitHub commit hash the app was built from.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
A map of key blocks on Fantom chain.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
No description provided by the author
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
No description provided by the author
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.
Command line options for common flags in record and replay.

# Structs

AidaDbMetadata holds any information about AidaDb needed for putting it into the Db.
Config represents execution configuration for Aida tools.
No description provided by the author
No description provided by the author
No description provided by the author
MockStateHashProvider is a mock of StateHashProvider interface.
MockStateHashProviderMockRecorder is the mock recorder for MockStateHashProvider.
PatchJson represents struct of JSON file where information about patches is written.
PrimeContext structure keeps context used over iterations of priming.
No description provided by the author
No description provided by the author
PrinterToDb writes by inserting rows into DB Wrap f, returns an array of values to be inserted.
PrinterToFile writes to a File Wrap f, returns a string to be printed.
PrinterToWriter writes to any io.Writer Wrap f, returns a string to be printed.
No description provided by the author
No description provided by the author
StateDbInfo StateDB meta information.
No description provided by the author

# Interfaces

Event is a synchronization primitive for signaling the occurrence of a one-time event.
Printer is a utility class to output data from the system.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Type of validation performs on stateDB during Tx processing.