1

Revisiting Plutus pioneer code, I see Ledger-related code e.g. ScriptContext Plutus.V1.Ledger.Contexts or Interval Plutus.V1.Ledger.Interval. Is there a github repo equivalent for Ledger Constraints? Why are some code on github and some on haddock?

1 Answer 1

1

The repos are these:

https://github.com/input-output-hk/plutus

https://github.com/input-output-hk/plutus-apps

You can import Interval, Contexts, and Constraints like this:

import Ledger.Constraints
import Ledger.Contexts
import Ledger.Interval

In the cabal file you would add them like this:

build-depends: ...
             , plutus-ledger
             , plutus-ledger-constraints

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.