Skip to content

Documentation / @etherfold/core / serializeStreamFixture

Function: serializeStreamFixture() ​

serializeStreamFixture<ABI>(fixture, indent?): string

Defined in: packages/core/src/stream/fixture.ts:93

A fixture as text.

BigInts go out TAGGED (taggedBnReplacer, the one convention this repo has), because decoded uint256 arguments are ordinary, JSON.stringify throws on them, and a fixture of a real chain is exactly where a string argument that reads like a BigInt turns up beside a real one.

Type Parameters ​

ABI ​

ABI extends Abi

Parameters ​

fixture ​

StreamFixture<ABI>

indent? ​

number = 0

Returns ​

string