Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDidNotIngestAllData = errors.New("cold start manager has not yet ingested initial data")
Functions ¶
func IsMultiDenom ¶ added in v25.2.1
IsMultiDenom returns true if the given denoms has >2 denoms
func ShouldFilterDenom ¶ added in v25.2.1
ShouldFilterDenom returns true if the given denom should be filtered out.
Types ¶
type EventWrapper ¶ added in v25.2.1
type Keepers ¶
type Keepers struct { BankKeeper bankkeeper.Keeper PoolManagerKeeper PoolManagerKeeperI }
type Pair ¶ added in v25.2.1
type Pair struct { PoolID uint64 `json:"pool_id"` MultiAsset bool `json:"multi_asset"` Denom0 string `json:"denom_0"` IdxDenom0 uint8 `json:"idx_denom_0"` Denom1 string `json:"denom_1"` IdxDenom1 uint8 `json:"idx_denom_1"` FeeBps uint64 `json:"fee_bps"` IngestedAt time.Time `json:"ingested_at"` }
Pair represents a pair of tokens in a pool and message to be published to PubSub
type PairPublisher ¶ added in v25.2.1
type PairPublisher interface { // PublishPoolPairs publishes the given pools as pairs. PublishPoolPairs(ctx sdk.Context, pools []poolmanagertypes.PoolI) error }
PairPublisher is an interface for publishing pair data.
type PoolManagerKeeperI ¶ added in v25.2.1
type Publisher ¶
type Publisher interface { TokenSupplyPublisher PublishBlock(ctx context.Context, block Block) error PublishTransaction(ctx context.Context, txn Transaction) error PublishPool(ctx context.Context, pool Pool) error PublishPair(ctx context.Context, pair Pair) error }
Publisher is an interface for publishing various types of data.
type TokenSupply ¶
type TokenSupplyOffset ¶
type TokenSupplyPublisher ¶
type TokenSupplyPublisher interface { PublishTokenSupply(ctx context.Context, tokenSupply TokenSupply) error PublishTokenSupplyOffset(ctx context.Context, tokenSupplyOffset TokenSupplyOffset) error }
TokenSupplyPublisher is an interface for publishing token supply data.
type Transaction ¶
type Transaction struct { Height uint64 `json:"height"` BlockTime time.Time `json:"timestamp"` GasWanted uint64 `json:"gas_wanted"` GasUsed uint64 `json:"gas_used"` Fees sdk.Coins `json:"fees"` MessageType string `json:"msg_type"` TransactionHash string `json:"tx_hash"` TransactionIndexId int `json:"tx_index_id"` Events []EventWrapper `json:"events"` IngestedAt time.Time `json:"ingested_at"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.