lambda-buffers icon indicating copy to clipboard operation
lambda-buffers copied to clipboard

Complete the Plutus .lbf schemas (with TxInfo and ScriptContext)

Open bladyjoker opened this issue 1 year ago • 0 comments

At the time of writing https://github.com/mlabs-haskell/lambda-buffers/blob/main/libs/lbf-plutus/ several PLA types were not available in CTL which is why I placed those types in:

  1. https://github.com/mlabs-haskell/lambda-buffers/blob/main/libs/lbf-plutus/Plutus/V1/Todo.lbf
  2. https://github.com/mlabs-haskell/lambda-buffers/blob/main/libs/lbf-plutus/Plutus/V2/Todo.lbf

This came back to bite us as now we have incomplete PLA libraries:

  1. https://github.com/mlabs-haskell/plutus-ledger-api-rust/pull/11
  2. https://github.com/mlabs-haskell/plutus-ledger-api-typescript/issues/12

TODO

  • [ ] lbf-plutus: Defined opaques for missing TxOut, TxInInfo, TxInfo and ScriptContext for both V1 and V2
  • [ ] lbr-plutus-haskell: Defined Json instances for these opaques
  • [ ] lbr-plutus-purescript: Defined these types here or in CTL directly? Json is not implemented because we're waiting on plutus-ledger-api-purescript
  • [ ] lbt-plutus: Define new goldens for the new opaques and generate their Json and Json PlutusData files. Implement all tests in haskell/purescript/plutarch/plutustx/typescript/rust

bladyjoker avatar Jan 11 '24 17:01 bladyjoker