etherwallet icon indicating copy to clipboard operation
etherwallet copied to clipboard

Automatic metadata retrieval

Open chriseth opened this issue 9 years ago • 4 comments

Solidity will soon add a "metadata hash" to the bytecode of deployed contracts. This is a swarm hash of a json file that includes the ABI and NatSpec information, among others. MyEtherWallet could try to retrieve that file (either from its own swarm node or via swarm-gateways.net) at the point a user wants to interact with a contract and use the ABI information to automatically generate a generic contract interface. Furthermore, the NatSpec information can be displayed when a function is about to be called to inform the user about the effects of that transaction (or what the developer claims that the effect will be).

Even if the user only wants to send ether, the NatSpec information associated with the fallback function could be retrieved and displayed.

More information: https://github.com/ethereum/solidity/pull/1386/files#diff-55237a659404c779012062f2c78ea50dR236

Related to: https://github.com/kvhnuke/etherwallet/issues/240

chriseth avatar Nov 25 '16 10:11 chriseth

This + prefilling contract ABI given contract address from manually curated list (similar to common tokens) will be next version.

tayvano avatar Jan 09 '17 20:01 tayvano

  • remove validation from output fields

tayvano avatar Jan 09 '17 20:01 tayvano

  • from etherscan please https://etherscan.io/apis#contracts

tayvano avatar Mar 01 '17 11:03 tayvano

Give a try to https://conteract.io for that purpose. Pre-initialization of functions with pre-filled values. It's really makes it easy to share functions with noobs with pre-determined arguments.

For example, this link - https://conteract.io/c/86198dcd06?function=getAddr&AddrName=owner - will automatically init the getAddr function with "owner" as an argument of the function which is defined as AddrName.

Sowmayjain avatar Jun 19 '18 12:06 Sowmayjain