hedera-mirror-node icon indicating copy to clipboard operation
hedera-mirror-node copied to clipboard

Add ContractStorageDatabaseReadableKVState for reading contract slot values

Open IvanKavaldzhiev opened this issue 6 months ago • 0 comments

Problem

We need to add a new type of database accessor to read contract storage, so that we have specific ReadableKVState instance for this type of data.

Solution

Add ContractStorageDatabaseReadableKVState class that reads contract storage related data and converts slotValue to SlotValue PBJ type.

Add unit tests to cover all cases including historical reads and correct mapping for all fields.

Alternatives

No response

IvanKavaldzhiev avatar Sep 03 '24 09:09 IvanKavaldzhiev