Skip to content

feat: add useSendCall and useSendCalls hooks to support call-type transactions in Transaction component#1130

Merged
Zizzamia merged 7 commits intomainfrom
alec/transaction-mig
Aug 21, 2024
Merged

feat: add useSendCall and useSendCalls hooks to support call-type transactions in Transaction component#1130
Zizzamia merged 7 commits intomainfrom
alec/transaction-mig

Conversation

@0xAlec
Copy link
Contributor

@0xAlec 0xAlec commented Aug 21, 2024

What changed? Why?

  • scaffold useSendCall and useSendCalls in the same format as useWriteContract and useWriteContracts to support calldata in the Transaction component

Notes to reviewers

How has it been tested?
N/A

@vercel
Copy link

vercel bot commented Aug 21, 2024

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

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:34pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:34pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:34pm

@0xAlec 0xAlec changed the title useSendCall and useSendCalls feat: useSendCall and useSendCalls Aug 21, 2024
"@coinbase/onchainkit": patch
---

**feat**: `useSendCall` and `useSendCalls` by @0xAlec #1130
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make sure we are a bit more verbose in what those function do.

The goal of a CHANGELOG is to inform and help the developer understand what's going on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in new diff!

setLifeCycleStatus,
transactionHashList,
}: UseSendCallParams) {
const { status, sendTransactionAsync, data } = useSendCallWagmi({
Copy link
Contributor

Choose a reason for hiding this comment

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

what are your thoughts on renaming this to be sendCallAsync instead of sendTransactionAsync for readability sake

Copy link
Contributor

Choose a reason for hiding this comment

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

oh yeah, great point

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call! added the alias

@Zizzamia Zizzamia merged commit 07c5af6 into main Aug 21, 2024
@Zizzamia Zizzamia deleted the alec/transaction-mig branch August 21, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants