Michelson instructions

Base Class

class pytezos.michelson.instructions.base.MichelsonInstruction[source]
args: List[Union[Type[pytezos.michelson.instructions.base.MichelsonInstruction], Any]] = []
classmethod as_micheline_expr() → dict[source]
classmethod create_type(args: List[Type[Micheline]], annots: Optional[list] = None, **kwargs) → Type[MichelsonInstruction][source]
classmethod execute(stack: MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
field_names: List[str] = []
static match(expr) → Type[MichelsonInstruction][source]
var_names: List[str] = []
class pytezos.michelson.instructions.base.Wildcard[source]
static n(count: int) → List[pytezos.michelson.instructions.base.Wildcard][source]
pytezos.michelson.instructions.base.dispatch_types(*args: Type[pytezos.michelson.micheline.Micheline], mapping: Dict[Tuple[Type[pytezos.michelson.micheline.Micheline], ], Tuple[Any, ]])[source]
pytezos.michelson.instructions.base.format_stdout(prim: str, inputs: list, outputs: list, arg=None)[source]

ADT operations

class pytezos.michelson.instructions.adt.CarInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CAR'
class pytezos.michelson.instructions.adt.CdrInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CDR'
class pytezos.michelson.instructions.adt.GetnInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'GET'
class pytezos.michelson.instructions.adt.LeftInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LEFT'
class pytezos.michelson.instructions.adt.PairInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'PAIR'
class pytezos.michelson.instructions.adt.PairnInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'PAIR'
class pytezos.michelson.instructions.adt.RightInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'RIGHT'
class pytezos.michelson.instructions.adt.UnpairInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'UNPAIR'
class pytezos.michelson.instructions.adt.UnpairnInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'UNPAIR'
class pytezos.michelson.instructions.adt.UpdatenInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'UPDATE'
pytezos.michelson.instructions.adt.execute_cxr(prim: str, stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], idx: int)[source]

Arithmetic operations

class pytezos.michelson.instructions.arithmetic.AbsInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'ABS'
class pytezos.michelson.instructions.arithmetic.AddInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'ADD'
class pytezos.michelson.instructions.arithmetic.EdivInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'EDIV'
class pytezos.michelson.instructions.arithmetic.IntInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'INT'
class pytezos.michelson.instructions.arithmetic.IsNatInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'ISNAT'
class pytezos.michelson.instructions.arithmetic.LslInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LSL'
class pytezos.michelson.instructions.arithmetic.LsrInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LSR'
class pytezos.michelson.instructions.arithmetic.MulInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'MUL'
class pytezos.michelson.instructions.arithmetic.NegInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'NEG'
class pytezos.michelson.instructions.arithmetic.SubInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SUB'
pytezos.michelson.instructions.arithmetic.execute_shift(prim: str, stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], shift: Callable[Tuple[int, int], int])[source]

Boolean operations

class pytezos.michelson.instructions.boolean.AndInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'AND'
class pytezos.michelson.instructions.boolean.NotInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'NOT'
class pytezos.michelson.instructions.boolean.OrInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'OR'
class pytezos.michelson.instructions.boolean.XorInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'XOR'
pytezos.michelson.instructions.boolean.execute_boolean_add(prim: str, stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], add: Callable)[source]

Comparison operations

class pytezos.michelson.instructions.compare.CompareInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'COMPARE'
class pytezos.michelson.instructions.compare.EqInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'EQ'
class pytezos.michelson.instructions.compare.GeInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'GE'
class pytezos.michelson.instructions.compare.GtInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'GT'
class pytezos.michelson.instructions.compare.LeInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LE'
class pytezos.michelson.instructions.compare.LtInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LT'
class pytezos.michelson.instructions.compare.NeqInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'NEQ'
pytezos.michelson.instructions.compare.compare(a, b) → int[source]
pytezos.michelson.instructions.compare.execute_zero_compare(prim: str, stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], compare: Callable[int, bool])[source]

Control flow operations

