Contract implementation: compare a term against a contract.
See the function checkType/3 for assistance on checking if a term does/does not break a contract.| checkEventIn/3 | |
| checkEventOut/3 | |
| checkRPCIn/3 | |
| checkRPCOut/4 | |
| checkType/3 | Given a contract type name, a term to check against that contract type, and a contract module name, verify the term against that contract's type. |
| isType/3 | |
| isTypeAttr/2 |
checkEventIn(Msg, ThisState, Mod) -> any()
checkEventOut(Msg, ThisState, Mod) -> any()
checkRPCIn(Msg, State, Mod) -> any()
checkRPCOut(MsgOut, StateOut, FSM2, Mod) -> any()
checkType(HumanType::contract_type_name_atom(), Term::term(), Mod::contract_module_name_atom()) -> yup | error_hints_term_only_human_readable_sorry()
Given a contract type name, a term to check against that contract type, and a contract module name, verify the term against that contract's type.
Example usage from the irc_plugin.con contract:isType(Type, X, Mod) -> any()
isTypeAttr(X1, X2) -> any()
Generated EDoc, $Id$