Skip to content

Commit

Permalink
Add missing reference block dep
Browse files Browse the repository at this point in the history
  • Loading branch information
ScreamingHawk committed Oct 25, 2023
1 parent 8cc9050 commit e915461
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ERCS/erc-5189.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ interface Endorser {
uint256 _maxPriorityFeePerGas
) external view returns (
bool readiness,
BlockDependency memory blockDependency,
Dependency[] memory dependencies
);
}
Expand All @@ -95,6 +96,7 @@ Endorsers SHOULD be registered in the `EndorserRegistry` with a minimum amount o
When the `isOperationReady` method is called, the endorser must return this information:

* **readiness:** when returning`true`, it means the transaction WILL be executed correctly and the bundler WILL be paid the offered gas fees (even if the underlying intent of the operation fails).
* **blockDependency:** maximum values for block values; once the block reaches these values, the `readiness` result MUST be re-evaluated.
* **dependencies:** a comprehensive list of addresses and storage slots that must be monitored; any state change in these dependencies MUST trigger a re-evaluation of the operation's readiness.

The information provided by the endorser helps the mempool operator maintain a pool of "good" AA transactions that behave correctly; it DOES NOT guarantee that such transactions will be able to be executed correctly. Bundlers must always simulate the result of the execution before including a transaction in a block. They can alternatively monitor the dependencies for changes induced by other transactions in the mempool.
Expand Down

0 comments on commit e915461

Please sign in to comment.