token-2022/cpi-guard: add a Pinocchio version

Abierto
#786 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

  • #701 de @MarkFeder — cerrado sin fusionar

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
rust
Área
blockchain

Línea de trabajo

Start with the existing Anchor example in tokens/token-2022/cpi-guard and compare it with the other Token-2022 extension examples that have Pinocchio versions. The issue says implementation is ready in linked PR #701, which is closed and unmerged; verify the branch or PR contents before taking this on. Done means a Pinocchio version exposes the TransferChecked CPI and tests rejection while the source account's guard is enabled and success after it is disabled.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

accepted

tokens/token-2022/cpi-guard ships only an Anchor version. This proposes a Pinocchio version, matching the other Token-2022 extension examples that already have one.

CpiGuard can't be toggled through a CPI, so the program exposes one TransferChecked CPI and the test shows the guard's effect: the CPI transfer is rejected while the guard is enabled on the source account, and goes through (balance moves) once it is disabled.

Implementation is ready in #701.

Lenguaje dominante
Rust
Estrellas
1.4k
Forks
559
Merge medio
20 h 9 min
PR fusionados (30 d)
17

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de solana-foundation/program-examples

Todos los issues de solana-foundation/program-examples

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.