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

オープン
#786 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #701 @MarkFeder による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
rust
領域
blockchain

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
1.4k
フォーク
559
平均マージ
20時間 9分
マージ済み PR(30日)
17

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

solana-foundation/program-examples のほかの issue

solana-foundation/program-examples の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。