Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigIntCache ¶
type BigIntCache interface { SetValue(ctx sdk.Context, value *big.Int, txHash []byte) GetValue() *big.Int HasValidValue(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 BigIntCacheImpl ¶
type BigIntCacheImpl struct {
// contains filtered or unexported fields
}
func (*BigIntCacheImpl) GetValue ¶
func (veCache *BigIntCacheImpl) GetValue() *big.Int
func (*BigIntCacheImpl) HasValidValue ¶
func (veCache *BigIntCacheImpl) HasValidValue(currTxHash []byte) bool
Click to show internal directories.
Click to hide internal directories.