chainutil

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0, BSD-2-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallView

func CallView(ch chain.ChainCore, contractHname, viewHname isc.Hname, params dict.Dict) (dict.Dict, error)

func CheckNonce

func CheckNonce(ch chain.ChainCore, req isc.OffLedgerRequest) error

func EstimateGas added in v0.3.7

func EstimateGas(ch chain.Chain, 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.FungibleTokens, error)

func HasRequestBeenProcessed

func HasRequestBeenProcessed(ch chain.ChainCore, reqID isc.RequestID) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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