* Move Pausable into utils * Move Strings into utils * Move Counters into utils * Move SignedSafeMath into math * Remove ERC1046 * Make ERC20Snapshot.snapshot internal * Move ERC20Snapshot into ERC20 * Add drafts deprecation notice * Remove drafts directory * Add changelog entry * Apply suggestions from code review Co-Authored-By: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
22 lines
404 B
Solidity
22 lines
404 B
Solidity
pragma solidity ^0.6.0;
|
|
|
|
import "../utils/Counters.sol";
|
|
|
|
contract CountersImpl {
|
|
using Counters for Counters.Counter;
|
|
|
|
Counters.Counter private _counter;
|
|
|
|
function current() public view returns (uint256) {
|
|
return _counter.current();
|
|
}
|
|
|
|
function increment() public {
|
|
_counter.increment();
|
|
}
|
|
|
|
function decrement() public {
|
|
_counter.decrement();
|
|
}
|
|
}
|