Skip to content

CI rehearsal only (do not merge) - #26

Closed
michael-moffett wants to merge 1 commit into
mainfrom
surfpool-706-setmint-a10
Closed

michael-moffett wants to merge 1 commit into
mainfrom
surfpool-706-setmint-a10

Conversation

@michael-moffett

Copy link
Copy Markdown
Member

Fork CI only. Do not merge.

Add a `surfnet_setMint` cheatcode that creates or patches a mint, optionally writing the Token-2022 `ConfidentialTransferMint` extension (authority, auditor ElGamal pubkey, auto-approve).

Lead 3 of : builders must fork a mainnet mint today because there is no way to spin up a confidential-capable mint with a chosen auditor and decimals.
@greptile-apps

greptile-apps Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds test-only cheatcode for mint configuration.

The change appears safe to merge based on the reviewed behavior.

Summary

Adds surfnet_setMint to create or update SPL Token and Token-2022 mints, including confidential-transfer mint configuration. Adds Rust and SDK types, method registration, and tests for extension preservation, partial updates, rent, and token-account integration.

Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["surfnet_setMint request"] --> B["Look up or generate mint"]
  B --> C["Apply base-field updates"]
  C --> D{"Confidential update?"}
  D -- Yes --> E["Build Token-2022 extension data"]
  D -- No --> F["Pack base, preserving extensions"]
  E --> G["Validate owner and top up rent"]
  F --> G
  G --> H["Commit account update"]
Loading

Reviews (1) · Last reviewed commit: "feat(core): surfnet_setMint cheatcode wi..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant