transferinstruction is used to transfer Tezis to an account.
transferinstruction. Say for example you want to call the
add_valueentry point of the following contract:
transfer ... to ... call ...instruction:
cdoes not provide an entry point annotated
my_add_valueentry point; it is possible to call it from another entry point with the following instruction:
getterkeyword used to declare an entry point to the contract called "getBar"; the Michelson version of this entry actually takes a callback function (a setter) used to set/use the
barvalue in another contract. It is syntactic sugar equivalent to the following entry declaration:
contracttype is used to declare the callback type; it is parametrized by the signature of the callback, represented as the tuple of argument types.
entryversions of the
getBarentry above is that the callback argument is anonymous in the
entrypointfunction may be used to build a
contractvalue from the name and the address. It returns an option value of contract type, so that it is possible to handle the case when the entry point does not exist.
require_entrypointfunction builds a contract and fails with error message if contract is invalid. The above inspector contract may be rewritten as:
viewkeyword to declare such a view; as for entry points, views may have arguments. Use the
returnkeyword to return any value to the calling contract.
callviewoperator to call a contract view; parameters are:
< ... >
callviewreturns an option of value that requires to be handled. It returns
eventkeyword declaration. An event may possess several fields, like a record.
HighestBidIncreasedevent with two fields
emitinstruction to emit an event: