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
- get_
last_ ๐block_ height - 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 index
idx
. 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 index
idx
. - 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.
- get_
verifying_ ๐block_ height - Will return current runtime configured verifying block height number
- set_
return_ ๐data - Writes data to the
contract_return_data
field ofEnv
. The data will be read fromptr
at a memory offset specified bylen
.