Loading
[ { "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": false, "internalType": "bool", "name": "status", "type": "bool" } ], "name": "SalesOpened", "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": "buyNft", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "closeNftSales", "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": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "openNftSales", "outputs": [], "stateMutability": "nonpayable", "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": [], "name": "salesOpen", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "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" } ]
60806040523480156200001157600080fd5b506040518060400160405280600c81526020016b10d85d185b1e5cdd15195cdd60a21b8152506040518060400160405280600481526020016310d85d1560e21b815250816000908162000065919062000124565b50600162000074828262000124565b505050620001f0565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000a857607f821691505b602082108103620000c957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200011f576000816000526020600020601f850160051c81016020861015620000fa5750805b601f850160051c820191505b818110156200011b5782815560010162000106565b5050505b505050565b81516001600160401b038111156200014057620001406200007d565b620001588162000151845462000093565b84620000cf565b602080601f831160018114620001905760008415620001775750858301515b600019600386901b1c1916600185901b1785556200011b565b600085815260208120601f198616915b82811015620001c157888601518255948401946001909101908401620001a0565b5085821015620001e05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61118780620002006000396000f3fe6080604052600436106100fe5760003560e01c80636352211e11610095578063a22cb46511610064578063a22cb465146102a2578063b88d4fde146102c2578063c87b56dd146102e2578063e69257c214610302578063e985e9c51461030a57600080fd5b80636352211e1461022557806370a0823114610245578063729205e71461027357806395d89b411461028d57600080fd5b806323b872dd116100d157806323b872dd146101b457806337925ac6146101d457806337eb44f7146101e957806342842e0e1461020557600080fd5b806301ffc9a71461010357806306fdde0314610138578063081812fc1461015a578063095ea7b314610192575b600080fd5b34801561010f57600080fd5b5061012361011e366004610dd0565b61032a565b60405190151581526020015b60405180910390f35b34801561014457600080fd5b5061014d61037c565b60405161012f9190610e3d565b34801561016657600080fd5b5061017a610175366004610e50565b61040e565b6040516001600160a01b03909116815260200161012f565b34801561019e57600080fd5b506101b26101ad366004610e85565b610437565b005b3480156101c057600080fd5b506101b26101cf366004610eaf565b610446565b3480156101e057600080fd5b506101b26104d6565b3480156101f557600080fd5b506101b26006805460ff19169055565b34801561021157600080fd5b506101b2610220366004610eaf565b61051b565b34801561023157600080fd5b5061017a610240366004610e50565b61053b565b34801561025157600080fd5b50610265610260366004610eeb565b610546565b60405190815260200161012f565b34801561027f57600080fd5b506006546101239060ff1681565b34801561029957600080fd5b5061014d61058e565b3480156102ae57600080fd5b506101b26102bd366004610f06565b61059d565b3480156102ce57600080fd5b506101b26102dd366004610f58565b6105a8565b3480156102ee57600080fd5b5061014d6102fd366004610e50565b6105c0565b6101b2610635565b34801561031657600080fd5b50610123610325366004611034565b6106e0565b60006001600160e01b031982166380ac58cd60e01b148061035b57506001600160e01b03198216635b5e139f60e01b145b8061037657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461038b90611067565b80601f01602080910402602001604051908101604052809291908181526020018280546103b790611067565b80156104045780601f106103d957610100808354040283529160200191610404565b820191906000526020600020905b8154815290600101906020018083116103e757829003601f168201915b5050505050905090565b60006104198261070e565b506000828152600460205260409020546001600160a01b0316610376565b610442828233610747565b5050565b6001600160a01b03821661047557604051633250574960e11b8152600060048201526024015b60405180910390fd5b6000610482838333610754565b9050836001600160a01b0316816001600160a01b0316146104d0576040516364283d7b60e01b81526001600160a01b038086166004830152602482018490528216604482015260640161046c565b50505050565b6006805460ff191660019081179091556040519081527ff4fde8525e0a9b9d14fc912c2031961ab22aaa409c570c2a8cf930129b0e91f99060200160405180910390a1565b610536838383604051806020016040528060008152506105a8565b505050565b60006103768261070e565b60006001600160a01b038216610572576040516322718ad960e21b81526000600482015260240161046c565b506001600160a01b031660009081526003602052604090205490565b60606001805461038b90611067565b61044233838361084d565b6105b3848484610446565b6104d033858585856108ec565b60606105cb8261070e565b5060006105e360408051602081019091526000815290565b90506000815111610603576040518060200160405280600081525061062e565b8061060d84610a17565b60405160200161061e9291906110a1565b6040516020818303038152906040525b9392505050565b60065460ff166106755760405162461bcd60e51b815260206004820152600b60248201526a14d85b194818db1bdcd95960aa1b604482015260640161046c565b34662386f26fc10000146106bd5760405162461bcd60e51b815260206004820152600f60248201526e496e636f72726563742076616c756560881b604482015260640161046c565b6106c933600754610aaa565b600780549060006106d9836110d0565b9190505550565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000818152600260205260408120546001600160a01b03168061037657604051637e27328960e01b81526004810184905260240161046c565b6105368383836001610b0f565b6000828152600260205260408120546001600160a01b039081169083161561078157610781818486610c15565b6001600160a01b038116156107bf5761079e600085600080610b0f565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b038516156107ee576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b6001600160a01b03821661087f57604051630b61174360e31b81526001600160a01b038316600482015260240161046c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b15610a1057604051630a85bd0160e11b81526001600160a01b0384169063150b7a029061092e9088908890879087906004016110f7565b6020604051808303816000875af1925050508015610969575060408051601f3d908101601f1916820190925261096691810190611134565b60015b6109d2573d808015610997576040519150601f19603f3d011682016040523d82523d6000602084013e61099c565b606091505b5080516000036109ca57604051633250574960e11b81526001600160a01b038516600482015260240161046c565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14610a0e57604051633250574960e11b81526001600160a01b038516600482015260240161046c565b505b5050505050565b60606000610a2483610c79565b600101905060008167ffffffffffffffff811115610a4457610a44610f42565b6040519080825280601f01601f191660200182016040528015610a6e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610a7857509392505050565b6001600160a01b038216610ad457604051633250574960e11b81526000600482015260240161046c565b6000610ae283836000610754565b90506001600160a01b03811615610536576040516339e3563760e11b81526000600482015260240161046c565b8080610b2357506001600160a01b03821615155b15610be5576000610b338461070e565b90506001600160a01b03831615801590610b5f5750826001600160a01b0316816001600160a01b031614155b8015610b725750610b7081846106e0565b155b15610b9b5760405163a9fbf51f60e01b81526001600160a01b038416600482015260240161046c565b8115610be35783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b610c20838383610d51565b610536576001600160a01b038316610c4e57604051637e27328960e01b81526004810182905260240161046c565b60405163177e802f60e01b81526001600160a01b03831660048201526024810182905260440161046c565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610cb85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610ce4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610d0257662386f26fc10000830492506010015b6305f5e1008310610d1a576305f5e100830492506008015b6127108310610d2e57612710830492506004015b60648310610d40576064830492506002015b600a83106103765760010192915050565b60006001600160a01b03831615801590610daf5750826001600160a01b0316846001600160a01b03161480610d8b5750610d8b84846106e0565b80610daf57506000828152600460205260409020546001600160a01b038481169116145b949350505050565b6001600160e01b031981168114610dcd57600080fd5b50565b600060208284031215610de257600080fd5b813561062e81610db7565b60005b83811015610e08578181015183820152602001610df0565b50506000910152565b60008151808452610e29816020860160208601610ded565b601f01601f19169290920160200192915050565b60208152600061062e6020830184610e11565b600060208284031215610e6257600080fd5b5035919050565b80356001600160a01b0381168114610e8057600080fd5b919050565b60008060408385031215610e9857600080fd5b610ea183610e69565b946020939093013593505050565b600080600060608486031215610ec457600080fd5b610ecd84610e69565b9250610edb60208501610e69565b9150604084013590509250925092565b600060208284031215610efd57600080fd5b61062e82610e69565b60008060408385031215610f1957600080fd5b610f2283610e69565b915060208301358015158114610f3757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610f6e57600080fd5b610f7785610e69565b9350610f8560208601610e69565b925060408501359150606085013567ffffffffffffffff80821115610fa957600080fd5b818701915087601f830112610fbd57600080fd5b813581811115610fcf57610fcf610f42565b604051601f8201601f19908116603f01168101908382118183101715610ff757610ff7610f42565b816040528281528a602084870101111561101057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561104757600080fd5b61105083610e69565b915061105e60208401610e69565b90509250929050565b600181811c9082168061107b57607f821691505b60208210810361109b57634e487b7160e01b600052602260045260246000fd5b50919050565b600083516110b3818460208801610ded565b8351908301906110c7818360208801610ded565b01949350505050565b6000600182016110f057634e487b7160e01b600052601160045260246000fd5b5060010190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061112a90830184610e11565b9695505050505050565b60006020828403121561114657600080fd5b815161062e81610db756fea2646970667358221220db9ab2e2202aa231f1c622576cb71a30d68f35452334e53d932f88412b3251a064736f6c63430008160033