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: object

Tests 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.

Module contents๏ƒ