hara.runtime.solidity
create-module-entry
added in 4.0
(create-module-entry rt m & [refresh])creates a compiled module contract entry
create-pointer-entry
added in 4.0
(create-pointer-entry rt ptr & [refresh])creates a pointer entry
exec-rt-web3
added in 4.0
(exec-rt-web3 rt f)helper function for executing a command via node
rt-get-caller-private-key
added in 4.0
(rt-get-caller-private-key & [rt])gets the caller private-key
rt-get-contract-address
added in 4.0
(rt-get-contract-address & [rt])gets the current contract address
rt:bytecode-size
added in 4.0
(rt:bytecode-size & [input refresh rt])gets the bytecode size
rt:node-get-balance
added in 4.0
(rt:node-get-balance & [address rt])gets the current balance
rt:node-get-block-number
added in 4.0
(rt:node-get-block-number & [rt])gets the current block number
(compile-node/rt:node-get-block-number) => number?
rt:node-past-events
added in 4.0
(rt:node-past-events name & [opts address rt])gets past events
###_(compile-node/rt:node-past-events) => vector?
rt:send-wei
added in 4.0
(rt:send-wei to-address amount & [rt])sends wei to another address
start-web3
added in 4.0
(start-web3 {:keys [id lang config], :as rt})starts the solidity rt
stop-web3
added in 4.0
(stop-web3 {:keys [id lang bench container], :as rt})stops the solidity rt
with:caller-address
macro
added in 4.0
(with:caller-address [address] & body)overrides caller address
with:caller-payment
macro
added in 4.0
(with:caller-payment [payment] & body)overrides the caller payment
with:caller-private-key
macro
added in 4.0
(with:caller-private-key [private-key] & body)overrides caller private key
with:closed-methods
macro
added in 4.0
(with:closed-methods & body)turns off the open methods flag
with:contract-address
macro
added in 4.0
(with:contract-address [address] & body)overrides contract address
with:measure
macro
added in 4.0
(with:measure & body)measures balance change before and after call
with:open-methods
macro
added in 4.0
(with:open-methods & body)forces the open methods flag
with:params
macro
added in 4.0
(with:params {:keys [clean url contract-address caller-address caller-private-key caller-payment gas-limit temp stringify open-methods suppress-errors]} & body)overrides all parameters
with:suppress-errors
macro
added in 4.0
(with:suppress-errors & body)suppresses printing of errors