Content pfp
Content
@
0 reply
0 recast
2 reactions

xh3b4sd ↑ pfp
xh3b4sd ↑
@xh3b4sd.eth
Does somebody know an implementation for decoding transactions made via account abstraction? There is an entrypoint contract with an handleOps function. The callData is what the user sends. But that callData part is also pushed through some batch execution, and you end up with lists of encoded targets and inputs. Looking for any reference implementation.
1 reply
0 recast
4 reactions

Samuel ツ pfp
Samuel ツ
@samuellhuber.eth
maybe https://github.com/3loop/loop-decoder by @nastya
1 reply
0 recast
1 reaction

xh3b4sd ↑ pfp
xh3b4sd ↑
@xh3b4sd.eth
Thanks for sharing. Doesn't look like this thing has ERC-4337 support.
1 reply
0 recast
1 reaction

Harris pfp
Harris
@harris-
@nastya is it hard to add user op decoding as another detected type? would just need to know the abis for the entrypoint contracts and smart wallets and the format the parameters follow I guess?
1 reply
0 recast
2 reactions

Nastya pfp
Nastya
@nastya
Yeah it should be possible to add, I need to look at AA transactions and check out what decoding means for these types of transactions
1 reply
0 recast
1 reaction

xh3b4sd ↑ pfp
xh3b4sd ↑
@xh3b4sd.eth
I think I have an idea of what needs to be done. My goal here is to write a decoder in Golang. That is why I was looking for reference implementations. What I am not sure about at the moment is the batching process across different AA providers. It looks to me like there are versioned endpoints and the question would be how consistent those function names are.
1 reply
0 recast
0 reaction

Harris pfp
Harris
@harris-
Would definitely depend on your bundler / paymaster from my knowledge of AA, but at the end of the day all the actual onchain interactions would go through the endpoint 0.6 or 0.7 contracts, and those are pretty standardised from what I'm aware. The only other thing would be which smart account and factories the user's are using, though I think that is mostly standardised from a read operation perspective, maybe if there are specific custom functions you're looking for? viem's AA extensions probably have a good list of the ones most people would be using in production today
0 reply
0 recast
1 reaction