AlphaWallet / AlphaWallet/alpha-wallet-android

Show Transaction name for TokenScript defined transactions in transactions history view

Đang mở
#1,367 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
646
Fork
579
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.