chainutil

package
v0.5.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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 EstimateGas

func EstimateGas(ch chain.ChainCore, call ethereum.CallMsg) (uint64, error)

EstimateGas executes the given request and discards the resulting chain state. It is useful for estimating gas.

func GetAccountBalance

func GetAccountBalance(ch chain.ChainCore, agentID isc.AgentID) (*isc.Assets, error)

func ResolveError

func ResolveError(ch chain.ChainCore, e *isc.UnresolvedVMError) (*isc.VMError, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL