Skip to content

Conversation

@mweinschenk
Copy link
Member

Adds optional payload propagation through all async transaction events plus updated docs for usage.

Copy link
Contributor

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

This PR adds optional payload propagation support to async EVM transaction operations, enabling developers to attach serializable context (like Eloquent models) that flows through all transaction lifecycle events.

Key Changes:

  • Added $payload parameter to sendAsync() method signature in ContractClient interface and implementation
  • Updated all transaction event classes to accept and store an optional $payload parameter
  • Enhanced documentation with usage examples and event reference updates

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Contracts/ContractClient.php Added $payload parameter to sendAsync() interface signature with comprehensive docblock
src/Clients/ContractClientGeneric.php Implemented payload parameter in sendAsync() and passed it to SendTransaction job
src/Jobs/SendTransaction.php Added payload property to constructor and propagated through all event emissions
src/Events/TxQueued.php Added optional $payload parameter to constructor
src/Events/TxBroadcasted.php Added optional $payload parameter to constructor
src/Events/TxReplaced.php Added optional $payload parameter to constructor
src/Events/TxMined.php Added optional $payload parameter to constructor
src/Events/TxFailed.php Added optional $payload parameter to constructor
docs/pages/basic-usage.md Added usage example demonstrating payload attachment with Eloquent model
docs/pages/advanced-events.md Updated event table and listener example to include payload handling
docs/pages/reference.md Updated API reference table and event documentation to reflect payload support

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mweinschenk mweinschenk merged commit 1ae13e8 into main Nov 20, 2025
3 checks passed
@mweinschenk mweinschenk deleted the feat/eventPayload branch November 20, 2025 15:35
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.

2 participants