CountersImpl.sol 437 B

1234567891011121314151617181920212223
  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. }