Skip to content

Commit

Permalink
bold must
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Jul 12, 2023
1 parent 3fc3447 commit 1149e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neps/nep-0393.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ For the Token ID type we propose `u64` rather than `U128`. `u64` capacity is mor
Today, the JS integer limit is `2^53-1 ~ 9e15`. Similarly, when minting 10'000 SBTs per second, it will take us 28'561 years to reach the limit. So, we don't need u128 nor the String type. However, if for some reason, we will need to get u64 support for JS, then we can always add another set of methods which will return String, so making it compatible with NFT standard (which is using `U128`, which is a string). Also, it's worth to note, that in 28'000 years JS (if it will still exists) will be completely different.
The number of combinations for a single issuer is much higher in fact: the token standard uses classes. So technically that makes the number of all possible combinations for a single issuer equal `(2^64)^2 ~ 1e38`. For "today" JS it is `(2^53-1)^2 ~ 1e31`.

Token IDs must be created in a sequence to make sure the ID space is not exhausted locally (eg if a registry would decide to introduce segments, it would potentially get into a trap where one of the segments is filled up very quickly).
Token IDs MUST be created in a sequence to make sure the ID space is not exhausted locally (eg if a registry would decide to introduce segments, it would potentially get into a trap where one of the segments is filled up very quickly).

```rust
// TokenId and ClassId must be positive (0 is not a valid ID)
Expand Down

0 comments on commit 1149e98

Please sign in to comment.