solidity

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 StorageEncodeUint256

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

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