class pytezos.michelson.instructions.control.ApplyInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'APPLY'
class pytezos.michelson.instructions.control.DipInstruction(item: pytezos.michelson.instructions.base.MichelsonInstruction)[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'DIP'
class pytezos.michelson.instructions.control.DipnInstruction(item: pytezos.michelson.instructions.base.MichelsonInstruction)[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'DIP'
class pytezos.michelson.instructions.control.ExecInstruction(item: pytezos.michelson.instructions.base.MichelsonInstruction)[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'EXEC'
class pytezos.michelson.instructions.control.FailwithInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'FAILWITH'
class pytezos.michelson.instructions.control.IfConsInstruction(item: pytezos.michelson.instructions.base.MichelsonInstruction)[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'IF_CONS'
class pytezos.michelson.instructions.control.IfInstruction(item: pytezos.michelson.instructions.base.MichelsonInstruction)[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'IF'
class pytezos.michelson.instructions.control.IfLeftInstruction(item: pytezos.michelson.instructions.base.MichelsonInstruction)[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'IF_LEFT'
class pytezos.michelson.instructions.control.IfNoneInstruction(item: pytezos.michelson.instructions.base.MichelsonInstruction)[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'IF_NONE'
class pytezos.michelson.instructions.control.IterInstruction(items: List[pytezos.michelson.instructions.base.MichelsonInstruction])[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'ITER'
class pytezos.michelson.instructions.control.LambdaInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LAMBDA'
class pytezos.michelson.instructions.control.LoopInstruction(items: List[pytezos.michelson.instructions.base.MichelsonInstruction])[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LOOP'
class pytezos.michelson.instructions.control.LoopLeftInstruction(items: List[pytezos.michelson.instructions.base.MichelsonInstruction])[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LOOP_LEFT'
class pytezos.michelson.instructions.control.MapInstruction(items: List[pytezos.michelson.instructions.base.MichelsonInstruction])[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'MAP'
pytezos.michelson.instructions.control.execute_dip(prim: str, stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], count: int, body: Type[pytezos.michelson.instructions.base.MichelsonInstruction], context: pytezos.context.abstract.AbstractContext)pytezos.michelson.instructions.base.MichelsonInstruction[source]

Crypto operations

class pytezos.michelson.instructions.crypto.Blake2bInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'BLAKE2B'
class pytezos.michelson.instructions.crypto.CheckSignatureInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CHECK_SIGNATURE'
class pytezos.michelson.instructions.crypto.HashKeyInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'HASH_KEY'
class pytezos.michelson.instructions.crypto.KeccakInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'KECCAK'
class pytezos.michelson.instructions.crypto.PairingCheckInstruction[source]
classmethod execute(stack: MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'PAIRING_CHECK'
class pytezos.michelson.instructions.crypto.SaplingEmptyStateInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SAPLING_EMPTY_STATE'
class pytezos.michelson.instructions.crypto.SaplingVerifyUpdateInstruction[source]
prim: Optional[str] = 'SAPLING_VERIFY_UPDATE'
class pytezos.michelson.instructions.crypto.Sha256Instruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SHA256'
class pytezos.michelson.instructions.crypto.Sha3Instruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SHA3'
class pytezos.michelson.instructions.crypto.Sha512Instruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SHA512'
pytezos.michelson.instructions.crypto.execute_hash(prim: str, stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], hash_digest: Callable[bytes, bytes])[source]

Generic operations

class pytezos.michelson.instructions.generic.ConcatInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CONCAT'
class pytezos.michelson.instructions.generic.NeverInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'NEVER'
class pytezos.michelson.instructions.generic.PackInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'PACK'
class pytezos.michelson.instructions.generic.SizeInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SIZE'
class pytezos.michelson.instructions.generic.SliceInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SLICE'
class pytezos.michelson.instructions.generic.UnitInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'UNIT'
class pytezos.michelson.instructions.generic.UnpackInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'UNPACK'

Stack operations

class pytezos.michelson.instructions.stack.CastIntruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CAST'
class pytezos.michelson.instructions.stack.DigInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'DIG'
class pytezos.michelson.instructions.stack.DropInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'DROP'
class pytezos.michelson.instructions.stack.DropnInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'DROP'
class pytezos.michelson.instructions.stack.DugInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'DUG'
class pytezos.michelson.instructions.stack.DupInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'DUP'
class pytezos.michelson.instructions.stack.DupnInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'DUP'
class pytezos.michelson.instructions.stack.PushInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'PUSH'
class pytezos.michelson.instructions.stack.RenameInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'RENAME'
class pytezos.michelson.instructions.stack.SwapInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SWAP'

Operations with structures

class pytezos.michelson.instructions.struct.ConsInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CONS'
class pytezos.michelson.instructions.struct.EmptyBigMapInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'EMPTY_BIG_MAP'
class pytezos.michelson.instructions.struct.EmptyMapInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'EMPTY_MAP'
class pytezos.michelson.instructions.struct.EmptySetInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'EMPTY_SET'
class pytezos.michelson.instructions.struct.GetAndUpdateInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'GET_AND_UPDATE'
class pytezos.michelson.instructions.struct.GetInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'GET'
class pytezos.michelson.instructions.struct.MemInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'MEM'
class pytezos.michelson.instructions.struct.NilInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'NIL'
class pytezos.michelson.instructions.struct.NoneInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'NONE'
class pytezos.michelson.instructions.struct.SomeInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SOME'
class pytezos.michelson.instructions.struct.UpdateInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'UPDATE'

Tezos-specific operations

class pytezos.michelson.instructions.tezos.AddressInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'ADDRESS'
class pytezos.michelson.instructions.tezos.AmountInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'AMOUNT'
class pytezos.michelson.instructions.tezos.BalanceInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'BALANCE'
class pytezos.michelson.instructions.tezos.ChainIdInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CHAIN_ID'
class pytezos.michelson.instructions.tezos.ContractInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CONTRACT'
class pytezos.michelson.instructions.tezos.CreateContractInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'CREATE_CONTRACT'
class pytezos.michelson.instructions.tezos.ImplicitAccountInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'IMPLICIT_ACCOUNT'
class pytezos.michelson.instructions.tezos.LevelInstruction[source]
classmethod execute(stack: MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'LEVEL'
class pytezos.michelson.instructions.tezos.NowInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'NOW'
class pytezos.michelson.instructions.tezos.SelfAddressInstruction[source]
classmethod execute(stack: MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SELF_ADDRESS'
class pytezos.michelson.instructions.tezos.SelfInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SELF'
class pytezos.michelson.instructions.tezos.SenderInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SENDER'
class pytezos.michelson.instructions.tezos.SetDelegateInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SET_DELEGATE'
class pytezos.michelson.instructions.tezos.SourceInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SOURCE'
class pytezos.michelson.instructions.tezos.TotalVotingPowerInstruction[source]
classmethod execute(stack: MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'TOTAL_VOTING_POWER'
class pytezos.michelson.instructions.tezos.TransferTokensInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'TRANSFER_TOKENS'
class pytezos.michelson.instructions.tezos.VotingPowerInstruction[source]
classmethod execute(stack: MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'VOTING_POWER'
pytezos.michelson.instructions.tezos.get_entrypoint_type(context: pytezos.context.abstract.AbstractContext, name: str, address=None) → Optional[Type[pytezos.michelson.types.base.MichelsonType]][source]

Ticket operations

class pytezos.michelson.instructions.ticket.JoinTicketsInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'JOIN_TICKETS'
class pytezos.michelson.instructions.ticket.ReadTicketInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'READ_TICKET'
class pytezos.michelson.instructions.ticket.SplitTicketInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'SPLIT_TICKET'
class pytezos.michelson.instructions.ticket.TicketInstruction[source]
classmethod execute(stack: pytezos.michelson.stack.MichelsonStack, stdout: List[str], context: pytezos.context.abstract.AbstractContext)[source]
prim: Optional[str] = 'TICKET'