solidity

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StorageEncodeBytes

func StorageEncodeBytes(slotNumber uint8, b []byte) (ret map[common.Hash]common.Hash)

StorageEncodeBytes encodes a byte array according to the storage spec.

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 StorageEncodeUint256

func StorageEncodeUint256(n *big.Int) (ret common.Hash)

StorageEncodeUint256 encodes a uint256 value 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