solidity

package
v0.5.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StorageEncodeBytes32

func StorageEncodeBytes32(b []byte) (ret common.Hash)

StorageEncodeBytes32 encodes a bytes32 value according to the storage spec.

func StorageEncodeShortString

func StorageEncodeShortString(s string) common.Hash

StorageEncodeShortString encodes a short string according to the storage spec.

func StorageEncodeString

func StorageEncodeString(slotNumber uint8, s string) (ret map[common.Hash]common.Hash)

StorageEncodeString encodes a string according to the storage spec.

func StorageEncodeUint8

func StorageEncodeUint8(n uint8) (ret common.Hash)

StorageEncodeUint8 encodes an uint8 according to the storage spec.

func StorageSlot

func StorageSlot(n uint8) common.Hash

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL