Michelson instructions
Base Class
- class pytezos.michelson.instructions.base.MichelsonInstruction(stack_items_added: int = 0)[source]
- args: List[Type[MichelsonInstruction] | Any] = []
- classmethod create_type(args: List[Type[Micheline]], annots: list | None = None, **kwargs) Type[MichelsonInstruction] [source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- field_names: List[str] = []
- static match(expr) Type[MichelsonInstruction] [source]
- var_names: List[str] = []
ADT operations
- class pytezos.michelson.instructions.adt.CarInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CAR'
- class pytezos.michelson.instructions.adt.CdrInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CDR'
- class pytezos.michelson.instructions.adt.GetnInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'GET'
- class pytezos.michelson.instructions.adt.LeftInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LEFT'
- class pytezos.michelson.instructions.adt.PairInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'PAIR'
- class pytezos.michelson.instructions.adt.PairnInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'PAIR'
- class pytezos.michelson.instructions.adt.RightInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'RIGHT'
- class pytezos.michelson.instructions.adt.UnpairInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'UNPAIR'
- class pytezos.michelson.instructions.adt.UnpairnInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'UNPAIR'
- class pytezos.michelson.instructions.adt.UpdatenInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'UPDATE'
- pytezos.michelson.instructions.adt.execute_cxr(prim: str, stack: MichelsonStack, stdout: List[str], idx: int)[source]
Arithmetic operations
- class pytezos.michelson.instructions.arithmetic.AbsInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'ABS'
- class pytezos.michelson.instructions.arithmetic.AddInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'ADD'
- class pytezos.michelson.instructions.arithmetic.BytesInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'BYTES'
- class pytezos.michelson.instructions.arithmetic.EdivInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'EDIV'
- class pytezos.michelson.instructions.arithmetic.IntInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'INT'
- class pytezos.michelson.instructions.arithmetic.IsNatInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'ISNAT'
- class pytezos.michelson.instructions.arithmetic.LslInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LSL'
- class pytezos.michelson.instructions.arithmetic.LsrInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LSR'
- class pytezos.michelson.instructions.arithmetic.MulInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'MUL'
- class pytezos.michelson.instructions.arithmetic.NatInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'NAT'
- class pytezos.michelson.instructions.arithmetic.NegInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'NEG'
- class pytezos.michelson.instructions.arithmetic.SubInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SUB'
- class pytezos.michelson.instructions.arithmetic.SubMutezInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SUB_MUTEZ'
- pytezos.michelson.instructions.arithmetic.execute_shift(prim: str, stack: MichelsonStack, stdout: List[str], shift: Callable[[Tuple[int, int]], int])[source]
Boolean operations
- class pytezos.michelson.instructions.boolean.AndInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'AND'
- class pytezos.michelson.instructions.boolean.NotInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'NOT'
- class pytezos.michelson.instructions.boolean.OrInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'OR'
- class pytezos.michelson.instructions.boolean.XorInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'XOR'
- pytezos.michelson.instructions.boolean.execute_boolean_add(prim: str, stack: MichelsonStack, stdout: List[str], add: Callable)[source]
Comparison operations
- class pytezos.michelson.instructions.compare.CompareInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'COMPARE'
- class pytezos.michelson.instructions.compare.EqInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'EQ'
- class pytezos.michelson.instructions.compare.GeInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'GE'
- class pytezos.michelson.instructions.compare.GtInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'GT'
- class pytezos.michelson.instructions.compare.LeInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LE'
- class pytezos.michelson.instructions.compare.LtInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LT'
- class pytezos.michelson.instructions.compare.NeqInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'NEQ'
- pytezos.michelson.instructions.compare.execute_zero_compare(prim: str, stack: MichelsonStack, stdout: List[str], compare: Callable[[int], bool])[source]
Control flow operations
- class pytezos.michelson.instructions.control.ApplyInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'APPLY'
- class pytezos.michelson.instructions.control.DipInstruction(item: MichelsonInstruction)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'DIP'
- class pytezos.michelson.instructions.control.DipnInstruction(item: MichelsonInstruction)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'DIP'
- class pytezos.michelson.instructions.control.ExecInstruction(item: MichelsonInstruction)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'EXEC'
- class pytezos.michelson.instructions.control.FailwithInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'FAILWITH'
- class pytezos.michelson.instructions.control.IfConsInstruction(stack_items_added: int, item: MichelsonInstruction)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'IF_CONS'
- class pytezos.michelson.instructions.control.IfInstruction(item: MichelsonInstruction)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'IF'
- class pytezos.michelson.instructions.control.IfLeftInstruction(item: MichelsonInstruction)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'IF_LEFT'
- class pytezos.michelson.instructions.control.IfNoneInstruction(stack_items_added: int, item: MichelsonInstruction)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'IF_NONE'
- class pytezos.michelson.instructions.control.IterInstruction(stack_items_added: int, items: List[MichelsonInstruction])[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'ITER'
- class pytezos.michelson.instructions.control.LambdaInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LAMBDA'
- class pytezos.michelson.instructions.control.LambdaRecInstruction(stack_items_added: int = 0)[source]
- depth = 0
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LAMBDA_REC'
- class pytezos.michelson.instructions.control.LoopInstruction(items: List[MichelsonInstruction])[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LOOP'
- class pytezos.michelson.instructions.control.LoopLeftInstruction(stack_items_added: int, items: List[MichelsonInstruction])[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LOOP_LEFT'
- class pytezos.michelson.instructions.control.MapInstruction(stack_items_added: int, items: List[MichelsonInstruction])[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'MAP'
- pytezos.michelson.instructions.control.execute_dip(prim: str, stack: MichelsonStack, stdout: List[str], count: int, body: Type[MichelsonInstruction], context: AbstractContext) MichelsonInstruction [source]
Crypto operations
- class pytezos.michelson.instructions.crypto.Blake2bInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'BLAKE2B'
- class pytezos.michelson.instructions.crypto.CheckSignatureInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CHECK_SIGNATURE'
- class pytezos.michelson.instructions.crypto.HashKeyInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'HASH_KEY'
- class pytezos.michelson.instructions.crypto.KeccakInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'KECCAK'
- class pytezos.michelson.instructions.crypto.PairingCheckInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'PAIRING_CHECK'
- class pytezos.michelson.instructions.crypto.SaplingEmptyStateInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SAPLING_EMPTY_STATE'
- class pytezos.michelson.instructions.crypto.SaplingVerifyUpdateInstruction(stack_items_added: int = 0)[source]
- prim: str | None = 'SAPLING_VERIFY_UPDATE'
- class pytezos.michelson.instructions.crypto.Sha256Instruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SHA256'
- class pytezos.michelson.instructions.crypto.Sha3Instruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SHA3'
- class pytezos.michelson.instructions.crypto.Sha512Instruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SHA512'
- pytezos.michelson.instructions.crypto.execute_hash(prim: str, stack: MichelsonStack, stdout: List[str], hash_digest: Callable[[bytes], bytes])[source]
Generic operations
- class pytezos.michelson.instructions.generic.ConcatInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CONCAT'
- class pytezos.michelson.instructions.generic.NeverInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'NEVER'
- class pytezos.michelson.instructions.generic.PackInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'PACK'
- class pytezos.michelson.instructions.generic.SizeInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SIZE'
- class pytezos.michelson.instructions.generic.SliceInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SLICE'
Stack operations
- class pytezos.michelson.instructions.stack.CastIntruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CAST'
- class pytezos.michelson.instructions.stack.DigInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'DIG'
- class pytezos.michelson.instructions.stack.DropInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'DROP'
- class pytezos.michelson.instructions.stack.DropnInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'DROP'
- class pytezos.michelson.instructions.stack.DugInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'DUG'
- class pytezos.michelson.instructions.stack.DupInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'DUP'
- class pytezos.michelson.instructions.stack.DupnInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'DUP'
- class pytezos.michelson.instructions.stack.PushInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'PUSH'
Operations with structures
- class pytezos.michelson.instructions.struct.ConsInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CONS'
- class pytezos.michelson.instructions.struct.EmptyBigMapInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'EMPTY_BIG_MAP'
- class pytezos.michelson.instructions.struct.EmptyMapInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'EMPTY_MAP'
- class pytezos.michelson.instructions.struct.EmptySetInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'EMPTY_SET'
- class pytezos.michelson.instructions.struct.GetAndUpdateInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'GET_AND_UPDATE'
- class pytezos.michelson.instructions.struct.GetInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'GET'
- class pytezos.michelson.instructions.struct.MemInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'MEM'
- class pytezos.michelson.instructions.struct.NilInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'NIL'
- class pytezos.michelson.instructions.struct.NoneInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'NONE'
Tezos-specific operations
- class pytezos.michelson.instructions.tezos.AddressInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'ADDRESS'
- class pytezos.michelson.instructions.tezos.AmountInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'AMOUNT'
- class pytezos.michelson.instructions.tezos.BalanceInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'BALANCE'
- class pytezos.michelson.instructions.tezos.ChainIdInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CHAIN_ID'
- class pytezos.michelson.instructions.tezos.ContractInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CONTRACT'
- class pytezos.michelson.instructions.tezos.CreateContractInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'CREATE_CONTRACT'
- class pytezos.michelson.instructions.tezos.EmitInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'EMIT'
- class pytezos.michelson.instructions.tezos.ImplicitAccountInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'IMPLICIT_ACCOUNT'
- class pytezos.michelson.instructions.tezos.LevelInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'LEVEL'
- class pytezos.michelson.instructions.tezos.MinBlockTimeInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'MIN_BLOCK_TIME'
- class pytezos.michelson.instructions.tezos.NowInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'NOW'
- class pytezos.michelson.instructions.tezos.OpenChestInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'OPEN_CHEST'
- class pytezos.michelson.instructions.tezos.SelfAddressInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SELF_ADDRESS'
- class pytezos.michelson.instructions.tezos.SelfInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SELF'
- class pytezos.michelson.instructions.tezos.SenderInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SENDER'
- class pytezos.michelson.instructions.tezos.SetDelegateInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SET_DELEGATE'
- class pytezos.michelson.instructions.tezos.SourceInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SOURCE'
- class pytezos.michelson.instructions.tezos.TotalVotingPowerInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'TOTAL_VOTING_POWER'
- class pytezos.michelson.instructions.tezos.TransferTokensInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'TRANSFER_TOKENS'
- class pytezos.michelson.instructions.tezos.ViewInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'VIEW'
- class pytezos.michelson.instructions.tezos.VotingPowerInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'VOTING_POWER'
- pytezos.michelson.instructions.tezos.get_entrypoint_type(context: AbstractContext, name: str, address=None) Type[MichelsonType] | None [source]
Ticket operations
- class pytezos.michelson.instructions.ticket.JoinTicketsInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'JOIN_TICKETS'
- class pytezos.michelson.instructions.ticket.ReadTicketInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'READ_TICKET'
- class pytezos.michelson.instructions.ticket.SplitTicketInstruction(stack_items_added: int = 0)[source]
- classmethod execute(stack: MichelsonStack, stdout: List[str], context: AbstractContext)[source]
- prim: str | None = 'SPLIT_TICKET'