ERC-721
Overview
Max Total Supply
1,504 LUH-MAGICAL
Holders
577
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LevelingUpHeroesMagical
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Author: Eric Gao (@itsoksami, https://github.com/Ericxgao) pragma solidity 0.8.10; import "./BaseFixedPriceAuctionERC721A.sol"; contract LevelingUpHeroesMagical is BaseFixedPriceAuctionERC721A { string public mintWhitelistWithAmountPrefix = "Leveling Up Heroes Magical Whitelist Verification:"; constructor( address[] memory payees, uint256[] memory shares, string memory name, string memory symbol, uint256 _whitelistMaxMint, uint256 _publicListMaxMint, uint256 _nonReservedMax, uint256 _reservedMax, uint256 _price ) BaseFixedPriceAuctionERC721A(payees, shares, name, symbol, _whitelistMaxMint, _publicListMaxMint, _nonReservedMax, _reservedMax, _price) { } function _hashRegisterForWhitelistWithAmount(string memory _prefix, address _address, uint256 amount) internal view returns (bytes32) { return keccak256(abi.encodePacked(_prefix, _address, amount)); } function registerAndMintForWhitelist(bytes32 hash, bytes calldata signature, uint256 numberOfTokens, uint256 customLimit) external payable { require(_verify(hash, signature), "Signature invalid."); require(_hashRegisterForWhitelistWithAmount(mintWhitelistWithAmountPrefix, msg.sender, customLimit) == hash, "Hash invalid."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= customLimit, 'You cannot mint this many.'); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _whitelistClaimed[msg.sender] += numberOfTokens; _nonReservedMintHelper(numberOfTokens); } }
// Author: Eric Gao (@itsoksami, https://github.com/Ericxgao) // Author: Azuki (ERC721A, https://github.com/chiru-labs/ERC721A) pragma solidity 0.8.10; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract BaseFixedPriceAuctionERC721A is ERC721A, ReentrancyGuard, Ownable { using Strings for uint256; using ECDSA for bytes32; string public prefix = "Base Verification:"; string private baseTokenURI = ''; string private privateContractURI = ''; mapping(address => uint256) public _whitelistClaimed; mapping(address => uint256) public _publicListClaimed; uint256 public nonReservedMax; uint256 public reservedMax; uint256 public max; uint256 public nonReservedMinted; uint256 public reservedMinted; uint256 public price; uint256 public whitelistMaxMint; uint256 public publicListMaxMint; PaymentSplitter private _splitter; constructor( address[] memory payees, uint256[] memory shares, string memory name, string memory symbol, uint256 _whitelistMaxMint, uint256 _publicListMaxMint, uint256 _nonReservedMax, uint256 _reservedMax, uint256 _price ) ERC721A(name, symbol, 7) { whitelistMaxMint = _whitelistMaxMint; publicListMaxMint = _publicListMaxMint; nonReservedMax = _nonReservedMax; reservedMax = _reservedMax; max = nonReservedMax + reservedMax; nonReservedMinted = 0; reservedMinted = 0; _splitter = new PaymentSplitter(payees, shares); price = _price; } function setPrice(uint256 _price) public onlyOwner { price = _price; } function release(address payable account) external { _splitter.release(account); } function _hash(address _address) internal view returns (bytes32) { return keccak256(abi.encodePacked(prefix, _address)); } function _verify(bytes32 hash, bytes memory signature) internal view returns (bool) { return (_recover(hash, signature) == owner()); } function _recover(bytes32 hash, bytes memory signature) internal pure returns (address) { return hash.recover(signature); } function setPrefix(string memory _prefix) public onlyOwner { prefix = _prefix; } function setWhitelistMaxMint(uint256 _whitelistMaxMint) external onlyOwner { whitelistMaxMint = _whitelistMaxMint; } function setPublicListMaxMint(uint256 _publicListMaxMint) external onlyOwner { publicListMaxMint = _publicListMaxMint; } function mintPublic(uint256 numberOfTokens) external payable { require(_publicListClaimed[msg.sender] + numberOfTokens <= publicListMaxMint, 'You cannot mint this many.'); _publicListClaimed[msg.sender] += numberOfTokens; _nonReservedMintHelper(numberOfTokens); } function mintWhitelist(bytes32 hash, bytes calldata signature, uint256 numberOfTokens) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hash(msg.sender) == hash, "The address hash does not match the signed hash."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _whitelistClaimed[msg.sender] += numberOfTokens; _publicListClaimed[msg.sender] += numberOfTokens; _nonReservedMintHelper(numberOfTokens); } function _nonReservedMintHelper(uint256 numberOfTokens) internal { require(numberOfTokens * price == msg.value, "Invalid amount."); require(totalSupply() + numberOfTokens <= max, "Sold out."); _safeMint(msg.sender, numberOfTokens); } function splitPayments() public payable onlyOwner { (bool success, ) = payable(_splitter).call{value: address(this).balance}( "" ); require(success); } function mintReserved(uint256 quantity) external onlyOwner { require( totalSupply() + quantity <= reservedMax, "Sold out." ); if (quantity < maxBatchSize) { _safeMint(msg.sender, quantity); } else { require( quantity % maxBatchSize == 0, "Can only mint a multiple of the maxBatchSize." ); uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxBatchSize); } } } function setBaseURI(string memory baseTokenURI_) external onlyOwner { baseTokenURI = baseTokenURI_; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { return string(abi.encodePacked(baseTokenURI, tokenId.toString())); } function setContractURI(string calldata _uri) external onlyOwner { privateContractURI = _uri; } function contractURI() public view returns (string memory) { return privateContractURI; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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 override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT 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 make 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 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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 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 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 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 tokenId); /** * @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 pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 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 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 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 pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"},{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"},{"internalType":"uint256","name":"_nonReservedMax","type":"uint256"},{"internalType":"uint256","name":"_reservedMax","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"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":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":[{"internalType":"address","name":"","type":"address"}],"name":"_publicListClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_whitelistClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintWhitelistWithAmountPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonReservedMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonReservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"prefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicListMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"customLimit","type":"uint256"}],"name":"registerAndMintForWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedMinted","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":"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":"baseTokenURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_prefix","type":"string"}],"name":"setPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"}],"name":"setPublicListMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"}],"name":"setWhitelistMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitPayments","outputs":[],"stateMutability":"payable","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":[],"name":"whitelistMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
600080805560075560e0604052601260a0819052712130b9b2902b32b934b334b1b0ba34b7b71d60711b60c09081526200003d91600a919062000226565b506040805160208101918290526000908190526200005e91600b9162000226565b506040805160208101918290526000908190526200007f91600c9162000226565b50604051806060016040528060328152602001620047e8603291398051620000b09160189160209091019062000226565b50348015620000be57600080fd5b506040516200481a3803806200481a833981016040819052620000e191620004ca565b8888888888888888888686600782516200010390600190602086019062000226565b5081516200011990600290602085019062000226565b50608052505060016008556200012f33620001d4565b60158590556016849055600f83905560108290556200014f8284620005b4565b60115560006012819055601355604051899089906200016e90620002b5565b6200017b929190620005db565b604051809103906000f08015801562000198573d6000803e3d6000fd5b50601780546001600160a01b0319166001600160a01b039290921691909117905560145550620006a09f50505050505050505050505050505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002349062000663565b90600052602060002090601f016020900481019282620002585760008555620002a3565b82601f106200027357805160ff1916838001178555620002a3565b82800160010185558215620002a3579182015b82811115620002a357825182559160200191906001019062000286565b50620002b1929150620002c3565b5090565b610baa8062003c3e83390190565b5b80821115620002b15760008155600101620002c4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200031b576200031b620002da565b604052919050565b60006001600160401b038211156200033f576200033f620002da565b5060051b60200190565b600082601f8301126200035b57600080fd5b81516020620003746200036e8362000323565b620002f0565b82815260059290921b840181019181810190868411156200039457600080fd5b8286015b84811015620003c85780516001600160a01b0381168114620003ba5760008081fd5b835291830191830162000398565b509695505050505050565b600082601f830112620003e557600080fd5b81516020620003f86200036e8362000323565b82815260059290921b840181019181810190868411156200041857600080fd5b8286015b84811015620003c857805183529183019183016200041c565b600082601f8301126200044757600080fd5b81516001600160401b03811115620004635762000463620002da565b602062000479601f8301601f19168201620002f0565b82815285828487010111156200048e57600080fd5b60005b83811015620004ae57858101830151828201840152820162000491565b83811115620004c05760008385840101525b5095945050505050565b60008060008060008060008060006101208a8c031215620004ea57600080fd5b89516001600160401b03808211156200050257600080fd5b620005108d838e0162000349565b9a5060208c01519150808211156200052757600080fd5b620005358d838e01620003d3565b995060408c01519150808211156200054c57600080fd5b6200055a8d838e0162000435565b985060608c01519150808211156200057157600080fd5b50620005808c828d0162000435565b96505060808a0151945060a08a0151935060c08a0151925060e08a015191506101008a015190509295985092959850929598565b60008219821115620005d657634e487b7160e01b600052601160045260246000fd5b500190565b604080825283519082018190526000906020906060840190828701845b828110156200061f5781516001600160a01b031684529284019290840190600101620005f8565b5050508381038285015284518082528583019183019060005b81811015620006565783518352928401929184019160010162000638565b5090979650505050505050565b600181811c908216806200067857607f821691505b602082108114156200069a57634e487b7160e01b600052602260045260246000fd5b50919050565b608051613558620006e6600039600081816115bf015281816115f401528181611693015281816116cb0152818161224f0152818161227901526127a401526135586000f3fe6080604052600436106102f25760003560e01c8063722e141d1161018f578063a22cb465116100e1578063d87a1eeb1161008a578063e985e9c511610064578063e985e9c5146107c0578063efd0cbf914610809578063f2fde38b1461081c57600080fd5b8063d87a1eeb14610776578063e21469631461078b578063e8a3d485146107ab57600080fd5b8063c87b56dd116100bb578063c87b56dd1461072a578063d7224ba01461074a578063d73b2a6c1461076057600080fd5b8063a22cb465146106d7578063b27a87b0146106f7578063b88d4fde1461070a57600080fd5b80638da5cb5b1161014357806395d89b411161011d57806395d89b411461068c5780639a5d140b146106a1578063a035b1fe146106c157600080fd5b80638da5cb5b1461062e57806391b7f5ed1461064c578063938e3d7b1461066c57600080fd5b8063800fffd011610174578063800fffd0146105b4578063851a7708146105e157806385cb593b1461060e57600080fd5b8063722e141d1461058957806375dadb321461059f57600080fd5b806342842e0e116102485780635ca8a780116101fc578063706c1e6f116101d6578063706c1e6f1461054c57806370a0823114610554578063715018a61461057457600080fd5b80635ca8a780146105035780636352211e146105165780636ac5db191461053657600080fd5b80634f6ccce71161022d5780634f6ccce7146104ad57806355f804b3146104cd578063571d34af146104ed57600080fd5b806342842e0e146104775780634f297ccc1461049757600080fd5b80630a99c9fe116102aa57806323b872dd1161028457806323b872dd146104175780632f745c591461043757806339a2e6591461045757600080fd5b80630a99c9fe146103cc57806318160ddd146103e257806319165587146103f757600080fd5b8063081812fc116102db578063081812fc1461034e578063095ea7b3146103865780630a23b725146103a857600080fd5b806301ffc9a7146102f757806306fdde031461032c575b600080fd5b34801561030357600080fd5b50610317610312366004612dfc565b61083c565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034161090d565b6040516103239190612e71565b34801561035a57600080fd5b5061036e610369366004612e84565b61099f565b6040516001600160a01b039091168152602001610323565b34801561039257600080fd5b506103a66103a1366004612eb2565b610a3f565b005b3480156103b457600080fd5b506103be60125481565b604051908152602001610323565b3480156103d857600080fd5b506103be600f5481565b3480156103ee57600080fd5b506000546103be565b34801561040357600080fd5b506103a6610412366004612ede565b610b72565b34801561042357600080fd5b506103a6610432366004612efb565b610bed565b34801561044357600080fd5b506103be610452366004612eb2565b610bf8565b34801561046357600080fd5b506103a6610472366004612e84565b610d90565b34801561048357600080fd5b506103a6610492366004612efb565b610def565b3480156104a357600080fd5b506103be60135481565b3480156104b957600080fd5b506103be6104c8366004612e84565b610e0a565b3480156104d957600080fd5b506103a66104e8366004612fc8565b610e86565b3480156104f957600080fd5b506103be60165481565b6103a661051136600461305a565b610ef7565b34801561052257600080fd5b5061036e610531366004612e84565b61116b565b34801561054257600080fd5b506103be60115481565b6103a661117d565b34801561056057600080fd5b506103be61056f366004612ede565b61123a565b34801561058057600080fd5b506103a66112dd565b34801561059557600080fd5b506103be60155481565b3480156105ab57600080fd5b50610341611343565b3480156105c057600080fd5b506103be6105cf366004612ede565b600e6020526000908152604090205481565b3480156105ed57600080fd5b506103be6105fc366004612ede565b600d6020526000908152604090205481565b34801561061a57600080fd5b506103a6610629366004612fc8565b6113d1565b34801561063a57600080fd5b506009546001600160a01b031661036e565b34801561065857600080fd5b506103a6610667366004612e84565b61143e565b34801561067857600080fd5b506103a66106873660046130b8565b61149d565b34801561069857600080fd5b50610341611503565b3480156106ad57600080fd5b506103a66106bc366004612e84565b611512565b3480156106cd57600080fd5b506103be60145481565b3480156106e357600080fd5b506103a66106f23660046130fa565b611701565b6103a6610705366004613138565b6117c6565b34801561071657600080fd5b506103a661072536600461318b565b6119b9565b34801561073657600080fd5b50610341610745366004612e84565b611a42565b34801561075657600080fd5b506103be60075481565b34801561076c57600080fd5b506103be60105481565b34801561078257600080fd5b50610341611a76565b34801561079757600080fd5b506103a66107a6366004612e84565b611a83565b3480156107b757600080fd5b50610341611ae2565b3480156107cc57600080fd5b506103176107db36600461320b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103a6610817366004612e84565b611af1565b34801561082857600080fd5b506103a6610837366004612ede565b611b8b565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061089f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d357506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061090757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461091c90613239565b80601f016020809104026020016040519081016040528092919081815260200182805461094890613239565b80156109955780601f1061096a57610100808354040283529160200191610995565b820191906000526020600020905b81548152906001019060200180831161097857829003601f168201915b5050505050905090565b60006109ac826000541190565b610a235760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a4a8261116b565b9050806001600160a01b0316836001600160a01b03161415610ad45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b336001600160a01b0382161480610af05750610af081336107db565b610b625760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a1a565b610b6d838383611c6a565b505050565b6017546040517f191655870000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015610bd257600080fd5b505af1158015610be6573d6000803e3d6000fd5b5050505050565b610b6d838383611cd3565b6000610c038361123a565b8210610c775760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b600080549080805b83811015610d21576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610cd257805192505b876001600160a01b0316836001600160a01b03161415610d0e5786841415610d005750935061090792505050565b83610d0a8161328a565b9450505b5080610d198161328a565b915050610c7f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a1a565b6009546001600160a01b03163314610dea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601655565b610b6d838383604051806020016040528060008152506119b9565b600080548210610e825760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b5090565b6009546001600160a01b03163314610ee05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b8051610ef390600b906020840190612cdd565b5050565b610f378585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061209592505050565b610f835760405162461bcd60e51b815260206004820152601260248201527f5369676e617475726520696e76616c69642e00000000000000000000000000006044820152606401610a1a565b8461101960188054610f9490613239565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc090613239565b801561100d5780601f10610fe25761010080835404028352916020019161100d565b820191906000526020600020905b815481529060010190602001808311610ff057829003601f168201915b505050505033846120cd565b146110665760405162461bcd60e51b815260206004820152600d60248201527f4861736820696e76616c69642e000000000000000000000000000000000000006044820152606401610a1a565b336000908152600d602052604090205481906110839084906132a5565b11156110d15760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b601554336000908152600d60205260409020546110ef9084906132a5565b111561113d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b336000908152600d60205260408120805484929061115c9084906132a5565b90915550610be6905082612103565b6000611176826121ba565b5192915050565b6009546001600160a01b031633146111d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6017546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611224576040519150601f19603f3d011682016040523d82523d6000602084013e611229565b606091505b505090508061123757600080fd5b50565b60006001600160a01b0382166112b85760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a1a565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6009546001600160a01b031633146113375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6113416000612385565b565b600a805461135090613239565b80601f016020809104026020016040519081016040528092919081815260200182805461137c90613239565b80156113c95780601f1061139e576101008083540402835291602001916113c9565b820191906000526020600020905b8154815290600101906020018083116113ac57829003601f168201915b505050505081565b6009546001600160a01b0316331461142b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b8051610ef390600a906020840190612cdd565b6009546001600160a01b031633146114985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601455565b6009546001600160a01b031633146114f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b610b6d600c8383612d5d565b60606002805461091c90613239565b6009546001600160a01b0316331461156c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6010548161157960005490565b61158391906132a5565b11156115bd5760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a1a565b7f00000000000000000000000000000000000000000000000000000000000000008110156115ef5761123733826123e4565b6116197f0000000000000000000000000000000000000000000000000000000000000000826132d3565b1561168c5760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a652e000000000000000000000000000000000000006064820152608401610a1a565b60006116b87f0000000000000000000000000000000000000000000000000000000000000000836132e7565b905060005b81811015610b6d576116ef337f00000000000000000000000000000000000000000000000000000000000000006123e4565b806116f98161328a565b9150506116bd565b6001600160a01b03821633141561175a5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a1a565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118068484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061209592505050565b6118785760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c696460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b83611882336123fe565b146118f55760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201527f746865207369676e656420686173682e000000000000000000000000000000006064820152608401610a1a565b601554336000908152600d60205260409020546119139083906132a5565b11156119615760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b336000908152600d6020526040812080548392906119809084906132a5565b9091555050336000908152600e6020526040812080548392906119a49084906132a5565b909155506119b3905081612103565b50505050565b6119c4848484611cd3565b6119d084848484612431565b6119b35760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b6060600b611a4f83612586565b604051602001611a60929190613395565b6040516020818303038152906040529050919050565b6018805461135090613239565b6009546001600160a01b03163314611add5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601555565b6060600c805461091c90613239565b601654336000908152600e6020526040902054611b0f9083906132a5565b1115611b5d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b336000908152600e602052604081208054839290611b7c9084906132a5565b90915550611237905081612103565b6009546001600160a01b03163314611be55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6001600160a01b038116611c615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a1a565b61123781612385565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611cde826121ba565b80519091506000906001600160a01b0316336001600160a01b03161480611d15575033611d0a8461099f565b6001600160a01b0316145b80611d2757508151611d2790336107db565b905080611d9c5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a1a565b846001600160a01b031682600001516001600160a01b031614611e275760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a1a565b6001600160a01b038416611ea35760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a1a565b611eb36000848460000151611c6a565b6001600160a01b0385166000908152600460205260408120805460019290611ee59084906001600160801b03166133ba565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611f31918591166133e2565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611fb98460016132a5565b6000818152600360205260409020549091506001600160a01b031661204b57611fe3816000541190565b1561204b5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60006120a96009546001600160a01b031690565b6001600160a01b03166120bc84846126b8565b6001600160a01b0316149392505050565b60008383836040516020016120e493929190613404565b6040516020818303038152906040528051906020012090509392505050565b34601454826121129190613443565b1461215f5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616d6f756e742e00000000000000000000000000000000006044820152606401610a1a565b6011548161216c60005490565b61217691906132a5565b11156121b05760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a1a565b61123733826123e4565b60408051808201909152600080825260208201526121d9826000541190565b61224b5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a1a565b60007f000000000000000000000000000000000000000000000000000000000000000083106122ac5761229e7f000000000000000000000000000000000000000000000000000000000000000084613462565b6122a99060016132a5565b90505b825b818110612316576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561230357949350505050565b508061230e81613479565b9150506122ae565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a1a565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610ef38282604051806020016040528060008152506126cb565b6000600a82604051602001612414929190613490565b604051602081830303815290604052805190602001209050919050565b60006001600160a01b0384163b1561257a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124759033908990889088906004016134bd565b6020604051808303816000875af19250505080156124b0575060408051601f3d908101601f191682019092526124ad918101906134ef565b60015b612560573d8080156124de576040519150601f19603f3d011682016040523d82523d6000602084013e6124e3565b606091505b5080516125585760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061257e565b5060015b949350505050565b6060816125c657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156125f057806125da8161328a565b91506125e99050600a836132e7565b91506125ca565b60008167ffffffffffffffff81111561260b5761260b612f3c565b6040519080825280601f01601f191660200182016040528015612635576020820181803683370190505b5090505b841561257e5761264a600183613462565b9150612657600a866132d3565b6126629060306132a5565b60f81b8183815181106126775761267761350c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506126b1600a866132e7565b9450612639565b60006126c48383612a4d565b9392505050565b6000546001600160a01b03841661274a5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b612755816000541190565b156127a25760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a1a565b7f00000000000000000000000000000000000000000000000000000000000000008311156128385760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b03808216835270010000000000000000000000000000000090910416918101919091528151808301909252805190919081906128a19087906133e2565b6001600160801b031681526020018583602001516128bf91906133e2565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612a425760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46129b06000888488612431565b612a225760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b81612a2c8161328a565b9250508080612a3a9061328a565b915050612963565b50600081905561208d565b6000815160411415612a815760208201516040830151606084015160001a612a7786828585612af1565b9350505050610907565b815160401415612aa95760208201516040830151612aa0858383612c9a565b92505050610907565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a1a565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612b6e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a1a565b8360ff16601b1480612b8357508360ff16601c145b612bda5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a1a565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612c2e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c915760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1a565b95945050505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b01612cd386828785612af1565b9695505050505050565b828054612ce990613239565b90600052602060002090601f016020900481019282612d0b5760008555612d51565b82601f10612d2457805160ff1916838001178555612d51565b82800160010185558215612d51579182015b82811115612d51578251825591602001919060010190612d36565b50610e82929150612dd1565b828054612d6990613239565b90600052602060002090601f016020900481019282612d8b5760008555612d51565b82601f10612da45782800160ff19823516178555612d51565b82800160010185558215612d51579182015b82811115612d51578235825591602001919060010190612db6565b5b80821115610e825760008155600101612dd2565b6001600160e01b03198116811461123757600080fd5b600060208284031215612e0e57600080fd5b81356126c481612de6565b60005b83811015612e34578181015183820152602001612e1c565b838111156119b35750506000910152565b60008151808452612e5d816020860160208601612e19565b601f01601f19169290920160200192915050565b6020815260006126c46020830184612e45565b600060208284031215612e9657600080fd5b5035919050565b6001600160a01b038116811461123757600080fd5b60008060408385031215612ec557600080fd5b8235612ed081612e9d565b946020939093013593505050565b600060208284031215612ef057600080fd5b81356126c481612e9d565b600080600060608486031215612f1057600080fd5b8335612f1b81612e9d565b92506020840135612f2b81612e9d565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612f6d57612f6d612f3c565b604051601f8501601f19908116603f01168101908282118183101715612f9557612f95612f3c565b81604052809350858152868686011115612fae57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612fda57600080fd5b813567ffffffffffffffff811115612ff157600080fd5b8201601f8101841361300257600080fd5b61257e84823560208401612f52565b60008083601f84011261302357600080fd5b50813567ffffffffffffffff81111561303b57600080fd5b60208301915083602082850101111561305357600080fd5b9250929050565b60008060008060006080868803121561307257600080fd5b85359450602086013567ffffffffffffffff81111561309057600080fd5b61309c88828901613011565b9699909850959660408101359660609091013595509350505050565b600080602083850312156130cb57600080fd5b823567ffffffffffffffff8111156130e257600080fd5b6130ee85828601613011565b90969095509350505050565b6000806040838503121561310d57600080fd5b823561311881612e9d565b91506020830135801515811461312d57600080fd5b809150509250929050565b6000806000806060858703121561314e57600080fd5b84359350602085013567ffffffffffffffff81111561316c57600080fd5b61317887828801613011565b9598909750949560400135949350505050565b600080600080608085870312156131a157600080fd5b84356131ac81612e9d565b935060208501356131bc81612e9d565b925060408501359150606085013567ffffffffffffffff8111156131df57600080fd5b8501601f810187136131f057600080fd5b6131ff87823560208401612f52565b91505092959194509250565b6000806040838503121561321e57600080fd5b823561322981612e9d565b9150602083013561312d81612e9d565b600181811c9082168061324d57607f821691505b6020821081141561326e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561329e5761329e613274565b5060010190565b600082198211156132b8576132b8613274565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826132e2576132e26132bd565b500690565b6000826132f6576132f66132bd565b500490565b8054600090600181811c908083168061331557607f831692505b602080841082141561333757634e487b7160e01b600052602260045260246000fd5b81801561334b576001811461335c57613389565b60ff19861689528489019650613389565b60008881526020902060005b868110156133815781548b820152908501908301613368565b505084890196505b50505050505092915050565b60006133a182856132fb565b83516133b1818360208801612e19565b01949350505050565b60006001600160801b03838116908316818110156133da576133da613274565b039392505050565b60006001600160801b038083168185168083038211156133b1576133b1613274565b60008451613416818460208901612e19565b60609490941b6bffffffffffffffffffffffff191691909301908152601481019190915260340192915050565b600081600019048311821515161561345d5761345d613274565b500290565b60008282101561347457613474613274565b500390565b60008161348857613488613274565b506000190190565b600061349c82856132fb565b60609390931b6bffffffffffffffffffffffff191683525050601401919050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612cd36080830184612e45565b60006020828403121561350157600080fd5b81516126c481612de6565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220084a644f4403cfc74ad8f60c2fa3f11655af61d68cd33df2c7fc6ba252506df264736f6c634300080a0033608060405260405162000baa38038062000baa83398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b50505062000571565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000556565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200054f576200054f62000522565b5060010190565b600082198211156200056c576200056c62000522565b500190565b61062980620005816000396000f3fe6080604052600436106100695760003560e01c80639852595c116100435780639852595c14610135578063ce7c2ac21461016b578063e33b7de3146101a157600080fd5b806319165587146100b75780633a98ef39146100d95780638b83209b146100fd57600080fd5b366100b2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100c357600080fd5b506100d76100d236600461051a565b6101b6565b005b3480156100e557600080fd5b506000545b6040519081526020015b60405180910390f35b34801561010957600080fd5b5061011d61011836600461053e565b6103b4565b6040516001600160a01b0390911681526020016100f4565b34801561014157600080fd5b506100ea61015036600461051a565b6001600160a01b031660009081526003602052604090205490565b34801561017757600080fd5b506100ea61018636600461051a565b6001600160a01b031660009081526002602052604090205490565b3480156101ad57600080fd5b506001546100ea565b6001600160a01b0381166000908152600260205260409020546102465760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f736861726573000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600060015447610256919061056d565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028c9085610585565b61029691906105a4565b6102a091906105c6565b9050806103155760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e74000000000000000000000000000000000000000000606482015260840161023d565b6001600160a01b03831660009081526003602052604090205461033990829061056d565b6001600160a01b03841660009081526003602052604090205560015461036090829061056d565b60015561036d83826103e4565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000600482815481106103c9576103c96105dd565b6000918252602090912001546001600160a01b031692915050565b804710156104345760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161023d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610481576040519150601f19603f3d011682016040523d82523d6000602084013e610486565b606091505b50509050806104fd5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161023d565b505050565b6001600160a01b038116811461051757600080fd5b50565b60006020828403121561052c57600080fd5b813561053781610502565b9392505050565b60006020828403121561055057600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561058057610580610557565b500190565b600081600019048311821515161561059f5761059f610557565b500290565b6000826105c157634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156105d8576105d8610557565b500390565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220d22c30960490b05e3d25faf49a35cc66fae284a20361a5a3dfaa71d432eb976964736f6c634300080a00334c6576656c696e67205570204865726f6573204d61676963616c2057686974656c69737420566572696669636174696f6e3a0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017de00000000000000000000000000000000000000000000000000000000000002a700000000000000000000000000000000000000000000000001151c96347b000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004448d4fd3f76f11ba4605f3c6ca91c14477ed363000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a4400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000f00000000000000000000000000000000000000000000000000000000000000214c6576656c696e67205570204865726f6573202d204d61676963616c205469657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4c55482d4d41474943414c000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102f25760003560e01c8063722e141d1161018f578063a22cb465116100e1578063d87a1eeb1161008a578063e985e9c511610064578063e985e9c5146107c0578063efd0cbf914610809578063f2fde38b1461081c57600080fd5b8063d87a1eeb14610776578063e21469631461078b578063e8a3d485146107ab57600080fd5b8063c87b56dd116100bb578063c87b56dd1461072a578063d7224ba01461074a578063d73b2a6c1461076057600080fd5b8063a22cb465146106d7578063b27a87b0146106f7578063b88d4fde1461070a57600080fd5b80638da5cb5b1161014357806395d89b411161011d57806395d89b411461068c5780639a5d140b146106a1578063a035b1fe146106c157600080fd5b80638da5cb5b1461062e57806391b7f5ed1461064c578063938e3d7b1461066c57600080fd5b8063800fffd011610174578063800fffd0146105b4578063851a7708146105e157806385cb593b1461060e57600080fd5b8063722e141d1461058957806375dadb321461059f57600080fd5b806342842e0e116102485780635ca8a780116101fc578063706c1e6f116101d6578063706c1e6f1461054c57806370a0823114610554578063715018a61461057457600080fd5b80635ca8a780146105035780636352211e146105165780636ac5db191461053657600080fd5b80634f6ccce71161022d5780634f6ccce7146104ad57806355f804b3146104cd578063571d34af146104ed57600080fd5b806342842e0e146104775780634f297ccc1461049757600080fd5b80630a99c9fe116102aa57806323b872dd1161028457806323b872dd146104175780632f745c591461043757806339a2e6591461045757600080fd5b80630a99c9fe146103cc57806318160ddd146103e257806319165587146103f757600080fd5b8063081812fc116102db578063081812fc1461034e578063095ea7b3146103865780630a23b725146103a857600080fd5b806301ffc9a7146102f757806306fdde031461032c575b600080fd5b34801561030357600080fd5b50610317610312366004612dfc565b61083c565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034161090d565b6040516103239190612e71565b34801561035a57600080fd5b5061036e610369366004612e84565b61099f565b6040516001600160a01b039091168152602001610323565b34801561039257600080fd5b506103a66103a1366004612eb2565b610a3f565b005b3480156103b457600080fd5b506103be60125481565b604051908152602001610323565b3480156103d857600080fd5b506103be600f5481565b3480156103ee57600080fd5b506000546103be565b34801561040357600080fd5b506103a6610412366004612ede565b610b72565b34801561042357600080fd5b506103a6610432366004612efb565b610bed565b34801561044357600080fd5b506103be610452366004612eb2565b610bf8565b34801561046357600080fd5b506103a6610472366004612e84565b610d90565b34801561048357600080fd5b506103a6610492366004612efb565b610def565b3480156104a357600080fd5b506103be60135481565b3480156104b957600080fd5b506103be6104c8366004612e84565b610e0a565b3480156104d957600080fd5b506103a66104e8366004612fc8565b610e86565b3480156104f957600080fd5b506103be60165481565b6103a661051136600461305a565b610ef7565b34801561052257600080fd5b5061036e610531366004612e84565b61116b565b34801561054257600080fd5b506103be60115481565b6103a661117d565b34801561056057600080fd5b506103be61056f366004612ede565b61123a565b34801561058057600080fd5b506103a66112dd565b34801561059557600080fd5b506103be60155481565b3480156105ab57600080fd5b50610341611343565b3480156105c057600080fd5b506103be6105cf366004612ede565b600e6020526000908152604090205481565b3480156105ed57600080fd5b506103be6105fc366004612ede565b600d6020526000908152604090205481565b34801561061a57600080fd5b506103a6610629366004612fc8565b6113d1565b34801561063a57600080fd5b506009546001600160a01b031661036e565b34801561065857600080fd5b506103a6610667366004612e84565b61143e565b34801561067857600080fd5b506103a66106873660046130b8565b61149d565b34801561069857600080fd5b50610341611503565b3480156106ad57600080fd5b506103a66106bc366004612e84565b611512565b3480156106cd57600080fd5b506103be60145481565b3480156106e357600080fd5b506103a66106f23660046130fa565b611701565b6103a6610705366004613138565b6117c6565b34801561071657600080fd5b506103a661072536600461318b565b6119b9565b34801561073657600080fd5b50610341610745366004612e84565b611a42565b34801561075657600080fd5b506103be60075481565b34801561076c57600080fd5b506103be60105481565b34801561078257600080fd5b50610341611a76565b34801561079757600080fd5b506103a66107a6366004612e84565b611a83565b3480156107b757600080fd5b50610341611ae2565b3480156107cc57600080fd5b506103176107db36600461320b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103a6610817366004612e84565b611af1565b34801561082857600080fd5b506103a6610837366004612ede565b611b8b565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061089f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d357506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061090757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461091c90613239565b80601f016020809104026020016040519081016040528092919081815260200182805461094890613239565b80156109955780601f1061096a57610100808354040283529160200191610995565b820191906000526020600020905b81548152906001019060200180831161097857829003601f168201915b5050505050905090565b60006109ac826000541190565b610a235760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610a4a8261116b565b9050806001600160a01b0316836001600160a01b03161415610ad45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b336001600160a01b0382161480610af05750610af081336107db565b610b625760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a1a565b610b6d838383611c6a565b505050565b6017546040517f191655870000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015610bd257600080fd5b505af1158015610be6573d6000803e3d6000fd5b5050505050565b610b6d838383611cd3565b6000610c038361123a565b8210610c775760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b600080549080805b83811015610d21576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610cd257805192505b876001600160a01b0316836001600160a01b03161415610d0e5786841415610d005750935061090792505050565b83610d0a8161328a565b9450505b5080610d198161328a565b915050610c7f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a1a565b6009546001600160a01b03163314610dea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601655565b610b6d838383604051806020016040528060008152506119b9565b600080548210610e825760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b5090565b6009546001600160a01b03163314610ee05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b8051610ef390600b906020840190612cdd565b5050565b610f378585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061209592505050565b610f835760405162461bcd60e51b815260206004820152601260248201527f5369676e617475726520696e76616c69642e00000000000000000000000000006044820152606401610a1a565b8461101960188054610f9490613239565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc090613239565b801561100d5780601f10610fe25761010080835404028352916020019161100d565b820191906000526020600020905b815481529060010190602001808311610ff057829003601f168201915b505050505033846120cd565b146110665760405162461bcd60e51b815260206004820152600d60248201527f4861736820696e76616c69642e000000000000000000000000000000000000006044820152606401610a1a565b336000908152600d602052604090205481906110839084906132a5565b11156110d15760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b601554336000908152600d60205260409020546110ef9084906132a5565b111561113d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b336000908152600d60205260408120805484929061115c9084906132a5565b90915550610be6905082612103565b6000611176826121ba565b5192915050565b6009546001600160a01b031633146111d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6017546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611224576040519150601f19603f3d011682016040523d82523d6000602084013e611229565b606091505b505090508061123757600080fd5b50565b60006001600160a01b0382166112b85760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a1a565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6009546001600160a01b031633146113375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6113416000612385565b565b600a805461135090613239565b80601f016020809104026020016040519081016040528092919081815260200182805461137c90613239565b80156113c95780601f1061139e576101008083540402835291602001916113c9565b820191906000526020600020905b8154815290600101906020018083116113ac57829003601f168201915b505050505081565b6009546001600160a01b0316331461142b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b8051610ef390600a906020840190612cdd565b6009546001600160a01b031633146114985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601455565b6009546001600160a01b031633146114f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b610b6d600c8383612d5d565b60606002805461091c90613239565b6009546001600160a01b0316331461156c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6010548161157960005490565b61158391906132a5565b11156115bd5760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a1a565b7f00000000000000000000000000000000000000000000000000000000000000078110156115ef5761123733826123e4565b6116197f0000000000000000000000000000000000000000000000000000000000000007826132d3565b1561168c5760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a652e000000000000000000000000000000000000006064820152608401610a1a565b60006116b87f0000000000000000000000000000000000000000000000000000000000000007836132e7565b905060005b81811015610b6d576116ef337f00000000000000000000000000000000000000000000000000000000000000076123e4565b806116f98161328a565b9150506116bd565b6001600160a01b03821633141561175a5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a1a565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118068484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061209592505050565b6118785760405162461bcd60e51b815260206004820152602160248201527f5468697320686173682773207369676e617475726520697320696e76616c696460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b83611882336123fe565b146118f55760405162461bcd60e51b815260206004820152603060248201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060448201527f746865207369676e656420686173682e000000000000000000000000000000006064820152608401610a1a565b601554336000908152600d60205260409020546119139083906132a5565b11156119615760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b336000908152600d6020526040812080548392906119809084906132a5565b9091555050336000908152600e6020526040812080548392906119a49084906132a5565b909155506119b3905081612103565b50505050565b6119c4848484611cd3565b6119d084848484612431565b6119b35760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b6060600b611a4f83612586565b604051602001611a60929190613395565b6040516020818303038152906040529050919050565b6018805461135090613239565b6009546001600160a01b03163314611add5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b601555565b6060600c805461091c90613239565b601654336000908152600e6020526040902054611b0f9083906132a5565b1115611b5d5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f74206d696e742074686973206d616e792e0000000000006044820152606401610a1a565b336000908152600e602052604081208054839290611b7c9084906132a5565b90915550611237905081612103565b6009546001600160a01b03163314611be55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1a565b6001600160a01b038116611c615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a1a565b61123781612385565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611cde826121ba565b80519091506000906001600160a01b0316336001600160a01b03161480611d15575033611d0a8461099f565b6001600160a01b0316145b80611d2757508151611d2790336107db565b905080611d9c5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a1a565b846001600160a01b031682600001516001600160a01b031614611e275760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a1a565b6001600160a01b038416611ea35760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a1a565b611eb36000848460000151611c6a565b6001600160a01b0385166000908152600460205260408120805460019290611ee59084906001600160801b03166133ba565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611f31918591166133e2565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611fb98460016132a5565b6000818152600360205260409020549091506001600160a01b031661204b57611fe3816000541190565b1561204b5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60006120a96009546001600160a01b031690565b6001600160a01b03166120bc84846126b8565b6001600160a01b0316149392505050565b60008383836040516020016120e493929190613404565b6040516020818303038152906040528051906020012090509392505050565b34601454826121129190613443565b1461215f5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616d6f756e742e00000000000000000000000000000000006044820152606401610a1a565b6011548161216c60005490565b61217691906132a5565b11156121b05760405162461bcd60e51b815260206004820152600960248201526829b7b6321037baba1760b91b6044820152606401610a1a565b61123733826123e4565b60408051808201909152600080825260208201526121d9826000541190565b61224b5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a1a565b60007f000000000000000000000000000000000000000000000000000000000000000783106122ac5761229e7f000000000000000000000000000000000000000000000000000000000000000784613462565b6122a99060016132a5565b90505b825b818110612316576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561230357949350505050565b508061230e81613479565b9150506122ae565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a1a565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610ef38282604051806020016040528060008152506126cb565b6000600a82604051602001612414929190613490565b604051602081830303815290604052805190602001209050919050565b60006001600160a01b0384163b1561257a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124759033908990889088906004016134bd565b6020604051808303816000875af19250505080156124b0575060408051601f3d908101601f191682019092526124ad918101906134ef565b60015b612560573d8080156124de576040519150601f19603f3d011682016040523d82523d6000602084013e6124e3565b606091505b5080516125585760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061257e565b5060015b949350505050565b6060816125c657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156125f057806125da8161328a565b91506125e99050600a836132e7565b91506125ca565b60008167ffffffffffffffff81111561260b5761260b612f3c565b6040519080825280601f01601f191660200182016040528015612635576020820181803683370190505b5090505b841561257e5761264a600183613462565b9150612657600a866132d3565b6126629060306132a5565b60f81b8183815181106126775761267761350c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506126b1600a866132e7565b9450612639565b60006126c48383612a4d565b9392505050565b6000546001600160a01b03841661274a5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b612755816000541190565b156127a25760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a1a565b7f00000000000000000000000000000000000000000000000000000000000000078311156128385760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a1a565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b03808216835270010000000000000000000000000000000090910416918101919091528151808301909252805190919081906128a19087906133e2565b6001600160801b031681526020018583602001516128bf91906133e2565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612a425760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46129b06000888488612431565b612a225760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a1a565b81612a2c8161328a565b9250508080612a3a9061328a565b915050612963565b50600081905561208d565b6000815160411415612a815760208201516040830151606084015160001a612a7786828585612af1565b9350505050610907565b815160401415612aa95760208201516040830151612aa0858383612c9a565b92505050610907565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a1a565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612b6e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a1a565b8360ff16601b1480612b8357508360ff16601c145b612bda5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a1a565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612c2e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c915760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1a565b95945050505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b01612cd386828785612af1565b9695505050505050565b828054612ce990613239565b90600052602060002090601f016020900481019282612d0b5760008555612d51565b82601f10612d2457805160ff1916838001178555612d51565b82800160010185558215612d51579182015b82811115612d51578251825591602001919060010190612d36565b50610e82929150612dd1565b828054612d6990613239565b90600052602060002090601f016020900481019282612d8b5760008555612d51565b82601f10612da45782800160ff19823516178555612d51565b82800160010185558215612d51579182015b82811115612d51578235825591602001919060010190612db6565b5b80821115610e825760008155600101612dd2565b6001600160e01b03198116811461123757600080fd5b600060208284031215612e0e57600080fd5b81356126c481612de6565b60005b83811015612e34578181015183820152602001612e1c565b838111156119b35750506000910152565b60008151808452612e5d816020860160208601612e19565b601f01601f19169290920160200192915050565b6020815260006126c46020830184612e45565b600060208284031215612e9657600080fd5b5035919050565b6001600160a01b038116811461123757600080fd5b60008060408385031215612ec557600080fd5b8235612ed081612e9d565b946020939093013593505050565b600060208284031215612ef057600080fd5b81356126c481612e9d565b600080600060608486031215612f1057600080fd5b8335612f1b81612e9d565b92506020840135612f2b81612e9d565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612f6d57612f6d612f3c565b604051601f8501601f19908116603f01168101908282118183101715612f9557612f95612f3c565b81604052809350858152868686011115612fae57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612fda57600080fd5b813567ffffffffffffffff811115612ff157600080fd5b8201601f8101841361300257600080fd5b61257e84823560208401612f52565b60008083601f84011261302357600080fd5b50813567ffffffffffffffff81111561303b57600080fd5b60208301915083602082850101111561305357600080fd5b9250929050565b60008060008060006080868803121561307257600080fd5b85359450602086013567ffffffffffffffff81111561309057600080fd5b61309c88828901613011565b9699909850959660408101359660609091013595509350505050565b600080602083850312156130cb57600080fd5b823567ffffffffffffffff8111156130e257600080fd5b6130ee85828601613011565b90969095509350505050565b6000806040838503121561310d57600080fd5b823561311881612e9d565b91506020830135801515811461312d57600080fd5b809150509250929050565b6000806000806060858703121561314e57600080fd5b84359350602085013567ffffffffffffffff81111561316c57600080fd5b61317887828801613011565b9598909750949560400135949350505050565b600080600080608085870312156131a157600080fd5b84356131ac81612e9d565b935060208501356131bc81612e9d565b925060408501359150606085013567ffffffffffffffff8111156131df57600080fd5b8501601f810187136131f057600080fd5b6131ff87823560208401612f52565b91505092959194509250565b6000806040838503121561321e57600080fd5b823561322981612e9d565b9150602083013561312d81612e9d565b600181811c9082168061324d57607f821691505b6020821081141561326e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561329e5761329e613274565b5060010190565b600082198211156132b8576132b8613274565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826132e2576132e26132bd565b500690565b6000826132f6576132f66132bd565b500490565b8054600090600181811c908083168061331557607f831692505b602080841082141561333757634e487b7160e01b600052602260045260246000fd5b81801561334b576001811461335c57613389565b60ff19861689528489019650613389565b60008881526020902060005b868110156133815781548b820152908501908301613368565b505084890196505b50505050505092915050565b60006133a182856132fb565b83516133b1818360208801612e19565b01949350505050565b60006001600160801b03838116908316818110156133da576133da613274565b039392505050565b60006001600160801b038083168185168083038211156133b1576133b1613274565b60008451613416818460208901612e19565b60609490941b6bffffffffffffffffffffffff191691909301908152601481019190915260340192915050565b600081600019048311821515161561345d5761345d613274565b500290565b60008282101561347457613474613274565b500390565b60008161348857613488613274565b506000190190565b600061349c82856132fb565b60609390931b6bffffffffffffffffffffffff191683525050601401919050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612cd36080830184612e45565b60006020828403121561350157600080fd5b81516126c481612de6565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220084a644f4403cfc74ad8f60c2fa3f11655af61d68cd33df2c7fc6ba252506df264736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017de00000000000000000000000000000000000000000000000000000000000002a700000000000000000000000000000000000000000000000001151c96347b000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004448d4fd3f76f11ba4605f3c6ca91c14477ed363000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a4400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000f00000000000000000000000000000000000000000000000000000000000000214c6576656c696e67205570204865726f6573202d204d61676963616c205469657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4c55482d4d41474943414c000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : payees (address[]): 0x4448d4FD3f76F11BA4605f3C6ca91c14477Ed363,0xCEa95B1d7Dd2EdeE9D6f6a7664598a8cC9052A44
Arg [1] : shares (uint256[]): 85,15
Arg [2] : name (string): Leveling Up Heroes - Magical Tier
Arg [3] : symbol (string): LUH-MAGICAL
Arg [4] : _whitelistMaxMint (uint256): 1
Arg [5] : _publicListMaxMint (uint256): 0
Arg [6] : _nonReservedMax (uint256): 6110
Arg [7] : _reservedMax (uint256): 679
Arg [8] : _price (uint256): 78000000000000000
-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000017de
Arg [7] : 00000000000000000000000000000000000000000000000000000000000002a7
Arg [8] : 00000000000000000000000000000000000000000000000001151c96347b0000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 0000000000000000000000004448d4fd3f76f11ba4605f3c6ca91c14477ed363
Arg [11] : 000000000000000000000000cea95b1d7dd2edee9d6f6a7664598a8cc9052a44
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [14] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [16] : 4c6576656c696e67205570204865726f6573202d204d61676963616c20546965
Arg [17] : 7200000000000000000000000000000000000000000000000000000000000000
Arg [18] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [19] : 4c55482d4d41474943414c000000000000000000000000000000000000000000
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.