-
Notifications
You must be signed in to change notification settings - Fork 282
📊 Refresh Stellar Data Structures #2446
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
Open
JFWooten4
wants to merge
5
commits into
stellar:main
Choose a base branch
from
JFWooten4:723-pt-35
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+22
−16
Open
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3aa578d
🧭 Add data structures category
JFWooten4 66c8f4b
📝 Refresh asset data structures
JFWooten4 e7e29f8
📝 Refresh event data structures
JFWooten4 bbdf7da
Potential fix for pull request finding
JFWooten4 3d2fdef
🔢 Plural number typo outside of backticks
JFWooten4 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
9 changes: 9 additions & 0 deletions
9
docs/learn/fundamentals/stellar-data-structures/_category_.json
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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "label": "Stellar Data Structures", | ||
| "position": 50, | ||
| "link": { | ||
| "type": "doc", | ||
| "id": "learn/fundamentals/stellar-data-structures/README" | ||
| }, | ||
| "description": "Learn how accounts, assets, contracts, events, and ledgers fit together to describe everything living on the Stellar network." | ||
| } |
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 |
|---|---|---|
|
|
@@ -5,15 +5,9 @@ description: "Learn how assets work on the Stellar network, including issuing, t | |
| sidebar_position: 30 | ||
| --- | ||
|
|
||
| :::info | ||
|
|
||
| The term "custom token" has been deprecated in favor of "contract token". View the conversation in the [Stellar Developer Discord](https://discord.com/channels/897514728459468821/966788672164855829/1359276952971640953). | ||
|
|
||
| ::: | ||
|
|
||
| # Assets | ||
|
|
||
| Accounts on the Stellar network can be used to track, hold, and transfer any type of asset. Assets can represent many things: cryptocurrencies (such as bitcoin or ether), fiat currencies (such as dollars or pesos), other tokens of value (such as NFTs), pool shares, or bonds and equity. | ||
| Accounts on the Stellar network can be used to track, hold, and transfer any type of asset. Assets can represent many things: cryptocurrencies (such as bitcoin or ether), fiat currencies (such as dollars or pesos), other tokens of value (such as NFTs, pool shares, or securities). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think i like the parenthesis the way it was before. and maybe |
||
|
|
||
| :::note | ||
|
|
||
|
|
@@ -27,6 +21,12 @@ Learn more about the differences in the [Assets and Tokens section](../../../tok | |
|
|
||
| Classic assets on Stellar have two identifying characteristics: the asset code and the issuer. Since more than one organization can issue a credit representing the same asset, asset codes often overlap (for example, multiple companies offer a USD token on Stellar). Assets are uniquely identified by the combination of their asset code and issuer. | ||
|
|
||
| :::info | ||
|
|
||
| "Contract token" is the preferred term over "custom token," as discussed in the [Stellar Developer Discord](https://discord.com/channels/897514728459468821/966788672164855829/1359276952971640953). | ||
|
|
||
| ::: | ||
|
|
||
| ## Asset components | ||
|
|
||
| ### Asset code | ||
|
|
@@ -95,7 +95,7 @@ For example, the integer amount value 25,123,456 equals 2.5123456 units of the a | |
|
|
||
| The smallest non-zero amount unit, also known as a stroop, is 0.0000001 (one ten-millionth) represented as an integer value of one. The largest amount unit possible is $\frac{2^{63}-1}{10^7}$ (derived from the maximum 64-bit integer, scaled down) which is 922,337,203,685.4775807. | ||
|
|
||
| The numbers are represented as int64s. Amount values are stored as only signed integers to avoid bugs that arise from mixing signed and unsigned integers. | ||
| The numbers are represented as `int64s`. Amount values are stored as only signed integers to avoid bugs that arise from mixing signed and unsigned integers. | ||
|
JFWooten4 marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## Relevance in Stellar Client Libraries | ||
|
|
||
|
|
||
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
Oops, something went wrong.
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.
we've been moving away from category json files for these kinds of directories. pretty much anything you need to modify can be done so directly in the
README.mdxfrontmatter.