signaller

package
v3.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FixedIntervalOffset int64 = 10
	TimeBuffer          int64 = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BothanClient

type BothanClient interface {
	bothanclient.Client
}

type FeedQuerier

type FeedQuerier interface {
	QueryValidValidator(valAddress sdk.ValAddress) (*feeds.QueryValidValidatorResponse, error)
	QueryValidatorPrices(valAddress sdk.ValAddress) (*feeds.QueryValidatorPricesResponse, error)
	QueryParams() (*feeds.QueryParamsResponse, error)
	QueryCurrentFeeds() (*feeds.QueryCurrentFeedsResponse, error)
}

type Signaller

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

func New

func New(
	feedQuerier FeedQuerier,
	bothanClient BothanClient,
	interval time.Duration,
	submitCh chan<- submitter.SignalPriceSubmission,
	logger *logger.Logger,
	valAddress sdk.ValAddress,
	pendingSignalIDs *sync.Map,
	distributionStartPercentage uint64,
	distributionOffsetPercentage uint64,
) *Signaller

func (*Signaller) Start

func (s *Signaller) Start()

Directories

Path Synopsis
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.

Jump to

Keyboard shortcuts

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