MCPcopy Create free account
hub / github.com/wevm/viem / stringify

Function stringify

src/utils/stringify.ts:5–13  ·  view source on GitHub ↗
(value, replacer, space)

Source from the content-addressed store, hash-verified

3export type StringifyErrorType = ErrorType
4
5export const stringify: typeof JSON.stringify = (value, replacer, space) =>
6 JSON.stringify(
7 value,
8 (key, value_) => {
9 const value = typeof value_ === 'bigint' ? value_.toString() : value_
10 return typeof replacer === 'function' ? replacer(key, value) : value
11 },
12 space,
13 )

Callers 15

generateAbiVectorsFunction · 0.90
pollContractEventFunction · 0.85
subscribeContractEventFunction · 0.85
pollBlocksFunction · 0.85
pollPendingTransactionsFunction · 0.85
scheduleMulticallFunction · 0.85
watchBlockHeadersFunction · 0.85
pollEventFunction · 0.85
pollBlockNumberFunction · 0.85
subscribeBlockNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected