Serialize a Program to compiler-artifact JSON — the inverse of
parseArtifact: bytes become 0x-hex strings; bigint tokens become
plain numbers (or, above Number.MAX_SAFE_INTEGER, 0x-hex of their
minimal script-num bytes, which the script encoder pushes identically);
literal timelock values serialize as decimal strings while "$param"
timelock references are emitted as-is.
Serialize a Program to compiler-artifact JSON — the inverse of parseArtifact: bytes become
0x-hex strings; bigint tokens become plain numbers (or, aboveNumber.MAX_SAFE_INTEGER,0x-hex of their minimal script-num bytes, which the script encoder pushes identically); literal timelock values serialize as decimal strings while"$param"timelock references are emitted as-is.