pocketh icon indicating copy to clipboard operation
pocketh copied to clipboard

Feature Request: Take Abi and create class methods

Open crazyrabbitLTC opened this issue 6 years ago • 1 comments

Here's a feature request:

It would be really cool if we could give pocketh an ABI and it would auto-generate a class where the methods are the smart contract functions. So for example:

let abi = erc20ABI; let token = new ERC20(abi, account, web3provider, defaultGas);

token.mint() token.transfer() token.burn()

Maybe something like that? Just an Idea!

crazyrabbitLTC avatar May 11 '19 01:05 crazyrabbitLTC

Hey @crazyrabbitLTC! Not sure I follow... Where would erc20ABI come from and what would it be?

eternauta1337 avatar May 11 '19 16:05 eternauta1337