File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -591,6 +591,20 @@ pmustSpendAtLeastAa = phoistAcyclic $
591591 (ptrace " pmustSpendAtLeastAa: Spent at least the specified amount of AA tokens" $ pblake2b_256 # tnBytes)
592592 (ptraceError " pmustSpendAtLeastAa: Must spend at least the specified amount of AA tokens" )
593593
594+ {- | Example Consumer validator that authenticates and processes a referenced
595+ FactStatement UTxO
596+
597+ - check that the reference input holds the appropriate $FS token (with the
598+ trusted COOP Oracle's CurrencySymbol),
599+ - parse the Fact Statement embedded in the UTxO datum and perform assertions.
600+
601+ To demonstrate the COOP provided Plutus JSON encoding a file was created with the COOP
602+ provided `plutus-json-cli` tool:
603+
604+ $ plutus-json-cli from-json -i resources/sample.json -o resources/sample.pd.cbor
605+
606+ This served as an exemplary Fact Statement.
607+ -}
594608exampleConsumer :: ClosedTerm (PCurrencySymbol :--> PValidator )
595609exampleConsumer = phoistAcyclic $
596610 plam $ \ trustedCs _ _ ctx -> ptrace " exampleConsumer" P. do
You can’t perform that action at this time.
0 commit comments