mock

package
v2.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverPriceOracleAddress

func DiscoverPriceOracleAddress(chainID int64) (priceOracleAddress common.Address, found bool)

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(rate, deduct *big.Int) Service

func (Service) Close

func (s Service) Close() error

func (Service) CurrentRates

func (s Service) CurrentRates() (exchangeRate, deduction *big.Int, err error)

func (Service) GetPrice

func (s Service) GetPrice(ctx context.Context) (*big.Int, *big.Int, error)

func (*Service) SetValues

func (s *Service) SetValues(rate, deduct *big.Int)

func (Service) Start

func (s Service) Start()

Jump to

Keyboard shortcuts

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