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 ErrAccountClosed = errors.New("account open state is stale") + var ErrCheckpointNotFound = errors.New("checkpoint not found") + var ErrStaleCachedBalanceVersion = errors.New("cached balance version is stale") + var ErrStaleCheckpoint = errors.New("checkpoint is stale") + type ExternalCheckpointRecord struct + Id uint64 + LastUpdatedAt time.Time + Quarks uint64 + SlotCheckpoint uint64 + TokenAccount string + func (r *ExternalCheckpointRecord) Clone() ExternalCheckpointRecord + func (r *ExternalCheckpointRecord) CopyTo(dst *ExternalCheckpointRecord) + func (r *ExternalCheckpointRecord) Validate() error + type Store interface + AdvanceCachedVersion func(ctx context.Context, account string, currentVersion uint64) error + CheckNotClosed func(ctx context.Context, account string) error + GetCachedVersion func(ctx context.Context, account string) (uint64, error) + GetExternalCheckpoint func(ctx context.Context, account string) (*ExternalCheckpointRecord, error) + MarkAsClosed func(ctx context.Context, account string) error + SaveExternalCheckpoint func(ctx context.Context, record *ExternalCheckpointRecord) error