Normalizes raw proof objects (e.g. from a database query) into typed Proof objects by converting amount to bigint. Use deserializeProofs if your proofs are stored as JSON.
amount
bigint
const proofs = normalizeProofAmounts(db.query('SELECT * FROM proofs')); Copy
const proofs = normalizeProofAmounts(db.query('SELECT * FROM proofs'));
Normalizes raw proof objects (e.g. from a database query) into typed Proof objects by converting
amounttobigint. Use deserializeProofs if your proofs are stored as JSON.