ERC-721
NFT
Overview
Max Total Supply
3,000 KUMA
Holders
1,317
Market
Volume (24H)
0.005 ETH
Min Price (24H)
$19.18 @ 0.005000 ETH
Max Price (24H)
$19.18 @ 0.005000 ETH
Other Info
Token Contract
Balance
1 KUMALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Kumaleon
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity =0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "./IERC998.sol"; import "./KumaleonGenArt.sol"; // LICENSE // Kumaleon.sol is a modified version of MoonCatAcclimator.sol: // https://github.com/cryptocopycats/contracts/blob/master/mooncats-acclimated/MoonCatAcclimator.sol // // MoonCatAcclimator.sol source code licensed under the GPL-3.0-only license. // Additional conditions of GPL-3.0-only can be found here: https://spdx.org/licenses/GPL-3.0-only.html // // MODIFICATIONS // Kumaleon.sol modifies MoonCatAcclimator to use IERC2981 and original mint(). // And it controls the child tokens so that only authorized tokens are reflected in the NFT visual. contract Kumaleon is ERC721, ERC721Holder, Ownable, IERC998ERC721TopDown, IERC998ERC721TopDownEnumerable, IERC2981, ReentrancyGuard { // ERC998 bytes32 private constant ERC998_MAGIC_VALUE = 0x00000000000000000000000000000000000000000000000000000000cd740db5; bytes4 private constant _INTERFACE_ID_ERC998ERC721TopDown = 0xcde244d9; bytes4 private constant _INTERFACE_ID_ERC998ERC721TopDownEnumerable = 0xa344afe4; // kumaleon struct AllowlistEntry { uint256 minTokenId; uint256 maxTokenId; address beneficiary; } uint256 public constant MAX_SUPPLY = 3_000; uint256 public totalSupply; uint256 public royaltyPercentage = 10; uint256 public parentLockAge = 25; uint256 private constant FEE_DENOMINATOR = 100; address public minter; address public moltingHelper; address public genArt; address private defaultBeneficiary; address public constant OKAZZ = 0x783dFB5811B0540875f451c48C13aF6Dd8D42DF5; string private baseURI; mapping(uint256 => bytes32) public tokenIdToHash; mapping(uint256 => bool) public isMolted; mapping(uint256 => uint256) public lastTransferChildBlockNumbers; mapping(address => AllowlistEntry[]) public childTokenAllowlist; bool public isMetadataFrozen; bool public isGenArtFrozen; bool public isRevealStarted; bool public isChildTokenAcceptable; event KumaleonTransfer(uint256 tokenId, address childToken, uint256 childTokenId); event StartReveal(); event BaseURIUpdated(string baseURI); event SetChildTokenAllowlist(address _address, uint256 minTokenId, uint256 maxTokenId); event DeleteChildTokenAllowlist(address _address, uint256 _index); event SetGenArt(address _address); constructor(address _defaultBeneficiary) ERC721("KUMALEON", "KUMA") { setDefaultBeneficiary(_defaultBeneficiary); } function mint(address _to, uint256 _quantity) external nonReentrant { require(totalSupply + _quantity <= MAX_SUPPLY, "Kumaleon: invalid quantity"); require(msg.sender == minter, "Kumaleon: call from only minter"); for (uint256 i = 0; i < _quantity; i++) { uint256 tokenId = totalSupply; totalSupply++; tokenIdToHash[tokenId] = keccak256( abi.encodePacked(tokenId, block.number, blockhash(block.number - 1), _to) ); _safeMint(OKAZZ, tokenId); _safeTransfer(OKAZZ, _to, tokenId, ""); } } function molt( address _to, uint256[] memory _tokenIds, uint256[] memory _childTokenIds ) external nonReentrant { require(msg.sender == moltingHelper, "Kumaleon: call from only molting helper"); require(_tokenIds.length == _childTokenIds.length, "Kumaleon: invalid length"); for (uint256 i = 0; i < _tokenIds.length; i++) { address rootOwner = address(uint160(uint256(rootOwnerOf(_tokenIds[i])))); require(rootOwner == _to, "Kumaleon: Token not owned"); isMolted[_tokenIds[i]] = true; lastTransferChildBlockNumbers[_tokenIds[i]] = block.number; KumaleonGenArt(genArt).mintWithHash( address(this), _to, _childTokenIds[i], tokenIdToHash[_tokenIds[i]] ); IERC721(genArt).safeTransferFrom(address(this), _to, _childTokenIds[i]); emit TransferChild(_tokenIds[i], _to, genArt, _childTokenIds[i]); } } function setBaseURI(string memory _newBaseURI) external onlyOwner { require(!isMetadataFrozen, "Kumaleon: Already frozen"); baseURI = _newBaseURI; emit BaseURIUpdated(_newBaseURI); } function freezeMetadata() external onlyOwner { require(!isMetadataFrozen, "Kumaleon: Already frozen"); isMetadataFrozen = true; } function startReveal() external onlyOwner { require(!isRevealStarted, "Kumaleon: Already revealed"); isRevealStarted = true; emit StartReveal(); } function setIsChildTokenAcceptable(bool _bool) external onlyOwner { isChildTokenAcceptable = _bool; } function setMinterAddress(address _minterAddress) external onlyOwner { minter = _minterAddress; } function setMoltingHelperAddress(address _helperAddress) external onlyOwner { moltingHelper = _helperAddress; isChildTokenAcceptable = true; } function setChildTokenAllowlist( address _address, uint256 _minTokenId, uint256 _maxTokenId, address _beneficiary ) external onlyOwner { childTokenAllowlist[_address].push(AllowlistEntry(_minTokenId, _maxTokenId, _beneficiary)); emit SetChildTokenAllowlist(_address, _minTokenId, _maxTokenId); } function updateChildTokenAllowlistBeneficiary( address _childContract, uint256 _index, address _beneficiary ) public onlyOwner { childTokenAllowlist[_childContract][_index].beneficiary = _beneficiary; } function updateChildTokenAllowlistsBeneficiary( address[] memory _childContracts, uint256[] memory _indices, address[] memory _beneficiaries ) external onlyOwner { require( _childContracts.length == _indices.length && _indices.length == _beneficiaries.length, "Kumaleon: invalid length" ); for (uint256 i = 0; i < _childContracts.length; i++) { updateChildTokenAllowlistBeneficiary( _childContracts[i], _indices[i], _beneficiaries[i] ); } } // This function could break the original order of array to save gas fees. function deleteChildTokenAllowlist(address _address, uint256 _index) external onlyOwner { require(_index < childTokenAllowlist[_address].length, "Kumaleon: allowlist not found"); childTokenAllowlist[_address][_index] = childTokenAllowlist[_address][ childTokenAllowlist[_address].length - 1 ]; childTokenAllowlist[_address].pop(); if (childTokenAllowlist[_address].length == 0) { delete childTokenAllowlist[_address]; } emit DeleteChildTokenAllowlist(_address, _index); } function childTokenAllowlistByAddress(address _childContract) external view returns (AllowlistEntry[] memory) { return childTokenAllowlist[_childContract]; } function setGenArt(address _address) external onlyOwner { require(!isGenArtFrozen, "Kumaleon: Already frozen"); genArt = _address; emit SetGenArt(_address); } function freezeGenArt() external onlyOwner { require(!isGenArtFrozen, "Kumaleon: Already frozen"); isGenArtFrozen = true; } function _baseURI() internal view override returns (string memory) { return baseURI; } function onERC721Received( address _operator, address _from, uint256 _childTokenId, bytes memory _data ) public override(ERC721Holder, IERC998ERC721TopDown) returns (bytes4) { require( _data.length > 0, "Kumaleon: _data must contain the uint256 tokenId to transfer the child token to." ); // convert up to 32 bytes of_data to uint256, owner nft tokenId passed as uint in bytes uint256 tokenId; assembly { tokenId := calldataload(164) } if (_data.length < 32) { tokenId = tokenId >> (256 - _data.length * 8); } require( IERC721(msg.sender).ownerOf(_childTokenId) == address(this), "Kumaleon: Child token not owned." ); _receiveChild(_from, tokenId, msg.sender, _childTokenId); return ERC721Holder.onERC721Received(_operator, _from, _childTokenId, _data); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override { require(isParentTransferable(tokenId), "Kumaleon: transfer is not allowed"); } function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal override { address childContract = childContracts[tokenId].length() > 0 ? childContractByIndex(tokenId, 0) : address(0); emit KumaleonTransfer( tokenId, childContract, childContract != address(0) ? childTokenByIndex(tokenId, childContract, 0) : 0 ); } ///// ERC998 ///// using EnumerableSet for EnumerableSet.UintSet; using EnumerableSet for EnumerableSet.AddressSet; /// @dev mapping of local token IDs, and which addresses they own children at. /// tokenId => child contract mapping(uint256 => EnumerableSet.AddressSet) private childContracts; /// @dev mapping of local token IDs, addresses they own children at, and IDs of the specific child tokens /// tokenId => (child address => array of child tokens) mapping(uint256 => mapping(address => EnumerableSet.UintSet)) private childTokens; /// @dev mapping of addresses of child tokens, the specific child token IDs, and which local token owns them /// child address => childId => tokenId mapping(address => mapping(uint256 => uint256)) internal childTokenOwner; /** * @dev a token has been transferred to this contract mark which local token is to now own it * Emits a {ReceivedChild} event. * * @param _from the address who sent the token to this contract * @param _tokenId the local token ID that is to be the parent * @param _childContract the address of the child token's contract * @param _childTokenId the ID value of teh incoming child token */ function _receiveChild( address _from, uint256 _tokenId, address _childContract, uint256 _childTokenId ) private { // kumaleon <-- require(isChildTokenAcceptable, "Kumaleon: Child received while paused"); require(isMolted[_tokenId], "Kumaleon: Child received before molt"); require( _msgSender() == _childContract || _msgSender() == _from, "Kumaleon: invalid msgSender" ); address rootOwner = address(uint160(uint256(rootOwnerOf(_tokenId)))); require(_from == rootOwner, "Kumaleon: only owner can transfer child tokens"); require(_isTokenAllowed(_childContract, _childTokenId), "Kumaleon: Token not allowed"); if (childContracts[_tokenId].length() != 0) { address oldChildContract = childContractByIndex(_tokenId, 0); uint256 oldChildTokenId = childTokenByIndex(_tokenId, oldChildContract, 0); _removeChild(_tokenId, oldChildContract, oldChildTokenId); ERC721(oldChildContract).safeTransferFrom(address(this), rootOwner, oldChildTokenId); emit TransferChild(_tokenId, rootOwner, oldChildContract, oldChildTokenId); } require( childContracts[_tokenId].length() == 0, "Kumaleon: Cannot receive child token because it has already had" ); // kumaleon --> childContracts[_tokenId].add(_childContract); childTokens[_tokenId][_childContract].add(_childTokenId); childTokenOwner[_childContract][_childTokenId] = _tokenId; emit ReceivedChild(_from, _tokenId, _childContract, _childTokenId); } function _isTokenAllowed(address _childContract, uint256 _childTokenId) private view returns (bool) { bool allowed; for (uint256 i = 0; i < childTokenAllowlist[_childContract].length; i++) { if ( childTokenAllowlist[_childContract][i].minTokenId <= _childTokenId && _childTokenId <= childTokenAllowlist[_childContract][i].maxTokenId ) { allowed = true; break; } } return allowed; } /** * @dev See {IERC998ERC721TopDown-getChild}. */ function getChild( address _from, uint256 _tokenId, address _childContract, uint256 _childTokenId ) external override { _receiveChild(_from, _tokenId, _childContract, _childTokenId); IERC721(_childContract).transferFrom(_from, address(this), _childTokenId); } /** * @dev Given a child address/ID that is owned by some token in this contract, return that owning token's owner * @param _childContract the address of the child asset being queried * @param _childTokenId the specific ID of the child asset being queried * @return parentTokenOwner the address of the owner of that child's parent asset * @return parentTokenId the local token ID that is the parent of that child asset */ function _ownerOfChild(address _childContract, uint256 _childTokenId) internal view returns (address parentTokenOwner, uint256 parentTokenId) { parentTokenId = childTokenOwner[_childContract][_childTokenId]; require( childTokens[parentTokenId][_childContract].contains(_childTokenId), "Kumaleon: That child is not owned by a token in this contract" ); return (ownerOf(parentTokenId), parentTokenId); } /** * @dev See {IERC998ERC721TopDown-ownerOfChild}. */ function ownerOfChild(address _childContract, uint256 _childTokenId) external view override returns (bytes32 parentTokenOwner, uint256 parentTokenId) { parentTokenId = childTokenOwner[_childContract][_childTokenId]; require( childTokens[parentTokenId][_childContract].contains(_childTokenId), "Kumaleon: That child is not owned by a token in this contract" ); return ( (ERC998_MAGIC_VALUE << 224) | bytes32(uint256(uint160(ownerOf(parentTokenId)))), parentTokenId ); } /** * @dev See {IERC998ERC721TopDown-rootOwnerOf}. */ function rootOwnerOf(uint256 _tokenId) public view override returns (bytes32 rootOwner) { return rootOwnerOfChild(address(0), _tokenId); } /** * @dev See {IERC998ERC721TopDown-rootOwnerOfChild}. */ function rootOwnerOfChild(address _childContract, uint256 _childTokenId) public view override returns (bytes32 rootOwner) { address rootOwnerAddress; if (_childContract != address(0)) { (rootOwnerAddress, _childTokenId) = _ownerOfChild(_childContract, _childTokenId); } else { rootOwnerAddress = ownerOf(_childTokenId); } // Case 1: Token owner is this contract and token. while (rootOwnerAddress == address(this)) { (rootOwnerAddress, _childTokenId) = _ownerOfChild(rootOwnerAddress, _childTokenId); } (bool callSuccess, bytes memory data) = rootOwnerAddress.staticcall( abi.encodeWithSelector(0xed81cdda, address(this), _childTokenId) ); if (data.length != 0) { rootOwner = abi.decode(data, (bytes32)); } if (callSuccess == true && rootOwner >> 224 == ERC998_MAGIC_VALUE) { // Case 2: Token owner is other top-down composable return rootOwner; } else { // Case 3: Token owner is other contract // Or // Case 4: Token owner is user return (ERC998_MAGIC_VALUE << 224) | bytes32(uint256(uint160(rootOwnerAddress))); } } /** * @dev remove internal records linking a given child to a given parent * @param _tokenId the local token ID that is the parent of the child asset * @param _childContract the address of the child asset to remove * @param _childTokenId the specific ID representing the child asset to be removed */ function _removeChild( uint256 _tokenId, address _childContract, uint256 _childTokenId ) private { require( childTokens[_tokenId][_childContract].contains(_childTokenId), "Kumaleon: Child token not owned by token" ); // remove child token childTokens[_tokenId][_childContract].remove(_childTokenId); delete childTokenOwner[_childContract][_childTokenId]; // kumaleon lastTransferChildBlockNumbers[_tokenId] = block.number; // remove contract if (childTokens[_tokenId][_childContract].length() == 0) { childContracts[_tokenId].remove(_childContract); } } /** * @dev check permissions are correct for a transfer of a child asset * @param _fromTokenId the local ID of the token that is the parent * @param _to the address this child token is being transferred to * @param _childContract the address of the child asset's contract * @param _childTokenId the specific ID for the child asset being transferred */ function _checkTransferChild( uint256 _fromTokenId, address _to, address _childContract, uint256 _childTokenId ) private view { uint256 tokenId = childTokenOwner[_childContract][_childTokenId]; require( childTokens[tokenId][_childContract].contains(_childTokenId), "Kumaleon: Child asset is not owned by a token in this contract" ); require(tokenId == _fromTokenId, "Kumaleon: Parent does not own that asset"); address rootOwner = address(uint160(uint256(rootOwnerOf(_fromTokenId)))); require( _msgSender() == rootOwner || getApproved(_fromTokenId) == _msgSender() || isApprovedForAll(rootOwner, _msgSender()), "Kumaleon: Not allowed to transfer child assets of parent" ); } /** * @dev See {IERC998ERC721TopDown-safeTransferChild}. */ function safeTransferChild( uint256 _fromTokenId, address _to, address _childContract, uint256 _childTokenId ) public override { _checkTransferChild(_fromTokenId, _to, _childContract, _childTokenId); _removeChild(_fromTokenId, _childContract, _childTokenId); ERC721(_childContract).safeTransferFrom(address(this), _to, _childTokenId); emit TransferChild(_fromTokenId, _to, _childContract, _childTokenId); } /** * @dev See {IERC998ERC721TopDown-safeTransferChild}. */ function safeTransferChild( uint256 _fromTokenId, address _to, address _childContract, uint256 _childTokenId, bytes calldata _data ) public override { _checkTransferChild(_fromTokenId, _to, _childContract, _childTokenId); _removeChild(_fromTokenId, _childContract, _childTokenId); ERC721(_childContract).safeTransferFrom(address(this), _to, _childTokenId, _data); emit TransferChild(_fromTokenId, _to, _childContract, _childTokenId); } /** * @dev See {IERC998ERC721TopDown-transferChild}. */ function transferChild( uint256 _fromTokenId, address _to, address _childContract, uint256 _childTokenId ) public override { _checkTransferChild(_fromTokenId, _to, _childContract, _childTokenId); _removeChild(_fromTokenId, _childContract, _childTokenId); //this is here to be compatible with cryptokitties and other old contracts that require being owner and approved // before transferring. //does not work with current standard which does not allow approving self, so we must let it fail in that case. //0x095ea7b3 == "approve(address,uint256)" (bool success, bytes memory data) = _childContract.call( abi.encodeWithSelector(0x095ea7b3, this, _childTokenId) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "Kumaleon: Failed to Approve" ); ERC721(_childContract).transferFrom(address(this), _to, _childTokenId); emit TransferChild(_fromTokenId, _to, _childContract, _childTokenId); } /** * @dev See {IERC998ERC721TopDown-transferChildToParent}. */ function transferChildToParent( uint256 _fromTokenId, address _toContract, uint256 _toTokenId, address _childContract, uint256 _childTokenId, bytes calldata _data ) public override { _checkTransferChild(_fromTokenId, _toContract, _childContract, _childTokenId); _removeChild(_fromTokenId, _childContract, _childTokenId); IERC998ERC721BottomUp(_childContract).transferToParent( address(this), _toContract, _toTokenId, _childTokenId, _data ); emit TransferChild(_fromTokenId, _toContract, _childContract, _childTokenId); } ///// ERC998 Enumerable /** * @dev See {IERC998ERC721TopDownEnumerable-totalChildContracts}. */ function totalChildContracts(uint256 _tokenId) public view override returns (uint256) { return childContracts[_tokenId].length(); } /** * @dev See {IERC998ERC721TopDownEnumerable-childContractByIndex}. */ function childContractByIndex(uint256 _tokenId, uint256 _index) public view override returns (address childContract) { return childContracts[_tokenId].at(_index); } /** * @dev See {IERC998ERC721TopDownEnumerable-totalChildTokens}. */ function totalChildTokens(uint256 _tokenId, address _childContract) external view override returns (uint256) { return childTokens[_tokenId][_childContract].length(); } /** * @dev See {IERC998ERC721TopDownEnumerable-childTokenByIndex}. */ function childTokenByIndex( uint256 _tokenId, address _childContract, uint256 _index ) public view override returns (uint256 childTokenId) { return childTokens[_tokenId][_childContract].at(_index); } // kumaleon ERC998 function isParentTransferable(uint256 _tokenId) public view returns (bool) { return lastTransferChildBlockNumbers[_tokenId] + parentLockAge < block.number; } function updateParentLockAge(uint256 _age) external onlyOwner { parentLockAge = _age; } function childTokenDetail(uint256 _tokenId) external view returns (address _childContract, uint256 _childTokenId) { require(super._exists(_tokenId), "Kumaleon: _tokenId does not exist"); _childContract = childContracts[_tokenId].length() > 0 ? childContractByIndex(_tokenId, 0) : address(0); _childTokenId = _childContract != address(0) ? childTokenByIndex(_tokenId, _childContract, 0) : 0; } // interface function supportsInterface(bytes4 interfaceId) public view override(IERC165, ERC721) returns (bool) { return interfaceId == _INTERFACE_ID_ERC998ERC721TopDown || interfaceId == _INTERFACE_ID_ERC998ERC721TopDownEnumerable || interfaceId == type(IERC721Receiver).interfaceId || interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } // royalty function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view override returns (address receiver, uint256 royaltyAmount) { bool isTokenHasChild = totalChildContracts(_tokenId) != 0; uint256 defaultRoyaltyAmount = (_salePrice * royaltyPercentage) / FEE_DENOMINATOR; if (!isTokenHasChild) { return (defaultBeneficiary, defaultRoyaltyAmount); } address childContract = Kumaleon(address(this)).childContractByIndex(_tokenId, 0); uint256 childTokenId = Kumaleon(address(this)).childTokenByIndex( _tokenId, childContract, 0 ); for (uint256 i = 0; i < childTokenAllowlist[childContract].length; i++) { if ( childTokenAllowlist[childContract][i].minTokenId <= childTokenId && childTokenId <= childTokenAllowlist[childContract][i].maxTokenId ) { receiver = childTokenAllowlist[childContract][i].beneficiary; royaltyAmount = (_salePrice * royaltyPercentage) / FEE_DENOMINATOR; return (receiver, royaltyAmount); } } return (defaultBeneficiary, defaultRoyaltyAmount); } function setDefaultBeneficiary(address _receiver) public onlyOwner { require(_receiver != address(0), "Kumaleon: invalid receiver"); defaultBeneficiary = _receiver; } function setRoyaltyPercentage(uint256 _feeNumerator) external onlyOwner { require(_feeNumerator <= FEE_DENOMINATOR, "Kumaleon: royalty fee will exceed salePrice"); royaltyPercentage = _feeNumerator; } }
//SPDX-License-Identifier: MIT pragma solidity =0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./Kumaleon.sol"; contract KumaleonMinter is Ownable, ReentrancyGuard { uint256 private constant OWNER_ALLOTMENT = 450; uint256 private _totalOwnerMinted; bytes32 public merkleRoot; bool public isAllowlistMintActive; bool public isPublicMintActive; mapping(bytes32 => bool) public isMinted; Kumaleon public kumaleon; function allowlistMint( uint8[] memory _grades, uint256[] memory _quantities, bytes32[][] calldata proofs ) external nonReentrant { require(isAllowlistMintActive, "KumaleonMinter: mint is not opened"); require(_grades.length != 0, "KumaleonMinter: no mint is available"); require( _grades.length == _quantities.length && _quantities.length == proofs.length, "KumaleonMinter: invalid length" ); uint256 quantity; for (uint256 i = 0; i < _grades.length; i++) { bytes32 leaf = keccak256(abi.encode(msg.sender, _grades[i], _quantities[i])); require( MerkleProof.verify(proofs[i], merkleRoot, leaf), "KumaleonMinter: Invalid proof" ); require(!isMinted[leaf], "KumaleonMinter: already minted"); isMinted[leaf] = true; quantity += _quantities[i]; } kumaleon.mint(msg.sender, quantity); } function publicMint() external nonReentrant { require(isPublicMintActive, "KumaleonMinter: mint is not opened"); kumaleon.mint(msg.sender, 1); } function ownerMint(address _to, uint256 _quantity) external onlyOwner { require( _totalOwnerMinted + _quantity <= OWNER_ALLOTMENT, "KumaleonMinter: invalid quantity" ); _totalOwnerMinted += _quantity; kumaleon.mint(_to, _quantity); } function setIsAllowlistMintActive(bool _isAllowlistMintActive) external onlyOwner { require(merkleRoot != 0, "KumaleonMinter: merkleRoot is not set"); isAllowlistMintActive = _isAllowlistMintActive; } function setIsPublicMintActive(bool _isPublicMintActive) external onlyOwner { isPublicMintActive = _isPublicMintActive; } function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function setKumaleonAddress(address _kumaleonAddress) external onlyOwner { kumaleon = Kumaleon(_kumaleonAddress); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity =0.8.9; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./IKumaleonGenArt.sol"; // LICENSE // KumaleonGenArt.sol is a modified version of ArtBlocks' GenArt721CoreV2_PBAB.sol: // https://github.com/ArtBlocks/artblocks-contracts/blob/main/contracts/PBAB%2BCollabs/GenArt721CoreV2_PBAB.sol // // GenArt721CoreV2_PBAB.sol source code licensed under the LGPL-3.0-only license. // Additional conditions of LGPL-3.0-only can be found here: https://spdx.org/licenses/LGPL-3.0-only.html // // MODIFICATIONS // KumaleonGenArt.sol modifies GenArt721CoreV2_PBAB to use IERC2981 and original mintWithHash(). contract KumaleonGenArt is ERC721, IKumaleonGenArt, IERC2981, ReentrancyGuard { struct Project { string name; string artist; string description; string website; string license; string projectBaseURI; uint256 invocations; uint256 maxInvocations; string scriptJSON; mapping(uint256 => string) scripts; uint256 scriptCount; string ipfsHash; bool active; bool locked; bool paused; } uint256 constant ONE_MILLION = 1_000_000; mapping(uint256 => Project) projects; //All financial functions are stripped from struct for visibility mapping(uint256 => address payable) public override(IKumaleonGenArt) projectIdToArtistAddress; mapping(uint256 => string) public override(IKumaleonGenArt) projectIdToCurrencySymbol; mapping(uint256 => address) public override(IKumaleonGenArt) projectIdToCurrencyAddress; mapping(uint256 => uint256) public override(IKumaleonGenArt) projectIdToPricePerTokenInWei; mapping(uint256 => address payable) public override(IKumaleonGenArt) projectIdToAdditionalPayee; mapping(uint256 => uint256) public override(IKumaleonGenArt) projectIdToAdditionalPayeePercentage; mapping(uint256 => uint256) public projectIdToSecondaryMarketRoyaltyPercentage; address payable public override(IKumaleonGenArt) renderProviderAddress; /// Percentage of mint revenue allocated to render provider uint256 public override(IKumaleonGenArt) renderProviderPercentage = 10; mapping(uint256 => uint256) public override(IKumaleonGenArt) tokenIdToProjectId; mapping(uint256 => bytes32) public tokenIdToHash; mapping(bytes32 => uint256) public hashToTokenId; /// admin for contract address public override(IKumaleonGenArt) admin; /// true if address is whitelisted mapping(address => bool) public override(IKumaleonGenArt) isWhitelisted; /// true if minter is whitelisted mapping(address => bool) public isMintWhitelisted; /// next project ID to be created uint256 public override(IKumaleonGenArt) nextProjectId = 0; // kumaleon address public kumaleon; bool public isKumaleonFrozen; modifier onlyValidTokenId(uint256 _tokenId) { require(_exists(_tokenId), "Token ID does not exist"); _; } modifier onlyUnlocked(uint256 _projectId) { require(!projects[_projectId].locked, "Only if unlocked"); _; } modifier onlyAdmin() { require(msg.sender == admin, "Only admin"); _; } modifier onlyWhitelisted() { require(isWhitelisted[msg.sender], "Only whitelisted"); _; } /** * @notice Initializes contract. * @param _tokenName Name of token. * @param _tokenSymbol Token symbol. */ constructor(string memory _tokenName, string memory _tokenSymbol) ERC721(_tokenName, _tokenSymbol) { admin = msg.sender; isWhitelisted[msg.sender] = true; renderProviderAddress = payable(msg.sender); } /** * @notice Mints a token from project `_projectId` and sets the * token's owner to `_to`. * @param _to Address to be the minted token's owner. * @param _projectId Project ID to mint a token on. * @param _by Purchaser of minted token. * @dev sender must be a whitelisted minter */ function mint( address _to, uint256 _projectId, address _by ) external override(IKumaleonGenArt) returns (uint256 _tokenId) { revert("disabled"); } /** * @notice Mints a token from hash `_hash` and sets the * token's owner to `_to`. * @param _to Address to be the minted token's owner. * @param _by Purchaser of minted token. * @param _tokenId TokenId of minted token. * @param _hash hash of minted token. * @dev sender must be a whitelisted minter */ function mintWithHash( address _to, address _by, uint256 _tokenId, bytes32 _hash ) external nonReentrant returns (uint256 _mintedTokenId) { require(kumaleon == msg.sender, "Must mint from kumaleon contract."); uint256 _projectId = _tokenId / ONE_MILLION; require( _tokenId % ONE_MILLION < projects[_projectId].maxInvocations, "Must not exceed max invocations" ); require( projects[_projectId].active || _by == projectIdToArtistAddress[_projectId], "Project must exist and be active" ); require( !projects[_projectId].paused || _by == projectIdToArtistAddress[_projectId], "Purchases are paused." ); uint256 mintedTokenId = _mintToken(_to, _projectId, _tokenId, _hash); return mintedTokenId; } function _mintToken( address _to, uint256 _projectId, uint256 _tokenId, bytes32 _hash ) internal returns (uint256 _mintedTokenId) { projects[_projectId].invocations = projects[_projectId].invocations + 1; tokenIdToHash[_tokenId] = _hash; hashToTokenId[_hash] = _tokenId; _mint(_to, _tokenId); tokenIdToProjectId[_tokenId] = _projectId; emit Mint(_to, _tokenId, _projectId); return _tokenId; } /** * @notice Updates contract admin to `_adminAddress`. */ function updateAdmin(address _adminAddress) public onlyAdmin { admin = _adminAddress; } /** * @notice Updates render provider address to `_renderProviderAddress`. */ function updateRenderProviderAddress(address payable _renderProviderAddress) public onlyAdmin { renderProviderAddress = _renderProviderAddress; } /** * @notice Updates render provider mint revenue percentage to * `_renderProviderPercentage`. */ function updateRenderProviderPercentage(uint256 _renderProviderPercentage) public onlyAdmin { require(_renderProviderPercentage <= 25, "Max of 25%"); renderProviderPercentage = _renderProviderPercentage; } /** * @notice Whitelists `_address`. */ function addWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = true; } /** * @notice Revokes whitelisting of `_address`. */ function removeWhitelisted(address _address) public onlyAdmin { isWhitelisted[_address] = false; } /** * @notice Whitelists minter `_address`. */ function addMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = true; } /** * @notice Revokes whitelisting of minter `_address`. */ function removeMintWhitelisted(address _address) public onlyAdmin { isMintWhitelisted[_address] = false; } /** * @notice Locks project `_projectId`. */ function toggleProjectIsLocked(uint256 _projectId) public onlyWhitelisted onlyUnlocked(_projectId) { projects[_projectId].locked = true; } /** * @notice Toggles project `_projectId` as active/inactive. */ function toggleProjectIsActive(uint256 _projectId) public onlyWhitelisted { projects[_projectId].active = !projects[_projectId].active; } /** * @notice Updates artist of project `_projectId` to `_artistAddress`. */ function updateProjectArtistAddress(uint256 _projectId, address payable _artistAddress) public onlyWhitelisted { projectIdToArtistAddress[_projectId] = _artistAddress; } /** * @notice Toggles paused state of project `_projectId`. */ function toggleProjectIsPaused(uint256 _projectId) public onlyWhitelisted { projects[_projectId].paused = !projects[_projectId].paused; } /** * @notice Adds new project `_projectName` by `_artistAddress`. * @param _projectName Project name. * @param _artistAddress Artist's address. * @param _pricePerTokenInWei Price to mint a token, in Wei. */ function addProject( string memory _projectName, address payable _artistAddress, uint256 _pricePerTokenInWei ) public onlyWhitelisted { uint256 projectId = nextProjectId; projectIdToArtistAddress[projectId] = _artistAddress; projects[projectId].name = _projectName; projectIdToCurrencySymbol[projectId] = "ETH"; projectIdToPricePerTokenInWei[projectId] = _pricePerTokenInWei; projects[projectId].paused = true; projects[projectId].maxInvocations = ONE_MILLION; nextProjectId = nextProjectId + 1; } /** * @notice Updates payment currency of project `_projectId` to be * `_currencySymbol`. * @param _projectId Project ID to update. * @param _currencySymbol Currency symbol. * @param _currencyAddress Currency address. */ function updateProjectCurrencyInfo( uint256 _projectId, string memory _currencySymbol, address _currencyAddress ) public onlyWhitelisted { projectIdToCurrencySymbol[_projectId] = _currencySymbol; projectIdToCurrencyAddress[_projectId] = _currencyAddress; } /** * @notice Updates price per token of project `_projectId` to be * '_pricePerTokenInWei`, in Wei. */ function updateProjectPricePerTokenInWei(uint256 _projectId, uint256 _pricePerTokenInWei) public onlyWhitelisted { projectIdToPricePerTokenInWei[_projectId] = _pricePerTokenInWei; } /** * @notice Updates name of project `_projectId` to be `_projectName`. */ function updateProjectName(uint256 _projectId, string memory _projectName) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].name = _projectName; } /** * @notice Updates artist name for project `_projectId` to be * `_projectArtistName`. */ function updateProjectArtistName(uint256 _projectId, string memory _projectArtistName) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].artist = _projectArtistName; } /** * @notice Updates additional payee for project `_projectId` to be * `_additionalPayee`, receiving `_additionalPayeePercentage` percent * of artist mint and royalty revenues. */ function updateProjectAdditionalPayeeInfo( uint256 _projectId, address payable _additionalPayee, uint256 _additionalPayeePercentage ) public onlyWhitelisted { require(_additionalPayeePercentage <= 100, "Max of 100%"); projectIdToAdditionalPayee[_projectId] = _additionalPayee; projectIdToAdditionalPayeePercentage[_projectId] = _additionalPayeePercentage; } /** * @notice Updates artist secondary market royalties for project * `_projectId` to be `_secondMarketRoyalty` percent. */ function updateProjectSecondaryMarketRoyaltyPercentage( uint256 _projectId, uint256 _secondMarketRoyalty ) public onlyWhitelisted { require(_secondMarketRoyalty <= 100, "Max of 100%"); projectIdToSecondaryMarketRoyaltyPercentage[_projectId] = _secondMarketRoyalty; } /** * @notice Updates description of project `_projectId`. */ function updateProjectDescription(uint256 _projectId, string memory _projectDescription) public onlyWhitelisted { projects[_projectId].description = _projectDescription; } /** * @notice Updates website of project `_projectId` to be `_projectWebsite`. */ function updateProjectWebsite(uint256 _projectId, string memory _projectWebsite) public onlyWhitelisted { projects[_projectId].website = _projectWebsite; } /** * @notice Updates license for project `_projectId`. */ function updateProjectLicense(uint256 _projectId, string memory _projectLicense) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].license = _projectLicense; } /** * @notice Updates maximum invocations for project `_projectId` to * `_maxInvocations`. */ function updateProjectMaxInvocations(uint256 _projectId, uint256 _maxInvocations) public onlyWhitelisted { require( (!projects[_projectId].locked || _maxInvocations < projects[_projectId].maxInvocations), "Only if unlocked" ); require( _maxInvocations > projects[_projectId].invocations, "You must set max invocations greater than current invocations" ); require(_maxInvocations <= ONE_MILLION, "Cannot exceed 1000000"); projects[_projectId].maxInvocations = _maxInvocations; } /** * @notice Adds a script to project `_projectId`. * @param _projectId Project to be updated. * @param _script Script to be added. */ function addProjectScript(uint256 _projectId, string memory _script) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].scripts[projects[_projectId].scriptCount] = _script; projects[_projectId].scriptCount = projects[_projectId].scriptCount + 1; } /** * @notice Updates script for project `_projectId` at script ID `_scriptId`. * @param _projectId Project to be updated. * @param _scriptId Script ID to be updated. * @param _script Script to be added. */ function updateProjectScript( uint256 _projectId, uint256 _scriptId, string memory _script ) public onlyUnlocked(_projectId) onlyWhitelisted { require(_scriptId < projects[_projectId].scriptCount, "scriptId out of range"); projects[_projectId].scripts[_scriptId] = _script; } /** * @notice Removes last script from project `_projectId`. */ function removeProjectLastScript(uint256 _projectId) public onlyUnlocked(_projectId) onlyWhitelisted { require(projects[_projectId].scriptCount > 0, "there are no scripts to remove"); delete projects[_projectId].scripts[projects[_projectId].scriptCount - 1]; projects[_projectId].scriptCount = projects[_projectId].scriptCount - 1; } /** * @notice Updates script json for project `_projectId`. */ function updateProjectScriptJSON(uint256 _projectId, string memory _projectScriptJSON) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].scriptJSON = _projectScriptJSON; } /** * @notice Updates ipfs hash for project `_projectId`. */ function updateProjectIpfsHash(uint256 _projectId, string memory _ipfsHash) public onlyUnlocked(_projectId) onlyWhitelisted { projects[_projectId].ipfsHash = _ipfsHash; } /** * @notice Updates base URI for project `_projectId` to `_newBaseURI`. */ function updateProjectBaseURI(uint256 _projectId, string memory _newBaseURI) public onlyWhitelisted { projects[_projectId].projectBaseURI = _newBaseURI; } /** * @notice Returns project details for project `_projectId`. * @param _projectId Project to be queried. * @return projectName Name of project * @return artist Artist of project * @return description Project description * @return website Project website * @return license Project license */ function projectDetails(uint256 _projectId) public view returns ( string memory projectName, string memory artist, string memory description, string memory website, string memory license ) { projectName = projects[_projectId].name; artist = projects[_projectId].artist; description = projects[_projectId].description; website = projects[_projectId].website; license = projects[_projectId].license; } /** * @notice Returns project token information for project `_projectId`. * @param _projectId Project to be queried. * @return artistAddress Project Artist's address * @return pricePerTokenInWei Price to mint a token, in Wei * @return invocations Current number of invocations * @return maxInvocations Maximum allowed invocations * @return active Boolean representing if project is currently active * @return additionalPayee Additional payee address * @return additionalPayeePercentage Percentage of artist revenue * to be sent to the additional payee's address * @return currency Symbol of project's currency * @return currencyAddress Address of project's currency */ function projectTokenInfo(uint256 _projectId) public view override(IKumaleonGenArt) returns ( address artistAddress, uint256 pricePerTokenInWei, uint256 invocations, uint256 maxInvocations, bool active, address additionalPayee, uint256 additionalPayeePercentage, string memory currency, address currencyAddress ) { artistAddress = projectIdToArtistAddress[_projectId]; pricePerTokenInWei = projectIdToPricePerTokenInWei[_projectId]; invocations = projects[_projectId].invocations; maxInvocations = projects[_projectId].maxInvocations; active = projects[_projectId].active; additionalPayee = projectIdToAdditionalPayee[_projectId]; additionalPayeePercentage = projectIdToAdditionalPayeePercentage[_projectId]; currency = projectIdToCurrencySymbol[_projectId]; currencyAddress = projectIdToCurrencyAddress[_projectId]; } /** * @notice Returns script information for project `_projectId`. * @param _projectId Project to be queried. * @return scriptJSON Project's script json * @return scriptCount Count of scripts for project * @return ipfsHash IPFS hash for project * @return locked Boolean representing if project is locked * @return paused Boolean representing if project is paused */ function projectScriptInfo(uint256 _projectId) public view returns ( string memory scriptJSON, uint256 scriptCount, string memory ipfsHash, bool locked, bool paused ) { scriptJSON = projects[_projectId].scriptJSON; scriptCount = projects[_projectId].scriptCount; ipfsHash = projects[_projectId].ipfsHash; locked = projects[_projectId].locked; paused = projects[_projectId].paused; } /** * @notice Returns script for project `_projectId` at script index `_index`. */ function projectScriptByIndex(uint256 _projectId, uint256 _index) public view returns (string memory) { return projects[_projectId].scripts[_index]; } /** * @notice Returns base URI for project `_projectId`. */ function projectURIInfo(uint256 _projectId) public view returns (string memory projectBaseURI) { projectBaseURI = projects[_projectId].projectBaseURI; } /** * @notice Gets royalty data for token ID `_tokenId`. * @param _tokenId Token ID to be queried. * @return artistAddress Artist's payment address * @return additionalPayee Additional payee's payment address * @return additionalPayeePercentage Percentage of artist revenue * to be sent to the additional payee's address * @return royaltyFeeByID Total royalty percentage to be sent to * combination of artist and additional payee */ function getRoyaltyData(uint256 _tokenId) public view override(IKumaleonGenArt) returns ( address artistAddress, address additionalPayee, uint256 additionalPayeePercentage, uint256 royaltyFeeByID ) { artistAddress = projectIdToArtistAddress[tokenIdToProjectId[_tokenId]]; additionalPayee = projectIdToAdditionalPayee[tokenIdToProjectId[_tokenId]]; additionalPayeePercentage = projectIdToAdditionalPayeePercentage[ tokenIdToProjectId[_tokenId] ]; royaltyFeeByID = projectIdToSecondaryMarketRoyaltyPercentage[tokenIdToProjectId[_tokenId]]; } /** * @notice Gets token URI for token ID `_tokenId`. */ function tokenURI(uint256 _tokenId) public view override onlyValidTokenId(_tokenId) returns (string memory) { return string( abi.encodePacked( projects[tokenIdToProjectId[_tokenId]].projectBaseURI, Strings.toString(_tokenId) ) ); } /* royalty */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { uint256 projectId = tokenIdToProjectId[_tokenId]; uint256 royaltyPercentage = projectIdToSecondaryMarketRoyaltyPercentage[projectId]; royaltyAmount = (_salePrice * royaltyPercentage) / 100; receiver = projectIdToAdditionalPayee[projectId]; return (receiver, royaltyAmount); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } // kumaleon function setKumaleon(address _address) external onlyAdmin { require(!isKumaleonFrozen, "KumaleonGenArt: Already frozen"); kumaleon = _address; } function freezeKumaleon() external onlyAdmin { require(!isKumaleonFrozen, "KumaleonGenArt: Already frozen"); isKumaleonFrozen = true; } }
//SPDX-License-Identifier: MIT pragma solidity =0.8.9; /** * @title ERC998ERC721 Top-Down Composable Non-Fungible Token * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-998.md * Note: the ERC-165 identifier for this interface is 0x1efdf36a */ interface IERC998ERC721TopDown { /** * @dev This emits when a token receives a child token. * @param _from The prior owner of the token. * @param _toTokenId The token that receives the child token. */ event ReceivedChild( address indexed _from, uint256 indexed _toTokenId, address indexed _childContract, uint256 _childTokenId ); /** * @dev This emits when a child token is transferred from a token to an address. * @param _fromTokenId The parent token that the child token is being transferred from. * @param _to The new owner address of the child token. */ event TransferChild( uint256 indexed _fromTokenId, address indexed _to, address indexed _childContract, uint256 _childTokenId ); /** * @notice Get the root owner of tokenId. * @param _tokenId The token to query for a root owner address * @return rootOwner The root owner at the top of tree of tokens and ERC998 magic value. */ function rootOwnerOf(uint256 _tokenId) external view returns (bytes32 rootOwner); /** * @notice Get the root owner of a child token. * @param _childContract The contract address of the child token. * @param _childTokenId The tokenId of the child. * @return rootOwner The root owner at the top of tree of tokens and ERC998 magic value. */ function rootOwnerOfChild(address _childContract, uint256 _childTokenId) external view returns (bytes32 rootOwner); /** * @notice Get the parent tokenId of a child token. * @param _childContract The contract address of the child token. * @param _childTokenId The tokenId of the child. * @return parentTokenOwner The parent address of the parent token and ERC998 magic value * @return parentTokenId The parent tokenId of _tokenId */ function ownerOfChild(address _childContract, uint256 _childTokenId) external view returns (bytes32 parentTokenOwner, uint256 parentTokenId); /** * @notice A token receives a child token * @param _operator The address that caused the transfer. * @param _from The owner of the child token. * @param _childTokenId The token that is being transferred to the parent. * @param _data Up to the first 32 bytes contains an integer which is the receiving parent tokenId. */ function onERC721Received( address _operator, address _from, uint256 _childTokenId, bytes calldata _data ) external returns (bytes4); /** * @notice Transfer child token from top-down composable to address. * @param _fromTokenId The owning token to transfer from. * @param _to The address that receives the child token * @param _childContract The ERC721 contract of the child token. * @param _childTokenId The tokenId of the token that is being transferred. */ function transferChild( uint256 _fromTokenId, address _to, address _childContract, uint256 _childTokenId ) external; /** * @notice Transfer child token from top-down composable to address. * @param _fromTokenId The owning token to transfer from. * @param _to The address that receives the child token * @param _childContract The ERC721 contract of the child token. * @param _childTokenId The tokenId of the token that is being transferred. */ function safeTransferChild( uint256 _fromTokenId, address _to, address _childContract, uint256 _childTokenId ) external; /** * @notice Transfer child token from top-down composable to address. * @param _fromTokenId The owning token to transfer from. * @param _to The address that receives the child token * @param _childContract The ERC721 contract of the child token. * @param _childTokenId The tokenId of the token that is being transferred. * @param _data Additional data with no specified format */ function safeTransferChild( uint256 _fromTokenId, address _to, address _childContract, uint256 _childTokenId, bytes calldata _data ) external; /** * @notice Transfer bottom-up composable child token from top-down composable to other ERC721 token. * @param _fromTokenId The owning token to transfer from. * @param _toContract The ERC721 contract of the receiving token * @param _toTokenId The receiving token * @param _childContract The bottom-up composable contract of the child token. * @param _childTokenId The token that is being transferred. * @param _data Additional data with no specified format */ function transferChildToParent( uint256 _fromTokenId, address _toContract, uint256 _toTokenId, address _childContract, uint256 _childTokenId, bytes calldata _data ) external; /** * @notice Get a child token from an ERC721 contract. * @param _from The address that owns the child token. * @param _tokenId The token that becomes the parent owner * @param _childContract The ERC721 contract of the child token * @param _childTokenId The tokenId of the child token */ function getChild( address _from, uint256 _tokenId, address _childContract, uint256 _childTokenId ) external; } /** * @dev The ERC-165 identifier for this interface is 0xa344afe4 */ interface IERC998ERC721TopDownEnumerable { /** * @notice Get the total number of child contracts with tokens that are owned by tokenId. * @param _tokenId The parent token of child tokens in child contracts * @return uint256 The total number of child contracts with tokens owned by tokenId. */ function totalChildContracts(uint256 _tokenId) external view returns (uint256); /** * @notice Get child contract by tokenId and index * @param _tokenId The parent token of child tokens in child contract * @param _index The index position of the child contract * @return childContract The contract found at the tokenId and index. */ function childContractByIndex(uint256 _tokenId, uint256 _index) external view returns (address childContract); /** * @notice Get the total number of child tokens owned by tokenId that exist in a child contract. * @param _tokenId The parent token of child tokens * @param _childContract The child contract containing the child tokens * @return uint256 The total number of child tokens found in child contract that are owned by tokenId. */ function totalChildTokens(uint256 _tokenId, address _childContract) external view returns (uint256); /** * @notice Get child token owned by tokenId, in child contract, at index position * @param _tokenId The parent token of the child token * @param _childContract The child contract of the child token * @param _index The index position of the child token. * @return childTokenId The child tokenId for the parent token, child token and index */ function childTokenByIndex( uint256 _tokenId, address _childContract, uint256 _index ) external view returns (uint256 childTokenId); } interface IERC998ERC721BottomUp { /** * @notice Transfer token from owner address to a token * @param _from The owner address * @param _toContract The ERC721 contract of the receiving token * @param _toTokenId The receiving token * @param _data Additional data with no specified format */ function transferToParent( address _from, address _toContract, uint256 _toTokenId, uint256 _tokenId, bytes calldata _data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: LGPL-3.0-only // Based on IGenArt721CoreV2_PBAB. pragma solidity =0.8.9; interface IKumaleonGenArt { /** * @notice Token ID `_tokenId` minted on project ID `_projectId` to `_to`. */ event Mint(address indexed _to, uint256 indexed _tokenId, uint256 indexed _projectId); // getter function of public variable function admin() external view returns (address); // getter function of public variable function nextProjectId() external view returns (uint256); // getter function of public mapping function tokenIdToProjectId(uint256 tokenId) external view returns (uint256 projectId); function isWhitelisted(address sender) external view returns (bool); function projectIdToCurrencySymbol(uint256 _projectId) external view returns (string memory); function projectIdToCurrencyAddress(uint256 _projectId) external view returns (address); function projectIdToArtistAddress(uint256 _projectId) external view returns (address payable); function projectIdToPricePerTokenInWei(uint256 _projectId) external view returns (uint256); function projectIdToAdditionalPayee(uint256 _projectId) external view returns (address payable); function projectIdToAdditionalPayeePercentage(uint256 _projectId) external view returns (uint256); function projectTokenInfo(uint256 _projectId) external view returns ( address, uint256, uint256, uint256, bool, address, uint256, string memory, address ); function renderProviderAddress() external view returns (address payable); function renderProviderPercentage() external view returns (uint256); function mint( address _to, uint256 _projectId, address _by ) external returns (uint256 tokenId); function getRoyaltyData(uint256 _tokenId) external view returns ( address artistAddress, address additionalPayee, uint256 additionalPayeePercentage, uint256 royaltyFeeByID ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_defaultBeneficiary","type":"address"}],"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":"string","name":"baseURI","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_index","type":"uint256"}],"name":"DeleteChildTokenAllowlist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"childToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"childTokenId","type":"uint256"}],"name":"KumaleonTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"uint256","name":"_toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_childContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"name":"ReceivedChild","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"minTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxTokenId","type":"uint256"}],"name":"SetChildTokenAllowlist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"SetGenArt","type":"event"},{"anonymous":false,"inputs":[],"name":"StartReveal","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"address","name":"_childContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"name":"TransferChild","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OKAZZ","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"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"childContractByIndex","outputs":[{"internalType":"address","name":"childContract","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"childTokenAllowlist","outputs":[{"internalType":"uint256","name":"minTokenId","type":"uint256"},{"internalType":"uint256","name":"maxTokenId","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_childContract","type":"address"}],"name":"childTokenAllowlistByAddress","outputs":[{"components":[{"internalType":"uint256","name":"minTokenId","type":"uint256"},{"internalType":"uint256","name":"maxTokenId","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"}],"internalType":"struct Kumaleon.AllowlistEntry[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"childTokenByIndex","outputs":[{"internalType":"uint256","name":"childTokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"childTokenDetail","outputs":[{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"deleteChildTokenAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeGenArt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genArt","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"_from","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"name":"getChild","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":"isChildTokenAcceptable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGenArtFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isMolted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isParentTransferable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastTransferChildBlockNumbers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_childTokenIds","type":"uint256[]"}],"name":"molt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"moltingHelper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"name":"ownerOfChild","outputs":[{"internalType":"bytes32","name":"parentTokenOwner","type":"bytes32"},{"internalType":"uint256","name":"parentTokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parentLockAge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"rootOwnerOf","outputs":[{"internalType":"bytes32","name":"rootOwner","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"name":"rootOwnerOfChild","outputs":[{"internalType":"bytes32","name":"rootOwner","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"name":"safeTransferChild","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferChild","outputs":[],"stateMutability":"nonpayable","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":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_minTokenId","type":"uint256"},{"internalType":"uint256","name":"_maxTokenId","type":"uint256"},{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"setChildTokenAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"setDefaultBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setGenArt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setIsChildTokenAcceptable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minterAddress","type":"address"}],"name":"setMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_helperAddress","type":"address"}],"name":"setMoltingHelperAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feeNumerator","type":"uint256"}],"name":"setRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startReveal","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":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"totalChildContracts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_childContract","type":"address"}],"name":"totalChildTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"name":"transferChild","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"address","name":"_toContract","type":"address"},{"internalType":"uint256","name":"_toTokenId","type":"uint256"},{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"transferChildToParent","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"updateChildTokenAllowlistBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_childContracts","type":"address[]"},{"internalType":"uint256[]","name":"_indices","type":"uint256[]"},{"internalType":"address[]","name":"_beneficiaries","type":"address[]"}],"name":"updateChildTokenAllowlistsBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_age","type":"uint256"}],"name":"updateParentLockAge","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a6009556019600a553480156200001b57600080fd5b506040516200507f3803806200507f8339810160408190526200003e91620002aa565b604080518082018252600881526725aaa6a0a622a7a760c11b6020808301918252835180850190945260048452634b554d4160e01b9084015281519192916200008a9160009162000204565b508051620000a090600190602084019062000204565b505050620000bd620000b7620000d460201b60201c565b620000d8565b6001600755620000cd816200012a565b5062000319565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b031633146200018a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620001e25760405162461bcd60e51b815260206004820152601a60248201527f4b756d616c656f6e3a20696e76616c6964207265636569766572000000000000604482015260640162000181565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b8280546200021290620002dc565b90600052602060002090601f01602090048101928262000236576000855562000281565b82601f106200025157805160ff191683800117855562000281565b8280016001018555821562000281579182015b828111156200028157825182559160200191906001019062000264565b506200028f92915062000293565b5090565b5b808211156200028f576000815560010162000294565b600060208284031215620002bd57600080fd5b81516001600160a01b0381168114620002d557600080fd5b9392505050565b600181811c90821680620002f157607f821691505b602082108114156200031357634e487b7160e01b600052602260045260246000fd5b50919050565b614d5680620003296000396000f3fe608060405234801561001057600080fd5b50600436106103e65760003560e01c8063621a1f741161020a578063b88d4fde11610125578063daa43499116100b8578063ed81cdda11610087578063ed81cdda14610923578063f0752f0314610936578063f2fde38b14610949578063f602a90c1461095c578063f891f67d1461096f57600080fd5b8063daa43499146108a4578063e0698d23146108b7578063e985e9c5146108bf578063eadb80b8146108fb57600080fd5b8063c87b56dd116100f4578063c87b56dd1461086d578063d111515d14610880578063d397c1ce14610888578063d848b76a1461089157600080fd5b8063b88d4fde146107fd578063ba6b5f9614610810578063bef44f1814610823578063c0e322161461083657600080fd5b80638da5cb5b1161019d578063a0fabb171161016c578063a0fabb17146107bc578063a22cb465146107cf578063a3106b95146107e2578063ad72202b146107f557600080fd5b80638da5cb5b146107755780638da7d0b51461078657806395d89b411461079957806398a538b6146107a157600080fd5b806389bdee64116101d957806389bdee64146107235780638a71bb2d146107365780638b9ed9361461073f5780638d81f51e1461076257600080fd5b8063621a1f74146106d55780636352211e146106f557806370a0823114610708578063715018a61461071b57600080fd5b80631d98f3c51161030557806340c10f1911610298578063526429b811610267578063526429b81461066957806355f804b31461067c5780635f39ee0a1461068f57806361204599146106a257806361ba27da146106c257600080fd5b806340c10f191461061057806342842e0e1461062357806343a61a8e146106365780634452e92e1461064957600080fd5b806335b21ceb116102d457806335b21ceb146105c357806336ecfaf5146105d65780633b264087146105e95780633f0c3f45146105fc57600080fd5b80631d98f3c51461056257806323b872dd146105755780632a55205a1461058857806332cb6b0c146105ba57600080fd5b80630e24495e1161037d57806316d51d571161034c57806316d51d571461052157806318160ddd1461053457806319db22551461053d5780631c38bc421461054f57600080fd5b80630e24495e146104b457806312f4a75b146104c1578063150b7a02146104d4578063160b01a11461050057600080fd5b806308937f62116103b957806308937f6214610466578063095ea7b31461047b5780630b3a3f981461048e5780630d5a621b146104a157600080fd5b806301ffc9a7146103eb57806306fdde03146104135780630754617214610428578063081812fc14610453575b600080fd5b6103fe6103f9366004614064565b610982565b60405190151581526020015b60405180910390f35b61041b6109fe565b60405161040a91906140d9565b600b5461043b906001600160a01b031681565b6040516001600160a01b03909116815260200161040a565b61043b6104613660046140ec565b610a90565b61047961047436600461415c565b610b2a565b005b6104796104893660046141e2565b610bee565b61047961049c3660046141e2565b610d04565b61043b6104af36600461420e565b610f24565b6014546103fe9060ff1681565b600c5461043b906001600160a01b031681565b6104e76104e23660046142cf565b610f43565b6040516001600160e01b0319909116815260200161040a565b61051361050e36600461434f565b6110e4565b60405190815260200161040a565b61047961052f366004614387565b611110565b61051360085481565b6014546103fe90610100900460ff1681565b6014546103fe9062010000900460ff1681565b6104796105703660046143a4565b611170565b6104796105833660046143ec565b61122b565b61059b61059636600461420e565b61125c565b604080516001600160a01b03909316835260208301919091520161040a565b610513610bb881565b6105136105d136600461441c565b6114ff565b6104796105e436600461453f565b61152a565b6103fe6105f73660046140ec565b611627565b6014546103fe906301000000900460ff1681565b61047961061e3660046141e2565b61164e565b6104796106313660046143ec565b611855565b6105136106443660046140ec565b611870565b6105136106573660046140ec565b60126020526000908152604090205481565b61059b6106773660046140ec565b61187d565b61047961068a3660046145c7565b611945565b61047961069d3660046140ec565b6119e0565b6106b56106b0366004614387565b611a0f565b60405161040a9190614610565b6104796106d03660046140ec565b611aa7565b6105136106e33660046140ec565b60106020526000908152604090205481565b61043b6107033660046140ec565b611b3b565b610513610716366004614387565b611bb2565b610479611c39565b610479610731366004614680565b611c6f565b61051360095481565b6103fe61074d3660046140ec565b60116020526000908152604090205460ff1681565b61047961077036600461469d565b611cb7565b6006546001600160a01b031661043b565b6105136107943660046140ec565b611d78565b61041b611d8f565b61043b73783dfb5811b0540875f451c48c13af6dd8d42df581565b6104796107ca366004614719565b611d9e565b6104796107dd366004614785565b6121c4565b6104796107f0366004614387565b6121d3565b61047961221f565b61047961080b3660046142cf565b6122de565b61047961081e3660046147b3565b612310565b6104796108313660046143a4565b612384565b6108496108443660046141e2565b6124db565b6040805193845260208401929092526001600160a01b03169082015260600161040a565b61041b61087b3660046140ec565b612526565b610479612600565b610513600a5481565b61047961089f366004614387565b61265c565b6104796108b2366004614387565b6126fc565b61047961279e565b6103fe6108cd3660046147eb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61090e6109093660046141e2565b612801565b6040805192835260208301919091520161040a565b6105136109313660046141e2565b612885565b600d5461043b906001600160a01b031681565b610479610957366004614387565b6129cf565b61047961096a366004614819565b612a6a565b61047961097d36600461485b565b612afb565b60006001600160e01b0319821663cde244d960e01b14806109b357506001600160e01b031982166328d12bf960e21b145b806109ce57506001600160e01b03198216630a85bd0160e11b145b806109e957506001600160e01b0319821663152a902d60e11b145b806109f857506109f882612be0565b92915050565b606060008054610a0d906148a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a39906148a5565b8015610a865780601f10610a5b57610100808354040283529160200191610a86565b820191906000526020600020905b815481529060010190602001808311610a6957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b0e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b610b3687878686612c30565b610b41878585612e01565b6040516307a8567d60e51b81526001600160a01b0385169063f50acfa090610b779030908a908a90899089908990600401614909565b600060405180830381600087803b158015610b9157600080fd5b505af1158015610ba5573d6000803e3d6000fd5b50505050836001600160a01b0316866001600160a01b031688600080516020614d0183398151915286604051610bdd91815260200190565b60405180910390a450505050505050565b6000610bf982611b3b565b9050806001600160a01b0316836001600160a01b03161415610c675760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b05565b336001600160a01b0382161480610c835750610c8381336108cd565b610cf55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b05565b610cff8383612f1d565b505050565b6006546001600160a01b03163314610d2e5760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b0382166000908152601360205260409020548110610d955760405162461bcd60e51b815260206004820152601d60248201527f4b756d616c656f6e3a20616c6c6f776c697374206e6f7420666f756e640000006044820152606401610b05565b6001600160a01b03821660009081526013602052604090208054610dbb9060019061499b565b81548110610dcb57610dcb6149b2565b906000526020600020906003020160136000846001600160a01b03166001600160a01b031681526020019081526020016000208281548110610e0f57610e0f6149b2565b600091825260208083208454600390930201918255600180850154908301556002938401549390910180546001600160a01b0319166001600160a01b039485161790559184168152601390915260409020805480610e6f57610e6f6149c8565b600082815260208082206003600019909401938402018281556001810183905560020180546001600160a01b0319169055919092556001600160a01b0384168252601390526040902054610ede576001600160a01b0382166000908152601360205260408120610ede91613f67565b604080516001600160a01b0384168152602081018390527f952d6272db98fdac65d499a5abf9e847a7f3369a9913560d292a5bdf05e47fbc910160405180910390a15050565b6000828152601560205260408120610f3c9083612f8b565b9392505050565b600080825111610fd45760405162461bcd60e51b815260206004820152605060248201527f4b756d616c656f6e3a205f64617461206d75737420636f6e7461696e2074686560448201527f2075696e7432353620746f6b656e496420746f207472616e736665722074686560648201526f1031b434b632103a37b5b2b7103a379760811b608482015260a401610b05565b815160a4359060201115610ffd578251610fef9060086149de565b610ffb9061010061499b565b1c5b6040516331a9108f60e11b81526004810185905230903390636352211e9060240160206040518083038186803b15801561103657600080fd5b505afa15801561104a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106e91906149fd565b6001600160a01b0316146110c45760405162461bcd60e51b815260206004820181905260248201527f4b756d616c656f6e3a204368696c6420746f6b656e206e6f74206f776e65642e6044820152606401610b05565b6110d085823387612f97565b630a85bd0160e11b9150505b949350505050565b60008381526016602090815260408083206001600160a01b038616845290915281206110dc9083612f8b565b6006546001600160a01b0316331461113a5760405162461bcd60e51b8152600401610b0590614950565b600c80546001600160a01b039092166001600160a01b03199092169190911790556014805463ff00000019166301000000179055565b61117c84848484612c30565b611187848383612e01565b604051632142170760e11b81526001600160a01b038316906342842e0e906111b790309087908690600401614a1a565b600060405180830381600087803b1580156111d157600080fd5b505af11580156111e5573d6000803e3d6000fd5b50505050816001600160a01b0316836001600160a01b031685600080516020614d018339815191528460405161121d91815260200190565b60405180910390a450505050565b61123533826133c6565b6112515760405162461bcd60e51b8152600401610b0590614a3e565b610cff83838361349c565b600080600061126a85611d78565b600014159050600060646009548661128291906149de565b61128c9190614aa5565b9050816112aa57600e546001600160a01b0316935091506114f89050565b604051630d5a621b60e01b815260048101879052600060248201819052903090630d5a621b9060440160206040518083038186803b1580156112eb57600080fd5b505afa1580156112ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132391906149fd565b60405163160b01a160e01b8152600481018990526001600160a01b0382166024820152600060448201819052919250309063160b01a19060640160206040518083038186803b15801561137557600080fd5b505afa158015611389573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ad9190614ab9565b905060005b6001600160a01b0383166000908152601360205260409020548110156114e2576001600160a01b03831660009081526013602052604090208054839190839081106113ff576113ff6149b2565b9060005260206000209060030201600001541115801561145a57506001600160a01b0383166000908152601360205260409020805482908110611444576114446149b2565b9060005260206000209060030201600101548211155b156114d0576001600160a01b0383166000908152601360205260409020805482908110611489576114896149b2565b60009182526020909120600260039092020101546009546001600160a01b0390911697506064906114ba908a6149de565b6114c49190614aa5565b955050505050506114f8565b806114da81614ad2565b9150506113b2565b5050600e546001600160a01b0316945090925050505b9250929050565b60008281526016602090815260408083206001600160a01b03851684529091528120610f3c90613649565b6006546001600160a01b031633146115545760405162461bcd60e51b8152600401610b0590614950565b81518351148015611566575080518251145b6115ad5760405162461bcd60e51b8152602060048201526018602482015277096eadac2d8cadedc7440d2dcecc2d8d2c840d8cadccee8d60431b6044820152606401610b05565b60005b83518110156116215761160f8482815181106115ce576115ce6149b2565b60200260200101518483815181106115e8576115e86149b2565b6020026020010151848481518110611602576116026149b2565b6020026020010151612a6a565b8061161981614ad2565b9150506115b0565b50505050565b600a54600082815260126020526040812054909143916116479190614aed565b1092915050565b600260075414156116a15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b05565b6002600755600854610bb8906116b8908390614aed565b11156117065760405162461bcd60e51b815260206004820152601a60248201527f4b756d616c656f6e3a20696e76616c6964207175616e746974790000000000006044820152606401610b05565b600b546001600160a01b031633146117605760405162461bcd60e51b815260206004820152601f60248201527f4b756d616c656f6e3a2063616c6c2066726f6d206f6e6c79206d696e746572006044820152606401610b05565b60005b8181101561184b5760088054908190600061177d83614ad2565b909155508190504361179060018261499b565b6040805160208101949094528301919091524060608083019190915285901b6bffffffffffffffffffffffff1916608082015260940160408051601f1981840301815291815281516020928301206000848152601090935291205561180973783dfb5811b0540875f451c48c13af6dd8d42df582613653565b61183873783dfb5811b0540875f451c48c13af6dd8d42df585836040518060200160405280600081525061366d565b508061184381614ad2565b915050611763565b5050600160075550565b610cff838383604051806020016040528060008152506122de565b60006109f8600083612885565b60008181526002602052604081205481906001600160a01b03166118ed5760405162461bcd60e51b815260206004820152602160248201527f4b756d616c656f6e3a205f746f6b656e496420646f6573206e6f7420657869736044820152601d60fa1b6064820152608401610b05565b600083815260156020526040812061190490613649565b1161191057600061191b565b61191b836000610f24565b91506001600160a01b03821661193257600061193e565b61193e838360006110e4565b9050915091565b6006546001600160a01b0316331461196f5760405162461bcd60e51b8152600401610b0590614950565b60145460ff16156119925760405162461bcd60e51b8152600401610b0590614b05565b80516119a590600f906020840190613f88565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad816040516119d591906140d9565b60405180910390a150565b6006546001600160a01b03163314611a0a5760405162461bcd60e51b8152600401610b0590614950565b600a55565b6001600160a01b0381166000908152601360209081526040808320805482518185028101850190935280835260609492939192909184015b82821015611a9c576000848152602090819020604080516060810182526003860290920180548352600180820154848601526002909101546001600160a01b0316918301919091529083529092019101611a47565b505050509050919050565b6006546001600160a01b03163314611ad15760405162461bcd60e51b8152600401610b0590614950565b6064811115611b365760405162461bcd60e51b815260206004820152602b60248201527f4b756d616c656f6e3a20726f79616c7479206665652077696c6c20657863656560448201526a642073616c65507269636560a81b6064820152608401610b05565b600955565b6000818152600260205260408120546001600160a01b0316806109f85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b05565b60006001600160a01b038216611c1d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b05565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314611c635760405162461bcd60e51b8152600401610b0590614950565b611c6d60006136a0565b565b6006546001600160a01b03163314611c995760405162461bcd60e51b8152600401610b0590614950565b6014805491151563010000000263ff00000019909216919091179055565b611cc386868686612c30565b611cce868585612e01565b604051635c46a7ef60e11b81526001600160a01b0385169063b88d4fde90611d029030908990889088908890600401614b3c565b600060405180830381600087803b158015611d1c57600080fd5b505af1158015611d30573d6000803e3d6000fd5b50505050836001600160a01b0316856001600160a01b031687600080516020614d0183398151915286604051611d6891815260200190565b60405180910390a4505050505050565b60008181526015602052604081206109f890613649565b606060018054610a0d906148a5565b60026007541415611df15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b05565b6002600755600c546001600160a01b03163314611e605760405162461bcd60e51b815260206004820152602760248201527f4b756d616c656f6e3a2063616c6c2066726f6d206f6e6c79206d6f6c74696e67604482015266103432b63832b960c91b6064820152608401610b05565b8051825114611eac5760405162461bcd60e51b8152602060048201526018602482015277096eadac2d8cadedc7440d2dcecc2d8d2c840d8cadccee8d60431b6044820152606401610b05565b60005b82518110156121b9576000611edc848381518110611ecf57611ecf6149b2565b6020026020010151611870565b90506001600160a01b0380821690861614611f395760405162461bcd60e51b815260206004820152601960248201527f4b756d616c656f6e3a20546f6b656e206e6f74206f776e6564000000000000006044820152606401610b05565b600160116000868581518110611f5157611f516149b2565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055504360126000868581518110611f9557611f956149b2565b6020026020010151815260200190815260200160002081905550600d60009054906101000a90046001600160a01b03166001600160a01b031663fdf226063087868681518110611fe757611fe76149b2565b6020026020010151601060008a8981518110612005576120056149b2565b60200260200101518152602001908152602001600020546040518563ffffffff1660e01b815260040161205f94939291906001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b602060405180830381600087803b15801561207957600080fd5b505af115801561208d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b19190614ab9565b50600d5483516001600160a01b03909116906342842e0e90309088908790879081106120df576120df6149b2565b60200260200101516040518463ffffffff1660e01b815260040161210593929190614a1a565b600060405180830381600087803b15801561211f57600080fd5b505af1158015612133573d6000803e3d6000fd5b5050600d5486516001600160a01b039182169350908816915086908590811061215e5761215e6149b2565b6020026020010151600080516020614d01833981519152868681518110612187576121876149b2565b602002602001015160405161219e91815260200190565b60405180910390a450806121b181614ad2565b915050611eaf565b505060016007555050565b6121cf3383836136f2565b5050565b6006546001600160a01b031633146121fd5760405162461bcd60e51b8152600401610b0590614950565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146122495760405162461bcd60e51b8152600401610b0590614950565b60145462010000900460ff16156122a25760405162461bcd60e51b815260206004820152601a60248201527f4b756d616c656f6e3a20416c72656164792072657665616c65640000000000006044820152606401610b05565b6014805462ff00001916620100001790556040517ffb2f2ded78cf28d25f29573488f57adffab91a0e5ba08b61f2c686ba1fb233b390600090a1565b6122e833836133c6565b6123045760405162461bcd60e51b8152600401610b0590614a3e565b6116218484848461366d565b61231c84848484612f97565b6040516323b872dd60e01b81526001600160a01b038316906323b872dd9061234c90879030908690600401614a1a565b600060405180830381600087803b15801561236657600080fd5b505af115801561237a573d6000803e3d6000fd5b5050505050505050565b61239084848484612c30565b61239b848383612e01565b60408051306024820152604480820184905282518083039091018152606490910182526020810180516001600160e01b031663095ea7b360e01b179052905160009182916001600160a01b038616916123f391614b7b565b6000604051808303816000865af19150503d8060008114612430576040519150601f19603f3d011682016040523d82523d6000602084013e612435565b606091505b509150915081801561245f57508051158061245f57508080602001905181019061245f9190614b97565b6124ab5760405162461bcd60e51b815260206004820152601b60248201527f4b756d616c656f6e3a204661696c656420746f20417070726f766500000000006044820152606401610b05565b6040516323b872dd60e01b81526001600160a01b038516906323b872dd90611d0290309089908890600401614a1a565b601360205281600052604060002081815481106124f757600080fd5b60009182526020909120600390910201805460018201546002909201549093509091506001600160a01b031683565b6000818152600260205260409020546060906001600160a01b03166125a55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b05565b60006125af6137c1565b905060008151116125cf5760405180602001604052806000815250610f3c565b806125d9846137d0565b6040516020016125ea929190614bb4565b6040516020818303038152906040529392505050565b6006546001600160a01b0316331461262a5760405162461bcd60e51b8152600401610b0590614950565b60145460ff161561264d5760405162461bcd60e51b8152600401610b0590614b05565b6014805460ff19166001179055565b6006546001600160a01b031633146126865760405162461bcd60e51b8152600401610b0590614950565b601454610100900460ff16156126ae5760405162461bcd60e51b8152600401610b0590614b05565b600d80546001600160a01b0319166001600160a01b0383169081179091556040519081527fef69ae522970f641cbf91c800b87cd29bffe07b1436a28d39eaf0678700587f0906020016119d5565b6006546001600160a01b031633146127265760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b03811661277c5760405162461bcd60e51b815260206004820152601a60248201527f4b756d616c656f6e3a20696e76616c69642072656365697665720000000000006044820152606401610b05565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146127c85760405162461bcd60e51b8152600401610b0590614950565b601454610100900460ff16156127f05760405162461bcd60e51b8152600401610b0590614b05565b6014805461ff001916610100179055565b6001600160a01b03821660008181526017602090815260408083208584528252808320548084526016835281842094845293909152812090919061284590846138ce565b6128615760405162461bcd60e51b8152600401610b0590614be3565b61286a81611b3b565b6001600160a01b031663cd740db560e01b1794909350915050565b6000806001600160a01b038416156128aa576128a184846138e6565b935090506128b6565b6128b383611b3b565b90505b6001600160a01b0381163014156128d1576128a181846138e6565b60408051306024820152604480820186905282518083039091018152606490910182526020810180516001600160e01b03166376c0e6ed60e11b179052905160009182916001600160a01b0385169161292991614b7b565b600060405180830381855afa9150503d8060008114612964576040519150601f19603f3d011682016040523d82523d6000602084013e612969565b606091505b5091509150805160001461298e578080602001905181019061298b9190614ab9565b93505b60018215151480156129a7575060e084901c63cd740db5145b156129b4575050506109f8565b50506001600160a01b031663cd740db560e01b1790506109f8565b6006546001600160a01b031633146129f95760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b038116612a5e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b05565b612a67816136a0565b50565b6006546001600160a01b03163314612a945760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b0383166000908152601360205260409020805482919084908110612ac157612ac16149b2565b906000526020600020906003020160020160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b6006546001600160a01b03163314612b255760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b0384811660008181526013602090815260408083208151606080820184528a82528185018a81528989168386019081528454600180820187559589529787902093516003909802909301968755519286019290925551600290940180546001600160a01b0319169490961693909317909455835192835282018690529181018490527fb7ed037ec88ee8cba16f5e3ad79389047b9abe89b64b4559e09d39fdc9b8e59991015b60405180910390a150505050565b60006001600160e01b031982166380ac58cd60e01b1480612c1157506001600160e01b03198216635b5e139f60e01b145b806109f857506301ffc9a760e01b6001600160e01b03198316146109f8565b6001600160a01b038216600081815260176020908152604080832085845282528083205480845260168352818420948452939091529020612c7190836138ce565b612ce35760405162461bcd60e51b815260206004820152603e60248201527f4b756d616c656f6e3a204368696c64206173736574206973206e6f74206f776e60448201527f6564206279206120746f6b656e20696e207468697320636f6e747261637400006064820152608401610b05565b848114612d435760405162461bcd60e51b815260206004820152602860248201527f4b756d616c656f6e3a20506172656e7420646f6573206e6f74206f776e207468604482015267185d08185cdcd95d60c21b6064820152608401610b05565b6000612d4e86611870565b9050336001600160a01b0382161480612d77575033612d6c87610a90565b6001600160a01b0316145b80612d875750612d8781336108cd565b612df95760405162461bcd60e51b815260206004820152603860248201527f4b756d616c656f6e3a204e6f7420616c6c6f77656420746f207472616e73666560448201527f72206368696c6420617373657473206f6620706172656e7400000000000000006064820152608401610b05565b505050505050565b60008381526016602090815260408083206001600160a01b03861684529091529020612e2d90826138ce565b612e8a5760405162461bcd60e51b815260206004820152602860248201527f4b756d616c656f6e3a204368696c6420746f6b656e206e6f74206f776e656420604482015267313c903a37b5b2b760c11b6064820152608401610b05565b60008381526016602090815260408083206001600160a01b03861684529091529020612eb69082613958565b506001600160a01b03821660008181526017602090815260408083208584528252808320839055868352601282528083204390556016825280832093835292905220612f0190613649565b610cff5760008381526015602052604090206116219083613964565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f5282611b3b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610f3c8383613979565b6014546301000000900460ff16612ffe5760405162461bcd60e51b815260206004820152602560248201527f4b756d616c656f6e3a204368696c64207265636569766564207768696c652070604482015264185d5cd95960da1b6064820152608401610b05565b60008381526011602052604090205460ff166130685760405162461bcd60e51b8152602060048201526024808201527f4b756d616c656f6e3a204368696c64207265636569766564206265666f7265206044820152631b5bdb1d60e21b6064820152608401610b05565b336001600160a01b03831614806130875750336001600160a01b038516145b6130d35760405162461bcd60e51b815260206004820152601b60248201527f4b756d616c656f6e3a20696e76616c6964206d736753656e64657200000000006044820152606401610b05565b60006130de84611870565b90506001600160a01b03858116908216146131525760405162461bcd60e51b815260206004820152602e60248201527f4b756d616c656f6e3a206f6e6c79206f776e65722063616e207472616e73666560448201526d72206368696c6420746f6b656e7360901b6064820152608401610b05565b61315c83836139a3565b6131a85760405162461bcd60e51b815260206004820152601b60248201527f4b756d616c656f6e3a20546f6b656e206e6f7420616c6c6f77656400000000006044820152606401610b05565b60008481526015602052604090206131bf90613649565b1561328f5760006131d1856000610f24565b905060006131e1868360006110e4565b90506131ee868383612e01565b604051632142170760e11b81526001600160a01b038316906342842e0e9061321e90309087908690600401614a1a565b600060405180830381600087803b15801561323857600080fd5b505af115801561324c573d6000803e3d6000fd5b50505050816001600160a01b0316836001600160a01b031687600080516020614d018339815191528460405161328491815260200190565b60405180910390a450505b60008481526015602052604090206132a690613649565b156133195760405162461bcd60e51b815260206004820152603f60248201527f4b756d616c656f6e3a2043616e6e6f742072656365697665206368696c64207460448201527f6f6b656e20626563617573652069742068617320616c726561647920686164006064820152608401610b05565b60008481526015602052604090206133319084613a79565b5060008481526016602090815260408083206001600160a01b0387168452909152902061335e9083613a8e565b506001600160a01b038381166000818152601760209081526040808320878452825291829020889055905185815291928792908916917f0371ddf2288ad1ba92626a7e31c86a9d006e592cfe57d7d946ef08b13457c08b910160405180910390a45050505050565b6000818152600260205260408120546001600160a01b031661343f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b05565b600061344a83611b3b565b9050806001600160a01b0316846001600160a01b03161480613471575061347181856108cd565b806110dc5750836001600160a01b031661348a84610a90565b6001600160a01b031614949350505050565b826001600160a01b03166134af82611b3b565b6001600160a01b0316146135135760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b05565b6001600160a01b0382166135755760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b05565b613580838383613a9a565b61358b600082612f1d565b6001600160a01b03831660009081526003602052604081208054600192906135b490849061499b565b90915550506001600160a01b03821660009081526003602052604081208054600192906135e2908490614aed565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610cff838383613af9565b60006109f8825490565b6121cf828260405180602001604052806000815250613b92565b61367884848461349c565b61368484848484613bc5565b6116215760405162461bcd60e51b8152600401610b0590614c40565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156137545760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b05565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6060600f8054610a0d906148a5565b6060816137f45750506040805180820190915260018152600360fc1b602082015290565b8160005b811561381e578061380881614ad2565b91506138179050600a83614aa5565b91506137f8565b60008167ffffffffffffffff81111561383957613839614230565b6040519080825280601f01601f191660200182016040528015613863576020820181803683370190505b5090505b84156110dc5761387860018361499b565b9150613885600a86614c92565b613890906030614aed565b60f81b8183815181106138a5576138a56149b2565b60200101906001600160f81b031916908160001a9053506138c7600a86614aa5565b9450613867565b60008181526001830160205260408120541515610f3c565b6001600160a01b03821660008181526017602090815260408083208584528252808320548084526016835281842094845293909152812090919061392a90846138ce565b6139465760405162461bcd60e51b8152600401610b0590614be3565b61394f81611b3b565b91509250929050565b6000610f3c8383613ccf565b6000610f3c836001600160a01b038416613ccf565b6000826000018281548110613990576139906149b2565b9060005260206000200154905092915050565b60008060005b6001600160a01b038516600090815260136020526040902054811015613a71576001600160a01b03851660009081526013602052604090208054859190839081106139f6576139f66149b2565b90600052602060002090600302016000015411158015613a5157506001600160a01b0385166000908152601360205260409020805482908110613a3b57613a3b6149b2565b9060005260206000209060030201600101548411155b15613a5f5760019150613a71565b80613a6981614ad2565b9150506139a9565b509392505050565b6000610f3c836001600160a01b038416613dc2565b6000610f3c8383613dc2565b613aa381611627565b610cff5760405162461bcd60e51b815260206004820152602160248201527f4b756d616c656f6e3a207472616e73666572206973206e6f7420616c6c6f77656044820152601960fa1b6064820152608401610b05565b60008181526015602052604081208190613b1290613649565b11613b1e576000613b29565b613b29826000610f24565b90507fc10a2dbd6c95f02eb0d3af325419065d9843a8e18fa3ad6cb9ff2dc193466ae382826001600160a01b038116613b63576000613b6f565b613b6f858560006110e4565b604080519384526001600160a01b03909216602084015290820152606001612bd2565b613b9c8383613e11565b613ba96000848484613bc5565b610cff5760405162461bcd60e51b8152600401610b0590614c40565b60006001600160a01b0384163b15613cc757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c09903390899088908890600401614ca6565b602060405180830381600087803b158015613c2357600080fd5b505af1925050508015613c53575060408051601f3d908101601f19168201909252613c5091810190614ce3565b60015b613cad573d808015613c81576040519150601f19603f3d011682016040523d82523d6000602084013e613c86565b606091505b508051613ca55760405162461bcd60e51b8152600401610b0590614c40565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110dc565b5060016110dc565b60008181526001830160205260408120548015613db8576000613cf360018361499b565b8554909150600090613d079060019061499b565b9050818114613d6c576000866000018281548110613d2757613d276149b2565b9060005260206000200154905080876000018481548110613d4a57613d4a6149b2565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613d7d57613d7d6149c8565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109f8565b60009150506109f8565b6000818152600183016020526040812054613e09575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f8565b5060006109f8565b6001600160a01b038216613e675760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b05565b6000818152600260205260409020546001600160a01b031615613ecc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b05565b613ed860008383613a9a565b6001600160a01b0382166000908152600360205260408120805460019290613f01908490614aed565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46121cf60008383613af9565b5080546000825560030290600052602060002090810190612a67919061400c565b828054613f94906148a5565b90600052602060002090601f016020900481019282613fb65760008555613ffc565b82601f10613fcf57805160ff1916838001178555613ffc565b82800160010185558215613ffc579182015b82811115613ffc578251825591602001919060010190613fe1565b50614008929150614039565b5090565b5b8082111561400857600080825560018201556002810180546001600160a01b031916905560030161400d565b5b80821115614008576000815560010161403a565b6001600160e01b031981168114612a6757600080fd5b60006020828403121561407657600080fd5b8135610f3c8161404e565b60005b8381101561409c578181015183820152602001614084565b838111156116215750506000910152565b600081518084526140c5816020860160208601614081565b601f01601f19169290920160200192915050565b602081526000610f3c60208301846140ad565b6000602082840312156140fe57600080fd5b5035919050565b6001600160a01b0381168114612a6757600080fd5b60008083601f84011261412c57600080fd5b50813567ffffffffffffffff81111561414457600080fd5b6020830191508360208285010111156114f857600080fd5b600080600080600080600060c0888a03121561417757600080fd5b87359650602088013561418981614105565b95506040880135945060608801356141a081614105565b93506080880135925060a088013567ffffffffffffffff8111156141c357600080fd5b6141cf8a828b0161411a565b989b979a50959850939692959293505050565b600080604083850312156141f557600080fd5b823561420081614105565b946020939093013593505050565b6000806040838503121561422157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561426f5761426f614230565b604052919050565b600067ffffffffffffffff83111561429157614291614230565b6142a4601f8401601f1916602001614246565b90508281528383830111156142b857600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156142e557600080fd5b84356142f081614105565b9350602085013561430081614105565b925060408501359150606085013567ffffffffffffffff81111561432357600080fd5b8501601f8101871361433457600080fd5b61434387823560208401614277565b91505092959194509250565b60008060006060848603121561436457600080fd5b83359250602084013561437681614105565b929592945050506040919091013590565b60006020828403121561439957600080fd5b8135610f3c81614105565b600080600080608085870312156143ba57600080fd5b8435935060208501356143cc81614105565b925060408501356143dc81614105565b9396929550929360600135925050565b60008060006060848603121561440157600080fd5b833561440c81614105565b9250602084013561437681614105565b6000806040838503121561442f57600080fd5b82359150602083013561444181614105565b809150509250929050565b600067ffffffffffffffff82111561446657614466614230565b5060051b60200190565b600082601f83011261448157600080fd5b813560206144966144918361444c565b614246565b82815260059290921b840181019181810190868411156144b557600080fd5b8286015b848110156144d95780356144cc81614105565b83529183019183016144b9565b509695505050505050565b600082601f8301126144f557600080fd5b813560206145056144918361444c565b82815260059290921b8401810191818101908684111561452457600080fd5b8286015b848110156144d95780358352918301918301614528565b60008060006060848603121561455457600080fd5b833567ffffffffffffffff8082111561456c57600080fd5b61457887838801614470565b9450602086013591508082111561458e57600080fd5b61459a878388016144e4565b935060408601359150808211156145b057600080fd5b506145bd86828701614470565b9150509250925092565b6000602082840312156145d957600080fd5b813567ffffffffffffffff8111156145f057600080fd5b8201601f8101841361460157600080fd5b6110dc84823560208401614277565b602080825282518282018190526000919060409081850190868401855b828110156146655781518051855286810151878601528501516001600160a01b0316858501526060909301929085019060010161462d565b5091979650505050505050565b8015158114612a6757600080fd5b60006020828403121561469257600080fd5b8135610f3c81614672565b60008060008060008060a087890312156146b657600080fd5b8635955060208701356146c881614105565b945060408701356146d881614105565b935060608701359250608087013567ffffffffffffffff8111156146fb57600080fd5b61470789828a0161411a565b979a9699509497509295939492505050565b60008060006060848603121561472e57600080fd5b833561473981614105565b9250602084013567ffffffffffffffff8082111561475657600080fd5b614762878388016144e4565b9350604086013591508082111561477857600080fd5b506145bd868287016144e4565b6000806040838503121561479857600080fd5b82356147a381614105565b9150602083013561444181614672565b600080600080608085870312156147c957600080fd5b84356147d481614105565b93506020850135925060408501356143dc81614105565b600080604083850312156147fe57600080fd5b823561480981614105565b9150602083013561444181614105565b60008060006060848603121561482e57600080fd5b833561483981614105565b925060208401359150604084013561485081614105565b809150509250925092565b6000806000806080858703121561487157600080fd5b843561487c81614105565b93506020850135925060408501359150606085013561489a81614105565b939692955090935050565b600181811c908216806148b957607f821691505b602082108114156148da57634e487b7160e01b600052602260045260246000fd5b50919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905260009061494490830184866148e0565b98975050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156149ad576149ad614985565b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60008160001904831182151516156149f8576149f8614985565b500290565b600060208284031215614a0f57600080fd5b8151610f3c81614105565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082614ab457614ab4614a8f565b500490565b600060208284031215614acb57600080fd5b5051919050565b6000600019821415614ae657614ae6614985565b5060010190565b60008219821115614b0057614b00614985565b500190565b60208082526018908201527f4b756d616c656f6e3a20416c72656164792066726f7a656e0000000000000000604082015260600190565b6001600160a01b0386811682528516602082015260408101849052608060608201819052600090614b7090830184866148e0565b979650505050505050565b60008251614b8d818460208701614081565b9190910192915050565b600060208284031215614ba957600080fd5b8151610f3c81614672565b60008351614bc6818460208801614081565b835190830190614bda818360208801614081565b01949350505050565b6020808252603d908201527f4b756d616c656f6e3a2054686174206368696c64206973206e6f74206f776e6560408201527f64206279206120746f6b656e20696e207468697320636f6e7472616374000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082614ca157614ca1614a8f565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614cd9908301846140ad565b9695505050505050565b600060208284031215614cf557600080fd5b8151610f3c8161404e56fe0ef52e516fb5aec15a5d3587e5480481b702b26db93c8430eca78b61990fd3f6a26469706673582212200b37ad4d2be36597b50b4226c57181c6fae3ad33fe1b882d1257651a2cae16bd64736f6c6343000809003300000000000000000000000012aed155123c6824419ac0cc8fddebe8ded4de70
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103e65760003560e01c8063621a1f741161020a578063b88d4fde11610125578063daa43499116100b8578063ed81cdda11610087578063ed81cdda14610923578063f0752f0314610936578063f2fde38b14610949578063f602a90c1461095c578063f891f67d1461096f57600080fd5b8063daa43499146108a4578063e0698d23146108b7578063e985e9c5146108bf578063eadb80b8146108fb57600080fd5b8063c87b56dd116100f4578063c87b56dd1461086d578063d111515d14610880578063d397c1ce14610888578063d848b76a1461089157600080fd5b8063b88d4fde146107fd578063ba6b5f9614610810578063bef44f1814610823578063c0e322161461083657600080fd5b80638da5cb5b1161019d578063a0fabb171161016c578063a0fabb17146107bc578063a22cb465146107cf578063a3106b95146107e2578063ad72202b146107f557600080fd5b80638da5cb5b146107755780638da7d0b51461078657806395d89b411461079957806398a538b6146107a157600080fd5b806389bdee64116101d957806389bdee64146107235780638a71bb2d146107365780638b9ed9361461073f5780638d81f51e1461076257600080fd5b8063621a1f74146106d55780636352211e146106f557806370a0823114610708578063715018a61461071b57600080fd5b80631d98f3c51161030557806340c10f1911610298578063526429b811610267578063526429b81461066957806355f804b31461067c5780635f39ee0a1461068f57806361204599146106a257806361ba27da146106c257600080fd5b806340c10f191461061057806342842e0e1461062357806343a61a8e146106365780634452e92e1461064957600080fd5b806335b21ceb116102d457806335b21ceb146105c357806336ecfaf5146105d65780633b264087146105e95780633f0c3f45146105fc57600080fd5b80631d98f3c51461056257806323b872dd146105755780632a55205a1461058857806332cb6b0c146105ba57600080fd5b80630e24495e1161037d57806316d51d571161034c57806316d51d571461052157806318160ddd1461053457806319db22551461053d5780631c38bc421461054f57600080fd5b80630e24495e146104b457806312f4a75b146104c1578063150b7a02146104d4578063160b01a11461050057600080fd5b806308937f62116103b957806308937f6214610466578063095ea7b31461047b5780630b3a3f981461048e5780630d5a621b146104a157600080fd5b806301ffc9a7146103eb57806306fdde03146104135780630754617214610428578063081812fc14610453575b600080fd5b6103fe6103f9366004614064565b610982565b60405190151581526020015b60405180910390f35b61041b6109fe565b60405161040a91906140d9565b600b5461043b906001600160a01b031681565b6040516001600160a01b03909116815260200161040a565b61043b6104613660046140ec565b610a90565b61047961047436600461415c565b610b2a565b005b6104796104893660046141e2565b610bee565b61047961049c3660046141e2565b610d04565b61043b6104af36600461420e565b610f24565b6014546103fe9060ff1681565b600c5461043b906001600160a01b031681565b6104e76104e23660046142cf565b610f43565b6040516001600160e01b0319909116815260200161040a565b61051361050e36600461434f565b6110e4565b60405190815260200161040a565b61047961052f366004614387565b611110565b61051360085481565b6014546103fe90610100900460ff1681565b6014546103fe9062010000900460ff1681565b6104796105703660046143a4565b611170565b6104796105833660046143ec565b61122b565b61059b61059636600461420e565b61125c565b604080516001600160a01b03909316835260208301919091520161040a565b610513610bb881565b6105136105d136600461441c565b6114ff565b6104796105e436600461453f565b61152a565b6103fe6105f73660046140ec565b611627565b6014546103fe906301000000900460ff1681565b61047961061e3660046141e2565b61164e565b6104796106313660046143ec565b611855565b6105136106443660046140ec565b611870565b6105136106573660046140ec565b60126020526000908152604090205481565b61059b6106773660046140ec565b61187d565b61047961068a3660046145c7565b611945565b61047961069d3660046140ec565b6119e0565b6106b56106b0366004614387565b611a0f565b60405161040a9190614610565b6104796106d03660046140ec565b611aa7565b6105136106e33660046140ec565b60106020526000908152604090205481565b61043b6107033660046140ec565b611b3b565b610513610716366004614387565b611bb2565b610479611c39565b610479610731366004614680565b611c6f565b61051360095481565b6103fe61074d3660046140ec565b60116020526000908152604090205460ff1681565b61047961077036600461469d565b611cb7565b6006546001600160a01b031661043b565b6105136107943660046140ec565b611d78565b61041b611d8f565b61043b73783dfb5811b0540875f451c48c13af6dd8d42df581565b6104796107ca366004614719565b611d9e565b6104796107dd366004614785565b6121c4565b6104796107f0366004614387565b6121d3565b61047961221f565b61047961080b3660046142cf565b6122de565b61047961081e3660046147b3565b612310565b6104796108313660046143a4565b612384565b6108496108443660046141e2565b6124db565b6040805193845260208401929092526001600160a01b03169082015260600161040a565b61041b61087b3660046140ec565b612526565b610479612600565b610513600a5481565b61047961089f366004614387565b61265c565b6104796108b2366004614387565b6126fc565b61047961279e565b6103fe6108cd3660046147eb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61090e6109093660046141e2565b612801565b6040805192835260208301919091520161040a565b6105136109313660046141e2565b612885565b600d5461043b906001600160a01b031681565b610479610957366004614387565b6129cf565b61047961096a366004614819565b612a6a565b61047961097d36600461485b565b612afb565b60006001600160e01b0319821663cde244d960e01b14806109b357506001600160e01b031982166328d12bf960e21b145b806109ce57506001600160e01b03198216630a85bd0160e11b145b806109e957506001600160e01b0319821663152a902d60e11b145b806109f857506109f882612be0565b92915050565b606060008054610a0d906148a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a39906148a5565b8015610a865780601f10610a5b57610100808354040283529160200191610a86565b820191906000526020600020905b815481529060010190602001808311610a6957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b0e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b610b3687878686612c30565b610b41878585612e01565b6040516307a8567d60e51b81526001600160a01b0385169063f50acfa090610b779030908a908a90899089908990600401614909565b600060405180830381600087803b158015610b9157600080fd5b505af1158015610ba5573d6000803e3d6000fd5b50505050836001600160a01b0316866001600160a01b031688600080516020614d0183398151915286604051610bdd91815260200190565b60405180910390a450505050505050565b6000610bf982611b3b565b9050806001600160a01b0316836001600160a01b03161415610c675760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b05565b336001600160a01b0382161480610c835750610c8381336108cd565b610cf55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b05565b610cff8383612f1d565b505050565b6006546001600160a01b03163314610d2e5760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b0382166000908152601360205260409020548110610d955760405162461bcd60e51b815260206004820152601d60248201527f4b756d616c656f6e3a20616c6c6f776c697374206e6f7420666f756e640000006044820152606401610b05565b6001600160a01b03821660009081526013602052604090208054610dbb9060019061499b565b81548110610dcb57610dcb6149b2565b906000526020600020906003020160136000846001600160a01b03166001600160a01b031681526020019081526020016000208281548110610e0f57610e0f6149b2565b600091825260208083208454600390930201918255600180850154908301556002938401549390910180546001600160a01b0319166001600160a01b039485161790559184168152601390915260409020805480610e6f57610e6f6149c8565b600082815260208082206003600019909401938402018281556001810183905560020180546001600160a01b0319169055919092556001600160a01b0384168252601390526040902054610ede576001600160a01b0382166000908152601360205260408120610ede91613f67565b604080516001600160a01b0384168152602081018390527f952d6272db98fdac65d499a5abf9e847a7f3369a9913560d292a5bdf05e47fbc910160405180910390a15050565b6000828152601560205260408120610f3c9083612f8b565b9392505050565b600080825111610fd45760405162461bcd60e51b815260206004820152605060248201527f4b756d616c656f6e3a205f64617461206d75737420636f6e7461696e2074686560448201527f2075696e7432353620746f6b656e496420746f207472616e736665722074686560648201526f1031b434b632103a37b5b2b7103a379760811b608482015260a401610b05565b815160a4359060201115610ffd578251610fef9060086149de565b610ffb9061010061499b565b1c5b6040516331a9108f60e11b81526004810185905230903390636352211e9060240160206040518083038186803b15801561103657600080fd5b505afa15801561104a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106e91906149fd565b6001600160a01b0316146110c45760405162461bcd60e51b815260206004820181905260248201527f4b756d616c656f6e3a204368696c6420746f6b656e206e6f74206f776e65642e6044820152606401610b05565b6110d085823387612f97565b630a85bd0160e11b9150505b949350505050565b60008381526016602090815260408083206001600160a01b038616845290915281206110dc9083612f8b565b6006546001600160a01b0316331461113a5760405162461bcd60e51b8152600401610b0590614950565b600c80546001600160a01b039092166001600160a01b03199092169190911790556014805463ff00000019166301000000179055565b61117c84848484612c30565b611187848383612e01565b604051632142170760e11b81526001600160a01b038316906342842e0e906111b790309087908690600401614a1a565b600060405180830381600087803b1580156111d157600080fd5b505af11580156111e5573d6000803e3d6000fd5b50505050816001600160a01b0316836001600160a01b031685600080516020614d018339815191528460405161121d91815260200190565b60405180910390a450505050565b61123533826133c6565b6112515760405162461bcd60e51b8152600401610b0590614a3e565b610cff83838361349c565b600080600061126a85611d78565b600014159050600060646009548661128291906149de565b61128c9190614aa5565b9050816112aa57600e546001600160a01b0316935091506114f89050565b604051630d5a621b60e01b815260048101879052600060248201819052903090630d5a621b9060440160206040518083038186803b1580156112eb57600080fd5b505afa1580156112ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132391906149fd565b60405163160b01a160e01b8152600481018990526001600160a01b0382166024820152600060448201819052919250309063160b01a19060640160206040518083038186803b15801561137557600080fd5b505afa158015611389573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ad9190614ab9565b905060005b6001600160a01b0383166000908152601360205260409020548110156114e2576001600160a01b03831660009081526013602052604090208054839190839081106113ff576113ff6149b2565b9060005260206000209060030201600001541115801561145a57506001600160a01b0383166000908152601360205260409020805482908110611444576114446149b2565b9060005260206000209060030201600101548211155b156114d0576001600160a01b0383166000908152601360205260409020805482908110611489576114896149b2565b60009182526020909120600260039092020101546009546001600160a01b0390911697506064906114ba908a6149de565b6114c49190614aa5565b955050505050506114f8565b806114da81614ad2565b9150506113b2565b5050600e546001600160a01b0316945090925050505b9250929050565b60008281526016602090815260408083206001600160a01b03851684529091528120610f3c90613649565b6006546001600160a01b031633146115545760405162461bcd60e51b8152600401610b0590614950565b81518351148015611566575080518251145b6115ad5760405162461bcd60e51b8152602060048201526018602482015277096eadac2d8cadedc7440d2dcecc2d8d2c840d8cadccee8d60431b6044820152606401610b05565b60005b83518110156116215761160f8482815181106115ce576115ce6149b2565b60200260200101518483815181106115e8576115e86149b2565b6020026020010151848481518110611602576116026149b2565b6020026020010151612a6a565b8061161981614ad2565b9150506115b0565b50505050565b600a54600082815260126020526040812054909143916116479190614aed565b1092915050565b600260075414156116a15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b05565b6002600755600854610bb8906116b8908390614aed565b11156117065760405162461bcd60e51b815260206004820152601a60248201527f4b756d616c656f6e3a20696e76616c6964207175616e746974790000000000006044820152606401610b05565b600b546001600160a01b031633146117605760405162461bcd60e51b815260206004820152601f60248201527f4b756d616c656f6e3a2063616c6c2066726f6d206f6e6c79206d696e746572006044820152606401610b05565b60005b8181101561184b5760088054908190600061177d83614ad2565b909155508190504361179060018261499b565b6040805160208101949094528301919091524060608083019190915285901b6bffffffffffffffffffffffff1916608082015260940160408051601f1981840301815291815281516020928301206000848152601090935291205561180973783dfb5811b0540875f451c48c13af6dd8d42df582613653565b61183873783dfb5811b0540875f451c48c13af6dd8d42df585836040518060200160405280600081525061366d565b508061184381614ad2565b915050611763565b5050600160075550565b610cff838383604051806020016040528060008152506122de565b60006109f8600083612885565b60008181526002602052604081205481906001600160a01b03166118ed5760405162461bcd60e51b815260206004820152602160248201527f4b756d616c656f6e3a205f746f6b656e496420646f6573206e6f7420657869736044820152601d60fa1b6064820152608401610b05565b600083815260156020526040812061190490613649565b1161191057600061191b565b61191b836000610f24565b91506001600160a01b03821661193257600061193e565b61193e838360006110e4565b9050915091565b6006546001600160a01b0316331461196f5760405162461bcd60e51b8152600401610b0590614950565b60145460ff16156119925760405162461bcd60e51b8152600401610b0590614b05565b80516119a590600f906020840190613f88565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad816040516119d591906140d9565b60405180910390a150565b6006546001600160a01b03163314611a0a5760405162461bcd60e51b8152600401610b0590614950565b600a55565b6001600160a01b0381166000908152601360209081526040808320805482518185028101850190935280835260609492939192909184015b82821015611a9c576000848152602090819020604080516060810182526003860290920180548352600180820154848601526002909101546001600160a01b0316918301919091529083529092019101611a47565b505050509050919050565b6006546001600160a01b03163314611ad15760405162461bcd60e51b8152600401610b0590614950565b6064811115611b365760405162461bcd60e51b815260206004820152602b60248201527f4b756d616c656f6e3a20726f79616c7479206665652077696c6c20657863656560448201526a642073616c65507269636560a81b6064820152608401610b05565b600955565b6000818152600260205260408120546001600160a01b0316806109f85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b05565b60006001600160a01b038216611c1d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b05565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314611c635760405162461bcd60e51b8152600401610b0590614950565b611c6d60006136a0565b565b6006546001600160a01b03163314611c995760405162461bcd60e51b8152600401610b0590614950565b6014805491151563010000000263ff00000019909216919091179055565b611cc386868686612c30565b611cce868585612e01565b604051635c46a7ef60e11b81526001600160a01b0385169063b88d4fde90611d029030908990889088908890600401614b3c565b600060405180830381600087803b158015611d1c57600080fd5b505af1158015611d30573d6000803e3d6000fd5b50505050836001600160a01b0316856001600160a01b031687600080516020614d0183398151915286604051611d6891815260200190565b60405180910390a4505050505050565b60008181526015602052604081206109f890613649565b606060018054610a0d906148a5565b60026007541415611df15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b05565b6002600755600c546001600160a01b03163314611e605760405162461bcd60e51b815260206004820152602760248201527f4b756d616c656f6e3a2063616c6c2066726f6d206f6e6c79206d6f6c74696e67604482015266103432b63832b960c91b6064820152608401610b05565b8051825114611eac5760405162461bcd60e51b8152602060048201526018602482015277096eadac2d8cadedc7440d2dcecc2d8d2c840d8cadccee8d60431b6044820152606401610b05565b60005b82518110156121b9576000611edc848381518110611ecf57611ecf6149b2565b6020026020010151611870565b90506001600160a01b0380821690861614611f395760405162461bcd60e51b815260206004820152601960248201527f4b756d616c656f6e3a20546f6b656e206e6f74206f776e6564000000000000006044820152606401610b05565b600160116000868581518110611f5157611f516149b2565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055504360126000868581518110611f9557611f956149b2565b6020026020010151815260200190815260200160002081905550600d60009054906101000a90046001600160a01b03166001600160a01b031663fdf226063087868681518110611fe757611fe76149b2565b6020026020010151601060008a8981518110612005576120056149b2565b60200260200101518152602001908152602001600020546040518563ffffffff1660e01b815260040161205f94939291906001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b602060405180830381600087803b15801561207957600080fd5b505af115801561208d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b19190614ab9565b50600d5483516001600160a01b03909116906342842e0e90309088908790879081106120df576120df6149b2565b60200260200101516040518463ffffffff1660e01b815260040161210593929190614a1a565b600060405180830381600087803b15801561211f57600080fd5b505af1158015612133573d6000803e3d6000fd5b5050600d5486516001600160a01b039182169350908816915086908590811061215e5761215e6149b2565b6020026020010151600080516020614d01833981519152868681518110612187576121876149b2565b602002602001015160405161219e91815260200190565b60405180910390a450806121b181614ad2565b915050611eaf565b505060016007555050565b6121cf3383836136f2565b5050565b6006546001600160a01b031633146121fd5760405162461bcd60e51b8152600401610b0590614950565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146122495760405162461bcd60e51b8152600401610b0590614950565b60145462010000900460ff16156122a25760405162461bcd60e51b815260206004820152601a60248201527f4b756d616c656f6e3a20416c72656164792072657665616c65640000000000006044820152606401610b05565b6014805462ff00001916620100001790556040517ffb2f2ded78cf28d25f29573488f57adffab91a0e5ba08b61f2c686ba1fb233b390600090a1565b6122e833836133c6565b6123045760405162461bcd60e51b8152600401610b0590614a3e565b6116218484848461366d565b61231c84848484612f97565b6040516323b872dd60e01b81526001600160a01b038316906323b872dd9061234c90879030908690600401614a1a565b600060405180830381600087803b15801561236657600080fd5b505af115801561237a573d6000803e3d6000fd5b5050505050505050565b61239084848484612c30565b61239b848383612e01565b60408051306024820152604480820184905282518083039091018152606490910182526020810180516001600160e01b031663095ea7b360e01b179052905160009182916001600160a01b038616916123f391614b7b565b6000604051808303816000865af19150503d8060008114612430576040519150601f19603f3d011682016040523d82523d6000602084013e612435565b606091505b509150915081801561245f57508051158061245f57508080602001905181019061245f9190614b97565b6124ab5760405162461bcd60e51b815260206004820152601b60248201527f4b756d616c656f6e3a204661696c656420746f20417070726f766500000000006044820152606401610b05565b6040516323b872dd60e01b81526001600160a01b038516906323b872dd90611d0290309089908890600401614a1a565b601360205281600052604060002081815481106124f757600080fd5b60009182526020909120600390910201805460018201546002909201549093509091506001600160a01b031683565b6000818152600260205260409020546060906001600160a01b03166125a55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b05565b60006125af6137c1565b905060008151116125cf5760405180602001604052806000815250610f3c565b806125d9846137d0565b6040516020016125ea929190614bb4565b6040516020818303038152906040529392505050565b6006546001600160a01b0316331461262a5760405162461bcd60e51b8152600401610b0590614950565b60145460ff161561264d5760405162461bcd60e51b8152600401610b0590614b05565b6014805460ff19166001179055565b6006546001600160a01b031633146126865760405162461bcd60e51b8152600401610b0590614950565b601454610100900460ff16156126ae5760405162461bcd60e51b8152600401610b0590614b05565b600d80546001600160a01b0319166001600160a01b0383169081179091556040519081527fef69ae522970f641cbf91c800b87cd29bffe07b1436a28d39eaf0678700587f0906020016119d5565b6006546001600160a01b031633146127265760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b03811661277c5760405162461bcd60e51b815260206004820152601a60248201527f4b756d616c656f6e3a20696e76616c69642072656365697665720000000000006044820152606401610b05565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146127c85760405162461bcd60e51b8152600401610b0590614950565b601454610100900460ff16156127f05760405162461bcd60e51b8152600401610b0590614b05565b6014805461ff001916610100179055565b6001600160a01b03821660008181526017602090815260408083208584528252808320548084526016835281842094845293909152812090919061284590846138ce565b6128615760405162461bcd60e51b8152600401610b0590614be3565b61286a81611b3b565b6001600160a01b031663cd740db560e01b1794909350915050565b6000806001600160a01b038416156128aa576128a184846138e6565b935090506128b6565b6128b383611b3b565b90505b6001600160a01b0381163014156128d1576128a181846138e6565b60408051306024820152604480820186905282518083039091018152606490910182526020810180516001600160e01b03166376c0e6ed60e11b179052905160009182916001600160a01b0385169161292991614b7b565b600060405180830381855afa9150503d8060008114612964576040519150601f19603f3d011682016040523d82523d6000602084013e612969565b606091505b5091509150805160001461298e578080602001905181019061298b9190614ab9565b93505b60018215151480156129a7575060e084901c63cd740db5145b156129b4575050506109f8565b50506001600160a01b031663cd740db560e01b1790506109f8565b6006546001600160a01b031633146129f95760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b038116612a5e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b05565b612a67816136a0565b50565b6006546001600160a01b03163314612a945760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b0383166000908152601360205260409020805482919084908110612ac157612ac16149b2565b906000526020600020906003020160020160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b6006546001600160a01b03163314612b255760405162461bcd60e51b8152600401610b0590614950565b6001600160a01b0384811660008181526013602090815260408083208151606080820184528a82528185018a81528989168386019081528454600180820187559589529787902093516003909802909301968755519286019290925551600290940180546001600160a01b0319169490961693909317909455835192835282018690529181018490527fb7ed037ec88ee8cba16f5e3ad79389047b9abe89b64b4559e09d39fdc9b8e59991015b60405180910390a150505050565b60006001600160e01b031982166380ac58cd60e01b1480612c1157506001600160e01b03198216635b5e139f60e01b145b806109f857506301ffc9a760e01b6001600160e01b03198316146109f8565b6001600160a01b038216600081815260176020908152604080832085845282528083205480845260168352818420948452939091529020612c7190836138ce565b612ce35760405162461bcd60e51b815260206004820152603e60248201527f4b756d616c656f6e3a204368696c64206173736574206973206e6f74206f776e60448201527f6564206279206120746f6b656e20696e207468697320636f6e747261637400006064820152608401610b05565b848114612d435760405162461bcd60e51b815260206004820152602860248201527f4b756d616c656f6e3a20506172656e7420646f6573206e6f74206f776e207468604482015267185d08185cdcd95d60c21b6064820152608401610b05565b6000612d4e86611870565b9050336001600160a01b0382161480612d77575033612d6c87610a90565b6001600160a01b0316145b80612d875750612d8781336108cd565b612df95760405162461bcd60e51b815260206004820152603860248201527f4b756d616c656f6e3a204e6f7420616c6c6f77656420746f207472616e73666560448201527f72206368696c6420617373657473206f6620706172656e7400000000000000006064820152608401610b05565b505050505050565b60008381526016602090815260408083206001600160a01b03861684529091529020612e2d90826138ce565b612e8a5760405162461bcd60e51b815260206004820152602860248201527f4b756d616c656f6e3a204368696c6420746f6b656e206e6f74206f776e656420604482015267313c903a37b5b2b760c11b6064820152608401610b05565b60008381526016602090815260408083206001600160a01b03861684529091529020612eb69082613958565b506001600160a01b03821660008181526017602090815260408083208584528252808320839055868352601282528083204390556016825280832093835292905220612f0190613649565b610cff5760008381526015602052604090206116219083613964565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f5282611b3b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610f3c8383613979565b6014546301000000900460ff16612ffe5760405162461bcd60e51b815260206004820152602560248201527f4b756d616c656f6e3a204368696c64207265636569766564207768696c652070604482015264185d5cd95960da1b6064820152608401610b05565b60008381526011602052604090205460ff166130685760405162461bcd60e51b8152602060048201526024808201527f4b756d616c656f6e3a204368696c64207265636569766564206265666f7265206044820152631b5bdb1d60e21b6064820152608401610b05565b336001600160a01b03831614806130875750336001600160a01b038516145b6130d35760405162461bcd60e51b815260206004820152601b60248201527f4b756d616c656f6e3a20696e76616c6964206d736753656e64657200000000006044820152606401610b05565b60006130de84611870565b90506001600160a01b03858116908216146131525760405162461bcd60e51b815260206004820152602e60248201527f4b756d616c656f6e3a206f6e6c79206f776e65722063616e207472616e73666560448201526d72206368696c6420746f6b656e7360901b6064820152608401610b05565b61315c83836139a3565b6131a85760405162461bcd60e51b815260206004820152601b60248201527f4b756d616c656f6e3a20546f6b656e206e6f7420616c6c6f77656400000000006044820152606401610b05565b60008481526015602052604090206131bf90613649565b1561328f5760006131d1856000610f24565b905060006131e1868360006110e4565b90506131ee868383612e01565b604051632142170760e11b81526001600160a01b038316906342842e0e9061321e90309087908690600401614a1a565b600060405180830381600087803b15801561323857600080fd5b505af115801561324c573d6000803e3d6000fd5b50505050816001600160a01b0316836001600160a01b031687600080516020614d018339815191528460405161328491815260200190565b60405180910390a450505b60008481526015602052604090206132a690613649565b156133195760405162461bcd60e51b815260206004820152603f60248201527f4b756d616c656f6e3a2043616e6e6f742072656365697665206368696c64207460448201527f6f6b656e20626563617573652069742068617320616c726561647920686164006064820152608401610b05565b60008481526015602052604090206133319084613a79565b5060008481526016602090815260408083206001600160a01b0387168452909152902061335e9083613a8e565b506001600160a01b038381166000818152601760209081526040808320878452825291829020889055905185815291928792908916917f0371ddf2288ad1ba92626a7e31c86a9d006e592cfe57d7d946ef08b13457c08b910160405180910390a45050505050565b6000818152600260205260408120546001600160a01b031661343f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b05565b600061344a83611b3b565b9050806001600160a01b0316846001600160a01b03161480613471575061347181856108cd565b806110dc5750836001600160a01b031661348a84610a90565b6001600160a01b031614949350505050565b826001600160a01b03166134af82611b3b565b6001600160a01b0316146135135760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b05565b6001600160a01b0382166135755760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b05565b613580838383613a9a565b61358b600082612f1d565b6001600160a01b03831660009081526003602052604081208054600192906135b490849061499b565b90915550506001600160a01b03821660009081526003602052604081208054600192906135e2908490614aed565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610cff838383613af9565b60006109f8825490565b6121cf828260405180602001604052806000815250613b92565b61367884848461349c565b61368484848484613bc5565b6116215760405162461bcd60e51b8152600401610b0590614c40565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156137545760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b05565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6060600f8054610a0d906148a5565b6060816137f45750506040805180820190915260018152600360fc1b602082015290565b8160005b811561381e578061380881614ad2565b91506138179050600a83614aa5565b91506137f8565b60008167ffffffffffffffff81111561383957613839614230565b6040519080825280601f01601f191660200182016040528015613863576020820181803683370190505b5090505b84156110dc5761387860018361499b565b9150613885600a86614c92565b613890906030614aed565b60f81b8183815181106138a5576138a56149b2565b60200101906001600160f81b031916908160001a9053506138c7600a86614aa5565b9450613867565b60008181526001830160205260408120541515610f3c565b6001600160a01b03821660008181526017602090815260408083208584528252808320548084526016835281842094845293909152812090919061392a90846138ce565b6139465760405162461bcd60e51b8152600401610b0590614be3565b61394f81611b3b565b91509250929050565b6000610f3c8383613ccf565b6000610f3c836001600160a01b038416613ccf565b6000826000018281548110613990576139906149b2565b9060005260206000200154905092915050565b60008060005b6001600160a01b038516600090815260136020526040902054811015613a71576001600160a01b03851660009081526013602052604090208054859190839081106139f6576139f66149b2565b90600052602060002090600302016000015411158015613a5157506001600160a01b0385166000908152601360205260409020805482908110613a3b57613a3b6149b2565b9060005260206000209060030201600101548411155b15613a5f5760019150613a71565b80613a6981614ad2565b9150506139a9565b509392505050565b6000610f3c836001600160a01b038416613dc2565b6000610f3c8383613dc2565b613aa381611627565b610cff5760405162461bcd60e51b815260206004820152602160248201527f4b756d616c656f6e3a207472616e73666572206973206e6f7420616c6c6f77656044820152601960fa1b6064820152608401610b05565b60008181526015602052604081208190613b1290613649565b11613b1e576000613b29565b613b29826000610f24565b90507fc10a2dbd6c95f02eb0d3af325419065d9843a8e18fa3ad6cb9ff2dc193466ae382826001600160a01b038116613b63576000613b6f565b613b6f858560006110e4565b604080519384526001600160a01b03909216602084015290820152606001612bd2565b613b9c8383613e11565b613ba96000848484613bc5565b610cff5760405162461bcd60e51b8152600401610b0590614c40565b60006001600160a01b0384163b15613cc757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c09903390899088908890600401614ca6565b602060405180830381600087803b158015613c2357600080fd5b505af1925050508015613c53575060408051601f3d908101601f19168201909252613c5091810190614ce3565b60015b613cad573d808015613c81576040519150601f19603f3d011682016040523d82523d6000602084013e613c86565b606091505b508051613ca55760405162461bcd60e51b8152600401610b0590614c40565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110dc565b5060016110dc565b60008181526001830160205260408120548015613db8576000613cf360018361499b565b8554909150600090613d079060019061499b565b9050818114613d6c576000866000018281548110613d2757613d276149b2565b9060005260206000200154905080876000018481548110613d4a57613d4a6149b2565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613d7d57613d7d6149c8565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109f8565b60009150506109f8565b6000818152600183016020526040812054613e09575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f8565b5060006109f8565b6001600160a01b038216613e675760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b05565b6000818152600260205260409020546001600160a01b031615613ecc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b05565b613ed860008383613a9a565b6001600160a01b0382166000908152600360205260408120805460019290613f01908490614aed565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46121cf60008383613af9565b5080546000825560030290600052602060002090810190612a67919061400c565b828054613f94906148a5565b90600052602060002090601f016020900481019282613fb65760008555613ffc565b82601f10613fcf57805160ff1916838001178555613ffc565b82800160010185558215613ffc579182015b82811115613ffc578251825591602001919060010190613fe1565b50614008929150614039565b5090565b5b8082111561400857600080825560018201556002810180546001600160a01b031916905560030161400d565b5b80821115614008576000815560010161403a565b6001600160e01b031981168114612a6757600080fd5b60006020828403121561407657600080fd5b8135610f3c8161404e565b60005b8381101561409c578181015183820152602001614084565b838111156116215750506000910152565b600081518084526140c5816020860160208601614081565b601f01601f19169290920160200192915050565b602081526000610f3c60208301846140ad565b6000602082840312156140fe57600080fd5b5035919050565b6001600160a01b0381168114612a6757600080fd5b60008083601f84011261412c57600080fd5b50813567ffffffffffffffff81111561414457600080fd5b6020830191508360208285010111156114f857600080fd5b600080600080600080600060c0888a03121561417757600080fd5b87359650602088013561418981614105565b95506040880135945060608801356141a081614105565b93506080880135925060a088013567ffffffffffffffff8111156141c357600080fd5b6141cf8a828b0161411a565b989b979a50959850939692959293505050565b600080604083850312156141f557600080fd5b823561420081614105565b946020939093013593505050565b6000806040838503121561422157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561426f5761426f614230565b604052919050565b600067ffffffffffffffff83111561429157614291614230565b6142a4601f8401601f1916602001614246565b90508281528383830111156142b857600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156142e557600080fd5b84356142f081614105565b9350602085013561430081614105565b925060408501359150606085013567ffffffffffffffff81111561432357600080fd5b8501601f8101871361433457600080fd5b61434387823560208401614277565b91505092959194509250565b60008060006060848603121561436457600080fd5b83359250602084013561437681614105565b929592945050506040919091013590565b60006020828403121561439957600080fd5b8135610f3c81614105565b600080600080608085870312156143ba57600080fd5b8435935060208501356143cc81614105565b925060408501356143dc81614105565b9396929550929360600135925050565b60008060006060848603121561440157600080fd5b833561440c81614105565b9250602084013561437681614105565b6000806040838503121561442f57600080fd5b82359150602083013561444181614105565b809150509250929050565b600067ffffffffffffffff82111561446657614466614230565b5060051b60200190565b600082601f83011261448157600080fd5b813560206144966144918361444c565b614246565b82815260059290921b840181019181810190868411156144b557600080fd5b8286015b848110156144d95780356144cc81614105565b83529183019183016144b9565b509695505050505050565b600082601f8301126144f557600080fd5b813560206145056144918361444c565b82815260059290921b8401810191818101908684111561452457600080fd5b8286015b848110156144d95780358352918301918301614528565b60008060006060848603121561455457600080fd5b833567ffffffffffffffff8082111561456c57600080fd5b61457887838801614470565b9450602086013591508082111561458e57600080fd5b61459a878388016144e4565b935060408601359150808211156145b057600080fd5b506145bd86828701614470565b9150509250925092565b6000602082840312156145d957600080fd5b813567ffffffffffffffff8111156145f057600080fd5b8201601f8101841361460157600080fd5b6110dc84823560208401614277565b602080825282518282018190526000919060409081850190868401855b828110156146655781518051855286810151878601528501516001600160a01b0316858501526060909301929085019060010161462d565b5091979650505050505050565b8015158114612a6757600080fd5b60006020828403121561469257600080fd5b8135610f3c81614672565b60008060008060008060a087890312156146b657600080fd5b8635955060208701356146c881614105565b945060408701356146d881614105565b935060608701359250608087013567ffffffffffffffff8111156146fb57600080fd5b61470789828a0161411a565b979a9699509497509295939492505050565b60008060006060848603121561472e57600080fd5b833561473981614105565b9250602084013567ffffffffffffffff8082111561475657600080fd5b614762878388016144e4565b9350604086013591508082111561477857600080fd5b506145bd868287016144e4565b6000806040838503121561479857600080fd5b82356147a381614105565b9150602083013561444181614672565b600080600080608085870312156147c957600080fd5b84356147d481614105565b93506020850135925060408501356143dc81614105565b600080604083850312156147fe57600080fd5b823561480981614105565b9150602083013561444181614105565b60008060006060848603121561482e57600080fd5b833561483981614105565b925060208401359150604084013561485081614105565b809150509250925092565b6000806000806080858703121561487157600080fd5b843561487c81614105565b93506020850135925060408501359150606085013561489a81614105565b939692955090935050565b600181811c908216806148b957607f821691505b602082108114156148da57634e487b7160e01b600052602260045260246000fd5b50919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905260009061494490830184866148e0565b98975050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156149ad576149ad614985565b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60008160001904831182151516156149f8576149f8614985565b500290565b600060208284031215614a0f57600080fd5b8151610f3c81614105565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082614ab457614ab4614a8f565b500490565b600060208284031215614acb57600080fd5b5051919050565b6000600019821415614ae657614ae6614985565b5060010190565b60008219821115614b0057614b00614985565b500190565b60208082526018908201527f4b756d616c656f6e3a20416c72656164792066726f7a656e0000000000000000604082015260600190565b6001600160a01b0386811682528516602082015260408101849052608060608201819052600090614b7090830184866148e0565b979650505050505050565b60008251614b8d818460208701614081565b9190910192915050565b600060208284031215614ba957600080fd5b8151610f3c81614672565b60008351614bc6818460208801614081565b835190830190614bda818360208801614081565b01949350505050565b6020808252603d908201527f4b756d616c656f6e3a2054686174206368696c64206973206e6f74206f776e6560408201527f64206279206120746f6b656e20696e207468697320636f6e7472616374000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082614ca157614ca1614a8f565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614cd9908301846140ad565b9695505050505050565b600060208284031215614cf557600080fd5b8151610f3c8161404e56fe0ef52e516fb5aec15a5d3587e5480481b702b26db93c8430eca78b61990fd3f6a26469706673582212200b37ad4d2be36597b50b4226c57181c6fae3ad33fe1b882d1257651a2cae16bd64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000012aed155123c6824419ac0cc8fddebe8ded4de70
-----Decoded View---------------
Arg [0] : _defaultBeneficiary (address): 0x12AeD155123C6824419AC0CC8FddEbe8ded4de70
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000012aed155123c6824419ac0cc8fddebe8ded4de70
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.