tokens/nft-operations: add the native (Solana Native) flavor to complete the anchor/native/pinocchio trio
维护者通常 1 天内回复
还没有人认领这个 Issue。
- #769 来自 @sehaha —— 已关闭,未合并
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust, typescript
- 领域
- backend, blockchain
调研方向
Read AGENTS.md and CONTRIBUTING.md, then compare the existing tokens/nft-operations/anchor/ and pinocchio/ flavors with the native examples named in the proposal. The work spans a Rust program crate and LiteSVM tests using @solana/kit; done means adding tokens/nft-operations/native/ with hand-built token-metadata instructions and the required build-and-test script. The issue is newly opened and has no comments or linked pull requests, but the proposed implementation is substantial.
由索引模型根据 Issue 内容生成。
描述
Proposal
tokens/nft-operations currently ships two flavors: anchor/ and pinocchio/. The native/ flavor is missing, which breaks the repo's stated pattern of "one per framework flavor" for token examples (cf. tokens/create-token, tokens/transfer-tokens, tokens/pda-mint-authority, tokens/escrow, which all ship the full trio).
This issue proposes adding tokens/nft-operations/native/ — a Solana Native (plain cargo build-sbf) implementation of the same NFT operations the Anchor flavor teaches, so learners can compare the three frameworks on the same example.
Why this example
- Framework-completion PRs have direct precedent: the Solana Foundation's recent program-examples bounty rounds paid for exactly this kind of flavor coverage (Account Data, PDA-Rent-Payer, Create Token, Transfer Tokens, Token Swap, etc.).
native/is the middle ground learners use to understand what Anchor generates for them — it is the most instructive diff of the trio for Metaplex-heavy examples, since the native flavor hand-builds token-metadata instructions (perAGENTS.md, no mpl crate dependency,mpl_util.rspattern).
What I will deliver (on approval — happy to be assigned)
tokens/nft-operations/native/following the repo layout:program/crate (root workspace member),package.jsonwith the mandatorybuild-and-testscript, LiteSVM-based tests via@solana/kit+litesvm1.x (mocha + tsx,FailedTransactionMetadataassertions,svm.expireBlockhash()on resend).- Hand-built Metaplex token-metadata instructions in Rust (no mpl crate), mirroring the pinocchio flavor's approach where applicable.
- No toolchain bumps, no lockfile hoisting, no shared JS helpers —
AGENTS.mdandCONTRIBUTING.mdfollowed. - A separate branch + PR referencing
Fixes #<this issue>once approved.
If the maintainers would rather see a different flavor gap filled first (e.g. tokens/token-swap native), I'm happy to redirect — it's open for me to pick up.
- 主要语言
- TypeScript
- 星标
- 1.4k
- 派生
- 557
- 平均合并
- 1 小时 25 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
solana-foundation/program-examples 的其他 Issue
-
Migrate deprecated .accounts() to .accountsPartial() in Anchor tests可能重新可做 @ankittiwari-04 于 18 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
solana-foundation/program-examples#747 · 4 条评论 ·
维护者通常 1 天内回复
-
basics/pda-rent-payer: create_new_account has no caller check — worth a note for people copying it?可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 78/100
solana-foundation/program-examples#671 · 3 条评论 ·
维护者通常 1 天内回复
-
tokens/token-swap: add the native (Solana Native) flavor — example currently ships anchor-only可能已有人在做 @chatbotchatbot692 于 3 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
solana-foundation/program-examples#755 · 9 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
solana-foundation/program-examples#743 · 1 条评论 ·
维护者通常 1 天内回复
-
tokens/nft-staking: propose an NFT staking example (delegate + freeze, checkpointed rewards)可能已有人在做 @Harsh-H-Shah 于 53 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 35/100
solana-foundation/program-examples#726 ·
维护者通常 1 天内回复
查看 solana-foundation/program-examples 的全部 Issue
相似的 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
microsoft/playwright#43875 · 1 条评论 ·
维护者通常 1 天内回复
-
feature
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1 小时以内 新手友好度 88/100
adobe/react-spectrum#10909 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
Run the dependency drift check可能已有人在做 @spaceninja 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 72/100
cloudfour/lighthouse-parade#449 ·
维护者通常 1 天内回复