feat(rust): add NFT mint-and-transfer recipe - #250
Open
BrianSeong99 wants to merge 3 commits into
Open
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a runnable Rust recipe that mints one NFT with the standard non-fungible faucet, consumes it into Alice's wallet, transfers it to Bob, and verifies ownership after each step. The recipe funds all three accounts with native testnet assets and waits for every transaction to commit.
Depends on #249. This PR targets its
chore/migrate-v0.16branch so the diff contains only the NFT recipe. Retarget this PR tomainbefore deleting the migration branch.Changes
BasicWalletfor native fee funding andCodeInspectionfor the production MINT note.nft_mint_transferwith the tutorial runner and Rust doctests. Add a consistency test that keeps the published code identical to the executable.Verification
npm run build:dev: passed with no broken-link warnings.Testnet execution used the locked dependencies and
TUTORIAL_NETWORK=testnet cargo run --locked --manifest-path ../../Cargo.toml --bin nft_mint_transferfrom a fresh directory underrust-client/.tutorial-runs/. The canonical Yarn wrapper's discovery and syntax were checked; its full clean-and-run path was not executed.Follow-up and limits