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

chore(demo): use react hooks for minting 7702 #1349

Closed
wants to merge 8 commits into from

Conversation

jakehobbs
Copy link
Member

@jakehobbs jakehobbs commented Feb 11, 2025

Pull Request Checklist


PR-Codex overview

This PR focuses on refactoring components and hooks related to account management and transaction handling, specifically transitioning from a LightAccount to a ModularAccountV2 structure. It also consolidates and renames components for better organization.

Detailed summary

  • Deleted several unused components related to the old account structure.
  • Refactored createAccount and getAccount actions to support ModularAccountV2.
  • Updated useMint and useRecurringTransactions hooks to handle new account types.
  • Introduced SmallCardsWrapper to manage different wallet types.
  • Modified rendering logic in PreviewWrapper to use the new SmallCardsWrapper.
  • Enhanced MintCard and TransactionsCard components for better functionality.
  • Adjusted state management and hooks to accommodate the new account structure.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Feb 11, 2025

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

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 0:02am
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 0:02am

Copy link

graphite-app bot commented Feb 11, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@jakehobbs jakehobbs changed the base branch from main to adam/7702-ui-demo February 11, 2025 01:36
@jakehobbs jakehobbs changed the base branch from adam/7702-ui-demo to mav2-ui-demo-default-2 February 11, 2025 01:42
@@ -22,32 +22,36 @@ import { getBundlerClient } from "./getBundlerClient.js";
import { getSigner } from "./getSigner.js";
import { getSignerStatus } from "./getSignerStatus.js";

type OmitSignerTransportChain<T> = Omit<T, "signer" | "transport" | "chain">;
//type OmitSignerTransportChain<T> = Omit<T, "signer" | "transport" | "chain">;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore this for now. was just trying to test why type isn't narrowing somewhere.

@jakehobbs
Copy link
Member Author

jakehobbs commented Feb 13, 2025

closing in favor of #1361

@jakehobbs jakehobbs closed this Feb 13, 2025
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