Idea and Prototype for an Intent-based Oracle Extending ERC-4337

Welcome to the forums. Definitely not overstepping. Always nice to see people bringing original ideas up for debate. It’s an interesting idea for sure. There’s definitely a lot of room for improvements to the AA-stack with 4337. I have some questions, several of which may be answered with more implementation details.

  1. What does the workflow for a UserOp express an intent to have a DataRequestOp filled?

  2. How does the UserOp ensure that the DataRequestOp is filled within the same bundled ERC-4337 transaction?

  3. How can the UserOp ensure that the DataRequestOp is filled by a trusted party or that the data is itself trustworthy?

  4. Can a second UserOp “piggy-back” off of the data provided by another UserOp requesting the same data? (I.E two UserOps wanting the same price feed information)?

  5. What’s the benefit of adding the complexity of an entirely separate User Op instead of using an existing pull-based oracle and attaching it as data to a user-op (e.g. chainlink data streams)