Expand description
Host functions for utilities
Functionsยง
- drk_log ๐Host function for logging strings.
- get_
block_ ๐target Will return currently configured block time target, in seconds - get_
blockchain_ ๐time Will return current blockchain timestamp, defined as the last blockโs timestamp. - get_
call_ ๐index Will return current runtime configured verifying block height number - Grabs last block from the
Blockchain
overlay and then copies its height to the VMโs object store. - get_
object_ ๐bytes Retrieve an object from the object store specified by the indexidx
. The objectโs data is written toptr
. - get_
object_ ๐size Returns the size (number of bytes) of an object in the object store specified by indexidx
. - get_tx ๐Reads a transaction by hash from the transactions store.
- get_
tx_ ๐hash Will return current runtime configured transaction hash - get_
tx_ ๐location Reads a transaction location by hash from the transactions store. - Will return current runtime configured verifying block height number
- set_
return_ ๐data Writes data to thecontract_return_data
field ofEnv
. The data will be read fromptr
at a memory offset specified bylen
.