ethqueryclienttypes

package
v0.0.0-...-41d3419 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthQueryClient

type EthQueryClient interface {
	ChainID(ctx context.Context, client *ethclient.Client) (*big.Int, error)
	QueryDaiConversionRate(client *ethclient.Client) (string, error)
}

SDAIEthClient is an interface that encapsulates querying an Ethereum JSON-RPC endpoint.

type EthQueryClientImpl

type EthQueryClientImpl struct{}

EthQueryClientImpl is a concrete implementation of the EthQueryClient interface.

func (*EthQueryClientImpl) ChainID

func (e *EthQueryClientImpl) ChainID(ctx context.Context, client *ethclient.Client) (*big.Int, error)

ChainID wraps the existing ChainID function.

func (*EthQueryClientImpl) QueryDaiConversionRate

func (e *EthQueryClientImpl) QueryDaiConversionRate(client *ethclient.Client) (string, error)

QueryDaiConversionRate wraps the existing QueryDaiConversionRate function.

Jump to

Keyboard shortcuts

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