agent0.ethpy.hyperdrive.interface.read_interface_test ===================================================== .. py:module:: agent0.ethpy.hyperdrive.interface.read_interface_test .. autoapi-nested-parse:: Tests for hyperdrive_read_interface.py. .. !! processed by numpydoc !! Classes ------- .. autoapisummary:: agent0.ethpy.hyperdrive.interface.read_interface_test.TestHyperdriveReadInterface Module Contents --------------- .. py:class:: TestHyperdriveReadInterface Tests for the HyperdriveReadInterface api class. .. !! processed by numpydoc !! .. py:method:: test_pool_config(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Checks that the Hyperdrive pool_config matches what is returned from the smart contract. .. !! processed by numpydoc !! .. py:method:: test_pool_config_deployed(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Checks that the Hyperdrive pool_config matches what is returned from the smart contract. .. !! processed by numpydoc !! .. py:method:: test_pool_info(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Checks that the Hyperdrive pool_info matches what is returned from the smart contract. .. !! processed by numpydoc !! .. py:method:: test_checkpoint(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Checks that the Hyperdrive checkpoint matches what is returned from the smart contract. .. !! processed by numpydoc !! .. py:method:: test_spot_price_and_fixed_rate(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Checks that the Hyperdrive spot price and fixed rate match computing it by hand. .. !! processed by numpydoc !! .. py:method:: test_calc_long(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Test various fns associated with long trades. .. !! processed by numpydoc !! .. py:method:: test_calc_short(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Test various fns associated with short trades. .. !! processed by numpydoc !! .. py:method:: test_misc(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Miscellaneous tests only verify that the attributes exist and functions can be called. .. todo:: TODO: Write tests that verify the conversion to and from Rust via strings was successful. This should include checks for the FixedPoint conversion to ensure that it was scaled correctly. .. !! processed by numpydoc !! .. py:method:: test_deployed_fixed_rate(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Check that the bonds calculated actually hit the target rate. .. !! processed by numpydoc !! .. py:method:: test_bonds_given_shares_and_rate(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Check that the bonds calculated actually hit the target rate. .. !! processed by numpydoc !! .. py:method:: test_deployed_values(hyperdrive_read_interface_fixture: agent0.ethpy.hyperdrive.interface.read_interface.HyperdriveReadInterface) Test the hyperdrive interface versus expected values. .. !! processed by numpydoc !! .. py:method:: test_long_short_total_supply(fast_chain_fixture: agent0.LocalChain)