pricefeed

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 9 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
}

Service provides Price Feed functionality

func NewService

func NewService(
	config *config.Config,
	repository models.PriceFeedRepository,
	blockchainClient blockchain.Client,
	teeManager *tee.Manager,
) (*Service, error)

NewService creates a new Price Feed service

func (*Service) CreatePriceFeed

func (s *Service) CreatePriceFeed(ctx context.Context, symbol string, contractAddress string, interval int, threshold float64, minSources int) (*models.PriceFeed, error)

CreatePriceFeed delegates to the wrapper to create a new price feed

Jump to

Keyboard shortcuts

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