Documentation ¶
Index ¶
- type ReadService
- func (s *ReadService) GetAssetPoolBalanceForToken(tokenAddress string) (*big.Int, error)
- func (s *ReadService) GetAssetPrices() ([]coingecko.PriceData, error)
- func (s *ReadService) GetBlockSigners(fromBlock int64, toBlock int64) ([]comet.BlockSignersData, error)
- func (s *ReadService) GetCometTxs(fromBlock int64, toBlock int64) ([]comet.CometTx, error)
- func (s *ReadService) GetNetworkLatestBlockHeight() (int64, error)
- func (s *ReadService) GetValidatorForAddressAtBlock(address string, block int64) (*comet.ValidatorData, error)
- type StoreReadService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadService ¶
type ReadService struct {
// contains filtered or unexported fields
}
func NewReadService ¶
func NewReadService( coingeckoClient *coingecko.CoingeckoClient, cometClient *comet.CometClient, ethClient *ethutils.EthClient, storeReadService StoreReadService, log *logging.Logger, ) (*ReadService, error)
func (*ReadService) GetAssetPoolBalanceForToken ¶
func (s *ReadService) GetAssetPoolBalanceForToken(tokenAddress string) (*big.Int, error)
func (*ReadService) GetAssetPrices ¶
func (s *ReadService) GetAssetPrices() ([]coingecko.PriceData, error)
func (*ReadService) GetBlockSigners ¶
func (s *ReadService) GetBlockSigners(fromBlock int64, toBlock int64) ([]comet.BlockSignersData, error)
func (*ReadService) GetCometTxs ¶
func (*ReadService) GetNetworkLatestBlockHeight ¶
func (s *ReadService) GetNetworkLatestBlockHeight() (int64, error)
func (*ReadService) GetValidatorForAddressAtBlock ¶
func (s *ReadService) GetValidatorForAddressAtBlock(address string, block int64) (*comet.ValidatorData, error)
type StoreReadService ¶
type StoreReadService interface { }
Click to show internal directories.
Click to hide internal directories.