Skip to main content
Version: Next

contract

compile : <p, s>(_: (_: [p, s]) => [list<operation>, s]) => michelson_contract<p, s>

Compiles a contract from an entrypoint function.

compile_with_views: <p, s>(f: (_: [p, s]) => [list<operation>, s], v: views<s>) => michelson_contract<p, s>

Compiles a contract with given views.

size: <p, s>(_: michelson_contract<p, s>) => int

Measures the size of a contract.

from_file: <p, s>(michelson_file: string) => michelson_contract<p, s>

Reads a contract from a .tz file.

compile_from_file: <p, s>(contract_file: string) => michelson_contract<p, s>

Compiles a contract with a path to the contract file, an entrypoint, and a list of views.