Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriceUpdate ¶
type PriceUpdates ¶
type PriceUpdates []PriceUpdate
type PriceUpdatesCache ¶
type PriceUpdatesCache interface { SetPriceUpdates(ctx sdk.Context, updates PriceUpdates, txHash []byte) GetPriceUpdates() PriceUpdates HasValidValues(currTxHash []byte) bool }
PriceUpdatesCache is an interface that defines the methods for caching price updates Make sure to use this in thread-safe scenarios (e.g., when flow is holding lock on the entire app).
type PriceUpdatesCacheImpl ¶
type PriceUpdatesCacheImpl struct {
// contains filtered or unexported fields
}
func (*PriceUpdatesCacheImpl) GetPriceUpdates ¶
func (veCache *PriceUpdatesCacheImpl) GetPriceUpdates() PriceUpdates
func (*PriceUpdatesCacheImpl) HasValidValues ¶
func (veCache *PriceUpdatesCacheImpl) HasValidValues(currTxHash []byte) bool
func (*PriceUpdatesCacheImpl) SetPriceUpdates ¶
func (veCache *PriceUpdatesCacheImpl) SetPriceUpdates( ctx sdk.Context, updates PriceUpdates, txHash []byte, )
Click to show internal directories.
Click to hide internal directories.