Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat plutus v1 #17

Merged
merged 5 commits into from
Jan 14, 2025
Merged

Feat plutus v1 #17

merged 5 commits into from
Jan 14, 2025

Conversation

SCMusson
Copy link
Collaborator

@SCMusson SCMusson commented Nov 27, 2024

Support plutus v1

  • api_v1.py
  • to_script_context_v1.py
  • update to_script_context_v2.py
  • use to_script_context_v*.py instead of methods inside tx_tools.py
  • plutus v1 script from pycardano and test using it (fortytwo.py)
  • plutus v1 script from plutus pioneer program (vesting_v1.py and vesting_v2.py)

@SCMusson SCMusson marked this pull request as draft November 27, 2024 20:28
@SCMusson
Copy link
Collaborator Author

@nielstron Apologies for the delay. The plutus v1 scripts looks like they are working here.

@SCMusson SCMusson marked this pull request as ready for review January 14, 2025 13:47
@SCMusson SCMusson merged commit 4338ae8 into OpShin:main Jan 14, 2025
8 checks passed
@@ -308,6 +310,7 @@ def evaluate_tx(self, tx: Transaction) -> Dict[str, ExecutionUnits]:
for invocation in script_invocations:
# run opshin script if available
if self.opshin_scripts.get(invocation.script) is not None:
raise NotImplementedError("This code never seems to be reached")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is correct. this feature was added to allow python debuggers to execute the relevant code when invoking the code programmatically from other python code - which is not goal of the design of plutus-bench anymore

@nielstron nielstron mentioned this pull request Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants