AlphaWallet / AlphaWallet/alpha-wallet-android

Show Transaction name for TokenScript defined transactions in transactions history view

オープン
#1,367 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。