uint64ToBigInt function
Protobuf stores uint64 in a signed Int64 container. Reading its decimal string (or converting through a JS number) loses the unsigned interpretation.
Implementation
BigInt uint64ToBigInt(Int64 value) => BigInt.parse(value.toStringUnsigned());