utils

package
v0.0.0-...-2ed6a8d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefixZero

func AddPrefixZero(hex []byte, length int) (res []byte)

func BigIntToHex

func BigIntToHex(i *big.Int) string

func BytesToHexStr

func BytesToHexStr(b []byte) string

func ConcatCopy

func ConcatCopy(slices ...[]byte) []byte

func ConcatToArray

func ConcatToArray(slices ...[]byte) [][]byte

func DecodeSingle

func DecodeSingle(str string, typ string) (res interface{}, err error)

func EncodeABI

func EncodeABI(funcSig []byte, inputs ...[]byte) (res []byte)

func ExtractValue

func ExtractValue(input interface{}) (output string)

func FileExists

func FileExists(filename string) bool

func HexStrToBigInt

func HexStrToBigInt(hexStr string) (res *big.Int)

func HexStrToBytes

func HexStrToBytes(hexStr string) []byte

func HexStrToUInt64

func HexStrToUInt64(hexStr string) (res uint64)

func HexToAddress

func HexToAddress(hex string) common.Address

func IntToBigEndianBytes

func IntToBigEndianBytes(input interface{}) []byte

func IsHexStr

func IsHexStr(str string) bool

func PaddingHex

func PaddingHex(str string) string

func ToMethodID

func ToMethodID(funcSig string) []byte

func UInt64ToHex

func UInt64ToHex(i uint64) string

func Uint64ToBytes

func Uint64ToBytes(i uint64) (b []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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