ERC-721
Overview
Max Total Supply
5,000 AACC
Holders
522
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 AACCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AngryApesCountryClub
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // █████╗ █████╗ ██████╗ ██████╗ // ██╔══██╗██╔══██╗██╔════╝██╔════╝ // ███████║███████║██║ ██║ // ██╔══██║██╔══██║██║ ██║ // ██║ ██║██║ ██║╚██████╗╚██████╗ // ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ // ERC721A/S Super Gas Efficient developed by NFT Elite Consulting x MisterSausage for Angry Apes Country Club pragma solidity ^0.8.4; pragma abicoder v2; import "./ERC721A.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract AngryApesCountryClub is ERC721A, Ownable { using SafeMath for uint256; using Strings for uint256; bytes32 public merkleRoot; bytes32 public vipMerkleRoot; uint256 constant public MAX_SUPPLY= 5000; uint256 constant public MAX_WL_SUPPLY = 500; uint256 constant public MAX_VIPWL_SUPPLY = 1250; uint256 public WL_PRICE = 0.19 ether; uint256 public VIPWL_PRICE = 0.26 ether; uint256 public PRICE = 0.32 ether; uint256 public giveawayLimit = 250; string public baseTokenURI; bool public whitelistSaleIsActive; bool public saleIsActive; address private wallet1 = 0x5cB857F819E33252d75423dbF39550cD768bdc22; // Company Wallet address private wallet2 = 0x5f44114Cc117167982a1F08faD60aCDBF0b63ef0; // Company Wallet address private wallet3 = 0xdd176D72c0bC94dc10DFbA76716074F2c1D8cb02; // Company Wallet address private wallet4 = 0xE29cC153F6D64f5FAc547d16F07f18D0020075c5; // Company Wallet address private wallet5 = 0x282781484bDeBD41346D063b65F596f63fd2F03e; // Company Wallet address private wallet6 = 0xf02C95775A55BDaF85C6C873473f89A14920ED17; // Company Wallet address private wallet7 = 0x23bE357297a2f08f8456ad81F553CBc61EC6272c; // Company Wallet address private wallet8 = 0xEbe792d072f7dF72af667Ea5bb237B8D840De675; // Company Wallet address private wallet9 = 0x669bd3305D7CDaea7394DcdB99236371bBA3d259; // Company Wallet address private wallet10 = 0xabfF75d5D89Af95F3A27bdeED14D12B2A2Dc0C31; // Company Wallet address public Authorized = 0x7a29d9a21A45E269F1bFFFa15a84c16BA0050E27; // Dev Wallet for Testing (no percentage) uint256 public maxPurchase = 100; uint256 public maxWLPurchase = 5; uint256 public maxVIPPurchase = 5; uint256 public maxTxWL = 5; uint256 public maxTxVIP = 5; uint256 public maxTx = 100; constructor() ERC721A("Angry Apes Country Club", "AACC") { } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } modifier onlyAuthorized { require(msg.sender == owner() || msg.sender == Authorized , "Not authorized"); _; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function flipSaleState() external onlyOwner { saleIsActive = !saleIsActive; } function flipWhitelistSaleState() external onlyOwner { whitelistSaleIsActive = !whitelistSaleIsActive; } function updateMerkleRoot(bytes32 newMerkleRoot) external onlyOwner { merkleRoot = newMerkleRoot; } function updateVIPMerkleRoot(bytes32 newMerkleRoot) external onlyOwner { vipMerkleRoot = newMerkleRoot; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(),".json")) : ""; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function whitelistMint(uint256 numberOfTokens, bytes32[] calldata merkleProof ) payable external callerIsUser { require(whitelistSaleIsActive, "Whitelist Sale must be active to mint"); require(totalSupply().add(numberOfTokens) <= MAX_WL_SUPPLY, "Total WL Supply has been minted"); require(numberOfTokens > 0 && numberOfTokens <= maxTxWL, "Can only mint upto 1 NFTs in a transaction"); require(msg.value == WL_PRICE.mul(numberOfTokens), "Ether value sent is not correct"); require(numberMinted(msg.sender).add(numberOfTokens) <= maxWLPurchase,"Exceeds Max mints allowed per whitelisted wallet"); // Verify the merkle proof require(MerkleProof.verify(merkleProof, merkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "Invalid proof"); _safeMint(msg.sender, numberOfTokens); } function vipMint(uint256 numberOfTokens, bytes32[] calldata merkleProof ) payable external callerIsUser { require(whitelistSaleIsActive, "Whitelist Sale must be active to mint"); require(totalSupply().add(numberOfTokens) <= MAX_VIPWL_SUPPLY, "Total VIPWL Supply has been minted"); require(numberOfTokens > 0 && numberOfTokens <= maxTxVIP, "Can only mint upto 2 NFTs in a transaction"); require(msg.value == VIPWL_PRICE.mul(numberOfTokens), "Ether value sent is not correct"); require(numberMinted(msg.sender).add(numberOfTokens) <= maxVIPPurchase,"Exceeds Max mints allowed per whitelisted wallet"); // Verify the merkle proof require(MerkleProof.verify(merkleProof, vipMerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "Invalid proof"); _safeMint(msg.sender, numberOfTokens); } function mint(uint256 numberOfTokens) external payable callerIsUser { require(saleIsActive, "Sale must be active to mint"); require(totalSupply().add(numberOfTokens) <= MAX_SUPPLY, "Total Supply has been minted"); require(msg.value == PRICE.mul(numberOfTokens), "Ether value sent is not correct"); require(numberOfTokens > 0 && numberOfTokens <= maxTx, "1 pTX allowed"); require(numberMinted(msg.sender).add(numberOfTokens) <= maxPurchase,"Exceeds Max mints allowed per wallet"); _safeMint(msg.sender, numberOfTokens); } function withdraw() public onlyOwner { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawAll() external onlyOwner { require(address(this).balance > 0, "No balance"); uint256 _amount = address(this).balance; (bool wallet1Success, ) = wallet1.call{value: _amount.mul(35).div(100)}(""); (bool wallet2Success, ) = wallet2.call{value: _amount.mul(4).div(100)}(""); (bool wallet3Success, ) = wallet3.call{value: _amount.mul(2).div(100)}(""); (bool wallet4Success, ) = wallet4.call{value: _amount.mul(5).div(100)}(""); (bool wallet5Success, ) = wallet5.call{value: _amount.mul(5).div(100)}(""); (bool wallet6Success, ) = wallet6.call{value: _amount.mul(2).div(100)}(""); (bool wallet7Success, ) = wallet7.call{value: _amount.mul(7).div(100)}(""); (bool wallet8Success, ) = wallet8.call{value: _amount.mul(6).div(100)}(""); (bool wallet9Success, ) = wallet9.call{value: _amount.mul(17).div(100)}(""); (bool wallet10Success, ) = wallet10.call{value: _amount.mul(17).div(100)}(""); require(wallet1Success && wallet2Success && wallet3Success && wallet4Success && wallet5Success && wallet6Success && wallet7Success && wallet8Success && wallet9Success && wallet10Success, "Withdrawal failed."); } function giveAway(uint256 numberOfTokens, address to) external onlyOwner { require(giveawayLimit.sub(numberOfTokens) >= 0,"Giveaways exhausted"); _safeMint(to, numberOfTokens); giveawayLimit = giveawayLimit.sub(numberOfTokens); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function setPriceWL(uint256 _wlPrice) public onlyAuthorized { WL_PRICE = _wlPrice; } function setPriceVIPWL(uint256 _vipwlPrice) public onlyAuthorized { VIPWL_PRICE = _vipwlPrice; } function setPrice(uint256 _price) public onlyAuthorized { PRICE = _price; } function setMaxTxLimit(uint256 _txLimit) public onlyAuthorized { maxTx = _txLimit; } function setMaxTxWL(uint256 _txLimit) public onlyAuthorized { maxTxWL = _txLimit; } function setMaxTxVIP(uint256 _txLimit) public onlyAuthorized { maxTxVIP = _txLimit; } function setMaxPurchaseLimit(uint256 _limit) public onlyAuthorized { maxPurchase = _limit; } function setMaxWLPurchaseLimit(uint256 _limit) public onlyAuthorized { maxWLPurchase = _limit; } function setMaxVIPPurchaseLimit(uint256 _limit) public onlyAuthorized { maxVIPPurchase = _limit; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree 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 Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(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++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 // Modified by SausageLabs.io pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) 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.7.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 /// @solidity memory-safe-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.7.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 have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":[],"name":"Authorized","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_VIPWL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VIPWL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giveawayLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxVIP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxVIPPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWLPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","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":"renounceOwnership","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxPurchaseLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_txLimit","type":"uint256"}],"name":"setMaxTxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_txLimit","type":"uint256"}],"name":"setMaxTxVIP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_txLimit","type":"uint256"}],"name":"setMaxTxWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxVIPPurchaseLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxWLPurchaseLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vipwlPrice","type":"uint256"}],"name":"setPriceVIPWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlPrice","type":"uint256"}],"name":"setPriceWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"updateVIPMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vipMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"vipMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526702a303fe4b530000600b5567039bb49f599a0000600c55670470de4df8200000600d5560fa600e55735cb857f819e33252d75423dbf39550cd768bdc22601060026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550735f44114cc117167982a1f08fad60acdbf0b63ef0601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073dd176d72c0bc94dc10dfba76716074f2c1d8cb02601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073e29cc153f6d64f5fac547d16f07f18d0020075c5601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073282781484bdebd41346d063b65f596f63fd2f03e601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073f02c95775a55bdaf85c6c873473f89a14920ed17601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507323be357297a2f08f8456ad81f553cbc61ec6272c601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073ebe792d072f7df72af667ea5bb237b8d840de675601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073669bd3305d7cdaea7394dcdb99236371bba3d259601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073abff75d5d89af95f3a27bdeed14d12b2a2dc0c31601960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550737a29d9a21a45e269f1bfffa15a84c16ba0050e27601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506064601b556005601c556005601d556005601e556005601f556064602055348015620003ff57600080fd5b506040518060400160405280601781526020017f416e677279204170657320436f756e74727920436c75620000000000000000008152506040518060400160405280600481526020017f4141434300000000000000000000000000000000000000000000000000000000815250816002908051906020019062000484929190620005b3565b5080600390805190602001906200049d929190620005b3565b50620004ae620004dc60201b60201c565b6000819055505050620004d6620004ca620004e560201b60201c565b620004ed60201b60201c565b620006c8565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620005c19062000692565b90600052602060002090601f016020900481019282620005e5576000855562000631565b82601f106200060057805160ff191683800117855562000631565b8280016001018555821562000631579182015b828111156200063057825182559160200191906001019062000613565b5b50905062000640919062000644565b5090565b5b808211156200065f57600081600090555060010162000645565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006ab57607f821691505b60208210811415620006c257620006c162000663565b5b50919050565b6159ce80620006d86000396000f3fe6080604052600436106103765760003560e01c806381d8488f116101d1578063a64a281a11610102578063d547cfb7116100a0578063ea64f7dd1161006f578063ea64f7dd14610c2d578063eacfc0ae14610c56578063eb8d244414610c81578063f2fde38b14610cac57610376565b8063d547cfb714610b5d578063db37faaf14610b88578063dc33e68114610bb3578063e985e9c514610bf057610376565b8063c87b56dd116100dc578063c87b56dd14610ac4578063c9d9b9f514610b01578063d1beca6414610b2a578063d2cab05614610b4157610376565b8063a64a281a14610a47578063b88d4fde14610a70578063c56acc8f14610a9957610376565b806391b7f5ed1161016f5780639db7863f116101495780639db7863f146109ac578063a0712d68146109d7578063a22cb465146109f3578063a29f1f6414610a1c57610376565b806391b7f5ed1461092d57806395d89b4114610956578063977b055b1461098157610376565b806388ef0018116101ab57806388ef0018146108925780638d859f3e146108ae5780638da5cb5b146108d95780638f3a89cf1461090457610376565b806381d8488f14610829578063853828b61461085257806387ea9f211461086957610376565b806342842e0e116102ab57806364f5a5bb1161024957806370a082311161022357806370a082311461077f578063715018a6146107bc57806372a1056c146107d35780637437681e146107fe57610376565b806364f5a5bb146107025780636895f1ca1461072b5780636d181fe61461075457610376565b80634f8f591b116102855780634f8f591b1461064657806355f804b31461067157806358ae3c541461069a5780636352211e146106c557610376565b806342842e0e146105cb57806345e313aa146105f45780634783f0ef1461061d57610376565b8063261d3b211161031857806332cb6b0c116102f257806332cb6b0c1461054757806334918dfd146105725780633ccfd60b146105895780633f676c50146105a057610376565b8063261d3b21146104c85780632eb4a7ab146104f157806331c3c7a01461051c57610376565b8063095ea7b311610354578063095ea7b31461042057806310b5454d1461044957806318160ddd1461047457806323b872dd1461049f57610376565b806301ffc9a71461037b57806306fdde03146103b8578063081812fc146103e3575b600080fd5b34801561038757600080fd5b506103a2600480360381019061039d91906143fc565b610cd5565b6040516103af9190614444565b60405180910390f35b3480156103c457600080fd5b506103cd610db7565b6040516103da91906144f8565b60405180910390f35b3480156103ef57600080fd5b5061040a60048036038101906104059190614550565b610e49565b60405161041791906145be565b60405180910390f35b34801561042c57600080fd5b5061044760048036038101906104429190614605565b610ec5565b005b34801561045557600080fd5b5061045e610fd0565b60405161046b9190614444565b60405180910390f35b34801561048057600080fd5b50610489610fe3565b6040516104969190614654565b60405180910390f35b3480156104ab57600080fd5b506104c660048036038101906104c1919061466f565b610ffa565b005b3480156104d457600080fd5b506104ef60048036038101906104ea91906146c2565b61100a565b005b3480156104fd57600080fd5b50610506611093565b604051610513919061471b565b60405180910390f35b34801561052857600080fd5b50610531611099565b60405161053e9190614654565b60405180910390f35b34801561055357600080fd5b5061055c61109f565b6040516105699190614654565b60405180910390f35b34801561057e57600080fd5b506105876110a5565b005b34801561059557600080fd5b5061059e6110d9565b005b3480156105ac57600080fd5b506105b5611130565b6040516105c29190614654565b60405180910390f35b3480156105d757600080fd5b506105f260048036038101906105ed919061466f565b611136565b005b34801561060057600080fd5b5061061b60048036038101906106169190614550565b611156565b005b34801561062957600080fd5b50610644600480360381019061063f9190614762565b61122d565b005b34801561065257600080fd5b5061065b61123f565b6040516106689190614654565b60405180910390f35b34801561067d57600080fd5b50610698600480360381019061069391906148c4565b611245565b005b3480156106a657600080fd5b506106af611267565b6040516106bc9190614654565b60405180910390f35b3480156106d157600080fd5b506106ec60048036038101906106e79190614550565b61126d565b6040516106f991906145be565b60405180910390f35b34801561070e57600080fd5b5061072960048036038101906107249190614550565b611283565b005b34801561073757600080fd5b50610752600480360381019061074d9190614550565b61135a565b005b34801561076057600080fd5b50610769611431565b6040516107769190614654565b60405180910390f35b34801561078b57600080fd5b506107a660048036038101906107a1919061490d565b611437565b6040516107b39190614654565b60405180910390f35b3480156107c857600080fd5b506107d1611507565b005b3480156107df57600080fd5b506107e861151b565b6040516107f5919061471b565b60405180910390f35b34801561080a57600080fd5b50610813611521565b6040516108209190614654565b60405180910390f35b34801561083557600080fd5b50610850600480360381019061084b9190614550565b611527565b005b34801561085e57600080fd5b506108676115fe565b005b34801561087557600080fd5b50610890600480360381019061088b9190614550565b611df4565b005b6108ac60048036038101906108a7919061499a565b611ecb565b005b3480156108ba57600080fd5b506108c36121ae565b6040516108d09190614654565b60405180910390f35b3480156108e557600080fd5b506108ee6121b4565b6040516108fb91906145be565b60405180910390f35b34801561091057600080fd5b5061092b60048036038101906109269190614550565b6121de565b005b34801561093957600080fd5b50610954600480360381019061094f9190614550565b6122b5565b005b34801561096257600080fd5b5061096b61238c565b60405161097891906144f8565b60405180910390f35b34801561098d57600080fd5b5061099661241e565b6040516109a39190614654565b60405180910390f35b3480156109b857600080fd5b506109c1612424565b6040516109ce9190614654565b60405180910390f35b6109f160048036038101906109ec9190614550565b61242a565b005b3480156109ff57600080fd5b50610a1a6004803603810190610a159190614a26565b612658565b005b348015610a2857600080fd5b50610a316127d0565b604051610a3e9190614654565b60405180910390f35b348015610a5357600080fd5b50610a6e6004803603810190610a699190614550565b6127d6565b005b348015610a7c57600080fd5b50610a976004803603810190610a929190614b07565b6128ad565b005b348015610aa557600080fd5b50610aae612929565b604051610abb9190614654565b60405180910390f35b348015610ad057600080fd5b50610aeb6004803603810190610ae69190614550565b61292f565b604051610af891906144f8565b60405180910390f35b348015610b0d57600080fd5b50610b286004803603810190610b239190614762565b6129cd565b005b348015610b3657600080fd5b50610b3f6129df565b005b610b5b6004803603810190610b56919061499a565b612a13565b005b348015610b6957600080fd5b50610b72612cf6565b604051610b7f91906144f8565b60405180910390f35b348015610b9457600080fd5b50610b9d612d84565b604051610baa9190614654565b60405180910390f35b348015610bbf57600080fd5b50610bda6004803603810190610bd5919061490d565b612d8a565b604051610be79190614654565b60405180910390f35b348015610bfc57600080fd5b50610c176004803603810190610c129190614b8a565b612d9c565b604051610c249190614444565b60405180910390f35b348015610c3957600080fd5b50610c546004803603810190610c4f9190614550565b612e30565b005b348015610c6257600080fd5b50610c6b612f07565b604051610c7891906145be565b60405180910390f35b348015610c8d57600080fd5b50610c96612f2d565b604051610ca39190614444565b60405180910390f35b348015610cb857600080fd5b50610cd36004803603810190610cce919061490d565b612f40565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610da057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610db05750610daf82612fc4565b5b9050919050565b606060028054610dc690614bf9565b80601f0160208091040260200160405190810160405280929190818152602001828054610df290614bf9565b8015610e3f5780601f10610e1457610100808354040283529160200191610e3f565b820191906000526020600020905b815481529060010190602001808311610e2257829003601f168201915b5050505050905090565b6000610e548261302e565b610e8a576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ed08261126d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f38576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f5761307c565b73ffffffffffffffffffffffffffffffffffffffff1614158015610f895750610f8781610f8261307c565b612d9c565b155b15610fc0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fcb838383613084565b505050565b601060009054906101000a900460ff1681565b6000610fed613136565b6001546000540303905090565b61100583838361313f565b505050565b6110126135f5565b600061102983600e5461367390919063ffffffff16565b101561106a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106190614c77565b60405180910390fd5b6110748183613689565b61108982600e5461367390919063ffffffff16565b600e819055505050565b60095481565b600b5481565b61138881565b6110ad6135f5565b601060019054906101000a900460ff1615601060016101000a81548160ff021916908315150217905550565b6110e16135f5565b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561112c573d6000803e3d6000fd5b5050565b6104e281565b611151838383604051806020016040528060008152506128ad565b505050565b61115e6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806111e45750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611223576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121a90614ce3565b60405180910390fd5b80601b8190555050565b6112356135f5565b8060098190555050565b601f5481565b61124d6135f5565b80600f90805190602001906112639291906142aa565b5050565b600e5481565b6000611278826136a7565b600001519050919050565b61128b6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113115750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611350576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134790614ce3565b60405180910390fd5b8060208190555050565b6113626121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113e85750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141e90614ce3565b60405180910390fd5b80601d8190555050565b601d5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561149f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61150f6135f5565b6115196000613936565b565b600a5481565b60205481565b61152f6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115b55750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6115f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115eb90614ce3565b60405180910390fd5b80600b8190555050565b6116066135f5565b60004711611649576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164090614d4f565b60405180910390fd5b60004790506000601060029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116b060646116a26023866139fc90919063ffffffff16565b613a1290919063ffffffff16565b6040516116bc90614da0565b60006040518083038185875af1925050503d80600081146116f9576040519150601f19603f3d011682016040523d82523d6000602084013e6116fe565b606091505b505090506000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661176460646117566004876139fc90919063ffffffff16565b613a1290919063ffffffff16565b60405161177090614da0565b60006040518083038185875af1925050503d80600081146117ad576040519150601f19603f3d011682016040523d82523d6000602084013e6117b2565b606091505b505090506000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611818606461180a6002886139fc90919063ffffffff16565b613a1290919063ffffffff16565b60405161182490614da0565b60006040518083038185875af1925050503d8060008114611861576040519150601f19603f3d011682016040523d82523d6000602084013e611866565b606091505b505090506000601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166118cc60646118be6005896139fc90919063ffffffff16565b613a1290919063ffffffff16565b6040516118d890614da0565b60006040518083038185875af1925050503d8060008114611915576040519150601f19603f3d011682016040523d82523d6000602084013e61191a565b606091505b505090506000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611980606461197260058a6139fc90919063ffffffff16565b613a1290919063ffffffff16565b60405161198c90614da0565b60006040518083038185875af1925050503d80600081146119c9576040519150601f19603f3d011682016040523d82523d6000602084013e6119ce565b606091505b505090506000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a346064611a2660028b6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611a4090614da0565b60006040518083038185875af1925050503d8060008114611a7d576040519150601f19603f3d011682016040523d82523d6000602084013e611a82565b606091505b505090506000601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611ae86064611ada60078c6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611af490614da0565b60006040518083038185875af1925050503d8060008114611b31576040519150601f19603f3d011682016040523d82523d6000602084013e611b36565b606091505b505090506000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611b9c6064611b8e60068d6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611ba890614da0565b60006040518083038185875af1925050503d8060008114611be5576040519150601f19603f3d011682016040523d82523d6000602084013e611bea565b606091505b505090506000601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611c506064611c4260118e6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611c5c90614da0565b60006040518083038185875af1925050503d8060008114611c99576040519150601f19603f3d011682016040523d82523d6000602084013e611c9e565b606091505b505090506000601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d046064611cf660118f6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611d1090614da0565b60006040518083038185875af1925050503d8060008114611d4d576040519150601f19603f3d011682016040523d82523d6000602084013e611d52565b606091505b50509050898015611d605750885b8015611d695750875b8015611d725750865b8015611d7b5750855b8015611d845750845b8015611d8d5750835b8015611d965750825b8015611d9f5750815b8015611da85750805b611de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dde90614e01565b60405180910390fd5b5050505050505050505050565b611dfc6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611e825750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb890614ce3565b60405180910390fd5b80601e8190555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3090614e6d565b60405180910390fd5b601060009054906101000a900460ff16611f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7f90614eff565b60405180910390fd5b6104e2611fa584611f97610fe3565b613a2890919063ffffffff16565b1115611fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdd90614f91565b60405180910390fd5b600083118015611ff85750601f548311155b612037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202e90615023565b60405180910390fd5b61204c83600c546139fc90919063ffffffff16565b341461208d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120849061508f565b60405180910390fd5b601d546120ab8461209d33612d8a565b613a2890919063ffffffff16565b11156120ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e390615121565b60405180910390fd5b612160828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a54336040516020016121459190615189565b60405160208183030381529060405280519060200120613a3e565b61219f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612196906151f0565b60405180910390fd5b6121a93384613689565b505050565b600d5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6121e66121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061226c5750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6122ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a290614ce3565b60405180910390fd5b80601c8190555050565b6122bd6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806123435750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237990614ce3565b60405180910390fd5b80600d8190555050565b60606003805461239b90614bf9565b80601f01602080910402602001604051908101604052809291908181526020018280546123c790614bf9565b80156124145780601f106123e957610100808354040283529160200191612414565b820191906000526020600020905b8154815290600101906020018083116123f757829003601f168201915b5050505050905090565b601b5481565b601e5481565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248f90614e6d565b60405180910390fd5b601060019054906101000a900460ff166124e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124de9061525c565b60405180910390fd5b611388612504826124f6610fe3565b613a2890919063ffffffff16565b1115612545576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253c906152c8565b60405180910390fd5b61255a81600d546139fc90919063ffffffff16565b341461259b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125929061508f565b60405180910390fd5b6000811180156125ad57506020548111155b6125ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e390615334565b60405180910390fd5b601b5461260a826125fc33612d8a565b613a2890919063ffffffff16565b111561264b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612642906153c6565b60405180910390fd5b6126553382613689565b50565b61266061307c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126c5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006126d261307c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661277f61307c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127c49190614444565b60405180910390a35050565b600c5481565b6127de6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806128645750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6128a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289a90614ce3565b60405180910390fd5b80601f8190555050565b6128b884848461313f565b6128d78373ffffffffffffffffffffffffffffffffffffffff16613a55565b80156128ec57506128ea84848484613a78565b155b15612923576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6101f481565b606061293a8261302e565b612970576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061297a613bc9565b9050600081511161299a57604051806020016040528060008152506129c5565b806129a484613c5b565b6040516020016129b592919061546e565b6040516020818303038152906040525b915050919050565b6129d56135f5565b80600a8190555050565b6129e76135f5565b601060009054906101000a900460ff1615601060006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7890614e6d565b60405180910390fd5b601060009054906101000a900460ff16612ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac790614eff565b60405180910390fd5b6101f4612aed84612adf610fe3565b613a2890919063ffffffff16565b1115612b2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b25906154e9565b60405180910390fd5b600083118015612b405750601e548311155b612b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b769061557b565b60405180910390fd5b612b9483600b546139fc90919063ffffffff16565b3414612bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bcc9061508f565b60405180910390fd5b601c54612bf384612be533612d8a565b613a2890919063ffffffff16565b1115612c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2b90615121565b60405180910390fd5b612ca8828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060095433604051602001612c8d9190615189565b60405160208183030381529060405280519060200120613a3e565b612ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cde906151f0565b60405180910390fd5b612cf13384613689565b505050565b600f8054612d0390614bf9565b80601f0160208091040260200160405190810160405280929190818152602001828054612d2f90614bf9565b8015612d7c5780601f10612d5157610100808354040283529160200191612d7c565b820191906000526020600020905b815481529060010190602001808311612d5f57829003601f168201915b505050505081565b601c5481565b6000612d9582613dbc565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612e386121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612ebe5750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612efd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef490614ce3565b60405180910390fd5b80600c8190555050565b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601060019054906101000a900460ff1681565b612f486135f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612faf9061560d565b60405180910390fd5b612fc181613936565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081613039613136565b11158015613048575060005482105b8015613075575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061314a826136a7565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131b5576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166131d661307c565b73ffffffffffffffffffffffffffffffffffffffff1614806132055750613204856131ff61307c565b612d9c565b5b8061324a575061321361307c565b73ffffffffffffffffffffffffffffffffffffffff1661323284610e49565b73ffffffffffffffffffffffffffffffffffffffff16145b905080613283576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156132ea576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132f78585856001613e26565b61330360008487613084565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561358357600054821461358257878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135ee8585856001613e2c565b5050505050565b6135fd61307c565b73ffffffffffffffffffffffffffffffffffffffff1661361b6121b4565b73ffffffffffffffffffffffffffffffffffffffff1614613671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366890615679565b60405180910390fd5b565b6000818361368191906156c8565b905092915050565b6136a3828260405180602001604052806000815250613e32565b5050565b6136af614330565b6000829050806136bd613136565b111580156136cc575060005481105b156138ff576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516138fd57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146137e1578092505050613931565b5b6001156138fc57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146138f7578092505050613931565b6137e2565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183613a0a91906156fc565b905092915050565b60008183613a209190615785565b905092915050565b60008183613a3691906157b6565b905092915050565b600082613a4b8584613e44565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613a9e61307c565b8786866040518563ffffffff1660e01b8152600401613ac09493929190615861565b6020604051808303816000875af1925050508015613afc57506040513d601f19601f82011682018060405250810190613af991906158c2565b60015b613b76573d8060008114613b2c576040519150601f19603f3d011682016040523d82523d6000602084013e613b31565b606091505b50600081511415613b6e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054613bd890614bf9565b80601f0160208091040260200160405190810160405280929190818152602001828054613c0490614bf9565b8015613c515780601f10613c2657610100808354040283529160200191613c51565b820191906000526020600020905b815481529060010190602001808311613c3457829003601f168201915b5050505050905090565b60606000821415613ca3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613db7565b600082905060005b60008214613cd5578080613cbe906158ef565b915050600a82613cce9190615785565b9150613cab565b60008167ffffffffffffffff811115613cf157613cf0614799565b5b6040519080825280601f01601f191660200182016040528015613d235781602001600182028036833780820191505090505b5090505b60008514613db057600182613d3c91906156c8565b9150600a85613d4b9190615938565b6030613d5791906157b6565b60f81b818381518110613d6d57613d6c615969565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613da99190615785565b9450613d27565b8093505050505b919050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b50505050565b50505050565b613e3f8383836001613e9a565b505050565b60008082905060005b8451811015613e8f57613e7a82868381518110613e6d57613e6c615969565b5b6020026020010151614268565b91508080613e87906158ef565b915050613e4d565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613f07576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613f42576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613f4f6000868387613e26565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561411957506141188773ffffffffffffffffffffffffffffffffffffffff16613a55565b5b156141df575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461418e6000888480600101955088613a78565b6141c4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561411f5782600054146141da57600080fd5b61424b565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808214156141e0575b8160008190555050506142616000868387613e2c565b5050505050565b60008183106142805761427b8284614293565b61428b565b61428a8383614293565b5b905092915050565b600082600052816020526040600020905092915050565b8280546142b690614bf9565b90600052602060002090601f0160209004810192826142d8576000855561431f565b82601f106142f157805160ff191683800117855561431f565b8280016001018555821561431f579182015b8281111561431e578251825591602001919060010190614303565b5b50905061432c9190614373565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561438c576000816000905550600101614374565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6143d9816143a4565b81146143e457600080fd5b50565b6000813590506143f6816143d0565b92915050565b6000602082840312156144125761441161439a565b5b6000614420848285016143e7565b91505092915050565b60008115159050919050565b61443e81614429565b82525050565b60006020820190506144596000830184614435565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561449957808201518184015260208101905061447e565b838111156144a8576000848401525b50505050565b6000601f19601f8301169050919050565b60006144ca8261445f565b6144d4818561446a565b93506144e481856020860161447b565b6144ed816144ae565b840191505092915050565b6000602082019050818103600083015261451281846144bf565b905092915050565b6000819050919050565b61452d8161451a565b811461453857600080fd5b50565b60008135905061454a81614524565b92915050565b6000602082840312156145665761456561439a565b5b60006145748482850161453b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006145a88261457d565b9050919050565b6145b88161459d565b82525050565b60006020820190506145d360008301846145af565b92915050565b6145e28161459d565b81146145ed57600080fd5b50565b6000813590506145ff816145d9565b92915050565b6000806040838503121561461c5761461b61439a565b5b600061462a858286016145f0565b925050602061463b8582860161453b565b9150509250929050565b61464e8161451a565b82525050565b60006020820190506146696000830184614645565b92915050565b6000806000606084860312156146885761468761439a565b5b6000614696868287016145f0565b93505060206146a7868287016145f0565b92505060406146b88682870161453b565b9150509250925092565b600080604083850312156146d9576146d861439a565b5b60006146e78582860161453b565b92505060206146f8858286016145f0565b9150509250929050565b6000819050919050565b61471581614702565b82525050565b6000602082019050614730600083018461470c565b92915050565b61473f81614702565b811461474a57600080fd5b50565b60008135905061475c81614736565b92915050565b6000602082840312156147785761477761439a565b5b60006147868482850161474d565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6147d1826144ae565b810181811067ffffffffffffffff821117156147f0576147ef614799565b5b80604052505050565b6000614803614390565b905061480f82826147c8565b919050565b600067ffffffffffffffff82111561482f5761482e614799565b5b614838826144ae565b9050602081019050919050565b82818337600083830152505050565b600061486761486284614814565b6147f9565b90508281526020810184848401111561488357614882614794565b5b61488e848285614845565b509392505050565b600082601f8301126148ab576148aa61478f565b5b81356148bb848260208601614854565b91505092915050565b6000602082840312156148da576148d961439a565b5b600082013567ffffffffffffffff8111156148f8576148f761439f565b5b61490484828501614896565b91505092915050565b6000602082840312156149235761492261439a565b5b6000614931848285016145f0565b91505092915050565b600080fd5b600080fd5b60008083601f84011261495a5761495961478f565b5b8235905067ffffffffffffffff8111156149775761497661493a565b5b6020830191508360208202830111156149935761499261493f565b5b9250929050565b6000806000604084860312156149b3576149b261439a565b5b60006149c18682870161453b565b935050602084013567ffffffffffffffff8111156149e2576149e161439f565b5b6149ee86828701614944565b92509250509250925092565b614a0381614429565b8114614a0e57600080fd5b50565b600081359050614a20816149fa565b92915050565b60008060408385031215614a3d57614a3c61439a565b5b6000614a4b858286016145f0565b9250506020614a5c85828601614a11565b9150509250929050565b600067ffffffffffffffff821115614a8157614a80614799565b5b614a8a826144ae565b9050602081019050919050565b6000614aaa614aa584614a66565b6147f9565b905082815260208101848484011115614ac657614ac5614794565b5b614ad1848285614845565b509392505050565b600082601f830112614aee57614aed61478f565b5b8135614afe848260208601614a97565b91505092915050565b60008060008060808587031215614b2157614b2061439a565b5b6000614b2f878288016145f0565b9450506020614b40878288016145f0565b9350506040614b518782880161453b565b925050606085013567ffffffffffffffff811115614b7257614b7161439f565b5b614b7e87828801614ad9565b91505092959194509250565b60008060408385031215614ba157614ba061439a565b5b6000614baf858286016145f0565b9250506020614bc0858286016145f0565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614c1157607f821691505b60208210811415614c2557614c24614bca565b5b50919050565b7f4769766561776179732065786861757374656400000000000000000000000000600082015250565b6000614c6160138361446a565b9150614c6c82614c2b565b602082019050919050565b60006020820190508181036000830152614c9081614c54565b9050919050565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b6000614ccd600e8361446a565b9150614cd882614c97565b602082019050919050565b60006020820190508181036000830152614cfc81614cc0565b9050919050565b7f4e6f2062616c616e636500000000000000000000000000000000000000000000600082015250565b6000614d39600a8361446a565b9150614d4482614d03565b602082019050919050565b60006020820190508181036000830152614d6881614d2c565b9050919050565b600081905092915050565b50565b6000614d8a600083614d6f565b9150614d9582614d7a565b600082019050919050565b6000614dab82614d7d565b9150819050919050565b7f5769746864726177616c206661696c65642e0000000000000000000000000000600082015250565b6000614deb60128361446a565b9150614df682614db5565b602082019050919050565b60006020820190508181036000830152614e1a81614dde565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b6000614e57601e8361446a565b9150614e6282614e21565b602082019050919050565b60006020820190508181036000830152614e8681614e4a565b9050919050565b7f57686974656c6973742053616c65206d7573742062652061637469766520746f60008201527f206d696e74000000000000000000000000000000000000000000000000000000602082015250565b6000614ee960258361446a565b9150614ef482614e8d565b604082019050919050565b60006020820190508181036000830152614f1881614edc565b9050919050565b7f546f74616c20564950574c20537570706c7920686173206265656e206d696e7460008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f7b60228361446a565b9150614f8682614f1f565b604082019050919050565b60006020820190508181036000830152614faa81614f6e565b9050919050565b7f43616e206f6e6c79206d696e74207570746f2032204e46547320696e2061207460008201527f72616e73616374696f6e00000000000000000000000000000000000000000000602082015250565b600061500d602a8361446a565b915061501882614fb1565b604082019050919050565b6000602082019050818103600083015261503c81615000565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000615079601f8361446a565b915061508482615043565b602082019050919050565b600060208201905081810360008301526150a88161506c565b9050919050565b7f45786365656473204d6178206d696e747320616c6c6f7765642070657220776860008201527f6974656c69737465642077616c6c657400000000000000000000000000000000602082015250565b600061510b60308361446a565b9150615116826150af565b604082019050919050565b6000602082019050818103600083015261513a816150fe565b9050919050565b60008160601b9050919050565b600061515982615141565b9050919050565b600061516b8261514e565b9050919050565b61518361517e8261459d565b615160565b82525050565b60006151958284615172565b60148201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b60006151da600d8361446a565b91506151e5826151a4565b602082019050919050565b60006020820190508181036000830152615209816151cd565b9050919050565b7f53616c65206d7573742062652061637469766520746f206d696e740000000000600082015250565b6000615246601b8361446a565b915061525182615210565b602082019050919050565b6000602082019050818103600083015261527581615239565b9050919050565b7f546f74616c20537570706c7920686173206265656e206d696e74656400000000600082015250565b60006152b2601c8361446a565b91506152bd8261527c565b602082019050919050565b600060208201905081810360008301526152e1816152a5565b9050919050565b7f312070545820616c6c6f77656400000000000000000000000000000000000000600082015250565b600061531e600d8361446a565b9150615329826152e8565b602082019050919050565b6000602082019050818103600083015261534d81615311565b9050919050565b7f45786365656473204d6178206d696e747320616c6c6f7765642070657220776160008201527f6c6c657400000000000000000000000000000000000000000000000000000000602082015250565b60006153b060248361446a565b91506153bb82615354565b604082019050919050565b600060208201905081810360008301526153df816153a3565b9050919050565b600081905092915050565b60006153fc8261445f565b61540681856153e6565b935061541681856020860161447b565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006154586005836153e6565b915061546382615422565b600582019050919050565b600061547a82856153f1565b915061548682846153f1565b91506154918261544b565b91508190509392505050565b7f546f74616c20574c20537570706c7920686173206265656e206d696e74656400600082015250565b60006154d3601f8361446a565b91506154de8261549d565b602082019050919050565b60006020820190508181036000830152615502816154c6565b9050919050565b7f43616e206f6e6c79206d696e74207570746f2031204e46547320696e2061207460008201527f72616e73616374696f6e00000000000000000000000000000000000000000000602082015250565b6000615565602a8361446a565b915061557082615509565b604082019050919050565b6000602082019050818103600083015261559481615558565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006155f760268361446a565b91506156028261559b565b604082019050919050565b60006020820190508181036000830152615626816155ea565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061566360208361446a565b915061566e8261562d565b602082019050919050565b6000602082019050818103600083015261569281615656565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006156d38261451a565b91506156de8361451a565b9250828210156156f1576156f0615699565b5b828203905092915050565b60006157078261451a565b91506157128361451a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561574b5761574a615699565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006157908261451a565b915061579b8361451a565b9250826157ab576157aa615756565b5b828204905092915050565b60006157c18261451a565b91506157cc8361451a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561580157615800615699565b5b828201905092915050565b600081519050919050565b600082825260208201905092915050565b60006158338261580c565b61583d8185615817565b935061584d81856020860161447b565b615856816144ae565b840191505092915050565b600060808201905061587660008301876145af565b61588360208301866145af565b6158906040830185614645565b81810360608301526158a28184615828565b905095945050505050565b6000815190506158bc816143d0565b92915050565b6000602082840312156158d8576158d761439a565b5b60006158e6848285016158ad565b91505092915050565b60006158fa8261451a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561592d5761592c615699565b5b600182019050919050565b60006159438261451a565b915061594e8361451a565b92508261595e5761595d615756565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220dadfd75268a4ebc3a78fa99020f298bf62104079962e3b4e62d4d82da869429864736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106103765760003560e01c806381d8488f116101d1578063a64a281a11610102578063d547cfb7116100a0578063ea64f7dd1161006f578063ea64f7dd14610c2d578063eacfc0ae14610c56578063eb8d244414610c81578063f2fde38b14610cac57610376565b8063d547cfb714610b5d578063db37faaf14610b88578063dc33e68114610bb3578063e985e9c514610bf057610376565b8063c87b56dd116100dc578063c87b56dd14610ac4578063c9d9b9f514610b01578063d1beca6414610b2a578063d2cab05614610b4157610376565b8063a64a281a14610a47578063b88d4fde14610a70578063c56acc8f14610a9957610376565b806391b7f5ed1161016f5780639db7863f116101495780639db7863f146109ac578063a0712d68146109d7578063a22cb465146109f3578063a29f1f6414610a1c57610376565b806391b7f5ed1461092d57806395d89b4114610956578063977b055b1461098157610376565b806388ef0018116101ab57806388ef0018146108925780638d859f3e146108ae5780638da5cb5b146108d95780638f3a89cf1461090457610376565b806381d8488f14610829578063853828b61461085257806387ea9f211461086957610376565b806342842e0e116102ab57806364f5a5bb1161024957806370a082311161022357806370a082311461077f578063715018a6146107bc57806372a1056c146107d35780637437681e146107fe57610376565b806364f5a5bb146107025780636895f1ca1461072b5780636d181fe61461075457610376565b80634f8f591b116102855780634f8f591b1461064657806355f804b31461067157806358ae3c541461069a5780636352211e146106c557610376565b806342842e0e146105cb57806345e313aa146105f45780634783f0ef1461061d57610376565b8063261d3b211161031857806332cb6b0c116102f257806332cb6b0c1461054757806334918dfd146105725780633ccfd60b146105895780633f676c50146105a057610376565b8063261d3b21146104c85780632eb4a7ab146104f157806331c3c7a01461051c57610376565b8063095ea7b311610354578063095ea7b31461042057806310b5454d1461044957806318160ddd1461047457806323b872dd1461049f57610376565b806301ffc9a71461037b57806306fdde03146103b8578063081812fc146103e3575b600080fd5b34801561038757600080fd5b506103a2600480360381019061039d91906143fc565b610cd5565b6040516103af9190614444565b60405180910390f35b3480156103c457600080fd5b506103cd610db7565b6040516103da91906144f8565b60405180910390f35b3480156103ef57600080fd5b5061040a60048036038101906104059190614550565b610e49565b60405161041791906145be565b60405180910390f35b34801561042c57600080fd5b5061044760048036038101906104429190614605565b610ec5565b005b34801561045557600080fd5b5061045e610fd0565b60405161046b9190614444565b60405180910390f35b34801561048057600080fd5b50610489610fe3565b6040516104969190614654565b60405180910390f35b3480156104ab57600080fd5b506104c660048036038101906104c1919061466f565b610ffa565b005b3480156104d457600080fd5b506104ef60048036038101906104ea91906146c2565b61100a565b005b3480156104fd57600080fd5b50610506611093565b604051610513919061471b565b60405180910390f35b34801561052857600080fd5b50610531611099565b60405161053e9190614654565b60405180910390f35b34801561055357600080fd5b5061055c61109f565b6040516105699190614654565b60405180910390f35b34801561057e57600080fd5b506105876110a5565b005b34801561059557600080fd5b5061059e6110d9565b005b3480156105ac57600080fd5b506105b5611130565b6040516105c29190614654565b60405180910390f35b3480156105d757600080fd5b506105f260048036038101906105ed919061466f565b611136565b005b34801561060057600080fd5b5061061b60048036038101906106169190614550565b611156565b005b34801561062957600080fd5b50610644600480360381019061063f9190614762565b61122d565b005b34801561065257600080fd5b5061065b61123f565b6040516106689190614654565b60405180910390f35b34801561067d57600080fd5b50610698600480360381019061069391906148c4565b611245565b005b3480156106a657600080fd5b506106af611267565b6040516106bc9190614654565b60405180910390f35b3480156106d157600080fd5b506106ec60048036038101906106e79190614550565b61126d565b6040516106f991906145be565b60405180910390f35b34801561070e57600080fd5b5061072960048036038101906107249190614550565b611283565b005b34801561073757600080fd5b50610752600480360381019061074d9190614550565b61135a565b005b34801561076057600080fd5b50610769611431565b6040516107769190614654565b60405180910390f35b34801561078b57600080fd5b506107a660048036038101906107a1919061490d565b611437565b6040516107b39190614654565b60405180910390f35b3480156107c857600080fd5b506107d1611507565b005b3480156107df57600080fd5b506107e861151b565b6040516107f5919061471b565b60405180910390f35b34801561080a57600080fd5b50610813611521565b6040516108209190614654565b60405180910390f35b34801561083557600080fd5b50610850600480360381019061084b9190614550565b611527565b005b34801561085e57600080fd5b506108676115fe565b005b34801561087557600080fd5b50610890600480360381019061088b9190614550565b611df4565b005b6108ac60048036038101906108a7919061499a565b611ecb565b005b3480156108ba57600080fd5b506108c36121ae565b6040516108d09190614654565b60405180910390f35b3480156108e557600080fd5b506108ee6121b4565b6040516108fb91906145be565b60405180910390f35b34801561091057600080fd5b5061092b60048036038101906109269190614550565b6121de565b005b34801561093957600080fd5b50610954600480360381019061094f9190614550565b6122b5565b005b34801561096257600080fd5b5061096b61238c565b60405161097891906144f8565b60405180910390f35b34801561098d57600080fd5b5061099661241e565b6040516109a39190614654565b60405180910390f35b3480156109b857600080fd5b506109c1612424565b6040516109ce9190614654565b60405180910390f35b6109f160048036038101906109ec9190614550565b61242a565b005b3480156109ff57600080fd5b50610a1a6004803603810190610a159190614a26565b612658565b005b348015610a2857600080fd5b50610a316127d0565b604051610a3e9190614654565b60405180910390f35b348015610a5357600080fd5b50610a6e6004803603810190610a699190614550565b6127d6565b005b348015610a7c57600080fd5b50610a976004803603810190610a929190614b07565b6128ad565b005b348015610aa557600080fd5b50610aae612929565b604051610abb9190614654565b60405180910390f35b348015610ad057600080fd5b50610aeb6004803603810190610ae69190614550565b61292f565b604051610af891906144f8565b60405180910390f35b348015610b0d57600080fd5b50610b286004803603810190610b239190614762565b6129cd565b005b348015610b3657600080fd5b50610b3f6129df565b005b610b5b6004803603810190610b56919061499a565b612a13565b005b348015610b6957600080fd5b50610b72612cf6565b604051610b7f91906144f8565b60405180910390f35b348015610b9457600080fd5b50610b9d612d84565b604051610baa9190614654565b60405180910390f35b348015610bbf57600080fd5b50610bda6004803603810190610bd5919061490d565b612d8a565b604051610be79190614654565b60405180910390f35b348015610bfc57600080fd5b50610c176004803603810190610c129190614b8a565b612d9c565b604051610c249190614444565b60405180910390f35b348015610c3957600080fd5b50610c546004803603810190610c4f9190614550565b612e30565b005b348015610c6257600080fd5b50610c6b612f07565b604051610c7891906145be565b60405180910390f35b348015610c8d57600080fd5b50610c96612f2d565b604051610ca39190614444565b60405180910390f35b348015610cb857600080fd5b50610cd36004803603810190610cce919061490d565b612f40565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610da057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610db05750610daf82612fc4565b5b9050919050565b606060028054610dc690614bf9565b80601f0160208091040260200160405190810160405280929190818152602001828054610df290614bf9565b8015610e3f5780601f10610e1457610100808354040283529160200191610e3f565b820191906000526020600020905b815481529060010190602001808311610e2257829003601f168201915b5050505050905090565b6000610e548261302e565b610e8a576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ed08261126d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f38576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f5761307c565b73ffffffffffffffffffffffffffffffffffffffff1614158015610f895750610f8781610f8261307c565b612d9c565b155b15610fc0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fcb838383613084565b505050565b601060009054906101000a900460ff1681565b6000610fed613136565b6001546000540303905090565b61100583838361313f565b505050565b6110126135f5565b600061102983600e5461367390919063ffffffff16565b101561106a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106190614c77565b60405180910390fd5b6110748183613689565b61108982600e5461367390919063ffffffff16565b600e819055505050565b60095481565b600b5481565b61138881565b6110ad6135f5565b601060019054906101000a900460ff1615601060016101000a81548160ff021916908315150217905550565b6110e16135f5565b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561112c573d6000803e3d6000fd5b5050565b6104e281565b611151838383604051806020016040528060008152506128ad565b505050565b61115e6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806111e45750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611223576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121a90614ce3565b60405180910390fd5b80601b8190555050565b6112356135f5565b8060098190555050565b601f5481565b61124d6135f5565b80600f90805190602001906112639291906142aa565b5050565b600e5481565b6000611278826136a7565b600001519050919050565b61128b6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113115750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611350576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134790614ce3565b60405180910390fd5b8060208190555050565b6113626121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113e85750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141e90614ce3565b60405180910390fd5b80601d8190555050565b601d5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561149f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61150f6135f5565b6115196000613936565b565b600a5481565b60205481565b61152f6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115b55750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6115f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115eb90614ce3565b60405180910390fd5b80600b8190555050565b6116066135f5565b60004711611649576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164090614d4f565b60405180910390fd5b60004790506000601060029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116b060646116a26023866139fc90919063ffffffff16565b613a1290919063ffffffff16565b6040516116bc90614da0565b60006040518083038185875af1925050503d80600081146116f9576040519150601f19603f3d011682016040523d82523d6000602084013e6116fe565b606091505b505090506000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661176460646117566004876139fc90919063ffffffff16565b613a1290919063ffffffff16565b60405161177090614da0565b60006040518083038185875af1925050503d80600081146117ad576040519150601f19603f3d011682016040523d82523d6000602084013e6117b2565b606091505b505090506000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611818606461180a6002886139fc90919063ffffffff16565b613a1290919063ffffffff16565b60405161182490614da0565b60006040518083038185875af1925050503d8060008114611861576040519150601f19603f3d011682016040523d82523d6000602084013e611866565b606091505b505090506000601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166118cc60646118be6005896139fc90919063ffffffff16565b613a1290919063ffffffff16565b6040516118d890614da0565b60006040518083038185875af1925050503d8060008114611915576040519150601f19603f3d011682016040523d82523d6000602084013e61191a565b606091505b505090506000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611980606461197260058a6139fc90919063ffffffff16565b613a1290919063ffffffff16565b60405161198c90614da0565b60006040518083038185875af1925050503d80600081146119c9576040519150601f19603f3d011682016040523d82523d6000602084013e6119ce565b606091505b505090506000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a346064611a2660028b6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611a4090614da0565b60006040518083038185875af1925050503d8060008114611a7d576040519150601f19603f3d011682016040523d82523d6000602084013e611a82565b606091505b505090506000601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611ae86064611ada60078c6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611af490614da0565b60006040518083038185875af1925050503d8060008114611b31576040519150601f19603f3d011682016040523d82523d6000602084013e611b36565b606091505b505090506000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611b9c6064611b8e60068d6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611ba890614da0565b60006040518083038185875af1925050503d8060008114611be5576040519150601f19603f3d011682016040523d82523d6000602084013e611bea565b606091505b505090506000601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611c506064611c4260118e6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611c5c90614da0565b60006040518083038185875af1925050503d8060008114611c99576040519150601f19603f3d011682016040523d82523d6000602084013e611c9e565b606091505b505090506000601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d046064611cf660118f6139fc90919063ffffffff16565b613a1290919063ffffffff16565b604051611d1090614da0565b60006040518083038185875af1925050503d8060008114611d4d576040519150601f19603f3d011682016040523d82523d6000602084013e611d52565b606091505b50509050898015611d605750885b8015611d695750875b8015611d725750865b8015611d7b5750855b8015611d845750845b8015611d8d5750835b8015611d965750825b8015611d9f5750815b8015611da85750805b611de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dde90614e01565b60405180910390fd5b5050505050505050505050565b611dfc6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611e825750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb890614ce3565b60405180910390fd5b80601e8190555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3090614e6d565b60405180910390fd5b601060009054906101000a900460ff16611f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7f90614eff565b60405180910390fd5b6104e2611fa584611f97610fe3565b613a2890919063ffffffff16565b1115611fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdd90614f91565b60405180910390fd5b600083118015611ff85750601f548311155b612037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202e90615023565b60405180910390fd5b61204c83600c546139fc90919063ffffffff16565b341461208d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120849061508f565b60405180910390fd5b601d546120ab8461209d33612d8a565b613a2890919063ffffffff16565b11156120ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e390615121565b60405180910390fd5b612160828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a54336040516020016121459190615189565b60405160208183030381529060405280519060200120613a3e565b61219f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612196906151f0565b60405180910390fd5b6121a93384613689565b505050565b600d5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6121e66121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061226c5750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6122ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a290614ce3565b60405180910390fd5b80601c8190555050565b6122bd6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806123435750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237990614ce3565b60405180910390fd5b80600d8190555050565b60606003805461239b90614bf9565b80601f01602080910402602001604051908101604052809291908181526020018280546123c790614bf9565b80156124145780601f106123e957610100808354040283529160200191612414565b820191906000526020600020905b8154815290600101906020018083116123f757829003601f168201915b5050505050905090565b601b5481565b601e5481565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248f90614e6d565b60405180910390fd5b601060019054906101000a900460ff166124e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124de9061525c565b60405180910390fd5b611388612504826124f6610fe3565b613a2890919063ffffffff16565b1115612545576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253c906152c8565b60405180910390fd5b61255a81600d546139fc90919063ffffffff16565b341461259b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125929061508f565b60405180910390fd5b6000811180156125ad57506020548111155b6125ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e390615334565b60405180910390fd5b601b5461260a826125fc33612d8a565b613a2890919063ffffffff16565b111561264b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612642906153c6565b60405180910390fd5b6126553382613689565b50565b61266061307c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126c5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006126d261307c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661277f61307c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127c49190614444565b60405180910390a35050565b600c5481565b6127de6121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806128645750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6128a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289a90614ce3565b60405180910390fd5b80601f8190555050565b6128b884848461313f565b6128d78373ffffffffffffffffffffffffffffffffffffffff16613a55565b80156128ec57506128ea84848484613a78565b155b15612923576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6101f481565b606061293a8261302e565b612970576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061297a613bc9565b9050600081511161299a57604051806020016040528060008152506129c5565b806129a484613c5b565b6040516020016129b592919061546e565b6040516020818303038152906040525b915050919050565b6129d56135f5565b80600a8190555050565b6129e76135f5565b601060009054906101000a900460ff1615601060006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7890614e6d565b60405180910390fd5b601060009054906101000a900460ff16612ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac790614eff565b60405180910390fd5b6101f4612aed84612adf610fe3565b613a2890919063ffffffff16565b1115612b2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b25906154e9565b60405180910390fd5b600083118015612b405750601e548311155b612b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b769061557b565b60405180910390fd5b612b9483600b546139fc90919063ffffffff16565b3414612bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bcc9061508f565b60405180910390fd5b601c54612bf384612be533612d8a565b613a2890919063ffffffff16565b1115612c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2b90615121565b60405180910390fd5b612ca8828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060095433604051602001612c8d9190615189565b60405160208183030381529060405280519060200120613a3e565b612ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cde906151f0565b60405180910390fd5b612cf13384613689565b505050565b600f8054612d0390614bf9565b80601f0160208091040260200160405190810160405280929190818152602001828054612d2f90614bf9565b8015612d7c5780601f10612d5157610100808354040283529160200191612d7c565b820191906000526020600020905b815481529060010190602001808311612d5f57829003601f168201915b505050505081565b601c5481565b6000612d9582613dbc565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612e386121b4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612ebe5750601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612efd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef490614ce3565b60405180910390fd5b80600c8190555050565b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601060019054906101000a900460ff1681565b612f486135f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612faf9061560d565b60405180910390fd5b612fc181613936565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081613039613136565b11158015613048575060005482105b8015613075575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061314a826136a7565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131b5576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166131d661307c565b73ffffffffffffffffffffffffffffffffffffffff1614806132055750613204856131ff61307c565b612d9c565b5b8061324a575061321361307c565b73ffffffffffffffffffffffffffffffffffffffff1661323284610e49565b73ffffffffffffffffffffffffffffffffffffffff16145b905080613283576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156132ea576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132f78585856001613e26565b61330360008487613084565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561358357600054821461358257878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135ee8585856001613e2c565b5050505050565b6135fd61307c565b73ffffffffffffffffffffffffffffffffffffffff1661361b6121b4565b73ffffffffffffffffffffffffffffffffffffffff1614613671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366890615679565b60405180910390fd5b565b6000818361368191906156c8565b905092915050565b6136a3828260405180602001604052806000815250613e32565b5050565b6136af614330565b6000829050806136bd613136565b111580156136cc575060005481105b156138ff576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516138fd57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146137e1578092505050613931565b5b6001156138fc57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146138f7578092505050613931565b6137e2565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183613a0a91906156fc565b905092915050565b60008183613a209190615785565b905092915050565b60008183613a3691906157b6565b905092915050565b600082613a4b8584613e44565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613a9e61307c565b8786866040518563ffffffff1660e01b8152600401613ac09493929190615861565b6020604051808303816000875af1925050508015613afc57506040513d601f19601f82011682018060405250810190613af991906158c2565b60015b613b76573d8060008114613b2c576040519150601f19603f3d011682016040523d82523d6000602084013e613b31565b606091505b50600081511415613b6e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054613bd890614bf9565b80601f0160208091040260200160405190810160405280929190818152602001828054613c0490614bf9565b8015613c515780601f10613c2657610100808354040283529160200191613c51565b820191906000526020600020905b815481529060010190602001808311613c3457829003601f168201915b5050505050905090565b60606000821415613ca3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613db7565b600082905060005b60008214613cd5578080613cbe906158ef565b915050600a82613cce9190615785565b9150613cab565b60008167ffffffffffffffff811115613cf157613cf0614799565b5b6040519080825280601f01601f191660200182016040528015613d235781602001600182028036833780820191505090505b5090505b60008514613db057600182613d3c91906156c8565b9150600a85613d4b9190615938565b6030613d5791906157b6565b60f81b818381518110613d6d57613d6c615969565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613da99190615785565b9450613d27565b8093505050505b919050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b50505050565b50505050565b613e3f8383836001613e9a565b505050565b60008082905060005b8451811015613e8f57613e7a82868381518110613e6d57613e6c615969565b5b6020026020010151614268565b91508080613e87906158ef565b915050613e4d565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613f07576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613f42576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613f4f6000868387613e26565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561411957506141188773ffffffffffffffffffffffffffffffffffffffff16613a55565b5b156141df575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461418e6000888480600101955088613a78565b6141c4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561411f5782600054146141da57600080fd5b61424b565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808214156141e0575b8160008190555050506142616000868387613e2c565b5050505050565b60008183106142805761427b8284614293565b61428b565b61428a8383614293565b5b905092915050565b600082600052816020526040600020905092915050565b8280546142b690614bf9565b90600052602060002090601f0160209004810192826142d8576000855561431f565b82601f106142f157805160ff191683800117855561431f565b8280016001018555821561431f579182015b8281111561431e578251825591602001919060010190614303565b5b50905061432c9190614373565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561438c576000816000905550600101614374565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6143d9816143a4565b81146143e457600080fd5b50565b6000813590506143f6816143d0565b92915050565b6000602082840312156144125761441161439a565b5b6000614420848285016143e7565b91505092915050565b60008115159050919050565b61443e81614429565b82525050565b60006020820190506144596000830184614435565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561449957808201518184015260208101905061447e565b838111156144a8576000848401525b50505050565b6000601f19601f8301169050919050565b60006144ca8261445f565b6144d4818561446a565b93506144e481856020860161447b565b6144ed816144ae565b840191505092915050565b6000602082019050818103600083015261451281846144bf565b905092915050565b6000819050919050565b61452d8161451a565b811461453857600080fd5b50565b60008135905061454a81614524565b92915050565b6000602082840312156145665761456561439a565b5b60006145748482850161453b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006145a88261457d565b9050919050565b6145b88161459d565b82525050565b60006020820190506145d360008301846145af565b92915050565b6145e28161459d565b81146145ed57600080fd5b50565b6000813590506145ff816145d9565b92915050565b6000806040838503121561461c5761461b61439a565b5b600061462a858286016145f0565b925050602061463b8582860161453b565b9150509250929050565b61464e8161451a565b82525050565b60006020820190506146696000830184614645565b92915050565b6000806000606084860312156146885761468761439a565b5b6000614696868287016145f0565b93505060206146a7868287016145f0565b92505060406146b88682870161453b565b9150509250925092565b600080604083850312156146d9576146d861439a565b5b60006146e78582860161453b565b92505060206146f8858286016145f0565b9150509250929050565b6000819050919050565b61471581614702565b82525050565b6000602082019050614730600083018461470c565b92915050565b61473f81614702565b811461474a57600080fd5b50565b60008135905061475c81614736565b92915050565b6000602082840312156147785761477761439a565b5b60006147868482850161474d565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6147d1826144ae565b810181811067ffffffffffffffff821117156147f0576147ef614799565b5b80604052505050565b6000614803614390565b905061480f82826147c8565b919050565b600067ffffffffffffffff82111561482f5761482e614799565b5b614838826144ae565b9050602081019050919050565b82818337600083830152505050565b600061486761486284614814565b6147f9565b90508281526020810184848401111561488357614882614794565b5b61488e848285614845565b509392505050565b600082601f8301126148ab576148aa61478f565b5b81356148bb848260208601614854565b91505092915050565b6000602082840312156148da576148d961439a565b5b600082013567ffffffffffffffff8111156148f8576148f761439f565b5b61490484828501614896565b91505092915050565b6000602082840312156149235761492261439a565b5b6000614931848285016145f0565b91505092915050565b600080fd5b600080fd5b60008083601f84011261495a5761495961478f565b5b8235905067ffffffffffffffff8111156149775761497661493a565b5b6020830191508360208202830111156149935761499261493f565b5b9250929050565b6000806000604084860312156149b3576149b261439a565b5b60006149c18682870161453b565b935050602084013567ffffffffffffffff8111156149e2576149e161439f565b5b6149ee86828701614944565b92509250509250925092565b614a0381614429565b8114614a0e57600080fd5b50565b600081359050614a20816149fa565b92915050565b60008060408385031215614a3d57614a3c61439a565b5b6000614a4b858286016145f0565b9250506020614a5c85828601614a11565b9150509250929050565b600067ffffffffffffffff821115614a8157614a80614799565b5b614a8a826144ae565b9050602081019050919050565b6000614aaa614aa584614a66565b6147f9565b905082815260208101848484011115614ac657614ac5614794565b5b614ad1848285614845565b509392505050565b600082601f830112614aee57614aed61478f565b5b8135614afe848260208601614a97565b91505092915050565b60008060008060808587031215614b2157614b2061439a565b5b6000614b2f878288016145f0565b9450506020614b40878288016145f0565b9350506040614b518782880161453b565b925050606085013567ffffffffffffffff811115614b7257614b7161439f565b5b614b7e87828801614ad9565b91505092959194509250565b60008060408385031215614ba157614ba061439a565b5b6000614baf858286016145f0565b9250506020614bc0858286016145f0565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614c1157607f821691505b60208210811415614c2557614c24614bca565b5b50919050565b7f4769766561776179732065786861757374656400000000000000000000000000600082015250565b6000614c6160138361446a565b9150614c6c82614c2b565b602082019050919050565b60006020820190508181036000830152614c9081614c54565b9050919050565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b6000614ccd600e8361446a565b9150614cd882614c97565b602082019050919050565b60006020820190508181036000830152614cfc81614cc0565b9050919050565b7f4e6f2062616c616e636500000000000000000000000000000000000000000000600082015250565b6000614d39600a8361446a565b9150614d4482614d03565b602082019050919050565b60006020820190508181036000830152614d6881614d2c565b9050919050565b600081905092915050565b50565b6000614d8a600083614d6f565b9150614d9582614d7a565b600082019050919050565b6000614dab82614d7d565b9150819050919050565b7f5769746864726177616c206661696c65642e0000000000000000000000000000600082015250565b6000614deb60128361446a565b9150614df682614db5565b602082019050919050565b60006020820190508181036000830152614e1a81614dde565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b6000614e57601e8361446a565b9150614e6282614e21565b602082019050919050565b60006020820190508181036000830152614e8681614e4a565b9050919050565b7f57686974656c6973742053616c65206d7573742062652061637469766520746f60008201527f206d696e74000000000000000000000000000000000000000000000000000000602082015250565b6000614ee960258361446a565b9150614ef482614e8d565b604082019050919050565b60006020820190508181036000830152614f1881614edc565b9050919050565b7f546f74616c20564950574c20537570706c7920686173206265656e206d696e7460008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f7b60228361446a565b9150614f8682614f1f565b604082019050919050565b60006020820190508181036000830152614faa81614f6e565b9050919050565b7f43616e206f6e6c79206d696e74207570746f2032204e46547320696e2061207460008201527f72616e73616374696f6e00000000000000000000000000000000000000000000602082015250565b600061500d602a8361446a565b915061501882614fb1565b604082019050919050565b6000602082019050818103600083015261503c81615000565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000615079601f8361446a565b915061508482615043565b602082019050919050565b600060208201905081810360008301526150a88161506c565b9050919050565b7f45786365656473204d6178206d696e747320616c6c6f7765642070657220776860008201527f6974656c69737465642077616c6c657400000000000000000000000000000000602082015250565b600061510b60308361446a565b9150615116826150af565b604082019050919050565b6000602082019050818103600083015261513a816150fe565b9050919050565b60008160601b9050919050565b600061515982615141565b9050919050565b600061516b8261514e565b9050919050565b61518361517e8261459d565b615160565b82525050565b60006151958284615172565b60148201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b60006151da600d8361446a565b91506151e5826151a4565b602082019050919050565b60006020820190508181036000830152615209816151cd565b9050919050565b7f53616c65206d7573742062652061637469766520746f206d696e740000000000600082015250565b6000615246601b8361446a565b915061525182615210565b602082019050919050565b6000602082019050818103600083015261527581615239565b9050919050565b7f546f74616c20537570706c7920686173206265656e206d696e74656400000000600082015250565b60006152b2601c8361446a565b91506152bd8261527c565b602082019050919050565b600060208201905081810360008301526152e1816152a5565b9050919050565b7f312070545820616c6c6f77656400000000000000000000000000000000000000600082015250565b600061531e600d8361446a565b9150615329826152e8565b602082019050919050565b6000602082019050818103600083015261534d81615311565b9050919050565b7f45786365656473204d6178206d696e747320616c6c6f7765642070657220776160008201527f6c6c657400000000000000000000000000000000000000000000000000000000602082015250565b60006153b060248361446a565b91506153bb82615354565b604082019050919050565b600060208201905081810360008301526153df816153a3565b9050919050565b600081905092915050565b60006153fc8261445f565b61540681856153e6565b935061541681856020860161447b565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006154586005836153e6565b915061546382615422565b600582019050919050565b600061547a82856153f1565b915061548682846153f1565b91506154918261544b565b91508190509392505050565b7f546f74616c20574c20537570706c7920686173206265656e206d696e74656400600082015250565b60006154d3601f8361446a565b91506154de8261549d565b602082019050919050565b60006020820190508181036000830152615502816154c6565b9050919050565b7f43616e206f6e6c79206d696e74207570746f2031204e46547320696e2061207460008201527f72616e73616374696f6e00000000000000000000000000000000000000000000602082015250565b6000615565602a8361446a565b915061557082615509565b604082019050919050565b6000602082019050818103600083015261559481615558565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006155f760268361446a565b91506156028261559b565b604082019050919050565b60006020820190508181036000830152615626816155ea565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061566360208361446a565b915061566e8261562d565b602082019050919050565b6000602082019050818103600083015261569281615656565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006156d38261451a565b91506156de8361451a565b9250828210156156f1576156f0615699565b5b828203905092915050565b60006157078261451a565b91506157128361451a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561574b5761574a615699565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006157908261451a565b915061579b8361451a565b9250826157ab576157aa615756565b5b828204905092915050565b60006157c18261451a565b91506157cc8361451a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561580157615800615699565b5b828201905092915050565b600081519050919050565b600082825260208201905092915050565b60006158338261580c565b61583d8185615817565b935061584d81856020860161447b565b615856816144ae565b840191505092915050565b600060808201905061587660008301876145af565b61588360208301866145af565b6158906040830185614645565b81810360608301526158a28184615828565b905095945050505050565b6000815190506158bc816143d0565b92915050565b6000602082840312156158d8576158d761439a565b5b60006158e6848285016158ad565b91505092915050565b60006158fa8261451a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561592d5761592c615699565b5b600182019050919050565b60006159438261451a565b915061594e8361451a565b92508261595e5761595d615756565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220dadfd75268a4ebc3a78fa99020f298bf62104079962e3b4e62d4d82da869429864736f6c634300080a0033
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.