ERC-721
Overview
Max Total Supply
0 METP
Holders
321
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 METPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Metapugs
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT // _____ ______ _______ _________ ________ ________ ___ ___ ________ ________ // |\ _ \ _ \|\ ___ \|\___ ___\\ __ \|\ __ \|\ \|\ \|\ ____\|\ ____\ // \ \ \\\__\ \ \ \ __/\|___ \ \_\ \ \|\ \ \ \|\ \ \ \\\ \ \ \___|\ \ \___|_ // \ \ \\|__| \ \ \ \_|/__ \ \ \ \ \ __ \ \ ____\ \ \\\ \ \ \ __\ \_____ \ // \ \ \ \ \ \ \ \_|\ \ \ \ \ \ \ \ \ \ \ \___|\ \ \\\ \ \ \|\ \|____|\ \ // \ \__\ \ \__\ \_______\ \ \__\ \ \__\ \__\ \__\ \ \_______\ \_______\____\_\ \ // \|__| \|__|\|_______| \|__| \|__|\|__|\|__| \|_______|\|_______|\_________\ // \|_________| pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract Metapugs is ERC721, Ownable, ReentrancyGuard { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private tokenCounter; string private baseURI; string public provenanceHash; address private openSeaProxyRegistryAddress; bool private isOpenSeaProxyActive = true; bool public isPresaleActive; bool public isPublicSaleActive; uint256 private primaryPercentage = 85; uint256 private secondaryPercentage = 13; uint256 public publicSaleLimit = 10; uint256 public presaleLimit = 5; uint256 public publicSalePrice = 0.065 ether; uint256 public presalePrice = 0.065 ether; uint256 public maxTokens; uint256 public maxPresaleTokens; uint256 public maxGiftedTokens; uint256 public numGiftedTokens; address primaryAddress; address secondaryAddress; address tertiaryAddress; bytes32 public presaleMerkleRoot; bytes32 public giftMerkleRoot; mapping(address => uint256) public presaleMintCount; mapping(address => bool) public gifted; // ACCESS CONTROL/SANITY MODIFIERS modifier publicSaleActive() { require(isPublicSaleActive, "Public sale is not active"); _; } modifier presaleActive() { require(isPresaleActive, "Presale sale is not active"); _; } modifier maxTokensPerTransaction(uint256 numberOfTokens) { require( numberOfTokens <= publicSaleLimit, "Quantity exceeds public sale limit for a transaction" ); _; } modifier canMintTokens(uint256 numberOfTokens) { require( tokenCounter.current() + numberOfTokens <= maxTokens - maxGiftedTokens, "Not enough tokens remaining to mint" ); _; } /** * @dev checks if the payment is correct */ modifier canGiftTokens(uint256 num) { require( numGiftedTokens + num <= maxGiftedTokens, "Not enough tokens remaining to gift" ); require( tokenCounter.current() + num <= maxTokens, "Not enough tokens remaining to mint" ); _; } /** * @dev checks if the payment is correct */ modifier isCorrectPayment(uint256 price, uint256 numberOfTokens) { require( price * numberOfTokens == msg.value, "Incorrect ETH value sent" ); _; } /** * @dev validates merkleProof */ modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address not found on list" ); _; } constructor( address _openSeaProxyRegistryAddress, address _primaryAddress, address _secondaryAddress, address _tertiaryAddress, uint256 _maxTokens, uint256 _maxPresaleTokens, uint256 _maxGiftedTokens ) ERC721("Metapugs", "METP") { openSeaProxyRegistryAddress = _openSeaProxyRegistryAddress; primaryAddress = _primaryAddress; secondaryAddress = _secondaryAddress; tertiaryAddress = _tertiaryAddress; maxTokens = _maxTokens; maxPresaleTokens = _maxPresaleTokens; maxGiftedTokens = _maxGiftedTokens; } receive() external payable {} // PUBLIC FUNCTIONS FOR MINTING function mint(uint256 numberOfTokens) external payable nonReentrant isCorrectPayment(publicSalePrice, numberOfTokens) publicSaleActive canMintTokens(numberOfTokens) maxTokensPerTransaction(numberOfTokens) { for (uint256 i = 0; i < numberOfTokens; i++) { _safeMint(msg.sender, nextTokenId()); } } function mintPresale(uint8 numberOfTokens, bytes32[] calldata merkleProof) external payable nonReentrant presaleActive canMintTokens(numberOfTokens) isCorrectPayment(presalePrice, numberOfTokens) isValidMerkleProof(merkleProof, presaleMerkleRoot) { uint256 numAlreadyMinted = presaleMintCount[msg.sender]; uint256 total = numAlreadyMinted + numberOfTokens; require( total <= presaleLimit, "Quantity exceeds presale limit for this wallet" ); require( tokenCounter.current() + numberOfTokens <= maxPresaleTokens, "Not enough tokens remaining to mint" ); presaleMintCount[msg.sender] = total; for (uint256 i = 0; i < numberOfTokens; i++) { _safeMint(msg.sender, nextTokenId()); } } function gift(bytes32[] calldata merkleProof) external isValidMerkleProof(merkleProof, giftMerkleRoot) canGiftTokens(1) { require(!gifted[msg.sender], "Token already gifted to this address"); gifted[msg.sender] = true; numGiftedTokens += 1; _safeMint(msg.sender, nextTokenId()); } // PUBLIC READ-ONLY FUNCTIONS function getBaseURI() external view returns (string memory) { return baseURI; } function getLastTokenId() external view returns (uint256) { return tokenCounter.current(); } // OWNER-ONLY ADMIN FUNCTIONS function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } // function to disable gasless listings for security in case // opensea ever shuts down or is compromised function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) external onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } function setProvenanceHash(string memory _provenanceHash) external onlyOwner { provenanceHash = _provenanceHash; } function togglePresale() external onlyOwner { isPresaleActive = !isPresaleActive; } function togglePublicSale() external onlyOwner { isPublicSaleActive = !isPublicSaleActive; } function setPresaleMerkleRoot(bytes32 merkleRoot) external onlyOwner { presaleMerkleRoot = merkleRoot; } function setGiftMerkleRoot(bytes32 merkleRoot) external onlyOwner { giftMerkleRoot = merkleRoot; } function setPublicSalePrice(uint256 price) external onlyOwner { publicSalePrice = price; } function setPresalePrice(uint256 price) external onlyOwner { presalePrice = price; } function setPresaleLimit(uint256 limit) external onlyOwner { presaleLimit = limit; } function setPublicSaleLimit(uint256 limit) external onlyOwner { publicSaleLimit = limit; } function adminMint(uint256 numToMint, address to) external nonReentrant onlyOwner canGiftTokens(numToMint) { numGiftedTokens += numToMint; for (uint256 i = 0; i < numToMint; i++) { _safeMint(to, nextTokenId()); } } function giftTokens(address[] calldata addresses) external nonReentrant onlyOwner canGiftTokens(addresses.length) { uint256 numToGift = addresses.length; numGiftedTokens += numToGift; for (uint256 i = 0; i < numToGift; i++) { _safeMint(addresses[i], nextTokenId()); } } function withdraw() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "Balance cannot be zero"); uint256 balanceForPrimary; uint256 balanceForSecondary; uint256 remainder = balance; bool success; balanceForPrimary = (balance * primaryPercentage) / 100; remainder -= balanceForPrimary; balanceForSecondary = (balance * secondaryPercentage) / 100; remainder -= balanceForSecondary; (success, ) = primaryAddress.call{value: balanceForPrimary}(""); require(success, "Transfer failed"); (success, ) = secondaryAddress.call{value: balanceForSecondary}(""); require(success, "Transfer failed"); (success, ) = tertiaryAddress.call{value: remainder}(""); require(success, "Transfer failed"); } function withdrawTokens(IERC20 token) public onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } function rollOverTokens(address[] calldata addresses) external nonReentrant onlyOwner { require( tokenCounter.current() + addresses.length <= 128, "All tokens are already rolled over" ); for (uint256 i = 0; i < addresses.length; i++) { presaleMintCount[addresses[i]] += 1; _mint(addresses[i], nextTokenId()); } } // SUPPORTING FUNCTIONS function nextTokenId() private returns (uint256) { tokenCounter.increment(); return tokenCounter.current(); } // FUNCTION OVERRIDES /** * @dev Override isApprovedForAll to allowlist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Get a reference to OpenSea's proxy registry contract by instantiating // the contract using the already existing address. ProxyRegistry proxyRegistry = ProxyRegistry( openSeaProxyRegistryAddress ); if ( isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator ) { return true; } return super.isApprovedForAll(owner, operator); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "Nonexistent token"); return string(abi.encodePacked(baseURI, "/", tokenId.toString(), ".json")); } } /** * @dev These contract definitions are used to create a reference to the OpenSea * ProxyRegistry contract by using the registry's address (see isApprovedForAll). */ contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) 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 generally not needed starting with Solidity 0.8, since 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 subtraction 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; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_openSeaProxyRegistryAddress","type":"address"},{"internalType":"address","name":"_primaryAddress","type":"address"},{"internalType":"address","name":"_secondaryAddress","type":"address"},{"internalType":"address","name":"_tertiaryAddress","type":"address"},{"internalType":"uint256","name":"_maxTokens","type":"uint256"},{"internalType":"uint256","name":"_maxPresaleTokens","type":"uint256"},{"internalType":"uint256","name":"_maxGiftedTokens","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":"uint256","name":"numToMint","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giftMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"giftTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gifted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxGiftedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfTokens","type":"uint8"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numGiftedTokens","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":"presaleLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"rollOverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setGiftMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setPresaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setPublicSaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526001600b60146101000a81548160ff0219169083151502179055506055600c55600d8055600a600e556005600f5566e6ed27d666800060105566e6ed27d66680006011553480156200005557600080fd5b506040516200645f3803806200645f83398181016040528101906200007b919062000415565b6040518060400160405280600881526020017f4d657461707567730000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4d455450000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000ff92919062000337565b5080600190805190602001906200011892919062000337565b5050506200013b6200012f6200026960201b60201c565b6200027160201b60201c565b600160078190555086600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601281905550816013819055508060148190555050505050505050620005a4565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003459062000506565b90600052602060002090601f016020900481019282620003695760008555620003b5565b82601f106200038457805160ff1916838001178555620003b5565b82800160010185558215620003b5579182015b82811115620003b457825182559160200191906001019062000397565b5b509050620003c49190620003c8565b5090565b5b80821115620003e3576000816000905550600101620003c9565b5090565b600081519050620003f88162000570565b92915050565b6000815190506200040f816200058a565b92915050565b600080600080600080600060e0888a0312156200043757620004366200056b565b5b6000620004478a828b01620003e7565b97505060206200045a8a828b01620003e7565b96505060406200046d8a828b01620003e7565b9550506060620004808a828b01620003e7565b9450506080620004938a828b01620003fe565b93505060a0620004a68a828b01620003fe565b92505060c0620004b98a828b01620003fe565b91505092959891949750929550565b6000620004d582620004dc565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060028204905060018216806200051f57607f821691505b602082108114156200053657620005356200053c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6200057b81620004c8565b81146200058757600080fd5b50565b6200059581620004fc565b8114620005a157600080fd5b50565b615eab80620005b46000396000f3fe6080604052600436106103025760003560e01c80636352211e11610190578063a22cb465116100dc578063e0e3163911610095578063e83157421161006f578063e831574214610b08578063e985e9c514610b33578063f2fde38b14610b70578063fc566c3c14610b9957610309565b8063e0e3163914610aac578063e222c7f914610ac8578063e43082f714610adf57610309565b8063a22cb4651461098c578063a695a594146109b5578063b88d4fde146109de578063bd26dcd214610a07578063c6ab67a314610a44578063c87b56dd14610a6f57610309565b80637fd255f11161014957806395d89b411161012357806395d89b41146108ef5780639b6860c81461091a578063a0712d6814610945578063a19829c01461096157610309565b80637fd255f11461087057806383c4c00d146108995780638da5cb5b146108c457610309565b80636352211e146107605780636e3de87c1461079d57806370a08231146107c8578063714c539814610805578063715018a614610830578063791a25191461084757610309565b8063343937431161024f578063440754d81161020857806349df728c116101e257806349df728c146106b8578063525b3fe3146106e157806355f804b31461070c57806360d938dc1461073557610309565b8063440754d81461063b578063457ffba01461066457806349c339811461068d57610309565b806334393743146105695780633549345e1461058057806339d82c59146105a95780633ba46d46146105d25780633ccfd60b146105fb57806342842e0e1461061257610309565b80630dc28efe116102bc57806322212e2b1161029657806322212e2b146104c157806323b872dd146104ec5780632417f31d1461051557806328d7b2761461054057610309565b80630dc28efe14610444578063109695231461046d5780631e84c4131461049657610309565b80620e7fa81461030e57806301ffc9a71461033957806306fdde0314610376578063081812fc146103a1578063094e4072146103de578063095ea7b31461041b57610309565b3661030957005b600080fd5b34801561031a57600080fd5b50610323610bc4565b604051610330919061510a565b60405180910390f35b34801561034557600080fd5b50610360600480360381019061035b919061444c565b610bca565b60405161036d9190614d12565b60405180910390f35b34801561038257600080fd5b5061038b610cac565b6040516103989190614d48565b60405180910390f35b3480156103ad57600080fd5b506103c860048036038101906103c39190614549565b610d3e565b6040516103d59190614c82565b60405180910390f35b3480156103ea57600080fd5b5061040560048036038101906104009190614168565b610dc3565b604051610412919061510a565b60405180910390f35b34801561042757600080fd5b50610442600480360381019061043d91906142eb565b610ddb565b005b34801561045057600080fd5b5061046b600480360381019061046691906145a3565b610ef3565b005b34801561047957600080fd5b50610494600480360381019061048f9190614500565b6110bf565b005b3480156104a257600080fd5b506104ab611155565b6040516104b89190614d12565b60405180910390f35b3480156104cd57600080fd5b506104d6611168565b6040516104e39190614d2d565b60405180910390f35b3480156104f857600080fd5b50610513600480360381019061050e91906141d5565b61116e565b005b34801561052157600080fd5b5061052a6111ce565b604051610537919061510a565b60405180910390f35b34801561054c57600080fd5b506105676004803603810190610562919061441f565b6111d4565b005b34801561057557600080fd5b5061057e61125a565b005b34801561058c57600080fd5b506105a760048036038101906105a29190614549565b611302565b005b3480156105b557600080fd5b506105d060048036038101906105cb9190614549565b611388565b005b3480156105de57600080fd5b506105f960048036038101906105f4919061441f565b61140e565b005b34801561060757600080fd5b50610610611494565b005b34801561061e57600080fd5b50610639600480360381019061063491906141d5565b611827565b005b34801561064757600080fd5b50610662600480360381019061065d919061432b565b611847565b005b34801561067057600080fd5b5061068b60048036038101906106869190614378565b611a46565b005b34801561069957600080fd5b506106a2611cc1565b6040516106af919061510a565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da91906144a6565b611cc7565b005b3480156106ed57600080fd5b506106f6611e62565b604051610703919061510a565b60405180910390f35b34801561071857600080fd5b50610733600480360381019061072e9190614500565b611e68565b005b34801561074157600080fd5b5061074a611efe565b6040516107579190614d12565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190614549565b611f11565b6040516107949190614c82565b60405180910390f35b3480156107a957600080fd5b506107b2611fc3565b6040516107bf919061510a565b60405180910390f35b3480156107d457600080fd5b506107ef60048036038101906107ea9190614168565b611fc9565b6040516107fc919061510a565b60405180910390f35b34801561081157600080fd5b5061081a612081565b6040516108279190614d48565b60405180910390f35b34801561083c57600080fd5b50610845612113565b005b34801561085357600080fd5b5061086e60048036038101906108699190614549565b61219b565b005b34801561087c57600080fd5b5061089760048036038101906108929190614549565b612221565b005b3480156108a557600080fd5b506108ae6122a7565b6040516108bb919061510a565b60405180910390f35b3480156108d057600080fd5b506108d96122b8565b6040516108e69190614c82565b60405180910390f35b3480156108fb57600080fd5b506109046122e2565b6040516109119190614d48565b60405180910390f35b34801561092657600080fd5b5061092f612374565b60405161093c919061510a565b60405180910390f35b61095f600480360381019061095a9190614549565b61237a565b005b34801561096d57600080fd5b50610976612554565b6040516109839190614d2d565b60405180910390f35b34801561099857600080fd5b506109b360048036038101906109ae91906142ab565b61255a565b005b3480156109c157600080fd5b506109dc60048036038101906109d7919061432b565b612570565b005b3480156109ea57600080fd5b50610a056004803603810190610a009190614228565b612779565b005b348015610a1357600080fd5b50610a2e6004803603810190610a299190614168565b6127db565b604051610a3b9190614d12565b60405180910390f35b348015610a5057600080fd5b50610a596127fb565b604051610a669190614d48565b60405180910390f35b348015610a7b57600080fd5b50610a966004803603810190610a919190614549565b612889565b604051610aa39190614d48565b60405180910390f35b610ac66004803603810190610ac191906145e3565b612905565b005b348015610ad457600080fd5b50610add612c9a565b005b348015610aeb57600080fd5b50610b066004803603810190610b0191906143c5565b612d42565b005b348015610b1457600080fd5b50610b1d612ddb565b604051610b2a919061510a565b60405180910390f35b348015610b3f57600080fd5b50610b5a6004803603810190610b559190614195565b612de1565b604051610b679190614d12565b60405180910390f35b348015610b7c57600080fd5b50610b976004803603810190610b929190614168565b612efb565b005b348015610ba557600080fd5b50610bae612ff3565b604051610bbb919061510a565b60405180910390f35b60115481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c9557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ca55750610ca482612ff9565b5b9050919050565b606060008054610cbb90615415565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce790615415565b8015610d345780601f10610d0957610100808354040283529160200191610d34565b820191906000526020600020905b815481529060010190602001808311610d1757829003601f168201915b5050505050905090565b6000610d4982613063565b610d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7f90614fea565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b601b6020528060005260406000206000915090505481565b6000610de682611f11565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4e9061504a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e766130cf565b73ffffffffffffffffffffffffffffffffffffffff161480610ea55750610ea481610e9f6130cf565b612de1565b5b610ee4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edb90614eca565b60405180910390fd5b610eee83836130d7565b505050565b60026007541415610f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f30906150ca565b60405180910390fd5b6002600781905550610f496130cf565b73ffffffffffffffffffffffffffffffffffffffff16610f676122b8565b73ffffffffffffffffffffffffffffffffffffffff1614610fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb49061500a565b60405180910390fd5b8160145481601554610fcf919061520f565b1115611010576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100790614dca565b60405180910390fd5b6012548161101e6008613190565b611028919061520f565b1115611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090614e6a565b60405180910390fd5b826015600082825461107b919061520f565b9250508190555060005b838110156110b15761109e8361109961319e565b6131b9565b80806110a990615478565b915050611085565b505060016007819055505050565b6110c76130cf565b73ffffffffffffffffffffffffffffffffffffffff166110e56122b8565b73ffffffffffffffffffffffffffffffffffffffff161461113b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111329061500a565b60405180910390fd5b80600a9080519060200190611151929190613e52565b5050565b600b60169054906101000a900460ff1681565b60195481565b61117f6111796130cf565b826131d7565b6111be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b59061508a565b60405180910390fd5b6111c98383836132b5565b505050565b60135481565b6111dc6130cf565b73ffffffffffffffffffffffffffffffffffffffff166111fa6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611250576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112479061500a565b60405180910390fd5b8060198190555050565b6112626130cf565b73ffffffffffffffffffffffffffffffffffffffff166112806122b8565b73ffffffffffffffffffffffffffffffffffffffff16146112d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cd9061500a565b60405180910390fd5b600b60159054906101000a900460ff1615600b60156101000a81548160ff021916908315150217905550565b61130a6130cf565b73ffffffffffffffffffffffffffffffffffffffff166113286122b8565b73ffffffffffffffffffffffffffffffffffffffff161461137e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113759061500a565b60405180910390fd5b8060118190555050565b6113906130cf565b73ffffffffffffffffffffffffffffffffffffffff166113ae6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611404576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fb9061500a565b60405180910390fd5b80600e8190555050565b6114166130cf565b73ffffffffffffffffffffffffffffffffffffffff166114346122b8565b73ffffffffffffffffffffffffffffffffffffffff161461148a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114819061500a565b60405180910390fd5b80601a8190555050565b61149c6130cf565b73ffffffffffffffffffffffffffffffffffffffff166114ba6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611510576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115079061500a565b60405180910390fd5b600047905060008111611558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154f9061502a565b60405180910390fd5b600080600083905060006064600c54866115729190615296565b61157c9190615265565b9350838261158a91906152f0565b91506064600d548661159c9190615296565b6115a69190615265565b925082826115b491906152f0565b9150601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16846040516115fc90614c6d565b60006040518083038185875af1925050503d8060008114611639576040519150601f19603f3d011682016040523d82523d6000602084013e61163e565b606091505b50508091505080611684576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167b90614daa565b60405180910390fd5b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516116ca90614c6d565b60006040518083038185875af1925050503d8060008114611707576040519150601f19603f3d011682016040523d82523d6000602084013e61170c565b606091505b50508091505080611752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174990614daa565b60405180910390fd5b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161179890614c6d565b60006040518083038185875af1925050503d80600081146117d5576040519150601f19603f3d011682016040523d82523d6000602084013e6117da565b606091505b50508091505080611820576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181790614daa565b60405180910390fd5b5050505050565b61184283838360405180602001604052806000815250612779565b505050565b6002600754141561188d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611884906150ca565b60405180910390fd5b600260078190555061189d6130cf565b73ffffffffffffffffffffffffffffffffffffffff166118bb6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611911576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119089061500a565b60405180910390fd5b8181905060145481601554611926919061520f565b1115611967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195e90614dca565b60405180910390fd5b601254816119756008613190565b61197f919061520f565b11156119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b790614e6a565b60405180910390fd5b600083839050905080601560008282546119da919061520f565b9250508190555060005b81811015611a3757611a24858583818110611a0257611a016155a3565b5b9050602002016020810190611a179190614168565b611a1f61319e565b6131b9565b8080611a2f90615478565b9150506119e4565b50505060016007819055505050565b8181601a54611abd838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508233604051602001611aa29190614c18565b6040516020818303038152906040528051906020012061351c565b611afc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af390614eaa565b60405180910390fd5b600160145481601554611b0f919061520f565b1115611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4790614dca565b60405180910390fd5b60125481611b5e6008613190565b611b68919061520f565b1115611ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba090614e6a565b60405180910390fd5b601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2d90614f8a565b60405180910390fd5b6001601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160156000828254611ca1919061520f565b92505081905550611cb933611cb461319e565b6131b9565b505050505050565b60155481565b611ccf6130cf565b73ffffffffffffffffffffffffffffffffffffffff16611ced6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3a9061500a565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611d7e9190614c82565b60206040518083038186803b158015611d9657600080fd5b505afa158015611daa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dce9190614576565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611e0b929190614ce9565b602060405180830381600087803b158015611e2557600080fd5b505af1158015611e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5d91906143f2565b505050565b600f5481565b611e706130cf565b73ffffffffffffffffffffffffffffffffffffffff16611e8e6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611ee4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edb9061500a565b60405180910390fd5b8060099080519060200190611efa929190613e52565b5050565b600b60159054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611fba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb190614f2a565b60405180910390fd5b80915050919050565b600e5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561203a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203190614f0a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606009805461209090615415565b80601f01602080910402602001604051908101604052809291908181526020018280546120bc90615415565b80156121095780601f106120de57610100808354040283529160200191612109565b820191906000526020600020905b8154815290600101906020018083116120ec57829003601f168201915b5050505050905090565b61211b6130cf565b73ffffffffffffffffffffffffffffffffffffffff166121396122b8565b73ffffffffffffffffffffffffffffffffffffffff161461218f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121869061500a565b60405180910390fd5b6121996000613533565b565b6121a36130cf565b73ffffffffffffffffffffffffffffffffffffffff166121c16122b8565b73ffffffffffffffffffffffffffffffffffffffff1614612217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220e9061500a565b60405180910390fd5b8060108190555050565b6122296130cf565b73ffffffffffffffffffffffffffffffffffffffff166122476122b8565b73ffffffffffffffffffffffffffffffffffffffff161461229d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122949061500a565b60405180910390fd5b80600f8190555050565b60006122b36008613190565b905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546122f190615415565b80601f016020809104026020016040519081016040528092919081815260200182805461231d90615415565b801561236a5780601f1061233f5761010080835404028352916020019161236a565b820191906000526020600020905b81548152906001019060200180831161234d57829003601f168201915b5050505050905090565b60105481565b600260075414156123c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b7906150ca565b60405180910390fd5b6002600781905550601054813481836123d99190615296565b14612419576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612410906150aa565b60405180910390fd5b600b60169054906101000a900460ff16612468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245f90614f4a565b60405180910390fd5b8260145460125461247991906152f0565b816124846008613190565b61248e919061520f565b11156124cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c690614e6a565b60405180910390fd5b83600e54811115612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c90614faa565b60405180910390fd5b60005b85811015612544576125313361252c61319e565b6131b9565b808061253c90615478565b915050612518565b5050505050600160078190555050565b601a5481565b61256c6125656130cf565b83836135f9565b5050565b600260075414156125b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ad906150ca565b60405180910390fd5b60026007819055506125c66130cf565b73ffffffffffffffffffffffffffffffffffffffff166125e46122b8565b73ffffffffffffffffffffffffffffffffffffffff161461263a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126319061500a565b60405180910390fd5b60808282905061264a6008613190565b612654919061520f565b1115612695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268c906150ea565b60405180910390fd5b60005b8282905081101561276c576001601b60008585858181106126bc576126bb6155a3565b5b90506020020160208101906126d19190614168565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461271a919061520f565b92505081905550612759838383818110612737576127366155a3565b5b905060200201602081019061274c9190614168565b61275461319e565b613766565b808061276490615478565b915050612698565b5060016007819055505050565b61278a6127846130cf565b836131d7565b6127c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c09061508a565b60405180910390fd5b6127d584848484613940565b50505050565b601c6020528060005260406000206000915054906101000a900460ff1681565b600a805461280890615415565b80601f016020809104026020016040519081016040528092919081815260200182805461283490615415565b80156128815780601f1061285657610100808354040283529160200191612881565b820191906000526020600020905b81548152906001019060200180831161286457829003601f168201915b505050505081565b606061289482613063565b6128d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ca90614eea565b60405180910390fd5b60096128de8361399c565b6040516020016128ef929190614c33565b6040516020818303038152906040529050919050565b6002600754141561294b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612942906150ca565b60405180910390fd5b6002600781905550600b60159054906101000a900460ff166129a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299990614f6a565b60405180910390fd5b8260ff166014546012546129b691906152f0565b816129c16008613190565b6129cb919061520f565b1115612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0390614e6a565b60405180910390fd5b6011548460ff16348183612a209190615296565b14612a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a57906150aa565b60405180910390fd5b8484601954612ad7838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508233604051602001612abc9190614c18565b6040516020818303038152906040528051906020012061351c565b612b16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0d90614eaa565b60405180910390fd5b6000601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008a60ff1682612b6b919061520f565b9050600f54811115612bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba99061506a565b60405180910390fd5b6013548b60ff16612bc36008613190565b612bcd919061520f565b1115612c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0590614e6a565b60405180910390fd5b80601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060005b8b60ff16811015612c8457612c7133612c6c61319e565b6131b9565b8080612c7c90615478565b915050612c55565b5050505050505050506001600781905550505050565b612ca26130cf565b73ffffffffffffffffffffffffffffffffffffffff16612cc06122b8565b73ffffffffffffffffffffffffffffffffffffffff1614612d16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0d9061500a565b60405180910390fd5b600b60169054906101000a900460ff1615600b60166101000a81548160ff021916908315150217905550565b612d4a6130cf565b73ffffffffffffffffffffffffffffffffffffffff16612d686122b8565b73ffffffffffffffffffffffffffffffffffffffff1614612dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db59061500a565b60405180910390fd5b80600b60146101000a81548160ff02191690831515021790555050565b60125481565b600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600b60149054906101000a900460ff168015612ed857508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401612e709190614c82565b60206040518083038186803b158015612e8857600080fd5b505afa158015612e9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec091906144d3565b73ffffffffffffffffffffffffffffffffffffffff16145b15612ee7576001915050612ef5565b612ef18484613afd565b9150505b92915050565b612f036130cf565b73ffffffffffffffffffffffffffffffffffffffff16612f216122b8565b73ffffffffffffffffffffffffffffffffffffffff1614612f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6e9061500a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612fe7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fde90614d8a565b60405180910390fd5b612ff081613533565b50565b60145481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661314a83611f11565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60006131aa6008613b91565b6131b46008613190565b905090565b6131d3828260405180602001604052806000815250613ba7565b5050565b60006131e282613063565b613221576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321890614e8a565b60405180910390fd5b600061322c83611f11565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061326e575061326d8185612de1565b5b806132ac57508373ffffffffffffffffffffffffffffffffffffffff1661329484610d3e565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166132d582611f11565b73ffffffffffffffffffffffffffffffffffffffff161461332b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332290614dea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561339b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339290614e2a565b60405180910390fd5b6133a6838383613c02565b6133b16000826130d7565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461340191906152f0565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613458919061520f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613517838383613c07565b505050565b6000826135298584613c0c565b1490509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365f90614e4a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516137599190614d12565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156137d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137cd90614fca565b60405180910390fd5b6137df81613063565b1561381f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381690614e0a565b60405180910390fd5b61382b60008383613c02565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461387b919061520f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461393c60008383613c07565b5050565b61394b8484846132b5565b61395784848484613c81565b613996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161398d90614d6a565b60405180910390fd5b50505050565b606060008214156139e4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613af8565b600082905060005b60008214613a165780806139ff90615478565b915050600a82613a0f9190615265565b91506139ec565b60008167ffffffffffffffff811115613a3257613a316155d2565b5b6040519080825280601f01601f191660200182016040528015613a645781602001600182028036833780820191505090505b5090505b60008514613af157600182613a7d91906152f0565b9150600a85613a8c91906154e5565b6030613a98919061520f565b60f81b818381518110613aae57613aad6155a3565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613aea9190615265565b9450613a68565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6001816000016000828254019250508190555050565b613bb18383613766565b613bbe6000848484613c81565b613bfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bf490614d6a565b60405180910390fd5b505050565b505050565b505050565b60008082905060005b8451811015613c76576000858281518110613c3357613c326155a3565b5b60200260200101519050808311613c5557613c4e8382613e18565b9250613c62565b613c5f8184613e18565b92505b508080613c6e90615478565b915050613c15565b508091505092915050565b6000613ca28473ffffffffffffffffffffffffffffffffffffffff16613e2f565b15613e0b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613ccb6130cf565b8786866040518563ffffffff1660e01b8152600401613ced9493929190614c9d565b602060405180830381600087803b158015613d0757600080fd5b505af1925050508015613d3857506040513d601f19601f82011682018060405250810190613d359190614479565b60015b613dbb573d8060008114613d68576040519150601f19603f3d011682016040523d82523d6000602084013e613d6d565b606091505b50600081511415613db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613daa90614d6a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613e10565b600190505b949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613e5e90615415565b90600052602060002090601f016020900481019282613e805760008555613ec7565b82601f10613e9957805160ff1916838001178555613ec7565b82800160010185558215613ec7579182015b82811115613ec6578251825591602001919060010190613eab565b5b509050613ed49190613ed8565b5090565b5b80821115613ef1576000816000905550600101613ed9565b5090565b6000613f08613f038461514a565b615125565b905082815260208101848484011115613f2457613f23615610565b5b613f2f8482856153d3565b509392505050565b6000613f4a613f458461517b565b615125565b905082815260208101848484011115613f6657613f65615610565b5b613f718482856153d3565b509392505050565b600081359050613f8881615dbd565b92915050565b60008083601f840112613fa457613fa3615606565b5b8235905067ffffffffffffffff811115613fc157613fc0615601565b5b602083019150836020820283011115613fdd57613fdc61560b565b5b9250929050565b60008083601f840112613ffa57613ff9615606565b5b8235905067ffffffffffffffff81111561401757614016615601565b5b6020830191508360208202830111156140335761403261560b565b5b9250929050565b60008135905061404981615dd4565b92915050565b60008151905061405e81615dd4565b92915050565b60008135905061407381615deb565b92915050565b60008135905061408881615e02565b92915050565b60008151905061409d81615e02565b92915050565b600082601f8301126140b8576140b7615606565b5b81356140c8848260208601613ef5565b91505092915050565b6000813590506140e081615e19565b92915050565b6000815190506140f581615e30565b92915050565b600082601f8301126141105761410f615606565b5b8135614120848260208601613f37565b91505092915050565b60008135905061413881615e47565b92915050565b60008151905061414d81615e47565b92915050565b60008135905061416281615e5e565b92915050565b60006020828403121561417e5761417d61561a565b5b600061418c84828501613f79565b91505092915050565b600080604083850312156141ac576141ab61561a565b5b60006141ba85828601613f79565b92505060206141cb85828601613f79565b9150509250929050565b6000806000606084860312156141ee576141ed61561a565b5b60006141fc86828701613f79565b935050602061420d86828701613f79565b925050604061421e86828701614129565b9150509250925092565b600080600080608085870312156142425761424161561a565b5b600061425087828801613f79565b945050602061426187828801613f79565b935050604061427287828801614129565b925050606085013567ffffffffffffffff81111561429357614292615615565b5b61429f878288016140a3565b91505092959194509250565b600080604083850312156142c2576142c161561a565b5b60006142d085828601613f79565b92505060206142e18582860161403a565b9150509250929050565b600080604083850312156143025761430161561a565b5b600061431085828601613f79565b925050602061432185828601614129565b9150509250929050565b600080602083850312156143425761434161561a565b5b600083013567ffffffffffffffff8111156143605761435f615615565b5b61436c85828601613f8e565b92509250509250929050565b6000806020838503121561438f5761438e61561a565b5b600083013567ffffffffffffffff8111156143ad576143ac615615565b5b6143b985828601613fe4565b92509250509250929050565b6000602082840312156143db576143da61561a565b5b60006143e98482850161403a565b91505092915050565b6000602082840312156144085761440761561a565b5b60006144168482850161404f565b91505092915050565b6000602082840312156144355761443461561a565b5b600061444384828501614064565b91505092915050565b6000602082840312156144625761446161561a565b5b600061447084828501614079565b91505092915050565b60006020828403121561448f5761448e61561a565b5b600061449d8482850161408e565b91505092915050565b6000602082840312156144bc576144bb61561a565b5b60006144ca848285016140d1565b91505092915050565b6000602082840312156144e9576144e861561a565b5b60006144f7848285016140e6565b91505092915050565b6000602082840312156145165761451561561a565b5b600082013567ffffffffffffffff81111561453457614533615615565b5b614540848285016140fb565b91505092915050565b60006020828403121561455f5761455e61561a565b5b600061456d84828501614129565b91505092915050565b60006020828403121561458c5761458b61561a565b5b600061459a8482850161413e565b91505092915050565b600080604083850312156145ba576145b961561a565b5b60006145c885828601614129565b92505060206145d985828601613f79565b9150509250929050565b6000806000604084860312156145fc576145fb61561a565b5b600061460a86828701614153565b935050602084013567ffffffffffffffff81111561462b5761462a615615565b5b61463786828701613fe4565b92509250509250925092565b61464c81615324565b82525050565b61466361465e82615324565b6154c1565b82525050565b61467281615336565b82525050565b61468181615342565b82525050565b6000614692826151c1565b61469c81856151d7565b93506146ac8185602086016153e2565b6146b58161561f565b840191505092915050565b60006146cb826151cc565b6146d581856151f3565b93506146e58185602086016153e2565b6146ee8161561f565b840191505092915050565b6000614704826151cc565b61470e8185615204565b935061471e8185602086016153e2565b80840191505092915050565b6000815461473781615415565b6147418186615204565b9450600182166000811461475c576001811461476d576147a0565b60ff198316865281860193506147a0565b614776856151ac565b60005b8381101561479857815481890152600182019150602081019050614779565b838801955050505b50505092915050565b60006147b66032836151f3565b91506147c18261563d565b604082019050919050565b60006147d96026836151f3565b91506147e48261568c565b604082019050919050565b60006147fc600f836151f3565b9150614807826156db565b602082019050919050565b600061481f6023836151f3565b915061482a82615704565b604082019050919050565b60006148426025836151f3565b915061484d82615753565b604082019050919050565b6000614865601c836151f3565b9150614870826157a2565b602082019050919050565b60006148886024836151f3565b9150614893826157cb565b604082019050919050565b60006148ab6019836151f3565b91506148b68261581a565b602082019050919050565b60006148ce6023836151f3565b91506148d982615843565b604082019050919050565b60006148f1602c836151f3565b91506148fc82615892565b604082019050919050565b60006149146019836151f3565b915061491f826158e1565b602082019050919050565b60006149376038836151f3565b91506149428261590a565b604082019050919050565b600061495a6011836151f3565b915061496582615959565b602082019050919050565b600061497d602a836151f3565b915061498882615982565b604082019050919050565b60006149a06029836151f3565b91506149ab826159d1565b604082019050919050565b60006149c36019836151f3565b91506149ce82615a20565b602082019050919050565b60006149e6601a836151f3565b91506149f182615a49565b602082019050919050565b6000614a096024836151f3565b9150614a1482615a72565b604082019050919050565b6000614a2c6034836151f3565b9150614a3782615ac1565b604082019050919050565b6000614a4f6020836151f3565b9150614a5a82615b10565b602082019050919050565b6000614a72602c836151f3565b9150614a7d82615b39565b604082019050919050565b6000614a95600583615204565b9150614aa082615b88565b600582019050919050565b6000614ab86020836151f3565b9150614ac382615bb1565b602082019050919050565b6000614adb6016836151f3565b9150614ae682615bda565b602082019050919050565b6000614afe6021836151f3565b9150614b0982615c03565b604082019050919050565b6000614b21602e836151f3565b9150614b2c82615c52565b604082019050919050565b6000614b446000836151e8565b9150614b4f82615ca1565b600082019050919050565b6000614b676031836151f3565b9150614b7282615ca4565b604082019050919050565b6000614b8a6018836151f3565b9150614b9582615cf3565b602082019050919050565b6000614bad601f836151f3565b9150614bb882615d1c565b602082019050919050565b6000614bd06022836151f3565b9150614bdb82615d45565b604082019050919050565b6000614bf3600183615204565b9150614bfe82615d94565b600182019050919050565b614c12816153bc565b82525050565b6000614c248284614652565b60148201915081905092915050565b6000614c3f828561472a565b9150614c4a82614be6565b9150614c5682846146f9565b9150614c6182614a88565b91508190509392505050565b6000614c7882614b37565b9150819050919050565b6000602082019050614c976000830184614643565b92915050565b6000608082019050614cb26000830187614643565b614cbf6020830186614643565b614ccc6040830185614c09565b8181036060830152614cde8184614687565b905095945050505050565b6000604082019050614cfe6000830185614643565b614d0b6020830184614c09565b9392505050565b6000602082019050614d276000830184614669565b92915050565b6000602082019050614d426000830184614678565b92915050565b60006020820190508181036000830152614d6281846146c0565b905092915050565b60006020820190508181036000830152614d83816147a9565b9050919050565b60006020820190508181036000830152614da3816147cc565b9050919050565b60006020820190508181036000830152614dc3816147ef565b9050919050565b60006020820190508181036000830152614de381614812565b9050919050565b60006020820190508181036000830152614e0381614835565b9050919050565b60006020820190508181036000830152614e2381614858565b9050919050565b60006020820190508181036000830152614e438161487b565b9050919050565b60006020820190508181036000830152614e638161489e565b9050919050565b60006020820190508181036000830152614e83816148c1565b9050919050565b60006020820190508181036000830152614ea3816148e4565b9050919050565b60006020820190508181036000830152614ec381614907565b9050919050565b60006020820190508181036000830152614ee38161492a565b9050919050565b60006020820190508181036000830152614f038161494d565b9050919050565b60006020820190508181036000830152614f2381614970565b9050919050565b60006020820190508181036000830152614f4381614993565b9050919050565b60006020820190508181036000830152614f63816149b6565b9050919050565b60006020820190508181036000830152614f83816149d9565b9050919050565b60006020820190508181036000830152614fa3816149fc565b9050919050565b60006020820190508181036000830152614fc381614a1f565b9050919050565b60006020820190508181036000830152614fe381614a42565b9050919050565b6000602082019050818103600083015261500381614a65565b9050919050565b6000602082019050818103600083015261502381614aab565b9050919050565b6000602082019050818103600083015261504381614ace565b9050919050565b6000602082019050818103600083015261506381614af1565b9050919050565b6000602082019050818103600083015261508381614b14565b9050919050565b600060208201905081810360008301526150a381614b5a565b9050919050565b600060208201905081810360008301526150c381614b7d565b9050919050565b600060208201905081810360008301526150e381614ba0565b9050919050565b6000602082019050818103600083015261510381614bc3565b9050919050565b600060208201905061511f6000830184614c09565b92915050565b600061512f615140565b905061513b8282615447565b919050565b6000604051905090565b600067ffffffffffffffff821115615165576151646155d2565b5b61516e8261561f565b9050602081019050919050565b600067ffffffffffffffff821115615196576151956155d2565b5b61519f8261561f565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061521a826153bc565b9150615225836153bc565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561525a57615259615516565b5b828201905092915050565b6000615270826153bc565b915061527b836153bc565b92508261528b5761528a615545565b5b828204905092915050565b60006152a1826153bc565b91506152ac836153bc565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156152e5576152e4615516565b5b828202905092915050565b60006152fb826153bc565b9150615306836153bc565b92508282101561531957615318615516565b5b828203905092915050565b600061532f8261539c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061538382615324565b9050919050565b600061539582615324565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156154005780820151818401526020810190506153e5565b8381111561540f576000848401525b50505050565b6000600282049050600182168061542d57607f821691505b6020821081141561544157615440615574565b5b50919050565b6154508261561f565b810181811067ffffffffffffffff8211171561546f5761546e6155d2565b5b80604052505050565b6000615483826153bc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156154b6576154b5615516565b5b600182019050919050565b60006154cc826154d3565b9050919050565b60006154de82615630565b9050919050565b60006154f0826153bc565b91506154fb836153bc565b92508261550b5761550a615545565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f206760008201527f6966740000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f206d60008201527f696e740000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f41646472657373206e6f7420666f756e64206f6e206c69737400000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f50726573616c652073616c65206973206e6f7420616374697665000000000000600082015250565b7f546f6b656e20616c72656164792067696674656420746f20746869732061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f5175616e746974792065786365656473207075626c69632073616c65206c696d60008201527f697420666f722061207472616e73616374696f6e000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f42616c616e63652063616e6e6f74206265207a65726f00000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f5175616e7469747920657863656564732070726573616c65206c696d6974206660008201527f6f7220746869732077616c6c6574000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f496e636f7272656374204554482076616c75652073656e740000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f416c6c20746f6b656e732061726520616c726561647920726f6c6c6564206f7660008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b615dc681615324565b8114615dd157600080fd5b50565b615ddd81615336565b8114615de857600080fd5b50565b615df481615342565b8114615dff57600080fd5b50565b615e0b8161534c565b8114615e1657600080fd5b50565b615e2281615378565b8114615e2d57600080fd5b50565b615e398161538a565b8114615e4457600080fd5b50565b615e50816153bc565b8114615e5b57600080fd5b50565b615e67816153c6565b8114615e7257600080fd5b5056fea2646970667358221220e30783d117713538c272a27a36ddb078c26ec395b0a4b56c7ed7617c3f674abb64736f6c63430008070033000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000d2898c5927edc339b1e3a1771f0070032fd53e83000000000000000000000000c70113a9bc013aa8b1e649390f3dedf6c629c75a00000000000000000000000062bba9a25d97008390829c2ec6835f741103a7530000000000000000000000000000000000000000000000000000000000000d050000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000014d
Deployed Bytecode
0x6080604052600436106103025760003560e01c80636352211e11610190578063a22cb465116100dc578063e0e3163911610095578063e83157421161006f578063e831574214610b08578063e985e9c514610b33578063f2fde38b14610b70578063fc566c3c14610b9957610309565b8063e0e3163914610aac578063e222c7f914610ac8578063e43082f714610adf57610309565b8063a22cb4651461098c578063a695a594146109b5578063b88d4fde146109de578063bd26dcd214610a07578063c6ab67a314610a44578063c87b56dd14610a6f57610309565b80637fd255f11161014957806395d89b411161012357806395d89b41146108ef5780639b6860c81461091a578063a0712d6814610945578063a19829c01461096157610309565b80637fd255f11461087057806383c4c00d146108995780638da5cb5b146108c457610309565b80636352211e146107605780636e3de87c1461079d57806370a08231146107c8578063714c539814610805578063715018a614610830578063791a25191461084757610309565b8063343937431161024f578063440754d81161020857806349df728c116101e257806349df728c146106b8578063525b3fe3146106e157806355f804b31461070c57806360d938dc1461073557610309565b8063440754d81461063b578063457ffba01461066457806349c339811461068d57610309565b806334393743146105695780633549345e1461058057806339d82c59146105a95780633ba46d46146105d25780633ccfd60b146105fb57806342842e0e1461061257610309565b80630dc28efe116102bc57806322212e2b1161029657806322212e2b146104c157806323b872dd146104ec5780632417f31d1461051557806328d7b2761461054057610309565b80630dc28efe14610444578063109695231461046d5780631e84c4131461049657610309565b80620e7fa81461030e57806301ffc9a71461033957806306fdde0314610376578063081812fc146103a1578063094e4072146103de578063095ea7b31461041b57610309565b3661030957005b600080fd5b34801561031a57600080fd5b50610323610bc4565b604051610330919061510a565b60405180910390f35b34801561034557600080fd5b50610360600480360381019061035b919061444c565b610bca565b60405161036d9190614d12565b60405180910390f35b34801561038257600080fd5b5061038b610cac565b6040516103989190614d48565b60405180910390f35b3480156103ad57600080fd5b506103c860048036038101906103c39190614549565b610d3e565b6040516103d59190614c82565b60405180910390f35b3480156103ea57600080fd5b5061040560048036038101906104009190614168565b610dc3565b604051610412919061510a565b60405180910390f35b34801561042757600080fd5b50610442600480360381019061043d91906142eb565b610ddb565b005b34801561045057600080fd5b5061046b600480360381019061046691906145a3565b610ef3565b005b34801561047957600080fd5b50610494600480360381019061048f9190614500565b6110bf565b005b3480156104a257600080fd5b506104ab611155565b6040516104b89190614d12565b60405180910390f35b3480156104cd57600080fd5b506104d6611168565b6040516104e39190614d2d565b60405180910390f35b3480156104f857600080fd5b50610513600480360381019061050e91906141d5565b61116e565b005b34801561052157600080fd5b5061052a6111ce565b604051610537919061510a565b60405180910390f35b34801561054c57600080fd5b506105676004803603810190610562919061441f565b6111d4565b005b34801561057557600080fd5b5061057e61125a565b005b34801561058c57600080fd5b506105a760048036038101906105a29190614549565b611302565b005b3480156105b557600080fd5b506105d060048036038101906105cb9190614549565b611388565b005b3480156105de57600080fd5b506105f960048036038101906105f4919061441f565b61140e565b005b34801561060757600080fd5b50610610611494565b005b34801561061e57600080fd5b50610639600480360381019061063491906141d5565b611827565b005b34801561064757600080fd5b50610662600480360381019061065d919061432b565b611847565b005b34801561067057600080fd5b5061068b60048036038101906106869190614378565b611a46565b005b34801561069957600080fd5b506106a2611cc1565b6040516106af919061510a565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da91906144a6565b611cc7565b005b3480156106ed57600080fd5b506106f6611e62565b604051610703919061510a565b60405180910390f35b34801561071857600080fd5b50610733600480360381019061072e9190614500565b611e68565b005b34801561074157600080fd5b5061074a611efe565b6040516107579190614d12565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190614549565b611f11565b6040516107949190614c82565b60405180910390f35b3480156107a957600080fd5b506107b2611fc3565b6040516107bf919061510a565b60405180910390f35b3480156107d457600080fd5b506107ef60048036038101906107ea9190614168565b611fc9565b6040516107fc919061510a565b60405180910390f35b34801561081157600080fd5b5061081a612081565b6040516108279190614d48565b60405180910390f35b34801561083c57600080fd5b50610845612113565b005b34801561085357600080fd5b5061086e60048036038101906108699190614549565b61219b565b005b34801561087c57600080fd5b5061089760048036038101906108929190614549565b612221565b005b3480156108a557600080fd5b506108ae6122a7565b6040516108bb919061510a565b60405180910390f35b3480156108d057600080fd5b506108d96122b8565b6040516108e69190614c82565b60405180910390f35b3480156108fb57600080fd5b506109046122e2565b6040516109119190614d48565b60405180910390f35b34801561092657600080fd5b5061092f612374565b60405161093c919061510a565b60405180910390f35b61095f600480360381019061095a9190614549565b61237a565b005b34801561096d57600080fd5b50610976612554565b6040516109839190614d2d565b60405180910390f35b34801561099857600080fd5b506109b360048036038101906109ae91906142ab565b61255a565b005b3480156109c157600080fd5b506109dc60048036038101906109d7919061432b565b612570565b005b3480156109ea57600080fd5b50610a056004803603810190610a009190614228565b612779565b005b348015610a1357600080fd5b50610a2e6004803603810190610a299190614168565b6127db565b604051610a3b9190614d12565b60405180910390f35b348015610a5057600080fd5b50610a596127fb565b604051610a669190614d48565b60405180910390f35b348015610a7b57600080fd5b50610a966004803603810190610a919190614549565b612889565b604051610aa39190614d48565b60405180910390f35b610ac66004803603810190610ac191906145e3565b612905565b005b348015610ad457600080fd5b50610add612c9a565b005b348015610aeb57600080fd5b50610b066004803603810190610b0191906143c5565b612d42565b005b348015610b1457600080fd5b50610b1d612ddb565b604051610b2a919061510a565b60405180910390f35b348015610b3f57600080fd5b50610b5a6004803603810190610b559190614195565b612de1565b604051610b679190614d12565b60405180910390f35b348015610b7c57600080fd5b50610b976004803603810190610b929190614168565b612efb565b005b348015610ba557600080fd5b50610bae612ff3565b604051610bbb919061510a565b60405180910390f35b60115481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c9557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ca55750610ca482612ff9565b5b9050919050565b606060008054610cbb90615415565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce790615415565b8015610d345780601f10610d0957610100808354040283529160200191610d34565b820191906000526020600020905b815481529060010190602001808311610d1757829003601f168201915b5050505050905090565b6000610d4982613063565b610d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7f90614fea565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b601b6020528060005260406000206000915090505481565b6000610de682611f11565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4e9061504a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e766130cf565b73ffffffffffffffffffffffffffffffffffffffff161480610ea55750610ea481610e9f6130cf565b612de1565b5b610ee4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edb90614eca565b60405180910390fd5b610eee83836130d7565b505050565b60026007541415610f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f30906150ca565b60405180910390fd5b6002600781905550610f496130cf565b73ffffffffffffffffffffffffffffffffffffffff16610f676122b8565b73ffffffffffffffffffffffffffffffffffffffff1614610fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb49061500a565b60405180910390fd5b8160145481601554610fcf919061520f565b1115611010576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100790614dca565b60405180910390fd5b6012548161101e6008613190565b611028919061520f565b1115611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090614e6a565b60405180910390fd5b826015600082825461107b919061520f565b9250508190555060005b838110156110b15761109e8361109961319e565b6131b9565b80806110a990615478565b915050611085565b505060016007819055505050565b6110c76130cf565b73ffffffffffffffffffffffffffffffffffffffff166110e56122b8565b73ffffffffffffffffffffffffffffffffffffffff161461113b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111329061500a565b60405180910390fd5b80600a9080519060200190611151929190613e52565b5050565b600b60169054906101000a900460ff1681565b60195481565b61117f6111796130cf565b826131d7565b6111be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b59061508a565b60405180910390fd5b6111c98383836132b5565b505050565b60135481565b6111dc6130cf565b73ffffffffffffffffffffffffffffffffffffffff166111fa6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611250576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112479061500a565b60405180910390fd5b8060198190555050565b6112626130cf565b73ffffffffffffffffffffffffffffffffffffffff166112806122b8565b73ffffffffffffffffffffffffffffffffffffffff16146112d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cd9061500a565b60405180910390fd5b600b60159054906101000a900460ff1615600b60156101000a81548160ff021916908315150217905550565b61130a6130cf565b73ffffffffffffffffffffffffffffffffffffffff166113286122b8565b73ffffffffffffffffffffffffffffffffffffffff161461137e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113759061500a565b60405180910390fd5b8060118190555050565b6113906130cf565b73ffffffffffffffffffffffffffffffffffffffff166113ae6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611404576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fb9061500a565b60405180910390fd5b80600e8190555050565b6114166130cf565b73ffffffffffffffffffffffffffffffffffffffff166114346122b8565b73ffffffffffffffffffffffffffffffffffffffff161461148a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114819061500a565b60405180910390fd5b80601a8190555050565b61149c6130cf565b73ffffffffffffffffffffffffffffffffffffffff166114ba6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611510576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115079061500a565b60405180910390fd5b600047905060008111611558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154f9061502a565b60405180910390fd5b600080600083905060006064600c54866115729190615296565b61157c9190615265565b9350838261158a91906152f0565b91506064600d548661159c9190615296565b6115a69190615265565b925082826115b491906152f0565b9150601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16846040516115fc90614c6d565b60006040518083038185875af1925050503d8060008114611639576040519150601f19603f3d011682016040523d82523d6000602084013e61163e565b606091505b50508091505080611684576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167b90614daa565b60405180910390fd5b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516116ca90614c6d565b60006040518083038185875af1925050503d8060008114611707576040519150601f19603f3d011682016040523d82523d6000602084013e61170c565b606091505b50508091505080611752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174990614daa565b60405180910390fd5b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161179890614c6d565b60006040518083038185875af1925050503d80600081146117d5576040519150601f19603f3d011682016040523d82523d6000602084013e6117da565b606091505b50508091505080611820576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181790614daa565b60405180910390fd5b5050505050565b61184283838360405180602001604052806000815250612779565b505050565b6002600754141561188d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611884906150ca565b60405180910390fd5b600260078190555061189d6130cf565b73ffffffffffffffffffffffffffffffffffffffff166118bb6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611911576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119089061500a565b60405180910390fd5b8181905060145481601554611926919061520f565b1115611967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195e90614dca565b60405180910390fd5b601254816119756008613190565b61197f919061520f565b11156119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b790614e6a565b60405180910390fd5b600083839050905080601560008282546119da919061520f565b9250508190555060005b81811015611a3757611a24858583818110611a0257611a016155a3565b5b9050602002016020810190611a179190614168565b611a1f61319e565b6131b9565b8080611a2f90615478565b9150506119e4565b50505060016007819055505050565b8181601a54611abd838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508233604051602001611aa29190614c18565b6040516020818303038152906040528051906020012061351c565b611afc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af390614eaa565b60405180910390fd5b600160145481601554611b0f919061520f565b1115611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4790614dca565b60405180910390fd5b60125481611b5e6008613190565b611b68919061520f565b1115611ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba090614e6a565b60405180910390fd5b601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2d90614f8a565b60405180910390fd5b6001601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160156000828254611ca1919061520f565b92505081905550611cb933611cb461319e565b6131b9565b505050505050565b60155481565b611ccf6130cf565b73ffffffffffffffffffffffffffffffffffffffff16611ced6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3a9061500a565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611d7e9190614c82565b60206040518083038186803b158015611d9657600080fd5b505afa158015611daa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dce9190614576565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611e0b929190614ce9565b602060405180830381600087803b158015611e2557600080fd5b505af1158015611e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5d91906143f2565b505050565b600f5481565b611e706130cf565b73ffffffffffffffffffffffffffffffffffffffff16611e8e6122b8565b73ffffffffffffffffffffffffffffffffffffffff1614611ee4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edb9061500a565b60405180910390fd5b8060099080519060200190611efa929190613e52565b5050565b600b60159054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611fba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb190614f2a565b60405180910390fd5b80915050919050565b600e5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561203a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203190614f0a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606009805461209090615415565b80601f01602080910402602001604051908101604052809291908181526020018280546120bc90615415565b80156121095780601f106120de57610100808354040283529160200191612109565b820191906000526020600020905b8154815290600101906020018083116120ec57829003601f168201915b5050505050905090565b61211b6130cf565b73ffffffffffffffffffffffffffffffffffffffff166121396122b8565b73ffffffffffffffffffffffffffffffffffffffff161461218f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121869061500a565b60405180910390fd5b6121996000613533565b565b6121a36130cf565b73ffffffffffffffffffffffffffffffffffffffff166121c16122b8565b73ffffffffffffffffffffffffffffffffffffffff1614612217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220e9061500a565b60405180910390fd5b8060108190555050565b6122296130cf565b73ffffffffffffffffffffffffffffffffffffffff166122476122b8565b73ffffffffffffffffffffffffffffffffffffffff161461229d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122949061500a565b60405180910390fd5b80600f8190555050565b60006122b36008613190565b905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546122f190615415565b80601f016020809104026020016040519081016040528092919081815260200182805461231d90615415565b801561236a5780601f1061233f5761010080835404028352916020019161236a565b820191906000526020600020905b81548152906001019060200180831161234d57829003601f168201915b5050505050905090565b60105481565b600260075414156123c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b7906150ca565b60405180910390fd5b6002600781905550601054813481836123d99190615296565b14612419576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612410906150aa565b60405180910390fd5b600b60169054906101000a900460ff16612468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245f90614f4a565b60405180910390fd5b8260145460125461247991906152f0565b816124846008613190565b61248e919061520f565b11156124cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c690614e6a565b60405180910390fd5b83600e54811115612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c90614faa565b60405180910390fd5b60005b85811015612544576125313361252c61319e565b6131b9565b808061253c90615478565b915050612518565b5050505050600160078190555050565b601a5481565b61256c6125656130cf565b83836135f9565b5050565b600260075414156125b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ad906150ca565b60405180910390fd5b60026007819055506125c66130cf565b73ffffffffffffffffffffffffffffffffffffffff166125e46122b8565b73ffffffffffffffffffffffffffffffffffffffff161461263a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126319061500a565b60405180910390fd5b60808282905061264a6008613190565b612654919061520f565b1115612695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268c906150ea565b60405180910390fd5b60005b8282905081101561276c576001601b60008585858181106126bc576126bb6155a3565b5b90506020020160208101906126d19190614168565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461271a919061520f565b92505081905550612759838383818110612737576127366155a3565b5b905060200201602081019061274c9190614168565b61275461319e565b613766565b808061276490615478565b915050612698565b5060016007819055505050565b61278a6127846130cf565b836131d7565b6127c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c09061508a565b60405180910390fd5b6127d584848484613940565b50505050565b601c6020528060005260406000206000915054906101000a900460ff1681565b600a805461280890615415565b80601f016020809104026020016040519081016040528092919081815260200182805461283490615415565b80156128815780601f1061285657610100808354040283529160200191612881565b820191906000526020600020905b81548152906001019060200180831161286457829003601f168201915b505050505081565b606061289482613063565b6128d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ca90614eea565b60405180910390fd5b60096128de8361399c565b6040516020016128ef929190614c33565b6040516020818303038152906040529050919050565b6002600754141561294b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612942906150ca565b60405180910390fd5b6002600781905550600b60159054906101000a900460ff166129a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299990614f6a565b60405180910390fd5b8260ff166014546012546129b691906152f0565b816129c16008613190565b6129cb919061520f565b1115612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0390614e6a565b60405180910390fd5b6011548460ff16348183612a209190615296565b14612a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a57906150aa565b60405180910390fd5b8484601954612ad7838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508233604051602001612abc9190614c18565b6040516020818303038152906040528051906020012061351c565b612b16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0d90614eaa565b60405180910390fd5b6000601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008a60ff1682612b6b919061520f565b9050600f54811115612bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba99061506a565b60405180910390fd5b6013548b60ff16612bc36008613190565b612bcd919061520f565b1115612c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0590614e6a565b60405180910390fd5b80601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060005b8b60ff16811015612c8457612c7133612c6c61319e565b6131b9565b8080612c7c90615478565b915050612c55565b5050505050505050506001600781905550505050565b612ca26130cf565b73ffffffffffffffffffffffffffffffffffffffff16612cc06122b8565b73ffffffffffffffffffffffffffffffffffffffff1614612d16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0d9061500a565b60405180910390fd5b600b60169054906101000a900460ff1615600b60166101000a81548160ff021916908315150217905550565b612d4a6130cf565b73ffffffffffffffffffffffffffffffffffffffff16612d686122b8565b73ffffffffffffffffffffffffffffffffffffffff1614612dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db59061500a565b60405180910390fd5b80600b60146101000a81548160ff02191690831515021790555050565b60125481565b600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600b60149054906101000a900460ff168015612ed857508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401612e709190614c82565b60206040518083038186803b158015612e8857600080fd5b505afa158015612e9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec091906144d3565b73ffffffffffffffffffffffffffffffffffffffff16145b15612ee7576001915050612ef5565b612ef18484613afd565b9150505b92915050565b612f036130cf565b73ffffffffffffffffffffffffffffffffffffffff16612f216122b8565b73ffffffffffffffffffffffffffffffffffffffff1614612f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6e9061500a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612fe7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fde90614d8a565b60405180910390fd5b612ff081613533565b50565b60145481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661314a83611f11565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60006131aa6008613b91565b6131b46008613190565b905090565b6131d3828260405180602001604052806000815250613ba7565b5050565b60006131e282613063565b613221576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321890614e8a565b60405180910390fd5b600061322c83611f11565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061326e575061326d8185612de1565b5b806132ac57508373ffffffffffffffffffffffffffffffffffffffff1661329484610d3e565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166132d582611f11565b73ffffffffffffffffffffffffffffffffffffffff161461332b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332290614dea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561339b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339290614e2a565b60405180910390fd5b6133a6838383613c02565b6133b16000826130d7565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461340191906152f0565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613458919061520f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613517838383613c07565b505050565b6000826135298584613c0c565b1490509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365f90614e4a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516137599190614d12565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156137d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137cd90614fca565b60405180910390fd5b6137df81613063565b1561381f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381690614e0a565b60405180910390fd5b61382b60008383613c02565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461387b919061520f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461393c60008383613c07565b5050565b61394b8484846132b5565b61395784848484613c81565b613996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161398d90614d6a565b60405180910390fd5b50505050565b606060008214156139e4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613af8565b600082905060005b60008214613a165780806139ff90615478565b915050600a82613a0f9190615265565b91506139ec565b60008167ffffffffffffffff811115613a3257613a316155d2565b5b6040519080825280601f01601f191660200182016040528015613a645781602001600182028036833780820191505090505b5090505b60008514613af157600182613a7d91906152f0565b9150600a85613a8c91906154e5565b6030613a98919061520f565b60f81b818381518110613aae57613aad6155a3565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613aea9190615265565b9450613a68565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6001816000016000828254019250508190555050565b613bb18383613766565b613bbe6000848484613c81565b613bfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bf490614d6a565b60405180910390fd5b505050565b505050565b505050565b60008082905060005b8451811015613c76576000858281518110613c3357613c326155a3565b5b60200260200101519050808311613c5557613c4e8382613e18565b9250613c62565b613c5f8184613e18565b92505b508080613c6e90615478565b915050613c15565b508091505092915050565b6000613ca28473ffffffffffffffffffffffffffffffffffffffff16613e2f565b15613e0b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613ccb6130cf565b8786866040518563ffffffff1660e01b8152600401613ced9493929190614c9d565b602060405180830381600087803b158015613d0757600080fd5b505af1925050508015613d3857506040513d601f19601f82011682018060405250810190613d359190614479565b60015b613dbb573d8060008114613d68576040519150601f19603f3d011682016040523d82523d6000602084013e613d6d565b606091505b50600081511415613db3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613daa90614d6a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613e10565b600190505b949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613e5e90615415565b90600052602060002090601f016020900481019282613e805760008555613ec7565b82601f10613e9957805160ff1916838001178555613ec7565b82800160010185558215613ec7579182015b82811115613ec6578251825591602001919060010190613eab565b5b509050613ed49190613ed8565b5090565b5b80821115613ef1576000816000905550600101613ed9565b5090565b6000613f08613f038461514a565b615125565b905082815260208101848484011115613f2457613f23615610565b5b613f2f8482856153d3565b509392505050565b6000613f4a613f458461517b565b615125565b905082815260208101848484011115613f6657613f65615610565b5b613f718482856153d3565b509392505050565b600081359050613f8881615dbd565b92915050565b60008083601f840112613fa457613fa3615606565b5b8235905067ffffffffffffffff811115613fc157613fc0615601565b5b602083019150836020820283011115613fdd57613fdc61560b565b5b9250929050565b60008083601f840112613ffa57613ff9615606565b5b8235905067ffffffffffffffff81111561401757614016615601565b5b6020830191508360208202830111156140335761403261560b565b5b9250929050565b60008135905061404981615dd4565b92915050565b60008151905061405e81615dd4565b92915050565b60008135905061407381615deb565b92915050565b60008135905061408881615e02565b92915050565b60008151905061409d81615e02565b92915050565b600082601f8301126140b8576140b7615606565b5b81356140c8848260208601613ef5565b91505092915050565b6000813590506140e081615e19565b92915050565b6000815190506140f581615e30565b92915050565b600082601f8301126141105761410f615606565b5b8135614120848260208601613f37565b91505092915050565b60008135905061413881615e47565b92915050565b60008151905061414d81615e47565b92915050565b60008135905061416281615e5e565b92915050565b60006020828403121561417e5761417d61561a565b5b600061418c84828501613f79565b91505092915050565b600080604083850312156141ac576141ab61561a565b5b60006141ba85828601613f79565b92505060206141cb85828601613f79565b9150509250929050565b6000806000606084860312156141ee576141ed61561a565b5b60006141fc86828701613f79565b935050602061420d86828701613f79565b925050604061421e86828701614129565b9150509250925092565b600080600080608085870312156142425761424161561a565b5b600061425087828801613f79565b945050602061426187828801613f79565b935050604061427287828801614129565b925050606085013567ffffffffffffffff81111561429357614292615615565b5b61429f878288016140a3565b91505092959194509250565b600080604083850312156142c2576142c161561a565b5b60006142d085828601613f79565b92505060206142e18582860161403a565b9150509250929050565b600080604083850312156143025761430161561a565b5b600061431085828601613f79565b925050602061432185828601614129565b9150509250929050565b600080602083850312156143425761434161561a565b5b600083013567ffffffffffffffff8111156143605761435f615615565b5b61436c85828601613f8e565b92509250509250929050565b6000806020838503121561438f5761438e61561a565b5b600083013567ffffffffffffffff8111156143ad576143ac615615565b5b6143b985828601613fe4565b92509250509250929050565b6000602082840312156143db576143da61561a565b5b60006143e98482850161403a565b91505092915050565b6000602082840312156144085761440761561a565b5b60006144168482850161404f565b91505092915050565b6000602082840312156144355761443461561a565b5b600061444384828501614064565b91505092915050565b6000602082840312156144625761446161561a565b5b600061447084828501614079565b91505092915050565b60006020828403121561448f5761448e61561a565b5b600061449d8482850161408e565b91505092915050565b6000602082840312156144bc576144bb61561a565b5b60006144ca848285016140d1565b91505092915050565b6000602082840312156144e9576144e861561a565b5b60006144f7848285016140e6565b91505092915050565b6000602082840312156145165761451561561a565b5b600082013567ffffffffffffffff81111561453457614533615615565b5b614540848285016140fb565b91505092915050565b60006020828403121561455f5761455e61561a565b5b600061456d84828501614129565b91505092915050565b60006020828403121561458c5761458b61561a565b5b600061459a8482850161413e565b91505092915050565b600080604083850312156145ba576145b961561a565b5b60006145c885828601614129565b92505060206145d985828601613f79565b9150509250929050565b6000806000604084860312156145fc576145fb61561a565b5b600061460a86828701614153565b935050602084013567ffffffffffffffff81111561462b5761462a615615565b5b61463786828701613fe4565b92509250509250925092565b61464c81615324565b82525050565b61466361465e82615324565b6154c1565b82525050565b61467281615336565b82525050565b61468181615342565b82525050565b6000614692826151c1565b61469c81856151d7565b93506146ac8185602086016153e2565b6146b58161561f565b840191505092915050565b60006146cb826151cc565b6146d581856151f3565b93506146e58185602086016153e2565b6146ee8161561f565b840191505092915050565b6000614704826151cc565b61470e8185615204565b935061471e8185602086016153e2565b80840191505092915050565b6000815461473781615415565b6147418186615204565b9450600182166000811461475c576001811461476d576147a0565b60ff198316865281860193506147a0565b614776856151ac565b60005b8381101561479857815481890152600182019150602081019050614779565b838801955050505b50505092915050565b60006147b66032836151f3565b91506147c18261563d565b604082019050919050565b60006147d96026836151f3565b91506147e48261568c565b604082019050919050565b60006147fc600f836151f3565b9150614807826156db565b602082019050919050565b600061481f6023836151f3565b915061482a82615704565b604082019050919050565b60006148426025836151f3565b915061484d82615753565b604082019050919050565b6000614865601c836151f3565b9150614870826157a2565b602082019050919050565b60006148886024836151f3565b9150614893826157cb565b604082019050919050565b60006148ab6019836151f3565b91506148b68261581a565b602082019050919050565b60006148ce6023836151f3565b91506148d982615843565b604082019050919050565b60006148f1602c836151f3565b91506148fc82615892565b604082019050919050565b60006149146019836151f3565b915061491f826158e1565b602082019050919050565b60006149376038836151f3565b91506149428261590a565b604082019050919050565b600061495a6011836151f3565b915061496582615959565b602082019050919050565b600061497d602a836151f3565b915061498882615982565b604082019050919050565b60006149a06029836151f3565b91506149ab826159d1565b604082019050919050565b60006149c36019836151f3565b91506149ce82615a20565b602082019050919050565b60006149e6601a836151f3565b91506149f182615a49565b602082019050919050565b6000614a096024836151f3565b9150614a1482615a72565b604082019050919050565b6000614a2c6034836151f3565b9150614a3782615ac1565b604082019050919050565b6000614a4f6020836151f3565b9150614a5a82615b10565b602082019050919050565b6000614a72602c836151f3565b9150614a7d82615b39565b604082019050919050565b6000614a95600583615204565b9150614aa082615b88565b600582019050919050565b6000614ab86020836151f3565b9150614ac382615bb1565b602082019050919050565b6000614adb6016836151f3565b9150614ae682615bda565b602082019050919050565b6000614afe6021836151f3565b9150614b0982615c03565b604082019050919050565b6000614b21602e836151f3565b9150614b2c82615c52565b604082019050919050565b6000614b446000836151e8565b9150614b4f82615ca1565b600082019050919050565b6000614b676031836151f3565b9150614b7282615ca4565b604082019050919050565b6000614b8a6018836151f3565b9150614b9582615cf3565b602082019050919050565b6000614bad601f836151f3565b9150614bb882615d1c565b602082019050919050565b6000614bd06022836151f3565b9150614bdb82615d45565b604082019050919050565b6000614bf3600183615204565b9150614bfe82615d94565b600182019050919050565b614c12816153bc565b82525050565b6000614c248284614652565b60148201915081905092915050565b6000614c3f828561472a565b9150614c4a82614be6565b9150614c5682846146f9565b9150614c6182614a88565b91508190509392505050565b6000614c7882614b37565b9150819050919050565b6000602082019050614c976000830184614643565b92915050565b6000608082019050614cb26000830187614643565b614cbf6020830186614643565b614ccc6040830185614c09565b8181036060830152614cde8184614687565b905095945050505050565b6000604082019050614cfe6000830185614643565b614d0b6020830184614c09565b9392505050565b6000602082019050614d276000830184614669565b92915050565b6000602082019050614d426000830184614678565b92915050565b60006020820190508181036000830152614d6281846146c0565b905092915050565b60006020820190508181036000830152614d83816147a9565b9050919050565b60006020820190508181036000830152614da3816147cc565b9050919050565b60006020820190508181036000830152614dc3816147ef565b9050919050565b60006020820190508181036000830152614de381614812565b9050919050565b60006020820190508181036000830152614e0381614835565b9050919050565b60006020820190508181036000830152614e2381614858565b9050919050565b60006020820190508181036000830152614e438161487b565b9050919050565b60006020820190508181036000830152614e638161489e565b9050919050565b60006020820190508181036000830152614e83816148c1565b9050919050565b60006020820190508181036000830152614ea3816148e4565b9050919050565b60006020820190508181036000830152614ec381614907565b9050919050565b60006020820190508181036000830152614ee38161492a565b9050919050565b60006020820190508181036000830152614f038161494d565b9050919050565b60006020820190508181036000830152614f2381614970565b9050919050565b60006020820190508181036000830152614f4381614993565b9050919050565b60006020820190508181036000830152614f63816149b6565b9050919050565b60006020820190508181036000830152614f83816149d9565b9050919050565b60006020820190508181036000830152614fa3816149fc565b9050919050565b60006020820190508181036000830152614fc381614a1f565b9050919050565b60006020820190508181036000830152614fe381614a42565b9050919050565b6000602082019050818103600083015261500381614a65565b9050919050565b6000602082019050818103600083015261502381614aab565b9050919050565b6000602082019050818103600083015261504381614ace565b9050919050565b6000602082019050818103600083015261506381614af1565b9050919050565b6000602082019050818103600083015261508381614b14565b9050919050565b600060208201905081810360008301526150a381614b5a565b9050919050565b600060208201905081810360008301526150c381614b7d565b9050919050565b600060208201905081810360008301526150e381614ba0565b9050919050565b6000602082019050818103600083015261510381614bc3565b9050919050565b600060208201905061511f6000830184614c09565b92915050565b600061512f615140565b905061513b8282615447565b919050565b6000604051905090565b600067ffffffffffffffff821115615165576151646155d2565b5b61516e8261561f565b9050602081019050919050565b600067ffffffffffffffff821115615196576151956155d2565b5b61519f8261561f565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061521a826153bc565b9150615225836153bc565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561525a57615259615516565b5b828201905092915050565b6000615270826153bc565b915061527b836153bc565b92508261528b5761528a615545565b5b828204905092915050565b60006152a1826153bc565b91506152ac836153bc565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156152e5576152e4615516565b5b828202905092915050565b60006152fb826153bc565b9150615306836153bc565b92508282101561531957615318615516565b5b828203905092915050565b600061532f8261539c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061538382615324565b9050919050565b600061539582615324565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156154005780820151818401526020810190506153e5565b8381111561540f576000848401525b50505050565b6000600282049050600182168061542d57607f821691505b6020821081141561544157615440615574565b5b50919050565b6154508261561f565b810181811067ffffffffffffffff8211171561546f5761546e6155d2565b5b80604052505050565b6000615483826153bc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156154b6576154b5615516565b5b600182019050919050565b60006154cc826154d3565b9050919050565b60006154de82615630565b9050919050565b60006154f0826153bc565b91506154fb836153bc565b92508261550b5761550a615545565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f206760008201527f6966740000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e6720746f206d60008201527f696e740000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f41646472657373206e6f7420666f756e64206f6e206c69737400000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f50726573616c652073616c65206973206e6f7420616374697665000000000000600082015250565b7f546f6b656e20616c72656164792067696674656420746f20746869732061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f5175616e746974792065786365656473207075626c69632073616c65206c696d60008201527f697420666f722061207472616e73616374696f6e000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f42616c616e63652063616e6e6f74206265207a65726f00000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f5175616e7469747920657863656564732070726573616c65206c696d6974206660008201527f6f7220746869732077616c6c6574000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f496e636f7272656374204554482076616c75652073656e740000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f416c6c20746f6b656e732061726520616c726561647920726f6c6c6564206f7660008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b615dc681615324565b8114615dd157600080fd5b50565b615ddd81615336565b8114615de857600080fd5b50565b615df481615342565b8114615dff57600080fd5b50565b615e0b8161534c565b8114615e1657600080fd5b50565b615e2281615378565b8114615e2d57600080fd5b50565b615e398161538a565b8114615e4457600080fd5b50565b615e50816153bc565b8114615e5b57600080fd5b50565b615e67816153c6565b8114615e7257600080fd5b5056fea2646970667358221220e30783d117713538c272a27a36ddb078c26ec395b0a4b56c7ed7617c3f674abb64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000d2898c5927edc339b1e3a1771f0070032fd53e83000000000000000000000000c70113a9bc013aa8b1e649390f3dedf6c629c75a00000000000000000000000062bba9a25d97008390829c2ec6835f741103a7530000000000000000000000000000000000000000000000000000000000000d050000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000014d
-----Decoded View---------------
Arg [0] : _openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _primaryAddress (address): 0xD2898C5927eDC339B1E3a1771f0070032fd53E83
Arg [2] : _secondaryAddress (address): 0xC70113a9bC013aa8b1E649390F3DeDf6c629c75a
Arg [3] : _tertiaryAddress (address): 0x62bbA9a25D97008390829c2Ec6835F741103a753
Arg [4] : _maxTokens (uint256): 3333
Arg [5] : _maxPresaleTokens (uint256): 3000
Arg [6] : _maxGiftedTokens (uint256): 333
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 000000000000000000000000d2898c5927edc339b1e3a1771f0070032fd53e83
Arg [2] : 000000000000000000000000c70113a9bc013aa8b1e649390f3dedf6c629c75a
Arg [3] : 00000000000000000000000062bba9a25d97008390829c2ec6835f741103a753
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000d05
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [6] : 000000000000000000000000000000000000000000000000000000000000014d
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.