Skip to content

Conversation

@YouStillAlive
Copy link
Member

closes #85

@YouStillAlive YouStillAlive requested a review from Copilot October 17, 2025 21:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a new useBatchTransaction hook to support atomic EIP-7702 batch transactions and exports related batch types.

  • Introduces batch-related type definitions (allowed contracts, call/options/result/status, hook return shape).
  • Implements encoding and sending of batch calls with wagmi's useSendCalls and exposes status helpers.
  • Updates index exports to surface the new hook and types.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
src/types/batchTypes.ts Defines type system for batch transactions (calls, options, result, status, hook return).
src/index.ts Re-exports the new hook and associated batch types for library consumers.
src/hooks/useBatchTransaction.ts Implements the batching logic: preparing, encoding, sending, status tracking, and result shaping.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@YouStillAlive YouStillAlive changed the title add useBatchTransaction hook multicall and sendCalls collaboration Oct 22, 2025
@YouStillAlive YouStillAlive linked an issue Oct 22, 2025 that may be closed by this pull request
@YouStillAlive YouStillAlive merged commit edb3464 into master Oct 22, 2025
1 check passed
@YouStillAlive YouStillAlive deleted the issue-85 branch October 22, 2025 11:04
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.

add EIP-5792 support add multicall contract

3 participants