plutus-tx-1.38.0.0: Libraries for Plutus Tx and its prelude
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusTx.Blueprint.TH

Synopsis

Documentation

makeIsDataSchemaIndexedName → [(Name, Natural)] → Q [InstanceDec] Source #

Generate a ToData, FromData, UnsafeFromData, HasBlueprintSchema instances for a type, using an explicit mapping of constructor names to indices. Use this for types where you need to keep the representation stable.

mkSchemaClause Source #

Arguments

Type

The type for the HasBlueprintSchema instance.

→ [(ConstructorInfo, SchemaInfo, Natural)]

The constructors of the type with their schema infos and indices.

ClauseQ

The clause for the schema function.

Make a clause for the schema function.

lookupAnnData a ⇒ NameQ [a] Source #