liqwid-plutarch-extra-3.21.1: A collection of Plutarch extras from Liqwid Labs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Plutarch.Extra.StateThread

Synopsis

Documentation

withStateThread Source #

Arguments

:: forall (s :: S). Term s PMintingPolicy

Minting policy to wrap

-> Term s PTxOutRef

Initial spend

-> Term s PMintingPolicy 

Adds a state thread to a minting policy. Parameterized at the Haskell level.

Since: 3.19.0

pwithStateThread :: forall (s :: S). Term s (PMintingPolicy :--> (PTxOutRef :--> PMintingPolicy)) Source #

Adds a state thread to a minting policy. Parameterized at the Plutarch level

Since: 3.19.0

withStateThreadMulti Source #

Arguments

:: forall (s :: S). Term s PMintingPolicy

Minting policy to wrap

-> Term s PTxOutRef

Initial spend

-> Term s PMintingPolicy 

Adds a state thread to a minting policy allowing more than one state thread token to be minted Parameterized at the Haskell level.

Since: 3.21.0

pwithStateThreadMulti :: forall (s :: S). Term s (PMintingPolicy :--> (PTxOutRef :--> PMintingPolicy)) Source #

Adds a state thread to a minting policy allowing more than one state thread token to be minted Parameterized at the Plutarch level.

Since: 3.21.0