ERC721Pausable.sol 683 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. pragma solidity ^0.4.24;
  2. import "./ERC721.sol";
  3. import "../../lifecycle/Pausable.sol";
  4. /**
  5. * @title ERC721 Non-Fungible Pausable token
  6. * @dev ERC721 modified with pausable transfers.
  7. **/
  8. contract ERC721Pausable is ERC721, Pausable {
  9. function approve(
  10. address to,
  11. uint256 tokenId
  12. )
  13. public
  14. whenNotPaused
  15. {
  16. super.approve(to, tokenId);
  17. }
  18. function setApprovalForAll(
  19. address to,
  20. bool approved
  21. )
  22. public
  23. whenNotPaused
  24. {
  25. super.setApprovalForAll(to, approved);
  26. }
  27. function transferFrom(
  28. address from,
  29. address to,
  30. uint256 tokenId
  31. )
  32. public
  33. whenNotPaused
  34. {
  35. super.transferFrom(from, to, tokenId);
  36. }
  37. }