CountersImpl.sol 500 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../utils/Counters.sol";
  4. contract CountersImpl {
  5. using Counters for Counters.Counter;
  6. Counters.Counter private _counter;
  7. function current() public view returns (uint256) {
  8. return _counter.current();
  9. }
  10. function increment() public {
  11. _counter.increment();
  12. }
  13. function decrement() public {
  14. _counter.decrement();
  15. }
  16. function reset() public {
  17. _counter.reset();
  18. }
  19. }