telosnetwork / teloscan

Telos EVM block explorer for viewing blocks, transactions, contracts, staking, and more
https://teloscan.io
Apache License 2.0
22 stars 25 forks source link

Repair Default View on Input Viewer Component #762

Open Viterbo opened 6 months ago

Viterbo commented 6 months ago

Input Data Field Specification

Views

1. Default View

For Unverified Contracts

For Verified Contracts

Format:

Function: name(parameters)

MethodID: 
[0]:
data for parameter 1
[1]: 
data for parameter 2
etc..

Example:

Function: transfer(address to,uint256 value)
MethodID: 0xa9059cbb
[0]:  00000000000000000000000077af6811daf4f872a5367dda0d0892eaaaa2e75d
[1]:  000000000000000000000000000000000000000000000000000000003d227826

2. UTF-8 View

3. Original View

4. Decoded View

Examples

Unverified Contract

https://etherscan.io/tx/0xdd6ae4bdd20d66319e94cbd4cfaa6ac76b68112fde632d0eada47ce3533fa6fc

Verified Contract

https://etherscan.io/tx/0xfb8d9e77023475c35ae1d135f48958c6ad7f0840090f65079a8c31311451c168

Additional Notes

pmjanus commented 4 months ago

Suggestion to modify this issue to:

  1. Repair the default view
  2. Change original view name to Raw
  3. Group the view change in a select with text View input as: and options:

    • Default
    • Raw
    • Decoded

    http://localhost:8080/tx/0xd1267832099c93a38473a2d7c069ba1fb63ff4310cde8bfe033d0816efe237d2

    https://etherscan.io/tx/0xef032c15ccd8458878869d481b96527f70945154d958406876a78b5fadbbff02