util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalBigInt

func MarshalBigInt(input *big.Int) string

MarshalBigInt marshals a big.Int as per the Ethereum standard.

func MarshalByteArray

func MarshalByteArray(input []byte) string

MarshalByteArray marshals a byte array as per the Ethereum standard.

func MarshalNullableByteArray

func MarshalNullableByteArray(input []byte) string

MarshalNullableByteArray marshals a byte array as per the Ethereum standard.

func MarshalNullableUint32 added in v0.2.0

func MarshalNullableUint32(input uint32) string

MarshalNullableUint32 marshals a uint32 as per the Ethereum standard, with 0 as null.

func MarshalUint32

func MarshalUint32(input uint32) string

MarshalUint32 marshals a uint32 as per the Ethereum standard.

func MarshalUint64

func MarshalUint64(input uint64) string

MarshalUint64 marshals a uint64 as per the Ethereum standard.

func PreUnmarshalHexString

func PreUnmarshalHexString(input string) string

PreUnmarshalHexString tidies up an input hex string, removing any leading '0x' and ensuring that the input has an even number of hex digits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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