|
|
@ -5,10 +5,8 @@ def erc_to_signatures(erc): |
|
|
|
|
|
|
|
|
|
|
|
# Final |
|
|
|
# Final |
|
|
|
# https://eips.ethereum.org/EIPS/eip-20 |
|
|
|
# https://eips.ethereum.org/EIPS/eip-20 |
|
|
|
ERC20 = [('name', [], 'string'), |
|
|
|
# name, symbolc, decimals are optionals |
|
|
|
('symbol', [], 'string'), |
|
|
|
ERC20 = [('totalSupply', [], 'uint256'), |
|
|
|
('decimals', [], 'uint8'), |
|
|
|
|
|
|
|
('totalSupply', [], 'uint256'), |
|
|
|
|
|
|
|
('balanceOf', ['address'], 'uint256'), |
|
|
|
('balanceOf', ['address'], 'uint256'), |
|
|
|
('transfer', ['address', 'uint256'], 'bool'), |
|
|
|
('transfer', ['address', 'uint256'], 'bool'), |
|
|
|
('transferFrom', ['address', 'address', 'uint256'], 'bool'), |
|
|
|
('transferFrom', ['address', 'address', 'uint256'], 'bool'), |
|
|
|