Help us shape the future of Go! Take the 2026 Go Developer Survey

idconv

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package idconv converts between SDK uint256 identifiers and generated contract binding *big.Int values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigSlice

func BigSlice(values []types.BigInt) []*big.Int

BigSlice returns defensive *big.Int copies for contract calls.

func FromBig added in v0.2.0

func FromBig(name string, v *big.Int) (types.BigInt, error)

FromBig validates v as uint256 and returns it as a types.BigInt.

func FromBigSlice added in v0.2.0

func FromBigSlice(name string, values []*big.Int) ([]types.BigInt, error)

FromBigSlice applies FromBig to every value.

func Key added in v0.2.0

func Key(id types.BigInt) string

Key returns a stable binary map key for an identifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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