Skip to content

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

@bladyjoker

Description

@bladyjoker

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. add v1/v2 TransactionInfo and related types plutus-ledger-api-rust#11
  2. Add TxInfo and ScriptContext for completeness (both V1 and V2) plutus-ledger-api-typescript#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions