Skip to content

feat: Adding name for Feature Gate program#949

Open
C0mberry wants to merge 3 commits intosolana-foundation:masterfrom
hoodieshq:feat-frature-gate-page
Open

feat: Adding name for Feature Gate program#949
C0mberry wants to merge 3 commits intosolana-foundation:masterfrom
hoodieshq:feat-frature-gate-page

Conversation

@C0mberry
Copy link
Copy Markdown
Contributor

@C0mberry C0mberry commented Apr 16, 2026

Description

  • adding feature gate name to known programs

Type of change

  • New feature

Screenshots

Screenshot 2026-04-16 at 12 13 25

Testing

  1. open page
  2. see name

Related Issues

HOO-353

Checklist

  • My code follows the project's style guidelines
  • All tests pass locally and in CI
  • CI/CD checks pass
  • I have included screenshots for protocol screens (if applicable)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 16, 2026

@C0mberry is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 16, 2026

Greptile Summary

This PR adds the Feature Gate program (Feature111111111111111111111111111111111111) to the known programs registry in app/utils/programs.ts, making it display as "Feature Gate Program" across all clusters in the explorer UI. The change is minimal and consistent — the address matches the existing FEATURE_PROGRAM_ID constant already in use throughout the codebase.

Confidence Score: 5/5

Safe to merge — trivial, correct addition with no risk of breakage.

Single-file change adds two lines: one enum value and one address mapping. The address matches the FEATURE_PROGRAM_ID already established in the codebase, the enum section placement is correct (native built-ins), ALL_CLUSTERS is the right deployment scope for a native program, and alphabetical ordering in the map is preserved. No tests broken, no logic touched.

No files require special attention.

Important Files Changed

Filename Overview
app/utils/programs.ts Adds FEATURE_GATE enum entry and corresponding PROGRAM_INFO_BY_ID mapping for the Feature Gate program on ALL_CLUSTERS; address matches the existing FEATURE_PROGRAM_ID constant, placement in the enum and map is correct.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["Address lookup\nFeature111…1111"] --> B["PROGRAM_INFO_BY_ID"]
    B --> C{"Known program?"}
    C -- "Before PR" --> D["Unknown / no name"]
    C -- "After PR" --> E["PROGRAM_NAMES.FEATURE_GATE\n= 'Feature Gate Program'"]
    E --> F["Explorer UI\nshows program name"]
Loading

Reviews (1): Last reviewed commit: "adding name" | Re-trigger Greptile

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