:Function


Label

function

Description

Functions are structures in smart contracts that implement functionality, just as functions or methods do in general programming. Functions can be called by Accounts (External Accounts or Contract Accounts) to execute the code stored in it. Functions can have Inputs (parameters) and Outputs (return values).

Usage

Instances of :Function can have the following properties:

PROPERTYTYPEDESCRIPTIONRANGE
From class :Function
:isConstant owl:DatatypeProperty Functions with the property isConstant set to true promise to not modify the state of the blockchain. For instance, in solidity this can be achieved by a function modifier that declares the function to be constant (solidity doesn't enforce this, yet). xsd:boolean
:isPayable owl:DatatypeProperty True if a Function can receive Ether together with a FunctionCall. xsd:boolean
:signature owl:DatatypeProperty The signature of the function as specified in the source language of the contract. xsd:string
:hasFunctionSelector owl:FunctionalProperty Relates a function to a function selector (also "signature") that identifies it. :FunctionSelector
:hasOutput owl:InverseFunctionalProperty Relates a Function to an Output of that Function. A Function may have 0 or more Outputs but an Output can only belong to a single Function. :Output
From class owl:Thing
:EthOnContractsDataProperty owl:DatatypeProperty Groups all EthOn Contracts extension Data Properties. owl:Thing
:EthOnContractsObjectProperty owl:ObjectProperty Groups all EthOn Contracts extension Object Properties owl:Thing
dc:contributor owl:AnnotationProperty -- owl:Thing
dc:creator owl:AnnotationProperty -- owl:Thing
dc:title owl:AnnotationProperty -- owl:Thing
ethon:suggestedStringRepresentation owl:AnnotationProperty -- owl:Thing
http://purl.org/dc/terms/isRequiredBy owl:ObjectProperty -- owl:Thing
ns:term_status owl:AnnotationProperty -- owl:Thing
vann:preferredNamespacePrefix owl:AnnotationProperty -- owl:Thing
vann:preferredNamespaceUri owl:AnnotationProperty -- owl:Thing

Implementation

@prefix : <http://ethon.consensys.net/Contracts/> .
@prefix ethon: <http://ethon.consensys.net/> .
@prefix ns: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

:Function a owl:Class ;
    rdfs:label "function"@en ;
    ethon:suggestedStringRepresentation "Function" ;
    rdfs:comment "Functions are structures in smart contracts that implement functionality, just as functions or methods do in general programming. Functions can be called by Accounts (External Accounts or Contract Accounts) to execute the code stored in it. Functions can have Inputs (parameters) and Outputs (return values)."@en ;
    ns:term_status "unstable" .