Skip to content

Commit eae5b50

Browse files
committed
refactor(tests): unify Plutus V3 builtins batch tests
Refactored Plutus V3 builtins minting tests to combine batch5 and batch6 into a single test class. Added support for protocol version and cost model checks, and improved test scenario handling. Updated cost model logic and removed duplicated code for batch6. Test following scenarios: - wrong protocol version - correct protocol version with old cost model - correct protocol version with updated cost model
1 parent a459ae7 commit eae5b50

14 files changed

+1001
-292
lines changed

cardano_node_tests/tests/data/cost_models_list_185_330_v2_v3.json

Lines changed: 689 additions & 0 deletions
Large diffs are not rendered by default.

cardano_node_tests/tests/data/plutus/v3/batch6/1.1.0/expensiveDropListPolicyScriptV3_1.plutus

Lines changed: 0 additions & 5 deletions
This file was deleted.

cardano_node_tests/tests/data/plutus/v3/batch6/1.1.0/expensiveDropListPolicyScriptV3_2.plutus

Lines changed: 0 additions & 5 deletions
This file was deleted.

cardano_node_tests/tests/data/plutus/v3/batch6/1.1.0/expensiveDropListPolicyScriptV3_3.plutus

Lines changed: 0 additions & 5 deletions
This file was deleted.

cardano_node_tests/tests/data/plutus/v3/batch6/1.1.0/expensiveDropListPolicyScriptV3_4.plutus

Lines changed: 0 additions & 5 deletions
This file was deleted.

cardano_node_tests/tests/data/plutus/v3/batch6/1.1.0/expensiveDropListPolicyScriptV3_5.plutus

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "PlutusScriptV3",
3+
"description": "expensiveDropListPolicyScript_V3_110_1",
4+
"cborHex": "58db0101003323232223003002323001001229001a4d2290029112999ab9a330083357b00066012004601200226600e00e008264c66ae71241106d6b44726f704c697374506f6c696379008000646002002444a64666ae68d5d18018a999ab9a357460042944540045400454ccd5cd19b87357420046ae840044cc8cc010010004d5d10011aba200114a06460020024520034bd60488cd5d000119802002000a0070014820203027a4706471e540b0034805b003480b30034810b00348163003481bb00348210070034826807003482c0070034831807000006000c001"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "PlutusScriptV3",
3+
"description": "expensiveDropListPolicyScript_V3_110_2",
4+
"cborHex": "58db0101003323232223003002323001001229001a4d2290029112999ab9a330083357b00066012004601200226600e00e008264c66ae71241106d6b44726f704c697374506f6c696379008000646002002444a64666ae68d5d18018a999ab9a357460042944540045400454ccd5cd19b87357420046ae840044cc8cc010010004d5d10011aba200114a06460020024520034bd60488cd5d000119802002000a0070014828eafe2c6778f5353580b0034805b003480b30034810b00348163003481bb00348210070034826807003482c0070034831807000006000c001"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "PlutusScriptV3",
3+
"description": "expensiveDropListPolicyScript_V3_110_3",
4+
"cborHex": "59025e0101003323232223003002323001001229001a4d2290029112999ab9a330083357b00066012004601200226600e00e008264c66ae71241106d6b44726f704c697374506f6c696379008000646002002444a64666ae68d5d18018a999ab9a357460042944540045400454ccd5cd19b87357420046ae840044cc8cc010010004d5d10011aba200114a06460020024520034bd60488cd5d000119802002000a007001483f3fffffffffffffffc07003480a3003480ab003480b3003480bb003480c3003480cb003480d3003480db003480e3003480eb003480f3003480fb003481030034810b003481130034811b003481230034812b003481330034813b003481430034814b003481530034815b003481630034816b003481730034817b003481830034818b003481930034819b003481a3003481ab003481b3003481bb003481c3003481cb003481d3003481db003481e3003481eb003481f3003481fb00348200070034820807003482100700348218070034822007003482280700348230070034823807003482400700348248070034825007003482580700348260070034826807003482700700348278070034828007003482880700348290070034829807003482a007003482a807003482b007003482b807003482c007003482c807003482d007003482d807003482e007003482e807003482f007003482f807003483000700348308070034831007003483180700348320070034832807003483300700348338070034834007003483480700348350070034835807003483600700348368070034837007003483780700000000000000000000000000c00180001"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "PlutusScriptV3",
3+
"description": "expensiveDropListPolicyScript_V3_110_4",
4+
"cborHex": "59025e0101003323232223003002323001001229001a4d2290029112999ab9a330083357b00066012004601200226600e00e008264c66ae71241106d6b44726f704c697374506f6c696379008000646002002444a64666ae68d5d18018a999ab9a357460042944540045400454ccd5cd19b87357420046ae840044cc8cc010010004d5d10011aba200114a06460020024520034bd60488cd5d000119802002000a007001483fbfffffffffffffffc07003480a3003480ab003480b3003480bb003480c3003480cb003480d3003480db003480e3003480eb003480f3003480fb003481030034810b003481130034811b003481230034812b003481330034813b003481430034814b003481530034815b003481630034816b003481730034817b003481830034818b003481930034819b003481a3003481ab003481b3003481bb003481c3003481cb003481d3003481db003481e3003481eb003481f3003481fb00348200070034820807003482100700348218070034822007003482280700348230070034823807003482400700348248070034825007003482580700348260070034826807003482700700348278070034828007003482880700348290070034829807003482a007003482a807003482b007003482b807003482c007003482c807003482d007003482d807003482e007003482e807003482f007003482f807003483000700348308070034831007003483180700348320070034832807003483300700348338070034834007003483480700348350070034835807003483600700348368070034837007003483780700000000000000000000000000c00180001"
5+
}

0 commit comments

Comments
 (0)