BosonToken Token implementation.
uint256 tokenPrice_
address owner
address spender
uint256 value
address previousOwner
address newOwner
address from
address to
uint256 value
The price of a token in wei (1 ETH = 10^18 wei)
uint256 _
See {IERC20-allowance}.
address owner
address spender
uint256 _
See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.
address spender
uint256 amount
bool _
See {IERC20-balanceOf}.
address account
uint256 _
Compute the price of a given amount of tokens Arguments: - amount: the amount
of token to be quoted in base units (times the token decimals)
uint256 amount
uint256 requestedPrice
Credit the call account with the given amount of tokens, assuming that the
caller is paying the price requested for this amount
uint256 amount
Returns the number of decimals used to get its user representation. For
example, if `decimals` equals `2`, a balance of `505` tokens should be
displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a
value of 18, imitating the relationship between Ether and Wei. This is the
value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information
is only used for _display_ purposes: it in no way affects any of the
arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-
transfer}.
uint8 _
Atomically decreases the allowance granted to `spender` by the caller. This
is an alternative to {approve} that can be used as a mitigation for problems
described in {IERC20-approve}. Emits an {Approval} event indicating the
updated allowance. Requirements: - `spender` cannot be the zero address. -
`spender` must have allowance for the caller of at least `subtractedValue`.
address spender
uint256 subtractedValue
bool _
Atomically increases the allowance granted to `spender` by the caller. This
is an alternative to {approve} that can be used as a mitigation for problems
described in {IERC20-approve}. Emits an {Approval} event indicating the
updated allowance. Requirements: - `spender` cannot be the zero address.
address spender
uint256 addedValue
bool _
Returns the name of the token.
string _
Returns the address of the current owner.
address _
Leaves the contract without owner. It will not be possible to call
`onlyOwner` functions anymore. Can only be called by the current owner. NOTE:
Renouncing ownership will leave the contract without an owner, thereby
removing any functionality that is only available to the owner.
Resell the given amount of token
uint256 amount
Returns the symbol of the token, usually a shorter version of the name.
string _
See {IERC20-totalSupply}.
uint256 _
See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero
address. - the caller must have a balance of at least `amount`.
address recipient
uint256 amount
bool _
See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated
allowance. This is not required by the EIP. See the note at the beginning of
{ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address.
sender
must have a balance of at leastamount
. - the caller must have allowance forsender
's tokens of at leastamount
.
address sender
address recipient
uint256 amount
bool _
Transfers ownership of the contract to a new account (`newOwner`). Can only
be called by the current owner.
address newOwner
built with hardhat-docgen