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 + const EnvironmentInstanceSolanaDevnet + const EnvironmentInstanceSolanaMainnet + const EnvironmentInstanceSolanaTestnet + var ErrNonceNotFound = errors.New("no nonce could be found") + var ErrStaleVersion = errors.New("nonce version is stale") + type Environment uint8 + const EnvironmentCvm + const EnvironmentSolana + const EnvironmentUnknown + func (e Environment) String() string + type Purpose uint8 + const PurposeClientIntent + const PurposeClientSwap + const PurposeInternalServerProcess + const PurposeOnDemandTransaction + const PurposeUnknown + func (p Purpose) String() string + type Record struct + Address string + Authority string + Blockhash string + ClaimExpiresAt *time.Time + ClaimNodeID *string + Environment Environment + EnvironmentInstance string + Id uint64 + Purpose Purpose + Signature string + State State + Version uint64 + func (r *Record) CanReserveWithSignature() bool + func (r *Record) Clone() Record + func (r *Record) CopyTo(dst *Record) + func (r *Record) GetPublicKey() (ed25519.PublicKey, error) + func (r *Record) IsAvailableToClaim() bool + func (r *Record) Validate() error + type State uint8 + const StateAvailable + const StateClaimed + const StateInvalid + const StateReleased + const StateReserved + const StateUnknown + func (s State) String() string + type Store interface + BatchClaimAvailableByPurpose func(ctx context.Context, env Environment, instance string, purpose Purpose, ...) ([]*Record, error) + Count func(ctx context.Context, env Environment, instance string) (uint64, error) + CountByState func(ctx context.Context, env Environment, instance string, state State) (uint64, error) + CountByStateAndPurpose func(ctx context.Context, env Environment, instance string, state State, ...) (uint64, error) + Get func(ctx context.Context, address string) (*Record, error) + GetAllByState func(ctx context.Context, env Environment, instance string, state State, ...) ([]*Record, error) + Save func(ctx context.Context, record *Record) error