A browser friendly implementation of clvm.
npm install @rigidity/clvmCons or Uint8Array.
Program and Program.
1.
().
Uint8Array value of the program.
Cons pair of the program.
Program value of cons.
Program value of cons.
boolean for if it's an atom.
boolean for if it's a cons pair.
boolean for if it's null.
first is a Program.
rest is a Program.
Program that is a cons pair between them.
bytes is a Uint8Array.
Program.
hex is a hex string.
Program.
value is a boolean.
Program.
value is a number.
Program.
value is a bigint.
Program.
text is a string.
Program.
source is a string.
Program.
programs is an Array.
Program.
bytes is a Uint8Array.
Program.
value is a Value.
string containing the line and column suffix, if there is one.
position is a Position.
this.
args is an Array.
Program containing the current one with each argument applied to it in reverse, precommitting them in the final solution.
[Program, Array] containing the mod and curried in arguments.
Uint8Array of the tree hash of the program. Hashed with 1 for atoms, and 2 for cons pairs.
string representation of the tree hash.
Program containing the current one wrapped in a mod if there isn't already, and with a definition inserted.
programs is an Array.
Program containing the current one and each definition.
options is a partial CompileOptions, defaulting to strict = false, operators = base, and includeFilePaths = {}.
ProgramOutput that is the result of compiling the program. Should be identical to the run CLI tool.
environment is a Program.
options is a partial RunOptions, defaulting to strict = false and operators = base.
ProgramOutput that is the result of running the program. Should be identical to the brun CLI tool.
Uint8Array representation.
string representation.
boolean representation.
number representation.
bigint representation.
string representation.
showKeywords is a boolean, by default true.
string source code representation, like it would be if it were an output from run or brun.
strict is a boolean, by default false.
Array representation. If it's strict, it must be a proper list.
Uint8Array serialized form of the program.
string representation of the serialized form of the program.
value is a Program.
boolean for if the values are exactly equal.
string source code representation, like it would be if it were an output from run or brun.