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 ErrInvalidTimelock = errors.New("invalid timelock") + var ErrStaleTimelockState = errors.New("timelock state is stale") + var ErrTimelockNotFound = errors.New("no records could be found") + type Record struct + Address string + Block uint64 + Bump uint8 + DepositPdaAddress string + DepositPdaBump uint8 + Id uint64 + LastUpdatedAt time.Time + SwapPdaAddress string + SwapPdaBump uint8 + UnlockAt *uint64 + VaultAddress string + VaultBump uint8 + VaultOwner string + VaultState timelock_token_v1.TimelockState + func (r *Record) Clone() *Record + func (r *Record) CopyTo(dst *Record) + func (r *Record) ExistsOnBlockchain() bool + func (r *Record) IsClosed() bool + func (r *Record) IsLocked() bool + func (r *Record) Validate() error + type Store interface + GetAllByState func(ctx context.Context, state timelock_token.TimelockState, cursor query.Cursor, ...) ([]*Record, error) + GetByAddress func(ctx context.Context, address string) (*Record, error) + GetByDepositPda func(ctx context.Context, depositPda string) (*Record, error) + GetBySwapPda func(ctx context.Context, depositPda string) (*Record, error) + GetByVault func(ctx context.Context, vault string) (*Record, error) + GetByVaultBatch func(ctx context.Context, vaults ...string) (map[string]*Record, error) + GetCountByState func(ctx context.Context, state timelock_token.TimelockState) (uint64, error) + Save func(ctx context.Context, record *Record) error