Skip to content

feat: add clearer unique-token helper aliases#132

Open
knoal wants to merge 1 commit into
aiken-lang:mainfrom
knoal:feat/121-value-uniqueness-names
Open

feat: add clearer unique-token helper aliases#132
knoal wants to merge 1 commit into
aiken-lang:mainfrom
knoal:feat/121-value-uniqueness-names

Conversation

@knoal

@knoal knoal commented Jun 10, 2026

Copy link
Copy Markdown

Closes #121

Summary

  • add has_any_unique, has_any_unique_strict, has_unique, and has_unique_strict
  • keep the existing *_nft* helpers as backward-compatible aliases
  • clarify the docs to distinguish UTxO-level uniqueness from chain-wide NFT claims

Why this shape

Issue #121 points out that the current *_nft* names can imply blockchain-wide uniqueness. This PR takes a conservative migration-friendly step:

  • exposes the clearer *_unique* names requested in the issue
  • preserves existing call sites by keeping the older *_nft* names as aliases
  • updates tests to cover both names

If maintainers prefer a harder rename later, this keeps that path open without forcing a breaking change immediately.

Validation

  • cargo run -q -p aiken -- check /home/alex/.openclaw/workspace/tmp/wt-stdlib-121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potentially problematic *_nft_* function naming

1 participant