Overview ERC721
Total Supply:
420 Rockd

Holders:
330
Profile Summary
Blockchain:
Ethereum (1)

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

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Created At:
Sat, 07 Oct 2023 21:40:11 GMT
Rockd.sol
Rockd.sol
Rockd.sol


Contract ABI
[
  {
    "inputs": [],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "inputs": [],
    "name": "ApprovalCallerNotOwnerNorApproved",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "ApprovalQueryForNonexistentToken",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "ApproveToCaller",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "BalanceQueryForZeroAddress",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "MintERC2309QuantityExceedsLimit",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "MintToZeroAddress",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "MintZeroQuantity",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "OwnerQueryForNonexistentToken",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "OwnershipNotInitializedForExtraData",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "TransferCallerNotOwnerNorApproved",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "TransferFromIncorrectOwner",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "TransferToNonERC721ReceiverImplementer",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "TransferToZeroAddress",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "URIQueryForNonexistentToken",
    "type": "error"
  },
  {
    "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": "uint256",
        "name": "fromTokenId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "uint256",
        "name": "toTokenId",
        "type": "uint256"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "from",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "to",
        "type": "address"
      }
    ],
    "name": "ConsecutiveTransfer",
    "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": [],
    "name": "COST",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "MAX_FREE",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "MAX_FREE_PER_WALLET",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "MAX_SUPPLY",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "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": [],
    "name": "freeMint",
    "outputs": [],
    "stateMutability": "nonpayable",
    "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": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "mint",
    "outputs": [],
    "stateMutability": "payable",
    "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": "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": "uint256",
        "name": "_COST",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "_MAX_FREE",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "_MAX_FREE_PER_WALLET",
        "type": "uint256"
      }
    ],
    "name": "setConfig",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "string",
        "name": "_base",
        "type": "string"
      }
    ],
    "name": "setData",
    "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": [],
    "name": "withdraw",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]


