Commit cd6f5299 by Nicolás Venturo

Merge branch 'master' into release-v3.0.0

parents 21ceabc7 c4e5daff
...@@ -28,7 +28,7 @@ import "../GSN/Context.sol"; ...@@ -28,7 +28,7 @@ import "../GSN/Context.sol";
* *
* Roles can be granted and revoked dynamically via the {grantRole} and * Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only * {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRoke}. * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
* *
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other * that only accounts with this role will be able to grant or revoke other
......
...@@ -10,7 +10,7 @@ import "../../utils/Address.sol"; ...@@ -10,7 +10,7 @@ import "../../utils/Address.sol";
* *
* This implementation is agnostic to the way tokens are created. This means * This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}. * that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}. * For a generic mechanism see {ERC20MinterPauser}.
* *
* TIP: For a detailed writeup see our guide * TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
......
pragma solidity ^0.6.0; pragma solidity ^0.6.0;
/** /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include * @dev Interface of the ERC20 standard as defined in the EIP.
* the optional functions; to access them see {ERC20Detailed}.
*/ */
interface IERC20 { interface IERC20 {
/** /**
......
...@@ -97,7 +97,7 @@ contract ERC777 is Context, IERC777, IERC20 { ...@@ -97,7 +97,7 @@ contract ERC777 is Context, IERC777, IERC20 {
} }
/** /**
* @dev See {ERC20Detailed-decimals}. * @dev See {ERC20-decimals}.
* *
* Always returns 18, as per the * Always returns 18, as per the
* [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility). * [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility).
......
...@@ -13,20 +13,19 @@ import "../GSN/Context.sol"; ...@@ -13,20 +13,19 @@ import "../GSN/Context.sol";
*/ */
contract Pausable is Context { contract Pausable is Context {
/** /**
* @dev Emitted when the pause is triggered by a pauser (`account`). * @dev Emitted when the pause is triggered by `account`.
*/ */
event Paused(address account); event Paused(address account);
/** /**
* @dev Emitted when the pause is lifted by a pauser (`account`). * @dev Emitted when the pause is lifted by `account`.
*/ */
event Unpaused(address account); event Unpaused(address account);
bool private _paused; bool private _paused;
/** /**
* @dev Initializes the contract in unpaused state. Assigns the Pauser role * @dev Initializes the contract in unpaused state.
* to the deployer.
*/ */
constructor () internal { constructor () internal {
_paused = false; _paused = false;
...@@ -56,7 +55,7 @@ contract Pausable is Context { ...@@ -56,7 +55,7 @@ contract Pausable is Context {
} }
/** /**
* @dev Called by a pauser to pause, triggers stopped state. * @dev Triggers stopped state.
*/ */
function _pause() internal virtual whenNotPaused { function _pause() internal virtual whenNotPaused {
_paused = true; _paused = true;
...@@ -64,7 +63,7 @@ contract Pausable is Context { ...@@ -64,7 +63,7 @@ contract Pausable is Context {
} }
/** /**
* @dev Called by a pauser to unpause, returns to normal state. * @dev Returns to normal state.
*/ */
function _unpause() internal virtual whenPaused { function _unpause() internal virtual whenPaused {
_paused = false; _paused = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment