pricing

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(bridgeConfig *config.Bridge, assetsService service.Assets, diamondRouters map[uint64]client.DiamondRouter, mirrorNodeClient client.MirrorNode, coinGeckoClient client.Pricing, coinMarketCapClient client.Pricing) *Service

func (*Service) FetchAndUpdateUsdPrices

func (s *Service) FetchAndUpdateUsdPrices() error

func (*Service) GetHederaNftFee

func (s *Service) GetHederaNftFee(token string) (int64, bool)

func (*Service) GetHederaNftPrevFee

func (s *Service) GetHederaNftPrevFee(token string) (int64, bool)

func (*Service) GetMinAmountsForAPI

func (s *Service) GetMinAmountsForAPI() map[uint64]map[string]string

func (*Service) GetTokenPriceInfo

func (s *Service) GetTokenPriceInfo(networkId uint64, tokenAddressOrId string) (priceInfo pricing.TokenPriceInfo, exist bool)

func (*Service) NftFees

func (s *Service) NftFees() map[uint64]map[string]pricing.NonFungibleFee

Jump to

Keyboard shortcuts

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