Skip to content

[frame-support] Add fungible metadata and lifetime traits with ItemOf support#11432

Merged
ggwpez merged 7 commits intomasterfrom
muharem-fungible-metadata
Mar 20, 2026
Merged

[frame-support] Add fungible metadata and lifetime traits with ItemOf support#11432
ggwpez merged 7 commits intomasterfrom
muharem-fungible-metadata

Conversation

@muharem
Copy link
Copy Markdown
Contributor

@muharem muharem commented Mar 19, 2026

Adds fungible::metadata and fungible::lifetime modules mirroring the corresponding fungibles APIs:

  • metadata: Inspect and Mutate traits for fungible token metadata (name, symbol, decimals).
  • lifetime: Create trait for creating a new fungible asset.

These modules initially exist to support functionality in the ItemOf adapter for fungibles. When a fungibles implementation provides the corresponding traits (fungibles::metadata::Inspect, fungibles::metadata::Mutate, fungibles::lifetime::Create), the ItemOf wrapper implements the fungible equivalents, allowing a single asset from a fungibles set to be used where fungible metadata or create is expected.

@muharem muharem marked this pull request as ready for review March 19, 2026 09:52
@muharem muharem requested a review from a team as a code owner March 19, 2026 09:52
@muharem muharem changed the title FRAME: fungible metadata [frame-support] Add fungible metadata traits and ItemOf support' Mar 19, 2026
@muharem muharem changed the title [frame-support] Add fungible metadata traits and ItemOf support' [frame-support] Add fungible metadata traits and ItemOf support Mar 19, 2026
Copy link
Copy Markdown
Contributor

@seadanda seadanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some docs nits

Comment thread substrate/frame/support/src/traits/tokens/fungible/metadata.rs Outdated
Comment thread substrate/frame/support/src/traits/tokens/fungible/metadata.rs
Comment thread substrate/frame/support/src/traits/tokens/fungible/metadata.rs Outdated
Comment thread substrate/frame/support/src/traits/tokens/fungible/metadata.rs Outdated
Comment thread substrate/frame/support/src/traits/tokens/fungible/metadata.rs
Comment thread substrate/frame/support/src/traits/tokens/fungible/metadata.rs Outdated
Copy link
Copy Markdown
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modulo the doc comments from Donal.

@muharem
Copy link
Copy Markdown
Contributor Author

muharem commented Mar 19, 2026

@seadanda @ggwpez done with docs

@muharem muharem added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Mar 19, 2026
@muharem muharem changed the title [frame-support] Add fungible metadata traits and ItemOf support [frame-support] Add fungible metadata and lifetime traits with ItemOf support Mar 19, 2026
@muharem muharem added this pull request to the merge queue Mar 20, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 20, 2026
@ggwpez ggwpez added this pull request to the merge queue Mar 20, 2026
Merged via the queue into master with commit aa06cd0 Mar 20, 2026
245 of 249 checks passed
@ggwpez ggwpez deleted the muharem-fungible-metadata branch March 20, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T1-FRAME This PR/Issue is related to core FRAME, the framework.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants