Overview ERC721
Total Supply:
2 PMS

Holders:
2
Profile Summary
Blockchain:
Fuji (43113)

Contract Source Code Verified (Partial Match)
Contract Name:
Shovel

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Created At:
Mon, 21 Mar 2022 13:56:08 GMT
Shovel.sol
Shovel.sol
Shovel.sol


Contract ABI
[
  {
    "inputs": [],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "owner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "approved",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "Approval",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "owner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "operator",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "bool",
        "name": "approved",
        "type": "bool"
      }
    ],
    "name": "ApprovalForAll",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "Transfer",
    "type": "event"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "approve",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "owner",
        "type": "address"
      }
    ],
    "name": "balanceOf",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "getApproved",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "owner",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "operator",
        "type": "address"
      }
    ],
    "name": "isApprovedForAll",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "account",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "mint",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "minter",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "name",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "ownerOf",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newMinter",
        "type": "address"
      }
    ],
    "name": "passMinterRole",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "premint",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "safeTransferFrom",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      },
      {
        "internalType": "bytes",
        "name": "_data",
        "type": "bytes"
      }
    ],
    "name": "safeTransferFrom",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "operator",
        "type": "address"
      },
      {
        "internalType": "bool",
        "name": "approved",
        "type": "bool"
      }
    ],
    "name": "setApprovalForAll",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes4",
        "name": "interfaceId",
        "type": "bytes4"
      }
    ],
    "name": "supportsInterface",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "symbol",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "tokenURI",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "totalSupply",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "tokenId",
        "type": "uint256"
      }
    ],
    "name": "transferFrom",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]


