AlphaWallet / AlphaWallet/alpha-wallet-android

Show Transaction name for TokenScript defined transactions in transactions history view

Ouverte
#1,367 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
646
Forks
579
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.