ERC20Facet
Was this helpful?
Was this helpful?
Inherits: IERC20, ERC20Base, Facet
Returns the name of the token.
Returns the symbol of the token.
Returns the decimals places of the token.
Moves an amount of tokens from the caller's account to another account.
Parameters
to
address
The account where the tokens are transferred to.
amount
uint256
The number of tokens transferred.
Returns
<none>
bool
Boolean value indicating whether the operation succeeded.
Sets an amount as the allowance of spender over the caller's tokens.
Parameters
spender
address
The account that is allowed to transfer the tokens.
amount
uint256
The number of tokens that are approved.
Returns
<none>
bool
bool value indicating whether the operation succeeded.
Transferrs an amount of tokens from an account to other using the allowance mechanism.
Amount is deducted from the caller's allowance.
Parameters
from
address
The account where the tokens are transferred from.
to
address
The account where the tokens are transferred to.
amount
uint256
The number of tokens transferred.
Returns
<none>
bool
bool value indicating whether the operation succeeded.
Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner.
This value changes when {approve} or {transferFrom} are called and is zero by default.
Parameters
owner
address
The account that owns the tokens.
spender
address
The account that is allowed to transfer the tokens.
Returns the amount of tokens in existence.
Returns the amount of tokens owned by an account.
Parameters
account
address
The account to get the balance of.