-
Notifications
You must be signed in to change notification settings - Fork 542
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
base: main
Are you sure you want to change the base?
Realm #297
Conversation
There was a problem hiding this 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
import createProposalAction from "./realm-governance/create-proposal"; | ||
import getVoterHistoryAction from "./realm-governance/voter-history"; | ||
import getTokenOwnerRecordAction from "./realm-governance/owner-record"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unnecessary white spaces/lines from any files that may have them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this file is going to be empty please remove it
src/agent/index.ts
Outdated
@@ -181,6 +204,9 @@ import { | |||
getSmartTwitterAccountStats, | |||
} from "../tools/elfa_ai"; | |||
|
|||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary white space
@@ -785,6 +814,119 @@ export class SolanaAgentKit { | |||
return `Transaction: ${tx}`; | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary white space
return updateCouncilMemberWeight(this, realm, councilMint, memberConfig); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary white space
src/langchain/index.ts
Outdated
@@ -35,6 +35,9 @@ export * from "./switchboard"; | |||
export * from "./elfa_ai"; | |||
export * from "./debridge"; | |||
export * from "./fluxbeam"; | |||
export * from "./realm-governance"; | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary white space
Will do everything in my final push ! |
Pull Request Description
Related Issue
Fixes #205
Changes Made
This PR adds comprehensive SPL Governance integration to the Solana Agent Kit, enabling programmatic DAO governance:
Added Governance Tools:
/src/tools/realm-governance/governance.ts
/src/tools/realm-governance/council.ts
/src/tools/realm-governance/monitor.ts
Created Six New Governance Actions:
SPL_CREATE_REALM
: Create new DAO realms with community/council configurationSPL_CREATE_PROPOSAL
: Create governance proposals with customizable voting optionsSPL_CAST_VOTE
: Cast votes on proposals with approve/deny/abstain choicesSPL_GET_REALM_INFO
: Retrieve detailed realm configuration and statusSPL_GET_TOKEN_OWNER_RECORD
: Get member voting power and participation recordsSPL_GET_VOTER_HISTORY
: Retrieve complete voting history for participantsVerification
https://explorer.solana.com/tx/5L3HFEKHyB6LMGVvpjArx971M6QL9cdNeeEaqR6nDL64CZaB485NzTZdKab2xUzycvMrjj3AfR5LuoJtYSypaisH?cluster=devnet
Prompt Used
Checklist