Contract Creation Code
60806040523480156200001157600080fd5b506040805180820182526011815270141a5e195b08135a5b994814da1bdd995b607a1b602080830191825283518085019094526003845262504d5360e81b908401528151919291620000669160009162000107565b5080516200007c90600190602084019062000107565b5050506200009962000093620000b160201b60201c565b620000b5565b600880546001600160a01b03191633179055620001ea565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011590620001ad565b90600052602060002090601f01602090048101928262000139576000855562000184565b82601f106200015457805160ff191683800117855562000184565b8280016001018555821562000184579182015b828111156200018457825182559160200191906001019062000167565b506200019292915062000196565b5090565b5b8082111562000192576000815560010162000197565b600181811c90821680620001c257607f821691505b60208210811415620001e457634e487b7160e01b600052602260045260246000fd5b50919050565b61178d80620001fa6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80636352211e116100b8578063a22cb4651161007c578063a22cb4651461026b578063b88d4fde1461027e578063c87b56dd14610291578063d7fc5b15146102a4578063e985e9c5146102b7578063f2fde38b146102f357600080fd5b80636352211e1461022457806370a0823114610237578063715018a61461024a5780638da5cb5b1461025257806395d89b411461026357600080fd5b806318160ddd116100ff57806318160ddd146101cc57806323b872dd146101e357806340c10f19146101f657806342842e0e1461020957806348a1e66b1461021c57600080fd5b806301ffc9a71461013c57806306fdde03146101645780630754617214610179578063081812fc146101a4578063095ea7b3146101b7575b600080fd5b61014f61014a3660046114a2565b610306565b60405190151581526020015b60405180910390f35b61016c610358565b60405161015b919061157f565b60085461018c906001600160a01b031681565b6040516001600160a01b03909116815260200161015b565b61018c6101b23660046114dc565b6103ea565b6101ca6101c5366004611478565b610484565b005b6101d560095481565b60405190815260200161015b565b6101ca6101f1366004611324565b61059a565b6101ca610204366004611478565b6105cb565b6101ca610217366004611324565b610763565b61014f61077e565b61018c6102323660046114dc565b610852565b6101d56102453660046112cf565b6108c9565b6101ca610950565b6007546001600160a01b031661018c565b61016c610986565b6101ca61027936600461143c565b610995565b6101ca61028c366004611360565b6109a4565b61016c61029f3660046114dc565b6109dc565b61014f6102b23660046112cf565b610a0c565b61014f6102c53660046112f1565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6101ca6103013660046112cf565b610aac565b60006001600160e01b031982166380ac58cd60e01b148061033757506001600160e01b03198216635b5e139f60e01b145b8061035257506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461036790611699565b80601f016020809104026020016040519081016040528092919081815260200182805461039390611699565b80156103e05780601f106103b5576101008083540402835291602001916103e0565b820191906000526020600020905b8154815290600101906020018083116103c357829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166104685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061048f82610852565b9050806001600160a01b0316836001600160a01b031614156104fd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161045f565b336001600160a01b0382161480610519575061051981336102c5565b61058b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161045f565b6105958383610b47565b505050565b6105a43382610bb5565b6105c05760405162461bcd60e51b815260040161045f90611619565b610595838383610cac565b806001146106275760405162461bcd60e51b815260206004820152602360248201527f596f752063616e206f6e6c7920636f6c6c656374206f6e65204e46542053686f6044820152621d995b60ea1b606482015260840161045f565b6008546001600160a01b0316331461067a5760405162461bcd60e51b81526020600482015260166024820152752cb7ba9030b932903737ba103a34329036b4b73a32b960511b604482015260640161045f565b61041a60095411156106ce5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920323030302073686f76656c732063616e206265206d696e74656400604482015260640161045f565b60016106d9836108c9565b106107305760405162461bcd60e51b815260206004820152602160248201527f41204d696e652063616e206f6e6c7920686176652031206e66742053686f76656044820152601b60fa1b606482015260840161045f565b60006009546001610741919061166a565b905061074d8382610f06565b60095461075b90600161166a565b600955505050565b610595838383604051806020016040528060008152506109a4565b6008546000906001600160a01b031633146107ec5760405162461bcd60e51b815260206004820152602860248201527f596f7520617265206e6f74206d696e7465722120596f7520617265206e6f7420604482015267656e61626c65642160c01b606482015260840161045f565b60005b603281101561084a5760006009546001610809919061166a565b90506108266108206007546001600160a01b031690565b82610f06565b60095461083490600161166a565b6009555080610842816116d4565b9150506107ef565b506001905090565b6000818152600360205260408120546001600160a01b0316806103525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161045f565b60006001600160a01b0382166109345760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161045f565b506001600160a01b031660009081526004602052604090205490565b6007546001600160a01b0316331461097a5760405162461bcd60e51b815260040161045f906115e4565b6109846000611057565b565b60606001805461036790611699565b6109a03383836110a9565b5050565b6109ae3383610bb5565b6109ca5760405162461bcd60e51b815260040161045f90611619565b6109d684848484611178565b50505050565b60606107d08211156109ed57600080fd5b6040518060600160405280602681526020016117326026913992915050565b6007546000906001600160a01b03163314610a395760405162461bcd60e51b815260040161045f906115e4565b6007546001600160a01b03163314610a885760405162461bcd60e51b81526020600482015260126024820152712cb7ba9030b932903737ba1036b4b73a32b960711b604482015260640161045f565b50600880546001600160a01b0319166001600160a01b03831617905560015b919050565b6007546001600160a01b03163314610ad65760405162461bcd60e51b815260040161045f906115e4565b6001600160a01b038116610b3b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161045f565b610b4481611057565b50565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b7c82610852565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316610c2e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161045f565b6000610c3983610852565b9050806001600160a01b0316846001600160a01b03161480610c745750836001600160a01b0316610c69846103ea565b6001600160a01b0316145b80610ca457506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610cbf82610852565b6001600160a01b031614610d235760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161045f565b6001600160a01b038216610d855760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161045f565b6001600160a01b03831660009081526002602052604081205490610dac6203f48042611682565b9050808210610e315760405162461bcd60e51b8152602060048201526044602482018190527f596f752063616e207472616e7366657220746869732054687265652044617973908201527f20616674657220796f75206d696e746564206f72206c617374207472616e7366606482015263195c995960e21b608482015260a40161045f565b610e3c600084610b47565b6001600160a01b0385166000908152600460205260408120805460019290610e65908490611682565b90915550506001600160a01b0384166000908152600460205260408120805460019290610e9390849061166a565b9091555050600083815260036020908152604080832080546001600160a01b0319166001600160a01b03898116918217909255808552600290935281842042905590518693918916917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a45050505050565b6001600160a01b038216610f5c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161045f565b6000818152600360205260409020546001600160a01b031615610fc15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161045f565b6001600160a01b0382166000908152600460205260408120805460019290610fea90849061166a565b9091555050600081815260036020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558084526002909252808320429055518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561110b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161045f565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611183848484610cac565b61118f848484846111ab565b6109d65760405162461bcd60e51b815260040161045f90611592565b60006001600160a01b0384163b156112ad57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906111ef903390899088908890600401611542565b602060405180830381600087803b15801561120957600080fd5b505af1925050508015611239575060408051601f3d908101601f19168201909252611236918101906114bf565b60015b611293573d808015611267576040519150601f19603f3d011682016040523d82523d6000602084013e61126c565b606091505b50805161128b5760405162461bcd60e51b815260040161045f90611592565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ca4565b506001949350505050565b80356001600160a01b0381168114610aa757600080fd5b6000602082840312156112e157600080fd5b6112ea826112b8565b9392505050565b6000806040838503121561130457600080fd5b61130d836112b8565b915061131b602084016112b8565b90509250929050565b60008060006060848603121561133957600080fd5b611342846112b8565b9250611350602085016112b8565b9150604084013590509250925092565b6000806000806080858703121561137657600080fd5b61137f856112b8565b935061138d602086016112b8565b925060408501359150606085013567ffffffffffffffff808211156113b157600080fd5b818701915087601f8301126113c557600080fd5b8135818111156113d7576113d7611705565b604051601f8201601f19908116603f011681019083821181831017156113ff576113ff611705565b816040528281528a602084870101111561141857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561144f57600080fd5b611458836112b8565b91506020830135801515811461146d57600080fd5b809150509250929050565b6000806040838503121561148b57600080fd5b611494836112b8565b946020939093013593505050565b6000602082840312156114b457600080fd5b81356112ea8161171b565b6000602082840312156114d157600080fd5b81516112ea8161171b565b6000602082840312156114ee57600080fd5b5035919050565b6000815180845260005b8181101561151b576020818501810151868301820152016114ff565b8181111561152d576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611575908301846114f5565b9695505050505050565b6020815260006112ea60208301846114f5565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561167d5761167d6116ef565b500190565b600082821015611694576116946116ef565b500390565b600181811c908216806116ad57607f821691505b602082108114156116ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156116e8576116e86116ef565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610b4457600080fdfe68747470733a2f2f706978656c6d696e652e636f6d2f706c61792f6e6674732f73686f76656ca2646970667358221220f56f28187bea8bf6f8efcdd3496e85c83a7af3e86af3c797067b75798f36003164736f6c63430008070033