unshETHZap - Dependencies

IERC20.sol

This is an interface file defining the ERC20 standard for tokens in Ethereum as per the EIP (Ethereum Improvement Proposal). It includes functions to get total supply of tokens, balance of an account, transfer tokens, set allowance for a spender, and transfer from one account to another using allowance mechanism. It also emits events for Transfer and Approval operations.

IERC20

Interface for ERC20 standard defining common functions and events for tokens in Ethereum.

totalSupply

totalSupply() external view returns (uint256)

Returns the total supply of tokens in existence.

Return Values

  • uint256: Total supply of tokens.

balanceOf

balanceOf(address account) external view returns (uint256)

Returns the balance of tokens for a particular account.

Parameters

  • account address: Address of the account.

Return Values

  • uint256: Balance of tokens of the account.

transfer

transfer(address recipient, uint256 amount) external returns (bool)

Transfers tokens from the caller's account to a recipient.

Parameters

  • recipient address: Address of the recipient.
  • amount uint256: Amount of tokens to transfer.

Return Values

  • bool: Indicates if the operation succeeded.
Previous
Context.sol