# Bundler使用场景研究(Mud)
最近在和PlanckerDao的小伙伴构思我们的bundler服务的一些使用场景,一个小伙伴看到一个关于[Lattice](https://www.youtube.com/watch?v=P9UTCLCz-iA&list=PLNK7oFq6eaEwmfd__prTpoDPHp3uBv3Uw)的视频后,他感觉这个叙事挺不错的,认为做钱包的一个思路是可以专门给这样的onchain game做适配化服务, 目前可以考虑的就是[mud](https://github.com/latticexyz/mud)框架。
#### What is Mud
mud框架是一个链上游戏框架,他们提出了一个autonomous world的叙事,即在链上构建无许可的自主世界。
看样子是将要支持AA,那么必然需要一个bundler服务。然后在视频中有介绍他们开发了另一个项目叫[persona](https://github.com/latticexyz/persona)来支持这个功能。

先粗略看了下mud的源码,没有看到persona的影子,只在.vscode文件里看到一些使用痕迹

然后粗略看了下persona的源码,看到它的核心合约继承了[gsn](https://github.com/opengsn/gsn)的BaseRelayRecipient。


#### What is Gsn?
GSN is a distributed network of transaction relayers that allows decentralized applications (daps) to abstract away the process of paying the transaction gas fees to minimize friction during new user onboarding and to improve the user experience. With GSN, gasless clients can interact with Ethereum contracts without users needing to own or spend ETH for transaction fees.
然后又粗略的看了下gsn的源码,persona用的gsn的BaseRelayRecipient已经改名叫ERC2771Recipient了。


然后看了下这个ERC2771Recipient,这个和4437完全不是一回事,gsn也提供几个不同场景的Paymasters示例,但和我们所做4437不是一个范畴。
看起来有些失望,看persona的github提交记录,应该一年多没更新了,最后更新时间是2022 年6月23日,但是mud最近还有更新记录,mud里也没有persona的影子,会不会在考虑未来将实现4337的AA?
参考资料:
https://www.youtube.com/watch?v=P9UTCLCz-iA&list=PLNK7oFq6eaEwmfd__prTpoDPHp3uBv3Uw
https://www.youtube.com/watch?v=tLGdup5wmck
https://0xparc.org/blog/autonomous-worlds
https://mud.dev/
https://github.com/latticexyz/mud
https://github.com/latticexyz/persona
https://github.com/opengsn/gsn