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.
Click to show internal directories.
Click to hide internal directories.