Implementing a new provider for Account Abstraction #2108
Replies: 1 comment 2 replies
-
The provider is very much designed to be sub-classed and should be quite easy to do. This would likely serve your purposes well. :) For a better example of creating an ancillary package, look at ancillary-exchain which uses a custom Provider. You should only modify the files located in the Does that make sense? :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm a dev on the small team implementing the Account Abstraction plugin at Nethermind. I'm interested in extending ethers to add a function called
sendUserOperation
that takes some params and sends them to nodes (only nodes running the Account Abstraction plugin will be able to interpret this information, but we leave that to the end user for now).It seems like one potential way of doing this is to create a new provider, perhaps something like AccountAbstractionProvider and simply clone the send method and adjust it's parameters for our needs. Are there other ways that you guys think might be better?
Aside from that, I've never actually extended a library before, and looking at the /packages/providers directory (where I presume we will implement the new provider) I'm seeing that there are 3 folders, each with some files for each respective provider that has already been implemented. What are these three folders? What are the differences between them? Where should I implement what I've described above?
Please let me know if any additional information can help you, help me, as you might be able to tell, this is my first discussion post. Thank you in advance, you're all GOATs.
Also, if anyone is interested, here is the Account Abstraction specification: https://hackmd.io/I5QJwZwkQKubm7HuiTBIug?view
Beta Was this translation helpful? Give feedback.
All reactions