Documentation ¶
Index ¶
Constants ¶
View Source
const FixedLength = 32 // u256 -> 32 bytes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HexBigInt ¶ added in v0.146.3
Unmarshals a u256 as a fixed-length hex string with 0x prefix and leading zeros
func (*HexBigInt) UnmarshalJSON ¶ added in v0.146.3
type SQLBigInt ¶
SQLBigInt type for storing uint256 in the databse. FIXME(dshulyak) SQL big int is max 64 bits. Maybe store as bytes in big endian and hope that lexographical sorting will work.
type SQLBigIntBytes ¶
SQLBigIntBytes type for storing big.Int as BLOB in the databse.
func (*SQLBigIntBytes) Scan ¶
func (i *SQLBigIntBytes) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.