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

feat: add ntf-starter and nft-generator #2283

Closed
wants to merge 4 commits into from

Conversation

Wilbert957
Copy link
Contributor

@Wilbert957 Wilbert957 commented Jan 14, 2025

Relates to

#2282 Implementation of Agent NFT feature for agent data management, ownership, and usage.

Risks

Low, DO NOT affect the original agent startup method.

Background

What does this PR do?

Implements Agent NFT functionality following ERC-7857 standard to:

  1. Store agent data on 0G storage
  2. Manage agent ownership through NFTs
  3. Enable agent transfer, cloning, and authorization features
  4. Add NFT-based agent startup capability

What kind of change is this?

Features (non-breaking change which adds functionality)

  1. New AgentNFTClient implementation
  2. NFT generation and management features
  3. Scripts for NFT operations

Documentation changes needed?

My changes require a change to the project documentation.

Added Agent NFT feature documentation.

Testing

Where should a reviewer start?

  1. Review AgentNFTClient implementation
  2. Check NFT generation flow
  3. Verify agent startup from NFT process

Detailed testing steps

  1. Configure environment variables:
    ZEROG_RPC_URL
    ZEROG_INDEXER_RPC_URL
    ZEROG_PRIVATE_KEY
    ZEROG_AGENT_NFT_CONTRACT_ADDRESS

  2. Generate new NFT:
    execute pnpm generate-nft --dir="./data"

  3. Start agent from NFT:
    execute pnpm start --token="0"

Screenshots

  1. Generate Agent NFT:
Screenshot 2025-01-14 at 18 10 19
  1. Start Agent with Agent NFT:
Screenshot 2025-01-14 at 18 11 22

Before

After

Discord username

References

  1. ERC-7857
  2. 0G-Agent-NFT

@wtfsayo
Copy link
Member

wtfsayo commented Jan 15, 2025

similar to this #2107

can you do similar plugin implementation rather

@wtfsayo
Copy link
Member

wtfsayo commented Jan 15, 2025

closing till updates

@wtfsayo wtfsayo closed this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants