Overview ERC721
Total Supply:
419 PKNS

Holders:
351
Profile Summary
Blockchain:
Ethereum (1)

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

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Created At:
Thu, 28 Sep 2023 08:35:47 GMT
PKNS.sol
PKNS.sol
PKNS.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
6001805566038d7ea4c6800060025560e0604052602e608081815290620014c960a03960039062000031908262000100565b505f6004556103b660095534801562000048575f80fd5b505f80546001600160a01b03191633179055620001c8565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200008957607f821691505b602082108103620000a857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620000fb575f81815260208120601f850160051c81016020861015620000d65750805b601f850160051c820191505b81811015620000f757828155600101620000e2565b5050505b505050565b81516001600160401b038111156200011c576200011c62000060565b62000134816200012d845462000074565b84620000ae565b602080601f8311600181146200016a575f8415620001525750858301515b5f19600386901b1c1916600185901b178555620000f7565b5f85815260208120601f198616915b828110156200019a5788860151825594840194600190910190840162000179565b5085821015620001b857878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6112f380620001d65f395ff3fe608060405260043610610147575f3560e01c80636352211e116100b3578063a22cb4651161006d578063a22cb46514610391578063b88d4fde146103b0578063bf8fbbd2146103cf578063c87b56dd146103e4578063e985e9c514610403578063ed6661c214610422575f80fd5b80636352211e146102e357806370a08231146103025780638da5cb5b1461032157806395d89b411461033d57806398710d1e14610369578063a0712d681461037e575f80fd5b806323b872dd1161010457806323b872dd1461024957806332cb6b0c146102685780633ccfd60b1461027d57806342842e0e1461029157806347064d6a146102b05780635b70ea9f146102cf575f80fd5b806301ffc9a71461014b57806306fdde031461017f578063081812fc146101b4578063095ea7b3146101eb578063129ee21a1461020c57806318160ddd1461022b575b5f80fd5b348015610156575f80fd5b5061016a610165366004610dbe565b610437565b60405190151581526020015b60405180910390f35b34801561018a575f80fd5b50604080518082019091526004815263506b6e7360e01b60208201525b6040516101769190610e07565b3480156101bf575f80fd5b506101d36101ce366004610e39565b610488565b6040516001600160a01b039091168152602001610176565b3480156101f6575f80fd5b5061020a610205366004610e6b565b6104cc565b005b348015610217575f80fd5b5061020a610226366004610e93565b610587565b348015610236575f80fd5b506004545b604051908152602001610176565b348015610254575f80fd5b5061020a610263366004610ebc565b6105ca565b348015610273575f80fd5b5061023b6104b081565b348015610288575f80fd5b5061020a6105da565b34801561029c575f80fd5b5061020a6102ab366004610ebc565b610633565b3480156102bb575f80fd5b5061020a6102ca366004610f7c565b61064d565b3480156102da575f80fd5b5061020a610682565b3480156102ee575f80fd5b506101d36102fd366004610e39565b610797565b34801561030d575f80fd5b5061023b61031c366004610fc9565b6107a1565b34801561032c575f80fd5b505f546001600160a01b03166101d3565b348015610348575f80fd5b50604080518082019091526004815263504b4e5360e01b60208201526101a7565b348015610374575f80fd5b5061023b60015481565b61020a61038c366004610e39565b6107e7565b34801561039c575f80fd5b5061020a6103ab366004610fe2565b6108ce565b3480156103bb575f80fd5b5061020a6103ca36600461101b565b610962565b3480156103da575f80fd5b5061023b60025481565b3480156103ef575f80fd5b506101a76103fe366004610e39565b610973565b34801561040e575f80fd5b5061016a61041d366004611092565b610a77565b34801561042d575f80fd5b5061023b60095481565b5f6301ffc9a760e01b6001600160e01b03198316148061046757506380ac58cd60e01b6001600160e01b03198316145b806104825750635b5e139f60e01b6001600160e01b03198316145b92915050565b5f610494826004541190565b6104b1576040516333d1c03960e21b815260040160405180910390fd5b505f908152600760205260409020546001600160a01b031690565b5f6104d682610aa4565b9050806001600160a01b0316836001600160a01b0316036104f5575f80fd5b336001600160a01b0382161461052c5761050f8133610a77565b61052c576040516367d9dca160e11b815260040160405180910390fd5b5f8281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b5f546001600160a01b031633146105b95760405162461bcd60e51b81526004016105b0906110c3565b60405180910390fd5b600991909155600291909155600155565b6105d5838383610b06565b505050565b5f546001600160a01b031633146106035760405162461bcd60e51b81526004016105b0906110c3565b6040514790339082156108fc029083905f818181858888f1935050505015801561062f573d5f803e3d5ffd5b5050565b6105d583838360405180602001604052805f815250610962565b5f546001600160a01b031633146106765760405162461bcd60e51b81526004016105b0906110c3565b600361062f8282611163565b3233146106bd5760405162461bcd60e51b81526020600482015260096024820152681b9bc814d8dc9a5c1d60ba1b60448201526064016105b0565b600154600954339190816106d060045490565b6106da9190611233565b111561071c5760405162461bcd60e51b8152602060048201526011602482015270119c99595b5a5b9d0814dbdb190813dd5d607a1b60448201526064016105b0565b6001546001600160a01b0383165f90815260066020526040908190205461074e911c67ffffffffffffffff1683611233565b111561078d5760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c8815d85b1b195d60921b60448201526064016105b0565b61062f8282610c98565b5f61048282610aa4565b5f815f036107c2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526006602052604090205467ffffffffffffffff1690565b336104b0826107f560045490565b6107ff9190611233565b11156108385760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b60448201526064016105b0565b34600254836108479190611246565b11156108845760405162461bcd60e51b815260206004820152600c60248201526b56616c756520746f204c6f7760a01b60448201526064016105b0565b600a8211156108c45760405162461bcd60e51b815260206004820152600c60248201526b09ac2f0406a40e0cae440a8b60a31b60448201526064016105b0565b61062f8183610c98565b336001600160a01b038316036108f75760405163b06307db60e01b815260040160405180910390fd5b335f8181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61096d848484610b06565b50505050565b6060610980826004541190565b61099d57604051630a14c4b560e41b815260040160405180910390fd5b5f600380546109ab906110e6565b80601f01602080910402602001604051908101604052809291908181526020018280546109d7906110e6565b8015610a225780601f106109f957610100808354040283529160200191610a22565b820191905f5260205f20905b815481529060010190602001808311610a0557829003601f168201915b5050505050905080515f03610a455760405180602001604052805f815250610a70565b80610a4f84610d6f565b604051602001610a6092919061125d565b6040516020818303038152906040525b9392505050565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205460ff1690565b5f81600454811015610aed575f8181526005602052604081205490600160e01b82169003610aeb575b805f03610a7057505f19015f81815260056020526040902054610acd565b505b604051636f96cda160e11b815260040160405180910390fd5b5f610b1082610aa4565b9050836001600160a01b0316816001600160a01b031614610b435760405162a1148160e81b815260040160405180910390fd5b5f828152600760205260408120546001600160a01b0390811691908616331480610b725750610b728633610a77565b80610b8557506001600160a01b03821633145b905080610ba557604051632ce44b5f60e11b815260040160405180910390fd5b8115610bc7575f84815260076020526040902080546001600160a01b03191690555b6001600160a01b038681165f90815260066020908152604080832080545f1901905592881682528282208054600101905586825260059052908120600160e11b4260a01b8817811790915584169003610c4e57600184015f818152600560205260408120549003610c4c576004548114610c4c575f8181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600454825f03610cba57604051622e076360e81b815260040160405180910390fd5b815f03610cda5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f9081526006602090815260408083208054680100000000000000018702019055838352600590915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210610d245750600455505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015610dac57600183039250600a81066030018353600a9004610d8e565b50819003601f19909101908152919050565b5f60208284031215610dce575f80fd5b81356001600160e01b031981168114610a70575f80fd5b5f5b83811015610dff578181015183820152602001610de7565b50505f910152565b602081525f8251806020840152610e25816040850160208701610de5565b601f01601f19169190910160400192915050565b5f60208284031215610e49575f80fd5b5035919050565b80356001600160a01b0381168114610e66575f80fd5b919050565b5f8060408385031215610e7c575f80fd5b610e8583610e50565b946020939093013593505050565b5f805f60608486031215610ea5575f80fd5b505081359360208301359350604090920135919050565b5f805f60608486031215610ece575f80fd5b610ed784610e50565b9250610ee560208501610e50565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff80841115610f2357610f23610ef5565b604051601f8501601f19908116603f01168101908282118183101715610f4b57610f4b610ef5565b81604052809350858152868686011115610f63575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215610f8c575f80fd5b813567ffffffffffffffff811115610fa2575f80fd5b8201601f81018413610fb2575f80fd5b610fc184823560208401610f09565b949350505050565b5f60208284031215610fd9575f80fd5b610a7082610e50565b5f8060408385031215610ff3575f80fd5b610ffc83610e50565b915060208301358015158114611010575f80fd5b809150509250929050565b5f805f806080858703121561102e575f80fd5b61103785610e50565b935061104560208601610e50565b925060408501359150606085013567ffffffffffffffff811115611067575f80fd5b8501601f81018713611077575f80fd5b61108687823560208401610f09565b91505092959194509250565b5f80604083850312156110a3575f80fd5b6110ac83610e50565b91506110ba60208401610e50565b90509250929050565b6020808252600990820152683737ba1027bbb732b960b91b604082015260600190565b600181811c908216806110fa57607f821691505b60208210810361111857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156105d5575f81815260208120601f850160051c810160208610156111445750805b601f850160051c820191505b81811015610c9057828155600101611150565b815167ffffffffffffffff81111561117d5761117d610ef5565b6111918161118b84546110e6565b8461111e565b602080601f8311600181146111c4575f84156111ad5750858301515b5f19600386901b1c1916600185901b178555610c90565b5f85815260208120601f198616915b828110156111f2578886015182559484019460019091019084016111d3565b508582101561120f57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b808201808211156104825761048261121f565b80820281158282048414176104825761048261121f565b66697066733a2f2f60c81b81525f835161127e816007850160208801610de5565b602f60f81b600791840191820152835161129f816008840160208801610de5565b64173539b7b760d91b60089290910191820152600d0194935050505056fea26469706673582212203bfe7f64bf1b9c5b45bf7403cdf8b1946695ce8397b739093eb406ba71f0131b64736f6c63430008140033516d6351574c32667a5a7a4b5953625436424e4a644e554d4b316b6d614e4633647454676465504a4d3452487479