logic_sig_generator

algofipy.amm.v1.logic_sig_generator.encode_varint(integer)

Returns bytecode representation of a TEAL Int from an integer

Parameters:

integer (int) – integer to encode

Returns:

list of ints representing bytecode representation of TEAL Int

Return type:

list

algofipy.amm.v1.logic_sig_generator.generate_logic_sig(asset1_id, asset2_id, manager_app_id, validator_index)

Returns a boolean if the user address is opted into an application with id app_id

Parameters:
  • asset1_id (int) – asset id of first asset in pool

  • asset1_id – asset id of second asset in pool

  • manager_app_id (int) – application id of manager

  • validator_index (int) – validator index for type of pool

Returns:

list of ints representing bytecode representation of logic sig

Return type:

list