提供一个解析 Ethereum ABI 并展示的组件 #542
jeasonstudio
started this conversation in
Ideas
Replies: 3 comments
-
上传abi然后我们解析成这样吗 |
Beta Was this translation helpful? Give feedback.
0 replies
-
确实,这个组件我也写过,在 IDE 里面 |
Beta Was this translation helpful? Give feedback.
0 replies
-
具体怎么定位,组件上如何抽象,是否要考虑其它链,细节 @jeasonstudio 看看能不能想一想 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
许多应用都有展示 ABI 为表单或详情的需求(大部分为基础设施应用,比如浏览器、IDE、合约调试应用、交易分析应用等等),我们可以尝试在 AntDesign Web3 中提供出来;
以太坊 abi 的规范是一个类似 JSON Schame 的数组结构,可以考虑用类似 schema form 的方式解析为表单或详情:
规范:https://docs.soliditylang.org/en/v0.8.23/abi-spec.html



一些例子:
Beta Was this translation helpful? Give feedback.
All reactions