Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repair Default View on Input Viewer Component #762

Open
Viterbo opened this issue May 28, 2024 · 1 comment
Open

Repair Default View on Input Viewer Component #762

Viterbo opened this issue May 28, 2024 · 1 comment
Assignees

Comments

@Viterbo
Copy link
Collaborator

Viterbo commented May 28, 2024

Input Data Field Specification

Views

1. Default View

For Unverified Contracts

  • Same as Original view
  • Description: Binary data used for input in the transaction if it was a message call or contract initialization if it was a contract creation.
  • Example data:
0xe6b53cfd000000000000000000000000a9048585166f4f7c4589ade19567bb538035ed36fffffffffffffffffffffffffffffffffffffffffffffffffffffffed83285b928800000000000000000000048da0965ab2d2cbf1c17c09cfb5cbe67ad5b140600000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000427000424f497df75e26b997777abdc7847aad73fb38e27d8cd624ee567bf29b7ad767ca766b0cc150000000000000000000000004c32056c40b454f42cb8813e013a2096b70ed6ae00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000010d2a0410f8ec1f2ac000000000000000000000000000000000000000000000000000000001275747ee4a000000000000000000000000000000000066b224f6000000000000000000006793c966c2948dd534289ff1ee6561b40b507b1800bf9fc96812658808f0cd6c9d4a95e363cbbb9885d9115eaa9fc1454d574b6cad6280f8cd926f2ec2b2920000000000000000000000000000000000000000000000010d2a0410f8ec1f2ac088000223000014000000000000000000000000000000000000000001279d284000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000024b48da0965ab2d2cbf1c17c09cfb5cbe67ad5b14060000020300000172000001720000005e0000005e0000002f0000000000000000fb2809a5314473e1165f6b58018e20ed8f07b8400016550000133066b224360000b4003d750019b800900016550024fb2809a5314473e1165f6b58018e20ed8f07b8400016550000133066b224360000b4003d750019b8009000165500246b175474e89094c44da98b954eedeac495271d0f0000000000000000000000004c32056c40b454f42cb8813e013a2096b70ed6ae000000000000000000000000111111125421ca6dc452d289314280a0f8842a6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066b375880000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001c8162ae6c5e1b082d0061af06b89716bf4d9d4ef90bad2449095fe08e27964af27628768f52bdeb832121fd351a2f105f265b56891a2e468d67a23729ec6f24c7fb2809a5314473e1165f6b58018e20ed8f07b84066b2241eb09498030ae3416b66dc0000db05a6a504f04d92e79d0000339fb574bdc56763f9950000d18bd45f0b94f54a968f0000d61b892b2ad6249011850000f7f4f96b98e102b56b0400000000000000000000000000006de5e0e428ac771d77b5000006455390207c1d485be90000ade19567bb538035ed36000050a9048585166f4f7c4589ade19567bb538035ed3600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

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

  • Displays unformatted data as UTF-8

3. Original View

  • Displays original unformatted data

4. Decoded View

  • Only available for verified contracts
  • Not available for unverified contracts
  • Displays a table with columns:
    • #: Parameter number
    • Name: Parameter name
    • Type: Data type
    • Data: Parameter data

Examples

Unverified Contract

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

Verified Contract

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

Additional Notes

  • Buttons should be implemented to allow users to switch between different views.
@Viterbo Viterbo self-assigned this May 28, 2024
@pmjanus pmjanus changed the title Repare Default View on Input Viewer Component Repair Default View on Input Viewer Component Jul 22, 2024
@pmjanus
Copy link
Contributor

pmjanus commented Jul 22, 2024

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

@Viterbo Viterbo added 🔬 Needs Refinement Further information is required and removed 🔬 Needs Refinement Further information is required labels Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants