cardano_node_tests.tests.tests_plutus_v3 package๏
Submodules๏
cardano_node_tests.tests.tests_plutus_v3.conftest module๏
- cardano_node_tests.tests.tests_plutus_v3.conftest.cluster(cluster_manager: ClusterManager) ClusterLib[source]๏
Return instance of clusterlib.ClusterLib.
cardano_node_tests.tests.tests_plutus_v3.test_spend_build module๏
Tests for spending with Plutus using transaction build.
- class cardano_node_tests.tests.tests_plutus_v3.test_spend_build.TestBuildLocking[source]๏
Bases:
objectTests for Tx output locking using Plutus smart contracts and transaction build.
- test_txout_locking_no_datum(cluster: ClusterLib, payment_addrs: list[AddressRecord], plutus_version: str)[source]๏
Test locking a Tx output with a Plutus script and spending the locked UTxO.
No datum is provided. Datum for spending scripts is optional in PlutusV3+.
Uses cardano-cli transaction build command for building the transactions.
Create a Tx output without a datum hash at the script address
Check that the expected amount was locked at the script address
Spend the locked UTxO without providing a datum
Check that the expected amount was spent
Check expected fees
Check expected Plutus cost
(optional) Check transactions in db-sync
- cardano_node_tests.tests.tests_plutus_v3.test_spend_build.payment_addrs(cluster_manager: ClusterManager, cluster: ClusterLib) list[AddressRecord][source]๏
Create new payment addresses.