Type alias CompilationResultSuccess<ProgramState>

CompilationResultSuccess<ProgramState>: CompilationResultReduce<ProgramState> & {
    bytecode: Uint8Array;
    success: true;
    transformed?: "p2sh20-locking" | "p2sh20-unlocking" | "p2sh32-locking" | "p2sh32-unlocking";
}

Type Parameters

  • ProgramState

Type declaration

  • bytecode: Uint8Array
  • success: true
  • Optional transformed?: "p2sh20-locking" | "p2sh20-unlocking" | "p2sh32-locking" | "p2sh32-unlocking"

    The transformation type of the resulting bytecode.

    Set to p2sh20-locking if the resulting bytecode was transformed into a P2SH20 locking script (OP_HASH160 <$(<result> OP_HASH160)> OP_EQUAL).

    Set to p2sh20-unlocking if the resulting bytecode was transformed into a P2SH20 unlocking script (result <locking_script>).

    This property is not defined if the result was not transformed.

Generated using TypeDoc