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 AllAccountTypes = []commonpb.AccountType + var ErrAccountInfoExists = errors.New("account info already exists") + var ErrAccountInfoNotFound = errors.New("account info not found") + var ErrInvalidAccountInfo = errors.New("invalid account info") + type Record struct + AccountType commonpb.AccountType + AuthorityAccount string + CreatedAt time.Time + DepositsLastSyncedAt time.Time + Id uint64 + Index uint64 + MintAccount string + OwnerAccount string + RequiresAutoReturnCheck bool + RequiresDepositSync bool + TokenAccount string + func (r *Record) Clone() Record + func (r *Record) CopyTo(dst *Record) + func (r *Record) IsTimelock() bool + func (r *Record) Validate() error + type Store interface + CountRequiringAutoReturnCheck func(ctx context.Context) (uint64, error) + CountRequiringDepositSync func(ctx context.Context) (uint64, error) + GetByAuthorityAddress func(ctx context.Context, address string) (map[string]*Record, error) + GetByTokenAddress func(ctx context.Context, address string) (*Record, error) + GetByTokenAddressBatch func(ctx context.Context, addresses ...string) (map[string]*Record, error) + GetLatestByOwnerAddress func(ctx context.Context, address string) (map[string]map[commonpb.AccountType][]*Record, error) + GetLatestByOwnerAddressAndType func(ctx context.Context, address string, accountType commonpb.AccountType) (map[string]*Record, error) + GetPrioritizedRequiringAutoReturnCheck func(ctx context.Context, minAge time.Duration, limit uint64) ([]*Record, error) + GetPrioritizedRequiringDepositSync func(ctx context.Context, limit uint64) ([]*Record, error) + Put func(ctx context.Context, record *Record) error + Update func(ctx context.Context, record *Record) error