Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realm #297

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Realm #297

wants to merge 4 commits into from

Conversation

0xNoushad
Copy link

@0xNoushad 0xNoushad commented Feb 25, 2025

Pull Request Description

Related Issue

Fixes #205

Changes Made

This PR adds the following changes:

  • Added SPL Governance integration to the Solana Agent Kit for programmatic DAO governance.
  • Introduced new governance tools with natural language prompts:
    • Create a new DAO realm with specified configuration
    • Create a new proposal in a DAO realm
    • Cast a vote on a proposal
    • Get information about a DAO realm
    • Get token owner record for a member in a DAO realm
    • Get voting history for a specific voter
  • Updated files:
    • tools/governance/governance.ts
    • actions/governance/monitor.ts
    • actions/governance/council.ts
    • actions/governance/governance.ts
Screenshot 2025-02-26 at 1 57 44 AM

(https://media-hosting.imagekit.io//be8663419707477a/233.jpg?Expires=1835123818&Key-Pair-Id=K2ZIVPTIP2VGHC&Signature=IFk-uVT9k0HlBA101TUJ2qBaWDe~TTm5GpAxzStlOFggPj-hO0ILQ-hGQNMwi9FIxO1nWz08hdEka3wTgLLAPMupmTGg~6-8ZEf5TB5raL~4kxvDgQ3WDPypvgBMQH-kEwjig4xcLcoix97Pgiv58RdgVWf9~G~I1ONcXHRVL8DtAVGIRxNC6~y1fi9fuV73qoeCm-4OIwyqHysw8wDLejoqDeJ6SR974BOtomsSyj4OS2Ek~4OKI2ScRRDFkPnLpLoR1CDSc7aukOMJ6J2y0Pc1CE0L-3vyAlgGr-sXNQCm1lV9L8RPCQducW686gxDT~M5-8K5nmdrw8LFpck1ZA__)

Implementation Details

  • Implemented new tools to interact with the SPL Governance program, enabling the creation of realms, proposals, casting votes, and retrieving governance data.
  • Extended the Solana Agent Kit to support tracking realm configuration, monitoring membership changes, and handling council operations.
  • The integration ensures seamless and native DAO governance support within the agent.

Prompt Used

  • Create a new DAO realm with specified configuration
  • Create a new proposal in a DAO realm
  • Cast a vote on a proposal
  • Get information about a DAO realm
  • Get token owner record for a member in a DAO realm
  • Get voting history for a specific voter

Additional Notes

  • Future improvements may include enhanced analytics and more robust error handling for governance operations.

Checklist

  • [+] I have tested these changes locally
  • I have updated the documentation
  • I have added a transaction link
  • [+] I have added the prompt used to test it

Copy link
Collaborator

@michaelessiet michaelessiet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @0xNoushad , this PR doesn't follow the correct file structure and contents for action and tool files. Please reference other action and tool files in the project

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.

2 participants