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

Implement Buying and Selling of Unsparked AI Agent Tokens #49

Merged

Conversation

bernardhistorillo
Copy link
Contributor

@bernardhistorillo bernardhistorillo commented Feb 4, 2025

This PR implements the buying and selling functionality for Unsparked AI Agent tokens, including necessary approvals, transaction execution, and status tracking. It also includes improvements in fetching updated data and transaction visibility.

Features Implemented

Buying Unsparked AI Agent Tokens

  • SRK Token Approvals for:
  1. UnsparkingAIContract
  2. Factory Contract
  3. Pair Contract
  • Buying Transaction execution

Selling Unsparked AI Agent Tokens

  • Unsparked Token Approvals for:
  1. UnsparkingAIContract
  2. Factory Contract
  3. Pair Contract

Selling Transaction execution

Transaction Status Dialog

  • Implemented a status display dialog to show real-time updates for each transaction step, including:
  • Approval Process (SRK or Unsparked tokens)
  • Buying Transaction
  • Selling Transaction

Fixes & Improvements

  • Fixed Data Fetching Issue

Replaced useReadContract with readContract to fetch updated data upon swap submission.

  • Updated Token Image Placeholder
    Improved default placeholder image for tokens.

  • Transaction Viewing
    Added functionality to view transaction details after a successful buy or sell operation.

Closes #9

image

@bernardhistorillo bernardhistorillo linked an issue Feb 4, 2025 that may be closed by this pull request
4 tasks
Copy link

vercel bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sparkagent-launchpad ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 2:55pm

@harveyjavier harveyjavier requested a review from a team February 4, 2025 14:38
@harveyjavier harveyjavier added enhancement New feature or request testnet labels Feb 4, 2025
@harveyjavier harveyjavier added this to the 1.2 milestone Feb 4, 2025
@harveyjavier harveyjavier merged commit c71d94d into develop Feb 4, 2025
2 checks passed
@harveyjavier harveyjavier deleted the implement-buying-and-selling-of-unsparked-tokenss branch February 4, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testnet
Projects
Development

Successfully merging this pull request may close these issues.

Implement Buying and Selling of Unsparked AI Agent tokens
2 participants