Skip to content

Dao&nft tools #35

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Dao&nft tools #35

wants to merge 2 commits into from

Conversation

Story91
Copy link

@Story91 Story91 commented Mar 21, 2025

DAO & NFT Tools for Base MCP
This update introduces two powerful toolsets to the Base MCP platform: DAO Governance Tools and NFT Operations Tools. These enhancements enable AI assistants to support users in interacting with DAOs and analyzing/minting NFTs on the Base blockchain, expanding the platform’s capabilities in decentralized governance and digital asset management.

New Features

  1. DAO Governance Tools

✅ create_dao

Purpose: Create a new DAO with customizable parameters.
Input Parameters: name, description, token address, voting period, quorum percentage.
Output: DAO creation transaction details and contract address.
Example Use Case: Setting up a decentralized organization for community governance.

✅ create_dao_proposal

Purpose: Submit a new proposal to an existing DAO.
Input Parameters: DAO address, title, description, actions.
Output: Proposal details, including ID and submission confirmation.
Example Use Case: Proposing a treasury allocation or protocol change.

✅ list_dao_proposals

Purpose: Retrieve all proposals for a specific DAO.
Input Parameters: DAO address, status (optional filtering).
Output: List of proposals with their statuses and details.
Example Use Case: Browsing active governance proposals.

✅ get_dao_proposal_details

Purpose: Get comprehensive details about a specific proposal.
Input Parameters: DAO address, proposal ID.
Output: Detailed proposal information, including voting statistics.
Example Use Case: Reviewing a proposal before voting.

✅ cast_dao_vote

Purpose: Vote on an active DAO proposal.
Input Parameters: DAO address, proposal ID, option index, reason.
Output: Voting confirmation and transaction details.
Example Use Case: Participating in governance decisions.
2. NFT Operations Tools

✅ analyze_nft_collection

Purpose: Analyze an NFT collection for key metrics.
Input Parameters: Contract address, optional chain ID.
Output: Collection metrics, including floor price, volume, and rarity data.
Example Use Case: Evaluating a collection’s performance before buying or selling.

✅ mint_nft

Purpose: Mint a new NFT with specified metadata.
Input Parameters: Name, description, image URL, attributes, recipient address.
Output: Minting transaction details and NFT metadata.
Example Use Case: Creating a new digital asset with custom properties.
Technical Implementation
DAO Integration
Uses standardized governor contract ABIs.
Implements validation for proposal creation and voting.
Supports various governance models and voting mechanisms.
NFT Implementation
Supports the ERC-721 standard for NFT operations.
Handles metadata for NFT analysis and creation.
Provides robust collection metrics retrieval.
Security Features
Address format verification for all blockchain interactions.
Transaction simulation before execution.
Comprehensive error handling for invalid inputs.
Data validation using Zod schemas.

Testing :
All features have been tested through:
✅ TypeScript compilation verification with no errors.
✅ Manual testing with example inputs.
✅ Integration testing within the Base MCP framework.
✅ Error handling validation for edge cases.
✅ Documentation examples verification.

Usage Examples
Comprehensive examples are included in the updated documentation, demonstrating how to:
🔹 Create and manage DAOs.
🔹 Submit and track proposals.
🔹 Vote on governance decisions.
🔹 Analyze NFT collections.
🔹 Mint new NFTs with custom properties.

These enhancements make Base MCP a more powerful platform for decentralized governance and NFT management, providing users with essential tools for interacting with the Base blockchain ecosystem. 🚀
Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • Documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Screenshots (if appropriate):

Projekt.bez.nazwy.4.mp4

Zrzut ekranu 2025-03-21 184325
Zrzut ekranu 2025-03-21 184334
Zrzut ekranu 2025-03-21 184349
Zrzut ekranu 2025-03-21 184358

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