Documentation ¶
Index ¶
- func CallView(chainState state.State, ch chain.ChainCore, contractHname, viewHname isc.Hname, ...) (dict.Dict, error)
- func EVMCall(ch chain.ChainCore, aliasOutput *isc.AliasOutputWithID, call ethereum.CallMsg) ([]byte, error)
- func EVMEstimateGas(ch chain.ChainCore, aliasOutput *isc.AliasOutputWithID, call ethereum.CallMsg) (uint64, error)
- func EVMTraceTransaction(ch chain.ChainCore, aliasOutput *isc.AliasOutputWithID, blockTime time.Time, ...) error
- func GetAccountBalance(ch chain.ChainCore, agentID isc.AgentID) (*isc.Assets, error)
- func ResolveError(ch chain.ChainCore, e *isc.UnresolvedVMError) (*isc.VMError, error)
- func SimulateRequest(ch chain.ChainCore, req isc.Request) (*blocklog.RequestReceipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallView ¶
func CallView(chainState state.State, ch chain.ChainCore, contractHname, viewHname isc.Hname, params dict.Dict) (dict.Dict, error)
CallView executes a view call on the latest block of the chain
func EVMCall ¶
func EVMCall(ch chain.ChainCore, aliasOutput *isc.AliasOutputWithID, call ethereum.CallMsg) ([]byte, error)
EVMCall executes an EVM contract call and returns its output, discarding any state changes
func EVMEstimateGas ¶
func EVMEstimateGas(ch chain.ChainCore, aliasOutput *isc.AliasOutputWithID, call ethereum.CallMsg) (uint64, error)
EVMEstimateGas executes the given request and discards the resulting chain state. It is useful for estimating gas.
func EVMTraceTransaction ¶
func GetAccountBalance ¶
func ResolveError ¶
func SimulateRequest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.