storage

package
v0.0.0-...-0bc4ac8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Erc20AccountBalanceSlotIdx

func Erc20AccountBalanceSlotIdx(client *client.Client, balanceOfSlotIdx *big.Int, addr common.Address) common.Hash

Get slot for account balance when know slot index of the `balanceOf` map (map address => uint256)

func FindErc20BalanceOfSlotIdx

func FindErc20BalanceOfSlotIdx(client *client.Client, contractAddress common.Address) (*big.Int, error)

find slot index of balance of a specified account

func SetStorageAt

func SetStorageAt(client *client.Client, contractAddress common.Address, idx, data common.Hash) error

Set storage slot at slot index

Types

This section is empty.

Jump to

Keyboard shortcuts

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