:StaticFunction leaf node


Label

Static Function

Description

Static Functions are Functions don't change the state of the blockchain. They can be executed on the local copy of the blockchain and it's not necessary to broadcast the call to the network. Calling a Static Function doesn't cost any gas. They are only executed by the node calling it.

Superclasses (1)

Usage

Instances of :StaticFunction 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#> .

:StaticFunction a owl:Class ;
    rdfs:label "Static Function"@en ;
    ethon:suggestedStringRepresentation "DynamicFunction" ;
    rdfs:comment "Static Functions are Functions don't change the state of the blockchain. They can be executed on the local copy of the blockchain and it's not necessary to broadcast the call to the network. Calling a Static Function doesn't cost any gas. They are only executed by the node calling it."@en ;
    rdfs:subClassOf :Function ;
    ns:term_status "unstable" .