-
Notifications
You must be signed in to change notification settings - Fork 172
docs: enhance TokenType enum docstring #1394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
cheese-cakee
wants to merge
23
commits into
hiero-ledger:main
from
cheese-cakee:token-type-docstring
Closed
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3c6d67a
docs: enhance FeeAssessmentMethod enum docstring
cheese-cakee 72b1af3
docs: enhance TokenType enum docstring
cheese-cakee 2667e60
fix: replace EN DASH with HYPHEN-MINUS in docstring
cheese-cakee c2365e7
fix: replace EN DASH with HYPHEN-MINUS in docstring
cheese-cakee 1177c49
docs: convert FeeAssessmentMethod docstring to Google-style with exam…
cheese-cakee 5afc0bd
docs: convert TokenType docstring to Google-style with examples
cheese-cakee e4170b0
Trigger GitHub status update
cheese-cakee f12c689
Update to resolve GitHub status display issue
cheese-cakee 9ef922c
Merge branch 'main' into fee-assessment-method-docstring-2
cheese-cakee 92c9aa0
docs: update CHANGELOG to include FeeAssessmentMethod and TokenType d…
cheese-cakee 49793e5
Trigger fresh status check after DCO fix
cheese-cakee 61bbbdb
docs: enhance TokenType enum docstring
cheese-cakee 5380884
fix: replace EN DASH with HYPHEN-MINUS in docstring
cheese-cakee 4f286a4
docs: convert TokenType docstring to Google-style with examples
cheese-cakee b8f2842
Trigger GitHub status update
cheese-cakee d676b4b
Merge remote-tracking branch 'origin/token-type-docstring' into token…
cheese-cakee 778ca9a
Merge branch 'token-type-docstring' into fee-assessment-method-docstr…
cheese-cakee dc7d909
Fix docstrings according to Google-style format
cheese-cakee 325c861
Trigger GitHub UI refresh for docstring changes
cheese-cakee 421a4dc
Merge Google-style docstring fixes
cheese-cakee 1943d55
Merge updated changes
cheese-cakee da93ce6
Ensure GitHub UI updates with latest docstring fixes
cheese-cakee 2d14aa3
Merge final changes
cheese-cakee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,20 @@ | |
| from enum import Enum | ||
|
|
||
| class TokenType(Enum): | ||
| """Enum for Hedera token types: FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.""" | ||
| """ | ||
| Token type for Hedera tokens: | ||
| • FUNGIBLE_COMMON - Interchangeable tokens where each unit is equal. | ||
|
||
| Examples: cryptocurrencies, utility tokens, stablecoins. | ||
| Use for tokens where units can be divided and mixed freely. | ||
| • NON_FUNGIBLE_UNIQUE - Unique tokens where each token is distinct and | ||
| cannot be replaced. Examples: NFTs, digital collectibles, | ||
| unique assets. Each token has its own metadata and | ||
| identity. | ||
| This enum determines whether a token represents a divisible, interchangeable | ||
|
||
| asset or a collection of unique, non-interchangeable assets. | ||
| """ | ||
| FUNGIBLE_COMMON = 0 | ||
| NON_FUNGIBLE_UNIQUE = 1 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation for both must match please