docs(0.14): document native asset vault key/value encoding - #371
kutluhaneth46 wants to merge 2 commits into
Conversation
Add the ASSET_KEY / ASSET_VALUE layout for fungible and non-fungible assets, including the callback flag in faucet_id_suffix, and align the create_non_fungible_asset Inputs row with enable_callbacks.
BrianSeong99
left a comment
There was a problem hiding this comment.
One correctness issue before approval.
|
|
||
| | Kind | Value word | | ||
| | --- | --- | | ||
| | Fungible | `[amount, 0, 0, 0]` — `amount ≤ 2⁶³−1` | |
There was a problem hiding this comment.
P1: The maximum fungible amount in v0.14.6 is 2⁶³−2³¹, not 2⁶³−1. Could we update this row so it matches FungibleAsset::MAX_AMOUNT and FUNGIBLE_ASSET_MAX_AMOUNT?
There was a problem hiding this comment.
Good catch — updated both places (the vault ASSET_VALUE table row and the earlier fungible-asset prose) to 2⁶³−2³¹, matching FungibleAsset::MAX_AMOUNT / FUNGIBLE_ASSET_MAX_AMOUNT (0x7fffffff80000000).
Align the vault encoding table and fungible asset prose with FungibleAsset::MAX_AMOUNT / FUNGIBLE_ASSET_MAX_AMOUNT (0x7fffffff80000000).
|
Addressed @BrianSeong99's P1: fungible max amount is now documented as `2⁶³−2³¹` (not `2⁶³−1`) in both the prose and the `ASSET_VALUE` table, matching `FungibleAsset::MAX_AMOUNT` / `FUNGIBLE_ASSET_MAX_AMOUNT`. |
|
@BrianSeong99 — P1 max-amount fix ( |
Summary
ASSET_KEY/ASSET_VALUElayout (fungible vs non-fungible, callback flag infaucet_id_suffix) underversioned_docs/version-0.14/reference/protocol/asset.md#encoding.create_non_fungible_assetInputs with the fungible helper (enable_callbacksfirst) inprotocol_library.md.#encoding.Test plan
AssetVaultKey::to_word()on the v0.14.6 tag