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

SCP-2771: Plutus V2 interface #3952

Merged
merged 5 commits into from Sep 17, 2021
Merged

SCP-2771: Plutus V2 interface #3952

merged 5 commits into from Sep 17, 2021

Conversation

michaelpj
Copy link
Contributor

This is a first attempt at a V2 ledger interface.

  • It re-exports almost everything from V1.
  • It has new definitions of TxInfo and ScriptContext (which depends on TxInfo), as well as the functions that operate on TxInfo, and the envelope type.
  • Changes to TxInfo:
    • Use Map for the maps
    • Add redeemer map

I have not changed anything to use it: in the future we'll want to do that, but probably the plutus-ledger stuff should happen after we split the repo.

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Relevant tickets are mentioned in commit messages
    • Formatting, materialized Nix files, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

This is great, thanks!

@michaelpj
Copy link
Contributor Author

Okay, in it goes.

@michaelpj michaelpj merged commit 913c867 into master Sep 17, 2021
jonesnoaht pushed a commit to jonesnoaht/plutus that referenced this pull request Oct 8, 2021
* Init v2

* Use AssocMap in V2 TxInfo

* Include redeemers in V2 TxInfo

* Transfer over functions that need to operate on the new context types

* Fix nix
@kwxm kwxm deleted the mpj/plutus-v2 branch February 2, 2022 08:35
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.

None yet

3 participants