Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class EvmHookStorageUpdate.EvmHookMappingEntries
java.lang.Object
com.hedera.hashgraph.sdk.EvmHookStorageUpdate
com.hedera.hashgraph.sdk.EvmHookStorageUpdate.EvmHookMappingEntries
- Enclosing class:
EvmHookStorageUpdate
Represents storage updates via Solidity mapping entries.
This class allows updates to be specified in terms of Solidity mapping entries rather than raw storage slots, making it easier to work with high-level data structures.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hedera.hashgraph.sdk.EvmHookStorageUpdate
EvmHookStorageUpdate.EvmHookMappingEntries, EvmHookStorageUpdate.EvmHookStorageSlot -
Constructor Summary
ConstructorsConstructorDescriptionEvmHookMappingEntries(byte[] mappingSlot, List<EvmHookMappingEntry> entries) Create a new mapping entries update. -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) static EvmHookStorageUpdate.EvmHookMappingEntriesGet the mapping entries.byte[]Get the mapping slot.inthashCode()(package private) EvmHookStorageUpdateConvert this storage update to a protobuf message.toString()Methods inherited from class com.hedera.hashgraph.sdk.EvmHookStorageUpdate
fromProtobuf
-
Constructor Details
-
EvmHookMappingEntries
Create a new mapping entries update.- Parameters:
mappingSlot- the slot that corresponds to the Solidity mapping (minimal representation)entries- the entries to update in the mapping
-
-
Method Details
-
getMappingSlot
public byte[] getMappingSlot()Get the mapping slot.- Returns:
- a copy of the mapping slot bytes
-
getEntries
Get the mapping entries.- Returns:
- a copy of the entries list
-
toProtobuf
EvmHookStorageUpdate toProtobuf()Description copied from class:EvmHookStorageUpdateConvert this storage update to a protobuf message.- Specified by:
toProtobufin classEvmHookStorageUpdate- Returns:
- the protobuf EvmHookStorageUpdate
-
fromProtobuf
-
equals
-
hashCode
public int hashCode() -
toString
-