Contract Creation Code
6001805566038d7ea4c6800060025560e0604052602e6080818152906200149e60a03960039062000031908262000100565b505f60045561015960095534801562000048575f80fd5b505f80546001600160a01b03191633179055620001c8565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200008957607f821691505b602082108103620000a857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620000fb575f81815260208120601f850160051c81016020861015620000d65750805b601f850160051c820191505b81811015620000f757828155600101620000e2565b5050505b505050565b81516001600160401b038111156200011c576200011c62000060565b62000134816200012d845462000074565b84620000ae565b602080601f8311600181146200016a575f8415620001525750858301515b5f19600386901b1c1916600185901b178555620000f7565b5f85815260208120601f198616915b828110156200019a5788860151825594840194600190910190840162000179565b5085821015620001b857878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6112c880620001d65f395ff3fe608060405260043610610147575f3560e01c80636352211e116100b3578063a22cb4651161006d578063a22cb46514610366578063b88d4fde14610385578063bf8fbbd2146103a4578063c87b56dd146103b9578063e985e9c5146103d8578063ed6661c2146103f7575f80fd5b80636352211e146102e457806370a08231146103035780638da5cb5b1461032257806395d89b411461017f57806398710d1e1461033e578063a0712d6814610353575f80fd5b806323b872dd1161010457806323b872dd1461024a57806332cb6b0c146102695780633ccfd60b1461027e57806342842e0e1461029257806347064d6a146102b15780635b70ea9f146102d0575f80fd5b806301ffc9a71461014b57806306fdde031461017f578063081812fc146101b5578063095ea7b3146101ec578063129ee21a1461020d57806318160ddd1461022c575b5f80fd5b348015610156575f80fd5b5061016a610165366004610d93565b61040c565b60405190151581526020015b60405180910390f35b34801561018a575f80fd5b50604080518082019091526005815264149bd8dad960da1b60208201525b6040516101769190610ddc565b3480156101c0575f80fd5b506101d46101cf366004610e0e565b61045d565b6040516001600160a01b039091168152602001610176565b3480156101f7575f80fd5b5061020b610206366004610e40565b6104a1565b005b348015610218575f80fd5b5061020b610227366004610e68565b61055c565b348015610237575f80fd5b506004545b604051908152602001610176565b348015610255575f80fd5b5061020b610264366004610e91565b61059f565b348015610274575f80fd5b5061023c6101a481565b348015610289575f80fd5b5061020b6105af565b34801561029d575f80fd5b5061020b6102ac366004610e91565b610608565b3480156102bc575f80fd5b5061020b6102cb366004610f51565b610622565b3480156102db575f80fd5b5061020b610657565b3480156102ef575f80fd5b506101d46102fe366004610e0e565b61076c565b34801561030e575f80fd5b5061023c61031d366004610f9e565b610776565b34801561032d575f80fd5b505f546001600160a01b03166101d4565b348015610349575f80fd5b5061023c60015481565b61020b610361366004610e0e565b6107bc565b348015610371575f80fd5b5061020b610380366004610fb7565b6108a3565b348015610390575f80fd5b5061020b61039f366004610ff0565b610937565b3480156103af575f80fd5b5061023c60025481565b3480156103c4575f80fd5b506101a86103d3366004610e0e565b610948565b3480156103e3575f80fd5b5061016a6103f2366004611067565b610a4c565b348015610402575f80fd5b5061023c60095481565b5f6301ffc9a760e01b6001600160e01b03198316148061043c57506380ac58cd60e01b6001600160e01b03198316145b806104575750635b5e139f60e01b6001600160e01b03198316145b92915050565b5f610469826004541190565b610486576040516333d1c03960e21b815260040160405180910390fd5b505f908152600760205260409020546001600160a01b031690565b5f6104ab82610a79565b9050806001600160a01b0316836001600160a01b0316036104ca575f80fd5b336001600160a01b03821614610501576104e48133610a4c565b610501576040516367d9dca160e11b815260040160405180910390fd5b5f8281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b5f546001600160a01b0316331461058e5760405162461bcd60e51b815260040161058590611098565b60405180910390fd5b600991909155600291909155600155565b6105aa838383610adb565b505050565b5f546001600160a01b031633146105d85760405162461bcd60e51b815260040161058590611098565b6040514790339082156108fc029083905f818181858888f19350505050158015610604573d5f803e3d5ffd5b5050565b6105aa83838360405180602001604052805f815250610937565b5f546001600160a01b0316331461064b5760405162461bcd60e51b815260040161058590611098565b60036106048282611138565b3233146106925760405162461bcd60e51b81526020600482015260096024820152681b9bc814d8dc9a5c1d60ba1b6044820152606401610585565b600154600954339190816106a560045490565b6106af9190611208565b11156106f15760405162461bcd60e51b8152602060048201526011602482015270119c99595b5a5b9d0814dbdb190813dd5d607a1b6044820152606401610585565b6001546001600160a01b0383165f908152600660205260409081902054610723911c67ffffffffffffffff1683611208565b11156107625760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c8815d85b1b195d60921b6044820152606401610585565b6106048282610c6d565b5f61045782610a79565b5f815f03610797576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526006602052604090205467ffffffffffffffff1690565b336101a4826107ca60045490565b6107d49190611208565b111561080d5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610585565b346002548361081c919061121b565b11156108595760405162461bcd60e51b815260206004820152600c60248201526b56616c756520746f204c6f7760a01b6044820152606401610585565b600a8211156108995760405162461bcd60e51b815260206004820152600c60248201526b09ac2f0406a40e0cae440a8b60a31b6044820152606401610585565b6106048183610c6d565b336001600160a01b038316036108cc5760405163b06307db60e01b815260040160405180910390fd5b335f8181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610942848484610adb565b50505050565b6060610955826004541190565b61097257604051630a14c4b560e41b815260040160405180910390fd5b5f60038054610980906110bb565b80601f01602080910402602001604051908101604052809291908181526020018280546109ac906110bb565b80156109f75780601f106109ce576101008083540402835291602001916109f7565b820191905f5260205f20905b8154815290600101906020018083116109da57829003601f168201915b5050505050905080515f03610a1a5760405180602001604052805f815250610a45565b80610a2484610d44565b604051602001610a35929190611232565b6040516020818303038152906040525b9392505050565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205460ff1690565b5f81600454811015610ac2575f8181526005602052604081205490600160e01b82169003610ac0575b805f03610a4557505f19015f81815260056020526040902054610aa2565b505b604051636f96cda160e11b815260040160405180910390fd5b5f610ae582610a79565b9050836001600160a01b0316816001600160a01b031614610b185760405162a1148160e81b815260040160405180910390fd5b5f828152600760205260408120546001600160a01b0390811691908616331480610b475750610b478633610a4c565b80610b5a57506001600160a01b03821633145b905080610b7a57604051632ce44b5f60e11b815260040160405180910390fd5b8115610b9c575f84815260076020526040902080546001600160a01b03191690555b6001600160a01b038681165f90815260066020908152604080832080545f1901905592881682528282208054600101905586825260059052908120600160e11b4260a01b8817811790915584169003610c2357600184015f818152600560205260408120549003610c21576004548114610c21575f8181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600454825f03610c8f57604051622e076360e81b815260040160405180910390fd5b815f03610caf5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f9081526006602090815260408083208054680100000000000000018702019055838352600590915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210610cf95750600455505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015610d8157600183039250600a81066030018353600a9004610d63565b50819003601f19909101908152919050565b5f60208284031215610da3575f80fd5b81356001600160e01b031981168114610a45575f80fd5b5f5b83811015610dd4578181015183820152602001610dbc565b50505f910152565b602081525f8251806020840152610dfa816040850160208701610dba565b601f01601f19169190910160400192915050565b5f60208284031215610e1e575f80fd5b5035919050565b80356001600160a01b0381168114610e3b575f80fd5b919050565b5f8060408385031215610e51575f80fd5b610e5a83610e25565b946020939093013593505050565b5f805f60608486031215610e7a575f80fd5b505081359360208301359350604090920135919050565b5f805f60608486031215610ea3575f80fd5b610eac84610e25565b9250610eba60208501610e25565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff80841115610ef857610ef8610eca565b604051601f8501601f19908116603f01168101908282118183101715610f2057610f20610eca565b81604052809350858152868686011115610f38575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215610f61575f80fd5b813567ffffffffffffffff811115610f77575f80fd5b8201601f81018413610f87575f80fd5b610f9684823560208401610ede565b949350505050565b5f60208284031215610fae575f80fd5b610a4582610e25565b5f8060408385031215610fc8575f80fd5b610fd183610e25565b915060208301358015158114610fe5575f80fd5b809150509250929050565b5f805f8060808587031215611003575f80fd5b61100c85610e25565b935061101a60208601610e25565b925060408501359150606085013567ffffffffffffffff81111561103c575f80fd5b8501601f8101871361104c575f80fd5b61105b87823560208401610ede565b91505092959194509250565b5f8060408385031215611078575f80fd5b61108183610e25565b915061108f60208401610e25565b90509250929050565b6020808252600990820152683737ba1027bbb732b960b91b604082015260600190565b600181811c908216806110cf57607f821691505b6020821081036110ed57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156105aa575f81815260208120601f850160051c810160208610156111195750805b601f850160051c820191505b81811015610c6557828155600101611125565b815167ffffffffffffffff81111561115257611152610eca565b6111668161116084546110bb565b846110f3565b602080601f831160018114611199575f84156111825750858301515b5f19600386901b1c1916600185901b178555610c65565b5f85815260208120601f198616915b828110156111c7578886015182559484019460019091019084016111a8565b50858210156111e457878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610457576104576111f4565b8082028115828204841417610457576104576111f4565b66697066733a2f2f60c81b81525f8351611253816007850160208801610dba565b602f60f81b6007918401918201528351611274816008840160208801610dba565b64173539b7b760d91b60089290910191820152600d0194935050505056fea2646970667358221220884e74ec7dd1da0c004b5bcc68d242b427eec6c19ce050911d3a0dcaa785ae2064736f6c63430008140033516d5943414d535a6d69627733655556686e5666624e4d473579616e526f7746736863597a5970727a7777613461