Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
546 MSZ
Holders
180
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MSZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MeSkullz
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 500000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // author Name: Alex Yap // author-email: <[email protected]> // author-website: https://alexyap.dev pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./skullz.sol"; interface IWhitelistContract { function balanceOf(address owner) external view returns (uint256 balance); function ownerOf(uint256 tokenId) external view returns (address owner); } contract MeSkullz is ERC721Enumerable, ReentrancyGuard, Ownable { struct WLConStruct { IWhitelistContract _cntrct; bool _vld; } string public MESKULLZ_PROVENANCE = ""; string public baseTokenURI; bool public mintIsActive = false; bool public mintIsActivePixlrGenesis = false; bool public mintIsActiveWhitelistWallet = false; bool public mintIsActiveWhitelistContract = false; uint256 adminMinted; uint256 adminReserved = 200; uint256 constant pixlrGenesisReserved = 300; uint256 public pixlrGenesisMinted; uint256 public whitelistMaxMint = 3; uint256 public meskullzPrice; uint256 public meskullzMaxPerMint; uint256 public skullzPriceName = 300 ether; uint256 public constant MAX_MESKULLZ = 10000; mapping(uint256 => string) public meskullzName; mapping(uint256 => bool) public pixlrGenesisClaimed; mapping(address => uint256) public whitelistMinted; mapping(string => WLConStruct) public whitelistContract; mapping(address => bool) public whitelist; Skullz public skullzToken; IWhitelistContract pixlrGenesis; //events event NameChanged(string name, uint256 tokenId); constructor(string memory baseURI, uint256 _mintPrice, uint256 _maxPerMint, address _pixlrGenesis) ERC721("MeSkullz", "MSZ") { setBaseURI(baseURI); meskullzPrice = _mintPrice; meskullzMaxPerMint = _maxPerMint; pixlrGenesis = IWhitelistContract(_pixlrGenesis); } function _baseURI() internal view override returns (string memory) { return baseTokenURI; } function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function setPrice(uint256 _mintPrice) external onlyOwner { meskullzPrice = _mintPrice; } function setMaxPerMint(uint256 _maxPerMint) external onlyOwner { meskullzMaxPerMint = _maxPerMint; } function setWhitelistMaxMint(uint256 _max) external onlyOwner { whitelistMaxMint = _max; } function flipMintState() public onlyOwner { mintIsActive = !mintIsActive; } function flipPixlrGenesisMintState() public onlyOwner { mintIsActivePixlrGenesis = !mintIsActivePixlrGenesis; } function flipWhitelisWalletMintState() public onlyOwner { mintIsActiveWhitelistWallet = !mintIsActiveWhitelistWallet; } function flipWhitelisContractMintState() public onlyOwner { mintIsActiveWhitelistContract = !mintIsActiveWhitelistContract; } function setProvenanceHash(string memory provenanceHash) public onlyOwner { MESKULLZ_PROVENANCE = provenanceHash; } function setSkullzToken(address _yield) external onlyOwner { skullzToken = Skullz(_yield); } function setBurnRate(uint256 _namingPrice) external onlyOwner { skullzPriceName = _namingPrice; } function addWhitelist(address[] calldata _addrs) public onlyOwner { for (uint256 i = 0; i < _addrs.length; i++) { whitelist[_addrs[i]] = true; } } function removeWhitelist(address[] calldata _addrs) public onlyOwner { for (uint256 i = 0; i < _addrs.length; i++) { delete whitelist[_addrs[i]]; } } function addWhitelistContract(string[] calldata _names, address[] calldata _addrs) public onlyOwner { for (uint256 i = 0; i < _addrs.length; i++) { whitelistContract[_names[i]] = WLConStruct(IWhitelistContract(_addrs[i]), true); } } function removeWhitelistContract(string[] calldata _names) public onlyOwner { for (uint256 i = 0; i < _names.length; i++) { delete whitelistContract[_names[i]]; } } function withdraw() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0); payable(msg.sender).transfer(balance); } function reserveMeskullz(uint256 numberOfTokens) public onlyOwner { require((adminMinted + numberOfTokens) <= adminReserved, "Purchase would exceed reserved supply"); uint256 supply = totalSupply(); uint256 i; for (i = 0; i < numberOfTokens; i++) { if (totalSupply() < MAX_MESKULLZ) { uint256 mintIndex = supply + i; adminMinted++; _safeMint(msg.sender, mintIndex); } } skullzToken.updateRewardOnMint(msg.sender); } function mint(uint256 numberOfTokens) public payable nonReentrant{ require(mintIsActive, "Sales are inactive"); require(numberOfTokens <= meskullzMaxPerMint, "Cannot purchase this many tokens per transaction"); uint256 total = totalSupply(); require((total + numberOfTokens - pixlrGenesisMinted - adminMinted) <= (MAX_MESKULLZ - pixlrGenesisReserved - adminReserved), "Purchase would exceed supply"); require(meskullzPrice * numberOfTokens <= msg.value, "Incorrect ether value"); for(uint256 i = 0; i < numberOfTokens; i++) { _safeMint(msg.sender, totalSupply()); } skullzToken.updateRewardOnMint(msg.sender); } function mintForPixlrGenesis(uint16[] calldata pgTokenIds) public nonReentrant{ require(mintIsActivePixlrGenesis, "Sales are inactive"); require(pgTokenIds.length <= meskullzMaxPerMint, "Cannot purchase this many tokens per transaction"); require((pixlrGenesisMinted + pgTokenIds.length) <= pixlrGenesisReserved, "Purchase would exceed reserved supply"); for (uint256 i = 0; i < pgTokenIds.length; i++) { require(pixlrGenesis.ownerOf(pgTokenIds[i]) == msg.sender, "Not the owner of this token"); require(!pixlrGenesisClaimed[pgTokenIds[i]], "Token already claimed"); pixlrGenesisClaimed[pgTokenIds[i]] = true; pixlrGenesisMinted++; _safeMint(msg.sender, totalSupply()); } skullzToken.updateRewardOnMint(msg.sender); } function mintForWhitelistWallet(uint256 numberOfTokens) public payable nonReentrant{ require(mintIsActiveWhitelistWallet, "Sales are inactive"); require(numberOfTokens <= meskullzMaxPerMint, "Cannot purchase this many tokens per transaction"); uint256 total = totalSupply(); require((total + numberOfTokens - pixlrGenesisMinted - adminMinted) <= (MAX_MESKULLZ - pixlrGenesisReserved - adminReserved), "Purchase would exceed supply"); require(meskullzPrice * numberOfTokens <= msg.value, "Incorrect ether value"); require(whitelist[msg.sender], "Minting is only available for whitelisted users"); require((whitelistMinted[msg.sender] + numberOfTokens) <= whitelistMaxMint, "Number of tokens requested exceeded the value allowed per wallet"); for(uint256 i = 0; i < numberOfTokens; i++) { if (whitelistMinted[msg.sender] < whitelistMaxMint) { whitelistMinted[msg.sender]++; _safeMint(msg.sender, totalSupply()); } } skullzToken.updateRewardOnMint(msg.sender); } function mintForWhitelistContract(uint256 numberOfTokens, string memory _contractName) public payable nonReentrant{ require(mintIsActiveWhitelistContract, "Sales are inactive"); require(numberOfTokens <= meskullzMaxPerMint, "Cannot purchase this many tokens per transaction"); uint256 total = totalSupply(); require((total + numberOfTokens - pixlrGenesisMinted - adminMinted) <= (MAX_MESKULLZ - pixlrGenesisReserved - adminReserved), "Purchase would exceed supply"); require(meskullzPrice * numberOfTokens <= msg.value, "Incorrect ether value"); require(validateName(_contractName), "Invalid name"); require(whitelistContract[_contractName]._vld, "Invalid contract"); require(whitelistContract[_contractName]._cntrct.balanceOf(msg.sender) > 0, "You do not hold any token in this contract"); require((whitelistMinted[msg.sender] + numberOfTokens) <= whitelistMaxMint, "Number of tokens requested exceeded the value allowed per wallet"); for(uint256 i = 0; i < numberOfTokens; i++) { if (whitelistMinted[msg.sender] < whitelistMaxMint) { whitelistMinted[msg.sender]++; _safeMint(msg.sender, totalSupply()); } } skullzToken.updateRewardOnMint(msg.sender); } function transferFrom(address from, address to, uint256 tokenId) public override nonReentrant{ skullzToken.updateReward(from, to); ERC721.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override nonReentrant{ skullzToken.updateReward(from, to); ERC721.safeTransferFrom(from, to, tokenId, _data); } function getReward() external { skullzToken.updateReward(msg.sender, address(0)); skullzToken.getReward(msg.sender); } function changeName(uint256 _tokenId, string memory _newName) public { require(ownerOf(_tokenId) == msg.sender); require(validateName(_newName), "Invalid name"); skullzToken.burn(msg.sender, skullzPriceName); meskullzName[_tokenId] = _newName; emit NameChanged(_newName, _tokenId); } function validateName(string memory str) internal pure returns (bool) { bytes memory b = bytes(str); if(b.length < 1) return false; if(b.length > 25) return false; if(b[0] == 0x20) return false; // Leading space if(b[b.length - 1] == 0x20) return false; // Trailing space bytes1 lastChar = b[0]; for (uint256 i; i < b.length; i++) { bytes1 char = b[i]; if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces if ( !(char >= 0x30 && char <= 0x39) && //9-0 !(char >= 0x41 && char <= 0x5A) && //A-Z !(char >= 0x61 && char <= 0x7A) && //a-z !(char == 0x20) //space ) { return false; } lastChar = char; } return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// 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: MIT // author Name: Alex Yap // author-email: <[email protected]> // author-website: https://alexyap.dev pragma solidity ^0.8.0; interface IMeSkullz { function balanceOf(address _user) external view returns (uint256 balance); } // Part: OpenZeppelin/[email protected]/Address import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Skullz is ERC20, ReentrancyGuard, Ownable { //START 1645833600 - Saturday, February 26, 2022 8:00:00 AM GMT+08:00 //END 1803513600 - Thursday, February 25, 2027 8:00:00 AM GMT+08:00, 5 years, 157680000 uint256 constant public END = 1803513600; uint256 constant public BASE_RATE = 10 ether; // max supply uint256 public constant MAX_YIELD_SUPPLY = 135050000 ether; uint256 public constant MAX_COMMUNITY_FUND_SUPPLY = 100000000 ether; uint256 public constant MAX_PUBLIC_SALES_SUPPLY = 50000000 ether; uint256 public constant MAX_TEAM_RESERVE_SUPPLY = 30000000 ether; // minted amount uint256 public totalYieldSupply; uint256 public totalCommunityFundSupply; uint256 public totalPublicSalesSupply; uint256 public totalTeamReserveSupply; //mapping mapping(address => bool) councillors; mapping(address => uint256) public rewards; mapping(address => uint256) public lastUpdate; IMeSkullz public meskullzContract; event CouncillorAdded(address councillor); event CouncillorRemoved(address councillor); event RewardPaid(address indexed user, uint256 reward); constructor(address _meskullz) ERC20("SKULLZ", "SKULLZ") { meskullzContract = IMeSkullz(_meskullz); addCouncillor(_meskullz); } function setInterface(address _meskullz) external onlyOwner { meskullzContract = IMeSkullz(_meskullz); } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function isCouncillor(address _councillor) public view returns(bool) { return councillors[_councillor]; } function addCouncillor(address _councillor) public onlyOwner { require(_councillor != address(0), "Cannot add null address"); councillors[_councillor] = true; emit CouncillorAdded(_councillor); } function removeCouncillor(address _councillor) public onlyOwner { require(isCouncillor(_councillor), "Not a councillor"); delete councillors[_councillor]; emit CouncillorRemoved(_councillor); } // updated_amount = (balanceOf(user) * base_rate * delta / 86400) + amount * initial rate function updateRewardOnMint(address _user) external { require(councillors[msg.sender], "Unauthorized"); uint256 time = min(block.timestamp, END); uint256 timerUser = lastUpdate[_user]; uint256 timerRemainder = 0; //update reward count is this is not their first mint if (timerUser > 0) { rewards[_user] = rewards[_user] + (meskullzContract.balanceOf(_user) * BASE_RATE * ((time - timerUser) / 86400)); timerRemainder = (time - timerUser) % 86400; } else { rewards[_user] = 0; } //set new last updated lastUpdate[_user] = time - timerRemainder; } // called on transfers function updateReward(address _from, address _to) external { require(councillors[msg.sender], "Unauthorized"); uint256 time = min(block.timestamp, END); uint256 timerFrom = lastUpdate[_from]; uint256 timerRemainderFrom = 0; if (timerFrom > 0) { rewards[_from] += meskullzContract.balanceOf(_from) * BASE_RATE * ((time - timerFrom) / 86400); timerRemainderFrom = (time - timerFrom) % 86400; } if (timerFrom != END) { lastUpdate[_from] = time - timerRemainderFrom; } if (_to != address(0)) { uint256 timerTo = lastUpdate[_to]; uint256 timerRemainderTo = 0; if (timerTo > 0) { rewards[_to] += meskullzContract.balanceOf(_to) * BASE_RATE * ((time - timerTo) / 86400); timerRemainderTo = (time - timerTo) % 86400; } if (timerTo != END) { lastUpdate[_to] = time - timerRemainderTo; } } } function getReward(address _to) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); uint256 reward = rewards[_to]; if (reward > 0) { require( totalYieldSupply + reward <= MAX_YIELD_SUPPLY, "Maximum yield supply reached" ); rewards[_to] = 0; totalYieldSupply += reward; _mint(_to, reward); emit RewardPaid(_to, reward); } } function communityFundMint(address to, uint256 amount) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); require( totalCommunityFundSupply + amount <= MAX_COMMUNITY_FUND_SUPPLY, "Maximum community fund supply reached" ); totalCommunityFundSupply += amount; _mint(to, amount); } function publicSalesMint(address to, uint256 amount) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); require( totalPublicSalesSupply + amount <= MAX_PUBLIC_SALES_SUPPLY, "Maximum public sales supply reached" ); totalPublicSalesSupply += amount; _mint(to, amount); } function teamReserveMint(address to, uint256 amount) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); require( totalTeamReserveSupply + amount <= MAX_TEAM_RESERVE_SUPPLY, "Maximum team reserve supply reached" ); totalTeamReserveSupply += amount; _mint(to, amount); } function burn(address _from, uint256 _amount) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); _burn(_from, _amount); } function getTotalClaimable(address _user) external view returns(uint256) { uint256 time = min(block.timestamp, END); uint256 pending = meskullzContract.balanceOf(_user) * BASE_RATE * ((time - lastUpdate[_user]) / 86400); return rewards[_user] + pending; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 overriden 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 || getApproved(tokenId) == spender || isApprovedForAll(owner, 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.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `IERC721.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 (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.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 (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: 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 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 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) 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, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "runs": 500000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPerMint","type":"uint256"},{"internalType":"address","name":"_pixlrGenesis","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":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NameChanged","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":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MESKULLZ","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MESKULLZ_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addrs","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_names","type":"string[]"},{"internalType":"address[]","name":"_addrs","type":"address[]"}],"name":"addWhitelistContract","outputs":[],"stateMutability":"nonpayable","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":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPixlrGenesisMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelisContractMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelisWalletMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","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":"meskullzMaxPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"meskullzName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"meskullzPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"pgTokenIds","type":"uint16[]"}],"name":"mintForPixlrGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"string","name":"_contractName","type":"string"}],"name":"mintForWhitelistContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintForWhitelistWallet","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsActivePixlrGenesis","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsActiveWhitelistContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsActiveWhitelistWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"uint256","name":"","type":"uint256"}],"name":"pixlrGenesisClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pixlrGenesisMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addrs","type":"address[]"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_names","type":"string[]"}],"name":"removeWhitelistContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserveMeskullz","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_namingPrice","type":"uint256"}],"name":"setBurnRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerMint","type":"uint256"}],"name":"setMaxPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yield","type":"address"}],"name":"setSkullzToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setWhitelistMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skullzPriceName","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"skullzToken","outputs":[{"internalType":"contract Skullz","name":"","type":"address"}],"stateMutability":"view","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"whitelistContract","outputs":[{"internalType":"contract IWhitelistContract","name":"_cntrct","type":"address"},{"internalType":"bool","name":"_vld","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040819052600060808190526200001b91600c91620001e8565b50600e805463ffffffff1916905560c86010556003601255681043561a88293000006015553480156200004d57600080fd5b5060405162005f0038038062005f008339810160408190526200007091620002c1565b604080518082018252600881526726b2a9b5bab6363d60c11b60208083019182528351808501909452600384526226a9ad60e91b908401528151919291620000bb91600091620001e8565b508051620000d1906001906020840190620001e8565b50506001600a5550620000e4336200011e565b620000ef8462000170565b601392909255601455601c80546001600160a01b0319166001600160a01b039092169190911790555062000403565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b546001600160a01b03163314620001cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001e490600d906020840190620001e8565b5050565b828054620001f690620003c6565b90600052602060002090601f0160209004810192826200021a576000855562000265565b82601f106200023557805160ff191683800117855562000265565b8280016001018555821562000265579182015b828111156200026557825182559160200191906001019062000248565b506200027392915062000277565b5090565b5b8082111562000273576000815560010162000278565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620002bc57600080fd5b919050565b60008060008060808587031215620002d857600080fd5b84516001600160401b0380821115620002f057600080fd5b818701915087601f8301126200030557600080fd5b8151818111156200031a576200031a6200028e565b604051601f8201601f19908116603f011681019083821181831017156200034557620003456200028e565b81604052828152602093508a848487010111156200036257600080fd5b600091505b8282101562000386578482018401518183018501529083019062000367565b82821115620003985760008484830101525b809850505050808701519450505060408501519150620003bb60608601620002a4565b905092959194509250565b600181811c90821680620003db57607f821691505b60208210811415620003fd57634e487b7160e01b600052602260045260246000fd5b50919050565b615aed80620004136000396000f3fe6080604052600436106103975760003560e01c80638aa636c2116101dc578063c39cbef111610102578063e80d2bcb116100a0578063edfcb44a1161006f578063edfcb44a14610b00578063f2fde38b14610b15578063f70db96e14610b35578063f811ec0914610b5457600080fd5b8063e80d2bcb14610a55578063e8a4e39b14610a6a578063e985e9c514610a8a578063edac985b14610ae057600080fd5b8063d547cfb7116100dc578063d547cfb714610969578063db6242c31461097e578063e21469631461099e578063e5fd0e46146109be57600080fd5b8063c39cbef114610913578063c4c943a714610933578063c87b56dd1461094957600080fd5b806398a8cffe1161017a578063a22cb46511610149578063a22cb46514610882578063a6b8ff3e146108a2578063b4104644146108c3578063b88d4fde146108f357600080fd5b806398a8cffe146107fd57806399eed7fb1461082a5780639b19251a1461083f578063a0712d681461086f57600080fd5b80638e9ebb70116101b65780638e9ebb701461077b578063913116b8146107a857806391b7f5ed146107c857806395d89b41146107e857600080fd5b80638aa636c21461071a5780638cf3250f146107305780638da5cb5b1461075057600080fd5b806339fdbcb4116102c157806355f804b31161025f57806370a082311161022e57806370a08231146106ba578063715018a6146106da578063722e141d146106ef578063774448471461070557600080fd5b806355f804b31461064f57806359c74f291461066f5780636352211e1461068457806367c56529146106a457600080fd5b80633d18b9121161029b5780633d18b912146105e057806342842e0e146105f5578063471a4294146106155780634f6ccce71461062f57600080fd5b806339fdbcb4146105a25780633c391751146105b55780633ccfd60b146105cb57600080fd5b8063189d165e11610339578063292ce21f11610308578063292ce21f1461052f5780632f745c5914610542578063300420371461056257806336a3728a1461058257600080fd5b8063189d165e146104b95780631cb58969146104d957806323245216146104ef57806323b872dd1461050f57600080fd5b8063095ea7b311610375578063095ea7b3146104385780630e1ca17a1461045a578063109695231461047a57806318160ddd1461049a57600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004615288565b610b74565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610bd0565b6040516103c8919061531b565b3480156103ff57600080fd5b5061041361040e36600461532e565b610c62565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103c8565b34801561044457600080fd5b50610458610453366004615369565b610d41565b005b34801561046657600080fd5b50600e546103bc9062010000900460ff1681565b34801561048657600080fd5b50610458610495366004615478565b610ece565b3480156104a657600080fd5b506008545b6040519081526020016103c8565b3480156104c557600080fd5b506104586104d436600461532e565b610f66565b3480156104e557600080fd5b506104ab61271081565b3480156104fb57600080fd5b5061045861050a3660046154f9565b610fec565b34801561051b57600080fd5b5061045861052a36600461553b565b611101565b61045861053d36600461532e565b611215565b34801561054e57600080fd5b506104ab61055d366004615369565b6116f9565b34801561056e57600080fd5b5061045861057d36600461532e565b6117c8565b34801561058e57600080fd5b506103e661059d36600461532e565b6119db565b6104586105b036600461557c565b611a75565b3480156105c157600080fd5b506104ab60145481565b3480156105d757600080fd5b50610458612110565b3480156105ec57600080fd5b506104586121c9565b34801561060157600080fd5b5061045861061036600461553b565b6122d8565b34801561062157600080fd5b50600e546103bc9060ff1681565b34801561063b57600080fd5b506104ab61064a36600461532e565b6122f3565b34801561065b57600080fd5b5061045861066a366004615478565b6123b1565b34801561067b57600080fd5b50610458612445565b34801561069057600080fd5b5061041361069f36600461532e565b6124f8565b3480156106b057600080fd5b506104ab60135481565b3480156106c657600080fd5b506104ab6106d53660046155c3565b6125aa565b3480156106e657600080fd5b50610458612678565b3480156106fb57600080fd5b506104ab60125481565b34801561071157600080fd5b50610458612705565b34801561072657600080fd5b506104ab60155481565b34801561073c57600080fd5b5061045861074b3660046154f9565b6127c0565b34801561075c57600080fd5b50600b5473ffffffffffffffffffffffffffffffffffffffff16610413565b34801561078757600080fd5b50601b546104139073ffffffffffffffffffffffffffffffffffffffff1681565b3480156107b457600080fd5b506104586107c33660046155c3565b6128c7565b3480156107d457600080fd5b506104586107e336600461532e565b61298f565b3480156107f457600080fd5b506103e6612a15565b34801561080957600080fd5b506104ab6108183660046155c3565b60186020526000908152604090205481565b34801561083657600080fd5b50610458612a24565b34801561084b57600080fd5b506103bc61085a3660046155c3565b601a6020526000908152604090205460ff1681565b61045861087d36600461532e565b612ae0565b34801561088e57600080fd5b5061045861089d3660046155e0565b612da6565b3480156108ae57600080fd5b50600e546103bc906301000000900460ff1681565b3480156108cf57600080fd5b506103bc6108de36600461532e565b60176020526000908152604090205460ff1681565b3480156108ff57600080fd5b5061045861090e36600461561e565b612db1565b34801561091f57600080fd5b5061045861092e36600461557c565b612ec7565b34801561093f57600080fd5b506104ab60115481565b34801561095557600080fd5b506103e661096436600461532e565b61304d565b34801561097557600080fd5b506103e661315d565b34801561098a57600080fd5b5061045861099936600461532e565b61316a565b3480156109aa57600080fd5b506104586109b936600461532e565b6131f0565b3480156109ca57600080fd5b50610a296109d9366004615478565b805160208183018101805160198252928201919093012091525473ffffffffffffffffffffffffffffffffffffffff81169074010000000000000000000000000000000000000000900460ff1682565b6040805173ffffffffffffffffffffffffffffffffffffffff90931683529015156020830152016103c8565b348015610a6157600080fd5b50610458613276565b348015610a7657600080fd5b50610458610a8536600461569e565b613333565b348015610a9657600080fd5b506103bc610aa536600461570a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610aec57600080fd5b50610458610afb3660046154f9565b6134d7565b348015610b0c57600080fd5b506103e66135f5565b348015610b2157600080fd5b50610458610b303660046155c3565b613602565b348015610b4157600080fd5b50600e546103bc90610100900460ff1681565b348015610b6057600080fd5b50610458610b6f3660046154f9565b613732565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610bca5750610bca82613bed565b92915050565b606060008054610bdf90615738565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0b90615738565b8015610c585780601f10610c2d57610100808354040283529160200191610c58565b820191906000526020600020905b815481529060010190602001808311610c3b57829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610d18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d4c826124f8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d0f565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e335750610e338133610aa5565b610ebf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d0f565b610ec98383613cd0565b505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314610f4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b8051610f6290600c9060208401906151c1565b5050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314610fe7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601555565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461106d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60005b81811015610ec957601a600084848481811061108e5761108e61578c565b90506020020160208101906110a391906155c3565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055806110f9816157ea565b915050611070565b6002600a54141561116e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55601b546040517fd230af3a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015284811660248301529091169063d230af3a90604401600060405180830381600087803b1580156111e857600080fd5b505af11580156111fc573d6000803e3d6000fd5b5050505061120b838383613d70565b50506001600a5550565b6002600a541415611282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55600e5462010000900460ff166112f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53616c65732061726520696e61637469766500000000000000000000000000006044820152606401610d0f565b60145481111561138b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360448201527f20706572207472616e73616374696f6e000000000000000000000000000000006064820152608401610d0f565b600061139660085490565b6010549091506113aa61012c612710615823565b6113b49190615823565b600f546011546113c4858561583a565b6113ce9190615823565b6113d89190615823565b1115611440576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f507572636861736520776f756c642065786365656420737570706c79000000006044820152606401610d0f565b348260135461144f9190615852565b11156114b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610d0f565b336000908152601a602052604090205460ff16611556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4d696e74696e67206973206f6e6c7920617661696c61626c6520666f7220776860448201527f6974656c697374656420757365727300000000000000000000000000000000006064820152608401610d0f565b6012543360009081526018602052604090205461157490849061583a565b111561160457604080517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260248101919091527f4e756d626572206f6620746f6b656e732072657175657374656420657863656560448201527f646564207468652076616c756520616c6c6f776564207065722077616c6c65746064820152608401610d0f565b60005b8281101561166c5760125433600090815260186020526040902054101561165a57336000908152601860205260408120805491611643836157ea565b919050555061165a3361165560085490565b613e11565b80611664816157ea565b915050611607565b50601b546040517f8f7985a800000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911690638f7985a890602401600060405180830381600087803b1580156116d857600080fd5b505af11580156116ec573d6000803e3d6000fd5b50506001600a5550505050565b6000611704836125aa565b8210611792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d0f565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60105481600f5461185a919061583a565b11156118e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f507572636861736520776f756c6420657863656564207265736572766564207360448201527f7570706c790000000000000000000000000000000000000000000000000000006064820152608401610d0f565b60006118f360085490565b905060005b828110156119535761271061190c60085490565b101561194157600061191e828461583a565b600f80549192506000611930836157ea565b919050555061193f3382613e11565b505b8061194b816157ea565b9150506118f8565b601b546040517f8f7985a800000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911690638f7985a890602401600060405180830381600087803b1580156119be57600080fd5b505af11580156119d2573d6000803e3d6000fd5b50505050505050565b601660205260009081526040902080546119f490615738565b80601f0160208091040260200160405190810160405280929190818152602001828054611a2090615738565b8015611a6d5780601f10611a4257610100808354040283529160200191611a6d565b820191906000526020600020905b815481529060010190602001808311611a5057829003601f168201915b505050505081565b6002600a541415611ae2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55600e546301000000900460ff16611b5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53616c65732061726520696e61637469766500000000000000000000000000006044820152606401610d0f565b601454821115611bec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360448201527f20706572207472616e73616374696f6e000000000000000000000000000000006064820152608401610d0f565b6000611bf760085490565b601054909150611c0b61012c612710615823565b611c159190615823565b600f54601154611c25868561583a565b611c2f9190615823565b611c399190615823565b1115611ca1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f507572636861736520776f756c642065786365656420737570706c79000000006044820152606401610d0f565b3483601354611cb09190615852565b1115611d18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610d0f565b611d2182613e2b565b611d87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f496e76616c6964206e616d6500000000000000000000000000000000000000006044820152606401610d0f565b601982604051611d97919061588f565b9081526040519081900360200190205460ff7401000000000000000000000000000000000000000090910416611e29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420636f6e7472616374000000000000000000000000000000006044820152606401610d0f565b6000601983604051611e3b919061588f565b908152604051908190036020018120547f70a0823100000000000000000000000000000000000000000000000000000000825233600483015273ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015611eac57600080fd5b505afa158015611ec0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee491906158ab565b11611f71576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f596f7520646f206e6f7420686f6c6420616e7920746f6b656e20696e2074686960448201527f7320636f6e7472616374000000000000000000000000000000000000000000006064820152608401610d0f565b60125433600090815260186020526040902054611f8f90859061583a565b111561201f57604080517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260248101919091527f4e756d626572206f6620746f6b656e732072657175657374656420657863656560448201527f646564207468652076616c756520616c6c6f776564207065722077616c6c65746064820152608401610d0f565b60005b83811015612082576012543360009081526018602052604090205410156120705733600090815260186020526040812080549161205e836157ea565b91905055506120703361165560085490565b8061207a816157ea565b915050612022565b50601b546040517f8f7985a800000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911690638f7985a890602401600060405180830381600087803b1580156120ee57600080fd5b505af1158015612102573d6000803e3d6000fd5b50506001600a555050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b478061219c57600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610f62573d6000803e3d6000fd5b601b546040517fd230af3a0000000000000000000000000000000000000000000000000000000081523360048201526000602482015273ffffffffffffffffffffffffffffffffffffffff9091169063d230af3a90604401600060405180830381600087803b15801561223b57600080fd5b505af115801561224f573d6000803e3d6000fd5b5050601b546040517fc00007b000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116925063c00007b09150602401600060405180830381600087803b1580156122be57600080fd5b505af11580156122d2573d6000803e3d6000fd5b50505050565b610ec983838360405180602001604052806000815250612db1565b60006122fe60085490565b821061238c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d0f565b6008828154811061239f5761239f61578c565b90600052602060002001549050919050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b8051610f6290600d9060208401906151c1565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146124c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d0f565b600073ffffffffffffffffffffffffffffffffffffffff821661264f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d0f565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146126f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b612703600061428e565b565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612841576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60005b81811015610ec95760198383838181106128605761286061578c565b905060200281019061287291906158c4565b604051612880929190615929565b90815260405190819003602001902080547fffffffffffffffffffffff000000000000000000000000000000000000000000169055806128bf816157ea565b915050612844565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612a10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601355565b606060018054610bdf90615738565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612aa5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b6002600a541415612b4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55600e5460ff16612bbe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53616c65732061726520696e61637469766500000000000000000000000000006044820152606401610d0f565b601454811115612c50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360448201527f20706572207472616e73616374696f6e000000000000000000000000000000006064820152608401610d0f565b6000612c5b60085490565b601054909150612c6f61012c612710615823565b612c799190615823565b600f54601154612c89858561583a565b612c939190615823565b612c9d9190615823565b1115612d05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f507572636861736520776f756c642065786365656420737570706c79000000006044820152606401610d0f565b3482601354612d149190615852565b1115612d7c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610d0f565b60005b8281101561166c57612d943361165560085490565b80612d9e816157ea565b915050612d7f565b610f62338383614305565b6002600a541415612e1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55601b546040517fd230af3a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015285811660248301529091169063d230af3a90604401600060405180830381600087803b158015612e9857600080fd5b505af1158015612eac573d6000803e3d6000fd5b50505050612ebc84848484614433565b50506001600a555050565b33612ed1836124f8565b73ffffffffffffffffffffffffffffffffffffffff1614612ef157600080fd5b612efa81613e2b565b612f60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f496e76616c6964206e616d6500000000000000000000000000000000000000006044820152606401610d0f565b601b546015546040517f9dc29fac000000000000000000000000000000000000000000000000000000008152336004820152602481019190915273ffffffffffffffffffffffffffffffffffffffff90911690639dc29fac90604401600060405180830381600087803b158015612fd657600080fd5b505af1158015612fea573d6000803e3d6000fd5b5050506000838152601660209081526040909120835161300f935090918401906151c1565b507f6fa0841dfa443729d122516505ada2a3a11f108f6593fb105fb13f187408f7fc8183604051613041929190615939565b60405180910390a15050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16613101576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d0f565b600061310b6144d5565b9050600081511161312b5760405180602001604052806000815250613156565b80613135846144e4565b60405160200161314692919061595b565b6040516020818303038152906040525b9392505050565b600d80546119f490615738565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146131eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601455565b600b5473ffffffffffffffffffffffffffffffffffffffff163314613271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601255565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146132f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff811663010000009182900460ff1615909102179055565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146133b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60005b818110156134d05760405180604001604052808484848181106133dc576133dc61578c565b90506020020160208101906133f191906155c3565b73ffffffffffffffffffffffffffffffffffffffff168152600160209091015260198686848181106134255761342561578c565b905060200281019061343791906158c4565b604051613445929190615929565b9081526040516020918190038201902082518154939092015173ffffffffffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffff000000000000000000000000000000000000000000909316929092177401000000000000000000000000000000000000000091151591909102179055806134c8816157ea565b9150506133b7565b5050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314613558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60005b81811015610ec9576001601a600085858581811061357b5761357b61578c565b905060200201602081019061359091906155c3565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055806135ed816157ea565b91505061355b565b600c80546119f490615738565b600b5473ffffffffffffffffffffffffffffffffffffffff163314613683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b73ffffffffffffffffffffffffffffffffffffffff8116613726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d0f565b61372f8161428e565b50565b6002600a54141561379f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55600e54610100900460ff16613815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53616c65732061726520696e61637469766500000000000000000000000000006044820152606401610d0f565b6014548111156138a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360448201527f20706572207472616e73616374696f6e000000000000000000000000000000006064820152608401610d0f565b60115461012c906138b990839061583a565b1115613947576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f507572636861736520776f756c6420657863656564207265736572766564207360448201527f7570706c790000000000000000000000000000000000000000000000000000006064820152608401610d0f565b60005b8181101561166c57601c54339073ffffffffffffffffffffffffffffffffffffffff16636352211e8585858181106139845761398461578c565b9050602002016020810190613999919061598a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815261ffff909116600482015260240160206040518083038186803b1580156139eb57600080fd5b505afa1580156139ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a2391906159ae565b73ffffffffffffffffffffffffffffffffffffffff1614613aa0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4e6f7420746865206f776e6572206f66207468697320746f6b656e00000000006044820152606401610d0f565b60176000848484818110613ab657613ab661578c565b9050602002016020810190613acb919061598a565b61ffff16815260208101919091526040016000205460ff1615613b4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f546f6b656e20616c726561647920636c61696d656400000000000000000000006044820152606401610d0f565b600160176000858585818110613b6257613b6261578c565b9050602002016020810190613b77919061598a565b61ffff1681526020810191909152604001600090812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016921515929092179091556011805491613bc9836157ea565b9190505550613bdb3361165560085490565b80613be5816157ea565b91505061394a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613c8057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610bca57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610bca565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190613d2a826124f8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b613d7a338261461e565b613e06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d0f565b610ec983838361478a565b610f628282604051806020016040528060008152506149fc565b600080829050600181511015613e445750600092915050565b601981511115613e575750600092915050565b80600081518110613e6a57613e6a61578c565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f20000000000000000000000000000000000000000000000000000000000000001415613ec25750600092915050565b8060018251613ed19190615823565b81518110613ee157613ee161578c565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f20000000000000000000000000000000000000000000000000000000000000001415613f395750600092915050565b600081600081518110613f4e57613f4e61578c565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016905060005b8251811015614283576000838281518110613f9757613f9761578c565b01602001517fff000000000000000000000000000000000000000000000000000000000000001690507f20000000000000000000000000000000000000000000000000000000000000008114801561403057507f20000000000000000000000000000000000000000000000000000000000000007fff000000000000000000000000000000000000000000000000000000000000008416145b156140415750600095945050505050565b7f30000000000000000000000000000000000000000000000000000000000000007fff000000000000000000000000000000000000000000000000000000000000008216108015906140d557507f39000000000000000000000000000000000000000000000000000000000000007fff00000000000000000000000000000000000000000000000000000000000000821611155b15801561417357507f41000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161080159061417157507f5a000000000000000000000000000000000000000000000000000000000000007fff00000000000000000000000000000000000000000000000000000000000000821611155b155b801561421057507f61000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161080159061420e57507f7a000000000000000000000000000000000000000000000000000000000000007fff00000000000000000000000000000000000000000000000000000000000000821611155b155b801561425e57507f20000000000000000000000000000000000000000000000000000000000000007fff00000000000000000000000000000000000000000000000000000000000000821614155b1561426f5750600095945050505050565b91508061427b816157ea565b915050613f7a565b506001949350505050565b600b805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561439b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d0f565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61443d338361461e565b6144c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d0f565b6122d284848484614a9f565b6060600d8054610bdf90615738565b60608161452457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561454e5780614538816157ea565b91506145479050600a836159fa565b9150614528565b60008167ffffffffffffffff81111561456957614569615395565b6040519080825280601f01601f191660200182016040528015614593576020820181803683370190505b5090505b8415614616576145a8600183615823565b91506145b5600a86615a0e565b6145c090603061583a565b60f81b8183815181106145d5576145d561578c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061460f600a866159fa565b9450614597565b949350505050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166146cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d0f565b60006146da836124f8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061474957508373ffffffffffffffffffffffffffffffffffffffff1661473184610c62565b73ffffffffffffffffffffffffffffffffffffffff16145b80614616575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff16614616565b8273ffffffffffffffffffffffffffffffffffffffff166147aa826124f8565b73ffffffffffffffffffffffffffffffffffffffff161461484d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610d0f565b73ffffffffffffffffffffffffffffffffffffffff82166148ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d0f565b6148fa838383614b42565b614905600082613cd0565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260036020526040812080546001929061493b908490615823565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061497690849061583a565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b614a068383614c48565b614a136000848484614e16565b610ec9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d0f565b614aaa84848461478a565b614ab684848484614e16565b6122d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d0f565b73ffffffffffffffffffffffffffffffffffffffff8316614baa57614ba581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614be7565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614614be757614be7838261500a565b73ffffffffffffffffffffffffffffffffffffffff8216614c0b57610ec9816150c1565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610ec957610ec98282615170565b73ffffffffffffffffffffffffffffffffffffffff8216614cc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d0f565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615614d51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d0f565b614d5d60008383614b42565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290614d9390849061583a565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614283576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290614e8d903390899088908890600401615a22565b602060405180830381600087803b158015614ea757600080fd5b505af1925050508015614ef5575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252614ef291810190615a6b565b60015b614fbf573d808015614f23576040519150601f19603f3d011682016040523d82523d6000602084013e614f28565b606091505b508051614fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d0f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050614616565b60006001615017846125aa565b6150219190615823565b6000838152600760205260409020549091508082146150815773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b6008546000906150d390600190615823565b600083815260096020526040812054600880549394509092849081106150fb576150fb61578c565b90600052602060002001549050806008838154811061511c5761511c61578c565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061515457615154615a88565b6001900381819060005260206000200160009055905550505050565b600061517b836125aa565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546151cd90615738565b90600052602060002090601f0160209004810192826151ef5760008555615235565b82601f1061520857805160ff1916838001178555615235565b82800160010185558215615235579182015b8281111561523557825182559160200191906001019061521a565b50615241929150615245565b5090565b5b808211156152415760008155600101615246565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461372f57600080fd5b60006020828403121561529a57600080fd5b81356131568161525a565b60005b838110156152c05781810151838201526020016152a8565b838111156122d25750506000910152565b600081518084526152e98160208601602086016152a5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061315660208301846152d1565b60006020828403121561534057600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461372f57600080fd5b6000806040838503121561537c57600080fd5b823561538781615347565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff808411156153df576153df615395565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561542557615425615395565b8160405280935085815286868601111561543e57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261546957600080fd5b613156838335602085016153c4565b60006020828403121561548a57600080fd5b813567ffffffffffffffff8111156154a157600080fd5b61461684828501615458565b60008083601f8401126154bf57600080fd5b50813567ffffffffffffffff8111156154d757600080fd5b6020830191508360208260051b85010111156154f257600080fd5b9250929050565b6000806020838503121561550c57600080fd5b823567ffffffffffffffff81111561552357600080fd5b61552f858286016154ad565b90969095509350505050565b60008060006060848603121561555057600080fd5b833561555b81615347565b9250602084013561556b81615347565b929592945050506040919091013590565b6000806040838503121561558f57600080fd5b82359150602083013567ffffffffffffffff8111156155ad57600080fd5b6155b985828601615458565b9150509250929050565b6000602082840312156155d557600080fd5b813561315681615347565b600080604083850312156155f357600080fd5b82356155fe81615347565b91506020830135801515811461561357600080fd5b809150509250929050565b6000806000806080858703121561563457600080fd5b843561563f81615347565b9350602085013561564f81615347565b925060408501359150606085013567ffffffffffffffff81111561567257600080fd5b8501601f8101871361568357600080fd5b615692878235602084016153c4565b91505092959194509250565b600080600080604085870312156156b457600080fd5b843567ffffffffffffffff808211156156cc57600080fd5b6156d8888389016154ad565b909650945060208701359150808211156156f157600080fd5b506156fe878288016154ad565b95989497509550505050565b6000806040838503121561571d57600080fd5b823561572881615347565b9150602083013561561381615347565b600181811c9082168061574c57607f821691505b60208210811415615786577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561581c5761581c6157bb565b5060010190565b600082821015615835576158356157bb565b500390565b6000821982111561584d5761584d6157bb565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561588a5761588a6157bb565b500290565b600082516158a18184602087016152a5565b9190910192915050565b6000602082840312156158bd57600080fd5b5051919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126158f957600080fd5b83018035915067ffffffffffffffff82111561591457600080fd5b6020019150368190038213156154f257600080fd5b8183823760009101908152919050565b60408152600061594c60408301856152d1565b90508260208301529392505050565b6000835161596d8184602088016152a5565b8351908301906159818183602088016152a5565b01949350505050565b60006020828403121561599c57600080fd5b813561ffff8116811461315657600080fd5b6000602082840312156159c057600080fd5b815161315681615347565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082615a0957615a096159cb565b500490565b600082615a1d57615a1d6159cb565b500690565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152615a6160808301846152d1565b9695505050505050565b600060208284031215615a7d57600080fd5b81516131568161525a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212203acc2564d61b83a865d9dbd669e63773f7b80dcc950ca6160853f2680e1e6be764736f6c634300080900330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000093bbbeefb4768ad5b0fbc91b4bf36b3b691c6cbc000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6170692e6d65736b756c6c7a2e636f6d2f746f6b656e2f00
Deployed Bytecode
0x6080604052600436106103975760003560e01c80638aa636c2116101dc578063c39cbef111610102578063e80d2bcb116100a0578063edfcb44a1161006f578063edfcb44a14610b00578063f2fde38b14610b15578063f70db96e14610b35578063f811ec0914610b5457600080fd5b8063e80d2bcb14610a55578063e8a4e39b14610a6a578063e985e9c514610a8a578063edac985b14610ae057600080fd5b8063d547cfb7116100dc578063d547cfb714610969578063db6242c31461097e578063e21469631461099e578063e5fd0e46146109be57600080fd5b8063c39cbef114610913578063c4c943a714610933578063c87b56dd1461094957600080fd5b806398a8cffe1161017a578063a22cb46511610149578063a22cb46514610882578063a6b8ff3e146108a2578063b4104644146108c3578063b88d4fde146108f357600080fd5b806398a8cffe146107fd57806399eed7fb1461082a5780639b19251a1461083f578063a0712d681461086f57600080fd5b80638e9ebb70116101b65780638e9ebb701461077b578063913116b8146107a857806391b7f5ed146107c857806395d89b41146107e857600080fd5b80638aa636c21461071a5780638cf3250f146107305780638da5cb5b1461075057600080fd5b806339fdbcb4116102c157806355f804b31161025f57806370a082311161022e57806370a08231146106ba578063715018a6146106da578063722e141d146106ef578063774448471461070557600080fd5b806355f804b31461064f57806359c74f291461066f5780636352211e1461068457806367c56529146106a457600080fd5b80633d18b9121161029b5780633d18b912146105e057806342842e0e146105f5578063471a4294146106155780634f6ccce71461062f57600080fd5b806339fdbcb4146105a25780633c391751146105b55780633ccfd60b146105cb57600080fd5b8063189d165e11610339578063292ce21f11610308578063292ce21f1461052f5780632f745c5914610542578063300420371461056257806336a3728a1461058257600080fd5b8063189d165e146104b95780631cb58969146104d957806323245216146104ef57806323b872dd1461050f57600080fd5b8063095ea7b311610375578063095ea7b3146104385780630e1ca17a1461045a578063109695231461047a57806318160ddd1461049a57600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004615288565b610b74565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610bd0565b6040516103c8919061531b565b3480156103ff57600080fd5b5061041361040e36600461532e565b610c62565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103c8565b34801561044457600080fd5b50610458610453366004615369565b610d41565b005b34801561046657600080fd5b50600e546103bc9062010000900460ff1681565b34801561048657600080fd5b50610458610495366004615478565b610ece565b3480156104a657600080fd5b506008545b6040519081526020016103c8565b3480156104c557600080fd5b506104586104d436600461532e565b610f66565b3480156104e557600080fd5b506104ab61271081565b3480156104fb57600080fd5b5061045861050a3660046154f9565b610fec565b34801561051b57600080fd5b5061045861052a36600461553b565b611101565b61045861053d36600461532e565b611215565b34801561054e57600080fd5b506104ab61055d366004615369565b6116f9565b34801561056e57600080fd5b5061045861057d36600461532e565b6117c8565b34801561058e57600080fd5b506103e661059d36600461532e565b6119db565b6104586105b036600461557c565b611a75565b3480156105c157600080fd5b506104ab60145481565b3480156105d757600080fd5b50610458612110565b3480156105ec57600080fd5b506104586121c9565b34801561060157600080fd5b5061045861061036600461553b565b6122d8565b34801561062157600080fd5b50600e546103bc9060ff1681565b34801561063b57600080fd5b506104ab61064a36600461532e565b6122f3565b34801561065b57600080fd5b5061045861066a366004615478565b6123b1565b34801561067b57600080fd5b50610458612445565b34801561069057600080fd5b5061041361069f36600461532e565b6124f8565b3480156106b057600080fd5b506104ab60135481565b3480156106c657600080fd5b506104ab6106d53660046155c3565b6125aa565b3480156106e657600080fd5b50610458612678565b3480156106fb57600080fd5b506104ab60125481565b34801561071157600080fd5b50610458612705565b34801561072657600080fd5b506104ab60155481565b34801561073c57600080fd5b5061045861074b3660046154f9565b6127c0565b34801561075c57600080fd5b50600b5473ffffffffffffffffffffffffffffffffffffffff16610413565b34801561078757600080fd5b50601b546104139073ffffffffffffffffffffffffffffffffffffffff1681565b3480156107b457600080fd5b506104586107c33660046155c3565b6128c7565b3480156107d457600080fd5b506104586107e336600461532e565b61298f565b3480156107f457600080fd5b506103e6612a15565b34801561080957600080fd5b506104ab6108183660046155c3565b60186020526000908152604090205481565b34801561083657600080fd5b50610458612a24565b34801561084b57600080fd5b506103bc61085a3660046155c3565b601a6020526000908152604090205460ff1681565b61045861087d36600461532e565b612ae0565b34801561088e57600080fd5b5061045861089d3660046155e0565b612da6565b3480156108ae57600080fd5b50600e546103bc906301000000900460ff1681565b3480156108cf57600080fd5b506103bc6108de36600461532e565b60176020526000908152604090205460ff1681565b3480156108ff57600080fd5b5061045861090e36600461561e565b612db1565b34801561091f57600080fd5b5061045861092e36600461557c565b612ec7565b34801561093f57600080fd5b506104ab60115481565b34801561095557600080fd5b506103e661096436600461532e565b61304d565b34801561097557600080fd5b506103e661315d565b34801561098a57600080fd5b5061045861099936600461532e565b61316a565b3480156109aa57600080fd5b506104586109b936600461532e565b6131f0565b3480156109ca57600080fd5b50610a296109d9366004615478565b805160208183018101805160198252928201919093012091525473ffffffffffffffffffffffffffffffffffffffff81169074010000000000000000000000000000000000000000900460ff1682565b6040805173ffffffffffffffffffffffffffffffffffffffff90931683529015156020830152016103c8565b348015610a6157600080fd5b50610458613276565b348015610a7657600080fd5b50610458610a8536600461569e565b613333565b348015610a9657600080fd5b506103bc610aa536600461570a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610aec57600080fd5b50610458610afb3660046154f9565b6134d7565b348015610b0c57600080fd5b506103e66135f5565b348015610b2157600080fd5b50610458610b303660046155c3565b613602565b348015610b4157600080fd5b50600e546103bc90610100900460ff1681565b348015610b6057600080fd5b50610458610b6f3660046154f9565b613732565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610bca5750610bca82613bed565b92915050565b606060008054610bdf90615738565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0b90615738565b8015610c585780601f10610c2d57610100808354040283529160200191610c58565b820191906000526020600020905b815481529060010190602001808311610c3b57829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610d18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d4c826124f8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d0f565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e335750610e338133610aa5565b610ebf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d0f565b610ec98383613cd0565b505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314610f4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b8051610f6290600c9060208401906151c1565b5050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314610fe7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601555565b600b5473ffffffffffffffffffffffffffffffffffffffff16331461106d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60005b81811015610ec957601a600084848481811061108e5761108e61578c565b90506020020160208101906110a391906155c3565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055806110f9816157ea565b915050611070565b6002600a54141561116e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55601b546040517fd230af3a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015284811660248301529091169063d230af3a90604401600060405180830381600087803b1580156111e857600080fd5b505af11580156111fc573d6000803e3d6000fd5b5050505061120b838383613d70565b50506001600a5550565b6002600a541415611282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55600e5462010000900460ff166112f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53616c65732061726520696e61637469766500000000000000000000000000006044820152606401610d0f565b60145481111561138b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360448201527f20706572207472616e73616374696f6e000000000000000000000000000000006064820152608401610d0f565b600061139660085490565b6010549091506113aa61012c612710615823565b6113b49190615823565b600f546011546113c4858561583a565b6113ce9190615823565b6113d89190615823565b1115611440576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f507572636861736520776f756c642065786365656420737570706c79000000006044820152606401610d0f565b348260135461144f9190615852565b11156114b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610d0f565b336000908152601a602052604090205460ff16611556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4d696e74696e67206973206f6e6c7920617661696c61626c6520666f7220776860448201527f6974656c697374656420757365727300000000000000000000000000000000006064820152608401610d0f565b6012543360009081526018602052604090205461157490849061583a565b111561160457604080517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260248101919091527f4e756d626572206f6620746f6b656e732072657175657374656420657863656560448201527f646564207468652076616c756520616c6c6f776564207065722077616c6c65746064820152608401610d0f565b60005b8281101561166c5760125433600090815260186020526040902054101561165a57336000908152601860205260408120805491611643836157ea565b919050555061165a3361165560085490565b613e11565b80611664816157ea565b915050611607565b50601b546040517f8f7985a800000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911690638f7985a890602401600060405180830381600087803b1580156116d857600080fd5b505af11580156116ec573d6000803e3d6000fd5b50506001600a5550505050565b6000611704836125aa565b8210611792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d0f565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60105481600f5461185a919061583a565b11156118e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f507572636861736520776f756c6420657863656564207265736572766564207360448201527f7570706c790000000000000000000000000000000000000000000000000000006064820152608401610d0f565b60006118f360085490565b905060005b828110156119535761271061190c60085490565b101561194157600061191e828461583a565b600f80549192506000611930836157ea565b919050555061193f3382613e11565b505b8061194b816157ea565b9150506118f8565b601b546040517f8f7985a800000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911690638f7985a890602401600060405180830381600087803b1580156119be57600080fd5b505af11580156119d2573d6000803e3d6000fd5b50505050505050565b601660205260009081526040902080546119f490615738565b80601f0160208091040260200160405190810160405280929190818152602001828054611a2090615738565b8015611a6d5780601f10611a4257610100808354040283529160200191611a6d565b820191906000526020600020905b815481529060010190602001808311611a5057829003601f168201915b505050505081565b6002600a541415611ae2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55600e546301000000900460ff16611b5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53616c65732061726520696e61637469766500000000000000000000000000006044820152606401610d0f565b601454821115611bec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360448201527f20706572207472616e73616374696f6e000000000000000000000000000000006064820152608401610d0f565b6000611bf760085490565b601054909150611c0b61012c612710615823565b611c159190615823565b600f54601154611c25868561583a565b611c2f9190615823565b611c399190615823565b1115611ca1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f507572636861736520776f756c642065786365656420737570706c79000000006044820152606401610d0f565b3483601354611cb09190615852565b1115611d18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610d0f565b611d2182613e2b565b611d87576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f496e76616c6964206e616d6500000000000000000000000000000000000000006044820152606401610d0f565b601982604051611d97919061588f565b9081526040519081900360200190205460ff7401000000000000000000000000000000000000000090910416611e29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420636f6e7472616374000000000000000000000000000000006044820152606401610d0f565b6000601983604051611e3b919061588f565b908152604051908190036020018120547f70a0823100000000000000000000000000000000000000000000000000000000825233600483015273ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015611eac57600080fd5b505afa158015611ec0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee491906158ab565b11611f71576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f596f7520646f206e6f7420686f6c6420616e7920746f6b656e20696e2074686960448201527f7320636f6e7472616374000000000000000000000000000000000000000000006064820152608401610d0f565b60125433600090815260186020526040902054611f8f90859061583a565b111561201f57604080517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260248101919091527f4e756d626572206f6620746f6b656e732072657175657374656420657863656560448201527f646564207468652076616c756520616c6c6f776564207065722077616c6c65746064820152608401610d0f565b60005b83811015612082576012543360009081526018602052604090205410156120705733600090815260186020526040812080549161205e836157ea565b91905055506120703361165560085490565b8061207a816157ea565b915050612022565b50601b546040517f8f7985a800000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911690638f7985a890602401600060405180830381600087803b1580156120ee57600080fd5b505af1158015612102573d6000803e3d6000fd5b50506001600a555050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b478061219c57600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610f62573d6000803e3d6000fd5b601b546040517fd230af3a0000000000000000000000000000000000000000000000000000000081523360048201526000602482015273ffffffffffffffffffffffffffffffffffffffff9091169063d230af3a90604401600060405180830381600087803b15801561223b57600080fd5b505af115801561224f573d6000803e3d6000fd5b5050601b546040517fc00007b000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116925063c00007b09150602401600060405180830381600087803b1580156122be57600080fd5b505af11580156122d2573d6000803e3d6000fd5b50505050565b610ec983838360405180602001604052806000815250612db1565b60006122fe60085490565b821061238c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d0f565b6008828154811061239f5761239f61578c565b90600052602060002001549050919050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b8051610f6290600d9060208401906151c1565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146124c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d0f565b600073ffffffffffffffffffffffffffffffffffffffff821661264f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d0f565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146126f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b612703600061428e565b565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612841576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60005b81811015610ec95760198383838181106128605761286061578c565b905060200281019061287291906158c4565b604051612880929190615929565b90815260405190819003602001902080547fffffffffffffffffffffff000000000000000000000000000000000000000000169055806128bf816157ea565b915050612844565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612a10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601355565b606060018054610bdf90615738565b600b5473ffffffffffffffffffffffffffffffffffffffff163314612aa5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b6002600a541415612b4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55600e5460ff16612bbe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53616c65732061726520696e61637469766500000000000000000000000000006044820152606401610d0f565b601454811115612c50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360448201527f20706572207472616e73616374696f6e000000000000000000000000000000006064820152608401610d0f565b6000612c5b60085490565b601054909150612c6f61012c612710615823565b612c799190615823565b600f54601154612c89858561583a565b612c939190615823565b612c9d9190615823565b1115612d05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f507572636861736520776f756c642065786365656420737570706c79000000006044820152606401610d0f565b3482601354612d149190615852565b1115612d7c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e636f72726563742065746865722076616c756500000000000000000000006044820152606401610d0f565b60005b8281101561166c57612d943361165560085490565b80612d9e816157ea565b915050612d7f565b610f62338383614305565b6002600a541415612e1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55601b546040517fd230af3a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015285811660248301529091169063d230af3a90604401600060405180830381600087803b158015612e9857600080fd5b505af1158015612eac573d6000803e3d6000fd5b50505050612ebc84848484614433565b50506001600a555050565b33612ed1836124f8565b73ffffffffffffffffffffffffffffffffffffffff1614612ef157600080fd5b612efa81613e2b565b612f60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f496e76616c6964206e616d6500000000000000000000000000000000000000006044820152606401610d0f565b601b546015546040517f9dc29fac000000000000000000000000000000000000000000000000000000008152336004820152602481019190915273ffffffffffffffffffffffffffffffffffffffff90911690639dc29fac90604401600060405180830381600087803b158015612fd657600080fd5b505af1158015612fea573d6000803e3d6000fd5b5050506000838152601660209081526040909120835161300f935090918401906151c1565b507f6fa0841dfa443729d122516505ada2a3a11f108f6593fb105fb13f187408f7fc8183604051613041929190615939565b60405180910390a15050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16613101576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d0f565b600061310b6144d5565b9050600081511161312b5760405180602001604052806000815250613156565b80613135846144e4565b60405160200161314692919061595b565b6040516020818303038152906040525b9392505050565b600d80546119f490615738565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146131eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601455565b600b5473ffffffffffffffffffffffffffffffffffffffff163314613271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b601255565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146132f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff811663010000009182900460ff1615909102179055565b600b5473ffffffffffffffffffffffffffffffffffffffff1633146133b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60005b818110156134d05760405180604001604052808484848181106133dc576133dc61578c565b90506020020160208101906133f191906155c3565b73ffffffffffffffffffffffffffffffffffffffff168152600160209091015260198686848181106134255761342561578c565b905060200281019061343791906158c4565b604051613445929190615929565b9081526040516020918190038201902082518154939092015173ffffffffffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffff000000000000000000000000000000000000000000909316929092177401000000000000000000000000000000000000000091151591909102179055806134c8816157ea565b9150506133b7565b5050505050565b600b5473ffffffffffffffffffffffffffffffffffffffff163314613558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b60005b81811015610ec9576001601a600085858581811061357b5761357b61578c565b905060200201602081019061359091906155c3565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055806135ed816157ea565b91505061355b565b600c80546119f490615738565b600b5473ffffffffffffffffffffffffffffffffffffffff163314613683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d0f565b73ffffffffffffffffffffffffffffffffffffffff8116613726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d0f565b61372f8161428e565b50565b6002600a54141561379f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d0f565b6002600a55600e54610100900460ff16613815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53616c65732061726520696e61637469766500000000000000000000000000006044820152606401610d0f565b6014548111156138a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360448201527f20706572207472616e73616374696f6e000000000000000000000000000000006064820152608401610d0f565b60115461012c906138b990839061583a565b1115613947576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f507572636861736520776f756c6420657863656564207265736572766564207360448201527f7570706c790000000000000000000000000000000000000000000000000000006064820152608401610d0f565b60005b8181101561166c57601c54339073ffffffffffffffffffffffffffffffffffffffff16636352211e8585858181106139845761398461578c565b9050602002016020810190613999919061598a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815261ffff909116600482015260240160206040518083038186803b1580156139eb57600080fd5b505afa1580156139ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a2391906159ae565b73ffffffffffffffffffffffffffffffffffffffff1614613aa0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4e6f7420746865206f776e6572206f66207468697320746f6b656e00000000006044820152606401610d0f565b60176000848484818110613ab657613ab661578c565b9050602002016020810190613acb919061598a565b61ffff16815260208101919091526040016000205460ff1615613b4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f546f6b656e20616c726561647920636c61696d656400000000000000000000006044820152606401610d0f565b600160176000858585818110613b6257613b6261578c565b9050602002016020810190613b77919061598a565b61ffff1681526020810191909152604001600090812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016921515929092179091556011805491613bc9836157ea565b9190505550613bdb3361165560085490565b80613be5816157ea565b91505061394a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613c8057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610bca57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610bca565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190613d2a826124f8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b613d7a338261461e565b613e06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d0f565b610ec983838361478a565b610f628282604051806020016040528060008152506149fc565b600080829050600181511015613e445750600092915050565b601981511115613e575750600092915050565b80600081518110613e6a57613e6a61578c565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f20000000000000000000000000000000000000000000000000000000000000001415613ec25750600092915050565b8060018251613ed19190615823565b81518110613ee157613ee161578c565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f20000000000000000000000000000000000000000000000000000000000000001415613f395750600092915050565b600081600081518110613f4e57613f4e61578c565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016905060005b8251811015614283576000838281518110613f9757613f9761578c565b01602001517fff000000000000000000000000000000000000000000000000000000000000001690507f20000000000000000000000000000000000000000000000000000000000000008114801561403057507f20000000000000000000000000000000000000000000000000000000000000007fff000000000000000000000000000000000000000000000000000000000000008416145b156140415750600095945050505050565b7f30000000000000000000000000000000000000000000000000000000000000007fff000000000000000000000000000000000000000000000000000000000000008216108015906140d557507f39000000000000000000000000000000000000000000000000000000000000007fff00000000000000000000000000000000000000000000000000000000000000821611155b15801561417357507f41000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161080159061417157507f5a000000000000000000000000000000000000000000000000000000000000007fff00000000000000000000000000000000000000000000000000000000000000821611155b155b801561421057507f61000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161080159061420e57507f7a000000000000000000000000000000000000000000000000000000000000007fff00000000000000000000000000000000000000000000000000000000000000821611155b155b801561425e57507f20000000000000000000000000000000000000000000000000000000000000007fff00000000000000000000000000000000000000000000000000000000000000821614155b1561426f5750600095945050505050565b91508061427b816157ea565b915050613f7a565b506001949350505050565b600b805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561439b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d0f565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61443d338361461e565b6144c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d0f565b6122d284848484614a9f565b6060600d8054610bdf90615738565b60608161452457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561454e5780614538816157ea565b91506145479050600a836159fa565b9150614528565b60008167ffffffffffffffff81111561456957614569615395565b6040519080825280601f01601f191660200182016040528015614593576020820181803683370190505b5090505b8415614616576145a8600183615823565b91506145b5600a86615a0e565b6145c090603061583a565b60f81b8183815181106145d5576145d561578c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061460f600a866159fa565b9450614597565b949350505050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166146cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d0f565b60006146da836124f8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061474957508373ffffffffffffffffffffffffffffffffffffffff1661473184610c62565b73ffffffffffffffffffffffffffffffffffffffff16145b80614616575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff16614616565b8273ffffffffffffffffffffffffffffffffffffffff166147aa826124f8565b73ffffffffffffffffffffffffffffffffffffffff161461484d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610d0f565b73ffffffffffffffffffffffffffffffffffffffff82166148ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d0f565b6148fa838383614b42565b614905600082613cd0565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260036020526040812080546001929061493b908490615823565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061497690849061583a565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b614a068383614c48565b614a136000848484614e16565b610ec9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d0f565b614aaa84848461478a565b614ab684848484614e16565b6122d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d0f565b73ffffffffffffffffffffffffffffffffffffffff8316614baa57614ba581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614be7565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614614be757614be7838261500a565b73ffffffffffffffffffffffffffffffffffffffff8216614c0b57610ec9816150c1565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610ec957610ec98282615170565b73ffffffffffffffffffffffffffffffffffffffff8216614cc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d0f565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615614d51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d0f565b614d5d60008383614b42565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290614d9390849061583a565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614283576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290614e8d903390899088908890600401615a22565b602060405180830381600087803b158015614ea757600080fd5b505af1925050508015614ef5575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252614ef291810190615a6b565b60015b614fbf573d808015614f23576040519150601f19603f3d011682016040523d82523d6000602084013e614f28565b606091505b508051614fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d0f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050614616565b60006001615017846125aa565b6150219190615823565b6000838152600760205260409020549091508082146150815773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b6008546000906150d390600190615823565b600083815260096020526040812054600880549394509092849081106150fb576150fb61578c565b90600052602060002001549050806008838154811061511c5761511c61578c565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061515457615154615a88565b6001900381819060005260206000200160009055905550505050565b600061517b836125aa565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546151cd90615738565b90600052602060002090601f0160209004810192826151ef5760008555615235565b82601f1061520857805160ff1916838001178555615235565b82800160010185558215615235579182015b8281111561523557825182559160200191906001019061521a565b50615241929150615245565b5090565b5b808211156152415760008155600101615246565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461372f57600080fd5b60006020828403121561529a57600080fd5b81356131568161525a565b60005b838110156152c05781810151838201526020016152a8565b838111156122d25750506000910152565b600081518084526152e98160208601602086016152a5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061315660208301846152d1565b60006020828403121561534057600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461372f57600080fd5b6000806040838503121561537c57600080fd5b823561538781615347565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff808411156153df576153df615395565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561542557615425615395565b8160405280935085815286868601111561543e57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261546957600080fd5b613156838335602085016153c4565b60006020828403121561548a57600080fd5b813567ffffffffffffffff8111156154a157600080fd5b61461684828501615458565b60008083601f8401126154bf57600080fd5b50813567ffffffffffffffff8111156154d757600080fd5b6020830191508360208260051b85010111156154f257600080fd5b9250929050565b6000806020838503121561550c57600080fd5b823567ffffffffffffffff81111561552357600080fd5b61552f858286016154ad565b90969095509350505050565b60008060006060848603121561555057600080fd5b833561555b81615347565b9250602084013561556b81615347565b929592945050506040919091013590565b6000806040838503121561558f57600080fd5b82359150602083013567ffffffffffffffff8111156155ad57600080fd5b6155b985828601615458565b9150509250929050565b6000602082840312156155d557600080fd5b813561315681615347565b600080604083850312156155f357600080fd5b82356155fe81615347565b91506020830135801515811461561357600080fd5b809150509250929050565b6000806000806080858703121561563457600080fd5b843561563f81615347565b9350602085013561564f81615347565b925060408501359150606085013567ffffffffffffffff81111561567257600080fd5b8501601f8101871361568357600080fd5b615692878235602084016153c4565b91505092959194509250565b600080600080604085870312156156b457600080fd5b843567ffffffffffffffff808211156156cc57600080fd5b6156d8888389016154ad565b909650945060208701359150808211156156f157600080fd5b506156fe878288016154ad565b95989497509550505050565b6000806040838503121561571d57600080fd5b823561572881615347565b9150602083013561561381615347565b600181811c9082168061574c57607f821691505b60208210811415615786577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561581c5761581c6157bb565b5060010190565b600082821015615835576158356157bb565b500390565b6000821982111561584d5761584d6157bb565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561588a5761588a6157bb565b500290565b600082516158a18184602087016152a5565b9190910192915050565b6000602082840312156158bd57600080fd5b5051919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126158f957600080fd5b83018035915067ffffffffffffffff82111561591457600080fd5b6020019150368190038213156154f257600080fd5b8183823760009101908152919050565b60408152600061594c60408301856152d1565b90508260208301529392505050565b6000835161596d8184602088016152a5565b8351908301906159818183602088016152a5565b01949350505050565b60006020828403121561599c57600080fd5b813561ffff8116811461315657600080fd5b6000602082840312156159c057600080fd5b815161315681615347565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082615a0957615a096159cb565b500490565b600082615a1d57615a1d6159cb565b500690565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152615a6160808301846152d1565b9695505050505050565b600060208284031215615a7d57600080fd5b81516131568161525a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212203acc2564d61b83a865d9dbd669e63773f7b80dcc950ca6160853f2680e1e6be764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000093bbbeefb4768ad5b0fbc91b4bf36b3b691c6cbc000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6170692e6d65736b756c6c7a2e636f6d2f746f6b656e2f00
-----Decoded View---------------
Arg [0] : baseURI (string): https://api.meskullz.com/token/
Arg [1] : _mintPrice (uint256): 100000000000000000
Arg [2] : _maxPerMint (uint256): 5
Arg [3] : _pixlrGenesis (address): 0x93bbbeeFb4768AD5b0FbC91b4bF36b3B691C6CBc
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 00000000000000000000000093bbbeefb4768ad5b0fbc91b4bf36b3b691c6cbc
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [5] : 68747470733a2f2f6170692e6d65736b756c6c7a2e636f6d2f746f6b656e2f00
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.