Michelson REPL¶
Interpreter¶
-
class
pytezos.michelson.repl.
Interpreter
(debug=True)[source]¶ Michelson interpreter reimplemented in Python. Based on the following reference: https://tezos.gitlab.io/michelson-reference/
-
static
run_code
(parameter, storage, script, entrypoint='default', output_mode='readable', amount=None, chain_id=None, source=None, sender=None, balance=None, block_id=None, **kwargs) → Tuple[List[dict], Any, List[dict], List[str], Optional[Exception]][source]¶
-
static
run_view
(entrypoint, parameter, storage, context: pytezos.context.impl.ExecutionContext) → Tuple[Any, List[str], Optional[Exception]][source]¶
-
static
Michelson stack¶
-
class
pytezos.michelson.stack.
MichelsonStack
(items: Optional[List[pytezos.michelson.types.base.MichelsonType]] = None)[source]¶ -
-
classmethod
from_items
(items: List[pytezos.michelson.types.base.MichelsonType])[source]¶
-
pop
(count: int) → List[pytezos.michelson.types.base.MichelsonType][source]¶
-
pop2
() → Tuple[pytezos.michelson.types.base.MichelsonType, pytezos.michelson.types.base.MichelsonType][source]¶
-
classmethod