Is there a tool to generate a solidity code from the ABI interface?
const Ballot = [{"constant":false,"inputs":[{"name":"to","type":"address"}],"name":"delegate","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"winningProposal","outputs":[{"name":"winningProposal","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"voter","type":"address"}],"name":"giveRightToVote","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"proposal","type":"uint8"}],"name":"vote","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_numProposals","type":"uint8"}],"payable":false,"type":"constructor"}]
Should result into something like:
contract Ballot {
function Ballot(uint8 _numProposals) {}
function giveRightToVote(address voter) {}
function delegate(address to) {}
function vote(uint8 proposal) {}
function winningProposal() constant returns (uint8 winningProposal) {}
}