bigintcache

package
v0.0.0-...-23a414b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 0

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

func (*BigIntCacheImpl) SetValue

func (veCache *BigIntCacheImpl) SetValue(
	ctx sdk.Context,
	value *big.Int,
	txHash []byte,
)

Jump to

Keyboard shortcuts

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