Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2025 v0.1.0 Nov 28, 2025 Changes in this version + var ErrExists = errors.New("record exists") + var ErrInvalidInterval = errors.New("the provided interval is not valid") + var ErrInvalidRange = errors.New("the provided range is not valid") + var ErrNotFound = errors.New("record not found") + type ExchangeRateRecord struct + Id uint64 + Rate float64 + Symbol string + Time time.Time + type MetadataRecord struct + Alt string + Authority string + BuyFeeBps uint16 + CreatedAt time.Time + CreatedBy string + CurrencyConfig string + CurrencyConfigBump uint8 + Decimals uint8 + Description string + FeesCore string + FeesMint string + Id uint64 + ImageUrl string + LiquidityPool string + LiquidityPoolBump uint8 + Mint string + MintBump uint8 + Name string + Seed string + SellFeeBps uint16 + Symbol string + VaultCore string + VaultCoreBump uint8 + VaultMint string + VaultMintBump uint8 + func (m *MetadataRecord) Clone() *MetadataRecord + func (m *MetadataRecord) CopyTo(dst *MetadataRecord) + func (m *MetadataRecord) Validate() error + type MultiRateRecord struct + Rates map[string]float64 + Time time.Time + type ReserveRecord struct + CoreMintLocked uint64 + Id uint64 + Mint string + SupplyFromBonding uint64 + Time time.Time + func (m *ReserveRecord) Clone() *ReserveRecord + func (m *ReserveRecord) CopyTo(dst *ReserveRecord) + func (m *ReserveRecord) Validate() error + type Store interface + GetAllExchangeRates func(ctx context.Context, t time.Time) (*MultiRateRecord, error) + GetExchangeRate func(ctx context.Context, symbol string, t time.Time) (*ExchangeRateRecord, error) + GetExchangeRatesInRange func(ctx context.Context, symbol string, interval query.Interval, start time.Time, ...) ([]*ExchangeRateRecord, error) + GetMetadata func(ctx context.Context, mint string) (*MetadataRecord, error) + GetReserveAtTime func(ctx context.Context, mint string, t time.Time) (*ReserveRecord, error) + PutExchangeRates func(ctx context.Context, record *MultiRateRecord) error + PutMetadata func(ctx context.Context, record *MetadataRecord) error + PutReserveRecord func(ctx context.Context, record *ReserveRecord) error