Module
Data.Generator
- Package
- purescript-web3-generator
- Repository
- f-o-a-m/purescript-web3-generator
#ModuleName Source
type ModuleName = String
#ModuleImports Source
type ModuleImports = Array ModuleImport
#Imports Source
type Imports = Array (Tuple ModuleName ModuleImports)
#CodeOptions Source
type CodeOptions = { exprPrefix :: String, indentationLevel :: Int }
#toSignature Source
toSignature :: SolidityFunction -> String
Utils
#capitalize Source
capitalize :: String -> String
#isValidType Source
isValidType :: String -> Boolean
#import' Source
import' :: ModuleName -> ModuleImports -> Imported Unit
#FunTypeDecl Source
data FunTypeDecl
Data decleration, instances, and helpers Data declaration
Constructors
FunTypeDecl { factorTypes :: Array String, signature :: String, typeName :: String }
Instances
#HelperFunction Source
data HelperFunction
Constructors
CurriedHelperFunction CurriedHelperFunctionR
UnCurriedHelperFunction { constraints :: Array String, quantifiedVars :: Array String, signature :: Array String, unpackExpr :: { name :: String, stockArgs :: Array String, stockArgsR :: Array String }, whereClause :: String }
Instances
#toReturnType Source
toReturnType :: Boolean -> Array SolidityType -> Imported String
#EventGenericInstance Source
data EventGenericInstance
Constructors
EventGenericInstance { genericDefs :: Array String, genericDeriving :: String, instanceNames :: Array String, instanceTypes :: Array String }
Instances
#EventDecodeInstance Source
data EventDecodeInstance
Constructors
EventDecodeInstance { anonymous :: Boolean, combinedType :: String, indexedTuple :: String, nonIndexedTuple :: String }
Instances
#EventFilterInstance Source
data EventFilterInstance
Constructors
EventFilterInstance { filterDef :: String, instanceName :: String, instanceType :: String }
Instances
#eventId Source
eventId :: SolidityEvent -> HexString