tokens/nft-operations: add the native (Solana Native) flavor to complete the anchor/native/pinocchio trio
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- rust, typescript
- Área
- backend, blockchain
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.4k
- Forks
- 548
- Merge medio
- 57 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de solana-foundation/program-examples
-
Migrate deprecated .accounts() to .accountsPartial() in Anchor testsQuizá libre de nuevo @ankittiwari-04 la tomó hace 10 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
solana-foundation/program-examples#747 · 4 comentarios ·
-
basics/pda-rent-payer: create_new_account has no caller check — worth a note for people copying it?Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
solana-foundation/program-examples#671 · 2 comentarios ·
-
tokens/token-swap: add the native (Solana Native) flavor — example currently ships anchor-onlyAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
solana-foundation/program-examples#755 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
solana-foundation/program-examples#743 · 1 comentario ·
-
tokens/nft-staking: propose an NFT staking example (delegate + freeze, checkpointed rewards)Posiblemente ocupada @Harsh-H-Shah la tomó hace 45 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Todos los issues de solana-foundation/program-examples
Issues similares
-
[Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --displayPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
pingdotgg/t3code#24900 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
inu-appcenter/UNIDorm-web#411 ·
Los mantenedores suelen responder en 1 día
-
🐛 bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
ranxianglei/billion-context#4720 ·
Los mantenedores suelen responder en 1 día
-
area:arcade game p3-medium ready-for-agent type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
fderuiter/deruiter.dev#2840 ·
Los mantenedores suelen responder en 1 día