util

package
v0.0.0-...-57b907f Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCalldata

func BuildCalldata(abiJSON, method string, args ...interface{}) ([]byte, error)

BuildCalldata generates ABI-encoded calldata for a method and args

func ParseHexUint64

func ParseHexUint64(hexStr string) (uint64, error)

func RevertReason

func RevertReason(hexData string) (string, error)

RevertReason decodes the revert reason string from eth_call result

func TypedDataHash

func TypedDataHash(typedDataJSON string) (common.Hash, error)

TypedDataHash implements EIP-712 hash (domain separator + message struct hash)

Types

This section is empty.

Jump to

Keyboard shortcuts

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