[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "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": "uint8", "name": "version", "type": "uint8" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "contributionAmount", "type": "uint256" } ], "name": "MintShardNFT", "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": "GroupBuyNFTPlatformAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "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": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "contributionAmount", "type": "uint256" } ], "name": "claimShardNFT", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "close", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "contributedAmount", "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": [], "name": "groupId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "imageURI", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "_name", "type": "string" }, { "internalType": "string", "name": "_symbol", "type": "string" }, { "internalType": "string", "name": "_imageURI", "type": "string" }, { "internalType": "uint256", "name": "_groupId", "type": "uint256" }, { "internalType": "address", "name": "_receiver", "type": "address" }, { "internalType": "uint96", "name": "feeNumerator", "type": "uint96" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "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": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "uint256", "name": "salePrice", "type": "uint256" } ], "name": "royaltyInfo", "outputs": [ { "internalType": "address", "name": "", "type": "address" }, { "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": "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": [], "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" } ]
608060405234801561001057600080fd5b5061001961001e565b6100dd565b600054610100900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100db576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b611ea2806100ec6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80634668b7ec116100c3578063a0f44c921161007c578063a0f44c92146102d3578063a22cb465146102dd578063a9bc064b146102f0578063b88d4fde14610303578063c87b56dd14610316578063e985e9c51461032957600080fd5b80634668b7ec1461025d578063608887a1146102715780636352211e1461028457806367539d311461029757806370a08231146102b857806395d89b41146102cb57600080fd5b806318160ddd1161011557806318160ddd146101d757806323b872dd146101ea5780632a55205a146101fd57806342842e0e1461022f57806342966c681461024257806343d726d61461025557600080fd5b806301ffc9a71461015257806306fdde031461017a578063081812fc1461018f578063095ea7b3146101ba578063135d088d146101cf575b600080fd5b61016561016036600461164c565b610365565b60405190151581526020015b60405180910390f35b610182610376565b60405161017191906116c8565b6101a261019d3660046116db565b610408565b6040516001600160a01b039091168152602001610171565b6101cd6101c8366004611710565b61042f565b005b61018261054a565b61012d545b604051908152602001610171565b6101cd6101f836600461173a565b6105d9565b61021061020b366004611776565b61060b565b604080516001600160a01b039093168352602083019190915201610171565b6101cd61023d36600461173a565b6106b7565b6101cd6102503660046116db565b6106d2565b6101cd610709565b61012f546101a2906001600160a01b031681565b6101cd61027f366004611844565b610743565b6101a26102923660046116db565b6108a4565b6101dc6102a53660046116db565b61012e6020526000908152604090205481565b6101dc6102c6366004611906565b610904565b61018261098a565b6101dc6101305481565b6101cd6102eb366004611921565b610999565b6101cd6102fe366004611710565b6109a8565b6101cd61031136600461195d565b610a53565b6101826103243660046116db565b610a8b565b6101656103373660046119d9565b6001600160a01b039182166000908152609c6020908152604080832093909416825291909152205460ff1690565b600061037082610ada565b92915050565b60606097805461038590611a0c565b80601f01602080910402602001604051908101604052809291908181526020018280546103b190611a0c565b80156103fe5780601f106103d3576101008083540402835291602001916103fe565b820191906000526020600020905b8154815290600101906020018083116103e157829003601f168201915b5050505050905090565b600061041382610ae5565b506000908152609b60205260409020546001600160a01b031690565b600061043a826108a4565b9050806001600160a01b0316836001600160a01b031614156104ad5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806104c957506104c98133610337565b61053b5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016104a4565b6105458383610b44565b505050565b610131805461055890611a0c565b80601f016020809104026020016040519081016040528092919081815260200182805461058490611a0c565b80156105d15780601f106105a6576101008083540402835291602001916105d1565b820191906000526020600020905b8154815290600101906020018083116105b457829003601f168201915b505050505081565b6105e4335b82610bb2565b6106005760405162461bcd60e51b81526004016104a490611a47565b610545838383610c31565b60008281526066602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916106805750604080518082019091526065546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061069f906001600160601b031687611aaa565b6106a99190611ac9565b915196919550909350505050565b61054583838360405180602001604052806000815250610a53565b61012f546001600160a01b031633146106fd5760405162461bcd60e51b81526004016104a490611aeb565b61070681610d95565b50565b61012f546001600160a01b031633146107345760405162461bcd60e51b81526004016104a490611aeb565b61012f546001600160a01b0316ff5b600054610100900460ff16158080156107635750600054600160ff909116105b8061077d5750303b15801561077d575060005460ff166001145b6107e05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104a4565b6000805460ff191660011790558015610803576000805461ff0019166101001790555b61080d8787610dc3565b610815610df4565b61081d610df4565b84516108319061013190602088019061159d565b5061012f80546001600160a01b031916331790556101308490556108558383610e1d565b801561089b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b6000818152609960205260408120546001600160a01b0316806103705760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104a4565b60006001600160a01b03821661096e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016104a4565b506001600160a01b03166000908152609a602052604090205490565b60606098805461038590611a0c565b6109a4338383610f1a565b5050565b61012f546001600160a01b031633146109d35760405162461bcd60e51b81526004016104a490611aeb565b61012d8054600091826109e583611b3a565b9190505590506109f58382610fe1565b600081815261012e6020526040908190208390555181906001600160a01b038516907fd9c986c7fe52548327a1902193d385036aadb2ad83ea732f3f87efd20bd69ccc90610a469086815260200190565b60405180910390a3505050565b610a5d3383610bb2565b610a795760405162461bcd60e51b81526004016104a490611a47565b610a8584848484610ffb565b50505050565b6060610a95610376565b600083815261012e602052604090205461013190610ab29061102e565b604051602001610ac493929190611b71565b6040516020818303038152906040529050919050565b600061037082611157565b6000818152609960205260409020546001600160a01b03166107065760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104a4565b6000818152609b6020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b79826108a4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610bbe836108a4565b9050806001600160a01b0316846001600160a01b03161480610c0557506001600160a01b038082166000908152609c602090815260408083209388168352929052205460ff165b80610c295750836001600160a01b0316610c1e84610408565b6001600160a01b0316145b949350505050565b826001600160a01b0316610c44826108a4565b6001600160a01b031614610c6a5760405162461bcd60e51b81526004016104a490611cde565b6001600160a01b038216610ccc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104a4565b826001600160a01b0316610cdf826108a4565b6001600160a01b031614610d055760405162461bcd60e51b81526004016104a490611cde565b6000818152609b6020908152604080832080546001600160a01b03199081169091556001600160a01b03878116808652609a8552838620805460001901905590871680865283862080546001019055868652609990945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610d9e336105de565b610dba5760405162461bcd60e51b81526004016104a490611a47565b61070681611197565b600054610100900460ff16610dea5760405162461bcd60e51b81526004016104a490611d23565b6109a482826111a0565b600054610100900460ff16610e1b5760405162461bcd60e51b81526004016104a490611d23565b565b6127106001600160601b0382161115610e8b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016104a4565b6001600160a01b038216610ee15760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016104a4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217606555565b816001600160a01b0316836001600160a01b03161415610f7c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104a4565b6001600160a01b038381166000818152609c6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101610a46565b6109a48282604051806020016040528060008152506111ee565b611006848484610c31565b61101284848484611221565b610a855760405162461bcd60e51b81526004016104a490611d6e565b6060816110525750506040805180820190915260018152600360fc1b602082015290565b8160005b811561107c578061106681611b3a565b91506110759050600a83611ac9565b9150611056565b60008167ffffffffffffffff81111561109757611097611798565b6040519080825280601f01601f1916602001820160405280156110c1576020820181803683370190505b509050815b851561114e576110d7600182611dc0565b905060006110e6600a88611ac9565b6110f190600a611aaa565b6110fb9088611dc0565b611106906030611dd7565b905060008160f81b90508084848151811061112357611123611dfc565b60200101906001600160f81b031916908160001a905350611145600a89611ac9565b975050506110c6565b50949350505050565b60006001600160e01b031982166380ac58cd60e01b148061118857506001600160e01b03198216635b5e139f60e01b145b8061037057506103708261132e565b61070681611363565b600054610100900460ff166111c75760405162461bcd60e51b81526004016104a490611d23565b81516111da90609790602085019061159d565b50805161054590609890602084019061159d565b6111f8838361137d565b6112056000848484611221565b6105455760405162461bcd60e51b81526004016104a490611d6e565b60006001600160a01b0384163b1561132357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611265903390899088908890600401611e12565b602060405180830381600087803b15801561127f57600080fd5b505af19250505080156112af575060408051601f3d908101601f191682019092526112ac91810190611e4f565b60015b611309573d8080156112dd576040519150601f19603f3d011682016040523d82523d6000602084013e6112e2565b606091505b5080516113015760405162461bcd60e51b81526004016104a490611d6e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c29565b506001949350505050565b60006001600160e01b0319821663152a902d60e11b148061037057506301ffc9a760e01b6001600160e01b0319831614610370565b61136c81611508565b600090815260666020526040812055565b6001600160a01b0382166113d35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104a4565b6000818152609960205260409020546001600160a01b0316156114385760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104a4565b6000818152609960205260409020546001600160a01b03161561149d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104a4565b6001600160a01b0382166000818152609a6020908152604080832080546001019055848352609990915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611513826108a4565b905061151e826108a4565b6000838152609b6020908152604080832080546001600160a01b03199081169091556001600160a01b038516808552609a845282852080546000190190558785526099909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8280546115a990611a0c565b90600052602060002090601f0160209004810192826115cb5760008555611611565b82601f106115e457805160ff1916838001178555611611565b82800160010185558215611611579182015b828111156116115782518255916020019190600101906115f6565b5061161d929150611621565b5090565b5b8082111561161d5760008155600101611622565b6001600160e01b03198116811461070657600080fd5b60006020828403121561165e57600080fd5b813561166981611636565b9392505050565b60005b8381101561168b578181015183820152602001611673565b83811115610a855750506000910152565b600081518084526116b4816020860160208601611670565b601f01601f19169290920160200192915050565b602081526000611669602083018461169c565b6000602082840312156116ed57600080fd5b5035919050565b80356001600160a01b038116811461170b57600080fd5b919050565b6000806040838503121561172357600080fd5b61172c836116f4565b946020939093013593505050565b60008060006060848603121561174f57600080fd5b611758846116f4565b9250611766602085016116f4565b9150604084013590509250925092565b6000806040838503121561178957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156117c9576117c9611798565b604051601f8501601f19908116603f011681019082821181831017156117f1576117f1611798565b8160405280935085815286868601111561180a57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261183557600080fd5b611669838335602085016117ae565b60008060008060008060c0878903121561185d57600080fd5b863567ffffffffffffffff8082111561187557600080fd5b6118818a838b01611824565b9750602089013591508082111561189757600080fd5b6118a38a838b01611824565b965060408901359150808211156118b957600080fd5b506118c689828a01611824565b945050606087013592506118dc608088016116f4565b915060a08701356001600160601b03811681146118f857600080fd5b809150509295509295509295565b60006020828403121561191857600080fd5b611669826116f4565b6000806040838503121561193457600080fd5b61193d836116f4565b91506020830135801515811461195257600080fd5b809150509250929050565b6000806000806080858703121561197357600080fd5b61197c856116f4565b935061198a602086016116f4565b925060408501359150606085013567ffffffffffffffff8111156119ad57600080fd5b8501601f810187136119be57600080fd5b6119cd878235602084016117ae565b91505092959194509250565b600080604083850312156119ec57600080fd5b6119f5836116f4565b9150611a03602084016116f4565b90509250929050565b600181811c90821680611a2057607f821691505b60208210811415611a4157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611ac457611ac4611a94565b500290565b600082611ae657634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602f908201527f4f6e6c792047726f75704275794e4654506c6174666f726d2063616e2063616c60408201526e36103a3434b990333ab731ba34b7b760891b606082015260800190565b6000600019821415611b4e57611b4e611a94565b5060010190565b60008151611b67818560208601611670565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d81526000602063032911d160e51b818401528551611bb68160248601848a01611670565b6a011161034b6b0b3b2911d160ad1b6024918501918201528554602f90600090600181811c9080831680611beb57607f831692505b878310811415611c0957634e487b7160e01b85526022600452602485fd5b808015611c1d5760018114611c3257611c63565b60ff1985168888015283880187019550611c63565b60008d81526020902060005b85811015611c595781548a82018a0152908401908a01611c3e565b5050868489010195505b50507f2c202261747472696275746573223a205b7b2274726169745f74797065223a22845250507f636f6e7472696275746564416d6f756e74222c202276616c7565223a22000000602083015250611cd1611cc1603d830189611b55565b63227d5d7d60e01b815260040190565b9998505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082821015611dd257611dd2611a94565b500390565b600060ff821660ff84168060ff03821115611df457611df4611a94565b019392505050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e459083018461169c565b9695505050505050565b600060208284031215611e6157600080fd5b81516116698161163656fea2646970667358221220acacfa646c15ed2bb99145f31d2057e1273446aab7ed35827157f85b9e702db964736f6c63430008090033