Module

RMRK.Parser

Package
purescript-rmrk-parser
Repository
rmrk-team/purescript-rmrk-parser

#parse Source

parse :: String -> Either ParserError Stmt

This is the bread and butter utility of this module.

Takes a string and produces a valid RMRK.Syntax Stmt or ParserError of String

parse "rmrk::BUY::2.0.0::5105000-0aff6865bed3a66b-DLEP-DL15-00000001::H9eSvWe34vQDJAWckeTHWSqSChRat8bgKHG39GC1fjvEm7y"
   == ( Right
         $ BUY V2 (NFTId "5105000-0aff6865bed3a66b-DLEP-DL15-00000001")
             (Just $ Recipient.Account $ Address "H9eSvWe34vQDJAWckeTHWSqSChRat8bgKHG39GC1fjvEm7y")
     )