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 Management | SPL Governance Integration for Solana Agent Kit #287

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

Conversation

0xNoushad
Copy link

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

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

@michaelessiet
Copy link
Collaborator

Hi @0xNoushad , please can you provide screenshots of this tool in action. The screenshots should show the following actions

  1. Creating a new DAO
  2. Creating a new proposal
  3. Casting a vote
  4. Getting information about a DAO
  5. Getting token owner record for a member in a DAO realm
  6. Getting voting history for a specific user

Please make sure to provide links to any on-chain transactions carried out

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