diff --git a/vyper/builtins/interfaces/IERC20Detailed.vyi b/vyper/builtins/interfaces/IERC20Detailed.vyi index 0be1c6f153..7d20b99fa9 100644 --- a/vyper/builtins/interfaces/IERC20Detailed.vyi +++ b/vyper/builtins/interfaces/IERC20Detailed.vyi @@ -16,3 +16,46 @@ def symbol() -> String[1]: @external def decimals() -> uint8: ... + +from ethereum.ercs import IERC20 + +implements: IERC20 + +# Events +event Transfer: + sender: indexed(address) + receiver: indexed(address) + value: uint256 + +event Approval: + owner: indexed(address) + spender: indexed(address) + value: uint256 + +# Functions +@view +@external +def totalSupply() -> uint256: + ... + +@view +@external +def balanceOf(_owner: address) -> uint256: + ... + +@view +@external +def allowance(_owner: address, _spender: address) -> uint256: + ... + +@external +def transfer(_to: address, _value: uint256) -> bool: + ... + +@external +def transferFrom(_from: address, _to: address, _value: uint256) -> bool: + ... + +@external +def approve(_spender: address, _value: uint256) -> bool: + ...