[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" } ], "name": "ERC721IncorrectOwner", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "ERC721InsufficientApproval", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "approver", "type": "address" } ], "name": "ERC721InvalidApprover", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "ERC721InvalidOperator", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "ERC721InvalidOwner", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "ERC721InvalidReceiver", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "ERC721InvalidSender", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "ERC721NonexistentToken", "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": "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": [], "name": "currentTokenId", "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": "to", "type": "address" } ], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "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": "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": [ { "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" } ]
6080604052600160065534801561001557600080fd5b506040518060400160405280600a815260200169115e185b5c1b1953919560b21b815250604051806040016040528060048152602001631153919560e21b81525081600090816100659190610119565b5060016100728282610119565b5050506101d7565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806100a457607f821691505b6020821081036100c457634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561011457806000526020600020601f840160051c810160208510156100f15750805b601f840160051c820191505b8181101561011157600081556001016100fd565b50505b505050565b81516001600160401b038111156101325761013261007a565b610146816101408454610090565b846100ca565b6020601f82116001811461017a57600083156101625750848201515b600019600385901b1c1916600184901b178455610111565b600084815260208120601f198516915b828110156101aa578785015182556020948501946001909201910161018a565b50848210156101c85786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b610fd7806101e66000396000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c80636352211e11610097578063a22cb46511610066578063a22cb465146101f4578063b88d4fde14610207578063c87b56dd1461021a578063e985e9c51461022d57600080fd5b80636352211e146101b35780636a627842146101c657806370a08231146101d957806395d89b41146101ec57600080fd5b8063081812fc116100d3578063081812fc1461014d578063095ea7b31461017857806323b872dd1461018d57806342842e0e146101a057600080fd5b80629a9b7b146100f957806301ffc9a71461011557806306fdde0314610138575b600080fd5b61010260065481565b6040519081526020015b60405180910390f35b610128610123366004610c17565b610240565b604051901515815260200161010c565b610140610292565b60405161010c9190610c84565b61016061015b366004610c97565b610324565b6040516001600160a01b03909116815260200161010c565b61018b610186366004610ccc565b61034d565b005b61018b61019b366004610cf6565b61035c565b61018b6101ae366004610cf6565b6103ec565b6101606101c1366004610c97565b61040c565b61018b6101d4366004610d33565b610417565b6101026101e7366004610d33565b61043b565b610140610483565b61018b610202366004610d4e565b610492565b61018b610215366004610da0565b61049d565b610140610228366004610c97565b6104b4565b61012861023b366004610e84565b610529565b60006001600160e01b031982166380ac58cd60e01b148061027157506001600160e01b03198216635b5e139f60e01b145b8061028c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102a190610eb7565b80601f01602080910402602001604051908101604052809291908181526020018280546102cd90610eb7565b801561031a5780601f106102ef5761010080835404028352916020019161031a565b820191906000526020600020905b8154815290600101906020018083116102fd57829003601f168201915b5050505050905090565b600061032f82610557565b506000828152600460205260409020546001600160a01b031661028c565b610358828233610590565b5050565b6001600160a01b03821661038b57604051633250574960e11b8152600060048201526024015b60405180910390fd5b600061039883833361059d565b9050836001600160a01b0316816001600160a01b0316146103e6576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610382565b50505050565b6104078383836040518060200160405280600081525061049d565b505050565b600061028c82610557565b61042381600654610696565b6006805490600061043383610ef1565b919050555050565b60006001600160a01b038216610467576040516322718ad960e21b815260006004820152602401610382565b506001600160a01b031660009081526003602052604090205490565b6060600180546102a190610eb7565b6103583383836106fb565b6104a884848461035c565b6103e68484848461079a565b60606104bf82610557565b5060006104d760408051602081019091526000815290565b905060008151116104f75760405180602001604052806000815250610522565b80610501846108c3565b604051602001610512929190610f18565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000818152600260205260408120546001600160a01b03168061028c57604051637e27328960e01b815260048101849052602401610382565b6104078383836001610956565b6000828152600260205260408120546001600160a01b03908116908316156105ca576105ca818486610a5c565b6001600160a01b03811615610608576105e7600085600080610956565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b03851615610637576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b6001600160a01b0382166106c057604051633250574960e11b815260006004820152602401610382565b60006106ce8383600061059d565b90506001600160a01b03811615610407576040516339e3563760e11b815260006004820152602401610382565b6001600160a01b03821661072d57604051630b61174360e31b81526001600160a01b0383166004820152602401610382565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b156103e657604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906107dc903390889087908790600401610f47565b6020604051808303816000875af1925050508015610817575060408051601f3d908101601f1916820190925261081491810190610f84565b60015b610880573d808015610845576040519150601f19603f3d011682016040523d82523d6000602084013e61084a565b606091505b50805160000361087857604051633250574960e11b81526001600160a01b0385166004820152602401610382565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146108bc57604051633250574960e11b81526001600160a01b0385166004820152602401610382565b5050505050565b606060006108d083610ac0565b600101905060008167ffffffffffffffff8111156108f0576108f0610d8a565b6040519080825280601f01601f19166020018201604052801561091a576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461092457509392505050565b808061096a57506001600160a01b03821615155b15610a2c57600061097a84610557565b90506001600160a01b038316158015906109a65750826001600160a01b0316816001600160a01b031614155b80156109b957506109b78184610529565b155b156109e25760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610382565b8115610a2a5783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b610a67838383610b98565b610407576001600160a01b038316610a9557604051637e27328960e01b815260048101829052602401610382565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610382565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610aff5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610b2b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610b4957662386f26fc10000830492506010015b6305f5e1008310610b61576305f5e100830492506008015b6127108310610b7557612710830492506004015b60648310610b87576064830492506002015b600a831061028c5760010192915050565b60006001600160a01b03831615801590610bf65750826001600160a01b0316846001600160a01b03161480610bd25750610bd28484610529565b80610bf657506000828152600460205260409020546001600160a01b038481169116145b949350505050565b6001600160e01b031981168114610c1457600080fd5b50565b600060208284031215610c2957600080fd5b813561052281610bfe565b60005b83811015610c4f578181015183820152602001610c37565b50506000910152565b60008151808452610c70816020860160208601610c34565b601f01601f19169290920160200192915050565b6020815260006105226020830184610c58565b600060208284031215610ca957600080fd5b5035919050565b80356001600160a01b0381168114610cc757600080fd5b919050565b60008060408385031215610cdf57600080fd5b610ce883610cb0565b946020939093013593505050565b600080600060608486031215610d0b57600080fd5b610d1484610cb0565b9250610d2260208501610cb0565b929592945050506040919091013590565b600060208284031215610d4557600080fd5b61052282610cb0565b60008060408385031215610d6157600080fd5b610d6a83610cb0565b915060208301358015158114610d7f57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610db657600080fd5b610dbf85610cb0565b9350610dcd60208601610cb0565b925060408501359150606085013567ffffffffffffffff811115610df057600080fd5b8501601f81018713610e0157600080fd5b803567ffffffffffffffff811115610e1b57610e1b610d8a565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e4a57610e4a610d8a565b604052818152828201602001891015610e6257600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215610e9757600080fd5b610ea083610cb0565b9150610eae60208401610cb0565b90509250929050565b600181811c90821680610ecb57607f821691505b602082108103610eeb57634e487b7160e01b600052602260045260246000fd5b50919050565b600060018201610f1157634e487b7160e01b600052601160045260246000fd5b5060010190565b60008351610f2a818460208801610c34565b835190830190610f3e818360208801610c34565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610f7a90830184610c58565b9695505050505050565b600060208284031215610f9657600080fd5b815161052281610bfe56fea2646970667358221220aecbc4df6cdc26e6d0b66657a92f9398fd451715ac1e2274fea7d2e82a816ea364736f6c634300081a0033