Versions in this module Expand all Collapse all v0 v0.0.3 Jul 5, 2024 v0.0.2 Jun 10, 2024 Changes in this version + var CfxDefault = NewCfx() + var EthDefault = NewEth() + type CfxCache struct + func NewCfx() *CfxCache + func (cache *CfxCache) GetClientVersion(cfx sdk.ClientOperator) (string, error) + func (cache *CfxCache) GetGasPrice(cfx sdk.ClientOperator) (*hexutil.Big, error) + type EthCache struct + func NewEth() *EthCache + func (cache *EthCache) GetBlockNumber(client *node.Web3goClient) (*hexutil.Big, error) + func (cache *EthCache) GetChainId(client *web3go.Client) (*hexutil.Uint64, error) + func (cache *EthCache) GetClientVersion(client *web3go.Client) (string, error) + func (cache *EthCache) GetGasPrice(client *web3go.Client) (*hexutil.Big, error) + func (cache *EthCache) GetNetVersion(client *web3go.Client) (string, error) + type StatusCache struct + func NewStatusCache() *StatusCache + func (c *StatusCache) GetBestBlockHash(cfx sdk.ClientOperator) (types.Hash, error) + func (c *StatusCache) GetEpochNumber(cfx sdk.ClientOperator, epoch *types.Epoch) (*hexutil.Big, error) + func (c *StatusCache) GetStatus(cfx sdk.ClientOperator) (types.Status, error)