utils/proto_int library

Functions

bigIntToUint64(BigInt value) → Int64
uint64ToBigInt(Int64 value) → BigInt
Protobuf stores uint64 in a signed Int64 container. Reading its decimal string (or converting through a JS number) loses the unsigned interpretation.