8000 Put human readable function signatures in the transaction confirmation screen. by pipermerriam · Pull Request #962 · ethereum/mist · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Put human readable function signatures in the transaction confirmation screen. #962

Conversation

pipermerriam
Copy link
Member

#955

What was wrong

When sending a transaction, the user will be better informed if they are able to see more data about the transaction.

How was this improved

Now the function signature is queried against the 4byte.directory api to try and lookup the human readable signature.

Cute animal picture

baby-monkeys-in-clothes-wallpaper-3

@pipermerriam
Copy link
Member Author

screen shot 2016-07-12 at 2 48 13 pm

@pipermerriam pipermerriam changed the title Inititial stab at putting function signature in the interface using a… Put human readable function signatures in the transaction confirmation screen. Jul 12, 2016
@pipermerriam
Copy link
Member Author

I would ❤️ feedback on this. I'm utterly new to this codebase and would like to do things "the right way". Also won't be offended if someone more familiar wants to take this across the finish line at whatever point they feel that is appropriate.

@frozeman
Copy link
Contributor

Im at a conference the next two days, but would surely take a look at the code.. Can you please wait until friday?

@frozeman frozeman self-assigned this Jul 12, 2016
@frozeman
Copy link
Contributor

Code looks good from the first sight, would need to test it though.
We also need to fix the text size in the image, as it is overlapping

@frozeman
Copy link
Contributor

Ideally it would also show not only the function, but the actual values inside the function.

Maybe its better to put this then above the bytes data field e.g.

transferFrom('0x23456789...', 2000)

@hiddentao
Copy link
Contributor

Missing a label.

@luclu
Copy link
Contributor
luclu commented Jul 18, 2016

Ah, my mouse acted weird - having its own will lately.. sorry
@frozeman I didn't unassign you, but I can't assign you again as you are not listed by github..

8000

@evertonfraga
Copy link
Member

I am moving forward with this PR, and @pipermerriam I have a question: Is there a way to get updated versions of the whole dictionary, just like your Gist?

I'm thinking of downloading it on every Mist build.

@pipermerriam
Copy link
Member Author

The easiest thing might be for me to provide you with a script that scrapes
the data from the API into your desired format.

On Thu, Aug 4, 2016, 1:15 PM Everton Fraga notifications@github.com wrote:

I am moving forward with this PR, and @pipermerriam
https://github.com/pipermerriam I have a question: Is there a way to
get updated versions of the whole dictionary, just like your Gist
https://gist.github.com/pipermerriam/79429c2163969ff732d5f2aabaaaf0e5?

I'm thinking of downloading it on every Mist build.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#962 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAyTgsdTJesNcL1lClTV6mVmQyORQ_IAks5qcjpegaJpZM4JKz0U
.

@pipermerriam
Copy link
Member Author
pipermerriam commented Aug 5, 2016

@evertonfraga Here is a python script that demonstrates scraping the API for all signatures. I imagine it should be easy to transform into something node based.

import requests
import json

URL = "https://www.4byte.directory/api/v1/signatures/"


def get_all_signatures():
    page = 1
    while True:
        response = requests.get(URL, {'page': page}, headers={'Content-Type': 'application/json'})

        # if there are no results for the requested page, the API returns a 404
        try:
            response.raise_for_status()
        except requests.exceptions.HTTPError:
            break
        response_data = response.json()
        if response_data['count'] == 0:
            break

        # The api returns a json hash, with the actual signatures in an array under the key 'results'
        for result in response_data['results']:
            yield result
        page += 1


def write_all_signatures():
    with open('signatures.json', 'w') as f:
        signatures = list(get_all_signatures())
        json.dump(signatures, f)


if __name__ == '__main__':
    write_all_signatures()

@evertonfraga evertonfraga added this to the 0.8.3 milestone Aug 29, 2016
@alexvandesande
Copy link

replaced by #1141

@lock
Copy link
lock bot commented Mar 31, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators Mar 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0