Documentation ¶
Overview ¶
Package royal is for utilities that should be shared by all golang apps at royal
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthClient ¶
type EthClient interface { ethereum.ChainStateReader ethereum.PendingStateReader ethereum.GasPricer ethereum.GasEstimator ethereum.TransactionReader ethereum.TransactionSender bind.ContractBackend // GetChainID is a helper method for retrieving the ChainId of the current chain GetChainID() uint64 }
EthClient is an interface that supports all the methods of backends.SimulatedBackend and ethclient.Client so mocking is way easier. This is interface that should be used in our code
Click to show internal directories.
Click to hide internal directories.