Documentation ¶
Index ¶
- Constants
- func FloatToNumeric(f *big.Float) (pgtype.Numeric, error)
- func IntToNumeric(i *big.Int) (pgtype.Numeric, error)
- func MapValsToArr[T comparable, U any](m map[T]U) []U
- func MustFloatToNumeric(f *big.Float) pgtype.Numeric
- func MustIntToNumeric(i *big.Int) pgtype.Numeric
- func MustNumericToInt(n pgtype.Numeric) *big.Int
- func NewLargeFloat() *big.Float
- func NumericToFloat(n pgtype.Numeric) (*big.Float, error)
- func NumericToInt(n pgtype.Numeric) (*big.Int, error)
- func NumericToRat(n pgtype.Numeric) (*big.Rat, error)
- func RatToNumeric(r *big.Rat) (pgtype.Numeric, error)
Constants ¶
View Source
const SolidityIntSize uint = 256
SolidityIntSize is the size of a Solidity int in bits.
Variables ¶
This section is empty.
Functions ¶
func MapValsToArr ¶
func MapValsToArr[T comparable, U any](m map[T]U) []U
func NewLargeFloat ¶
NewLargeFloat creates a new big.Float with a mantissa large enough to accurately represent the 256-bit integers used in Solidity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.