[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "ERC1167FailedCreateClone", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "creator", "type": "address" }, { "indexed": false, "internalType": "address", "name": "contractAddr", "type": "address" } ], "name": "ContractCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "erc721Implementation", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "creator", "type": "address" }, { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "getCreatorContractAtIndex", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "creator", "type": "address" } ], "name": "getNumberOfContractsForCreator", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "token", "type": "string" } ], "name": "ham721Deploy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]
608060405234801561001057600080fd5b50600080546001600160a01b0319168155604051819081907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061005661005b565b61010d565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100ab5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b039081161461010a5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6125a68061011c6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80637c66fd851161005b5780637c66fd85146100fe5780638129fc1c146101115780638da5cb5b14610119578063f2fde38b1461012c57600080fd5b806315e29f38146100825780634a80a319146100be57806368e18ab5146100e9575b600080fd5b6100ab610090366004610546565b6001600160a01b031660009081526002602052604090205490565b6040519081526020015b60405180910390f35b6001546100d1906001600160a01b031681565b6040516001600160a01b0390911681526020016100b5565b6100fc6100f736600461060d565b61013f565b005b6100d161010c366004610671565b610243565b6100fc610289565b6000546100d1906001600160a01b031681565b6100fc61013a366004610546565b610417565b600154600090610157906001600160a01b03166104af565b604051633772ba0d60e11b81529091506001600160a01b03821690636ee5741a9061018a908690869033906004016106e3565b6020604051808303816000875af11580156101a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cd9190610721565b5033600081815260026020908152604080832080546001810182559084529282902090920180546001600160a01b0319166001600160a01b03861690811790915591519182527f2d49c67975aadd2d389580b368cfff5b49965b0bd5da33c144922ce01e7a4d7b910160405180910390a2505050565b6001600160a01b038216600090815260026020526040812080548390811061026d5761026d61073e565b6000918252602090912001546001600160a01b03169392505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156102cf5750825b905060008267ffffffffffffffff1660011480156102ec5750303b155b9050811580156102fa575080155b156103185760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561034257845460ff60401b1916600160401b1785555b600080546001600160a01b0319163317905560405161036090610521565b604051809103906000f08015801561037c573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b039290921691909117905560405133906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3831561041057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050565b6000546001600160a01b031633146104645760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b604482015260640160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b03811661051c576040516330be1a3d60e21b815260040160405180910390fd5b919050565b611e1c8061075583390190565b6001600160a01b038116811461054357600080fd5b50565b60006020828403121561055857600080fd5b81356105638161052e565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261059157600080fd5b813567ffffffffffffffff808211156105ac576105ac61056a565b604051601f8301601f19908116603f011681019082821181831017156105d4576105d461056a565b816040528381528660208588010111156105ed57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561062057600080fd5b823567ffffffffffffffff8082111561063857600080fd5b61064486838701610580565b9350602085013591508082111561065a57600080fd5b5061066785828601610580565b9150509250929050565b6000806040838503121561068457600080fd5b823561068f8161052e565b946020939093013593505050565b6000815180845260005b818110156106c3576020818501810151868301820152016106a7565b506000602082860101526020601f19601f83011685010191505092915050565b6060815260006106f6606083018661069d565b8281036020840152610708818661069d565b91505060018060a01b0383166040830152949350505050565b60006020828403121561073357600080fd5b81516105638161052e565b634e487b7160e01b600052603260045260246000fdfe60806040523480156200001157600080fd5b50604080516020808201835260008083528351918201909352828152826200003a83826200014c565b5060016200004982826200014c565b5050600b80546001600160a81b0319166101006001600160a01b038516908102919091179091556040519091506000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35062000218565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000d057607f821691505b602082108103620000f157634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000147576000816000526020600020601f850160051c81016020861015620001225750805b601f850160051c820191505b8181101562000143578281556001016200012e565b5050505b505050565b81516001600160401b03811115620001685762000168620000a5565b6200018081620001798454620000bb565b84620000f7565b602080601f831160018114620001b857600084156200019f5750858301515b600019600386901b1c1916600185901b17855562000143565b600085815260208120601f198616915b82811015620001e957888601518255948401946001909101908401620001c8565b5085821015620002085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611bf480620002286000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80636352211e116100c357806395d89b411161007c57806395d89b41146102ac578063a22cb465146102b4578063b88d4fde146102c7578063c87b56dd146102da578063e985e9c5146102ed578063f2fde38b1461030057600080fd5b80636352211e14610240578063695850fb146102535780636ee5741a1461026657806370a08231146102795780638456cb591461028c5780638da5cb5b1461029457600080fd5b806323b872dd1161011557806323b872dd146101e15780632f745c59146101f45780633f4ba83a1461020757806342842e0e1461020f5780634f6ccce7146102225780635c975abb1461023557600080fd5b806301ffc9a71461015257806306fdde031461017a578063081812fc1461018f578063095ea7b3146101ba57806318160ddd146101cf575b600080fd5b6101656101603660046114d7565b610313565b60405190151581526020015b60405180910390f35b610182610324565b6040516101719190611544565b6101a261019d366004611557565b6103b6565b6040516001600160a01b039091168152602001610171565b6101cd6101c836600461158c565b6103df565b005b6008545b604051908152602001610171565b6101cd6101ef3660046115b6565b6103ee565b6101d361020236600461158c565b61047e565b6101cd6104e3565b6101cd61021d3660046115b6565b61051c565b6101d3610230366004611557565b61053c565b600b5460ff16610165565b6101a261024e366004611557565b610595565b6101cd61026136600461167e565b6105a0565b6101a2610274366004611710565b6105fa565b6101d3610287366004611791565b6106b8565b6101cd610700565b600b546101a29061010090046001600160a01b031681565b610182610737565b6101cd6102c23660046117ac565b610746565b6101cd6102d53660046117e8565b610751565b6101826102e8366004611557565b610768565b6101656102fb366004611864565b610773565b6101cd61030e366004611791565b6107a1565b600061031e82610824565b92915050565b6060600e805461033390611897565b80601f016020809104026020016040519081016040528092919081815260200182805461035f90611897565b80156103ac5780601f10610381576101008083540402835291602001916103ac565b820191906000526020600020905b81548152906001019060200180831161038f57829003601f168201915b5050505050905090565b60006103c182610849565b506000828152600460205260409020546001600160a01b031661031e565b6103ea828233610882565b5050565b6001600160a01b03821661041d57604051633250574960e11b8152600060048201526024015b60405180910390fd5b600061042a83833361088f565b9050836001600160a01b0316816001600160a01b031614610478576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610414565b50505050565b6000610489836106b8565b82106104ba5760405163295f44f760e21b81526001600160a01b038416600482015260248101839052604401610414565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b5461010090046001600160a01b031633146105125760405162461bcd60e51b8152600401610414906118d1565b61051a6108a4565b565b61053783838360405180602001604052806000815250610751565b505050565b600061054760085490565b82106105705760405163295f44f760e21b81526000600482015260248101839052604401610414565b60088281548110610583576105836118f7565b90600052602060002001549050919050565b600061031e82610849565b600b5461010090046001600160a01b031633146105cf5760405162461bcd60e51b8152600401610414906118d1565b600c8054600091826105e083611923565b9190505590506105f033826108f6565b6103ea8183610910565b600d5460009060ff16156106465760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610414565b600e61065386888361198c565b50600f61066184868361198c565b50600b8054610100600160a81b0319166101006001600160a01b0385160217905560405133906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a395945050505050565b60006001600160a01b0382166106e4576040516322718ad960e21b815260006004820152602401610414565b506001600160a01b031660009081526003602052604090205490565b600b5461010090046001600160a01b0316331461072f5760405162461bcd60e51b8152600401610414906118d1565b61051a610960565b6060600f805461033390611897565b6103ea33838361099d565b61075c8484846103ee565b61047884848484610a3c565b606061031e82610b65565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600b5461010090046001600160a01b031633146107d05760405162461bcd60e51b8152600401610414906118d1565b600b8054610100600160a81b0319166101006001600160a01b0384169081029190911790915560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350565b60006001600160e01b03198216632483248360e11b148061031e575061031e82610c6e565b6000818152600260205260408120546001600160a01b03168061031e57604051637e27328960e01b815260048101849052602401610414565b6105378383836001610c93565b600061089c848484610d99565b949350505050565b6108ac610dae565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6103ea828260405180602001604052806000815250610dd1565b6000828152600a602052604090206109288282611a4c565b506040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a15050565b610968610de8565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108d93390565b6001600160a01b0382166109cf57604051630b61174360e31b81526001600160a01b0383166004820152602401610414565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561047857604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290610a7e903390889087908790600401611b0c565b6020604051808303816000875af1925050508015610ab9575060408051601f3d908101601f19168201909252610ab691810190611b49565b60015b610b22573d808015610ae7576040519150601f19603f3d011682016040523d82523d6000602084013e610aec565b606091505b508051600003610b1a57604051633250574960e11b81526001600160a01b0385166004820152602401610414565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14610b5e57604051633250574960e11b81526001600160a01b0385166004820152602401610414565b5050505050565b6060610b7082610849565b506000828152600a602052604081208054610b8a90611897565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb690611897565b8015610c035780601f10610bd857610100808354040283529160200191610c03565b820191906000526020600020905b815481529060010190602001808311610be657829003601f168201915b505050505090506000610c2160408051602081019091526000815290565b90508051600003610c33575092915050565b815115610c65578082604051602001610c4d929190611b66565b60405160208183030381529060405292505050919050565b61089c84610e0c565b60006001600160e01b0319821663780e9d6360e01b148061031e575061031e82610e81565b8080610ca757506001600160a01b03821615155b15610d69576000610cb784610849565b90506001600160a01b03831615801590610ce35750826001600160a01b0316816001600160a01b031614155b8015610cf65750610cf48184610773565b155b15610d1f5760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610414565b8115610d675783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610da3610de8565b61089c848484610ed1565b600b5460ff1661051a57604051638dfc202b60e01b815260040160405180910390fd5b610ddb8383610f9e565b6105376000848484610a3c565b600b5460ff161561051a5760405163d93c066560e01b815260040160405180910390fd5b6060610e1782610849565b506000610e2f60408051602081019091526000815290565b90506000815111610e4f5760405180602001604052806000815250610e7a565b80610e5984611003565b604051602001610e6a929190611b66565b6040516020818303038152906040525b9392505050565b60006001600160e01b031982166380ac58cd60e01b1480610eb257506001600160e01b03198216635b5e139f60e01b145b8061031e57506301ffc9a760e01b6001600160e01b031983161461031e565b600080610edf858585611096565b90506001600160a01b038116610f3c57610f3784600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b610f5f565b846001600160a01b0316816001600160a01b031614610f5f57610f5f818561118f565b6001600160a01b038516610f7b57610f7684611220565b61089c565b846001600160a01b0316816001600160a01b03161461089c5761089c85856112cf565b6001600160a01b038216610fc857604051633250574960e11b815260006004820152602401610414565b6000610fd68383600061088f565b90506001600160a01b03811615610537576040516339e3563760e11b815260006004820152602401610414565b606060006110108361131f565b600101905060008167ffffffffffffffff811115611030576110306115f2565b6040519080825280601f01601f19166020018201604052801561105a576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461106457509392505050565b6000828152600260205260408120546001600160a01b03908116908316156110c3576110c38184866113f7565b6001600160a01b03811615611101576110e0600085600080610c93565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b03851615611130576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b600061119a836106b8565b6000838152600760205260409020549091508082146111ed576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061123290600190611b95565b6000838152600960205260408120546008805493945090928490811061125a5761125a6118f7565b90600052602060002001549050806008838154811061127b5761127b6118f7565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806112b3576112b3611ba8565b6001900381819060005260206000200160009055905550505050565b600060016112dc846106b8565b6112e69190611b95565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061135e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061138a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106113a857662386f26fc10000830492506010015b6305f5e10083106113c0576305f5e100830492506008015b61271083106113d457612710830492506004015b606483106113e6576064830492506002015b600a831061031e5760010192915050565b61140283838361145b565b610537576001600160a01b03831661143057604051637e27328960e01b815260048101829052602401610414565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610414565b60006001600160a01b0383161580159061089c5750826001600160a01b0316846001600160a01b0316148061149557506114958484610773565b8061089c5750506000908152600460205260409020546001600160a01b03908116911614919050565b6001600160e01b0319811681146114d457600080fd5b50565b6000602082840312156114e957600080fd5b8135610e7a816114be565b60005b8381101561150f5781810151838201526020016114f7565b50506000910152565b600081518084526115308160208601602086016114f4565b601f01601f19169290920160200192915050565b602081526000610e7a6020830184611518565b60006020828403121561156957600080fd5b5035919050565b80356001600160a01b038116811461158757600080fd5b919050565b6000806040838503121561159f57600080fd5b6115a883611570565b946020939093013593505050565b6000806000606084860312156115cb57600080fd5b6115d484611570565b92506115e260208501611570565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611623576116236115f2565b604051601f8501601f19908116603f0116810190828211818310171561164b5761164b6115f2565b8160405280935085815286868601111561166457600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561169057600080fd5b813567ffffffffffffffff8111156116a757600080fd5b8201601f810184136116b857600080fd5b61089c84823560208401611608565b60008083601f8401126116d957600080fd5b50813567ffffffffffffffff8111156116f157600080fd5b60208301915083602082850101111561170957600080fd5b9250929050565b60008060008060006060868803121561172857600080fd5b853567ffffffffffffffff8082111561174057600080fd5b61174c89838a016116c7565b9097509550602088013591508082111561176557600080fd5b50611772888289016116c7565b9094509250611785905060408701611570565b90509295509295909350565b6000602082840312156117a357600080fd5b610e7a82611570565b600080604083850312156117bf57600080fd5b6117c883611570565b9150602083013580151581146117dd57600080fd5b809150509250929050565b600080600080608085870312156117fe57600080fd5b61180785611570565b935061181560208601611570565b925060408501359150606085013567ffffffffffffffff81111561183857600080fd5b8501601f8101871361184957600080fd5b61185887823560208401611608565b91505092959194509250565b6000806040838503121561187757600080fd5b61188083611570565b915061188e60208401611570565b90509250929050565b600181811c908216806118ab57607f821691505b6020821081036118cb57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016119355761193561190d565b5060010190565b601f821115610537576000816000526020600020601f850160051c810160208610156119655750805b601f850160051c820191505b8181101561198457828155600101611971565b505050505050565b67ffffffffffffffff8311156119a4576119a46115f2565b6119b8836119b28354611897565b8361193c565b6000601f8411600181146119ec57600085156119d45750838201355b600019600387901b1c1916600186901b178355610b5e565b600083815260209020601f19861690835b82811015611a1d57868501358255602094850194600190920191016119fd565b5086821015611a3a5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b815167ffffffffffffffff811115611a6657611a666115f2565b611a7a81611a748454611897565b8461193c565b602080601f831160018114611aaf5760008415611a975750858301515b600019600386901b1c1916600185901b178555611984565b600085815260208120601f198616915b82811015611ade57888601518255948401946001909101908401611abf565b5085821015611afc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b3f90830184611518565b9695505050505050565b600060208284031215611b5b57600080fd5b8151610e7a816114be565b60008351611b788184602088016114f4565b835190830190611b8c8183602088016114f4565b01949350505050565b8181038181111561031e5761031e61190d565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e25d2b11325c535458877f41f64cdcba1579b09cba1d1d3633e3cd0e83b0d1e564736f6c63430008170033a26469706673582212202cab339df45d9c7d37fa259104924740e915ad7988c0ad0aef647a245890a98564736f6c63430008170033