AlphaWallet / AlphaWallet/alpha-wallet-android

Show Transaction name for TokenScript defined transactions in transactions history view

未关闭
#1,367 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
646
派生
579
PR 合并指标
30 天内没有已合并 PR

描述

TokenScript allows you to define your own contract transactions.

Currently these will appear as default 'Send' transactions usually with zero amount.

Inside the TS file you can see transactions defined as such:

```







```
There is a function within the TokenScript parser to produce the ethereum function definition from this description. From there, the function prototype string could be produced in this case

```giveBirth(uint256)```

Which can be hashed using ```TransactionDecoder.buildMethodId``` to get the ten digit hex signature.

When a transaction is expanded in TransactionHolder, the leading 10 bytes of the transaction can be checked against these hashes from the TokenScripts, and if we get a match we can display the called function name.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。