Documentation ¶
Index ¶
- func StorageEncodeBytes(slotNumber uint8, b []byte) (ret map[common.Hash]common.Hash)
- func StorageEncodeBytes32(b []byte) (ret common.Hash)
- func StorageEncodeShortString(s string) common.Hash
- func StorageEncodeString(slotNumber uint8, s string) (ret map[common.Hash]common.Hash)
- func StorageEncodeUint256(n *big.Int) (ret common.Hash)
- func StorageEncodeUint8(n uint8) (ret common.Hash)
- func StorageSlot(n uint8) common.Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StorageEncodeBytes ¶
StorageEncodeBytes encodes a byte array according to the storage spec.
func StorageEncodeBytes32 ¶
StorageEncodeBytes32 encodes a bytes32 value according to the storage spec.
func StorageEncodeShortString ¶
StorageEncodeShortString encodes a short string according to the storage spec.
func StorageEncodeString ¶
StorageEncodeString encodes a string according to the storage spec.
func StorageEncodeUint256 ¶
StorageEncodeUint256 encodes a uint256 value according to the storage spec.
func StorageEncodeUint8 ¶
StorageEncodeUint8 encodes an uint8 according to the storage spec.
func StorageSlot ¶
StorageSlot returns the key for the given storage slot #. See https://docs.soliditylang.org/en/v0.8.16/internals/layout_in_storage.html
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.