utils

package
v0.0.0-...-74c1675 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbiDecodeArrayOfAddresses

func AbiDecodeArrayOfAddresses(bz []byte) ([]common.Address, error)

AbiDecodeArrayOfAddresses decodes array of addresses

func AbiDecodeBool

func AbiDecodeBool(bz []byte) (bool, error)

AbiDecodeBool decodes bool

func AbiDecodeString

func AbiDecodeString(bz []byte) (string, error)

AbiDecodeString decodes string

func AbiDecodeUint256

func AbiDecodeUint256(bz []byte) (*big.Int, error)

AbiDecodeUint256 decodes uint256

func AbiDecodeUint8

func AbiDecodeUint8(bz []byte) (uint8, error)

AbiDecodeUint8 decodes uint8

func AbiEncodeArrayOfAddresses

func AbiEncodeArrayOfAddresses(addrs []common.Address) ([]byte, error)

AbiEncodeArrayOfAddresses encodes array of addresses

func AbiEncodeBool

func AbiEncodeBool(b bool) ([]byte, error)

AbiEncodeBool encodes bool

func AbiEncodeString

func AbiEncodeString(str string) ([]byte, error)

AbiEncodeString encodes string

func AbiEncodeUint256

func AbiEncodeUint256(num *big.Int) ([]byte, error)

AbiEncodeUint256 encodes uint256

func AbiEncodeUint8

func AbiEncodeUint8(num uint8) ([]byte, error)

AbiEncodeUint8 encodes uint8

func MustMarshalJson

func MustMarshalJson(v any) []byte

MustMarshalJson marshals the given value to JSON and panics if an error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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