blockprocessor

package
v27.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlockProcessor

func NewBlockProcessor(blockProcessStrategyManager commondomain.BlockProcessStrategyManager, client domain.Publisher, poolExtractor commondomain.PoolExtractor, keepers domain.Keepers, nodeStatusChecker commonservice.NodeStatusChecker, blockUpdateProcessUtils commondomain.BlockUpdateProcessUtilsI) commondomain.BlockProcessor

NewBlockProcessor creates a new block process strategy.

func NewPairPublisher

func NewPairPublisher(client domain.Publisher, poolManagerKeeper domain.PoolManagerKeeperI) domain.PairPublisher

NewPairPublisher creates a new pair publisher.

Types

type PairPublisher

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

func (PairPublisher) PublishPoolPairs

func (p PairPublisher) PublishPoolPairs(ctx sdk.Context, pools []poolmanagertypes.PoolI, createdPoolIDs map[uint64]commondomain.PoolCreation) error

PublishPoolPairs publishes the denom pairs contained in the pools. Each pool pair is published with the taker fee and spread factor. Invalid denoms are skipped as per domain.ShouldFilterDenom function. Returns error if at least one of the pairs failed to be published. Nil otherwise.

Jump to

Keyboard shortcuts

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